1238104Sdes#! /bin/sh
2238104Sdes# Guess values for system-dependent variables and create Makefiles.
3285206Sdes# Generated by GNU Autoconf 2.69 for ldns 1.6.17.
4238104Sdes#
5238104Sdes# Report bugs to <libdns@nlnetlabs.nl>.
6238104Sdes#
7238104Sdes#
8285206Sdes# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9238104Sdes#
10238104Sdes#
11238104Sdes# This configure script is free software; the Free Software Foundation
12238104Sdes# gives unlimited permission to copy, distribute and modify it.
13238104Sdes## -------------------- ##
14238104Sdes## M4sh Initialization. ##
15238104Sdes## -------------------- ##
16238104Sdes
17238104Sdes# Be more Bourne compatible
18238104SdesDUALCASE=1; export DUALCASE # for MKS sh
19238104Sdesif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20238104Sdes  emulate sh
21238104Sdes  NULLCMD=:
22238104Sdes  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23238104Sdes  # is contrary to our usage.  Disable this feature.
24238104Sdes  alias -g '${1+"$@"}'='"$@"'
25238104Sdes  setopt NO_GLOB_SUBST
26238104Sdeselse
27238104Sdes  case `(set -o) 2>/dev/null` in #(
28238104Sdes  *posix*) :
29238104Sdes    set -o posix ;; #(
30238104Sdes  *) :
31238104Sdes     ;;
32238104Sdesesac
33238104Sdesfi
34238104Sdes
35238104Sdes
36238104Sdesas_nl='
37238104Sdes'
38238104Sdesexport as_nl
39238104Sdes# Printing a long string crashes Solaris 7 /usr/bin/printf.
40238104Sdesas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41238104Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42238104Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43238104Sdes# Prefer a ksh shell builtin over an external printf program on Solaris,
44238104Sdes# but without wasting forks for bash or zsh.
45238104Sdesif test -z "$BASH_VERSION$ZSH_VERSION" \
46238104Sdes    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47238104Sdes  as_echo='print -r --'
48238104Sdes  as_echo_n='print -rn --'
49238104Sdeselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50238104Sdes  as_echo='printf %s\n'
51238104Sdes  as_echo_n='printf %s'
52238104Sdeselse
53238104Sdes  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54238104Sdes    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55238104Sdes    as_echo_n='/usr/ucb/echo -n'
56238104Sdes  else
57238104Sdes    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58238104Sdes    as_echo_n_body='eval
59238104Sdes      arg=$1;
60238104Sdes      case $arg in #(
61238104Sdes      *"$as_nl"*)
62238104Sdes	expr "X$arg" : "X\\(.*\\)$as_nl";
63238104Sdes	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64238104Sdes      esac;
65238104Sdes      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66238104Sdes    '
67238104Sdes    export as_echo_n_body
68238104Sdes    as_echo_n='sh -c $as_echo_n_body as_echo'
69238104Sdes  fi
70238104Sdes  export as_echo_body
71238104Sdes  as_echo='sh -c $as_echo_body as_echo'
72238104Sdesfi
73238104Sdes
74238104Sdes# The user is always right.
75238104Sdesif test "${PATH_SEPARATOR+set}" != set; then
76238104Sdes  PATH_SEPARATOR=:
77238104Sdes  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78238104Sdes    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79238104Sdes      PATH_SEPARATOR=';'
80238104Sdes  }
81238104Sdesfi
82238104Sdes
83238104Sdes
84238104Sdes# IFS
85238104Sdes# We need space, tab and new line, in precisely that order.  Quoting is
86238104Sdes# there to prevent editors from complaining about space-tab.
87238104Sdes# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88238104Sdes# splitting by setting IFS to empty value.)
89238104SdesIFS=" ""	$as_nl"
90238104Sdes
91238104Sdes# Find who we are.  Look in the path if we contain no directory separator.
92238104Sdesas_myself=
93238104Sdescase $0 in #((
94238104Sdes  *[\\/]* ) as_myself=$0 ;;
95238104Sdes  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96238104Sdesfor as_dir in $PATH
97238104Sdesdo
98238104Sdes  IFS=$as_save_IFS
99238104Sdes  test -z "$as_dir" && as_dir=.
100238104Sdes    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101238104Sdes  done
102238104SdesIFS=$as_save_IFS
103238104Sdes
104238104Sdes     ;;
105238104Sdesesac
106238104Sdes# We did not find ourselves, most probably we were run as `sh COMMAND'
107238104Sdes# in which case we are not to be found in the path.
108238104Sdesif test "x$as_myself" = x; then
109238104Sdes  as_myself=$0
110238104Sdesfi
111238104Sdesif test ! -f "$as_myself"; then
112238104Sdes  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113238104Sdes  exit 1
114238104Sdesfi
115238104Sdes
116238104Sdes# Unset variables that we do not need and which cause bugs (e.g. in
117238104Sdes# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118238104Sdes# suppresses any "Segmentation fault" message there.  '((' could
119238104Sdes# trigger a bug in pdksh 5.2.14.
120238104Sdesfor as_var in BASH_ENV ENV MAIL MAILPATH
121238104Sdesdo eval test x\${$as_var+set} = xset \
122238104Sdes  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123238104Sdesdone
124238104SdesPS1='$ '
125238104SdesPS2='> '
126238104SdesPS4='+ '
127238104Sdes
128238104Sdes# NLS nuisances.
129238104SdesLC_ALL=C
130238104Sdesexport LC_ALL
131238104SdesLANGUAGE=C
132238104Sdesexport LANGUAGE
133238104Sdes
134238104Sdes# CDPATH.
135238104Sdes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136238104Sdes
137285206Sdes# Use a proper internal environment variable to ensure we don't fall
138285206Sdes  # into an infinite loop, continuously re-executing ourselves.
139285206Sdes  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140285206Sdes    _as_can_reexec=no; export _as_can_reexec;
141285206Sdes    # We cannot yet assume a decent shell, so we have to provide a
142285206Sdes# neutralization value for shells without unset; and this also
143285206Sdes# works around shells that cannot unset nonexistent variables.
144285206Sdes# Preserve -v and -x to the replacement shell.
145285206SdesBASH_ENV=/dev/null
146285206SdesENV=/dev/null
147285206Sdes(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148285206Sdescase $- in # ((((
149285206Sdes  *v*x* | *x*v* ) as_opts=-vx ;;
150285206Sdes  *v* ) as_opts=-v ;;
151285206Sdes  *x* ) as_opts=-x ;;
152285206Sdes  * ) as_opts= ;;
153285206Sdesesac
154285206Sdesexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155285206Sdes# Admittedly, this is quite paranoid, since all the known shells bail
156285206Sdes# out after a failed `exec'.
157285206Sdes$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158285206Sdesas_fn_exit 255
159285206Sdes  fi
160285206Sdes  # We don't want this to propagate to other subprocesses.
161285206Sdes          { _as_can_reexec=; unset _as_can_reexec;}
162238104Sdesif test "x$CONFIG_SHELL" = x; then
163238104Sdes  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164238104Sdes  emulate sh
165238104Sdes  NULLCMD=:
166238104Sdes  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167238104Sdes  # is contrary to our usage.  Disable this feature.
168238104Sdes  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169238104Sdes  setopt NO_GLOB_SUBST
170238104Sdeselse
171238104Sdes  case \`(set -o) 2>/dev/null\` in #(
172238104Sdes  *posix*) :
173238104Sdes    set -o posix ;; #(
174238104Sdes  *) :
175238104Sdes     ;;
176238104Sdesesac
177238104Sdesfi
178238104Sdes"
179238104Sdes  as_required="as_fn_return () { (exit \$1); }
180238104Sdesas_fn_success () { as_fn_return 0; }
181238104Sdesas_fn_failure () { as_fn_return 1; }
182238104Sdesas_fn_ret_success () { return 0; }
183238104Sdesas_fn_ret_failure () { return 1; }
184238104Sdes
185238104Sdesexitcode=0
186238104Sdesas_fn_success || { exitcode=1; echo as_fn_success failed.; }
187238104Sdesas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188238104Sdesas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189238104Sdesas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190238104Sdesif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191238104Sdes
192238104Sdeselse
193238104Sdes  exitcode=1; echo positional parameters were not saved.
194238104Sdesfi
195285206Sdestest x\$exitcode = x0 || exit 1
196285206Sdestest -x / || exit 1"
197238104Sdes  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198238104Sdes  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199238104Sdes  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200238104Sdes  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201238104Sdestest \$(( 1 + 1 )) = 2 || exit 1
202238104Sdes
203238104Sdes  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204238104Sdes    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205238104Sdes    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206238104Sdes    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207238104Sdes    PATH=/empty FPATH=/empty; export PATH FPATH
208238104Sdes    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209238104Sdes      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210238104Sdes  if (eval "$as_required") 2>/dev/null; then :
211238104Sdes  as_have_required=yes
212238104Sdeselse
213238104Sdes  as_have_required=no
214238104Sdesfi
215238104Sdes  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216238104Sdes
217238104Sdeselse
218238104Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219238104Sdesas_found=false
220238104Sdesfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221238104Sdesdo
222238104Sdes  IFS=$as_save_IFS
223238104Sdes  test -z "$as_dir" && as_dir=.
224238104Sdes  as_found=:
225238104Sdes  case $as_dir in #(
226238104Sdes	 /*)
227238104Sdes	   for as_base in sh bash ksh sh5; do
228238104Sdes	     # Try only shells that exist, to save several forks.
229238104Sdes	     as_shell=$as_dir/$as_base
230238104Sdes	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231238104Sdes		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232238104Sdes  CONFIG_SHELL=$as_shell as_have_required=yes
233238104Sdes		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234238104Sdes  break 2
235238104Sdesfi
236238104Sdesfi
237238104Sdes	   done;;
238238104Sdes       esac
239238104Sdes  as_found=false
240238104Sdesdone
241238104Sdes$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242238104Sdes	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243238104Sdes  CONFIG_SHELL=$SHELL as_have_required=yes
244238104Sdesfi; }
245238104SdesIFS=$as_save_IFS
246238104Sdes
247238104Sdes
248238104Sdes      if test "x$CONFIG_SHELL" != x; then :
249285206Sdes  export CONFIG_SHELL
250285206Sdes             # We cannot yet assume a decent shell, so we have to provide a
251285206Sdes# neutralization value for shells without unset; and this also
252285206Sdes# works around shells that cannot unset nonexistent variables.
253285206Sdes# Preserve -v and -x to the replacement shell.
254285206SdesBASH_ENV=/dev/null
255285206SdesENV=/dev/null
256285206Sdes(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257285206Sdescase $- in # ((((
258285206Sdes  *v*x* | *x*v* ) as_opts=-vx ;;
259285206Sdes  *v* ) as_opts=-v ;;
260285206Sdes  *x* ) as_opts=-x ;;
261285206Sdes  * ) as_opts= ;;
262285206Sdesesac
263285206Sdesexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264285206Sdes# Admittedly, this is quite paranoid, since all the known shells bail
265285206Sdes# out after a failed `exec'.
266285206Sdes$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267285206Sdesexit 255
268238104Sdesfi
269238104Sdes
270238104Sdes    if test x$as_have_required = xno; then :
271238104Sdes  $as_echo "$0: This script requires a shell more modern than all"
272238104Sdes  $as_echo "$0: the shells that I found on your system."
273238104Sdes  if test x${ZSH_VERSION+set} = xset ; then
274238104Sdes    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275238104Sdes    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276238104Sdes  else
277238104Sdes    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278238104Sdes$0: libdns@nlnetlabs.nl about your system, including any
279238104Sdes$0: error possibly output before this message. Then install
280238104Sdes$0: a modern shell, or manually run the script under such a
281238104Sdes$0: shell if you do have one."
282238104Sdes  fi
283238104Sdes  exit 1
284238104Sdesfi
285238104Sdesfi
286238104Sdesfi
287238104SdesSHELL=${CONFIG_SHELL-/bin/sh}
288238104Sdesexport SHELL
289238104Sdes# Unset more variables known to interfere with behavior of common tools.
290238104SdesCLICOLOR_FORCE= GREP_OPTIONS=
291238104Sdesunset CLICOLOR_FORCE GREP_OPTIONS
292238104Sdes
293238104Sdes## --------------------- ##
294238104Sdes## M4sh Shell Functions. ##
295238104Sdes## --------------------- ##
296238104Sdes# as_fn_unset VAR
297238104Sdes# ---------------
298238104Sdes# Portably unset VAR.
299238104Sdesas_fn_unset ()
300238104Sdes{
301238104Sdes  { eval $1=; unset $1;}
302238104Sdes}
303238104Sdesas_unset=as_fn_unset
304238104Sdes
305238104Sdes# as_fn_set_status STATUS
306238104Sdes# -----------------------
307238104Sdes# Set $? to STATUS, without forking.
308238104Sdesas_fn_set_status ()
309238104Sdes{
310238104Sdes  return $1
311238104Sdes} # as_fn_set_status
312238104Sdes
313238104Sdes# as_fn_exit STATUS
314238104Sdes# -----------------
315238104Sdes# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316238104Sdesas_fn_exit ()
317238104Sdes{
318238104Sdes  set +e
319238104Sdes  as_fn_set_status $1
320238104Sdes  exit $1
321238104Sdes} # as_fn_exit
322238104Sdes
323238104Sdes# as_fn_mkdir_p
324238104Sdes# -------------
325238104Sdes# Create "$as_dir" as a directory, including parents if necessary.
326238104Sdesas_fn_mkdir_p ()
327238104Sdes{
328238104Sdes
329238104Sdes  case $as_dir in #(
330238104Sdes  -*) as_dir=./$as_dir;;
331238104Sdes  esac
332238104Sdes  test -d "$as_dir" || eval $as_mkdir_p || {
333238104Sdes    as_dirs=
334238104Sdes    while :; do
335238104Sdes      case $as_dir in #(
336238104Sdes      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337238104Sdes      *) as_qdir=$as_dir;;
338238104Sdes      esac
339238104Sdes      as_dirs="'$as_qdir' $as_dirs"
340238104Sdes      as_dir=`$as_dirname -- "$as_dir" ||
341238104Sdes$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342238104Sdes	 X"$as_dir" : 'X\(//\)[^/]' \| \
343238104Sdes	 X"$as_dir" : 'X\(//\)$' \| \
344238104Sdes	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345238104Sdes$as_echo X"$as_dir" |
346238104Sdes    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347238104Sdes	    s//\1/
348238104Sdes	    q
349238104Sdes	  }
350238104Sdes	  /^X\(\/\/\)[^/].*/{
351238104Sdes	    s//\1/
352238104Sdes	    q
353238104Sdes	  }
354238104Sdes	  /^X\(\/\/\)$/{
355238104Sdes	    s//\1/
356238104Sdes	    q
357238104Sdes	  }
358238104Sdes	  /^X\(\/\).*/{
359238104Sdes	    s//\1/
360238104Sdes	    q
361238104Sdes	  }
362238104Sdes	  s/.*/./; q'`
363238104Sdes      test -d "$as_dir" && break
364238104Sdes    done
365238104Sdes    test -z "$as_dirs" || eval "mkdir $as_dirs"
366238104Sdes  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367238104Sdes
368238104Sdes
369238104Sdes} # as_fn_mkdir_p
370285206Sdes
371285206Sdes# as_fn_executable_p FILE
372285206Sdes# -----------------------
373285206Sdes# Test if FILE is an executable regular file.
374285206Sdesas_fn_executable_p ()
375285206Sdes{
376285206Sdes  test -f "$1" && test -x "$1"
377285206Sdes} # as_fn_executable_p
378238104Sdes# as_fn_append VAR VALUE
379238104Sdes# ----------------------
380238104Sdes# Append the text in VALUE to the end of the definition contained in VAR. Take
381238104Sdes# advantage of any shell optimizations that allow amortized linear growth over
382238104Sdes# repeated appends, instead of the typical quadratic growth present in naive
383238104Sdes# implementations.
384238104Sdesif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385238104Sdes  eval 'as_fn_append ()
386238104Sdes  {
387238104Sdes    eval $1+=\$2
388238104Sdes  }'
389238104Sdeselse
390238104Sdes  as_fn_append ()
391238104Sdes  {
392238104Sdes    eval $1=\$$1\$2
393238104Sdes  }
394238104Sdesfi # as_fn_append
395238104Sdes
396238104Sdes# as_fn_arith ARG...
397238104Sdes# ------------------
398238104Sdes# Perform arithmetic evaluation on the ARGs, and store the result in the
399238104Sdes# global $as_val. Take advantage of shells that can avoid forks. The arguments
400238104Sdes# must be portable across $(()) and expr.
401238104Sdesif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402238104Sdes  eval 'as_fn_arith ()
403238104Sdes  {
404238104Sdes    as_val=$(( $* ))
405238104Sdes  }'
406238104Sdeselse
407238104Sdes  as_fn_arith ()
408238104Sdes  {
409238104Sdes    as_val=`expr "$@" || test $? -eq 1`
410238104Sdes  }
411238104Sdesfi # as_fn_arith
412238104Sdes
413238104Sdes
414238104Sdes# as_fn_error STATUS ERROR [LINENO LOG_FD]
415238104Sdes# ----------------------------------------
416238104Sdes# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417238104Sdes# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418238104Sdes# script with STATUS, using 1 if that was 0.
419238104Sdesas_fn_error ()
420238104Sdes{
421238104Sdes  as_status=$1; test $as_status -eq 0 && as_status=1
422238104Sdes  if test "$4"; then
423238104Sdes    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425238104Sdes  fi
426238104Sdes  $as_echo "$as_me: error: $2" >&2
427238104Sdes  as_fn_exit $as_status
428238104Sdes} # as_fn_error
429238104Sdes
430238104Sdesif expr a : '\(a\)' >/dev/null 2>&1 &&
431238104Sdes   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432238104Sdes  as_expr=expr
433238104Sdeselse
434238104Sdes  as_expr=false
435238104Sdesfi
436238104Sdes
437238104Sdesif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438238104Sdes  as_basename=basename
439238104Sdeselse
440238104Sdes  as_basename=false
441238104Sdesfi
442238104Sdes
443238104Sdesif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444238104Sdes  as_dirname=dirname
445238104Sdeselse
446238104Sdes  as_dirname=false
447238104Sdesfi
448238104Sdes
449238104Sdesas_me=`$as_basename -- "$0" ||
450238104Sdes$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451238104Sdes	 X"$0" : 'X\(//\)$' \| \
452238104Sdes	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453238104Sdes$as_echo X/"$0" |
454238104Sdes    sed '/^.*\/\([^/][^/]*\)\/*$/{
455238104Sdes	    s//\1/
456238104Sdes	    q
457238104Sdes	  }
458238104Sdes	  /^X\/\(\/\/\)$/{
459238104Sdes	    s//\1/
460238104Sdes	    q
461238104Sdes	  }
462238104Sdes	  /^X\/\(\/\).*/{
463238104Sdes	    s//\1/
464238104Sdes	    q
465238104Sdes	  }
466238104Sdes	  s/.*/./; q'`
467238104Sdes
468238104Sdes# Avoid depending upon Character Ranges.
469238104Sdesas_cr_letters='abcdefghijklmnopqrstuvwxyz'
470238104Sdesas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471238104Sdesas_cr_Letters=$as_cr_letters$as_cr_LETTERS
472238104Sdesas_cr_digits='0123456789'
473238104Sdesas_cr_alnum=$as_cr_Letters$as_cr_digits
474238104Sdes
475238104Sdes
476238104Sdes  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477238104Sdes  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478238104Sdes  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479238104Sdes  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480238104Sdes  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481238104Sdes  sed -n '
482238104Sdes    p
483238104Sdes    /[$]LINENO/=
484238104Sdes  ' <$as_myself |
485238104Sdes    sed '
486238104Sdes      s/[$]LINENO.*/&-/
487238104Sdes      t lineno
488238104Sdes      b
489238104Sdes      :lineno
490238104Sdes      N
491238104Sdes      :loop
492238104Sdes      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493238104Sdes      t loop
494238104Sdes      s/-\n.*//
495238104Sdes    ' >$as_me.lineno &&
496238104Sdes  chmod +x "$as_me.lineno" ||
497238104Sdes    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498238104Sdes
499285206Sdes  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500285206Sdes  # already done that, so ensure we don't try to do so again and fall
501285206Sdes  # in an infinite loop.  This has already happened in practice.
502285206Sdes  _as_can_reexec=no; export _as_can_reexec
503238104Sdes  # Don't try to exec as it changes $[0], causing all sort of problems
504238104Sdes  # (the dirname of $[0] is not the place where we might find the
505238104Sdes  # original and so on.  Autoconf is especially sensitive to this).
506238104Sdes  . "./$as_me.lineno"
507238104Sdes  # Exit status is that of the last command.
508238104Sdes  exit
509238104Sdes}
510238104Sdes
511238104SdesECHO_C= ECHO_N= ECHO_T=
512238104Sdescase `echo -n x` in #(((((
513238104Sdes-n*)
514238104Sdes  case `echo 'xy\c'` in
515238104Sdes  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516238104Sdes  xy)  ECHO_C='\c';;
517238104Sdes  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518238104Sdes       ECHO_T='	';;
519238104Sdes  esac;;
520238104Sdes*)
521238104Sdes  ECHO_N='-n';;
522238104Sdesesac
523238104Sdes
524238104Sdesrm -f conf$$ conf$$.exe conf$$.file
525238104Sdesif test -d conf$$.dir; then
526238104Sdes  rm -f conf$$.dir/conf$$.file
527238104Sdeselse
528238104Sdes  rm -f conf$$.dir
529238104Sdes  mkdir conf$$.dir 2>/dev/null
530238104Sdesfi
531238104Sdesif (echo >conf$$.file) 2>/dev/null; then
532238104Sdes  if ln -s conf$$.file conf$$ 2>/dev/null; then
533238104Sdes    as_ln_s='ln -s'
534238104Sdes    # ... but there are two gotchas:
535238104Sdes    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536238104Sdes    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537285206Sdes    # In both cases, we have to default to `cp -pR'.
538238104Sdes    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539285206Sdes      as_ln_s='cp -pR'
540238104Sdes  elif ln conf$$.file conf$$ 2>/dev/null; then
541238104Sdes    as_ln_s=ln
542238104Sdes  else
543285206Sdes    as_ln_s='cp -pR'
544238104Sdes  fi
545238104Sdeselse
546285206Sdes  as_ln_s='cp -pR'
547238104Sdesfi
548238104Sdesrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549238104Sdesrmdir conf$$.dir 2>/dev/null
550238104Sdes
551238104Sdesif mkdir -p . 2>/dev/null; then
552238104Sdes  as_mkdir_p='mkdir -p "$as_dir"'
553238104Sdeselse
554238104Sdes  test -d ./-p && rmdir ./-p
555238104Sdes  as_mkdir_p=false
556238104Sdesfi
557238104Sdes
558285206Sdesas_test_x='test -x'
559285206Sdesas_executable_p=as_fn_executable_p
560238104Sdes
561238104Sdes# Sed expression to map a string onto a valid CPP name.
562238104Sdesas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563238104Sdes
564238104Sdes# Sed expression to map a string onto a valid variable name.
565238104Sdesas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566238104Sdes
567238104SdesSHELL=${CONFIG_SHELL-/bin/sh}
568238104Sdes
569238104Sdes
570238104Sdestest -n "$DJDIR" || exec 7<&0 </dev/null
571238104Sdesexec 6>&1
572238104Sdes
573238104Sdes# Name of the host.
574238104Sdes# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575238104Sdes# so uname gets run too.
576238104Sdesac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577238104Sdes
578238104Sdes#
579238104Sdes# Initializations.
580238104Sdes#
581238104Sdesac_default_prefix=/usr/local
582238104Sdesac_clean_files=
583238104Sdesac_config_libobj_dir=.
584238104SdesLIBOBJS=
585238104Sdescross_compiling=no
586238104Sdessubdirs=
587238104SdesMFLAGS=
588238104SdesMAKEFLAGS=
589238104Sdes
590238104Sdes# Identity of this package.
591238104SdesPACKAGE_NAME='ldns'
592238104SdesPACKAGE_TARNAME='libdns'
593269257SdesPACKAGE_VERSION='1.6.17'
594269257SdesPACKAGE_STRING='ldns 1.6.17'
595238104SdesPACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
596238104SdesPACKAGE_URL=''
597238104Sdes
598238104Sdesac_unique_file="packet.c"
599238104Sdes# Factoring default headers for most tests.
600238104Sdesac_includes_default="\
601238104Sdes#include <stdio.h>
602238104Sdes#ifdef HAVE_SYS_TYPES_H
603238104Sdes# include <sys/types.h>
604238104Sdes#endif
605238104Sdes#ifdef HAVE_SYS_STAT_H
606238104Sdes# include <sys/stat.h>
607238104Sdes#endif
608238104Sdes#ifdef STDC_HEADERS
609238104Sdes# include <stdlib.h>
610238104Sdes# include <stddef.h>
611238104Sdes#else
612238104Sdes# ifdef HAVE_STDLIB_H
613238104Sdes#  include <stdlib.h>
614238104Sdes# endif
615238104Sdes#endif
616238104Sdes#ifdef HAVE_STRING_H
617238104Sdes# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618238104Sdes#  include <memory.h>
619238104Sdes# endif
620238104Sdes# include <string.h>
621238104Sdes#endif
622238104Sdes#ifdef HAVE_STRINGS_H
623238104Sdes# include <strings.h>
624238104Sdes#endif
625238104Sdes#ifdef HAVE_INTTYPES_H
626238104Sdes# include <inttypes.h>
627238104Sdes#endif
628238104Sdes#ifdef HAVE_STDINT_H
629238104Sdes# include <stdint.h>
630238104Sdes#endif
631238104Sdes#ifdef HAVE_UNISTD_H
632238104Sdes# include <unistd.h>
633238104Sdes#endif"
634238104Sdes
635238104Sdesac_subst_vars='LTLIBOBJS
636246854SdesCONFIG_FILES
637238104Sdesldns_build_config_have_attr_unused
638238104Sdesldns_build_config_have_attr_format
639238104Sdesldns_build_config_have_ssl
640246854SdesDEFAULT_CAPATH
641246854SdesDEFAULT_CAFILE
642246854SdesLDNS_TRUST_ANCHOR_FILE
643238104SdesWINDRES
644269257Sdesldns_build_config_have_b32_pton
645269257Sdesldns_build_config_have_b32_ntop
646238104SdesLIBOBJS
647246854Sdesldns_build_config_have_socklen_t
648238104SdesLIBPCAP_LIBS
649238104Sdesinclude_unistd_h
650238104Sdesinclude_systypes_h
651238104Sdesinclude_inttypes_h
652238104Sdesldns_build_config_have_inttypes_h
653238104Sdesinclude_sys_socket_h
654246854SdesLIBSSL_SSL_LIBS
655238104SdesLIBSSL_LIBS
656238104SdesLIBSSL_LDFLAGS
657238104SdesLIBSSL_CPPFLAGS
658269257Sdesldns_build_config_use_dane
659238104SdesRUNTIME_PATH
660238104SdesHAVE_SSL
661238104Sdeslibtool
662269257SdesCLEAN_P5_DNS_LDNS
663269257SdesUNINSTALL_P5_DNS_LDNS
664269257SdesINSTALL_P5_DNS_LDNS
665269257SdesTEST_P5_DNS_LDNS
666269257SdesP5_DNS_LDNS
667269257SdesPERL
668238104SdesPYLDNSXUNINST
669238104SdesPYLDNSXINST
670238104SdesPYLDNSUNINST
671238104SdesPYLDNSINST
672238104SdesPYLDNSX
673238104SdesPYTHON_X_CFLAGS
674238104Sdesswig
675238104SdesPYLDNS
676238104SdesSWIG_LIB
677238104SdesSWIG
678238104SdesSWIGPY3
679238104SdesPYTHON_EXTRA_LDFLAGS
680238104SdesPYTHON_EXTRA_LIBS
681238104SdesPYTHON_SITE_PKG
682238104SdesPYTHON_LDFLAGS
683238104SdesPYTHON_CPPFLAGS
684238104SdesPYTHON
685238104SdesPYTHON_VERSION
686238104SdesUNINSTALL_CONFIG_MANPAGE
687238104SdesUNINSTALL_CONFIG
688238104SdesINSTALL_CONFIG_MANPAGE
689238104SdesINSTALL_CONFIG
690238104SdesLINT_EXAMPLES
691238104SdesCLEAN_EXAMPLES
692238104SdesUNINSTALL_EXAMPLES
693238104SdesINSTALL_EXAMPLES
694238104SdesEXAMPLES
695238104SdesLINT_DRILL
696238104SdesCLEAN_DRILL
697238104SdesUNINSTALL_DRILL
698238104SdesINSTALL_DRILL
699238104SdesDRILL
700238104Sdesdoxygen
701238104SdesLINTFLAGS
702269257SdesSET_MAKE
703269257SdesDEPFLAG
704269257SdesOTOOL64
705269257SdesOTOOL
706269257SdesLIPO
707269257SdesNMEDIT
708269257SdesDSYMUTIL
709269257SdesMANIFEST_TOOL
710269257SdesAWK
711269257SdesRANLIB
712269257SdesSTRIP
713269257Sdesac_ct_AR
714269257SdesAR
715269257SdesDLLTOOL
716269257SdesOBJDUMP
717269257SdesLN_S
718269257SdesNM
719269257Sdesac_ct_DUMPBIN
720269257SdesDUMPBIN
721269257SdesLD
722269257SdesFGREP
723269257SdesSED
724238104Sdeshost_os
725238104Sdeshost_vendor
726238104Sdeshost_cpu
727238104Sdeshost
728238104Sdesbuild_os
729238104Sdesbuild_vendor
730238104Sdesbuild_cpu
731238104Sdesbuild
732269257SdesLIBTOOL
733238104SdesEGREP
734238104SdesGREP
735238104SdesCPP
736238104SdesOBJEXT
737238104SdesEXEEXT
738238104Sdesac_ct_CC
739238104SdesCPPFLAGS
740238104SdesLDFLAGS
741238104SdesCFLAGS
742238104SdesCC
743269257SdesVERSION_INFO
744238104SdesLDNS_VERSION_MICRO
745238104SdesLDNS_VERSION_MINOR
746238104SdesLDNS_VERSION_MAJOR
747238104Sdestarget_alias
748238104Sdeshost_alias
749238104Sdesbuild_alias
750238104SdesLIBS
751238104SdesECHO_T
752238104SdesECHO_N
753238104SdesECHO_C
754238104SdesDEFS
755238104Sdesmandir
756238104Sdeslocaledir
757238104Sdeslibdir
758238104Sdespsdir
759238104Sdespdfdir
760238104Sdesdvidir
761238104Sdeshtmldir
762238104Sdesinfodir
763238104Sdesdocdir
764238104Sdesoldincludedir
765238104Sdesincludedir
766238104Sdeslocalstatedir
767238104Sdessharedstatedir
768238104Sdessysconfdir
769238104Sdesdatadir
770238104Sdesdatarootdir
771238104Sdeslibexecdir
772238104Sdessbindir
773238104Sdesbindir
774238104Sdesprogram_transform_name
775238104Sdesprefix
776238104Sdesexec_prefix
777238104SdesPACKAGE_URL
778238104SdesPACKAGE_BUGREPORT
779238104SdesPACKAGE_STRING
780238104SdesPACKAGE_VERSION
781238104SdesPACKAGE_TARNAME
782238104SdesPACKAGE_NAME
783238104SdesPATH_SEPARATOR
784238104SdesSHELL'
785238104Sdesac_subst_files=''
786238104Sdesac_user_opts='
787238104Sdesenable_option_checking
788238104Sdesenable_shared
789238104Sdesenable_static
790238104Sdeswith_pic
791238104Sdesenable_fast_install
792238104Sdeswith_gnu_ld
793238104Sdeswith_sysroot
794238104Sdesenable_libtool_lock
795269257Sdeswith_drill
796269257Sdeswith_examples
797269257Sdesenable_ldns_config
798269257Sdesenable_stderr_msgs
799269257Sdeswith_pyldns
800269257Sdeswith_pyldnsx
801269257Sdeswith_p5_dns_ldns
802238104Sdeswith_ssl
803238104Sdesenable_sha2
804238104Sdesenable_gost
805238104Sdesenable_ecdsa
806269257Sdesenable_dane
807269257Sdesenable_rrtype_ninfo
808269257Sdesenable_rrtype_rkey
809269257Sdesenable_rrtype_cds
810269257Sdesenable_rrtype_uri
811269257Sdesenable_rrtype_ta
812238104Sdesenable_rpath
813246854Sdeswith_trust_anchor
814246854Sdeswith_ca_file
815246854Sdeswith_ca_path
816238104Sdes'
817238104Sdes      ac_precious_vars='build_alias
818238104Sdeshost_alias
819238104Sdestarget_alias
820238104SdesCC
821238104SdesCFLAGS
822238104SdesLDFLAGS
823238104SdesLIBS
824238104SdesCPPFLAGS
825238104SdesCPP
826238104SdesPYTHON_VERSION'
827238104Sdes
828238104Sdes
829238104Sdes# Initialize some variables set by options.
830238104Sdesac_init_help=
831238104Sdesac_init_version=false
832238104Sdesac_unrecognized_opts=
833238104Sdesac_unrecognized_sep=
834238104Sdes# The variables have the same names as the options, with
835238104Sdes# dashes changed to underlines.
836238104Sdescache_file=/dev/null
837238104Sdesexec_prefix=NONE
838238104Sdesno_create=
839238104Sdesno_recursion=
840238104Sdesprefix=NONE
841238104Sdesprogram_prefix=NONE
842238104Sdesprogram_suffix=NONE
843238104Sdesprogram_transform_name=s,x,x,
844238104Sdessilent=
845238104Sdessite=
846238104Sdessrcdir=
847238104Sdesverbose=
848238104Sdesx_includes=NONE
849238104Sdesx_libraries=NONE
850238104Sdes
851238104Sdes# Installation directory options.
852238104Sdes# These are left unexpanded so users can "make install exec_prefix=/foo"
853238104Sdes# and all the variables that are supposed to be based on exec_prefix
854238104Sdes# by default will actually change.
855238104Sdes# Use braces instead of parens because sh, perl, etc. also accept them.
856238104Sdes# (The list follows the same order as the GNU Coding Standards.)
857238104Sdesbindir='${exec_prefix}/bin'
858238104Sdessbindir='${exec_prefix}/sbin'
859238104Sdeslibexecdir='${exec_prefix}/libexec'
860238104Sdesdatarootdir='${prefix}/share'
861238104Sdesdatadir='${datarootdir}'
862238104Sdessysconfdir='${prefix}/etc'
863238104Sdessharedstatedir='${prefix}/com'
864238104Sdeslocalstatedir='${prefix}/var'
865238104Sdesincludedir='${prefix}/include'
866238104Sdesoldincludedir='/usr/include'
867238104Sdesdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868238104Sdesinfodir='${datarootdir}/info'
869238104Sdeshtmldir='${docdir}'
870238104Sdesdvidir='${docdir}'
871238104Sdespdfdir='${docdir}'
872238104Sdespsdir='${docdir}'
873238104Sdeslibdir='${exec_prefix}/lib'
874238104Sdeslocaledir='${datarootdir}/locale'
875238104Sdesmandir='${datarootdir}/man'
876238104Sdes
877238104Sdesac_prev=
878238104Sdesac_dashdash=
879238104Sdesfor ac_option
880238104Sdesdo
881238104Sdes  # If the previous option needs an argument, assign it.
882238104Sdes  if test -n "$ac_prev"; then
883238104Sdes    eval $ac_prev=\$ac_option
884238104Sdes    ac_prev=
885238104Sdes    continue
886238104Sdes  fi
887238104Sdes
888238104Sdes  case $ac_option in
889238104Sdes  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890238104Sdes  *=)   ac_optarg= ;;
891238104Sdes  *)    ac_optarg=yes ;;
892238104Sdes  esac
893238104Sdes
894238104Sdes  # Accept the important Cygnus configure options, so we can diagnose typos.
895238104Sdes
896238104Sdes  case $ac_dashdash$ac_option in
897238104Sdes  --)
898238104Sdes    ac_dashdash=yes ;;
899238104Sdes
900238104Sdes  -bindir | --bindir | --bindi | --bind | --bin | --bi)
901238104Sdes    ac_prev=bindir ;;
902238104Sdes  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903238104Sdes    bindir=$ac_optarg ;;
904238104Sdes
905238104Sdes  -build | --build | --buil | --bui | --bu)
906238104Sdes    ac_prev=build_alias ;;
907238104Sdes  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908238104Sdes    build_alias=$ac_optarg ;;
909238104Sdes
910238104Sdes  -cache-file | --cache-file | --cache-fil | --cache-fi \
911238104Sdes  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912238104Sdes    ac_prev=cache_file ;;
913238104Sdes  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914238104Sdes  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915238104Sdes    cache_file=$ac_optarg ;;
916238104Sdes
917238104Sdes  --config-cache | -C)
918238104Sdes    cache_file=config.cache ;;
919238104Sdes
920238104Sdes  -datadir | --datadir | --datadi | --datad)
921238104Sdes    ac_prev=datadir ;;
922238104Sdes  -datadir=* | --datadir=* | --datadi=* | --datad=*)
923238104Sdes    datadir=$ac_optarg ;;
924238104Sdes
925238104Sdes  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926238104Sdes  | --dataroo | --dataro | --datar)
927238104Sdes    ac_prev=datarootdir ;;
928238104Sdes  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929238104Sdes  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930238104Sdes    datarootdir=$ac_optarg ;;
931238104Sdes
932238104Sdes  -disable-* | --disable-*)
933238104Sdes    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934238104Sdes    # Reject names that are not valid shell variable names.
935238104Sdes    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936238104Sdes      as_fn_error $? "invalid feature name: $ac_useropt"
937238104Sdes    ac_useropt_orig=$ac_useropt
938238104Sdes    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939238104Sdes    case $ac_user_opts in
940238104Sdes      *"
941238104Sdes"enable_$ac_useropt"
942238104Sdes"*) ;;
943238104Sdes      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944238104Sdes	 ac_unrecognized_sep=', ';;
945238104Sdes    esac
946238104Sdes    eval enable_$ac_useropt=no ;;
947238104Sdes
948238104Sdes  -docdir | --docdir | --docdi | --doc | --do)
949238104Sdes    ac_prev=docdir ;;
950238104Sdes  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951238104Sdes    docdir=$ac_optarg ;;
952238104Sdes
953238104Sdes  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954238104Sdes    ac_prev=dvidir ;;
955238104Sdes  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956238104Sdes    dvidir=$ac_optarg ;;
957238104Sdes
958238104Sdes  -enable-* | --enable-*)
959238104Sdes    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960238104Sdes    # Reject names that are not valid shell variable names.
961238104Sdes    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962238104Sdes      as_fn_error $? "invalid feature name: $ac_useropt"
963238104Sdes    ac_useropt_orig=$ac_useropt
964238104Sdes    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965238104Sdes    case $ac_user_opts in
966238104Sdes      *"
967238104Sdes"enable_$ac_useropt"
968238104Sdes"*) ;;
969238104Sdes      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970238104Sdes	 ac_unrecognized_sep=', ';;
971238104Sdes    esac
972238104Sdes    eval enable_$ac_useropt=\$ac_optarg ;;
973238104Sdes
974238104Sdes  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975238104Sdes  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976238104Sdes  | --exec | --exe | --ex)
977238104Sdes    ac_prev=exec_prefix ;;
978238104Sdes  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979238104Sdes  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980238104Sdes  | --exec=* | --exe=* | --ex=*)
981238104Sdes    exec_prefix=$ac_optarg ;;
982238104Sdes
983238104Sdes  -gas | --gas | --ga | --g)
984238104Sdes    # Obsolete; use --with-gas.
985238104Sdes    with_gas=yes ;;
986238104Sdes
987238104Sdes  -help | --help | --hel | --he | -h)
988238104Sdes    ac_init_help=long ;;
989238104Sdes  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990238104Sdes    ac_init_help=recursive ;;
991238104Sdes  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992238104Sdes    ac_init_help=short ;;
993238104Sdes
994238104Sdes  -host | --host | --hos | --ho)
995238104Sdes    ac_prev=host_alias ;;
996238104Sdes  -host=* | --host=* | --hos=* | --ho=*)
997238104Sdes    host_alias=$ac_optarg ;;
998238104Sdes
999238104Sdes  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000238104Sdes    ac_prev=htmldir ;;
1001238104Sdes  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002238104Sdes  | --ht=*)
1003238104Sdes    htmldir=$ac_optarg ;;
1004238104Sdes
1005238104Sdes  -includedir | --includedir | --includedi | --included | --include \
1006238104Sdes  | --includ | --inclu | --incl | --inc)
1007238104Sdes    ac_prev=includedir ;;
1008238104Sdes  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009238104Sdes  | --includ=* | --inclu=* | --incl=* | --inc=*)
1010238104Sdes    includedir=$ac_optarg ;;
1011238104Sdes
1012238104Sdes  -infodir | --infodir | --infodi | --infod | --info | --inf)
1013238104Sdes    ac_prev=infodir ;;
1014238104Sdes  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015238104Sdes    infodir=$ac_optarg ;;
1016238104Sdes
1017238104Sdes  -libdir | --libdir | --libdi | --libd)
1018238104Sdes    ac_prev=libdir ;;
1019238104Sdes  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020238104Sdes    libdir=$ac_optarg ;;
1021238104Sdes
1022238104Sdes  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023238104Sdes  | --libexe | --libex | --libe)
1024238104Sdes    ac_prev=libexecdir ;;
1025238104Sdes  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026238104Sdes  | --libexe=* | --libex=* | --libe=*)
1027238104Sdes    libexecdir=$ac_optarg ;;
1028238104Sdes
1029238104Sdes  -localedir | --localedir | --localedi | --localed | --locale)
1030238104Sdes    ac_prev=localedir ;;
1031238104Sdes  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032238104Sdes    localedir=$ac_optarg ;;
1033238104Sdes
1034238104Sdes  -localstatedir | --localstatedir | --localstatedi | --localstated \
1035238104Sdes  | --localstate | --localstat | --localsta | --localst | --locals)
1036238104Sdes    ac_prev=localstatedir ;;
1037238104Sdes  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038238104Sdes  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039238104Sdes    localstatedir=$ac_optarg ;;
1040238104Sdes
1041238104Sdes  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042238104Sdes    ac_prev=mandir ;;
1043238104Sdes  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044238104Sdes    mandir=$ac_optarg ;;
1045238104Sdes
1046238104Sdes  -nfp | --nfp | --nf)
1047238104Sdes    # Obsolete; use --without-fp.
1048238104Sdes    with_fp=no ;;
1049238104Sdes
1050238104Sdes  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051238104Sdes  | --no-cr | --no-c | -n)
1052238104Sdes    no_create=yes ;;
1053238104Sdes
1054238104Sdes  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055238104Sdes  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056238104Sdes    no_recursion=yes ;;
1057238104Sdes
1058238104Sdes  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059238104Sdes  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060238104Sdes  | --oldin | --oldi | --old | --ol | --o)
1061238104Sdes    ac_prev=oldincludedir ;;
1062238104Sdes  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063238104Sdes  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064238104Sdes  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065238104Sdes    oldincludedir=$ac_optarg ;;
1066238104Sdes
1067238104Sdes  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068238104Sdes    ac_prev=prefix ;;
1069238104Sdes  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070238104Sdes    prefix=$ac_optarg ;;
1071238104Sdes
1072238104Sdes  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073238104Sdes  | --program-pre | --program-pr | --program-p)
1074238104Sdes    ac_prev=program_prefix ;;
1075238104Sdes  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076238104Sdes  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077238104Sdes    program_prefix=$ac_optarg ;;
1078238104Sdes
1079238104Sdes  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080238104Sdes  | --program-suf | --program-su | --program-s)
1081238104Sdes    ac_prev=program_suffix ;;
1082238104Sdes  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083238104Sdes  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084238104Sdes    program_suffix=$ac_optarg ;;
1085238104Sdes
1086238104Sdes  -program-transform-name | --program-transform-name \
1087238104Sdes  | --program-transform-nam | --program-transform-na \
1088238104Sdes  | --program-transform-n | --program-transform- \
1089238104Sdes  | --program-transform | --program-transfor \
1090238104Sdes  | --program-transfo | --program-transf \
1091238104Sdes  | --program-trans | --program-tran \
1092238104Sdes  | --progr-tra | --program-tr | --program-t)
1093238104Sdes    ac_prev=program_transform_name ;;
1094238104Sdes  -program-transform-name=* | --program-transform-name=* \
1095238104Sdes  | --program-transform-nam=* | --program-transform-na=* \
1096238104Sdes  | --program-transform-n=* | --program-transform-=* \
1097238104Sdes  | --program-transform=* | --program-transfor=* \
1098238104Sdes  | --program-transfo=* | --program-transf=* \
1099238104Sdes  | --program-trans=* | --program-tran=* \
1100238104Sdes  | --progr-tra=* | --program-tr=* | --program-t=*)
1101238104Sdes    program_transform_name=$ac_optarg ;;
1102238104Sdes
1103238104Sdes  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104238104Sdes    ac_prev=pdfdir ;;
1105238104Sdes  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106238104Sdes    pdfdir=$ac_optarg ;;
1107238104Sdes
1108238104Sdes  -psdir | --psdir | --psdi | --psd | --ps)
1109238104Sdes    ac_prev=psdir ;;
1110238104Sdes  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111238104Sdes    psdir=$ac_optarg ;;
1112238104Sdes
1113238104Sdes  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114238104Sdes  | -silent | --silent | --silen | --sile | --sil)
1115238104Sdes    silent=yes ;;
1116238104Sdes
1117238104Sdes  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118238104Sdes    ac_prev=sbindir ;;
1119238104Sdes  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120238104Sdes  | --sbi=* | --sb=*)
1121238104Sdes    sbindir=$ac_optarg ;;
1122238104Sdes
1123238104Sdes  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124238104Sdes  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125238104Sdes  | --sharedst | --shareds | --shared | --share | --shar \
1126238104Sdes  | --sha | --sh)
1127238104Sdes    ac_prev=sharedstatedir ;;
1128238104Sdes  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129238104Sdes  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130238104Sdes  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131238104Sdes  | --sha=* | --sh=*)
1132238104Sdes    sharedstatedir=$ac_optarg ;;
1133238104Sdes
1134238104Sdes  -site | --site | --sit)
1135238104Sdes    ac_prev=site ;;
1136238104Sdes  -site=* | --site=* | --sit=*)
1137238104Sdes    site=$ac_optarg ;;
1138238104Sdes
1139238104Sdes  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140238104Sdes    ac_prev=srcdir ;;
1141238104Sdes  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142238104Sdes    srcdir=$ac_optarg ;;
1143238104Sdes
1144238104Sdes  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145238104Sdes  | --syscon | --sysco | --sysc | --sys | --sy)
1146238104Sdes    ac_prev=sysconfdir ;;
1147238104Sdes  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148238104Sdes  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149238104Sdes    sysconfdir=$ac_optarg ;;
1150238104Sdes
1151238104Sdes  -target | --target | --targe | --targ | --tar | --ta | --t)
1152238104Sdes    ac_prev=target_alias ;;
1153238104Sdes  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154238104Sdes    target_alias=$ac_optarg ;;
1155238104Sdes
1156238104Sdes  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157238104Sdes    verbose=yes ;;
1158238104Sdes
1159238104Sdes  -version | --version | --versio | --versi | --vers | -V)
1160238104Sdes    ac_init_version=: ;;
1161238104Sdes
1162238104Sdes  -with-* | --with-*)
1163238104Sdes    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164238104Sdes    # Reject names that are not valid shell variable names.
1165238104Sdes    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166238104Sdes      as_fn_error $? "invalid package name: $ac_useropt"
1167238104Sdes    ac_useropt_orig=$ac_useropt
1168238104Sdes    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169238104Sdes    case $ac_user_opts in
1170238104Sdes      *"
1171238104Sdes"with_$ac_useropt"
1172238104Sdes"*) ;;
1173238104Sdes      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174238104Sdes	 ac_unrecognized_sep=', ';;
1175238104Sdes    esac
1176238104Sdes    eval with_$ac_useropt=\$ac_optarg ;;
1177238104Sdes
1178238104Sdes  -without-* | --without-*)
1179238104Sdes    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180238104Sdes    # Reject names that are not valid shell variable names.
1181238104Sdes    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182238104Sdes      as_fn_error $? "invalid package name: $ac_useropt"
1183238104Sdes    ac_useropt_orig=$ac_useropt
1184238104Sdes    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185238104Sdes    case $ac_user_opts in
1186238104Sdes      *"
1187238104Sdes"with_$ac_useropt"
1188238104Sdes"*) ;;
1189238104Sdes      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190238104Sdes	 ac_unrecognized_sep=', ';;
1191238104Sdes    esac
1192238104Sdes    eval with_$ac_useropt=no ;;
1193238104Sdes
1194238104Sdes  --x)
1195238104Sdes    # Obsolete; use --with-x.
1196238104Sdes    with_x=yes ;;
1197238104Sdes
1198238104Sdes  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199238104Sdes  | --x-incl | --x-inc | --x-in | --x-i)
1200238104Sdes    ac_prev=x_includes ;;
1201238104Sdes  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202238104Sdes  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203238104Sdes    x_includes=$ac_optarg ;;
1204238104Sdes
1205238104Sdes  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206238104Sdes  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207238104Sdes    ac_prev=x_libraries ;;
1208238104Sdes  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209238104Sdes  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210238104Sdes    x_libraries=$ac_optarg ;;
1211238104Sdes
1212238104Sdes  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213238104SdesTry \`$0 --help' for more information"
1214238104Sdes    ;;
1215238104Sdes
1216238104Sdes  *=*)
1217238104Sdes    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218238104Sdes    # Reject names that are not valid shell variable names.
1219238104Sdes    case $ac_envvar in #(
1220238104Sdes      '' | [0-9]* | *[!_$as_cr_alnum]* )
1221238104Sdes      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222238104Sdes    esac
1223238104Sdes    eval $ac_envvar=\$ac_optarg
1224238104Sdes    export $ac_envvar ;;
1225238104Sdes
1226238104Sdes  *)
1227238104Sdes    # FIXME: should be removed in autoconf 3.0.
1228238104Sdes    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229238104Sdes    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230238104Sdes      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231238104Sdes    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232238104Sdes    ;;
1233238104Sdes
1234238104Sdes  esac
1235238104Sdesdone
1236238104Sdes
1237238104Sdesif test -n "$ac_prev"; then
1238238104Sdes  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239238104Sdes  as_fn_error $? "missing argument to $ac_option"
1240238104Sdesfi
1241238104Sdes
1242238104Sdesif test -n "$ac_unrecognized_opts"; then
1243238104Sdes  case $enable_option_checking in
1244238104Sdes    no) ;;
1245238104Sdes    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246238104Sdes    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247238104Sdes  esac
1248238104Sdesfi
1249238104Sdes
1250238104Sdes# Check all directory arguments for consistency.
1251238104Sdesfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252238104Sdes		datadir sysconfdir sharedstatedir localstatedir includedir \
1253238104Sdes		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254238104Sdes		libdir localedir mandir
1255238104Sdesdo
1256238104Sdes  eval ac_val=\$$ac_var
1257238104Sdes  # Remove trailing slashes.
1258238104Sdes  case $ac_val in
1259238104Sdes    */ )
1260238104Sdes      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261238104Sdes      eval $ac_var=\$ac_val;;
1262238104Sdes  esac
1263238104Sdes  # Be sure to have absolute directory names.
1264238104Sdes  case $ac_val in
1265238104Sdes    [\\/$]* | ?:[\\/]* )  continue;;
1266238104Sdes    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267238104Sdes  esac
1268238104Sdes  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269238104Sdesdone
1270238104Sdes
1271238104Sdes# There might be people who depend on the old broken behavior: `$host'
1272238104Sdes# used to hold the argument of --host etc.
1273238104Sdes# FIXME: To remove some day.
1274238104Sdesbuild=$build_alias
1275238104Sdeshost=$host_alias
1276238104Sdestarget=$target_alias
1277238104Sdes
1278238104Sdes# FIXME: To remove some day.
1279238104Sdesif test "x$host_alias" != x; then
1280238104Sdes  if test "x$build_alias" = x; then
1281238104Sdes    cross_compiling=maybe
1282238104Sdes  elif test "x$build_alias" != "x$host_alias"; then
1283238104Sdes    cross_compiling=yes
1284238104Sdes  fi
1285238104Sdesfi
1286238104Sdes
1287238104Sdesac_tool_prefix=
1288238104Sdestest -n "$host_alias" && ac_tool_prefix=$host_alias-
1289238104Sdes
1290238104Sdestest "$silent" = yes && exec 6>/dev/null
1291238104Sdes
1292238104Sdes
1293238104Sdesac_pwd=`pwd` && test -n "$ac_pwd" &&
1294238104Sdesac_ls_di=`ls -di .` &&
1295238104Sdesac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296238104Sdes  as_fn_error $? "working directory cannot be determined"
1297238104Sdestest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298238104Sdes  as_fn_error $? "pwd does not report name of working directory"
1299238104Sdes
1300238104Sdes
1301238104Sdes# Find the source files, if location was not specified.
1302238104Sdesif test -z "$srcdir"; then
1303238104Sdes  ac_srcdir_defaulted=yes
1304238104Sdes  # Try the directory containing this script, then the parent directory.
1305238104Sdes  ac_confdir=`$as_dirname -- "$as_myself" ||
1306238104Sdes$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307238104Sdes	 X"$as_myself" : 'X\(//\)[^/]' \| \
1308238104Sdes	 X"$as_myself" : 'X\(//\)$' \| \
1309238104Sdes	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310238104Sdes$as_echo X"$as_myself" |
1311238104Sdes    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312238104Sdes	    s//\1/
1313238104Sdes	    q
1314238104Sdes	  }
1315238104Sdes	  /^X\(\/\/\)[^/].*/{
1316238104Sdes	    s//\1/
1317238104Sdes	    q
1318238104Sdes	  }
1319238104Sdes	  /^X\(\/\/\)$/{
1320238104Sdes	    s//\1/
1321238104Sdes	    q
1322238104Sdes	  }
1323238104Sdes	  /^X\(\/\).*/{
1324238104Sdes	    s//\1/
1325238104Sdes	    q
1326238104Sdes	  }
1327238104Sdes	  s/.*/./; q'`
1328238104Sdes  srcdir=$ac_confdir
1329238104Sdes  if test ! -r "$srcdir/$ac_unique_file"; then
1330238104Sdes    srcdir=..
1331238104Sdes  fi
1332238104Sdeselse
1333238104Sdes  ac_srcdir_defaulted=no
1334238104Sdesfi
1335238104Sdesif test ! -r "$srcdir/$ac_unique_file"; then
1336238104Sdes  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337238104Sdes  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338238104Sdesfi
1339238104Sdesac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340238104Sdesac_abs_confdir=`(
1341238104Sdes	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342238104Sdes	pwd)`
1343238104Sdes# When building in place, set srcdir=.
1344238104Sdesif test "$ac_abs_confdir" = "$ac_pwd"; then
1345238104Sdes  srcdir=.
1346238104Sdesfi
1347238104Sdes# Remove unnecessary trailing slashes from srcdir.
1348238104Sdes# Double slashes in file names in object file debugging info
1349238104Sdes# mess up M-x gdb in Emacs.
1350238104Sdescase $srcdir in
1351238104Sdes*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352238104Sdesesac
1353238104Sdesfor ac_var in $ac_precious_vars; do
1354238104Sdes  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355238104Sdes  eval ac_env_${ac_var}_value=\$${ac_var}
1356238104Sdes  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357238104Sdes  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358238104Sdesdone
1359238104Sdes
1360238104Sdes#
1361238104Sdes# Report the --help message.
1362238104Sdes#
1363238104Sdesif test "$ac_init_help" = "long"; then
1364238104Sdes  # Omit some internal or obsolete options to make the list less imposing.
1365238104Sdes  # This message is too long to be a string in the A/UX 3.1 sh.
1366238104Sdes  cat <<_ACEOF
1367269257Sdes\`configure' configures ldns 1.6.17 to adapt to many kinds of systems.
1368238104Sdes
1369238104SdesUsage: $0 [OPTION]... [VAR=VALUE]...
1370238104Sdes
1371238104SdesTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1372238104SdesVAR=VALUE.  See below for descriptions of some of the useful variables.
1373238104Sdes
1374238104SdesDefaults for the options are specified in brackets.
1375238104Sdes
1376238104SdesConfiguration:
1377238104Sdes  -h, --help              display this help and exit
1378238104Sdes      --help=short        display options specific to this package
1379238104Sdes      --help=recursive    display the short help of all the included packages
1380238104Sdes  -V, --version           display version information and exit
1381238104Sdes  -q, --quiet, --silent   do not print \`checking ...' messages
1382238104Sdes      --cache-file=FILE   cache test results in FILE [disabled]
1383238104Sdes  -C, --config-cache      alias for \`--cache-file=config.cache'
1384238104Sdes  -n, --no-create         do not create output files
1385238104Sdes      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386238104Sdes
1387238104SdesInstallation directories:
1388238104Sdes  --prefix=PREFIX         install architecture-independent files in PREFIX
1389238104Sdes                          [$ac_default_prefix]
1390238104Sdes  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391238104Sdes                          [PREFIX]
1392238104Sdes
1393238104SdesBy default, \`make install' will install all the files in
1394238104Sdes\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395238104Sdesan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396238104Sdesfor instance \`--prefix=\$HOME'.
1397238104Sdes
1398238104SdesFor better control, use the options below.
1399238104Sdes
1400238104SdesFine tuning of the installation directories:
1401238104Sdes  --bindir=DIR            user executables [EPREFIX/bin]
1402238104Sdes  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403238104Sdes  --libexecdir=DIR        program executables [EPREFIX/libexec]
1404238104Sdes  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405238104Sdes  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406238104Sdes  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407238104Sdes  --libdir=DIR            object code libraries [EPREFIX/lib]
1408238104Sdes  --includedir=DIR        C header files [PREFIX/include]
1409238104Sdes  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1410238104Sdes  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1411238104Sdes  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1412238104Sdes  --infodir=DIR           info documentation [DATAROOTDIR/info]
1413238104Sdes  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1414238104Sdes  --mandir=DIR            man documentation [DATAROOTDIR/man]
1415238104Sdes  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdns]
1416238104Sdes  --htmldir=DIR           html documentation [DOCDIR]
1417238104Sdes  --dvidir=DIR            dvi documentation [DOCDIR]
1418238104Sdes  --pdfdir=DIR            pdf documentation [DOCDIR]
1419238104Sdes  --psdir=DIR             ps documentation [DOCDIR]
1420238104Sdes_ACEOF
1421238104Sdes
1422238104Sdes  cat <<\_ACEOF
1423238104Sdes
1424238104SdesSystem types:
1425238104Sdes  --build=BUILD     configure for building on BUILD [guessed]
1426238104Sdes  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1427238104Sdes_ACEOF
1428238104Sdesfi
1429238104Sdes
1430238104Sdesif test -n "$ac_init_help"; then
1431238104Sdes  case $ac_init_help in
1432269257Sdes     short | recursive ) echo "Configuration of ldns 1.6.17:";;
1433238104Sdes   esac
1434238104Sdes  cat <<\_ACEOF
1435238104Sdes
1436238104SdesOptional Features:
1437238104Sdes  --disable-option-checking  ignore unrecognized --enable/--with options
1438238104Sdes  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1439238104Sdes  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1440238104Sdes  --enable-shared[=PKGS]  build shared libraries [default=yes]
1441238104Sdes  --enable-static[=PKGS]  build static libraries [default=yes]
1442238104Sdes  --enable-fast-install[=PKGS]
1443238104Sdes                          optimize for fast installation [default=yes]
1444238104Sdes  --disable-libtool-lock  avoid locking (might break parallel builds)
1445269257Sdes  --disable-ldns-config   disable installation of ldns-config
1446269257Sdes                          (default=enabled)
1447269257Sdes  --enable-stderr-msgs    Enable printing to stderr (default=disabled)
1448238104Sdes  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1449238104Sdes  --disable-gost          Disable GOST support
1450238104Sdes  --disable-ecdsa         Disable ECDSA support
1451269257Sdes  --disable-dane          Disable DANE support
1452269257Sdes  --enable-rrtype-ninfo   Enable draft RR type ninfo.
1453269257Sdes  --enable-rrtype-rkey    Enable draft RR type rkey.
1454269257Sdes  --enable-rrtype-cds     Enable draft RR type cds.
1455269257Sdes  --enable-rrtype-uri     Enable draft RR type uri.
1456269257Sdes  --enable-rrtype-ta      Enable draft RR type ta.
1457238104Sdes  --disable-rpath         disable hardcoded rpath (default=enabled)
1458238104Sdes
1459238104SdesOptional Packages:
1460238104Sdes  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461238104Sdes  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462269257Sdes  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1463269257Sdes                          both]
1464269257Sdes  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465269257Sdes  --with-sysroot=DIR Search for dependent libraries within DIR
1466269257Sdes                        (or the compiler's sysroot if not specified).
1467238104Sdes  --with-drill            Also build drill.
1468238104Sdes  --with-examples         Also build examples.
1469238104Sdes  --with-pyldns           generate python library, or --without-pyldns to
1470238104Sdes                          disable Python support.
1471238104Sdes  --without-pyldnsx       Do not install the ldnsx python module, or
1472238104Sdes                          --with-pyldnsx to install it.
1473269257Sdes  --with-p5-dns-ldns      generate DNS::LDNS perl bindings
1474238104Sdes  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1475238104Sdes                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1476238104Sdes                          /usr)
1477246854Sdes  --with-trust-anchor=KEYFILE
1478246854Sdes                          Default location of the trust anchor file for drill
1479246854Sdes                          and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1480246854Sdes  --with-ca-file=CAFILE   File containing CA certificates for ldns-dane
1481246854Sdes  --with-ca-path=CAPATH   Directory containing CA certificate files for
1482246854Sdes                          ldns-dane
1483238104Sdes
1484238104SdesSome influential environment variables:
1485238104Sdes  CC          C compiler command
1486238104Sdes  CFLAGS      C compiler flags
1487238104Sdes  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488238104Sdes              nonstandard directory <lib dir>
1489238104Sdes  LIBS        libraries to pass to the linker, e.g. -l<library>
1490238104Sdes  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491238104Sdes              you have headers in a nonstandard directory <include dir>
1492238104Sdes  CPP         C preprocessor
1493238104Sdes  PYTHON_VERSION
1494238104Sdes              The installed Python version to use, for example '2.3'. This
1495238104Sdes              string will be appended to the Python interpreter canonical
1496238104Sdes              name.
1497238104Sdes
1498238104SdesUse these variables to override the choices made by `configure' or to help
1499238104Sdesit to find libraries and programs with nonstandard names/locations.
1500238104Sdes
1501238104SdesReport bugs to <libdns@nlnetlabs.nl>.
1502238104Sdes_ACEOF
1503238104Sdesac_status=$?
1504238104Sdesfi
1505238104Sdes
1506238104Sdesif test "$ac_init_help" = "recursive"; then
1507238104Sdes  # If there are subdirs, report their specific --help.
1508238104Sdes  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509238104Sdes    test -d "$ac_dir" ||
1510238104Sdes      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511238104Sdes      continue
1512238104Sdes    ac_builddir=.
1513238104Sdes
1514238104Sdescase "$ac_dir" in
1515238104Sdes.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516238104Sdes*)
1517238104Sdes  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518238104Sdes  # A ".." for each directory in $ac_dir_suffix.
1519238104Sdes  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520238104Sdes  case $ac_top_builddir_sub in
1521238104Sdes  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522238104Sdes  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523238104Sdes  esac ;;
1524238104Sdesesac
1525238104Sdesac_abs_top_builddir=$ac_pwd
1526238104Sdesac_abs_builddir=$ac_pwd$ac_dir_suffix
1527238104Sdes# for backward compatibility:
1528238104Sdesac_top_builddir=$ac_top_build_prefix
1529238104Sdes
1530238104Sdescase $srcdir in
1531238104Sdes  .)  # We are building in place.
1532238104Sdes    ac_srcdir=.
1533238104Sdes    ac_top_srcdir=$ac_top_builddir_sub
1534238104Sdes    ac_abs_top_srcdir=$ac_pwd ;;
1535238104Sdes  [\\/]* | ?:[\\/]* )  # Absolute name.
1536238104Sdes    ac_srcdir=$srcdir$ac_dir_suffix;
1537238104Sdes    ac_top_srcdir=$srcdir
1538238104Sdes    ac_abs_top_srcdir=$srcdir ;;
1539238104Sdes  *) # Relative name.
1540238104Sdes    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541238104Sdes    ac_top_srcdir=$ac_top_build_prefix$srcdir
1542238104Sdes    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543238104Sdesesac
1544238104Sdesac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545238104Sdes
1546238104Sdes    cd "$ac_dir" || { ac_status=$?; continue; }
1547238104Sdes    # Check for guested configure.
1548238104Sdes    if test -f "$ac_srcdir/configure.gnu"; then
1549238104Sdes      echo &&
1550238104Sdes      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551238104Sdes    elif test -f "$ac_srcdir/configure"; then
1552238104Sdes      echo &&
1553238104Sdes      $SHELL "$ac_srcdir/configure" --help=recursive
1554238104Sdes    else
1555238104Sdes      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556238104Sdes    fi || ac_status=$?
1557238104Sdes    cd "$ac_pwd" || { ac_status=$?; break; }
1558238104Sdes  done
1559238104Sdesfi
1560238104Sdes
1561238104Sdestest -n "$ac_init_help" && exit $ac_status
1562238104Sdesif $ac_init_version; then
1563238104Sdes  cat <<\_ACEOF
1564269257Sdesldns configure 1.6.17
1565285206Sdesgenerated by GNU Autoconf 2.69
1566238104Sdes
1567285206SdesCopyright (C) 2012 Free Software Foundation, Inc.
1568238104SdesThis configure script is free software; the Free Software Foundation
1569238104Sdesgives unlimited permission to copy, distribute and modify it.
1570238104Sdes_ACEOF
1571238104Sdes  exit
1572238104Sdesfi
1573238104Sdes
1574238104Sdes## ------------------------ ##
1575238104Sdes## Autoconf initialization. ##
1576238104Sdes## ------------------------ ##
1577238104Sdes
1578238104Sdes# ac_fn_c_try_compile LINENO
1579238104Sdes# --------------------------
1580238104Sdes# Try to compile conftest.$ac_ext, and return whether this succeeded.
1581238104Sdesac_fn_c_try_compile ()
1582238104Sdes{
1583238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584238104Sdes  rm -f conftest.$ac_objext
1585238104Sdes  if { { ac_try="$ac_compile"
1586238104Sdescase "(($ac_try" in
1587238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588238104Sdes  *) ac_try_echo=$ac_try;;
1589238104Sdesesac
1590238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591238104Sdes$as_echo "$ac_try_echo"; } >&5
1592238104Sdes  (eval "$ac_compile") 2>conftest.err
1593238104Sdes  ac_status=$?
1594238104Sdes  if test -s conftest.err; then
1595238104Sdes    grep -v '^ *+' conftest.err >conftest.er1
1596238104Sdes    cat conftest.er1 >&5
1597238104Sdes    mv -f conftest.er1 conftest.err
1598238104Sdes  fi
1599238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600238104Sdes  test $ac_status = 0; } && {
1601238104Sdes	 test -z "$ac_c_werror_flag" ||
1602238104Sdes	 test ! -s conftest.err
1603238104Sdes       } && test -s conftest.$ac_objext; then :
1604238104Sdes  ac_retval=0
1605238104Sdeselse
1606238104Sdes  $as_echo "$as_me: failed program was:" >&5
1607238104Sdessed 's/^/| /' conftest.$ac_ext >&5
1608238104Sdes
1609238104Sdes	ac_retval=1
1610238104Sdesfi
1611238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612238104Sdes  as_fn_set_status $ac_retval
1613238104Sdes
1614238104Sdes} # ac_fn_c_try_compile
1615238104Sdes
1616238104Sdes# ac_fn_c_try_cpp LINENO
1617238104Sdes# ----------------------
1618238104Sdes# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619238104Sdesac_fn_c_try_cpp ()
1620238104Sdes{
1621238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622238104Sdes  if { { ac_try="$ac_cpp conftest.$ac_ext"
1623238104Sdescase "(($ac_try" in
1624238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625238104Sdes  *) ac_try_echo=$ac_try;;
1626238104Sdesesac
1627238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628238104Sdes$as_echo "$ac_try_echo"; } >&5
1629238104Sdes  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630238104Sdes  ac_status=$?
1631238104Sdes  if test -s conftest.err; then
1632238104Sdes    grep -v '^ *+' conftest.err >conftest.er1
1633238104Sdes    cat conftest.er1 >&5
1634238104Sdes    mv -f conftest.er1 conftest.err
1635238104Sdes  fi
1636238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637238104Sdes  test $ac_status = 0; } > conftest.i && {
1638238104Sdes	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639238104Sdes	 test ! -s conftest.err
1640238104Sdes       }; then :
1641238104Sdes  ac_retval=0
1642238104Sdeselse
1643238104Sdes  $as_echo "$as_me: failed program was:" >&5
1644238104Sdessed 's/^/| /' conftest.$ac_ext >&5
1645238104Sdes
1646238104Sdes    ac_retval=1
1647238104Sdesfi
1648238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649238104Sdes  as_fn_set_status $ac_retval
1650238104Sdes
1651238104Sdes} # ac_fn_c_try_cpp
1652238104Sdes
1653238104Sdes# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654238104Sdes# -------------------------------------------------------
1655238104Sdes# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656238104Sdes# the include files in INCLUDES and setting the cache variable VAR
1657238104Sdes# accordingly.
1658238104Sdesac_fn_c_check_header_mongrel ()
1659238104Sdes{
1660238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661238104Sdes  if eval \${$3+:} false; then :
1662238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663238104Sdes$as_echo_n "checking for $2... " >&6; }
1664238104Sdesif eval \${$3+:} false; then :
1665238104Sdes  $as_echo_n "(cached) " >&6
1666238104Sdesfi
1667238104Sdeseval ac_res=\$$3
1668238104Sdes	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669238104Sdes$as_echo "$ac_res" >&6; }
1670238104Sdeselse
1671238104Sdes  # Is the header compilable?
1672238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673238104Sdes$as_echo_n "checking $2 usability... " >&6; }
1674238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675238104Sdes/* end confdefs.h.  */
1676238104Sdes$4
1677238104Sdes#include <$2>
1678238104Sdes_ACEOF
1679238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
1680238104Sdes  ac_header_compiler=yes
1681238104Sdeselse
1682238104Sdes  ac_header_compiler=no
1683238104Sdesfi
1684238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686238104Sdes$as_echo "$ac_header_compiler" >&6; }
1687238104Sdes
1688238104Sdes# Is the header present?
1689238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690238104Sdes$as_echo_n "checking $2 presence... " >&6; }
1691238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692238104Sdes/* end confdefs.h.  */
1693238104Sdes#include <$2>
1694238104Sdes_ACEOF
1695238104Sdesif ac_fn_c_try_cpp "$LINENO"; then :
1696238104Sdes  ac_header_preproc=yes
1697238104Sdeselse
1698238104Sdes  ac_header_preproc=no
1699238104Sdesfi
1700238104Sdesrm -f conftest.err conftest.i conftest.$ac_ext
1701238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702238104Sdes$as_echo "$ac_header_preproc" >&6; }
1703238104Sdes
1704238104Sdes# So?  What about this header?
1705238104Sdescase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706238104Sdes  yes:no: )
1707238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708238104Sdes$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710238104Sdes$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711238104Sdes    ;;
1712238104Sdes  no:yes:* )
1713238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714238104Sdes$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1716238104Sdes$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1717238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718238104Sdes$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1720238104Sdes$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1721238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722238104Sdes$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723238104Sdes( $as_echo "## ---------------------------------- ##
1724238104Sdes## Report this to libdns@nlnetlabs.nl ##
1725238104Sdes## ---------------------------------- ##"
1726238104Sdes     ) | sed "s/^/$as_me: WARNING:     /" >&2
1727238104Sdes    ;;
1728238104Sdesesac
1729238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730238104Sdes$as_echo_n "checking for $2... " >&6; }
1731238104Sdesif eval \${$3+:} false; then :
1732238104Sdes  $as_echo_n "(cached) " >&6
1733238104Sdeselse
1734238104Sdes  eval "$3=\$ac_header_compiler"
1735238104Sdesfi
1736238104Sdeseval ac_res=\$$3
1737238104Sdes	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738238104Sdes$as_echo "$ac_res" >&6; }
1739238104Sdesfi
1740238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741238104Sdes
1742238104Sdes} # ac_fn_c_check_header_mongrel
1743238104Sdes
1744238104Sdes# ac_fn_c_try_run LINENO
1745238104Sdes# ----------------------
1746238104Sdes# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747238104Sdes# that executables *can* be run.
1748238104Sdesac_fn_c_try_run ()
1749238104Sdes{
1750238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751238104Sdes  if { { ac_try="$ac_link"
1752238104Sdescase "(($ac_try" in
1753238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754238104Sdes  *) ac_try_echo=$ac_try;;
1755238104Sdesesac
1756238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757238104Sdes$as_echo "$ac_try_echo"; } >&5
1758238104Sdes  (eval "$ac_link") 2>&5
1759238104Sdes  ac_status=$?
1760238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761238104Sdes  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762238104Sdes  { { case "(($ac_try" in
1763238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764238104Sdes  *) ac_try_echo=$ac_try;;
1765238104Sdesesac
1766238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767238104Sdes$as_echo "$ac_try_echo"; } >&5
1768238104Sdes  (eval "$ac_try") 2>&5
1769238104Sdes  ac_status=$?
1770238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771238104Sdes  test $ac_status = 0; }; }; then :
1772238104Sdes  ac_retval=0
1773238104Sdeselse
1774238104Sdes  $as_echo "$as_me: program exited with status $ac_status" >&5
1775238104Sdes       $as_echo "$as_me: failed program was:" >&5
1776238104Sdessed 's/^/| /' conftest.$ac_ext >&5
1777238104Sdes
1778238104Sdes       ac_retval=$ac_status
1779238104Sdesfi
1780238104Sdes  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782238104Sdes  as_fn_set_status $ac_retval
1783238104Sdes
1784238104Sdes} # ac_fn_c_try_run
1785238104Sdes
1786238104Sdes# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787238104Sdes# -------------------------------------------------------
1788238104Sdes# Tests whether HEADER exists and can be compiled using the include files in
1789238104Sdes# INCLUDES, setting the cache variable VAR accordingly.
1790238104Sdesac_fn_c_check_header_compile ()
1791238104Sdes{
1792238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794238104Sdes$as_echo_n "checking for $2... " >&6; }
1795238104Sdesif eval \${$3+:} false; then :
1796238104Sdes  $as_echo_n "(cached) " >&6
1797238104Sdeselse
1798238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799238104Sdes/* end confdefs.h.  */
1800238104Sdes$4
1801238104Sdes#include <$2>
1802238104Sdes_ACEOF
1803238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
1804238104Sdes  eval "$3=yes"
1805238104Sdeselse
1806238104Sdes  eval "$3=no"
1807238104Sdesfi
1808238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809238104Sdesfi
1810238104Sdeseval ac_res=\$$3
1811238104Sdes	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812238104Sdes$as_echo "$ac_res" >&6; }
1813238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814238104Sdes
1815238104Sdes} # ac_fn_c_check_header_compile
1816238104Sdes
1817238104Sdes# ac_fn_c_try_link LINENO
1818238104Sdes# -----------------------
1819238104Sdes# Try to link conftest.$ac_ext, and return whether this succeeded.
1820238104Sdesac_fn_c_try_link ()
1821238104Sdes{
1822238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823238104Sdes  rm -f conftest.$ac_objext conftest$ac_exeext
1824238104Sdes  if { { ac_try="$ac_link"
1825238104Sdescase "(($ac_try" in
1826238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827238104Sdes  *) ac_try_echo=$ac_try;;
1828238104Sdesesac
1829238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830238104Sdes$as_echo "$ac_try_echo"; } >&5
1831238104Sdes  (eval "$ac_link") 2>conftest.err
1832238104Sdes  ac_status=$?
1833238104Sdes  if test -s conftest.err; then
1834238104Sdes    grep -v '^ *+' conftest.err >conftest.er1
1835238104Sdes    cat conftest.er1 >&5
1836238104Sdes    mv -f conftest.er1 conftest.err
1837238104Sdes  fi
1838238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839238104Sdes  test $ac_status = 0; } && {
1840238104Sdes	 test -z "$ac_c_werror_flag" ||
1841238104Sdes	 test ! -s conftest.err
1842238104Sdes       } && test -s conftest$ac_exeext && {
1843238104Sdes	 test "$cross_compiling" = yes ||
1844285206Sdes	 test -x conftest$ac_exeext
1845238104Sdes       }; then :
1846238104Sdes  ac_retval=0
1847238104Sdeselse
1848238104Sdes  $as_echo "$as_me: failed program was:" >&5
1849238104Sdessed 's/^/| /' conftest.$ac_ext >&5
1850238104Sdes
1851238104Sdes	ac_retval=1
1852238104Sdesfi
1853238104Sdes  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1854238104Sdes  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1855238104Sdes  # interfere with the next link command; also delete a directory that is
1856238104Sdes  # left behind by Apple's compiler.  We do this before executing the actions.
1857238104Sdes  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859238104Sdes  as_fn_set_status $ac_retval
1860238104Sdes
1861238104Sdes} # ac_fn_c_try_link
1862238104Sdes
1863238104Sdes# ac_fn_c_check_func LINENO FUNC VAR
1864238104Sdes# ----------------------------------
1865238104Sdes# Tests whether FUNC exists, setting the cache variable VAR accordingly
1866238104Sdesac_fn_c_check_func ()
1867238104Sdes{
1868238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870238104Sdes$as_echo_n "checking for $2... " >&6; }
1871238104Sdesif eval \${$3+:} false; then :
1872238104Sdes  $as_echo_n "(cached) " >&6
1873238104Sdeselse
1874238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875238104Sdes/* end confdefs.h.  */
1876238104Sdes/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877238104Sdes   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1878238104Sdes#define $2 innocuous_$2
1879238104Sdes
1880238104Sdes/* System header to define __stub macros and hopefully few prototypes,
1881238104Sdes    which can conflict with char $2 (); below.
1882238104Sdes    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883238104Sdes    <limits.h> exists even on freestanding compilers.  */
1884238104Sdes
1885238104Sdes#ifdef __STDC__
1886238104Sdes# include <limits.h>
1887238104Sdes#else
1888238104Sdes# include <assert.h>
1889238104Sdes#endif
1890238104Sdes
1891238104Sdes#undef $2
1892238104Sdes
1893238104Sdes/* Override any GCC internal prototype to avoid an error.
1894238104Sdes   Use char because int might match the return type of a GCC
1895238104Sdes   builtin and then its argument prototype would still apply.  */
1896238104Sdes#ifdef __cplusplus
1897238104Sdesextern "C"
1898238104Sdes#endif
1899238104Sdeschar $2 ();
1900238104Sdes/* The GNU C library defines this for functions which it implements
1901238104Sdes    to always fail with ENOSYS.  Some functions are actually named
1902238104Sdes    something starting with __ and the normal name is an alias.  */
1903238104Sdes#if defined __stub_$2 || defined __stub___$2
1904238104Sdeschoke me
1905238104Sdes#endif
1906238104Sdes
1907238104Sdesint
1908238104Sdesmain ()
1909238104Sdes{
1910238104Sdesreturn $2 ();
1911238104Sdes  ;
1912238104Sdes  return 0;
1913238104Sdes}
1914238104Sdes_ACEOF
1915238104Sdesif ac_fn_c_try_link "$LINENO"; then :
1916238104Sdes  eval "$3=yes"
1917238104Sdeselse
1918238104Sdes  eval "$3=no"
1919238104Sdesfi
1920238104Sdesrm -f core conftest.err conftest.$ac_objext \
1921238104Sdes    conftest$ac_exeext conftest.$ac_ext
1922238104Sdesfi
1923238104Sdeseval ac_res=\$$3
1924238104Sdes	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925238104Sdes$as_echo "$ac_res" >&6; }
1926238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927238104Sdes
1928238104Sdes} # ac_fn_c_check_func
1929238104Sdes
1930269257Sdes# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931269257Sdes# -------------------------------------------
1932269257Sdes# Tests whether TYPE exists after having included INCLUDES, setting cache
1933269257Sdes# variable VAR accordingly.
1934269257Sdesac_fn_c_check_type ()
1935269257Sdes{
1936269257Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938269257Sdes$as_echo_n "checking for $2... " >&6; }
1939269257Sdesif eval \${$3+:} false; then :
1940269257Sdes  $as_echo_n "(cached) " >&6
1941269257Sdeselse
1942269257Sdes  eval "$3=no"
1943269257Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944269257Sdes/* end confdefs.h.  */
1945269257Sdes$4
1946269257Sdesint
1947269257Sdesmain ()
1948269257Sdes{
1949269257Sdesif (sizeof ($2))
1950269257Sdes	 return 0;
1951269257Sdes  ;
1952269257Sdes  return 0;
1953269257Sdes}
1954269257Sdes_ACEOF
1955269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
1956269257Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957269257Sdes/* end confdefs.h.  */
1958269257Sdes$4
1959269257Sdesint
1960269257Sdesmain ()
1961269257Sdes{
1962269257Sdesif (sizeof (($2)))
1963269257Sdes	    return 0;
1964269257Sdes  ;
1965269257Sdes  return 0;
1966269257Sdes}
1967269257Sdes_ACEOF
1968269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
1969269257Sdes
1970269257Sdeselse
1971269257Sdes  eval "$3=yes"
1972269257Sdesfi
1973269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974269257Sdesfi
1975269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976269257Sdesfi
1977269257Sdeseval ac_res=\$$3
1978269257Sdes	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979269257Sdes$as_echo "$ac_res" >&6; }
1980269257Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981269257Sdes
1982269257Sdes} # ac_fn_c_check_type
1983269257Sdes
1984238104Sdes# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1985238104Sdes# ---------------------------------------------
1986238104Sdes# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1987238104Sdes# accordingly.
1988238104Sdesac_fn_c_check_decl ()
1989238104Sdes{
1990238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991238104Sdes  as_decl_name=`echo $2|sed 's/ *(.*//'`
1992238104Sdes  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1993238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1994238104Sdes$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1995238104Sdesif eval \${$3+:} false; then :
1996238104Sdes  $as_echo_n "(cached) " >&6
1997238104Sdeselse
1998238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999238104Sdes/* end confdefs.h.  */
2000238104Sdes$4
2001238104Sdesint
2002238104Sdesmain ()
2003238104Sdes{
2004238104Sdes#ifndef $as_decl_name
2005238104Sdes#ifdef __cplusplus
2006238104Sdes  (void) $as_decl_use;
2007238104Sdes#else
2008238104Sdes  (void) $as_decl_name;
2009238104Sdes#endif
2010238104Sdes#endif
2011238104Sdes
2012238104Sdes  ;
2013238104Sdes  return 0;
2014238104Sdes}
2015238104Sdes_ACEOF
2016238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2017238104Sdes  eval "$3=yes"
2018238104Sdeselse
2019238104Sdes  eval "$3=no"
2020238104Sdesfi
2021238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022238104Sdesfi
2023238104Sdeseval ac_res=\$$3
2024238104Sdes	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025238104Sdes$as_echo "$ac_res" >&6; }
2026238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027238104Sdes
2028238104Sdes} # ac_fn_c_check_decl
2029238104Sdes
2030238104Sdes# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2031238104Sdes# --------------------------------------------
2032238104Sdes# Tries to find the compile-time value of EXPR in a program that includes
2033238104Sdes# INCLUDES, setting VAR accordingly. Returns whether the value could be
2034238104Sdes# computed
2035238104Sdesac_fn_c_compute_int ()
2036238104Sdes{
2037238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038238104Sdes  if test "$cross_compiling" = yes; then
2039238104Sdes    # Depending upon the size, compute the lo and hi bounds.
2040238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041238104Sdes/* end confdefs.h.  */
2042238104Sdes$4
2043238104Sdesint
2044238104Sdesmain ()
2045238104Sdes{
2046238104Sdesstatic int test_array [1 - 2 * !(($2) >= 0)];
2047285206Sdestest_array [0] = 0;
2048285206Sdesreturn test_array [0];
2049238104Sdes
2050238104Sdes  ;
2051238104Sdes  return 0;
2052238104Sdes}
2053238104Sdes_ACEOF
2054238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2055238104Sdes  ac_lo=0 ac_mid=0
2056238104Sdes  while :; do
2057238104Sdes    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058238104Sdes/* end confdefs.h.  */
2059238104Sdes$4
2060238104Sdesint
2061238104Sdesmain ()
2062238104Sdes{
2063238104Sdesstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064285206Sdestest_array [0] = 0;
2065285206Sdesreturn test_array [0];
2066238104Sdes
2067238104Sdes  ;
2068238104Sdes  return 0;
2069238104Sdes}
2070238104Sdes_ACEOF
2071238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2072238104Sdes  ac_hi=$ac_mid; break
2073238104Sdeselse
2074238104Sdes  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075238104Sdes			if test $ac_lo -le $ac_mid; then
2076238104Sdes			  ac_lo= ac_hi=
2077238104Sdes			  break
2078238104Sdes			fi
2079238104Sdes			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2080238104Sdesfi
2081238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082238104Sdes  done
2083238104Sdeselse
2084238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085238104Sdes/* end confdefs.h.  */
2086238104Sdes$4
2087238104Sdesint
2088238104Sdesmain ()
2089238104Sdes{
2090238104Sdesstatic int test_array [1 - 2 * !(($2) < 0)];
2091285206Sdestest_array [0] = 0;
2092285206Sdesreturn test_array [0];
2093238104Sdes
2094238104Sdes  ;
2095238104Sdes  return 0;
2096238104Sdes}
2097238104Sdes_ACEOF
2098238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2099238104Sdes  ac_hi=-1 ac_mid=-1
2100238104Sdes  while :; do
2101238104Sdes    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102238104Sdes/* end confdefs.h.  */
2103238104Sdes$4
2104238104Sdesint
2105238104Sdesmain ()
2106238104Sdes{
2107238104Sdesstatic int test_array [1 - 2 * !(($2) >= $ac_mid)];
2108285206Sdestest_array [0] = 0;
2109285206Sdesreturn test_array [0];
2110238104Sdes
2111238104Sdes  ;
2112238104Sdes  return 0;
2113238104Sdes}
2114238104Sdes_ACEOF
2115238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2116238104Sdes  ac_lo=$ac_mid; break
2117238104Sdeselse
2118238104Sdes  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2119238104Sdes			if test $ac_mid -le $ac_hi; then
2120238104Sdes			  ac_lo= ac_hi=
2121238104Sdes			  break
2122238104Sdes			fi
2123238104Sdes			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2124238104Sdesfi
2125238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126238104Sdes  done
2127238104Sdeselse
2128238104Sdes  ac_lo= ac_hi=
2129238104Sdesfi
2130238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131238104Sdesfi
2132238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133238104Sdes# Binary search between lo and hi bounds.
2134238104Sdeswhile test "x$ac_lo" != "x$ac_hi"; do
2135238104Sdes  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2136238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137238104Sdes/* end confdefs.h.  */
2138238104Sdes$4
2139238104Sdesint
2140238104Sdesmain ()
2141238104Sdes{
2142238104Sdesstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143285206Sdestest_array [0] = 0;
2144285206Sdesreturn test_array [0];
2145238104Sdes
2146238104Sdes  ;
2147238104Sdes  return 0;
2148238104Sdes}
2149238104Sdes_ACEOF
2150238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2151238104Sdes  ac_hi=$ac_mid
2152238104Sdeselse
2153238104Sdes  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154238104Sdesfi
2155238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156238104Sdesdone
2157238104Sdescase $ac_lo in #((
2158238104Sdes?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159238104Sdes'') ac_retval=1 ;;
2160238104Sdesesac
2161238104Sdes  else
2162238104Sdes    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163238104Sdes/* end confdefs.h.  */
2164238104Sdes$4
2165238104Sdesstatic long int longval () { return $2; }
2166238104Sdesstatic unsigned long int ulongval () { return $2; }
2167238104Sdes#include <stdio.h>
2168238104Sdes#include <stdlib.h>
2169238104Sdesint
2170238104Sdesmain ()
2171238104Sdes{
2172238104Sdes
2173238104Sdes  FILE *f = fopen ("conftest.val", "w");
2174238104Sdes  if (! f)
2175238104Sdes    return 1;
2176238104Sdes  if (($2) < 0)
2177238104Sdes    {
2178238104Sdes      long int i = longval ();
2179238104Sdes      if (i != ($2))
2180238104Sdes	return 1;
2181238104Sdes      fprintf (f, "%ld", i);
2182238104Sdes    }
2183238104Sdes  else
2184238104Sdes    {
2185238104Sdes      unsigned long int i = ulongval ();
2186238104Sdes      if (i != ($2))
2187238104Sdes	return 1;
2188238104Sdes      fprintf (f, "%lu", i);
2189238104Sdes    }
2190238104Sdes  /* Do not output a trailing newline, as this causes \r\n confusion
2191238104Sdes     on some platforms.  */
2192238104Sdes  return ferror (f) || fclose (f) != 0;
2193238104Sdes
2194238104Sdes  ;
2195238104Sdes  return 0;
2196238104Sdes}
2197238104Sdes_ACEOF
2198238104Sdesif ac_fn_c_try_run "$LINENO"; then :
2199238104Sdes  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200238104Sdeselse
2201238104Sdes  ac_retval=1
2202238104Sdesfi
2203238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
2205238104Sdesrm -f conftest.val
2206238104Sdes
2207238104Sdes  fi
2208238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209238104Sdes  as_fn_set_status $ac_retval
2210238104Sdes
2211238104Sdes} # ac_fn_c_compute_int
2212238104Sdes
2213238104Sdes# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2214238104Sdes# ----------------------------------------------------
2215238104Sdes# Tries to find if the field MEMBER exists in type AGGR, after including
2216238104Sdes# INCLUDES, setting cache variable VAR accordingly.
2217238104Sdesac_fn_c_check_member ()
2218238104Sdes{
2219238104Sdes  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2221238104Sdes$as_echo_n "checking for $2.$3... " >&6; }
2222238104Sdesif eval \${$4+:} false; then :
2223238104Sdes  $as_echo_n "(cached) " >&6
2224238104Sdeselse
2225238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226238104Sdes/* end confdefs.h.  */
2227238104Sdes$5
2228238104Sdesint
2229238104Sdesmain ()
2230238104Sdes{
2231238104Sdesstatic $2 ac_aggr;
2232238104Sdesif (ac_aggr.$3)
2233238104Sdesreturn 0;
2234238104Sdes  ;
2235238104Sdes  return 0;
2236238104Sdes}
2237238104Sdes_ACEOF
2238238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2239238104Sdes  eval "$4=yes"
2240238104Sdeselse
2241238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242238104Sdes/* end confdefs.h.  */
2243238104Sdes$5
2244238104Sdesint
2245238104Sdesmain ()
2246238104Sdes{
2247238104Sdesstatic $2 ac_aggr;
2248238104Sdesif (sizeof ac_aggr.$3)
2249238104Sdesreturn 0;
2250238104Sdes  ;
2251238104Sdes  return 0;
2252238104Sdes}
2253238104Sdes_ACEOF
2254238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
2255238104Sdes  eval "$4=yes"
2256238104Sdeselse
2257238104Sdes  eval "$4=no"
2258238104Sdesfi
2259238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260238104Sdesfi
2261238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262238104Sdesfi
2263238104Sdeseval ac_res=\$$4
2264238104Sdes	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265238104Sdes$as_echo "$ac_res" >&6; }
2266238104Sdes  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267238104Sdes
2268238104Sdes} # ac_fn_c_check_member
2269238104Sdescat >config.log <<_ACEOF
2270238104SdesThis file contains any messages produced by compilers while
2271238104Sdesrunning configure, to aid debugging if configure makes a mistake.
2272238104Sdes
2273269257SdesIt was created by ldns $as_me 1.6.17, which was
2274285206Sdesgenerated by GNU Autoconf 2.69.  Invocation command line was
2275238104Sdes
2276238104Sdes  $ $0 $@
2277238104Sdes
2278238104Sdes_ACEOF
2279238104Sdesexec 5>>config.log
2280238104Sdes{
2281238104Sdescat <<_ASUNAME
2282238104Sdes## --------- ##
2283238104Sdes## Platform. ##
2284238104Sdes## --------- ##
2285238104Sdes
2286238104Sdeshostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2287238104Sdesuname -m = `(uname -m) 2>/dev/null || echo unknown`
2288238104Sdesuname -r = `(uname -r) 2>/dev/null || echo unknown`
2289238104Sdesuname -s = `(uname -s) 2>/dev/null || echo unknown`
2290238104Sdesuname -v = `(uname -v) 2>/dev/null || echo unknown`
2291238104Sdes
2292238104Sdes/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2293238104Sdes/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2294238104Sdes
2295238104Sdes/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2296238104Sdes/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2297238104Sdes/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2298238104Sdes/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2299238104Sdes/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2300238104Sdes/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2301238104Sdes/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2302238104Sdes
2303238104Sdes_ASUNAME
2304238104Sdes
2305238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306238104Sdesfor as_dir in $PATH
2307238104Sdesdo
2308238104Sdes  IFS=$as_save_IFS
2309238104Sdes  test -z "$as_dir" && as_dir=.
2310238104Sdes    $as_echo "PATH: $as_dir"
2311238104Sdes  done
2312238104SdesIFS=$as_save_IFS
2313238104Sdes
2314238104Sdes} >&5
2315238104Sdes
2316238104Sdescat >&5 <<_ACEOF
2317238104Sdes
2318238104Sdes
2319238104Sdes## ----------- ##
2320238104Sdes## Core tests. ##
2321238104Sdes## ----------- ##
2322238104Sdes
2323238104Sdes_ACEOF
2324238104Sdes
2325238104Sdes
2326238104Sdes# Keep a trace of the command line.
2327238104Sdes# Strip out --no-create and --no-recursion so they do not pile up.
2328238104Sdes# Strip out --silent because we don't want to record it for future runs.
2329238104Sdes# Also quote any args containing shell meta-characters.
2330238104Sdes# Make two passes to allow for proper duplicate-argument suppression.
2331238104Sdesac_configure_args=
2332238104Sdesac_configure_args0=
2333238104Sdesac_configure_args1=
2334238104Sdesac_must_keep_next=false
2335238104Sdesfor ac_pass in 1 2
2336238104Sdesdo
2337238104Sdes  for ac_arg
2338238104Sdes  do
2339238104Sdes    case $ac_arg in
2340238104Sdes    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2341238104Sdes    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2342238104Sdes    | -silent | --silent | --silen | --sile | --sil)
2343238104Sdes      continue ;;
2344238104Sdes    *\'*)
2345238104Sdes      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2346238104Sdes    esac
2347238104Sdes    case $ac_pass in
2348238104Sdes    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2349238104Sdes    2)
2350238104Sdes      as_fn_append ac_configure_args1 " '$ac_arg'"
2351238104Sdes      if test $ac_must_keep_next = true; then
2352238104Sdes	ac_must_keep_next=false # Got value, back to normal.
2353238104Sdes      else
2354238104Sdes	case $ac_arg in
2355238104Sdes	  *=* | --config-cache | -C | -disable-* | --disable-* \
2356238104Sdes	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2357238104Sdes	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2358238104Sdes	  | -with-* | --with-* | -without-* | --without-* | --x)
2359238104Sdes	    case "$ac_configure_args0 " in
2360238104Sdes	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2361238104Sdes	    esac
2362238104Sdes	    ;;
2363238104Sdes	  -* ) ac_must_keep_next=true ;;
2364238104Sdes	esac
2365238104Sdes      fi
2366238104Sdes      as_fn_append ac_configure_args " '$ac_arg'"
2367238104Sdes      ;;
2368238104Sdes    esac
2369238104Sdes  done
2370238104Sdesdone
2371238104Sdes{ ac_configure_args0=; unset ac_configure_args0;}
2372238104Sdes{ ac_configure_args1=; unset ac_configure_args1;}
2373238104Sdes
2374238104Sdes# When interrupted or exit'd, cleanup temporary files, and complete
2375238104Sdes# config.log.  We remove comments because anyway the quotes in there
2376238104Sdes# would cause problems or look ugly.
2377238104Sdes# WARNING: Use '\'' to represent an apostrophe within the trap.
2378238104Sdes# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2379238104Sdestrap 'exit_status=$?
2380238104Sdes  # Save into config.log some information that might help in debugging.
2381238104Sdes  {
2382238104Sdes    echo
2383238104Sdes
2384238104Sdes    $as_echo "## ---------------- ##
2385238104Sdes## Cache variables. ##
2386238104Sdes## ---------------- ##"
2387238104Sdes    echo
2388238104Sdes    # The following way of writing the cache mishandles newlines in values,
2389238104Sdes(
2390238104Sdes  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391238104Sdes    eval ac_val=\$$ac_var
2392238104Sdes    case $ac_val in #(
2393238104Sdes    *${as_nl}*)
2394238104Sdes      case $ac_var in #(
2395238104Sdes      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396238104Sdes$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397238104Sdes      esac
2398238104Sdes      case $ac_var in #(
2399238104Sdes      _ | IFS | as_nl) ;; #(
2400238104Sdes      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401238104Sdes      *) { eval $ac_var=; unset $ac_var;} ;;
2402238104Sdes      esac ;;
2403238104Sdes    esac
2404238104Sdes  done
2405238104Sdes  (set) 2>&1 |
2406238104Sdes    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407238104Sdes    *${as_nl}ac_space=\ *)
2408238104Sdes      sed -n \
2409238104Sdes	"s/'\''/'\''\\\\'\'''\''/g;
2410238104Sdes	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411238104Sdes      ;; #(
2412238104Sdes    *)
2413238104Sdes      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414238104Sdes      ;;
2415238104Sdes    esac |
2416238104Sdes    sort
2417238104Sdes)
2418238104Sdes    echo
2419238104Sdes
2420238104Sdes    $as_echo "## ----------------- ##
2421238104Sdes## Output variables. ##
2422238104Sdes## ----------------- ##"
2423238104Sdes    echo
2424238104Sdes    for ac_var in $ac_subst_vars
2425238104Sdes    do
2426238104Sdes      eval ac_val=\$$ac_var
2427238104Sdes      case $ac_val in
2428238104Sdes      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429238104Sdes      esac
2430238104Sdes      $as_echo "$ac_var='\''$ac_val'\''"
2431238104Sdes    done | sort
2432238104Sdes    echo
2433238104Sdes
2434238104Sdes    if test -n "$ac_subst_files"; then
2435238104Sdes      $as_echo "## ------------------- ##
2436238104Sdes## File substitutions. ##
2437238104Sdes## ------------------- ##"
2438238104Sdes      echo
2439238104Sdes      for ac_var in $ac_subst_files
2440238104Sdes      do
2441238104Sdes	eval ac_val=\$$ac_var
2442238104Sdes	case $ac_val in
2443238104Sdes	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444238104Sdes	esac
2445238104Sdes	$as_echo "$ac_var='\''$ac_val'\''"
2446238104Sdes      done | sort
2447238104Sdes      echo
2448238104Sdes    fi
2449238104Sdes
2450238104Sdes    if test -s confdefs.h; then
2451238104Sdes      $as_echo "## ----------- ##
2452238104Sdes## confdefs.h. ##
2453238104Sdes## ----------- ##"
2454238104Sdes      echo
2455238104Sdes      cat confdefs.h
2456238104Sdes      echo
2457238104Sdes    fi
2458238104Sdes    test "$ac_signal" != 0 &&
2459238104Sdes      $as_echo "$as_me: caught signal $ac_signal"
2460238104Sdes    $as_echo "$as_me: exit $exit_status"
2461238104Sdes  } >&5
2462238104Sdes  rm -f core *.core core.conftest.* &&
2463238104Sdes    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2464238104Sdes    exit $exit_status
2465238104Sdes' 0
2466238104Sdesfor ac_signal in 1 2 13 15; do
2467238104Sdes  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2468238104Sdesdone
2469238104Sdesac_signal=0
2470238104Sdes
2471238104Sdes# confdefs.h avoids OS command line length limits that DEFS can exceed.
2472238104Sdesrm -f -r conftest* confdefs.h
2473238104Sdes
2474238104Sdes$as_echo "/* confdefs.h */" > confdefs.h
2475238104Sdes
2476238104Sdes# Predefined preprocessor variables.
2477238104Sdes
2478238104Sdescat >>confdefs.h <<_ACEOF
2479238104Sdes#define PACKAGE_NAME "$PACKAGE_NAME"
2480238104Sdes_ACEOF
2481238104Sdes
2482238104Sdescat >>confdefs.h <<_ACEOF
2483238104Sdes#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2484238104Sdes_ACEOF
2485238104Sdes
2486238104Sdescat >>confdefs.h <<_ACEOF
2487238104Sdes#define PACKAGE_VERSION "$PACKAGE_VERSION"
2488238104Sdes_ACEOF
2489238104Sdes
2490238104Sdescat >>confdefs.h <<_ACEOF
2491238104Sdes#define PACKAGE_STRING "$PACKAGE_STRING"
2492238104Sdes_ACEOF
2493238104Sdes
2494238104Sdescat >>confdefs.h <<_ACEOF
2495238104Sdes#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2496238104Sdes_ACEOF
2497238104Sdes
2498238104Sdescat >>confdefs.h <<_ACEOF
2499238104Sdes#define PACKAGE_URL "$PACKAGE_URL"
2500238104Sdes_ACEOF
2501238104Sdes
2502238104Sdes
2503238104Sdes# Let the site file select an alternate cache file if it wants to.
2504238104Sdes# Prefer an explicitly selected file to automatically selected ones.
2505238104Sdesac_site_file1=NONE
2506238104Sdesac_site_file2=NONE
2507238104Sdesif test -n "$CONFIG_SITE"; then
2508238104Sdes  # We do not want a PATH search for config.site.
2509238104Sdes  case $CONFIG_SITE in #((
2510238104Sdes    -*)  ac_site_file1=./$CONFIG_SITE;;
2511238104Sdes    */*) ac_site_file1=$CONFIG_SITE;;
2512238104Sdes    *)   ac_site_file1=./$CONFIG_SITE;;
2513238104Sdes  esac
2514238104Sdeselif test "x$prefix" != xNONE; then
2515238104Sdes  ac_site_file1=$prefix/share/config.site
2516238104Sdes  ac_site_file2=$prefix/etc/config.site
2517238104Sdeselse
2518238104Sdes  ac_site_file1=$ac_default_prefix/share/config.site
2519238104Sdes  ac_site_file2=$ac_default_prefix/etc/config.site
2520238104Sdesfi
2521238104Sdesfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2522238104Sdesdo
2523238104Sdes  test "x$ac_site_file" = xNONE && continue
2524238104Sdes  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2525238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526238104Sdes$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527238104Sdes    sed 's/^/| /' "$ac_site_file" >&5
2528238104Sdes    . "$ac_site_file" \
2529238104Sdes      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531238104Sdesas_fn_error $? "failed to load site script $ac_site_file
2532238104SdesSee \`config.log' for more details" "$LINENO" 5; }
2533238104Sdes  fi
2534238104Sdesdone
2535238104Sdes
2536238104Sdesif test -r "$cache_file"; then
2537238104Sdes  # Some versions of bash will fail to source /dev/null (special files
2538238104Sdes  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2539238104Sdes  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2540238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541238104Sdes$as_echo "$as_me: loading cache $cache_file" >&6;}
2542238104Sdes    case $cache_file in
2543238104Sdes      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544238104Sdes      *)                      . "./$cache_file";;
2545238104Sdes    esac
2546238104Sdes  fi
2547238104Sdeselse
2548238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549238104Sdes$as_echo "$as_me: creating cache $cache_file" >&6;}
2550238104Sdes  >$cache_file
2551238104Sdesfi
2552238104Sdes
2553238104Sdes# Check that the precious variables saved in the cache have kept the same
2554238104Sdes# value.
2555238104Sdesac_cache_corrupted=false
2556238104Sdesfor ac_var in $ac_precious_vars; do
2557238104Sdes  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2558238104Sdes  eval ac_new_set=\$ac_env_${ac_var}_set
2559238104Sdes  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2560238104Sdes  eval ac_new_val=\$ac_env_${ac_var}_value
2561238104Sdes  case $ac_old_set,$ac_new_set in
2562238104Sdes    set,)
2563238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564238104Sdes$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565238104Sdes      ac_cache_corrupted=: ;;
2566238104Sdes    ,set)
2567238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568238104Sdes$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569238104Sdes      ac_cache_corrupted=: ;;
2570238104Sdes    ,);;
2571238104Sdes    *)
2572238104Sdes      if test "x$ac_old_val" != "x$ac_new_val"; then
2573238104Sdes	# differences in whitespace do not lead to failure.
2574238104Sdes	ac_old_val_w=`echo x $ac_old_val`
2575238104Sdes	ac_new_val_w=`echo x $ac_new_val`
2576238104Sdes	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577238104Sdes	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578238104Sdes$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579238104Sdes	  ac_cache_corrupted=:
2580238104Sdes	else
2581238104Sdes	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582238104Sdes$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583238104Sdes	  eval $ac_var=\$ac_old_val
2584238104Sdes	fi
2585238104Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2586238104Sdes$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2587238104Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2588238104Sdes$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2589238104Sdes      fi;;
2590238104Sdes  esac
2591238104Sdes  # Pass precious variables to config.status.
2592238104Sdes  if test "$ac_new_set" = set; then
2593238104Sdes    case $ac_new_val in
2594238104Sdes    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595238104Sdes    *) ac_arg=$ac_var=$ac_new_val ;;
2596238104Sdes    esac
2597238104Sdes    case " $ac_configure_args " in
2598238104Sdes      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2599238104Sdes      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2600238104Sdes    esac
2601238104Sdes  fi
2602238104Sdesdone
2603238104Sdesif $ac_cache_corrupted; then
2604238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607238104Sdes$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608238104Sdes  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2609238104Sdesfi
2610238104Sdes## -------------------- ##
2611238104Sdes## Main body of script. ##
2612238104Sdes## -------------------- ##
2613238104Sdes
2614238104Sdesac_ext=c
2615238104Sdesac_cpp='$CPP $CPPFLAGS'
2616238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
2619238104Sdes
2620238104Sdes
2621238104Sdes
2622238104Sdes# needed to build correct soname
2623238104SdesLDNS_VERSION_MAJOR=1
2624238104Sdes
2625238104SdesLDNS_VERSION_MINOR=6
2626238104Sdes
2627269257SdesLDNS_VERSION_MICRO=17
2628238104Sdes
2629269257SdesVERSION_INFO=1:6:17
2630238104Sdes
2631238104Sdes
2632238104Sdesac_ext=c
2633238104Sdesac_cpp='$CPP $CPPFLAGS'
2634238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
2637238104Sdesif test -n "$ac_tool_prefix"; then
2638238104Sdes  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639238104Sdesset dummy ${ac_tool_prefix}gcc; ac_word=$2
2640238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
2642238104Sdesif ${ac_cv_prog_CC+:} false; then :
2643238104Sdes  $as_echo_n "(cached) " >&6
2644238104Sdeselse
2645238104Sdes  if test -n "$CC"; then
2646238104Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
2647238104Sdeselse
2648238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649238104Sdesfor as_dir in $PATH
2650238104Sdesdo
2651238104Sdes  IFS=$as_save_IFS
2652238104Sdes  test -z "$as_dir" && as_dir=.
2653238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
2654285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655238104Sdes    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2656238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657238104Sdes    break 2
2658238104Sdes  fi
2659238104Sdesdone
2660238104Sdes  done
2661238104SdesIFS=$as_save_IFS
2662238104Sdes
2663238104Sdesfi
2664238104Sdesfi
2665238104SdesCC=$ac_cv_prog_CC
2666238104Sdesif test -n "$CC"; then
2667238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668238104Sdes$as_echo "$CC" >&6; }
2669238104Sdeselse
2670238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671238104Sdes$as_echo "no" >&6; }
2672238104Sdesfi
2673238104Sdes
2674238104Sdes
2675238104Sdesfi
2676238104Sdesif test -z "$ac_cv_prog_CC"; then
2677238104Sdes  ac_ct_CC=$CC
2678238104Sdes  # Extract the first word of "gcc", so it can be a program name with args.
2679238104Sdesset dummy gcc; ac_word=$2
2680238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
2682238104Sdesif ${ac_cv_prog_ac_ct_CC+:} false; then :
2683238104Sdes  $as_echo_n "(cached) " >&6
2684238104Sdeselse
2685238104Sdes  if test -n "$ac_ct_CC"; then
2686238104Sdes  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687238104Sdeselse
2688238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689238104Sdesfor as_dir in $PATH
2690238104Sdesdo
2691238104Sdes  IFS=$as_save_IFS
2692238104Sdes  test -z "$as_dir" && as_dir=.
2693238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
2694285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695238104Sdes    ac_cv_prog_ac_ct_CC="gcc"
2696238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697238104Sdes    break 2
2698238104Sdes  fi
2699238104Sdesdone
2700238104Sdes  done
2701238104SdesIFS=$as_save_IFS
2702238104Sdes
2703238104Sdesfi
2704238104Sdesfi
2705238104Sdesac_ct_CC=$ac_cv_prog_ac_ct_CC
2706238104Sdesif test -n "$ac_ct_CC"; then
2707238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708238104Sdes$as_echo "$ac_ct_CC" >&6; }
2709238104Sdeselse
2710238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711238104Sdes$as_echo "no" >&6; }
2712238104Sdesfi
2713238104Sdes
2714238104Sdes  if test "x$ac_ct_CC" = x; then
2715238104Sdes    CC=""
2716238104Sdes  else
2717238104Sdes    case $cross_compiling:$ac_tool_warned in
2718238104Sdesyes:)
2719238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721238104Sdesac_tool_warned=yes ;;
2722238104Sdesesac
2723238104Sdes    CC=$ac_ct_CC
2724238104Sdes  fi
2725238104Sdeselse
2726238104Sdes  CC="$ac_cv_prog_CC"
2727238104Sdesfi
2728238104Sdes
2729238104Sdesif test -z "$CC"; then
2730238104Sdes          if test -n "$ac_tool_prefix"; then
2731238104Sdes    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732238104Sdesset dummy ${ac_tool_prefix}cc; ac_word=$2
2733238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
2735238104Sdesif ${ac_cv_prog_CC+:} false; then :
2736238104Sdes  $as_echo_n "(cached) " >&6
2737238104Sdeselse
2738238104Sdes  if test -n "$CC"; then
2739238104Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
2740238104Sdeselse
2741238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742238104Sdesfor as_dir in $PATH
2743238104Sdesdo
2744238104Sdes  IFS=$as_save_IFS
2745238104Sdes  test -z "$as_dir" && as_dir=.
2746238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
2747285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748238104Sdes    ac_cv_prog_CC="${ac_tool_prefix}cc"
2749238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750238104Sdes    break 2
2751238104Sdes  fi
2752238104Sdesdone
2753238104Sdes  done
2754238104SdesIFS=$as_save_IFS
2755238104Sdes
2756238104Sdesfi
2757238104Sdesfi
2758238104SdesCC=$ac_cv_prog_CC
2759238104Sdesif test -n "$CC"; then
2760238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761238104Sdes$as_echo "$CC" >&6; }
2762238104Sdeselse
2763238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764238104Sdes$as_echo "no" >&6; }
2765238104Sdesfi
2766238104Sdes
2767238104Sdes
2768238104Sdes  fi
2769238104Sdesfi
2770238104Sdesif test -z "$CC"; then
2771238104Sdes  # Extract the first word of "cc", so it can be a program name with args.
2772238104Sdesset dummy cc; ac_word=$2
2773238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
2775238104Sdesif ${ac_cv_prog_CC+:} false; then :
2776238104Sdes  $as_echo_n "(cached) " >&6
2777238104Sdeselse
2778238104Sdes  if test -n "$CC"; then
2779238104Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
2780238104Sdeselse
2781238104Sdes  ac_prog_rejected=no
2782238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783238104Sdesfor as_dir in $PATH
2784238104Sdesdo
2785238104Sdes  IFS=$as_save_IFS
2786238104Sdes  test -z "$as_dir" && as_dir=.
2787238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
2788285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789238104Sdes    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790238104Sdes       ac_prog_rejected=yes
2791238104Sdes       continue
2792238104Sdes     fi
2793238104Sdes    ac_cv_prog_CC="cc"
2794238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795238104Sdes    break 2
2796238104Sdes  fi
2797238104Sdesdone
2798238104Sdes  done
2799238104SdesIFS=$as_save_IFS
2800238104Sdes
2801238104Sdesif test $ac_prog_rejected = yes; then
2802238104Sdes  # We found a bogon in the path, so make sure we never use it.
2803238104Sdes  set dummy $ac_cv_prog_CC
2804238104Sdes  shift
2805238104Sdes  if test $# != 0; then
2806238104Sdes    # We chose a different compiler from the bogus one.
2807238104Sdes    # However, it has the same basename, so the bogon will be chosen
2808238104Sdes    # first if we set CC to just the basename; use the full file name.
2809238104Sdes    shift
2810238104Sdes    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2811238104Sdes  fi
2812238104Sdesfi
2813238104Sdesfi
2814238104Sdesfi
2815238104SdesCC=$ac_cv_prog_CC
2816238104Sdesif test -n "$CC"; then
2817238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818238104Sdes$as_echo "$CC" >&6; }
2819238104Sdeselse
2820238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821238104Sdes$as_echo "no" >&6; }
2822238104Sdesfi
2823238104Sdes
2824238104Sdes
2825238104Sdesfi
2826238104Sdesif test -z "$CC"; then
2827238104Sdes  if test -n "$ac_tool_prefix"; then
2828238104Sdes  for ac_prog in cl.exe
2829238104Sdes  do
2830238104Sdes    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831238104Sdesset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
2834238104Sdesif ${ac_cv_prog_CC+:} false; then :
2835238104Sdes  $as_echo_n "(cached) " >&6
2836238104Sdeselse
2837238104Sdes  if test -n "$CC"; then
2838238104Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
2839238104Sdeselse
2840238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841238104Sdesfor as_dir in $PATH
2842238104Sdesdo
2843238104Sdes  IFS=$as_save_IFS
2844238104Sdes  test -z "$as_dir" && as_dir=.
2845238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
2846285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847238104Sdes    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849238104Sdes    break 2
2850238104Sdes  fi
2851238104Sdesdone
2852238104Sdes  done
2853238104SdesIFS=$as_save_IFS
2854238104Sdes
2855238104Sdesfi
2856238104Sdesfi
2857238104SdesCC=$ac_cv_prog_CC
2858238104Sdesif test -n "$CC"; then
2859238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860238104Sdes$as_echo "$CC" >&6; }
2861238104Sdeselse
2862238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863238104Sdes$as_echo "no" >&6; }
2864238104Sdesfi
2865238104Sdes
2866238104Sdes
2867238104Sdes    test -n "$CC" && break
2868238104Sdes  done
2869238104Sdesfi
2870238104Sdesif test -z "$CC"; then
2871238104Sdes  ac_ct_CC=$CC
2872238104Sdes  for ac_prog in cl.exe
2873238104Sdesdo
2874238104Sdes  # Extract the first word of "$ac_prog", so it can be a program name with args.
2875238104Sdesset dummy $ac_prog; ac_word=$2
2876238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
2878238104Sdesif ${ac_cv_prog_ac_ct_CC+:} false; then :
2879238104Sdes  $as_echo_n "(cached) " >&6
2880238104Sdeselse
2881238104Sdes  if test -n "$ac_ct_CC"; then
2882238104Sdes  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883238104Sdeselse
2884238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885238104Sdesfor as_dir in $PATH
2886238104Sdesdo
2887238104Sdes  IFS=$as_save_IFS
2888238104Sdes  test -z "$as_dir" && as_dir=.
2889238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
2890285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891238104Sdes    ac_cv_prog_ac_ct_CC="$ac_prog"
2892238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893238104Sdes    break 2
2894238104Sdes  fi
2895238104Sdesdone
2896238104Sdes  done
2897238104SdesIFS=$as_save_IFS
2898238104Sdes
2899238104Sdesfi
2900238104Sdesfi
2901238104Sdesac_ct_CC=$ac_cv_prog_ac_ct_CC
2902238104Sdesif test -n "$ac_ct_CC"; then
2903238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904238104Sdes$as_echo "$ac_ct_CC" >&6; }
2905238104Sdeselse
2906238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907238104Sdes$as_echo "no" >&6; }
2908238104Sdesfi
2909238104Sdes
2910238104Sdes
2911238104Sdes  test -n "$ac_ct_CC" && break
2912238104Sdesdone
2913238104Sdes
2914238104Sdes  if test "x$ac_ct_CC" = x; then
2915238104Sdes    CC=""
2916238104Sdes  else
2917238104Sdes    case $cross_compiling:$ac_tool_warned in
2918238104Sdesyes:)
2919238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921238104Sdesac_tool_warned=yes ;;
2922238104Sdesesac
2923238104Sdes    CC=$ac_ct_CC
2924238104Sdes  fi
2925238104Sdesfi
2926238104Sdes
2927238104Sdesfi
2928238104Sdes
2929238104Sdes
2930238104Sdestest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932238104Sdesas_fn_error $? "no acceptable C compiler found in \$PATH
2933238104SdesSee \`config.log' for more details" "$LINENO" 5; }
2934238104Sdes
2935238104Sdes# Provide some information about the compiler.
2936238104Sdes$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2937238104Sdesset X $ac_compile
2938238104Sdesac_compiler=$2
2939238104Sdesfor ac_option in --version -v -V -qversion; do
2940238104Sdes  { { ac_try="$ac_compiler $ac_option >&5"
2941238104Sdescase "(($ac_try" in
2942238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943238104Sdes  *) ac_try_echo=$ac_try;;
2944238104Sdesesac
2945238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946238104Sdes$as_echo "$ac_try_echo"; } >&5
2947238104Sdes  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2948238104Sdes  ac_status=$?
2949238104Sdes  if test -s conftest.err; then
2950238104Sdes    sed '10a\
2951238104Sdes... rest of stderr output deleted ...
2952238104Sdes         10q' conftest.err >conftest.er1
2953238104Sdes    cat conftest.er1 >&5
2954238104Sdes  fi
2955238104Sdes  rm -f conftest.er1 conftest.err
2956238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957238104Sdes  test $ac_status = 0; }
2958238104Sdesdone
2959238104Sdes
2960238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961238104Sdes/* end confdefs.h.  */
2962238104Sdes
2963238104Sdesint
2964238104Sdesmain ()
2965238104Sdes{
2966238104Sdes
2967238104Sdes  ;
2968238104Sdes  return 0;
2969238104Sdes}
2970238104Sdes_ACEOF
2971238104Sdesac_clean_files_save=$ac_clean_files
2972238104Sdesac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2973238104Sdes# Try to create an executable without -o first, disregard a.out.
2974238104Sdes# It will help us diagnose broken compilers, and finding out an intuition
2975238104Sdes# of exeext.
2976238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2977238104Sdes$as_echo_n "checking whether the C compiler works... " >&6; }
2978238104Sdesac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2979238104Sdes
2980238104Sdes# The possible output files:
2981238104Sdesac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2982238104Sdes
2983238104Sdesac_rmfiles=
2984238104Sdesfor ac_file in $ac_files
2985238104Sdesdo
2986238104Sdes  case $ac_file in
2987238104Sdes    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988238104Sdes    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989238104Sdes  esac
2990238104Sdesdone
2991238104Sdesrm -f $ac_rmfiles
2992238104Sdes
2993238104Sdesif { { ac_try="$ac_link_default"
2994238104Sdescase "(($ac_try" in
2995238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996238104Sdes  *) ac_try_echo=$ac_try;;
2997238104Sdesesac
2998238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999238104Sdes$as_echo "$ac_try_echo"; } >&5
3000238104Sdes  (eval "$ac_link_default") 2>&5
3001238104Sdes  ac_status=$?
3002238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003238104Sdes  test $ac_status = 0; }; then :
3004238104Sdes  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3005238104Sdes# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3006238104Sdes# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3007238104Sdes# so that the user can short-circuit this test for compilers unknown to
3008238104Sdes# Autoconf.
3009238104Sdesfor ac_file in $ac_files ''
3010238104Sdesdo
3011238104Sdes  test -f "$ac_file" || continue
3012238104Sdes  case $ac_file in
3013238104Sdes    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3014238104Sdes	;;
3015238104Sdes    [ab].out )
3016238104Sdes	# We found the default executable, but exeext='' is most
3017238104Sdes	# certainly right.
3018238104Sdes	break;;
3019238104Sdes    *.* )
3020238104Sdes	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3021238104Sdes	then :; else
3022238104Sdes	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023238104Sdes	fi
3024238104Sdes	# We set ac_cv_exeext here because the later test for it is not
3025238104Sdes	# safe: cross compilers may not add the suffix if given an `-o'
3026238104Sdes	# argument, so we may need to know it at that point already.
3027238104Sdes	# Even if this section looks crufty: it has the advantage of
3028238104Sdes	# actually working.
3029238104Sdes	break;;
3030238104Sdes    * )
3031238104Sdes	break;;
3032238104Sdes  esac
3033238104Sdesdone
3034238104Sdestest "$ac_cv_exeext" = no && ac_cv_exeext=
3035238104Sdes
3036238104Sdeselse
3037238104Sdes  ac_file=''
3038238104Sdesfi
3039238104Sdesif test -z "$ac_file"; then :
3040238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041238104Sdes$as_echo "no" >&6; }
3042238104Sdes$as_echo "$as_me: failed program was:" >&5
3043238104Sdessed 's/^/| /' conftest.$ac_ext >&5
3044238104Sdes
3045238104Sdes{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047238104Sdesas_fn_error 77 "C compiler cannot create executables
3048238104SdesSee \`config.log' for more details" "$LINENO" 5; }
3049238104Sdeselse
3050238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051238104Sdes$as_echo "yes" >&6; }
3052238104Sdesfi
3053238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3054238104Sdes$as_echo_n "checking for C compiler default output file name... " >&6; }
3055238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3056238104Sdes$as_echo "$ac_file" >&6; }
3057238104Sdesac_exeext=$ac_cv_exeext
3058238104Sdes
3059238104Sdesrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3060238104Sdesac_clean_files=$ac_clean_files_save
3061238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3062238104Sdes$as_echo_n "checking for suffix of executables... " >&6; }
3063238104Sdesif { { ac_try="$ac_link"
3064238104Sdescase "(($ac_try" in
3065238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066238104Sdes  *) ac_try_echo=$ac_try;;
3067238104Sdesesac
3068238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069238104Sdes$as_echo "$ac_try_echo"; } >&5
3070238104Sdes  (eval "$ac_link") 2>&5
3071238104Sdes  ac_status=$?
3072238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073238104Sdes  test $ac_status = 0; }; then :
3074238104Sdes  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3075238104Sdes# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3076238104Sdes# work properly (i.e., refer to `conftest.exe'), while it won't with
3077238104Sdes# `rm'.
3078238104Sdesfor ac_file in conftest.exe conftest conftest.*; do
3079238104Sdes  test -f "$ac_file" || continue
3080238104Sdes  case $ac_file in
3081238104Sdes    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082238104Sdes    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083238104Sdes	  break;;
3084238104Sdes    * ) break;;
3085238104Sdes  esac
3086238104Sdesdone
3087238104Sdeselse
3088238104Sdes  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090238104Sdesas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3091238104SdesSee \`config.log' for more details" "$LINENO" 5; }
3092238104Sdesfi
3093238104Sdesrm -f conftest conftest$ac_cv_exeext
3094238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3095238104Sdes$as_echo "$ac_cv_exeext" >&6; }
3096238104Sdes
3097238104Sdesrm -f conftest.$ac_ext
3098238104SdesEXEEXT=$ac_cv_exeext
3099238104Sdesac_exeext=$EXEEXT
3100238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101238104Sdes/* end confdefs.h.  */
3102238104Sdes#include <stdio.h>
3103238104Sdesint
3104238104Sdesmain ()
3105238104Sdes{
3106238104SdesFILE *f = fopen ("conftest.out", "w");
3107238104Sdes return ferror (f) || fclose (f) != 0;
3108238104Sdes
3109238104Sdes  ;
3110238104Sdes  return 0;
3111238104Sdes}
3112238104Sdes_ACEOF
3113238104Sdesac_clean_files="$ac_clean_files conftest.out"
3114238104Sdes# Check that the compiler produces executables we can run.  If not, either
3115238104Sdes# the compiler is broken, or we cross compile.
3116238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3117238104Sdes$as_echo_n "checking whether we are cross compiling... " >&6; }
3118238104Sdesif test "$cross_compiling" != yes; then
3119238104Sdes  { { ac_try="$ac_link"
3120238104Sdescase "(($ac_try" in
3121238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122238104Sdes  *) ac_try_echo=$ac_try;;
3123238104Sdesesac
3124238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125238104Sdes$as_echo "$ac_try_echo"; } >&5
3126238104Sdes  (eval "$ac_link") 2>&5
3127238104Sdes  ac_status=$?
3128238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129238104Sdes  test $ac_status = 0; }
3130238104Sdes  if { ac_try='./conftest$ac_cv_exeext'
3131238104Sdes  { { case "(($ac_try" in
3132238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133238104Sdes  *) ac_try_echo=$ac_try;;
3134238104Sdesesac
3135238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136238104Sdes$as_echo "$ac_try_echo"; } >&5
3137238104Sdes  (eval "$ac_try") 2>&5
3138238104Sdes  ac_status=$?
3139238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140238104Sdes  test $ac_status = 0; }; }; then
3141238104Sdes    cross_compiling=no
3142238104Sdes  else
3143238104Sdes    if test "$cross_compiling" = maybe; then
3144238104Sdes	cross_compiling=yes
3145238104Sdes    else
3146238104Sdes	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148238104Sdesas_fn_error $? "cannot run C compiled programs.
3149238104SdesIf you meant to cross compile, use \`--host'.
3150238104SdesSee \`config.log' for more details" "$LINENO" 5; }
3151238104Sdes    fi
3152238104Sdes  fi
3153238104Sdesfi
3154238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3155238104Sdes$as_echo "$cross_compiling" >&6; }
3156238104Sdes
3157238104Sdesrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3158238104Sdesac_clean_files=$ac_clean_files_save
3159238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3160238104Sdes$as_echo_n "checking for suffix of object files... " >&6; }
3161238104Sdesif ${ac_cv_objext+:} false; then :
3162238104Sdes  $as_echo_n "(cached) " >&6
3163238104Sdeselse
3164238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165238104Sdes/* end confdefs.h.  */
3166238104Sdes
3167238104Sdesint
3168238104Sdesmain ()
3169238104Sdes{
3170238104Sdes
3171238104Sdes  ;
3172238104Sdes  return 0;
3173238104Sdes}
3174238104Sdes_ACEOF
3175238104Sdesrm -f conftest.o conftest.obj
3176238104Sdesif { { ac_try="$ac_compile"
3177238104Sdescase "(($ac_try" in
3178238104Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179238104Sdes  *) ac_try_echo=$ac_try;;
3180238104Sdesesac
3181238104Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182238104Sdes$as_echo "$ac_try_echo"; } >&5
3183238104Sdes  (eval "$ac_compile") 2>&5
3184238104Sdes  ac_status=$?
3185238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186238104Sdes  test $ac_status = 0; }; then :
3187238104Sdes  for ac_file in conftest.o conftest.obj conftest.*; do
3188238104Sdes  test -f "$ac_file" || continue;
3189238104Sdes  case $ac_file in
3190238104Sdes    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3191238104Sdes    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3192238104Sdes       break;;
3193238104Sdes  esac
3194238104Sdesdone
3195238104Sdeselse
3196238104Sdes  $as_echo "$as_me: failed program was:" >&5
3197238104Sdessed 's/^/| /' conftest.$ac_ext >&5
3198238104Sdes
3199238104Sdes{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201238104Sdesas_fn_error $? "cannot compute suffix of object files: cannot compile
3202238104SdesSee \`config.log' for more details" "$LINENO" 5; }
3203238104Sdesfi
3204238104Sdesrm -f conftest.$ac_cv_objext conftest.$ac_ext
3205238104Sdesfi
3206238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3207238104Sdes$as_echo "$ac_cv_objext" >&6; }
3208238104SdesOBJEXT=$ac_cv_objext
3209238104Sdesac_objext=$OBJEXT
3210238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3211238104Sdes$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3212238104Sdesif ${ac_cv_c_compiler_gnu+:} false; then :
3213238104Sdes  $as_echo_n "(cached) " >&6
3214238104Sdeselse
3215238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216238104Sdes/* end confdefs.h.  */
3217238104Sdes
3218238104Sdesint
3219238104Sdesmain ()
3220238104Sdes{
3221238104Sdes#ifndef __GNUC__
3222238104Sdes       choke me
3223238104Sdes#endif
3224238104Sdes
3225238104Sdes  ;
3226238104Sdes  return 0;
3227238104Sdes}
3228238104Sdes_ACEOF
3229238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
3230238104Sdes  ac_compiler_gnu=yes
3231238104Sdeselse
3232238104Sdes  ac_compiler_gnu=no
3233238104Sdesfi
3234238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235238104Sdesac_cv_c_compiler_gnu=$ac_compiler_gnu
3236238104Sdes
3237238104Sdesfi
3238238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3239238104Sdes$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3240238104Sdesif test $ac_compiler_gnu = yes; then
3241238104Sdes  GCC=yes
3242238104Sdeselse
3243238104Sdes  GCC=
3244238104Sdesfi
3245238104Sdesac_test_CFLAGS=${CFLAGS+set}
3246238104Sdesac_save_CFLAGS=$CFLAGS
3247238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3248238104Sdes$as_echo_n "checking whether $CC accepts -g... " >&6; }
3249238104Sdesif ${ac_cv_prog_cc_g+:} false; then :
3250238104Sdes  $as_echo_n "(cached) " >&6
3251238104Sdeselse
3252238104Sdes  ac_save_c_werror_flag=$ac_c_werror_flag
3253238104Sdes   ac_c_werror_flag=yes
3254238104Sdes   ac_cv_prog_cc_g=no
3255238104Sdes   CFLAGS="-g"
3256238104Sdes   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257238104Sdes/* end confdefs.h.  */
3258238104Sdes
3259238104Sdesint
3260238104Sdesmain ()
3261238104Sdes{
3262238104Sdes
3263238104Sdes  ;
3264238104Sdes  return 0;
3265238104Sdes}
3266238104Sdes_ACEOF
3267238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
3268238104Sdes  ac_cv_prog_cc_g=yes
3269238104Sdeselse
3270238104Sdes  CFLAGS=""
3271238104Sdes      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272238104Sdes/* end confdefs.h.  */
3273238104Sdes
3274238104Sdesint
3275238104Sdesmain ()
3276238104Sdes{
3277238104Sdes
3278238104Sdes  ;
3279238104Sdes  return 0;
3280238104Sdes}
3281238104Sdes_ACEOF
3282238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
3283238104Sdes
3284238104Sdeselse
3285238104Sdes  ac_c_werror_flag=$ac_save_c_werror_flag
3286238104Sdes	 CFLAGS="-g"
3287238104Sdes	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288238104Sdes/* end confdefs.h.  */
3289238104Sdes
3290238104Sdesint
3291238104Sdesmain ()
3292238104Sdes{
3293238104Sdes
3294238104Sdes  ;
3295238104Sdes  return 0;
3296238104Sdes}
3297238104Sdes_ACEOF
3298238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
3299238104Sdes  ac_cv_prog_cc_g=yes
3300238104Sdesfi
3301238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302238104Sdesfi
3303238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304238104Sdesfi
3305238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306238104Sdes   ac_c_werror_flag=$ac_save_c_werror_flag
3307238104Sdesfi
3308238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3309238104Sdes$as_echo "$ac_cv_prog_cc_g" >&6; }
3310238104Sdesif test "$ac_test_CFLAGS" = set; then
3311238104Sdes  CFLAGS=$ac_save_CFLAGS
3312238104Sdeselif test $ac_cv_prog_cc_g = yes; then
3313238104Sdes  if test "$GCC" = yes; then
3314238104Sdes    CFLAGS="-g -O2"
3315238104Sdes  else
3316238104Sdes    CFLAGS="-g"
3317238104Sdes  fi
3318238104Sdeselse
3319238104Sdes  if test "$GCC" = yes; then
3320238104Sdes    CFLAGS="-O2"
3321238104Sdes  else
3322238104Sdes    CFLAGS=
3323238104Sdes  fi
3324238104Sdesfi
3325238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3326238104Sdes$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3327238104Sdesif ${ac_cv_prog_cc_c89+:} false; then :
3328238104Sdes  $as_echo_n "(cached) " >&6
3329238104Sdeselse
3330238104Sdes  ac_cv_prog_cc_c89=no
3331238104Sdesac_save_CC=$CC
3332238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333238104Sdes/* end confdefs.h.  */
3334238104Sdes#include <stdarg.h>
3335238104Sdes#include <stdio.h>
3336285206Sdesstruct stat;
3337238104Sdes/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3338238104Sdesstruct buf { int x; };
3339238104SdesFILE * (*rcsopen) (struct buf *, struct stat *, int);
3340238104Sdesstatic char *e (p, i)
3341238104Sdes     char **p;
3342238104Sdes     int i;
3343238104Sdes{
3344238104Sdes  return p[i];
3345238104Sdes}
3346238104Sdesstatic char *f (char * (*g) (char **, int), char **p, ...)
3347238104Sdes{
3348238104Sdes  char *s;
3349238104Sdes  va_list v;
3350238104Sdes  va_start (v,p);
3351238104Sdes  s = g (p, va_arg (v,int));
3352238104Sdes  va_end (v);
3353238104Sdes  return s;
3354238104Sdes}
3355238104Sdes
3356238104Sdes/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3357238104Sdes   function prototypes and stuff, but not '\xHH' hex character constants.
3358238104Sdes   These don't provoke an error unfortunately, instead are silently treated
3359238104Sdes   as 'x'.  The following induces an error, until -std is added to get
3360238104Sdes   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3361238104Sdes   array size at least.  It's necessary to write '\x00'==0 to get something
3362238104Sdes   that's true only with -std.  */
3363238104Sdesint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3364238104Sdes
3365238104Sdes/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3366238104Sdes   inside strings and character constants.  */
3367238104Sdes#define FOO(x) 'x'
3368238104Sdesint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3369238104Sdes
3370238104Sdesint test (int i, double x);
3371238104Sdesstruct s1 {int (*f) (int a);};
3372238104Sdesstruct s2 {int (*f) (double a);};
3373238104Sdesint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3374238104Sdesint argc;
3375238104Sdeschar **argv;
3376238104Sdesint
3377238104Sdesmain ()
3378238104Sdes{
3379238104Sdesreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3380238104Sdes  ;
3381238104Sdes  return 0;
3382238104Sdes}
3383238104Sdes_ACEOF
3384238104Sdesfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3385238104Sdes	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3386238104Sdesdo
3387238104Sdes  CC="$ac_save_CC $ac_arg"
3388238104Sdes  if ac_fn_c_try_compile "$LINENO"; then :
3389238104Sdes  ac_cv_prog_cc_c89=$ac_arg
3390238104Sdesfi
3391238104Sdesrm -f core conftest.err conftest.$ac_objext
3392238104Sdes  test "x$ac_cv_prog_cc_c89" != "xno" && break
3393238104Sdesdone
3394238104Sdesrm -f conftest.$ac_ext
3395238104SdesCC=$ac_save_CC
3396238104Sdes
3397238104Sdesfi
3398238104Sdes# AC_CACHE_VAL
3399238104Sdescase "x$ac_cv_prog_cc_c89" in
3400238104Sdes  x)
3401238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3402238104Sdes$as_echo "none needed" >&6; } ;;
3403238104Sdes  xno)
3404238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3405238104Sdes$as_echo "unsupported" >&6; } ;;
3406238104Sdes  *)
3407238104Sdes    CC="$CC $ac_cv_prog_cc_c89"
3408238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3409238104Sdes$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3410238104Sdesesac
3411238104Sdesif test "x$ac_cv_prog_cc_c89" != xno; then :
3412238104Sdes
3413238104Sdesfi
3414238104Sdes
3415238104Sdesac_ext=c
3416238104Sdesac_cpp='$CPP $CPPFLAGS'
3417238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
3420238104Sdes
3421238104Sdes
3422238104Sdesac_ext=c
3423238104Sdesac_cpp='$CPP $CPPFLAGS'
3424238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
3427238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3428238104Sdes$as_echo_n "checking how to run the C preprocessor... " >&6; }
3429238104Sdes# On Suns, sometimes $CPP names a directory.
3430238104Sdesif test -n "$CPP" && test -d "$CPP"; then
3431238104Sdes  CPP=
3432238104Sdesfi
3433238104Sdesif test -z "$CPP"; then
3434238104Sdes  if ${ac_cv_prog_CPP+:} false; then :
3435238104Sdes  $as_echo_n "(cached) " >&6
3436238104Sdeselse
3437238104Sdes      # Double quotes because CPP needs to be expanded
3438238104Sdes    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3439238104Sdes    do
3440238104Sdes      ac_preproc_ok=false
3441238104Sdesfor ac_c_preproc_warn_flag in '' yes
3442238104Sdesdo
3443238104Sdes  # Use a header file that comes with gcc, so configuring glibc
3444238104Sdes  # with a fresh cross-compiler works.
3445238104Sdes  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446238104Sdes  # <limits.h> exists even on freestanding compilers.
3447238104Sdes  # On the NeXT, cc -E runs the code through the compiler's parser,
3448238104Sdes  # not just through cpp. "Syntax error" is here to catch this case.
3449238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450238104Sdes/* end confdefs.h.  */
3451238104Sdes#ifdef __STDC__
3452238104Sdes# include <limits.h>
3453238104Sdes#else
3454238104Sdes# include <assert.h>
3455238104Sdes#endif
3456238104Sdes		     Syntax error
3457238104Sdes_ACEOF
3458238104Sdesif ac_fn_c_try_cpp "$LINENO"; then :
3459238104Sdes
3460238104Sdeselse
3461238104Sdes  # Broken: fails on valid input.
3462238104Sdescontinue
3463238104Sdesfi
3464238104Sdesrm -f conftest.err conftest.i conftest.$ac_ext
3465238104Sdes
3466238104Sdes  # OK, works on sane cases.  Now check whether nonexistent headers
3467238104Sdes  # can be detected and how.
3468238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469238104Sdes/* end confdefs.h.  */
3470238104Sdes#include <ac_nonexistent.h>
3471238104Sdes_ACEOF
3472238104Sdesif ac_fn_c_try_cpp "$LINENO"; then :
3473238104Sdes  # Broken: success on invalid input.
3474238104Sdescontinue
3475238104Sdeselse
3476238104Sdes  # Passes both tests.
3477238104Sdesac_preproc_ok=:
3478238104Sdesbreak
3479238104Sdesfi
3480238104Sdesrm -f conftest.err conftest.i conftest.$ac_ext
3481238104Sdes
3482238104Sdesdone
3483238104Sdes# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484238104Sdesrm -f conftest.i conftest.err conftest.$ac_ext
3485238104Sdesif $ac_preproc_ok; then :
3486238104Sdes  break
3487238104Sdesfi
3488238104Sdes
3489238104Sdes    done
3490238104Sdes    ac_cv_prog_CPP=$CPP
3491238104Sdes
3492238104Sdesfi
3493238104Sdes  CPP=$ac_cv_prog_CPP
3494238104Sdeselse
3495238104Sdes  ac_cv_prog_CPP=$CPP
3496238104Sdesfi
3497238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3498238104Sdes$as_echo "$CPP" >&6; }
3499238104Sdesac_preproc_ok=false
3500238104Sdesfor ac_c_preproc_warn_flag in '' yes
3501238104Sdesdo
3502238104Sdes  # Use a header file that comes with gcc, so configuring glibc
3503238104Sdes  # with a fresh cross-compiler works.
3504238104Sdes  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505238104Sdes  # <limits.h> exists even on freestanding compilers.
3506238104Sdes  # On the NeXT, cc -E runs the code through the compiler's parser,
3507238104Sdes  # not just through cpp. "Syntax error" is here to catch this case.
3508238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509238104Sdes/* end confdefs.h.  */
3510238104Sdes#ifdef __STDC__
3511238104Sdes# include <limits.h>
3512238104Sdes#else
3513238104Sdes# include <assert.h>
3514238104Sdes#endif
3515238104Sdes		     Syntax error
3516238104Sdes_ACEOF
3517238104Sdesif ac_fn_c_try_cpp "$LINENO"; then :
3518238104Sdes
3519238104Sdeselse
3520238104Sdes  # Broken: fails on valid input.
3521238104Sdescontinue
3522238104Sdesfi
3523238104Sdesrm -f conftest.err conftest.i conftest.$ac_ext
3524238104Sdes
3525238104Sdes  # OK, works on sane cases.  Now check whether nonexistent headers
3526238104Sdes  # can be detected and how.
3527238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528238104Sdes/* end confdefs.h.  */
3529238104Sdes#include <ac_nonexistent.h>
3530238104Sdes_ACEOF
3531238104Sdesif ac_fn_c_try_cpp "$LINENO"; then :
3532238104Sdes  # Broken: success on invalid input.
3533238104Sdescontinue
3534238104Sdeselse
3535238104Sdes  # Passes both tests.
3536238104Sdesac_preproc_ok=:
3537238104Sdesbreak
3538238104Sdesfi
3539238104Sdesrm -f conftest.err conftest.i conftest.$ac_ext
3540238104Sdes
3541238104Sdesdone
3542238104Sdes# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543238104Sdesrm -f conftest.i conftest.err conftest.$ac_ext
3544238104Sdesif $ac_preproc_ok; then :
3545238104Sdes
3546238104Sdeselse
3547238104Sdes  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549238104Sdesas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3550238104SdesSee \`config.log' for more details" "$LINENO" 5; }
3551238104Sdesfi
3552238104Sdes
3553238104Sdesac_ext=c
3554238104Sdesac_cpp='$CPP $CPPFLAGS'
3555238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
3558238104Sdes
3559238104Sdes
3560238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3561238104Sdes$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3562238104Sdesif ${ac_cv_path_GREP+:} false; then :
3563238104Sdes  $as_echo_n "(cached) " >&6
3564238104Sdeselse
3565238104Sdes  if test -z "$GREP"; then
3566238104Sdes  ac_path_GREP_found=false
3567238104Sdes  # Loop through the user's path and test for each of PROGNAME-LIST
3568238104Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569238104Sdesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3570238104Sdesdo
3571238104Sdes  IFS=$as_save_IFS
3572238104Sdes  test -z "$as_dir" && as_dir=.
3573238104Sdes    for ac_prog in grep ggrep; do
3574238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
3575238104Sdes      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3576285206Sdes      as_fn_executable_p "$ac_path_GREP" || continue
3577238104Sdes# Check for GNU ac_path_GREP and select it if it is found.
3578238104Sdes  # Check for GNU $ac_path_GREP
3579238104Sdescase `"$ac_path_GREP" --version 2>&1` in
3580238104Sdes*GNU*)
3581238104Sdes  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3582238104Sdes*)
3583238104Sdes  ac_count=0
3584238104Sdes  $as_echo_n 0123456789 >"conftest.in"
3585238104Sdes  while :
3586238104Sdes  do
3587238104Sdes    cat "conftest.in" "conftest.in" >"conftest.tmp"
3588238104Sdes    mv "conftest.tmp" "conftest.in"
3589238104Sdes    cp "conftest.in" "conftest.nl"
3590238104Sdes    $as_echo 'GREP' >> "conftest.nl"
3591238104Sdes    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3592238104Sdes    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3593238104Sdes    as_fn_arith $ac_count + 1 && ac_count=$as_val
3594238104Sdes    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3595238104Sdes      # Best one so far, save it but keep looking for a better one
3596238104Sdes      ac_cv_path_GREP="$ac_path_GREP"
3597238104Sdes      ac_path_GREP_max=$ac_count
3598238104Sdes    fi
3599238104Sdes    # 10*(2^10) chars as input seems more than enough
3600238104Sdes    test $ac_count -gt 10 && break
3601238104Sdes  done
3602238104Sdes  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3603238104Sdesesac
3604238104Sdes
3605238104Sdes      $ac_path_GREP_found && break 3
3606238104Sdes    done
3607238104Sdes  done
3608238104Sdes  done
3609238104SdesIFS=$as_save_IFS
3610238104Sdes  if test -z "$ac_cv_path_GREP"; then
3611238104Sdes    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3612238104Sdes  fi
3613238104Sdeselse
3614238104Sdes  ac_cv_path_GREP=$GREP
3615238104Sdesfi
3616238104Sdes
3617238104Sdesfi
3618238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3619238104Sdes$as_echo "$ac_cv_path_GREP" >&6; }
3620238104Sdes GREP="$ac_cv_path_GREP"
3621238104Sdes
3622238104Sdes
3623238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3624238104Sdes$as_echo_n "checking for egrep... " >&6; }
3625238104Sdesif ${ac_cv_path_EGREP+:} false; then :
3626238104Sdes  $as_echo_n "(cached) " >&6
3627238104Sdeselse
3628238104Sdes  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3629238104Sdes   then ac_cv_path_EGREP="$GREP -E"
3630238104Sdes   else
3631238104Sdes     if test -z "$EGREP"; then
3632238104Sdes  ac_path_EGREP_found=false
3633238104Sdes  # Loop through the user's path and test for each of PROGNAME-LIST
3634238104Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635238104Sdesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636238104Sdesdo
3637238104Sdes  IFS=$as_save_IFS
3638238104Sdes  test -z "$as_dir" && as_dir=.
3639238104Sdes    for ac_prog in egrep; do
3640238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
3641238104Sdes      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3642285206Sdes      as_fn_executable_p "$ac_path_EGREP" || continue
3643238104Sdes# Check for GNU ac_path_EGREP and select it if it is found.
3644238104Sdes  # Check for GNU $ac_path_EGREP
3645238104Sdescase `"$ac_path_EGREP" --version 2>&1` in
3646238104Sdes*GNU*)
3647238104Sdes  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3648238104Sdes*)
3649238104Sdes  ac_count=0
3650238104Sdes  $as_echo_n 0123456789 >"conftest.in"
3651238104Sdes  while :
3652238104Sdes  do
3653238104Sdes    cat "conftest.in" "conftest.in" >"conftest.tmp"
3654238104Sdes    mv "conftest.tmp" "conftest.in"
3655238104Sdes    cp "conftest.in" "conftest.nl"
3656238104Sdes    $as_echo 'EGREP' >> "conftest.nl"
3657238104Sdes    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658238104Sdes    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659238104Sdes    as_fn_arith $ac_count + 1 && ac_count=$as_val
3660238104Sdes    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3661238104Sdes      # Best one so far, save it but keep looking for a better one
3662238104Sdes      ac_cv_path_EGREP="$ac_path_EGREP"
3663238104Sdes      ac_path_EGREP_max=$ac_count
3664238104Sdes    fi
3665238104Sdes    # 10*(2^10) chars as input seems more than enough
3666238104Sdes    test $ac_count -gt 10 && break
3667238104Sdes  done
3668238104Sdes  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669238104Sdesesac
3670238104Sdes
3671238104Sdes      $ac_path_EGREP_found && break 3
3672238104Sdes    done
3673238104Sdes  done
3674238104Sdes  done
3675238104SdesIFS=$as_save_IFS
3676238104Sdes  if test -z "$ac_cv_path_EGREP"; then
3677238104Sdes    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3678238104Sdes  fi
3679238104Sdeselse
3680238104Sdes  ac_cv_path_EGREP=$EGREP
3681238104Sdesfi
3682238104Sdes
3683238104Sdes   fi
3684238104Sdesfi
3685238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3686238104Sdes$as_echo "$ac_cv_path_EGREP" >&6; }
3687238104Sdes EGREP="$ac_cv_path_EGREP"
3688238104Sdes
3689238104Sdes
3690238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3691238104Sdes$as_echo_n "checking for ANSI C header files... " >&6; }
3692238104Sdesif ${ac_cv_header_stdc+:} false; then :
3693238104Sdes  $as_echo_n "(cached) " >&6
3694238104Sdeselse
3695238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696238104Sdes/* end confdefs.h.  */
3697238104Sdes#include <stdlib.h>
3698238104Sdes#include <stdarg.h>
3699238104Sdes#include <string.h>
3700238104Sdes#include <float.h>
3701238104Sdes
3702238104Sdesint
3703238104Sdesmain ()
3704238104Sdes{
3705238104Sdes
3706238104Sdes  ;
3707238104Sdes  return 0;
3708238104Sdes}
3709238104Sdes_ACEOF
3710238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
3711238104Sdes  ac_cv_header_stdc=yes
3712238104Sdeselse
3713238104Sdes  ac_cv_header_stdc=no
3714238104Sdesfi
3715238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716238104Sdes
3717238104Sdesif test $ac_cv_header_stdc = yes; then
3718238104Sdes  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3719238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720238104Sdes/* end confdefs.h.  */
3721238104Sdes#include <string.h>
3722238104Sdes
3723238104Sdes_ACEOF
3724238104Sdesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725238104Sdes  $EGREP "memchr" >/dev/null 2>&1; then :
3726238104Sdes
3727238104Sdeselse
3728238104Sdes  ac_cv_header_stdc=no
3729238104Sdesfi
3730238104Sdesrm -f conftest*
3731238104Sdes
3732238104Sdesfi
3733238104Sdes
3734238104Sdesif test $ac_cv_header_stdc = yes; then
3735238104Sdes  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3736238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737238104Sdes/* end confdefs.h.  */
3738238104Sdes#include <stdlib.h>
3739238104Sdes
3740238104Sdes_ACEOF
3741238104Sdesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3742238104Sdes  $EGREP "free" >/dev/null 2>&1; then :
3743238104Sdes
3744238104Sdeselse
3745238104Sdes  ac_cv_header_stdc=no
3746238104Sdesfi
3747238104Sdesrm -f conftest*
3748238104Sdes
3749238104Sdesfi
3750238104Sdes
3751238104Sdesif test $ac_cv_header_stdc = yes; then
3752238104Sdes  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3753238104Sdes  if test "$cross_compiling" = yes; then :
3754238104Sdes  :
3755238104Sdeselse
3756238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757238104Sdes/* end confdefs.h.  */
3758238104Sdes#include <ctype.h>
3759238104Sdes#include <stdlib.h>
3760238104Sdes#if ((' ' & 0x0FF) == 0x020)
3761238104Sdes# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3762238104Sdes# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3763238104Sdes#else
3764238104Sdes# define ISLOWER(c) \
3765238104Sdes		   (('a' <= (c) && (c) <= 'i') \
3766238104Sdes		     || ('j' <= (c) && (c) <= 'r') \
3767238104Sdes		     || ('s' <= (c) && (c) <= 'z'))
3768238104Sdes# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3769238104Sdes#endif
3770238104Sdes
3771238104Sdes#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3772238104Sdesint
3773238104Sdesmain ()
3774238104Sdes{
3775238104Sdes  int i;
3776238104Sdes  for (i = 0; i < 256; i++)
3777238104Sdes    if (XOR (islower (i), ISLOWER (i))
3778238104Sdes	|| toupper (i) != TOUPPER (i))
3779238104Sdes      return 2;
3780238104Sdes  return 0;
3781238104Sdes}
3782238104Sdes_ACEOF
3783238104Sdesif ac_fn_c_try_run "$LINENO"; then :
3784238104Sdes
3785238104Sdeselse
3786238104Sdes  ac_cv_header_stdc=no
3787238104Sdesfi
3788238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3789238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
3790238104Sdesfi
3791238104Sdes
3792238104Sdesfi
3793238104Sdesfi
3794238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3795238104Sdes$as_echo "$ac_cv_header_stdc" >&6; }
3796238104Sdesif test $ac_cv_header_stdc = yes; then
3797238104Sdes
3798238104Sdes$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3799238104Sdes
3800238104Sdesfi
3801238104Sdes
3802238104Sdes# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3803238104Sdesfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3804238104Sdes		  inttypes.h stdint.h unistd.h
3805238104Sdesdo :
3806238104Sdes  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3807238104Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3808238104Sdes"
3809238104Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3810238104Sdes  cat >>confdefs.h <<_ACEOF
3811238104Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3812238104Sdes_ACEOF
3813238104Sdes
3814238104Sdesfi
3815238104Sdes
3816238104Sdesdone
3817238104Sdes
3818238104Sdes
3819238104Sdes
3820238104Sdes  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3821238104Sdesif test "x$ac_cv_header_minix_config_h" = xyes; then :
3822238104Sdes  MINIX=yes
3823238104Sdeselse
3824238104Sdes  MINIX=
3825238104Sdesfi
3826238104Sdes
3827238104Sdes
3828238104Sdes  if test "$MINIX" = yes; then
3829238104Sdes
3830238104Sdes$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3831238104Sdes
3832238104Sdes
3833238104Sdes$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3834238104Sdes
3835238104Sdes
3836238104Sdes$as_echo "#define _MINIX 1" >>confdefs.h
3837238104Sdes
3838238104Sdes  fi
3839238104Sdes
3840238104Sdes
3841238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3842238104Sdes$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3843238104Sdesif ${ac_cv_safe_to_define___extensions__+:} false; then :
3844238104Sdes  $as_echo_n "(cached) " >&6
3845238104Sdeselse
3846238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847238104Sdes/* end confdefs.h.  */
3848238104Sdes
3849285206Sdes#         define __EXTENSIONS__ 1
3850285206Sdes          $ac_includes_default
3851238104Sdesint
3852238104Sdesmain ()
3853238104Sdes{
3854238104Sdes
3855238104Sdes  ;
3856238104Sdes  return 0;
3857238104Sdes}
3858238104Sdes_ACEOF
3859238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
3860238104Sdes  ac_cv_safe_to_define___extensions__=yes
3861238104Sdeselse
3862238104Sdes  ac_cv_safe_to_define___extensions__=no
3863238104Sdesfi
3864238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865238104Sdesfi
3866238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3867238104Sdes$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3868238104Sdes  test $ac_cv_safe_to_define___extensions__ = yes &&
3869238104Sdes    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3870238104Sdes
3871238104Sdes  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3872238104Sdes
3873238104Sdes  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3874238104Sdes
3875238104Sdes  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3876238104Sdes
3877238104Sdes  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3878238104Sdes
3879238104Sdes
3880238104Sdes
3881238104Sdesac_aux_dir=
3882238104Sdesfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3883238104Sdes  if test -f "$ac_dir/install-sh"; then
3884238104Sdes    ac_aux_dir=$ac_dir
3885238104Sdes    ac_install_sh="$ac_aux_dir/install-sh -c"
3886238104Sdes    break
3887238104Sdes  elif test -f "$ac_dir/install.sh"; then
3888238104Sdes    ac_aux_dir=$ac_dir
3889238104Sdes    ac_install_sh="$ac_aux_dir/install.sh -c"
3890238104Sdes    break
3891238104Sdes  elif test -f "$ac_dir/shtool"; then
3892238104Sdes    ac_aux_dir=$ac_dir
3893238104Sdes    ac_install_sh="$ac_aux_dir/shtool install -c"
3894238104Sdes    break
3895238104Sdes  fi
3896238104Sdesdone
3897238104Sdesif test -z "$ac_aux_dir"; then
3898238104Sdes  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3899238104Sdesfi
3900238104Sdes
3901238104Sdes# These three variables are undocumented and unsupported,
3902238104Sdes# and are intended to be withdrawn in a future Autoconf release.
3903238104Sdes# They can cause serious problems if a builder's source tree is in a directory
3904238104Sdes# whose full name contains unusual characters.
3905238104Sdesac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3906238104Sdesac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3907238104Sdesac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3908238104Sdes
3909238104Sdes
3910269257Sdescase `pwd` in
3911269257Sdes  *\ * | *\	*)
3912269257Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3913269257Sdes$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3914269257Sdesesac
3915269257Sdes
3916269257Sdes
3917269257Sdes
3918269257Sdesmacro_version='2.4.2'
3919269257Sdesmacro_revision='1.3337'
3920269257Sdes
3921269257Sdes
3922269257Sdes
3923269257Sdes
3924269257Sdes
3925269257Sdes
3926269257Sdes
3927269257Sdes
3928269257Sdes
3929269257Sdes
3930269257Sdes
3931269257Sdes
3932269257Sdes
3933269257Sdesltmain="$ac_aux_dir/ltmain.sh"
3934269257Sdes
3935238104Sdes# Make sure we can run config.sub.
3936238104Sdes$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3937238104Sdes  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3938238104Sdes
3939238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940238104Sdes$as_echo_n "checking build system type... " >&6; }
3941238104Sdesif ${ac_cv_build+:} false; then :
3942238104Sdes  $as_echo_n "(cached) " >&6
3943238104Sdeselse
3944238104Sdes  ac_build_alias=$build_alias
3945238104Sdestest "x$ac_build_alias" = x &&
3946238104Sdes  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3947238104Sdestest "x$ac_build_alias" = x &&
3948238104Sdes  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3949238104Sdesac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950238104Sdes  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3951238104Sdes
3952238104Sdesfi
3953238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954238104Sdes$as_echo "$ac_cv_build" >&6; }
3955238104Sdescase $ac_cv_build in
3956238104Sdes*-*-*) ;;
3957238104Sdes*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3958238104Sdesesac
3959238104Sdesbuild=$ac_cv_build
3960238104Sdesac_save_IFS=$IFS; IFS='-'
3961238104Sdesset x $ac_cv_build
3962238104Sdesshift
3963238104Sdesbuild_cpu=$1
3964238104Sdesbuild_vendor=$2
3965238104Sdesshift; shift
3966238104Sdes# Remember, the first character of IFS is used to create $*,
3967238104Sdes# except with old shells:
3968238104Sdesbuild_os=$*
3969238104SdesIFS=$ac_save_IFS
3970238104Sdescase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3971238104Sdes
3972238104Sdes
3973238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974238104Sdes$as_echo_n "checking host system type... " >&6; }
3975238104Sdesif ${ac_cv_host+:} false; then :
3976238104Sdes  $as_echo_n "(cached) " >&6
3977238104Sdeselse
3978238104Sdes  if test "x$host_alias" = x; then
3979238104Sdes  ac_cv_host=$ac_cv_build
3980238104Sdeselse
3981238104Sdes  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982238104Sdes    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3983238104Sdesfi
3984238104Sdes
3985238104Sdesfi
3986238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987238104Sdes$as_echo "$ac_cv_host" >&6; }
3988238104Sdescase $ac_cv_host in
3989238104Sdes*-*-*) ;;
3990238104Sdes*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3991238104Sdesesac
3992238104Sdeshost=$ac_cv_host
3993238104Sdesac_save_IFS=$IFS; IFS='-'
3994238104Sdesset x $ac_cv_host
3995238104Sdesshift
3996238104Sdeshost_cpu=$1
3997238104Sdeshost_vendor=$2
3998238104Sdesshift; shift
3999238104Sdes# Remember, the first character of IFS is used to create $*,
4000238104Sdes# except with old shells:
4001238104Sdeshost_os=$*
4002238104SdesIFS=$ac_save_IFS
4003238104Sdescase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4004238104Sdes
4005238104Sdes
4006238104Sdes# Backslashify metacharacters that are still active within
4007238104Sdes# double-quoted strings.
4008238104Sdessed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4009238104Sdes
4010238104Sdes# Same as above, but do not quote variable references.
4011238104Sdesdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
4012238104Sdes
4013238104Sdes# Sed substitution to delay expansion of an escaped shell variable in a
4014238104Sdes# double_quote_subst'ed string.
4015238104Sdesdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4016238104Sdes
4017238104Sdes# Sed substitution to delay expansion of an escaped single quote.
4018238104Sdesdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4019238104Sdes
4020238104Sdes# Sed substitution to avoid accidental globbing in evaled expressions
4021238104Sdesno_glob_subst='s/\*/\\\*/g'
4022238104Sdes
4023238104SdesECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4024238104SdesECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4025238104SdesECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4026238104Sdes
4027238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4028238104Sdes$as_echo_n "checking how to print strings... " >&6; }
4029238104Sdes# Test print first, because it will be a builtin if present.
4030238104Sdesif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4031238104Sdes   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4032238104Sdes  ECHO='print -r --'
4033238104Sdeselif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4034238104Sdes  ECHO='printf %s\n'
4035238104Sdeselse
4036238104Sdes  # Use this function as a fallback that always works.
4037238104Sdes  func_fallback_echo ()
4038238104Sdes  {
4039238104Sdes    eval 'cat <<_LTECHO_EOF
4040238104Sdes$1
4041238104Sdes_LTECHO_EOF'
4042238104Sdes  }
4043238104Sdes  ECHO='func_fallback_echo'
4044238104Sdesfi
4045238104Sdes
4046238104Sdes# func_echo_all arg...
4047238104Sdes# Invoke $ECHO with all args, space-separated.
4048238104Sdesfunc_echo_all ()
4049238104Sdes{
4050238104Sdes    $ECHO ""
4051238104Sdes}
4052238104Sdes
4053238104Sdescase "$ECHO" in
4054238104Sdes  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4055238104Sdes$as_echo "printf" >&6; } ;;
4056238104Sdes  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4057238104Sdes$as_echo "print -r" >&6; } ;;
4058238104Sdes  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4059238104Sdes$as_echo "cat" >&6; } ;;
4060238104Sdesesac
4061238104Sdes
4062238104Sdes
4063238104Sdes
4064238104Sdes
4065238104Sdes
4066238104Sdes
4067238104Sdes
4068238104Sdes
4069238104Sdes
4070238104Sdes
4071238104Sdes
4072238104Sdes
4073238104Sdes
4074238104Sdes
4075238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4076238104Sdes$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4077238104Sdesif ${ac_cv_path_SED+:} false; then :
4078238104Sdes  $as_echo_n "(cached) " >&6
4079238104Sdeselse
4080238104Sdes            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4081238104Sdes     for ac_i in 1 2 3 4 5 6 7; do
4082238104Sdes       ac_script="$ac_script$as_nl$ac_script"
4083238104Sdes     done
4084238104Sdes     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4085238104Sdes     { ac_script=; unset ac_script;}
4086238104Sdes     if test -z "$SED"; then
4087238104Sdes  ac_path_SED_found=false
4088238104Sdes  # Loop through the user's path and test for each of PROGNAME-LIST
4089238104Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090238104Sdesfor as_dir in $PATH
4091238104Sdesdo
4092238104Sdes  IFS=$as_save_IFS
4093238104Sdes  test -z "$as_dir" && as_dir=.
4094238104Sdes    for ac_prog in sed gsed; do
4095238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
4096238104Sdes      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4097285206Sdes      as_fn_executable_p "$ac_path_SED" || continue
4098238104Sdes# Check for GNU ac_path_SED and select it if it is found.
4099238104Sdes  # Check for GNU $ac_path_SED
4100238104Sdescase `"$ac_path_SED" --version 2>&1` in
4101238104Sdes*GNU*)
4102238104Sdes  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4103238104Sdes*)
4104238104Sdes  ac_count=0
4105238104Sdes  $as_echo_n 0123456789 >"conftest.in"
4106238104Sdes  while :
4107238104Sdes  do
4108238104Sdes    cat "conftest.in" "conftest.in" >"conftest.tmp"
4109238104Sdes    mv "conftest.tmp" "conftest.in"
4110238104Sdes    cp "conftest.in" "conftest.nl"
4111238104Sdes    $as_echo '' >> "conftest.nl"
4112238104Sdes    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4113238104Sdes    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4114238104Sdes    as_fn_arith $ac_count + 1 && ac_count=$as_val
4115238104Sdes    if test $ac_count -gt ${ac_path_SED_max-0}; then
4116238104Sdes      # Best one so far, save it but keep looking for a better one
4117238104Sdes      ac_cv_path_SED="$ac_path_SED"
4118238104Sdes      ac_path_SED_max=$ac_count
4119238104Sdes    fi
4120238104Sdes    # 10*(2^10) chars as input seems more than enough
4121238104Sdes    test $ac_count -gt 10 && break
4122238104Sdes  done
4123238104Sdes  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124238104Sdesesac
4125238104Sdes
4126238104Sdes      $ac_path_SED_found && break 3
4127238104Sdes    done
4128238104Sdes  done
4129238104Sdes  done
4130238104SdesIFS=$as_save_IFS
4131238104Sdes  if test -z "$ac_cv_path_SED"; then
4132238104Sdes    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4133238104Sdes  fi
4134238104Sdeselse
4135238104Sdes  ac_cv_path_SED=$SED
4136238104Sdesfi
4137238104Sdes
4138238104Sdesfi
4139238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4140238104Sdes$as_echo "$ac_cv_path_SED" >&6; }
4141238104Sdes SED="$ac_cv_path_SED"
4142238104Sdes  rm -f conftest.sed
4143238104Sdes
4144238104Sdestest -z "$SED" && SED=sed
4145238104SdesXsed="$SED -e 1s/^X//"
4146238104Sdes
4147238104Sdes
4148238104Sdes
4149238104Sdes
4150238104Sdes
4151238104Sdes
4152238104Sdes
4153238104Sdes
4154238104Sdes
4155238104Sdes
4156238104Sdes
4157238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4158238104Sdes$as_echo_n "checking for fgrep... " >&6; }
4159238104Sdesif ${ac_cv_path_FGREP+:} false; then :
4160238104Sdes  $as_echo_n "(cached) " >&6
4161238104Sdeselse
4162238104Sdes  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4163238104Sdes   then ac_cv_path_FGREP="$GREP -F"
4164238104Sdes   else
4165238104Sdes     if test -z "$FGREP"; then
4166238104Sdes  ac_path_FGREP_found=false
4167238104Sdes  # Loop through the user's path and test for each of PROGNAME-LIST
4168238104Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169238104Sdesfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4170238104Sdesdo
4171238104Sdes  IFS=$as_save_IFS
4172238104Sdes  test -z "$as_dir" && as_dir=.
4173238104Sdes    for ac_prog in fgrep; do
4174238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
4175238104Sdes      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4176285206Sdes      as_fn_executable_p "$ac_path_FGREP" || continue
4177238104Sdes# Check for GNU ac_path_FGREP and select it if it is found.
4178238104Sdes  # Check for GNU $ac_path_FGREP
4179238104Sdescase `"$ac_path_FGREP" --version 2>&1` in
4180238104Sdes*GNU*)
4181238104Sdes  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4182238104Sdes*)
4183238104Sdes  ac_count=0
4184238104Sdes  $as_echo_n 0123456789 >"conftest.in"
4185238104Sdes  while :
4186238104Sdes  do
4187238104Sdes    cat "conftest.in" "conftest.in" >"conftest.tmp"
4188238104Sdes    mv "conftest.tmp" "conftest.in"
4189238104Sdes    cp "conftest.in" "conftest.nl"
4190238104Sdes    $as_echo 'FGREP' >> "conftest.nl"
4191238104Sdes    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192238104Sdes    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193238104Sdes    as_fn_arith $ac_count + 1 && ac_count=$as_val
4194238104Sdes    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4195238104Sdes      # Best one so far, save it but keep looking for a better one
4196238104Sdes      ac_cv_path_FGREP="$ac_path_FGREP"
4197238104Sdes      ac_path_FGREP_max=$ac_count
4198238104Sdes    fi
4199238104Sdes    # 10*(2^10) chars as input seems more than enough
4200238104Sdes    test $ac_count -gt 10 && break
4201238104Sdes  done
4202238104Sdes  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4203238104Sdesesac
4204238104Sdes
4205238104Sdes      $ac_path_FGREP_found && break 3
4206238104Sdes    done
4207238104Sdes  done
4208238104Sdes  done
4209238104SdesIFS=$as_save_IFS
4210238104Sdes  if test -z "$ac_cv_path_FGREP"; then
4211238104Sdes    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4212238104Sdes  fi
4213238104Sdeselse
4214238104Sdes  ac_cv_path_FGREP=$FGREP
4215238104Sdesfi
4216238104Sdes
4217238104Sdes   fi
4218238104Sdesfi
4219238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4220238104Sdes$as_echo "$ac_cv_path_FGREP" >&6; }
4221238104Sdes FGREP="$ac_cv_path_FGREP"
4222238104Sdes
4223238104Sdes
4224238104Sdestest -z "$GREP" && GREP=grep
4225238104Sdes
4226238104Sdes
4227238104Sdes
4228238104Sdes
4229238104Sdes
4230238104Sdes
4231238104Sdes
4232238104Sdes
4233238104Sdes
4234238104Sdes
4235238104Sdes
4236238104Sdes
4237238104Sdes
4238238104Sdes
4239238104Sdes
4240238104Sdes
4241238104Sdes
4242238104Sdes
4243238104Sdes
4244238104Sdes# Check whether --with-gnu-ld was given.
4245238104Sdesif test "${with_gnu_ld+set}" = set; then :
4246238104Sdes  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4247238104Sdeselse
4248238104Sdes  with_gnu_ld=no
4249238104Sdesfi
4250238104Sdes
4251238104Sdesac_prog=ld
4252238104Sdesif test "$GCC" = yes; then
4253238104Sdes  # Check if gcc -print-prog-name=ld gives a path.
4254238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4255238104Sdes$as_echo_n "checking for ld used by $CC... " >&6; }
4256238104Sdes  case $host in
4257238104Sdes  *-*-mingw*)
4258238104Sdes    # gcc leaves a trailing carriage return which upsets mingw
4259238104Sdes    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4260238104Sdes  *)
4261238104Sdes    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4262238104Sdes  esac
4263238104Sdes  case $ac_prog in
4264238104Sdes    # Accept absolute paths.
4265238104Sdes    [\\/]* | ?:[\\/]*)
4266238104Sdes      re_direlt='/[^/][^/]*/\.\./'
4267238104Sdes      # Canonicalize the pathname of ld
4268238104Sdes      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4269238104Sdes      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4270238104Sdes	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4271238104Sdes      done
4272238104Sdes      test -z "$LD" && LD="$ac_prog"
4273238104Sdes      ;;
4274238104Sdes  "")
4275238104Sdes    # If it fails, then pretend we aren't using GCC.
4276238104Sdes    ac_prog=ld
4277238104Sdes    ;;
4278238104Sdes  *)
4279238104Sdes    # If it is relative, then search for the first ld in PATH.
4280238104Sdes    with_gnu_ld=unknown
4281238104Sdes    ;;
4282238104Sdes  esac
4283238104Sdeselif test "$with_gnu_ld" = yes; then
4284238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4285238104Sdes$as_echo_n "checking for GNU ld... " >&6; }
4286238104Sdeselse
4287238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4288238104Sdes$as_echo_n "checking for non-GNU ld... " >&6; }
4289238104Sdesfi
4290238104Sdesif ${lt_cv_path_LD+:} false; then :
4291238104Sdes  $as_echo_n "(cached) " >&6
4292238104Sdeselse
4293238104Sdes  if test -z "$LD"; then
4294238104Sdes  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295238104Sdes  for ac_dir in $PATH; do
4296238104Sdes    IFS="$lt_save_ifs"
4297238104Sdes    test -z "$ac_dir" && ac_dir=.
4298238104Sdes    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4299238104Sdes      lt_cv_path_LD="$ac_dir/$ac_prog"
4300238104Sdes      # Check to see if the program is GNU ld.  I'd rather use --version,
4301238104Sdes      # but apparently some variants of GNU ld only accept -v.
4302238104Sdes      # Break only if it was the GNU/non-GNU ld that we prefer.
4303238104Sdes      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4304238104Sdes      *GNU* | *'with BFD'*)
4305238104Sdes	test "$with_gnu_ld" != no && break
4306238104Sdes	;;
4307238104Sdes      *)
4308238104Sdes	test "$with_gnu_ld" != yes && break
4309238104Sdes	;;
4310238104Sdes      esac
4311238104Sdes    fi
4312238104Sdes  done
4313238104Sdes  IFS="$lt_save_ifs"
4314238104Sdeselse
4315238104Sdes  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4316238104Sdesfi
4317238104Sdesfi
4318238104Sdes
4319238104SdesLD="$lt_cv_path_LD"
4320238104Sdesif test -n "$LD"; then
4321238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4322238104Sdes$as_echo "$LD" >&6; }
4323238104Sdeselse
4324238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325238104Sdes$as_echo "no" >&6; }
4326238104Sdesfi
4327238104Sdestest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4328238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4329238104Sdes$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4330238104Sdesif ${lt_cv_prog_gnu_ld+:} false; then :
4331238104Sdes  $as_echo_n "(cached) " >&6
4332238104Sdeselse
4333238104Sdes  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4334238104Sdescase `$LD -v 2>&1 </dev/null` in
4335238104Sdes*GNU* | *'with BFD'*)
4336238104Sdes  lt_cv_prog_gnu_ld=yes
4337238104Sdes  ;;
4338238104Sdes*)
4339238104Sdes  lt_cv_prog_gnu_ld=no
4340238104Sdes  ;;
4341238104Sdesesac
4342238104Sdesfi
4343238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4344238104Sdes$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4345238104Sdeswith_gnu_ld=$lt_cv_prog_gnu_ld
4346238104Sdes
4347238104Sdes
4348238104Sdes
4349238104Sdes
4350238104Sdes
4351238104Sdes
4352238104Sdes
4353238104Sdes
4354238104Sdes
4355238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4356238104Sdes$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4357238104Sdesif ${lt_cv_path_NM+:} false; then :
4358238104Sdes  $as_echo_n "(cached) " >&6
4359238104Sdeselse
4360238104Sdes  if test -n "$NM"; then
4361238104Sdes  # Let the user override the test.
4362238104Sdes  lt_cv_path_NM="$NM"
4363238104Sdeselse
4364238104Sdes  lt_nm_to_check="${ac_tool_prefix}nm"
4365238104Sdes  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4366238104Sdes    lt_nm_to_check="$lt_nm_to_check nm"
4367238104Sdes  fi
4368238104Sdes  for lt_tmp_nm in $lt_nm_to_check; do
4369238104Sdes    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4370238104Sdes    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4371238104Sdes      IFS="$lt_save_ifs"
4372238104Sdes      test -z "$ac_dir" && ac_dir=.
4373238104Sdes      tmp_nm="$ac_dir/$lt_tmp_nm"
4374238104Sdes      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4375238104Sdes	# Check to see if the nm accepts a BSD-compat flag.
4376238104Sdes	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4377238104Sdes	#   nm: unknown option "B" ignored
4378238104Sdes	# Tru64's nm complains that /dev/null is an invalid object file
4379238104Sdes	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4380238104Sdes	*/dev/null* | *'Invalid file or object type'*)
4381238104Sdes	  lt_cv_path_NM="$tmp_nm -B"
4382238104Sdes	  break
4383238104Sdes	  ;;
4384238104Sdes	*)
4385238104Sdes	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4386238104Sdes	  */dev/null*)
4387238104Sdes	    lt_cv_path_NM="$tmp_nm -p"
4388238104Sdes	    break
4389238104Sdes	    ;;
4390238104Sdes	  *)
4391238104Sdes	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4392238104Sdes	    continue # so that we can try to find one that supports BSD flags
4393238104Sdes	    ;;
4394238104Sdes	  esac
4395238104Sdes	  ;;
4396238104Sdes	esac
4397238104Sdes      fi
4398238104Sdes    done
4399238104Sdes    IFS="$lt_save_ifs"
4400238104Sdes  done
4401238104Sdes  : ${lt_cv_path_NM=no}
4402238104Sdesfi
4403238104Sdesfi
4404238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4405238104Sdes$as_echo "$lt_cv_path_NM" >&6; }
4406238104Sdesif test "$lt_cv_path_NM" != "no"; then
4407238104Sdes  NM="$lt_cv_path_NM"
4408238104Sdeselse
4409238104Sdes  # Didn't find any BSD compatible name lister, look for dumpbin.
4410238104Sdes  if test -n "$DUMPBIN"; then :
4411238104Sdes    # Let the user override the test.
4412238104Sdes  else
4413238104Sdes    if test -n "$ac_tool_prefix"; then
4414238104Sdes  for ac_prog in dumpbin "link -dump"
4415238104Sdes  do
4416238104Sdes    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417238104Sdesset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
4420238104Sdesif ${ac_cv_prog_DUMPBIN+:} false; then :
4421238104Sdes  $as_echo_n "(cached) " >&6
4422238104Sdeselse
4423238104Sdes  if test -n "$DUMPBIN"; then
4424238104Sdes  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4425238104Sdeselse
4426238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427238104Sdesfor as_dir in $PATH
4428238104Sdesdo
4429238104Sdes  IFS=$as_save_IFS
4430238104Sdes  test -z "$as_dir" && as_dir=.
4431238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
4432285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433238104Sdes    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4434238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435238104Sdes    break 2
4436238104Sdes  fi
4437238104Sdesdone
4438238104Sdes  done
4439238104SdesIFS=$as_save_IFS
4440238104Sdes
4441238104Sdesfi
4442238104Sdesfi
4443238104SdesDUMPBIN=$ac_cv_prog_DUMPBIN
4444238104Sdesif test -n "$DUMPBIN"; then
4445238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4446238104Sdes$as_echo "$DUMPBIN" >&6; }
4447238104Sdeselse
4448238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449238104Sdes$as_echo "no" >&6; }
4450238104Sdesfi
4451238104Sdes
4452238104Sdes
4453238104Sdes    test -n "$DUMPBIN" && break
4454238104Sdes  done
4455238104Sdesfi
4456238104Sdesif test -z "$DUMPBIN"; then
4457238104Sdes  ac_ct_DUMPBIN=$DUMPBIN
4458238104Sdes  for ac_prog in dumpbin "link -dump"
4459238104Sdesdo
4460238104Sdes  # Extract the first word of "$ac_prog", so it can be a program name with args.
4461238104Sdesset dummy $ac_prog; ac_word=$2
4462238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
4464238104Sdesif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4465238104Sdes  $as_echo_n "(cached) " >&6
4466238104Sdeselse
4467238104Sdes  if test -n "$ac_ct_DUMPBIN"; then
4468238104Sdes  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4469238104Sdeselse
4470238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471238104Sdesfor as_dir in $PATH
4472238104Sdesdo
4473238104Sdes  IFS=$as_save_IFS
4474238104Sdes  test -z "$as_dir" && as_dir=.
4475238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
4476285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477238104Sdes    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4478238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479238104Sdes    break 2
4480238104Sdes  fi
4481238104Sdesdone
4482238104Sdes  done
4483238104SdesIFS=$as_save_IFS
4484238104Sdes
4485238104Sdesfi
4486238104Sdesfi
4487238104Sdesac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4488238104Sdesif test -n "$ac_ct_DUMPBIN"; then
4489238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4490238104Sdes$as_echo "$ac_ct_DUMPBIN" >&6; }
4491238104Sdeselse
4492238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493238104Sdes$as_echo "no" >&6; }
4494238104Sdesfi
4495238104Sdes
4496238104Sdes
4497238104Sdes  test -n "$ac_ct_DUMPBIN" && break
4498238104Sdesdone
4499238104Sdes
4500238104Sdes  if test "x$ac_ct_DUMPBIN" = x; then
4501238104Sdes    DUMPBIN=":"
4502238104Sdes  else
4503238104Sdes    case $cross_compiling:$ac_tool_warned in
4504238104Sdesyes:)
4505238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507238104Sdesac_tool_warned=yes ;;
4508238104Sdesesac
4509238104Sdes    DUMPBIN=$ac_ct_DUMPBIN
4510238104Sdes  fi
4511238104Sdesfi
4512238104Sdes
4513238104Sdes    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4514238104Sdes    *COFF*)
4515238104Sdes      DUMPBIN="$DUMPBIN -symbols"
4516238104Sdes      ;;
4517238104Sdes    *)
4518238104Sdes      DUMPBIN=:
4519238104Sdes      ;;
4520238104Sdes    esac
4521238104Sdes  fi
4522238104Sdes
4523238104Sdes  if test "$DUMPBIN" != ":"; then
4524238104Sdes    NM="$DUMPBIN"
4525238104Sdes  fi
4526238104Sdesfi
4527238104Sdestest -z "$NM" && NM=nm
4528238104Sdes
4529238104Sdes
4530238104Sdes
4531238104Sdes
4532238104Sdes
4533238104Sdes
4534238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4535238104Sdes$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4536238104Sdesif ${lt_cv_nm_interface+:} false; then :
4537238104Sdes  $as_echo_n "(cached) " >&6
4538238104Sdeselse
4539238104Sdes  lt_cv_nm_interface="BSD nm"
4540238104Sdes  echo "int some_variable = 0;" > conftest.$ac_ext
4541238104Sdes  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4542238104Sdes  (eval "$ac_compile" 2>conftest.err)
4543238104Sdes  cat conftest.err >&5
4544238104Sdes  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4545238104Sdes  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4546238104Sdes  cat conftest.err >&5
4547238104Sdes  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4548238104Sdes  cat conftest.out >&5
4549238104Sdes  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4550238104Sdes    lt_cv_nm_interface="MS dumpbin"
4551238104Sdes  fi
4552238104Sdes  rm -f conftest*
4553238104Sdesfi
4554238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4555238104Sdes$as_echo "$lt_cv_nm_interface" >&6; }
4556238104Sdes
4557238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4558238104Sdes$as_echo_n "checking whether ln -s works... " >&6; }
4559238104SdesLN_S=$as_ln_s
4560238104Sdesif test "$LN_S" = "ln -s"; then
4561238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562238104Sdes$as_echo "yes" >&6; }
4563238104Sdeselse
4564238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4565238104Sdes$as_echo "no, using $LN_S" >&6; }
4566238104Sdesfi
4567238104Sdes
4568238104Sdes# find the maximum length of command line arguments
4569238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4570238104Sdes$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4571238104Sdesif ${lt_cv_sys_max_cmd_len+:} false; then :
4572238104Sdes  $as_echo_n "(cached) " >&6
4573238104Sdeselse
4574238104Sdes    i=0
4575238104Sdes  teststring="ABCD"
4576238104Sdes
4577238104Sdes  case $build_os in
4578238104Sdes  msdosdjgpp*)
4579238104Sdes    # On DJGPP, this test can blow up pretty badly due to problems in libc
4580238104Sdes    # (any single argument exceeding 2000 bytes causes a buffer overrun
4581238104Sdes    # during glob expansion).  Even if it were fixed, the result of this
4582238104Sdes    # check would be larger than it should be.
4583238104Sdes    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4584238104Sdes    ;;
4585238104Sdes
4586238104Sdes  gnu*)
4587238104Sdes    # Under GNU Hurd, this test is not required because there is
4588238104Sdes    # no limit to the length of command line arguments.
4589238104Sdes    # Libtool will interpret -1 as no limit whatsoever
4590238104Sdes    lt_cv_sys_max_cmd_len=-1;
4591238104Sdes    ;;
4592238104Sdes
4593238104Sdes  cygwin* | mingw* | cegcc*)
4594238104Sdes    # On Win9x/ME, this test blows up -- it succeeds, but takes
4595238104Sdes    # about 5 minutes as the teststring grows exponentially.
4596238104Sdes    # Worse, since 9x/ME are not pre-emptively multitasking,
4597238104Sdes    # you end up with a "frozen" computer, even though with patience
4598238104Sdes    # the test eventually succeeds (with a max line length of 256k).
4599238104Sdes    # Instead, let's just punt: use the minimum linelength reported by
4600238104Sdes    # all of the supported platforms: 8192 (on NT/2K/XP).
4601238104Sdes    lt_cv_sys_max_cmd_len=8192;
4602238104Sdes    ;;
4603238104Sdes
4604238104Sdes  mint*)
4605238104Sdes    # On MiNT this can take a long time and run out of memory.
4606238104Sdes    lt_cv_sys_max_cmd_len=8192;
4607238104Sdes    ;;
4608238104Sdes
4609238104Sdes  amigaos*)
4610238104Sdes    # On AmigaOS with pdksh, this test takes hours, literally.
4611238104Sdes    # So we just punt and use a minimum line length of 8192.
4612238104Sdes    lt_cv_sys_max_cmd_len=8192;
4613238104Sdes    ;;
4614238104Sdes
4615238104Sdes  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4616238104Sdes    # This has been around since 386BSD, at least.  Likely further.
4617238104Sdes    if test -x /sbin/sysctl; then
4618238104Sdes      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4619238104Sdes    elif test -x /usr/sbin/sysctl; then
4620238104Sdes      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4621238104Sdes    else
4622238104Sdes      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4623238104Sdes    fi
4624238104Sdes    # And add a safety zone
4625238104Sdes    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4626238104Sdes    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4627238104Sdes    ;;
4628238104Sdes
4629238104Sdes  interix*)
4630238104Sdes    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4631238104Sdes    lt_cv_sys_max_cmd_len=196608
4632238104Sdes    ;;
4633238104Sdes
4634238104Sdes  os2*)
4635238104Sdes    # The test takes a long time on OS/2.
4636238104Sdes    lt_cv_sys_max_cmd_len=8192
4637238104Sdes    ;;
4638238104Sdes
4639238104Sdes  osf*)
4640238104Sdes    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4641238104Sdes    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4642238104Sdes    # nice to cause kernel panics so lets avoid the loop below.
4643238104Sdes    # First set a reasonable default.
4644238104Sdes    lt_cv_sys_max_cmd_len=16384
4645238104Sdes    #
4646238104Sdes    if test -x /sbin/sysconfig; then
4647238104Sdes      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4648238104Sdes        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4649238104Sdes      esac
4650238104Sdes    fi
4651238104Sdes    ;;
4652238104Sdes  sco3.2v5*)
4653238104Sdes    lt_cv_sys_max_cmd_len=102400
4654238104Sdes    ;;
4655238104Sdes  sysv5* | sco5v6* | sysv4.2uw2*)
4656238104Sdes    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4657238104Sdes    if test -n "$kargmax"; then
4658238104Sdes      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4659238104Sdes    else
4660238104Sdes      lt_cv_sys_max_cmd_len=32768
4661238104Sdes    fi
4662238104Sdes    ;;
4663238104Sdes  *)
4664238104Sdes    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4665238104Sdes    if test -n "$lt_cv_sys_max_cmd_len"; then
4666238104Sdes      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667238104Sdes      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668238104Sdes    else
4669238104Sdes      # Make teststring a little bigger before we do anything with it.
4670238104Sdes      # a 1K string should be a reasonable start.
4671238104Sdes      for i in 1 2 3 4 5 6 7 8 ; do
4672238104Sdes        teststring=$teststring$teststring
4673238104Sdes      done
4674238104Sdes      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4675238104Sdes      # If test is not a shell built-in, we'll probably end up computing a
4676238104Sdes      # maximum length that is only half of the actual maximum length, but
4677238104Sdes      # we can't tell.
4678238104Sdes      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4679238104Sdes	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4680238104Sdes	      test $i != 17 # 1/2 MB should be enough
4681238104Sdes      do
4682238104Sdes        i=`expr $i + 1`
4683238104Sdes        teststring=$teststring$teststring
4684238104Sdes      done
4685238104Sdes      # Only check the string length outside the loop.
4686238104Sdes      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4687238104Sdes      teststring=
4688238104Sdes      # Add a significant safety factor because C++ compilers can tack on
4689238104Sdes      # massive amounts of additional arguments before passing them to the
4690238104Sdes      # linker.  It appears as though 1/2 is a usable value.
4691238104Sdes      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4692238104Sdes    fi
4693238104Sdes    ;;
4694238104Sdes  esac
4695238104Sdes
4696238104Sdesfi
4697238104Sdes
4698238104Sdesif test -n $lt_cv_sys_max_cmd_len ; then
4699238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4700238104Sdes$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4701238104Sdeselse
4702238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4703238104Sdes$as_echo "none" >&6; }
4704238104Sdesfi
4705238104Sdesmax_cmd_len=$lt_cv_sys_max_cmd_len
4706238104Sdes
4707238104Sdes
4708238104Sdes
4709238104Sdes
4710238104Sdes
4711238104Sdes
4712238104Sdes: ${CP="cp -f"}
4713238104Sdes: ${MV="mv -f"}
4714238104Sdes: ${RM="rm -f"}
4715238104Sdes
4716238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4717238104Sdes$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4718238104Sdes# Try some XSI features
4719238104Sdesxsi_shell=no
4720238104Sdes( _lt_dummy="a/b/c"
4721238104Sdes  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4722238104Sdes      = c,a/b,b/c, \
4723238104Sdes    && eval 'test $(( 1 + 1 )) -eq 2 \
4724238104Sdes    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4725238104Sdes  && xsi_shell=yes
4726238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4727238104Sdes$as_echo "$xsi_shell" >&6; }
4728238104Sdes
4729238104Sdes
4730238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4731238104Sdes$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4732238104Sdeslt_shell_append=no
4733238104Sdes( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4734238104Sdes    >/dev/null 2>&1 \
4735238104Sdes  && lt_shell_append=yes
4736238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4737238104Sdes$as_echo "$lt_shell_append" >&6; }
4738238104Sdes
4739238104Sdes
4740238104Sdesif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4741238104Sdes  lt_unset=unset
4742238104Sdeselse
4743238104Sdes  lt_unset=false
4744238104Sdesfi
4745238104Sdes
4746238104Sdes
4747238104Sdes
4748238104Sdes
4749238104Sdes
4750238104Sdes# test EBCDIC or ASCII
4751238104Sdescase `echo X|tr X '\101'` in
4752238104Sdes A) # ASCII based system
4753238104Sdes    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4754238104Sdes  lt_SP2NL='tr \040 \012'
4755238104Sdes  lt_NL2SP='tr \015\012 \040\040'
4756238104Sdes  ;;
4757238104Sdes *) # EBCDIC based system
4758238104Sdes  lt_SP2NL='tr \100 \n'
4759238104Sdes  lt_NL2SP='tr \r\n \100\100'
4760238104Sdes  ;;
4761238104Sdesesac
4762238104Sdes
4763238104Sdes
4764238104Sdes
4765238104Sdes
4766238104Sdes
4767238104Sdes
4768238104Sdes
4769238104Sdes
4770238104Sdes
4771238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4772238104Sdes$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4773238104Sdesif ${lt_cv_to_host_file_cmd+:} false; then :
4774238104Sdes  $as_echo_n "(cached) " >&6
4775238104Sdeselse
4776238104Sdes  case $host in
4777238104Sdes  *-*-mingw* )
4778238104Sdes    case $build in
4779238104Sdes      *-*-mingw* ) # actually msys
4780238104Sdes        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4781238104Sdes        ;;
4782238104Sdes      *-*-cygwin* )
4783238104Sdes        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4784238104Sdes        ;;
4785238104Sdes      * ) # otherwise, assume *nix
4786238104Sdes        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4787238104Sdes        ;;
4788238104Sdes    esac
4789238104Sdes    ;;
4790238104Sdes  *-*-cygwin* )
4791238104Sdes    case $build in
4792238104Sdes      *-*-mingw* ) # actually msys
4793238104Sdes        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4794238104Sdes        ;;
4795238104Sdes      *-*-cygwin* )
4796238104Sdes        lt_cv_to_host_file_cmd=func_convert_file_noop
4797238104Sdes        ;;
4798238104Sdes      * ) # otherwise, assume *nix
4799238104Sdes        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4800238104Sdes        ;;
4801238104Sdes    esac
4802238104Sdes    ;;
4803238104Sdes  * ) # unhandled hosts (and "normal" native builds)
4804238104Sdes    lt_cv_to_host_file_cmd=func_convert_file_noop
4805238104Sdes    ;;
4806238104Sdesesac
4807238104Sdes
4808238104Sdesfi
4809238104Sdes
4810238104Sdesto_host_file_cmd=$lt_cv_to_host_file_cmd
4811238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4812238104Sdes$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4813238104Sdes
4814238104Sdes
4815238104Sdes
4816238104Sdes
4817238104Sdes
4818238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4819238104Sdes$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4820238104Sdesif ${lt_cv_to_tool_file_cmd+:} false; then :
4821238104Sdes  $as_echo_n "(cached) " >&6
4822238104Sdeselse
4823238104Sdes  #assume ordinary cross tools, or native build.
4824238104Sdeslt_cv_to_tool_file_cmd=func_convert_file_noop
4825238104Sdescase $host in
4826238104Sdes  *-*-mingw* )
4827238104Sdes    case $build in
4828238104Sdes      *-*-mingw* ) # actually msys
4829238104Sdes        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4830238104Sdes        ;;
4831238104Sdes    esac
4832238104Sdes    ;;
4833238104Sdesesac
4834238104Sdes
4835238104Sdesfi
4836238104Sdes
4837238104Sdesto_tool_file_cmd=$lt_cv_to_tool_file_cmd
4838238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4839238104Sdes$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4840238104Sdes
4841238104Sdes
4842238104Sdes
4843238104Sdes
4844238104Sdes
4845238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4846238104Sdes$as_echo_n "checking for $LD option to reload object files... " >&6; }
4847238104Sdesif ${lt_cv_ld_reload_flag+:} false; then :
4848238104Sdes  $as_echo_n "(cached) " >&6
4849238104Sdeselse
4850238104Sdes  lt_cv_ld_reload_flag='-r'
4851238104Sdesfi
4852238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4853238104Sdes$as_echo "$lt_cv_ld_reload_flag" >&6; }
4854238104Sdesreload_flag=$lt_cv_ld_reload_flag
4855238104Sdescase $reload_flag in
4856238104Sdes"" | " "*) ;;
4857238104Sdes*) reload_flag=" $reload_flag" ;;
4858238104Sdesesac
4859238104Sdesreload_cmds='$LD$reload_flag -o $output$reload_objs'
4860238104Sdescase $host_os in
4861238104Sdes  cygwin* | mingw* | pw32* | cegcc*)
4862238104Sdes    if test "$GCC" != yes; then
4863238104Sdes      reload_cmds=false
4864238104Sdes    fi
4865238104Sdes    ;;
4866238104Sdes  darwin*)
4867238104Sdes    if test "$GCC" = yes; then
4868238104Sdes      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4869238104Sdes    else
4870238104Sdes      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4871238104Sdes    fi
4872238104Sdes    ;;
4873238104Sdesesac
4874238104Sdes
4875238104Sdes
4876238104Sdes
4877238104Sdes
4878238104Sdes
4879238104Sdes
4880238104Sdes
4881238104Sdes
4882238104Sdes
4883238104Sdesif test -n "$ac_tool_prefix"; then
4884238104Sdes  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4885238104Sdesset dummy ${ac_tool_prefix}objdump; ac_word=$2
4886238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
4888238104Sdesif ${ac_cv_prog_OBJDUMP+:} false; then :
4889238104Sdes  $as_echo_n "(cached) " >&6
4890238104Sdeselse
4891238104Sdes  if test -n "$OBJDUMP"; then
4892238104Sdes  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4893238104Sdeselse
4894238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895238104Sdesfor as_dir in $PATH
4896238104Sdesdo
4897238104Sdes  IFS=$as_save_IFS
4898238104Sdes  test -z "$as_dir" && as_dir=.
4899238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
4900285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901238104Sdes    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4902238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903238104Sdes    break 2
4904238104Sdes  fi
4905238104Sdesdone
4906238104Sdes  done
4907238104SdesIFS=$as_save_IFS
4908238104Sdes
4909238104Sdesfi
4910238104Sdesfi
4911238104SdesOBJDUMP=$ac_cv_prog_OBJDUMP
4912238104Sdesif test -n "$OBJDUMP"; then
4913238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4914238104Sdes$as_echo "$OBJDUMP" >&6; }
4915238104Sdeselse
4916238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917238104Sdes$as_echo "no" >&6; }
4918238104Sdesfi
4919238104Sdes
4920238104Sdes
4921238104Sdesfi
4922238104Sdesif test -z "$ac_cv_prog_OBJDUMP"; then
4923238104Sdes  ac_ct_OBJDUMP=$OBJDUMP
4924238104Sdes  # Extract the first word of "objdump", so it can be a program name with args.
4925238104Sdesset dummy objdump; ac_word=$2
4926238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
4928238104Sdesif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4929238104Sdes  $as_echo_n "(cached) " >&6
4930238104Sdeselse
4931238104Sdes  if test -n "$ac_ct_OBJDUMP"; then
4932238104Sdes  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4933238104Sdeselse
4934238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935238104Sdesfor as_dir in $PATH
4936238104Sdesdo
4937238104Sdes  IFS=$as_save_IFS
4938238104Sdes  test -z "$as_dir" && as_dir=.
4939238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
4940285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941238104Sdes    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4942238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943238104Sdes    break 2
4944238104Sdes  fi
4945238104Sdesdone
4946238104Sdes  done
4947238104SdesIFS=$as_save_IFS
4948238104Sdes
4949238104Sdesfi
4950238104Sdesfi
4951238104Sdesac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4952238104Sdesif test -n "$ac_ct_OBJDUMP"; then
4953238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4954238104Sdes$as_echo "$ac_ct_OBJDUMP" >&6; }
4955238104Sdeselse
4956238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957238104Sdes$as_echo "no" >&6; }
4958238104Sdesfi
4959238104Sdes
4960238104Sdes  if test "x$ac_ct_OBJDUMP" = x; then
4961238104Sdes    OBJDUMP="false"
4962238104Sdes  else
4963238104Sdes    case $cross_compiling:$ac_tool_warned in
4964238104Sdesyes:)
4965238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967238104Sdesac_tool_warned=yes ;;
4968238104Sdesesac
4969238104Sdes    OBJDUMP=$ac_ct_OBJDUMP
4970238104Sdes  fi
4971238104Sdeselse
4972238104Sdes  OBJDUMP="$ac_cv_prog_OBJDUMP"
4973238104Sdesfi
4974238104Sdes
4975238104Sdestest -z "$OBJDUMP" && OBJDUMP=objdump
4976238104Sdes
4977238104Sdes
4978238104Sdes
4979238104Sdes
4980238104Sdes
4981238104Sdes
4982238104Sdes
4983238104Sdes
4984238104Sdes
4985238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4986238104Sdes$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4987238104Sdesif ${lt_cv_deplibs_check_method+:} false; then :
4988238104Sdes  $as_echo_n "(cached) " >&6
4989238104Sdeselse
4990238104Sdes  lt_cv_file_magic_cmd='$MAGIC_CMD'
4991238104Sdeslt_cv_file_magic_test_file=
4992238104Sdeslt_cv_deplibs_check_method='unknown'
4993238104Sdes# Need to set the preceding variable on all platforms that support
4994238104Sdes# interlibrary dependencies.
4995238104Sdes# 'none' -- dependencies not supported.
4996238104Sdes# `unknown' -- same as none, but documents that we really don't know.
4997238104Sdes# 'pass_all' -- all dependencies passed with no checks.
4998238104Sdes# 'test_compile' -- check by making test program.
4999238104Sdes# 'file_magic [[regex]]' -- check by looking for files in library path
5000238104Sdes# which responds to the $file_magic_cmd with a given extended regex.
5001238104Sdes# If you have `file' or equivalent on your system and you're not sure
5002238104Sdes# whether `pass_all' will *always* work, you probably want this one.
5003238104Sdes
5004238104Sdescase $host_os in
5005238104Sdesaix[4-9]*)
5006238104Sdes  lt_cv_deplibs_check_method=pass_all
5007238104Sdes  ;;
5008238104Sdes
5009238104Sdesbeos*)
5010238104Sdes  lt_cv_deplibs_check_method=pass_all
5011238104Sdes  ;;
5012238104Sdes
5013238104Sdesbsdi[45]*)
5014238104Sdes  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5015238104Sdes  lt_cv_file_magic_cmd='/usr/bin/file -L'
5016238104Sdes  lt_cv_file_magic_test_file=/shlib/libc.so
5017238104Sdes  ;;
5018238104Sdes
5019238104Sdescygwin*)
5020238104Sdes  # func_win32_libid is a shell function defined in ltmain.sh
5021238104Sdes  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5022238104Sdes  lt_cv_file_magic_cmd='func_win32_libid'
5023238104Sdes  ;;
5024238104Sdes
5025238104Sdesmingw* | pw32*)
5026238104Sdes  # Base MSYS/MinGW do not provide the 'file' command needed by
5027238104Sdes  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5028238104Sdes  # unless we find 'file', for example because we are cross-compiling.
5029238104Sdes  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5030238104Sdes  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5031238104Sdes    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032238104Sdes    lt_cv_file_magic_cmd='func_win32_libid'
5033238104Sdes  else
5034238104Sdes    # Keep this pattern in sync with the one in func_win32_libid.
5035238104Sdes    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5036238104Sdes    lt_cv_file_magic_cmd='$OBJDUMP -f'
5037238104Sdes  fi
5038238104Sdes  ;;
5039238104Sdes
5040238104Sdescegcc*)
5041238104Sdes  # use the weaker test based on 'objdump'. See mingw*.
5042238104Sdes  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5043238104Sdes  lt_cv_file_magic_cmd='$OBJDUMP -f'
5044238104Sdes  ;;
5045238104Sdes
5046238104Sdesdarwin* | rhapsody*)
5047238104Sdes  lt_cv_deplibs_check_method=pass_all
5048238104Sdes  ;;
5049238104Sdes
5050238104Sdesfreebsd* | dragonfly*)
5051238104Sdes  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5052238104Sdes    case $host_cpu in
5053238104Sdes    i*86 )
5054238104Sdes      # Not sure whether the presence of OpenBSD here was a mistake.
5055238104Sdes      # Let's accept both of them until this is cleared up.
5056238104Sdes      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5057238104Sdes      lt_cv_file_magic_cmd=/usr/bin/file
5058238104Sdes      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5059238104Sdes      ;;
5060238104Sdes    esac
5061238104Sdes  else
5062238104Sdes    lt_cv_deplibs_check_method=pass_all
5063238104Sdes  fi
5064238104Sdes  ;;
5065238104Sdes
5066238104Sdesgnu*)
5067238104Sdes  lt_cv_deplibs_check_method=pass_all
5068238104Sdes  ;;
5069238104Sdes
5070238104Sdeshaiku*)
5071238104Sdes  lt_cv_deplibs_check_method=pass_all
5072238104Sdes  ;;
5073238104Sdes
5074238104Sdeshpux10.20* | hpux11*)
5075238104Sdes  lt_cv_file_magic_cmd=/usr/bin/file
5076238104Sdes  case $host_cpu in
5077238104Sdes  ia64*)
5078238104Sdes    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5079238104Sdes    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5080238104Sdes    ;;
5081238104Sdes  hppa*64*)
5082238104Sdes    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]'
5083238104Sdes    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5084238104Sdes    ;;
5085238104Sdes  *)
5086238104Sdes    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5087238104Sdes    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5088238104Sdes    ;;
5089238104Sdes  esac
5090238104Sdes  ;;
5091238104Sdes
5092238104Sdesinterix[3-9]*)
5093238104Sdes  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5094238104Sdes  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5095238104Sdes  ;;
5096238104Sdes
5097238104Sdesirix5* | irix6* | nonstopux*)
5098238104Sdes  case $LD in
5099238104Sdes  *-32|*"-32 ") libmagic=32-bit;;
5100238104Sdes  *-n32|*"-n32 ") libmagic=N32;;
5101238104Sdes  *-64|*"-64 ") libmagic=64-bit;;
5102238104Sdes  *) libmagic=never-match;;
5103238104Sdes  esac
5104238104Sdes  lt_cv_deplibs_check_method=pass_all
5105238104Sdes  ;;
5106238104Sdes
5107238104Sdes# This must be glibc/ELF.
5108238104Sdeslinux* | k*bsd*-gnu | kopensolaris*-gnu)
5109238104Sdes  lt_cv_deplibs_check_method=pass_all
5110238104Sdes  ;;
5111238104Sdes
5112238104Sdesnetbsd* | netbsdelf*-gnu)
5113238104Sdes  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5114238104Sdes    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5115238104Sdes  else
5116238104Sdes    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5117238104Sdes  fi
5118238104Sdes  ;;
5119238104Sdes
5120238104Sdesnewos6*)
5121238104Sdes  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5122238104Sdes  lt_cv_file_magic_cmd=/usr/bin/file
5123238104Sdes  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5124238104Sdes  ;;
5125238104Sdes
5126238104Sdes*nto* | *qnx*)
5127238104Sdes  lt_cv_deplibs_check_method=pass_all
5128238104Sdes  ;;
5129238104Sdes
5130238104Sdesopenbsd*)
5131238104Sdes  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5132238104Sdes    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5133238104Sdes  else
5134238104Sdes    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5135238104Sdes  fi
5136238104Sdes  ;;
5137238104Sdes
5138238104Sdesosf3* | osf4* | osf5*)
5139238104Sdes  lt_cv_deplibs_check_method=pass_all
5140238104Sdes  ;;
5141238104Sdes
5142238104Sdesrdos*)
5143238104Sdes  lt_cv_deplibs_check_method=pass_all
5144238104Sdes  ;;
5145238104Sdes
5146238104Sdessolaris*)
5147238104Sdes  lt_cv_deplibs_check_method=pass_all
5148238104Sdes  ;;
5149238104Sdes
5150238104Sdessysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5151238104Sdes  lt_cv_deplibs_check_method=pass_all
5152238104Sdes  ;;
5153238104Sdes
5154238104Sdessysv4 | sysv4.3*)
5155238104Sdes  case $host_vendor in
5156238104Sdes  motorola)
5157238104Sdes    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]'
5158238104Sdes    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5159238104Sdes    ;;
5160238104Sdes  ncr)
5161238104Sdes    lt_cv_deplibs_check_method=pass_all
5162238104Sdes    ;;
5163238104Sdes  sequent)
5164238104Sdes    lt_cv_file_magic_cmd='/bin/file'
5165238104Sdes    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5166238104Sdes    ;;
5167238104Sdes  sni)
5168238104Sdes    lt_cv_file_magic_cmd='/bin/file'
5169238104Sdes    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5170238104Sdes    lt_cv_file_magic_test_file=/lib/libc.so
5171238104Sdes    ;;
5172238104Sdes  siemens)
5173238104Sdes    lt_cv_deplibs_check_method=pass_all
5174238104Sdes    ;;
5175238104Sdes  pc)
5176238104Sdes    lt_cv_deplibs_check_method=pass_all
5177238104Sdes    ;;
5178238104Sdes  esac
5179238104Sdes  ;;
5180238104Sdes
5181238104Sdestpf*)
5182238104Sdes  lt_cv_deplibs_check_method=pass_all
5183238104Sdes  ;;
5184238104Sdesesac
5185238104Sdes
5186238104Sdesfi
5187238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5188238104Sdes$as_echo "$lt_cv_deplibs_check_method" >&6; }
5189238104Sdes
5190238104Sdesfile_magic_glob=
5191238104Sdeswant_nocaseglob=no
5192238104Sdesif test "$build" = "$host"; then
5193238104Sdes  case $host_os in
5194238104Sdes  mingw* | pw32*)
5195238104Sdes    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5196238104Sdes      want_nocaseglob=yes
5197238104Sdes    else
5198238104Sdes      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5199238104Sdes    fi
5200238104Sdes    ;;
5201238104Sdes  esac
5202238104Sdesfi
5203238104Sdes
5204238104Sdesfile_magic_cmd=$lt_cv_file_magic_cmd
5205238104Sdesdeplibs_check_method=$lt_cv_deplibs_check_method
5206238104Sdestest -z "$deplibs_check_method" && deplibs_check_method=unknown
5207238104Sdes
5208238104Sdes
5209238104Sdes
5210238104Sdes
5211238104Sdes
5212238104Sdes
5213238104Sdes
5214238104Sdes
5215238104Sdes
5216238104Sdes
5217238104Sdes
5218238104Sdes
5219238104Sdes
5220238104Sdes
5221238104Sdes
5222238104Sdes
5223238104Sdes
5224238104Sdes
5225238104Sdes
5226238104Sdes
5227238104Sdes
5228238104Sdes
5229238104Sdesif test -n "$ac_tool_prefix"; then
5230238104Sdes  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5231238104Sdesset dummy ${ac_tool_prefix}dlltool; ac_word=$2
5232238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5234238104Sdesif ${ac_cv_prog_DLLTOOL+:} false; then :
5235238104Sdes  $as_echo_n "(cached) " >&6
5236238104Sdeselse
5237238104Sdes  if test -n "$DLLTOOL"; then
5238238104Sdes  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5239238104Sdeselse
5240238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241238104Sdesfor as_dir in $PATH
5242238104Sdesdo
5243238104Sdes  IFS=$as_save_IFS
5244238104Sdes  test -z "$as_dir" && as_dir=.
5245238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5246285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247238104Sdes    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5248238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249238104Sdes    break 2
5250238104Sdes  fi
5251238104Sdesdone
5252238104Sdes  done
5253238104SdesIFS=$as_save_IFS
5254238104Sdes
5255238104Sdesfi
5256238104Sdesfi
5257238104SdesDLLTOOL=$ac_cv_prog_DLLTOOL
5258238104Sdesif test -n "$DLLTOOL"; then
5259238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5260238104Sdes$as_echo "$DLLTOOL" >&6; }
5261238104Sdeselse
5262238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263238104Sdes$as_echo "no" >&6; }
5264238104Sdesfi
5265238104Sdes
5266238104Sdes
5267238104Sdesfi
5268238104Sdesif test -z "$ac_cv_prog_DLLTOOL"; then
5269238104Sdes  ac_ct_DLLTOOL=$DLLTOOL
5270238104Sdes  # Extract the first word of "dlltool", so it can be a program name with args.
5271238104Sdesset dummy dlltool; ac_word=$2
5272238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5274238104Sdesif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5275238104Sdes  $as_echo_n "(cached) " >&6
5276238104Sdeselse
5277238104Sdes  if test -n "$ac_ct_DLLTOOL"; then
5278238104Sdes  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5279238104Sdeselse
5280238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281238104Sdesfor as_dir in $PATH
5282238104Sdesdo
5283238104Sdes  IFS=$as_save_IFS
5284238104Sdes  test -z "$as_dir" && as_dir=.
5285238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5286285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287238104Sdes    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5288238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289238104Sdes    break 2
5290238104Sdes  fi
5291238104Sdesdone
5292238104Sdes  done
5293238104SdesIFS=$as_save_IFS
5294238104Sdes
5295238104Sdesfi
5296238104Sdesfi
5297238104Sdesac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5298238104Sdesif test -n "$ac_ct_DLLTOOL"; then
5299238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5300238104Sdes$as_echo "$ac_ct_DLLTOOL" >&6; }
5301238104Sdeselse
5302238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303238104Sdes$as_echo "no" >&6; }
5304238104Sdesfi
5305238104Sdes
5306238104Sdes  if test "x$ac_ct_DLLTOOL" = x; then
5307238104Sdes    DLLTOOL="false"
5308238104Sdes  else
5309238104Sdes    case $cross_compiling:$ac_tool_warned in
5310238104Sdesyes:)
5311238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5312238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5313238104Sdesac_tool_warned=yes ;;
5314238104Sdesesac
5315238104Sdes    DLLTOOL=$ac_ct_DLLTOOL
5316238104Sdes  fi
5317238104Sdeselse
5318238104Sdes  DLLTOOL="$ac_cv_prog_DLLTOOL"
5319238104Sdesfi
5320238104Sdes
5321238104Sdestest -z "$DLLTOOL" && DLLTOOL=dlltool
5322238104Sdes
5323238104Sdes
5324238104Sdes
5325238104Sdes
5326238104Sdes
5327238104Sdes
5328238104Sdes
5329238104Sdes
5330238104Sdes
5331238104Sdes
5332238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5333238104Sdes$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5334238104Sdesif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5335238104Sdes  $as_echo_n "(cached) " >&6
5336238104Sdeselse
5337238104Sdes  lt_cv_sharedlib_from_linklib_cmd='unknown'
5338238104Sdes
5339238104Sdescase $host_os in
5340238104Sdescygwin* | mingw* | pw32* | cegcc*)
5341238104Sdes  # two different shell functions defined in ltmain.sh
5342238104Sdes  # decide which to use based on capabilities of $DLLTOOL
5343238104Sdes  case `$DLLTOOL --help 2>&1` in
5344238104Sdes  *--identify-strict*)
5345238104Sdes    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5346238104Sdes    ;;
5347238104Sdes  *)
5348238104Sdes    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5349238104Sdes    ;;
5350238104Sdes  esac
5351238104Sdes  ;;
5352238104Sdes*)
5353238104Sdes  # fallback: assume linklib IS sharedlib
5354238104Sdes  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5355238104Sdes  ;;
5356238104Sdesesac
5357238104Sdes
5358238104Sdesfi
5359238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5360238104Sdes$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5361238104Sdessharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5362238104Sdestest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5363238104Sdes
5364238104Sdes
5365238104Sdes
5366238104Sdes
5367238104Sdes
5368238104Sdes
5369238104Sdes
5370238104Sdesif test -n "$ac_tool_prefix"; then
5371238104Sdes  for ac_prog in ar
5372238104Sdes  do
5373238104Sdes    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5374238104Sdesset dummy $ac_tool_prefix$ac_prog; ac_word=$2
5375238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5377238104Sdesif ${ac_cv_prog_AR+:} false; then :
5378238104Sdes  $as_echo_n "(cached) " >&6
5379238104Sdeselse
5380238104Sdes  if test -n "$AR"; then
5381238104Sdes  ac_cv_prog_AR="$AR" # Let the user override the test.
5382238104Sdeselse
5383238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384238104Sdesfor as_dir in $PATH
5385238104Sdesdo
5386238104Sdes  IFS=$as_save_IFS
5387238104Sdes  test -z "$as_dir" && as_dir=.
5388238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5389285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390238104Sdes    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5391238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392238104Sdes    break 2
5393238104Sdes  fi
5394238104Sdesdone
5395238104Sdes  done
5396238104SdesIFS=$as_save_IFS
5397238104Sdes
5398238104Sdesfi
5399238104Sdesfi
5400238104SdesAR=$ac_cv_prog_AR
5401238104Sdesif test -n "$AR"; then
5402238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5403238104Sdes$as_echo "$AR" >&6; }
5404238104Sdeselse
5405238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406238104Sdes$as_echo "no" >&6; }
5407238104Sdesfi
5408238104Sdes
5409238104Sdes
5410238104Sdes    test -n "$AR" && break
5411238104Sdes  done
5412238104Sdesfi
5413238104Sdesif test -z "$AR"; then
5414238104Sdes  ac_ct_AR=$AR
5415238104Sdes  for ac_prog in ar
5416238104Sdesdo
5417238104Sdes  # Extract the first word of "$ac_prog", so it can be a program name with args.
5418238104Sdesset dummy $ac_prog; ac_word=$2
5419238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5421238104Sdesif ${ac_cv_prog_ac_ct_AR+:} false; then :
5422238104Sdes  $as_echo_n "(cached) " >&6
5423238104Sdeselse
5424238104Sdes  if test -n "$ac_ct_AR"; then
5425238104Sdes  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5426238104Sdeselse
5427238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428238104Sdesfor as_dir in $PATH
5429238104Sdesdo
5430238104Sdes  IFS=$as_save_IFS
5431238104Sdes  test -z "$as_dir" && as_dir=.
5432238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5433285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434238104Sdes    ac_cv_prog_ac_ct_AR="$ac_prog"
5435238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436238104Sdes    break 2
5437238104Sdes  fi
5438238104Sdesdone
5439238104Sdes  done
5440238104SdesIFS=$as_save_IFS
5441238104Sdes
5442238104Sdesfi
5443238104Sdesfi
5444238104Sdesac_ct_AR=$ac_cv_prog_ac_ct_AR
5445238104Sdesif test -n "$ac_ct_AR"; then
5446238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5447238104Sdes$as_echo "$ac_ct_AR" >&6; }
5448238104Sdeselse
5449238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450238104Sdes$as_echo "no" >&6; }
5451238104Sdesfi
5452238104Sdes
5453238104Sdes
5454238104Sdes  test -n "$ac_ct_AR" && break
5455238104Sdesdone
5456238104Sdes
5457238104Sdes  if test "x$ac_ct_AR" = x; then
5458238104Sdes    AR="false"
5459238104Sdes  else
5460238104Sdes    case $cross_compiling:$ac_tool_warned in
5461238104Sdesyes:)
5462238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464238104Sdesac_tool_warned=yes ;;
5465238104Sdesesac
5466238104Sdes    AR=$ac_ct_AR
5467238104Sdes  fi
5468238104Sdesfi
5469238104Sdes
5470238104Sdes: ${AR=ar}
5471238104Sdes: ${AR_FLAGS=cru}
5472238104Sdes
5473238104Sdes
5474238104Sdes
5475238104Sdes
5476238104Sdes
5477238104Sdes
5478238104Sdes
5479238104Sdes
5480238104Sdes
5481238104Sdes
5482238104Sdes
5483238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5484238104Sdes$as_echo_n "checking for archiver @FILE support... " >&6; }
5485238104Sdesif ${lt_cv_ar_at_file+:} false; then :
5486238104Sdes  $as_echo_n "(cached) " >&6
5487238104Sdeselse
5488238104Sdes  lt_cv_ar_at_file=no
5489238104Sdes   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490238104Sdes/* end confdefs.h.  */
5491238104Sdes
5492238104Sdesint
5493238104Sdesmain ()
5494238104Sdes{
5495238104Sdes
5496238104Sdes  ;
5497238104Sdes  return 0;
5498238104Sdes}
5499238104Sdes_ACEOF
5500238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
5501238104Sdes  echo conftest.$ac_objext > conftest.lst
5502238104Sdes      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5503238104Sdes      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5504238104Sdes  (eval $lt_ar_try) 2>&5
5505238104Sdes  ac_status=$?
5506238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5507238104Sdes  test $ac_status = 0; }
5508238104Sdes      if test "$ac_status" -eq 0; then
5509238104Sdes	# Ensure the archiver fails upon bogus file names.
5510238104Sdes	rm -f conftest.$ac_objext libconftest.a
5511238104Sdes	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5512238104Sdes  (eval $lt_ar_try) 2>&5
5513238104Sdes  ac_status=$?
5514238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5515238104Sdes  test $ac_status = 0; }
5516238104Sdes	if test "$ac_status" -ne 0; then
5517238104Sdes          lt_cv_ar_at_file=@
5518238104Sdes        fi
5519238104Sdes      fi
5520238104Sdes      rm -f conftest.* libconftest.a
5521238104Sdes
5522238104Sdesfi
5523238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524238104Sdes
5525238104Sdesfi
5526238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5527238104Sdes$as_echo "$lt_cv_ar_at_file" >&6; }
5528238104Sdes
5529238104Sdesif test "x$lt_cv_ar_at_file" = xno; then
5530238104Sdes  archiver_list_spec=
5531238104Sdeselse
5532238104Sdes  archiver_list_spec=$lt_cv_ar_at_file
5533238104Sdesfi
5534238104Sdes
5535238104Sdes
5536238104Sdes
5537238104Sdes
5538238104Sdes
5539238104Sdes
5540238104Sdes
5541238104Sdesif test -n "$ac_tool_prefix"; then
5542238104Sdes  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5543238104Sdesset dummy ${ac_tool_prefix}strip; ac_word=$2
5544238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5546238104Sdesif ${ac_cv_prog_STRIP+:} false; then :
5547238104Sdes  $as_echo_n "(cached) " >&6
5548238104Sdeselse
5549238104Sdes  if test -n "$STRIP"; then
5550238104Sdes  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5551238104Sdeselse
5552238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553238104Sdesfor as_dir in $PATH
5554238104Sdesdo
5555238104Sdes  IFS=$as_save_IFS
5556238104Sdes  test -z "$as_dir" && as_dir=.
5557238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5558285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559238104Sdes    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5560238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561238104Sdes    break 2
5562238104Sdes  fi
5563238104Sdesdone
5564238104Sdes  done
5565238104SdesIFS=$as_save_IFS
5566238104Sdes
5567238104Sdesfi
5568238104Sdesfi
5569238104SdesSTRIP=$ac_cv_prog_STRIP
5570238104Sdesif test -n "$STRIP"; then
5571238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5572238104Sdes$as_echo "$STRIP" >&6; }
5573238104Sdeselse
5574238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575238104Sdes$as_echo "no" >&6; }
5576238104Sdesfi
5577238104Sdes
5578238104Sdes
5579238104Sdesfi
5580238104Sdesif test -z "$ac_cv_prog_STRIP"; then
5581238104Sdes  ac_ct_STRIP=$STRIP
5582238104Sdes  # Extract the first word of "strip", so it can be a program name with args.
5583238104Sdesset dummy strip; ac_word=$2
5584238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5586238104Sdesif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5587238104Sdes  $as_echo_n "(cached) " >&6
5588238104Sdeselse
5589238104Sdes  if test -n "$ac_ct_STRIP"; then
5590238104Sdes  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5591238104Sdeselse
5592238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593238104Sdesfor as_dir in $PATH
5594238104Sdesdo
5595238104Sdes  IFS=$as_save_IFS
5596238104Sdes  test -z "$as_dir" && as_dir=.
5597238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5598285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599238104Sdes    ac_cv_prog_ac_ct_STRIP="strip"
5600238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601238104Sdes    break 2
5602238104Sdes  fi
5603238104Sdesdone
5604238104Sdes  done
5605238104SdesIFS=$as_save_IFS
5606238104Sdes
5607238104Sdesfi
5608238104Sdesfi
5609238104Sdesac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5610238104Sdesif test -n "$ac_ct_STRIP"; then
5611238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5612238104Sdes$as_echo "$ac_ct_STRIP" >&6; }
5613238104Sdeselse
5614238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615238104Sdes$as_echo "no" >&6; }
5616238104Sdesfi
5617238104Sdes
5618238104Sdes  if test "x$ac_ct_STRIP" = x; then
5619238104Sdes    STRIP=":"
5620238104Sdes  else
5621238104Sdes    case $cross_compiling:$ac_tool_warned in
5622238104Sdesyes:)
5623238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625238104Sdesac_tool_warned=yes ;;
5626238104Sdesesac
5627238104Sdes    STRIP=$ac_ct_STRIP
5628238104Sdes  fi
5629238104Sdeselse
5630238104Sdes  STRIP="$ac_cv_prog_STRIP"
5631238104Sdesfi
5632238104Sdes
5633238104Sdestest -z "$STRIP" && STRIP=:
5634238104Sdes
5635238104Sdes
5636238104Sdes
5637238104Sdes
5638238104Sdes
5639238104Sdes
5640238104Sdesif test -n "$ac_tool_prefix"; then
5641238104Sdes  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5642238104Sdesset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5643238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5645238104Sdesif ${ac_cv_prog_RANLIB+:} false; then :
5646238104Sdes  $as_echo_n "(cached) " >&6
5647238104Sdeselse
5648238104Sdes  if test -n "$RANLIB"; then
5649238104Sdes  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5650238104Sdeselse
5651238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652238104Sdesfor as_dir in $PATH
5653238104Sdesdo
5654238104Sdes  IFS=$as_save_IFS
5655238104Sdes  test -z "$as_dir" && as_dir=.
5656238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5657285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658238104Sdes    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5659238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660238104Sdes    break 2
5661238104Sdes  fi
5662238104Sdesdone
5663238104Sdes  done
5664238104SdesIFS=$as_save_IFS
5665238104Sdes
5666238104Sdesfi
5667238104Sdesfi
5668238104SdesRANLIB=$ac_cv_prog_RANLIB
5669238104Sdesif test -n "$RANLIB"; then
5670238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5671238104Sdes$as_echo "$RANLIB" >&6; }
5672238104Sdeselse
5673238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674238104Sdes$as_echo "no" >&6; }
5675238104Sdesfi
5676238104Sdes
5677238104Sdes
5678238104Sdesfi
5679238104Sdesif test -z "$ac_cv_prog_RANLIB"; then
5680238104Sdes  ac_ct_RANLIB=$RANLIB
5681238104Sdes  # Extract the first word of "ranlib", so it can be a program name with args.
5682238104Sdesset dummy ranlib; ac_word=$2
5683238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5685238104Sdesif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5686238104Sdes  $as_echo_n "(cached) " >&6
5687238104Sdeselse
5688238104Sdes  if test -n "$ac_ct_RANLIB"; then
5689238104Sdes  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5690238104Sdeselse
5691238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692238104Sdesfor as_dir in $PATH
5693238104Sdesdo
5694238104Sdes  IFS=$as_save_IFS
5695238104Sdes  test -z "$as_dir" && as_dir=.
5696238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5697285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698238104Sdes    ac_cv_prog_ac_ct_RANLIB="ranlib"
5699238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700238104Sdes    break 2
5701238104Sdes  fi
5702238104Sdesdone
5703238104Sdes  done
5704238104SdesIFS=$as_save_IFS
5705238104Sdes
5706238104Sdesfi
5707238104Sdesfi
5708238104Sdesac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5709238104Sdesif test -n "$ac_ct_RANLIB"; then
5710238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5711238104Sdes$as_echo "$ac_ct_RANLIB" >&6; }
5712238104Sdeselse
5713238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714238104Sdes$as_echo "no" >&6; }
5715238104Sdesfi
5716238104Sdes
5717238104Sdes  if test "x$ac_ct_RANLIB" = x; then
5718238104Sdes    RANLIB=":"
5719238104Sdes  else
5720238104Sdes    case $cross_compiling:$ac_tool_warned in
5721238104Sdesyes:)
5722238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724238104Sdesac_tool_warned=yes ;;
5725238104Sdesesac
5726238104Sdes    RANLIB=$ac_ct_RANLIB
5727238104Sdes  fi
5728238104Sdeselse
5729238104Sdes  RANLIB="$ac_cv_prog_RANLIB"
5730238104Sdesfi
5731238104Sdes
5732238104Sdestest -z "$RANLIB" && RANLIB=:
5733238104Sdes
5734238104Sdes
5735238104Sdes
5736238104Sdes
5737238104Sdes
5738238104Sdes
5739238104Sdes# Determine commands to create old-style static archives.
5740238104Sdesold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5741238104Sdesold_postinstall_cmds='chmod 644 $oldlib'
5742238104Sdesold_postuninstall_cmds=
5743238104Sdes
5744238104Sdesif test -n "$RANLIB"; then
5745238104Sdes  case $host_os in
5746238104Sdes  openbsd*)
5747238104Sdes    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5748238104Sdes    ;;
5749238104Sdes  *)
5750238104Sdes    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5751238104Sdes    ;;
5752238104Sdes  esac
5753238104Sdes  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5754238104Sdesfi
5755238104Sdes
5756238104Sdescase $host_os in
5757238104Sdes  darwin*)
5758238104Sdes    lock_old_archive_extraction=yes ;;
5759238104Sdes  *)
5760238104Sdes    lock_old_archive_extraction=no ;;
5761238104Sdesesac
5762238104Sdes
5763238104Sdes
5764238104Sdes
5765238104Sdes
5766238104Sdes
5767238104Sdes
5768238104Sdes
5769238104Sdes
5770238104Sdes
5771238104Sdes
5772238104Sdes
5773238104Sdes
5774238104Sdes
5775238104Sdes
5776238104Sdes
5777238104Sdes
5778238104Sdes
5779238104Sdes
5780238104Sdes
5781238104Sdes
5782238104Sdes
5783238104Sdesfor ac_prog in gawk mawk nawk awk
5784238104Sdesdo
5785238104Sdes  # Extract the first word of "$ac_prog", so it can be a program name with args.
5786238104Sdesset dummy $ac_prog; ac_word=$2
5787238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
5789238104Sdesif ${ac_cv_prog_AWK+:} false; then :
5790238104Sdes  $as_echo_n "(cached) " >&6
5791238104Sdeselse
5792238104Sdes  if test -n "$AWK"; then
5793238104Sdes  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5794238104Sdeselse
5795238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796238104Sdesfor as_dir in $PATH
5797238104Sdesdo
5798238104Sdes  IFS=$as_save_IFS
5799238104Sdes  test -z "$as_dir" && as_dir=.
5800238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
5801285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802238104Sdes    ac_cv_prog_AWK="$ac_prog"
5803238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804238104Sdes    break 2
5805238104Sdes  fi
5806238104Sdesdone
5807238104Sdes  done
5808238104SdesIFS=$as_save_IFS
5809238104Sdes
5810238104Sdesfi
5811238104Sdesfi
5812238104SdesAWK=$ac_cv_prog_AWK
5813238104Sdesif test -n "$AWK"; then
5814238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5815238104Sdes$as_echo "$AWK" >&6; }
5816238104Sdeselse
5817238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818238104Sdes$as_echo "no" >&6; }
5819238104Sdesfi
5820238104Sdes
5821238104Sdes
5822238104Sdes  test -n "$AWK" && break
5823238104Sdesdone
5824238104Sdes
5825238104Sdes
5826238104Sdes
5827238104Sdes
5828238104Sdes
5829238104Sdes
5830238104Sdes
5831238104Sdes
5832238104Sdes
5833238104Sdes
5834238104Sdes
5835238104Sdes
5836238104Sdes
5837238104Sdes
5838238104Sdes
5839238104Sdes
5840238104Sdes
5841238104Sdes
5842238104Sdes
5843238104Sdes# If no C compiler was specified, use CC.
5844238104SdesLTCC=${LTCC-"$CC"}
5845238104Sdes
5846238104Sdes# If no C compiler flags were specified, use CFLAGS.
5847238104SdesLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5848238104Sdes
5849238104Sdes# Allow CC to be a program name with arguments.
5850238104Sdescompiler=$CC
5851238104Sdes
5852238104Sdes
5853238104Sdes# Check for command to grab the raw symbol name followed by C symbol from nm.
5854238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5855238104Sdes$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5856238104Sdesif ${lt_cv_sys_global_symbol_pipe+:} false; then :
5857238104Sdes  $as_echo_n "(cached) " >&6
5858238104Sdeselse
5859238104Sdes
5860238104Sdes# These are sane defaults that work on at least a few old systems.
5861238104Sdes# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5862238104Sdes
5863238104Sdes# Character class describing NM global symbol codes.
5864238104Sdessymcode='[BCDEGRST]'
5865238104Sdes
5866238104Sdes# Regexp to match symbols that can be accessed directly from C.
5867238104Sdessympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5868238104Sdes
5869238104Sdes# Define system-specific variables.
5870238104Sdescase $host_os in
5871238104Sdesaix*)
5872238104Sdes  symcode='[BCDT]'
5873238104Sdes  ;;
5874238104Sdescygwin* | mingw* | pw32* | cegcc*)
5875238104Sdes  symcode='[ABCDGISTW]'
5876238104Sdes  ;;
5877238104Sdeshpux*)
5878238104Sdes  if test "$host_cpu" = ia64; then
5879238104Sdes    symcode='[ABCDEGRST]'
5880238104Sdes  fi
5881238104Sdes  ;;
5882238104Sdesirix* | nonstopux*)
5883238104Sdes  symcode='[BCDEGRST]'
5884238104Sdes  ;;
5885238104Sdesosf*)
5886238104Sdes  symcode='[BCDEGQRST]'
5887238104Sdes  ;;
5888238104Sdessolaris*)
5889238104Sdes  symcode='[BDRT]'
5890238104Sdes  ;;
5891238104Sdessco3.2v5*)
5892238104Sdes  symcode='[DT]'
5893238104Sdes  ;;
5894238104Sdessysv4.2uw2*)
5895238104Sdes  symcode='[DT]'
5896238104Sdes  ;;
5897238104Sdessysv5* | sco5v6* | unixware* | OpenUNIX*)
5898238104Sdes  symcode='[ABDT]'
5899238104Sdes  ;;
5900238104Sdessysv4)
5901238104Sdes  symcode='[DFNSTU]'
5902238104Sdes  ;;
5903238104Sdesesac
5904238104Sdes
5905238104Sdes# If we're using GNU nm, then use its standard symbol codes.
5906238104Sdescase `$NM -V 2>&1` in
5907238104Sdes*GNU* | *'with BFD'*)
5908238104Sdes  symcode='[ABCDGIRSTW]' ;;
5909238104Sdesesac
5910238104Sdes
5911238104Sdes# Transform an extracted symbol line into a proper C declaration.
5912238104Sdes# Some systems (esp. on ia64) link data and code symbols differently,
5913238104Sdes# so use this general approach.
5914238104Sdeslt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5915238104Sdes
5916238104Sdes# Transform an extracted symbol line into symbol name and symbol address
5917238104Sdeslt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5918238104Sdeslt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5919238104Sdes
5920238104Sdes# Handle CRLF in mingw tool chain
5921238104Sdesopt_cr=
5922238104Sdescase $build_os in
5923238104Sdesmingw*)
5924238104Sdes  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5925238104Sdes  ;;
5926238104Sdesesac
5927238104Sdes
5928238104Sdes# Try without a prefix underscore, then with it.
5929238104Sdesfor ac_symprfx in "" "_"; do
5930238104Sdes
5931238104Sdes  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5932238104Sdes  symxfrm="\\1 $ac_symprfx\\2 \\2"
5933238104Sdes
5934238104Sdes  # Write the raw and C identifiers.
5935238104Sdes  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5936238104Sdes    # Fake it for dumpbin and say T for any non-static function
5937238104Sdes    # and D for any global variable.
5938238104Sdes    # Also find C++ and __fastcall symbols from MSVC++,
5939238104Sdes    # which start with @ or ?.
5940238104Sdes    lt_cv_sys_global_symbol_pipe="$AWK '"\
5941238104Sdes"     {last_section=section; section=\$ 3};"\
5942238104Sdes"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5943238104Sdes"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5944238104Sdes"     \$ 0!~/External *\|/{next};"\
5945238104Sdes"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5946238104Sdes"     {if(hide[section]) next};"\
5947238104Sdes"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5948238104Sdes"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5949238104Sdes"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5950238104Sdes"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5951238104Sdes"     ' prfx=^$ac_symprfx"
5952238104Sdes  else
5953238104Sdes    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5954238104Sdes  fi
5955238104Sdes  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5956238104Sdes
5957238104Sdes  # Check to see that the pipe works correctly.
5958238104Sdes  pipe_works=no
5959238104Sdes
5960238104Sdes  rm -f conftest*
5961238104Sdes  cat > conftest.$ac_ext <<_LT_EOF
5962238104Sdes#ifdef __cplusplus
5963238104Sdesextern "C" {
5964238104Sdes#endif
5965238104Sdeschar nm_test_var;
5966238104Sdesvoid nm_test_func(void);
5967238104Sdesvoid nm_test_func(void){}
5968238104Sdes#ifdef __cplusplus
5969238104Sdes}
5970238104Sdes#endif
5971238104Sdesint main(){nm_test_var='a';nm_test_func();return(0);}
5972238104Sdes_LT_EOF
5973238104Sdes
5974238104Sdes  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975238104Sdes  (eval $ac_compile) 2>&5
5976238104Sdes  ac_status=$?
5977238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978238104Sdes  test $ac_status = 0; }; then
5979238104Sdes    # Now try to grab the symbols.
5980238104Sdes    nlist=conftest.nm
5981238104Sdes    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5982238104Sdes  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5983238104Sdes  ac_status=$?
5984238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985238104Sdes  test $ac_status = 0; } && test -s "$nlist"; then
5986238104Sdes      # Try sorting and uniquifying the output.
5987238104Sdes      if sort "$nlist" | uniq > "$nlist"T; then
5988238104Sdes	mv -f "$nlist"T "$nlist"
5989238104Sdes      else
5990238104Sdes	rm -f "$nlist"T
5991238104Sdes      fi
5992238104Sdes
5993238104Sdes      # Make sure that we snagged all the symbols we need.
5994238104Sdes      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5995238104Sdes	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5996238104Sdes	  cat <<_LT_EOF > conftest.$ac_ext
5997238104Sdes/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5998238104Sdes#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5999238104Sdes/* DATA imports from DLLs on WIN32 con't be const, because runtime
6000238104Sdes   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6001238104Sdes# define LT_DLSYM_CONST
6002238104Sdes#elif defined(__osf__)
6003238104Sdes/* This system does not cope well with relocations in const data.  */
6004238104Sdes# define LT_DLSYM_CONST
6005238104Sdes#else
6006238104Sdes# define LT_DLSYM_CONST const
6007238104Sdes#endif
6008238104Sdes
6009238104Sdes#ifdef __cplusplus
6010238104Sdesextern "C" {
6011238104Sdes#endif
6012238104Sdes
6013238104Sdes_LT_EOF
6014238104Sdes	  # Now generate the symbol file.
6015238104Sdes	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6016238104Sdes
6017238104Sdes	  cat <<_LT_EOF >> conftest.$ac_ext
6018238104Sdes
6019238104Sdes/* The mapping between symbol names and symbols.  */
6020238104SdesLT_DLSYM_CONST struct {
6021238104Sdes  const char *name;
6022238104Sdes  void       *address;
6023238104Sdes}
6024238104Sdeslt__PROGRAM__LTX_preloaded_symbols[] =
6025238104Sdes{
6026238104Sdes  { "@PROGRAM@", (void *) 0 },
6027238104Sdes_LT_EOF
6028238104Sdes	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6029238104Sdes	  cat <<\_LT_EOF >> conftest.$ac_ext
6030238104Sdes  {0, (void *) 0}
6031238104Sdes};
6032238104Sdes
6033238104Sdes/* This works around a problem in FreeBSD linker */
6034238104Sdes#ifdef FREEBSD_WORKAROUND
6035238104Sdesstatic const void *lt_preloaded_setup() {
6036238104Sdes  return lt__PROGRAM__LTX_preloaded_symbols;
6037238104Sdes}
6038238104Sdes#endif
6039238104Sdes
6040238104Sdes#ifdef __cplusplus
6041238104Sdes}
6042238104Sdes#endif
6043238104Sdes_LT_EOF
6044238104Sdes	  # Now try linking the two files.
6045238104Sdes	  mv conftest.$ac_objext conftstm.$ac_objext
6046238104Sdes	  lt_globsym_save_LIBS=$LIBS
6047238104Sdes	  lt_globsym_save_CFLAGS=$CFLAGS
6048238104Sdes	  LIBS="conftstm.$ac_objext"
6049238104Sdes	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6050238104Sdes	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6051238104Sdes  (eval $ac_link) 2>&5
6052238104Sdes  ac_status=$?
6053238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054238104Sdes  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6055238104Sdes	    pipe_works=yes
6056238104Sdes	  fi
6057238104Sdes	  LIBS=$lt_globsym_save_LIBS
6058238104Sdes	  CFLAGS=$lt_globsym_save_CFLAGS
6059238104Sdes	else
6060238104Sdes	  echo "cannot find nm_test_func in $nlist" >&5
6061238104Sdes	fi
6062238104Sdes      else
6063238104Sdes	echo "cannot find nm_test_var in $nlist" >&5
6064238104Sdes      fi
6065238104Sdes    else
6066238104Sdes      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6067238104Sdes    fi
6068238104Sdes  else
6069238104Sdes    echo "$progname: failed program was:" >&5
6070238104Sdes    cat conftest.$ac_ext >&5
6071238104Sdes  fi
6072238104Sdes  rm -rf conftest* conftst*
6073238104Sdes
6074238104Sdes  # Do not use the global_symbol_pipe unless it works.
6075238104Sdes  if test "$pipe_works" = yes; then
6076238104Sdes    break
6077238104Sdes  else
6078238104Sdes    lt_cv_sys_global_symbol_pipe=
6079238104Sdes  fi
6080238104Sdesdone
6081238104Sdes
6082238104Sdesfi
6083238104Sdes
6084238104Sdesif test -z "$lt_cv_sys_global_symbol_pipe"; then
6085238104Sdes  lt_cv_sys_global_symbol_to_cdecl=
6086238104Sdesfi
6087238104Sdesif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6088238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6089238104Sdes$as_echo "failed" >&6; }
6090238104Sdeselse
6091238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6092238104Sdes$as_echo "ok" >&6; }
6093238104Sdesfi
6094238104Sdes
6095238104Sdes# Response file support.
6096238104Sdesif test "$lt_cv_nm_interface" = "MS dumpbin"; then
6097238104Sdes  nm_file_list_spec='@'
6098238104Sdeselif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6099238104Sdes  nm_file_list_spec='@'
6100238104Sdesfi
6101238104Sdes
6102238104Sdes
6103238104Sdes
6104238104Sdes
6105238104Sdes
6106238104Sdes
6107238104Sdes
6108238104Sdes
6109238104Sdes
6110238104Sdes
6111238104Sdes
6112238104Sdes
6113238104Sdes
6114238104Sdes
6115238104Sdes
6116238104Sdes
6117238104Sdes
6118238104Sdes
6119238104Sdes
6120238104Sdes
6121238104Sdes
6122238104Sdes
6123238104Sdes
6124238104Sdes
6125238104Sdes
6126238104Sdes
6127238104Sdes
6128238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6129238104Sdes$as_echo_n "checking for sysroot... " >&6; }
6130238104Sdes
6131238104Sdes# Check whether --with-sysroot was given.
6132238104Sdesif test "${with_sysroot+set}" = set; then :
6133238104Sdes  withval=$with_sysroot;
6134238104Sdeselse
6135238104Sdes  with_sysroot=no
6136238104Sdesfi
6137238104Sdes
6138238104Sdes
6139238104Sdeslt_sysroot=
6140238104Sdescase ${with_sysroot} in #(
6141238104Sdes yes)
6142238104Sdes   if test "$GCC" = yes; then
6143238104Sdes     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6144238104Sdes   fi
6145238104Sdes   ;; #(
6146238104Sdes /*)
6147238104Sdes   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6148238104Sdes   ;; #(
6149238104Sdes no|'')
6150238104Sdes   ;; #(
6151238104Sdes *)
6152238104Sdes   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6153238104Sdes$as_echo "${with_sysroot}" >&6; }
6154238104Sdes   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6155238104Sdes   ;;
6156238104Sdesesac
6157238104Sdes
6158238104Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6159238104Sdes$as_echo "${lt_sysroot:-no}" >&6; }
6160238104Sdes
6161238104Sdes
6162238104Sdes
6163238104Sdes
6164238104Sdes
6165238104Sdes# Check whether --enable-libtool-lock was given.
6166238104Sdesif test "${enable_libtool_lock+set}" = set; then :
6167238104Sdes  enableval=$enable_libtool_lock;
6168238104Sdesfi
6169238104Sdes
6170238104Sdestest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6171238104Sdes
6172238104Sdes# Some flags need to be propagated to the compiler or linker for good
6173238104Sdes# libtool support.
6174238104Sdescase $host in
6175238104Sdesia64-*-hpux*)
6176238104Sdes  # Find out which ABI we are using.
6177238104Sdes  echo 'int i;' > conftest.$ac_ext
6178238104Sdes  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6179238104Sdes  (eval $ac_compile) 2>&5
6180238104Sdes  ac_status=$?
6181238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182238104Sdes  test $ac_status = 0; }; then
6183238104Sdes    case `/usr/bin/file conftest.$ac_objext` in
6184238104Sdes      *ELF-32*)
6185238104Sdes	HPUX_IA64_MODE="32"
6186238104Sdes	;;
6187238104Sdes      *ELF-64*)
6188238104Sdes	HPUX_IA64_MODE="64"
6189238104Sdes	;;
6190238104Sdes    esac
6191238104Sdes  fi
6192238104Sdes  rm -rf conftest*
6193238104Sdes  ;;
6194238104Sdes*-*-irix6*)
6195238104Sdes  # Find out which ABI we are using.
6196238104Sdes  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6197238104Sdes  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198238104Sdes  (eval $ac_compile) 2>&5
6199238104Sdes  ac_status=$?
6200238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201238104Sdes  test $ac_status = 0; }; then
6202238104Sdes    if test "$lt_cv_prog_gnu_ld" = yes; then
6203238104Sdes      case `/usr/bin/file conftest.$ac_objext` in
6204238104Sdes	*32-bit*)
6205238104Sdes	  LD="${LD-ld} -melf32bsmip"
6206238104Sdes	  ;;
6207238104Sdes	*N32*)
6208238104Sdes	  LD="${LD-ld} -melf32bmipn32"
6209238104Sdes	  ;;
6210238104Sdes	*64-bit*)
6211238104Sdes	  LD="${LD-ld} -melf64bmip"
6212238104Sdes	;;
6213238104Sdes      esac
6214238104Sdes    else
6215238104Sdes      case `/usr/bin/file conftest.$ac_objext` in
6216238104Sdes	*32-bit*)
6217238104Sdes	  LD="${LD-ld} -32"
6218238104Sdes	  ;;
6219238104Sdes	*N32*)
6220238104Sdes	  LD="${LD-ld} -n32"
6221238104Sdes	  ;;
6222238104Sdes	*64-bit*)
6223238104Sdes	  LD="${LD-ld} -64"
6224238104Sdes	  ;;
6225238104Sdes      esac
6226238104Sdes    fi
6227238104Sdes  fi
6228238104Sdes  rm -rf conftest*
6229238104Sdes  ;;
6230238104Sdes
6231238104Sdesx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6232238104Sdess390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6233238104Sdes  # Find out which ABI we are using.
6234238104Sdes  echo 'int i;' > conftest.$ac_ext
6235238104Sdes  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6236238104Sdes  (eval $ac_compile) 2>&5
6237238104Sdes  ac_status=$?
6238238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239238104Sdes  test $ac_status = 0; }; then
6240238104Sdes    case `/usr/bin/file conftest.o` in
6241238104Sdes      *32-bit*)
6242238104Sdes	case $host in
6243238104Sdes	  x86_64-*kfreebsd*-gnu)
6244238104Sdes	    LD="${LD-ld} -m elf_i386_fbsd"
6245238104Sdes	    ;;
6246238104Sdes	  x86_64-*linux*)
6247238104Sdes	    LD="${LD-ld} -m elf_i386"
6248238104Sdes	    ;;
6249238104Sdes	  ppc64-*linux*|powerpc64-*linux*)
6250238104Sdes	    LD="${LD-ld} -m elf32ppclinux"
6251238104Sdes	    ;;
6252238104Sdes	  s390x-*linux*)
6253238104Sdes	    LD="${LD-ld} -m elf_s390"
6254238104Sdes	    ;;
6255238104Sdes	  sparc64-*linux*)
6256238104Sdes	    LD="${LD-ld} -m elf32_sparc"
6257238104Sdes	    ;;
6258238104Sdes	esac
6259238104Sdes	;;
6260238104Sdes      *64-bit*)
6261238104Sdes	case $host in
6262238104Sdes	  x86_64-*kfreebsd*-gnu)
6263238104Sdes	    LD="${LD-ld} -m elf_x86_64_fbsd"
6264238104Sdes	    ;;
6265238104Sdes	  x86_64-*linux*)
6266238104Sdes	    LD="${LD-ld} -m elf_x86_64"
6267238104Sdes	    ;;
6268238104Sdes	  ppc*-*linux*|powerpc*-*linux*)
6269238104Sdes	    LD="${LD-ld} -m elf64ppc"
6270238104Sdes	    ;;
6271238104Sdes	  s390*-*linux*|s390*-*tpf*)
6272238104Sdes	    LD="${LD-ld} -m elf64_s390"
6273238104Sdes	    ;;
6274238104Sdes	  sparc*-*linux*)
6275238104Sdes	    LD="${LD-ld} -m elf64_sparc"
6276238104Sdes	    ;;
6277238104Sdes	esac
6278238104Sdes	;;
6279238104Sdes    esac
6280238104Sdes  fi
6281238104Sdes  rm -rf conftest*
6282238104Sdes  ;;
6283238104Sdes
6284238104Sdes*-*-sco3.2v5*)
6285238104Sdes  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6286238104Sdes  SAVE_CFLAGS="$CFLAGS"
6287238104Sdes  CFLAGS="$CFLAGS -belf"
6288238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6289238104Sdes$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6290238104Sdesif ${lt_cv_cc_needs_belf+:} false; then :
6291238104Sdes  $as_echo_n "(cached) " >&6
6292238104Sdeselse
6293238104Sdes  ac_ext=c
6294238104Sdesac_cpp='$CPP $CPPFLAGS'
6295238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
6298238104Sdes
6299238104Sdes     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300238104Sdes/* end confdefs.h.  */
6301238104Sdes
6302238104Sdesint
6303238104Sdesmain ()
6304238104Sdes{
6305238104Sdes
6306238104Sdes  ;
6307238104Sdes  return 0;
6308238104Sdes}
6309238104Sdes_ACEOF
6310238104Sdesif ac_fn_c_try_link "$LINENO"; then :
6311238104Sdes  lt_cv_cc_needs_belf=yes
6312238104Sdeselse
6313238104Sdes  lt_cv_cc_needs_belf=no
6314238104Sdesfi
6315238104Sdesrm -f core conftest.err conftest.$ac_objext \
6316238104Sdes    conftest$ac_exeext conftest.$ac_ext
6317238104Sdes     ac_ext=c
6318238104Sdesac_cpp='$CPP $CPPFLAGS'
6319238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
6322238104Sdes
6323238104Sdesfi
6324238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6325238104Sdes$as_echo "$lt_cv_cc_needs_belf" >&6; }
6326238104Sdes  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6327238104Sdes    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6328238104Sdes    CFLAGS="$SAVE_CFLAGS"
6329238104Sdes  fi
6330238104Sdes  ;;
6331238104Sdes*-*solaris*)
6332238104Sdes  # Find out which ABI we are using.
6333238104Sdes  echo 'int i;' > conftest.$ac_ext
6334238104Sdes  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335238104Sdes  (eval $ac_compile) 2>&5
6336238104Sdes  ac_status=$?
6337238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338238104Sdes  test $ac_status = 0; }; then
6339238104Sdes    case `/usr/bin/file conftest.o` in
6340238104Sdes    *64-bit*)
6341238104Sdes      case $lt_cv_prog_gnu_ld in
6342238104Sdes      yes*)
6343238104Sdes        case $host in
6344238104Sdes        i?86-*-solaris*)
6345238104Sdes          LD="${LD-ld} -m elf_x86_64"
6346238104Sdes          ;;
6347238104Sdes        sparc*-*-solaris*)
6348238104Sdes          LD="${LD-ld} -m elf64_sparc"
6349238104Sdes          ;;
6350238104Sdes        esac
6351238104Sdes        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6352238104Sdes        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6353238104Sdes          LD="${LD-ld}_sol2"
6354238104Sdes        fi
6355238104Sdes        ;;
6356238104Sdes      *)
6357238104Sdes	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6358238104Sdes	  LD="${LD-ld} -64"
6359238104Sdes	fi
6360238104Sdes	;;
6361238104Sdes      esac
6362238104Sdes      ;;
6363238104Sdes    esac
6364238104Sdes  fi
6365238104Sdes  rm -rf conftest*
6366238104Sdes  ;;
6367238104Sdesesac
6368238104Sdes
6369238104Sdesneed_locks="$enable_libtool_lock"
6370238104Sdes
6371238104Sdesif test -n "$ac_tool_prefix"; then
6372238104Sdes  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6373238104Sdesset dummy ${ac_tool_prefix}mt; ac_word=$2
6374238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6376238104Sdesif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6377238104Sdes  $as_echo_n "(cached) " >&6
6378238104Sdeselse
6379238104Sdes  if test -n "$MANIFEST_TOOL"; then
6380238104Sdes  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6381238104Sdeselse
6382238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383238104Sdesfor as_dir in $PATH
6384238104Sdesdo
6385238104Sdes  IFS=$as_save_IFS
6386238104Sdes  test -z "$as_dir" && as_dir=.
6387238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6388285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389238104Sdes    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6390238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391238104Sdes    break 2
6392238104Sdes  fi
6393238104Sdesdone
6394238104Sdes  done
6395238104SdesIFS=$as_save_IFS
6396238104Sdes
6397238104Sdesfi
6398238104Sdesfi
6399238104SdesMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6400238104Sdesif test -n "$MANIFEST_TOOL"; then
6401238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6402238104Sdes$as_echo "$MANIFEST_TOOL" >&6; }
6403238104Sdeselse
6404238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405238104Sdes$as_echo "no" >&6; }
6406238104Sdesfi
6407238104Sdes
6408238104Sdes
6409238104Sdesfi
6410238104Sdesif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6411238104Sdes  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6412238104Sdes  # Extract the first word of "mt", so it can be a program name with args.
6413238104Sdesset dummy mt; ac_word=$2
6414238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6416238104Sdesif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6417238104Sdes  $as_echo_n "(cached) " >&6
6418238104Sdeselse
6419238104Sdes  if test -n "$ac_ct_MANIFEST_TOOL"; then
6420238104Sdes  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6421238104Sdeselse
6422238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423238104Sdesfor as_dir in $PATH
6424238104Sdesdo
6425238104Sdes  IFS=$as_save_IFS
6426238104Sdes  test -z "$as_dir" && as_dir=.
6427238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6428285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429238104Sdes    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6430238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431238104Sdes    break 2
6432238104Sdes  fi
6433238104Sdesdone
6434238104Sdes  done
6435238104SdesIFS=$as_save_IFS
6436238104Sdes
6437238104Sdesfi
6438238104Sdesfi
6439238104Sdesac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6440238104Sdesif test -n "$ac_ct_MANIFEST_TOOL"; then
6441238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6442238104Sdes$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6443238104Sdeselse
6444238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445238104Sdes$as_echo "no" >&6; }
6446238104Sdesfi
6447238104Sdes
6448238104Sdes  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6449238104Sdes    MANIFEST_TOOL=":"
6450238104Sdes  else
6451238104Sdes    case $cross_compiling:$ac_tool_warned in
6452238104Sdesyes:)
6453238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455238104Sdesac_tool_warned=yes ;;
6456238104Sdesesac
6457238104Sdes    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6458238104Sdes  fi
6459238104Sdeselse
6460238104Sdes  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6461238104Sdesfi
6462238104Sdes
6463238104Sdestest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6464238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6465238104Sdes$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6466238104Sdesif ${lt_cv_path_mainfest_tool+:} false; then :
6467238104Sdes  $as_echo_n "(cached) " >&6
6468238104Sdeselse
6469238104Sdes  lt_cv_path_mainfest_tool=no
6470238104Sdes  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6471238104Sdes  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6472238104Sdes  cat conftest.err >&5
6473238104Sdes  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6474238104Sdes    lt_cv_path_mainfest_tool=yes
6475238104Sdes  fi
6476238104Sdes  rm -f conftest*
6477238104Sdesfi
6478238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6479238104Sdes$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6480238104Sdesif test "x$lt_cv_path_mainfest_tool" != xyes; then
6481238104Sdes  MANIFEST_TOOL=:
6482238104Sdesfi
6483238104Sdes
6484238104Sdes
6485238104Sdes
6486238104Sdes
6487238104Sdes
6488238104Sdes
6489238104Sdes  case $host_os in
6490238104Sdes    rhapsody* | darwin*)
6491238104Sdes    if test -n "$ac_tool_prefix"; then
6492238104Sdes  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6493238104Sdesset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6494238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6496238104Sdesif ${ac_cv_prog_DSYMUTIL+:} false; then :
6497238104Sdes  $as_echo_n "(cached) " >&6
6498238104Sdeselse
6499238104Sdes  if test -n "$DSYMUTIL"; then
6500238104Sdes  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6501238104Sdeselse
6502238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503238104Sdesfor as_dir in $PATH
6504238104Sdesdo
6505238104Sdes  IFS=$as_save_IFS
6506238104Sdes  test -z "$as_dir" && as_dir=.
6507238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6508285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509238104Sdes    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6510238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511238104Sdes    break 2
6512238104Sdes  fi
6513238104Sdesdone
6514238104Sdes  done
6515238104SdesIFS=$as_save_IFS
6516238104Sdes
6517238104Sdesfi
6518238104Sdesfi
6519238104SdesDSYMUTIL=$ac_cv_prog_DSYMUTIL
6520238104Sdesif test -n "$DSYMUTIL"; then
6521238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6522238104Sdes$as_echo "$DSYMUTIL" >&6; }
6523238104Sdeselse
6524238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525238104Sdes$as_echo "no" >&6; }
6526238104Sdesfi
6527238104Sdes
6528238104Sdes
6529238104Sdesfi
6530238104Sdesif test -z "$ac_cv_prog_DSYMUTIL"; then
6531238104Sdes  ac_ct_DSYMUTIL=$DSYMUTIL
6532238104Sdes  # Extract the first word of "dsymutil", so it can be a program name with args.
6533238104Sdesset dummy dsymutil; ac_word=$2
6534238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6536238104Sdesif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6537238104Sdes  $as_echo_n "(cached) " >&6
6538238104Sdeselse
6539238104Sdes  if test -n "$ac_ct_DSYMUTIL"; then
6540238104Sdes  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6541238104Sdeselse
6542238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543238104Sdesfor as_dir in $PATH
6544238104Sdesdo
6545238104Sdes  IFS=$as_save_IFS
6546238104Sdes  test -z "$as_dir" && as_dir=.
6547238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6548285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549238104Sdes    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6550238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551238104Sdes    break 2
6552238104Sdes  fi
6553238104Sdesdone
6554238104Sdes  done
6555238104SdesIFS=$as_save_IFS
6556238104Sdes
6557238104Sdesfi
6558238104Sdesfi
6559238104Sdesac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6560238104Sdesif test -n "$ac_ct_DSYMUTIL"; then
6561238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6562238104Sdes$as_echo "$ac_ct_DSYMUTIL" >&6; }
6563238104Sdeselse
6564238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565238104Sdes$as_echo "no" >&6; }
6566238104Sdesfi
6567238104Sdes
6568238104Sdes  if test "x$ac_ct_DSYMUTIL" = x; then
6569238104Sdes    DSYMUTIL=":"
6570238104Sdes  else
6571238104Sdes    case $cross_compiling:$ac_tool_warned in
6572238104Sdesyes:)
6573238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575238104Sdesac_tool_warned=yes ;;
6576238104Sdesesac
6577238104Sdes    DSYMUTIL=$ac_ct_DSYMUTIL
6578238104Sdes  fi
6579238104Sdeselse
6580238104Sdes  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6581238104Sdesfi
6582238104Sdes
6583238104Sdes    if test -n "$ac_tool_prefix"; then
6584238104Sdes  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6585238104Sdesset dummy ${ac_tool_prefix}nmedit; ac_word=$2
6586238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6588238104Sdesif ${ac_cv_prog_NMEDIT+:} false; then :
6589238104Sdes  $as_echo_n "(cached) " >&6
6590238104Sdeselse
6591238104Sdes  if test -n "$NMEDIT"; then
6592238104Sdes  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6593238104Sdeselse
6594238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595238104Sdesfor as_dir in $PATH
6596238104Sdesdo
6597238104Sdes  IFS=$as_save_IFS
6598238104Sdes  test -z "$as_dir" && as_dir=.
6599238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6600285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601238104Sdes    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6602238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603238104Sdes    break 2
6604238104Sdes  fi
6605238104Sdesdone
6606238104Sdes  done
6607238104SdesIFS=$as_save_IFS
6608238104Sdes
6609238104Sdesfi
6610238104Sdesfi
6611238104SdesNMEDIT=$ac_cv_prog_NMEDIT
6612238104Sdesif test -n "$NMEDIT"; then
6613238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6614238104Sdes$as_echo "$NMEDIT" >&6; }
6615238104Sdeselse
6616238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617238104Sdes$as_echo "no" >&6; }
6618238104Sdesfi
6619238104Sdes
6620238104Sdes
6621238104Sdesfi
6622238104Sdesif test -z "$ac_cv_prog_NMEDIT"; then
6623238104Sdes  ac_ct_NMEDIT=$NMEDIT
6624238104Sdes  # Extract the first word of "nmedit", so it can be a program name with args.
6625238104Sdesset dummy nmedit; ac_word=$2
6626238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6628238104Sdesif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6629238104Sdes  $as_echo_n "(cached) " >&6
6630238104Sdeselse
6631238104Sdes  if test -n "$ac_ct_NMEDIT"; then
6632238104Sdes  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6633238104Sdeselse
6634238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635238104Sdesfor as_dir in $PATH
6636238104Sdesdo
6637238104Sdes  IFS=$as_save_IFS
6638238104Sdes  test -z "$as_dir" && as_dir=.
6639238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6640285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641238104Sdes    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6642238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643238104Sdes    break 2
6644238104Sdes  fi
6645238104Sdesdone
6646238104Sdes  done
6647238104SdesIFS=$as_save_IFS
6648238104Sdes
6649238104Sdesfi
6650238104Sdesfi
6651238104Sdesac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6652238104Sdesif test -n "$ac_ct_NMEDIT"; then
6653238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6654238104Sdes$as_echo "$ac_ct_NMEDIT" >&6; }
6655238104Sdeselse
6656238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657238104Sdes$as_echo "no" >&6; }
6658238104Sdesfi
6659238104Sdes
6660238104Sdes  if test "x$ac_ct_NMEDIT" = x; then
6661238104Sdes    NMEDIT=":"
6662238104Sdes  else
6663238104Sdes    case $cross_compiling:$ac_tool_warned in
6664238104Sdesyes:)
6665238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667238104Sdesac_tool_warned=yes ;;
6668238104Sdesesac
6669238104Sdes    NMEDIT=$ac_ct_NMEDIT
6670238104Sdes  fi
6671238104Sdeselse
6672238104Sdes  NMEDIT="$ac_cv_prog_NMEDIT"
6673238104Sdesfi
6674238104Sdes
6675238104Sdes    if test -n "$ac_tool_prefix"; then
6676238104Sdes  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6677238104Sdesset dummy ${ac_tool_prefix}lipo; ac_word=$2
6678238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6680238104Sdesif ${ac_cv_prog_LIPO+:} false; then :
6681238104Sdes  $as_echo_n "(cached) " >&6
6682238104Sdeselse
6683238104Sdes  if test -n "$LIPO"; then
6684238104Sdes  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6685238104Sdeselse
6686238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687238104Sdesfor as_dir in $PATH
6688238104Sdesdo
6689238104Sdes  IFS=$as_save_IFS
6690238104Sdes  test -z "$as_dir" && as_dir=.
6691238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6692285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693238104Sdes    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6694238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695238104Sdes    break 2
6696238104Sdes  fi
6697238104Sdesdone
6698238104Sdes  done
6699238104SdesIFS=$as_save_IFS
6700238104Sdes
6701238104Sdesfi
6702238104Sdesfi
6703238104SdesLIPO=$ac_cv_prog_LIPO
6704238104Sdesif test -n "$LIPO"; then
6705238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6706238104Sdes$as_echo "$LIPO" >&6; }
6707238104Sdeselse
6708238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709238104Sdes$as_echo "no" >&6; }
6710238104Sdesfi
6711238104Sdes
6712238104Sdes
6713238104Sdesfi
6714238104Sdesif test -z "$ac_cv_prog_LIPO"; then
6715238104Sdes  ac_ct_LIPO=$LIPO
6716238104Sdes  # Extract the first word of "lipo", so it can be a program name with args.
6717238104Sdesset dummy lipo; ac_word=$2
6718238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6720238104Sdesif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6721238104Sdes  $as_echo_n "(cached) " >&6
6722238104Sdeselse
6723238104Sdes  if test -n "$ac_ct_LIPO"; then
6724238104Sdes  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6725238104Sdeselse
6726238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727238104Sdesfor as_dir in $PATH
6728238104Sdesdo
6729238104Sdes  IFS=$as_save_IFS
6730238104Sdes  test -z "$as_dir" && as_dir=.
6731238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6732285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733238104Sdes    ac_cv_prog_ac_ct_LIPO="lipo"
6734238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735238104Sdes    break 2
6736238104Sdes  fi
6737238104Sdesdone
6738238104Sdes  done
6739238104SdesIFS=$as_save_IFS
6740238104Sdes
6741238104Sdesfi
6742238104Sdesfi
6743238104Sdesac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6744238104Sdesif test -n "$ac_ct_LIPO"; then
6745238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6746238104Sdes$as_echo "$ac_ct_LIPO" >&6; }
6747238104Sdeselse
6748238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749238104Sdes$as_echo "no" >&6; }
6750238104Sdesfi
6751238104Sdes
6752238104Sdes  if test "x$ac_ct_LIPO" = x; then
6753238104Sdes    LIPO=":"
6754238104Sdes  else
6755238104Sdes    case $cross_compiling:$ac_tool_warned in
6756238104Sdesyes:)
6757238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759238104Sdesac_tool_warned=yes ;;
6760238104Sdesesac
6761238104Sdes    LIPO=$ac_ct_LIPO
6762238104Sdes  fi
6763238104Sdeselse
6764238104Sdes  LIPO="$ac_cv_prog_LIPO"
6765238104Sdesfi
6766238104Sdes
6767238104Sdes    if test -n "$ac_tool_prefix"; then
6768238104Sdes  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6769238104Sdesset dummy ${ac_tool_prefix}otool; ac_word=$2
6770238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6772238104Sdesif ${ac_cv_prog_OTOOL+:} false; then :
6773238104Sdes  $as_echo_n "(cached) " >&6
6774238104Sdeselse
6775238104Sdes  if test -n "$OTOOL"; then
6776238104Sdes  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6777238104Sdeselse
6778238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779238104Sdesfor as_dir in $PATH
6780238104Sdesdo
6781238104Sdes  IFS=$as_save_IFS
6782238104Sdes  test -z "$as_dir" && as_dir=.
6783238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6784285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785238104Sdes    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6786238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787238104Sdes    break 2
6788238104Sdes  fi
6789238104Sdesdone
6790238104Sdes  done
6791238104SdesIFS=$as_save_IFS
6792238104Sdes
6793238104Sdesfi
6794238104Sdesfi
6795238104SdesOTOOL=$ac_cv_prog_OTOOL
6796238104Sdesif test -n "$OTOOL"; then
6797238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6798238104Sdes$as_echo "$OTOOL" >&6; }
6799238104Sdeselse
6800238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801238104Sdes$as_echo "no" >&6; }
6802238104Sdesfi
6803238104Sdes
6804238104Sdes
6805238104Sdesfi
6806238104Sdesif test -z "$ac_cv_prog_OTOOL"; then
6807238104Sdes  ac_ct_OTOOL=$OTOOL
6808238104Sdes  # Extract the first word of "otool", so it can be a program name with args.
6809238104Sdesset dummy otool; ac_word=$2
6810238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6812238104Sdesif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6813238104Sdes  $as_echo_n "(cached) " >&6
6814238104Sdeselse
6815238104Sdes  if test -n "$ac_ct_OTOOL"; then
6816238104Sdes  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6817238104Sdeselse
6818238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819238104Sdesfor as_dir in $PATH
6820238104Sdesdo
6821238104Sdes  IFS=$as_save_IFS
6822238104Sdes  test -z "$as_dir" && as_dir=.
6823238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6824285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825238104Sdes    ac_cv_prog_ac_ct_OTOOL="otool"
6826238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827238104Sdes    break 2
6828238104Sdes  fi
6829238104Sdesdone
6830238104Sdes  done
6831238104SdesIFS=$as_save_IFS
6832238104Sdes
6833238104Sdesfi
6834238104Sdesfi
6835238104Sdesac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6836238104Sdesif test -n "$ac_ct_OTOOL"; then
6837238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6838238104Sdes$as_echo "$ac_ct_OTOOL" >&6; }
6839238104Sdeselse
6840238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841238104Sdes$as_echo "no" >&6; }
6842238104Sdesfi
6843238104Sdes
6844238104Sdes  if test "x$ac_ct_OTOOL" = x; then
6845238104Sdes    OTOOL=":"
6846238104Sdes  else
6847238104Sdes    case $cross_compiling:$ac_tool_warned in
6848238104Sdesyes:)
6849238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851238104Sdesac_tool_warned=yes ;;
6852238104Sdesesac
6853238104Sdes    OTOOL=$ac_ct_OTOOL
6854238104Sdes  fi
6855238104Sdeselse
6856238104Sdes  OTOOL="$ac_cv_prog_OTOOL"
6857238104Sdesfi
6858238104Sdes
6859238104Sdes    if test -n "$ac_tool_prefix"; then
6860238104Sdes  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6861238104Sdesset dummy ${ac_tool_prefix}otool64; ac_word=$2
6862238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6864238104Sdesif ${ac_cv_prog_OTOOL64+:} false; then :
6865238104Sdes  $as_echo_n "(cached) " >&6
6866238104Sdeselse
6867238104Sdes  if test -n "$OTOOL64"; then
6868238104Sdes  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6869238104Sdeselse
6870238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871238104Sdesfor as_dir in $PATH
6872238104Sdesdo
6873238104Sdes  IFS=$as_save_IFS
6874238104Sdes  test -z "$as_dir" && as_dir=.
6875238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6876285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877238104Sdes    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6878238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879238104Sdes    break 2
6880238104Sdes  fi
6881238104Sdesdone
6882238104Sdes  done
6883238104SdesIFS=$as_save_IFS
6884238104Sdes
6885238104Sdesfi
6886238104Sdesfi
6887238104SdesOTOOL64=$ac_cv_prog_OTOOL64
6888238104Sdesif test -n "$OTOOL64"; then
6889238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6890238104Sdes$as_echo "$OTOOL64" >&6; }
6891238104Sdeselse
6892238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893238104Sdes$as_echo "no" >&6; }
6894238104Sdesfi
6895238104Sdes
6896238104Sdes
6897238104Sdesfi
6898238104Sdesif test -z "$ac_cv_prog_OTOOL64"; then
6899238104Sdes  ac_ct_OTOOL64=$OTOOL64
6900238104Sdes  # Extract the first word of "otool64", so it can be a program name with args.
6901238104Sdesset dummy otool64; ac_word=$2
6902238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
6904238104Sdesif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6905238104Sdes  $as_echo_n "(cached) " >&6
6906238104Sdeselse
6907238104Sdes  if test -n "$ac_ct_OTOOL64"; then
6908238104Sdes  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6909238104Sdeselse
6910238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911238104Sdesfor as_dir in $PATH
6912238104Sdesdo
6913238104Sdes  IFS=$as_save_IFS
6914238104Sdes  test -z "$as_dir" && as_dir=.
6915238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
6916285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917238104Sdes    ac_cv_prog_ac_ct_OTOOL64="otool64"
6918238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919238104Sdes    break 2
6920238104Sdes  fi
6921238104Sdesdone
6922238104Sdes  done
6923238104SdesIFS=$as_save_IFS
6924238104Sdes
6925238104Sdesfi
6926238104Sdesfi
6927238104Sdesac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6928238104Sdesif test -n "$ac_ct_OTOOL64"; then
6929238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6930238104Sdes$as_echo "$ac_ct_OTOOL64" >&6; }
6931238104Sdeselse
6932238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933238104Sdes$as_echo "no" >&6; }
6934238104Sdesfi
6935238104Sdes
6936238104Sdes  if test "x$ac_ct_OTOOL64" = x; then
6937238104Sdes    OTOOL64=":"
6938238104Sdes  else
6939238104Sdes    case $cross_compiling:$ac_tool_warned in
6940238104Sdesyes:)
6941238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943238104Sdesac_tool_warned=yes ;;
6944238104Sdesesac
6945238104Sdes    OTOOL64=$ac_ct_OTOOL64
6946238104Sdes  fi
6947238104Sdeselse
6948238104Sdes  OTOOL64="$ac_cv_prog_OTOOL64"
6949238104Sdesfi
6950238104Sdes
6951238104Sdes
6952238104Sdes
6953238104Sdes
6954238104Sdes
6955238104Sdes
6956238104Sdes
6957238104Sdes
6958238104Sdes
6959238104Sdes
6960238104Sdes
6961238104Sdes
6962238104Sdes
6963238104Sdes
6964238104Sdes
6965238104Sdes
6966238104Sdes
6967238104Sdes
6968238104Sdes
6969238104Sdes
6970238104Sdes
6971238104Sdes
6972238104Sdes
6973238104Sdes
6974238104Sdes
6975238104Sdes
6976238104Sdes
6977238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6978238104Sdes$as_echo_n "checking for -single_module linker flag... " >&6; }
6979238104Sdesif ${lt_cv_apple_cc_single_mod+:} false; then :
6980238104Sdes  $as_echo_n "(cached) " >&6
6981238104Sdeselse
6982238104Sdes  lt_cv_apple_cc_single_mod=no
6983238104Sdes      if test -z "${LT_MULTI_MODULE}"; then
6984238104Sdes	# By default we will add the -single_module flag. You can override
6985238104Sdes	# by either setting the environment variable LT_MULTI_MODULE
6986238104Sdes	# non-empty at configure time, or by adding -multi_module to the
6987238104Sdes	# link flags.
6988238104Sdes	rm -rf libconftest.dylib*
6989238104Sdes	echo "int foo(void){return 1;}" > conftest.c
6990238104Sdes	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6991238104Sdes-dynamiclib -Wl,-single_module conftest.c" >&5
6992238104Sdes	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6993238104Sdes	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6994238104Sdes        _lt_result=$?
6995238104Sdes	# If there is a non-empty error log, and "single_module"
6996238104Sdes	# appears in it, assume the flag caused a linker warning
6997238104Sdes        if test -s conftest.err && $GREP single_module conftest.err; then
6998238104Sdes	  cat conftest.err >&5
6999238104Sdes	# Otherwise, if the output was created with a 0 exit code from
7000238104Sdes	# the compiler, it worked.
7001238104Sdes	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7002238104Sdes	  lt_cv_apple_cc_single_mod=yes
7003238104Sdes	else
7004238104Sdes	  cat conftest.err >&5
7005238104Sdes	fi
7006238104Sdes	rm -rf libconftest.dylib*
7007238104Sdes	rm -f conftest.*
7008238104Sdes      fi
7009238104Sdesfi
7010238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7011238104Sdes$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7012238104Sdes
7013238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7014238104Sdes$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7015238104Sdesif ${lt_cv_ld_exported_symbols_list+:} false; then :
7016238104Sdes  $as_echo_n "(cached) " >&6
7017238104Sdeselse
7018238104Sdes  lt_cv_ld_exported_symbols_list=no
7019238104Sdes      save_LDFLAGS=$LDFLAGS
7020238104Sdes      echo "_main" > conftest.sym
7021238104Sdes      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7022238104Sdes      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023238104Sdes/* end confdefs.h.  */
7024238104Sdes
7025238104Sdesint
7026238104Sdesmain ()
7027238104Sdes{
7028238104Sdes
7029238104Sdes  ;
7030238104Sdes  return 0;
7031238104Sdes}
7032238104Sdes_ACEOF
7033238104Sdesif ac_fn_c_try_link "$LINENO"; then :
7034238104Sdes  lt_cv_ld_exported_symbols_list=yes
7035238104Sdeselse
7036238104Sdes  lt_cv_ld_exported_symbols_list=no
7037238104Sdesfi
7038238104Sdesrm -f core conftest.err conftest.$ac_objext \
7039238104Sdes    conftest$ac_exeext conftest.$ac_ext
7040238104Sdes	LDFLAGS="$save_LDFLAGS"
7041238104Sdes
7042238104Sdesfi
7043238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7044238104Sdes$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7045238104Sdes
7046238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7047238104Sdes$as_echo_n "checking for -force_load linker flag... " >&6; }
7048238104Sdesif ${lt_cv_ld_force_load+:} false; then :
7049238104Sdes  $as_echo_n "(cached) " >&6
7050238104Sdeselse
7051238104Sdes  lt_cv_ld_force_load=no
7052238104Sdes      cat > conftest.c << _LT_EOF
7053238104Sdesint forced_loaded() { return 2;}
7054238104Sdes_LT_EOF
7055238104Sdes      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7056238104Sdes      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7057238104Sdes      echo "$AR cru libconftest.a conftest.o" >&5
7058238104Sdes      $AR cru libconftest.a conftest.o 2>&5
7059238104Sdes      echo "$RANLIB libconftest.a" >&5
7060238104Sdes      $RANLIB libconftest.a 2>&5
7061238104Sdes      cat > conftest.c << _LT_EOF
7062238104Sdesint main() { return 0;}
7063238104Sdes_LT_EOF
7064238104Sdes      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7065238104Sdes      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7066238104Sdes      _lt_result=$?
7067238104Sdes      if test -s conftest.err && $GREP force_load conftest.err; then
7068238104Sdes	cat conftest.err >&5
7069238104Sdes      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7070238104Sdes	lt_cv_ld_force_load=yes
7071238104Sdes      else
7072238104Sdes	cat conftest.err >&5
7073238104Sdes      fi
7074238104Sdes        rm -f conftest.err libconftest.a conftest conftest.c
7075238104Sdes        rm -rf conftest.dSYM
7076238104Sdes
7077238104Sdesfi
7078238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7079238104Sdes$as_echo "$lt_cv_ld_force_load" >&6; }
7080238104Sdes    case $host_os in
7081238104Sdes    rhapsody* | darwin1.[012])
7082238104Sdes      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7083238104Sdes    darwin1.*)
7084238104Sdes      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7085238104Sdes    darwin*) # darwin 5.x on
7086238104Sdes      # if running on 10.5 or later, the deployment target defaults
7087238104Sdes      # to the OS version, if on x86, and 10.4, the deployment
7088238104Sdes      # target defaults to 10.4. Don't you love it?
7089238104Sdes      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7090238104Sdes	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7091238104Sdes	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7092238104Sdes	10.[012]*)
7093238104Sdes	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7094238104Sdes	10.*)
7095238104Sdes	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7096238104Sdes      esac
7097238104Sdes    ;;
7098238104Sdes  esac
7099238104Sdes    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7100238104Sdes      _lt_dar_single_mod='$single_module'
7101238104Sdes    fi
7102238104Sdes    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7103238104Sdes      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7104238104Sdes    else
7105238104Sdes      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7106238104Sdes    fi
7107238104Sdes    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7108238104Sdes      _lt_dsymutil='~$DSYMUTIL $lib || :'
7109238104Sdes    else
7110238104Sdes      _lt_dsymutil=
7111238104Sdes    fi
7112238104Sdes    ;;
7113238104Sdes  esac
7114238104Sdes
7115238104Sdesfor ac_header in dlfcn.h
7116238104Sdesdo :
7117238104Sdes  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7118238104Sdes"
7119238104Sdesif test "x$ac_cv_header_dlfcn_h" = xyes; then :
7120238104Sdes  cat >>confdefs.h <<_ACEOF
7121238104Sdes#define HAVE_DLFCN_H 1
7122238104Sdes_ACEOF
7123238104Sdes
7124238104Sdesfi
7125238104Sdes
7126238104Sdesdone
7127238104Sdes
7128238104Sdes
7129238104Sdes
7130238104Sdes
7131238104Sdes
7132238104Sdes# Set options
7133238104Sdes
7134238104Sdes
7135238104Sdes
7136238104Sdes        enable_dlopen=no
7137238104Sdes
7138238104Sdes
7139238104Sdes  enable_win32_dll=no
7140238104Sdes
7141238104Sdes
7142238104Sdes            # Check whether --enable-shared was given.
7143238104Sdesif test "${enable_shared+set}" = set; then :
7144238104Sdes  enableval=$enable_shared; p=${PACKAGE-default}
7145238104Sdes    case $enableval in
7146238104Sdes    yes) enable_shared=yes ;;
7147238104Sdes    no) enable_shared=no ;;
7148238104Sdes    *)
7149238104Sdes      enable_shared=no
7150238104Sdes      # Look at the argument we got.  We use all the common list separators.
7151238104Sdes      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7152238104Sdes      for pkg in $enableval; do
7153238104Sdes	IFS="$lt_save_ifs"
7154238104Sdes	if test "X$pkg" = "X$p"; then
7155238104Sdes	  enable_shared=yes
7156238104Sdes	fi
7157238104Sdes      done
7158238104Sdes      IFS="$lt_save_ifs"
7159238104Sdes      ;;
7160238104Sdes    esac
7161238104Sdeselse
7162238104Sdes  enable_shared=yes
7163238104Sdesfi
7164238104Sdes
7165238104Sdes
7166238104Sdes
7167238104Sdes
7168238104Sdes
7169238104Sdes
7170238104Sdes
7171238104Sdes
7172238104Sdes
7173238104Sdes  # Check whether --enable-static was given.
7174238104Sdesif test "${enable_static+set}" = set; then :
7175238104Sdes  enableval=$enable_static; p=${PACKAGE-default}
7176238104Sdes    case $enableval in
7177238104Sdes    yes) enable_static=yes ;;
7178238104Sdes    no) enable_static=no ;;
7179238104Sdes    *)
7180238104Sdes     enable_static=no
7181238104Sdes      # Look at the argument we got.  We use all the common list separators.
7182238104Sdes      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183238104Sdes      for pkg in $enableval; do
7184238104Sdes	IFS="$lt_save_ifs"
7185238104Sdes	if test "X$pkg" = "X$p"; then
7186238104Sdes	  enable_static=yes
7187238104Sdes	fi
7188238104Sdes      done
7189238104Sdes      IFS="$lt_save_ifs"
7190238104Sdes      ;;
7191238104Sdes    esac
7192238104Sdeselse
7193238104Sdes  enable_static=yes
7194238104Sdesfi
7195238104Sdes
7196238104Sdes
7197238104Sdes
7198238104Sdes
7199238104Sdes
7200238104Sdes
7201238104Sdes
7202238104Sdes
7203238104Sdes
7204238104Sdes
7205238104Sdes# Check whether --with-pic was given.
7206238104Sdesif test "${with_pic+set}" = set; then :
7207238104Sdes  withval=$with_pic; lt_p=${PACKAGE-default}
7208238104Sdes    case $withval in
7209238104Sdes    yes|no) pic_mode=$withval ;;
7210238104Sdes    *)
7211238104Sdes      pic_mode=default
7212238104Sdes      # Look at the argument we got.  We use all the common list separators.
7213238104Sdes      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7214238104Sdes      for lt_pkg in $withval; do
7215238104Sdes	IFS="$lt_save_ifs"
7216238104Sdes	if test "X$lt_pkg" = "X$lt_p"; then
7217238104Sdes	  pic_mode=yes
7218238104Sdes	fi
7219238104Sdes      done
7220238104Sdes      IFS="$lt_save_ifs"
7221238104Sdes      ;;
7222238104Sdes    esac
7223238104Sdeselse
7224238104Sdes  pic_mode=default
7225238104Sdesfi
7226238104Sdes
7227238104Sdes
7228238104Sdestest -z "$pic_mode" && pic_mode=default
7229238104Sdes
7230238104Sdes
7231238104Sdes
7232238104Sdes
7233238104Sdes
7234238104Sdes
7235238104Sdes
7236238104Sdes  # Check whether --enable-fast-install was given.
7237238104Sdesif test "${enable_fast_install+set}" = set; then :
7238238104Sdes  enableval=$enable_fast_install; p=${PACKAGE-default}
7239238104Sdes    case $enableval in
7240238104Sdes    yes) enable_fast_install=yes ;;
7241238104Sdes    no) enable_fast_install=no ;;
7242238104Sdes    *)
7243238104Sdes      enable_fast_install=no
7244238104Sdes      # Look at the argument we got.  We use all the common list separators.
7245238104Sdes      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7246238104Sdes      for pkg in $enableval; do
7247238104Sdes	IFS="$lt_save_ifs"
7248238104Sdes	if test "X$pkg" = "X$p"; then
7249238104Sdes	  enable_fast_install=yes
7250238104Sdes	fi
7251238104Sdes      done
7252238104Sdes      IFS="$lt_save_ifs"
7253238104Sdes      ;;
7254238104Sdes    esac
7255238104Sdeselse
7256238104Sdes  enable_fast_install=yes
7257238104Sdesfi
7258238104Sdes
7259238104Sdes
7260238104Sdes
7261238104Sdes
7262238104Sdes
7263238104Sdes
7264238104Sdes
7265238104Sdes
7266238104Sdes
7267238104Sdes
7268238104Sdes
7269238104Sdes# This can be used to rebuild libtool when needed
7270238104SdesLIBTOOL_DEPS="$ltmain"
7271238104Sdes
7272238104Sdes# Always use our own libtool.
7273238104SdesLIBTOOL='$(SHELL) $(top_builddir)/libtool'
7274238104Sdes
7275238104Sdes
7276238104Sdes
7277238104Sdes
7278238104Sdes
7279238104Sdes
7280238104Sdes
7281238104Sdes
7282238104Sdes
7283238104Sdes
7284238104Sdes
7285238104Sdes
7286238104Sdes
7287238104Sdes
7288238104Sdes
7289238104Sdes
7290238104Sdes
7291238104Sdes
7292238104Sdes
7293238104Sdes
7294238104Sdes
7295238104Sdes
7296238104Sdes
7297238104Sdes
7298238104Sdes
7299238104Sdes
7300238104Sdes
7301238104Sdes
7302238104Sdes
7303238104Sdes
7304238104Sdestest -z "$LN_S" && LN_S="ln -s"
7305238104Sdes
7306238104Sdes
7307238104Sdes
7308238104Sdes
7309238104Sdes
7310238104Sdes
7311238104Sdes
7312238104Sdes
7313238104Sdes
7314238104Sdes
7315238104Sdes
7316238104Sdes
7317238104Sdes
7318238104Sdes
7319238104Sdesif test -n "${ZSH_VERSION+set}" ; then
7320238104Sdes   setopt NO_GLOB_SUBST
7321238104Sdesfi
7322238104Sdes
7323238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7324238104Sdes$as_echo_n "checking for objdir... " >&6; }
7325238104Sdesif ${lt_cv_objdir+:} false; then :
7326238104Sdes  $as_echo_n "(cached) " >&6
7327238104Sdeselse
7328238104Sdes  rm -f .libs 2>/dev/null
7329238104Sdesmkdir .libs 2>/dev/null
7330238104Sdesif test -d .libs; then
7331238104Sdes  lt_cv_objdir=.libs
7332238104Sdeselse
7333238104Sdes  # MS-DOS does not allow filenames that begin with a dot.
7334238104Sdes  lt_cv_objdir=_libs
7335238104Sdesfi
7336238104Sdesrmdir .libs 2>/dev/null
7337238104Sdesfi
7338238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7339238104Sdes$as_echo "$lt_cv_objdir" >&6; }
7340238104Sdesobjdir=$lt_cv_objdir
7341238104Sdes
7342238104Sdes
7343238104Sdes
7344238104Sdes
7345238104Sdes
7346238104Sdescat >>confdefs.h <<_ACEOF
7347238104Sdes#define LT_OBJDIR "$lt_cv_objdir/"
7348238104Sdes_ACEOF
7349238104Sdes
7350238104Sdes
7351238104Sdes
7352238104Sdes
7353238104Sdescase $host_os in
7354238104Sdesaix3*)
7355238104Sdes  # AIX sometimes has problems with the GCC collect2 program.  For some
7356238104Sdes  # reason, if we set the COLLECT_NAMES environment variable, the problems
7357238104Sdes  # vanish in a puff of smoke.
7358238104Sdes  if test "X${COLLECT_NAMES+set}" != Xset; then
7359238104Sdes    COLLECT_NAMES=
7360238104Sdes    export COLLECT_NAMES
7361238104Sdes  fi
7362238104Sdes  ;;
7363238104Sdesesac
7364238104Sdes
7365238104Sdes# Global variables:
7366238104Sdesofile=libtool
7367238104Sdescan_build_shared=yes
7368238104Sdes
7369238104Sdes# All known linkers require a `.a' archive for static linking (except MSVC,
7370238104Sdes# which needs '.lib').
7371238104Sdeslibext=a
7372238104Sdes
7373238104Sdeswith_gnu_ld="$lt_cv_prog_gnu_ld"
7374238104Sdes
7375238104Sdesold_CC="$CC"
7376238104Sdesold_CFLAGS="$CFLAGS"
7377238104Sdes
7378238104Sdes# Set sane defaults for various variables
7379238104Sdestest -z "$CC" && CC=cc
7380238104Sdestest -z "$LTCC" && LTCC=$CC
7381238104Sdestest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7382238104Sdestest -z "$LD" && LD=ld
7383238104Sdestest -z "$ac_objext" && ac_objext=o
7384238104Sdes
7385238104Sdesfor cc_temp in $compiler""; do
7386238104Sdes  case $cc_temp in
7387238104Sdes    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7388238104Sdes    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7389238104Sdes    \-*) ;;
7390238104Sdes    *) break;;
7391238104Sdes  esac
7392238104Sdesdone
7393238104Sdescc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7394238104Sdes
7395238104Sdes
7396238104Sdes# Only perform the check for file, if the check method requires it
7397238104Sdestest -z "$MAGIC_CMD" && MAGIC_CMD=file
7398238104Sdescase $deplibs_check_method in
7399238104Sdesfile_magic*)
7400238104Sdes  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7401238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7402238104Sdes$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7403238104Sdesif ${lt_cv_path_MAGIC_CMD+:} false; then :
7404238104Sdes  $as_echo_n "(cached) " >&6
7405238104Sdeselse
7406238104Sdes  case $MAGIC_CMD in
7407238104Sdes[\\/*] |  ?:[\\/]*)
7408238104Sdes  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7409238104Sdes  ;;
7410238104Sdes*)
7411238104Sdes  lt_save_MAGIC_CMD="$MAGIC_CMD"
7412238104Sdes  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7413238104Sdes  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7414238104Sdes  for ac_dir in $ac_dummy; do
7415238104Sdes    IFS="$lt_save_ifs"
7416238104Sdes    test -z "$ac_dir" && ac_dir=.
7417238104Sdes    if test -f $ac_dir/${ac_tool_prefix}file; then
7418238104Sdes      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7419238104Sdes      if test -n "$file_magic_test_file"; then
7420238104Sdes	case $deplibs_check_method in
7421238104Sdes	"file_magic "*)
7422238104Sdes	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7423238104Sdes	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424238104Sdes	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7425238104Sdes	    $EGREP "$file_magic_regex" > /dev/null; then
7426238104Sdes	    :
7427238104Sdes	  else
7428238104Sdes	    cat <<_LT_EOF 1>&2
7429238104Sdes
7430238104Sdes*** Warning: the command libtool uses to detect shared libraries,
7431238104Sdes*** $file_magic_cmd, produces output that libtool cannot recognize.
7432238104Sdes*** The result is that libtool may fail to recognize shared libraries
7433238104Sdes*** as such.  This will affect the creation of libtool libraries that
7434238104Sdes*** depend on shared libraries, but programs linked with such libtool
7435238104Sdes*** libraries will work regardless of this problem.  Nevertheless, you
7436238104Sdes*** may want to report the problem to your system manager and/or to
7437238104Sdes*** bug-libtool@gnu.org
7438238104Sdes
7439238104Sdes_LT_EOF
7440238104Sdes	  fi ;;
7441238104Sdes	esac
7442238104Sdes      fi
7443238104Sdes      break
7444238104Sdes    fi
7445238104Sdes  done
7446238104Sdes  IFS="$lt_save_ifs"
7447238104Sdes  MAGIC_CMD="$lt_save_MAGIC_CMD"
7448238104Sdes  ;;
7449238104Sdesesac
7450238104Sdesfi
7451238104Sdes
7452238104SdesMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453238104Sdesif test -n "$MAGIC_CMD"; then
7454238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7455238104Sdes$as_echo "$MAGIC_CMD" >&6; }
7456238104Sdeselse
7457238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458238104Sdes$as_echo "no" >&6; }
7459238104Sdesfi
7460238104Sdes
7461238104Sdes
7462238104Sdes
7463238104Sdes
7464238104Sdes
7465238104Sdesif test -z "$lt_cv_path_MAGIC_CMD"; then
7466238104Sdes  if test -n "$ac_tool_prefix"; then
7467238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7468238104Sdes$as_echo_n "checking for file... " >&6; }
7469238104Sdesif ${lt_cv_path_MAGIC_CMD+:} false; then :
7470238104Sdes  $as_echo_n "(cached) " >&6
7471238104Sdeselse
7472238104Sdes  case $MAGIC_CMD in
7473238104Sdes[\\/*] |  ?:[\\/]*)
7474238104Sdes  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7475238104Sdes  ;;
7476238104Sdes*)
7477238104Sdes  lt_save_MAGIC_CMD="$MAGIC_CMD"
7478238104Sdes  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7479238104Sdes  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7480238104Sdes  for ac_dir in $ac_dummy; do
7481238104Sdes    IFS="$lt_save_ifs"
7482238104Sdes    test -z "$ac_dir" && ac_dir=.
7483238104Sdes    if test -f $ac_dir/file; then
7484238104Sdes      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7485238104Sdes      if test -n "$file_magic_test_file"; then
7486238104Sdes	case $deplibs_check_method in
7487238104Sdes	"file_magic "*)
7488238104Sdes	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7489238104Sdes	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7490238104Sdes	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7491238104Sdes	    $EGREP "$file_magic_regex" > /dev/null; then
7492238104Sdes	    :
7493238104Sdes	  else
7494238104Sdes	    cat <<_LT_EOF 1>&2
7495238104Sdes
7496238104Sdes*** Warning: the command libtool uses to detect shared libraries,
7497238104Sdes*** $file_magic_cmd, produces output that libtool cannot recognize.
7498238104Sdes*** The result is that libtool may fail to recognize shared libraries
7499238104Sdes*** as such.  This will affect the creation of libtool libraries that
7500238104Sdes*** depend on shared libraries, but programs linked with such libtool
7501238104Sdes*** libraries will work regardless of this problem.  Nevertheless, you
7502238104Sdes*** may want to report the problem to your system manager and/or to
7503238104Sdes*** bug-libtool@gnu.org
7504238104Sdes
7505238104Sdes_LT_EOF
7506238104Sdes	  fi ;;
7507238104Sdes	esac
7508238104Sdes      fi
7509238104Sdes      break
7510238104Sdes    fi
7511238104Sdes  done
7512238104Sdes  IFS="$lt_save_ifs"
7513238104Sdes  MAGIC_CMD="$lt_save_MAGIC_CMD"
7514238104Sdes  ;;
7515238104Sdesesac
7516238104Sdesfi
7517238104Sdes
7518238104SdesMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519238104Sdesif test -n "$MAGIC_CMD"; then
7520238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7521238104Sdes$as_echo "$MAGIC_CMD" >&6; }
7522238104Sdeselse
7523238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524238104Sdes$as_echo "no" >&6; }
7525238104Sdesfi
7526238104Sdes
7527238104Sdes
7528238104Sdes  else
7529238104Sdes    MAGIC_CMD=:
7530238104Sdes  fi
7531238104Sdesfi
7532238104Sdes
7533238104Sdes  fi
7534238104Sdes  ;;
7535238104Sdesesac
7536238104Sdes
7537238104Sdes# Use C for the default configuration in the libtool script
7538238104Sdes
7539238104Sdeslt_save_CC="$CC"
7540238104Sdesac_ext=c
7541238104Sdesac_cpp='$CPP $CPPFLAGS'
7542238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
7545238104Sdes
7546238104Sdes
7547238104Sdes# Source file extension for C test sources.
7548238104Sdesac_ext=c
7549238104Sdes
7550238104Sdes# Object file extension for compiled C test sources.
7551238104Sdesobjext=o
7552238104Sdesobjext=$objext
7553238104Sdes
7554238104Sdes# Code to be used in simple compile tests
7555238104Sdeslt_simple_compile_test_code="int some_variable = 0;"
7556238104Sdes
7557238104Sdes# Code to be used in simple link tests
7558238104Sdeslt_simple_link_test_code='int main(){return(0);}'
7559238104Sdes
7560238104Sdes
7561238104Sdes
7562238104Sdes
7563238104Sdes
7564238104Sdes
7565238104Sdes
7566238104Sdes# If no C compiler was specified, use CC.
7567238104SdesLTCC=${LTCC-"$CC"}
7568238104Sdes
7569238104Sdes# If no C compiler flags were specified, use CFLAGS.
7570238104SdesLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7571238104Sdes
7572238104Sdes# Allow CC to be a program name with arguments.
7573238104Sdescompiler=$CC
7574238104Sdes
7575238104Sdes# Save the default compiler, since it gets overwritten when the other
7576238104Sdes# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7577238104Sdescompiler_DEFAULT=$CC
7578238104Sdes
7579238104Sdes# save warnings/boilerplate of simple test code
7580238104Sdesac_outfile=conftest.$ac_objext
7581238104Sdesecho "$lt_simple_compile_test_code" >conftest.$ac_ext
7582238104Sdeseval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7583238104Sdes_lt_compiler_boilerplate=`cat conftest.err`
7584238104Sdes$RM conftest*
7585238104Sdes
7586238104Sdesac_outfile=conftest.$ac_objext
7587238104Sdesecho "$lt_simple_link_test_code" >conftest.$ac_ext
7588238104Sdeseval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7589238104Sdes_lt_linker_boilerplate=`cat conftest.err`
7590238104Sdes$RM -r conftest*
7591238104Sdes
7592238104Sdes
7593238104Sdesif test -n "$compiler"; then
7594238104Sdes
7595238104Sdeslt_prog_compiler_no_builtin_flag=
7596238104Sdes
7597238104Sdesif test "$GCC" = yes; then
7598238104Sdes  case $cc_basename in
7599238104Sdes  nvcc*)
7600238104Sdes    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7601238104Sdes  *)
7602238104Sdes    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7603238104Sdes  esac
7604238104Sdes
7605238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7606238104Sdes$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7607238104Sdesif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7608238104Sdes  $as_echo_n "(cached) " >&6
7609238104Sdeselse
7610238104Sdes  lt_cv_prog_compiler_rtti_exceptions=no
7611238104Sdes   ac_outfile=conftest.$ac_objext
7612238104Sdes   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7613238104Sdes   lt_compiler_flag="-fno-rtti -fno-exceptions"
7614238104Sdes   # Insert the option either (1) after the last *FLAGS variable, or
7615238104Sdes   # (2) before a word containing "conftest.", or (3) at the end.
7616238104Sdes   # Note that $ac_compile itself does not contain backslashes and begins
7617238104Sdes   # with a dollar sign (not a hyphen), so the echo should work correctly.
7618238104Sdes   # The option is referenced via a variable to avoid confusing sed.
7619238104Sdes   lt_compile=`echo "$ac_compile" | $SED \
7620238104Sdes   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621238104Sdes   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622238104Sdes   -e 's:$: $lt_compiler_flag:'`
7623238104Sdes   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7624238104Sdes   (eval "$lt_compile" 2>conftest.err)
7625238104Sdes   ac_status=$?
7626238104Sdes   cat conftest.err >&5
7627238104Sdes   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628238104Sdes   if (exit $ac_status) && test -s "$ac_outfile"; then
7629238104Sdes     # The compiler can only warn and ignore the option if not recognized
7630238104Sdes     # So say no if there are warnings other than the usual output.
7631238104Sdes     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7632238104Sdes     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633238104Sdes     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634238104Sdes       lt_cv_prog_compiler_rtti_exceptions=yes
7635238104Sdes     fi
7636238104Sdes   fi
7637238104Sdes   $RM conftest*
7638238104Sdes
7639238104Sdesfi
7640238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7641238104Sdes$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7642238104Sdes
7643238104Sdesif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7644238104Sdes    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7645238104Sdeselse
7646238104Sdes    :
7647238104Sdesfi
7648238104Sdes
7649238104Sdesfi
7650238104Sdes
7651238104Sdes
7652238104Sdes
7653238104Sdes
7654238104Sdes
7655238104Sdes
7656238104Sdes  lt_prog_compiler_wl=
7657238104Sdeslt_prog_compiler_pic=
7658238104Sdeslt_prog_compiler_static=
7659238104Sdes
7660238104Sdes
7661238104Sdes  if test "$GCC" = yes; then
7662238104Sdes    lt_prog_compiler_wl='-Wl,'
7663238104Sdes    lt_prog_compiler_static='-static'
7664238104Sdes
7665238104Sdes    case $host_os in
7666238104Sdes      aix*)
7667238104Sdes      # All AIX code is PIC.
7668238104Sdes      if test "$host_cpu" = ia64; then
7669238104Sdes	# AIX 5 now supports IA64 processor
7670238104Sdes	lt_prog_compiler_static='-Bstatic'
7671238104Sdes      fi
7672238104Sdes      ;;
7673238104Sdes
7674238104Sdes    amigaos*)
7675238104Sdes      case $host_cpu in
7676238104Sdes      powerpc)
7677238104Sdes            # see comment about AmigaOS4 .so support
7678238104Sdes            lt_prog_compiler_pic='-fPIC'
7679238104Sdes        ;;
7680238104Sdes      m68k)
7681238104Sdes            # FIXME: we need at least 68020 code to build shared libraries, but
7682238104Sdes            # adding the `-m68020' flag to GCC prevents building anything better,
7683238104Sdes            # like `-m68040'.
7684238104Sdes            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7685238104Sdes        ;;
7686238104Sdes      esac
7687238104Sdes      ;;
7688238104Sdes
7689238104Sdes    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7690238104Sdes      # PIC is the default for these OSes.
7691238104Sdes      ;;
7692238104Sdes
7693238104Sdes    mingw* | cygwin* | pw32* | os2* | cegcc*)
7694238104Sdes      # This hack is so that the source file can tell whether it is being
7695238104Sdes      # built for inclusion in a dll (and should export symbols for example).
7696238104Sdes      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7697238104Sdes      # (--disable-auto-import) libraries
7698238104Sdes      lt_prog_compiler_pic='-DDLL_EXPORT'
7699238104Sdes      ;;
7700238104Sdes
7701238104Sdes    darwin* | rhapsody*)
7702238104Sdes      # PIC is the default on this platform
7703238104Sdes      # Common symbols not allowed in MH_DYLIB files
7704238104Sdes      lt_prog_compiler_pic='-fno-common'
7705238104Sdes      ;;
7706238104Sdes
7707238104Sdes    haiku*)
7708238104Sdes      # PIC is the default for Haiku.
7709238104Sdes      # The "-static" flag exists, but is broken.
7710238104Sdes      lt_prog_compiler_static=
7711238104Sdes      ;;
7712238104Sdes
7713238104Sdes    hpux*)
7714238104Sdes      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7715238104Sdes      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7716238104Sdes      # sets the default TLS model and affects inlining.
7717238104Sdes      case $host_cpu in
7718238104Sdes      hppa*64*)
7719238104Sdes	# +Z the default
7720238104Sdes	;;
7721238104Sdes      *)
7722238104Sdes	lt_prog_compiler_pic='-fPIC'
7723238104Sdes	;;
7724238104Sdes      esac
7725238104Sdes      ;;
7726238104Sdes
7727238104Sdes    interix[3-9]*)
7728238104Sdes      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7729238104Sdes      # Instead, we relocate shared libraries at runtime.
7730238104Sdes      ;;
7731238104Sdes
7732238104Sdes    msdosdjgpp*)
7733238104Sdes      # Just because we use GCC doesn't mean we suddenly get shared libraries
7734238104Sdes      # on systems that don't support them.
7735238104Sdes      lt_prog_compiler_can_build_shared=no
7736238104Sdes      enable_shared=no
7737238104Sdes      ;;
7738238104Sdes
7739238104Sdes    *nto* | *qnx*)
7740238104Sdes      # QNX uses GNU C++, but need to define -shared option too, otherwise
7741238104Sdes      # it will coredump.
7742238104Sdes      lt_prog_compiler_pic='-fPIC -shared'
7743238104Sdes      ;;
7744238104Sdes
7745238104Sdes    sysv4*MP*)
7746238104Sdes      if test -d /usr/nec; then
7747238104Sdes	lt_prog_compiler_pic=-Kconform_pic
7748238104Sdes      fi
7749238104Sdes      ;;
7750238104Sdes
7751238104Sdes    *)
7752238104Sdes      lt_prog_compiler_pic='-fPIC'
7753238104Sdes      ;;
7754238104Sdes    esac
7755238104Sdes
7756238104Sdes    case $cc_basename in
7757238104Sdes    nvcc*) # Cuda Compiler Driver 2.2
7758238104Sdes      lt_prog_compiler_wl='-Xlinker '
7759238104Sdes      if test -n "$lt_prog_compiler_pic"; then
7760238104Sdes        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7761238104Sdes      fi
7762238104Sdes      ;;
7763238104Sdes    esac
7764238104Sdes  else
7765238104Sdes    # PORTME Check for flag to pass linker flags through the system compiler.
7766238104Sdes    case $host_os in
7767238104Sdes    aix*)
7768238104Sdes      lt_prog_compiler_wl='-Wl,'
7769238104Sdes      if test "$host_cpu" = ia64; then
7770238104Sdes	# AIX 5 now supports IA64 processor
7771238104Sdes	lt_prog_compiler_static='-Bstatic'
7772238104Sdes      else
7773238104Sdes	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7774238104Sdes      fi
7775238104Sdes      ;;
7776238104Sdes
7777238104Sdes    mingw* | cygwin* | pw32* | os2* | cegcc*)
7778238104Sdes      # This hack is so that the source file can tell whether it is being
7779238104Sdes      # built for inclusion in a dll (and should export symbols for example).
7780238104Sdes      lt_prog_compiler_pic='-DDLL_EXPORT'
7781238104Sdes      ;;
7782238104Sdes
7783238104Sdes    hpux9* | hpux10* | hpux11*)
7784238104Sdes      lt_prog_compiler_wl='-Wl,'
7785238104Sdes      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7786238104Sdes      # not for PA HP-UX.
7787238104Sdes      case $host_cpu in
7788238104Sdes      hppa*64*|ia64*)
7789238104Sdes	# +Z the default
7790238104Sdes	;;
7791238104Sdes      *)
7792238104Sdes	lt_prog_compiler_pic='+Z'
7793238104Sdes	;;
7794238104Sdes      esac
7795238104Sdes      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7796238104Sdes      lt_prog_compiler_static='${wl}-a ${wl}archive'
7797238104Sdes      ;;
7798238104Sdes
7799238104Sdes    irix5* | irix6* | nonstopux*)
7800238104Sdes      lt_prog_compiler_wl='-Wl,'
7801238104Sdes      # PIC (with -KPIC) is the default.
7802238104Sdes      lt_prog_compiler_static='-non_shared'
7803238104Sdes      ;;
7804238104Sdes
7805238104Sdes    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7806238104Sdes      case $cc_basename in
7807238104Sdes      # old Intel for x86_64 which still supported -KPIC.
7808238104Sdes      ecc*)
7809238104Sdes	lt_prog_compiler_wl='-Wl,'
7810238104Sdes	lt_prog_compiler_pic='-KPIC'
7811238104Sdes	lt_prog_compiler_static='-static'
7812238104Sdes        ;;
7813238104Sdes      # icc used to be incompatible with GCC.
7814238104Sdes      # ICC 10 doesn't accept -KPIC any more.
7815238104Sdes      icc* | ifort*)
7816238104Sdes	lt_prog_compiler_wl='-Wl,'
7817238104Sdes	lt_prog_compiler_pic='-fPIC'
7818238104Sdes	lt_prog_compiler_static='-static'
7819238104Sdes        ;;
7820238104Sdes      # Lahey Fortran 8.1.
7821238104Sdes      lf95*)
7822238104Sdes	lt_prog_compiler_wl='-Wl,'
7823238104Sdes	lt_prog_compiler_pic='--shared'
7824238104Sdes	lt_prog_compiler_static='--static'
7825238104Sdes	;;
7826238104Sdes      nagfor*)
7827238104Sdes	# NAG Fortran compiler
7828238104Sdes	lt_prog_compiler_wl='-Wl,-Wl,,'
7829238104Sdes	lt_prog_compiler_pic='-PIC'
7830238104Sdes	lt_prog_compiler_static='-Bstatic'
7831238104Sdes	;;
7832238104Sdes      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7833238104Sdes        # Portland Group compilers (*not* the Pentium gcc compiler,
7834238104Sdes	# which looks to be a dead project)
7835238104Sdes	lt_prog_compiler_wl='-Wl,'
7836238104Sdes	lt_prog_compiler_pic='-fpic'
7837238104Sdes	lt_prog_compiler_static='-Bstatic'
7838238104Sdes        ;;
7839238104Sdes      ccc*)
7840238104Sdes        lt_prog_compiler_wl='-Wl,'
7841238104Sdes        # All Alpha code is PIC.
7842238104Sdes        lt_prog_compiler_static='-non_shared'
7843238104Sdes        ;;
7844238104Sdes      xl* | bgxl* | bgf* | mpixl*)
7845238104Sdes	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7846238104Sdes	lt_prog_compiler_wl='-Wl,'
7847238104Sdes	lt_prog_compiler_pic='-qpic'
7848238104Sdes	lt_prog_compiler_static='-qstaticlink'
7849238104Sdes	;;
7850238104Sdes      *)
7851238104Sdes	case `$CC -V 2>&1 | sed 5q` in
7852238104Sdes	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7853238104Sdes	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7854238104Sdes	  lt_prog_compiler_pic='-KPIC'
7855238104Sdes	  lt_prog_compiler_static='-Bstatic'
7856238104Sdes	  lt_prog_compiler_wl=''
7857238104Sdes	  ;;
7858238104Sdes	*Sun\ F* | *Sun*Fortran*)
7859238104Sdes	  lt_prog_compiler_pic='-KPIC'
7860238104Sdes	  lt_prog_compiler_static='-Bstatic'
7861238104Sdes	  lt_prog_compiler_wl='-Qoption ld '
7862238104Sdes	  ;;
7863238104Sdes	*Sun\ C*)
7864238104Sdes	  # Sun C 5.9
7865238104Sdes	  lt_prog_compiler_pic='-KPIC'
7866238104Sdes	  lt_prog_compiler_static='-Bstatic'
7867238104Sdes	  lt_prog_compiler_wl='-Wl,'
7868238104Sdes	  ;;
7869238104Sdes        *Intel*\ [CF]*Compiler*)
7870238104Sdes	  lt_prog_compiler_wl='-Wl,'
7871238104Sdes	  lt_prog_compiler_pic='-fPIC'
7872238104Sdes	  lt_prog_compiler_static='-static'
7873238104Sdes	  ;;
7874238104Sdes	*Portland\ Group*)
7875238104Sdes	  lt_prog_compiler_wl='-Wl,'
7876238104Sdes	  lt_prog_compiler_pic='-fpic'
7877238104Sdes	  lt_prog_compiler_static='-Bstatic'
7878238104Sdes	  ;;
7879238104Sdes	esac
7880238104Sdes	;;
7881238104Sdes      esac
7882238104Sdes      ;;
7883238104Sdes
7884238104Sdes    newsos6)
7885238104Sdes      lt_prog_compiler_pic='-KPIC'
7886238104Sdes      lt_prog_compiler_static='-Bstatic'
7887238104Sdes      ;;
7888238104Sdes
7889238104Sdes    *nto* | *qnx*)
7890238104Sdes      # QNX uses GNU C++, but need to define -shared option too, otherwise
7891238104Sdes      # it will coredump.
7892238104Sdes      lt_prog_compiler_pic='-fPIC -shared'
7893238104Sdes      ;;
7894238104Sdes
7895238104Sdes    osf3* | osf4* | osf5*)
7896238104Sdes      lt_prog_compiler_wl='-Wl,'
7897238104Sdes      # All OSF/1 code is PIC.
7898238104Sdes      lt_prog_compiler_static='-non_shared'
7899238104Sdes      ;;
7900238104Sdes
7901238104Sdes    rdos*)
7902238104Sdes      lt_prog_compiler_static='-non_shared'
7903238104Sdes      ;;
7904238104Sdes
7905238104Sdes    solaris*)
7906238104Sdes      lt_prog_compiler_pic='-KPIC'
7907238104Sdes      lt_prog_compiler_static='-Bstatic'
7908238104Sdes      case $cc_basename in
7909238104Sdes      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7910238104Sdes	lt_prog_compiler_wl='-Qoption ld ';;
7911238104Sdes      *)
7912238104Sdes	lt_prog_compiler_wl='-Wl,';;
7913238104Sdes      esac
7914238104Sdes      ;;
7915238104Sdes
7916238104Sdes    sunos4*)
7917238104Sdes      lt_prog_compiler_wl='-Qoption ld '
7918238104Sdes      lt_prog_compiler_pic='-PIC'
7919238104Sdes      lt_prog_compiler_static='-Bstatic'
7920238104Sdes      ;;
7921238104Sdes
7922238104Sdes    sysv4 | sysv4.2uw2* | sysv4.3*)
7923238104Sdes      lt_prog_compiler_wl='-Wl,'
7924238104Sdes      lt_prog_compiler_pic='-KPIC'
7925238104Sdes      lt_prog_compiler_static='-Bstatic'
7926238104Sdes      ;;
7927238104Sdes
7928238104Sdes    sysv4*MP*)
7929238104Sdes      if test -d /usr/nec ;then
7930238104Sdes	lt_prog_compiler_pic='-Kconform_pic'
7931238104Sdes	lt_prog_compiler_static='-Bstatic'
7932238104Sdes      fi
7933238104Sdes      ;;
7934238104Sdes
7935238104Sdes    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7936238104Sdes      lt_prog_compiler_wl='-Wl,'
7937238104Sdes      lt_prog_compiler_pic='-KPIC'
7938238104Sdes      lt_prog_compiler_static='-Bstatic'
7939238104Sdes      ;;
7940238104Sdes
7941238104Sdes    unicos*)
7942238104Sdes      lt_prog_compiler_wl='-Wl,'
7943238104Sdes      lt_prog_compiler_can_build_shared=no
7944238104Sdes      ;;
7945238104Sdes
7946238104Sdes    uts4*)
7947238104Sdes      lt_prog_compiler_pic='-pic'
7948238104Sdes      lt_prog_compiler_static='-Bstatic'
7949238104Sdes      ;;
7950238104Sdes
7951238104Sdes    *)
7952238104Sdes      lt_prog_compiler_can_build_shared=no
7953238104Sdes      ;;
7954238104Sdes    esac
7955238104Sdes  fi
7956238104Sdes
7957238104Sdescase $host_os in
7958238104Sdes  # For platforms which do not support PIC, -DPIC is meaningless:
7959238104Sdes  *djgpp*)
7960238104Sdes    lt_prog_compiler_pic=
7961238104Sdes    ;;
7962238104Sdes  *)
7963238104Sdes    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7964238104Sdes    ;;
7965238104Sdesesac
7966238104Sdes
7967238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7968238104Sdes$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7969238104Sdesif ${lt_cv_prog_compiler_pic+:} false; then :
7970238104Sdes  $as_echo_n "(cached) " >&6
7971238104Sdeselse
7972238104Sdes  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7973238104Sdesfi
7974238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7975238104Sdes$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7976238104Sdeslt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7977238104Sdes
7978238104Sdes#
7979238104Sdes# Check to make sure the PIC flag actually works.
7980238104Sdes#
7981238104Sdesif test -n "$lt_prog_compiler_pic"; then
7982238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7983238104Sdes$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7984238104Sdesif ${lt_cv_prog_compiler_pic_works+:} false; then :
7985238104Sdes  $as_echo_n "(cached) " >&6
7986238104Sdeselse
7987238104Sdes  lt_cv_prog_compiler_pic_works=no
7988238104Sdes   ac_outfile=conftest.$ac_objext
7989238104Sdes   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7990238104Sdes   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7991238104Sdes   # Insert the option either (1) after the last *FLAGS variable, or
7992238104Sdes   # (2) before a word containing "conftest.", or (3) at the end.
7993238104Sdes   # Note that $ac_compile itself does not contain backslashes and begins
7994238104Sdes   # with a dollar sign (not a hyphen), so the echo should work correctly.
7995238104Sdes   # The option is referenced via a variable to avoid confusing sed.
7996238104Sdes   lt_compile=`echo "$ac_compile" | $SED \
7997238104Sdes   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7998238104Sdes   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7999238104Sdes   -e 's:$: $lt_compiler_flag:'`
8000238104Sdes   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8001238104Sdes   (eval "$lt_compile" 2>conftest.err)
8002238104Sdes   ac_status=$?
8003238104Sdes   cat conftest.err >&5
8004238104Sdes   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005238104Sdes   if (exit $ac_status) && test -s "$ac_outfile"; then
8006238104Sdes     # The compiler can only warn and ignore the option if not recognized
8007238104Sdes     # So say no if there are warnings other than the usual output.
8008238104Sdes     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8009238104Sdes     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8010238104Sdes     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8011238104Sdes       lt_cv_prog_compiler_pic_works=yes
8012238104Sdes     fi
8013238104Sdes   fi
8014238104Sdes   $RM conftest*
8015238104Sdes
8016238104Sdesfi
8017238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8018238104Sdes$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8019238104Sdes
8020238104Sdesif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8021238104Sdes    case $lt_prog_compiler_pic in
8022238104Sdes     "" | " "*) ;;
8023238104Sdes     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8024238104Sdes     esac
8025238104Sdeselse
8026238104Sdes    lt_prog_compiler_pic=
8027238104Sdes     lt_prog_compiler_can_build_shared=no
8028238104Sdesfi
8029238104Sdes
8030238104Sdesfi
8031238104Sdes
8032238104Sdes
8033238104Sdes
8034238104Sdes
8035238104Sdes
8036238104Sdes
8037238104Sdes
8038238104Sdes
8039238104Sdes
8040238104Sdes
8041238104Sdes
8042238104Sdes#
8043238104Sdes# Check to make sure the static flag actually works.
8044238104Sdes#
8045238104Sdeswl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8046238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8047238104Sdes$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8048238104Sdesif ${lt_cv_prog_compiler_static_works+:} false; then :
8049238104Sdes  $as_echo_n "(cached) " >&6
8050238104Sdeselse
8051238104Sdes  lt_cv_prog_compiler_static_works=no
8052238104Sdes   save_LDFLAGS="$LDFLAGS"
8053238104Sdes   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8054238104Sdes   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8055238104Sdes   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8056238104Sdes     # The linker can only warn and ignore the option if not recognized
8057238104Sdes     # So say no if there are warnings
8058238104Sdes     if test -s conftest.err; then
8059238104Sdes       # Append any errors to the config.log.
8060238104Sdes       cat conftest.err 1>&5
8061238104Sdes       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8062238104Sdes       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8063238104Sdes       if diff conftest.exp conftest.er2 >/dev/null; then
8064238104Sdes         lt_cv_prog_compiler_static_works=yes
8065238104Sdes       fi
8066238104Sdes     else
8067238104Sdes       lt_cv_prog_compiler_static_works=yes
8068238104Sdes     fi
8069238104Sdes   fi
8070238104Sdes   $RM -r conftest*
8071238104Sdes   LDFLAGS="$save_LDFLAGS"
8072238104Sdes
8073238104Sdesfi
8074238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8075238104Sdes$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8076238104Sdes
8077238104Sdesif test x"$lt_cv_prog_compiler_static_works" = xyes; then
8078238104Sdes    :
8079238104Sdeselse
8080238104Sdes    lt_prog_compiler_static=
8081238104Sdesfi
8082238104Sdes
8083238104Sdes
8084238104Sdes
8085238104Sdes
8086238104Sdes
8087238104Sdes
8088238104Sdes
8089238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8090238104Sdes$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8091238104Sdesif ${lt_cv_prog_compiler_c_o+:} false; then :
8092238104Sdes  $as_echo_n "(cached) " >&6
8093238104Sdeselse
8094238104Sdes  lt_cv_prog_compiler_c_o=no
8095238104Sdes   $RM -r conftest 2>/dev/null
8096238104Sdes   mkdir conftest
8097238104Sdes   cd conftest
8098238104Sdes   mkdir out
8099238104Sdes   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8100238104Sdes
8101238104Sdes   lt_compiler_flag="-o out/conftest2.$ac_objext"
8102238104Sdes   # Insert the option either (1) after the last *FLAGS variable, or
8103238104Sdes   # (2) before a word containing "conftest.", or (3) at the end.
8104238104Sdes   # Note that $ac_compile itself does not contain backslashes and begins
8105238104Sdes   # with a dollar sign (not a hyphen), so the echo should work correctly.
8106238104Sdes   lt_compile=`echo "$ac_compile" | $SED \
8107238104Sdes   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8108238104Sdes   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8109238104Sdes   -e 's:$: $lt_compiler_flag:'`
8110238104Sdes   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8111238104Sdes   (eval "$lt_compile" 2>out/conftest.err)
8112238104Sdes   ac_status=$?
8113238104Sdes   cat out/conftest.err >&5
8114238104Sdes   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115238104Sdes   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8116238104Sdes   then
8117238104Sdes     # The compiler can only warn and ignore the option if not recognized
8118238104Sdes     # So say no if there are warnings
8119238104Sdes     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8120238104Sdes     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8121238104Sdes     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8122238104Sdes       lt_cv_prog_compiler_c_o=yes
8123238104Sdes     fi
8124238104Sdes   fi
8125238104Sdes   chmod u+w . 2>&5
8126238104Sdes   $RM conftest*
8127238104Sdes   # SGI C++ compiler will create directory out/ii_files/ for
8128238104Sdes   # template instantiation
8129238104Sdes   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8130238104Sdes   $RM out/* && rmdir out
8131238104Sdes   cd ..
8132238104Sdes   $RM -r conftest
8133238104Sdes   $RM conftest*
8134238104Sdes
8135238104Sdesfi
8136238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8137238104Sdes$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8138238104Sdes
8139238104Sdes
8140238104Sdes
8141238104Sdes
8142238104Sdes
8143238104Sdes
8144238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8145238104Sdes$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8146238104Sdesif ${lt_cv_prog_compiler_c_o+:} false; then :
8147238104Sdes  $as_echo_n "(cached) " >&6
8148238104Sdeselse
8149238104Sdes  lt_cv_prog_compiler_c_o=no
8150238104Sdes   $RM -r conftest 2>/dev/null
8151238104Sdes   mkdir conftest
8152238104Sdes   cd conftest
8153238104Sdes   mkdir out
8154238104Sdes   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8155238104Sdes
8156238104Sdes   lt_compiler_flag="-o out/conftest2.$ac_objext"
8157238104Sdes   # Insert the option either (1) after the last *FLAGS variable, or
8158238104Sdes   # (2) before a word containing "conftest.", or (3) at the end.
8159238104Sdes   # Note that $ac_compile itself does not contain backslashes and begins
8160238104Sdes   # with a dollar sign (not a hyphen), so the echo should work correctly.
8161238104Sdes   lt_compile=`echo "$ac_compile" | $SED \
8162238104Sdes   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8163238104Sdes   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8164238104Sdes   -e 's:$: $lt_compiler_flag:'`
8165238104Sdes   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8166238104Sdes   (eval "$lt_compile" 2>out/conftest.err)
8167238104Sdes   ac_status=$?
8168238104Sdes   cat out/conftest.err >&5
8169238104Sdes   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170238104Sdes   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8171238104Sdes   then
8172238104Sdes     # The compiler can only warn and ignore the option if not recognized
8173238104Sdes     # So say no if there are warnings
8174238104Sdes     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8175238104Sdes     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8176238104Sdes     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8177238104Sdes       lt_cv_prog_compiler_c_o=yes
8178238104Sdes     fi
8179238104Sdes   fi
8180238104Sdes   chmod u+w . 2>&5
8181238104Sdes   $RM conftest*
8182238104Sdes   # SGI C++ compiler will create directory out/ii_files/ for
8183238104Sdes   # template instantiation
8184238104Sdes   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8185238104Sdes   $RM out/* && rmdir out
8186238104Sdes   cd ..
8187238104Sdes   $RM -r conftest
8188238104Sdes   $RM conftest*
8189238104Sdes
8190238104Sdesfi
8191238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8192238104Sdes$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8193238104Sdes
8194238104Sdes
8195238104Sdes
8196238104Sdes
8197238104Sdeshard_links="nottested"
8198238104Sdesif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8199238104Sdes  # do not overwrite the value of need_locks provided by the user
8200238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8201238104Sdes$as_echo_n "checking if we can lock with hard links... " >&6; }
8202238104Sdes  hard_links=yes
8203238104Sdes  $RM conftest*
8204238104Sdes  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8205238104Sdes  touch conftest.a
8206238104Sdes  ln conftest.a conftest.b 2>&5 || hard_links=no
8207238104Sdes  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8208238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8209238104Sdes$as_echo "$hard_links" >&6; }
8210238104Sdes  if test "$hard_links" = no; then
8211238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8212238104Sdes$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8213238104Sdes    need_locks=warn
8214238104Sdes  fi
8215238104Sdeselse
8216238104Sdes  need_locks=no
8217238104Sdesfi
8218238104Sdes
8219238104Sdes
8220238104Sdes
8221238104Sdes
8222238104Sdes
8223238104Sdes
8224238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8225238104Sdes$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8226238104Sdes
8227238104Sdes  runpath_var=
8228238104Sdes  allow_undefined_flag=
8229238104Sdes  always_export_symbols=no
8230238104Sdes  archive_cmds=
8231238104Sdes  archive_expsym_cmds=
8232238104Sdes  compiler_needs_object=no
8233238104Sdes  enable_shared_with_static_runtimes=no
8234238104Sdes  export_dynamic_flag_spec=
8235238104Sdes  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8236238104Sdes  hardcode_automatic=no
8237238104Sdes  hardcode_direct=no
8238238104Sdes  hardcode_direct_absolute=no
8239238104Sdes  hardcode_libdir_flag_spec=
8240238104Sdes  hardcode_libdir_separator=
8241238104Sdes  hardcode_minus_L=no
8242238104Sdes  hardcode_shlibpath_var=unsupported
8243238104Sdes  inherit_rpath=no
8244238104Sdes  link_all_deplibs=unknown
8245238104Sdes  module_cmds=
8246238104Sdes  module_expsym_cmds=
8247238104Sdes  old_archive_from_new_cmds=
8248238104Sdes  old_archive_from_expsyms_cmds=
8249238104Sdes  thread_safe_flag_spec=
8250238104Sdes  whole_archive_flag_spec=
8251238104Sdes  # include_expsyms should be a list of space-separated symbols to be *always*
8252238104Sdes  # included in the symbol list
8253238104Sdes  include_expsyms=
8254238104Sdes  # exclude_expsyms can be an extended regexp of symbols to exclude
8255238104Sdes  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8256238104Sdes  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8257238104Sdes  # as well as any symbol that contains `d'.
8258238104Sdes  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8259238104Sdes  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8260238104Sdes  # platforms (ab)use it in PIC code, but their linkers get confused if
8261238104Sdes  # the symbol is explicitly referenced.  Since portable code cannot
8262238104Sdes  # rely on this symbol name, it's probably fine to never include it in
8263238104Sdes  # preloaded symbol tables.
8264238104Sdes  # Exclude shared library initialization/finalization symbols.
8265238104Sdes  extract_expsyms_cmds=
8266238104Sdes
8267238104Sdes  case $host_os in
8268238104Sdes  cygwin* | mingw* | pw32* | cegcc*)
8269238104Sdes    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8270238104Sdes    # When not using gcc, we currently assume that we are using
8271238104Sdes    # Microsoft Visual C++.
8272238104Sdes    if test "$GCC" != yes; then
8273238104Sdes      with_gnu_ld=no
8274238104Sdes    fi
8275238104Sdes    ;;
8276238104Sdes  interix*)
8277238104Sdes    # we just hope/assume this is gcc and not c89 (= MSVC++)
8278238104Sdes    with_gnu_ld=yes
8279238104Sdes    ;;
8280238104Sdes  openbsd*)
8281238104Sdes    with_gnu_ld=no
8282238104Sdes    ;;
8283238104Sdes  linux* | k*bsd*-gnu | gnu*)
8284238104Sdes    link_all_deplibs=no
8285238104Sdes    ;;
8286238104Sdes  esac
8287238104Sdes
8288238104Sdes  ld_shlibs=yes
8289238104Sdes
8290238104Sdes  # On some targets, GNU ld is compatible enough with the native linker
8291238104Sdes  # that we're better off using the native interface for both.
8292238104Sdes  lt_use_gnu_ld_interface=no
8293238104Sdes  if test "$with_gnu_ld" = yes; then
8294238104Sdes    case $host_os in
8295238104Sdes      aix*)
8296238104Sdes	# The AIX port of GNU ld has always aspired to compatibility
8297238104Sdes	# with the native linker.  However, as the warning in the GNU ld
8298238104Sdes	# block says, versions before 2.19.5* couldn't really create working
8299238104Sdes	# shared libraries, regardless of the interface used.
8300238104Sdes	case `$LD -v 2>&1` in
8301238104Sdes	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8302238104Sdes	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8303238104Sdes	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8304238104Sdes	  *)
8305238104Sdes	    lt_use_gnu_ld_interface=yes
8306238104Sdes	    ;;
8307238104Sdes	esac
8308238104Sdes	;;
8309238104Sdes      *)
8310238104Sdes	lt_use_gnu_ld_interface=yes
8311238104Sdes	;;
8312238104Sdes    esac
8313238104Sdes  fi
8314238104Sdes
8315238104Sdes  if test "$lt_use_gnu_ld_interface" = yes; then
8316238104Sdes    # If archive_cmds runs LD, not CC, wlarc should be empty
8317238104Sdes    wlarc='${wl}'
8318238104Sdes
8319238104Sdes    # Set some defaults for GNU ld with shared library support. These
8320238104Sdes    # are reset later if shared libraries are not supported. Putting them
8321238104Sdes    # here allows them to be overridden if necessary.
8322238104Sdes    runpath_var=LD_RUN_PATH
8323238104Sdes    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324238104Sdes    export_dynamic_flag_spec='${wl}--export-dynamic'
8325238104Sdes    # ancient GNU ld didn't support --whole-archive et. al.
8326238104Sdes    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8327238104Sdes      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8328238104Sdes    else
8329238104Sdes      whole_archive_flag_spec=
8330238104Sdes    fi
8331238104Sdes    supports_anon_versioning=no
8332238104Sdes    case `$LD -v 2>&1` in
8333238104Sdes      *GNU\ gold*) supports_anon_versioning=yes ;;
8334238104Sdes      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8335238104Sdes      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8336238104Sdes      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8337238104Sdes      *\ 2.11.*) ;; # other 2.11 versions
8338238104Sdes      *) supports_anon_versioning=yes ;;
8339238104Sdes    esac
8340238104Sdes
8341238104Sdes    # See if GNU ld supports shared libraries.
8342238104Sdes    case $host_os in
8343238104Sdes    aix[3-9]*)
8344238104Sdes      # On AIX/PPC, the GNU linker is very broken
8345238104Sdes      if test "$host_cpu" != ia64; then
8346238104Sdes	ld_shlibs=no
8347238104Sdes	cat <<_LT_EOF 1>&2
8348238104Sdes
8349238104Sdes*** Warning: the GNU linker, at least up to release 2.19, is reported
8350238104Sdes*** to be unable to reliably create shared libraries on AIX.
8351238104Sdes*** Therefore, libtool is disabling shared libraries support.  If you
8352238104Sdes*** really care for shared libraries, you may want to install binutils
8353238104Sdes*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8354238104Sdes*** You will then need to restart the configuration process.
8355238104Sdes
8356238104Sdes_LT_EOF
8357238104Sdes      fi
8358238104Sdes      ;;
8359238104Sdes
8360238104Sdes    amigaos*)
8361238104Sdes      case $host_cpu in
8362238104Sdes      powerpc)
8363238104Sdes            # see comment about AmigaOS4 .so support
8364238104Sdes            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365238104Sdes            archive_expsym_cmds=''
8366238104Sdes        ;;
8367238104Sdes      m68k)
8368238104Sdes            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)'
8369238104Sdes            hardcode_libdir_flag_spec='-L$libdir'
8370238104Sdes            hardcode_minus_L=yes
8371238104Sdes        ;;
8372238104Sdes      esac
8373238104Sdes      ;;
8374238104Sdes
8375238104Sdes    beos*)
8376238104Sdes      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8377238104Sdes	allow_undefined_flag=unsupported
8378238104Sdes	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8379238104Sdes	# support --undefined.  This deserves some investigation.  FIXME
8380238104Sdes	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381238104Sdes      else
8382238104Sdes	ld_shlibs=no
8383238104Sdes      fi
8384238104Sdes      ;;
8385238104Sdes
8386238104Sdes    cygwin* | mingw* | pw32* | cegcc*)
8387238104Sdes      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8388238104Sdes      # as there is no search path for DLLs.
8389238104Sdes      hardcode_libdir_flag_spec='-L$libdir'
8390238104Sdes      export_dynamic_flag_spec='${wl}--export-all-symbols'
8391238104Sdes      allow_undefined_flag=unsupported
8392238104Sdes      always_export_symbols=no
8393238104Sdes      enable_shared_with_static_runtimes=yes
8394238104Sdes      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'
8395238104Sdes      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8396238104Sdes
8397238104Sdes      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8398238104Sdes        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8399238104Sdes	# If the export-symbols file already is a .def file (1st line
8400238104Sdes	# is EXPORTS), use it as is; otherwise, prepend...
8401238104Sdes	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8402238104Sdes	  cp $export_symbols $output_objdir/$soname.def;
8403238104Sdes	else
8404238104Sdes	  echo EXPORTS > $output_objdir/$soname.def;
8405238104Sdes	  cat $export_symbols >> $output_objdir/$soname.def;
8406238104Sdes	fi~
8407238104Sdes	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8408238104Sdes      else
8409238104Sdes	ld_shlibs=no
8410238104Sdes      fi
8411238104Sdes      ;;
8412238104Sdes
8413238104Sdes    haiku*)
8414238104Sdes      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415238104Sdes      link_all_deplibs=yes
8416238104Sdes      ;;
8417238104Sdes
8418238104Sdes    interix[3-9]*)
8419238104Sdes      hardcode_direct=no
8420238104Sdes      hardcode_shlibpath_var=no
8421238104Sdes      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8422238104Sdes      export_dynamic_flag_spec='${wl}-E'
8423238104Sdes      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8424238104Sdes      # Instead, shared libraries are loaded at an image base (0x10000000 by
8425238104Sdes      # default) and relocated if they conflict, which is a slow very memory
8426238104Sdes      # consuming and fragmenting process.  To avoid this, we pick a random,
8427238104Sdes      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8428238104Sdes      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8429238104Sdes      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8430238104Sdes      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'
8431238104Sdes      ;;
8432238104Sdes
8433238104Sdes    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8434238104Sdes      tmp_diet=no
8435238104Sdes      if test "$host_os" = linux-dietlibc; then
8436238104Sdes	case $cc_basename in
8437238104Sdes	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8438238104Sdes	esac
8439238104Sdes      fi
8440238104Sdes      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8441238104Sdes	 && test "$tmp_diet" = no
8442238104Sdes      then
8443238104Sdes	tmp_addflag=' $pic_flag'
8444238104Sdes	tmp_sharedflag='-shared'
8445238104Sdes	case $cc_basename,$host_cpu in
8446238104Sdes        pgcc*)				# Portland Group C compiler
8447238104Sdes	  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'
8448238104Sdes	  tmp_addflag=' $pic_flag'
8449238104Sdes	  ;;
8450238104Sdes	pgf77* | pgf90* | pgf95* | pgfortran*)
8451238104Sdes					# Portland Group f77 and f90 compilers
8452238104Sdes	  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'
8453238104Sdes	  tmp_addflag=' $pic_flag -Mnomain' ;;
8454238104Sdes	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8455238104Sdes	  tmp_addflag=' -i_dynamic' ;;
8456238104Sdes	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8457238104Sdes	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8458238104Sdes	ifc* | ifort*)			# Intel Fortran compiler
8459238104Sdes	  tmp_addflag=' -nofor_main' ;;
8460238104Sdes	lf95*)				# Lahey Fortran 8.1
8461238104Sdes	  whole_archive_flag_spec=
8462238104Sdes	  tmp_sharedflag='--shared' ;;
8463238104Sdes	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8464238104Sdes	  tmp_sharedflag='-qmkshrobj'
8465238104Sdes	  tmp_addflag= ;;
8466238104Sdes	nvcc*)	# Cuda Compiler Driver 2.2
8467238104Sdes	  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'
8468238104Sdes	  compiler_needs_object=yes
8469238104Sdes	  ;;
8470238104Sdes	esac
8471238104Sdes	case `$CC -V 2>&1 | sed 5q` in
8472238104Sdes	*Sun\ C*)			# Sun C 5.9
8473238104Sdes	  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'
8474238104Sdes	  compiler_needs_object=yes
8475238104Sdes	  tmp_sharedflag='-G' ;;
8476238104Sdes	*Sun\ F*)			# Sun Fortran 8.3
8477238104Sdes	  tmp_sharedflag='-G' ;;
8478238104Sdes	esac
8479238104Sdes	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480238104Sdes
8481238104Sdes        if test "x$supports_anon_versioning" = xyes; then
8482238104Sdes          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8483238104Sdes	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8484238104Sdes	    echo "local: *; };" >> $output_objdir/$libname.ver~
8485238104Sdes	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8486238104Sdes        fi
8487238104Sdes
8488238104Sdes	case $cc_basename in
8489238104Sdes	xlf* | bgf* | bgxlf* | mpixlf*)
8490238104Sdes	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8491238104Sdes	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8492238104Sdes	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8493238104Sdes	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8494238104Sdes	  if test "x$supports_anon_versioning" = xyes; then
8495238104Sdes	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8496238104Sdes	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8497238104Sdes	      echo "local: *; };" >> $output_objdir/$libname.ver~
8498238104Sdes	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8499238104Sdes	  fi
8500238104Sdes	  ;;
8501238104Sdes	esac
8502238104Sdes      else
8503238104Sdes        ld_shlibs=no
8504238104Sdes      fi
8505238104Sdes      ;;
8506238104Sdes
8507238104Sdes    netbsd* | netbsdelf*-gnu)
8508238104Sdes      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8509238104Sdes	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8510238104Sdes	wlarc=
8511238104Sdes      else
8512238104Sdes	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513238104Sdes	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8514238104Sdes      fi
8515238104Sdes      ;;
8516238104Sdes
8517238104Sdes    solaris*)
8518238104Sdes      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8519238104Sdes	ld_shlibs=no
8520238104Sdes	cat <<_LT_EOF 1>&2
8521238104Sdes
8522238104Sdes*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8523238104Sdes*** create shared libraries on Solaris systems.  Therefore, libtool
8524238104Sdes*** is disabling shared libraries support.  We urge you to upgrade GNU
8525238104Sdes*** binutils to release 2.9.1 or newer.  Another option is to modify
8526238104Sdes*** your PATH or compiler configuration so that the native linker is
8527238104Sdes*** used, and then restart.
8528238104Sdes
8529238104Sdes_LT_EOF
8530238104Sdes      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531238104Sdes	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532238104Sdes	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8533238104Sdes      else
8534238104Sdes	ld_shlibs=no
8535238104Sdes      fi
8536238104Sdes      ;;
8537238104Sdes
8538238104Sdes    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8539238104Sdes      case `$LD -v 2>&1` in
8540238104Sdes        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8541238104Sdes	ld_shlibs=no
8542238104Sdes	cat <<_LT_EOF 1>&2
8543238104Sdes
8544238104Sdes*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8545238104Sdes*** reliably create shared libraries on SCO systems.  Therefore, libtool
8546238104Sdes*** is disabling shared libraries support.  We urge you to upgrade GNU
8547238104Sdes*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8548238104Sdes*** your PATH or compiler configuration so that the native linker is
8549238104Sdes*** used, and then restart.
8550238104Sdes
8551238104Sdes_LT_EOF
8552238104Sdes	;;
8553238104Sdes	*)
8554238104Sdes	  # For security reasons, it is highly recommended that you always
8555238104Sdes	  # use absolute paths for naming shared libraries, and exclude the
8556238104Sdes	  # DT_RUNPATH tag from executables and libraries.  But doing so
8557238104Sdes	  # requires that you compile everything twice, which is a pain.
8558238104Sdes	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559238104Sdes	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560238104Sdes	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561238104Sdes	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8562238104Sdes	  else
8563238104Sdes	    ld_shlibs=no
8564238104Sdes	  fi
8565238104Sdes	;;
8566238104Sdes      esac
8567238104Sdes      ;;
8568238104Sdes
8569238104Sdes    sunos4*)
8570238104Sdes      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571238104Sdes      wlarc=
8572238104Sdes      hardcode_direct=yes
8573238104Sdes      hardcode_shlibpath_var=no
8574238104Sdes      ;;
8575238104Sdes
8576238104Sdes    *)
8577238104Sdes      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578238104Sdes	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579238104Sdes	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8580238104Sdes      else
8581238104Sdes	ld_shlibs=no
8582238104Sdes      fi
8583238104Sdes      ;;
8584238104Sdes    esac
8585238104Sdes
8586238104Sdes    if test "$ld_shlibs" = no; then
8587238104Sdes      runpath_var=
8588238104Sdes      hardcode_libdir_flag_spec=
8589238104Sdes      export_dynamic_flag_spec=
8590238104Sdes      whole_archive_flag_spec=
8591238104Sdes    fi
8592238104Sdes  else
8593238104Sdes    # PORTME fill in a description of your system's linker (not GNU ld)
8594238104Sdes    case $host_os in
8595238104Sdes    aix3*)
8596238104Sdes      allow_undefined_flag=unsupported
8597238104Sdes      always_export_symbols=yes
8598238104Sdes      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'
8599238104Sdes      # Note: this linker hardcodes the directories in LIBPATH if there
8600238104Sdes      # are no directories specified by -L.
8601238104Sdes      hardcode_minus_L=yes
8602238104Sdes      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8603238104Sdes	# Neither direct hardcoding nor static linking is supported with a
8604238104Sdes	# broken collect2.
8605238104Sdes	hardcode_direct=unsupported
8606238104Sdes      fi
8607238104Sdes      ;;
8608238104Sdes
8609238104Sdes    aix[4-9]*)
8610238104Sdes      if test "$host_cpu" = ia64; then
8611238104Sdes	# On IA64, the linker does run time linking by default, so we don't
8612238104Sdes	# have to do anything special.
8613238104Sdes	aix_use_runtimelinking=no
8614238104Sdes	exp_sym_flag='-Bexport'
8615238104Sdes	no_entry_flag=""
8616238104Sdes      else
8617238104Sdes	# If we're using GNU nm, then we don't want the "-C" option.
8618238104Sdes	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8619238104Sdes	# Also, AIX nm treats weak defined symbols like other global
8620238104Sdes	# defined symbols, whereas GNU nm marks them as "W".
8621238104Sdes	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8622238104Sdes	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8623238104Sdes	else
8624238104Sdes	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8625238104Sdes	fi
8626238104Sdes	aix_use_runtimelinking=no
8627238104Sdes
8628238104Sdes	# Test if we are trying to use run time linking or normal
8629238104Sdes	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8630238104Sdes	# need to do runtime linking.
8631238104Sdes	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8632238104Sdes	  for ld_flag in $LDFLAGS; do
8633238104Sdes	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8634238104Sdes	    aix_use_runtimelinking=yes
8635238104Sdes	    break
8636238104Sdes	  fi
8637238104Sdes	  done
8638238104Sdes	  ;;
8639238104Sdes	esac
8640238104Sdes
8641238104Sdes	exp_sym_flag='-bexport'
8642238104Sdes	no_entry_flag='-bnoentry'
8643238104Sdes      fi
8644238104Sdes
8645238104Sdes      # When large executables or shared objects are built, AIX ld can
8646238104Sdes      # have problems creating the table of contents.  If linking a library
8647238104Sdes      # or program results in "error TOC overflow" add -mminimal-toc to
8648238104Sdes      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8649238104Sdes      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8650238104Sdes
8651238104Sdes      archive_cmds=''
8652238104Sdes      hardcode_direct=yes
8653238104Sdes      hardcode_direct_absolute=yes
8654238104Sdes      hardcode_libdir_separator=':'
8655238104Sdes      link_all_deplibs=yes
8656238104Sdes      file_list_spec='${wl}-f,'
8657238104Sdes
8658238104Sdes      if test "$GCC" = yes; then
8659238104Sdes	case $host_os in aix4.[012]|aix4.[012].*)
8660238104Sdes	# We only want to do this on AIX 4.2 and lower, the check
8661238104Sdes	# below for broken collect2 doesn't work under 4.3+
8662238104Sdes	  collect2name=`${CC} -print-prog-name=collect2`
8663238104Sdes	  if test -f "$collect2name" &&
8664238104Sdes	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8665238104Sdes	  then
8666238104Sdes	  # We have reworked collect2
8667238104Sdes	  :
8668238104Sdes	  else
8669238104Sdes	  # We have old collect2
8670238104Sdes	  hardcode_direct=unsupported
8671238104Sdes	  # It fails to find uninstalled libraries when the uninstalled
8672238104Sdes	  # path is not listed in the libpath.  Setting hardcode_minus_L
8673238104Sdes	  # to unsupported forces relinking
8674238104Sdes	  hardcode_minus_L=yes
8675238104Sdes	  hardcode_libdir_flag_spec='-L$libdir'
8676238104Sdes	  hardcode_libdir_separator=
8677238104Sdes	  fi
8678238104Sdes	  ;;
8679238104Sdes	esac
8680238104Sdes	shared_flag='-shared'
8681238104Sdes	if test "$aix_use_runtimelinking" = yes; then
8682238104Sdes	  shared_flag="$shared_flag "'${wl}-G'
8683238104Sdes	fi
8684238104Sdes	link_all_deplibs=no
8685238104Sdes      else
8686238104Sdes	# not using gcc
8687238104Sdes	if test "$host_cpu" = ia64; then
8688238104Sdes	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8689238104Sdes	# chokes on -Wl,-G. The following line is correct:
8690238104Sdes	  shared_flag='-G'
8691238104Sdes	else
8692238104Sdes	  if test "$aix_use_runtimelinking" = yes; then
8693238104Sdes	    shared_flag='${wl}-G'
8694238104Sdes	  else
8695238104Sdes	    shared_flag='${wl}-bM:SRE'
8696238104Sdes	  fi
8697238104Sdes	fi
8698238104Sdes      fi
8699238104Sdes
8700238104Sdes      export_dynamic_flag_spec='${wl}-bexpall'
8701238104Sdes      # It seems that -bexpall does not export symbols beginning with
8702238104Sdes      # underscore (_), so it is better to generate a list of symbols to export.
8703238104Sdes      always_export_symbols=yes
8704238104Sdes      if test "$aix_use_runtimelinking" = yes; then
8705238104Sdes	# Warning - without using the other runtime loading flags (-brtl),
8706238104Sdes	# -berok will link without error, but may produce a broken library.
8707238104Sdes	allow_undefined_flag='-berok'
8708238104Sdes        # Determine the default libpath from the value encoded in an
8709238104Sdes        # empty executable.
8710238104Sdes        if test "${lt_cv_aix_libpath+set}" = set; then
8711238104Sdes  aix_libpath=$lt_cv_aix_libpath
8712238104Sdeselse
8713238104Sdes  if ${lt_cv_aix_libpath_+:} false; then :
8714238104Sdes  $as_echo_n "(cached) " >&6
8715238104Sdeselse
8716238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717238104Sdes/* end confdefs.h.  */
8718238104Sdes
8719238104Sdesint
8720238104Sdesmain ()
8721238104Sdes{
8722238104Sdes
8723238104Sdes  ;
8724238104Sdes  return 0;
8725238104Sdes}
8726238104Sdes_ACEOF
8727238104Sdesif ac_fn_c_try_link "$LINENO"; then :
8728238104Sdes
8729238104Sdes  lt_aix_libpath_sed='
8730238104Sdes      /Import File Strings/,/^$/ {
8731238104Sdes	  /^0/ {
8732238104Sdes	      s/^0  *\([^ ]*\) *$/\1/
8733238104Sdes	      p
8734238104Sdes	  }
8735238104Sdes      }'
8736238104Sdes  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8737238104Sdes  # Check for a 64-bit object if we didn't find anything.
8738238104Sdes  if test -z "$lt_cv_aix_libpath_"; then
8739238104Sdes    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8740238104Sdes  fi
8741238104Sdesfi
8742238104Sdesrm -f core conftest.err conftest.$ac_objext \
8743238104Sdes    conftest$ac_exeext conftest.$ac_ext
8744238104Sdes  if test -z "$lt_cv_aix_libpath_"; then
8745238104Sdes    lt_cv_aix_libpath_="/usr/lib:/lib"
8746238104Sdes  fi
8747238104Sdes
8748238104Sdesfi
8749238104Sdes
8750238104Sdes  aix_libpath=$lt_cv_aix_libpath_
8751238104Sdesfi
8752238104Sdes
8753238104Sdes        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8754238104Sdes        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8755238104Sdes      else
8756238104Sdes	if test "$host_cpu" = ia64; then
8757238104Sdes	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8758238104Sdes	  allow_undefined_flag="-z nodefs"
8759238104Sdes	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8760238104Sdes	else
8761238104Sdes	 # Determine the default libpath from the value encoded in an
8762238104Sdes	 # empty executable.
8763238104Sdes	 if test "${lt_cv_aix_libpath+set}" = set; then
8764238104Sdes  aix_libpath=$lt_cv_aix_libpath
8765238104Sdeselse
8766238104Sdes  if ${lt_cv_aix_libpath_+:} false; then :
8767238104Sdes  $as_echo_n "(cached) " >&6
8768238104Sdeselse
8769238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770238104Sdes/* end confdefs.h.  */
8771238104Sdes
8772238104Sdesint
8773238104Sdesmain ()
8774238104Sdes{
8775238104Sdes
8776238104Sdes  ;
8777238104Sdes  return 0;
8778238104Sdes}
8779238104Sdes_ACEOF
8780238104Sdesif ac_fn_c_try_link "$LINENO"; then :
8781238104Sdes
8782238104Sdes  lt_aix_libpath_sed='
8783238104Sdes      /Import File Strings/,/^$/ {
8784238104Sdes	  /^0/ {
8785238104Sdes	      s/^0  *\([^ ]*\) *$/\1/
8786238104Sdes	      p
8787238104Sdes	  }
8788238104Sdes      }'
8789238104Sdes  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8790238104Sdes  # Check for a 64-bit object if we didn't find anything.
8791238104Sdes  if test -z "$lt_cv_aix_libpath_"; then
8792238104Sdes    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793238104Sdes  fi
8794238104Sdesfi
8795238104Sdesrm -f core conftest.err conftest.$ac_objext \
8796238104Sdes    conftest$ac_exeext conftest.$ac_ext
8797238104Sdes  if test -z "$lt_cv_aix_libpath_"; then
8798238104Sdes    lt_cv_aix_libpath_="/usr/lib:/lib"
8799238104Sdes  fi
8800238104Sdes
8801238104Sdesfi
8802238104Sdes
8803238104Sdes  aix_libpath=$lt_cv_aix_libpath_
8804238104Sdesfi
8805238104Sdes
8806238104Sdes	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8807238104Sdes	  # Warning - without using the other run time loading flags,
8808238104Sdes	  # -berok will link without error, but may produce a broken library.
8809238104Sdes	  no_undefined_flag=' ${wl}-bernotok'
8810238104Sdes	  allow_undefined_flag=' ${wl}-berok'
8811238104Sdes	  if test "$with_gnu_ld" = yes; then
8812238104Sdes	    # We only use this code for GNU lds that support --whole-archive.
8813238104Sdes	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8814238104Sdes	  else
8815238104Sdes	    # Exported symbols can be pulled into shared objects from archives
8816238104Sdes	    whole_archive_flag_spec='$convenience'
8817238104Sdes	  fi
8818238104Sdes	  archive_cmds_need_lc=yes
8819238104Sdes	  # This is similar to how AIX traditionally builds its shared libraries.
8820238104Sdes	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8821238104Sdes	fi
8822238104Sdes      fi
8823238104Sdes      ;;
8824238104Sdes
8825238104Sdes    amigaos*)
8826238104Sdes      case $host_cpu in
8827238104Sdes      powerpc)
8828238104Sdes            # see comment about AmigaOS4 .so support
8829238104Sdes            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830238104Sdes            archive_expsym_cmds=''
8831238104Sdes        ;;
8832238104Sdes      m68k)
8833238104Sdes            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)'
8834238104Sdes            hardcode_libdir_flag_spec='-L$libdir'
8835238104Sdes            hardcode_minus_L=yes
8836238104Sdes        ;;
8837238104Sdes      esac
8838238104Sdes      ;;
8839238104Sdes
8840238104Sdes    bsdi[45]*)
8841238104Sdes      export_dynamic_flag_spec=-rdynamic
8842238104Sdes      ;;
8843238104Sdes
8844238104Sdes    cygwin* | mingw* | pw32* | cegcc*)
8845238104Sdes      # When not using gcc, we currently assume that we are using
8846238104Sdes      # Microsoft Visual C++.
8847238104Sdes      # hardcode_libdir_flag_spec is actually meaningless, as there is
8848238104Sdes      # no search path for DLLs.
8849238104Sdes      case $cc_basename in
8850238104Sdes      cl*)
8851238104Sdes	# Native MSVC
8852238104Sdes	hardcode_libdir_flag_spec=' '
8853238104Sdes	allow_undefined_flag=unsupported
8854238104Sdes	always_export_symbols=yes
8855238104Sdes	file_list_spec='@'
8856238104Sdes	# Tell ltmain to make .lib files, not .a files.
8857238104Sdes	libext=lib
8858238104Sdes	# Tell ltmain to make .dll files, not .so files.
8859238104Sdes	shrext_cmds=".dll"
8860238104Sdes	# FIXME: Setting linknames here is a bad hack.
8861238104Sdes	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8862238104Sdes	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8863238104Sdes	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8864238104Sdes	  else
8865238104Sdes	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8866238104Sdes	  fi~
8867238104Sdes	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8868238104Sdes	  linknames='
8869238104Sdes	# The linker will not automatically build a static lib if we build a DLL.
8870238104Sdes	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8871238104Sdes	enable_shared_with_static_runtimes=yes
8872238104Sdes	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8873238104Sdes	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8874238104Sdes	# Don't use ranlib
8875238104Sdes	old_postinstall_cmds='chmod 644 $oldlib'
8876238104Sdes	postlink_cmds='lt_outputfile="@OUTPUT@"~
8877238104Sdes	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8878238104Sdes	  case $lt_outputfile in
8879238104Sdes	    *.exe|*.EXE) ;;
8880238104Sdes	    *)
8881238104Sdes	      lt_outputfile="$lt_outputfile.exe"
8882238104Sdes	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8883238104Sdes	      ;;
8884238104Sdes	  esac~
8885238104Sdes	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8886238104Sdes	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8887238104Sdes	    $RM "$lt_outputfile.manifest";
8888238104Sdes	  fi'
8889238104Sdes	;;
8890238104Sdes      *)
8891238104Sdes	# Assume MSVC wrapper
8892238104Sdes	hardcode_libdir_flag_spec=' '
8893238104Sdes	allow_undefined_flag=unsupported
8894238104Sdes	# Tell ltmain to make .lib files, not .a files.
8895238104Sdes	libext=lib
8896238104Sdes	# Tell ltmain to make .dll files, not .so files.
8897238104Sdes	shrext_cmds=".dll"
8898238104Sdes	# FIXME: Setting linknames here is a bad hack.
8899238104Sdes	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8900238104Sdes	# The linker will automatically build a .lib file if we build a DLL.
8901238104Sdes	old_archive_from_new_cmds='true'
8902238104Sdes	# FIXME: Should let the user specify the lib program.
8903238104Sdes	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8904238104Sdes	enable_shared_with_static_runtimes=yes
8905238104Sdes	;;
8906238104Sdes      esac
8907238104Sdes      ;;
8908238104Sdes
8909238104Sdes    darwin* | rhapsody*)
8910238104Sdes
8911238104Sdes
8912238104Sdes  archive_cmds_need_lc=no
8913238104Sdes  hardcode_direct=no
8914238104Sdes  hardcode_automatic=yes
8915238104Sdes  hardcode_shlibpath_var=unsupported
8916238104Sdes  if test "$lt_cv_ld_force_load" = "yes"; then
8917238104Sdes    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8918238104Sdes
8919238104Sdes  else
8920238104Sdes    whole_archive_flag_spec=''
8921238104Sdes  fi
8922238104Sdes  link_all_deplibs=yes
8923238104Sdes  allow_undefined_flag="$_lt_dar_allow_undefined"
8924238104Sdes  case $cc_basename in
8925238104Sdes     ifort*) _lt_dar_can_shared=yes ;;
8926238104Sdes     *) _lt_dar_can_shared=$GCC ;;
8927238104Sdes  esac
8928238104Sdes  if test "$_lt_dar_can_shared" = "yes"; then
8929238104Sdes    output_verbose_link_cmd=func_echo_all
8930238104Sdes    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8931238104Sdes    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8932238104Sdes    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8933238104Sdes    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8934238104Sdes
8935238104Sdes  else
8936238104Sdes  ld_shlibs=no
8937238104Sdes  fi
8938238104Sdes
8939238104Sdes      ;;
8940238104Sdes
8941238104Sdes    dgux*)
8942238104Sdes      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943238104Sdes      hardcode_libdir_flag_spec='-L$libdir'
8944238104Sdes      hardcode_shlibpath_var=no
8945238104Sdes      ;;
8946238104Sdes
8947238104Sdes    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8948238104Sdes    # support.  Future versions do this automatically, but an explicit c++rt0.o
8949238104Sdes    # does not break anything, and helps significantly (at the cost of a little
8950238104Sdes    # extra space).
8951238104Sdes    freebsd2.2*)
8952238104Sdes      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8953238104Sdes      hardcode_libdir_flag_spec='-R$libdir'
8954238104Sdes      hardcode_direct=yes
8955238104Sdes      hardcode_shlibpath_var=no
8956238104Sdes      ;;
8957238104Sdes
8958238104Sdes    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8959238104Sdes    freebsd2.*)
8960238104Sdes      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8961238104Sdes      hardcode_direct=yes
8962238104Sdes      hardcode_minus_L=yes
8963238104Sdes      hardcode_shlibpath_var=no
8964238104Sdes      ;;
8965238104Sdes
8966238104Sdes    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8967238104Sdes    freebsd* | dragonfly*)
8968238104Sdes      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8969238104Sdes      hardcode_libdir_flag_spec='-R$libdir'
8970238104Sdes      hardcode_direct=yes
8971238104Sdes      hardcode_shlibpath_var=no
8972238104Sdes      ;;
8973238104Sdes
8974238104Sdes    hpux9*)
8975238104Sdes      if test "$GCC" = yes; then
8976238104Sdes	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8977238104Sdes      else
8978238104Sdes	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8979238104Sdes      fi
8980238104Sdes      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8981238104Sdes      hardcode_libdir_separator=:
8982238104Sdes      hardcode_direct=yes
8983238104Sdes
8984238104Sdes      # hardcode_minus_L: Not really in the search PATH,
8985238104Sdes      # but as the default location of the library.
8986238104Sdes      hardcode_minus_L=yes
8987238104Sdes      export_dynamic_flag_spec='${wl}-E'
8988238104Sdes      ;;
8989238104Sdes
8990238104Sdes    hpux10*)
8991238104Sdes      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8992238104Sdes	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8993238104Sdes      else
8994238104Sdes	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8995238104Sdes      fi
8996238104Sdes      if test "$with_gnu_ld" = no; then
8997238104Sdes	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8998238104Sdes	hardcode_libdir_separator=:
8999238104Sdes	hardcode_direct=yes
9000238104Sdes	hardcode_direct_absolute=yes
9001238104Sdes	export_dynamic_flag_spec='${wl}-E'
9002238104Sdes	# hardcode_minus_L: Not really in the search PATH,
9003238104Sdes	# but as the default location of the library.
9004238104Sdes	hardcode_minus_L=yes
9005238104Sdes      fi
9006238104Sdes      ;;
9007238104Sdes
9008238104Sdes    hpux11*)
9009238104Sdes      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9010238104Sdes	case $host_cpu in
9011238104Sdes	hppa*64*)
9012238104Sdes	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9013238104Sdes	  ;;
9014238104Sdes	ia64*)
9015238104Sdes	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9016238104Sdes	  ;;
9017238104Sdes	*)
9018238104Sdes	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9019238104Sdes	  ;;
9020238104Sdes	esac
9021238104Sdes      else
9022238104Sdes	case $host_cpu in
9023238104Sdes	hppa*64*)
9024238104Sdes	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025238104Sdes	  ;;
9026238104Sdes	ia64*)
9027238104Sdes	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9028238104Sdes	  ;;
9029238104Sdes	*)
9030238104Sdes
9031238104Sdes	  # Older versions of the 11.00 compiler do not understand -b yet
9032238104Sdes	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9033238104Sdes	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9034238104Sdes$as_echo_n "checking if $CC understands -b... " >&6; }
9035238104Sdesif ${lt_cv_prog_compiler__b+:} false; then :
9036238104Sdes  $as_echo_n "(cached) " >&6
9037238104Sdeselse
9038238104Sdes  lt_cv_prog_compiler__b=no
9039238104Sdes   save_LDFLAGS="$LDFLAGS"
9040238104Sdes   LDFLAGS="$LDFLAGS -b"
9041238104Sdes   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9042238104Sdes   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9043238104Sdes     # The linker can only warn and ignore the option if not recognized
9044238104Sdes     # So say no if there are warnings
9045238104Sdes     if test -s conftest.err; then
9046238104Sdes       # Append any errors to the config.log.
9047238104Sdes       cat conftest.err 1>&5
9048238104Sdes       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9049238104Sdes       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050238104Sdes       if diff conftest.exp conftest.er2 >/dev/null; then
9051238104Sdes         lt_cv_prog_compiler__b=yes
9052238104Sdes       fi
9053238104Sdes     else
9054238104Sdes       lt_cv_prog_compiler__b=yes
9055238104Sdes     fi
9056238104Sdes   fi
9057238104Sdes   $RM -r conftest*
9058238104Sdes   LDFLAGS="$save_LDFLAGS"
9059238104Sdes
9060238104Sdesfi
9061238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9062238104Sdes$as_echo "$lt_cv_prog_compiler__b" >&6; }
9063238104Sdes
9064238104Sdesif test x"$lt_cv_prog_compiler__b" = xyes; then
9065238104Sdes    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9066238104Sdeselse
9067238104Sdes    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9068238104Sdesfi
9069238104Sdes
9070238104Sdes	  ;;
9071238104Sdes	esac
9072238104Sdes      fi
9073238104Sdes      if test "$with_gnu_ld" = no; then
9074238104Sdes	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075238104Sdes	hardcode_libdir_separator=:
9076238104Sdes
9077238104Sdes	case $host_cpu in
9078238104Sdes	hppa*64*|ia64*)
9079238104Sdes	  hardcode_direct=no
9080238104Sdes	  hardcode_shlibpath_var=no
9081238104Sdes	  ;;
9082238104Sdes	*)
9083238104Sdes	  hardcode_direct=yes
9084238104Sdes	  hardcode_direct_absolute=yes
9085238104Sdes	  export_dynamic_flag_spec='${wl}-E'
9086238104Sdes
9087238104Sdes	  # hardcode_minus_L: Not really in the search PATH,
9088238104Sdes	  # but as the default location of the library.
9089238104Sdes	  hardcode_minus_L=yes
9090238104Sdes	  ;;
9091238104Sdes	esac
9092238104Sdes      fi
9093238104Sdes      ;;
9094238104Sdes
9095238104Sdes    irix5* | irix6* | nonstopux*)
9096238104Sdes      if test "$GCC" = yes; then
9097238104Sdes	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9098238104Sdes	# Try to use the -exported_symbol ld option, if it does not
9099238104Sdes	# work, assume that -exports_file does not work either and
9100238104Sdes	# implicitly export all symbols.
9101238104Sdes	# This should be the same for all languages, so no per-tag cache variable.
9102238104Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9103238104Sdes$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9104238104Sdesif ${lt_cv_irix_exported_symbol+:} false; then :
9105238104Sdes  $as_echo_n "(cached) " >&6
9106238104Sdeselse
9107238104Sdes  save_LDFLAGS="$LDFLAGS"
9108238104Sdes	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9109238104Sdes	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110238104Sdes/* end confdefs.h.  */
9111238104Sdesint foo (void) { return 0; }
9112238104Sdes_ACEOF
9113238104Sdesif ac_fn_c_try_link "$LINENO"; then :
9114238104Sdes  lt_cv_irix_exported_symbol=yes
9115238104Sdeselse
9116238104Sdes  lt_cv_irix_exported_symbol=no
9117238104Sdesfi
9118238104Sdesrm -f core conftest.err conftest.$ac_objext \
9119238104Sdes    conftest$ac_exeext conftest.$ac_ext
9120238104Sdes           LDFLAGS="$save_LDFLAGS"
9121238104Sdesfi
9122238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9123238104Sdes$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9124238104Sdes	if test "$lt_cv_irix_exported_symbol" = yes; then
9125238104Sdes          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9126238104Sdes	fi
9127238104Sdes      else
9128238104Sdes	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9129238104Sdes	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9130238104Sdes      fi
9131238104Sdes      archive_cmds_need_lc='no'
9132238104Sdes      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9133238104Sdes      hardcode_libdir_separator=:
9134238104Sdes      inherit_rpath=yes
9135238104Sdes      link_all_deplibs=yes
9136238104Sdes      ;;
9137238104Sdes
9138238104Sdes    netbsd* | netbsdelf*-gnu)
9139238104Sdes      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9140238104Sdes	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9141238104Sdes      else
9142238104Sdes	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9143238104Sdes      fi
9144238104Sdes      hardcode_libdir_flag_spec='-R$libdir'
9145238104Sdes      hardcode_direct=yes
9146238104Sdes      hardcode_shlibpath_var=no
9147238104Sdes      ;;
9148238104Sdes
9149238104Sdes    newsos6)
9150238104Sdes      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9151238104Sdes      hardcode_direct=yes
9152238104Sdes      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153238104Sdes      hardcode_libdir_separator=:
9154238104Sdes      hardcode_shlibpath_var=no
9155238104Sdes      ;;
9156238104Sdes
9157238104Sdes    *nto* | *qnx*)
9158238104Sdes      ;;
9159238104Sdes
9160238104Sdes    openbsd*)
9161238104Sdes      if test -f /usr/libexec/ld.so; then
9162238104Sdes	hardcode_direct=yes
9163238104Sdes	hardcode_shlibpath_var=no
9164238104Sdes	hardcode_direct_absolute=yes
9165238104Sdes	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9166238104Sdes	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9167238104Sdes	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9168238104Sdes	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9169238104Sdes	  export_dynamic_flag_spec='${wl}-E'
9170238104Sdes	else
9171238104Sdes	  case $host_os in
9172238104Sdes	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9173238104Sdes	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9174238104Sdes	     hardcode_libdir_flag_spec='-R$libdir'
9175238104Sdes	     ;;
9176238104Sdes	   *)
9177238104Sdes	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9178238104Sdes	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9179238104Sdes	     ;;
9180238104Sdes	  esac
9181238104Sdes	fi
9182238104Sdes      else
9183238104Sdes	ld_shlibs=no
9184238104Sdes      fi
9185238104Sdes      ;;
9186238104Sdes
9187238104Sdes    os2*)
9188238104Sdes      hardcode_libdir_flag_spec='-L$libdir'
9189238104Sdes      hardcode_minus_L=yes
9190238104Sdes      allow_undefined_flag=unsupported
9191238104Sdes      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9192238104Sdes      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9193238104Sdes      ;;
9194238104Sdes
9195238104Sdes    osf3*)
9196238104Sdes      if test "$GCC" = yes; then
9197238104Sdes	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9198238104Sdes	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9199238104Sdes      else
9200238104Sdes	allow_undefined_flag=' -expect_unresolved \*'
9201238104Sdes	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9202238104Sdes      fi
9203238104Sdes      archive_cmds_need_lc='no'
9204238104Sdes      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205238104Sdes      hardcode_libdir_separator=:
9206238104Sdes      ;;
9207238104Sdes
9208238104Sdes    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9209238104Sdes      if test "$GCC" = yes; then
9210238104Sdes	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9211238104Sdes	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9212238104Sdes	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213238104Sdes      else
9214238104Sdes	allow_undefined_flag=' -expect_unresolved \*'
9215238104Sdes	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9216238104Sdes	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9217238104Sdes	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9218238104Sdes
9219238104Sdes	# Both c and cxx compiler support -rpath directly
9220238104Sdes	hardcode_libdir_flag_spec='-rpath $libdir'
9221238104Sdes      fi
9222238104Sdes      archive_cmds_need_lc='no'
9223238104Sdes      hardcode_libdir_separator=:
9224238104Sdes      ;;
9225238104Sdes
9226238104Sdes    solaris*)
9227238104Sdes      no_undefined_flag=' -z defs'
9228238104Sdes      if test "$GCC" = yes; then
9229238104Sdes	wlarc='${wl}'
9230238104Sdes	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9231238104Sdes	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9232238104Sdes	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9233238104Sdes      else
9234238104Sdes	case `$CC -V 2>&1` in
9235238104Sdes	*"Compilers 5.0"*)
9236238104Sdes	  wlarc=''
9237238104Sdes	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9238238104Sdes	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9239238104Sdes	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9240238104Sdes	  ;;
9241238104Sdes	*)
9242238104Sdes	  wlarc='${wl}'
9243238104Sdes	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9244238104Sdes	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9245238104Sdes	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9246238104Sdes	  ;;
9247238104Sdes	esac
9248238104Sdes      fi
9249238104Sdes      hardcode_libdir_flag_spec='-R$libdir'
9250238104Sdes      hardcode_shlibpath_var=no
9251238104Sdes      case $host_os in
9252238104Sdes      solaris2.[0-5] | solaris2.[0-5].*) ;;
9253238104Sdes      *)
9254238104Sdes	# The compiler driver will combine and reorder linker options,
9255238104Sdes	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9256238104Sdes	# but is careful enough not to reorder.
9257238104Sdes	# Supported since Solaris 2.6 (maybe 2.5.1?)
9258238104Sdes	if test "$GCC" = yes; then
9259238104Sdes	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9260238104Sdes	else
9261238104Sdes	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9262238104Sdes	fi
9263238104Sdes	;;
9264238104Sdes      esac
9265238104Sdes      link_all_deplibs=yes
9266238104Sdes      ;;
9267238104Sdes
9268238104Sdes    sunos4*)
9269238104Sdes      if test "x$host_vendor" = xsequent; then
9270238104Sdes	# Use $CC to link under sequent, because it throws in some extra .o
9271238104Sdes	# files that make .init and .fini sections work.
9272238104Sdes	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9273238104Sdes      else
9274238104Sdes	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9275238104Sdes      fi
9276238104Sdes      hardcode_libdir_flag_spec='-L$libdir'
9277238104Sdes      hardcode_direct=yes
9278238104Sdes      hardcode_minus_L=yes
9279238104Sdes      hardcode_shlibpath_var=no
9280238104Sdes      ;;
9281238104Sdes
9282238104Sdes    sysv4)
9283238104Sdes      case $host_vendor in
9284238104Sdes	sni)
9285238104Sdes	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286238104Sdes	  hardcode_direct=yes # is this really true???
9287238104Sdes	;;
9288238104Sdes	siemens)
9289238104Sdes	  ## LD is ld it makes a PLAMLIB
9290238104Sdes	  ## CC just makes a GrossModule.
9291238104Sdes	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9292238104Sdes	  reload_cmds='$CC -r -o $output$reload_objs'
9293238104Sdes	  hardcode_direct=no
9294238104Sdes        ;;
9295238104Sdes	motorola)
9296238104Sdes	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297238104Sdes	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9298238104Sdes	;;
9299238104Sdes      esac
9300238104Sdes      runpath_var='LD_RUN_PATH'
9301238104Sdes      hardcode_shlibpath_var=no
9302238104Sdes      ;;
9303238104Sdes
9304238104Sdes    sysv4.3*)
9305238104Sdes      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306238104Sdes      hardcode_shlibpath_var=no
9307238104Sdes      export_dynamic_flag_spec='-Bexport'
9308238104Sdes      ;;
9309238104Sdes
9310238104Sdes    sysv4*MP*)
9311238104Sdes      if test -d /usr/nec; then
9312238104Sdes	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313238104Sdes	hardcode_shlibpath_var=no
9314238104Sdes	runpath_var=LD_RUN_PATH
9315238104Sdes	hardcode_runpath_var=yes
9316238104Sdes	ld_shlibs=yes
9317238104Sdes      fi
9318238104Sdes      ;;
9319238104Sdes
9320238104Sdes    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9321238104Sdes      no_undefined_flag='${wl}-z,text'
9322238104Sdes      archive_cmds_need_lc=no
9323238104Sdes      hardcode_shlibpath_var=no
9324238104Sdes      runpath_var='LD_RUN_PATH'
9325238104Sdes
9326238104Sdes      if test "$GCC" = yes; then
9327238104Sdes	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328238104Sdes	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329238104Sdes      else
9330238104Sdes	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9331238104Sdes	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9332238104Sdes      fi
9333238104Sdes      ;;
9334238104Sdes
9335238104Sdes    sysv5* | sco3.2v5* | sco5v6*)
9336238104Sdes      # Note: We can NOT use -z defs as we might desire, because we do not
9337238104Sdes      # link with -lc, and that would cause any symbols used from libc to
9338238104Sdes      # always be unresolved, which means just about no library would
9339238104Sdes      # ever link correctly.  If we're not using GNU ld we use -z text
9340238104Sdes      # though, which does catch some bad symbols but isn't as heavy-handed
9341238104Sdes      # as -z defs.
9342238104Sdes      no_undefined_flag='${wl}-z,text'
9343238104Sdes      allow_undefined_flag='${wl}-z,nodefs'
9344238104Sdes      archive_cmds_need_lc=no
9345238104Sdes      hardcode_shlibpath_var=no
9346238104Sdes      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9347238104Sdes      hardcode_libdir_separator=':'
9348238104Sdes      link_all_deplibs=yes
9349238104Sdes      export_dynamic_flag_spec='${wl}-Bexport'
9350238104Sdes      runpath_var='LD_RUN_PATH'
9351238104Sdes
9352238104Sdes      if test "$GCC" = yes; then
9353238104Sdes	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354238104Sdes	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355238104Sdes      else
9356238104Sdes	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357238104Sdes	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358238104Sdes      fi
9359238104Sdes      ;;
9360238104Sdes
9361238104Sdes    uts4*)
9362238104Sdes      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363238104Sdes      hardcode_libdir_flag_spec='-L$libdir'
9364238104Sdes      hardcode_shlibpath_var=no
9365238104Sdes      ;;
9366238104Sdes
9367238104Sdes    *)
9368238104Sdes      ld_shlibs=no
9369238104Sdes      ;;
9370238104Sdes    esac
9371238104Sdes
9372238104Sdes    if test x$host_vendor = xsni; then
9373238104Sdes      case $host in
9374238104Sdes      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9375238104Sdes	export_dynamic_flag_spec='${wl}-Blargedynsym'
9376238104Sdes	;;
9377238104Sdes      esac
9378238104Sdes    fi
9379238104Sdes  fi
9380238104Sdes
9381238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9382238104Sdes$as_echo "$ld_shlibs" >&6; }
9383238104Sdestest "$ld_shlibs" = no && can_build_shared=no
9384238104Sdes
9385238104Sdeswith_gnu_ld=$with_gnu_ld
9386238104Sdes
9387238104Sdes
9388238104Sdes
9389238104Sdes
9390238104Sdes
9391238104Sdes
9392238104Sdes
9393238104Sdes
9394238104Sdes
9395238104Sdes
9396238104Sdes
9397238104Sdes
9398238104Sdes
9399238104Sdes
9400238104Sdes
9401238104Sdes#
9402238104Sdes# Do we need to explicitly link libc?
9403238104Sdes#
9404238104Sdescase "x$archive_cmds_need_lc" in
9405238104Sdesx|xyes)
9406238104Sdes  # Assume -lc should be added
9407238104Sdes  archive_cmds_need_lc=yes
9408238104Sdes
9409238104Sdes  if test "$enable_shared" = yes && test "$GCC" = yes; then
9410238104Sdes    case $archive_cmds in
9411238104Sdes    *'~'*)
9412238104Sdes      # FIXME: we may have to deal with multi-command sequences.
9413238104Sdes      ;;
9414238104Sdes    '$CC '*)
9415238104Sdes      # Test whether the compiler implicitly links with -lc since on some
9416238104Sdes      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9417238104Sdes      # to ld, don't add -lc before -lgcc.
9418238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9419238104Sdes$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9420238104Sdesif ${lt_cv_archive_cmds_need_lc+:} false; then :
9421238104Sdes  $as_echo_n "(cached) " >&6
9422238104Sdeselse
9423238104Sdes  $RM conftest*
9424238104Sdes	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425238104Sdes
9426238104Sdes	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9427238104Sdes  (eval $ac_compile) 2>&5
9428238104Sdes  ac_status=$?
9429238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9430238104Sdes  test $ac_status = 0; } 2>conftest.err; then
9431238104Sdes	  soname=conftest
9432238104Sdes	  lib=conftest
9433238104Sdes	  libobjs=conftest.$ac_objext
9434238104Sdes	  deplibs=
9435238104Sdes	  wl=$lt_prog_compiler_wl
9436238104Sdes	  pic_flag=$lt_prog_compiler_pic
9437238104Sdes	  compiler_flags=-v
9438238104Sdes	  linker_flags=-v
9439238104Sdes	  verstring=
9440238104Sdes	  output_objdir=.
9441238104Sdes	  libname=conftest
9442238104Sdes	  lt_save_allow_undefined_flag=$allow_undefined_flag
9443238104Sdes	  allow_undefined_flag=
9444238104Sdes	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9445238104Sdes  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9446238104Sdes  ac_status=$?
9447238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9448238104Sdes  test $ac_status = 0; }
9449238104Sdes	  then
9450238104Sdes	    lt_cv_archive_cmds_need_lc=no
9451238104Sdes	  else
9452238104Sdes	    lt_cv_archive_cmds_need_lc=yes
9453238104Sdes	  fi
9454238104Sdes	  allow_undefined_flag=$lt_save_allow_undefined_flag
9455238104Sdes	else
9456238104Sdes	  cat conftest.err 1>&5
9457238104Sdes	fi
9458238104Sdes	$RM conftest*
9459238104Sdes
9460238104Sdesfi
9461238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9462238104Sdes$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9463238104Sdes      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9464238104Sdes      ;;
9465238104Sdes    esac
9466238104Sdes  fi
9467238104Sdes  ;;
9468238104Sdesesac
9469238104Sdes
9470238104Sdes
9471238104Sdes
9472238104Sdes
9473238104Sdes
9474238104Sdes
9475238104Sdes
9476238104Sdes
9477238104Sdes
9478238104Sdes
9479238104Sdes
9480238104Sdes
9481238104Sdes
9482238104Sdes
9483238104Sdes
9484238104Sdes
9485238104Sdes
9486238104Sdes
9487238104Sdes
9488238104Sdes
9489238104Sdes
9490238104Sdes
9491238104Sdes
9492238104Sdes
9493238104Sdes
9494238104Sdes
9495238104Sdes
9496238104Sdes
9497238104Sdes
9498238104Sdes
9499238104Sdes
9500238104Sdes
9501238104Sdes
9502238104Sdes
9503238104Sdes
9504238104Sdes
9505238104Sdes
9506238104Sdes
9507238104Sdes
9508238104Sdes
9509238104Sdes
9510238104Sdes
9511238104Sdes
9512238104Sdes
9513238104Sdes
9514238104Sdes
9515238104Sdes
9516238104Sdes
9517238104Sdes
9518238104Sdes
9519238104Sdes
9520238104Sdes
9521238104Sdes
9522238104Sdes
9523238104Sdes
9524238104Sdes
9525238104Sdes
9526238104Sdes
9527238104Sdes
9528238104Sdes
9529238104Sdes
9530238104Sdes
9531238104Sdes
9532238104Sdes
9533238104Sdes
9534238104Sdes
9535238104Sdes
9536238104Sdes
9537238104Sdes
9538238104Sdes
9539238104Sdes
9540238104Sdes
9541238104Sdes
9542238104Sdes
9543238104Sdes
9544238104Sdes
9545238104Sdes
9546238104Sdes
9547238104Sdes
9548238104Sdes
9549238104Sdes
9550238104Sdes
9551238104Sdes
9552238104Sdes
9553238104Sdes
9554238104Sdes
9555238104Sdes
9556238104Sdes
9557238104Sdes
9558238104Sdes
9559238104Sdes
9560238104Sdes
9561238104Sdes
9562238104Sdes
9563238104Sdes
9564238104Sdes
9565238104Sdes
9566238104Sdes
9567238104Sdes
9568238104Sdes
9569238104Sdes
9570238104Sdes
9571238104Sdes
9572238104Sdes
9573238104Sdes
9574238104Sdes
9575238104Sdes
9576238104Sdes
9577238104Sdes
9578238104Sdes
9579238104Sdes
9580238104Sdes
9581238104Sdes
9582238104Sdes
9583238104Sdes
9584238104Sdes
9585238104Sdes
9586238104Sdes
9587238104Sdes
9588238104Sdes
9589238104Sdes
9590238104Sdes
9591238104Sdes
9592238104Sdes
9593238104Sdes
9594238104Sdes
9595238104Sdes
9596238104Sdes
9597238104Sdes
9598238104Sdes
9599238104Sdes
9600238104Sdes
9601238104Sdes
9602238104Sdes
9603238104Sdes
9604238104Sdes
9605238104Sdes
9606238104Sdes
9607238104Sdes
9608238104Sdes
9609238104Sdes
9610238104Sdes
9611238104Sdes
9612238104Sdes
9613238104Sdes
9614238104Sdes
9615238104Sdes
9616238104Sdes
9617238104Sdes
9618238104Sdes
9619238104Sdes
9620238104Sdes
9621238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9622238104Sdes$as_echo_n "checking dynamic linker characteristics... " >&6; }
9623238104Sdes
9624238104Sdesif test "$GCC" = yes; then
9625238104Sdes  case $host_os in
9626238104Sdes    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9627238104Sdes    *) lt_awk_arg="/^libraries:/" ;;
9628238104Sdes  esac
9629238104Sdes  case $host_os in
9630238104Sdes    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9631238104Sdes    *) lt_sed_strip_eq="s,=/,/,g" ;;
9632238104Sdes  esac
9633238104Sdes  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9634238104Sdes  case $lt_search_path_spec in
9635238104Sdes  *\;*)
9636238104Sdes    # if the path contains ";" then we assume it to be the separator
9637238104Sdes    # otherwise default to the standard path separator (i.e. ":") - it is
9638238104Sdes    # assumed that no part of a normal pathname contains ";" but that should
9639238104Sdes    # okay in the real world where ";" in dirpaths is itself problematic.
9640238104Sdes    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9641238104Sdes    ;;
9642238104Sdes  *)
9643238104Sdes    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9644238104Sdes    ;;
9645238104Sdes  esac
9646238104Sdes  # Ok, now we have the path, separated by spaces, we can step through it
9647238104Sdes  # and add multilib dir if necessary.
9648238104Sdes  lt_tmp_lt_search_path_spec=
9649238104Sdes  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9650238104Sdes  for lt_sys_path in $lt_search_path_spec; do
9651238104Sdes    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9652238104Sdes      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9653238104Sdes    else
9654238104Sdes      test -d "$lt_sys_path" && \
9655238104Sdes	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9656238104Sdes    fi
9657238104Sdes  done
9658238104Sdes  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9659238104SdesBEGIN {RS=" "; FS="/|\n";} {
9660238104Sdes  lt_foo="";
9661238104Sdes  lt_count=0;
9662238104Sdes  for (lt_i = NF; lt_i > 0; lt_i--) {
9663238104Sdes    if ($lt_i != "" && $lt_i != ".") {
9664238104Sdes      if ($lt_i == "..") {
9665238104Sdes        lt_count++;
9666238104Sdes      } else {
9667238104Sdes        if (lt_count == 0) {
9668238104Sdes          lt_foo="/" $lt_i lt_foo;
9669238104Sdes        } else {
9670238104Sdes          lt_count--;
9671238104Sdes        }
9672238104Sdes      }
9673238104Sdes    }
9674238104Sdes  }
9675238104Sdes  if (lt_foo != "") { lt_freq[lt_foo]++; }
9676238104Sdes  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9677238104Sdes}'`
9678238104Sdes  # AWK program above erroneously prepends '/' to C:/dos/paths
9679238104Sdes  # for these hosts.
9680238104Sdes  case $host_os in
9681238104Sdes    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9682238104Sdes      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9683238104Sdes  esac
9684238104Sdes  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9685238104Sdeselse
9686238104Sdes  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9687238104Sdesfi
9688238104Sdeslibrary_names_spec=
9689238104Sdeslibname_spec='lib$name'
9690238104Sdessoname_spec=
9691238104Sdesshrext_cmds=".so"
9692238104Sdespostinstall_cmds=
9693238104Sdespostuninstall_cmds=
9694238104Sdesfinish_cmds=
9695238104Sdesfinish_eval=
9696238104Sdesshlibpath_var=
9697238104Sdesshlibpath_overrides_runpath=unknown
9698238104Sdesversion_type=none
9699238104Sdesdynamic_linker="$host_os ld.so"
9700238104Sdessys_lib_dlsearch_path_spec="/lib /usr/lib"
9701238104Sdesneed_lib_prefix=unknown
9702238104Sdeshardcode_into_libs=no
9703238104Sdes
9704238104Sdes# when you set need_version to no, make sure it does not cause -set_version
9705238104Sdes# flags to be left without arguments
9706238104Sdesneed_version=unknown
9707238104Sdes
9708238104Sdescase $host_os in
9709238104Sdesaix3*)
9710238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
9711238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9712238104Sdes  shlibpath_var=LIBPATH
9713238104Sdes
9714238104Sdes  # AIX 3 has no versioning support, so we append a major version to the name.
9715238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
9716238104Sdes  ;;
9717238104Sdes
9718238104Sdesaix[4-9]*)
9719238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
9720238104Sdes  need_lib_prefix=no
9721238104Sdes  need_version=no
9722238104Sdes  hardcode_into_libs=yes
9723238104Sdes  if test "$host_cpu" = ia64; then
9724238104Sdes    # AIX 5 supports IA64
9725238104Sdes    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9726238104Sdes    shlibpath_var=LD_LIBRARY_PATH
9727238104Sdes  else
9728238104Sdes    # With GCC up to 2.95.x, collect2 would create an import file
9729238104Sdes    # for dependence libraries.  The import file would start with
9730238104Sdes    # the line `#! .'.  This would cause the generated library to
9731238104Sdes    # depend on `.', always an invalid library.  This was fixed in
9732238104Sdes    # development snapshots of GCC prior to 3.0.
9733238104Sdes    case $host_os in
9734238104Sdes      aix4 | aix4.[01] | aix4.[01].*)
9735238104Sdes      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9736238104Sdes	   echo ' yes '
9737238104Sdes	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9738238104Sdes	:
9739238104Sdes      else
9740238104Sdes	can_build_shared=no
9741238104Sdes      fi
9742238104Sdes      ;;
9743238104Sdes    esac
9744238104Sdes    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9745238104Sdes    # soname into executable. Probably we can add versioning support to
9746238104Sdes    # collect2, so additional links can be useful in future.
9747238104Sdes    if test "$aix_use_runtimelinking" = yes; then
9748238104Sdes      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9749238104Sdes      # instead of lib<name>.a to let people know that these are not
9750238104Sdes      # typical AIX shared libraries.
9751238104Sdes      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752238104Sdes    else
9753238104Sdes      # We preserve .a as extension for shared libraries through AIX4.2
9754238104Sdes      # and later when we are not doing run time linking.
9755238104Sdes      library_names_spec='${libname}${release}.a $libname.a'
9756238104Sdes      soname_spec='${libname}${release}${shared_ext}$major'
9757238104Sdes    fi
9758238104Sdes    shlibpath_var=LIBPATH
9759238104Sdes  fi
9760238104Sdes  ;;
9761238104Sdes
9762238104Sdesamigaos*)
9763238104Sdes  case $host_cpu in
9764238104Sdes  powerpc)
9765238104Sdes    # Since July 2007 AmigaOS4 officially supports .so libraries.
9766238104Sdes    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9767238104Sdes    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768238104Sdes    ;;
9769238104Sdes  m68k)
9770238104Sdes    library_names_spec='$libname.ixlibrary $libname.a'
9771238104Sdes    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9772238104Sdes    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9773238104Sdes    ;;
9774238104Sdes  esac
9775238104Sdes  ;;
9776238104Sdes
9777238104Sdesbeos*)
9778238104Sdes  library_names_spec='${libname}${shared_ext}'
9779238104Sdes  dynamic_linker="$host_os ld.so"
9780238104Sdes  shlibpath_var=LIBRARY_PATH
9781238104Sdes  ;;
9782238104Sdes
9783238104Sdesbsdi[45]*)
9784238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
9785238104Sdes  need_version=no
9786238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
9788238104Sdes  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9789238104Sdes  shlibpath_var=LD_LIBRARY_PATH
9790238104Sdes  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9791238104Sdes  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9792238104Sdes  # the default ld.so.conf also contains /usr/contrib/lib and
9793238104Sdes  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9794238104Sdes  # libtool to hard-code these into programs
9795238104Sdes  ;;
9796238104Sdes
9797238104Sdescygwin* | mingw* | pw32* | cegcc*)
9798238104Sdes  version_type=windows
9799238104Sdes  shrext_cmds=".dll"
9800238104Sdes  need_version=no
9801238104Sdes  need_lib_prefix=no
9802238104Sdes
9803238104Sdes  case $GCC,$cc_basename in
9804238104Sdes  yes,*)
9805238104Sdes    # gcc
9806238104Sdes    library_names_spec='$libname.dll.a'
9807238104Sdes    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9808238104Sdes    postinstall_cmds='base_file=`basename \${file}`~
9809238104Sdes      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9810238104Sdes      dldir=$destdir/`dirname \$dlpath`~
9811238104Sdes      test -d \$dldir || mkdir -p \$dldir~
9812238104Sdes      $install_prog $dir/$dlname \$dldir/$dlname~
9813238104Sdes      chmod a+x \$dldir/$dlname~
9814238104Sdes      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9815238104Sdes        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9816238104Sdes      fi'
9817238104Sdes    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9818238104Sdes      dlpath=$dir/\$dldll~
9819238104Sdes       $RM \$dlpath'
9820238104Sdes    shlibpath_overrides_runpath=yes
9821238104Sdes
9822238104Sdes    case $host_os in
9823238104Sdes    cygwin*)
9824238104Sdes      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9825238104Sdes      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9826238104Sdes
9827238104Sdes      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9828238104Sdes      ;;
9829238104Sdes    mingw* | cegcc*)
9830238104Sdes      # MinGW DLLs use traditional 'lib' prefix
9831238104Sdes      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9832238104Sdes      ;;
9833238104Sdes    pw32*)
9834238104Sdes      # pw32 DLLs use 'pw' prefix rather than 'lib'
9835238104Sdes      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9836238104Sdes      ;;
9837238104Sdes    esac
9838238104Sdes    dynamic_linker='Win32 ld.exe'
9839238104Sdes    ;;
9840238104Sdes
9841238104Sdes  *,cl*)
9842238104Sdes    # Native MSVC
9843238104Sdes    libname_spec='$name'
9844238104Sdes    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9845238104Sdes    library_names_spec='${libname}.dll.lib'
9846238104Sdes
9847238104Sdes    case $build_os in
9848238104Sdes    mingw*)
9849238104Sdes      sys_lib_search_path_spec=
9850238104Sdes      lt_save_ifs=$IFS
9851238104Sdes      IFS=';'
9852238104Sdes      for lt_path in $LIB
9853238104Sdes      do
9854238104Sdes        IFS=$lt_save_ifs
9855238104Sdes        # Let DOS variable expansion print the short 8.3 style file name.
9856238104Sdes        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9857238104Sdes        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9858238104Sdes      done
9859238104Sdes      IFS=$lt_save_ifs
9860238104Sdes      # Convert to MSYS style.
9861238104Sdes      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9862238104Sdes      ;;
9863238104Sdes    cygwin*)
9864238104Sdes      # Convert to unix form, then to dos form, then back to unix form
9865238104Sdes      # but this time dos style (no spaces!) so that the unix form looks
9866238104Sdes      # like /cygdrive/c/PROGRA~1:/cygdr...
9867238104Sdes      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9868238104Sdes      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9869238104Sdes      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9870238104Sdes      ;;
9871238104Sdes    *)
9872238104Sdes      sys_lib_search_path_spec="$LIB"
9873238104Sdes      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9874238104Sdes        # It is most probably a Windows format PATH.
9875238104Sdes        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9876238104Sdes      else
9877238104Sdes        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9878238104Sdes      fi
9879238104Sdes      # FIXME: find the short name or the path components, as spaces are
9880238104Sdes      # common. (e.g. "Program Files" -> "PROGRA~1")
9881238104Sdes      ;;
9882238104Sdes    esac
9883238104Sdes
9884238104Sdes    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9885238104Sdes    postinstall_cmds='base_file=`basename \${file}`~
9886238104Sdes      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9887238104Sdes      dldir=$destdir/`dirname \$dlpath`~
9888238104Sdes      test -d \$dldir || mkdir -p \$dldir~
9889238104Sdes      $install_prog $dir/$dlname \$dldir/$dlname'
9890238104Sdes    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9891238104Sdes      dlpath=$dir/\$dldll~
9892238104Sdes       $RM \$dlpath'
9893238104Sdes    shlibpath_overrides_runpath=yes
9894238104Sdes    dynamic_linker='Win32 link.exe'
9895238104Sdes    ;;
9896238104Sdes
9897238104Sdes  *)
9898238104Sdes    # Assume MSVC wrapper
9899238104Sdes    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9900238104Sdes    dynamic_linker='Win32 ld.exe'
9901238104Sdes    ;;
9902238104Sdes  esac
9903238104Sdes  # FIXME: first we should search . and the directory the executable is in
9904238104Sdes  shlibpath_var=PATH
9905238104Sdes  ;;
9906238104Sdes
9907238104Sdesdarwin* | rhapsody*)
9908238104Sdes  dynamic_linker="$host_os dyld"
9909238104Sdes  version_type=darwin
9910238104Sdes  need_lib_prefix=no
9911238104Sdes  need_version=no
9912238104Sdes  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9913238104Sdes  soname_spec='${libname}${release}${major}$shared_ext'
9914238104Sdes  shlibpath_overrides_runpath=yes
9915238104Sdes  shlibpath_var=DYLD_LIBRARY_PATH
9916238104Sdes  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9917238104Sdes
9918238104Sdes  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9919238104Sdes  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9920238104Sdes  ;;
9921238104Sdes
9922238104Sdesdgux*)
9923238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
9924238104Sdes  need_lib_prefix=no
9925238104Sdes  need_version=no
9926238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
9928238104Sdes  shlibpath_var=LD_LIBRARY_PATH
9929238104Sdes  ;;
9930238104Sdes
9931238104Sdesfreebsd* | dragonfly*)
9932238104Sdes  # DragonFly does not have aout.  When/if they implement a new
9933238104Sdes  # versioning mechanism, adjust this.
9934238104Sdes  if test -x /usr/bin/objformat; then
9935238104Sdes    objformat=`/usr/bin/objformat`
9936238104Sdes  else
9937238104Sdes    case $host_os in
9938238104Sdes    freebsd[23].*) objformat=aout ;;
9939238104Sdes    *) objformat=elf ;;
9940238104Sdes    esac
9941238104Sdes  fi
9942238104Sdes  version_type=freebsd-$objformat
9943238104Sdes  case $version_type in
9944238104Sdes    freebsd-elf*)
9945238104Sdes      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9946238104Sdes      need_version=no
9947238104Sdes      need_lib_prefix=no
9948238104Sdes      ;;
9949238104Sdes    freebsd-*)
9950238104Sdes      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9951238104Sdes      need_version=yes
9952238104Sdes      ;;
9953238104Sdes  esac
9954238104Sdes  shlibpath_var=LD_LIBRARY_PATH
9955238104Sdes  case $host_os in
9956238104Sdes  freebsd2.*)
9957238104Sdes    shlibpath_overrides_runpath=yes
9958238104Sdes    ;;
9959238104Sdes  freebsd3.[01]* | freebsdelf3.[01]*)
9960238104Sdes    shlibpath_overrides_runpath=yes
9961238104Sdes    hardcode_into_libs=yes
9962238104Sdes    ;;
9963238104Sdes  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964238104Sdes  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965238104Sdes    shlibpath_overrides_runpath=no
9966238104Sdes    hardcode_into_libs=yes
9967238104Sdes    ;;
9968238104Sdes  *) # from 4.6 on, and DragonFly
9969238104Sdes    shlibpath_overrides_runpath=yes
9970238104Sdes    hardcode_into_libs=yes
9971238104Sdes    ;;
9972238104Sdes  esac
9973238104Sdes  ;;
9974238104Sdes
9975238104Sdesgnu*)
9976238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
9977238104Sdes  need_lib_prefix=no
9978238104Sdes  need_version=no
9979238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
9981238104Sdes  shlibpath_var=LD_LIBRARY_PATH
9982238104Sdes  shlibpath_overrides_runpath=no
9983238104Sdes  hardcode_into_libs=yes
9984238104Sdes  ;;
9985238104Sdes
9986238104Sdeshaiku*)
9987238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
9988238104Sdes  need_lib_prefix=no
9989238104Sdes  need_version=no
9990238104Sdes  dynamic_linker="$host_os runtime_loader"
9991238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9992238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
9993238104Sdes  shlibpath_var=LIBRARY_PATH
9994238104Sdes  shlibpath_overrides_runpath=yes
9995238104Sdes  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9996238104Sdes  hardcode_into_libs=yes
9997238104Sdes  ;;
9998238104Sdes
9999238104Sdeshpux9* | hpux10* | hpux11*)
10000238104Sdes  # Give a soname corresponding to the major version so that dld.sl refuses to
10001238104Sdes  # link against other versions.
10002238104Sdes  version_type=sunos
10003238104Sdes  need_lib_prefix=no
10004238104Sdes  need_version=no
10005238104Sdes  case $host_cpu in
10006238104Sdes  ia64*)
10007238104Sdes    shrext_cmds='.so'
10008238104Sdes    hardcode_into_libs=yes
10009238104Sdes    dynamic_linker="$host_os dld.so"
10010238104Sdes    shlibpath_var=LD_LIBRARY_PATH
10011238104Sdes    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012238104Sdes    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013238104Sdes    soname_spec='${libname}${release}${shared_ext}$major'
10014238104Sdes    if test "X$HPUX_IA64_MODE" = X32; then
10015238104Sdes      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10016238104Sdes    else
10017238104Sdes      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10018238104Sdes    fi
10019238104Sdes    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10020238104Sdes    ;;
10021238104Sdes  hppa*64*)
10022238104Sdes    shrext_cmds='.sl'
10023238104Sdes    hardcode_into_libs=yes
10024238104Sdes    dynamic_linker="$host_os dld.sl"
10025238104Sdes    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10026238104Sdes    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10027238104Sdes    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028238104Sdes    soname_spec='${libname}${release}${shared_ext}$major'
10029238104Sdes    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10030238104Sdes    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10031238104Sdes    ;;
10032238104Sdes  *)
10033238104Sdes    shrext_cmds='.sl'
10034238104Sdes    dynamic_linker="$host_os dld.sl"
10035238104Sdes    shlibpath_var=SHLIB_PATH
10036238104Sdes    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10037238104Sdes    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038238104Sdes    soname_spec='${libname}${release}${shared_ext}$major'
10039238104Sdes    ;;
10040238104Sdes  esac
10041238104Sdes  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10042238104Sdes  postinstall_cmds='chmod 555 $lib'
10043238104Sdes  # or fails outright, so override atomically:
10044238104Sdes  install_override_mode=555
10045238104Sdes  ;;
10046238104Sdes
10047238104Sdesinterix[3-9]*)
10048238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
10049238104Sdes  need_lib_prefix=no
10050238104Sdes  need_version=no
10051238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10052238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10053238104Sdes  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10054238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10055238104Sdes  shlibpath_overrides_runpath=no
10056238104Sdes  hardcode_into_libs=yes
10057238104Sdes  ;;
10058238104Sdes
10059238104Sdesirix5* | irix6* | nonstopux*)
10060238104Sdes  case $host_os in
10061238104Sdes    nonstopux*) version_type=nonstopux ;;
10062238104Sdes    *)
10063238104Sdes	if test "$lt_cv_prog_gnu_ld" = yes; then
10064238104Sdes		version_type=linux # correct to gnu/linux during the next big refactor
10065238104Sdes	else
10066238104Sdes		version_type=irix
10067238104Sdes	fi ;;
10068238104Sdes  esac
10069238104Sdes  need_lib_prefix=no
10070238104Sdes  need_version=no
10071238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10072238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10073238104Sdes  case $host_os in
10074238104Sdes  irix5* | nonstopux*)
10075238104Sdes    libsuff= shlibsuff=
10076238104Sdes    ;;
10077238104Sdes  *)
10078238104Sdes    case $LD in # libtool.m4 will add one of these switches to LD
10079238104Sdes    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10080238104Sdes      libsuff= shlibsuff= libmagic=32-bit;;
10081238104Sdes    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10082238104Sdes      libsuff=32 shlibsuff=N32 libmagic=N32;;
10083238104Sdes    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10084238104Sdes      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10085238104Sdes    *) libsuff= shlibsuff= libmagic=never-match;;
10086238104Sdes    esac
10087238104Sdes    ;;
10088238104Sdes  esac
10089238104Sdes  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10090238104Sdes  shlibpath_overrides_runpath=no
10091238104Sdes  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10092238104Sdes  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10093238104Sdes  hardcode_into_libs=yes
10094238104Sdes  ;;
10095238104Sdes
10096238104Sdes# No shared lib support for Linux oldld, aout, or coff.
10097238104Sdeslinux*oldld* | linux*aout* | linux*coff*)
10098238104Sdes  dynamic_linker=no
10099238104Sdes  ;;
10100238104Sdes
10101238104Sdes# This must be glibc/ELF.
10102238104Sdeslinux* | k*bsd*-gnu | kopensolaris*-gnu)
10103238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
10104238104Sdes  need_lib_prefix=no
10105238104Sdes  need_version=no
10106238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10108238104Sdes  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10109238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10110238104Sdes  shlibpath_overrides_runpath=no
10111238104Sdes
10112238104Sdes  # Some binutils ld are patched to set DT_RUNPATH
10113238104Sdes  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10114238104Sdes  $as_echo_n "(cached) " >&6
10115238104Sdeselse
10116238104Sdes  lt_cv_shlibpath_overrides_runpath=no
10117238104Sdes    save_LDFLAGS=$LDFLAGS
10118238104Sdes    save_libdir=$libdir
10119238104Sdes    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10120238104Sdes	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10121238104Sdes    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122238104Sdes/* end confdefs.h.  */
10123238104Sdes
10124238104Sdesint
10125238104Sdesmain ()
10126238104Sdes{
10127238104Sdes
10128238104Sdes  ;
10129238104Sdes  return 0;
10130238104Sdes}
10131238104Sdes_ACEOF
10132238104Sdesif ac_fn_c_try_link "$LINENO"; then :
10133238104Sdes  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10134238104Sdes  lt_cv_shlibpath_overrides_runpath=yes
10135238104Sdesfi
10136238104Sdesfi
10137238104Sdesrm -f core conftest.err conftest.$ac_objext \
10138238104Sdes    conftest$ac_exeext conftest.$ac_ext
10139238104Sdes    LDFLAGS=$save_LDFLAGS
10140238104Sdes    libdir=$save_libdir
10141238104Sdes
10142238104Sdesfi
10143238104Sdes
10144238104Sdes  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10145238104Sdes
10146238104Sdes  # This implies no fast_install, which is unacceptable.
10147238104Sdes  # Some rework will be needed to allow for fast_install
10148238104Sdes  # before this can be enabled.
10149238104Sdes  hardcode_into_libs=yes
10150238104Sdes
10151238104Sdes  # Append ld.so.conf contents to the search path
10152238104Sdes  if test -f /etc/ld.so.conf; then
10153238104Sdes    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10154238104Sdes    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10155238104Sdes  fi
10156238104Sdes
10157238104Sdes  # We used to test for /lib/ld.so.1 and disable shared libraries on
10158238104Sdes  # powerpc, because MkLinux only supported shared libraries with the
10159238104Sdes  # GNU dynamic linker.  Since this was broken with cross compilers,
10160238104Sdes  # most powerpc-linux boxes support dynamic linking these days and
10161238104Sdes  # people can always --disable-shared, the test was removed, and we
10162238104Sdes  # assume the GNU/Linux dynamic linker is in use.
10163238104Sdes  dynamic_linker='GNU/Linux ld.so'
10164238104Sdes  ;;
10165238104Sdes
10166238104Sdesnetbsdelf*-gnu)
10167238104Sdes  version_type=linux
10168238104Sdes  need_lib_prefix=no
10169238104Sdes  need_version=no
10170238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10172238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10173238104Sdes  shlibpath_overrides_runpath=no
10174238104Sdes  hardcode_into_libs=yes
10175238104Sdes  dynamic_linker='NetBSD ld.elf_so'
10176238104Sdes  ;;
10177238104Sdes
10178238104Sdesnetbsd*)
10179238104Sdes  version_type=sunos
10180238104Sdes  need_lib_prefix=no
10181238104Sdes  need_version=no
10182238104Sdes  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10183238104Sdes    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10184238104Sdes    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10185238104Sdes    dynamic_linker='NetBSD (a.out) ld.so'
10186238104Sdes  else
10187238104Sdes    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10188238104Sdes    soname_spec='${libname}${release}${shared_ext}$major'
10189238104Sdes    dynamic_linker='NetBSD ld.elf_so'
10190238104Sdes  fi
10191238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10192238104Sdes  shlibpath_overrides_runpath=yes
10193238104Sdes  hardcode_into_libs=yes
10194238104Sdes  ;;
10195238104Sdes
10196238104Sdesnewsos6)
10197238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
10198238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10200238104Sdes  shlibpath_overrides_runpath=yes
10201238104Sdes  ;;
10202238104Sdes
10203238104Sdes*nto* | *qnx*)
10204238104Sdes  version_type=qnx
10205238104Sdes  need_lib_prefix=no
10206238104Sdes  need_version=no
10207238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10209238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10210238104Sdes  shlibpath_overrides_runpath=no
10211238104Sdes  hardcode_into_libs=yes
10212238104Sdes  dynamic_linker='ldqnx.so'
10213238104Sdes  ;;
10214238104Sdes
10215238104Sdesopenbsd*)
10216238104Sdes  version_type=sunos
10217238104Sdes  sys_lib_dlsearch_path_spec="/usr/lib"
10218238104Sdes  need_lib_prefix=no
10219238104Sdes  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10220238104Sdes  case $host_os in
10221238104Sdes    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10222238104Sdes    *)				need_version=no  ;;
10223238104Sdes  esac
10224238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10225238104Sdes  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10226238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10227238104Sdes  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10228238104Sdes    case $host_os in
10229238104Sdes      openbsd2.[89] | openbsd2.[89].*)
10230238104Sdes	shlibpath_overrides_runpath=no
10231238104Sdes	;;
10232238104Sdes      *)
10233238104Sdes	shlibpath_overrides_runpath=yes
10234238104Sdes	;;
10235238104Sdes      esac
10236238104Sdes  else
10237238104Sdes    shlibpath_overrides_runpath=yes
10238238104Sdes  fi
10239238104Sdes  ;;
10240238104Sdes
10241238104Sdesos2*)
10242238104Sdes  libname_spec='$name'
10243238104Sdes  shrext_cmds=".dll"
10244238104Sdes  need_lib_prefix=no
10245238104Sdes  library_names_spec='$libname${shared_ext} $libname.a'
10246238104Sdes  dynamic_linker='OS/2 ld.exe'
10247238104Sdes  shlibpath_var=LIBPATH
10248238104Sdes  ;;
10249238104Sdes
10250238104Sdesosf3* | osf4* | osf5*)
10251238104Sdes  version_type=osf
10252238104Sdes  need_lib_prefix=no
10253238104Sdes  need_version=no
10254238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10255238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10257238104Sdes  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10258238104Sdes  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10259238104Sdes  ;;
10260238104Sdes
10261238104Sdesrdos*)
10262238104Sdes  dynamic_linker=no
10263238104Sdes  ;;
10264238104Sdes
10265238104Sdessolaris*)
10266238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
10267238104Sdes  need_lib_prefix=no
10268238104Sdes  need_version=no
10269238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10271238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10272238104Sdes  shlibpath_overrides_runpath=yes
10273238104Sdes  hardcode_into_libs=yes
10274238104Sdes  # ldd complains unless libraries are executable
10275238104Sdes  postinstall_cmds='chmod +x $lib'
10276238104Sdes  ;;
10277238104Sdes
10278238104Sdessunos4*)
10279238104Sdes  version_type=sunos
10280238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281238104Sdes  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10282238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10283238104Sdes  shlibpath_overrides_runpath=yes
10284238104Sdes  if test "$with_gnu_ld" = yes; then
10285238104Sdes    need_lib_prefix=no
10286238104Sdes  fi
10287238104Sdes  need_version=yes
10288238104Sdes  ;;
10289238104Sdes
10290238104Sdessysv4 | sysv4.3*)
10291238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
10292238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10294238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10295238104Sdes  case $host_vendor in
10296238104Sdes    sni)
10297238104Sdes      shlibpath_overrides_runpath=no
10298238104Sdes      need_lib_prefix=no
10299238104Sdes      runpath_var=LD_RUN_PATH
10300238104Sdes      ;;
10301238104Sdes    siemens)
10302238104Sdes      need_lib_prefix=no
10303238104Sdes      ;;
10304238104Sdes    motorola)
10305238104Sdes      need_lib_prefix=no
10306238104Sdes      need_version=no
10307238104Sdes      shlibpath_overrides_runpath=no
10308238104Sdes      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10309238104Sdes      ;;
10310238104Sdes  esac
10311238104Sdes  ;;
10312238104Sdes
10313238104Sdessysv4*MP*)
10314238104Sdes  if test -d /usr/nec ;then
10315238104Sdes    version_type=linux # correct to gnu/linux during the next big refactor
10316238104Sdes    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10317238104Sdes    soname_spec='$libname${shared_ext}.$major'
10318238104Sdes    shlibpath_var=LD_LIBRARY_PATH
10319238104Sdes  fi
10320238104Sdes  ;;
10321238104Sdes
10322238104Sdessysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10323238104Sdes  version_type=freebsd-elf
10324238104Sdes  need_lib_prefix=no
10325238104Sdes  need_version=no
10326238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10327238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10328238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10329238104Sdes  shlibpath_overrides_runpath=yes
10330238104Sdes  hardcode_into_libs=yes
10331238104Sdes  if test "$with_gnu_ld" = yes; then
10332238104Sdes    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10333238104Sdes  else
10334238104Sdes    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10335238104Sdes    case $host_os in
10336238104Sdes      sco3.2v5*)
10337238104Sdes        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10338238104Sdes	;;
10339238104Sdes    esac
10340238104Sdes  fi
10341238104Sdes  sys_lib_dlsearch_path_spec='/usr/lib'
10342238104Sdes  ;;
10343238104Sdes
10344238104Sdestpf*)
10345238104Sdes  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10346238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
10347238104Sdes  need_lib_prefix=no
10348238104Sdes  need_version=no
10349238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10351238104Sdes  shlibpath_overrides_runpath=no
10352238104Sdes  hardcode_into_libs=yes
10353238104Sdes  ;;
10354238104Sdes
10355238104Sdesuts4*)
10356238104Sdes  version_type=linux # correct to gnu/linux during the next big refactor
10357238104Sdes  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358238104Sdes  soname_spec='${libname}${release}${shared_ext}$major'
10359238104Sdes  shlibpath_var=LD_LIBRARY_PATH
10360238104Sdes  ;;
10361238104Sdes
10362238104Sdes*)
10363238104Sdes  dynamic_linker=no
10364238104Sdes  ;;
10365238104Sdesesac
10366238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10367238104Sdes$as_echo "$dynamic_linker" >&6; }
10368238104Sdestest "$dynamic_linker" = no && can_build_shared=no
10369238104Sdes
10370238104Sdesvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10371238104Sdesif test "$GCC" = yes; then
10372238104Sdes  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10373238104Sdesfi
10374238104Sdes
10375238104Sdesif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10376238104Sdes  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10377238104Sdesfi
10378238104Sdesif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10379238104Sdes  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10380238104Sdesfi
10381238104Sdes
10382238104Sdes
10383238104Sdes
10384238104Sdes
10385238104Sdes
10386238104Sdes
10387238104Sdes
10388238104Sdes
10389238104Sdes
10390238104Sdes
10391238104Sdes
10392238104Sdes
10393238104Sdes
10394238104Sdes
10395238104Sdes
10396238104Sdes
10397238104Sdes
10398238104Sdes
10399238104Sdes
10400238104Sdes
10401238104Sdes
10402238104Sdes
10403238104Sdes
10404238104Sdes
10405238104Sdes
10406238104Sdes
10407238104Sdes
10408238104Sdes
10409238104Sdes
10410238104Sdes
10411238104Sdes
10412238104Sdes
10413238104Sdes
10414238104Sdes
10415238104Sdes
10416238104Sdes
10417238104Sdes
10418238104Sdes
10419238104Sdes
10420238104Sdes
10421238104Sdes
10422238104Sdes
10423238104Sdes
10424238104Sdes
10425238104Sdes
10426238104Sdes
10427238104Sdes
10428238104Sdes
10429238104Sdes
10430238104Sdes
10431238104Sdes
10432238104Sdes
10433238104Sdes
10434238104Sdes
10435238104Sdes
10436238104Sdes
10437238104Sdes
10438238104Sdes
10439238104Sdes
10440238104Sdes
10441238104Sdes
10442238104Sdes
10443238104Sdes
10444238104Sdes
10445238104Sdes
10446238104Sdes
10447238104Sdes
10448238104Sdes
10449238104Sdes
10450238104Sdes
10451238104Sdes
10452238104Sdes
10453238104Sdes
10454238104Sdes
10455238104Sdes
10456238104Sdes
10457238104Sdes
10458238104Sdes
10459238104Sdes
10460238104Sdes
10461238104Sdes
10462238104Sdes
10463238104Sdes
10464238104Sdes
10465238104Sdes
10466238104Sdes
10467238104Sdes
10468238104Sdes
10469238104Sdes
10470238104Sdes
10471238104Sdes
10472238104Sdes
10473238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10474238104Sdes$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10475238104Sdeshardcode_action=
10476238104Sdesif test -n "$hardcode_libdir_flag_spec" ||
10477238104Sdes   test -n "$runpath_var" ||
10478238104Sdes   test "X$hardcode_automatic" = "Xyes" ; then
10479238104Sdes
10480238104Sdes  # We can hardcode non-existent directories.
10481238104Sdes  if test "$hardcode_direct" != no &&
10482238104Sdes     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10483238104Sdes     # have to relink, otherwise we might link with an installed library
10484238104Sdes     # when we should be linking with a yet-to-be-installed one
10485238104Sdes     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10486238104Sdes     test "$hardcode_minus_L" != no; then
10487238104Sdes    # Linking always hardcodes the temporary library directory.
10488238104Sdes    hardcode_action=relink
10489238104Sdes  else
10490238104Sdes    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10491238104Sdes    hardcode_action=immediate
10492238104Sdes  fi
10493238104Sdeselse
10494238104Sdes  # We cannot hardcode anything, or else we can only hardcode existing
10495238104Sdes  # directories.
10496238104Sdes  hardcode_action=unsupported
10497238104Sdesfi
10498238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10499238104Sdes$as_echo "$hardcode_action" >&6; }
10500238104Sdes
10501238104Sdesif test "$hardcode_action" = relink ||
10502238104Sdes   test "$inherit_rpath" = yes; then
10503238104Sdes  # Fast installation is not supported
10504238104Sdes  enable_fast_install=no
10505238104Sdeselif test "$shlibpath_overrides_runpath" = yes ||
10506238104Sdes     test "$enable_shared" = no; then
10507238104Sdes  # Fast installation is not necessary
10508238104Sdes  enable_fast_install=needless
10509238104Sdesfi
10510238104Sdes
10511238104Sdes
10512238104Sdes
10513238104Sdes
10514238104Sdes
10515238104Sdes
10516238104Sdes  if test "x$enable_dlopen" != xyes; then
10517238104Sdes  enable_dlopen=unknown
10518238104Sdes  enable_dlopen_self=unknown
10519238104Sdes  enable_dlopen_self_static=unknown
10520238104Sdeselse
10521238104Sdes  lt_cv_dlopen=no
10522238104Sdes  lt_cv_dlopen_libs=
10523238104Sdes
10524238104Sdes  case $host_os in
10525238104Sdes  beos*)
10526238104Sdes    lt_cv_dlopen="load_add_on"
10527238104Sdes    lt_cv_dlopen_libs=
10528238104Sdes    lt_cv_dlopen_self=yes
10529238104Sdes    ;;
10530238104Sdes
10531238104Sdes  mingw* | pw32* | cegcc*)
10532238104Sdes    lt_cv_dlopen="LoadLibrary"
10533238104Sdes    lt_cv_dlopen_libs=
10534238104Sdes    ;;
10535238104Sdes
10536238104Sdes  cygwin*)
10537238104Sdes    lt_cv_dlopen="dlopen"
10538238104Sdes    lt_cv_dlopen_libs=
10539238104Sdes    ;;
10540238104Sdes
10541238104Sdes  darwin*)
10542238104Sdes  # if libdl is installed we need to link against it
10543238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10544238104Sdes$as_echo_n "checking for dlopen in -ldl... " >&6; }
10545238104Sdesif ${ac_cv_lib_dl_dlopen+:} false; then :
10546238104Sdes  $as_echo_n "(cached) " >&6
10547238104Sdeselse
10548238104Sdes  ac_check_lib_save_LIBS=$LIBS
10549238104SdesLIBS="-ldl  $LIBS"
10550238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551238104Sdes/* end confdefs.h.  */
10552238104Sdes
10553238104Sdes/* Override any GCC internal prototype to avoid an error.
10554238104Sdes   Use char because int might match the return type of a GCC
10555238104Sdes   builtin and then its argument prototype would still apply.  */
10556238104Sdes#ifdef __cplusplus
10557238104Sdesextern "C"
10558238104Sdes#endif
10559238104Sdeschar dlopen ();
10560238104Sdesint
10561238104Sdesmain ()
10562238104Sdes{
10563238104Sdesreturn dlopen ();
10564238104Sdes  ;
10565238104Sdes  return 0;
10566238104Sdes}
10567238104Sdes_ACEOF
10568238104Sdesif ac_fn_c_try_link "$LINENO"; then :
10569238104Sdes  ac_cv_lib_dl_dlopen=yes
10570238104Sdeselse
10571238104Sdes  ac_cv_lib_dl_dlopen=no
10572238104Sdesfi
10573238104Sdesrm -f core conftest.err conftest.$ac_objext \
10574238104Sdes    conftest$ac_exeext conftest.$ac_ext
10575238104SdesLIBS=$ac_check_lib_save_LIBS
10576238104Sdesfi
10577238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10578238104Sdes$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10579238104Sdesif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10580238104Sdes  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10581238104Sdeselse
10582238104Sdes
10583238104Sdes    lt_cv_dlopen="dyld"
10584238104Sdes    lt_cv_dlopen_libs=
10585238104Sdes    lt_cv_dlopen_self=yes
10586238104Sdes
10587238104Sdesfi
10588238104Sdes
10589238104Sdes    ;;
10590238104Sdes
10591238104Sdes  *)
10592238104Sdes    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10593238104Sdesif test "x$ac_cv_func_shl_load" = xyes; then :
10594238104Sdes  lt_cv_dlopen="shl_load"
10595238104Sdeselse
10596238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10597238104Sdes$as_echo_n "checking for shl_load in -ldld... " >&6; }
10598238104Sdesif ${ac_cv_lib_dld_shl_load+:} false; then :
10599238104Sdes  $as_echo_n "(cached) " >&6
10600238104Sdeselse
10601238104Sdes  ac_check_lib_save_LIBS=$LIBS
10602238104SdesLIBS="-ldld  $LIBS"
10603238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604238104Sdes/* end confdefs.h.  */
10605238104Sdes
10606238104Sdes/* Override any GCC internal prototype to avoid an error.
10607238104Sdes   Use char because int might match the return type of a GCC
10608238104Sdes   builtin and then its argument prototype would still apply.  */
10609238104Sdes#ifdef __cplusplus
10610238104Sdesextern "C"
10611238104Sdes#endif
10612238104Sdeschar shl_load ();
10613238104Sdesint
10614238104Sdesmain ()
10615238104Sdes{
10616238104Sdesreturn shl_load ();
10617238104Sdes  ;
10618238104Sdes  return 0;
10619238104Sdes}
10620238104Sdes_ACEOF
10621238104Sdesif ac_fn_c_try_link "$LINENO"; then :
10622238104Sdes  ac_cv_lib_dld_shl_load=yes
10623238104Sdeselse
10624238104Sdes  ac_cv_lib_dld_shl_load=no
10625238104Sdesfi
10626238104Sdesrm -f core conftest.err conftest.$ac_objext \
10627238104Sdes    conftest$ac_exeext conftest.$ac_ext
10628238104SdesLIBS=$ac_check_lib_save_LIBS
10629238104Sdesfi
10630238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10631238104Sdes$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10632238104Sdesif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10633238104Sdes  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10634238104Sdeselse
10635238104Sdes  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10636238104Sdesif test "x$ac_cv_func_dlopen" = xyes; then :
10637238104Sdes  lt_cv_dlopen="dlopen"
10638238104Sdeselse
10639238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10640238104Sdes$as_echo_n "checking for dlopen in -ldl... " >&6; }
10641238104Sdesif ${ac_cv_lib_dl_dlopen+:} false; then :
10642238104Sdes  $as_echo_n "(cached) " >&6
10643238104Sdeselse
10644238104Sdes  ac_check_lib_save_LIBS=$LIBS
10645238104SdesLIBS="-ldl  $LIBS"
10646238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647238104Sdes/* end confdefs.h.  */
10648238104Sdes
10649238104Sdes/* Override any GCC internal prototype to avoid an error.
10650238104Sdes   Use char because int might match the return type of a GCC
10651238104Sdes   builtin and then its argument prototype would still apply.  */
10652238104Sdes#ifdef __cplusplus
10653238104Sdesextern "C"
10654238104Sdes#endif
10655238104Sdeschar dlopen ();
10656238104Sdesint
10657238104Sdesmain ()
10658238104Sdes{
10659238104Sdesreturn dlopen ();
10660238104Sdes  ;
10661238104Sdes  return 0;
10662238104Sdes}
10663238104Sdes_ACEOF
10664238104Sdesif ac_fn_c_try_link "$LINENO"; then :
10665238104Sdes  ac_cv_lib_dl_dlopen=yes
10666238104Sdeselse
10667238104Sdes  ac_cv_lib_dl_dlopen=no
10668238104Sdesfi
10669238104Sdesrm -f core conftest.err conftest.$ac_objext \
10670238104Sdes    conftest$ac_exeext conftest.$ac_ext
10671238104SdesLIBS=$ac_check_lib_save_LIBS
10672238104Sdesfi
10673238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10674238104Sdes$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10675238104Sdesif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10676238104Sdes  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10677238104Sdeselse
10678238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10679238104Sdes$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10680238104Sdesif ${ac_cv_lib_svld_dlopen+:} false; then :
10681238104Sdes  $as_echo_n "(cached) " >&6
10682238104Sdeselse
10683238104Sdes  ac_check_lib_save_LIBS=$LIBS
10684238104SdesLIBS="-lsvld  $LIBS"
10685238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686238104Sdes/* end confdefs.h.  */
10687238104Sdes
10688238104Sdes/* Override any GCC internal prototype to avoid an error.
10689238104Sdes   Use char because int might match the return type of a GCC
10690238104Sdes   builtin and then its argument prototype would still apply.  */
10691238104Sdes#ifdef __cplusplus
10692238104Sdesextern "C"
10693238104Sdes#endif
10694238104Sdeschar dlopen ();
10695238104Sdesint
10696238104Sdesmain ()
10697238104Sdes{
10698238104Sdesreturn dlopen ();
10699238104Sdes  ;
10700238104Sdes  return 0;
10701238104Sdes}
10702238104Sdes_ACEOF
10703238104Sdesif ac_fn_c_try_link "$LINENO"; then :
10704238104Sdes  ac_cv_lib_svld_dlopen=yes
10705238104Sdeselse
10706238104Sdes  ac_cv_lib_svld_dlopen=no
10707238104Sdesfi
10708238104Sdesrm -f core conftest.err conftest.$ac_objext \
10709238104Sdes    conftest$ac_exeext conftest.$ac_ext
10710238104SdesLIBS=$ac_check_lib_save_LIBS
10711238104Sdesfi
10712238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10713238104Sdes$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10714238104Sdesif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10715238104Sdes  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10716238104Sdeselse
10717238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10718238104Sdes$as_echo_n "checking for dld_link in -ldld... " >&6; }
10719238104Sdesif ${ac_cv_lib_dld_dld_link+:} false; then :
10720238104Sdes  $as_echo_n "(cached) " >&6
10721238104Sdeselse
10722238104Sdes  ac_check_lib_save_LIBS=$LIBS
10723238104SdesLIBS="-ldld  $LIBS"
10724238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725238104Sdes/* end confdefs.h.  */
10726238104Sdes
10727238104Sdes/* Override any GCC internal prototype to avoid an error.
10728238104Sdes   Use char because int might match the return type of a GCC
10729238104Sdes   builtin and then its argument prototype would still apply.  */
10730238104Sdes#ifdef __cplusplus
10731238104Sdesextern "C"
10732238104Sdes#endif
10733238104Sdeschar dld_link ();
10734238104Sdesint
10735238104Sdesmain ()
10736238104Sdes{
10737238104Sdesreturn dld_link ();
10738238104Sdes  ;
10739238104Sdes  return 0;
10740238104Sdes}
10741238104Sdes_ACEOF
10742238104Sdesif ac_fn_c_try_link "$LINENO"; then :
10743238104Sdes  ac_cv_lib_dld_dld_link=yes
10744238104Sdeselse
10745238104Sdes  ac_cv_lib_dld_dld_link=no
10746238104Sdesfi
10747238104Sdesrm -f core conftest.err conftest.$ac_objext \
10748238104Sdes    conftest$ac_exeext conftest.$ac_ext
10749238104SdesLIBS=$ac_check_lib_save_LIBS
10750238104Sdesfi
10751238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10752238104Sdes$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10753238104Sdesif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10754238104Sdes  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10755238104Sdesfi
10756238104Sdes
10757238104Sdes
10758238104Sdesfi
10759238104Sdes
10760238104Sdes
10761238104Sdesfi
10762238104Sdes
10763238104Sdes
10764238104Sdesfi
10765238104Sdes
10766238104Sdes
10767238104Sdesfi
10768238104Sdes
10769238104Sdes
10770238104Sdesfi
10771238104Sdes
10772238104Sdes    ;;
10773238104Sdes  esac
10774238104Sdes
10775238104Sdes  if test "x$lt_cv_dlopen" != xno; then
10776238104Sdes    enable_dlopen=yes
10777238104Sdes  else
10778238104Sdes    enable_dlopen=no
10779238104Sdes  fi
10780238104Sdes
10781238104Sdes  case $lt_cv_dlopen in
10782238104Sdes  dlopen)
10783238104Sdes    save_CPPFLAGS="$CPPFLAGS"
10784238104Sdes    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10785238104Sdes
10786238104Sdes    save_LDFLAGS="$LDFLAGS"
10787238104Sdes    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10788238104Sdes
10789238104Sdes    save_LIBS="$LIBS"
10790238104Sdes    LIBS="$lt_cv_dlopen_libs $LIBS"
10791238104Sdes
10792238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10793238104Sdes$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10794238104Sdesif ${lt_cv_dlopen_self+:} false; then :
10795238104Sdes  $as_echo_n "(cached) " >&6
10796238104Sdeselse
10797238104Sdes  	  if test "$cross_compiling" = yes; then :
10798238104Sdes  lt_cv_dlopen_self=cross
10799238104Sdeselse
10800238104Sdes  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10801238104Sdes  lt_status=$lt_dlunknown
10802238104Sdes  cat > conftest.$ac_ext <<_LT_EOF
10803238104Sdes#line $LINENO "configure"
10804238104Sdes#include "confdefs.h"
10805238104Sdes
10806238104Sdes#if HAVE_DLFCN_H
10807238104Sdes#include <dlfcn.h>
10808238104Sdes#endif
10809238104Sdes
10810238104Sdes#include <stdio.h>
10811238104Sdes
10812238104Sdes#ifdef RTLD_GLOBAL
10813238104Sdes#  define LT_DLGLOBAL		RTLD_GLOBAL
10814238104Sdes#else
10815238104Sdes#  ifdef DL_GLOBAL
10816238104Sdes#    define LT_DLGLOBAL		DL_GLOBAL
10817238104Sdes#  else
10818238104Sdes#    define LT_DLGLOBAL		0
10819238104Sdes#  endif
10820238104Sdes#endif
10821238104Sdes
10822238104Sdes/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10823238104Sdes   find out it does not work in some platform. */
10824238104Sdes#ifndef LT_DLLAZY_OR_NOW
10825238104Sdes#  ifdef RTLD_LAZY
10826238104Sdes#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10827238104Sdes#  else
10828238104Sdes#    ifdef DL_LAZY
10829238104Sdes#      define LT_DLLAZY_OR_NOW		DL_LAZY
10830238104Sdes#    else
10831238104Sdes#      ifdef RTLD_NOW
10832238104Sdes#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10833238104Sdes#      else
10834238104Sdes#        ifdef DL_NOW
10835238104Sdes#          define LT_DLLAZY_OR_NOW	DL_NOW
10836238104Sdes#        else
10837238104Sdes#          define LT_DLLAZY_OR_NOW	0
10838238104Sdes#        endif
10839238104Sdes#      endif
10840238104Sdes#    endif
10841238104Sdes#  endif
10842238104Sdes#endif
10843238104Sdes
10844238104Sdes/* When -fvisbility=hidden is used, assume the code has been annotated
10845238104Sdes   correspondingly for the symbols needed.  */
10846238104Sdes#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10847238104Sdesint fnord () __attribute__((visibility("default")));
10848238104Sdes#endif
10849238104Sdes
10850238104Sdesint fnord () { return 42; }
10851238104Sdesint main ()
10852238104Sdes{
10853238104Sdes  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10854238104Sdes  int status = $lt_dlunknown;
10855238104Sdes
10856238104Sdes  if (self)
10857238104Sdes    {
10858238104Sdes      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10859238104Sdes      else
10860238104Sdes        {
10861238104Sdes	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10862238104Sdes          else puts (dlerror ());
10863238104Sdes	}
10864238104Sdes      /* dlclose (self); */
10865238104Sdes    }
10866238104Sdes  else
10867238104Sdes    puts (dlerror ());
10868238104Sdes
10869238104Sdes  return status;
10870238104Sdes}
10871238104Sdes_LT_EOF
10872238104Sdes  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10873238104Sdes  (eval $ac_link) 2>&5
10874238104Sdes  ac_status=$?
10875238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876238104Sdes  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10877238104Sdes    (./conftest; exit; ) >&5 2>/dev/null
10878238104Sdes    lt_status=$?
10879238104Sdes    case x$lt_status in
10880238104Sdes      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10881238104Sdes      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10882238104Sdes      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10883238104Sdes    esac
10884238104Sdes  else :
10885238104Sdes    # compilation failed
10886238104Sdes    lt_cv_dlopen_self=no
10887238104Sdes  fi
10888238104Sdesfi
10889238104Sdesrm -fr conftest*
10890238104Sdes
10891238104Sdes
10892238104Sdesfi
10893238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10894238104Sdes$as_echo "$lt_cv_dlopen_self" >&6; }
10895238104Sdes
10896238104Sdes    if test "x$lt_cv_dlopen_self" = xyes; then
10897238104Sdes      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10898238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10899238104Sdes$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10900238104Sdesif ${lt_cv_dlopen_self_static+:} false; then :
10901238104Sdes  $as_echo_n "(cached) " >&6
10902238104Sdeselse
10903238104Sdes  	  if test "$cross_compiling" = yes; then :
10904238104Sdes  lt_cv_dlopen_self_static=cross
10905238104Sdeselse
10906238104Sdes  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10907238104Sdes  lt_status=$lt_dlunknown
10908238104Sdes  cat > conftest.$ac_ext <<_LT_EOF
10909238104Sdes#line $LINENO "configure"
10910238104Sdes#include "confdefs.h"
10911238104Sdes
10912238104Sdes#if HAVE_DLFCN_H
10913238104Sdes#include <dlfcn.h>
10914238104Sdes#endif
10915238104Sdes
10916238104Sdes#include <stdio.h>
10917238104Sdes
10918238104Sdes#ifdef RTLD_GLOBAL
10919238104Sdes#  define LT_DLGLOBAL		RTLD_GLOBAL
10920238104Sdes#else
10921238104Sdes#  ifdef DL_GLOBAL
10922238104Sdes#    define LT_DLGLOBAL		DL_GLOBAL
10923238104Sdes#  else
10924238104Sdes#    define LT_DLGLOBAL		0
10925238104Sdes#  endif
10926238104Sdes#endif
10927238104Sdes
10928238104Sdes/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10929238104Sdes   find out it does not work in some platform. */
10930238104Sdes#ifndef LT_DLLAZY_OR_NOW
10931238104Sdes#  ifdef RTLD_LAZY
10932238104Sdes#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10933238104Sdes#  else
10934238104Sdes#    ifdef DL_LAZY
10935238104Sdes#      define LT_DLLAZY_OR_NOW		DL_LAZY
10936238104Sdes#    else
10937238104Sdes#      ifdef RTLD_NOW
10938238104Sdes#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10939238104Sdes#      else
10940238104Sdes#        ifdef DL_NOW
10941238104Sdes#          define LT_DLLAZY_OR_NOW	DL_NOW
10942238104Sdes#        else
10943238104Sdes#          define LT_DLLAZY_OR_NOW	0
10944238104Sdes#        endif
10945238104Sdes#      endif
10946238104Sdes#    endif
10947238104Sdes#  endif
10948238104Sdes#endif
10949238104Sdes
10950238104Sdes/* When -fvisbility=hidden is used, assume the code has been annotated
10951238104Sdes   correspondingly for the symbols needed.  */
10952238104Sdes#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10953238104Sdesint fnord () __attribute__((visibility("default")));
10954238104Sdes#endif
10955238104Sdes
10956238104Sdesint fnord () { return 42; }
10957238104Sdesint main ()
10958238104Sdes{
10959238104Sdes  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960238104Sdes  int status = $lt_dlunknown;
10961238104Sdes
10962238104Sdes  if (self)
10963238104Sdes    {
10964238104Sdes      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10965238104Sdes      else
10966238104Sdes        {
10967238104Sdes	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10968238104Sdes          else puts (dlerror ());
10969238104Sdes	}
10970238104Sdes      /* dlclose (self); */
10971238104Sdes    }
10972238104Sdes  else
10973238104Sdes    puts (dlerror ());
10974238104Sdes
10975238104Sdes  return status;
10976238104Sdes}
10977238104Sdes_LT_EOF
10978238104Sdes  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10979238104Sdes  (eval $ac_link) 2>&5
10980238104Sdes  ac_status=$?
10981238104Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982238104Sdes  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10983238104Sdes    (./conftest; exit; ) >&5 2>/dev/null
10984238104Sdes    lt_status=$?
10985238104Sdes    case x$lt_status in
10986238104Sdes      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10987238104Sdes      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10988238104Sdes      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10989238104Sdes    esac
10990238104Sdes  else :
10991238104Sdes    # compilation failed
10992238104Sdes    lt_cv_dlopen_self_static=no
10993238104Sdes  fi
10994238104Sdesfi
10995238104Sdesrm -fr conftest*
10996238104Sdes
10997238104Sdes
10998238104Sdesfi
10999238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11000238104Sdes$as_echo "$lt_cv_dlopen_self_static" >&6; }
11001238104Sdes    fi
11002238104Sdes
11003238104Sdes    CPPFLAGS="$save_CPPFLAGS"
11004238104Sdes    LDFLAGS="$save_LDFLAGS"
11005238104Sdes    LIBS="$save_LIBS"
11006238104Sdes    ;;
11007238104Sdes  esac
11008238104Sdes
11009238104Sdes  case $lt_cv_dlopen_self in
11010238104Sdes  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11011238104Sdes  *) enable_dlopen_self=unknown ;;
11012238104Sdes  esac
11013238104Sdes
11014238104Sdes  case $lt_cv_dlopen_self_static in
11015238104Sdes  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11016238104Sdes  *) enable_dlopen_self_static=unknown ;;
11017238104Sdes  esac
11018238104Sdesfi
11019238104Sdes
11020238104Sdes
11021238104Sdes
11022238104Sdes
11023238104Sdes
11024238104Sdes
11025238104Sdes
11026238104Sdes
11027238104Sdes
11028238104Sdes
11029238104Sdes
11030238104Sdes
11031238104Sdes
11032238104Sdes
11033238104Sdes
11034238104Sdes
11035238104Sdes
11036238104Sdesstriplib=
11037238104Sdesold_striplib=
11038238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11039238104Sdes$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11040238104Sdesif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11041238104Sdes  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11042238104Sdes  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11043238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11044238104Sdes$as_echo "yes" >&6; }
11045238104Sdeselse
11046238104Sdes# FIXME - insert some real tests, host_os isn't really good enough
11047238104Sdes  case $host_os in
11048238104Sdes  darwin*)
11049238104Sdes    if test -n "$STRIP" ; then
11050238104Sdes      striplib="$STRIP -x"
11051238104Sdes      old_striplib="$STRIP -S"
11052238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11053238104Sdes$as_echo "yes" >&6; }
11054238104Sdes    else
11055238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056238104Sdes$as_echo "no" >&6; }
11057238104Sdes    fi
11058238104Sdes    ;;
11059238104Sdes  *)
11060238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061238104Sdes$as_echo "no" >&6; }
11062238104Sdes    ;;
11063238104Sdes  esac
11064238104Sdesfi
11065238104Sdes
11066238104Sdes
11067238104Sdes
11068238104Sdes
11069238104Sdes
11070238104Sdes
11071238104Sdes
11072238104Sdes
11073238104Sdes
11074238104Sdes
11075238104Sdes
11076238104Sdes
11077238104Sdes  # Report which library types will actually be built
11078238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11079238104Sdes$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11080238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11081238104Sdes$as_echo "$can_build_shared" >&6; }
11082238104Sdes
11083238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11084238104Sdes$as_echo_n "checking whether to build shared libraries... " >&6; }
11085238104Sdes  test "$can_build_shared" = "no" && enable_shared=no
11086238104Sdes
11087238104Sdes  # On AIX, shared libraries and static libraries use the same namespace, and
11088238104Sdes  # are all built from PIC.
11089238104Sdes  case $host_os in
11090238104Sdes  aix3*)
11091238104Sdes    test "$enable_shared" = yes && enable_static=no
11092238104Sdes    if test -n "$RANLIB"; then
11093238104Sdes      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11094238104Sdes      postinstall_cmds='$RANLIB $lib'
11095238104Sdes    fi
11096238104Sdes    ;;
11097238104Sdes
11098238104Sdes  aix[4-9]*)
11099238104Sdes    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11100238104Sdes      test "$enable_shared" = yes && enable_static=no
11101238104Sdes    fi
11102238104Sdes    ;;
11103238104Sdes  esac
11104238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11105238104Sdes$as_echo "$enable_shared" >&6; }
11106238104Sdes
11107238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11108238104Sdes$as_echo_n "checking whether to build static libraries... " >&6; }
11109238104Sdes  # Make sure either enable_shared or enable_static is yes.
11110238104Sdes  test "$enable_shared" = yes || enable_static=yes
11111238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11112238104Sdes$as_echo "$enable_static" >&6; }
11113238104Sdes
11114238104Sdes
11115238104Sdes
11116238104Sdes
11117238104Sdesfi
11118238104Sdesac_ext=c
11119238104Sdesac_cpp='$CPP $CPPFLAGS'
11120238104Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11121238104Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11122238104Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
11123238104Sdes
11124238104SdesCC="$lt_save_CC"
11125238104Sdes
11126238104Sdes
11127238104Sdes
11128238104Sdes
11129238104Sdes
11130238104Sdes
11131238104Sdes
11132238104Sdes
11133238104Sdes
11134238104Sdes
11135238104Sdes
11136238104Sdes
11137238104Sdes
11138238104Sdes
11139238104Sdes
11140238104Sdes        ac_config_commands="$ac_config_commands libtool"
11141238104Sdes
11142238104Sdes
11143238104Sdes
11144238104Sdes
11145238104Sdes# Only expand once:
11146238104Sdes
11147238104Sdes
11148238104Sdes
11149238104Sdes
11150269257SdesOURCPPFLAGS=''
11151269257SdesCPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
11152269257SdesCFLAGS="$CFLAGS"
11153269257Sdes
11154269257Sdes# Checks for programs.
11155269257Sdesac_ext=c
11156269257Sdesac_cpp='$CPP $CPPFLAGS'
11157269257Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11158269257Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11159269257Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
11160269257Sdesif test -n "$ac_tool_prefix"; then
11161269257Sdes  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11162269257Sdesset dummy ${ac_tool_prefix}gcc; ac_word=$2
11163269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
11165269257Sdesif ${ac_cv_prog_CC+:} false; then :
11166269257Sdes  $as_echo_n "(cached) " >&6
11167269257Sdeselse
11168269257Sdes  if test -n "$CC"; then
11169269257Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
11170269257Sdeselse
11171269257Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172269257Sdesfor as_dir in $PATH
11173269257Sdesdo
11174269257Sdes  IFS=$as_save_IFS
11175269257Sdes  test -z "$as_dir" && as_dir=.
11176269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
11177285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11178269257Sdes    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11179269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180269257Sdes    break 2
11181269257Sdes  fi
11182269257Sdesdone
11183269257Sdes  done
11184269257SdesIFS=$as_save_IFS
11185269257Sdes
11186269257Sdesfi
11187269257Sdesfi
11188269257SdesCC=$ac_cv_prog_CC
11189269257Sdesif test -n "$CC"; then
11190269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11191269257Sdes$as_echo "$CC" >&6; }
11192269257Sdeselse
11193269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194269257Sdes$as_echo "no" >&6; }
11195269257Sdesfi
11196269257Sdes
11197269257Sdes
11198269257Sdesfi
11199269257Sdesif test -z "$ac_cv_prog_CC"; then
11200269257Sdes  ac_ct_CC=$CC
11201269257Sdes  # Extract the first word of "gcc", so it can be a program name with args.
11202269257Sdesset dummy gcc; ac_word=$2
11203269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
11205269257Sdesif ${ac_cv_prog_ac_ct_CC+:} false; then :
11206269257Sdes  $as_echo_n "(cached) " >&6
11207269257Sdeselse
11208269257Sdes  if test -n "$ac_ct_CC"; then
11209269257Sdes  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11210269257Sdeselse
11211269257Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212269257Sdesfor as_dir in $PATH
11213269257Sdesdo
11214269257Sdes  IFS=$as_save_IFS
11215269257Sdes  test -z "$as_dir" && as_dir=.
11216269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
11217285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11218269257Sdes    ac_cv_prog_ac_ct_CC="gcc"
11219269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220269257Sdes    break 2
11221269257Sdes  fi
11222269257Sdesdone
11223269257Sdes  done
11224269257SdesIFS=$as_save_IFS
11225269257Sdes
11226269257Sdesfi
11227269257Sdesfi
11228269257Sdesac_ct_CC=$ac_cv_prog_ac_ct_CC
11229269257Sdesif test -n "$ac_ct_CC"; then
11230269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11231269257Sdes$as_echo "$ac_ct_CC" >&6; }
11232269257Sdeselse
11233269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234269257Sdes$as_echo "no" >&6; }
11235269257Sdesfi
11236269257Sdes
11237269257Sdes  if test "x$ac_ct_CC" = x; then
11238269257Sdes    CC=""
11239269257Sdes  else
11240269257Sdes    case $cross_compiling:$ac_tool_warned in
11241269257Sdesyes:)
11242269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11243269257Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11244269257Sdesac_tool_warned=yes ;;
11245269257Sdesesac
11246269257Sdes    CC=$ac_ct_CC
11247269257Sdes  fi
11248269257Sdeselse
11249269257Sdes  CC="$ac_cv_prog_CC"
11250269257Sdesfi
11251269257Sdes
11252269257Sdesif test -z "$CC"; then
11253269257Sdes          if test -n "$ac_tool_prefix"; then
11254269257Sdes    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11255269257Sdesset dummy ${ac_tool_prefix}cc; ac_word=$2
11256269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
11258269257Sdesif ${ac_cv_prog_CC+:} false; then :
11259269257Sdes  $as_echo_n "(cached) " >&6
11260269257Sdeselse
11261269257Sdes  if test -n "$CC"; then
11262269257Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
11263269257Sdeselse
11264269257Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265269257Sdesfor as_dir in $PATH
11266269257Sdesdo
11267269257Sdes  IFS=$as_save_IFS
11268269257Sdes  test -z "$as_dir" && as_dir=.
11269269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
11270285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271269257Sdes    ac_cv_prog_CC="${ac_tool_prefix}cc"
11272269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273269257Sdes    break 2
11274269257Sdes  fi
11275269257Sdesdone
11276269257Sdes  done
11277269257SdesIFS=$as_save_IFS
11278269257Sdes
11279269257Sdesfi
11280269257Sdesfi
11281269257SdesCC=$ac_cv_prog_CC
11282269257Sdesif test -n "$CC"; then
11283269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11284269257Sdes$as_echo "$CC" >&6; }
11285269257Sdeselse
11286269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287269257Sdes$as_echo "no" >&6; }
11288269257Sdesfi
11289269257Sdes
11290269257Sdes
11291269257Sdes  fi
11292269257Sdesfi
11293269257Sdesif test -z "$CC"; then
11294269257Sdes  # Extract the first word of "cc", so it can be a program name with args.
11295269257Sdesset dummy cc; ac_word=$2
11296269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
11298269257Sdesif ${ac_cv_prog_CC+:} false; then :
11299269257Sdes  $as_echo_n "(cached) " >&6
11300269257Sdeselse
11301269257Sdes  if test -n "$CC"; then
11302269257Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
11303269257Sdeselse
11304269257Sdes  ac_prog_rejected=no
11305269257Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306269257Sdesfor as_dir in $PATH
11307269257Sdesdo
11308269257Sdes  IFS=$as_save_IFS
11309269257Sdes  test -z "$as_dir" && as_dir=.
11310269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
11311285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312269257Sdes    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11313269257Sdes       ac_prog_rejected=yes
11314269257Sdes       continue
11315269257Sdes     fi
11316269257Sdes    ac_cv_prog_CC="cc"
11317269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11318269257Sdes    break 2
11319269257Sdes  fi
11320269257Sdesdone
11321269257Sdes  done
11322269257SdesIFS=$as_save_IFS
11323269257Sdes
11324269257Sdesif test $ac_prog_rejected = yes; then
11325269257Sdes  # We found a bogon in the path, so make sure we never use it.
11326269257Sdes  set dummy $ac_cv_prog_CC
11327269257Sdes  shift
11328269257Sdes  if test $# != 0; then
11329269257Sdes    # We chose a different compiler from the bogus one.
11330269257Sdes    # However, it has the same basename, so the bogon will be chosen
11331269257Sdes    # first if we set CC to just the basename; use the full file name.
11332269257Sdes    shift
11333269257Sdes    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11334269257Sdes  fi
11335269257Sdesfi
11336269257Sdesfi
11337269257Sdesfi
11338269257SdesCC=$ac_cv_prog_CC
11339269257Sdesif test -n "$CC"; then
11340269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11341269257Sdes$as_echo "$CC" >&6; }
11342269257Sdeselse
11343269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344269257Sdes$as_echo "no" >&6; }
11345269257Sdesfi
11346269257Sdes
11347269257Sdes
11348269257Sdesfi
11349269257Sdesif test -z "$CC"; then
11350269257Sdes  if test -n "$ac_tool_prefix"; then
11351269257Sdes  for ac_prog in cl.exe
11352269257Sdes  do
11353269257Sdes    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11354269257Sdesset dummy $ac_tool_prefix$ac_prog; ac_word=$2
11355269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
11357269257Sdesif ${ac_cv_prog_CC+:} false; then :
11358269257Sdes  $as_echo_n "(cached) " >&6
11359269257Sdeselse
11360269257Sdes  if test -n "$CC"; then
11361269257Sdes  ac_cv_prog_CC="$CC" # Let the user override the test.
11362269257Sdeselse
11363269257Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364269257Sdesfor as_dir in $PATH
11365269257Sdesdo
11366269257Sdes  IFS=$as_save_IFS
11367269257Sdes  test -z "$as_dir" && as_dir=.
11368269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
11369285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370269257Sdes    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11371269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372269257Sdes    break 2
11373269257Sdes  fi
11374269257Sdesdone
11375269257Sdes  done
11376269257SdesIFS=$as_save_IFS
11377269257Sdes
11378269257Sdesfi
11379269257Sdesfi
11380269257SdesCC=$ac_cv_prog_CC
11381269257Sdesif test -n "$CC"; then
11382269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11383269257Sdes$as_echo "$CC" >&6; }
11384269257Sdeselse
11385269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386269257Sdes$as_echo "no" >&6; }
11387269257Sdesfi
11388269257Sdes
11389269257Sdes
11390269257Sdes    test -n "$CC" && break
11391269257Sdes  done
11392269257Sdesfi
11393269257Sdesif test -z "$CC"; then
11394269257Sdes  ac_ct_CC=$CC
11395269257Sdes  for ac_prog in cl.exe
11396269257Sdesdo
11397269257Sdes  # Extract the first word of "$ac_prog", so it can be a program name with args.
11398269257Sdesset dummy $ac_prog; ac_word=$2
11399269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
11401269257Sdesif ${ac_cv_prog_ac_ct_CC+:} false; then :
11402269257Sdes  $as_echo_n "(cached) " >&6
11403269257Sdeselse
11404269257Sdes  if test -n "$ac_ct_CC"; then
11405269257Sdes  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11406269257Sdeselse
11407269257Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408269257Sdesfor as_dir in $PATH
11409269257Sdesdo
11410269257Sdes  IFS=$as_save_IFS
11411269257Sdes  test -z "$as_dir" && as_dir=.
11412269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
11413285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11414269257Sdes    ac_cv_prog_ac_ct_CC="$ac_prog"
11415269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416269257Sdes    break 2
11417269257Sdes  fi
11418269257Sdesdone
11419269257Sdes  done
11420269257SdesIFS=$as_save_IFS
11421269257Sdes
11422269257Sdesfi
11423269257Sdesfi
11424269257Sdesac_ct_CC=$ac_cv_prog_ac_ct_CC
11425269257Sdesif test -n "$ac_ct_CC"; then
11426269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11427269257Sdes$as_echo "$ac_ct_CC" >&6; }
11428269257Sdeselse
11429269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430269257Sdes$as_echo "no" >&6; }
11431269257Sdesfi
11432269257Sdes
11433269257Sdes
11434269257Sdes  test -n "$ac_ct_CC" && break
11435269257Sdesdone
11436269257Sdes
11437269257Sdes  if test "x$ac_ct_CC" = x; then
11438269257Sdes    CC=""
11439269257Sdes  else
11440269257Sdes    case $cross_compiling:$ac_tool_warned in
11441269257Sdesyes:)
11442269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11443269257Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11444269257Sdesac_tool_warned=yes ;;
11445269257Sdesesac
11446269257Sdes    CC=$ac_ct_CC
11447269257Sdes  fi
11448269257Sdesfi
11449269257Sdes
11450269257Sdesfi
11451269257Sdes
11452269257Sdes
11453269257Sdestest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11454269257Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11455269257Sdesas_fn_error $? "no acceptable C compiler found in \$PATH
11456269257SdesSee \`config.log' for more details" "$LINENO" 5; }
11457269257Sdes
11458269257Sdes# Provide some information about the compiler.
11459269257Sdes$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11460269257Sdesset X $ac_compile
11461269257Sdesac_compiler=$2
11462269257Sdesfor ac_option in --version -v -V -qversion; do
11463269257Sdes  { { ac_try="$ac_compiler $ac_option >&5"
11464269257Sdescase "(($ac_try" in
11465269257Sdes  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466269257Sdes  *) ac_try_echo=$ac_try;;
11467269257Sdesesac
11468269257Sdeseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11469269257Sdes$as_echo "$ac_try_echo"; } >&5
11470269257Sdes  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11471269257Sdes  ac_status=$?
11472269257Sdes  if test -s conftest.err; then
11473269257Sdes    sed '10a\
11474269257Sdes... rest of stderr output deleted ...
11475269257Sdes         10q' conftest.err >conftest.er1
11476269257Sdes    cat conftest.er1 >&5
11477269257Sdes  fi
11478269257Sdes  rm -f conftest.er1 conftest.err
11479269257Sdes  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480269257Sdes  test $ac_status = 0; }
11481269257Sdesdone
11482269257Sdes
11483269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11484269257Sdes$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11485269257Sdesif ${ac_cv_c_compiler_gnu+:} false; then :
11486269257Sdes  $as_echo_n "(cached) " >&6
11487269257Sdeselse
11488269257Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489269257Sdes/* end confdefs.h.  */
11490269257Sdes
11491269257Sdesint
11492269257Sdesmain ()
11493269257Sdes{
11494269257Sdes#ifndef __GNUC__
11495269257Sdes       choke me
11496269257Sdes#endif
11497269257Sdes
11498269257Sdes  ;
11499269257Sdes  return 0;
11500269257Sdes}
11501269257Sdes_ACEOF
11502269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
11503269257Sdes  ac_compiler_gnu=yes
11504269257Sdeselse
11505269257Sdes  ac_compiler_gnu=no
11506269257Sdesfi
11507269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508269257Sdesac_cv_c_compiler_gnu=$ac_compiler_gnu
11509269257Sdes
11510269257Sdesfi
11511269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11512269257Sdes$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11513269257Sdesif test $ac_compiler_gnu = yes; then
11514269257Sdes  GCC=yes
11515269257Sdeselse
11516269257Sdes  GCC=
11517269257Sdesfi
11518269257Sdesac_test_CFLAGS=${CFLAGS+set}
11519269257Sdesac_save_CFLAGS=$CFLAGS
11520269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11521269257Sdes$as_echo_n "checking whether $CC accepts -g... " >&6; }
11522269257Sdesif ${ac_cv_prog_cc_g+:} false; then :
11523269257Sdes  $as_echo_n "(cached) " >&6
11524269257Sdeselse
11525269257Sdes  ac_save_c_werror_flag=$ac_c_werror_flag
11526269257Sdes   ac_c_werror_flag=yes
11527269257Sdes   ac_cv_prog_cc_g=no
11528269257Sdes   CFLAGS="-g"
11529269257Sdes   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530269257Sdes/* end confdefs.h.  */
11531269257Sdes
11532269257Sdesint
11533269257Sdesmain ()
11534269257Sdes{
11535269257Sdes
11536269257Sdes  ;
11537269257Sdes  return 0;
11538269257Sdes}
11539269257Sdes_ACEOF
11540269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
11541269257Sdes  ac_cv_prog_cc_g=yes
11542269257Sdeselse
11543269257Sdes  CFLAGS=""
11544269257Sdes      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545269257Sdes/* end confdefs.h.  */
11546269257Sdes
11547269257Sdesint
11548269257Sdesmain ()
11549269257Sdes{
11550269257Sdes
11551269257Sdes  ;
11552269257Sdes  return 0;
11553269257Sdes}
11554269257Sdes_ACEOF
11555269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
11556269257Sdes
11557269257Sdeselse
11558269257Sdes  ac_c_werror_flag=$ac_save_c_werror_flag
11559269257Sdes	 CFLAGS="-g"
11560269257Sdes	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561269257Sdes/* end confdefs.h.  */
11562269257Sdes
11563269257Sdesint
11564269257Sdesmain ()
11565269257Sdes{
11566269257Sdes
11567269257Sdes  ;
11568269257Sdes  return 0;
11569269257Sdes}
11570269257Sdes_ACEOF
11571269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
11572269257Sdes  ac_cv_prog_cc_g=yes
11573269257Sdesfi
11574269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575269257Sdesfi
11576269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577269257Sdesfi
11578269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579269257Sdes   ac_c_werror_flag=$ac_save_c_werror_flag
11580269257Sdesfi
11581269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11582269257Sdes$as_echo "$ac_cv_prog_cc_g" >&6; }
11583269257Sdesif test "$ac_test_CFLAGS" = set; then
11584269257Sdes  CFLAGS=$ac_save_CFLAGS
11585269257Sdeselif test $ac_cv_prog_cc_g = yes; then
11586269257Sdes  if test "$GCC" = yes; then
11587269257Sdes    CFLAGS="-g -O2"
11588269257Sdes  else
11589269257Sdes    CFLAGS="-g"
11590269257Sdes  fi
11591269257Sdeselse
11592269257Sdes  if test "$GCC" = yes; then
11593269257Sdes    CFLAGS="-O2"
11594269257Sdes  else
11595269257Sdes    CFLAGS=
11596269257Sdes  fi
11597269257Sdesfi
11598269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11599269257Sdes$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11600269257Sdesif ${ac_cv_prog_cc_c89+:} false; then :
11601269257Sdes  $as_echo_n "(cached) " >&6
11602269257Sdeselse
11603269257Sdes  ac_cv_prog_cc_c89=no
11604269257Sdesac_save_CC=$CC
11605269257Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606269257Sdes/* end confdefs.h.  */
11607269257Sdes#include <stdarg.h>
11608269257Sdes#include <stdio.h>
11609285206Sdesstruct stat;
11610269257Sdes/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11611269257Sdesstruct buf { int x; };
11612269257SdesFILE * (*rcsopen) (struct buf *, struct stat *, int);
11613269257Sdesstatic char *e (p, i)
11614269257Sdes     char **p;
11615269257Sdes     int i;
11616269257Sdes{
11617269257Sdes  return p[i];
11618269257Sdes}
11619269257Sdesstatic char *f (char * (*g) (char **, int), char **p, ...)
11620269257Sdes{
11621269257Sdes  char *s;
11622269257Sdes  va_list v;
11623269257Sdes  va_start (v,p);
11624269257Sdes  s = g (p, va_arg (v,int));
11625269257Sdes  va_end (v);
11626269257Sdes  return s;
11627269257Sdes}
11628269257Sdes
11629269257Sdes/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11630269257Sdes   function prototypes and stuff, but not '\xHH' hex character constants.
11631269257Sdes   These don't provoke an error unfortunately, instead are silently treated
11632269257Sdes   as 'x'.  The following induces an error, until -std is added to get
11633269257Sdes   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11634269257Sdes   array size at least.  It's necessary to write '\x00'==0 to get something
11635269257Sdes   that's true only with -std.  */
11636269257Sdesint osf4_cc_array ['\x00' == 0 ? 1 : -1];
11637269257Sdes
11638269257Sdes/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11639269257Sdes   inside strings and character constants.  */
11640269257Sdes#define FOO(x) 'x'
11641269257Sdesint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11642269257Sdes
11643269257Sdesint test (int i, double x);
11644269257Sdesstruct s1 {int (*f) (int a);};
11645269257Sdesstruct s2 {int (*f) (double a);};
11646269257Sdesint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11647269257Sdesint argc;
11648269257Sdeschar **argv;
11649269257Sdesint
11650269257Sdesmain ()
11651269257Sdes{
11652269257Sdesreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11653269257Sdes  ;
11654269257Sdes  return 0;
11655269257Sdes}
11656269257Sdes_ACEOF
11657269257Sdesfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11658269257Sdes	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11659269257Sdesdo
11660269257Sdes  CC="$ac_save_CC $ac_arg"
11661269257Sdes  if ac_fn_c_try_compile "$LINENO"; then :
11662269257Sdes  ac_cv_prog_cc_c89=$ac_arg
11663269257Sdesfi
11664269257Sdesrm -f core conftest.err conftest.$ac_objext
11665269257Sdes  test "x$ac_cv_prog_cc_c89" != "xno" && break
11666269257Sdesdone
11667269257Sdesrm -f conftest.$ac_ext
11668269257SdesCC=$ac_save_CC
11669269257Sdes
11670269257Sdesfi
11671269257Sdes# AC_CACHE_VAL
11672269257Sdescase "x$ac_cv_prog_cc_c89" in
11673269257Sdes  x)
11674269257Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11675269257Sdes$as_echo "none needed" >&6; } ;;
11676269257Sdes  xno)
11677269257Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11678269257Sdes$as_echo "unsupported" >&6; } ;;
11679269257Sdes  *)
11680269257Sdes    CC="$CC $ac_cv_prog_cc_c89"
11681269257Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11682269257Sdes$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11683269257Sdesesac
11684269257Sdesif test "x$ac_cv_prog_cc_c89" != xno; then :
11685269257Sdes
11686269257Sdesfi
11687269257Sdes
11688269257Sdesac_ext=c
11689269257Sdesac_cpp='$CPP $CPPFLAGS'
11690269257Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11691269257Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11692269257Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
11693269257Sdes
11694269257Sdes
11695269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
11696269257Sdes$as_echo_n "checking $CC dependency flag... " >&6; }
11697269257Sdesecho 'void f(){}' >conftest.c
11698269257Sdesif test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11699269257Sdes	DEPFLAG="-MM"
11700269257Sdeselse
11701269257Sdes  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11702269257Sdes	DEPFLAG="-xM1"
11703269257Sdes  else
11704269257Sdes	DEPFLAG="-MM"  # dunno do something
11705269257Sdes  fi
11706269257Sdesfi
11707269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
11708269257Sdes$as_echo "$DEPFLAG" >&6; }
11709269257Sdesrm -f conftest.c
11710269257Sdes
11711269257Sdes
11712269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11713269257Sdes$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11714269257Sdesset x ${MAKE-make}
11715269257Sdesac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11716269257Sdesif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11717269257Sdes  $as_echo_n "(cached) " >&6
11718269257Sdeselse
11719269257Sdes  cat >conftest.make <<\_ACEOF
11720269257SdesSHELL = /bin/sh
11721269257Sdesall:
11722269257Sdes	@echo '@@@%%%=$(MAKE)=@@@%%%'
11723269257Sdes_ACEOF
11724269257Sdes# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11725269257Sdescase `${MAKE-make} -f conftest.make 2>/dev/null` in
11726269257Sdes  *@@@%%%=?*=@@@%%%*)
11727269257Sdes    eval ac_cv_prog_make_${ac_make}_set=yes;;
11728269257Sdes  *)
11729269257Sdes    eval ac_cv_prog_make_${ac_make}_set=no;;
11730269257Sdesesac
11731269257Sdesrm -f conftest.make
11732269257Sdesfi
11733269257Sdesif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11734269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735269257Sdes$as_echo "yes" >&6; }
11736269257Sdes  SET_MAKE=
11737269257Sdeselse
11738269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739269257Sdes$as_echo "no" >&6; }
11740269257Sdes  SET_MAKE="MAKE=${MAKE-make}"
11741269257Sdesfi
11742269257Sdes
11743269257Sdes
11744269257Sdes# Extra (sp)lint flags for NetBSD
11745269257Sdes
11746269257Sdescase "$host_os" in
11747269257Sdes	netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
11748269257Sdes		 ;;
11749269257Sdes	*)       LINTFLAGS="$LINTFLAGS"
11750269257Sdes		 ;;
11751269257Sdesesac
11752269257Sdes
11753269257Sdes
11754269257Sdes
11755269257Sdes$as_echo "#define WINVER 0x0502" >>confdefs.h
11756269257Sdes
11757269257Sdes
11758269257Sdes
11759269257Sdes
11760269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
11761269257Sdes$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
11762269257Sdescache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
11763269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
11764269257Sdes  $as_echo_n "(cached) " >&6
11765269257Sdeselse
11766269257Sdes
11767269257Sdesecho 'void f(void){}' >conftest.c
11768269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
11769269257Sdeseval "cv_prog_cc_flag_$cache=yes"
11770269257Sdeselse
11771269257Sdeseval "cv_prog_cc_flag_$cache=no"
11772269257Sdesfi
11773269257Sdesrm -f conftest conftest.o conftest.c
11774269257Sdes
11775269257Sdesfi
11776269257Sdes
11777269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11778269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11779269257Sdes$as_echo "yes" >&6; }
11780269257Sdes:
11781269257SdesC99FLAG="-std=c99"
11782269257Sdeselse
11783269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784269257Sdes$as_echo "no" >&6; }
11785269257Sdes:
11786269257Sdes
11787269257Sdesfi
11788269257Sdes
11789269257Sdes
11790269257Sdes
11791269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
11792269257Sdes$as_echo_n "checking whether $CC supports -xc99... " >&6; }
11793269257Sdescache=`echo xc99 | sed 'y%.=/+-%___p_%'`
11794269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
11795269257Sdes  $as_echo_n "(cached) " >&6
11796269257Sdeselse
11797269257Sdes
11798269257Sdesecho 'void f(void){}' >conftest.c
11799269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
11800269257Sdeseval "cv_prog_cc_flag_$cache=yes"
11801269257Sdeselse
11802269257Sdeseval "cv_prog_cc_flag_$cache=no"
11803269257Sdesfi
11804269257Sdesrm -f conftest conftest.o conftest.c
11805269257Sdes
11806269257Sdesfi
11807269257Sdes
11808269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11809269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11810269257Sdes$as_echo "yes" >&6; }
11811269257Sdes:
11812269257SdesC99FLAG="-xc99"
11813269257Sdeselse
11814269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815269257Sdes$as_echo "no" >&6; }
11816269257Sdes:
11817269257Sdes
11818269257Sdesfi
11819269257Sdes
11820269257Sdes
11821269257Sdes# routine to copy files
11822269257Sdes# argument 1 is a list of files (relative to the source dir)
11823269257Sdes# argument 2 is a destination directory (relative to the current
11824269257Sdes# working directory
11825269257Sdes
11826269257Sdes
11827269257Sdes# copy all .h files in the dir at argument 1
11828269257Sdes# (relative to source) to the dir at argument 2
11829269257Sdes# (relative to current dir)
11830269257Sdes
11831269257Sdes
11832269257Sdes# Checks for typedefs, structures, and compiler characteristics.
11833269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11834269257Sdes$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11835269257Sdesif ${ac_cv_c_const+:} false; then :
11836269257Sdes  $as_echo_n "(cached) " >&6
11837269257Sdeselse
11838269257Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839269257Sdes/* end confdefs.h.  */
11840269257Sdes
11841269257Sdesint
11842269257Sdesmain ()
11843269257Sdes{
11844285206Sdes
11845269257Sdes#ifndef __cplusplus
11846285206Sdes  /* Ultrix mips cc rejects this sort of thing.  */
11847269257Sdes  typedef int charset[2];
11848285206Sdes  const charset cs = { 0, 0 };
11849269257Sdes  /* SunOS 4.1.1 cc rejects this.  */
11850269257Sdes  char const *const *pcpcc;
11851269257Sdes  char **ppc;
11852269257Sdes  /* NEC SVR4.0.2 mips cc rejects this.  */
11853269257Sdes  struct point {int x, y;};
11854269257Sdes  static struct point const zero = {0,0};
11855269257Sdes  /* AIX XL C 1.02.0.0 rejects this.
11856269257Sdes     It does not let you subtract one const X* pointer from another in
11857269257Sdes     an arm of an if-expression whose if-part is not a constant
11858269257Sdes     expression */
11859269257Sdes  const char *g = "string";
11860269257Sdes  pcpcc = &g + (g ? g-g : 0);
11861269257Sdes  /* HPUX 7.0 cc rejects these. */
11862269257Sdes  ++pcpcc;
11863269257Sdes  ppc = (char**) pcpcc;
11864269257Sdes  pcpcc = (char const *const *) ppc;
11865285206Sdes  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11866285206Sdes    char tx;
11867285206Sdes    char *t = &tx;
11868269257Sdes    char const *s = 0 ? (char *) 0 : (char const *) 0;
11869269257Sdes
11870269257Sdes    *t++ = 0;
11871269257Sdes    if (s) return 0;
11872269257Sdes  }
11873269257Sdes  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11874269257Sdes    int x[] = {25, 17};
11875269257Sdes    const int *foo = &x[0];
11876269257Sdes    ++foo;
11877269257Sdes  }
11878269257Sdes  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11879269257Sdes    typedef const int *iptr;
11880269257Sdes    iptr p = 0;
11881269257Sdes    ++p;
11882269257Sdes  }
11883285206Sdes  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11884269257Sdes       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11885285206Sdes    struct s { int j; const int *ap[3]; } bx;
11886285206Sdes    struct s *b = &bx; b->j = 5;
11887269257Sdes  }
11888269257Sdes  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11889269257Sdes    const int foo = 10;
11890269257Sdes    if (!foo) return 0;
11891269257Sdes  }
11892269257Sdes  return !cs[0] && !zero.x;
11893269257Sdes#endif
11894269257Sdes
11895269257Sdes  ;
11896269257Sdes  return 0;
11897269257Sdes}
11898269257Sdes_ACEOF
11899269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
11900269257Sdes  ac_cv_c_const=yes
11901269257Sdeselse
11902269257Sdes  ac_cv_c_const=no
11903269257Sdesfi
11904269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11905269257Sdesfi
11906269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11907269257Sdes$as_echo "$ac_cv_c_const" >&6; }
11908269257Sdesif test $ac_cv_c_const = no; then
11909269257Sdes
11910269257Sdes$as_echo "#define const /**/" >>confdefs.h
11911269257Sdes
11912269257Sdesfi
11913269257Sdes
11914269257Sdesac_ext=c
11915269257Sdesac_cpp='$CPP $CPPFLAGS'
11916269257Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11917269257Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11918269257Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
11919269257Sdes
11920269257Sdesif test "x$CFLAGS" = "x" ; then
11921269257Sdes
11922269257Sdes
11923269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
11924269257Sdes$as_echo_n "checking whether $CC supports -g... " >&6; }
11925269257Sdescache=`echo g | sed 'y%.=/+-%___p_%'`
11926269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
11927269257Sdes  $as_echo_n "(cached) " >&6
11928269257Sdeselse
11929269257Sdes
11930269257Sdesecho 'void f(void){}' >conftest.c
11931269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
11932269257Sdeseval "cv_prog_cc_flag_$cache=yes"
11933269257Sdeselse
11934269257Sdeseval "cv_prog_cc_flag_$cache=no"
11935269257Sdesfi
11936269257Sdesrm -f conftest conftest.o conftest.c
11937269257Sdes
11938269257Sdesfi
11939269257Sdes
11940269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11941269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942269257Sdes$as_echo "yes" >&6; }
11943269257Sdes:
11944269257SdesCFLAGS="-g"
11945269257Sdeselse
11946269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947269257Sdes$as_echo "no" >&6; }
11948269257Sdes:
11949269257Sdes
11950269257Sdesfi
11951269257Sdes
11952269257Sdes
11953269257Sdes
11954269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
11955269257Sdes$as_echo_n "checking whether $CC supports -O2... " >&6; }
11956269257Sdescache=`echo O2 | sed 'y%.=/+-%___p_%'`
11957269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
11958269257Sdes  $as_echo_n "(cached) " >&6
11959269257Sdeselse
11960269257Sdes
11961269257Sdesecho 'void f(void){}' >conftest.c
11962269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
11963269257Sdeseval "cv_prog_cc_flag_$cache=yes"
11964269257Sdeselse
11965269257Sdeseval "cv_prog_cc_flag_$cache=no"
11966269257Sdesfi
11967269257Sdesrm -f conftest conftest.o conftest.c
11968269257Sdes
11969269257Sdesfi
11970269257Sdes
11971269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11972269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973269257Sdes$as_echo "yes" >&6; }
11974269257Sdes:
11975269257SdesCFLAGS="-O2 $CFLAGS"
11976269257Sdeselse
11977269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978269257Sdes$as_echo "no" >&6; }
11979269257Sdes:
11980269257Sdes
11981269257Sdesfi
11982269257Sdes
11983269257Sdesfi
11984269257Sdes
11985269257Sdes
11986269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
11987269257Sdes$as_echo_n "checking whether $CC supports -Wall... " >&6; }
11988269257Sdescache=`echo Wall | sed 'y%.=/+-%___p_%'`
11989269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
11990269257Sdes  $as_echo_n "(cached) " >&6
11991269257Sdeselse
11992269257Sdes
11993269257Sdesecho 'void f(void){}' >conftest.c
11994269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
11995269257Sdeseval "cv_prog_cc_flag_$cache=yes"
11996269257Sdeselse
11997269257Sdeseval "cv_prog_cc_flag_$cache=no"
11998269257Sdesfi
11999269257Sdesrm -f conftest conftest.o conftest.c
12000269257Sdes
12001269257Sdesfi
12002269257Sdes
12003269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12004269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005269257Sdes$as_echo "yes" >&6; }
12006269257Sdes:
12007269257SdesCFLAGS="-Wall $CFLAGS"
12008269257Sdeselse
12009269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010269257Sdes$as_echo "no" >&6; }
12011269257Sdes:
12012269257Sdes
12013269257Sdesfi
12014269257Sdes
12015269257Sdes
12016269257Sdes
12017269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
12018269257Sdes$as_echo_n "checking whether $CC supports -W... " >&6; }
12019269257Sdescache=`echo W | sed 'y%.=/+-%___p_%'`
12020269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
12021269257Sdes  $as_echo_n "(cached) " >&6
12022269257Sdeselse
12023269257Sdes
12024269257Sdesecho 'void f(void){}' >conftest.c
12025269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
12026269257Sdeseval "cv_prog_cc_flag_$cache=yes"
12027269257Sdeselse
12028269257Sdeseval "cv_prog_cc_flag_$cache=no"
12029269257Sdesfi
12030269257Sdesrm -f conftest conftest.o conftest.c
12031269257Sdes
12032269257Sdesfi
12033269257Sdes
12034269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12035269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036269257Sdes$as_echo "yes" >&6; }
12037269257Sdes:
12038269257SdesCFLAGS="-W $CFLAGS"
12039269257Sdeselse
12040269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041269257Sdes$as_echo "no" >&6; }
12042269257Sdes:
12043269257Sdes
12044269257Sdesfi
12045269257Sdes
12046269257Sdes
12047269257Sdes
12048269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
12049269257Sdes$as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
12050269257Sdescache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
12051269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
12052269257Sdes  $as_echo_n "(cached) " >&6
12053269257Sdeselse
12054269257Sdes
12055269257Sdesecho 'void f(void){}' >conftest.c
12056269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
12057269257Sdeseval "cv_prog_cc_flag_$cache=yes"
12058269257Sdeselse
12059269257Sdeseval "cv_prog_cc_flag_$cache=no"
12060269257Sdesfi
12061269257Sdesrm -f conftest conftest.o conftest.c
12062269257Sdes
12063269257Sdesfi
12064269257Sdes
12065269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12066269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067269257Sdes$as_echo "yes" >&6; }
12068269257Sdes:
12069269257SdesCFLAGS="-Wwrite-strings $CFLAGS"
12070269257Sdeselse
12071269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072269257Sdes$as_echo "no" >&6; }
12073269257Sdes:
12074269257Sdes
12075269257Sdesfi
12076269257Sdes
12077269257Sdes
12078269257Sdes
12079269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
12080269257Sdes$as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
12081269257Sdescache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
12082269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
12083269257Sdes  $as_echo_n "(cached) " >&6
12084269257Sdeselse
12085269257Sdes
12086269257Sdesecho 'void f(void){}' >conftest.c
12087269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
12088269257Sdeseval "cv_prog_cc_flag_$cache=yes"
12089269257Sdeselse
12090269257Sdeseval "cv_prog_cc_flag_$cache=no"
12091269257Sdesfi
12092269257Sdesrm -f conftest conftest.o conftest.c
12093269257Sdes
12094269257Sdesfi
12095269257Sdes
12096269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12097269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098269257Sdes$as_echo "yes" >&6; }
12099269257Sdes:
12100269257SdesCFLAGS="-Wstrict-prototypes $CFLAGS"
12101269257Sdeselse
12102269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103269257Sdes$as_echo "no" >&6; }
12104269257Sdes:
12105269257Sdes
12106269257Sdesfi
12107269257Sdes
12108269257Sdes
12109269257Sdes
12110269257Sdesfor ac_header in getopt.h time.h
12111269257Sdesdo :
12112269257Sdes  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12113269257Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12114269257Sdes"
12115269257Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12116269257Sdes  cat >>confdefs.h <<_ACEOF
12117269257Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12118269257Sdes_ACEOF
12119269257Sdes
12120269257Sdesfi
12121269257Sdes
12122269257Sdesdone
12123269257Sdes
12124269257Sdes
12125269257Sdes# MinGW32 tests
12126269257Sdesfor ac_header in winsock2.h ws2tcpip.h
12127269257Sdesdo :
12128269257Sdes  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12129269257Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12130269257Sdes"
12131269257Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12132269257Sdes  cat >>confdefs.h <<_ACEOF
12133269257Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12134269257Sdes_ACEOF
12135269257Sdes
12136269257Sdesfi
12137269257Sdes
12138269257Sdesdone
12139269257Sdes
12140269257Sdes# end mingw32 tests
12141269257Sdes
12142269257Sdes
12143269257Sdes
12144269257Sdes
12145269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
12146269257Sdes$as_echo_n "checking whether $CC supports -Werror... " >&6; }
12147269257Sdescache=`echo Werror | sed 'y%.=/+-%___p_%'`
12148269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
12149269257Sdes  $as_echo_n "(cached) " >&6
12150269257Sdeselse
12151269257Sdes
12152269257Sdesecho 'void f(void){}' >conftest.c
12153269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
12154269257Sdeseval "cv_prog_cc_flag_$cache=yes"
12155269257Sdeselse
12156269257Sdeseval "cv_prog_cc_flag_$cache=no"
12157269257Sdesfi
12158269257Sdesrm -f conftest conftest.o conftest.c
12159269257Sdes
12160269257Sdesfi
12161269257Sdes
12162269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12163269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12164269257Sdes$as_echo "yes" >&6; }
12165269257Sdes:
12166269257SdesERRFLAG="-Werror"
12167269257Sdeselse
12168269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169269257Sdes$as_echo "no" >&6; }
12170269257Sdes:
12171269257SdesERRFLAG="-errwarn"
12172269257Sdesfi
12173269257Sdes
12174269257Sdes
12175269257Sdes
12176269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12177269257Sdes$as_echo_n "checking whether $CC supports -Wall... " >&6; }
12178269257Sdescache=`echo Wall | sed 'y%.=/+-%___p_%'`
12179269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
12180269257Sdes  $as_echo_n "(cached) " >&6
12181269257Sdeselse
12182269257Sdes
12183269257Sdesecho 'void f(void){}' >conftest.c
12184269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12185269257Sdeseval "cv_prog_cc_flag_$cache=yes"
12186269257Sdeselse
12187269257Sdeseval "cv_prog_cc_flag_$cache=no"
12188269257Sdesfi
12189269257Sdesrm -f conftest conftest.o conftest.c
12190269257Sdes
12191269257Sdesfi
12192269257Sdes
12193269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12194269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195269257Sdes$as_echo "yes" >&6; }
12196269257Sdes:
12197269257SdesERRFLAG="$ERRFLAG -Wall"
12198269257Sdeselse
12199269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200269257Sdes$as_echo "no" >&6; }
12201269257Sdes:
12202269257SdesERRFLAG="$ERRFLAG -errfmt"
12203269257Sdesfi
12204269257Sdes
12205269257Sdes
12206269257Sdes
12207269257Sdes
12208269257Sdes
12209269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12210269257Sdes$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12211269257Sdescache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12212269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
12213269257Sdes  $as_echo_n "(cached) " >&6
12214269257Sdeselse
12215269257Sdes
12216269257Sdesecho 'void f(void){}' >conftest.c
12217269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12218269257Sdeseval "cv_prog_cc_flag_$cache=yes"
12219269257Sdeselse
12220269257Sdeseval "cv_prog_cc_flag_$cache=no"
12221269257Sdesfi
12222269257Sdesrm -f conftest conftest.o conftest.c
12223269257Sdes
12224269257Sdesfi
12225269257Sdes
12226269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12227269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228269257Sdes$as_echo "yes" >&6; }
12229269257Sdes:
12230269257SdesC99FLAG="-std=c99"
12231269257Sdeselse
12232269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233269257Sdes$as_echo "no" >&6; }
12234269257Sdes:
12235269257Sdes
12236269257Sdesfi
12237269257Sdes
12238269257Sdes
12239269257Sdes
12240269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12241269257Sdes$as_echo_n "checking whether $CC supports -xc99... " >&6; }
12242269257Sdescache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12243269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
12244269257Sdes  $as_echo_n "(cached) " >&6
12245269257Sdeselse
12246269257Sdes
12247269257Sdesecho 'void f(void){}' >conftest.c
12248269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12249269257Sdeseval "cv_prog_cc_flag_$cache=yes"
12250269257Sdeselse
12251269257Sdeseval "cv_prog_cc_flag_$cache=no"
12252269257Sdesfi
12253269257Sdesrm -f conftest conftest.o conftest.c
12254269257Sdes
12255269257Sdesfi
12256269257Sdes
12257269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12258269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259269257Sdes$as_echo "yes" >&6; }
12260269257Sdes:
12261269257SdesC99FLAG="-xc99"
12262269257Sdeselse
12263269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264269257Sdes$as_echo "no" >&6; }
12265269257Sdes:
12266269257Sdes
12267269257Sdesfi
12268269257Sdes
12269269257Sdes
12270269257Sdesfor ac_header in getopt.h time.h
12271269257Sdesdo :
12272269257Sdes  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273269257Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12274269257Sdes"
12275269257Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12276269257Sdes  cat >>confdefs.h <<_ACEOF
12277269257Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278269257Sdes_ACEOF
12279269257Sdes
12280269257Sdesfi
12281269257Sdes
12282269257Sdesdone
12283269257Sdes
12284269257Sdes
12285269257Sdes
12286269257Sdes
12287269257Sdes
12288269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
12289269257Sdes$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12290269257Sdescache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
12291269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12292269257Sdes  $as_echo_n "(cached) " >&6
12293269257Sdeselse
12294269257Sdes
12295269257Sdesecho '
12296269257Sdes#include "confdefs.h"
12297269257Sdes#include <stdlib.h>
12298269257Sdes#include <ctype.h>
12299269257Sdes#include <sys/time.h>
12300269257Sdes#ifdef HAVE_TIME_H
12301269257Sdes#include <time.h>
12302269257Sdes#endif
12303269257Sdes#include <unistd.h>
12304269257Sdes#include <netdb.h>
12305269257Sdes#ifdef HAVE_GETOPT_H
12306269257Sdes#include <getopt.h>
12307269257Sdes#endif
12308269257Sdes
12309269257Sdesint test() {
12310269257Sdes	int a;
12311269257Sdes	char **opts = NULL;
12312269257Sdes	struct timeval tv;
12313269257Sdes	char *t;
12314269257Sdes	time_t time = 0;
12315269257Sdes	char *buf = NULL;
12316269257Sdes	const char* str = NULL;
12317269257Sdes	struct msghdr msg;
12318269257Sdes	msg.msg_control = 0;
12319269257Sdes	t = ctime_r(&time, buf);
12320269257Sdes	tv.tv_usec = 10;
12321269257Sdes	srandom(32);
12322269257Sdes	a = getopt(2, opts, "a");
12323269257Sdes	a = isascii(32);
12324269257Sdes	str = gai_strerror(0);
12325269257Sdes	if(str && t && tv.tv_usec && msg.msg_control)
12326269257Sdes		a = 0;
12327269257Sdes	return a;
12328269257Sdes}
12329269257Sdes' > conftest.c
12330269257Sdesecho 'void f(){}' >>conftest.c
12331269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12332269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12333269257Sdeselse
12334269257Sdes
12335269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12336269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12337269257Sdeselse
12338269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12339269257Sdes#echo 'Test with flag fails too!'
12340269257Sdes#cat conftest.c
12341269257Sdes#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12342269257Sdes#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12343269257Sdes#exit 1
12344269257Sdesfi
12345269257Sdes
12346269257Sdesfi
12347269257Sdesrm -f conftest conftest.c conftest.o
12348269257Sdes
12349269257Sdesfi
12350269257Sdes
12351269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12352269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353269257Sdes$as_echo "yes" >&6; }
12354269257Sdes:
12355269257SdesCFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
12356269257Sdeselse
12357269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12358269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359269257Sdes$as_echo "no" >&6; }
12360269257Sdes#echo 'Test with flag is no!'
12361269257Sdes#cat conftest.c
12362269257Sdes#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12363269257Sdes#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12364269257Sdes#exit 1
12365269257Sdes:
12366269257Sdes
12367269257Sdeselse
12368269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12369269257Sdes$as_echo "failed" >&6; }
12370269257Sdes:
12371269257Sdes
12372269257Sdesfi
12373269257Sdesfi
12374269257Sdes
12375269257Sdes
12376269257Sdes
12377269257Sdes
12378269257Sdes
12379269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
12380269257Sdes$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12381269257Sdescache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
12382269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12383269257Sdes  $as_echo_n "(cached) " >&6
12384269257Sdeselse
12385269257Sdes
12386269257Sdesecho '
12387269257Sdes#include "confdefs.h"
12388269257Sdes#include <stdlib.h>
12389269257Sdes#include <ctype.h>
12390269257Sdes#include <sys/time.h>
12391269257Sdes#ifdef HAVE_TIME_H
12392269257Sdes#include <time.h>
12393269257Sdes#endif
12394269257Sdes#include <unistd.h>
12395269257Sdes#include <netdb.h>
12396269257Sdes#ifdef HAVE_GETOPT_H
12397269257Sdes#include <getopt.h>
12398269257Sdes#endif
12399269257Sdes
12400269257Sdesint test() {
12401269257Sdes	int a;
12402269257Sdes	char **opts = NULL;
12403269257Sdes	struct timeval tv;
12404269257Sdes	char *t;
12405269257Sdes	time_t time = 0;
12406269257Sdes	char *buf = NULL;
12407269257Sdes	const char* str = NULL;
12408269257Sdes	struct msghdr msg;
12409269257Sdes	msg.msg_control = 0;
12410269257Sdes	t = ctime_r(&time, buf);
12411269257Sdes	tv.tv_usec = 10;
12412269257Sdes	srandom(32);
12413269257Sdes	a = getopt(2, opts, "a");
12414269257Sdes	a = isascii(32);
12415269257Sdes	str = gai_strerror(0);
12416269257Sdes	if(str && t && tv.tv_usec && msg.msg_control)
12417269257Sdes		a = 0;
12418269257Sdes	return a;
12419269257Sdes}
12420269257Sdes' > conftest.c
12421269257Sdesecho 'void f(){}' >>conftest.c
12422269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12423269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12424269257Sdeselse
12425269257Sdes
12426269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12427269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12428269257Sdeselse
12429269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12430269257Sdes#echo 'Test with flag fails too!'
12431269257Sdes#cat conftest.c
12432269257Sdes#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12433269257Sdes#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12434269257Sdes#exit 1
12435269257Sdesfi
12436269257Sdes
12437269257Sdesfi
12438269257Sdesrm -f conftest conftest.c conftest.o
12439269257Sdes
12440269257Sdesfi
12441269257Sdes
12442269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12443269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444269257Sdes$as_echo "yes" >&6; }
12445269257Sdes:
12446269257SdesCFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
12447269257Sdeselse
12448269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12449269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450269257Sdes$as_echo "no" >&6; }
12451269257Sdes#echo 'Test with flag is no!'
12452269257Sdes#cat conftest.c
12453269257Sdes#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12454269257Sdes#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12455269257Sdes#exit 1
12456269257Sdes:
12457269257Sdes
12458269257Sdeselse
12459269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12460269257Sdes$as_echo "failed" >&6; }
12461269257Sdes:
12462269257Sdes
12463269257Sdesfi
12464269257Sdesfi
12465269257Sdes
12466269257Sdes
12467269257Sdes
12468269257Sdes
12469269257Sdes
12470269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
12471269257Sdes$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
12472269257Sdescache=`$as_echo "$C99FLAG" | $as_tr_sh`
12473269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12474269257Sdes  $as_echo_n "(cached) " >&6
12475269257Sdeselse
12476269257Sdes
12477269257Sdesecho '
12478269257Sdes#include <stdbool.h>
12479269257Sdes#include <ctype.h>
12480269257Sdesint test() {
12481269257Sdes        int a = 0;
12482269257Sdes        return a;
12483269257Sdes}
12484269257Sdes' > conftest.c
12485269257Sdesecho 'void f(){}' >>conftest.c
12486269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12487269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12488269257Sdeselse
12489269257Sdes
12490269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
12491269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12492269257Sdeselse
12493269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12494269257Sdes#echo 'Test with flag fails too!'
12495269257Sdes#cat conftest.c
12496269257Sdes#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12497269257Sdes#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12498269257Sdes#exit 1
12499269257Sdesfi
12500269257Sdes
12501269257Sdesfi
12502269257Sdesrm -f conftest conftest.c conftest.o
12503269257Sdes
12504269257Sdesfi
12505269257Sdes
12506269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12507269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12508269257Sdes$as_echo "yes" >&6; }
12509269257Sdes:
12510269257SdesCFLAGS="$CFLAGS $C99FLAG"
12511269257Sdeselse
12512269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12513269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514269257Sdes$as_echo "no" >&6; }
12515269257Sdes#echo 'Test with flag is no!'
12516269257Sdes#cat conftest.c
12517269257Sdes#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12518269257Sdes#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12519269257Sdes#exit 1
12520269257Sdes:
12521269257Sdes
12522269257Sdeselse
12523269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12524269257Sdes$as_echo "failed" >&6; }
12525269257Sdes:
12526269257Sdes
12527269257Sdesfi
12528269257Sdesfi
12529269257Sdes
12530269257Sdes
12531269257Sdes
12532269257Sdes
12533269257Sdes
12534269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
12535269257Sdes$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
12536269257Sdescache=_D_BSD_SOURCE
12537269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12538269257Sdes  $as_echo_n "(cached) " >&6
12539269257Sdeselse
12540269257Sdes
12541269257Sdesecho '
12542269257Sdes#include <ctype.h>
12543269257Sdes
12544269257Sdesint test() {
12545269257Sdes        int a;
12546269257Sdes        a = isascii(32);
12547269257Sdes        return a;
12548269257Sdes}
12549269257Sdes' > conftest.c
12550269257Sdesecho 'void f(){}' >>conftest.c
12551269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12552269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12553269257Sdeselse
12554269257Sdes
12555269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12556269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12557269257Sdeselse
12558269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12559269257Sdes#echo 'Test with flag fails too!'
12560269257Sdes#cat conftest.c
12561269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12562269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12563269257Sdes#exit 1
12564269257Sdesfi
12565269257Sdes
12566269257Sdesfi
12567269257Sdesrm -f conftest conftest.c conftest.o
12568269257Sdes
12569269257Sdesfi
12570269257Sdes
12571269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12572269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573269257Sdes$as_echo "yes" >&6; }
12574269257Sdes:
12575269257SdesCFLAGS="$CFLAGS -D_BSD_SOURCE"
12576269257Sdeselse
12577269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12578269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579269257Sdes$as_echo "no" >&6; }
12580269257Sdes#echo 'Test with flag is no!'
12581269257Sdes#cat conftest.c
12582269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12583269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12584269257Sdes#exit 1
12585269257Sdes:
12586269257Sdes
12587269257Sdeselse
12588269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12589269257Sdes$as_echo "failed" >&6; }
12590269257Sdes:
12591269257Sdes
12592269257Sdesfi
12593269257Sdesfi
12594269257Sdes
12595269257Sdes
12596269257Sdes
12597269257Sdes
12598269257Sdes
12599269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
12600269257Sdes$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
12601269257Sdescache=_D_GNU_SOURCE
12602269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12603269257Sdes  $as_echo_n "(cached) " >&6
12604269257Sdeselse
12605269257Sdes
12606269257Sdesecho '
12607269257Sdes#include <netinet/in.h>
12608269257Sdes
12609269257Sdesint test() {
12610269257Sdes        struct in6_pktinfo inf;
12611269257Sdes	int a = (int)sizeof(inf);
12612269257Sdes        return a;
12613269257Sdes}
12614269257Sdes' > conftest.c
12615269257Sdesecho 'void f(){}' >>conftest.c
12616269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12617269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12618269257Sdeselse
12619269257Sdes
12620269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12621269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12622269257Sdeselse
12623269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12624269257Sdes#echo 'Test with flag fails too!'
12625269257Sdes#cat conftest.c
12626269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12627269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12628269257Sdes#exit 1
12629269257Sdesfi
12630269257Sdes
12631269257Sdesfi
12632269257Sdesrm -f conftest conftest.c conftest.o
12633269257Sdes
12634269257Sdesfi
12635269257Sdes
12636269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12637269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638269257Sdes$as_echo "yes" >&6; }
12639269257Sdes:
12640269257SdesCFLAGS="$CFLAGS -D_GNU_SOURCE"
12641269257Sdeselse
12642269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12643269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644269257Sdes$as_echo "no" >&6; }
12645269257Sdes#echo 'Test with flag is no!'
12646269257Sdes#cat conftest.c
12647269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12648269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12649269257Sdes#exit 1
12650269257Sdes:
12651269257Sdes
12652269257Sdeselse
12653269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12654269257Sdes$as_echo "failed" >&6; }
12655269257Sdes:
12656269257Sdes
12657269257Sdesfi
12658269257Sdesfi
12659269257Sdes
12660269257Sdes
12661269257Sdes# check again for GNU_SOURCE for setresgid. May fail if setresgid
12662269257Sdes# is not available at all. -D_FRSRESGID is to make this check unique.
12663269257Sdes# otherwise we would get the previous cached result.
12664269257Sdes
12665269257Sdes
12666269257Sdes
12667269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
12668269257Sdes$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
12669269257Sdescache=_D_GNU_SOURCE__D_FRSRESGID
12670269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12671269257Sdes  $as_echo_n "(cached) " >&6
12672269257Sdeselse
12673269257Sdes
12674269257Sdesecho '
12675269257Sdes#include <unistd.h>
12676269257Sdes
12677269257Sdesint test() {
12678269257Sdes	int a = setresgid(0,0,0);
12679269257Sdes	a = setresuid(0,0,0);
12680269257Sdes        return a;
12681269257Sdes}
12682269257Sdes' > conftest.c
12683269257Sdesecho 'void f(){}' >>conftest.c
12684269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12685269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12686269257Sdeselse
12687269257Sdes
12688269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
12689269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12690269257Sdeselse
12691269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12692269257Sdes#echo 'Test with flag fails too!'
12693269257Sdes#cat conftest.c
12694269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12695269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12696269257Sdes#exit 1
12697269257Sdesfi
12698269257Sdes
12699269257Sdesfi
12700269257Sdesrm -f conftest conftest.c conftest.o
12701269257Sdes
12702269257Sdesfi
12703269257Sdes
12704269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12705269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706269257Sdes$as_echo "yes" >&6; }
12707269257Sdes:
12708269257SdesCFLAGS="$CFLAGS -D_GNU_SOURCE"
12709269257Sdeselse
12710269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12711269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712269257Sdes$as_echo "no" >&6; }
12713269257Sdes#echo 'Test with flag is no!'
12714269257Sdes#cat conftest.c
12715269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12716269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12717269257Sdes#exit 1
12718269257Sdes:
12719269257Sdes
12720269257Sdeselse
12721269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12722269257Sdes$as_echo "failed" >&6; }
12723269257Sdes:
12724269257Sdes
12725269257Sdesfi
12726269257Sdesfi
12727269257Sdes
12728269257Sdes
12729269257Sdes
12730269257Sdes
12731269257Sdes
12732269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
12733269257Sdes$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
12734285206Sdescache=_D_POSIX_C_SOURCE_200112
12735269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12736269257Sdes  $as_echo_n "(cached) " >&6
12737269257Sdeselse
12738269257Sdes
12739269257Sdesecho '
12740269257Sdes#include "confdefs.h"
12741269257Sdes#ifdef HAVE_TIME_H
12742269257Sdes#include <time.h>
12743269257Sdes#endif
12744269257Sdes#include <netdb.h>
12745269257Sdes
12746269257Sdesint test() {
12747269257Sdes        int a = 0;
12748269257Sdes        char *t;
12749269257Sdes        time_t time = 0;
12750269257Sdes        char *buf = NULL;
12751269257Sdes	const char* str = NULL;
12752269257Sdes        t = ctime_r(&time, buf);
12753269257Sdes	str = gai_strerror(0);
12754269257Sdes	if(t && str)
12755269257Sdes		a = 0;
12756269257Sdes        return a;
12757269257Sdes}
12758269257Sdes' > conftest.c
12759269257Sdesecho 'void f(){}' >>conftest.c
12760269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12761269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12762269257Sdeselse
12763269257Sdes
12764269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
12765269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12766269257Sdeselse
12767269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12768269257Sdes#echo 'Test with flag fails too!'
12769269257Sdes#cat conftest.c
12770269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12771269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12772269257Sdes#exit 1
12773269257Sdesfi
12774269257Sdes
12775269257Sdesfi
12776269257Sdesrm -f conftest conftest.c conftest.o
12777269257Sdes
12778269257Sdesfi
12779269257Sdes
12780269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12781269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12782269257Sdes$as_echo "yes" >&6; }
12783269257Sdes:
12784269257SdesCFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
12785269257Sdeselse
12786269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12787269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788269257Sdes$as_echo "no" >&6; }
12789269257Sdes#echo 'Test with flag is no!'
12790269257Sdes#cat conftest.c
12791269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12792269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12793269257Sdes#exit 1
12794269257Sdes:
12795269257Sdes
12796269257Sdeselse
12797269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12798269257Sdes$as_echo "failed" >&6; }
12799269257Sdes:
12800269257Sdes
12801269257Sdesfi
12802269257Sdesfi
12803269257Sdes
12804269257Sdes
12805269257Sdes
12806269257Sdes
12807269257Sdes
12808269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
12809269257Sdes$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
12810269257Sdescache=_D__EXTENSIONS__
12811269257Sdesif eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12812269257Sdes  $as_echo_n "(cached) " >&6
12813269257Sdeselse
12814269257Sdes
12815269257Sdesecho '
12816269257Sdes#include "confdefs.h"
12817269257Sdes#include <stdlib.h>
12818269257Sdes#include <ctype.h>
12819269257Sdes#include <sys/time.h>
12820269257Sdes#ifdef HAVE_TIME_H
12821269257Sdes#include <time.h>
12822269257Sdes#endif
12823269257Sdes#include <unistd.h>
12824269257Sdes#ifdef HAVE_GETOPT_H
12825269257Sdes#include <getopt.h>
12826269257Sdes#endif
12827269257Sdes
12828269257Sdesint test() {
12829269257Sdes        int a;
12830269257Sdes        char **opts = NULL;
12831269257Sdes        struct timeval tv;
12832269257Sdes        tv.tv_usec = 10;
12833269257Sdes        srandom(32);
12834269257Sdes        a = getopt(2, opts, "a");
12835269257Sdes        a = isascii(32);
12836269257Sdes	if(tv.tv_usec)
12837269257Sdes		a = 0;
12838269257Sdes        return a;
12839269257Sdes}
12840269257Sdes' > conftest.c
12841269257Sdesecho 'void f(){}' >>conftest.c
12842269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12843269257Sdeseval "cv_prog_cc_flag_needed_$cache=no"
12844269257Sdeselse
12845269257Sdes
12846269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
12847269257Sdeseval "cv_prog_cc_flag_needed_$cache=yes"
12848269257Sdeselse
12849269257Sdeseval "cv_prog_cc_flag_needed_$cache=fail"
12850269257Sdes#echo 'Test with flag fails too!'
12851269257Sdes#cat conftest.c
12852269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12853269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12854269257Sdes#exit 1
12855269257Sdesfi
12856269257Sdes
12857269257Sdesfi
12858269257Sdesrm -f conftest conftest.c conftest.o
12859269257Sdes
12860269257Sdesfi
12861269257Sdes
12862269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12863269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864269257Sdes$as_echo "yes" >&6; }
12865269257Sdes:
12866269257SdesCFLAGS="$CFLAGS -D__EXTENSIONS__"
12867269257Sdeselse
12868269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12869269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870269257Sdes$as_echo "no" >&6; }
12871269257Sdes#echo 'Test with flag is no!'
12872269257Sdes#cat conftest.c
12873269257Sdes#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12874269257Sdes#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12875269257Sdes#exit 1
12876269257Sdes:
12877269257Sdes
12878269257Sdeselse
12879269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12880269257Sdes$as_echo "failed" >&6; }
12881269257Sdes:
12882269257Sdes
12883269257Sdesfi
12884269257Sdesfi
12885269257Sdes
12886269257Sdes
12887269257Sdes
12888269257Sdes
12889269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12890269257Sdes$as_echo_n "checking for inline... " >&6; }
12891269257Sdesif ${ac_cv_c_inline+:} false; then :
12892269257Sdes  $as_echo_n "(cached) " >&6
12893269257Sdeselse
12894269257Sdes  ac_cv_c_inline=no
12895269257Sdesfor ac_kw in inline __inline__ __inline; do
12896269257Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897269257Sdes/* end confdefs.h.  */
12898269257Sdes#ifndef __cplusplus
12899269257Sdestypedef int foo_t;
12900269257Sdesstatic $ac_kw foo_t static_foo () {return 0; }
12901269257Sdes$ac_kw foo_t foo () {return 0; }
12902269257Sdes#endif
12903269257Sdes
12904269257Sdes_ACEOF
12905269257Sdesif ac_fn_c_try_compile "$LINENO"; then :
12906269257Sdes  ac_cv_c_inline=$ac_kw
12907269257Sdesfi
12908269257Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909269257Sdes  test "$ac_cv_c_inline" != no && break
12910269257Sdesdone
12911269257Sdes
12912269257Sdesfi
12913269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12914269257Sdes$as_echo "$ac_cv_c_inline" >&6; }
12915269257Sdes
12916269257Sdescase $ac_cv_c_inline in
12917269257Sdes  inline | yes) ;;
12918269257Sdes  *)
12919269257Sdes    case $ac_cv_c_inline in
12920269257Sdes      no) ac_val=;;
12921269257Sdes      *) ac_val=$ac_cv_c_inline;;
12922269257Sdes    esac
12923269257Sdes    cat >>confdefs.h <<_ACEOF
12924269257Sdes#ifndef __cplusplus
12925269257Sdes#define inline $ac_val
12926269257Sdes#endif
12927269257Sdes_ACEOF
12928269257Sdes    ;;
12929269257Sdesesac
12930269257Sdes
12931269257Sdesac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12932269257Sdesif test "x$ac_cv_type_int8_t" = xyes; then :
12933269257Sdes
12934269257Sdeselse
12935269257Sdes
12936269257Sdescat >>confdefs.h <<_ACEOF
12937269257Sdes#define int8_t char
12938269257Sdes_ACEOF
12939269257Sdes
12940269257Sdesfi
12941269257Sdes
12942269257Sdesac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12943269257Sdesif test "x$ac_cv_type_int16_t" = xyes; then :
12944269257Sdes
12945269257Sdeselse
12946269257Sdes
12947269257Sdescat >>confdefs.h <<_ACEOF
12948269257Sdes#define int16_t short
12949269257Sdes_ACEOF
12950269257Sdes
12951269257Sdesfi
12952269257Sdes
12953269257Sdesac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12954269257Sdesif test "x$ac_cv_type_int32_t" = xyes; then :
12955269257Sdes
12956269257Sdeselse
12957269257Sdes
12958269257Sdescat >>confdefs.h <<_ACEOF
12959269257Sdes#define int32_t int
12960269257Sdes_ACEOF
12961269257Sdes
12962269257Sdesfi
12963269257Sdes
12964269257Sdesac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12965269257Sdesif test "x$ac_cv_type_int64_t" = xyes; then :
12966269257Sdes
12967269257Sdeselse
12968269257Sdes
12969269257Sdescat >>confdefs.h <<_ACEOF
12970269257Sdes#define int64_t long long
12971269257Sdes_ACEOF
12972269257Sdes
12973269257Sdesfi
12974269257Sdes
12975269257Sdesac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12976269257Sdesif test "x$ac_cv_type_uint8_t" = xyes; then :
12977269257Sdes
12978269257Sdeselse
12979269257Sdes
12980269257Sdescat >>confdefs.h <<_ACEOF
12981269257Sdes#define uint8_t unsigned char
12982269257Sdes_ACEOF
12983269257Sdes
12984269257Sdesfi
12985269257Sdes
12986269257Sdesac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12987269257Sdesif test "x$ac_cv_type_uint16_t" = xyes; then :
12988269257Sdes
12989269257Sdeselse
12990269257Sdes
12991269257Sdescat >>confdefs.h <<_ACEOF
12992269257Sdes#define uint16_t unsigned short
12993269257Sdes_ACEOF
12994269257Sdes
12995269257Sdesfi
12996269257Sdes
12997269257Sdesac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12998269257Sdesif test "x$ac_cv_type_uint32_t" = xyes; then :
12999269257Sdes
13000269257Sdeselse
13001269257Sdes
13002269257Sdescat >>confdefs.h <<_ACEOF
13003269257Sdes#define uint32_t unsigned int
13004269257Sdes_ACEOF
13005269257Sdes
13006269257Sdesfi
13007269257Sdes
13008269257Sdesac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13009269257Sdesif test "x$ac_cv_type_uint64_t" = xyes; then :
13010269257Sdes
13011269257Sdeselse
13012269257Sdes
13013269257Sdescat >>confdefs.h <<_ACEOF
13014269257Sdes#define uint64_t unsigned long long
13015269257Sdes_ACEOF
13016269257Sdes
13017269257Sdesfi
13018269257Sdes
13019269257Sdes
13020269257Sdes# my own checks
13021269257Sdes# Extract the first word of "doxygen", so it can be a program name with args.
13022269257Sdesset dummy doxygen; ac_word=$2
13023269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13024269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
13025269257Sdesif ${ac_cv_prog_doxygen+:} false; then :
13026269257Sdes  $as_echo_n "(cached) " >&6
13027269257Sdeselse
13028269257Sdes  if test -n "$doxygen"; then
13029269257Sdes  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
13030269257Sdeselse
13031269257Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032269257Sdesfor as_dir in $PATH
13033269257Sdesdo
13034269257Sdes  IFS=$as_save_IFS
13035269257Sdes  test -z "$as_dir" && as_dir=.
13036269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
13037285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13038269257Sdes    ac_cv_prog_doxygen="doxygen"
13039269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13040269257Sdes    break 2
13041269257Sdes  fi
13042269257Sdesdone
13043269257Sdes  done
13044269257SdesIFS=$as_save_IFS
13045269257Sdes
13046269257Sdesfi
13047269257Sdesfi
13048269257Sdesdoxygen=$ac_cv_prog_doxygen
13049269257Sdesif test -n "$doxygen"; then
13050269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
13051269257Sdes$as_echo "$doxygen" >&6; }
13052269257Sdeselse
13053269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054269257Sdes$as_echo "no" >&6; }
13055269257Sdesfi
13056269257Sdes
13057269257Sdes
13058269257Sdes
13059269257Sdes# check to see if libraries are needed for these functions.
13060269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13061269257Sdes$as_echo_n "checking for library containing socket... " >&6; }
13062269257Sdesif ${ac_cv_search_socket+:} false; then :
13063269257Sdes  $as_echo_n "(cached) " >&6
13064269257Sdeselse
13065269257Sdes  ac_func_search_save_LIBS=$LIBS
13066269257Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067269257Sdes/* end confdefs.h.  */
13068269257Sdes
13069269257Sdes/* Override any GCC internal prototype to avoid an error.
13070269257Sdes   Use char because int might match the return type of a GCC
13071269257Sdes   builtin and then its argument prototype would still apply.  */
13072269257Sdes#ifdef __cplusplus
13073269257Sdesextern "C"
13074269257Sdes#endif
13075269257Sdeschar socket ();
13076269257Sdesint
13077269257Sdesmain ()
13078269257Sdes{
13079269257Sdesreturn socket ();
13080269257Sdes  ;
13081269257Sdes  return 0;
13082269257Sdes}
13083269257Sdes_ACEOF
13084269257Sdesfor ac_lib in '' socket; do
13085269257Sdes  if test -z "$ac_lib"; then
13086269257Sdes    ac_res="none required"
13087269257Sdes  else
13088269257Sdes    ac_res=-l$ac_lib
13089269257Sdes    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13090269257Sdes  fi
13091269257Sdes  if ac_fn_c_try_link "$LINENO"; then :
13092269257Sdes  ac_cv_search_socket=$ac_res
13093269257Sdesfi
13094269257Sdesrm -f core conftest.err conftest.$ac_objext \
13095269257Sdes    conftest$ac_exeext
13096269257Sdes  if ${ac_cv_search_socket+:} false; then :
13097269257Sdes  break
13098269257Sdesfi
13099269257Sdesdone
13100269257Sdesif ${ac_cv_search_socket+:} false; then :
13101269257Sdes
13102269257Sdeselse
13103269257Sdes  ac_cv_search_socket=no
13104269257Sdesfi
13105269257Sdesrm conftest.$ac_ext
13106269257SdesLIBS=$ac_func_search_save_LIBS
13107269257Sdesfi
13108269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13109269257Sdes$as_echo "$ac_cv_search_socket" >&6; }
13110269257Sdesac_res=$ac_cv_search_socket
13111269257Sdesif test "$ac_res" != no; then :
13112269257Sdes  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13113269257Sdes
13114269257Sdesfi
13115269257Sdes
13116269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13117269257Sdes$as_echo_n "checking for library containing inet_pton... " >&6; }
13118269257Sdesif ${ac_cv_search_inet_pton+:} false; then :
13119269257Sdes  $as_echo_n "(cached) " >&6
13120269257Sdeselse
13121269257Sdes  ac_func_search_save_LIBS=$LIBS
13122269257Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123269257Sdes/* end confdefs.h.  */
13124269257Sdes
13125269257Sdes/* Override any GCC internal prototype to avoid an error.
13126269257Sdes   Use char because int might match the return type of a GCC
13127269257Sdes   builtin and then its argument prototype would still apply.  */
13128269257Sdes#ifdef __cplusplus
13129269257Sdesextern "C"
13130269257Sdes#endif
13131269257Sdeschar inet_pton ();
13132269257Sdesint
13133269257Sdesmain ()
13134269257Sdes{
13135269257Sdesreturn inet_pton ();
13136269257Sdes  ;
13137269257Sdes  return 0;
13138269257Sdes}
13139269257Sdes_ACEOF
13140269257Sdesfor ac_lib in '' nsl; do
13141269257Sdes  if test -z "$ac_lib"; then
13142269257Sdes    ac_res="none required"
13143269257Sdes  else
13144269257Sdes    ac_res=-l$ac_lib
13145269257Sdes    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13146269257Sdes  fi
13147269257Sdes  if ac_fn_c_try_link "$LINENO"; then :
13148269257Sdes  ac_cv_search_inet_pton=$ac_res
13149269257Sdesfi
13150269257Sdesrm -f core conftest.err conftest.$ac_objext \
13151269257Sdes    conftest$ac_exeext
13152269257Sdes  if ${ac_cv_search_inet_pton+:} false; then :
13153269257Sdes  break
13154269257Sdesfi
13155269257Sdesdone
13156269257Sdesif ${ac_cv_search_inet_pton+:} false; then :
13157269257Sdes
13158269257Sdeselse
13159269257Sdes  ac_cv_search_inet_pton=no
13160269257Sdesfi
13161269257Sdesrm conftest.$ac_ext
13162269257SdesLIBS=$ac_func_search_save_LIBS
13163269257Sdesfi
13164269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13165269257Sdes$as_echo "$ac_cv_search_inet_pton" >&6; }
13166269257Sdesac_res=$ac_cv_search_inet_pton
13167269257Sdesif test "$ac_res" != no; then :
13168269257Sdes  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13169269257Sdes
13170269257Sdesfi
13171269257Sdes
13172269257Sdes
13173269257Sdes
13174269257Sdes
13175269257Sdes# Check whether --with-drill was given.
13176269257Sdesif test "${with_drill+set}" = set; then :
13177269257Sdes  withval=$with_drill;
13178269257Sdeselse
13179269257Sdes  with_drill="no"
13180269257Sdesfi
13181269257Sdes
13182269257Sdesif test x_$with_drill != x_no ; then
13183269257Sdes	DRILL=drill
13184269257Sdes
13185269257Sdes	INSTALL_DRILL=install-drill
13186269257Sdes
13187269257Sdes	UNINSTALL_DRILL=uninstall-drill
13188269257Sdes
13189269257Sdes	CLEAN_DRILL=clean-drill
13190269257Sdes
13191269257Sdes	LINT_DRILL=lint-drill
13192269257Sdes
13193269257Sdes	if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
13194269257Sdes		as_fn_error $? "
13195269257SdesA config.h was detected in the drill subdirectory.
13196269257SdesThis does not work with the --with-drill option.
13197269257SdesPlease remove the config.h from the drill subdirectory
13198269257Sdesor do not use the --with-drill option." "$LINENO" 5
13199269257Sdes	fi
13200269257Sdes	DRILL_CONFIG=" drill/drill.1"
13201269257Sdeselse
13202269257Sdes	DRILL=""
13203269257Sdes
13204269257Sdes	INSTALL_DRILL=""
13205269257Sdes
13206269257Sdes	UNINSTALL_DRILL=""
13207269257Sdes
13208269257Sdes	CLEAN_DRILL=""
13209269257Sdes
13210269257Sdes	LINT_DRILL=""
13211269257Sdes
13212269257Sdes	DRILL_CONFIG=""
13213269257Sdesfi
13214269257Sdes
13215269257Sdes
13216269257Sdes
13217269257Sdes# Check whether --with-examples was given.
13218269257Sdesif test "${with_examples+set}" = set; then :
13219269257Sdes  withval=$with_examples;
13220269257Sdeselse
13221269257Sdes  with_examples="no"
13222269257Sdesfi
13223269257Sdes
13224269257Sdesif test x_$with_examples != x_no ; then
13225269257Sdes	EXAMPLES=examples
13226269257Sdes
13227269257Sdes	INSTALL_EXAMPLES=install-examples
13228269257Sdes
13229269257Sdes	UNINSTALL_EXAMPLES=uninstall-examples
13230269257Sdes
13231269257Sdes	CLEAN_EXAMPLES=clean-examples
13232269257Sdes
13233269257Sdes	LINT_EXAMPLES=lint-examples
13234269257Sdes
13235269257Sdes	if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
13236269257Sdes		as_fn_error $? "
13237269257SdesA config.h was detected in the examples subdirectory.
13238269257SdesThis does not work with the --with-examples option.
13239269257SdesPlease remove the config.h from the examples subdirectory
13240269257Sdesor do not use the --with-examples option." "$LINENO" 5
13241269257Sdes	fi
13242269257Sdes	EXAMPLES_CONFIG=" examples/ldns-dane.1 examples/ldns-verify-zone.1"
13243269257Sdeselse
13244269257Sdes	EXAMPLES=""
13245269257Sdes
13246269257Sdes	INSTALL_EXAMPLES=""
13247269257Sdes
13248269257Sdes	UNINSTALL_EXAMPLES=""
13249269257Sdes
13250269257Sdes	CLEAN_EXAMPLES=""
13251269257Sdes
13252269257Sdes	LINT_EXAMPLES=""
13253269257Sdes
13254269257Sdes	EXAMPLES_CONFIG=""
13255269257Sdesfi
13256269257Sdes
13257269257Sdes# add option to disable installation of ldns-config script
13258269257Sdes# Check whether --enable-ldns-config was given.
13259269257Sdesif test "${enable_ldns_config+set}" = set; then :
13260269257Sdes  enableval=$enable_ldns_config; enable_ldns_config=$enableval
13261269257Sdeselse
13262269257Sdes  enable_ldns_config=yes
13263269257Sdesfi
13264269257Sdes
13265269257Sdesif test "x$enable_ldns_config" = xyes; then
13266269257Sdes	INSTALL_CONFIG=install-config
13267269257Sdes
13268269257Sdes	INSTALL_CONFIG_MANPAGE=install-config-manpage
13269269257Sdes
13270269257Sdes	UNINSTALL_CONFIG=uninstall-config
13271269257Sdes
13272269257Sdes	UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
13273269257Sdes
13274269257Sdeselse
13275269257Sdes	INSTALL_CONFIG=""
13276269257Sdes
13277269257Sdes	INSTALL_CONFIG_MANPAGE=""
13278269257Sdes
13279269257Sdes	UNINSTALL_CONFIG=""
13280269257Sdes
13281269257Sdes	UNINSTALL_CONFIG_MANPAGE=""
13282269257Sdes
13283269257Sdesfi
13284269257Sdes
13285269257Sdes# add option to disable library printing to stderr
13286269257Sdes# Check whether --enable-stderr-msgs was given.
13287269257Sdesif test "${enable_stderr_msgs+set}" = set; then :
13288269257Sdes  enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
13289269257Sdeselse
13290269257Sdes  enable_stderr_msgs=no
13291269257Sdesfi
13292269257Sdes
13293269257Sdescase "$enable_stderr_msgs" in
13294269257Sdes    no)         ;;
13295269257Sdes    *)
13296269257Sdes
13297269257Sdescat >>confdefs.h <<_ACEOF
13298269257Sdes#define STDERR_MSGS 1
13299269257Sdes_ACEOF
13300269257Sdes
13301269257Sdes        ;;
13302269257Sdesesac
13303269257Sdes
13304269257Sdes# check for python
13305269257SdesPYTHON_X_CFLAGS=""
13306269257Sdesldns_with_pyldns=no
13307269257Sdesldns_with_pyldnsx=no
13308269257Sdes
13309269257Sdes# Check whether --with-pyldns was given.
13310269257Sdesif test "${with_pyldns+set}" = set; then :
13311269257Sdes  withval=$with_pyldns;
13312269257Sdeselse
13313269257Sdes   withval="no"
13314269257Sdesfi
13315269257Sdes
13316269257Sdesldns_have_python=no
13317269257Sdesif test x_$withval != x_no; then
13318269257Sdes   # ===========================================================================
13319269257Sdes#      http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
13320269257Sdes# ===========================================================================
13321269257Sdes#
13322269257Sdes# SYNOPSIS
13323269257Sdes#
13324269257Sdes#   AX_PYTHON_DEVEL([version])
13325269257Sdes#
13326269257Sdes# DESCRIPTION
13327269257Sdes#
13328269257Sdes#   Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
13329269257Sdes#   in your configure.ac.
13330269257Sdes#
13331269257Sdes#   This macro checks for Python and tries to get the include path to
13332269257Sdes#   'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
13333269257Sdes#   output variables. It also exports $(PYTHON_EXTRA_LIBS) and
13334269257Sdes#   $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
13335269257Sdes#
13336269257Sdes#   You can search for some particular version of Python by passing a
13337269257Sdes#   parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
13338269257Sdes#   note that you *have* to pass also an operator along with the version to
13339269257Sdes#   match, and pay special attention to the single quotes surrounding the
13340269257Sdes#   version number. Don't use "PYTHON_VERSION" for this: that environment
13341269257Sdes#   variable is declared as precious and thus reserved for the end-user.
13342269257Sdes#
13343269257Sdes#   This macro should work for all versions of Python >= 2.1.0. As an end
13344269257Sdes#   user, you can disable the check for the python version by setting the
13345269257Sdes#   PYTHON_NOVERSIONCHECK environment variable to something else than the
13346269257Sdes#   empty string.
13347269257Sdes#
13348269257Sdes#   If you need to use this macro for an older Python version, please
13349269257Sdes#   contact the authors. We're always open for feedback.
13350269257Sdes#
13351269257Sdes# LICENSE
13352269257Sdes#
13353269257Sdes#   Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
13354269257Sdes#   Copyright (c) 2009 Alan W. Irwin
13355269257Sdes#   Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
13356269257Sdes#   Copyright (c) 2009 Andrew Collier
13357269257Sdes#   Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
13358269257Sdes#   Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
13359269257Sdes#   Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
13360269257Sdes#
13361269257Sdes#   This program is free software: you can redistribute it and/or modify it
13362269257Sdes#   under the terms of the GNU General Public License as published by the
13363269257Sdes#   Free Software Foundation, either version 3 of the License, or (at your
13364269257Sdes#   option) any later version.
13365269257Sdes#
13366269257Sdes#   This program is distributed in the hope that it will be useful, but
13367269257Sdes#   WITHOUT ANY WARRANTY; without even the implied warranty of
13368269257Sdes#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13369269257Sdes#   Public License for more details.
13370269257Sdes#
13371269257Sdes#   You should have received a copy of the GNU General Public License along
13372269257Sdes#   with this program. If not, see <http://www.gnu.org/licenses/>.
13373269257Sdes#
13374269257Sdes#   As a special exception, the respective Autoconf Macro's copyright owner
13375269257Sdes#   gives unlimited permission to copy, distribute and modify the configure
13376269257Sdes#   scripts that are the output of Autoconf when processing the Macro. You
13377269257Sdes#   need not follow the terms of the GNU General Public License when using
13378269257Sdes#   or distributing such scripts, even though portions of the text of the
13379269257Sdes#   Macro appear in them. The GNU General Public License (GPL) does govern
13380269257Sdes#   all other use of the material that constitutes the Autoconf Macro.
13381269257Sdes#
13382269257Sdes#   This special exception to the GPL applies to versions of the Autoconf
13383269257Sdes#   Macro released by the Autoconf Archive. When you make and distribute a
13384269257Sdes#   modified version of the Autoconf Macro, you may extend this special
13385269257Sdes#   exception to the GPL to apply to your modified version as well.
13386269257Sdes
13387269257Sdes#serial 16
13388269257Sdes
13389269257Sdes# This is what autoupdate's m4 run will expand.  It fires
13390269257Sdes# the warning (with _au_warn_XXX), outputs it into the
13391269257Sdes# updated configure.ac (with AC_DIAGNOSE), and then outputs
13392269257Sdes# the replacement expansion.
13393269257Sdes
13394269257Sdes
13395269257Sdes# This is an auxiliary macro that is also run when
13396269257Sdes# autoupdate runs m4.  It simply calls m4_warning, but
13397269257Sdes# we need a wrapper so that each warning is emitted only
13398269257Sdes# once.  We break the quoting in m4_warning's argument in
13399269257Sdes# order to expand this macro's arguments, not AU_DEFUN's.
13400269257Sdes
13401269257Sdes
13402269257Sdes# Finally, this is the expansion that is picked up by
13403269257Sdes# autoconf.  It tells the user to run autoupdate, and
13404269257Sdes# then outputs the replacement expansion.  We do not care
13405269257Sdes# about autoupdate's warning because that contains
13406269257Sdes# information on what to do *after* running autoupdate.
13407269257Sdes
13408269257Sdes
13409269257Sdes
13410269257Sdes   ac_save_LIBS="$LIBS"
13411269257Sdes
13412269257Sdes	#
13413269257Sdes	# Allow the use of a (user set) custom python version
13414269257Sdes	#
13415269257Sdes
13416269257Sdes
13417269257Sdes	# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
13418269257Sdesset dummy python$PYTHON_VERSION; ac_word=$2
13419269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13420269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
13421269257Sdesif ${ac_cv_path_PYTHON+:} false; then :
13422269257Sdes  $as_echo_n "(cached) " >&6
13423269257Sdeselse
13424269257Sdes  case $PYTHON in
13425269257Sdes  [\\/]* | ?:[\\/]*)
13426269257Sdes  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13427269257Sdes  ;;
13428269257Sdes  *)
13429269257Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430269257Sdesfor as_dir in $PATH
13431269257Sdesdo
13432269257Sdes  IFS=$as_save_IFS
13433269257Sdes  test -z "$as_dir" && as_dir=.
13434269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
13435285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436269257Sdes    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13437269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13438269257Sdes    break 2
13439269257Sdes  fi
13440269257Sdesdone
13441269257Sdes  done
13442269257SdesIFS=$as_save_IFS
13443269257Sdes
13444269257Sdes  ;;
13445269257Sdesesac
13446269257Sdesfi
13447269257SdesPYTHON=$ac_cv_path_PYTHON
13448269257Sdesif test -n "$PYTHON"; then
13449269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13450269257Sdes$as_echo "$PYTHON" >&6; }
13451269257Sdeselse
13452269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453269257Sdes$as_echo "no" >&6; }
13454269257Sdesfi
13455269257Sdes
13456269257Sdes
13457269257Sdes	if test -z "$PYTHON"; then
13458269257Sdes	   as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
13459269257Sdes	   PYTHON_VERSION=""
13460269257Sdes	fi
13461269257Sdes
13462269257Sdes	#
13463269257Sdes	# Check for a version of Python >= 2.1.0
13464269257Sdes	#
13465269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
13466269257Sdes$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
13467269257Sdes	ac_supports_python_ver=`$PYTHON -c "import sys; \
13468269257Sdes		ver = sys.version.split ()[0]; \
13469269257Sdes		print (ver >= '2.1.0')"`
13470269257Sdes	if test "$ac_supports_python_ver" != "True"; then
13471269257Sdes		if test -z "$PYTHON_NOVERSIONCHECK"; then
13472269257Sdes			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473269257Sdes$as_echo "no" >&6; }
13474269257Sdes			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13475269257Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13476269257Sdesas_fn_error $? "
13477269257SdesThis version of the AC_PYTHON_DEVEL macro
13478269257Sdesdoesn't work properly with versions of Python before
13479269257Sdes2.1.0. You may need to re-run configure, setting the
13480269257Sdesvariables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
13481269257SdesPYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
13482269257SdesMoreover, to disable this check, set PYTHON_NOVERSIONCHECK
13483269257Sdesto something else than an empty string.
13484269257Sdes
13485269257SdesSee \`config.log' for more details" "$LINENO" 5; }
13486269257Sdes		else
13487269257Sdes			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
13488269257Sdes$as_echo "skip at user request" >&6; }
13489269257Sdes		fi
13490269257Sdes	else
13491269257Sdes		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13492269257Sdes$as_echo "yes" >&6; }
13493269257Sdes	fi
13494269257Sdes
13495269257Sdes	#
13496269257Sdes	# if the macro parameter ``version'' is set, honour it
13497269257Sdes	#
13498269257Sdes	if test -n ">= '2.4.0'"; then
13499269257Sdes		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
13500269257Sdes$as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; }
13501269257Sdes		ac_supports_python_ver=`$PYTHON -c "import sys; \
13502269257Sdes			ver = sys.version.split ()[0]; \
13503269257Sdes			print (ver >= '2.4.0')"`
13504269257Sdes		if test "$ac_supports_python_ver" = "True"; then
13505269257Sdes		   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13506269257Sdes$as_echo "yes" >&6; }
13507269257Sdes		else
13508269257Sdes			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509269257Sdes$as_echo "no" >&6; }
13510269257Sdes			as_fn_error $? "this package requires Python >= '2.4.0'.
13511269257SdesIf you have it installed, but it isn't the default Python
13512269257Sdesinterpreter in your system path, please pass the PYTHON_VERSION
13513269257Sdesvariable to configure. See \`\`configure --help'' for reference.
13514269257Sdes" "$LINENO" 5
13515269257Sdes			PYTHON_VERSION=""
13516269257Sdes		fi
13517269257Sdes	fi
13518269257Sdes
13519269257Sdes	#
13520269257Sdes	# Check if you have distutils, else fail
13521269257Sdes	#
13522269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
13523269257Sdes$as_echo_n "checking for the distutils Python package... " >&6; }
13524269257Sdes	ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
13525269257Sdes	if test -z "$ac_distutils_result"; then
13526269257Sdes		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13527269257Sdes$as_echo "yes" >&6; }
13528269257Sdes	else
13529269257Sdes		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530269257Sdes$as_echo "no" >&6; }
13531269257Sdes		as_fn_error $? "cannot import Python module \"distutils\".
13532269257SdesPlease check your Python installation. The error was:
13533269257Sdes$ac_distutils_result" "$LINENO" 5
13534269257Sdes		PYTHON_VERSION=""
13535269257Sdes	fi
13536269257Sdes
13537269257Sdes	#
13538269257Sdes	# Check for Python include path
13539269257Sdes	#
13540269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
13541269257Sdes$as_echo_n "checking for Python include path... " >&6; }
13542269257Sdes	if test -z "$PYTHON_CPPFLAGS"; then
13543269257Sdes		python_path=`$PYTHON -c "import distutils.sysconfig; \
13544269257Sdes			print (distutils.sysconfig.get_python_inc ());"`
13545269257Sdes		plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
13546269257Sdes			print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
13547269257Sdes		if test -n "${python_path}"; then
13548269257Sdes			if test "${plat_python_path}" != "${python_path}"; then
13549269257Sdes				python_path="-I$python_path -I$plat_python_path"
13550269257Sdes			else
13551269257Sdes				python_path="-I$python_path"
13552269257Sdes			fi
13553269257Sdes		fi
13554269257Sdes		PYTHON_CPPFLAGS=$python_path
13555269257Sdes	fi
13556269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
13557269257Sdes$as_echo "$PYTHON_CPPFLAGS" >&6; }
13558269257Sdes
13559269257Sdes
13560269257Sdes	#
13561269257Sdes	# Check for Python library path
13562269257Sdes	#
13563269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
13564269257Sdes$as_echo_n "checking for Python library path... " >&6; }
13565269257Sdes	if test -z "$PYTHON_LDFLAGS"; then
13566269257Sdes		# (makes two attempts to ensure we've got a version number
13567269257Sdes		# from the interpreter)
13568269257Sdes		ac_python_version=`cat<<EOD | $PYTHON -
13569269257Sdes
13570269257Sdes# join all versioning strings, on some systems
13571269257Sdes# major/minor numbers could be in different list elements
13572269257Sdesfrom distutils.sysconfig import *
13573269257Sdese = get_config_var('VERSION')
13574269257Sdesif e is not None:
13575269257Sdes	print(e)
13576269257SdesEOD`
13577269257Sdes
13578269257Sdes		if test -z "$ac_python_version"; then
13579269257Sdes			if test -n "$PYTHON_VERSION"; then
13580269257Sdes				ac_python_version=$PYTHON_VERSION
13581269257Sdes			else
13582269257Sdes				ac_python_version=`$PYTHON -c "import sys; \
13583269257Sdes					print (sys.version[:3])"`
13584269257Sdes			fi
13585269257Sdes		fi
13586269257Sdes
13587269257Sdes		# Make the versioning information available to the compiler
13588269257Sdes
13589269257Sdescat >>confdefs.h <<_ACEOF
13590269257Sdes#define HAVE_PYTHON "$ac_python_version"
13591269257Sdes_ACEOF
13592269257Sdes
13593269257Sdes
13594269257Sdes		# First, the library directory:
13595269257Sdes		ac_python_libdir=`cat<<EOD | $PYTHON -
13596269257Sdes
13597269257Sdes# There should be only one
13598269257Sdesimport distutils.sysconfig
13599269257Sdese = distutils.sysconfig.get_config_var('LIBDIR')
13600269257Sdesif e is not None:
13601269257Sdes	print (e)
13602269257SdesEOD`
13603269257Sdes
13604269257Sdes		# Now, for the library:
13605269257Sdes		ac_python_library=`cat<<EOD | $PYTHON -
13606269257Sdes
13607269257Sdesimport distutils.sysconfig
13608269257Sdesc = distutils.sysconfig.get_config_vars()
13609269257Sdesif 'LDVERSION' in c:
13610269257Sdes	print ('python'+c['LDVERSION'])
13611269257Sdeselse:
13612269257Sdes	print ('python'+c['VERSION'])
13613269257SdesEOD`
13614269257Sdes
13615269257Sdes		# This small piece shamelessly adapted from PostgreSQL python macro;
13616269257Sdes		# credits goes to momjian, I think. I'd like to put the right name
13617269257Sdes		# in the credits, if someone can point me in the right direction... ?
13618269257Sdes		#
13619269257Sdes		if test -n "$ac_python_libdir" -a -n "$ac_python_library"
13620269257Sdes		then
13621269257Sdes			# use the official shared library
13622269257Sdes			ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
13623269257Sdes			PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
13624269257Sdes		else
13625269257Sdes			# old way: use libpython from python_configdir
13626269257Sdes			ac_python_libdir=`$PYTHON -c \
13627269257Sdes			  "from distutils.sysconfig import get_python_lib as f; \
13628269257Sdes			  import os; \
13629269257Sdes			  print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
13630269257Sdes			PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
13631269257Sdes		fi
13632269257Sdes
13633269257Sdes		if test -z "PYTHON_LDFLAGS"; then
13634269257Sdes			as_fn_error $? "
13635269257Sdes  Cannot determine location of your Python DSO. Please check it was installed with
13636269257Sdes  dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
13637269257Sdes			" "$LINENO" 5
13638269257Sdes		fi
13639269257Sdes	fi
13640269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
13641269257Sdes$as_echo "$PYTHON_LDFLAGS" >&6; }
13642269257Sdes
13643269257Sdes
13644269257Sdes	#
13645269257Sdes	# Check for site packages
13646269257Sdes	#
13647269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
13648269257Sdes$as_echo_n "checking for Python site-packages path... " >&6; }
13649269257Sdes	if test -z "$PYTHON_SITE_PKG"; then
13650269257Sdes		PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
13651269257Sdes			print (distutils.sysconfig.get_python_lib(1,0));"`
13652269257Sdes	fi
13653269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
13654269257Sdes$as_echo "$PYTHON_SITE_PKG" >&6; }
13655269257Sdes
13656269257Sdes
13657269257Sdes	#
13658269257Sdes	# libraries which must be linked in when embedding
13659269257Sdes	#
13660269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
13661269257Sdes$as_echo_n "checking python extra libraries... " >&6; }
13662269257Sdes	if test -z "$PYTHON_EXTRA_LIBS"; then
13663269257Sdes	   PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
13664269257Sdes                conf = distutils.sysconfig.get_config_var; \
13665269257Sdes                print (conf('LIBS'))"`
13666269257Sdes	fi
13667269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
13668269257Sdes$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
13669269257Sdes
13670269257Sdes
13671269257Sdes	#
13672269257Sdes	# linking flags needed when embedding
13673269257Sdes	#
13674269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
13675269257Sdes$as_echo_n "checking python extra linking flags... " >&6; }
13676269257Sdes	if test -z "$PYTHON_EXTRA_LDFLAGS"; then
13677269257Sdes		PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
13678269257Sdes			conf = distutils.sysconfig.get_config_var; \
13679269257Sdes			print (conf('LINKFORSHARED'))"`
13680269257Sdes	fi
13681269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
13682269257Sdes$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
13683269257Sdes
13684269257Sdes
13685269257Sdes	#
13686269257Sdes	# final check to see if everything compiles alright
13687269257Sdes	#
13688269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
13689269257Sdes$as_echo_n "checking consistency of all components of python development environment... " >&6; }
13690269257Sdes	# save current global flags
13691269257Sdes	ac_save_LIBS="$LIBS"
13692269257Sdes	ac_save_CPPFLAGS="$CPPFLAGS"
13693269257Sdes	LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
13694269257Sdes	CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
13695269257Sdes	ac_ext=c
13696269257Sdesac_cpp='$CPP $CPPFLAGS'
13697269257Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13698269257Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699269257Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
13700269257Sdes
13701269257Sdes	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702269257Sdes/* end confdefs.h.  */
13703269257Sdes
13704269257Sdes		#include <Python.h>
13705269257Sdesint
13706269257Sdesmain ()
13707269257Sdes{
13708269257SdesPy_Initialize();
13709269257Sdes  ;
13710269257Sdes  return 0;
13711269257Sdes}
13712269257Sdes
13713269257Sdes_ACEOF
13714269257Sdesif ac_fn_c_try_link "$LINENO"; then :
13715269257Sdes  pythonexists=yes
13716269257Sdeselse
13717269257Sdes  pythonexists=no
13718269257Sdesfi
13719269257Sdesrm -f core conftest.err conftest.$ac_objext \
13720269257Sdes    conftest$ac_exeext conftest.$ac_ext
13721269257Sdes	ac_ext=c
13722269257Sdesac_cpp='$CPP $CPPFLAGS'
13723269257Sdesac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724269257Sdesac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725269257Sdesac_compiler_gnu=$ac_cv_c_compiler_gnu
13726269257Sdes
13727269257Sdes	# turn back to default flags
13728269257Sdes	CPPFLAGS="$ac_save_CPPFLAGS"
13729269257Sdes	LIBS="$ac_save_LIBS"
13730269257Sdes
13731269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
13732269257Sdes$as_echo "$pythonexists" >&6; }
13733269257Sdes
13734269257Sdes        if test ! "x$pythonexists" = "xyes"; then
13735269257Sdes	   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13736269257Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13737269257Sdesas_fn_error $? "
13738269257Sdes  Could not link test program to Python. Maybe the main Python library has been
13739269257Sdes  installed in some non-standard library path. If so, pass it to configure,
13740269257Sdes  via the LDFLAGS environment variable.
13741269257Sdes  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
13742269257Sdes  ============================================================================
13743269257Sdes   ERROR!
13744269257Sdes   You probably have to install the development version of the Python package
13745269257Sdes   for your distribution.  The exact name of this package varies among them.
13746269257Sdes  ============================================================================
13747269257Sdes
13748269257SdesSee \`config.log' for more details" "$LINENO" 5; }
13749269257Sdes	  PYTHON_VERSION=""
13750269257Sdes	fi
13751269257Sdes
13752269257Sdes	#
13753269257Sdes	# all done!
13754269257Sdes	#
13755269257Sdes
13756269257Sdes   if test ! -z "$ac_python_version"; then
13757269257Sdes	ldns_have_python=yes
13758269257Sdes   fi
13759269257Sdes
13760269257Sdes   # pass additional Python 3 option to SWIG
13761269257Sdes   if test `$PYTHON -c "import sys; \
13762269257Sdes       ver = sys.version.split()[0]; \
13763269257Sdes       print(ver >= '3')"` = "True"; then
13764269257Sdes       SWIGPY3="-py3 -DPY3"
13765269257Sdes
13766269257Sdes   fi
13767269257Sdes
13768269257Sdes   # check for SWIG
13769269257Sdes   if test x_$ldns_have_python != x_no; then
13770269257Sdes        # ===========================================================================
13771269257Sdes#        http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
13772269257Sdes# ===========================================================================
13773269257Sdes#
13774269257Sdes# SYNOPSIS
13775269257Sdes#
13776269257Sdes#   AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
13777269257Sdes#
13778269257Sdes# DESCRIPTION
13779269257Sdes#
13780269257Sdes#   This macro searches for a SWIG installation on your system. If found,
13781269257Sdes#   then SWIG is AC_SUBST'd; if not found, then $SWIG is empty.  If SWIG is
13782269257Sdes#   found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
13783269257Sdes#
13784269257Sdes#   You can use the optional first argument to check if the version of the
13785269257Sdes#   available SWIG is greater than or equal to the value of the argument. It
13786269257Sdes#   should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
13787269257Sdes#   the first N is mandatory.) If the version argument is given (e.g.
13788269257Sdes#   1.3.17), AX_PKG_SWIG checks that the swig package is this version number
13789269257Sdes#   or higher.
13790269257Sdes#
13791269257Sdes#   As usual, action-if-found is executed if SWIG is found, otherwise
13792269257Sdes#   action-if-not-found is executed.
13793269257Sdes#
13794269257Sdes#   In configure.in, use as:
13795269257Sdes#
13796269257Sdes#     AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
13797269257Sdes#     AX_SWIG_ENABLE_CXX
13798269257Sdes#     AX_SWIG_MULTI_MODULE_SUPPORT
13799269257Sdes#     AX_SWIG_PYTHON
13800269257Sdes#
13801269257Sdes# LICENSE
13802269257Sdes#
13803269257Sdes#   Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
13804269257Sdes#   Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
13805269257Sdes#   Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
13806269257Sdes#   Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
13807269257Sdes#   Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
13808269257Sdes#
13809269257Sdes#   This program is free software; you can redistribute it and/or modify it
13810269257Sdes#   under the terms of the GNU General Public License as published by the
13811269257Sdes#   Free Software Foundation; either version 2 of the License, or (at your
13812269257Sdes#   option) any later version.
13813269257Sdes#
13814269257Sdes#   This program is distributed in the hope that it will be useful, but
13815269257Sdes#   WITHOUT ANY WARRANTY; without even the implied warranty of
13816269257Sdes#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13817269257Sdes#   Public License for more details.
13818269257Sdes#
13819269257Sdes#   You should have received a copy of the GNU General Public License along
13820269257Sdes#   with this program. If not, see <http://www.gnu.org/licenses/>.
13821269257Sdes#
13822269257Sdes#   As a special exception, the respective Autoconf Macro's copyright owner
13823269257Sdes#   gives unlimited permission to copy, distribute and modify the configure
13824269257Sdes#   scripts that are the output of Autoconf when processing the Macro. You
13825269257Sdes#   need not follow the terms of the GNU General Public License when using
13826269257Sdes#   or distributing such scripts, even though portions of the text of the
13827269257Sdes#   Macro appear in them. The GNU General Public License (GPL) does govern
13828269257Sdes#   all other use of the material that constitutes the Autoconf Macro.
13829269257Sdes#
13830269257Sdes#   This special exception to the GPL applies to versions of the Autoconf
13831269257Sdes#   Macro released by the Autoconf Archive. When you make and distribute a
13832269257Sdes#   modified version of the Autoconf Macro, you may extend this special
13833269257Sdes#   exception to the GPL to apply to your modified version as well.
13834269257Sdes
13835269257Sdes#serial 8
13836269257Sdes
13837269257Sdes
13838269257Sdes
13839269257Sdes
13840269257Sdes        # check for >=SWIG-2.0.4 if Python 3.2 used
13841269257Sdes        if test `$PYTHON -c "import sys; \
13842269257Sdes            ver = sys.version.split()[0]; \
13843269257Sdes            print(ver >= '3.2')"` = "True"; then
13844269257Sdes
13845269257Sdes        # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13846269257Sdes        for ac_prog in swig2.0 swig
13847269257Sdesdo
13848269257Sdes  # Extract the first word of "$ac_prog", so it can be a program name with args.
13849269257Sdesset dummy $ac_prog; ac_word=$2
13850269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
13852269257Sdesif ${ac_cv_path_SWIG+:} false; then :
13853269257Sdes  $as_echo_n "(cached) " >&6
13854269257Sdeselse
13855269257Sdes  case $SWIG in
13856269257Sdes  [\\/]* | ?:[\\/]*)
13857269257Sdes  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13858269257Sdes  ;;
13859269257Sdes  *)
13860269257Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861269257Sdesfor as_dir in $PATH
13862269257Sdesdo
13863269257Sdes  IFS=$as_save_IFS
13864269257Sdes  test -z "$as_dir" && as_dir=.
13865269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
13866285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867269257Sdes    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13868269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869269257Sdes    break 2
13870269257Sdes  fi
13871269257Sdesdone
13872269257Sdes  done
13873269257SdesIFS=$as_save_IFS
13874269257Sdes
13875269257Sdes  ;;
13876269257Sdesesac
13877269257Sdesfi
13878269257SdesSWIG=$ac_cv_path_SWIG
13879269257Sdesif test -n "$SWIG"; then
13880269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
13881269257Sdes$as_echo "$SWIG" >&6; }
13882269257Sdeselse
13883269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884269257Sdes$as_echo "no" >&6; }
13885269257Sdesfi
13886269257Sdes
13887269257Sdes
13888269257Sdes  test -n "$SWIG" && break
13889269257Sdesdone
13890269257Sdes
13891269257Sdes        if test -z "$SWIG" ; then
13892269257Sdes                as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13893269257Sdes        elif test -n "2.0.4" ; then
13894269257Sdes                { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
13895269257Sdes$as_echo_n "checking SWIG version... " >&6; }
13896269257Sdes                swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
13897269257Sdes                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
13898269257Sdes$as_echo "$swig_version" >&6; }
13899269257Sdes                if test -n "$swig_version" ; then
13900269257Sdes                        # Calculate the required version number components
13901269257Sdes                        required=2.0.4
13902269257Sdes                        required_major=`echo $required | sed 's/[^0-9].*//'`
13903269257Sdes                        if test -z "$required_major" ; then
13904269257Sdes                                required_major=0
13905269257Sdes                        fi
13906269257Sdes                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13907269257Sdes                        required_minor=`echo $required | sed 's/[^0-9].*//'`
13908269257Sdes                        if test -z "$required_minor" ; then
13909269257Sdes                                required_minor=0
13910269257Sdes                        fi
13911269257Sdes                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13912269257Sdes                        required_patch=`echo $required | sed 's/[^0-9].*//'`
13913269257Sdes                        if test -z "$required_patch" ; then
13914269257Sdes                                required_patch=0
13915269257Sdes                        fi
13916269257Sdes                        # Calculate the available version number components
13917269257Sdes                        available=$swig_version
13918269257Sdes                        available_major=`echo $available | sed 's/[^0-9].*//'`
13919269257Sdes                        if test -z "$available_major" ; then
13920269257Sdes                                available_major=0
13921269257Sdes                        fi
13922269257Sdes                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13923269257Sdes                        available_minor=`echo $available | sed 's/[^0-9].*//'`
13924269257Sdes                        if test -z "$available_minor" ; then
13925269257Sdes                                available_minor=0
13926269257Sdes                        fi
13927269257Sdes                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13928269257Sdes                        available_patch=`echo $available | sed 's/[^0-9].*//'`
13929269257Sdes                        if test -z "$available_patch" ; then
13930269257Sdes                                available_patch=0
13931269257Sdes                        fi
13932269257Sdes                        # Convert the version tuple into a single number for easier comparison.
13933269257Sdes                        # Using base 100 should be safe since SWIG internally uses BCD values
13934269257Sdes                        # to encode its version number.
13935269257Sdes                        required_swig_vernum=`expr $required_major \* 10000 \
13936269257Sdes                            \+ $required_minor \* 100 \+ $required_patch`
13937269257Sdes                        available_swig_vernum=`expr $available_major \* 10000 \
13938269257Sdes                            \+ $available_minor \* 100 \+ $available_patch`
13939269257Sdes
13940269257Sdes                        if test $available_swig_vernum -lt $required_swig_vernum; then
13941269257Sdes                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&5
13942269257Sdes$as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required.  You have $swig_version." >&2;}
13943269257Sdes                                SWIG=''
13944269257Sdes                                as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13945269257Sdes                        else
13946269257Sdes                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
13947269257Sdes$as_echo_n "checking for SWIG library... " >&6; }
13948269257Sdes                                SWIG_LIB=`$SWIG -swiglib`
13949269257Sdes                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
13950269257Sdes$as_echo "$SWIG_LIB" >&6; }
13951269257Sdes
13952269257Sdes                        fi
13953269257Sdes                else
13954269257Sdes                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
13955269257Sdes$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
13956269257Sdes                        SWIG=''
13957269257Sdes                        as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13958269257Sdes                fi
13959269257Sdes        fi
13960269257Sdes
13961269257Sdes
13962269257Sdes        else
13963269257Sdes
13964269257Sdes        # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13965269257Sdes        for ac_prog in swig2.0 swig
13966269257Sdesdo
13967269257Sdes  # Extract the first word of "$ac_prog", so it can be a program name with args.
13968269257Sdesset dummy $ac_prog; ac_word=$2
13969269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13970269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
13971269257Sdesif ${ac_cv_path_SWIG+:} false; then :
13972269257Sdes  $as_echo_n "(cached) " >&6
13973269257Sdeselse
13974269257Sdes  case $SWIG in
13975269257Sdes  [\\/]* | ?:[\\/]*)
13976269257Sdes  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13977269257Sdes  ;;
13978269257Sdes  *)
13979269257Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980269257Sdesfor as_dir in $PATH
13981269257Sdesdo
13982269257Sdes  IFS=$as_save_IFS
13983269257Sdes  test -z "$as_dir" && as_dir=.
13984269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
13985285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13986269257Sdes    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13987269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13988269257Sdes    break 2
13989269257Sdes  fi
13990269257Sdesdone
13991269257Sdes  done
13992269257SdesIFS=$as_save_IFS
13993269257Sdes
13994269257Sdes  ;;
13995269257Sdesesac
13996269257Sdesfi
13997269257SdesSWIG=$ac_cv_path_SWIG
13998269257Sdesif test -n "$SWIG"; then
13999269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14000269257Sdes$as_echo "$SWIG" >&6; }
14001269257Sdeselse
14002269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003269257Sdes$as_echo "no" >&6; }
14004269257Sdesfi
14005269257Sdes
14006269257Sdes
14007269257Sdes  test -n "$SWIG" && break
14008269257Sdesdone
14009269257Sdes
14010269257Sdes        if test -z "$SWIG" ; then
14011269257Sdes                :
14012269257Sdes        elif test -n "" ; then
14013269257Sdes                { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
14014269257Sdes$as_echo_n "checking SWIG version... " >&6; }
14015269257Sdes                swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
14016269257Sdes                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14017269257Sdes$as_echo "$swig_version" >&6; }
14018269257Sdes                if test -n "$swig_version" ; then
14019269257Sdes                        # Calculate the required version number components
14020269257Sdes                        required=
14021269257Sdes                        required_major=`echo $required | sed 's/[^0-9].*//'`
14022269257Sdes                        if test -z "$required_major" ; then
14023269257Sdes                                required_major=0
14024269257Sdes                        fi
14025269257Sdes                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14026269257Sdes                        required_minor=`echo $required | sed 's/[^0-9].*//'`
14027269257Sdes                        if test -z "$required_minor" ; then
14028269257Sdes                                required_minor=0
14029269257Sdes                        fi
14030269257Sdes                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14031269257Sdes                        required_patch=`echo $required | sed 's/[^0-9].*//'`
14032269257Sdes                        if test -z "$required_patch" ; then
14033269257Sdes                                required_patch=0
14034269257Sdes                        fi
14035269257Sdes                        # Calculate the available version number components
14036269257Sdes                        available=$swig_version
14037269257Sdes                        available_major=`echo $available | sed 's/[^0-9].*//'`
14038269257Sdes                        if test -z "$available_major" ; then
14039269257Sdes                                available_major=0
14040269257Sdes                        fi
14041269257Sdes                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14042269257Sdes                        available_minor=`echo $available | sed 's/[^0-9].*//'`
14043269257Sdes                        if test -z "$available_minor" ; then
14044269257Sdes                                available_minor=0
14045269257Sdes                        fi
14046269257Sdes                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14047269257Sdes                        available_patch=`echo $available | sed 's/[^0-9].*//'`
14048269257Sdes                        if test -z "$available_patch" ; then
14049269257Sdes                                available_patch=0
14050269257Sdes                        fi
14051269257Sdes                        # Convert the version tuple into a single number for easier comparison.
14052269257Sdes                        # Using base 100 should be safe since SWIG internally uses BCD values
14053269257Sdes                        # to encode its version number.
14054269257Sdes                        required_swig_vernum=`expr $required_major \* 10000 \
14055269257Sdes                            \+ $required_minor \* 100 \+ $required_patch`
14056269257Sdes                        available_swig_vernum=`expr $available_major \* 10000 \
14057269257Sdes                            \+ $available_minor \* 100 \+ $available_patch`
14058269257Sdes
14059269257Sdes                        if test $available_swig_vernum -lt $required_swig_vernum; then
14060269257Sdes                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version." >&5
14061269257Sdes$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version." >&2;}
14062269257Sdes                                SWIG=''
14063269257Sdes
14064269257Sdes                        else
14065269257Sdes                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14066269257Sdes$as_echo_n "checking for SWIG library... " >&6; }
14067269257Sdes                                SWIG_LIB=`$SWIG -swiglib`
14068269257Sdes                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14069269257Sdes$as_echo "$SWIG_LIB" >&6; }
14070269257Sdes
14071269257Sdes                        fi
14072269257Sdes                else
14073269257Sdes                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14074269257Sdes$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14075269257Sdes                        SWIG=''
14076269257Sdes
14077269257Sdes                fi
14078269257Sdes        fi
14079269257Sdes
14080269257Sdes
14081269257Sdes        fi
14082269257Sdes
14083269257Sdes	if test ! -x "$SWIG"; then
14084269257Sdes		as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
14085269257Sdes	else
14086269257Sdes
14087269257Sdes$as_echo "#define HAVE_SWIG 1" >>confdefs.h
14088269257Sdes
14089269257Sdes		PYLDNS="pyldns"
14090269257Sdes
14091269257Sdes		swig="$SWIG"
14092269257Sdes
14093269257Sdes		ldns_with_pyldns=yes
14094269257Sdes	fi
14095269257Sdes   else
14096269257Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
14097269257Sdes$as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
14098269257Sdes   fi
14099269257Sdes
14100269257Sdes   # xtra cflags for pyldns
14101269257Sdes   if test x_$ldns_have_python != x_no; then
14102269257Sdes
14103269257Sdes
14104269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
14105269257Sdes$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
14106269257Sdescache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
14107269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
14108269257Sdes  $as_echo_n "(cached) " >&6
14109269257Sdeselse
14110269257Sdes
14111269257Sdesecho 'void f(void){}' >conftest.c
14112269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
14113269257Sdeseval "cv_prog_cc_flag_$cache=yes"
14114269257Sdeselse
14115269257Sdeseval "cv_prog_cc_flag_$cache=no"
14116269257Sdesfi
14117269257Sdesrm -f conftest conftest.o conftest.c
14118269257Sdes
14119269257Sdesfi
14120269257Sdes
14121269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14122269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14123269257Sdes$as_echo "yes" >&6; }
14124269257Sdes:
14125269257SdesPYTHON_X_CFLAGS="-fno-strict-aliasing"
14126269257Sdeselse
14127269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128269257Sdes$as_echo "no" >&6; }
14129269257Sdes:
14130269257Sdes
14131269257Sdesfi
14132269257Sdes
14133269257Sdes
14134269257Sdes
14135269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
14136269257Sdes$as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
14137269257Sdescache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
14138269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
14139269257Sdes  $as_echo_n "(cached) " >&6
14140269257Sdeselse
14141269257Sdes
14142269257Sdesecho 'void f(void){}' >conftest.c
14143269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
14144269257Sdeseval "cv_prog_cc_flag_$cache=yes"
14145269257Sdeselse
14146269257Sdeseval "cv_prog_cc_flag_$cache=no"
14147269257Sdesfi
14148269257Sdesrm -f conftest conftest.o conftest.c
14149269257Sdes
14150269257Sdesfi
14151269257Sdes
14152269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14153269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154269257Sdes$as_echo "yes" >&6; }
14155269257Sdes:
14156269257SdesPYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
14157269257Sdeselse
14158269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159269257Sdes$as_echo "no" >&6; }
14160269257Sdes:
14161269257Sdes
14162269257Sdesfi
14163269257Sdes
14164269257Sdes
14165269257Sdes
14166269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
14167269257Sdes$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
14168269257Sdescache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
14169269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
14170269257Sdes  $as_echo_n "(cached) " >&6
14171269257Sdeselse
14172269257Sdes
14173269257Sdesecho 'void f(void){}' >conftest.c
14174269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
14175269257Sdeseval "cv_prog_cc_flag_$cache=yes"
14176269257Sdeselse
14177269257Sdeseval "cv_prog_cc_flag_$cache=no"
14178269257Sdesfi
14179269257Sdesrm -f conftest conftest.o conftest.c
14180269257Sdes
14181269257Sdesfi
14182269257Sdes
14183269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14184269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185269257Sdes$as_echo "yes" >&6; }
14186269257Sdes:
14187269257SdesPYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
14188269257Sdeselse
14189269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190269257Sdes$as_echo "no" >&6; }
14191269257Sdes:
14192269257Sdes
14193269257Sdesfi
14194269257Sdes
14195269257Sdes
14196269257Sdes
14197269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
14198269257Sdes$as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; }
14199269257Sdescache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
14200269257Sdesif eval \${cv_prog_cc_flag_$cache+:} false; then :
14201269257Sdes  $as_echo_n "(cached) " >&6
14202269257Sdeselse
14203269257Sdes
14204269257Sdesecho 'void f(void){}' >conftest.c
14205269257Sdesif test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
14206269257Sdeseval "cv_prog_cc_flag_$cache=yes"
14207269257Sdeselse
14208269257Sdeseval "cv_prog_cc_flag_$cache=no"
14209269257Sdesfi
14210269257Sdesrm -f conftest conftest.o conftest.c
14211269257Sdes
14212269257Sdesfi
14213269257Sdes
14214269257Sdesif eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14215269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14216269257Sdes$as_echo "yes" >&6; }
14217269257Sdes:
14218269257SdesPYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
14219269257Sdeselse
14220269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221269257Sdes$as_echo "no" >&6; }
14222269257Sdes:
14223269257Sdes
14224269257Sdesfi
14225269257Sdes
14226269257Sdes   fi
14227269257Sdesfi
14228269257Sdes
14229269257Sdes
14230269257Sdes# Check for pyldnsx
14231269257Sdes
14232269257Sdes# Check whether --with-pyldnsx was given.
14233269257Sdesif test "${with_pyldnsx+set}" = set; then :
14234269257Sdes  withval=$with_pyldnsx;
14235269257Sdeselse
14236269257Sdes   withval="with_pyldns"
14237269257Sdesfi
14238269257Sdes
14239269257Sdesif test x_$withval != x_no; then
14240269257Sdes  if test x_$ldns_with_pyldns != x_no; then
14241269257Sdes    PYLDNSX="pyldnsx"
14242269257Sdes
14243269257Sdes    ldns_with_pyldnsx=yes
14244269257Sdes  else
14245269257Sdes    if test x_$withval != x_with_pyldns; then
14246269257Sdes      as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
14247269257Sdes    fi
14248269257Sdes  fi
14249269257Sdesfi
14250269257Sdes
14251269257Sdesif test x_$ldns_with_pyldns != x_no; then
14252269257Sdes  PYLDNSINST="install-pyldns"
14253269257Sdes  PYLDNSUNINST="uninstall-pyldns"
14254269257Sdes
14255269257Sdeselse
14256269257Sdes  PYLDNSINST=""
14257269257Sdes  PYLDNSUNINST=""
14258269257Sdes
14259269257Sdesfi
14260269257Sdesif test x_$ldns_with_pyldnsx != x_no; then
14261269257Sdes  PYLDNSXINST="install-pyldnsx"
14262269257Sdes  PYLDNSXUNINST="uninstall-pyldnsx"
14263269257Sdes
14264269257Sdeselse
14265269257Sdes  PYLDNSXINST=""
14266269257Sdes  PYLDNSXUNINST=""
14267269257Sdes
14268269257Sdesfi
14269269257Sdes
14270269257Sdes# check for perl
14271269257Sdesldns_with_p5_dns_ldns=no
14272269257Sdes
14273269257Sdes# Check whether --with-p5-dns-ldns was given.
14274269257Sdesif test "${with_p5_dns_ldns+set}" = set; then :
14275269257Sdes  withval=$with_p5_dns_ldns;
14276269257Sdeselse
14277269257Sdes   withval="no"
14278269257Sdesfi
14279269257Sdes
14280269257Sdesldns_have_perl=no
14281269257Sdesif test x_$withval != x_no; then
14282269257Sdes   # Extract the first word of "perl", so it can be a program name with args.
14283269257Sdesset dummy perl; ac_word=$2
14284269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
14286269257Sdesif ${ac_cv_path_PERL+:} false; then :
14287269257Sdes  $as_echo_n "(cached) " >&6
14288269257Sdeselse
14289269257Sdes  case $PERL in
14290269257Sdes  [\\/]* | ?:[\\/]*)
14291269257Sdes  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14292269257Sdes  ;;
14293269257Sdes  *)
14294269257Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295269257Sdesfor as_dir in $PATH
14296269257Sdesdo
14297269257Sdes  IFS=$as_save_IFS
14298269257Sdes  test -z "$as_dir" && as_dir=.
14299269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
14300285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14301269257Sdes    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14302269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14303269257Sdes    break 2
14304269257Sdes  fi
14305269257Sdesdone
14306269257Sdes  done
14307269257SdesIFS=$as_save_IFS
14308269257Sdes
14309269257Sdes  ;;
14310269257Sdesesac
14311269257Sdesfi
14312269257SdesPERL=$ac_cv_path_PERL
14313269257Sdesif test -n "$PERL"; then
14314269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14315269257Sdes$as_echo "$PERL" >&6; }
14316269257Sdeselse
14317269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318269257Sdes$as_echo "no" >&6; }
14319269257Sdesfi
14320269257Sdes
14321269257Sdes
14322269257Sdes   if test -z "$PERL"; then
14323269257Sdes      as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
14324269257Sdes   fi
14325269257Sdes   P5_DNS_LDNS="p5-dns-ldns"
14326269257Sdes   TEST_P5_DNS_LDNS="test-p5-dns-ldns"
14327269257Sdes   INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
14328269257Sdes   UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
14329269257Sdes   CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
14330269257Sdes
14331269257Sdeselse
14332269257Sdes   P5_DNS_LDNS=""
14333269257Sdes   TEST_P5_DNS_LDNS=""
14334269257Sdes   INSTALL_P5_DNS_LDNS=""
14335269257Sdes   UNINSTALL_P5_DNS_LDNS=""
14336269257Sdes   CLEAN_P5_DNS_LDNS=""
14337269257Sdes
14338269257Sdesfi
14339269257Sdes
14340269257Sdes# Use libtool
14341269257Sdes
14342269257Sdes# skip these tests, we do not need them.
14343269257Sdes
14344269257Sdes
14345269257Sdes
14346269257Sdes
14347269257Sdes
14348269257Sdes
14349269257Sdes
14350269257Sdes
14351269257Sdes# always use ./libtool unless override from commandline (libtool=mylibtool)
14352269257Sdesif test -z "$libtool"; then
14353269257Sdes	libtool="./libtool"
14354269257Sdesfi
14355269257Sdes
14356269257Sdes# avoid libtool max commandline length test on systems that fork slowly.
14357269257Sdes
14358269257Sdesif echo "$host_os" | grep "sunos4" >/dev/null; then
14359269257Sdes	lt_cv_sys_max_cmd_len=32750;
14360269257Sdesfi
14361269257Sdesif test -n "$ac_tool_prefix"; then
14362269257Sdes  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14363269257Sdesset dummy ${ac_tool_prefix}ar; ac_word=$2
14364269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
14366269257Sdesif ${ac_cv_path_AR+:} false; then :
14367269257Sdes  $as_echo_n "(cached) " >&6
14368269257Sdeselse
14369269257Sdes  case $AR in
14370269257Sdes  [\\/]* | ?:[\\/]*)
14371269257Sdes  ac_cv_path_AR="$AR" # Let the user override the test with a path.
14372269257Sdes  ;;
14373269257Sdes  *)
14374269257Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375269257Sdesfor as_dir in $PATH
14376269257Sdesdo
14377269257Sdes  IFS=$as_save_IFS
14378269257Sdes  test -z "$as_dir" && as_dir=.
14379269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
14380285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14381269257Sdes    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14382269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14383269257Sdes    break 2
14384269257Sdes  fi
14385269257Sdesdone
14386269257Sdes  done
14387269257SdesIFS=$as_save_IFS
14388269257Sdes
14389269257Sdes  ;;
14390269257Sdesesac
14391269257Sdesfi
14392269257SdesAR=$ac_cv_path_AR
14393269257Sdesif test -n "$AR"; then
14394269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14395269257Sdes$as_echo "$AR" >&6; }
14396269257Sdeselse
14397269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398269257Sdes$as_echo "no" >&6; }
14399269257Sdesfi
14400269257Sdes
14401269257Sdes
14402269257Sdesfi
14403269257Sdesif test -z "$ac_cv_path_AR"; then
14404269257Sdes  ac_pt_AR=$AR
14405269257Sdes  # Extract the first word of "ar", so it can be a program name with args.
14406269257Sdesset dummy ar; ac_word=$2
14407269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408269257Sdes$as_echo_n "checking for $ac_word... " >&6; }
14409269257Sdesif ${ac_cv_path_ac_pt_AR+:} false; then :
14410269257Sdes  $as_echo_n "(cached) " >&6
14411269257Sdeselse
14412269257Sdes  case $ac_pt_AR in
14413269257Sdes  [\\/]* | ?:[\\/]*)
14414269257Sdes  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
14415269257Sdes  ;;
14416269257Sdes  *)
14417269257Sdes  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418269257Sdesfor as_dir in $PATH
14419269257Sdesdo
14420269257Sdes  IFS=$as_save_IFS
14421269257Sdes  test -z "$as_dir" && as_dir=.
14422269257Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
14423285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14424269257Sdes    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
14425269257Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14426269257Sdes    break 2
14427269257Sdes  fi
14428269257Sdesdone
14429269257Sdes  done
14430269257SdesIFS=$as_save_IFS
14431269257Sdes
14432269257Sdes  ;;
14433269257Sdesesac
14434269257Sdesfi
14435269257Sdesac_pt_AR=$ac_cv_path_ac_pt_AR
14436269257Sdesif test -n "$ac_pt_AR"; then
14437269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
14438269257Sdes$as_echo "$ac_pt_AR" >&6; }
14439269257Sdeselse
14440269257Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441269257Sdes$as_echo "no" >&6; }
14442269257Sdesfi
14443269257Sdes
14444269257Sdes  if test "x$ac_pt_AR" = x; then
14445269257Sdes    AR="false"
14446269257Sdes  else
14447269257Sdes    case $cross_compiling:$ac_tool_warned in
14448269257Sdesyes:)
14449269257Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14450269257Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14451269257Sdesac_tool_warned=yes ;;
14452269257Sdesesac
14453269257Sdes    AR=$ac_pt_AR
14454269257Sdes  fi
14455269257Sdeselse
14456269257Sdes  AR="$ac_cv_path_AR"
14457269257Sdesfi
14458269257Sdes
14459269257Sdesif test $AR = false; then
14460269257Sdes	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
14461269257Sdesfi
14462269257Sdes
14463269257Sdes
14464269257Sdes
14465269257Sdes
14466269257Sdes
14467269257Sdes
14468238104Sdestmp_CPPFLAGS=$CPPFLAGS
14469238104Sdestmp_LDFLAGS=$LDFLAGS
14470238104Sdestmp_LIBS=$LIBS
14471238104Sdes
14472238104Sdes
14473238104Sdes
14474238104Sdes# Check whether --with-ssl was given.
14475238104Sdesif test "${with_ssl+set}" = set; then :
14476238104Sdes  withval=$with_ssl;
14477238104Sdes
14478238104Sdeselse
14479238104Sdes
14480238104Sdes            withval="yes"
14481238104Sdes
14482238104Sdesfi
14483238104Sdes
14484238104Sdes
14485238104Sdes    withval=$withval
14486238104Sdes    if test x_$withval != x_no; then
14487238104Sdes        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
14488238104Sdes$as_echo_n "checking for SSL... " >&6; }
14489238104Sdes        if test x_$withval = x_ -o x_$withval = x_yes; then
14490238104Sdes            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
14491238104Sdes        fi
14492238104Sdes        for dir in $withval; do
14493238104Sdes            ssldir="$dir"
14494238104Sdes            if test -f "$dir/include/openssl/ssl.h"; then
14495238104Sdes                found_ssl="yes"
14496238104Sdes
14497238104Sdescat >>confdefs.h <<_ACEOF
14498238104Sdes#define HAVE_SSL /**/
14499238104Sdes_ACEOF
14500238104Sdes
14501238104Sdes                                if test "$ssldir" != "/usr"; then
14502238104Sdes                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
14503238104Sdes                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
14504238104Sdes                fi
14505238104Sdes                break;
14506238104Sdes            fi
14507238104Sdes        done
14508238104Sdes        if test x_$found_ssl != x_yes; then
14509238104Sdes            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
14510238104Sdes        else
14511238104Sdes            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
14512238104Sdes$as_echo "found in $ssldir" >&6; }
14513238104Sdes            HAVE_SSL=yes
14514238104Sdes                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
14515238104Sdes                LDFLAGS="$LDFLAGS -L$ssldir/lib"
14516238104Sdes                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
14517238104Sdes
14518238104Sdes	if test "x$enable_rpath" = xyes; then
14519238104Sdes		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
14520238104Sdes			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
14521238104Sdes		fi
14522238104Sdes	fi
14523238104Sdes
14524238104Sdes            fi
14525238104Sdes
14526238104Sdes            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
14527238104Sdes$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
14528238104Sdes            LIBS="$LIBS -lcrypto"
14529238104Sdes            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
14530238104Sdes            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531238104Sdes/* end confdefs.h.  */
14532238104Sdes
14533238104Sdesint
14534238104Sdesmain ()
14535238104Sdes{
14536238104Sdes
14537238104Sdes                int HMAC_CTX_init(void);
14538238104Sdes                (void)HMAC_CTX_init();
14539238104Sdes
14540238104Sdes  ;
14541238104Sdes  return 0;
14542238104Sdes}
14543238104Sdes_ACEOF
14544238104Sdesif ac_fn_c_try_link "$LINENO"; then :
14545238104Sdes
14546238104Sdes                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14547238104Sdes$as_echo "yes" >&6; }
14548238104Sdes
14549238104Sdes$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14550238104Sdes
14551238104Sdes
14552238104Sdeselse
14553238104Sdes
14554238104Sdes                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555238104Sdes$as_echo "no" >&6; }
14556238104Sdes                # check if -lwsock32 or -lgdi32 are needed.
14557238104Sdes                BAKLIBS="$LIBS"
14558238104Sdes                BAKSSLLIBS="$LIBSSL_LIBS"
14559238104Sdes                LIBS="$LIBS -lgdi32"
14560238104Sdes                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
14561238104Sdes                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
14562238104Sdes$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
14563238104Sdes                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564238104Sdes/* end confdefs.h.  */
14565238104Sdes
14566238104Sdesint
14567238104Sdesmain ()
14568238104Sdes{
14569238104Sdes
14570238104Sdes                    int HMAC_CTX_init(void);
14571238104Sdes                    (void)HMAC_CTX_init();
14572238104Sdes
14573238104Sdes  ;
14574238104Sdes  return 0;
14575238104Sdes}
14576238104Sdes_ACEOF
14577238104Sdesif ac_fn_c_try_link "$LINENO"; then :
14578238104Sdes
14579238104Sdes
14580238104Sdes$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14581238104Sdes
14582238104Sdes                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14583238104Sdes$as_echo "yes" >&6; }
14584238104Sdes
14585238104Sdeselse
14586238104Sdes
14587238104Sdes                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14588238104Sdes$as_echo "no" >&6; }
14589238104Sdes                    LIBS="$BAKLIBS"
14590238104Sdes                    LIBSSL_LIBS="$BAKSSLLIBS"
14591238104Sdes                    LIBS="$LIBS -ldl"
14592238104Sdes                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14593238104Sdes                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
14594238104Sdes$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
14595238104Sdes                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596238104Sdes/* end confdefs.h.  */
14597238104Sdes
14598238104Sdesint
14599238104Sdesmain ()
14600238104Sdes{
14601238104Sdes
14602238104Sdes                        int HMAC_CTX_init(void);
14603238104Sdes                        (void)HMAC_CTX_init();
14604238104Sdes
14605238104Sdes  ;
14606238104Sdes  return 0;
14607238104Sdes}
14608238104Sdes_ACEOF
14609238104Sdesif ac_fn_c_try_link "$LINENO"; then :
14610238104Sdes
14611238104Sdes
14612238104Sdes$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14613238104Sdes
14614238104Sdes                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14615238104Sdes$as_echo "yes" >&6; }
14616238104Sdes
14617238104Sdeselse
14618238104Sdes
14619238104Sdes                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620238104Sdes$as_echo "no" >&6; }
14621238104Sdes                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
14622238104Sdes
14623238104Sdesfi
14624238104Sdesrm -f core conftest.err conftest.$ac_objext \
14625238104Sdes    conftest$ac_exeext conftest.$ac_ext
14626238104Sdes
14627238104Sdesfi
14628238104Sdesrm -f core conftest.err conftest.$ac_objext \
14629238104Sdes    conftest$ac_exeext conftest.$ac_ext
14630238104Sdes
14631238104Sdesfi
14632238104Sdesrm -f core conftest.err conftest.$ac_objext \
14633238104Sdes    conftest$ac_exeext conftest.$ac_ext
14634238104Sdes        fi
14635238104Sdes
14636238104Sdes
14637238104Sdes	# openssl engine functionality needs dlopen().
14638238104Sdes	BAKLIBS="$LIBS"
14639238104Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14640238104Sdes$as_echo_n "checking for library containing dlopen... " >&6; }
14641238104Sdesif ${ac_cv_search_dlopen+:} false; then :
14642238104Sdes  $as_echo_n "(cached) " >&6
14643238104Sdeselse
14644238104Sdes  ac_func_search_save_LIBS=$LIBS
14645238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646238104Sdes/* end confdefs.h.  */
14647238104Sdes
14648238104Sdes/* Override any GCC internal prototype to avoid an error.
14649238104Sdes   Use char because int might match the return type of a GCC
14650238104Sdes   builtin and then its argument prototype would still apply.  */
14651238104Sdes#ifdef __cplusplus
14652238104Sdesextern "C"
14653238104Sdes#endif
14654238104Sdeschar dlopen ();
14655238104Sdesint
14656238104Sdesmain ()
14657238104Sdes{
14658238104Sdesreturn dlopen ();
14659238104Sdes  ;
14660238104Sdes  return 0;
14661238104Sdes}
14662238104Sdes_ACEOF
14663238104Sdesfor ac_lib in '' dl; do
14664238104Sdes  if test -z "$ac_lib"; then
14665238104Sdes    ac_res="none required"
14666238104Sdes  else
14667238104Sdes    ac_res=-l$ac_lib
14668238104Sdes    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14669238104Sdes  fi
14670238104Sdes  if ac_fn_c_try_link "$LINENO"; then :
14671238104Sdes  ac_cv_search_dlopen=$ac_res
14672238104Sdesfi
14673238104Sdesrm -f core conftest.err conftest.$ac_objext \
14674238104Sdes    conftest$ac_exeext
14675238104Sdes  if ${ac_cv_search_dlopen+:} false; then :
14676238104Sdes  break
14677238104Sdesfi
14678238104Sdesdone
14679238104Sdesif ${ac_cv_search_dlopen+:} false; then :
14680238104Sdes
14681238104Sdeselse
14682238104Sdes  ac_cv_search_dlopen=no
14683238104Sdesfi
14684238104Sdesrm conftest.$ac_ext
14685238104SdesLIBS=$ac_func_search_save_LIBS
14686238104Sdesfi
14687238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14688238104Sdes$as_echo "$ac_cv_search_dlopen" >&6; }
14689238104Sdesac_res=$ac_cv_search_dlopen
14690238104Sdesif test "$ac_res" != no; then :
14691238104Sdes  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14692238104Sdes
14693238104Sdesfi
14694238104Sdes
14695238104Sdes	if test "$LIBS" != "$BAKLIBS"; then
14696238104Sdes		LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14697238104Sdes	fi
14698238104Sdes    fi
14699238104Sdesfor ac_header in openssl/ssl.h
14700238104Sdesdo :
14701238104Sdes  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
14702238104Sdes"
14703238104Sdesif test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14704238104Sdes  cat >>confdefs.h <<_ACEOF
14705238104Sdes#define HAVE_OPENSSL_SSL_H 1
14706238104Sdes_ACEOF
14707238104Sdes
14708238104Sdesfi
14709238104Sdes
14710238104Sdesdone
14711238104Sdes
14712238104Sdesfor ac_header in openssl/err.h
14713238104Sdesdo :
14714238104Sdes  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
14715238104Sdes"
14716238104Sdesif test "x$ac_cv_header_openssl_err_h" = xyes; then :
14717238104Sdes  cat >>confdefs.h <<_ACEOF
14718238104Sdes#define HAVE_OPENSSL_ERR_H 1
14719238104Sdes_ACEOF
14720238104Sdes
14721238104Sdesfi
14722238104Sdes
14723238104Sdesdone
14724238104Sdes
14725238104Sdesfor ac_header in openssl/rand.h
14726238104Sdesdo :
14727238104Sdes  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
14728238104Sdes"
14729238104Sdesif test "x$ac_cv_header_openssl_rand_h" = xyes; then :
14730238104Sdes  cat >>confdefs.h <<_ACEOF
14731238104Sdes#define HAVE_OPENSSL_RAND_H 1
14732238104Sdes_ACEOF
14733238104Sdes
14734238104Sdesfi
14735238104Sdes
14736238104Sdesdone
14737238104Sdes
14738238104Sdes
14739238104Sdes
14740238104Sdes
14741238104Sdesfor ac_func in EVP_sha256
14742238104Sdesdo :
14743238104Sdes  ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
14744238104Sdesif test "x$ac_cv_func_EVP_sha256" = xyes; then :
14745238104Sdes  cat >>confdefs.h <<_ACEOF
14746238104Sdes#define HAVE_EVP_SHA256 1
14747238104Sdes_ACEOF
14748238104Sdes
14749238104Sdesfi
14750238104Sdesdone
14751238104Sdes
14752238104Sdes
14753238104Sdes# for macosx, see if glibtool exists and use that
14754238104Sdes# BSD's need to know the version...
14755238104Sdes#AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
14756238104Sdes#AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
14757238104Sdes
14758238104Sdes# Check whether --enable-sha2 was given.
14759238104Sdesif test "${enable_sha2+set}" = set; then :
14760238104Sdes  enableval=$enable_sha2;
14761238104Sdesfi
14762238104Sdes
14763238104Sdescase "$enable_sha2" in
14764238104Sdes    no)
14765238104Sdes        ;;
14766238104Sdes    yes|*)
14767238104Sdes        if test "x$HAVE_SSL" != "xyes"; then
14768238104Sdes            as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
14769238104Sdes        fi
14770238104Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
14771238104Sdes$as_echo_n "checking for SHA256 and SHA512... " >&6; }
14772238104Sdes	ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
14773238104Sdesif test "x$ac_cv_func_SHA256_Init" = xyes; then :
14774238104Sdes
14775238104Sdeselse
14776238104Sdes
14777238104Sdes		as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
14778238104Sdes
14779238104Sdesfi
14780238104Sdes
14781238104Sdes
14782238104Sdescat >>confdefs.h <<_ACEOF
14783238104Sdes#define USE_SHA2 1
14784238104Sdes_ACEOF
14785238104Sdes
14786238104Sdes        ;;
14787238104Sdesesac
14788238104Sdes
14789238104Sdes# Check whether --enable-gost was given.
14790238104Sdesif test "${enable_gost+set}" = set; then :
14791238104Sdes  enableval=$enable_gost;
14792238104Sdesfi
14793238104Sdes
14794238104Sdescase "$enable_gost" in
14795238104Sdes    no)
14796238104Sdes        ;;
14797238104Sdes    *)          if test "x$HAVE_SSL" != "xyes"; then
14798238104Sdes            as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
14799238104Sdes        fi
14800238104Sdes        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
14801238104Sdes$as_echo_n "checking for GOST... " >&6; }
14802238104Sdes        ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
14803238104Sdesif test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
14804238104Sdes
14805238104Sdeselse
14806238104Sdes  as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
14807238104Sdesfi
14808238104Sdes
14809238104Sdes        ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
14810238104Sdesif test "x$ac_cv_func_EC_KEY_new" = xyes; then :
14811238104Sdes
14812238104Sdeselse
14813238104Sdes  as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
14814238104Sdesfi
14815238104Sdes
14816238104Sdes
14817238104Sdescat >>confdefs.h <<_ACEOF
14818238104Sdes#define USE_GOST 1
14819238104Sdes_ACEOF
14820238104Sdes
14821238104Sdes        ;;
14822238104Sdesesac
14823238104Sdes
14824238104Sdes# Check whether --enable-ecdsa was given.
14825238104Sdesif test "${enable_ecdsa+set}" = set; then :
14826238104Sdes  enableval=$enable_ecdsa;
14827238104Sdesfi
14828238104Sdes
14829238104Sdescase "$enable_ecdsa" in
14830238104Sdes    no)
14831238104Sdes      ;;
14832238104Sdes    *)       if test "x$HAVE_SSL" != "xyes"; then
14833238104Sdes        as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
14834238104Sdes      fi
14835238104Sdes      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
14836238104Sdesif test "x$ac_cv_func_ECDSA_sign" = xyes; then :
14837238104Sdes
14838238104Sdeselse
14839238104Sdes  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14840238104Sdesfi
14841238104Sdes
14842238104Sdes      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
14843238104Sdesif test "x$ac_cv_func_SHA384_Init" = xyes; then :
14844238104Sdes
14845238104Sdeselse
14846238104Sdes  as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14847238104Sdesfi
14848238104Sdes
14849238104Sdes      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
14850238104Sdes#include <openssl/evp.h>
14851238104Sdes
14852238104Sdes"
14853238104Sdesif test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
14854238104Sdes  ac_have_decl=1
14855238104Sdeselse
14856238104Sdes  ac_have_decl=0
14857238104Sdesfi
14858238104Sdes
14859238104Sdescat >>confdefs.h <<_ACEOF
14860238104Sdes#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
14861238104Sdes_ACEOF
14862238104Sdesif test $ac_have_decl = 1; then :
14863238104Sdes
14864238104Sdeselse
14865238104Sdes  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14866238104Sdesfi
14867238104Sdesac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
14868238104Sdes#include <openssl/evp.h>
14869238104Sdes
14870238104Sdes"
14871238104Sdesif test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
14872238104Sdes  ac_have_decl=1
14873238104Sdeselse
14874238104Sdes  ac_have_decl=0
14875238104Sdesfi
14876238104Sdes
14877238104Sdescat >>confdefs.h <<_ACEOF
14878238104Sdes#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
14879238104Sdes_ACEOF
14880238104Sdesif test $ac_have_decl = 1; then :
14881238104Sdes
14882238104Sdeselse
14883238104Sdes  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14884238104Sdesfi
14885238104Sdes
14886238104Sdes      # we now know we have ECDSA and the required curves.
14887238104Sdes
14888238104Sdescat >>confdefs.h <<_ACEOF
14889238104Sdes#define USE_ECDSA 1
14890238104Sdes_ACEOF
14891238104Sdes
14892238104Sdes      ;;
14893238104Sdesesac
14894238104Sdes
14895269257Sdes# Check whether --enable-dane was given.
14896269257Sdesif test "${enable_dane+set}" = set; then :
14897269257Sdes  enableval=$enable_dane;
14898269257Sdesfi
14899238104Sdes
14900269257Sdescase "$enable_dane" in
14901269257Sdes    no)
14902269257Sdes      ldns_build_config_use_dane=0
14903238104Sdes
14904269257Sdes      ;;
14905269257Sdes    *)       if test "x$HAVE_SSL" != "xyes"; then
14906269257Sdes        as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
14907269257Sdes      fi
14908269257Sdes      ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
14909269257Sdesif test "x$ac_cv_func_X509_check_ca" = xyes; then :
14910238104Sdes
14911269257Sdeselse
14912269257Sdes  as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
14913269257Sdesfi
14914269257Sdes
14915269257Sdes
14916269257Sdescat >>confdefs.h <<_ACEOF
14917269257Sdes#define USE_DANE 1
14918269257Sdes_ACEOF
14919269257Sdes
14920269257Sdes      ldns_build_config_use_dane=1
14921269257Sdes
14922269257Sdes      ;;
14923269257Sdesesac
14924269257Sdes
14925269257Sdes# Check whether --enable-rrtype-ninfo was given.
14926269257Sdesif test "${enable_rrtype_ninfo+set}" = set; then :
14927269257Sdes  enableval=$enable_rrtype_ninfo;
14928269257Sdesfi
14929269257Sdes
14930269257Sdescase "$enable_rrtype_ninfo" in
14931269257Sdes	yes)
14932269257Sdes
14933269257Sdescat >>confdefs.h <<_ACEOF
14934269257Sdes#define RRTYPE_NINFO /**/
14935269257Sdes_ACEOF
14936269257Sdes
14937269257Sdes		;;
14938269257Sdes	no|*)
14939269257Sdes		;;
14940269257Sdesesac
14941269257Sdes# Check whether --enable-rrtype-rkey was given.
14942269257Sdesif test "${enable_rrtype_rkey+set}" = set; then :
14943269257Sdes  enableval=$enable_rrtype_rkey;
14944269257Sdesfi
14945269257Sdes
14946269257Sdescase "$enable_rrtype_rkey" in
14947269257Sdes	yes)
14948269257Sdes
14949269257Sdescat >>confdefs.h <<_ACEOF
14950269257Sdes#define RRTYPE_RKEY /**/
14951269257Sdes_ACEOF
14952269257Sdes
14953269257Sdes		;;
14954269257Sdes	no|*)
14955269257Sdes		;;
14956269257Sdesesac
14957269257Sdes# Check whether --enable-rrtype-cds was given.
14958269257Sdesif test "${enable_rrtype_cds+set}" = set; then :
14959269257Sdes  enableval=$enable_rrtype_cds;
14960269257Sdesfi
14961269257Sdes
14962269257Sdescase "$enable_rrtype_cds" in
14963269257Sdes	yes)
14964269257Sdes
14965269257Sdescat >>confdefs.h <<_ACEOF
14966269257Sdes#define RRTYPE_CDS /**/
14967269257Sdes_ACEOF
14968269257Sdes
14969269257Sdes		;;
14970269257Sdes	no|*)
14971269257Sdes		;;
14972269257Sdesesac
14973269257Sdes# Check whether --enable-rrtype-uri was given.
14974269257Sdesif test "${enable_rrtype_uri+set}" = set; then :
14975269257Sdes  enableval=$enable_rrtype_uri;
14976269257Sdesfi
14977269257Sdes
14978269257Sdescase "$enable_rrtype_uri" in
14979269257Sdes	yes)
14980269257Sdes
14981269257Sdescat >>confdefs.h <<_ACEOF
14982269257Sdes#define RRTYPE_URI /**/
14983269257Sdes_ACEOF
14984269257Sdes
14985269257Sdes		;;
14986269257Sdes	no|*)
14987269257Sdes		;;
14988269257Sdesesac
14989269257Sdes# Check whether --enable-rrtype-ta was given.
14990269257Sdesif test "${enable_rrtype_ta+set}" = set; then :
14991269257Sdes  enableval=$enable_rrtype_ta;
14992269257Sdesfi
14993269257Sdes
14994269257Sdescase "$enable_rrtype_ta" in
14995269257Sdes	yes)
14996269257Sdes
14997269257Sdescat >>confdefs.h <<_ACEOF
14998269257Sdes#define RRTYPE_TA /**/
14999269257Sdes_ACEOF
15000269257Sdes
15001269257Sdes		;;
15002269257Sdes	no|*)
15003269257Sdes		;;
15004269257Sdesesac
15005269257Sdes
15006269257Sdes
15007269257Sdes
15008269257Sdes
15009246854Sdesif test "x$HAVE_SSL" = "xyes"; then
15010269257SdesLIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
15011246854Sdes
15012246854Sdesfi
15013238104SdesCPPFLAGS=$tmp_CPPFLAGS
15014238104SdesLDFLAGS=$tmp_LDFLAGS
15015238104SdesLIBS=$tmp_LIBS
15016238104Sdes
15017238104Sdes
15018238104Sdes# add option to disable the evil rpath
15019238104Sdes
15020238104Sdes# Check whether --enable-rpath was given.
15021238104Sdesif test "${enable_rpath+set}" = set; then :
15022238104Sdes  enableval=$enable_rpath; enable_rpath=$enableval
15023238104Sdeselse
15024238104Sdes  enable_rpath=yes
15025238104Sdesfi
15026238104Sdes
15027238104Sdesif test "x$enable_rpath" = xno; then
15028238104Sdes		ac_config_commands="$ac_config_commands disable-rpath"
15029238104Sdes
15030238104Sdesfi
15031238104Sdes
15032238104Sdes
15033238104Sdes#AC_RUN_IFELSE([AC_LANG_SOURCE(
15034238104Sdes#[
15035238104Sdes#int main()
15036238104Sdes#{
15037238104Sdes#short one = 1;
15038238104Sdes#char *cp = (char*)&one;
15039238104Sdes#if ( *cp == 0 )
15040238104Sdes#return(0);
15041238104Sdes#else
15042238104Sdes#return(1);
15043238104Sdes#}
15044238104Sdes#])], [],[
15045238104Sdes#AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
15046238104Sdes#],[])
15047238104Sdes
15048238104Sdes# should define WORDS_BIGENDIAN if the system is big-endian
15049238104Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15050238104Sdes$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15051238104Sdesif ${ac_cv_c_bigendian+:} false; then :
15052238104Sdes  $as_echo_n "(cached) " >&6
15053238104Sdeselse
15054238104Sdes  ac_cv_c_bigendian=unknown
15055238104Sdes    # See if we're dealing with a universal compiler.
15056238104Sdes    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057238104Sdes/* end confdefs.h.  */
15058238104Sdes#ifndef __APPLE_CC__
15059238104Sdes	       not a universal capable compiler
15060238104Sdes	     #endif
15061238104Sdes	     typedef int dummy;
15062238104Sdes
15063238104Sdes_ACEOF
15064238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15065238104Sdes
15066238104Sdes	# Check for potential -arch flags.  It is not universal unless
15067238104Sdes	# there are at least two -arch flags with different values.
15068238104Sdes	ac_arch=
15069238104Sdes	ac_prev=
15070238104Sdes	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15071238104Sdes	 if test -n "$ac_prev"; then
15072238104Sdes	   case $ac_word in
15073238104Sdes	     i?86 | x86_64 | ppc | ppc64)
15074238104Sdes	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15075238104Sdes		 ac_arch=$ac_word
15076238104Sdes	       else
15077238104Sdes		 ac_cv_c_bigendian=universal
15078238104Sdes		 break
15079238104Sdes	       fi
15080238104Sdes	       ;;
15081238104Sdes	   esac
15082238104Sdes	   ac_prev=
15083238104Sdes	 elif test "x$ac_word" = "x-arch"; then
15084238104Sdes	   ac_prev=arch
15085238104Sdes	 fi
15086238104Sdes       done
15087238104Sdesfi
15088238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089238104Sdes    if test $ac_cv_c_bigendian = unknown; then
15090238104Sdes      # See if sys/param.h defines the BYTE_ORDER macro.
15091238104Sdes      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092238104Sdes/* end confdefs.h.  */
15093238104Sdes#include <sys/types.h>
15094238104Sdes	     #include <sys/param.h>
15095238104Sdes
15096238104Sdesint
15097238104Sdesmain ()
15098238104Sdes{
15099238104Sdes#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15100238104Sdes		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15101238104Sdes		     && LITTLE_ENDIAN)
15102238104Sdes	      bogus endian macros
15103238104Sdes	     #endif
15104238104Sdes
15105238104Sdes  ;
15106238104Sdes  return 0;
15107238104Sdes}
15108238104Sdes_ACEOF
15109238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15110238104Sdes  # It does; now see whether it defined to BIG_ENDIAN or not.
15111238104Sdes	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112238104Sdes/* end confdefs.h.  */
15113238104Sdes#include <sys/types.h>
15114238104Sdes		#include <sys/param.h>
15115238104Sdes
15116238104Sdesint
15117238104Sdesmain ()
15118238104Sdes{
15119238104Sdes#if BYTE_ORDER != BIG_ENDIAN
15120238104Sdes		 not big endian
15121238104Sdes		#endif
15122238104Sdes
15123238104Sdes  ;
15124238104Sdes  return 0;
15125238104Sdes}
15126238104Sdes_ACEOF
15127238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15128238104Sdes  ac_cv_c_bigendian=yes
15129238104Sdeselse
15130238104Sdes  ac_cv_c_bigendian=no
15131238104Sdesfi
15132238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133238104Sdesfi
15134238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135238104Sdes    fi
15136238104Sdes    if test $ac_cv_c_bigendian = unknown; then
15137238104Sdes      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15138238104Sdes      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139238104Sdes/* end confdefs.h.  */
15140238104Sdes#include <limits.h>
15141238104Sdes
15142238104Sdesint
15143238104Sdesmain ()
15144238104Sdes{
15145238104Sdes#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15146238104Sdes	      bogus endian macros
15147238104Sdes	     #endif
15148238104Sdes
15149238104Sdes  ;
15150238104Sdes  return 0;
15151238104Sdes}
15152238104Sdes_ACEOF
15153238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15154238104Sdes  # It does; now see whether it defined to _BIG_ENDIAN or not.
15155238104Sdes	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156238104Sdes/* end confdefs.h.  */
15157238104Sdes#include <limits.h>
15158238104Sdes
15159238104Sdesint
15160238104Sdesmain ()
15161238104Sdes{
15162238104Sdes#ifndef _BIG_ENDIAN
15163238104Sdes		 not big endian
15164238104Sdes		#endif
15165238104Sdes
15166238104Sdes  ;
15167238104Sdes  return 0;
15168238104Sdes}
15169238104Sdes_ACEOF
15170238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15171238104Sdes  ac_cv_c_bigendian=yes
15172238104Sdeselse
15173238104Sdes  ac_cv_c_bigendian=no
15174238104Sdesfi
15175238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176238104Sdesfi
15177238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15178238104Sdes    fi
15179238104Sdes    if test $ac_cv_c_bigendian = unknown; then
15180238104Sdes      # Compile a test program.
15181238104Sdes      if test "$cross_compiling" = yes; then :
15182238104Sdes  # Try to guess by grepping values from an object file.
15183238104Sdes	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184238104Sdes/* end confdefs.h.  */
15185238104Sdesshort int ascii_mm[] =
15186238104Sdes		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15187238104Sdes		short int ascii_ii[] =
15188238104Sdes		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15189238104Sdes		int use_ascii (int i) {
15190238104Sdes		  return ascii_mm[i] + ascii_ii[i];
15191238104Sdes		}
15192238104Sdes		short int ebcdic_ii[] =
15193238104Sdes		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15194238104Sdes		short int ebcdic_mm[] =
15195238104Sdes		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15196238104Sdes		int use_ebcdic (int i) {
15197238104Sdes		  return ebcdic_mm[i] + ebcdic_ii[i];
15198238104Sdes		}
15199238104Sdes		extern int foo;
15200238104Sdes
15201238104Sdesint
15202238104Sdesmain ()
15203238104Sdes{
15204238104Sdesreturn use_ascii (foo) == use_ebcdic (foo);
15205238104Sdes  ;
15206238104Sdes  return 0;
15207238104Sdes}
15208238104Sdes_ACEOF
15209238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15210238104Sdes  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15211238104Sdes	      ac_cv_c_bigendian=yes
15212238104Sdes	    fi
15213238104Sdes	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15214238104Sdes	      if test "$ac_cv_c_bigendian" = unknown; then
15215238104Sdes		ac_cv_c_bigendian=no
15216238104Sdes	      else
15217238104Sdes		# finding both strings is unlikely to happen, but who knows?
15218238104Sdes		ac_cv_c_bigendian=unknown
15219238104Sdes	      fi
15220238104Sdes	    fi
15221238104Sdesfi
15222238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223238104Sdeselse
15224238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225238104Sdes/* end confdefs.h.  */
15226238104Sdes$ac_includes_default
15227238104Sdesint
15228238104Sdesmain ()
15229238104Sdes{
15230238104Sdes
15231238104Sdes	     /* Are we little or big endian?  From Harbison&Steele.  */
15232238104Sdes	     union
15233238104Sdes	     {
15234238104Sdes	       long int l;
15235238104Sdes	       char c[sizeof (long int)];
15236238104Sdes	     } u;
15237238104Sdes	     u.l = 1;
15238238104Sdes	     return u.c[sizeof (long int) - 1] == 1;
15239238104Sdes
15240238104Sdes  ;
15241238104Sdes  return 0;
15242238104Sdes}
15243238104Sdes_ACEOF
15244238104Sdesif ac_fn_c_try_run "$LINENO"; then :
15245238104Sdes  ac_cv_c_bigendian=no
15246238104Sdeselse
15247238104Sdes  ac_cv_c_bigendian=yes
15248238104Sdesfi
15249238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15250238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
15251238104Sdesfi
15252238104Sdes
15253238104Sdes    fi
15254238104Sdesfi
15255238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15256238104Sdes$as_echo "$ac_cv_c_bigendian" >&6; }
15257238104Sdes case $ac_cv_c_bigendian in #(
15258238104Sdes   yes)
15259238104Sdes     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15260238104Sdes;; #(
15261238104Sdes   no)
15262238104Sdes      ;; #(
15263238104Sdes   universal)
15264238104Sdes
15265238104Sdes$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15266238104Sdes
15267238104Sdes     ;; #(
15268238104Sdes   *)
15269238104Sdes     as_fn_error $? "unknown endianness
15270238104Sdes presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15271238104Sdes esac
15272238104Sdes
15273238104Sdes
15274238104Sdes# Checks for header files.
15275238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15276238104Sdes$as_echo_n "checking for ANSI C header files... " >&6; }
15277238104Sdesif ${ac_cv_header_stdc+:} false; then :
15278238104Sdes  $as_echo_n "(cached) " >&6
15279238104Sdeselse
15280238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281238104Sdes/* end confdefs.h.  */
15282238104Sdes#include <stdlib.h>
15283238104Sdes#include <stdarg.h>
15284238104Sdes#include <string.h>
15285238104Sdes#include <float.h>
15286238104Sdes
15287238104Sdesint
15288238104Sdesmain ()
15289238104Sdes{
15290238104Sdes
15291238104Sdes  ;
15292238104Sdes  return 0;
15293238104Sdes}
15294238104Sdes_ACEOF
15295238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15296238104Sdes  ac_cv_header_stdc=yes
15297238104Sdeselse
15298238104Sdes  ac_cv_header_stdc=no
15299238104Sdesfi
15300238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301238104Sdes
15302238104Sdesif test $ac_cv_header_stdc = yes; then
15303238104Sdes  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15304238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305238104Sdes/* end confdefs.h.  */
15306238104Sdes#include <string.h>
15307238104Sdes
15308238104Sdes_ACEOF
15309238104Sdesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15310238104Sdes  $EGREP "memchr" >/dev/null 2>&1; then :
15311238104Sdes
15312238104Sdeselse
15313238104Sdes  ac_cv_header_stdc=no
15314238104Sdesfi
15315238104Sdesrm -f conftest*
15316238104Sdes
15317238104Sdesfi
15318238104Sdes
15319238104Sdesif test $ac_cv_header_stdc = yes; then
15320238104Sdes  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15321238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322238104Sdes/* end confdefs.h.  */
15323238104Sdes#include <stdlib.h>
15324238104Sdes
15325238104Sdes_ACEOF
15326238104Sdesif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15327238104Sdes  $EGREP "free" >/dev/null 2>&1; then :
15328238104Sdes
15329238104Sdeselse
15330238104Sdes  ac_cv_header_stdc=no
15331238104Sdesfi
15332238104Sdesrm -f conftest*
15333238104Sdes
15334238104Sdesfi
15335238104Sdes
15336238104Sdesif test $ac_cv_header_stdc = yes; then
15337238104Sdes  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15338238104Sdes  if test "$cross_compiling" = yes; then :
15339238104Sdes  :
15340238104Sdeselse
15341238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342238104Sdes/* end confdefs.h.  */
15343238104Sdes#include <ctype.h>
15344238104Sdes#include <stdlib.h>
15345238104Sdes#if ((' ' & 0x0FF) == 0x020)
15346238104Sdes# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15347238104Sdes# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15348238104Sdes#else
15349238104Sdes# define ISLOWER(c) \
15350238104Sdes		   (('a' <= (c) && (c) <= 'i') \
15351238104Sdes		     || ('j' <= (c) && (c) <= 'r') \
15352238104Sdes		     || ('s' <= (c) && (c) <= 'z'))
15353238104Sdes# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15354238104Sdes#endif
15355238104Sdes
15356238104Sdes#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15357238104Sdesint
15358238104Sdesmain ()
15359238104Sdes{
15360238104Sdes  int i;
15361238104Sdes  for (i = 0; i < 256; i++)
15362238104Sdes    if (XOR (islower (i), ISLOWER (i))
15363238104Sdes	|| toupper (i) != TOUPPER (i))
15364238104Sdes      return 2;
15365238104Sdes  return 0;
15366238104Sdes}
15367238104Sdes_ACEOF
15368238104Sdesif ac_fn_c_try_run "$LINENO"; then :
15369238104Sdes
15370238104Sdeselse
15371238104Sdes  ac_cv_header_stdc=no
15372238104Sdesfi
15373238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15374238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
15375238104Sdesfi
15376238104Sdes
15377238104Sdesfi
15378238104Sdesfi
15379238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15380238104Sdes$as_echo "$ac_cv_header_stdc" >&6; }
15381238104Sdesif test $ac_cv_header_stdc = yes; then
15382238104Sdes
15383238104Sdes$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15384238104Sdes
15385238104Sdesfi
15386238104Sdes
15387238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15388238104Sdes$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15389238104Sdesif ${ac_cv_header_stdbool_h+:} false; then :
15390238104Sdes  $as_echo_n "(cached) " >&6
15391238104Sdeselse
15392238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393238104Sdes/* end confdefs.h.  */
15394238104Sdes
15395285206Sdes             #include <stdbool.h>
15396285206Sdes             #ifndef bool
15397285206Sdes              "error: bool is not defined"
15398285206Sdes             #endif
15399285206Sdes             #ifndef false
15400285206Sdes              "error: false is not defined"
15401285206Sdes             #endif
15402285206Sdes             #if false
15403285206Sdes              "error: false is not 0"
15404285206Sdes             #endif
15405285206Sdes             #ifndef true
15406285206Sdes              "error: true is not defined"
15407285206Sdes             #endif
15408285206Sdes             #if true != 1
15409285206Sdes              "error: true is not 1"
15410285206Sdes             #endif
15411285206Sdes             #ifndef __bool_true_false_are_defined
15412285206Sdes              "error: __bool_true_false_are_defined is not defined"
15413285206Sdes             #endif
15414238104Sdes
15415285206Sdes             struct s { _Bool s: 1; _Bool t; } s;
15416238104Sdes
15417285206Sdes             char a[true == 1 ? 1 : -1];
15418285206Sdes             char b[false == 0 ? 1 : -1];
15419285206Sdes             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15420285206Sdes             char d[(bool) 0.5 == true ? 1 : -1];
15421285206Sdes             /* See body of main program for 'e'.  */
15422285206Sdes             char f[(_Bool) 0.0 == false ? 1 : -1];
15423285206Sdes             char g[true];
15424285206Sdes             char h[sizeof (_Bool)];
15425285206Sdes             char i[sizeof s.t];
15426285206Sdes             enum { j = false, k = true, l = false * true, m = true * 256 };
15427285206Sdes             /* The following fails for
15428285206Sdes                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15429285206Sdes             _Bool n[m];
15430285206Sdes             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15431285206Sdes             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15432285206Sdes             /* Catch a bug in an HP-UX C compiler.  See
15433285206Sdes                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15434285206Sdes                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15435285206Sdes              */
15436285206Sdes             _Bool q = true;
15437285206Sdes             _Bool *pq = &q;
15438238104Sdes
15439238104Sdesint
15440238104Sdesmain ()
15441238104Sdes{
15442238104Sdes
15443285206Sdes             bool e = &s;
15444285206Sdes             *pq |= q;
15445285206Sdes             *pq |= ! q;
15446285206Sdes             /* Refer to every declared value, to avoid compiler optimizations.  */
15447285206Sdes             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15448285206Sdes                     + !m + !n + !o + !p + !q + !pq);
15449238104Sdes
15450238104Sdes  ;
15451238104Sdes  return 0;
15452238104Sdes}
15453238104Sdes_ACEOF
15454238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
15455238104Sdes  ac_cv_header_stdbool_h=yes
15456238104Sdeselse
15457238104Sdes  ac_cv_header_stdbool_h=no
15458238104Sdesfi
15459238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460238104Sdesfi
15461238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15462238104Sdes$as_echo "$ac_cv_header_stdbool_h" >&6; }
15463285206Sdes   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15464238104Sdesif test "x$ac_cv_type__Bool" = xyes; then :
15465238104Sdes
15466238104Sdescat >>confdefs.h <<_ACEOF
15467238104Sdes#define HAVE__BOOL 1
15468238104Sdes_ACEOF
15469238104Sdes
15470238104Sdes
15471238104Sdesfi
15472238104Sdes
15473285206Sdes
15474238104Sdesif test $ac_cv_header_stdbool_h = yes; then
15475238104Sdes
15476238104Sdes$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15477238104Sdes
15478238104Sdesfi
15479238104Sdes
15480238104Sdes#AC_HEADER_SYS_WAIT
15481238104Sdes#AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
15482238104Sdes# do the very minimum - we can always extend this
15483238104Sdesfor ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h
15484238104Sdesdo :
15485238104Sdes  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15486238104Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15487238104Sdes"
15488238104Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15489238104Sdes  cat >>confdefs.h <<_ACEOF
15490238104Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15491238104Sdes_ACEOF
15492238104Sdes
15493238104Sdesfi
15494238104Sdes
15495238104Sdesdone
15496238104Sdes
15497238104Sdesfor ac_header in sys/param.h sys/mount.h
15498238104Sdesdo :
15499238104Sdes  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15500238104Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15501238104Sdes
15502238104Sdes   #if HAVE_SYS_PARAM_H
15503238104Sdes   # include <sys/param.h>
15504238104Sdes   #endif
15505238104Sdes
15506238104Sdes
15507238104Sdes"
15508238104Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15509238104Sdes  cat >>confdefs.h <<_ACEOF
15510238104Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511238104Sdes_ACEOF
15512238104Sdes
15513238104Sdesfi
15514238104Sdes
15515238104Sdesdone
15516238104Sdes
15517238104Sdesac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
15518238104Sdes
15519238104Sdes   #if HAVE_SYS_PARAM_H
15520238104Sdes   # include <sys/param.h>
15521238104Sdes   #endif
15522238104Sdes
15523238104Sdes
15524238104Sdes"
15525238104Sdesif test "x$ac_cv_header_sys_socket_h" = xyes; then :
15526238104Sdes
15527238104Sdesinclude_sys_socket_h='#include <sys/socket.h>'
15528238104Sdes
15529238104Sdes$as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15530238104Sdes
15531238104Sdes
15532238104Sdeselse
15533238104Sdes
15534238104Sdesinclude_sys_socket_h=''
15535238104Sdes
15536238104Sdesfi
15537238104Sdes
15538238104Sdes
15539238104Sdes
15540238104Sdesac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
15541238104Sdes
15542238104Sdes"
15543238104Sdesif test "x$ac_cv_header_inttypes_h" = xyes; then :
15544238104Sdes
15545238104Sdesinclude_inttypes_h='#include <inttypes.h>'
15546238104Sdes
15547238104Sdes$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
15548238104Sdes
15549238104Sdesldns_build_config_have_inttypes_h=1
15550238104Sdes
15551238104Sdes
15552238104Sdeselse
15553238104Sdes
15554238104Sdesinclude_inttypes_h=''
15555238104Sdesldns_build_config_have_inttypes_h=0
15556238104Sdes
15557238104Sdes
15558238104Sdesfi
15559238104Sdes
15560238104Sdes
15561238104Sdes
15562238104Sdesac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
15563238104Sdes
15564238104Sdes"
15565238104Sdesif test "x$ac_cv_header_sys_types_h" = xyes; then :
15566238104Sdes
15567238104Sdesinclude_systypes_h='#include <sys/types.h>'
15568238104Sdes
15569238104Sdes$as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15570238104Sdes
15571238104Sdes
15572238104Sdeselse
15573238104Sdes
15574238104Sdesinclude_systypes_h=''
15575238104Sdes
15576238104Sdesfi
15577238104Sdes
15578238104Sdes
15579238104Sdes
15580238104Sdesac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
15581238104Sdes
15582238104Sdes"
15583238104Sdesif test "x$ac_cv_header_unistd_h" = xyes; then :
15584238104Sdes
15585238104Sdesinclude_unistd_h='#include <unistd.h>'
15586238104Sdes
15587238104Sdes$as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
15588238104Sdes
15589238104Sdes
15590238104Sdeselse
15591238104Sdes
15592238104Sdesinclude_unistd_h=''
15593238104Sdes
15594238104Sdesfi
15595238104Sdes
15596238104Sdes
15597238104Sdes
15598238104Sdes
15599238104Sdes# The cast to long int works around a bug in the HP C Compiler
15600238104Sdes# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15601238104Sdes# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15602238104Sdes# This bug is HP SR number 8606223364.
15603238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15604238104Sdes$as_echo_n "checking size of time_t... " >&6; }
15605238104Sdesif ${ac_cv_sizeof_time_t+:} false; then :
15606238104Sdes  $as_echo_n "(cached) " >&6
15607238104Sdeselse
15608238104Sdes  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
15609238104Sdes$ac_includes_default
15610238104Sdes#ifdef TIME_WITH_SYS_TIME
15611238104Sdes# include <sys/time.h>
15612238104Sdes# include <time.h>
15613238104Sdes#else
15614238104Sdes# ifdef HAVE_SYS_TIME_H
15615238104Sdes#  include <sys/time.h>
15616238104Sdes# else
15617238104Sdes#  include <time.h>
15618238104Sdes# endif
15619238104Sdes#endif
15620238104Sdes
15621238104Sdes"; then :
15622238104Sdes
15623238104Sdeselse
15624238104Sdes  if test "$ac_cv_type_time_t" = yes; then
15625238104Sdes     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15626238104Sdes$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627238104Sdesas_fn_error 77 "cannot compute sizeof (time_t)
15628238104SdesSee \`config.log' for more details" "$LINENO" 5; }
15629238104Sdes   else
15630238104Sdes     ac_cv_sizeof_time_t=0
15631238104Sdes   fi
15632238104Sdesfi
15633238104Sdes
15634238104Sdesfi
15635238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15636238104Sdes$as_echo "$ac_cv_sizeof_time_t" >&6; }
15637238104Sdes
15638238104Sdes
15639238104Sdes
15640238104Sdescat >>confdefs.h <<_ACEOF
15641238104Sdes#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15642238104Sdes_ACEOF
15643238104Sdes
15644238104Sdes
15645238104Sdes
15646238104Sdesif test x_$with_examples != x_no; then
15647238104Sdesfor ac_header in pcap.h
15648238104Sdesdo :
15649269257Sdes  ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
15650269257Sdes"
15651238104Sdesif test "x$ac_cv_header_pcap_h" = xyes; then :
15652238104Sdes  cat >>confdefs.h <<_ACEOF
15653238104Sdes#define HAVE_PCAP_H 1
15654238104Sdes_ACEOF
15655238104Sdes
15656238104Sdesfi
15657238104Sdes
15658238104Sdesdone
15659238104Sdes
15660238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
15661238104Sdes$as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; }
15662238104Sdesif ${ac_cv_lib_pcap_pcap_open_offline+:} false; then :
15663238104Sdes  $as_echo_n "(cached) " >&6
15664238104Sdeselse
15665238104Sdes  ac_check_lib_save_LIBS=$LIBS
15666238104SdesLIBS="-lpcap  $LIBS"
15667238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668238104Sdes/* end confdefs.h.  */
15669238104Sdes
15670238104Sdes/* Override any GCC internal prototype to avoid an error.
15671238104Sdes   Use char because int might match the return type of a GCC
15672238104Sdes   builtin and then its argument prototype would still apply.  */
15673238104Sdes#ifdef __cplusplus
15674238104Sdesextern "C"
15675238104Sdes#endif
15676238104Sdeschar pcap_open_offline ();
15677238104Sdesint
15678238104Sdesmain ()
15679238104Sdes{
15680238104Sdesreturn pcap_open_offline ();
15681238104Sdes  ;
15682238104Sdes  return 0;
15683238104Sdes}
15684238104Sdes_ACEOF
15685238104Sdesif ac_fn_c_try_link "$LINENO"; then :
15686238104Sdes  ac_cv_lib_pcap_pcap_open_offline=yes
15687238104Sdeselse
15688238104Sdes  ac_cv_lib_pcap_pcap_open_offline=no
15689238104Sdesfi
15690238104Sdesrm -f core conftest.err conftest.$ac_objext \
15691238104Sdes    conftest$ac_exeext conftest.$ac_ext
15692238104SdesLIBS=$ac_check_lib_save_LIBS
15693238104Sdesfi
15694238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
15695238104Sdes$as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
15696238104Sdesif test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then :
15697238104Sdes
15698238104Sdes
15699238104Sdes$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
15700238104Sdes	LIBPCAP_LIBS=-lpcap
15701238104Sdes
15702238104Sdes
15703238104Sdeselse
15704238104Sdes
15705238104Sdes	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
15706238104Sdes$as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
15707238104Sdes
15708238104Sdes
15709238104Sdesfi
15710238104Sdes
15711238104Sdesfor ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/igmp.h netinet/if_ether.h netinet/ip6.h net/ethernet.h netinet/ip_compat.h
15712238104Sdesdo :
15713238104Sdes  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15714238104Sdesac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
15715238104Sdes$ac_includes_default
15716238104Sdes#ifdef HAVE_NETINET_IN_SYSTM_H
15717238104Sdes#include <netinet/in_systm.h>
15718238104Sdes#endif
15719238104Sdes#ifdef HAVE_NETINET_IN_H
15720238104Sdes#include <netinet/in.h>
15721238104Sdes#endif
15722238104Sdes#ifdef HAVE_SYS_SOCKET_H
15723238104Sdes#include <sys/socket.h>
15724238104Sdes#endif
15725238104Sdes#ifdef HAVE_NET_IF_H
15726238104Sdes#include <net/if.h>
15727238104Sdes#endif
15728238104Sdes"
15729238104Sdesif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15730238104Sdes  cat >>confdefs.h <<_ACEOF
15731238104Sdes#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732238104Sdes_ACEOF
15733238104Sdes
15734238104Sdesfi
15735238104Sdes
15736238104Sdesdone
15737238104Sdes
15738238104Sdesfi
15739238104Sdes
15740238104Sdes
15741238104Sdesac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15742238104Sdes$ac_includes_default
15743238104Sdes#ifdef HAVE_SYS_SOCKET_H
15744238104Sdes#  include <sys/socket.h>
15745238104Sdes#endif
15746238104Sdes#ifdef HAVE_WS2TCPIP_H
15747238104Sdes#  include <ws2tcpip.h>
15748238104Sdes#endif
15749238104Sdes
15750238104Sdes"
15751238104Sdesif test "x$ac_cv_type_socklen_t" = xyes; then :
15752238104Sdes
15753238104Sdeselse
15754238104Sdes
15755238104Sdes$as_echo "#define socklen_t int" >>confdefs.h
15756238104Sdes
15757238104Sdesfi
15758238104Sdes
15759246854Sdesif test "x$ac_cv_type_socklen_t" = xyes; then
15760246854Sdes  ldns_build_config_have_socklen_t=1
15761246854Sdes
15762246854Sdeselse
15763246854Sdes  ldns_build_config_have_socklen_t=0
15764246854Sdes
15765246854Sdesfi
15766238104Sdesac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15767238104Sdesif test "x$ac_cv_type_size_t" = xyes; then :
15768238104Sdes
15769238104Sdeselse
15770238104Sdes
15771238104Sdescat >>confdefs.h <<_ACEOF
15772238104Sdes#define size_t unsigned int
15773238104Sdes_ACEOF
15774238104Sdes
15775238104Sdesfi
15776238104Sdes
15777238104Sdesac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15778238104Sdesif test "x$ac_cv_type_ssize_t" = xyes; then :
15779238104Sdes
15780238104Sdeselse
15781238104Sdes
15782238104Sdescat >>confdefs.h <<_ACEOF
15783238104Sdes#define ssize_t int
15784238104Sdes_ACEOF
15785238104Sdes
15786238104Sdesfi
15787238104Sdes
15788269257Sdesac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15789238104Sdesif test "x$ac_cv_type_intptr_t" = xyes; then :
15790238104Sdes
15791238104Sdeselse
15792238104Sdes
15793238104Sdescat >>confdefs.h <<_ACEOF
15794269257Sdes#define intptr_t size_t
15795238104Sdes_ACEOF
15796238104Sdes
15797238104Sdesfi
15798238104Sdes
15799238104Sdesac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15800238104Sdes#if HAVE_SYS_TYPES_H
15801238104Sdes# include <sys/types.h>
15802238104Sdes#endif
15803238104Sdes#if HAVE_NETINET_IN_H
15804238104Sdes# include <netinet/in.h>
15805238104Sdes#endif
15806238104Sdes"
15807238104Sdesif test "x$ac_cv_type_in_addr_t" = xyes; then :
15808238104Sdes
15809238104Sdeselse
15810238104Sdes
15811238104Sdes$as_echo "#define in_addr_t uint32_t" >>confdefs.h
15812238104Sdes
15813238104Sdesfi
15814238104Sdes
15815238104Sdesac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15816238104Sdes#if HAVE_SYS_TYPES_H
15817238104Sdes# include <sys/types.h>
15818238104Sdes#endif
15819238104Sdes#if HAVE_NETINET_IN_H
15820238104Sdes# include <netinet/in.h>
15821238104Sdes#endif
15822238104Sdes"
15823238104Sdesif test "x$ac_cv_type_in_port_t" = xyes; then :
15824238104Sdes
15825238104Sdeselse
15826238104Sdes
15827238104Sdes$as_echo "#define in_port_t uint16_t" >>confdefs.h
15828238104Sdes
15829238104Sdesfi
15830238104Sdes
15831238104Sdesac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
15832238104Sdes#ifdef HAVE_NETINET_IN_H
15833238104Sdes#include <netinet/in.h>
15834238104Sdes#endif
15835238104Sdes#ifdef HAVE_SYS_SOCKET_H
15836238104Sdes#include <sys/socket.h>
15837238104Sdes#endif
15838238104Sdes#ifdef HAVE_NETDB_H
15839238104Sdes#include <netdb.h>
15840238104Sdes#endif
15841238104Sdes#ifdef HAVE_ARPA_INET_H
15842238104Sdes#include <arpa/inet.h>
15843238104Sdes#endif
15844238104Sdes
15845238104Sdes"
15846238104Sdesif test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15847238104Sdes
15848238104Sdeselse
15849238104Sdes
15850238104Sdes        ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
15851238104Sdes#ifdef HAVE_NETINET_IN_H
15852238104Sdes#include <netinet/in.h>
15853238104Sdes#endif
15854238104Sdes#ifdef HAVE_SYS_SOCKET_H
15855238104Sdes#include <sys/socket.h>
15856238104Sdes#endif
15857238104Sdes#ifdef HAVE_NETDB_H
15858238104Sdes#include <netdb.h>
15859238104Sdes#endif
15860238104Sdes#ifdef HAVE_ARPA_INET_H
15861238104Sdes#include <arpa/inet.h>
15862238104Sdes#endif
15863238104Sdes
15864238104Sdes"
15865238104Sdesif test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15866238104Sdes
15867238104Sdes
15868238104Sdes$as_echo "#define ss_family __ss_family" >>confdefs.h
15869238104Sdes
15870238104Sdes
15871238104Sdesfi
15872238104Sdes
15873238104Sdes
15874238104Sdesfi
15875238104Sdes
15876238104Sdes
15877238104Sdesfor ac_header in stdlib.h
15878238104Sdesdo :
15879238104Sdes  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15880238104Sdesif test "x$ac_cv_header_stdlib_h" = xyes; then :
15881238104Sdes  cat >>confdefs.h <<_ACEOF
15882238104Sdes#define HAVE_STDLIB_H 1
15883238104Sdes_ACEOF
15884238104Sdes
15885238104Sdesfi
15886238104Sdes
15887238104Sdesdone
15888238104Sdes
15889238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15890238104Sdes$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15891238104Sdesif ${ac_cv_func_malloc_0_nonnull+:} false; then :
15892238104Sdes  $as_echo_n "(cached) " >&6
15893238104Sdeselse
15894238104Sdes  if test "$cross_compiling" = yes; then :
15895238104Sdes  ac_cv_func_malloc_0_nonnull=no
15896238104Sdeselse
15897238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898238104Sdes/* end confdefs.h.  */
15899238104Sdes#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15900238104Sdes# include <stdlib.h>
15901238104Sdes#else
15902238104Sdeschar *malloc ();
15903238104Sdes#endif
15904238104Sdes
15905238104Sdesint
15906238104Sdesmain ()
15907238104Sdes{
15908238104Sdesreturn ! malloc (0);
15909238104Sdes  ;
15910238104Sdes  return 0;
15911238104Sdes}
15912238104Sdes_ACEOF
15913238104Sdesif ac_fn_c_try_run "$LINENO"; then :
15914238104Sdes  ac_cv_func_malloc_0_nonnull=yes
15915238104Sdeselse
15916238104Sdes  ac_cv_func_malloc_0_nonnull=no
15917238104Sdesfi
15918238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15919238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
15920238104Sdesfi
15921238104Sdes
15922238104Sdesfi
15923238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15924238104Sdes$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15925238104Sdesif test $ac_cv_func_malloc_0_nonnull = yes; then :
15926238104Sdes
15927238104Sdes$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15928238104Sdes
15929238104Sdeselse
15930238104Sdes  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15931238104Sdes
15932238104Sdes   case " $LIBOBJS " in
15933238104Sdes  *" malloc.$ac_objext "* ) ;;
15934238104Sdes  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15935238104Sdes ;;
15936238104Sdesesac
15937238104Sdes
15938238104Sdes
15939238104Sdes$as_echo "#define malloc rpl_malloc" >>confdefs.h
15940238104Sdes
15941238104Sdesfi
15942238104Sdes
15943238104Sdes
15944238104Sdesfor ac_header in stdlib.h
15945238104Sdesdo :
15946238104Sdes  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15947238104Sdesif test "x$ac_cv_header_stdlib_h" = xyes; then :
15948238104Sdes  cat >>confdefs.h <<_ACEOF
15949238104Sdes#define HAVE_STDLIB_H 1
15950238104Sdes_ACEOF
15951238104Sdes
15952238104Sdesfi
15953238104Sdes
15954238104Sdesdone
15955238104Sdes
15956238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15957238104Sdes$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15958238104Sdesif ${ac_cv_func_realloc_0_nonnull+:} false; then :
15959238104Sdes  $as_echo_n "(cached) " >&6
15960238104Sdeselse
15961238104Sdes  if test "$cross_compiling" = yes; then :
15962238104Sdes  ac_cv_func_realloc_0_nonnull=no
15963238104Sdeselse
15964238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965238104Sdes/* end confdefs.h.  */
15966238104Sdes#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15967238104Sdes# include <stdlib.h>
15968238104Sdes#else
15969238104Sdeschar *realloc ();
15970238104Sdes#endif
15971238104Sdes
15972238104Sdesint
15973238104Sdesmain ()
15974238104Sdes{
15975238104Sdesreturn ! realloc (0, 0);
15976238104Sdes  ;
15977238104Sdes  return 0;
15978238104Sdes}
15979238104Sdes_ACEOF
15980238104Sdesif ac_fn_c_try_run "$LINENO"; then :
15981238104Sdes  ac_cv_func_realloc_0_nonnull=yes
15982238104Sdeselse
15983238104Sdes  ac_cv_func_realloc_0_nonnull=no
15984238104Sdesfi
15985238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15986238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
15987238104Sdesfi
15988238104Sdes
15989238104Sdesfi
15990238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15991238104Sdes$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15992238104Sdesif test $ac_cv_func_realloc_0_nonnull = yes; then :
15993238104Sdes
15994238104Sdes$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15995238104Sdes
15996238104Sdeselse
15997238104Sdes  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15998238104Sdes
15999238104Sdes   case " $LIBOBJS " in
16000238104Sdes  *" realloc.$ac_objext "* ) ;;
16001238104Sdes  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16002238104Sdes ;;
16003238104Sdesesac
16004238104Sdes
16005238104Sdes
16006238104Sdes$as_echo "#define realloc rpl_realloc" >>confdefs.h
16007238104Sdes
16008238104Sdesfi
16009238104Sdes
16010238104Sdes
16011238104Sdes
16012238104Sdesac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
16013238104Sdesif test "x$ac_cv_func_b64_pton" = xyes; then :
16014238104Sdes  $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
16015238104Sdes
16016238104Sdeselse
16017238104Sdes  case " $LIBOBJS " in
16018238104Sdes  *" b64_pton.$ac_objext "* ) ;;
16019238104Sdes  *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
16020238104Sdes ;;
16021238104Sdesesac
16022238104Sdes
16023238104Sdesfi
16024238104Sdes
16025238104Sdes
16026238104Sdesac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
16027238104Sdesif test "x$ac_cv_func_b64_ntop" = xyes; then :
16028238104Sdes  $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
16029238104Sdes
16030238104Sdeselse
16031238104Sdes  case " $LIBOBJS " in
16032238104Sdes  *" b64_ntop.$ac_objext "* ) ;;
16033238104Sdes  *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
16034238104Sdes ;;
16035238104Sdesesac
16036238104Sdes
16037238104Sdesfi
16038238104Sdes
16039238104Sdes
16040238104Sdesac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
16041238104Sdesif test "x$ac_cv_func_calloc" = xyes; then :
16042238104Sdes  $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
16043238104Sdes
16044238104Sdeselse
16045238104Sdes  case " $LIBOBJS " in
16046238104Sdes  *" calloc.$ac_objext "* ) ;;
16047238104Sdes  *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
16048238104Sdes ;;
16049238104Sdesesac
16050238104Sdes
16051238104Sdesfi
16052238104Sdes
16053238104Sdes
16054238104Sdesac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
16055238104Sdesif test "x$ac_cv_func_timegm" = xyes; then :
16056238104Sdes  $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
16057238104Sdes
16058238104Sdeselse
16059238104Sdes  case " $LIBOBJS " in
16060238104Sdes  *" timegm.$ac_objext "* ) ;;
16061238104Sdes  *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
16062238104Sdes ;;
16063238104Sdesesac
16064238104Sdes
16065238104Sdesfi
16066238104Sdes
16067238104Sdes
16068238104Sdesac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
16069238104Sdesif test "x$ac_cv_func_gmtime_r" = xyes; then :
16070238104Sdes  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16071238104Sdes
16072238104Sdeselse
16073238104Sdes  case " $LIBOBJS " in
16074238104Sdes  *" gmtime_r.$ac_objext "* ) ;;
16075238104Sdes  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
16076238104Sdes ;;
16077238104Sdesesac
16078238104Sdes
16079238104Sdesfi
16080238104Sdes
16081238104Sdes
16082238104Sdesac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
16083238104Sdesif test "x$ac_cv_func_ctime_r" = xyes; then :
16084238104Sdes  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
16085238104Sdes
16086238104Sdeselse
16087238104Sdes  case " $LIBOBJS " in
16088238104Sdes  *" ctime_r.$ac_objext "* ) ;;
16089238104Sdes  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
16090238104Sdes ;;
16091238104Sdesesac
16092238104Sdes
16093238104Sdesfi
16094238104Sdes
16095238104Sdes
16096238104Sdesac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
16097238104Sdesif test "x$ac_cv_func_localtime_r" = xyes; then :
16098238104Sdes  $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16099238104Sdes
16100238104Sdeselse
16101238104Sdes  case " $LIBOBJS " in
16102238104Sdes  *" localtime_r.$ac_objext "* ) ;;
16103238104Sdes  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
16104238104Sdes ;;
16105238104Sdesesac
16106238104Sdes
16107238104Sdesfi
16108238104Sdes
16109238104Sdes
16110238104Sdesac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
16111238104Sdesif test "x$ac_cv_func_isblank" = xyes; then :
16112238104Sdes  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16113238104Sdes
16114238104Sdeselse
16115238104Sdes  case " $LIBOBJS " in
16116238104Sdes  *" isblank.$ac_objext "* ) ;;
16117238104Sdes  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16118238104Sdes ;;
16119238104Sdesesac
16120238104Sdes
16121238104Sdesfi
16122238104Sdes
16123238104Sdes
16124238104Sdesac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
16125238104Sdesif test "x$ac_cv_func_isascii" = xyes; then :
16126238104Sdes  $as_echo "#define HAVE_ISASCII 1" >>confdefs.h
16127238104Sdes
16128238104Sdeselse
16129238104Sdes  case " $LIBOBJS " in
16130238104Sdes  *" isascii.$ac_objext "* ) ;;
16131238104Sdes  *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
16132238104Sdes ;;
16133238104Sdesesac
16134238104Sdes
16135238104Sdesfi
16136238104Sdes
16137238104Sdes
16138238104Sdesac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16139238104Sdesif test "x$ac_cv_func_inet_aton" = xyes; then :
16140238104Sdes  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16141238104Sdes
16142238104Sdeselse
16143238104Sdes  case " $LIBOBJS " in
16144238104Sdes  *" inet_aton.$ac_objext "* ) ;;
16145238104Sdes  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
16146238104Sdes ;;
16147238104Sdesesac
16148238104Sdes
16149238104Sdesfi
16150238104Sdes
16151238104Sdes
16152238104Sdesac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
16153238104Sdesif test "x$ac_cv_func_inet_pton" = xyes; then :
16154238104Sdes  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
16155238104Sdes
16156238104Sdeselse
16157238104Sdes  case " $LIBOBJS " in
16158238104Sdes  *" inet_pton.$ac_objext "* ) ;;
16159238104Sdes  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
16160238104Sdes ;;
16161238104Sdesesac
16162238104Sdes
16163238104Sdesfi
16164238104Sdes
16165238104Sdes
16166238104Sdesac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
16167238104Sdesif test "x$ac_cv_func_inet_ntop" = xyes; then :
16168238104Sdes  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
16169238104Sdes
16170238104Sdeselse
16171238104Sdes  case " $LIBOBJS " in
16172238104Sdes  *" inet_ntop.$ac_objext "* ) ;;
16173238104Sdes  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
16174238104Sdes ;;
16175238104Sdesesac
16176238104Sdes
16177238104Sdesfi
16178238104Sdes
16179238104Sdes
16180238104Sdesac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16181238104Sdesif test "x$ac_cv_func_snprintf" = xyes; then :
16182238104Sdes  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16183238104Sdes
16184238104Sdeselse
16185238104Sdes  case " $LIBOBJS " in
16186238104Sdes  *" snprintf.$ac_objext "* ) ;;
16187238104Sdes  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16188238104Sdes ;;
16189238104Sdesesac
16190238104Sdes
16191238104Sdesfi
16192238104Sdes
16193238104Sdes
16194238104Sdesac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16195238104Sdesif test "x$ac_cv_func_strlcpy" = xyes; then :
16196238104Sdes  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16197238104Sdes
16198238104Sdeselse
16199238104Sdes  case " $LIBOBJS " in
16200238104Sdes  *" strlcpy.$ac_objext "* ) ;;
16201238104Sdes  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
16202238104Sdes ;;
16203238104Sdesesac
16204238104Sdes
16205238104Sdesfi
16206238104Sdes
16207238104Sdes
16208238104Sdesac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
16209238104Sdesif test "x$ac_cv_func_memmove" = xyes; then :
16210238104Sdes  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
16211238104Sdes
16212238104Sdeselse
16213238104Sdes  case " $LIBOBJS " in
16214238104Sdes  *" memmove.$ac_objext "* ) ;;
16215238104Sdes  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
16216238104Sdes ;;
16217238104Sdesesac
16218238104Sdes
16219238104Sdesfi
16220238104Sdes
16221238104Sdes
16222238104Sdesac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16223238104Sdesif test "x$ac_cv_type_pid_t" = xyes; then :
16224238104Sdes
16225238104Sdeselse
16226238104Sdes
16227238104Sdescat >>confdefs.h <<_ACEOF
16228238104Sdes#define pid_t int
16229238104Sdes_ACEOF
16230238104Sdes
16231238104Sdesfi
16232238104Sdes
16233238104Sdesfor ac_header in vfork.h
16234238104Sdesdo :
16235238104Sdes  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16236238104Sdesif test "x$ac_cv_header_vfork_h" = xyes; then :
16237238104Sdes  cat >>confdefs.h <<_ACEOF
16238238104Sdes#define HAVE_VFORK_H 1
16239238104Sdes_ACEOF
16240238104Sdes
16241238104Sdesfi
16242238104Sdes
16243238104Sdesdone
16244238104Sdes
16245238104Sdesfor ac_func in fork vfork
16246238104Sdesdo :
16247238104Sdes  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248238104Sdesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16249238104Sdesif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16250238104Sdes  cat >>confdefs.h <<_ACEOF
16251238104Sdes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16252238104Sdes_ACEOF
16253238104Sdes
16254238104Sdesfi
16255238104Sdesdone
16256238104Sdes
16257238104Sdesif test "x$ac_cv_func_fork" = xyes; then
16258238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16259238104Sdes$as_echo_n "checking for working fork... " >&6; }
16260238104Sdesif ${ac_cv_func_fork_works+:} false; then :
16261238104Sdes  $as_echo_n "(cached) " >&6
16262238104Sdeselse
16263238104Sdes  if test "$cross_compiling" = yes; then :
16264238104Sdes  ac_cv_func_fork_works=cross
16265238104Sdeselse
16266238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267238104Sdes/* end confdefs.h.  */
16268238104Sdes$ac_includes_default
16269238104Sdesint
16270238104Sdesmain ()
16271238104Sdes{
16272238104Sdes
16273238104Sdes	  /* By Ruediger Kuhlmann. */
16274238104Sdes	  return fork () < 0;
16275238104Sdes
16276238104Sdes  ;
16277238104Sdes  return 0;
16278238104Sdes}
16279238104Sdes_ACEOF
16280238104Sdesif ac_fn_c_try_run "$LINENO"; then :
16281238104Sdes  ac_cv_func_fork_works=yes
16282238104Sdeselse
16283238104Sdes  ac_cv_func_fork_works=no
16284238104Sdesfi
16285238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16286238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
16287238104Sdesfi
16288238104Sdes
16289238104Sdesfi
16290238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16291238104Sdes$as_echo "$ac_cv_func_fork_works" >&6; }
16292238104Sdes
16293238104Sdeselse
16294238104Sdes  ac_cv_func_fork_works=$ac_cv_func_fork
16295238104Sdesfi
16296238104Sdesif test "x$ac_cv_func_fork_works" = xcross; then
16297238104Sdes  case $host in
16298238104Sdes    *-*-amigaos* | *-*-msdosdjgpp*)
16299238104Sdes      # Override, as these systems have only a dummy fork() stub
16300238104Sdes      ac_cv_func_fork_works=no
16301238104Sdes      ;;
16302238104Sdes    *)
16303238104Sdes      ac_cv_func_fork_works=yes
16304238104Sdes      ;;
16305238104Sdes  esac
16306238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16307238104Sdes$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16308238104Sdesfi
16309238104Sdesac_cv_func_vfork_works=$ac_cv_func_vfork
16310238104Sdesif test "x$ac_cv_func_vfork" = xyes; then
16311238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16312238104Sdes$as_echo_n "checking for working vfork... " >&6; }
16313238104Sdesif ${ac_cv_func_vfork_works+:} false; then :
16314238104Sdes  $as_echo_n "(cached) " >&6
16315238104Sdeselse
16316238104Sdes  if test "$cross_compiling" = yes; then :
16317238104Sdes  ac_cv_func_vfork_works=cross
16318238104Sdeselse
16319238104Sdes  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320238104Sdes/* end confdefs.h.  */
16321238104Sdes/* Thanks to Paul Eggert for this test.  */
16322238104Sdes$ac_includes_default
16323238104Sdes#include <sys/wait.h>
16324238104Sdes#ifdef HAVE_VFORK_H
16325238104Sdes# include <vfork.h>
16326238104Sdes#endif
16327238104Sdes/* On some sparc systems, changes by the child to local and incoming
16328238104Sdes   argument registers are propagated back to the parent.  The compiler
16329238104Sdes   is told about this with #include <vfork.h>, but some compilers
16330238104Sdes   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
16331238104Sdes   static variable whose address is put into a register that is
16332238104Sdes   clobbered by the vfork.  */
16333238104Sdesstatic void
16334238104Sdes#ifdef __cplusplus
16335238104Sdessparc_address_test (int arg)
16336238104Sdes# else
16337238104Sdessparc_address_test (arg) int arg;
16338238104Sdes#endif
16339238104Sdes{
16340238104Sdes  static pid_t child;
16341238104Sdes  if (!child) {
16342238104Sdes    child = vfork ();
16343238104Sdes    if (child < 0) {
16344238104Sdes      perror ("vfork");
16345238104Sdes      _exit(2);
16346238104Sdes    }
16347238104Sdes    if (!child) {
16348238104Sdes      arg = getpid();
16349238104Sdes      write(-1, "", 0);
16350238104Sdes      _exit (arg);
16351238104Sdes    }
16352238104Sdes  }
16353238104Sdes}
16354238104Sdes
16355238104Sdesint
16356238104Sdesmain ()
16357238104Sdes{
16358238104Sdes  pid_t parent = getpid ();
16359238104Sdes  pid_t child;
16360238104Sdes
16361238104Sdes  sparc_address_test (0);
16362238104Sdes
16363238104Sdes  child = vfork ();
16364238104Sdes
16365238104Sdes  if (child == 0) {
16366238104Sdes    /* Here is another test for sparc vfork register problems.  This
16367238104Sdes       test uses lots of local variables, at least as many local
16368238104Sdes       variables as main has allocated so far including compiler
16369238104Sdes       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
16370238104Sdes       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
16371238104Sdes       reuse the register of parent for one of the local variables,
16372238104Sdes       since it will think that parent can't possibly be used any more
16373238104Sdes       in this routine.  Assigning to the local variable will thus
16374238104Sdes       munge parent in the parent process.  */
16375238104Sdes    pid_t
16376238104Sdes      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16377238104Sdes      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16378238104Sdes    /* Convince the compiler that p..p7 are live; otherwise, it might
16379238104Sdes       use the same hardware register for all 8 local variables.  */
16380238104Sdes    if (p != p1 || p != p2 || p != p3 || p != p4
16381238104Sdes	|| p != p5 || p != p6 || p != p7)
16382238104Sdes      _exit(1);
16383238104Sdes
16384238104Sdes    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16385238104Sdes       from child file descriptors.  If the child closes a descriptor
16386238104Sdes       before it execs or exits, this munges the parent's descriptor
16387238104Sdes       as well.  Test for this by closing stdout in the child.  */
16388238104Sdes    _exit(close(fileno(stdout)) != 0);
16389238104Sdes  } else {
16390238104Sdes    int status;
16391238104Sdes    struct stat st;
16392238104Sdes
16393238104Sdes    while (wait(&status) != child)
16394238104Sdes      ;
16395238104Sdes    return (
16396238104Sdes	 /* Was there some problem with vforking?  */
16397238104Sdes	 child < 0
16398238104Sdes
16399238104Sdes	 /* Did the child fail?  (This shouldn't happen.)  */
16400238104Sdes	 || status
16401238104Sdes
16402238104Sdes	 /* Did the vfork/compiler bug occur?  */
16403238104Sdes	 || parent != getpid()
16404238104Sdes
16405238104Sdes	 /* Did the file descriptor bug occur?  */
16406238104Sdes	 || fstat(fileno(stdout), &st) != 0
16407238104Sdes	 );
16408238104Sdes  }
16409238104Sdes}
16410238104Sdes_ACEOF
16411238104Sdesif ac_fn_c_try_run "$LINENO"; then :
16412238104Sdes  ac_cv_func_vfork_works=yes
16413238104Sdeselse
16414238104Sdes  ac_cv_func_vfork_works=no
16415238104Sdesfi
16416238104Sdesrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16417238104Sdes  conftest.$ac_objext conftest.beam conftest.$ac_ext
16418238104Sdesfi
16419238104Sdes
16420238104Sdesfi
16421238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16422238104Sdes$as_echo "$ac_cv_func_vfork_works" >&6; }
16423238104Sdes
16424238104Sdesfi;
16425238104Sdesif test "x$ac_cv_func_fork_works" = xcross; then
16426238104Sdes  ac_cv_func_vfork_works=$ac_cv_func_vfork
16427238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16428238104Sdes$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16429238104Sdesfi
16430238104Sdes
16431238104Sdesif test "x$ac_cv_func_vfork_works" = xyes; then
16432238104Sdes
16433238104Sdes$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16434238104Sdes
16435238104Sdeselse
16436238104Sdes
16437238104Sdes$as_echo "#define vfork fork" >>confdefs.h
16438238104Sdes
16439238104Sdesfi
16440238104Sdesif test "x$ac_cv_func_fork_works" = xyes; then
16441238104Sdes
16442238104Sdes$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16443238104Sdes
16444238104Sdesfi
16445238104Sdes
16446269257Sdesfor ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset b32_ntop b32_pton
16447238104Sdesdo :
16448238104Sdes  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16449238104Sdesac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16450238104Sdesif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16451238104Sdes  cat >>confdefs.h <<_ACEOF
16452238104Sdes#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16453238104Sdes_ACEOF
16454238104Sdes
16455238104Sdesfi
16456238104Sdesdone
16457238104Sdes
16458269257Sdesif test "x$HAVE_B32_NTOP" = "xyes"; then
16459269257Sdes	ldns_build_config_have_b32_ntop=1
16460238104Sdes
16461269257Sdeselse
16462269257Sdes	ldns_build_config_have_b32_ntop=0
16463238104Sdes
16464269257Sdesfi
16465269257Sdesif test "x$HAVE_B32_PTON" = "xyes"; then
16466269257Sdes	ldns_build_config_have_b32_pton=1
16467269257Sdes
16468269257Sdeselse
16469269257Sdes	ldns_build_config_have_b32_pton=0
16470269257Sdes
16471269257Sdesfi
16472269257Sdes
16473269257Sdes
16474238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
16475238104Sdes$as_echo_n "checking for getaddrinfo... " >&6; }
16476238104Sdesac_cv_func_getaddrinfo=no
16477238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478238104Sdes/* end confdefs.h.  */
16479238104Sdes
16480238104Sdes#ifdef __cplusplus
16481238104Sdesextern "C"
16482238104Sdes{
16483238104Sdes#endif
16484238104Sdeschar* getaddrinfo();
16485238104Sdeschar* (*f) () = getaddrinfo;
16486238104Sdes#ifdef __cplusplus
16487238104Sdes}
16488238104Sdes#endif
16489238104Sdesint main() {
16490238104Sdes        ;
16491238104Sdes        return 0;
16492238104Sdes}
16493238104Sdes
16494238104Sdes_ACEOF
16495238104Sdesif ac_fn_c_try_link "$LINENO"; then :
16496238104Sdes  ac_cv_func_getaddrinfo="yes"
16497238104Sdesif test "$ac_cv_header_windows_h" = "yes"; then
16498238104Sdes
16499238104Sdes$as_echo "#define USE_WINSOCK 1" >>confdefs.h
16500238104Sdes
16501238104Sdes	USE_WINSOCK="1"
16502238104Sdes	LIBS="$LIBS -lws2_32"
16503238104Sdesfi
16504238104Sdes
16505238104Sdeselse
16506238104Sdes  ORIGLIBS="$LIBS"
16507238104SdesLIBS="$LIBS -lws2_32"
16508238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509238104Sdes/* end confdefs.h.  */
16510238104Sdes
16511238104Sdes#ifdef HAVE_WS2TCPIP_H
16512238104Sdes#include <ws2tcpip.h>
16513238104Sdes#endif
16514238104Sdes
16515238104Sdesint
16516238104Sdesmain ()
16517238104Sdes{
16518238104Sdes
16519238104Sdes        (void)getaddrinfo(NULL, NULL, NULL, NULL);
16520238104Sdes
16521238104Sdes
16522238104Sdes  ;
16523238104Sdes  return 0;
16524238104Sdes}
16525238104Sdes_ACEOF
16526238104Sdesif ac_fn_c_try_link "$LINENO"; then :
16527238104Sdes
16528238104Sdesac_cv_func_getaddrinfo="yes"
16529238104Sdes
16530238104Sdes$as_echo "#define USE_WINSOCK 1" >>confdefs.h
16531238104Sdes
16532238104SdesUSE_WINSOCK="1"
16533238104Sdes
16534238104Sdeselse
16535238104Sdes
16536238104Sdesac_cv_func_getaddrinfo="no"
16537238104SdesLIBS="$ORIGLIBS"
16538238104Sdes
16539238104Sdesfi
16540238104Sdesrm -f core conftest.err conftest.$ac_objext \
16541238104Sdes    conftest$ac_exeext conftest.$ac_ext
16542238104Sdes
16543238104Sdesfi
16544238104Sdesrm -f core conftest.err conftest.$ac_objext \
16545238104Sdes    conftest$ac_exeext conftest.$ac_ext
16546238104Sdes
16547238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
16548238104Sdes$as_echo "$ac_cv_func_getaddrinfo" >&6; }
16549238104Sdesif test $ac_cv_func_getaddrinfo = yes; then
16550238104Sdes
16551238104Sdes$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16552238104Sdes
16553238104Sdesfi
16554238104Sdes
16555238104Sdesif test $ac_cv_func_getaddrinfo = no; then
16556238104Sdes	case " $LIBOBJS " in
16557238104Sdes  *" fake-rfc2553.$ac_objext "* ) ;;
16558238104Sdes  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
16559238104Sdes ;;
16560238104Sdesesac
16561238104Sdes
16562238104Sdesfi
16563238104Sdesif test "$USE_WINSOCK" = 1; then
16564238104Sdes	if test -n "$ac_tool_prefix"; then
16565238104Sdes  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16566238104Sdesset dummy ${ac_tool_prefix}windres; ac_word=$2
16567238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16568238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
16569238104Sdesif ${ac_cv_prog_WINDRES+:} false; then :
16570238104Sdes  $as_echo_n "(cached) " >&6
16571238104Sdeselse
16572238104Sdes  if test -n "$WINDRES"; then
16573238104Sdes  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16574238104Sdeselse
16575238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576238104Sdesfor as_dir in $PATH
16577238104Sdesdo
16578238104Sdes  IFS=$as_save_IFS
16579238104Sdes  test -z "$as_dir" && as_dir=.
16580238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
16581285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582238104Sdes    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
16583238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16584238104Sdes    break 2
16585238104Sdes  fi
16586238104Sdesdone
16587238104Sdes  done
16588238104SdesIFS=$as_save_IFS
16589238104Sdes
16590238104Sdesfi
16591238104Sdesfi
16592238104SdesWINDRES=$ac_cv_prog_WINDRES
16593238104Sdesif test -n "$WINDRES"; then
16594238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
16595238104Sdes$as_echo "$WINDRES" >&6; }
16596238104Sdeselse
16597238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598238104Sdes$as_echo "no" >&6; }
16599238104Sdesfi
16600238104Sdes
16601238104Sdes
16602238104Sdesfi
16603238104Sdesif test -z "$ac_cv_prog_WINDRES"; then
16604238104Sdes  ac_ct_WINDRES=$WINDRES
16605238104Sdes  # Extract the first word of "windres", so it can be a program name with args.
16606238104Sdesset dummy windres; ac_word=$2
16607238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608238104Sdes$as_echo_n "checking for $ac_word... " >&6; }
16609238104Sdesif ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
16610238104Sdes  $as_echo_n "(cached) " >&6
16611238104Sdeselse
16612238104Sdes  if test -n "$ac_ct_WINDRES"; then
16613238104Sdes  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
16614238104Sdeselse
16615238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616238104Sdesfor as_dir in $PATH
16617238104Sdesdo
16618238104Sdes  IFS=$as_save_IFS
16619238104Sdes  test -z "$as_dir" && as_dir=.
16620238104Sdes    for ac_exec_ext in '' $ac_executable_extensions; do
16621285206Sdes  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622238104Sdes    ac_cv_prog_ac_ct_WINDRES="windres"
16623238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16624238104Sdes    break 2
16625238104Sdes  fi
16626238104Sdesdone
16627238104Sdes  done
16628238104SdesIFS=$as_save_IFS
16629238104Sdes
16630238104Sdesfi
16631238104Sdesfi
16632238104Sdesac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
16633238104Sdesif test -n "$ac_ct_WINDRES"; then
16634238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
16635238104Sdes$as_echo "$ac_ct_WINDRES" >&6; }
16636238104Sdeselse
16637238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638238104Sdes$as_echo "no" >&6; }
16639238104Sdesfi
16640238104Sdes
16641238104Sdes  if test "x$ac_ct_WINDRES" = x; then
16642238104Sdes    WINDRES=""
16643238104Sdes  else
16644238104Sdes    case $cross_compiling:$ac_tool_warned in
16645238104Sdesyes:)
16646238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16647238104Sdes$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16648238104Sdesac_tool_warned=yes ;;
16649238104Sdesesac
16650238104Sdes    WINDRES=$ac_ct_WINDRES
16651238104Sdes  fi
16652238104Sdeselse
16653238104Sdes  WINDRES="$ac_cv_prog_WINDRES"
16654238104Sdesfi
16655238104Sdes
16656238104Sdesfi
16657238104Sdes
16658238104Sdes# check ioctlsocket
16659238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
16660238104Sdes$as_echo_n "checking for ioctlsocket... " >&6; }
16661238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662238104Sdes/* end confdefs.h.  */
16663238104Sdes
16664238104Sdes#ifdef HAVE_WINSOCK2_H
16665238104Sdes#include <winsock2.h>
16666238104Sdes#endif
16667238104Sdes
16668238104Sdesint
16669238104Sdesmain ()
16670238104Sdes{
16671238104Sdes
16672238104Sdes	(void)ioctlsocket(0, 0, NULL);
16673238104Sdes
16674238104Sdes  ;
16675238104Sdes  return 0;
16676238104Sdes}
16677238104Sdes_ACEOF
16678238104Sdesif ac_fn_c_try_link "$LINENO"; then :
16679238104Sdes
16680238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16681238104Sdes$as_echo "yes" >&6; }
16682238104Sdes
16683238104Sdes$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
16684238104Sdes
16685238104Sdes
16686238104Sdeselse
16687238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688238104Sdes$as_echo "no" >&6; }
16689238104Sdesfi
16690238104Sdesrm -f core conftest.err conftest.$ac_objext \
16691238104Sdes    conftest$ac_exeext conftest.$ac_ext
16692238104Sdes
16693238104Sdes
16694238104Sdes#AC_SEARCH_LIBS(RSA_new, [crypto])
16695238104Sdes
16696238104Sdes
16697238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
16698238104Sdes$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
16699238104Sdesif ${ac_cv_c_format_attribute+:} false; then :
16700238104Sdes  $as_echo_n "(cached) " >&6
16701238104Sdeselse
16702238104Sdes  ac_cv_c_format_attribute=no
16703238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704238104Sdes/* end confdefs.h.  */
16705238104Sdes#include <stdio.h>
16706238104Sdesvoid f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16707238104Sdesvoid (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16708238104Sdes
16709238104Sdesint
16710238104Sdesmain ()
16711238104Sdes{
16712238104Sdes
16713238104Sdes   f ("%s", "str");
16714238104Sdes
16715238104Sdes  ;
16716238104Sdes  return 0;
16717238104Sdes}
16718238104Sdes_ACEOF
16719238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
16720238104Sdes  ac_cv_c_format_attribute="yes"
16721238104Sdeselse
16722238104Sdes  ac_cv_c_format_attribute="no"
16723238104Sdesfi
16724238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725238104Sdes
16726238104Sdesfi
16727238104Sdes
16728238104Sdes
16729238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
16730238104Sdes$as_echo "$ac_cv_c_format_attribute" >&6; }
16731238104Sdesif test $ac_cv_c_format_attribute = yes; then
16732238104Sdes
16733238104Sdes$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
16734238104Sdes
16735238104Sdesfi
16736238104Sdes
16737238104Sdes
16738238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
16739238104Sdes$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
16740238104Sdesif ${ac_cv_c_unused_attribute+:} false; then :
16741238104Sdes  $as_echo_n "(cached) " >&6
16742238104Sdeselse
16743238104Sdes  ac_cv_c_unused_attribute=no
16744238104Sdescat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745238104Sdes/* end confdefs.h.  */
16746238104Sdes#include <stdio.h>
16747238104Sdesvoid f (char *u __attribute__((unused)));
16748238104Sdes
16749238104Sdesint
16750238104Sdesmain ()
16751238104Sdes{
16752238104Sdes
16753238104Sdes   f ("x");
16754238104Sdes
16755238104Sdes  ;
16756238104Sdes  return 0;
16757238104Sdes}
16758238104Sdes_ACEOF
16759238104Sdesif ac_fn_c_try_compile "$LINENO"; then :
16760238104Sdes  ac_cv_c_unused_attribute="yes"
16761238104Sdeselse
16762238104Sdes  ac_cv_c_unused_attribute="no"
16763238104Sdesfi
16764238104Sdesrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765238104Sdes
16766238104Sdesfi
16767238104Sdes
16768238104Sdes
16769238104Sdes
16770238104Sdes
16771238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
16772238104Sdes$as_echo "$ac_cv_c_unused_attribute" >&6; }
16773238104Sdesif test $ac_cv_c_unused_attribute = yes; then
16774238104Sdes
16775238104Sdes$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
16776238104Sdes
16777238104Sdesfi
16778238104Sdes
16779238104Sdes
16780238104Sdes# check OSX deployment target which is needed
16781238104Sdesif echo $build_os | grep darwin > /dev/null; then
16782238104Sdes 	export MACOSX_DEPLOYMENT_TARGET="10.4"
16783238104Sdesfi
16784238104Sdes
16785238104Sdes
16786238104Sdes$as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h
16787238104Sdes
16788238104Sdes
16789238104Sdes
16790246854Sdes# Check whether --with-trust-anchor was given.
16791246854Sdesif test "${with_trust_anchor+set}" = set; then :
16792246854Sdes  withval=$with_trust_anchor;
16793246854Sdes LDNS_TRUST_ANCHOR_FILE="$withval"
16794238104Sdes
16795246854Sdeselse
16796238104Sdes
16797246854Sdes if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
16798246854Sdes  if test "x$sysconfdir" = 'x${prefix}/etc' ; then
16799246854Sdes   if test "x$prefix" = 'xNONE' ; then
16800246854Sdes    LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
16801246854Sdes   else
16802246854Sdes    LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
16803246854Sdes   fi
16804246854Sdes  else
16805246854Sdes    LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
16806246854Sdes  fi
16807246854Sdes fi
16808238104Sdes
16809246854Sdesfi
16810246854Sdes
16811246854Sdes
16812246854Sdescat >>confdefs.h <<_ACEOF
16813246854Sdes#define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
16814246854Sdes_ACEOF
16815246854Sdes
16816246854Sdes
16817246854Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
16818246854Sdes$as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
16819246854Sdes
16820246854Sdes
16821246854Sdes# Check whether --with-ca-file was given.
16822246854Sdesif test "${with_ca_file+set}" = set; then :
16823246854Sdes  withval=$with_ca_file;
16824246854Sdes
16825246854Sdes$as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
16826246854Sdes
16827246854Sdes
16828246854Sdescat >>confdefs.h <<_ACEOF
16829246854Sdes#define LDNS_DANE_CA_FILE "$withval"
16830246854Sdes_ACEOF
16831246854Sdes
16832246854Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
16833246854Sdes$as_echo "$as_me: Using CAfile: $withval" >&6;}
16834246854Sdes DEFAULT_CAFILE="Default is $withval"
16835246854Sdes
16836246854Sdes
16837246854Sdeselse
16838246854Sdes
16839246854Sdes
16840246854Sdes$as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
16841246854Sdes
16842246854Sdes
16843246854Sdes
16844246854Sdesfi
16845246854Sdes
16846246854Sdes
16847246854Sdes
16848246854Sdes# Check whether --with-ca-path was given.
16849246854Sdesif test "${with_ca_path+set}" = set; then :
16850246854Sdes  withval=$with_ca_path;
16851246854Sdes
16852246854Sdes$as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
16853246854Sdes
16854246854Sdes
16855246854Sdescat >>confdefs.h <<_ACEOF
16856246854Sdes#define LDNS_DANE_CA_PATH "$withval"
16857246854Sdes_ACEOF
16858246854Sdes
16859246854Sdes { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
16860246854Sdes$as_echo "$as_me: Using CApath: $withval" >&6;}
16861246854Sdes DEFAULT_CAPATH="Default is $withval"
16862246854Sdes
16863246854Sdes
16864246854Sdeselse
16865246854Sdes
16866246854Sdes
16867246854Sdes$as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
16868246854Sdes
16869246854Sdes
16870246854Sdes
16871246854Sdesfi
16872246854Sdes
16873246854Sdes
16874246854Sdes
16875246854Sdes
16876246854Sdes
16877246854Sdes
16878238104Sdesif test "x$HAVE_SSL" = "xyes"; then
16879238104Sdes	ldns_build_config_have_ssl=1
16880238104Sdes
16881238104Sdeselse
16882238104Sdes	ldns_build_config_have_ssl=0
16883238104Sdes
16884238104Sdesfi
16885238104Sdesif test "x$ac_cv_c_format_attribute" = "xyes"; then
16886238104Sdes  ldns_build_config_have_attr_format=1
16887238104Sdes
16888238104Sdeselse
16889238104Sdes  ldns_build_config_have_attr_format=0
16890238104Sdes
16891238104Sdesfi
16892238104Sdesif test "x$ac_cv_c_unused_attribute" = "xyes"; then
16893238104Sdes  ldns_build_config_have_attr_unused=1
16894238104Sdes
16895238104Sdeselse
16896238104Sdes  ldns_build_config_have_attr_unused=0
16897238104Sdes
16898238104Sdesfi
16899238104Sdes
16900246854SdesCONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config $DRILL_CONFIG $EXAMPLES_CONFIG"
16901238104Sdes
16902246854Sdesac_config_files="$ac_config_files $CONFIG_FILES"
16903238104Sdes
16904246854Sdes
16905238104Sdesac_config_headers="$ac_config_headers ldns/config.h"
16906238104Sdes
16907238104Sdescat >confcache <<\_ACEOF
16908238104Sdes# This file is a shell script that caches the results of configure
16909238104Sdes# tests run on this system so they can be shared between configure
16910238104Sdes# scripts and configure runs, see configure's option --config-cache.
16911238104Sdes# It is not useful on other systems.  If it contains results you don't
16912238104Sdes# want to keep, you may remove or edit it.
16913238104Sdes#
16914238104Sdes# config.status only pays attention to the cache file if you give it
16915238104Sdes# the --recheck option to rerun configure.
16916238104Sdes#
16917238104Sdes# `ac_cv_env_foo' variables (set or unset) will be overridden when
16918238104Sdes# loading this file, other *unset* `ac_cv_foo' will be assigned the
16919238104Sdes# following values.
16920238104Sdes
16921238104Sdes_ACEOF
16922238104Sdes
16923238104Sdes# The following way of writing the cache mishandles newlines in values,
16924238104Sdes# but we know of no workaround that is simple, portable, and efficient.
16925238104Sdes# So, we kill variables containing newlines.
16926238104Sdes# Ultrix sh set writes to stderr and can't be redirected directly,
16927238104Sdes# and sets the high bit in the cache file unless we assign to the vars.
16928238104Sdes(
16929238104Sdes  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16930238104Sdes    eval ac_val=\$$ac_var
16931238104Sdes    case $ac_val in #(
16932238104Sdes    *${as_nl}*)
16933238104Sdes      case $ac_var in #(
16934238104Sdes      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16935238104Sdes$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16936238104Sdes      esac
16937238104Sdes      case $ac_var in #(
16938238104Sdes      _ | IFS | as_nl) ;; #(
16939238104Sdes      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16940238104Sdes      *) { eval $ac_var=; unset $ac_var;} ;;
16941238104Sdes      esac ;;
16942238104Sdes    esac
16943238104Sdes  done
16944238104Sdes
16945238104Sdes  (set) 2>&1 |
16946238104Sdes    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16947238104Sdes    *${as_nl}ac_space=\ *)
16948238104Sdes      # `set' does not quote correctly, so add quotes: double-quote
16949238104Sdes      # substitution turns \\\\ into \\, and sed turns \\ into \.
16950238104Sdes      sed -n \
16951238104Sdes	"s/'/'\\\\''/g;
16952238104Sdes	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16953238104Sdes      ;; #(
16954238104Sdes    *)
16955238104Sdes      # `set' quotes correctly as required by POSIX, so do not add quotes.
16956238104Sdes      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16957238104Sdes      ;;
16958238104Sdes    esac |
16959238104Sdes    sort
16960238104Sdes) |
16961238104Sdes  sed '
16962238104Sdes     /^ac_cv_env_/b end
16963238104Sdes     t clear
16964238104Sdes     :clear
16965238104Sdes     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16966238104Sdes     t end
16967238104Sdes     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16968238104Sdes     :end' >>confcache
16969238104Sdesif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16970238104Sdes  if test -w "$cache_file"; then
16971238104Sdes    if test "x$cache_file" != "x/dev/null"; then
16972238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16973238104Sdes$as_echo "$as_me: updating cache $cache_file" >&6;}
16974238104Sdes      if test ! -f "$cache_file" || test -h "$cache_file"; then
16975238104Sdes	cat confcache >"$cache_file"
16976238104Sdes      else
16977238104Sdes        case $cache_file in #(
16978238104Sdes        */* | ?:*)
16979238104Sdes	  mv -f confcache "$cache_file"$$ &&
16980238104Sdes	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16981238104Sdes        *)
16982238104Sdes	  mv -f confcache "$cache_file" ;;
16983238104Sdes	esac
16984238104Sdes      fi
16985238104Sdes    fi
16986238104Sdes  else
16987238104Sdes    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16988238104Sdes$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16989238104Sdes  fi
16990238104Sdesfi
16991238104Sdesrm -f confcache
16992238104Sdes
16993238104Sdestest "x$prefix" = xNONE && prefix=$ac_default_prefix
16994238104Sdes# Let make expand exec_prefix.
16995238104Sdestest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16996238104Sdes
16997238104SdesDEFS=-DHAVE_CONFIG_H
16998238104Sdes
16999238104Sdesac_libobjs=
17000238104Sdesac_ltlibobjs=
17001238104SdesU=
17002238104Sdesfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17003238104Sdes  # 1. Remove the extension, and $U if already installed.
17004238104Sdes  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17005238104Sdes  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17006238104Sdes  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17007238104Sdes  #    will be set to the directory where LIBOBJS objects are built.
17008238104Sdes  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17009238104Sdes  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17010238104Sdesdone
17011238104SdesLIBOBJS=$ac_libobjs
17012238104Sdes
17013238104SdesLTLIBOBJS=$ac_ltlibobjs
17014238104Sdes
17015238104Sdes
17016238104Sdes
17017238104Sdes
17018238104Sdes: "${CONFIG_STATUS=./config.status}"
17019238104Sdesac_write_fail=0
17020238104Sdesac_clean_files_save=$ac_clean_files
17021238104Sdesac_clean_files="$ac_clean_files $CONFIG_STATUS"
17022238104Sdes{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17023238104Sdes$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17024238104Sdesas_write_fail=0
17025238104Sdescat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17026238104Sdes#! $SHELL
17027238104Sdes# Generated by $as_me.
17028238104Sdes# Run this file to recreate the current configuration.
17029238104Sdes# Compiler output produced by configure, useful for debugging
17030238104Sdes# configure, is in config.log if it exists.
17031238104Sdes
17032238104Sdesdebug=false
17033238104Sdesac_cs_recheck=false
17034238104Sdesac_cs_silent=false
17035238104Sdes
17036238104SdesSHELL=\${CONFIG_SHELL-$SHELL}
17037238104Sdesexport SHELL
17038238104Sdes_ASEOF
17039238104Sdescat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17040238104Sdes## -------------------- ##
17041238104Sdes## M4sh Initialization. ##
17042238104Sdes## -------------------- ##
17043238104Sdes
17044238104Sdes# Be more Bourne compatible
17045238104SdesDUALCASE=1; export DUALCASE # for MKS sh
17046238104Sdesif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17047238104Sdes  emulate sh
17048238104Sdes  NULLCMD=:
17049238104Sdes  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17050238104Sdes  # is contrary to our usage.  Disable this feature.
17051238104Sdes  alias -g '${1+"$@"}'='"$@"'
17052238104Sdes  setopt NO_GLOB_SUBST
17053238104Sdeselse
17054238104Sdes  case `(set -o) 2>/dev/null` in #(
17055238104Sdes  *posix*) :
17056238104Sdes    set -o posix ;; #(
17057238104Sdes  *) :
17058238104Sdes     ;;
17059238104Sdesesac
17060238104Sdesfi
17061238104Sdes
17062238104Sdes
17063238104Sdesas_nl='
17064238104Sdes'
17065238104Sdesexport as_nl
17066238104Sdes# Printing a long string crashes Solaris 7 /usr/bin/printf.
17067238104Sdesas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17068238104Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17069238104Sdesas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17070238104Sdes# Prefer a ksh shell builtin over an external printf program on Solaris,
17071238104Sdes# but without wasting forks for bash or zsh.
17072238104Sdesif test -z "$BASH_VERSION$ZSH_VERSION" \
17073238104Sdes    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17074238104Sdes  as_echo='print -r --'
17075238104Sdes  as_echo_n='print -rn --'
17076238104Sdeselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17077238104Sdes  as_echo='printf %s\n'
17078238104Sdes  as_echo_n='printf %s'
17079238104Sdeselse
17080238104Sdes  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17081238104Sdes    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17082238104Sdes    as_echo_n='/usr/ucb/echo -n'
17083238104Sdes  else
17084238104Sdes    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17085238104Sdes    as_echo_n_body='eval
17086238104Sdes      arg=$1;
17087238104Sdes      case $arg in #(
17088238104Sdes      *"$as_nl"*)
17089238104Sdes	expr "X$arg" : "X\\(.*\\)$as_nl";
17090238104Sdes	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17091238104Sdes      esac;
17092238104Sdes      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17093238104Sdes    '
17094238104Sdes    export as_echo_n_body
17095238104Sdes    as_echo_n='sh -c $as_echo_n_body as_echo'
17096238104Sdes  fi
17097238104Sdes  export as_echo_body
17098238104Sdes  as_echo='sh -c $as_echo_body as_echo'
17099238104Sdesfi
17100238104Sdes
17101238104Sdes# The user is always right.
17102238104Sdesif test "${PATH_SEPARATOR+set}" != set; then
17103238104Sdes  PATH_SEPARATOR=:
17104238104Sdes  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17105238104Sdes    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17106238104Sdes      PATH_SEPARATOR=';'
17107238104Sdes  }
17108238104Sdesfi
17109238104Sdes
17110238104Sdes
17111238104Sdes# IFS
17112238104Sdes# We need space, tab and new line, in precisely that order.  Quoting is
17113238104Sdes# there to prevent editors from complaining about space-tab.
17114238104Sdes# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17115238104Sdes# splitting by setting IFS to empty value.)
17116238104SdesIFS=" ""	$as_nl"
17117238104Sdes
17118238104Sdes# Find who we are.  Look in the path if we contain no directory separator.
17119238104Sdesas_myself=
17120238104Sdescase $0 in #((
17121238104Sdes  *[\\/]* ) as_myself=$0 ;;
17122238104Sdes  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17123238104Sdesfor as_dir in $PATH
17124238104Sdesdo
17125238104Sdes  IFS=$as_save_IFS
17126238104Sdes  test -z "$as_dir" && as_dir=.
17127238104Sdes    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17128238104Sdes  done
17129238104SdesIFS=$as_save_IFS
17130238104Sdes
17131238104Sdes     ;;
17132238104Sdesesac
17133238104Sdes# We did not find ourselves, most probably we were run as `sh COMMAND'
17134238104Sdes# in which case we are not to be found in the path.
17135238104Sdesif test "x$as_myself" = x; then
17136238104Sdes  as_myself=$0
17137238104Sdesfi
17138238104Sdesif test ! -f "$as_myself"; then
17139238104Sdes  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17140238104Sdes  exit 1
17141238104Sdesfi
17142238104Sdes
17143238104Sdes# Unset variables that we do not need and which cause bugs (e.g. in
17144238104Sdes# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17145238104Sdes# suppresses any "Segmentation fault" message there.  '((' could
17146238104Sdes# trigger a bug in pdksh 5.2.14.
17147238104Sdesfor as_var in BASH_ENV ENV MAIL MAILPATH
17148238104Sdesdo eval test x\${$as_var+set} = xset \
17149238104Sdes  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17150238104Sdesdone
17151238104SdesPS1='$ '
17152238104SdesPS2='> '
17153238104SdesPS4='+ '
17154238104Sdes
17155238104Sdes# NLS nuisances.
17156238104SdesLC_ALL=C
17157238104Sdesexport LC_ALL
17158238104SdesLANGUAGE=C
17159238104Sdesexport LANGUAGE
17160238104Sdes
17161238104Sdes# CDPATH.
17162238104Sdes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17163238104Sdes
17164238104Sdes
17165238104Sdes# as_fn_error STATUS ERROR [LINENO LOG_FD]
17166238104Sdes# ----------------------------------------
17167238104Sdes# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17168238104Sdes# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17169238104Sdes# script with STATUS, using 1 if that was 0.
17170238104Sdesas_fn_error ()
17171238104Sdes{
17172238104Sdes  as_status=$1; test $as_status -eq 0 && as_status=1
17173238104Sdes  if test "$4"; then
17174238104Sdes    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17175238104Sdes    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17176238104Sdes  fi
17177238104Sdes  $as_echo "$as_me: error: $2" >&2
17178238104Sdes  as_fn_exit $as_status
17179238104Sdes} # as_fn_error
17180238104Sdes
17181238104Sdes
17182238104Sdes# as_fn_set_status STATUS
17183238104Sdes# -----------------------
17184238104Sdes# Set $? to STATUS, without forking.
17185238104Sdesas_fn_set_status ()
17186238104Sdes{
17187238104Sdes  return $1
17188238104Sdes} # as_fn_set_status
17189238104Sdes
17190238104Sdes# as_fn_exit STATUS
17191238104Sdes# -----------------
17192238104Sdes# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17193238104Sdesas_fn_exit ()
17194238104Sdes{
17195238104Sdes  set +e
17196238104Sdes  as_fn_set_status $1
17197238104Sdes  exit $1
17198238104Sdes} # as_fn_exit
17199238104Sdes
17200238104Sdes# as_fn_unset VAR
17201238104Sdes# ---------------
17202238104Sdes# Portably unset VAR.
17203238104Sdesas_fn_unset ()
17204238104Sdes{
17205238104Sdes  { eval $1=; unset $1;}
17206238104Sdes}
17207238104Sdesas_unset=as_fn_unset
17208238104Sdes# as_fn_append VAR VALUE
17209238104Sdes# ----------------------
17210238104Sdes# Append the text in VALUE to the end of the definition contained in VAR. Take
17211238104Sdes# advantage of any shell optimizations that allow amortized linear growth over
17212238104Sdes# repeated appends, instead of the typical quadratic growth present in naive
17213238104Sdes# implementations.
17214238104Sdesif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17215238104Sdes  eval 'as_fn_append ()
17216238104Sdes  {
17217238104Sdes    eval $1+=\$2
17218238104Sdes  }'
17219238104Sdeselse
17220238104Sdes  as_fn_append ()
17221238104Sdes  {
17222238104Sdes    eval $1=\$$1\$2
17223238104Sdes  }
17224238104Sdesfi # as_fn_append
17225238104Sdes
17226238104Sdes# as_fn_arith ARG...
17227238104Sdes# ------------------
17228238104Sdes# Perform arithmetic evaluation on the ARGs, and store the result in the
17229238104Sdes# global $as_val. Take advantage of shells that can avoid forks. The arguments
17230238104Sdes# must be portable across $(()) and expr.
17231238104Sdesif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17232238104Sdes  eval 'as_fn_arith ()
17233238104Sdes  {
17234238104Sdes    as_val=$(( $* ))
17235238104Sdes  }'
17236238104Sdeselse
17237238104Sdes  as_fn_arith ()
17238238104Sdes  {
17239238104Sdes    as_val=`expr "$@" || test $? -eq 1`
17240238104Sdes  }
17241238104Sdesfi # as_fn_arith
17242238104Sdes
17243238104Sdes
17244238104Sdesif expr a : '\(a\)' >/dev/null 2>&1 &&
17245238104Sdes   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17246238104Sdes  as_expr=expr
17247238104Sdeselse
17248238104Sdes  as_expr=false
17249238104Sdesfi
17250238104Sdes
17251238104Sdesif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17252238104Sdes  as_basename=basename
17253238104Sdeselse
17254238104Sdes  as_basename=false
17255238104Sdesfi
17256238104Sdes
17257238104Sdesif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17258238104Sdes  as_dirname=dirname
17259238104Sdeselse
17260238104Sdes  as_dirname=false
17261238104Sdesfi
17262238104Sdes
17263238104Sdesas_me=`$as_basename -- "$0" ||
17264238104Sdes$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17265238104Sdes	 X"$0" : 'X\(//\)$' \| \
17266238104Sdes	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17267238104Sdes$as_echo X/"$0" |
17268238104Sdes    sed '/^.*\/\([^/][^/]*\)\/*$/{
17269238104Sdes	    s//\1/
17270238104Sdes	    q
17271238104Sdes	  }
17272238104Sdes	  /^X\/\(\/\/\)$/{
17273238104Sdes	    s//\1/
17274238104Sdes	    q
17275238104Sdes	  }
17276238104Sdes	  /^X\/\(\/\).*/{
17277238104Sdes	    s//\1/
17278238104Sdes	    q
17279238104Sdes	  }
17280238104Sdes	  s/.*/./; q'`
17281238104Sdes
17282238104Sdes# Avoid depending upon Character Ranges.
17283238104Sdesas_cr_letters='abcdefghijklmnopqrstuvwxyz'
17284238104Sdesas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17285238104Sdesas_cr_Letters=$as_cr_letters$as_cr_LETTERS
17286238104Sdesas_cr_digits='0123456789'
17287238104Sdesas_cr_alnum=$as_cr_Letters$as_cr_digits
17288238104Sdes
17289238104SdesECHO_C= ECHO_N= ECHO_T=
17290238104Sdescase `echo -n x` in #(((((
17291238104Sdes-n*)
17292238104Sdes  case `echo 'xy\c'` in
17293238104Sdes  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17294238104Sdes  xy)  ECHO_C='\c';;
17295238104Sdes  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17296238104Sdes       ECHO_T='	';;
17297238104Sdes  esac;;
17298238104Sdes*)
17299238104Sdes  ECHO_N='-n';;
17300238104Sdesesac
17301238104Sdes
17302238104Sdesrm -f conf$$ conf$$.exe conf$$.file
17303238104Sdesif test -d conf$$.dir; then
17304238104Sdes  rm -f conf$$.dir/conf$$.file
17305238104Sdeselse
17306238104Sdes  rm -f conf$$.dir
17307238104Sdes  mkdir conf$$.dir 2>/dev/null
17308238104Sdesfi
17309238104Sdesif (echo >conf$$.file) 2>/dev/null; then
17310238104Sdes  if ln -s conf$$.file conf$$ 2>/dev/null; then
17311238104Sdes    as_ln_s='ln -s'
17312238104Sdes    # ... but there are two gotchas:
17313238104Sdes    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17314238104Sdes    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17315285206Sdes    # In both cases, we have to default to `cp -pR'.
17316238104Sdes    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17317285206Sdes      as_ln_s='cp -pR'
17318238104Sdes  elif ln conf$$.file conf$$ 2>/dev/null; then
17319238104Sdes    as_ln_s=ln
17320238104Sdes  else
17321285206Sdes    as_ln_s='cp -pR'
17322238104Sdes  fi
17323238104Sdeselse
17324285206Sdes  as_ln_s='cp -pR'
17325238104Sdesfi
17326238104Sdesrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17327238104Sdesrmdir conf$$.dir 2>/dev/null
17328238104Sdes
17329238104Sdes
17330238104Sdes# as_fn_mkdir_p
17331238104Sdes# -------------
17332238104Sdes# Create "$as_dir" as a directory, including parents if necessary.
17333238104Sdesas_fn_mkdir_p ()
17334238104Sdes{
17335238104Sdes
17336238104Sdes  case $as_dir in #(
17337238104Sdes  -*) as_dir=./$as_dir;;
17338238104Sdes  esac
17339238104Sdes  test -d "$as_dir" || eval $as_mkdir_p || {
17340238104Sdes    as_dirs=
17341238104Sdes    while :; do
17342238104Sdes      case $as_dir in #(
17343238104Sdes      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17344238104Sdes      *) as_qdir=$as_dir;;
17345238104Sdes      esac
17346238104Sdes      as_dirs="'$as_qdir' $as_dirs"
17347238104Sdes      as_dir=`$as_dirname -- "$as_dir" ||
17348238104Sdes$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17349238104Sdes	 X"$as_dir" : 'X\(//\)[^/]' \| \
17350238104Sdes	 X"$as_dir" : 'X\(//\)$' \| \
17351238104Sdes	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17352238104Sdes$as_echo X"$as_dir" |
17353238104Sdes    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17354238104Sdes	    s//\1/
17355238104Sdes	    q
17356238104Sdes	  }
17357238104Sdes	  /^X\(\/\/\)[^/].*/{
17358238104Sdes	    s//\1/
17359238104Sdes	    q
17360238104Sdes	  }
17361238104Sdes	  /^X\(\/\/\)$/{
17362238104Sdes	    s//\1/
17363238104Sdes	    q
17364238104Sdes	  }
17365238104Sdes	  /^X\(\/\).*/{
17366238104Sdes	    s//\1/
17367238104Sdes	    q
17368238104Sdes	  }
17369238104Sdes	  s/.*/./; q'`
17370238104Sdes      test -d "$as_dir" && break
17371238104Sdes    done
17372238104Sdes    test -z "$as_dirs" || eval "mkdir $as_dirs"
17373238104Sdes  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17374238104Sdes
17375238104Sdes
17376238104Sdes} # as_fn_mkdir_p
17377238104Sdesif mkdir -p . 2>/dev/null; then
17378238104Sdes  as_mkdir_p='mkdir -p "$as_dir"'
17379238104Sdeselse
17380238104Sdes  test -d ./-p && rmdir ./-p
17381238104Sdes  as_mkdir_p=false
17382238104Sdesfi
17383238104Sdes
17384238104Sdes
17385285206Sdes# as_fn_executable_p FILE
17386285206Sdes# -----------------------
17387285206Sdes# Test if FILE is an executable regular file.
17388285206Sdesas_fn_executable_p ()
17389285206Sdes{
17390285206Sdes  test -f "$1" && test -x "$1"
17391285206Sdes} # as_fn_executable_p
17392285206Sdesas_test_x='test -x'
17393285206Sdesas_executable_p=as_fn_executable_p
17394285206Sdes
17395238104Sdes# Sed expression to map a string onto a valid CPP name.
17396238104Sdesas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17397238104Sdes
17398238104Sdes# Sed expression to map a string onto a valid variable name.
17399238104Sdesas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17400238104Sdes
17401238104Sdes
17402238104Sdesexec 6>&1
17403238104Sdes## ----------------------------------- ##
17404238104Sdes## Main body of $CONFIG_STATUS script. ##
17405238104Sdes## ----------------------------------- ##
17406238104Sdes_ASEOF
17407238104Sdestest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17408238104Sdes
17409238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410238104Sdes# Save the log message, to keep $0 and so on meaningful, and to
17411238104Sdes# report actual input values of CONFIG_FILES etc. instead of their
17412238104Sdes# values after options handling.
17413238104Sdesac_log="
17414269257SdesThis file was extended by ldns $as_me 1.6.17, which was
17415285206Sdesgenerated by GNU Autoconf 2.69.  Invocation command line was
17416238104Sdes
17417238104Sdes  CONFIG_FILES    = $CONFIG_FILES
17418238104Sdes  CONFIG_HEADERS  = $CONFIG_HEADERS
17419238104Sdes  CONFIG_LINKS    = $CONFIG_LINKS
17420238104Sdes  CONFIG_COMMANDS = $CONFIG_COMMANDS
17421238104Sdes  $ $0 $@
17422238104Sdes
17423238104Sdeson `(hostname || uname -n) 2>/dev/null | sed 1q`
17424238104Sdes"
17425238104Sdes
17426238104Sdes_ACEOF
17427238104Sdes
17428238104Sdescase $ac_config_files in *"
17429238104Sdes"*) set x $ac_config_files; shift; ac_config_files=$*;;
17430238104Sdesesac
17431238104Sdes
17432238104Sdescase $ac_config_headers in *"
17433238104Sdes"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17434238104Sdesesac
17435238104Sdes
17436238104Sdes
17437238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17438238104Sdes# Files that config.status was made for.
17439238104Sdesconfig_files="$ac_config_files"
17440238104Sdesconfig_headers="$ac_config_headers"
17441238104Sdesconfig_commands="$ac_config_commands"
17442238104Sdes
17443238104Sdes_ACEOF
17444238104Sdes
17445238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17446238104Sdesac_cs_usage="\
17447238104Sdes\`$as_me' instantiates files and other configuration actions
17448238104Sdesfrom templates according to the current configuration.  Unless the files
17449238104Sdesand actions are specified as TAGs, all are instantiated by default.
17450238104Sdes
17451238104SdesUsage: $0 [OPTION]... [TAG]...
17452238104Sdes
17453238104Sdes  -h, --help       print this help, then exit
17454238104Sdes  -V, --version    print version number and configuration settings, then exit
17455238104Sdes      --config     print configuration, then exit
17456238104Sdes  -q, --quiet, --silent
17457238104Sdes                   do not print progress messages
17458238104Sdes  -d, --debug      don't remove temporary files
17459238104Sdes      --recheck    update $as_me by reconfiguring in the same conditions
17460238104Sdes      --file=FILE[:TEMPLATE]
17461238104Sdes                   instantiate the configuration file FILE
17462238104Sdes      --header=FILE[:TEMPLATE]
17463238104Sdes                   instantiate the configuration header FILE
17464238104Sdes
17465238104SdesConfiguration files:
17466238104Sdes$config_files
17467238104Sdes
17468238104SdesConfiguration headers:
17469238104Sdes$config_headers
17470238104Sdes
17471238104SdesConfiguration commands:
17472238104Sdes$config_commands
17473238104Sdes
17474238104SdesReport bugs to <libdns@nlnetlabs.nl>."
17475238104Sdes
17476238104Sdes_ACEOF
17477238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17478238104Sdesac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17479238104Sdesac_cs_version="\\
17480269257Sdesldns config.status 1.6.17
17481285206Sdesconfigured by $0, generated by GNU Autoconf 2.69,
17482238104Sdes  with options \\"\$ac_cs_config\\"
17483238104Sdes
17484285206SdesCopyright (C) 2012 Free Software Foundation, Inc.
17485238104SdesThis config.status script is free software; the Free Software Foundation
17486238104Sdesgives unlimited permission to copy, distribute and modify it."
17487238104Sdes
17488238104Sdesac_pwd='$ac_pwd'
17489238104Sdessrcdir='$srcdir'
17490238104SdesAWK='$AWK'
17491238104Sdestest -n "\$AWK" || AWK=awk
17492238104Sdes_ACEOF
17493238104Sdes
17494238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17495238104Sdes# The default lists apply if the user does not specify any file.
17496238104Sdesac_need_defaults=:
17497238104Sdeswhile test $# != 0
17498238104Sdesdo
17499238104Sdes  case $1 in
17500238104Sdes  --*=?*)
17501238104Sdes    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17502238104Sdes    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17503238104Sdes    ac_shift=:
17504238104Sdes    ;;
17505238104Sdes  --*=)
17506238104Sdes    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17507238104Sdes    ac_optarg=
17508238104Sdes    ac_shift=:
17509238104Sdes    ;;
17510238104Sdes  *)
17511238104Sdes    ac_option=$1
17512238104Sdes    ac_optarg=$2
17513238104Sdes    ac_shift=shift
17514238104Sdes    ;;
17515238104Sdes  esac
17516238104Sdes
17517238104Sdes  case $ac_option in
17518238104Sdes  # Handling of the options.
17519238104Sdes  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17520238104Sdes    ac_cs_recheck=: ;;
17521238104Sdes  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17522238104Sdes    $as_echo "$ac_cs_version"; exit ;;
17523238104Sdes  --config | --confi | --conf | --con | --co | --c )
17524238104Sdes    $as_echo "$ac_cs_config"; exit ;;
17525238104Sdes  --debug | --debu | --deb | --de | --d | -d )
17526238104Sdes    debug=: ;;
17527238104Sdes  --file | --fil | --fi | --f )
17528238104Sdes    $ac_shift
17529238104Sdes    case $ac_optarg in
17530238104Sdes    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17531238104Sdes    '') as_fn_error $? "missing file argument" ;;
17532238104Sdes    esac
17533238104Sdes    as_fn_append CONFIG_FILES " '$ac_optarg'"
17534238104Sdes    ac_need_defaults=false;;
17535238104Sdes  --header | --heade | --head | --hea )
17536238104Sdes    $ac_shift
17537238104Sdes    case $ac_optarg in
17538238104Sdes    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17539238104Sdes    esac
17540238104Sdes    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17541238104Sdes    ac_need_defaults=false;;
17542238104Sdes  --he | --h)
17543238104Sdes    # Conflict between --help and --header
17544238104Sdes    as_fn_error $? "ambiguous option: \`$1'
17545238104SdesTry \`$0 --help' for more information.";;
17546238104Sdes  --help | --hel | -h )
17547238104Sdes    $as_echo "$ac_cs_usage"; exit ;;
17548238104Sdes  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17549238104Sdes  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17550238104Sdes    ac_cs_silent=: ;;
17551238104Sdes
17552238104Sdes  # This is an error.
17553238104Sdes  -*) as_fn_error $? "unrecognized option: \`$1'
17554238104SdesTry \`$0 --help' for more information." ;;
17555238104Sdes
17556238104Sdes  *) as_fn_append ac_config_targets " $1"
17557238104Sdes     ac_need_defaults=false ;;
17558238104Sdes
17559238104Sdes  esac
17560238104Sdes  shift
17561238104Sdesdone
17562238104Sdes
17563238104Sdesac_configure_extra_args=
17564238104Sdes
17565238104Sdesif $ac_cs_silent; then
17566238104Sdes  exec 6>/dev/null
17567238104Sdes  ac_configure_extra_args="$ac_configure_extra_args --silent"
17568238104Sdesfi
17569238104Sdes
17570238104Sdes_ACEOF
17571238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17572238104Sdesif \$ac_cs_recheck; then
17573285206Sdes  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17574238104Sdes  shift
17575238104Sdes  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17576238104Sdes  CONFIG_SHELL='$SHELL'
17577238104Sdes  export CONFIG_SHELL
17578238104Sdes  exec "\$@"
17579238104Sdesfi
17580238104Sdes
17581238104Sdes_ACEOF
17582238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17583238104Sdesexec 5>>config.log
17584238104Sdes{
17585238104Sdes  echo
17586238104Sdes  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17587238104Sdes## Running $as_me. ##
17588238104Sdes_ASBOX
17589238104Sdes  $as_echo "$ac_log"
17590238104Sdes} >&5
17591238104Sdes
17592238104Sdes_ACEOF
17593238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17594238104Sdes#
17595238104Sdes# INIT-COMMANDS
17596238104Sdes#
17597238104Sdes
17598238104Sdes
17599238104Sdes# The HP-UX ksh and POSIX shell print the target directory to stdout
17600238104Sdes# if CDPATH is set.
17601238104Sdes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17602238104Sdes
17603238104Sdessed_quote_subst='$sed_quote_subst'
17604238104Sdesdouble_quote_subst='$double_quote_subst'
17605238104Sdesdelay_variable_subst='$delay_variable_subst'
17606238104Sdesmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17607238104Sdesmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17608238104Sdesenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17609238104Sdesenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17610238104Sdespic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17611238104Sdesenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17612238104SdesSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17613238104SdesECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17614238104SdesPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17615238104Sdeshost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17616238104Sdeshost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17617238104Sdeshost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17618238104Sdesbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17619238104Sdesbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17620238104Sdesbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17621238104SdesSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17622238104SdesXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17623238104SdesGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17624238104SdesEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17625238104SdesFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17626238104SdesLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17627238104SdesNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17628238104SdesLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17629238104Sdesmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17630238104Sdesac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17631238104Sdesexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17632238104Sdeslt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17633238104Sdeslt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17634238104Sdeslt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17635238104Sdeslt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17636238104Sdeslt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17637238104Sdesreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17638238104Sdesreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17639238104SdesOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17640238104Sdesdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17641238104Sdesfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17642238104Sdesfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17643238104Sdeswant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17644238104SdesDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17645238104Sdessharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17646238104SdesAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17647238104SdesAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17648238104Sdesarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17649238104SdesSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17650238104SdesRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17651238104Sdesold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17652238104Sdesold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17653238104Sdesold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17654238104Sdeslock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17655238104SdesCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17656238104SdesCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17657238104Sdescompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17658238104SdesGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17659238104Sdeslt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17660238104Sdeslt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17661238104Sdeslt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17662238104Sdeslt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17663238104Sdesnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17664238104Sdeslt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17665238104Sdesobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17666238104SdesMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17667238104Sdeslt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17668238104Sdeslt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17669238104Sdeslt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17670238104Sdeslt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17671238104Sdeslt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17672238104Sdesneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17673238104SdesMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17674238104SdesDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17675238104SdesNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17676238104SdesLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17677238104SdesOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17678238104SdesOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17679238104Sdeslibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17680238104Sdesshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17681238104Sdesextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17682238104Sdesarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17683238104Sdesenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17684238104Sdesexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17685238104Sdeswhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17686238104Sdescompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17687238104Sdesold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17688238104Sdesold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17689238104Sdesarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17690238104Sdesarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17691238104Sdesmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17692238104Sdesmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17693238104Sdeswith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17694238104Sdesallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17695238104Sdesno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17696238104Sdeshardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17697238104Sdeshardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17698238104Sdeshardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17699238104Sdeshardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17700238104Sdeshardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17701238104Sdeshardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17702238104Sdeshardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17703238104Sdesinherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17704238104Sdeslink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17705238104Sdesalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17706238104Sdesexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17707238104Sdesexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17708238104Sdesinclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17709238104Sdesprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17710238104Sdespostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17711238104Sdesfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17712238104Sdesvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17713238104Sdesneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17714238104Sdesneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17715238104Sdesversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17716238104Sdesrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17717238104Sdesshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17718238104Sdesshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17719238104Sdeslibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17720238104Sdeslibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17721238104Sdessoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17722238104Sdesinstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17723238104Sdespostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17724238104Sdespostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17725238104Sdesfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17726238104Sdesfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17727238104Sdeshardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17728238104Sdessys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17729238104Sdessys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17730238104Sdeshardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17731238104Sdesenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17732238104Sdesenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17733238104Sdesenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17734238104Sdesold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17735238104Sdesstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17736238104Sdes
17737238104SdesLTCC='$LTCC'
17738238104SdesLTCFLAGS='$LTCFLAGS'
17739238104Sdescompiler='$compiler_DEFAULT'
17740238104Sdes
17741238104Sdes# A function that is used when there is no print builtin or printf.
17742238104Sdesfunc_fallback_echo ()
17743238104Sdes{
17744238104Sdes  eval 'cat <<_LTECHO_EOF
17745238104Sdes\$1
17746238104Sdes_LTECHO_EOF'
17747238104Sdes}
17748238104Sdes
17749238104Sdes# Quote evaled strings.
17750238104Sdesfor var in SHELL \
17751238104SdesECHO \
17752238104SdesPATH_SEPARATOR \
17753238104SdesSED \
17754238104SdesGREP \
17755238104SdesEGREP \
17756238104SdesFGREP \
17757238104SdesLD \
17758238104SdesNM \
17759238104SdesLN_S \
17760238104Sdeslt_SP2NL \
17761238104Sdeslt_NL2SP \
17762238104Sdesreload_flag \
17763238104SdesOBJDUMP \
17764238104Sdesdeplibs_check_method \
17765238104Sdesfile_magic_cmd \
17766238104Sdesfile_magic_glob \
17767238104Sdeswant_nocaseglob \
17768238104SdesDLLTOOL \
17769238104Sdessharedlib_from_linklib_cmd \
17770238104SdesAR \
17771238104SdesAR_FLAGS \
17772238104Sdesarchiver_list_spec \
17773238104SdesSTRIP \
17774238104SdesRANLIB \
17775238104SdesCC \
17776238104SdesCFLAGS \
17777238104Sdescompiler \
17778238104Sdeslt_cv_sys_global_symbol_pipe \
17779238104Sdeslt_cv_sys_global_symbol_to_cdecl \
17780238104Sdeslt_cv_sys_global_symbol_to_c_name_address \
17781238104Sdeslt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17782238104Sdesnm_file_list_spec \
17783238104Sdeslt_prog_compiler_no_builtin_flag \
17784238104Sdeslt_prog_compiler_pic \
17785238104Sdeslt_prog_compiler_wl \
17786238104Sdeslt_prog_compiler_static \
17787238104Sdeslt_cv_prog_compiler_c_o \
17788238104Sdesneed_locks \
17789238104SdesMANIFEST_TOOL \
17790238104SdesDSYMUTIL \
17791238104SdesNMEDIT \
17792238104SdesLIPO \
17793238104SdesOTOOL \
17794238104SdesOTOOL64 \
17795238104Sdesshrext_cmds \
17796238104Sdesexport_dynamic_flag_spec \
17797238104Sdeswhole_archive_flag_spec \
17798238104Sdescompiler_needs_object \
17799238104Sdeswith_gnu_ld \
17800238104Sdesallow_undefined_flag \
17801238104Sdesno_undefined_flag \
17802238104Sdeshardcode_libdir_flag_spec \
17803238104Sdeshardcode_libdir_separator \
17804238104Sdesexclude_expsyms \
17805238104Sdesinclude_expsyms \
17806238104Sdesfile_list_spec \
17807238104Sdesvariables_saved_for_relink \
17808238104Sdeslibname_spec \
17809238104Sdeslibrary_names_spec \
17810238104Sdessoname_spec \
17811238104Sdesinstall_override_mode \
17812238104Sdesfinish_eval \
17813238104Sdesold_striplib \
17814238104Sdesstriplib; do
17815238104Sdes    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17816238104Sdes    *[\\\\\\\`\\"\\\$]*)
17817238104Sdes      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17818238104Sdes      ;;
17819238104Sdes    *)
17820238104Sdes      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17821238104Sdes      ;;
17822238104Sdes    esac
17823238104Sdesdone
17824238104Sdes
17825238104Sdes# Double-quote double-evaled strings.
17826238104Sdesfor var in reload_cmds \
17827238104Sdesold_postinstall_cmds \
17828238104Sdesold_postuninstall_cmds \
17829238104Sdesold_archive_cmds \
17830238104Sdesextract_expsyms_cmds \
17831238104Sdesold_archive_from_new_cmds \
17832238104Sdesold_archive_from_expsyms_cmds \
17833238104Sdesarchive_cmds \
17834238104Sdesarchive_expsym_cmds \
17835238104Sdesmodule_cmds \
17836238104Sdesmodule_expsym_cmds \
17837238104Sdesexport_symbols_cmds \
17838238104Sdesprelink_cmds \
17839238104Sdespostlink_cmds \
17840238104Sdespostinstall_cmds \
17841238104Sdespostuninstall_cmds \
17842238104Sdesfinish_cmds \
17843238104Sdessys_lib_search_path_spec \
17844238104Sdessys_lib_dlsearch_path_spec; do
17845238104Sdes    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17846238104Sdes    *[\\\\\\\`\\"\\\$]*)
17847238104Sdes      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17848238104Sdes      ;;
17849238104Sdes    *)
17850238104Sdes      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17851238104Sdes      ;;
17852238104Sdes    esac
17853238104Sdesdone
17854238104Sdes
17855238104Sdesac_aux_dir='$ac_aux_dir'
17856238104Sdesxsi_shell='$xsi_shell'
17857238104Sdeslt_shell_append='$lt_shell_append'
17858238104Sdes
17859238104Sdes# See if we are running on zsh, and set the options which allow our
17860238104Sdes# commands through without removal of \ escapes INIT.
17861238104Sdesif test -n "\${ZSH_VERSION+set}" ; then
17862238104Sdes   setopt NO_GLOB_SUBST
17863238104Sdesfi
17864238104Sdes
17865238104Sdes
17866238104Sdes    PACKAGE='$PACKAGE'
17867238104Sdes    VERSION='$VERSION'
17868238104Sdes    TIMESTAMP='$TIMESTAMP'
17869238104Sdes    RM='$RM'
17870238104Sdes    ofile='$ofile'
17871238104Sdes
17872238104Sdes
17873238104Sdes
17874238104Sdes
17875238104Sdes_ACEOF
17876238104Sdes
17877238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17878238104Sdes
17879238104Sdes# Handling of arguments.
17880238104Sdesfor ac_config_target in $ac_config_targets
17881238104Sdesdo
17882238104Sdes  case $ac_config_target in
17883238104Sdes    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17884238104Sdes    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
17885246854Sdes    "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
17886238104Sdes    "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
17887238104Sdes
17888238104Sdes  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17889238104Sdes  esac
17890238104Sdesdone
17891238104Sdes
17892238104Sdes
17893238104Sdes# If the user did not use the arguments to specify the items to instantiate,
17894238104Sdes# then the envvar interface is used.  Set only those that are not.
17895238104Sdes# We use the long form for the default assignment because of an extremely
17896238104Sdes# bizarre bug on SunOS 4.1.3.
17897238104Sdesif $ac_need_defaults; then
17898238104Sdes  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17899238104Sdes  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17900238104Sdes  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17901238104Sdesfi
17902238104Sdes
17903238104Sdes# Have a temporary directory for convenience.  Make it in the build tree
17904238104Sdes# simply because there is no reason against having it here, and in addition,
17905238104Sdes# creating and moving files from /tmp can sometimes cause problems.
17906238104Sdes# Hook for its removal unless debugging.
17907238104Sdes# Note that there is a small window in which the directory will not be cleaned:
17908238104Sdes# after its creation but before its name has been assigned to `$tmp'.
17909238104Sdes$debug ||
17910238104Sdes{
17911238104Sdes  tmp= ac_tmp=
17912238104Sdes  trap 'exit_status=$?
17913238104Sdes  : "${ac_tmp:=$tmp}"
17914238104Sdes  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17915238104Sdes' 0
17916238104Sdes  trap 'as_fn_exit 1' 1 2 13 15
17917238104Sdes}
17918238104Sdes# Create a (secure) tmp directory for tmp files.
17919238104Sdes
17920238104Sdes{
17921238104Sdes  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17922238104Sdes  test -d "$tmp"
17923238104Sdes}  ||
17924238104Sdes{
17925238104Sdes  tmp=./conf$$-$RANDOM
17926238104Sdes  (umask 077 && mkdir "$tmp")
17927238104Sdes} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17928238104Sdesac_tmp=$tmp
17929238104Sdes
17930238104Sdes# Set up the scripts for CONFIG_FILES section.
17931238104Sdes# No need to generate them if there are no CONFIG_FILES.
17932238104Sdes# This happens for instance with `./config.status config.h'.
17933238104Sdesif test -n "$CONFIG_FILES"; then
17934238104Sdes
17935238104Sdes
17936238104Sdesac_cr=`echo X | tr X '\015'`
17937238104Sdes# On cygwin, bash can eat \r inside `` if the user requested igncr.
17938238104Sdes# But we know of no other shell where ac_cr would be empty at this
17939238104Sdes# point, so we can use a bashism as a fallback.
17940238104Sdesif test "x$ac_cr" = x; then
17941238104Sdes  eval ac_cr=\$\'\\r\'
17942238104Sdesfi
17943238104Sdesac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17944238104Sdesif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17945238104Sdes  ac_cs_awk_cr='\\r'
17946238104Sdeselse
17947238104Sdes  ac_cs_awk_cr=$ac_cr
17948238104Sdesfi
17949238104Sdes
17950238104Sdesecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17951238104Sdes_ACEOF
17952238104Sdes
17953238104Sdes
17954238104Sdes{
17955238104Sdes  echo "cat >conf$$subs.awk <<_ACEOF" &&
17956238104Sdes  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17957238104Sdes  echo "_ACEOF"
17958238104Sdes} >conf$$subs.sh ||
17959238104Sdes  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17960238104Sdesac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17961238104Sdesac_delim='%!_!# '
17962238104Sdesfor ac_last_try in false false false false false :; do
17963238104Sdes  . ./conf$$subs.sh ||
17964238104Sdes    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17965238104Sdes
17966238104Sdes  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17967238104Sdes  if test $ac_delim_n = $ac_delim_num; then
17968238104Sdes    break
17969238104Sdes  elif $ac_last_try; then
17970238104Sdes    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17971238104Sdes  else
17972238104Sdes    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17973238104Sdes  fi
17974238104Sdesdone
17975238104Sdesrm -f conf$$subs.sh
17976238104Sdes
17977238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978238104Sdescat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17979238104Sdes_ACEOF
17980238104Sdessed -n '
17981238104Sdesh
17982238104Sdess/^/S["/; s/!.*/"]=/
17983238104Sdesp
17984238104Sdesg
17985238104Sdess/^[^!]*!//
17986238104Sdes:repl
17987238104Sdest repl
17988238104Sdess/'"$ac_delim"'$//
17989238104Sdest delim
17990238104Sdes:nl
17991238104Sdesh
17992238104Sdess/\(.\{148\}\)..*/\1/
17993238104Sdest more1
17994238104Sdess/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17995238104Sdesp
17996238104Sdesn
17997238104Sdesb repl
17998238104Sdes:more1
17999238104Sdess/["\\]/\\&/g; s/^/"/; s/$/"\\/
18000238104Sdesp
18001238104Sdesg
18002238104Sdess/.\{148\}//
18003238104Sdest nl
18004238104Sdes:delim
18005238104Sdesh
18006238104Sdess/\(.\{148\}\)..*/\1/
18007238104Sdest more2
18008238104Sdess/["\\]/\\&/g; s/^/"/; s/$/"/
18009238104Sdesp
18010238104Sdesb
18011238104Sdes:more2
18012238104Sdess/["\\]/\\&/g; s/^/"/; s/$/"\\/
18013238104Sdesp
18014238104Sdesg
18015238104Sdess/.\{148\}//
18016238104Sdest delim
18017238104Sdes' <conf$$subs.awk | sed '
18018238104Sdes/^[^""]/{
18019238104Sdes  N
18020238104Sdes  s/\n//
18021238104Sdes}
18022238104Sdes' >>$CONFIG_STATUS || ac_write_fail=1
18023238104Sdesrm -f conf$$subs.awk
18024238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025238104Sdes_ACAWK
18026238104Sdescat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18027238104Sdes  for (key in S) S_is_set[key] = 1
18028238104Sdes  FS = ""
18029238104Sdes
18030238104Sdes}
18031238104Sdes{
18032238104Sdes  line = $ 0
18033238104Sdes  nfields = split(line, field, "@")
18034238104Sdes  substed = 0
18035238104Sdes  len = length(field[1])
18036238104Sdes  for (i = 2; i < nfields; i++) {
18037238104Sdes    key = field[i]
18038238104Sdes    keylen = length(key)
18039238104Sdes    if (S_is_set[key]) {
18040238104Sdes      value = S[key]
18041238104Sdes      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18042238104Sdes      len += length(value) + length(field[++i])
18043238104Sdes      substed = 1
18044238104Sdes    } else
18045238104Sdes      len += 1 + keylen
18046238104Sdes  }
18047238104Sdes
18048238104Sdes  print line
18049238104Sdes}
18050238104Sdes
18051238104Sdes_ACAWK
18052238104Sdes_ACEOF
18053238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18054238104Sdesif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18055238104Sdes  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18056238104Sdeselse
18057238104Sdes  cat
18058238104Sdesfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18059238104Sdes  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18060238104Sdes_ACEOF
18061238104Sdes
18062238104Sdes# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18063238104Sdes# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18064238104Sdes# trailing colons and then remove the whole line if VPATH becomes empty
18065238104Sdes# (actually we leave an empty line to preserve line numbers).
18066238104Sdesif test "x$srcdir" = x.; then
18067238104Sdes  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18068238104Sdesh
18069238104Sdess///
18070238104Sdess/^/:/
18071238104Sdess/[	 ]*$/:/
18072238104Sdess/:\$(srcdir):/:/g
18073238104Sdess/:\${srcdir}:/:/g
18074238104Sdess/:@srcdir@:/:/g
18075238104Sdess/^:*//
18076238104Sdess/:*$//
18077238104Sdesx
18078238104Sdess/\(=[	 ]*\).*/\1/
18079238104SdesG
18080238104Sdess/\n//
18081238104Sdess/^[^=]*=[	 ]*$//
18082238104Sdes}'
18083238104Sdesfi
18084238104Sdes
18085238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18086238104Sdesfi # test -n "$CONFIG_FILES"
18087238104Sdes
18088238104Sdes# Set up the scripts for CONFIG_HEADERS section.
18089238104Sdes# No need to generate them if there are no CONFIG_HEADERS.
18090238104Sdes# This happens for instance with `./config.status Makefile'.
18091238104Sdesif test -n "$CONFIG_HEADERS"; then
18092238104Sdescat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18093238104SdesBEGIN {
18094238104Sdes_ACEOF
18095238104Sdes
18096238104Sdes# Transform confdefs.h into an awk script `defines.awk', embedded as
18097238104Sdes# here-document in config.status, that substitutes the proper values into
18098238104Sdes# config.h.in to produce config.h.
18099238104Sdes
18100238104Sdes# Create a delimiter string that does not exist in confdefs.h, to ease
18101238104Sdes# handling of long lines.
18102238104Sdesac_delim='%!_!# '
18103238104Sdesfor ac_last_try in false false :; do
18104238104Sdes  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18105238104Sdes  if test -z "$ac_tt"; then
18106238104Sdes    break
18107238104Sdes  elif $ac_last_try; then
18108238104Sdes    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18109238104Sdes  else
18110238104Sdes    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18111238104Sdes  fi
18112238104Sdesdone
18113238104Sdes
18114238104Sdes# For the awk script, D is an array of macro values keyed by name,
18115238104Sdes# likewise P contains macro parameters if any.  Preserve backslash
18116238104Sdes# newline sequences.
18117238104Sdes
18118238104Sdesac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18119238104Sdessed -n '
18120238104Sdess/.\{148\}/&'"$ac_delim"'/g
18121238104Sdest rset
18122238104Sdes:rset
18123238104Sdess/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18124238104Sdest def
18125238104Sdesd
18126238104Sdes:def
18127238104Sdess/\\$//
18128238104Sdest bsnl
18129238104Sdess/["\\]/\\&/g
18130238104Sdess/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18131238104SdesD["\1"]=" \3"/p
18132238104Sdess/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18133238104Sdesd
18134238104Sdes:bsnl
18135238104Sdess/["\\]/\\&/g
18136238104Sdess/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18137238104SdesD["\1"]=" \3\\\\\\n"\\/p
18138238104Sdest cont
18139238104Sdess/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18140238104Sdest cont
18141238104Sdesd
18142238104Sdes:cont
18143238104Sdesn
18144238104Sdess/.\{148\}/&'"$ac_delim"'/g
18145238104Sdest clear
18146238104Sdes:clear
18147238104Sdess/\\$//
18148238104Sdest bsnlc
18149238104Sdess/["\\]/\\&/g; s/^/"/; s/$/"/p
18150238104Sdesd
18151238104Sdes:bsnlc
18152238104Sdess/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18153238104Sdesb cont
18154238104Sdes' <confdefs.h | sed '
18155238104Sdess/'"$ac_delim"'/"\\\
18156238104Sdes"/g' >>$CONFIG_STATUS || ac_write_fail=1
18157238104Sdes
18158238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159238104Sdes  for (key in D) D_is_set[key] = 1
18160238104Sdes  FS = ""
18161238104Sdes}
18162238104Sdes/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18163238104Sdes  line = \$ 0
18164238104Sdes  split(line, arg, " ")
18165238104Sdes  if (arg[1] == "#") {
18166238104Sdes    defundef = arg[2]
18167238104Sdes    mac1 = arg[3]
18168238104Sdes  } else {
18169238104Sdes    defundef = substr(arg[1], 2)
18170238104Sdes    mac1 = arg[2]
18171238104Sdes  }
18172238104Sdes  split(mac1, mac2, "(") #)
18173238104Sdes  macro = mac2[1]
18174238104Sdes  prefix = substr(line, 1, index(line, defundef) - 1)
18175238104Sdes  if (D_is_set[macro]) {
18176238104Sdes    # Preserve the white space surrounding the "#".
18177238104Sdes    print prefix "define", macro P[macro] D[macro]
18178238104Sdes    next
18179238104Sdes  } else {
18180238104Sdes    # Replace #undef with comments.  This is necessary, for example,
18181238104Sdes    # in the case of _POSIX_SOURCE, which is predefined and required
18182238104Sdes    # on some systems where configure will not decide to define it.
18183238104Sdes    if (defundef == "undef") {
18184238104Sdes      print "/*", prefix defundef, macro, "*/"
18185238104Sdes      next
18186238104Sdes    }
18187238104Sdes  }
18188238104Sdes}
18189238104Sdes{ print }
18190238104Sdes_ACAWK
18191238104Sdes_ACEOF
18192238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193238104Sdes  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18194238104Sdesfi # test -n "$CONFIG_HEADERS"
18195238104Sdes
18196238104Sdes
18197238104Sdeseval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18198238104Sdesshift
18199238104Sdesfor ac_tag
18200238104Sdesdo
18201238104Sdes  case $ac_tag in
18202238104Sdes  :[FHLC]) ac_mode=$ac_tag; continue;;
18203238104Sdes  esac
18204238104Sdes  case $ac_mode$ac_tag in
18205238104Sdes  :[FHL]*:*);;
18206238104Sdes  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18207238104Sdes  :[FH]-) ac_tag=-:-;;
18208238104Sdes  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18209238104Sdes  esac
18210238104Sdes  ac_save_IFS=$IFS
18211238104Sdes  IFS=:
18212238104Sdes  set x $ac_tag
18213238104Sdes  IFS=$ac_save_IFS
18214238104Sdes  shift
18215238104Sdes  ac_file=$1
18216238104Sdes  shift
18217238104Sdes
18218238104Sdes  case $ac_mode in
18219238104Sdes  :L) ac_source=$1;;
18220238104Sdes  :[FH])
18221238104Sdes    ac_file_inputs=
18222238104Sdes    for ac_f
18223238104Sdes    do
18224238104Sdes      case $ac_f in
18225238104Sdes      -) ac_f="$ac_tmp/stdin";;
18226238104Sdes      *) # Look for the file first in the build tree, then in the source tree
18227238104Sdes	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18228238104Sdes	 # because $ac_f cannot contain `:'.
18229238104Sdes	 test -f "$ac_f" ||
18230238104Sdes	   case $ac_f in
18231238104Sdes	   [\\/$]*) false;;
18232238104Sdes	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18233238104Sdes	   esac ||
18234238104Sdes	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18235238104Sdes      esac
18236238104Sdes      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18237238104Sdes      as_fn_append ac_file_inputs " '$ac_f'"
18238238104Sdes    done
18239238104Sdes
18240238104Sdes    # Let's still pretend it is `configure' which instantiates (i.e., don't
18241238104Sdes    # use $as_me), people would be surprised to read:
18242238104Sdes    #    /* config.h.  Generated by config.status.  */
18243238104Sdes    configure_input='Generated from '`
18244238104Sdes	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18245238104Sdes	`' by configure.'
18246238104Sdes    if test x"$ac_file" != x-; then
18247238104Sdes      configure_input="$ac_file.  $configure_input"
18248238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18249238104Sdes$as_echo "$as_me: creating $ac_file" >&6;}
18250238104Sdes    fi
18251238104Sdes    # Neutralize special characters interpreted by sed in replacement strings.
18252238104Sdes    case $configure_input in #(
18253238104Sdes    *\&* | *\|* | *\\* )
18254238104Sdes       ac_sed_conf_input=`$as_echo "$configure_input" |
18255238104Sdes       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18256238104Sdes    *) ac_sed_conf_input=$configure_input;;
18257238104Sdes    esac
18258238104Sdes
18259238104Sdes    case $ac_tag in
18260238104Sdes    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18261238104Sdes      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18262238104Sdes    esac
18263238104Sdes    ;;
18264238104Sdes  esac
18265238104Sdes
18266238104Sdes  ac_dir=`$as_dirname -- "$ac_file" ||
18267238104Sdes$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18268238104Sdes	 X"$ac_file" : 'X\(//\)[^/]' \| \
18269238104Sdes	 X"$ac_file" : 'X\(//\)$' \| \
18270238104Sdes	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18271238104Sdes$as_echo X"$ac_file" |
18272238104Sdes    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18273238104Sdes	    s//\1/
18274238104Sdes	    q
18275238104Sdes	  }
18276238104Sdes	  /^X\(\/\/\)[^/].*/{
18277238104Sdes	    s//\1/
18278238104Sdes	    q
18279238104Sdes	  }
18280238104Sdes	  /^X\(\/\/\)$/{
18281238104Sdes	    s//\1/
18282238104Sdes	    q
18283238104Sdes	  }
18284238104Sdes	  /^X\(\/\).*/{
18285238104Sdes	    s//\1/
18286238104Sdes	    q
18287238104Sdes	  }
18288238104Sdes	  s/.*/./; q'`
18289238104Sdes  as_dir="$ac_dir"; as_fn_mkdir_p
18290238104Sdes  ac_builddir=.
18291238104Sdes
18292238104Sdescase "$ac_dir" in
18293238104Sdes.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18294238104Sdes*)
18295238104Sdes  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18296238104Sdes  # A ".." for each directory in $ac_dir_suffix.
18297238104Sdes  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18298238104Sdes  case $ac_top_builddir_sub in
18299238104Sdes  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18300238104Sdes  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18301238104Sdes  esac ;;
18302238104Sdesesac
18303238104Sdesac_abs_top_builddir=$ac_pwd
18304238104Sdesac_abs_builddir=$ac_pwd$ac_dir_suffix
18305238104Sdes# for backward compatibility:
18306238104Sdesac_top_builddir=$ac_top_build_prefix
18307238104Sdes
18308238104Sdescase $srcdir in
18309238104Sdes  .)  # We are building in place.
18310238104Sdes    ac_srcdir=.
18311238104Sdes    ac_top_srcdir=$ac_top_builddir_sub
18312238104Sdes    ac_abs_top_srcdir=$ac_pwd ;;
18313238104Sdes  [\\/]* | ?:[\\/]* )  # Absolute name.
18314238104Sdes    ac_srcdir=$srcdir$ac_dir_suffix;
18315238104Sdes    ac_top_srcdir=$srcdir
18316238104Sdes    ac_abs_top_srcdir=$srcdir ;;
18317238104Sdes  *) # Relative name.
18318238104Sdes    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18319238104Sdes    ac_top_srcdir=$ac_top_build_prefix$srcdir
18320238104Sdes    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18321238104Sdesesac
18322238104Sdesac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18323238104Sdes
18324238104Sdes
18325238104Sdes  case $ac_mode in
18326238104Sdes  :F)
18327238104Sdes  #
18328238104Sdes  # CONFIG_FILE
18329238104Sdes  #
18330238104Sdes
18331238104Sdes_ACEOF
18332238104Sdes
18333238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334238104Sdes# If the template does not know about datarootdir, expand it.
18335238104Sdes# FIXME: This hack should be removed a few years after 2.60.
18336238104Sdesac_datarootdir_hack=; ac_datarootdir_seen=
18337238104Sdesac_sed_dataroot='
18338238104Sdes/datarootdir/ {
18339238104Sdes  p
18340238104Sdes  q
18341238104Sdes}
18342238104Sdes/@datadir@/p
18343238104Sdes/@docdir@/p
18344238104Sdes/@infodir@/p
18345238104Sdes/@localedir@/p
18346238104Sdes/@mandir@/p'
18347238104Sdescase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18348238104Sdes*datarootdir*) ac_datarootdir_seen=yes;;
18349238104Sdes*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18350238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18351238104Sdes$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18352238104Sdes_ACEOF
18353238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18354238104Sdes  ac_datarootdir_hack='
18355238104Sdes  s&@datadir@&$datadir&g
18356238104Sdes  s&@docdir@&$docdir&g
18357238104Sdes  s&@infodir@&$infodir&g
18358238104Sdes  s&@localedir@&$localedir&g
18359238104Sdes  s&@mandir@&$mandir&g
18360238104Sdes  s&\\\${datarootdir}&$datarootdir&g' ;;
18361238104Sdesesac
18362238104Sdes_ACEOF
18363238104Sdes
18364238104Sdes# Neutralize VPATH when `$srcdir' = `.'.
18365238104Sdes# Shell code in configure.ac might set extrasub.
18366238104Sdes# FIXME: do we really want to maintain this feature?
18367238104Sdescat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18368238104Sdesac_sed_extra="$ac_vpsub
18369238104Sdes$extrasub
18370238104Sdes_ACEOF
18371238104Sdescat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18372238104Sdes:t
18373238104Sdes/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18374238104Sdess|@configure_input@|$ac_sed_conf_input|;t t
18375238104Sdess&@top_builddir@&$ac_top_builddir_sub&;t t
18376238104Sdess&@top_build_prefix@&$ac_top_build_prefix&;t t
18377238104Sdess&@srcdir@&$ac_srcdir&;t t
18378238104Sdess&@abs_srcdir@&$ac_abs_srcdir&;t t
18379238104Sdess&@top_srcdir@&$ac_top_srcdir&;t t
18380238104Sdess&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18381238104Sdess&@builddir@&$ac_builddir&;t t
18382238104Sdess&@abs_builddir@&$ac_abs_builddir&;t t
18383238104Sdess&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18384238104Sdes$ac_datarootdir_hack
18385238104Sdes"
18386238104Sdeseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18387238104Sdes  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18388238104Sdes
18389238104Sdestest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18390238104Sdes  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18391238104Sdes  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18392238104Sdes      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18393238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18394238104Sdeswhich seems to be undefined.  Please make sure it is defined" >&5
18395238104Sdes$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18396238104Sdeswhich seems to be undefined.  Please make sure it is defined" >&2;}
18397238104Sdes
18398238104Sdes  rm -f "$ac_tmp/stdin"
18399238104Sdes  case $ac_file in
18400238104Sdes  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18401238104Sdes  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18402238104Sdes  esac \
18403238104Sdes  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18404238104Sdes ;;
18405238104Sdes  :H)
18406238104Sdes  #
18407238104Sdes  # CONFIG_HEADER
18408238104Sdes  #
18409238104Sdes  if test x"$ac_file" != x-; then
18410238104Sdes    {
18411238104Sdes      $as_echo "/* $configure_input  */" \
18412238104Sdes      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18413238104Sdes    } >"$ac_tmp/config.h" \
18414238104Sdes      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18415238104Sdes    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18416238104Sdes      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18417238104Sdes$as_echo "$as_me: $ac_file is unchanged" >&6;}
18418238104Sdes    else
18419238104Sdes      rm -f "$ac_file"
18420238104Sdes      mv "$ac_tmp/config.h" "$ac_file" \
18421238104Sdes	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18422238104Sdes    fi
18423238104Sdes  else
18424238104Sdes    $as_echo "/* $configure_input  */" \
18425238104Sdes      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18426238104Sdes      || as_fn_error $? "could not create -" "$LINENO" 5
18427238104Sdes  fi
18428238104Sdes ;;
18429238104Sdes
18430238104Sdes  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18431238104Sdes$as_echo "$as_me: executing $ac_file commands" >&6;}
18432238104Sdes ;;
18433238104Sdes  esac
18434238104Sdes
18435238104Sdes
18436238104Sdes  case $ac_file$ac_mode in
18437238104Sdes    "libtool":C)
18438238104Sdes
18439238104Sdes    # See if we are running on zsh, and set the options which allow our
18440238104Sdes    # commands through without removal of \ escapes.
18441238104Sdes    if test -n "${ZSH_VERSION+set}" ; then
18442238104Sdes      setopt NO_GLOB_SUBST
18443238104Sdes    fi
18444238104Sdes
18445238104Sdes    cfgfile="${ofile}T"
18446238104Sdes    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18447238104Sdes    $RM "$cfgfile"
18448238104Sdes
18449238104Sdes    cat <<_LT_EOF >> "$cfgfile"
18450238104Sdes#! $SHELL
18451238104Sdes
18452238104Sdes# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18453238104Sdes# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18454238104Sdes# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18455238104Sdes# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18456238104Sdes#
18457238104Sdes#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18458238104Sdes#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18459238104Sdes#                 Foundation, Inc.
18460238104Sdes#   Written by Gordon Matzigkeit, 1996
18461238104Sdes#
18462238104Sdes#   This file is part of GNU Libtool.
18463238104Sdes#
18464238104Sdes# GNU Libtool is free software; you can redistribute it and/or
18465238104Sdes# modify it under the terms of the GNU General Public License as
18466238104Sdes# published by the Free Software Foundation; either version 2 of
18467238104Sdes# the License, or (at your option) any later version.
18468238104Sdes#
18469238104Sdes# As a special exception to the GNU General Public License,
18470238104Sdes# if you distribute this file as part of a program or library that
18471238104Sdes# is built using GNU Libtool, you may include this file under the
18472238104Sdes# same distribution terms that you use for the rest of that program.
18473238104Sdes#
18474238104Sdes# GNU Libtool is distributed in the hope that it will be useful,
18475238104Sdes# but WITHOUT ANY WARRANTY; without even the implied warranty of
18476238104Sdes# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18477238104Sdes# GNU General Public License for more details.
18478238104Sdes#
18479238104Sdes# You should have received a copy of the GNU General Public License
18480238104Sdes# along with GNU Libtool; see the file COPYING.  If not, a copy
18481238104Sdes# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18482238104Sdes# obtained by writing to the Free Software Foundation, Inc.,
18483238104Sdes# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18484238104Sdes
18485238104Sdes
18486238104Sdes# The names of the tagged configurations supported by this script.
18487238104Sdesavailable_tags=""
18488238104Sdes
18489238104Sdes# ### BEGIN LIBTOOL CONFIG
18490238104Sdes
18491238104Sdes# Which release of libtool.m4 was used?
18492238104Sdesmacro_version=$macro_version
18493238104Sdesmacro_revision=$macro_revision
18494238104Sdes
18495238104Sdes# Whether or not to build shared libraries.
18496238104Sdesbuild_libtool_libs=$enable_shared
18497238104Sdes
18498238104Sdes# Whether or not to build static libraries.
18499238104Sdesbuild_old_libs=$enable_static
18500238104Sdes
18501238104Sdes# What type of objects to build.
18502238104Sdespic_mode=$pic_mode
18503238104Sdes
18504238104Sdes# Whether or not to optimize for fast installation.
18505238104Sdesfast_install=$enable_fast_install
18506238104Sdes
18507238104Sdes# Shell to use when invoking shell scripts.
18508238104SdesSHELL=$lt_SHELL
18509238104Sdes
18510238104Sdes# An echo program that protects backslashes.
18511238104SdesECHO=$lt_ECHO
18512238104Sdes
18513238104Sdes# The PATH separator for the build system.
18514238104SdesPATH_SEPARATOR=$lt_PATH_SEPARATOR
18515238104Sdes
18516238104Sdes# The host system.
18517238104Sdeshost_alias=$host_alias
18518238104Sdeshost=$host
18519238104Sdeshost_os=$host_os
18520238104Sdes
18521238104Sdes# The build system.
18522238104Sdesbuild_alias=$build_alias
18523238104Sdesbuild=$build
18524238104Sdesbuild_os=$build_os
18525238104Sdes
18526238104Sdes# A sed program that does not truncate output.
18527238104SdesSED=$lt_SED
18528238104Sdes
18529238104Sdes# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18530238104SdesXsed="\$SED -e 1s/^X//"
18531238104Sdes
18532238104Sdes# A grep program that handles long lines.
18533238104SdesGREP=$lt_GREP
18534238104Sdes
18535238104Sdes# An ERE matcher.
18536238104SdesEGREP=$lt_EGREP
18537238104Sdes
18538238104Sdes# A literal string matcher.
18539238104SdesFGREP=$lt_FGREP
18540238104Sdes
18541238104Sdes# A BSD- or MS-compatible name lister.
18542238104SdesNM=$lt_NM
18543238104Sdes
18544238104Sdes# Whether we need soft or hard links.
18545238104SdesLN_S=$lt_LN_S
18546238104Sdes
18547238104Sdes# What is the maximum length of a command?
18548238104Sdesmax_cmd_len=$max_cmd_len
18549238104Sdes
18550238104Sdes# Object file suffix (normally "o").
18551238104Sdesobjext=$ac_objext
18552238104Sdes
18553238104Sdes# Executable file suffix (normally "").
18554238104Sdesexeext=$exeext
18555238104Sdes
18556238104Sdes# whether the shell understands "unset".
18557238104Sdeslt_unset=$lt_unset
18558238104Sdes
18559238104Sdes# turn spaces into newlines.
18560238104SdesSP2NL=$lt_lt_SP2NL
18561238104Sdes
18562238104Sdes# turn newlines into spaces.
18563238104SdesNL2SP=$lt_lt_NL2SP
18564238104Sdes
18565238104Sdes# convert \$build file names to \$host format.
18566238104Sdesto_host_file_cmd=$lt_cv_to_host_file_cmd
18567238104Sdes
18568238104Sdes# convert \$build files to toolchain format.
18569238104Sdesto_tool_file_cmd=$lt_cv_to_tool_file_cmd
18570238104Sdes
18571238104Sdes# An object symbol dumper.
18572238104SdesOBJDUMP=$lt_OBJDUMP
18573238104Sdes
18574238104Sdes# Method to check whether dependent libraries are shared objects.
18575238104Sdesdeplibs_check_method=$lt_deplibs_check_method
18576238104Sdes
18577238104Sdes# Command to use when deplibs_check_method = "file_magic".
18578238104Sdesfile_magic_cmd=$lt_file_magic_cmd
18579238104Sdes
18580238104Sdes# How to find potential files when deplibs_check_method = "file_magic".
18581238104Sdesfile_magic_glob=$lt_file_magic_glob
18582238104Sdes
18583238104Sdes# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18584238104Sdeswant_nocaseglob=$lt_want_nocaseglob
18585238104Sdes
18586238104Sdes# DLL creation program.
18587238104SdesDLLTOOL=$lt_DLLTOOL
18588238104Sdes
18589238104Sdes# Command to associate shared and link libraries.
18590238104Sdessharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18591238104Sdes
18592238104Sdes# The archiver.
18593238104SdesAR=$lt_AR
18594238104Sdes
18595238104Sdes# Flags to create an archive.
18596238104SdesAR_FLAGS=$lt_AR_FLAGS
18597238104Sdes
18598238104Sdes# How to feed a file listing to the archiver.
18599238104Sdesarchiver_list_spec=$lt_archiver_list_spec
18600238104Sdes
18601238104Sdes# A symbol stripping program.
18602238104SdesSTRIP=$lt_STRIP
18603238104Sdes
18604238104Sdes# Commands used to install an old-style archive.
18605238104SdesRANLIB=$lt_RANLIB
18606238104Sdesold_postinstall_cmds=$lt_old_postinstall_cmds
18607238104Sdesold_postuninstall_cmds=$lt_old_postuninstall_cmds
18608238104Sdes
18609238104Sdes# Whether to use a lock for old archive extraction.
18610238104Sdeslock_old_archive_extraction=$lock_old_archive_extraction
18611238104Sdes
18612238104Sdes# A C compiler.
18613238104SdesLTCC=$lt_CC
18614238104Sdes
18615238104Sdes# LTCC compiler flags.
18616238104SdesLTCFLAGS=$lt_CFLAGS
18617238104Sdes
18618238104Sdes# Take the output of nm and produce a listing of raw symbols and C names.
18619238104Sdesglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18620238104Sdes
18621238104Sdes# Transform the output of nm in a proper C declaration.
18622238104Sdesglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18623238104Sdes
18624238104Sdes# Transform the output of nm in a C name address pair.
18625238104Sdesglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18626238104Sdes
18627238104Sdes# Transform the output of nm in a C name address pair when lib prefix is needed.
18628238104Sdesglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18629238104Sdes
18630238104Sdes# Specify filename containing input files for \$NM.
18631238104Sdesnm_file_list_spec=$lt_nm_file_list_spec
18632238104Sdes
18633238104Sdes# The root where to search for dependent libraries,and in which our libraries should be installed.
18634238104Sdeslt_sysroot=$lt_sysroot
18635238104Sdes
18636238104Sdes# The name of the directory that contains temporary libtool files.
18637238104Sdesobjdir=$objdir
18638238104Sdes
18639238104Sdes# Used to examine libraries when file_magic_cmd begins with "file".
18640238104SdesMAGIC_CMD=$MAGIC_CMD
18641238104Sdes
18642238104Sdes# Must we lock files when doing compilation?
18643238104Sdesneed_locks=$lt_need_locks
18644238104Sdes
18645238104Sdes# Manifest tool.
18646238104SdesMANIFEST_TOOL=$lt_MANIFEST_TOOL
18647238104Sdes
18648238104Sdes# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18649238104SdesDSYMUTIL=$lt_DSYMUTIL
18650238104Sdes
18651238104Sdes# Tool to change global to local symbols on Mac OS X.
18652238104SdesNMEDIT=$lt_NMEDIT
18653238104Sdes
18654238104Sdes# Tool to manipulate fat objects and archives on Mac OS X.
18655238104SdesLIPO=$lt_LIPO
18656238104Sdes
18657238104Sdes# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18658238104SdesOTOOL=$lt_OTOOL
18659238104Sdes
18660238104Sdes# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18661238104SdesOTOOL64=$lt_OTOOL64
18662238104Sdes
18663238104Sdes# Old archive suffix (normally "a").
18664238104Sdeslibext=$libext
18665238104Sdes
18666238104Sdes# Shared library suffix (normally ".so").
18667238104Sdesshrext_cmds=$lt_shrext_cmds
18668238104Sdes
18669238104Sdes# The commands to extract the exported symbol list from a shared archive.
18670238104Sdesextract_expsyms_cmds=$lt_extract_expsyms_cmds
18671238104Sdes
18672238104Sdes# Variables whose values should be saved in libtool wrapper scripts and
18673238104Sdes# restored at link time.
18674238104Sdesvariables_saved_for_relink=$lt_variables_saved_for_relink
18675238104Sdes
18676238104Sdes# Do we need the "lib" prefix for modules?
18677238104Sdesneed_lib_prefix=$need_lib_prefix
18678238104Sdes
18679238104Sdes# Do we need a version for libraries?
18680238104Sdesneed_version=$need_version
18681238104Sdes
18682238104Sdes# Library versioning type.
18683238104Sdesversion_type=$version_type
18684238104Sdes
18685238104Sdes# Shared library runtime path variable.
18686238104Sdesrunpath_var=$runpath_var
18687238104Sdes
18688238104Sdes# Shared library path variable.
18689238104Sdesshlibpath_var=$shlibpath_var
18690238104Sdes
18691238104Sdes# Is shlibpath searched before the hard-coded library search path?
18692238104Sdesshlibpath_overrides_runpath=$shlibpath_overrides_runpath
18693238104Sdes
18694238104Sdes# Format of library name prefix.
18695238104Sdeslibname_spec=$lt_libname_spec
18696238104Sdes
18697238104Sdes# List of archive names.  First name is the real one, the rest are links.
18698238104Sdes# The last name is the one that the linker finds with -lNAME
18699238104Sdeslibrary_names_spec=$lt_library_names_spec
18700238104Sdes
18701238104Sdes# The coded name of the library, if different from the real name.
18702238104Sdessoname_spec=$lt_soname_spec
18703238104Sdes
18704238104Sdes# Permission mode override for installation of shared libraries.
18705238104Sdesinstall_override_mode=$lt_install_override_mode
18706238104Sdes
18707238104Sdes# Command to use after installation of a shared archive.
18708238104Sdespostinstall_cmds=$lt_postinstall_cmds
18709238104Sdes
18710238104Sdes# Command to use after uninstallation of a shared archive.
18711238104Sdespostuninstall_cmds=$lt_postuninstall_cmds
18712238104Sdes
18713238104Sdes# Commands used to finish a libtool library installation in a directory.
18714238104Sdesfinish_cmds=$lt_finish_cmds
18715238104Sdes
18716238104Sdes# As "finish_cmds", except a single script fragment to be evaled but
18717238104Sdes# not shown.
18718238104Sdesfinish_eval=$lt_finish_eval
18719238104Sdes
18720238104Sdes# Whether we should hardcode library paths into libraries.
18721238104Sdeshardcode_into_libs=$hardcode_into_libs
18722238104Sdes
18723238104Sdes# Compile-time system search path for libraries.
18724238104Sdessys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18725238104Sdes
18726238104Sdes# Run-time system search path for libraries.
18727238104Sdessys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18728238104Sdes
18729238104Sdes# Whether dlopen is supported.
18730238104Sdesdlopen_support=$enable_dlopen
18731238104Sdes
18732238104Sdes# Whether dlopen of programs is supported.
18733238104Sdesdlopen_self=$enable_dlopen_self
18734238104Sdes
18735238104Sdes# Whether dlopen of statically linked programs is supported.
18736238104Sdesdlopen_self_static=$enable_dlopen_self_static
18737238104Sdes
18738238104Sdes# Commands to strip libraries.
18739238104Sdesold_striplib=$lt_old_striplib
18740238104Sdesstriplib=$lt_striplib
18741238104Sdes
18742238104Sdes
18743238104Sdes# The linker used to build libraries.
18744238104SdesLD=$lt_LD
18745238104Sdes
18746238104Sdes# How to create reloadable object files.
18747238104Sdesreload_flag=$lt_reload_flag
18748238104Sdesreload_cmds=$lt_reload_cmds
18749238104Sdes
18750238104Sdes# Commands used to build an old-style archive.
18751238104Sdesold_archive_cmds=$lt_old_archive_cmds
18752238104Sdes
18753238104Sdes# A language specific compiler.
18754238104SdesCC=$lt_compiler
18755238104Sdes
18756238104Sdes# Is the compiler the GNU compiler?
18757238104Sdeswith_gcc=$GCC
18758238104Sdes
18759238104Sdes# Compiler flag to turn off builtin functions.
18760238104Sdesno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18761238104Sdes
18762238104Sdes# Additional compiler flags for building library objects.
18763238104Sdespic_flag=$lt_lt_prog_compiler_pic
18764238104Sdes
18765238104Sdes# How to pass a linker flag through the compiler.
18766238104Sdeswl=$lt_lt_prog_compiler_wl
18767238104Sdes
18768238104Sdes# Compiler flag to prevent dynamic linking.
18769238104Sdeslink_static_flag=$lt_lt_prog_compiler_static
18770238104Sdes
18771238104Sdes# Does compiler simultaneously support -c and -o options?
18772238104Sdescompiler_c_o=$lt_lt_cv_prog_compiler_c_o
18773238104Sdes
18774238104Sdes# Whether or not to add -lc for building shared libraries.
18775238104Sdesbuild_libtool_need_lc=$archive_cmds_need_lc
18776238104Sdes
18777238104Sdes# Whether or not to disallow shared libs when runtime libs are static.
18778238104Sdesallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18779238104Sdes
18780238104Sdes# Compiler flag to allow reflexive dlopens.
18781238104Sdesexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18782238104Sdes
18783238104Sdes# Compiler flag to generate shared objects directly from archives.
18784238104Sdeswhole_archive_flag_spec=$lt_whole_archive_flag_spec
18785238104Sdes
18786238104Sdes# Whether the compiler copes with passing no objects directly.
18787238104Sdescompiler_needs_object=$lt_compiler_needs_object
18788238104Sdes
18789238104Sdes# Create an old-style archive from a shared archive.
18790238104Sdesold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18791238104Sdes
18792238104Sdes# Create a temporary old-style archive to link instead of a shared archive.
18793238104Sdesold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18794238104Sdes
18795238104Sdes# Commands used to build a shared archive.
18796238104Sdesarchive_cmds=$lt_archive_cmds
18797238104Sdesarchive_expsym_cmds=$lt_archive_expsym_cmds
18798238104Sdes
18799238104Sdes# Commands used to build a loadable module if different from building
18800238104Sdes# a shared archive.
18801238104Sdesmodule_cmds=$lt_module_cmds
18802238104Sdesmodule_expsym_cmds=$lt_module_expsym_cmds
18803238104Sdes
18804238104Sdes# Whether we are building with GNU ld or not.
18805238104Sdeswith_gnu_ld=$lt_with_gnu_ld
18806238104Sdes
18807238104Sdes# Flag that allows shared libraries with undefined symbols to be built.
18808238104Sdesallow_undefined_flag=$lt_allow_undefined_flag
18809238104Sdes
18810238104Sdes# Flag that enforces no undefined symbols.
18811238104Sdesno_undefined_flag=$lt_no_undefined_flag
18812238104Sdes
18813238104Sdes# Flag to hardcode \$libdir into a binary during linking.
18814238104Sdes# This must work even if \$libdir does not exist
18815238104Sdeshardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18816238104Sdes
18817238104Sdes# Whether we need a single "-rpath" flag with a separated argument.
18818238104Sdeshardcode_libdir_separator=$lt_hardcode_libdir_separator
18819238104Sdes
18820238104Sdes# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18821238104Sdes# DIR into the resulting binary.
18822238104Sdeshardcode_direct=$hardcode_direct
18823238104Sdes
18824238104Sdes# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18825238104Sdes# DIR into the resulting binary and the resulting library dependency is
18826238104Sdes# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18827238104Sdes# library is relocated.
18828238104Sdeshardcode_direct_absolute=$hardcode_direct_absolute
18829238104Sdes
18830238104Sdes# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18831238104Sdes# into the resulting binary.
18832238104Sdeshardcode_minus_L=$hardcode_minus_L
18833238104Sdes
18834238104Sdes# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18835238104Sdes# into the resulting binary.
18836238104Sdeshardcode_shlibpath_var=$hardcode_shlibpath_var
18837238104Sdes
18838238104Sdes# Set to "yes" if building a shared library automatically hardcodes DIR
18839238104Sdes# into the library and all subsequent libraries and executables linked
18840238104Sdes# against it.
18841238104Sdeshardcode_automatic=$hardcode_automatic
18842238104Sdes
18843238104Sdes# Set to yes if linker adds runtime paths of dependent libraries
18844238104Sdes# to runtime path list.
18845238104Sdesinherit_rpath=$inherit_rpath
18846238104Sdes
18847238104Sdes# Whether libtool must link a program against all its dependency libraries.
18848238104Sdeslink_all_deplibs=$link_all_deplibs
18849238104Sdes
18850238104Sdes# Set to "yes" if exported symbols are required.
18851238104Sdesalways_export_symbols=$always_export_symbols
18852238104Sdes
18853238104Sdes# The commands to list exported symbols.
18854238104Sdesexport_symbols_cmds=$lt_export_symbols_cmds
18855238104Sdes
18856238104Sdes# Symbols that should not be listed in the preloaded symbols.
18857238104Sdesexclude_expsyms=$lt_exclude_expsyms
18858238104Sdes
18859238104Sdes# Symbols that must always be exported.
18860238104Sdesinclude_expsyms=$lt_include_expsyms
18861238104Sdes
18862238104Sdes# Commands necessary for linking programs (against libraries) with templates.
18863238104Sdesprelink_cmds=$lt_prelink_cmds
18864238104Sdes
18865238104Sdes# Commands necessary for finishing linking programs.
18866238104Sdespostlink_cmds=$lt_postlink_cmds
18867238104Sdes
18868238104Sdes# Specify filename containing input files.
18869238104Sdesfile_list_spec=$lt_file_list_spec
18870238104Sdes
18871238104Sdes# How to hardcode a shared library path into an executable.
18872238104Sdeshardcode_action=$hardcode_action
18873238104Sdes
18874238104Sdes# ### END LIBTOOL CONFIG
18875238104Sdes
18876238104Sdes_LT_EOF
18877238104Sdes
18878238104Sdes  case $host_os in
18879238104Sdes  aix3*)
18880238104Sdes    cat <<\_LT_EOF >> "$cfgfile"
18881238104Sdes# AIX sometimes has problems with the GCC collect2 program.  For some
18882238104Sdes# reason, if we set the COLLECT_NAMES environment variable, the problems
18883238104Sdes# vanish in a puff of smoke.
18884238104Sdesif test "X${COLLECT_NAMES+set}" != Xset; then
18885238104Sdes  COLLECT_NAMES=
18886238104Sdes  export COLLECT_NAMES
18887238104Sdesfi
18888238104Sdes_LT_EOF
18889238104Sdes    ;;
18890238104Sdes  esac
18891238104Sdes
18892238104Sdes
18893238104Sdesltmain="$ac_aux_dir/ltmain.sh"
18894238104Sdes
18895238104Sdes
18896238104Sdes  # We use sed instead of cat because bash on DJGPP gets confused if
18897238104Sdes  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18898238104Sdes  # text mode, it properly converts lines to CR/LF.  This bash problem
18899238104Sdes  # is reportedly fixed, but why not run on old versions too?
18900238104Sdes  sed '$q' "$ltmain" >> "$cfgfile" \
18901238104Sdes     || (rm -f "$cfgfile"; exit 1)
18902238104Sdes
18903238104Sdes  if test x"$xsi_shell" = xyes; then
18904238104Sdes  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18905238104Sdesfunc_dirname ()\
18906238104Sdes{\
18907238104Sdes\    case ${1} in\
18908238104Sdes\      */*) func_dirname_result="${1%/*}${2}" ;;\
18909238104Sdes\      *  ) func_dirname_result="${3}" ;;\
18910238104Sdes\    esac\
18911238104Sdes} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18912238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18913238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18914238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18915238104Sdes
18916238104Sdes
18917238104Sdes  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18918238104Sdesfunc_basename ()\
18919238104Sdes{\
18920238104Sdes\    func_basename_result="${1##*/}"\
18921238104Sdes} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18922238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18923238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18924238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18925238104Sdes
18926238104Sdes
18927238104Sdes  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18928238104Sdesfunc_dirname_and_basename ()\
18929238104Sdes{\
18930238104Sdes\    case ${1} in\
18931238104Sdes\      */*) func_dirname_result="${1%/*}${2}" ;;\
18932238104Sdes\      *  ) func_dirname_result="${3}" ;;\
18933238104Sdes\    esac\
18934238104Sdes\    func_basename_result="${1##*/}"\
18935238104Sdes} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18936238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18937238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18938238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18939238104Sdes
18940238104Sdes
18941238104Sdes  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18942238104Sdesfunc_stripname ()\
18943238104Sdes{\
18944238104Sdes\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18945238104Sdes\    # positional parameters, so assign one to ordinary parameter first.\
18946238104Sdes\    func_stripname_result=${3}\
18947238104Sdes\    func_stripname_result=${func_stripname_result#"${1}"}\
18948238104Sdes\    func_stripname_result=${func_stripname_result%"${2}"}\
18949238104Sdes} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18950238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18951238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18952238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18953238104Sdes
18954238104Sdes
18955238104Sdes  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18956238104Sdesfunc_split_long_opt ()\
18957238104Sdes{\
18958238104Sdes\    func_split_long_opt_name=${1%%=*}\
18959238104Sdes\    func_split_long_opt_arg=${1#*=}\
18960238104Sdes} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18961238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18962238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18963238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18964238104Sdes
18965238104Sdes
18966238104Sdes  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18967238104Sdesfunc_split_short_opt ()\
18968238104Sdes{\
18969238104Sdes\    func_split_short_opt_arg=${1#??}\
18970238104Sdes\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18971238104Sdes} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18972238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18973238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18974238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18975238104Sdes
18976238104Sdes
18977238104Sdes  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18978238104Sdesfunc_lo2o ()\
18979238104Sdes{\
18980238104Sdes\    case ${1} in\
18981238104Sdes\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18982238104Sdes\      *)    func_lo2o_result=${1} ;;\
18983238104Sdes\    esac\
18984238104Sdes} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18985238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18986238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18987238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18988238104Sdes
18989238104Sdes
18990238104Sdes  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18991238104Sdesfunc_xform ()\
18992238104Sdes{\
18993238104Sdes    func_xform_result=${1%.*}.lo\
18994238104Sdes} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18995238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
18996238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18997238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
18998238104Sdes
18999238104Sdes
19000238104Sdes  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19001238104Sdesfunc_arith ()\
19002238104Sdes{\
19003238104Sdes    func_arith_result=$(( $* ))\
19004238104Sdes} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19005238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
19006238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19007238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
19008238104Sdes
19009238104Sdes
19010238104Sdes  sed -e '/^func_len ()$/,/^} # func_len /c\
19011238104Sdesfunc_len ()\
19012238104Sdes{\
19013238104Sdes    func_len_result=${#1}\
19014238104Sdes} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19015238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
19016238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19017238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
19018238104Sdes
19019238104Sdesfi
19020238104Sdes
19021238104Sdesif test x"$lt_shell_append" = xyes; then
19022238104Sdes  sed -e '/^func_append ()$/,/^} # func_append /c\
19023238104Sdesfunc_append ()\
19024238104Sdes{\
19025238104Sdes    eval "${1}+=\\${2}"\
19026238104Sdes} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19027238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
19028238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19029238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
19030238104Sdes
19031238104Sdes
19032238104Sdes  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19033238104Sdesfunc_append_quoted ()\
19034238104Sdes{\
19035238104Sdes\    func_quote_for_eval "${2}"\
19036238104Sdes\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19037238104Sdes} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19038238104Sdes  && mv -f "$cfgfile.tmp" "$cfgfile" \
19039238104Sdes    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19040238104Sdestest 0 -eq $? || _lt_function_replace_fail=:
19041238104Sdes
19042238104Sdes
19043238104Sdes  # Save a `func_append' function call where possible by direct use of '+='
19044238104Sdes  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19045238104Sdes    && mv -f "$cfgfile.tmp" "$cfgfile" \
19046238104Sdes      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047238104Sdes  test 0 -eq $? || _lt_function_replace_fail=:
19048238104Sdeselse
19049238104Sdes  # Save a `func_append' function call even when '+=' is not available
19050238104Sdes  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19051238104Sdes    && mv -f "$cfgfile.tmp" "$cfgfile" \
19052238104Sdes      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19053238104Sdes  test 0 -eq $? || _lt_function_replace_fail=:
19054238104Sdesfi
19055238104Sdes
19056238104Sdesif test x"$_lt_function_replace_fail" = x":"; then
19057238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19058238104Sdes$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19059238104Sdesfi
19060238104Sdes
19061238104Sdes
19062238104Sdes   mv -f "$cfgfile" "$ofile" ||
19063238104Sdes    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19064238104Sdes  chmod +x "$ofile"
19065238104Sdes
19066238104Sdes ;;
19067238104Sdes    "disable-rpath":C)
19068238104Sdes	sed < libtool > libtool-2 \
19069238104Sdes	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
19070238104Sdes	mv libtool-2 libtool
19071238104Sdes	chmod 755 libtool
19072238104Sdes	libtool="./libtool"
19073238104Sdes	 ;;
19074238104Sdes
19075238104Sdes  esac
19076238104Sdesdone # for ac_tag
19077238104Sdes
19078238104Sdes
19079238104Sdesas_fn_exit 0
19080238104Sdes_ACEOF
19081238104Sdesac_clean_files=$ac_clean_files_save
19082238104Sdes
19083238104Sdestest $ac_write_fail = 0 ||
19084238104Sdes  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19085238104Sdes
19086238104Sdes
19087238104Sdes# configure is writing to config.log, and then calls config.status.
19088238104Sdes# config.status does its own redirection, appending to config.log.
19089238104Sdes# Unfortunately, on DOS this fails, as config.log is still kept open
19090238104Sdes# by configure, so config.status won't be able to write to it; its
19091238104Sdes# output is simply discarded.  So we exec the FD to /dev/null,
19092238104Sdes# effectively closing config.log, so it can be properly (re)opened and
19093238104Sdes# appended to by config.status.  When coming back to configure, we
19094238104Sdes# need to make the FD available again.
19095238104Sdesif test "$no_create" != yes; then
19096238104Sdes  ac_cs_success=:
19097238104Sdes  ac_config_status_args=
19098238104Sdes  test "$silent" = yes &&
19099238104Sdes    ac_config_status_args="$ac_config_status_args --quiet"
19100238104Sdes  exec 5>/dev/null
19101238104Sdes  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19102238104Sdes  exec 5>>config.log
19103238104Sdes  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19104238104Sdes  # would make configure fail if this is the last instruction.
19105238104Sdes  $ac_cs_success || as_fn_exit 1
19106238104Sdesfi
19107238104Sdesif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19108238104Sdes  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19109238104Sdes$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19110238104Sdesfi
19111238104Sdes
19112238104Sdes
19113238104Sdesecho "copying header files"
19114238104Sdes
19115238104Sdesfor file in $srcdir/ldns//*.h; do
19116238104Sdes	sh $srcdir/install-sh -m 644 $file ldns/
19117238104Sdesdone
19118238104Sdes
19119238104Sdes
19120238104Sdes
19121238104Sdes
19122238104Sdes
19123