1290001Sglebius#! /bin/sh
2290001Sglebius# Guess values for system-dependent variables and create Makefiles.
3290001Sglebius# Generated by GNU Autoconf 2.69 for libevent 2.1.5-beta.
4290001Sglebius#
5290001Sglebius#
6290001Sglebius# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7290001Sglebius#
8290001Sglebius#
9290001Sglebius# This configure script is free software; the Free Software Foundation
10290001Sglebius# gives unlimited permission to copy, distribute and modify it.
11290001Sglebius## -------------------- ##
12290001Sglebius## M4sh Initialization. ##
13290001Sglebius## -------------------- ##
14290001Sglebius
15290001Sglebius# Be more Bourne compatible
16290001SglebiusDUALCASE=1; export DUALCASE # for MKS sh
17290001Sglebiusif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18290001Sglebius  emulate sh
19290001Sglebius  NULLCMD=:
20290001Sglebius  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21290001Sglebius  # is contrary to our usage.  Disable this feature.
22290001Sglebius  alias -g '${1+"$@"}'='"$@"'
23290001Sglebius  setopt NO_GLOB_SUBST
24290001Sglebiuselse
25290001Sglebius  case `(set -o) 2>/dev/null` in #(
26290001Sglebius  *posix*) :
27290001Sglebius    set -o posix ;; #(
28290001Sglebius  *) :
29290001Sglebius     ;;
30290001Sglebiusesac
31290001Sglebiusfi
32290001Sglebius
33290001Sglebius
34290001Sglebiusas_nl='
35290001Sglebius'
36290001Sglebiusexport as_nl
37290001Sglebius# Printing a long string crashes Solaris 7 /usr/bin/printf.
38290001Sglebiusas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39290001Sglebiusas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40290001Sglebiusas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41290001Sglebius# Prefer a ksh shell builtin over an external printf program on Solaris,
42290001Sglebius# but without wasting forks for bash or zsh.
43290001Sglebiusif test -z "$BASH_VERSION$ZSH_VERSION" \
44290001Sglebius    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45290001Sglebius  as_echo='print -r --'
46290001Sglebius  as_echo_n='print -rn --'
47290001Sglebiuselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48290001Sglebius  as_echo='printf %s\n'
49290001Sglebius  as_echo_n='printf %s'
50290001Sglebiuselse
51290001Sglebius  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52290001Sglebius    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53290001Sglebius    as_echo_n='/usr/ucb/echo -n'
54290001Sglebius  else
55290001Sglebius    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56290001Sglebius    as_echo_n_body='eval
57290001Sglebius      arg=$1;
58290001Sglebius      case $arg in #(
59290001Sglebius      *"$as_nl"*)
60290001Sglebius	expr "X$arg" : "X\\(.*\\)$as_nl";
61290001Sglebius	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62290001Sglebius      esac;
63290001Sglebius      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64290001Sglebius    '
65290001Sglebius    export as_echo_n_body
66290001Sglebius    as_echo_n='sh -c $as_echo_n_body as_echo'
67290001Sglebius  fi
68290001Sglebius  export as_echo_body
69290001Sglebius  as_echo='sh -c $as_echo_body as_echo'
70290001Sglebiusfi
71290001Sglebius
72290001Sglebius# The user is always right.
73290001Sglebiusif test "${PATH_SEPARATOR+set}" != set; then
74290001Sglebius  PATH_SEPARATOR=:
75290001Sglebius  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76290001Sglebius    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77290001Sglebius      PATH_SEPARATOR=';'
78290001Sglebius  }
79290001Sglebiusfi
80290001Sglebius
81290001Sglebius
82290001Sglebius# IFS
83290001Sglebius# We need space, tab and new line, in precisely that order.  Quoting is
84290001Sglebius# there to prevent editors from complaining about space-tab.
85290001Sglebius# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86290001Sglebius# splitting by setting IFS to empty value.)
87290001SglebiusIFS=" ""	$as_nl"
88290001Sglebius
89290001Sglebius# Find who we are.  Look in the path if we contain no directory separator.
90290001Sglebiusas_myself=
91290001Sglebiuscase $0 in #((
92290001Sglebius  *[\\/]* ) as_myself=$0 ;;
93290001Sglebius  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94290001Sglebiusfor as_dir in $PATH
95290001Sglebiusdo
96290001Sglebius  IFS=$as_save_IFS
97290001Sglebius  test -z "$as_dir" && as_dir=.
98290001Sglebius    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99290001Sglebius  done
100290001SglebiusIFS=$as_save_IFS
101290001Sglebius
102290001Sglebius     ;;
103290001Sglebiusesac
104290001Sglebius# We did not find ourselves, most probably we were run as `sh COMMAND'
105290001Sglebius# in which case we are not to be found in the path.
106290001Sglebiusif test "x$as_myself" = x; then
107290001Sglebius  as_myself=$0
108290001Sglebiusfi
109290001Sglebiusif test ! -f "$as_myself"; then
110290001Sglebius  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111290001Sglebius  exit 1
112290001Sglebiusfi
113290001Sglebius
114290001Sglebius# Unset variables that we do not need and which cause bugs (e.g. in
115290001Sglebius# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116290001Sglebius# suppresses any "Segmentation fault" message there.  '((' could
117290001Sglebius# trigger a bug in pdksh 5.2.14.
118290001Sglebiusfor as_var in BASH_ENV ENV MAIL MAILPATH
119290001Sglebiusdo eval test x\${$as_var+set} = xset \
120290001Sglebius  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121290001Sglebiusdone
122290001SglebiusPS1='$ '
123290001SglebiusPS2='> '
124290001SglebiusPS4='+ '
125290001Sglebius
126290001Sglebius# NLS nuisances.
127290001SglebiusLC_ALL=C
128290001Sglebiusexport LC_ALL
129290001SglebiusLANGUAGE=C
130290001Sglebiusexport LANGUAGE
131290001Sglebius
132290001Sglebius# CDPATH.
133290001Sglebius(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134290001Sglebius
135290001Sglebius# Use a proper internal environment variable to ensure we don't fall
136290001Sglebius  # into an infinite loop, continuously re-executing ourselves.
137290001Sglebius  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138290001Sglebius    _as_can_reexec=no; export _as_can_reexec;
139290001Sglebius    # We cannot yet assume a decent shell, so we have to provide a
140290001Sglebius# neutralization value for shells without unset; and this also
141290001Sglebius# works around shells that cannot unset nonexistent variables.
142290001Sglebius# Preserve -v and -x to the replacement shell.
143290001SglebiusBASH_ENV=/dev/null
144290001SglebiusENV=/dev/null
145290001Sglebius(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146290001Sglebiuscase $- in # ((((
147290001Sglebius  *v*x* | *x*v* ) as_opts=-vx ;;
148290001Sglebius  *v* ) as_opts=-v ;;
149290001Sglebius  *x* ) as_opts=-x ;;
150290001Sglebius  * ) as_opts= ;;
151290001Sglebiusesac
152290001Sglebiusexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153290001Sglebius# Admittedly, this is quite paranoid, since all the known shells bail
154290001Sglebius# out after a failed `exec'.
155290001Sglebius$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156290001Sglebiusas_fn_exit 255
157290001Sglebius  fi
158290001Sglebius  # We don't want this to propagate to other subprocesses.
159290001Sglebius          { _as_can_reexec=; unset _as_can_reexec;}
160290001Sglebiusif test "x$CONFIG_SHELL" = x; then
161290001Sglebius  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162290001Sglebius  emulate sh
163290001Sglebius  NULLCMD=:
164290001Sglebius  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165290001Sglebius  # is contrary to our usage.  Disable this feature.
166290001Sglebius  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167290001Sglebius  setopt NO_GLOB_SUBST
168290001Sglebiuselse
169290001Sglebius  case \`(set -o) 2>/dev/null\` in #(
170290001Sglebius  *posix*) :
171290001Sglebius    set -o posix ;; #(
172290001Sglebius  *) :
173290001Sglebius     ;;
174290001Sglebiusesac
175290001Sglebiusfi
176290001Sglebius"
177290001Sglebius  as_required="as_fn_return () { (exit \$1); }
178290001Sglebiusas_fn_success () { as_fn_return 0; }
179290001Sglebiusas_fn_failure () { as_fn_return 1; }
180290001Sglebiusas_fn_ret_success () { return 0; }
181290001Sglebiusas_fn_ret_failure () { return 1; }
182290001Sglebius
183290001Sglebiusexitcode=0
184290001Sglebiusas_fn_success || { exitcode=1; echo as_fn_success failed.; }
185290001Sglebiusas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186290001Sglebiusas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187290001Sglebiusas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188290001Sglebiusif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189290001Sglebius
190290001Sglebiuselse
191290001Sglebius  exitcode=1; echo positional parameters were not saved.
192290001Sglebiusfi
193290001Sglebiustest x\$exitcode = x0 || exit 1
194290001Sglebiustest -x / || exit 1"
195290001Sglebius  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196290001Sglebius  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197290001Sglebius  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198290001Sglebius  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199290001Sglebiustest \$(( 1 + 1 )) = 2 || exit 1
200290001Sglebius
201290001Sglebius  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202290001Sglebius    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203290001Sglebius    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204290001Sglebius    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205290001Sglebius    PATH=/empty FPATH=/empty; export PATH FPATH
206290001Sglebius    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207290001Sglebius      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208290001Sglebius  if (eval "$as_required") 2>/dev/null; then :
209290001Sglebius  as_have_required=yes
210290001Sglebiuselse
211290001Sglebius  as_have_required=no
212290001Sglebiusfi
213290001Sglebius  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214290001Sglebius
215290001Sglebiuselse
216290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217290001Sglebiusas_found=false
218290001Sglebiusfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219290001Sglebiusdo
220290001Sglebius  IFS=$as_save_IFS
221290001Sglebius  test -z "$as_dir" && as_dir=.
222290001Sglebius  as_found=:
223290001Sglebius  case $as_dir in #(
224290001Sglebius	 /*)
225290001Sglebius	   for as_base in sh bash ksh sh5; do
226290001Sglebius	     # Try only shells that exist, to save several forks.
227290001Sglebius	     as_shell=$as_dir/$as_base
228290001Sglebius	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229290001Sglebius		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230290001Sglebius  CONFIG_SHELL=$as_shell as_have_required=yes
231290001Sglebius		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232290001Sglebius  break 2
233290001Sglebiusfi
234290001Sglebiusfi
235290001Sglebius	   done;;
236290001Sglebius       esac
237290001Sglebius  as_found=false
238290001Sglebiusdone
239290001Sglebius$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240290001Sglebius	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241290001Sglebius  CONFIG_SHELL=$SHELL as_have_required=yes
242290001Sglebiusfi; }
243290001SglebiusIFS=$as_save_IFS
244290001Sglebius
245290001Sglebius
246290001Sglebius      if test "x$CONFIG_SHELL" != x; then :
247290001Sglebius  export CONFIG_SHELL
248290001Sglebius             # We cannot yet assume a decent shell, so we have to provide a
249290001Sglebius# neutralization value for shells without unset; and this also
250290001Sglebius# works around shells that cannot unset nonexistent variables.
251290001Sglebius# Preserve -v and -x to the replacement shell.
252290001SglebiusBASH_ENV=/dev/null
253290001SglebiusENV=/dev/null
254290001Sglebius(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255290001Sglebiuscase $- in # ((((
256290001Sglebius  *v*x* | *x*v* ) as_opts=-vx ;;
257290001Sglebius  *v* ) as_opts=-v ;;
258290001Sglebius  *x* ) as_opts=-x ;;
259290001Sglebius  * ) as_opts= ;;
260290001Sglebiusesac
261290001Sglebiusexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262290001Sglebius# Admittedly, this is quite paranoid, since all the known shells bail
263290001Sglebius# out after a failed `exec'.
264290001Sglebius$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265290001Sglebiusexit 255
266290001Sglebiusfi
267290001Sglebius
268290001Sglebius    if test x$as_have_required = xno; then :
269290001Sglebius  $as_echo "$0: This script requires a shell more modern than all"
270290001Sglebius  $as_echo "$0: the shells that I found on your system."
271290001Sglebius  if test x${ZSH_VERSION+set} = xset ; then
272290001Sglebius    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273290001Sglebius    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274290001Sglebius  else
275290001Sglebius    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276290001Sglebius$0: including any error possibly output before this
277290001Sglebius$0: message. Then install a modern shell, or manually run
278290001Sglebius$0: the script under such a shell if you do have one."
279290001Sglebius  fi
280290001Sglebius  exit 1
281290001Sglebiusfi
282290001Sglebiusfi
283290001Sglebiusfi
284290001SglebiusSHELL=${CONFIG_SHELL-/bin/sh}
285290001Sglebiusexport SHELL
286290001Sglebius# Unset more variables known to interfere with behavior of common tools.
287290001SglebiusCLICOLOR_FORCE= GREP_OPTIONS=
288290001Sglebiusunset CLICOLOR_FORCE GREP_OPTIONS
289290001Sglebius
290290001Sglebius## --------------------- ##
291290001Sglebius## M4sh Shell Functions. ##
292290001Sglebius## --------------------- ##
293290001Sglebius# as_fn_unset VAR
294290001Sglebius# ---------------
295290001Sglebius# Portably unset VAR.
296290001Sglebiusas_fn_unset ()
297290001Sglebius{
298290001Sglebius  { eval $1=; unset $1;}
299290001Sglebius}
300290001Sglebiusas_unset=as_fn_unset
301290001Sglebius
302290001Sglebius# as_fn_set_status STATUS
303290001Sglebius# -----------------------
304290001Sglebius# Set $? to STATUS, without forking.
305290001Sglebiusas_fn_set_status ()
306290001Sglebius{
307290001Sglebius  return $1
308290001Sglebius} # as_fn_set_status
309290001Sglebius
310290001Sglebius# as_fn_exit STATUS
311290001Sglebius# -----------------
312290001Sglebius# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313290001Sglebiusas_fn_exit ()
314290001Sglebius{
315290001Sglebius  set +e
316290001Sglebius  as_fn_set_status $1
317290001Sglebius  exit $1
318290001Sglebius} # as_fn_exit
319290001Sglebius
320290001Sglebius# as_fn_mkdir_p
321290001Sglebius# -------------
322290001Sglebius# Create "$as_dir" as a directory, including parents if necessary.
323290001Sglebiusas_fn_mkdir_p ()
324290001Sglebius{
325290001Sglebius
326290001Sglebius  case $as_dir in #(
327290001Sglebius  -*) as_dir=./$as_dir;;
328290001Sglebius  esac
329290001Sglebius  test -d "$as_dir" || eval $as_mkdir_p || {
330290001Sglebius    as_dirs=
331290001Sglebius    while :; do
332290001Sglebius      case $as_dir in #(
333290001Sglebius      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334290001Sglebius      *) as_qdir=$as_dir;;
335290001Sglebius      esac
336290001Sglebius      as_dirs="'$as_qdir' $as_dirs"
337290001Sglebius      as_dir=`$as_dirname -- "$as_dir" ||
338290001Sglebius$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339290001Sglebius	 X"$as_dir" : 'X\(//\)[^/]' \| \
340290001Sglebius	 X"$as_dir" : 'X\(//\)$' \| \
341290001Sglebius	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342290001Sglebius$as_echo X"$as_dir" |
343290001Sglebius    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344290001Sglebius	    s//\1/
345290001Sglebius	    q
346290001Sglebius	  }
347290001Sglebius	  /^X\(\/\/\)[^/].*/{
348290001Sglebius	    s//\1/
349290001Sglebius	    q
350290001Sglebius	  }
351290001Sglebius	  /^X\(\/\/\)$/{
352290001Sglebius	    s//\1/
353290001Sglebius	    q
354290001Sglebius	  }
355290001Sglebius	  /^X\(\/\).*/{
356290001Sglebius	    s//\1/
357290001Sglebius	    q
358290001Sglebius	  }
359290001Sglebius	  s/.*/./; q'`
360290001Sglebius      test -d "$as_dir" && break
361290001Sglebius    done
362290001Sglebius    test -z "$as_dirs" || eval "mkdir $as_dirs"
363290001Sglebius  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364290001Sglebius
365290001Sglebius
366290001Sglebius} # as_fn_mkdir_p
367290001Sglebius
368290001Sglebius# as_fn_executable_p FILE
369290001Sglebius# -----------------------
370290001Sglebius# Test if FILE is an executable regular file.
371290001Sglebiusas_fn_executable_p ()
372290001Sglebius{
373290001Sglebius  test -f "$1" && test -x "$1"
374290001Sglebius} # as_fn_executable_p
375290001Sglebius# as_fn_append VAR VALUE
376290001Sglebius# ----------------------
377290001Sglebius# Append the text in VALUE to the end of the definition contained in VAR. Take
378290001Sglebius# advantage of any shell optimizations that allow amortized linear growth over
379290001Sglebius# repeated appends, instead of the typical quadratic growth present in naive
380290001Sglebius# implementations.
381290001Sglebiusif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382290001Sglebius  eval 'as_fn_append ()
383290001Sglebius  {
384290001Sglebius    eval $1+=\$2
385290001Sglebius  }'
386290001Sglebiuselse
387290001Sglebius  as_fn_append ()
388290001Sglebius  {
389290001Sglebius    eval $1=\$$1\$2
390290001Sglebius  }
391290001Sglebiusfi # as_fn_append
392290001Sglebius
393290001Sglebius# as_fn_arith ARG...
394290001Sglebius# ------------------
395290001Sglebius# Perform arithmetic evaluation on the ARGs, and store the result in the
396290001Sglebius# global $as_val. Take advantage of shells that can avoid forks. The arguments
397290001Sglebius# must be portable across $(()) and expr.
398290001Sglebiusif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399290001Sglebius  eval 'as_fn_arith ()
400290001Sglebius  {
401290001Sglebius    as_val=$(( $* ))
402290001Sglebius  }'
403290001Sglebiuselse
404290001Sglebius  as_fn_arith ()
405290001Sglebius  {
406290001Sglebius    as_val=`expr "$@" || test $? -eq 1`
407290001Sglebius  }
408290001Sglebiusfi # as_fn_arith
409290001Sglebius
410290001Sglebius
411290001Sglebius# as_fn_error STATUS ERROR [LINENO LOG_FD]
412290001Sglebius# ----------------------------------------
413290001Sglebius# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414290001Sglebius# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415290001Sglebius# script with STATUS, using 1 if that was 0.
416290001Sglebiusas_fn_error ()
417290001Sglebius{
418290001Sglebius  as_status=$1; test $as_status -eq 0 && as_status=1
419290001Sglebius  if test "$4"; then
420290001Sglebius    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422290001Sglebius  fi
423290001Sglebius  $as_echo "$as_me: error: $2" >&2
424290001Sglebius  as_fn_exit $as_status
425290001Sglebius} # as_fn_error
426290001Sglebius
427290001Sglebiusif expr a : '\(a\)' >/dev/null 2>&1 &&
428290001Sglebius   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429290001Sglebius  as_expr=expr
430290001Sglebiuselse
431290001Sglebius  as_expr=false
432290001Sglebiusfi
433290001Sglebius
434290001Sglebiusif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435290001Sglebius  as_basename=basename
436290001Sglebiuselse
437290001Sglebius  as_basename=false
438290001Sglebiusfi
439290001Sglebius
440290001Sglebiusif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441290001Sglebius  as_dirname=dirname
442290001Sglebiuselse
443290001Sglebius  as_dirname=false
444290001Sglebiusfi
445290001Sglebius
446290001Sglebiusas_me=`$as_basename -- "$0" ||
447290001Sglebius$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448290001Sglebius	 X"$0" : 'X\(//\)$' \| \
449290001Sglebius	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450290001Sglebius$as_echo X/"$0" |
451290001Sglebius    sed '/^.*\/\([^/][^/]*\)\/*$/{
452290001Sglebius	    s//\1/
453290001Sglebius	    q
454290001Sglebius	  }
455290001Sglebius	  /^X\/\(\/\/\)$/{
456290001Sglebius	    s//\1/
457290001Sglebius	    q
458290001Sglebius	  }
459290001Sglebius	  /^X\/\(\/\).*/{
460290001Sglebius	    s//\1/
461290001Sglebius	    q
462290001Sglebius	  }
463290001Sglebius	  s/.*/./; q'`
464290001Sglebius
465290001Sglebius# Avoid depending upon Character Ranges.
466290001Sglebiusas_cr_letters='abcdefghijklmnopqrstuvwxyz'
467290001Sglebiusas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468290001Sglebiusas_cr_Letters=$as_cr_letters$as_cr_LETTERS
469290001Sglebiusas_cr_digits='0123456789'
470290001Sglebiusas_cr_alnum=$as_cr_Letters$as_cr_digits
471290001Sglebius
472290001Sglebius
473290001Sglebius  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474290001Sglebius  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475290001Sglebius  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476290001Sglebius  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477290001Sglebius  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478290001Sglebius  sed -n '
479290001Sglebius    p
480290001Sglebius    /[$]LINENO/=
481290001Sglebius  ' <$as_myself |
482290001Sglebius    sed '
483290001Sglebius      s/[$]LINENO.*/&-/
484290001Sglebius      t lineno
485290001Sglebius      b
486290001Sglebius      :lineno
487290001Sglebius      N
488290001Sglebius      :loop
489290001Sglebius      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490290001Sglebius      t loop
491290001Sglebius      s/-\n.*//
492290001Sglebius    ' >$as_me.lineno &&
493290001Sglebius  chmod +x "$as_me.lineno" ||
494290001Sglebius    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495290001Sglebius
496290001Sglebius  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497290001Sglebius  # already done that, so ensure we don't try to do so again and fall
498290001Sglebius  # in an infinite loop.  This has already happened in practice.
499290001Sglebius  _as_can_reexec=no; export _as_can_reexec
500290001Sglebius  # Don't try to exec as it changes $[0], causing all sort of problems
501290001Sglebius  # (the dirname of $[0] is not the place where we might find the
502290001Sglebius  # original and so on.  Autoconf is especially sensitive to this).
503290001Sglebius  . "./$as_me.lineno"
504290001Sglebius  # Exit status is that of the last command.
505290001Sglebius  exit
506290001Sglebius}
507290001Sglebius
508290001SglebiusECHO_C= ECHO_N= ECHO_T=
509290001Sglebiuscase `echo -n x` in #(((((
510290001Sglebius-n*)
511290001Sglebius  case `echo 'xy\c'` in
512290001Sglebius  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513290001Sglebius  xy)  ECHO_C='\c';;
514290001Sglebius  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515290001Sglebius       ECHO_T='	';;
516290001Sglebius  esac;;
517290001Sglebius*)
518290001Sglebius  ECHO_N='-n';;
519290001Sglebiusesac
520290001Sglebius
521290001Sglebiusrm -f conf$$ conf$$.exe conf$$.file
522290001Sglebiusif test -d conf$$.dir; then
523290001Sglebius  rm -f conf$$.dir/conf$$.file
524290001Sglebiuselse
525290001Sglebius  rm -f conf$$.dir
526290001Sglebius  mkdir conf$$.dir 2>/dev/null
527290001Sglebiusfi
528290001Sglebiusif (echo >conf$$.file) 2>/dev/null; then
529290001Sglebius  if ln -s conf$$.file conf$$ 2>/dev/null; then
530290001Sglebius    as_ln_s='ln -s'
531290001Sglebius    # ... but there are two gotchas:
532290001Sglebius    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533290001Sglebius    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534290001Sglebius    # In both cases, we have to default to `cp -pR'.
535290001Sglebius    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536290001Sglebius      as_ln_s='cp -pR'
537290001Sglebius  elif ln conf$$.file conf$$ 2>/dev/null; then
538290001Sglebius    as_ln_s=ln
539290001Sglebius  else
540290001Sglebius    as_ln_s='cp -pR'
541290001Sglebius  fi
542290001Sglebiuselse
543290001Sglebius  as_ln_s='cp -pR'
544290001Sglebiusfi
545290001Sglebiusrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546290001Sglebiusrmdir conf$$.dir 2>/dev/null
547290001Sglebius
548290001Sglebiusif mkdir -p . 2>/dev/null; then
549290001Sglebius  as_mkdir_p='mkdir -p "$as_dir"'
550290001Sglebiuselse
551290001Sglebius  test -d ./-p && rmdir ./-p
552290001Sglebius  as_mkdir_p=false
553290001Sglebiusfi
554290001Sglebius
555290001Sglebiusas_test_x='test -x'
556290001Sglebiusas_executable_p=as_fn_executable_p
557290001Sglebius
558290001Sglebius# Sed expression to map a string onto a valid CPP name.
559290001Sglebiusas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560290001Sglebius
561290001Sglebius# Sed expression to map a string onto a valid variable name.
562290001Sglebiusas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563290001Sglebius
564290001SglebiusSHELL=${CONFIG_SHELL-/bin/sh}
565290001Sglebius
566290001Sglebius
567290001Sglebiustest -n "$DJDIR" || exec 7<&0 </dev/null
568290001Sglebiusexec 6>&1
569290001Sglebius
570290001Sglebius# Name of the host.
571290001Sglebius# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572290001Sglebius# so uname gets run too.
573290001Sglebiusac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574290001Sglebius
575290001Sglebius#
576290001Sglebius# Initializations.
577290001Sglebius#
578290001Sglebiusac_default_prefix=/usr/local
579290001Sglebiusac_clean_files=
580290001Sglebiusac_config_libobj_dir=.
581290001SglebiusLIBOBJS=
582290001Sglebiuscross_compiling=no
583290001Sglebiussubdirs=
584290001SglebiusMFLAGS=
585290001SglebiusMAKEFLAGS=
586290001Sglebius
587290001Sglebius# Identity of this package.
588290001SglebiusPACKAGE_NAME='libevent'
589290001SglebiusPACKAGE_TARNAME='libevent'
590290001SglebiusPACKAGE_VERSION='2.1.5-beta'
591290001SglebiusPACKAGE_STRING='libevent 2.1.5-beta'
592290001SglebiusPACKAGE_BUGREPORT=''
593290001SglebiusPACKAGE_URL=''
594290001Sglebius
595290001Sglebiusac_unique_file="event.c"
596290001Sglebius# Factoring default headers for most tests.
597290001Sglebiusac_includes_default="\
598290001Sglebius#include <stdio.h>
599290001Sglebius#ifdef HAVE_SYS_TYPES_H
600290001Sglebius# include <sys/types.h>
601290001Sglebius#endif
602290001Sglebius#ifdef HAVE_SYS_STAT_H
603290001Sglebius# include <sys/stat.h>
604290001Sglebius#endif
605290001Sglebius#ifdef STDC_HEADERS
606290001Sglebius# include <stdlib.h>
607290001Sglebius# include <stddef.h>
608290001Sglebius#else
609290001Sglebius# ifdef HAVE_STDLIB_H
610290001Sglebius#  include <stdlib.h>
611290001Sglebius# endif
612290001Sglebius#endif
613290001Sglebius#ifdef HAVE_STRING_H
614290001Sglebius# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615290001Sglebius#  include <memory.h>
616290001Sglebius# endif
617290001Sglebius# include <string.h>
618290001Sglebius#endif
619290001Sglebius#ifdef HAVE_STRINGS_H
620290001Sglebius# include <strings.h>
621290001Sglebius#endif
622290001Sglebius#ifdef HAVE_INTTYPES_H
623290001Sglebius# include <inttypes.h>
624290001Sglebius#endif
625290001Sglebius#ifdef HAVE_STDINT_H
626290001Sglebius# include <stdint.h>
627290001Sglebius#endif
628290001Sglebius#ifdef HAVE_UNISTD_H
629290001Sglebius# include <unistd.h>
630290001Sglebius#endif"
631290001Sglebius
632290001Sglebiusac_subst_vars='am__EXEEXT_FALSE
633290001Sglebiusam__EXEEXT_TRUE
634290001SglebiusLTLIBOBJS
635290001SglebiusINSTALL_LIBEVENT_FALSE
636290001SglebiusINSTALL_LIBEVENT_TRUE
637290001SglebiusLIBEVENT_GC_SECTIONS
638290001SglebiusPTHREADS_FALSE
639290001SglebiusPTHREADS_TRUE
640290001SglebiusPTHREAD_CFLAGS
641290001SglebiusPTHREAD_LIBS
642290001SglebiusPTHREAD_CC
643290001Sglebiusacx_pthread_config
644290001SglebiusSIGNAL_SUPPORT_FALSE
645290001SglebiusSIGNAL_SUPPORT_TRUE
646290001SglebiusEVPORT_BACKEND_FALSE
647290001SglebiusEVPORT_BACKEND_TRUE
648290001SglebiusEPOLL_BACKEND_FALSE
649290001SglebiusEPOLL_BACKEND_TRUE
650290001SglebiusLIBOBJS
651290001SglebiusKQUEUE_BACKEND_FALSE
652290001SglebiusKQUEUE_BACKEND_TRUE
653290001SglebiusDEVPOLL_BACKEND_FALSE
654290001SglebiusDEVPOLL_BACKEND_TRUE
655290001SglebiusPOLL_BACKEND_FALSE
656290001SglebiusPOLL_BACKEND_TRUE
657290001SglebiusSELECT_BACKEND_FALSE
658290001SglebiusSELECT_BACKEND_TRUE
659290001SglebiusSTRLCPY_IMPL_FALSE
660290001SglebiusSTRLCPY_IMPL_TRUE
661290001SglebiusBUILD_WITH_NO_UNDEFINED_FALSE
662290001SglebiusBUILD_WITH_NO_UNDEFINED_TRUE
663290001SglebiusBUILD_CYGWIN_FALSE
664290001SglebiusBUILD_CYGWIN_TRUE
665290001SglebiusBUILD_WIN32_FALSE
666290001SglebiusBUILD_WIN32_TRUE
667290001SglebiusOPENSSL_FALSE
668290001SglebiusOPENSSL_TRUE
669290001SglebiusOPENSSL_LIBS
670290001SglebiusOPENSSL_INCS
671290001SglebiusPKG_CONFIG
672290001SglebiusOPENSSL_LIBADD
673290001SglebiusEV_LIB_GDI
674290001SglebiusEV_LIB_WS32
675290001SglebiusZLIB_REGRESS_FALSE
676290001SglebiusZLIB_REGRESS_TRUE
677290001SglebiusZLIB_LIBS
678290001SglebiusBUILD_REGRESS_FALSE
679290001SglebiusBUILD_REGRESS_TRUE
680290001SglebiusBUILD_SAMPLES_FALSE
681290001SglebiusBUILD_SAMPLES_TRUE
682290001SglebiusLIBTOOL_DEPS
683290001SglebiusOTOOL64
684290001SglebiusOTOOL
685290001SglebiusLIPO
686290001SglebiusNMEDIT
687290001SglebiusDSYMUTIL
688290001SglebiusMANIFEST_TOOL
689290001SglebiusRANLIB
690290001Sglebiusac_ct_AR
691290001SglebiusAR
692290001SglebiusDLLTOOL
693290001SglebiusOBJDUMP
694290001SglebiusNM
695290001Sglebiusac_ct_DUMPBIN
696290001SglebiusDUMPBIN
697290001SglebiusLD
698290001SglebiusFGREP
699290001SglebiusLIBTOOL
700290001SglebiusSED
701290001SglebiusLN_S
702290001SglebiusEGREP
703290001SglebiusGREP
704290001SglebiusCPP
705290001Sglebiusam__fastdepCC_FALSE
706290001Sglebiusam__fastdepCC_TRUE
707290001SglebiusCCDEPMODE
708290001Sglebiusam__nodep
709290001SglebiusAMDEPBACKSLASH
710290001SglebiusAMDEP_FALSE
711290001SglebiusAMDEP_TRUE
712290001Sglebiusam__quote
713290001Sglebiusam__include
714290001SglebiusDEPDIR
715290001SglebiusOBJEXT
716290001SglebiusEXEEXT
717290001Sglebiusac_ct_CC
718290001SglebiusCPPFLAGS
719290001SglebiusLDFLAGS
720290001SglebiusCFLAGS
721290001SglebiusCC
722290001Sglebiushost_os
723290001Sglebiushost_vendor
724290001Sglebiushost_cpu
725290001Sglebiushost
726290001Sglebiusbuild_os
727290001Sglebiusbuild_vendor
728290001Sglebiusbuild_cpu
729290001Sglebiusbuild
730290001SglebiusAM_BACKSLASH
731290001SglebiusAM_DEFAULT_VERBOSITY
732290001SglebiusAM_DEFAULT_V
733290001SglebiusAM_V
734290001Sglebiusam__untar
735290001Sglebiusam__tar
736290001SglebiusAMTAR
737290001Sglebiusam__leading_dot
738290001SglebiusSET_MAKE
739290001SglebiusAWK
740290001Sglebiusmkdir_p
741290001SglebiusMKDIR_P
742290001SglebiusINSTALL_STRIP_PROGRAM
743290001SglebiusSTRIP
744290001Sglebiusinstall_sh
745290001SglebiusMAKEINFO
746290001SglebiusAUTOHEADER
747290001SglebiusAUTOMAKE
748290001SglebiusAUTOCONF
749290001SglebiusACLOCAL
750290001SglebiusVERSION
751290001SglebiusPACKAGE
752290001SglebiusCYGPATH_W
753290001Sglebiusam__isrc
754290001SglebiusINSTALL_DATA
755290001SglebiusINSTALL_SCRIPT
756290001SglebiusINSTALL_PROGRAM
757290001Sglebiustarget_alias
758290001Sglebiushost_alias
759290001Sglebiusbuild_alias
760290001SglebiusLIBS
761290001SglebiusECHO_T
762290001SglebiusECHO_N
763290001SglebiusECHO_C
764290001SglebiusDEFS
765290001Sglebiusmandir
766290001Sglebiuslocaledir
767290001Sglebiuslibdir
768290001Sglebiuspsdir
769290001Sglebiuspdfdir
770290001Sglebiusdvidir
771290001Sglebiushtmldir
772290001Sglebiusinfodir
773290001Sglebiusdocdir
774290001Sglebiusoldincludedir
775290001Sglebiusincludedir
776290001Sglebiuslocalstatedir
777290001Sglebiussharedstatedir
778290001Sglebiussysconfdir
779290001Sglebiusdatadir
780290001Sglebiusdatarootdir
781290001Sglebiuslibexecdir
782290001Sglebiussbindir
783290001Sglebiusbindir
784290001Sglebiusprogram_transform_name
785290001Sglebiusprefix
786290001Sglebiusexec_prefix
787290001SglebiusPACKAGE_URL
788290001SglebiusPACKAGE_BUGREPORT
789290001SglebiusPACKAGE_STRING
790290001SglebiusPACKAGE_VERSION
791290001SglebiusPACKAGE_TARNAME
792290001SglebiusPACKAGE_NAME
793290001SglebiusPATH_SEPARATOR
794290001SglebiusSHELL'
795290001Sglebiusac_subst_files=''
796290001Sglebiusac_user_opts='
797290001Sglebiusenable_option_checking
798290001Sglebiusenable_silent_rules
799290001Sglebiusenable_dependency_tracking
800290001Sglebiusenable_gcc_warnings
801290001Sglebiusenable_gcc_hardening
802290001Sglebiusenable_thread_support
803290001Sglebiusenable_malloc_replacement
804290001Sglebiusenable_openssl
805290001Sglebiusenable_debug_mode
806290001Sglebiusenable_libevent_install
807290001Sglebiusenable_libevent_regress
808290001Sglebiusenable_samples
809290001Sglebiusenable_function_sections
810290001Sglebiusenable_verbose_debug
811290001Sglebiusenable_shared
812290001Sglebiusenable_static
813290001Sglebiuswith_pic
814290001Sglebiusenable_fast_install
815290001Sglebiuswith_gnu_ld
816290001Sglebiuswith_sysroot
817290001Sglebiusenable_libtool_lock
818290001Sglebiusenable_largefile
819290001Sglebius'
820290001Sglebius      ac_precious_vars='build_alias
821290001Sglebiushost_alias
822290001Sglebiustarget_alias
823290001SglebiusCC
824290001SglebiusCFLAGS
825290001SglebiusLDFLAGS
826290001SglebiusLIBS
827290001SglebiusCPPFLAGS
828290001SglebiusCPP'
829290001Sglebius
830290001Sglebius
831290001Sglebius# Initialize some variables set by options.
832290001Sglebiusac_init_help=
833290001Sglebiusac_init_version=false
834290001Sglebiusac_unrecognized_opts=
835290001Sglebiusac_unrecognized_sep=
836290001Sglebius# The variables have the same names as the options, with
837290001Sglebius# dashes changed to underlines.
838290001Sglebiuscache_file=/dev/null
839290001Sglebiusexec_prefix=NONE
840290001Sglebiusno_create=
841290001Sglebiusno_recursion=
842290001Sglebiusprefix=NONE
843290001Sglebiusprogram_prefix=NONE
844290001Sglebiusprogram_suffix=NONE
845290001Sglebiusprogram_transform_name=s,x,x,
846290001Sglebiussilent=
847290001Sglebiussite=
848290001Sglebiussrcdir=
849290001Sglebiusverbose=
850290001Sglebiusx_includes=NONE
851290001Sglebiusx_libraries=NONE
852290001Sglebius
853290001Sglebius# Installation directory options.
854290001Sglebius# These are left unexpanded so users can "make install exec_prefix=/foo"
855290001Sglebius# and all the variables that are supposed to be based on exec_prefix
856290001Sglebius# by default will actually change.
857290001Sglebius# Use braces instead of parens because sh, perl, etc. also accept them.
858290001Sglebius# (The list follows the same order as the GNU Coding Standards.)
859290001Sglebiusbindir='${exec_prefix}/bin'
860290001Sglebiussbindir='${exec_prefix}/sbin'
861290001Sglebiuslibexecdir='${exec_prefix}/libexec'
862290001Sglebiusdatarootdir='${prefix}/share'
863290001Sglebiusdatadir='${datarootdir}'
864290001Sglebiussysconfdir='${prefix}/etc'
865290001Sglebiussharedstatedir='${prefix}/com'
866290001Sglebiuslocalstatedir='${prefix}/var'
867290001Sglebiusincludedir='${prefix}/include'
868290001Sglebiusoldincludedir='/usr/include'
869290001Sglebiusdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870290001Sglebiusinfodir='${datarootdir}/info'
871290001Sglebiushtmldir='${docdir}'
872290001Sglebiusdvidir='${docdir}'
873290001Sglebiuspdfdir='${docdir}'
874290001Sglebiuspsdir='${docdir}'
875290001Sglebiuslibdir='${exec_prefix}/lib'
876290001Sglebiuslocaledir='${datarootdir}/locale'
877290001Sglebiusmandir='${datarootdir}/man'
878290001Sglebius
879290001Sglebiusac_prev=
880290001Sglebiusac_dashdash=
881290001Sglebiusfor ac_option
882290001Sglebiusdo
883290001Sglebius  # If the previous option needs an argument, assign it.
884290001Sglebius  if test -n "$ac_prev"; then
885290001Sglebius    eval $ac_prev=\$ac_option
886290001Sglebius    ac_prev=
887290001Sglebius    continue
888290001Sglebius  fi
889290001Sglebius
890290001Sglebius  case $ac_option in
891290001Sglebius  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892290001Sglebius  *=)   ac_optarg= ;;
893290001Sglebius  *)    ac_optarg=yes ;;
894290001Sglebius  esac
895290001Sglebius
896290001Sglebius  # Accept the important Cygnus configure options, so we can diagnose typos.
897290001Sglebius
898290001Sglebius  case $ac_dashdash$ac_option in
899290001Sglebius  --)
900290001Sglebius    ac_dashdash=yes ;;
901290001Sglebius
902290001Sglebius  -bindir | --bindir | --bindi | --bind | --bin | --bi)
903290001Sglebius    ac_prev=bindir ;;
904290001Sglebius  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905290001Sglebius    bindir=$ac_optarg ;;
906290001Sglebius
907290001Sglebius  -build | --build | --buil | --bui | --bu)
908290001Sglebius    ac_prev=build_alias ;;
909290001Sglebius  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910290001Sglebius    build_alias=$ac_optarg ;;
911290001Sglebius
912290001Sglebius  -cache-file | --cache-file | --cache-fil | --cache-fi \
913290001Sglebius  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914290001Sglebius    ac_prev=cache_file ;;
915290001Sglebius  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916290001Sglebius  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917290001Sglebius    cache_file=$ac_optarg ;;
918290001Sglebius
919290001Sglebius  --config-cache | -C)
920290001Sglebius    cache_file=config.cache ;;
921290001Sglebius
922290001Sglebius  -datadir | --datadir | --datadi | --datad)
923290001Sglebius    ac_prev=datadir ;;
924290001Sglebius  -datadir=* | --datadir=* | --datadi=* | --datad=*)
925290001Sglebius    datadir=$ac_optarg ;;
926290001Sglebius
927290001Sglebius  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928290001Sglebius  | --dataroo | --dataro | --datar)
929290001Sglebius    ac_prev=datarootdir ;;
930290001Sglebius  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931290001Sglebius  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932290001Sglebius    datarootdir=$ac_optarg ;;
933290001Sglebius
934290001Sglebius  -disable-* | --disable-*)
935290001Sglebius    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936290001Sglebius    # Reject names that are not valid shell variable names.
937290001Sglebius    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938290001Sglebius      as_fn_error $? "invalid feature name: $ac_useropt"
939290001Sglebius    ac_useropt_orig=$ac_useropt
940290001Sglebius    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941290001Sglebius    case $ac_user_opts in
942290001Sglebius      *"
943290001Sglebius"enable_$ac_useropt"
944290001Sglebius"*) ;;
945290001Sglebius      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946290001Sglebius	 ac_unrecognized_sep=', ';;
947290001Sglebius    esac
948290001Sglebius    eval enable_$ac_useropt=no ;;
949290001Sglebius
950290001Sglebius  -docdir | --docdir | --docdi | --doc | --do)
951290001Sglebius    ac_prev=docdir ;;
952290001Sglebius  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953290001Sglebius    docdir=$ac_optarg ;;
954290001Sglebius
955290001Sglebius  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956290001Sglebius    ac_prev=dvidir ;;
957290001Sglebius  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958290001Sglebius    dvidir=$ac_optarg ;;
959290001Sglebius
960290001Sglebius  -enable-* | --enable-*)
961290001Sglebius    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962290001Sglebius    # Reject names that are not valid shell variable names.
963290001Sglebius    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964290001Sglebius      as_fn_error $? "invalid feature name: $ac_useropt"
965290001Sglebius    ac_useropt_orig=$ac_useropt
966290001Sglebius    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967290001Sglebius    case $ac_user_opts in
968290001Sglebius      *"
969290001Sglebius"enable_$ac_useropt"
970290001Sglebius"*) ;;
971290001Sglebius      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972290001Sglebius	 ac_unrecognized_sep=', ';;
973290001Sglebius    esac
974290001Sglebius    eval enable_$ac_useropt=\$ac_optarg ;;
975290001Sglebius
976290001Sglebius  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977290001Sglebius  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978290001Sglebius  | --exec | --exe | --ex)
979290001Sglebius    ac_prev=exec_prefix ;;
980290001Sglebius  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981290001Sglebius  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982290001Sglebius  | --exec=* | --exe=* | --ex=*)
983290001Sglebius    exec_prefix=$ac_optarg ;;
984290001Sglebius
985290001Sglebius  -gas | --gas | --ga | --g)
986290001Sglebius    # Obsolete; use --with-gas.
987290001Sglebius    with_gas=yes ;;
988290001Sglebius
989290001Sglebius  -help | --help | --hel | --he | -h)
990290001Sglebius    ac_init_help=long ;;
991290001Sglebius  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992290001Sglebius    ac_init_help=recursive ;;
993290001Sglebius  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994290001Sglebius    ac_init_help=short ;;
995290001Sglebius
996290001Sglebius  -host | --host | --hos | --ho)
997290001Sglebius    ac_prev=host_alias ;;
998290001Sglebius  -host=* | --host=* | --hos=* | --ho=*)
999290001Sglebius    host_alias=$ac_optarg ;;
1000290001Sglebius
1001290001Sglebius  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002290001Sglebius    ac_prev=htmldir ;;
1003290001Sglebius  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004290001Sglebius  | --ht=*)
1005290001Sglebius    htmldir=$ac_optarg ;;
1006290001Sglebius
1007290001Sglebius  -includedir | --includedir | --includedi | --included | --include \
1008290001Sglebius  | --includ | --inclu | --incl | --inc)
1009290001Sglebius    ac_prev=includedir ;;
1010290001Sglebius  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011290001Sglebius  | --includ=* | --inclu=* | --incl=* | --inc=*)
1012290001Sglebius    includedir=$ac_optarg ;;
1013290001Sglebius
1014290001Sglebius  -infodir | --infodir | --infodi | --infod | --info | --inf)
1015290001Sglebius    ac_prev=infodir ;;
1016290001Sglebius  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017290001Sglebius    infodir=$ac_optarg ;;
1018290001Sglebius
1019290001Sglebius  -libdir | --libdir | --libdi | --libd)
1020290001Sglebius    ac_prev=libdir ;;
1021290001Sglebius  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022290001Sglebius    libdir=$ac_optarg ;;
1023290001Sglebius
1024290001Sglebius  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025290001Sglebius  | --libexe | --libex | --libe)
1026290001Sglebius    ac_prev=libexecdir ;;
1027290001Sglebius  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028290001Sglebius  | --libexe=* | --libex=* | --libe=*)
1029290001Sglebius    libexecdir=$ac_optarg ;;
1030290001Sglebius
1031290001Sglebius  -localedir | --localedir | --localedi | --localed | --locale)
1032290001Sglebius    ac_prev=localedir ;;
1033290001Sglebius  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034290001Sglebius    localedir=$ac_optarg ;;
1035290001Sglebius
1036290001Sglebius  -localstatedir | --localstatedir | --localstatedi | --localstated \
1037290001Sglebius  | --localstate | --localstat | --localsta | --localst | --locals)
1038290001Sglebius    ac_prev=localstatedir ;;
1039290001Sglebius  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040290001Sglebius  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041290001Sglebius    localstatedir=$ac_optarg ;;
1042290001Sglebius
1043290001Sglebius  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044290001Sglebius    ac_prev=mandir ;;
1045290001Sglebius  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046290001Sglebius    mandir=$ac_optarg ;;
1047290001Sglebius
1048290001Sglebius  -nfp | --nfp | --nf)
1049290001Sglebius    # Obsolete; use --without-fp.
1050290001Sglebius    with_fp=no ;;
1051290001Sglebius
1052290001Sglebius  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053290001Sglebius  | --no-cr | --no-c | -n)
1054290001Sglebius    no_create=yes ;;
1055290001Sglebius
1056290001Sglebius  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057290001Sglebius  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058290001Sglebius    no_recursion=yes ;;
1059290001Sglebius
1060290001Sglebius  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061290001Sglebius  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062290001Sglebius  | --oldin | --oldi | --old | --ol | --o)
1063290001Sglebius    ac_prev=oldincludedir ;;
1064290001Sglebius  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065290001Sglebius  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066290001Sglebius  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067290001Sglebius    oldincludedir=$ac_optarg ;;
1068290001Sglebius
1069290001Sglebius  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070290001Sglebius    ac_prev=prefix ;;
1071290001Sglebius  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072290001Sglebius    prefix=$ac_optarg ;;
1073290001Sglebius
1074290001Sglebius  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075290001Sglebius  | --program-pre | --program-pr | --program-p)
1076290001Sglebius    ac_prev=program_prefix ;;
1077290001Sglebius  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078290001Sglebius  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079290001Sglebius    program_prefix=$ac_optarg ;;
1080290001Sglebius
1081290001Sglebius  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082290001Sglebius  | --program-suf | --program-su | --program-s)
1083290001Sglebius    ac_prev=program_suffix ;;
1084290001Sglebius  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085290001Sglebius  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086290001Sglebius    program_suffix=$ac_optarg ;;
1087290001Sglebius
1088290001Sglebius  -program-transform-name | --program-transform-name \
1089290001Sglebius  | --program-transform-nam | --program-transform-na \
1090290001Sglebius  | --program-transform-n | --program-transform- \
1091290001Sglebius  | --program-transform | --program-transfor \
1092290001Sglebius  | --program-transfo | --program-transf \
1093290001Sglebius  | --program-trans | --program-tran \
1094290001Sglebius  | --progr-tra | --program-tr | --program-t)
1095290001Sglebius    ac_prev=program_transform_name ;;
1096290001Sglebius  -program-transform-name=* | --program-transform-name=* \
1097290001Sglebius  | --program-transform-nam=* | --program-transform-na=* \
1098290001Sglebius  | --program-transform-n=* | --program-transform-=* \
1099290001Sglebius  | --program-transform=* | --program-transfor=* \
1100290001Sglebius  | --program-transfo=* | --program-transf=* \
1101290001Sglebius  | --program-trans=* | --program-tran=* \
1102290001Sglebius  | --progr-tra=* | --program-tr=* | --program-t=*)
1103290001Sglebius    program_transform_name=$ac_optarg ;;
1104290001Sglebius
1105290001Sglebius  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106290001Sglebius    ac_prev=pdfdir ;;
1107290001Sglebius  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108290001Sglebius    pdfdir=$ac_optarg ;;
1109290001Sglebius
1110290001Sglebius  -psdir | --psdir | --psdi | --psd | --ps)
1111290001Sglebius    ac_prev=psdir ;;
1112290001Sglebius  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113290001Sglebius    psdir=$ac_optarg ;;
1114290001Sglebius
1115290001Sglebius  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116290001Sglebius  | -silent | --silent | --silen | --sile | --sil)
1117290001Sglebius    silent=yes ;;
1118290001Sglebius
1119290001Sglebius  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120290001Sglebius    ac_prev=sbindir ;;
1121290001Sglebius  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122290001Sglebius  | --sbi=* | --sb=*)
1123290001Sglebius    sbindir=$ac_optarg ;;
1124290001Sglebius
1125290001Sglebius  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126290001Sglebius  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127290001Sglebius  | --sharedst | --shareds | --shared | --share | --shar \
1128290001Sglebius  | --sha | --sh)
1129290001Sglebius    ac_prev=sharedstatedir ;;
1130290001Sglebius  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131290001Sglebius  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132290001Sglebius  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133290001Sglebius  | --sha=* | --sh=*)
1134290001Sglebius    sharedstatedir=$ac_optarg ;;
1135290001Sglebius
1136290001Sglebius  -site | --site | --sit)
1137290001Sglebius    ac_prev=site ;;
1138290001Sglebius  -site=* | --site=* | --sit=*)
1139290001Sglebius    site=$ac_optarg ;;
1140290001Sglebius
1141290001Sglebius  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142290001Sglebius    ac_prev=srcdir ;;
1143290001Sglebius  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144290001Sglebius    srcdir=$ac_optarg ;;
1145290001Sglebius
1146290001Sglebius  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147290001Sglebius  | --syscon | --sysco | --sysc | --sys | --sy)
1148290001Sglebius    ac_prev=sysconfdir ;;
1149290001Sglebius  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150290001Sglebius  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151290001Sglebius    sysconfdir=$ac_optarg ;;
1152290001Sglebius
1153290001Sglebius  -target | --target | --targe | --targ | --tar | --ta | --t)
1154290001Sglebius    ac_prev=target_alias ;;
1155290001Sglebius  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156290001Sglebius    target_alias=$ac_optarg ;;
1157290001Sglebius
1158290001Sglebius  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159290001Sglebius    verbose=yes ;;
1160290001Sglebius
1161290001Sglebius  -version | --version | --versio | --versi | --vers | -V)
1162290001Sglebius    ac_init_version=: ;;
1163290001Sglebius
1164290001Sglebius  -with-* | --with-*)
1165290001Sglebius    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166290001Sglebius    # Reject names that are not valid shell variable names.
1167290001Sglebius    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168290001Sglebius      as_fn_error $? "invalid package name: $ac_useropt"
1169290001Sglebius    ac_useropt_orig=$ac_useropt
1170290001Sglebius    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171290001Sglebius    case $ac_user_opts in
1172290001Sglebius      *"
1173290001Sglebius"with_$ac_useropt"
1174290001Sglebius"*) ;;
1175290001Sglebius      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176290001Sglebius	 ac_unrecognized_sep=', ';;
1177290001Sglebius    esac
1178290001Sglebius    eval with_$ac_useropt=\$ac_optarg ;;
1179290001Sglebius
1180290001Sglebius  -without-* | --without-*)
1181290001Sglebius    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182290001Sglebius    # Reject names that are not valid shell variable names.
1183290001Sglebius    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184290001Sglebius      as_fn_error $? "invalid package name: $ac_useropt"
1185290001Sglebius    ac_useropt_orig=$ac_useropt
1186290001Sglebius    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187290001Sglebius    case $ac_user_opts in
1188290001Sglebius      *"
1189290001Sglebius"with_$ac_useropt"
1190290001Sglebius"*) ;;
1191290001Sglebius      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192290001Sglebius	 ac_unrecognized_sep=', ';;
1193290001Sglebius    esac
1194290001Sglebius    eval with_$ac_useropt=no ;;
1195290001Sglebius
1196290001Sglebius  --x)
1197290001Sglebius    # Obsolete; use --with-x.
1198290001Sglebius    with_x=yes ;;
1199290001Sglebius
1200290001Sglebius  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201290001Sglebius  | --x-incl | --x-inc | --x-in | --x-i)
1202290001Sglebius    ac_prev=x_includes ;;
1203290001Sglebius  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204290001Sglebius  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205290001Sglebius    x_includes=$ac_optarg ;;
1206290001Sglebius
1207290001Sglebius  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208290001Sglebius  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209290001Sglebius    ac_prev=x_libraries ;;
1210290001Sglebius  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211290001Sglebius  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212290001Sglebius    x_libraries=$ac_optarg ;;
1213290001Sglebius
1214290001Sglebius  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215290001SglebiusTry \`$0 --help' for more information"
1216290001Sglebius    ;;
1217290001Sglebius
1218290001Sglebius  *=*)
1219290001Sglebius    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220290001Sglebius    # Reject names that are not valid shell variable names.
1221290001Sglebius    case $ac_envvar in #(
1222290001Sglebius      '' | [0-9]* | *[!_$as_cr_alnum]* )
1223290001Sglebius      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224290001Sglebius    esac
1225290001Sglebius    eval $ac_envvar=\$ac_optarg
1226290001Sglebius    export $ac_envvar ;;
1227290001Sglebius
1228290001Sglebius  *)
1229290001Sglebius    # FIXME: should be removed in autoconf 3.0.
1230290001Sglebius    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231290001Sglebius    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232290001Sglebius      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233290001Sglebius    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234290001Sglebius    ;;
1235290001Sglebius
1236290001Sglebius  esac
1237290001Sglebiusdone
1238290001Sglebius
1239290001Sglebiusif test -n "$ac_prev"; then
1240290001Sglebius  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241290001Sglebius  as_fn_error $? "missing argument to $ac_option"
1242290001Sglebiusfi
1243290001Sglebius
1244290001Sglebiusif test -n "$ac_unrecognized_opts"; then
1245290001Sglebius  case $enable_option_checking in
1246290001Sglebius    no) ;;
1247290001Sglebius    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248290001Sglebius    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249290001Sglebius  esac
1250290001Sglebiusfi
1251290001Sglebius
1252290001Sglebius# Check all directory arguments for consistency.
1253290001Sglebiusfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254290001Sglebius		datadir sysconfdir sharedstatedir localstatedir includedir \
1255290001Sglebius		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256290001Sglebius		libdir localedir mandir
1257290001Sglebiusdo
1258290001Sglebius  eval ac_val=\$$ac_var
1259290001Sglebius  # Remove trailing slashes.
1260290001Sglebius  case $ac_val in
1261290001Sglebius    */ )
1262290001Sglebius      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263290001Sglebius      eval $ac_var=\$ac_val;;
1264290001Sglebius  esac
1265290001Sglebius  # Be sure to have absolute directory names.
1266290001Sglebius  case $ac_val in
1267290001Sglebius    [\\/$]* | ?:[\\/]* )  continue;;
1268290001Sglebius    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269290001Sglebius  esac
1270290001Sglebius  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271290001Sglebiusdone
1272290001Sglebius
1273290001Sglebius# There might be people who depend on the old broken behavior: `$host'
1274290001Sglebius# used to hold the argument of --host etc.
1275290001Sglebius# FIXME: To remove some day.
1276290001Sglebiusbuild=$build_alias
1277290001Sglebiushost=$host_alias
1278290001Sglebiustarget=$target_alias
1279290001Sglebius
1280290001Sglebius# FIXME: To remove some day.
1281290001Sglebiusif test "x$host_alias" != x; then
1282290001Sglebius  if test "x$build_alias" = x; then
1283290001Sglebius    cross_compiling=maybe
1284290001Sglebius  elif test "x$build_alias" != "x$host_alias"; then
1285290001Sglebius    cross_compiling=yes
1286290001Sglebius  fi
1287290001Sglebiusfi
1288290001Sglebius
1289290001Sglebiusac_tool_prefix=
1290290001Sglebiustest -n "$host_alias" && ac_tool_prefix=$host_alias-
1291290001Sglebius
1292290001Sglebiustest "$silent" = yes && exec 6>/dev/null
1293290001Sglebius
1294290001Sglebius
1295290001Sglebiusac_pwd=`pwd` && test -n "$ac_pwd" &&
1296290001Sglebiusac_ls_di=`ls -di .` &&
1297290001Sglebiusac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298290001Sglebius  as_fn_error $? "working directory cannot be determined"
1299290001Sglebiustest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300290001Sglebius  as_fn_error $? "pwd does not report name of working directory"
1301290001Sglebius
1302290001Sglebius
1303290001Sglebius# Find the source files, if location was not specified.
1304290001Sglebiusif test -z "$srcdir"; then
1305290001Sglebius  ac_srcdir_defaulted=yes
1306290001Sglebius  # Try the directory containing this script, then the parent directory.
1307290001Sglebius  ac_confdir=`$as_dirname -- "$as_myself" ||
1308290001Sglebius$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309290001Sglebius	 X"$as_myself" : 'X\(//\)[^/]' \| \
1310290001Sglebius	 X"$as_myself" : 'X\(//\)$' \| \
1311290001Sglebius	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312290001Sglebius$as_echo X"$as_myself" |
1313290001Sglebius    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314290001Sglebius	    s//\1/
1315290001Sglebius	    q
1316290001Sglebius	  }
1317290001Sglebius	  /^X\(\/\/\)[^/].*/{
1318290001Sglebius	    s//\1/
1319290001Sglebius	    q
1320290001Sglebius	  }
1321290001Sglebius	  /^X\(\/\/\)$/{
1322290001Sglebius	    s//\1/
1323290001Sglebius	    q
1324290001Sglebius	  }
1325290001Sglebius	  /^X\(\/\).*/{
1326290001Sglebius	    s//\1/
1327290001Sglebius	    q
1328290001Sglebius	  }
1329290001Sglebius	  s/.*/./; q'`
1330290001Sglebius  srcdir=$ac_confdir
1331290001Sglebius  if test ! -r "$srcdir/$ac_unique_file"; then
1332290001Sglebius    srcdir=..
1333290001Sglebius  fi
1334290001Sglebiuselse
1335290001Sglebius  ac_srcdir_defaulted=no
1336290001Sglebiusfi
1337290001Sglebiusif test ! -r "$srcdir/$ac_unique_file"; then
1338290001Sglebius  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339290001Sglebius  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340290001Sglebiusfi
1341290001Sglebiusac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342290001Sglebiusac_abs_confdir=`(
1343290001Sglebius	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344290001Sglebius	pwd)`
1345290001Sglebius# When building in place, set srcdir=.
1346290001Sglebiusif test "$ac_abs_confdir" = "$ac_pwd"; then
1347290001Sglebius  srcdir=.
1348290001Sglebiusfi
1349290001Sglebius# Remove unnecessary trailing slashes from srcdir.
1350290001Sglebius# Double slashes in file names in object file debugging info
1351290001Sglebius# mess up M-x gdb in Emacs.
1352290001Sglebiuscase $srcdir in
1353290001Sglebius*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354290001Sglebiusesac
1355290001Sglebiusfor ac_var in $ac_precious_vars; do
1356290001Sglebius  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357290001Sglebius  eval ac_env_${ac_var}_value=\$${ac_var}
1358290001Sglebius  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359290001Sglebius  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360290001Sglebiusdone
1361290001Sglebius
1362290001Sglebius#
1363290001Sglebius# Report the --help message.
1364290001Sglebius#
1365290001Sglebiusif test "$ac_init_help" = "long"; then
1366290001Sglebius  # Omit some internal or obsolete options to make the list less imposing.
1367290001Sglebius  # This message is too long to be a string in the A/UX 3.1 sh.
1368290001Sglebius  cat <<_ACEOF
1369290001Sglebius\`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems.
1370290001Sglebius
1371290001SglebiusUsage: $0 [OPTION]... [VAR=VALUE]...
1372290001Sglebius
1373290001SglebiusTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1374290001SglebiusVAR=VALUE.  See below for descriptions of some of the useful variables.
1375290001Sglebius
1376290001SglebiusDefaults for the options are specified in brackets.
1377290001Sglebius
1378290001SglebiusConfiguration:
1379290001Sglebius  -h, --help              display this help and exit
1380290001Sglebius      --help=short        display options specific to this package
1381290001Sglebius      --help=recursive    display the short help of all the included packages
1382290001Sglebius  -V, --version           display version information and exit
1383290001Sglebius  -q, --quiet, --silent   do not print \`checking ...' messages
1384290001Sglebius      --cache-file=FILE   cache test results in FILE [disabled]
1385290001Sglebius  -C, --config-cache      alias for \`--cache-file=config.cache'
1386290001Sglebius  -n, --no-create         do not create output files
1387290001Sglebius      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1388290001Sglebius
1389290001SglebiusInstallation directories:
1390290001Sglebius  --prefix=PREFIX         install architecture-independent files in PREFIX
1391290001Sglebius                          [$ac_default_prefix]
1392290001Sglebius  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1393290001Sglebius                          [PREFIX]
1394290001Sglebius
1395290001SglebiusBy default, \`make install' will install all the files in
1396290001Sglebius\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1397290001Sglebiusan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398290001Sglebiusfor instance \`--prefix=\$HOME'.
1399290001Sglebius
1400290001SglebiusFor better control, use the options below.
1401290001Sglebius
1402290001SglebiusFine tuning of the installation directories:
1403290001Sglebius  --bindir=DIR            user executables [EPREFIX/bin]
1404290001Sglebius  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1405290001Sglebius  --libexecdir=DIR        program executables [EPREFIX/libexec]
1406290001Sglebius  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1407290001Sglebius  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1408290001Sglebius  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1409290001Sglebius  --libdir=DIR            object code libraries [EPREFIX/lib]
1410290001Sglebius  --includedir=DIR        C header files [PREFIX/include]
1411290001Sglebius  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1412290001Sglebius  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1413290001Sglebius  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1414290001Sglebius  --infodir=DIR           info documentation [DATAROOTDIR/info]
1415290001Sglebius  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1416290001Sglebius  --mandir=DIR            man documentation [DATAROOTDIR/man]
1417290001Sglebius  --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
1418290001Sglebius  --htmldir=DIR           html documentation [DOCDIR]
1419290001Sglebius  --dvidir=DIR            dvi documentation [DOCDIR]
1420290001Sglebius  --pdfdir=DIR            pdf documentation [DOCDIR]
1421290001Sglebius  --psdir=DIR             ps documentation [DOCDIR]
1422290001Sglebius_ACEOF
1423290001Sglebius
1424290001Sglebius  cat <<\_ACEOF
1425290001Sglebius
1426290001SglebiusProgram names:
1427290001Sglebius  --program-prefix=PREFIX            prepend PREFIX to installed program names
1428290001Sglebius  --program-suffix=SUFFIX            append SUFFIX to installed program names
1429290001Sglebius  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430290001Sglebius
1431290001SglebiusSystem types:
1432290001Sglebius  --build=BUILD     configure for building on BUILD [guessed]
1433290001Sglebius  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434290001Sglebius_ACEOF
1435290001Sglebiusfi
1436290001Sglebius
1437290001Sglebiusif test -n "$ac_init_help"; then
1438290001Sglebius  case $ac_init_help in
1439290001Sglebius     short | recursive ) echo "Configuration of libevent 2.1.5-beta:";;
1440290001Sglebius   esac
1441290001Sglebius  cat <<\_ACEOF
1442290001Sglebius
1443290001SglebiusOptional Features:
1444290001Sglebius  --disable-option-checking  ignore unrecognized --enable/--with options
1445290001Sglebius  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446290001Sglebius  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447290001Sglebius  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448290001Sglebius  --disable-silent-rules  verbose build output (undo: "make V=0")
1449290001Sglebius  --enable-dependency-tracking
1450290001Sglebius                          do not reject slow dependency extractors
1451290001Sglebius  --disable-dependency-tracking
1452290001Sglebius                          speeds up one-time build
1453290001Sglebius  --disable-gcc-warnings  disable verbose warnings with GCC
1454290001Sglebius  --enable-gcc-hardening  enable compiler security checks
1455290001Sglebius  --disable-thread-support
1456290001Sglebius                          disable support for threading
1457290001Sglebius  --disable-malloc-replacement
1458290001Sglebius                          disable support for replacing the memory mgt
1459290001Sglebius                          functions
1460290001Sglebius  --disable-openssl       disable support for openssl encryption
1461290001Sglebius  --disable-debug-mode    disable support for running in debug mode
1462290001Sglebius  --disable-libevent-install, disable installation of libevent
1463290001Sglebius
1464290001Sglebius  --disable-libevent-regress, skip regress in make check
1465290001Sglebius
1466290001Sglebius  --disable-samples, skip building of sample programs
1467290001Sglebius
1468290001Sglebius  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1469290001Sglebius
1470290001Sglebius  --enable-verbose-debug, verbose debug logging
1471290001Sglebius
1472290001Sglebius  --enable-shared[=PKGS]  build shared libraries [default=yes]
1473290001Sglebius  --enable-static[=PKGS]  build static libraries [default=yes]
1474290001Sglebius  --enable-fast-install[=PKGS]
1475290001Sglebius                          optimize for fast installation [default=yes]
1476290001Sglebius  --disable-libtool-lock  avoid locking (might break parallel builds)
1477290001Sglebius  --disable-largefile     omit support for large files
1478290001Sglebius
1479290001SglebiusOptional Packages:
1480290001Sglebius  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481290001Sglebius  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482290001Sglebius  --with-pic              try to use only PIC/non-PIC objects [default=use
1483290001Sglebius                          both]
1484290001Sglebius  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485290001Sglebius  --with-sysroot=DIR Search for dependent libraries within DIR
1486290001Sglebius                        (or the compiler's sysroot if not specified).
1487290001Sglebius
1488290001SglebiusSome influential environment variables:
1489290001Sglebius  CC          C compiler command
1490290001Sglebius  CFLAGS      C compiler flags
1491290001Sglebius  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492290001Sglebius              nonstandard directory <lib dir>
1493290001Sglebius  LIBS        libraries to pass to the linker, e.g. -l<library>
1494290001Sglebius  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495290001Sglebius              you have headers in a nonstandard directory <include dir>
1496290001Sglebius  CPP         C preprocessor
1497290001Sglebius
1498290001SglebiusUse these variables to override the choices made by `configure' or to help
1499290001Sglebiusit to find libraries and programs with nonstandard names/locations.
1500290001Sglebius
1501290001SglebiusReport bugs to the package provider.
1502290001Sglebius_ACEOF
1503290001Sglebiusac_status=$?
1504290001Sglebiusfi
1505290001Sglebius
1506290001Sglebiusif test "$ac_init_help" = "recursive"; then
1507290001Sglebius  # If there are subdirs, report their specific --help.
1508290001Sglebius  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509290001Sglebius    test -d "$ac_dir" ||
1510290001Sglebius      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511290001Sglebius      continue
1512290001Sglebius    ac_builddir=.
1513290001Sglebius
1514290001Sglebiuscase "$ac_dir" in
1515290001Sglebius.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516290001Sglebius*)
1517290001Sglebius  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518290001Sglebius  # A ".." for each directory in $ac_dir_suffix.
1519290001Sglebius  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520290001Sglebius  case $ac_top_builddir_sub in
1521290001Sglebius  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522290001Sglebius  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523290001Sglebius  esac ;;
1524290001Sglebiusesac
1525290001Sglebiusac_abs_top_builddir=$ac_pwd
1526290001Sglebiusac_abs_builddir=$ac_pwd$ac_dir_suffix
1527290001Sglebius# for backward compatibility:
1528290001Sglebiusac_top_builddir=$ac_top_build_prefix
1529290001Sglebius
1530290001Sglebiuscase $srcdir in
1531290001Sglebius  .)  # We are building in place.
1532290001Sglebius    ac_srcdir=.
1533290001Sglebius    ac_top_srcdir=$ac_top_builddir_sub
1534290001Sglebius    ac_abs_top_srcdir=$ac_pwd ;;
1535290001Sglebius  [\\/]* | ?:[\\/]* )  # Absolute name.
1536290001Sglebius    ac_srcdir=$srcdir$ac_dir_suffix;
1537290001Sglebius    ac_top_srcdir=$srcdir
1538290001Sglebius    ac_abs_top_srcdir=$srcdir ;;
1539290001Sglebius  *) # Relative name.
1540290001Sglebius    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541290001Sglebius    ac_top_srcdir=$ac_top_build_prefix$srcdir
1542290001Sglebius    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543290001Sglebiusesac
1544290001Sglebiusac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545290001Sglebius
1546290001Sglebius    cd "$ac_dir" || { ac_status=$?; continue; }
1547290001Sglebius    # Check for guested configure.
1548290001Sglebius    if test -f "$ac_srcdir/configure.gnu"; then
1549290001Sglebius      echo &&
1550290001Sglebius      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551290001Sglebius    elif test -f "$ac_srcdir/configure"; then
1552290001Sglebius      echo &&
1553290001Sglebius      $SHELL "$ac_srcdir/configure" --help=recursive
1554290001Sglebius    else
1555290001Sglebius      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556290001Sglebius    fi || ac_status=$?
1557290001Sglebius    cd "$ac_pwd" || { ac_status=$?; break; }
1558290001Sglebius  done
1559290001Sglebiusfi
1560290001Sglebius
1561290001Sglebiustest -n "$ac_init_help" && exit $ac_status
1562290001Sglebiusif $ac_init_version; then
1563290001Sglebius  cat <<\_ACEOF
1564290001Sglebiuslibevent configure 2.1.5-beta
1565290001Sglebiusgenerated by GNU Autoconf 2.69
1566290001Sglebius
1567290001SglebiusCopyright (C) 2012 Free Software Foundation, Inc.
1568290001SglebiusThis configure script is free software; the Free Software Foundation
1569290001Sglebiusgives unlimited permission to copy, distribute and modify it.
1570290001Sglebius_ACEOF
1571290001Sglebius  exit
1572290001Sglebiusfi
1573290001Sglebius
1574290001Sglebius## ------------------------ ##
1575290001Sglebius## Autoconf initialization. ##
1576290001Sglebius## ------------------------ ##
1577290001Sglebius
1578290001Sglebius# ac_fn_c_try_compile LINENO
1579290001Sglebius# --------------------------
1580290001Sglebius# Try to compile conftest.$ac_ext, and return whether this succeeded.
1581290001Sglebiusac_fn_c_try_compile ()
1582290001Sglebius{
1583290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584290001Sglebius  rm -f conftest.$ac_objext
1585290001Sglebius  if { { ac_try="$ac_compile"
1586290001Sglebiuscase "(($ac_try" in
1587290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588290001Sglebius  *) ac_try_echo=$ac_try;;
1589290001Sglebiusesac
1590290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591290001Sglebius$as_echo "$ac_try_echo"; } >&5
1592290001Sglebius  (eval "$ac_compile") 2>conftest.err
1593290001Sglebius  ac_status=$?
1594290001Sglebius  if test -s conftest.err; then
1595290001Sglebius    grep -v '^ *+' conftest.err >conftest.er1
1596290001Sglebius    cat conftest.er1 >&5
1597290001Sglebius    mv -f conftest.er1 conftest.err
1598290001Sglebius  fi
1599290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600290001Sglebius  test $ac_status = 0; } && {
1601290001Sglebius	 test -z "$ac_c_werror_flag" ||
1602290001Sglebius	 test ! -s conftest.err
1603290001Sglebius       } && test -s conftest.$ac_objext; then :
1604290001Sglebius  ac_retval=0
1605290001Sglebiuselse
1606290001Sglebius  $as_echo "$as_me: failed program was:" >&5
1607290001Sglebiussed 's/^/| /' conftest.$ac_ext >&5
1608290001Sglebius
1609290001Sglebius	ac_retval=1
1610290001Sglebiusfi
1611290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612290001Sglebius  as_fn_set_status $ac_retval
1613290001Sglebius
1614290001Sglebius} # ac_fn_c_try_compile
1615290001Sglebius
1616290001Sglebius# ac_fn_c_try_cpp LINENO
1617290001Sglebius# ----------------------
1618290001Sglebius# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619290001Sglebiusac_fn_c_try_cpp ()
1620290001Sglebius{
1621290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622290001Sglebius  if { { ac_try="$ac_cpp conftest.$ac_ext"
1623290001Sglebiuscase "(($ac_try" in
1624290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625290001Sglebius  *) ac_try_echo=$ac_try;;
1626290001Sglebiusesac
1627290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628290001Sglebius$as_echo "$ac_try_echo"; } >&5
1629290001Sglebius  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630290001Sglebius  ac_status=$?
1631290001Sglebius  if test -s conftest.err; then
1632290001Sglebius    grep -v '^ *+' conftest.err >conftest.er1
1633290001Sglebius    cat conftest.er1 >&5
1634290001Sglebius    mv -f conftest.er1 conftest.err
1635290001Sglebius  fi
1636290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637290001Sglebius  test $ac_status = 0; } > conftest.i && {
1638290001Sglebius	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639290001Sglebius	 test ! -s conftest.err
1640290001Sglebius       }; then :
1641290001Sglebius  ac_retval=0
1642290001Sglebiuselse
1643290001Sglebius  $as_echo "$as_me: failed program was:" >&5
1644290001Sglebiussed 's/^/| /' conftest.$ac_ext >&5
1645290001Sglebius
1646290001Sglebius    ac_retval=1
1647290001Sglebiusfi
1648290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649290001Sglebius  as_fn_set_status $ac_retval
1650290001Sglebius
1651290001Sglebius} # ac_fn_c_try_cpp
1652290001Sglebius
1653290001Sglebius# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654290001Sglebius# -------------------------------------------------------
1655290001Sglebius# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656290001Sglebius# the include files in INCLUDES and setting the cache variable VAR
1657290001Sglebius# accordingly.
1658290001Sglebiusac_fn_c_check_header_mongrel ()
1659290001Sglebius{
1660290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661290001Sglebius  if eval \${$3+:} false; then :
1662290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663290001Sglebius$as_echo_n "checking for $2... " >&6; }
1664290001Sglebiusif eval \${$3+:} false; then :
1665290001Sglebius  $as_echo_n "(cached) " >&6
1666290001Sglebiusfi
1667290001Sglebiuseval ac_res=\$$3
1668290001Sglebius	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669290001Sglebius$as_echo "$ac_res" >&6; }
1670290001Sglebiuselse
1671290001Sglebius  # Is the header compilable?
1672290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673290001Sglebius$as_echo_n "checking $2 usability... " >&6; }
1674290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675290001Sglebius/* end confdefs.h.  */
1676290001Sglebius$4
1677290001Sglebius#include <$2>
1678290001Sglebius_ACEOF
1679290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
1680290001Sglebius  ac_header_compiler=yes
1681290001Sglebiuselse
1682290001Sglebius  ac_header_compiler=no
1683290001Sglebiusfi
1684290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686290001Sglebius$as_echo "$ac_header_compiler" >&6; }
1687290001Sglebius
1688290001Sglebius# Is the header present?
1689290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690290001Sglebius$as_echo_n "checking $2 presence... " >&6; }
1691290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692290001Sglebius/* end confdefs.h.  */
1693290001Sglebius#include <$2>
1694290001Sglebius_ACEOF
1695290001Sglebiusif ac_fn_c_try_cpp "$LINENO"; then :
1696290001Sglebius  ac_header_preproc=yes
1697290001Sglebiuselse
1698290001Sglebius  ac_header_preproc=no
1699290001Sglebiusfi
1700290001Sglebiusrm -f conftest.err conftest.i conftest.$ac_ext
1701290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702290001Sglebius$as_echo "$ac_header_preproc" >&6; }
1703290001Sglebius
1704290001Sglebius# So?  What about this header?
1705290001Sglebiuscase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706290001Sglebius  yes:no: )
1707290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708290001Sglebius$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710290001Sglebius$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711290001Sglebius    ;;
1712290001Sglebius  no:yes:* )
1713290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714290001Sglebius$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1716290001Sglebius$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1717290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718290001Sglebius$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1720290001Sglebius$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1721290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722290001Sglebius$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723290001Sglebius    ;;
1724290001Sglebiusesac
1725290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726290001Sglebius$as_echo_n "checking for $2... " >&6; }
1727290001Sglebiusif eval \${$3+:} false; then :
1728290001Sglebius  $as_echo_n "(cached) " >&6
1729290001Sglebiuselse
1730290001Sglebius  eval "$3=\$ac_header_compiler"
1731290001Sglebiusfi
1732290001Sglebiuseval ac_res=\$$3
1733290001Sglebius	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734290001Sglebius$as_echo "$ac_res" >&6; }
1735290001Sglebiusfi
1736290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737290001Sglebius
1738290001Sglebius} # ac_fn_c_check_header_mongrel
1739290001Sglebius
1740290001Sglebius# ac_fn_c_try_run LINENO
1741290001Sglebius# ----------------------
1742290001Sglebius# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743290001Sglebius# that executables *can* be run.
1744290001Sglebiusac_fn_c_try_run ()
1745290001Sglebius{
1746290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747290001Sglebius  if { { ac_try="$ac_link"
1748290001Sglebiuscase "(($ac_try" in
1749290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750290001Sglebius  *) ac_try_echo=$ac_try;;
1751290001Sglebiusesac
1752290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753290001Sglebius$as_echo "$ac_try_echo"; } >&5
1754290001Sglebius  (eval "$ac_link") 2>&5
1755290001Sglebius  ac_status=$?
1756290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757290001Sglebius  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758290001Sglebius  { { case "(($ac_try" in
1759290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760290001Sglebius  *) ac_try_echo=$ac_try;;
1761290001Sglebiusesac
1762290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763290001Sglebius$as_echo "$ac_try_echo"; } >&5
1764290001Sglebius  (eval "$ac_try") 2>&5
1765290001Sglebius  ac_status=$?
1766290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767290001Sglebius  test $ac_status = 0; }; }; then :
1768290001Sglebius  ac_retval=0
1769290001Sglebiuselse
1770290001Sglebius  $as_echo "$as_me: program exited with status $ac_status" >&5
1771290001Sglebius       $as_echo "$as_me: failed program was:" >&5
1772290001Sglebiussed 's/^/| /' conftest.$ac_ext >&5
1773290001Sglebius
1774290001Sglebius       ac_retval=$ac_status
1775290001Sglebiusfi
1776290001Sglebius  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778290001Sglebius  as_fn_set_status $ac_retval
1779290001Sglebius
1780290001Sglebius} # ac_fn_c_try_run
1781290001Sglebius
1782290001Sglebius# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783290001Sglebius# -------------------------------------------------------
1784290001Sglebius# Tests whether HEADER exists and can be compiled using the include files in
1785290001Sglebius# INCLUDES, setting the cache variable VAR accordingly.
1786290001Sglebiusac_fn_c_check_header_compile ()
1787290001Sglebius{
1788290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790290001Sglebius$as_echo_n "checking for $2... " >&6; }
1791290001Sglebiusif eval \${$3+:} false; then :
1792290001Sglebius  $as_echo_n "(cached) " >&6
1793290001Sglebiuselse
1794290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795290001Sglebius/* end confdefs.h.  */
1796290001Sglebius$4
1797290001Sglebius#include <$2>
1798290001Sglebius_ACEOF
1799290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
1800290001Sglebius  eval "$3=yes"
1801290001Sglebiuselse
1802290001Sglebius  eval "$3=no"
1803290001Sglebiusfi
1804290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805290001Sglebiusfi
1806290001Sglebiuseval ac_res=\$$3
1807290001Sglebius	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808290001Sglebius$as_echo "$ac_res" >&6; }
1809290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810290001Sglebius
1811290001Sglebius} # ac_fn_c_check_header_compile
1812290001Sglebius
1813290001Sglebius# ac_fn_c_try_link LINENO
1814290001Sglebius# -----------------------
1815290001Sglebius# Try to link conftest.$ac_ext, and return whether this succeeded.
1816290001Sglebiusac_fn_c_try_link ()
1817290001Sglebius{
1818290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819290001Sglebius  rm -f conftest.$ac_objext conftest$ac_exeext
1820290001Sglebius  if { { ac_try="$ac_link"
1821290001Sglebiuscase "(($ac_try" in
1822290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823290001Sglebius  *) ac_try_echo=$ac_try;;
1824290001Sglebiusesac
1825290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826290001Sglebius$as_echo "$ac_try_echo"; } >&5
1827290001Sglebius  (eval "$ac_link") 2>conftest.err
1828290001Sglebius  ac_status=$?
1829290001Sglebius  if test -s conftest.err; then
1830290001Sglebius    grep -v '^ *+' conftest.err >conftest.er1
1831290001Sglebius    cat conftest.er1 >&5
1832290001Sglebius    mv -f conftest.er1 conftest.err
1833290001Sglebius  fi
1834290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835290001Sglebius  test $ac_status = 0; } && {
1836290001Sglebius	 test -z "$ac_c_werror_flag" ||
1837290001Sglebius	 test ! -s conftest.err
1838290001Sglebius       } && test -s conftest$ac_exeext && {
1839290001Sglebius	 test "$cross_compiling" = yes ||
1840290001Sglebius	 test -x conftest$ac_exeext
1841290001Sglebius       }; then :
1842290001Sglebius  ac_retval=0
1843290001Sglebiuselse
1844290001Sglebius  $as_echo "$as_me: failed program was:" >&5
1845290001Sglebiussed 's/^/| /' conftest.$ac_ext >&5
1846290001Sglebius
1847290001Sglebius	ac_retval=1
1848290001Sglebiusfi
1849290001Sglebius  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1850290001Sglebius  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1851290001Sglebius  # interfere with the next link command; also delete a directory that is
1852290001Sglebius  # left behind by Apple's compiler.  We do this before executing the actions.
1853290001Sglebius  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855290001Sglebius  as_fn_set_status $ac_retval
1856290001Sglebius
1857290001Sglebius} # ac_fn_c_try_link
1858290001Sglebius
1859290001Sglebius# ac_fn_c_check_func LINENO FUNC VAR
1860290001Sglebius# ----------------------------------
1861290001Sglebius# Tests whether FUNC exists, setting the cache variable VAR accordingly
1862290001Sglebiusac_fn_c_check_func ()
1863290001Sglebius{
1864290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866290001Sglebius$as_echo_n "checking for $2... " >&6; }
1867290001Sglebiusif eval \${$3+:} false; then :
1868290001Sglebius  $as_echo_n "(cached) " >&6
1869290001Sglebiuselse
1870290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871290001Sglebius/* end confdefs.h.  */
1872290001Sglebius/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873290001Sglebius   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1874290001Sglebius#define $2 innocuous_$2
1875290001Sglebius
1876290001Sglebius/* System header to define __stub macros and hopefully few prototypes,
1877290001Sglebius    which can conflict with char $2 (); below.
1878290001Sglebius    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879290001Sglebius    <limits.h> exists even on freestanding compilers.  */
1880290001Sglebius
1881290001Sglebius#ifdef __STDC__
1882290001Sglebius# include <limits.h>
1883290001Sglebius#else
1884290001Sglebius# include <assert.h>
1885290001Sglebius#endif
1886290001Sglebius
1887290001Sglebius#undef $2
1888290001Sglebius
1889290001Sglebius/* Override any GCC internal prototype to avoid an error.
1890290001Sglebius   Use char because int might match the return type of a GCC
1891290001Sglebius   builtin and then its argument prototype would still apply.  */
1892290001Sglebius#ifdef __cplusplus
1893290001Sglebiusextern "C"
1894290001Sglebius#endif
1895290001Sglebiuschar $2 ();
1896290001Sglebius/* The GNU C library defines this for functions which it implements
1897290001Sglebius    to always fail with ENOSYS.  Some functions are actually named
1898290001Sglebius    something starting with __ and the normal name is an alias.  */
1899290001Sglebius#if defined __stub_$2 || defined __stub___$2
1900290001Sglebiuschoke me
1901290001Sglebius#endif
1902290001Sglebius
1903290001Sglebiusint
1904290001Sglebiusmain ()
1905290001Sglebius{
1906290001Sglebiusreturn $2 ();
1907290001Sglebius  ;
1908290001Sglebius  return 0;
1909290001Sglebius}
1910290001Sglebius_ACEOF
1911290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
1912290001Sglebius  eval "$3=yes"
1913290001Sglebiuselse
1914290001Sglebius  eval "$3=no"
1915290001Sglebiusfi
1916290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
1917290001Sglebius    conftest$ac_exeext conftest.$ac_ext
1918290001Sglebiusfi
1919290001Sglebiuseval ac_res=\$$3
1920290001Sglebius	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921290001Sglebius$as_echo "$ac_res" >&6; }
1922290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923290001Sglebius
1924290001Sglebius} # ac_fn_c_check_func
1925290001Sglebius
1926290001Sglebius# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1927290001Sglebius# ---------------------------------------------
1928290001Sglebius# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1929290001Sglebius# accordingly.
1930290001Sglebiusac_fn_c_check_decl ()
1931290001Sglebius{
1932290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933290001Sglebius  as_decl_name=`echo $2|sed 's/ *(.*//'`
1934290001Sglebius  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1936290001Sglebius$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1937290001Sglebiusif eval \${$3+:} false; then :
1938290001Sglebius  $as_echo_n "(cached) " >&6
1939290001Sglebiuselse
1940290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941290001Sglebius/* end confdefs.h.  */
1942290001Sglebius$4
1943290001Sglebiusint
1944290001Sglebiusmain ()
1945290001Sglebius{
1946290001Sglebius#ifndef $as_decl_name
1947290001Sglebius#ifdef __cplusplus
1948290001Sglebius  (void) $as_decl_use;
1949290001Sglebius#else
1950290001Sglebius  (void) $as_decl_name;
1951290001Sglebius#endif
1952290001Sglebius#endif
1953290001Sglebius
1954290001Sglebius  ;
1955290001Sglebius  return 0;
1956290001Sglebius}
1957290001Sglebius_ACEOF
1958290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
1959290001Sglebius  eval "$3=yes"
1960290001Sglebiuselse
1961290001Sglebius  eval "$3=no"
1962290001Sglebiusfi
1963290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964290001Sglebiusfi
1965290001Sglebiuseval ac_res=\$$3
1966290001Sglebius	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967290001Sglebius$as_echo "$ac_res" >&6; }
1968290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969290001Sglebius
1970290001Sglebius} # ac_fn_c_check_decl
1971290001Sglebius
1972290001Sglebius# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1973290001Sglebius# -------------------------------------------
1974290001Sglebius# Tests whether TYPE exists after having included INCLUDES, setting cache
1975290001Sglebius# variable VAR accordingly.
1976290001Sglebiusac_fn_c_check_type ()
1977290001Sglebius{
1978290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980290001Sglebius$as_echo_n "checking for $2... " >&6; }
1981290001Sglebiusif eval \${$3+:} false; then :
1982290001Sglebius  $as_echo_n "(cached) " >&6
1983290001Sglebiuselse
1984290001Sglebius  eval "$3=no"
1985290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986290001Sglebius/* end confdefs.h.  */
1987290001Sglebius$4
1988290001Sglebiusint
1989290001Sglebiusmain ()
1990290001Sglebius{
1991290001Sglebiusif (sizeof ($2))
1992290001Sglebius	 return 0;
1993290001Sglebius  ;
1994290001Sglebius  return 0;
1995290001Sglebius}
1996290001Sglebius_ACEOF
1997290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
1998290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999290001Sglebius/* end confdefs.h.  */
2000290001Sglebius$4
2001290001Sglebiusint
2002290001Sglebiusmain ()
2003290001Sglebius{
2004290001Sglebiusif (sizeof (($2)))
2005290001Sglebius	    return 0;
2006290001Sglebius  ;
2007290001Sglebius  return 0;
2008290001Sglebius}
2009290001Sglebius_ACEOF
2010290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2011290001Sglebius
2012290001Sglebiuselse
2013290001Sglebius  eval "$3=yes"
2014290001Sglebiusfi
2015290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016290001Sglebiusfi
2017290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018290001Sglebiusfi
2019290001Sglebiuseval ac_res=\$$3
2020290001Sglebius	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021290001Sglebius$as_echo "$ac_res" >&6; }
2022290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023290001Sglebius
2024290001Sglebius} # ac_fn_c_check_type
2025290001Sglebius
2026290001Sglebius# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027290001Sglebius# --------------------------------------------
2028290001Sglebius# Tries to find the compile-time value of EXPR in a program that includes
2029290001Sglebius# INCLUDES, setting VAR accordingly. Returns whether the value could be
2030290001Sglebius# computed
2031290001Sglebiusac_fn_c_compute_int ()
2032290001Sglebius{
2033290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034290001Sglebius  if test "$cross_compiling" = yes; then
2035290001Sglebius    # Depending upon the size, compute the lo and hi bounds.
2036290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037290001Sglebius/* end confdefs.h.  */
2038290001Sglebius$4
2039290001Sglebiusint
2040290001Sglebiusmain ()
2041290001Sglebius{
2042290001Sglebiusstatic int test_array [1 - 2 * !(($2) >= 0)];
2043290001Sglebiustest_array [0] = 0;
2044290001Sglebiusreturn test_array [0];
2045290001Sglebius
2046290001Sglebius  ;
2047290001Sglebius  return 0;
2048290001Sglebius}
2049290001Sglebius_ACEOF
2050290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2051290001Sglebius  ac_lo=0 ac_mid=0
2052290001Sglebius  while :; do
2053290001Sglebius    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054290001Sglebius/* end confdefs.h.  */
2055290001Sglebius$4
2056290001Sglebiusint
2057290001Sglebiusmain ()
2058290001Sglebius{
2059290001Sglebiusstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060290001Sglebiustest_array [0] = 0;
2061290001Sglebiusreturn test_array [0];
2062290001Sglebius
2063290001Sglebius  ;
2064290001Sglebius  return 0;
2065290001Sglebius}
2066290001Sglebius_ACEOF
2067290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2068290001Sglebius  ac_hi=$ac_mid; break
2069290001Sglebiuselse
2070290001Sglebius  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071290001Sglebius			if test $ac_lo -le $ac_mid; then
2072290001Sglebius			  ac_lo= ac_hi=
2073290001Sglebius			  break
2074290001Sglebius			fi
2075290001Sglebius			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2076290001Sglebiusfi
2077290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078290001Sglebius  done
2079290001Sglebiuselse
2080290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081290001Sglebius/* end confdefs.h.  */
2082290001Sglebius$4
2083290001Sglebiusint
2084290001Sglebiusmain ()
2085290001Sglebius{
2086290001Sglebiusstatic int test_array [1 - 2 * !(($2) < 0)];
2087290001Sglebiustest_array [0] = 0;
2088290001Sglebiusreturn test_array [0];
2089290001Sglebius
2090290001Sglebius  ;
2091290001Sglebius  return 0;
2092290001Sglebius}
2093290001Sglebius_ACEOF
2094290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2095290001Sglebius  ac_hi=-1 ac_mid=-1
2096290001Sglebius  while :; do
2097290001Sglebius    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098290001Sglebius/* end confdefs.h.  */
2099290001Sglebius$4
2100290001Sglebiusint
2101290001Sglebiusmain ()
2102290001Sglebius{
2103290001Sglebiusstatic int test_array [1 - 2 * !(($2) >= $ac_mid)];
2104290001Sglebiustest_array [0] = 0;
2105290001Sglebiusreturn test_array [0];
2106290001Sglebius
2107290001Sglebius  ;
2108290001Sglebius  return 0;
2109290001Sglebius}
2110290001Sglebius_ACEOF
2111290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2112290001Sglebius  ac_lo=$ac_mid; break
2113290001Sglebiuselse
2114290001Sglebius  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2115290001Sglebius			if test $ac_mid -le $ac_hi; then
2116290001Sglebius			  ac_lo= ac_hi=
2117290001Sglebius			  break
2118290001Sglebius			fi
2119290001Sglebius			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2120290001Sglebiusfi
2121290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122290001Sglebius  done
2123290001Sglebiuselse
2124290001Sglebius  ac_lo= ac_hi=
2125290001Sglebiusfi
2126290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127290001Sglebiusfi
2128290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129290001Sglebius# Binary search between lo and hi bounds.
2130290001Sglebiuswhile test "x$ac_lo" != "x$ac_hi"; do
2131290001Sglebius  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2132290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133290001Sglebius/* end confdefs.h.  */
2134290001Sglebius$4
2135290001Sglebiusint
2136290001Sglebiusmain ()
2137290001Sglebius{
2138290001Sglebiusstatic int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139290001Sglebiustest_array [0] = 0;
2140290001Sglebiusreturn test_array [0];
2141290001Sglebius
2142290001Sglebius  ;
2143290001Sglebius  return 0;
2144290001Sglebius}
2145290001Sglebius_ACEOF
2146290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2147290001Sglebius  ac_hi=$ac_mid
2148290001Sglebiuselse
2149290001Sglebius  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2150290001Sglebiusfi
2151290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152290001Sglebiusdone
2153290001Sglebiuscase $ac_lo in #((
2154290001Sglebius?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155290001Sglebius'') ac_retval=1 ;;
2156290001Sglebiusesac
2157290001Sglebius  else
2158290001Sglebius    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159290001Sglebius/* end confdefs.h.  */
2160290001Sglebius$4
2161290001Sglebiusstatic long int longval () { return $2; }
2162290001Sglebiusstatic unsigned long int ulongval () { return $2; }
2163290001Sglebius#include <stdio.h>
2164290001Sglebius#include <stdlib.h>
2165290001Sglebiusint
2166290001Sglebiusmain ()
2167290001Sglebius{
2168290001Sglebius
2169290001Sglebius  FILE *f = fopen ("conftest.val", "w");
2170290001Sglebius  if (! f)
2171290001Sglebius    return 1;
2172290001Sglebius  if (($2) < 0)
2173290001Sglebius    {
2174290001Sglebius      long int i = longval ();
2175290001Sglebius      if (i != ($2))
2176290001Sglebius	return 1;
2177290001Sglebius      fprintf (f, "%ld", i);
2178290001Sglebius    }
2179290001Sglebius  else
2180290001Sglebius    {
2181290001Sglebius      unsigned long int i = ulongval ();
2182290001Sglebius      if (i != ($2))
2183290001Sglebius	return 1;
2184290001Sglebius      fprintf (f, "%lu", i);
2185290001Sglebius    }
2186290001Sglebius  /* Do not output a trailing newline, as this causes \r\n confusion
2187290001Sglebius     on some platforms.  */
2188290001Sglebius  return ferror (f) || fclose (f) != 0;
2189290001Sglebius
2190290001Sglebius  ;
2191290001Sglebius  return 0;
2192290001Sglebius}
2193290001Sglebius_ACEOF
2194290001Sglebiusif ac_fn_c_try_run "$LINENO"; then :
2195290001Sglebius  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196290001Sglebiuselse
2197290001Sglebius  ac_retval=1
2198290001Sglebiusfi
2199290001Sglebiusrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200290001Sglebius  conftest.$ac_objext conftest.beam conftest.$ac_ext
2201290001Sglebiusrm -f conftest.val
2202290001Sglebius
2203290001Sglebius  fi
2204290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205290001Sglebius  as_fn_set_status $ac_retval
2206290001Sglebius
2207290001Sglebius} # ac_fn_c_compute_int
2208290001Sglebius
2209290001Sglebius# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2210290001Sglebius# ----------------------------------------------------
2211290001Sglebius# Tries to find if the field MEMBER exists in type AGGR, after including
2212290001Sglebius# INCLUDES, setting cache variable VAR accordingly.
2213290001Sglebiusac_fn_c_check_member ()
2214290001Sglebius{
2215290001Sglebius  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2217290001Sglebius$as_echo_n "checking for $2.$3... " >&6; }
2218290001Sglebiusif eval \${$4+:} false; then :
2219290001Sglebius  $as_echo_n "(cached) " >&6
2220290001Sglebiuselse
2221290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222290001Sglebius/* end confdefs.h.  */
2223290001Sglebius$5
2224290001Sglebiusint
2225290001Sglebiusmain ()
2226290001Sglebius{
2227290001Sglebiusstatic $2 ac_aggr;
2228290001Sglebiusif (ac_aggr.$3)
2229290001Sglebiusreturn 0;
2230290001Sglebius  ;
2231290001Sglebius  return 0;
2232290001Sglebius}
2233290001Sglebius_ACEOF
2234290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2235290001Sglebius  eval "$4=yes"
2236290001Sglebiuselse
2237290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238290001Sglebius/* end confdefs.h.  */
2239290001Sglebius$5
2240290001Sglebiusint
2241290001Sglebiusmain ()
2242290001Sglebius{
2243290001Sglebiusstatic $2 ac_aggr;
2244290001Sglebiusif (sizeof ac_aggr.$3)
2245290001Sglebiusreturn 0;
2246290001Sglebius  ;
2247290001Sglebius  return 0;
2248290001Sglebius}
2249290001Sglebius_ACEOF
2250290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
2251290001Sglebius  eval "$4=yes"
2252290001Sglebiuselse
2253290001Sglebius  eval "$4=no"
2254290001Sglebiusfi
2255290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256290001Sglebiusfi
2257290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258290001Sglebiusfi
2259290001Sglebiuseval ac_res=\$$4
2260290001Sglebius	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261290001Sglebius$as_echo "$ac_res" >&6; }
2262290001Sglebius  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263290001Sglebius
2264290001Sglebius} # ac_fn_c_check_member
2265290001Sglebiuscat >config.log <<_ACEOF
2266290001SglebiusThis file contains any messages produced by compilers while
2267290001Sglebiusrunning configure, to aid debugging if configure makes a mistake.
2268290001Sglebius
2269290001SglebiusIt was created by libevent $as_me 2.1.5-beta, which was
2270290001Sglebiusgenerated by GNU Autoconf 2.69.  Invocation command line was
2271290001Sglebius
2272290001Sglebius  $ $0 $@
2273290001Sglebius
2274290001Sglebius_ACEOF
2275290001Sglebiusexec 5>>config.log
2276290001Sglebius{
2277290001Sglebiuscat <<_ASUNAME
2278290001Sglebius## --------- ##
2279290001Sglebius## Platform. ##
2280290001Sglebius## --------- ##
2281290001Sglebius
2282290001Sglebiushostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2283290001Sglebiusuname -m = `(uname -m) 2>/dev/null || echo unknown`
2284290001Sglebiusuname -r = `(uname -r) 2>/dev/null || echo unknown`
2285290001Sglebiusuname -s = `(uname -s) 2>/dev/null || echo unknown`
2286290001Sglebiusuname -v = `(uname -v) 2>/dev/null || echo unknown`
2287290001Sglebius
2288290001Sglebius/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2289290001Sglebius/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2290290001Sglebius
2291290001Sglebius/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2292290001Sglebius/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2293290001Sglebius/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2294290001Sglebius/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2295290001Sglebius/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2296290001Sglebius/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2297290001Sglebius/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2298290001Sglebius
2299290001Sglebius_ASUNAME
2300290001Sglebius
2301290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302290001Sglebiusfor as_dir in $PATH
2303290001Sglebiusdo
2304290001Sglebius  IFS=$as_save_IFS
2305290001Sglebius  test -z "$as_dir" && as_dir=.
2306290001Sglebius    $as_echo "PATH: $as_dir"
2307290001Sglebius  done
2308290001SglebiusIFS=$as_save_IFS
2309290001Sglebius
2310290001Sglebius} >&5
2311290001Sglebius
2312290001Sglebiuscat >&5 <<_ACEOF
2313290001Sglebius
2314290001Sglebius
2315290001Sglebius## ----------- ##
2316290001Sglebius## Core tests. ##
2317290001Sglebius## ----------- ##
2318290001Sglebius
2319290001Sglebius_ACEOF
2320290001Sglebius
2321290001Sglebius
2322290001Sglebius# Keep a trace of the command line.
2323290001Sglebius# Strip out --no-create and --no-recursion so they do not pile up.
2324290001Sglebius# Strip out --silent because we don't want to record it for future runs.
2325290001Sglebius# Also quote any args containing shell meta-characters.
2326290001Sglebius# Make two passes to allow for proper duplicate-argument suppression.
2327290001Sglebiusac_configure_args=
2328290001Sglebiusac_configure_args0=
2329290001Sglebiusac_configure_args1=
2330290001Sglebiusac_must_keep_next=false
2331290001Sglebiusfor ac_pass in 1 2
2332290001Sglebiusdo
2333290001Sglebius  for ac_arg
2334290001Sglebius  do
2335290001Sglebius    case $ac_arg in
2336290001Sglebius    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2337290001Sglebius    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2338290001Sglebius    | -silent | --silent | --silen | --sile | --sil)
2339290001Sglebius      continue ;;
2340290001Sglebius    *\'*)
2341290001Sglebius      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342290001Sglebius    esac
2343290001Sglebius    case $ac_pass in
2344290001Sglebius    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2345290001Sglebius    2)
2346290001Sglebius      as_fn_append ac_configure_args1 " '$ac_arg'"
2347290001Sglebius      if test $ac_must_keep_next = true; then
2348290001Sglebius	ac_must_keep_next=false # Got value, back to normal.
2349290001Sglebius      else
2350290001Sglebius	case $ac_arg in
2351290001Sglebius	  *=* | --config-cache | -C | -disable-* | --disable-* \
2352290001Sglebius	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2353290001Sglebius	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2354290001Sglebius	  | -with-* | --with-* | -without-* | --without-* | --x)
2355290001Sglebius	    case "$ac_configure_args0 " in
2356290001Sglebius	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357290001Sglebius	    esac
2358290001Sglebius	    ;;
2359290001Sglebius	  -* ) ac_must_keep_next=true ;;
2360290001Sglebius	esac
2361290001Sglebius      fi
2362290001Sglebius      as_fn_append ac_configure_args " '$ac_arg'"
2363290001Sglebius      ;;
2364290001Sglebius    esac
2365290001Sglebius  done
2366290001Sglebiusdone
2367290001Sglebius{ ac_configure_args0=; unset ac_configure_args0;}
2368290001Sglebius{ ac_configure_args1=; unset ac_configure_args1;}
2369290001Sglebius
2370290001Sglebius# When interrupted or exit'd, cleanup temporary files, and complete
2371290001Sglebius# config.log.  We remove comments because anyway the quotes in there
2372290001Sglebius# would cause problems or look ugly.
2373290001Sglebius# WARNING: Use '\'' to represent an apostrophe within the trap.
2374290001Sglebius# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2375290001Sglebiustrap 'exit_status=$?
2376290001Sglebius  # Save into config.log some information that might help in debugging.
2377290001Sglebius  {
2378290001Sglebius    echo
2379290001Sglebius
2380290001Sglebius    $as_echo "## ---------------- ##
2381290001Sglebius## Cache variables. ##
2382290001Sglebius## ---------------- ##"
2383290001Sglebius    echo
2384290001Sglebius    # The following way of writing the cache mishandles newlines in values,
2385290001Sglebius(
2386290001Sglebius  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387290001Sglebius    eval ac_val=\$$ac_var
2388290001Sglebius    case $ac_val in #(
2389290001Sglebius    *${as_nl}*)
2390290001Sglebius      case $ac_var in #(
2391290001Sglebius      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2392290001Sglebius$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2393290001Sglebius      esac
2394290001Sglebius      case $ac_var in #(
2395290001Sglebius      _ | IFS | as_nl) ;; #(
2396290001Sglebius      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2397290001Sglebius      *) { eval $ac_var=; unset $ac_var;} ;;
2398290001Sglebius      esac ;;
2399290001Sglebius    esac
2400290001Sglebius  done
2401290001Sglebius  (set) 2>&1 |
2402290001Sglebius    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403290001Sglebius    *${as_nl}ac_space=\ *)
2404290001Sglebius      sed -n \
2405290001Sglebius	"s/'\''/'\''\\\\'\'''\''/g;
2406290001Sglebius	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2407290001Sglebius      ;; #(
2408290001Sglebius    *)
2409290001Sglebius      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2410290001Sglebius      ;;
2411290001Sglebius    esac |
2412290001Sglebius    sort
2413290001Sglebius)
2414290001Sglebius    echo
2415290001Sglebius
2416290001Sglebius    $as_echo "## ----------------- ##
2417290001Sglebius## Output variables. ##
2418290001Sglebius## ----------------- ##"
2419290001Sglebius    echo
2420290001Sglebius    for ac_var in $ac_subst_vars
2421290001Sglebius    do
2422290001Sglebius      eval ac_val=\$$ac_var
2423290001Sglebius      case $ac_val in
2424290001Sglebius      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425290001Sglebius      esac
2426290001Sglebius      $as_echo "$ac_var='\''$ac_val'\''"
2427290001Sglebius    done | sort
2428290001Sglebius    echo
2429290001Sglebius
2430290001Sglebius    if test -n "$ac_subst_files"; then
2431290001Sglebius      $as_echo "## ------------------- ##
2432290001Sglebius## File substitutions. ##
2433290001Sglebius## ------------------- ##"
2434290001Sglebius      echo
2435290001Sglebius      for ac_var in $ac_subst_files
2436290001Sglebius      do
2437290001Sglebius	eval ac_val=\$$ac_var
2438290001Sglebius	case $ac_val in
2439290001Sglebius	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440290001Sglebius	esac
2441290001Sglebius	$as_echo "$ac_var='\''$ac_val'\''"
2442290001Sglebius      done | sort
2443290001Sglebius      echo
2444290001Sglebius    fi
2445290001Sglebius
2446290001Sglebius    if test -s confdefs.h; then
2447290001Sglebius      $as_echo "## ----------- ##
2448290001Sglebius## confdefs.h. ##
2449290001Sglebius## ----------- ##"
2450290001Sglebius      echo
2451290001Sglebius      cat confdefs.h
2452290001Sglebius      echo
2453290001Sglebius    fi
2454290001Sglebius    test "$ac_signal" != 0 &&
2455290001Sglebius      $as_echo "$as_me: caught signal $ac_signal"
2456290001Sglebius    $as_echo "$as_me: exit $exit_status"
2457290001Sglebius  } >&5
2458290001Sglebius  rm -f core *.core core.conftest.* &&
2459290001Sglebius    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460290001Sglebius    exit $exit_status
2461290001Sglebius' 0
2462290001Sglebiusfor ac_signal in 1 2 13 15; do
2463290001Sglebius  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464290001Sglebiusdone
2465290001Sglebiusac_signal=0
2466290001Sglebius
2467290001Sglebius# confdefs.h avoids OS command line length limits that DEFS can exceed.
2468290001Sglebiusrm -f -r conftest* confdefs.h
2469290001Sglebius
2470290001Sglebius$as_echo "/* confdefs.h */" > confdefs.h
2471290001Sglebius
2472290001Sglebius# Predefined preprocessor variables.
2473290001Sglebius
2474290001Sglebiuscat >>confdefs.h <<_ACEOF
2475290001Sglebius#define PACKAGE_NAME "$PACKAGE_NAME"
2476290001Sglebius_ACEOF
2477290001Sglebius
2478290001Sglebiuscat >>confdefs.h <<_ACEOF
2479290001Sglebius#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480290001Sglebius_ACEOF
2481290001Sglebius
2482290001Sglebiuscat >>confdefs.h <<_ACEOF
2483290001Sglebius#define PACKAGE_VERSION "$PACKAGE_VERSION"
2484290001Sglebius_ACEOF
2485290001Sglebius
2486290001Sglebiuscat >>confdefs.h <<_ACEOF
2487290001Sglebius#define PACKAGE_STRING "$PACKAGE_STRING"
2488290001Sglebius_ACEOF
2489290001Sglebius
2490290001Sglebiuscat >>confdefs.h <<_ACEOF
2491290001Sglebius#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492290001Sglebius_ACEOF
2493290001Sglebius
2494290001Sglebiuscat >>confdefs.h <<_ACEOF
2495290001Sglebius#define PACKAGE_URL "$PACKAGE_URL"
2496290001Sglebius_ACEOF
2497290001Sglebius
2498290001Sglebius
2499290001Sglebius# Let the site file select an alternate cache file if it wants to.
2500290001Sglebius# Prefer an explicitly selected file to automatically selected ones.
2501290001Sglebiusac_site_file1=NONE
2502290001Sglebiusac_site_file2=NONE
2503290001Sglebiusif test -n "$CONFIG_SITE"; then
2504290001Sglebius  # We do not want a PATH search for config.site.
2505290001Sglebius  case $CONFIG_SITE in #((
2506290001Sglebius    -*)  ac_site_file1=./$CONFIG_SITE;;
2507290001Sglebius    */*) ac_site_file1=$CONFIG_SITE;;
2508290001Sglebius    *)   ac_site_file1=./$CONFIG_SITE;;
2509290001Sglebius  esac
2510290001Sglebiuselif test "x$prefix" != xNONE; then
2511290001Sglebius  ac_site_file1=$prefix/share/config.site
2512290001Sglebius  ac_site_file2=$prefix/etc/config.site
2513290001Sglebiuselse
2514290001Sglebius  ac_site_file1=$ac_default_prefix/share/config.site
2515290001Sglebius  ac_site_file2=$ac_default_prefix/etc/config.site
2516290001Sglebiusfi
2517290001Sglebiusfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2518290001Sglebiusdo
2519290001Sglebius  test "x$ac_site_file" = xNONE && continue
2520290001Sglebius  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2521290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522290001Sglebius$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523290001Sglebius    sed 's/^/| /' "$ac_site_file" >&5
2524290001Sglebius    . "$ac_site_file" \
2525290001Sglebius      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527290001Sglebiusas_fn_error $? "failed to load site script $ac_site_file
2528290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
2529290001Sglebius  fi
2530290001Sglebiusdone
2531290001Sglebius
2532290001Sglebiusif test -r "$cache_file"; then
2533290001Sglebius  # Some versions of bash will fail to source /dev/null (special files
2534290001Sglebius  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2535290001Sglebius  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2536290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537290001Sglebius$as_echo "$as_me: loading cache $cache_file" >&6;}
2538290001Sglebius    case $cache_file in
2539290001Sglebius      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540290001Sglebius      *)                      . "./$cache_file";;
2541290001Sglebius    esac
2542290001Sglebius  fi
2543290001Sglebiuselse
2544290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545290001Sglebius$as_echo "$as_me: creating cache $cache_file" >&6;}
2546290001Sglebius  >$cache_file
2547290001Sglebiusfi
2548290001Sglebius
2549290001Sglebius# Check that the precious variables saved in the cache have kept the same
2550290001Sglebius# value.
2551290001Sglebiusac_cache_corrupted=false
2552290001Sglebiusfor ac_var in $ac_precious_vars; do
2553290001Sglebius  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554290001Sglebius  eval ac_new_set=\$ac_env_${ac_var}_set
2555290001Sglebius  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556290001Sglebius  eval ac_new_val=\$ac_env_${ac_var}_value
2557290001Sglebius  case $ac_old_set,$ac_new_set in
2558290001Sglebius    set,)
2559290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560290001Sglebius$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561290001Sglebius      ac_cache_corrupted=: ;;
2562290001Sglebius    ,set)
2563290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564290001Sglebius$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565290001Sglebius      ac_cache_corrupted=: ;;
2566290001Sglebius    ,);;
2567290001Sglebius    *)
2568290001Sglebius      if test "x$ac_old_val" != "x$ac_new_val"; then
2569290001Sglebius	# differences in whitespace do not lead to failure.
2570290001Sglebius	ac_old_val_w=`echo x $ac_old_val`
2571290001Sglebius	ac_new_val_w=`echo x $ac_new_val`
2572290001Sglebius	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574290001Sglebius$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575290001Sglebius	  ac_cache_corrupted=:
2576290001Sglebius	else
2577290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578290001Sglebius$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579290001Sglebius	  eval $ac_var=\$ac_old_val
2580290001Sglebius	fi
2581290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2582290001Sglebius$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2583290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2584290001Sglebius$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2585290001Sglebius      fi;;
2586290001Sglebius  esac
2587290001Sglebius  # Pass precious variables to config.status.
2588290001Sglebius  if test "$ac_new_set" = set; then
2589290001Sglebius    case $ac_new_val in
2590290001Sglebius    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591290001Sglebius    *) ac_arg=$ac_var=$ac_new_val ;;
2592290001Sglebius    esac
2593290001Sglebius    case " $ac_configure_args " in
2594290001Sglebius      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2595290001Sglebius      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2596290001Sglebius    esac
2597290001Sglebius  fi
2598290001Sglebiusdone
2599290001Sglebiusif $ac_cache_corrupted; then
2600290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603290001Sglebius$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604290001Sglebius  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2605290001Sglebiusfi
2606290001Sglebius## -------------------- ##
2607290001Sglebius## Main body of script. ##
2608290001Sglebius## -------------------- ##
2609290001Sglebius
2610290001Sglebiusac_ext=c
2611290001Sglebiusac_cpp='$CPP $CPPFLAGS'
2612290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
2615290001Sglebius
2616290001Sglebius
2617290001Sglebius
2618290001Sglebius
2619290001Sglebius
2620290001Sglebius
2621290001Sglebiusac_aux_dir=
2622290001Sglebiusfor ac_dir in build-aux "$srcdir"/build-aux; do
2623290001Sglebius  if test -f "$ac_dir/install-sh"; then
2624290001Sglebius    ac_aux_dir=$ac_dir
2625290001Sglebius    ac_install_sh="$ac_aux_dir/install-sh -c"
2626290001Sglebius    break
2627290001Sglebius  elif test -f "$ac_dir/install.sh"; then
2628290001Sglebius    ac_aux_dir=$ac_dir
2629290001Sglebius    ac_install_sh="$ac_aux_dir/install.sh -c"
2630290001Sglebius    break
2631290001Sglebius  elif test -f "$ac_dir/shtool"; then
2632290001Sglebius    ac_aux_dir=$ac_dir
2633290001Sglebius    ac_install_sh="$ac_aux_dir/shtool install -c"
2634290001Sglebius    break
2635290001Sglebius  fi
2636290001Sglebiusdone
2637290001Sglebiusif test -z "$ac_aux_dir"; then
2638290001Sglebius  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2639290001Sglebiusfi
2640290001Sglebius
2641290001Sglebius# These three variables are undocumented and unsupported,
2642290001Sglebius# and are intended to be withdrawn in a future Autoconf release.
2643290001Sglebius# They can cause serious problems if a builder's source tree is in a directory
2644290001Sglebius# whose full name contains unusual characters.
2645290001Sglebiusac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2646290001Sglebiusac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2647290001Sglebiusac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2648290001Sglebius
2649290001Sglebius
2650290001Sglebiusam__api_version='1.15'
2651290001Sglebius
2652290001Sglebius# Find a good install program.  We prefer a C program (faster),
2653290001Sglebius# so one script is as good as another.  But avoid the broken or
2654290001Sglebius# incompatible versions:
2655290001Sglebius# SysV /etc/install, /usr/sbin/install
2656290001Sglebius# SunOS /usr/etc/install
2657290001Sglebius# IRIX /sbin/install
2658290001Sglebius# AIX /bin/install
2659290001Sglebius# AmigaOS /C/install, which installs bootblocks on floppy discs
2660290001Sglebius# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661290001Sglebius# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662290001Sglebius# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663290001Sglebius# OS/2's system install, which has a completely different semantic
2664290001Sglebius# ./install, which can be erroneously created by make from ./install.sh.
2665290001Sglebius# Reject install programs that cannot install multiple files.
2666290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2667290001Sglebius$as_echo_n "checking for a BSD-compatible install... " >&6; }
2668290001Sglebiusif test -z "$INSTALL"; then
2669290001Sglebiusif ${ac_cv_path_install+:} false; then :
2670290001Sglebius  $as_echo_n "(cached) " >&6
2671290001Sglebiuselse
2672290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673290001Sglebiusfor as_dir in $PATH
2674290001Sglebiusdo
2675290001Sglebius  IFS=$as_save_IFS
2676290001Sglebius  test -z "$as_dir" && as_dir=.
2677290001Sglebius    # Account for people who put trailing slashes in PATH elements.
2678290001Sglebiuscase $as_dir/ in #((
2679290001Sglebius  ./ | .// | /[cC]/* | \
2680290001Sglebius  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681290001Sglebius  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2682290001Sglebius  /usr/ucb/* ) ;;
2683290001Sglebius  *)
2684290001Sglebius    # OSF1 and SCO ODT 3.0 have their own names for install.
2685290001Sglebius    # Don't use installbsd from OSF since it installs stuff as root
2686290001Sglebius    # by default.
2687290001Sglebius    for ac_prog in ginstall scoinst install; do
2688290001Sglebius      for ac_exec_ext in '' $ac_executable_extensions; do
2689290001Sglebius	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2690290001Sglebius	  if test $ac_prog = install &&
2691290001Sglebius	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692290001Sglebius	    # AIX install.  It has an incompatible calling convention.
2693290001Sglebius	    :
2694290001Sglebius	  elif test $ac_prog = install &&
2695290001Sglebius	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696290001Sglebius	    # program-specific install script used by HP pwplus--don't use.
2697290001Sglebius	    :
2698290001Sglebius	  else
2699290001Sglebius	    rm -rf conftest.one conftest.two conftest.dir
2700290001Sglebius	    echo one > conftest.one
2701290001Sglebius	    echo two > conftest.two
2702290001Sglebius	    mkdir conftest.dir
2703290001Sglebius	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704290001Sglebius	      test -s conftest.one && test -s conftest.two &&
2705290001Sglebius	      test -s conftest.dir/conftest.one &&
2706290001Sglebius	      test -s conftest.dir/conftest.two
2707290001Sglebius	    then
2708290001Sglebius	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709290001Sglebius	      break 3
2710290001Sglebius	    fi
2711290001Sglebius	  fi
2712290001Sglebius	fi
2713290001Sglebius      done
2714290001Sglebius    done
2715290001Sglebius    ;;
2716290001Sglebiusesac
2717290001Sglebius
2718290001Sglebius  done
2719290001SglebiusIFS=$as_save_IFS
2720290001Sglebius
2721290001Sglebiusrm -rf conftest.one conftest.two conftest.dir
2722290001Sglebius
2723290001Sglebiusfi
2724290001Sglebius  if test "${ac_cv_path_install+set}" = set; then
2725290001Sglebius    INSTALL=$ac_cv_path_install
2726290001Sglebius  else
2727290001Sglebius    # As a last resort, use the slow shell script.  Don't cache a
2728290001Sglebius    # value for INSTALL within a source directory, because that will
2729290001Sglebius    # break other packages using the cache if that directory is
2730290001Sglebius    # removed, or if the value is a relative name.
2731290001Sglebius    INSTALL=$ac_install_sh
2732290001Sglebius  fi
2733290001Sglebiusfi
2734290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2735290001Sglebius$as_echo "$INSTALL" >&6; }
2736290001Sglebius
2737290001Sglebius# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738290001Sglebius# It thinks the first close brace ends the variable substitution.
2739290001Sglebiustest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740290001Sglebius
2741290001Sglebiustest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742290001Sglebius
2743290001Sglebiustest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744290001Sglebius
2745290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2746290001Sglebius$as_echo_n "checking whether build environment is sane... " >&6; }
2747290001Sglebius# Reject unsafe characters in $srcdir or the absolute working directory
2748290001Sglebius# name.  Accept space and tab only in the latter.
2749290001Sglebiusam_lf='
2750290001Sglebius'
2751290001Sglebiuscase `pwd` in
2752290001Sglebius  *[\\\"\#\$\&\'\`$am_lf]*)
2753290001Sglebius    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2754290001Sglebiusesac
2755290001Sglebiuscase $srcdir in
2756290001Sglebius  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2757290001Sglebius    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2758290001Sglebiusesac
2759290001Sglebius
2760290001Sglebius# Do 'set' in a subshell so we don't clobber the current shell's
2761290001Sglebius# arguments.  Must try -L first in case configure is actually a
2762290001Sglebius# symlink; some systems play weird games with the mod time of symlinks
2763290001Sglebius# (eg FreeBSD returns the mod time of the symlink's containing
2764290001Sglebius# directory).
2765290001Sglebiusif (
2766290001Sglebius   am_has_slept=no
2767290001Sglebius   for am_try in 1 2; do
2768290001Sglebius     echo "timestamp, slept: $am_has_slept" > conftest.file
2769290001Sglebius     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2770290001Sglebius     if test "$*" = "X"; then
2771290001Sglebius	# -L didn't work.
2772290001Sglebius	set X `ls -t "$srcdir/configure" conftest.file`
2773290001Sglebius     fi
2774290001Sglebius     if test "$*" != "X $srcdir/configure conftest.file" \
2775290001Sglebius	&& test "$*" != "X conftest.file $srcdir/configure"; then
2776290001Sglebius
2777290001Sglebius	# If neither matched, then we have a broken ls.  This can happen
2778290001Sglebius	# if, for instance, CONFIG_SHELL is bash and it inherits a
2779290001Sglebius	# broken ls alias from the environment.  This has actually
2780290001Sglebius	# happened.  Such a system could not be considered "sane".
2781290001Sglebius	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2782290001Sglebius  alias in your environment" "$LINENO" 5
2783290001Sglebius     fi
2784290001Sglebius     if test "$2" = conftest.file || test $am_try -eq 2; then
2785290001Sglebius       break
2786290001Sglebius     fi
2787290001Sglebius     # Just in case.
2788290001Sglebius     sleep 1
2789290001Sglebius     am_has_slept=yes
2790290001Sglebius   done
2791290001Sglebius   test "$2" = conftest.file
2792290001Sglebius   )
2793290001Sglebiusthen
2794290001Sglebius   # Ok.
2795290001Sglebius   :
2796290001Sglebiuselse
2797290001Sglebius   as_fn_error $? "newly created file is older than distributed files!
2798290001SglebiusCheck your system clock" "$LINENO" 5
2799290001Sglebiusfi
2800290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2801290001Sglebius$as_echo "yes" >&6; }
2802290001Sglebius# If we didn't sleep, we still need to ensure time stamps of config.status and
2803290001Sglebius# generated files are strictly newer.
2804290001Sglebiusam_sleep_pid=
2805290001Sglebiusif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2806290001Sglebius  ( sleep 1 ) &
2807290001Sglebius  am_sleep_pid=$!
2808290001Sglebiusfi
2809290001Sglebius
2810290001Sglebiusrm -f conftest.file
2811290001Sglebius
2812290001Sglebiustest "$program_prefix" != NONE &&
2813290001Sglebius  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2814290001Sglebius# Use a double $ so make ignores it.
2815290001Sglebiustest "$program_suffix" != NONE &&
2816290001Sglebius  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2817290001Sglebius# Double any \ or $.
2818290001Sglebius# By default was `s,x,x', remove it if useless.
2819290001Sglebiusac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2820290001Sglebiusprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2821290001Sglebius
2822290001Sglebius# Expand $ac_aux_dir to an absolute path.
2823290001Sglebiusam_aux_dir=`cd "$ac_aux_dir" && pwd`
2824290001Sglebius
2825290001Sglebiusif test x"${MISSING+set}" != xset; then
2826290001Sglebius  case $am_aux_dir in
2827290001Sglebius  *\ * | *\	*)
2828290001Sglebius    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2829290001Sglebius  *)
2830290001Sglebius    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2831290001Sglebius  esac
2832290001Sglebiusfi
2833290001Sglebius# Use eval to expand $SHELL
2834290001Sglebiusif eval "$MISSING --is-lightweight"; then
2835290001Sglebius  am_missing_run="$MISSING "
2836290001Sglebiuselse
2837290001Sglebius  am_missing_run=
2838290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2839290001Sglebius$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2840290001Sglebiusfi
2841290001Sglebius
2842290001Sglebiusif test x"${install_sh+set}" != xset; then
2843290001Sglebius  case $am_aux_dir in
2844290001Sglebius  *\ * | *\	*)
2845290001Sglebius    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2846290001Sglebius  *)
2847290001Sglebius    install_sh="\${SHELL} $am_aux_dir/install-sh"
2848290001Sglebius  esac
2849290001Sglebiusfi
2850290001Sglebius
2851290001Sglebius# Installed binaries are usually stripped using 'strip' when the user
2852290001Sglebius# run "make install-strip".  However 'strip' might not be the right
2853290001Sglebius# tool to use in cross-compilation environments, therefore Automake
2854290001Sglebius# will honor the 'STRIP' environment variable to overrule this program.
2855290001Sglebiusif test "$cross_compiling" != no; then
2856290001Sglebius  if test -n "$ac_tool_prefix"; then
2857290001Sglebius  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2858290001Sglebiusset dummy ${ac_tool_prefix}strip; ac_word=$2
2859290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
2861290001Sglebiusif ${ac_cv_prog_STRIP+:} false; then :
2862290001Sglebius  $as_echo_n "(cached) " >&6
2863290001Sglebiuselse
2864290001Sglebius  if test -n "$STRIP"; then
2865290001Sglebius  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2866290001Sglebiuselse
2867290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868290001Sglebiusfor as_dir in $PATH
2869290001Sglebiusdo
2870290001Sglebius  IFS=$as_save_IFS
2871290001Sglebius  test -z "$as_dir" && as_dir=.
2872290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
2873290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874290001Sglebius    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2875290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876290001Sglebius    break 2
2877290001Sglebius  fi
2878290001Sglebiusdone
2879290001Sglebius  done
2880290001SglebiusIFS=$as_save_IFS
2881290001Sglebius
2882290001Sglebiusfi
2883290001Sglebiusfi
2884290001SglebiusSTRIP=$ac_cv_prog_STRIP
2885290001Sglebiusif test -n "$STRIP"; then
2886290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2887290001Sglebius$as_echo "$STRIP" >&6; }
2888290001Sglebiuselse
2889290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890290001Sglebius$as_echo "no" >&6; }
2891290001Sglebiusfi
2892290001Sglebius
2893290001Sglebius
2894290001Sglebiusfi
2895290001Sglebiusif test -z "$ac_cv_prog_STRIP"; then
2896290001Sglebius  ac_ct_STRIP=$STRIP
2897290001Sglebius  # Extract the first word of "strip", so it can be a program name with args.
2898290001Sglebiusset dummy strip; ac_word=$2
2899290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
2901290001Sglebiusif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2902290001Sglebius  $as_echo_n "(cached) " >&6
2903290001Sglebiuselse
2904290001Sglebius  if test -n "$ac_ct_STRIP"; then
2905290001Sglebius  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2906290001Sglebiuselse
2907290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908290001Sglebiusfor as_dir in $PATH
2909290001Sglebiusdo
2910290001Sglebius  IFS=$as_save_IFS
2911290001Sglebius  test -z "$as_dir" && as_dir=.
2912290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
2913290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914290001Sglebius    ac_cv_prog_ac_ct_STRIP="strip"
2915290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916290001Sglebius    break 2
2917290001Sglebius  fi
2918290001Sglebiusdone
2919290001Sglebius  done
2920290001SglebiusIFS=$as_save_IFS
2921290001Sglebius
2922290001Sglebiusfi
2923290001Sglebiusfi
2924290001Sglebiusac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2925290001Sglebiusif test -n "$ac_ct_STRIP"; then
2926290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2927290001Sglebius$as_echo "$ac_ct_STRIP" >&6; }
2928290001Sglebiuselse
2929290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930290001Sglebius$as_echo "no" >&6; }
2931290001Sglebiusfi
2932290001Sglebius
2933290001Sglebius  if test "x$ac_ct_STRIP" = x; then
2934290001Sglebius    STRIP=":"
2935290001Sglebius  else
2936290001Sglebius    case $cross_compiling:$ac_tool_warned in
2937290001Sglebiusyes:)
2938290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940290001Sglebiusac_tool_warned=yes ;;
2941290001Sglebiusesac
2942290001Sglebius    STRIP=$ac_ct_STRIP
2943290001Sglebius  fi
2944290001Sglebiuselse
2945290001Sglebius  STRIP="$ac_cv_prog_STRIP"
2946290001Sglebiusfi
2947290001Sglebius
2948290001Sglebiusfi
2949290001SglebiusINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2950290001Sglebius
2951290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2952290001Sglebius$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2953290001Sglebiusif test -z "$MKDIR_P"; then
2954290001Sglebius  if ${ac_cv_path_mkdir+:} false; then :
2955290001Sglebius  $as_echo_n "(cached) " >&6
2956290001Sglebiuselse
2957290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958290001Sglebiusfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2959290001Sglebiusdo
2960290001Sglebius  IFS=$as_save_IFS
2961290001Sglebius  test -z "$as_dir" && as_dir=.
2962290001Sglebius    for ac_prog in mkdir gmkdir; do
2963290001Sglebius	 for ac_exec_ext in '' $ac_executable_extensions; do
2964290001Sglebius	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2965290001Sglebius	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2966290001Sglebius	     'mkdir (GNU coreutils) '* | \
2967290001Sglebius	     'mkdir (coreutils) '* | \
2968290001Sglebius	     'mkdir (fileutils) '4.1*)
2969290001Sglebius	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2970290001Sglebius	       break 3;;
2971290001Sglebius	   esac
2972290001Sglebius	 done
2973290001Sglebius       done
2974290001Sglebius  done
2975290001SglebiusIFS=$as_save_IFS
2976290001Sglebius
2977290001Sglebiusfi
2978290001Sglebius
2979290001Sglebius  test -d ./--version && rmdir ./--version
2980290001Sglebius  if test "${ac_cv_path_mkdir+set}" = set; then
2981290001Sglebius    MKDIR_P="$ac_cv_path_mkdir -p"
2982290001Sglebius  else
2983290001Sglebius    # As a last resort, use the slow shell script.  Don't cache a
2984290001Sglebius    # value for MKDIR_P within a source directory, because that will
2985290001Sglebius    # break other packages using the cache if that directory is
2986290001Sglebius    # removed, or if the value is a relative name.
2987290001Sglebius    MKDIR_P="$ac_install_sh -d"
2988290001Sglebius  fi
2989290001Sglebiusfi
2990290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2991290001Sglebius$as_echo "$MKDIR_P" >&6; }
2992290001Sglebius
2993290001Sglebiusfor ac_prog in gawk mawk nawk awk
2994290001Sglebiusdo
2995290001Sglebius  # Extract the first word of "$ac_prog", so it can be a program name with args.
2996290001Sglebiusset dummy $ac_prog; ac_word=$2
2997290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
2999290001Sglebiusif ${ac_cv_prog_AWK+:} false; then :
3000290001Sglebius  $as_echo_n "(cached) " >&6
3001290001Sglebiuselse
3002290001Sglebius  if test -n "$AWK"; then
3003290001Sglebius  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004290001Sglebiuselse
3005290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006290001Sglebiusfor as_dir in $PATH
3007290001Sglebiusdo
3008290001Sglebius  IFS=$as_save_IFS
3009290001Sglebius  test -z "$as_dir" && as_dir=.
3010290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
3011290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012290001Sglebius    ac_cv_prog_AWK="$ac_prog"
3013290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014290001Sglebius    break 2
3015290001Sglebius  fi
3016290001Sglebiusdone
3017290001Sglebius  done
3018290001SglebiusIFS=$as_save_IFS
3019290001Sglebius
3020290001Sglebiusfi
3021290001Sglebiusfi
3022290001SglebiusAWK=$ac_cv_prog_AWK
3023290001Sglebiusif test -n "$AWK"; then
3024290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025290001Sglebius$as_echo "$AWK" >&6; }
3026290001Sglebiuselse
3027290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028290001Sglebius$as_echo "no" >&6; }
3029290001Sglebiusfi
3030290001Sglebius
3031290001Sglebius
3032290001Sglebius  test -n "$AWK" && break
3033290001Sglebiusdone
3034290001Sglebius
3035290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3036290001Sglebius$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3037290001Sglebiusset x ${MAKE-make}
3038290001Sglebiusac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3039290001Sglebiusif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3040290001Sglebius  $as_echo_n "(cached) " >&6
3041290001Sglebiuselse
3042290001Sglebius  cat >conftest.make <<\_ACEOF
3043290001SglebiusSHELL = /bin/sh
3044290001Sglebiusall:
3045290001Sglebius	@echo '@@@%%%=$(MAKE)=@@@%%%'
3046290001Sglebius_ACEOF
3047290001Sglebius# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3048290001Sglebiuscase `${MAKE-make} -f conftest.make 2>/dev/null` in
3049290001Sglebius  *@@@%%%=?*=@@@%%%*)
3050290001Sglebius    eval ac_cv_prog_make_${ac_make}_set=yes;;
3051290001Sglebius  *)
3052290001Sglebius    eval ac_cv_prog_make_${ac_make}_set=no;;
3053290001Sglebiusesac
3054290001Sglebiusrm -f conftest.make
3055290001Sglebiusfi
3056290001Sglebiusif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3057290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058290001Sglebius$as_echo "yes" >&6; }
3059290001Sglebius  SET_MAKE=
3060290001Sglebiuselse
3061290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062290001Sglebius$as_echo "no" >&6; }
3063290001Sglebius  SET_MAKE="MAKE=${MAKE-make}"
3064290001Sglebiusfi
3065290001Sglebius
3066290001Sglebiusrm -rf .tst 2>/dev/null
3067290001Sglebiusmkdir .tst 2>/dev/null
3068290001Sglebiusif test -d .tst; then
3069290001Sglebius  am__leading_dot=.
3070290001Sglebiuselse
3071290001Sglebius  am__leading_dot=_
3072290001Sglebiusfi
3073290001Sglebiusrmdir .tst 2>/dev/null
3074290001Sglebius
3075290001Sglebius# Check whether --enable-silent-rules was given.
3076290001Sglebiusif test "${enable_silent_rules+set}" = set; then :
3077290001Sglebius  enableval=$enable_silent_rules;
3078290001Sglebiusfi
3079290001Sglebius
3080290001Sglebiuscase $enable_silent_rules in # (((
3081290001Sglebius  yes) AM_DEFAULT_VERBOSITY=0;;
3082290001Sglebius   no) AM_DEFAULT_VERBOSITY=1;;
3083290001Sglebius    *) AM_DEFAULT_VERBOSITY=1;;
3084290001Sglebiusesac
3085290001Sglebiusam_make=${MAKE-make}
3086290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3087290001Sglebius$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3088290001Sglebiusif ${am_cv_make_support_nested_variables+:} false; then :
3089290001Sglebius  $as_echo_n "(cached) " >&6
3090290001Sglebiuselse
3091290001Sglebius  if $as_echo 'TRUE=$(BAR$(V))
3092290001SglebiusBAR0=false
3093290001SglebiusBAR1=true
3094290001SglebiusV=1
3095290001Sglebiusam__doit:
3096290001Sglebius	@$(TRUE)
3097290001Sglebius.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3098290001Sglebius  am_cv_make_support_nested_variables=yes
3099290001Sglebiuselse
3100290001Sglebius  am_cv_make_support_nested_variables=no
3101290001Sglebiusfi
3102290001Sglebiusfi
3103290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3104290001Sglebius$as_echo "$am_cv_make_support_nested_variables" >&6; }
3105290001Sglebiusif test $am_cv_make_support_nested_variables = yes; then
3106290001Sglebius    AM_V='$(V)'
3107290001Sglebius  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3108290001Sglebiuselse
3109290001Sglebius  AM_V=$AM_DEFAULT_VERBOSITY
3110290001Sglebius  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3111290001Sglebiusfi
3112290001SglebiusAM_BACKSLASH='\'
3113290001Sglebius
3114290001Sglebiusif test "`cd $srcdir && pwd`" != "`pwd`"; then
3115290001Sglebius  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3116290001Sglebius  # is not polluted with repeated "-I."
3117290001Sglebius  am__isrc=' -I$(srcdir)'
3118290001Sglebius  # test to see if srcdir already configured
3119290001Sglebius  if test -f $srcdir/config.status; then
3120290001Sglebius    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3121290001Sglebius  fi
3122290001Sglebiusfi
3123290001Sglebius
3124290001Sglebius# test whether we have cygpath
3125290001Sglebiusif test -z "$CYGPATH_W"; then
3126290001Sglebius  if (cygpath --version) >/dev/null 2>/dev/null; then
3127290001Sglebius    CYGPATH_W='cygpath -w'
3128290001Sglebius  else
3129290001Sglebius    CYGPATH_W=echo
3130290001Sglebius  fi
3131290001Sglebiusfi
3132290001Sglebius
3133290001Sglebius
3134290001Sglebius# Define the identity of the package.
3135290001Sglebius PACKAGE='libevent'
3136290001Sglebius VERSION='2.1.5-beta'
3137290001Sglebius
3138290001Sglebius
3139290001Sglebiuscat >>confdefs.h <<_ACEOF
3140290001Sglebius#define PACKAGE "$PACKAGE"
3141290001Sglebius_ACEOF
3142290001Sglebius
3143290001Sglebius
3144290001Sglebiuscat >>confdefs.h <<_ACEOF
3145290001Sglebius#define VERSION "$VERSION"
3146290001Sglebius_ACEOF
3147290001Sglebius
3148290001Sglebius# Some tools Automake needs.
3149290001Sglebius
3150290001SglebiusACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3151290001Sglebius
3152290001Sglebius
3153290001SglebiusAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3154290001Sglebius
3155290001Sglebius
3156290001SglebiusAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3157290001Sglebius
3158290001Sglebius
3159290001SglebiusAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3160290001Sglebius
3161290001Sglebius
3162290001SglebiusMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3163290001Sglebius
3164290001Sglebius# For better backward compatibility.  To be removed once Automake 1.9.x
3165290001Sglebius# dies out for good.  For more background, see:
3166290001Sglebius# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3167290001Sglebius# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3168290001Sglebiusmkdir_p='$(MKDIR_P)'
3169290001Sglebius
3170290001Sglebius# We need awk for the "check" target (and possibly the TAP driver).  The
3171290001Sglebius# system "awk" is bad on some platforms.
3172290001Sglebius# Always define AMTAR for backward compatibility.  Yes, it's still used
3173290001Sglebius# in the wild :-(  We should find a proper way to deprecate it ...
3174290001SglebiusAMTAR='$${TAR-tar}'
3175290001Sglebius
3176290001Sglebius
3177290001Sglebius# We'll loop over all known methods to create a tar archive until one works.
3178290001Sglebius_am_tools='gnutar  pax cpio none'
3179290001Sglebius
3180290001Sglebiusam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3181290001Sglebius
3182290001Sglebius
3183290001Sglebius
3184290001Sglebius
3185290001Sglebius
3186290001Sglebius
3187290001Sglebius# POSIX will say in a future version that running "rm -f" with no argument
3188290001Sglebius# is OK; and we want to be able to make that assumption in our Makefile
3189290001Sglebius# recipes.  So use an aggressive probe to check that the usage we want is
3190290001Sglebius# actually supported "in the wild" to an acceptable degree.
3191290001Sglebius# See automake bug#10828.
3192290001Sglebius# To make any issue more visible, cause the running configure to be aborted
3193290001Sglebius# by default if the 'rm' program in use doesn't match our expectations; the
3194290001Sglebius# user can still override this though.
3195290001Sglebiusif rm -f && rm -fr && rm -rf; then : OK; else
3196290001Sglebius  cat >&2 <<'END'
3197290001SglebiusOops!
3198290001Sglebius
3199290001SglebiusYour 'rm' program seems unable to run without file operands specified
3200290001Sglebiuson the command line, even when the '-f' option is present.  This is contrary
3201290001Sglebiusto the behaviour of most rm programs out there, and not conforming with
3202290001Sglebiusthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3203290001Sglebius
3204290001SglebiusPlease tell bug-automake@gnu.org about your system, including the value
3205290001Sglebiusof your $PATH and any error possibly output before this message.  This
3206290001Sglebiuscan help us improve future automake versions.
3207290001Sglebius
3208290001SglebiusEND
3209290001Sglebius  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3210290001Sglebius    echo 'Configuration will proceed anyway, since you have set the' >&2
3211290001Sglebius    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3212290001Sglebius    echo >&2
3213290001Sglebius  else
3214290001Sglebius    cat >&2 <<'END'
3215290001SglebiusAborting the configuration process, to ensure you take notice of the issue.
3216290001Sglebius
3217290001SglebiusYou can download and install GNU coreutils to get an 'rm' implementation
3218290001Sglebiusthat behaves properly: <http://www.gnu.org/software/coreutils/>.
3219290001Sglebius
3220290001SglebiusIf you want to complete the configuration process using your problematic
3221290001Sglebius'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3222290001Sglebiusto "yes", and re-run configure.
3223290001Sglebius
3224290001SglebiusEND
3225290001Sglebius    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3226290001Sglebius  fi
3227290001Sglebiusfi
3228290001Sglebius
3229290001Sglebius# Check whether --enable-silent-rules was given.
3230290001Sglebiusif test "${enable_silent_rules+set}" = set; then :
3231290001Sglebius  enableval=$enable_silent_rules;
3232290001Sglebiusfi
3233290001Sglebius
3234290001Sglebiuscase $enable_silent_rules in # (((
3235290001Sglebius  yes) AM_DEFAULT_VERBOSITY=0;;
3236290001Sglebius   no) AM_DEFAULT_VERBOSITY=1;;
3237290001Sglebius    *) AM_DEFAULT_VERBOSITY=0;;
3238290001Sglebiusesac
3239290001Sglebiusam_make=${MAKE-make}
3240290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3241290001Sglebius$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3242290001Sglebiusif ${am_cv_make_support_nested_variables+:} false; then :
3243290001Sglebius  $as_echo_n "(cached) " >&6
3244290001Sglebiuselse
3245290001Sglebius  if $as_echo 'TRUE=$(BAR$(V))
3246290001SglebiusBAR0=false
3247290001SglebiusBAR1=true
3248290001SglebiusV=1
3249290001Sglebiusam__doit:
3250290001Sglebius	@$(TRUE)
3251290001Sglebius.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3252290001Sglebius  am_cv_make_support_nested_variables=yes
3253290001Sglebiuselse
3254290001Sglebius  am_cv_make_support_nested_variables=no
3255290001Sglebiusfi
3256290001Sglebiusfi
3257290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3258290001Sglebius$as_echo "$am_cv_make_support_nested_variables" >&6; }
3259290001Sglebiusif test $am_cv_make_support_nested_variables = yes; then
3260290001Sglebius    AM_V='$(V)'
3261290001Sglebius  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3262290001Sglebiuselse
3263290001Sglebius  AM_V=$AM_DEFAULT_VERBOSITY
3264290001Sglebius  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3265290001Sglebiusfi
3266290001SglebiusAM_BACKSLASH='\'
3267290001Sglebius
3268290001Sglebiusac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3269290001Sglebius
3270290001Sglebius
3271290001Sglebius$as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h
3272290001Sglebius
3273290001Sglebius
3274290001Sglebiusif test "$prefix" = "NONE"; then
3275290001Sglebius   prefix="/usr/local"
3276290001Sglebiusfi
3277290001Sglebius
3278290001Sglebius
3279290001Sglebius# Make sure we can run config.sub.
3280290001Sglebius$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3281290001Sglebius  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3282290001Sglebius
3283290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3284290001Sglebius$as_echo_n "checking build system type... " >&6; }
3285290001Sglebiusif ${ac_cv_build+:} false; then :
3286290001Sglebius  $as_echo_n "(cached) " >&6
3287290001Sglebiuselse
3288290001Sglebius  ac_build_alias=$build_alias
3289290001Sglebiustest "x$ac_build_alias" = x &&
3290290001Sglebius  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3291290001Sglebiustest "x$ac_build_alias" = x &&
3292290001Sglebius  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3293290001Sglebiusac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3294290001Sglebius  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3295290001Sglebius
3296290001Sglebiusfi
3297290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3298290001Sglebius$as_echo "$ac_cv_build" >&6; }
3299290001Sglebiuscase $ac_cv_build in
3300290001Sglebius*-*-*) ;;
3301290001Sglebius*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3302290001Sglebiusesac
3303290001Sglebiusbuild=$ac_cv_build
3304290001Sglebiusac_save_IFS=$IFS; IFS='-'
3305290001Sglebiusset x $ac_cv_build
3306290001Sglebiusshift
3307290001Sglebiusbuild_cpu=$1
3308290001Sglebiusbuild_vendor=$2
3309290001Sglebiusshift; shift
3310290001Sglebius# Remember, the first character of IFS is used to create $*,
3311290001Sglebius# except with old shells:
3312290001Sglebiusbuild_os=$*
3313290001SglebiusIFS=$ac_save_IFS
3314290001Sglebiuscase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3315290001Sglebius
3316290001Sglebius
3317290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3318290001Sglebius$as_echo_n "checking host system type... " >&6; }
3319290001Sglebiusif ${ac_cv_host+:} false; then :
3320290001Sglebius  $as_echo_n "(cached) " >&6
3321290001Sglebiuselse
3322290001Sglebius  if test "x$host_alias" = x; then
3323290001Sglebius  ac_cv_host=$ac_cv_build
3324290001Sglebiuselse
3325290001Sglebius  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3326290001Sglebius    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3327290001Sglebiusfi
3328290001Sglebius
3329290001Sglebiusfi
3330290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3331290001Sglebius$as_echo "$ac_cv_host" >&6; }
3332290001Sglebiuscase $ac_cv_host in
3333290001Sglebius*-*-*) ;;
3334290001Sglebius*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3335290001Sglebiusesac
3336290001Sglebiushost=$ac_cv_host
3337290001Sglebiusac_save_IFS=$IFS; IFS='-'
3338290001Sglebiusset x $ac_cv_host
3339290001Sglebiusshift
3340290001Sglebiushost_cpu=$1
3341290001Sglebiushost_vendor=$2
3342290001Sglebiusshift; shift
3343290001Sglebius# Remember, the first character of IFS is used to create $*,
3344290001Sglebius# except with old shells:
3345290001Sglebiushost_os=$*
3346290001SglebiusIFS=$ac_save_IFS
3347290001Sglebiuscase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3348290001Sglebius
3349290001Sglebius
3350290001SglebiusDEPDIR="${am__leading_dot}deps"
3351290001Sglebius
3352290001Sglebiusac_config_commands="$ac_config_commands depfiles"
3353290001Sglebius
3354290001Sglebius
3355290001Sglebiusam_make=${MAKE-make}
3356290001Sglebiuscat > confinc << 'END'
3357290001Sglebiusam__doit:
3358290001Sglebius	@echo this is the am__doit target
3359290001Sglebius.PHONY: am__doit
3360290001SglebiusEND
3361290001Sglebius# If we don't find an include directive, just comment out the code.
3362290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3363290001Sglebius$as_echo_n "checking for style of include used by $am_make... " >&6; }
3364290001Sglebiusam__include="#"
3365290001Sglebiusam__quote=
3366290001Sglebius_am_result=none
3367290001Sglebius# First try GNU make style include.
3368290001Sglebiusecho "include confinc" > confmf
3369290001Sglebius# Ignore all kinds of additional output from 'make'.
3370290001Sglebiuscase `$am_make -s -f confmf 2> /dev/null` in #(
3371290001Sglebius*the\ am__doit\ target*)
3372290001Sglebius  am__include=include
3373290001Sglebius  am__quote=
3374290001Sglebius  _am_result=GNU
3375290001Sglebius  ;;
3376290001Sglebiusesac
3377290001Sglebius# Now try BSD make style include.
3378290001Sglebiusif test "$am__include" = "#"; then
3379290001Sglebius   echo '.include "confinc"' > confmf
3380290001Sglebius   case `$am_make -s -f confmf 2> /dev/null` in #(
3381290001Sglebius   *the\ am__doit\ target*)
3382290001Sglebius     am__include=.include
3383290001Sglebius     am__quote="\""
3384290001Sglebius     _am_result=BSD
3385290001Sglebius     ;;
3386290001Sglebius   esac
3387290001Sglebiusfi
3388290001Sglebius
3389290001Sglebius
3390290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3391290001Sglebius$as_echo "$_am_result" >&6; }
3392290001Sglebiusrm -f confinc confmf
3393290001Sglebius
3394290001Sglebius# Check whether --enable-dependency-tracking was given.
3395290001Sglebiusif test "${enable_dependency_tracking+set}" = set; then :
3396290001Sglebius  enableval=$enable_dependency_tracking;
3397290001Sglebiusfi
3398290001Sglebius
3399290001Sglebiusif test "x$enable_dependency_tracking" != xno; then
3400290001Sglebius  am_depcomp="$ac_aux_dir/depcomp"
3401290001Sglebius  AMDEPBACKSLASH='\'
3402290001Sglebius  am__nodep='_no'
3403290001Sglebiusfi
3404290001Sglebius if test "x$enable_dependency_tracking" != xno; then
3405290001Sglebius  AMDEP_TRUE=
3406290001Sglebius  AMDEP_FALSE='#'
3407290001Sglebiuselse
3408290001Sglebius  AMDEP_TRUE='#'
3409290001Sglebius  AMDEP_FALSE=
3410290001Sglebiusfi
3411290001Sglebius
3412290001Sglebius
3413290001Sglebiusac_ext=c
3414290001Sglebiusac_cpp='$CPP $CPPFLAGS'
3415290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
3418290001Sglebiusif test -n "$ac_tool_prefix"; then
3419290001Sglebius  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3420290001Sglebiusset dummy ${ac_tool_prefix}gcc; ac_word=$2
3421290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
3423290001Sglebiusif ${ac_cv_prog_CC+:} false; then :
3424290001Sglebius  $as_echo_n "(cached) " >&6
3425290001Sglebiuselse
3426290001Sglebius  if test -n "$CC"; then
3427290001Sglebius  ac_cv_prog_CC="$CC" # Let the user override the test.
3428290001Sglebiuselse
3429290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430290001Sglebiusfor as_dir in $PATH
3431290001Sglebiusdo
3432290001Sglebius  IFS=$as_save_IFS
3433290001Sglebius  test -z "$as_dir" && as_dir=.
3434290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
3435290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436290001Sglebius    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3437290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438290001Sglebius    break 2
3439290001Sglebius  fi
3440290001Sglebiusdone
3441290001Sglebius  done
3442290001SglebiusIFS=$as_save_IFS
3443290001Sglebius
3444290001Sglebiusfi
3445290001Sglebiusfi
3446290001SglebiusCC=$ac_cv_prog_CC
3447290001Sglebiusif test -n "$CC"; then
3448290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449290001Sglebius$as_echo "$CC" >&6; }
3450290001Sglebiuselse
3451290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452290001Sglebius$as_echo "no" >&6; }
3453290001Sglebiusfi
3454290001Sglebius
3455290001Sglebius
3456290001Sglebiusfi
3457290001Sglebiusif test -z "$ac_cv_prog_CC"; then
3458290001Sglebius  ac_ct_CC=$CC
3459290001Sglebius  # Extract the first word of "gcc", so it can be a program name with args.
3460290001Sglebiusset dummy gcc; ac_word=$2
3461290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
3463290001Sglebiusif ${ac_cv_prog_ac_ct_CC+:} false; then :
3464290001Sglebius  $as_echo_n "(cached) " >&6
3465290001Sglebiuselse
3466290001Sglebius  if test -n "$ac_ct_CC"; then
3467290001Sglebius  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468290001Sglebiuselse
3469290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470290001Sglebiusfor as_dir in $PATH
3471290001Sglebiusdo
3472290001Sglebius  IFS=$as_save_IFS
3473290001Sglebius  test -z "$as_dir" && as_dir=.
3474290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
3475290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476290001Sglebius    ac_cv_prog_ac_ct_CC="gcc"
3477290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478290001Sglebius    break 2
3479290001Sglebius  fi
3480290001Sglebiusdone
3481290001Sglebius  done
3482290001SglebiusIFS=$as_save_IFS
3483290001Sglebius
3484290001Sglebiusfi
3485290001Sglebiusfi
3486290001Sglebiusac_ct_CC=$ac_cv_prog_ac_ct_CC
3487290001Sglebiusif test -n "$ac_ct_CC"; then
3488290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489290001Sglebius$as_echo "$ac_ct_CC" >&6; }
3490290001Sglebiuselse
3491290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492290001Sglebius$as_echo "no" >&6; }
3493290001Sglebiusfi
3494290001Sglebius
3495290001Sglebius  if test "x$ac_ct_CC" = x; then
3496290001Sglebius    CC=""
3497290001Sglebius  else
3498290001Sglebius    case $cross_compiling:$ac_tool_warned in
3499290001Sglebiusyes:)
3500290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502290001Sglebiusac_tool_warned=yes ;;
3503290001Sglebiusesac
3504290001Sglebius    CC=$ac_ct_CC
3505290001Sglebius  fi
3506290001Sglebiuselse
3507290001Sglebius  CC="$ac_cv_prog_CC"
3508290001Sglebiusfi
3509290001Sglebius
3510290001Sglebiusif test -z "$CC"; then
3511290001Sglebius          if test -n "$ac_tool_prefix"; then
3512290001Sglebius    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513290001Sglebiusset dummy ${ac_tool_prefix}cc; ac_word=$2
3514290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
3516290001Sglebiusif ${ac_cv_prog_CC+:} false; then :
3517290001Sglebius  $as_echo_n "(cached) " >&6
3518290001Sglebiuselse
3519290001Sglebius  if test -n "$CC"; then
3520290001Sglebius  ac_cv_prog_CC="$CC" # Let the user override the test.
3521290001Sglebiuselse
3522290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523290001Sglebiusfor as_dir in $PATH
3524290001Sglebiusdo
3525290001Sglebius  IFS=$as_save_IFS
3526290001Sglebius  test -z "$as_dir" && as_dir=.
3527290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
3528290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529290001Sglebius    ac_cv_prog_CC="${ac_tool_prefix}cc"
3530290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531290001Sglebius    break 2
3532290001Sglebius  fi
3533290001Sglebiusdone
3534290001Sglebius  done
3535290001SglebiusIFS=$as_save_IFS
3536290001Sglebius
3537290001Sglebiusfi
3538290001Sglebiusfi
3539290001SglebiusCC=$ac_cv_prog_CC
3540290001Sglebiusif test -n "$CC"; then
3541290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542290001Sglebius$as_echo "$CC" >&6; }
3543290001Sglebiuselse
3544290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545290001Sglebius$as_echo "no" >&6; }
3546290001Sglebiusfi
3547290001Sglebius
3548290001Sglebius
3549290001Sglebius  fi
3550290001Sglebiusfi
3551290001Sglebiusif test -z "$CC"; then
3552290001Sglebius  # Extract the first word of "cc", so it can be a program name with args.
3553290001Sglebiusset dummy cc; ac_word=$2
3554290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
3556290001Sglebiusif ${ac_cv_prog_CC+:} false; then :
3557290001Sglebius  $as_echo_n "(cached) " >&6
3558290001Sglebiuselse
3559290001Sglebius  if test -n "$CC"; then
3560290001Sglebius  ac_cv_prog_CC="$CC" # Let the user override the test.
3561290001Sglebiuselse
3562290001Sglebius  ac_prog_rejected=no
3563290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564290001Sglebiusfor as_dir in $PATH
3565290001Sglebiusdo
3566290001Sglebius  IFS=$as_save_IFS
3567290001Sglebius  test -z "$as_dir" && as_dir=.
3568290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
3569290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570290001Sglebius    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3571290001Sglebius       ac_prog_rejected=yes
3572290001Sglebius       continue
3573290001Sglebius     fi
3574290001Sglebius    ac_cv_prog_CC="cc"
3575290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576290001Sglebius    break 2
3577290001Sglebius  fi
3578290001Sglebiusdone
3579290001Sglebius  done
3580290001SglebiusIFS=$as_save_IFS
3581290001Sglebius
3582290001Sglebiusif test $ac_prog_rejected = yes; then
3583290001Sglebius  # We found a bogon in the path, so make sure we never use it.
3584290001Sglebius  set dummy $ac_cv_prog_CC
3585290001Sglebius  shift
3586290001Sglebius  if test $# != 0; then
3587290001Sglebius    # We chose a different compiler from the bogus one.
3588290001Sglebius    # However, it has the same basename, so the bogon will be chosen
3589290001Sglebius    # first if we set CC to just the basename; use the full file name.
3590290001Sglebius    shift
3591290001Sglebius    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3592290001Sglebius  fi
3593290001Sglebiusfi
3594290001Sglebiusfi
3595290001Sglebiusfi
3596290001SglebiusCC=$ac_cv_prog_CC
3597290001Sglebiusif test -n "$CC"; then
3598290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599290001Sglebius$as_echo "$CC" >&6; }
3600290001Sglebiuselse
3601290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602290001Sglebius$as_echo "no" >&6; }
3603290001Sglebiusfi
3604290001Sglebius
3605290001Sglebius
3606290001Sglebiusfi
3607290001Sglebiusif test -z "$CC"; then
3608290001Sglebius  if test -n "$ac_tool_prefix"; then
3609290001Sglebius  for ac_prog in cl.exe
3610290001Sglebius  do
3611290001Sglebius    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3612290001Sglebiusset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3613290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
3615290001Sglebiusif ${ac_cv_prog_CC+:} false; then :
3616290001Sglebius  $as_echo_n "(cached) " >&6
3617290001Sglebiuselse
3618290001Sglebius  if test -n "$CC"; then
3619290001Sglebius  ac_cv_prog_CC="$CC" # Let the user override the test.
3620290001Sglebiuselse
3621290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622290001Sglebiusfor as_dir in $PATH
3623290001Sglebiusdo
3624290001Sglebius  IFS=$as_save_IFS
3625290001Sglebius  test -z "$as_dir" && as_dir=.
3626290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
3627290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628290001Sglebius    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3629290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630290001Sglebius    break 2
3631290001Sglebius  fi
3632290001Sglebiusdone
3633290001Sglebius  done
3634290001SglebiusIFS=$as_save_IFS
3635290001Sglebius
3636290001Sglebiusfi
3637290001Sglebiusfi
3638290001SglebiusCC=$ac_cv_prog_CC
3639290001Sglebiusif test -n "$CC"; then
3640290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641290001Sglebius$as_echo "$CC" >&6; }
3642290001Sglebiuselse
3643290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644290001Sglebius$as_echo "no" >&6; }
3645290001Sglebiusfi
3646290001Sglebius
3647290001Sglebius
3648290001Sglebius    test -n "$CC" && break
3649290001Sglebius  done
3650290001Sglebiusfi
3651290001Sglebiusif test -z "$CC"; then
3652290001Sglebius  ac_ct_CC=$CC
3653290001Sglebius  for ac_prog in cl.exe
3654290001Sglebiusdo
3655290001Sglebius  # Extract the first word of "$ac_prog", so it can be a program name with args.
3656290001Sglebiusset dummy $ac_prog; ac_word=$2
3657290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
3659290001Sglebiusif ${ac_cv_prog_ac_ct_CC+:} false; then :
3660290001Sglebius  $as_echo_n "(cached) " >&6
3661290001Sglebiuselse
3662290001Sglebius  if test -n "$ac_ct_CC"; then
3663290001Sglebius  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3664290001Sglebiuselse
3665290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666290001Sglebiusfor as_dir in $PATH
3667290001Sglebiusdo
3668290001Sglebius  IFS=$as_save_IFS
3669290001Sglebius  test -z "$as_dir" && as_dir=.
3670290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
3671290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672290001Sglebius    ac_cv_prog_ac_ct_CC="$ac_prog"
3673290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674290001Sglebius    break 2
3675290001Sglebius  fi
3676290001Sglebiusdone
3677290001Sglebius  done
3678290001SglebiusIFS=$as_save_IFS
3679290001Sglebius
3680290001Sglebiusfi
3681290001Sglebiusfi
3682290001Sglebiusac_ct_CC=$ac_cv_prog_ac_ct_CC
3683290001Sglebiusif test -n "$ac_ct_CC"; then
3684290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685290001Sglebius$as_echo "$ac_ct_CC" >&6; }
3686290001Sglebiuselse
3687290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688290001Sglebius$as_echo "no" >&6; }
3689290001Sglebiusfi
3690290001Sglebius
3691290001Sglebius
3692290001Sglebius  test -n "$ac_ct_CC" && break
3693290001Sglebiusdone
3694290001Sglebius
3695290001Sglebius  if test "x$ac_ct_CC" = x; then
3696290001Sglebius    CC=""
3697290001Sglebius  else
3698290001Sglebius    case $cross_compiling:$ac_tool_warned in
3699290001Sglebiusyes:)
3700290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702290001Sglebiusac_tool_warned=yes ;;
3703290001Sglebiusesac
3704290001Sglebius    CC=$ac_ct_CC
3705290001Sglebius  fi
3706290001Sglebiusfi
3707290001Sglebius
3708290001Sglebiusfi
3709290001Sglebius
3710290001Sglebius
3711290001Sglebiustest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713290001Sglebiusas_fn_error $? "no acceptable C compiler found in \$PATH
3714290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
3715290001Sglebius
3716290001Sglebius# Provide some information about the compiler.
3717290001Sglebius$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3718290001Sglebiusset X $ac_compile
3719290001Sglebiusac_compiler=$2
3720290001Sglebiusfor ac_option in --version -v -V -qversion; do
3721290001Sglebius  { { ac_try="$ac_compiler $ac_option >&5"
3722290001Sglebiuscase "(($ac_try" in
3723290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724290001Sglebius  *) ac_try_echo=$ac_try;;
3725290001Sglebiusesac
3726290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727290001Sglebius$as_echo "$ac_try_echo"; } >&5
3728290001Sglebius  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3729290001Sglebius  ac_status=$?
3730290001Sglebius  if test -s conftest.err; then
3731290001Sglebius    sed '10a\
3732290001Sglebius... rest of stderr output deleted ...
3733290001Sglebius         10q' conftest.err >conftest.er1
3734290001Sglebius    cat conftest.er1 >&5
3735290001Sglebius  fi
3736290001Sglebius  rm -f conftest.er1 conftest.err
3737290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738290001Sglebius  test $ac_status = 0; }
3739290001Sglebiusdone
3740290001Sglebius
3741290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742290001Sglebius/* end confdefs.h.  */
3743290001Sglebius
3744290001Sglebiusint
3745290001Sglebiusmain ()
3746290001Sglebius{
3747290001Sglebius
3748290001Sglebius  ;
3749290001Sglebius  return 0;
3750290001Sglebius}
3751290001Sglebius_ACEOF
3752290001Sglebiusac_clean_files_save=$ac_clean_files
3753290001Sglebiusac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3754290001Sglebius# Try to create an executable without -o first, disregard a.out.
3755290001Sglebius# It will help us diagnose broken compilers, and finding out an intuition
3756290001Sglebius# of exeext.
3757290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758290001Sglebius$as_echo_n "checking whether the C compiler works... " >&6; }
3759290001Sglebiusac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3760290001Sglebius
3761290001Sglebius# The possible output files:
3762290001Sglebiusac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3763290001Sglebius
3764290001Sglebiusac_rmfiles=
3765290001Sglebiusfor ac_file in $ac_files
3766290001Sglebiusdo
3767290001Sglebius  case $ac_file in
3768290001Sglebius    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769290001Sglebius    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770290001Sglebius  esac
3771290001Sglebiusdone
3772290001Sglebiusrm -f $ac_rmfiles
3773290001Sglebius
3774290001Sglebiusif { { ac_try="$ac_link_default"
3775290001Sglebiuscase "(($ac_try" in
3776290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777290001Sglebius  *) ac_try_echo=$ac_try;;
3778290001Sglebiusesac
3779290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780290001Sglebius$as_echo "$ac_try_echo"; } >&5
3781290001Sglebius  (eval "$ac_link_default") 2>&5
3782290001Sglebius  ac_status=$?
3783290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784290001Sglebius  test $ac_status = 0; }; then :
3785290001Sglebius  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3786290001Sglebius# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3787290001Sglebius# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3788290001Sglebius# so that the user can short-circuit this test for compilers unknown to
3789290001Sglebius# Autoconf.
3790290001Sglebiusfor ac_file in $ac_files ''
3791290001Sglebiusdo
3792290001Sglebius  test -f "$ac_file" || continue
3793290001Sglebius  case $ac_file in
3794290001Sglebius    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3795290001Sglebius	;;
3796290001Sglebius    [ab].out )
3797290001Sglebius	# We found the default executable, but exeext='' is most
3798290001Sglebius	# certainly right.
3799290001Sglebius	break;;
3800290001Sglebius    *.* )
3801290001Sglebius	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3802290001Sglebius	then :; else
3803290001Sglebius	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804290001Sglebius	fi
3805290001Sglebius	# We set ac_cv_exeext here because the later test for it is not
3806290001Sglebius	# safe: cross compilers may not add the suffix if given an `-o'
3807290001Sglebius	# argument, so we may need to know it at that point already.
3808290001Sglebius	# Even if this section looks crufty: it has the advantage of
3809290001Sglebius	# actually working.
3810290001Sglebius	break;;
3811290001Sglebius    * )
3812290001Sglebius	break;;
3813290001Sglebius  esac
3814290001Sglebiusdone
3815290001Sglebiustest "$ac_cv_exeext" = no && ac_cv_exeext=
3816290001Sglebius
3817290001Sglebiuselse
3818290001Sglebius  ac_file=''
3819290001Sglebiusfi
3820290001Sglebiusif test -z "$ac_file"; then :
3821290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822290001Sglebius$as_echo "no" >&6; }
3823290001Sglebius$as_echo "$as_me: failed program was:" >&5
3824290001Sglebiussed 's/^/| /' conftest.$ac_ext >&5
3825290001Sglebius
3826290001Sglebius{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828290001Sglebiusas_fn_error 77 "C compiler cannot create executables
3829290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
3830290001Sglebiuselse
3831290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832290001Sglebius$as_echo "yes" >&6; }
3833290001Sglebiusfi
3834290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835290001Sglebius$as_echo_n "checking for C compiler default output file name... " >&6; }
3836290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837290001Sglebius$as_echo "$ac_file" >&6; }
3838290001Sglebiusac_exeext=$ac_cv_exeext
3839290001Sglebius
3840290001Sglebiusrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3841290001Sglebiusac_clean_files=$ac_clean_files_save
3842290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843290001Sglebius$as_echo_n "checking for suffix of executables... " >&6; }
3844290001Sglebiusif { { ac_try="$ac_link"
3845290001Sglebiuscase "(($ac_try" in
3846290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847290001Sglebius  *) ac_try_echo=$ac_try;;
3848290001Sglebiusesac
3849290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850290001Sglebius$as_echo "$ac_try_echo"; } >&5
3851290001Sglebius  (eval "$ac_link") 2>&5
3852290001Sglebius  ac_status=$?
3853290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854290001Sglebius  test $ac_status = 0; }; then :
3855290001Sglebius  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3856290001Sglebius# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3857290001Sglebius# work properly (i.e., refer to `conftest.exe'), while it won't with
3858290001Sglebius# `rm'.
3859290001Sglebiusfor ac_file in conftest.exe conftest conftest.*; do
3860290001Sglebius  test -f "$ac_file" || continue
3861290001Sglebius  case $ac_file in
3862290001Sglebius    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863290001Sglebius    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864290001Sglebius	  break;;
3865290001Sglebius    * ) break;;
3866290001Sglebius  esac
3867290001Sglebiusdone
3868290001Sglebiuselse
3869290001Sglebius  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3870290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3871290001Sglebiusas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3872290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
3873290001Sglebiusfi
3874290001Sglebiusrm -f conftest conftest$ac_cv_exeext
3875290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3876290001Sglebius$as_echo "$ac_cv_exeext" >&6; }
3877290001Sglebius
3878290001Sglebiusrm -f conftest.$ac_ext
3879290001SglebiusEXEEXT=$ac_cv_exeext
3880290001Sglebiusac_exeext=$EXEEXT
3881290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882290001Sglebius/* end confdefs.h.  */
3883290001Sglebius#include <stdio.h>
3884290001Sglebiusint
3885290001Sglebiusmain ()
3886290001Sglebius{
3887290001SglebiusFILE *f = fopen ("conftest.out", "w");
3888290001Sglebius return ferror (f) || fclose (f) != 0;
3889290001Sglebius
3890290001Sglebius  ;
3891290001Sglebius  return 0;
3892290001Sglebius}
3893290001Sglebius_ACEOF
3894290001Sglebiusac_clean_files="$ac_clean_files conftest.out"
3895290001Sglebius# Check that the compiler produces executables we can run.  If not, either
3896290001Sglebius# the compiler is broken, or we cross compile.
3897290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3898290001Sglebius$as_echo_n "checking whether we are cross compiling... " >&6; }
3899290001Sglebiusif test "$cross_compiling" != yes; then
3900290001Sglebius  { { ac_try="$ac_link"
3901290001Sglebiuscase "(($ac_try" in
3902290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903290001Sglebius  *) ac_try_echo=$ac_try;;
3904290001Sglebiusesac
3905290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906290001Sglebius$as_echo "$ac_try_echo"; } >&5
3907290001Sglebius  (eval "$ac_link") 2>&5
3908290001Sglebius  ac_status=$?
3909290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910290001Sglebius  test $ac_status = 0; }
3911290001Sglebius  if { ac_try='./conftest$ac_cv_exeext'
3912290001Sglebius  { { case "(($ac_try" in
3913290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914290001Sglebius  *) ac_try_echo=$ac_try;;
3915290001Sglebiusesac
3916290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917290001Sglebius$as_echo "$ac_try_echo"; } >&5
3918290001Sglebius  (eval "$ac_try") 2>&5
3919290001Sglebius  ac_status=$?
3920290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921290001Sglebius  test $ac_status = 0; }; }; then
3922290001Sglebius    cross_compiling=no
3923290001Sglebius  else
3924290001Sglebius    if test "$cross_compiling" = maybe; then
3925290001Sglebius	cross_compiling=yes
3926290001Sglebius    else
3927290001Sglebius	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929290001Sglebiusas_fn_error $? "cannot run C compiled programs.
3930290001SglebiusIf you meant to cross compile, use \`--host'.
3931290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
3932290001Sglebius    fi
3933290001Sglebius  fi
3934290001Sglebiusfi
3935290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3936290001Sglebius$as_echo "$cross_compiling" >&6; }
3937290001Sglebius
3938290001Sglebiusrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3939290001Sglebiusac_clean_files=$ac_clean_files_save
3940290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3941290001Sglebius$as_echo_n "checking for suffix of object files... " >&6; }
3942290001Sglebiusif ${ac_cv_objext+:} false; then :
3943290001Sglebius  $as_echo_n "(cached) " >&6
3944290001Sglebiuselse
3945290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946290001Sglebius/* end confdefs.h.  */
3947290001Sglebius
3948290001Sglebiusint
3949290001Sglebiusmain ()
3950290001Sglebius{
3951290001Sglebius
3952290001Sglebius  ;
3953290001Sglebius  return 0;
3954290001Sglebius}
3955290001Sglebius_ACEOF
3956290001Sglebiusrm -f conftest.o conftest.obj
3957290001Sglebiusif { { ac_try="$ac_compile"
3958290001Sglebiuscase "(($ac_try" in
3959290001Sglebius  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960290001Sglebius  *) ac_try_echo=$ac_try;;
3961290001Sglebiusesac
3962290001Sglebiuseval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963290001Sglebius$as_echo "$ac_try_echo"; } >&5
3964290001Sglebius  (eval "$ac_compile") 2>&5
3965290001Sglebius  ac_status=$?
3966290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967290001Sglebius  test $ac_status = 0; }; then :
3968290001Sglebius  for ac_file in conftest.o conftest.obj conftest.*; do
3969290001Sglebius  test -f "$ac_file" || continue;
3970290001Sglebius  case $ac_file in
3971290001Sglebius    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3972290001Sglebius    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3973290001Sglebius       break;;
3974290001Sglebius  esac
3975290001Sglebiusdone
3976290001Sglebiuselse
3977290001Sglebius  $as_echo "$as_me: failed program was:" >&5
3978290001Sglebiussed 's/^/| /' conftest.$ac_ext >&5
3979290001Sglebius
3980290001Sglebius{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982290001Sglebiusas_fn_error $? "cannot compute suffix of object files: cannot compile
3983290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
3984290001Sglebiusfi
3985290001Sglebiusrm -f conftest.$ac_cv_objext conftest.$ac_ext
3986290001Sglebiusfi
3987290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3988290001Sglebius$as_echo "$ac_cv_objext" >&6; }
3989290001SglebiusOBJEXT=$ac_cv_objext
3990290001Sglebiusac_objext=$OBJEXT
3991290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3992290001Sglebius$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3993290001Sglebiusif ${ac_cv_c_compiler_gnu+:} false; then :
3994290001Sglebius  $as_echo_n "(cached) " >&6
3995290001Sglebiuselse
3996290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997290001Sglebius/* end confdefs.h.  */
3998290001Sglebius
3999290001Sglebiusint
4000290001Sglebiusmain ()
4001290001Sglebius{
4002290001Sglebius#ifndef __GNUC__
4003290001Sglebius       choke me
4004290001Sglebius#endif
4005290001Sglebius
4006290001Sglebius  ;
4007290001Sglebius  return 0;
4008290001Sglebius}
4009290001Sglebius_ACEOF
4010290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
4011290001Sglebius  ac_compiler_gnu=yes
4012290001Sglebiuselse
4013290001Sglebius  ac_compiler_gnu=no
4014290001Sglebiusfi
4015290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016290001Sglebiusac_cv_c_compiler_gnu=$ac_compiler_gnu
4017290001Sglebius
4018290001Sglebiusfi
4019290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4020290001Sglebius$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4021290001Sglebiusif test $ac_compiler_gnu = yes; then
4022290001Sglebius  GCC=yes
4023290001Sglebiuselse
4024290001Sglebius  GCC=
4025290001Sglebiusfi
4026290001Sglebiusac_test_CFLAGS=${CFLAGS+set}
4027290001Sglebiusac_save_CFLAGS=$CFLAGS
4028290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4029290001Sglebius$as_echo_n "checking whether $CC accepts -g... " >&6; }
4030290001Sglebiusif ${ac_cv_prog_cc_g+:} false; then :
4031290001Sglebius  $as_echo_n "(cached) " >&6
4032290001Sglebiuselse
4033290001Sglebius  ac_save_c_werror_flag=$ac_c_werror_flag
4034290001Sglebius   ac_c_werror_flag=yes
4035290001Sglebius   ac_cv_prog_cc_g=no
4036290001Sglebius   CFLAGS="-g"
4037290001Sglebius   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038290001Sglebius/* end confdefs.h.  */
4039290001Sglebius
4040290001Sglebiusint
4041290001Sglebiusmain ()
4042290001Sglebius{
4043290001Sglebius
4044290001Sglebius  ;
4045290001Sglebius  return 0;
4046290001Sglebius}
4047290001Sglebius_ACEOF
4048290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
4049290001Sglebius  ac_cv_prog_cc_g=yes
4050290001Sglebiuselse
4051290001Sglebius  CFLAGS=""
4052290001Sglebius      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053290001Sglebius/* end confdefs.h.  */
4054290001Sglebius
4055290001Sglebiusint
4056290001Sglebiusmain ()
4057290001Sglebius{
4058290001Sglebius
4059290001Sglebius  ;
4060290001Sglebius  return 0;
4061290001Sglebius}
4062290001Sglebius_ACEOF
4063290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
4064290001Sglebius
4065290001Sglebiuselse
4066290001Sglebius  ac_c_werror_flag=$ac_save_c_werror_flag
4067290001Sglebius	 CFLAGS="-g"
4068290001Sglebius	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069290001Sglebius/* end confdefs.h.  */
4070290001Sglebius
4071290001Sglebiusint
4072290001Sglebiusmain ()
4073290001Sglebius{
4074290001Sglebius
4075290001Sglebius  ;
4076290001Sglebius  return 0;
4077290001Sglebius}
4078290001Sglebius_ACEOF
4079290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
4080290001Sglebius  ac_cv_prog_cc_g=yes
4081290001Sglebiusfi
4082290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083290001Sglebiusfi
4084290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085290001Sglebiusfi
4086290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087290001Sglebius   ac_c_werror_flag=$ac_save_c_werror_flag
4088290001Sglebiusfi
4089290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4090290001Sglebius$as_echo "$ac_cv_prog_cc_g" >&6; }
4091290001Sglebiusif test "$ac_test_CFLAGS" = set; then
4092290001Sglebius  CFLAGS=$ac_save_CFLAGS
4093290001Sglebiuselif test $ac_cv_prog_cc_g = yes; then
4094290001Sglebius  if test "$GCC" = yes; then
4095290001Sglebius    CFLAGS="-g -O2"
4096290001Sglebius  else
4097290001Sglebius    CFLAGS="-g"
4098290001Sglebius  fi
4099290001Sglebiuselse
4100290001Sglebius  if test "$GCC" = yes; then
4101290001Sglebius    CFLAGS="-O2"
4102290001Sglebius  else
4103290001Sglebius    CFLAGS=
4104290001Sglebius  fi
4105290001Sglebiusfi
4106290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4107290001Sglebius$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4108290001Sglebiusif ${ac_cv_prog_cc_c89+:} false; then :
4109290001Sglebius  $as_echo_n "(cached) " >&6
4110290001Sglebiuselse
4111290001Sglebius  ac_cv_prog_cc_c89=no
4112290001Sglebiusac_save_CC=$CC
4113290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114290001Sglebius/* end confdefs.h.  */
4115290001Sglebius#include <stdarg.h>
4116290001Sglebius#include <stdio.h>
4117290001Sglebiusstruct stat;
4118290001Sglebius/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4119290001Sglebiusstruct buf { int x; };
4120290001SglebiusFILE * (*rcsopen) (struct buf *, struct stat *, int);
4121290001Sglebiusstatic char *e (p, i)
4122290001Sglebius     char **p;
4123290001Sglebius     int i;
4124290001Sglebius{
4125290001Sglebius  return p[i];
4126290001Sglebius}
4127290001Sglebiusstatic char *f (char * (*g) (char **, int), char **p, ...)
4128290001Sglebius{
4129290001Sglebius  char *s;
4130290001Sglebius  va_list v;
4131290001Sglebius  va_start (v,p);
4132290001Sglebius  s = g (p, va_arg (v,int));
4133290001Sglebius  va_end (v);
4134290001Sglebius  return s;
4135290001Sglebius}
4136290001Sglebius
4137290001Sglebius/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4138290001Sglebius   function prototypes and stuff, but not '\xHH' hex character constants.
4139290001Sglebius   These don't provoke an error unfortunately, instead are silently treated
4140290001Sglebius   as 'x'.  The following induces an error, until -std is added to get
4141290001Sglebius   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4142290001Sglebius   array size at least.  It's necessary to write '\x00'==0 to get something
4143290001Sglebius   that's true only with -std.  */
4144290001Sglebiusint osf4_cc_array ['\x00' == 0 ? 1 : -1];
4145290001Sglebius
4146290001Sglebius/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4147290001Sglebius   inside strings and character constants.  */
4148290001Sglebius#define FOO(x) 'x'
4149290001Sglebiusint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4150290001Sglebius
4151290001Sglebiusint test (int i, double x);
4152290001Sglebiusstruct s1 {int (*f) (int a);};
4153290001Sglebiusstruct s2 {int (*f) (double a);};
4154290001Sglebiusint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4155290001Sglebiusint argc;
4156290001Sglebiuschar **argv;
4157290001Sglebiusint
4158290001Sglebiusmain ()
4159290001Sglebius{
4160290001Sglebiusreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4161290001Sglebius  ;
4162290001Sglebius  return 0;
4163290001Sglebius}
4164290001Sglebius_ACEOF
4165290001Sglebiusfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4166290001Sglebius	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167290001Sglebiusdo
4168290001Sglebius  CC="$ac_save_CC $ac_arg"
4169290001Sglebius  if ac_fn_c_try_compile "$LINENO"; then :
4170290001Sglebius  ac_cv_prog_cc_c89=$ac_arg
4171290001Sglebiusfi
4172290001Sglebiusrm -f core conftest.err conftest.$ac_objext
4173290001Sglebius  test "x$ac_cv_prog_cc_c89" != "xno" && break
4174290001Sglebiusdone
4175290001Sglebiusrm -f conftest.$ac_ext
4176290001SglebiusCC=$ac_save_CC
4177290001Sglebius
4178290001Sglebiusfi
4179290001Sglebius# AC_CACHE_VAL
4180290001Sglebiuscase "x$ac_cv_prog_cc_c89" in
4181290001Sglebius  x)
4182290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183290001Sglebius$as_echo "none needed" >&6; } ;;
4184290001Sglebius  xno)
4185290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4186290001Sglebius$as_echo "unsupported" >&6; } ;;
4187290001Sglebius  *)
4188290001Sglebius    CC="$CC $ac_cv_prog_cc_c89"
4189290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4190290001Sglebius$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4191290001Sglebiusesac
4192290001Sglebiusif test "x$ac_cv_prog_cc_c89" != xno; then :
4193290001Sglebius
4194290001Sglebiusfi
4195290001Sglebius
4196290001Sglebiusac_ext=c
4197290001Sglebiusac_cpp='$CPP $CPPFLAGS'
4198290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
4201290001Sglebius
4202290001Sglebiusac_ext=c
4203290001Sglebiusac_cpp='$CPP $CPPFLAGS'
4204290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
4207290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4208290001Sglebius$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4209290001Sglebiusif ${am_cv_prog_cc_c_o+:} false; then :
4210290001Sglebius  $as_echo_n "(cached) " >&6
4211290001Sglebiuselse
4212290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213290001Sglebius/* end confdefs.h.  */
4214290001Sglebius
4215290001Sglebiusint
4216290001Sglebiusmain ()
4217290001Sglebius{
4218290001Sglebius
4219290001Sglebius  ;
4220290001Sglebius  return 0;
4221290001Sglebius}
4222290001Sglebius_ACEOF
4223290001Sglebius  # Make sure it works both with $CC and with simple cc.
4224290001Sglebius  # Following AC_PROG_CC_C_O, we do the test twice because some
4225290001Sglebius  # compilers refuse to overwrite an existing .o file with -o,
4226290001Sglebius  # though they will create one.
4227290001Sglebius  am_cv_prog_cc_c_o=yes
4228290001Sglebius  for am_i in 1 2; do
4229290001Sglebius    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4230290001Sglebius   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4231290001Sglebius   ac_status=$?
4232290001Sglebius   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233290001Sglebius   (exit $ac_status); } \
4234290001Sglebius         && test -f conftest2.$ac_objext; then
4235290001Sglebius      : OK
4236290001Sglebius    else
4237290001Sglebius      am_cv_prog_cc_c_o=no
4238290001Sglebius      break
4239290001Sglebius    fi
4240290001Sglebius  done
4241290001Sglebius  rm -f core conftest*
4242290001Sglebius  unset am_i
4243290001Sglebiusfi
4244290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4245290001Sglebius$as_echo "$am_cv_prog_cc_c_o" >&6; }
4246290001Sglebiusif test "$am_cv_prog_cc_c_o" != yes; then
4247290001Sglebius   # Losing compiler, so override with the script.
4248290001Sglebius   # FIXME: It is wrong to rewrite CC.
4249290001Sglebius   # But if we don't then we get into trouble of one sort or another.
4250290001Sglebius   # A longer-term fix would be to have automake use am__CC in this case,
4251290001Sglebius   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4252290001Sglebius   CC="$am_aux_dir/compile $CC"
4253290001Sglebiusfi
4254290001Sglebiusac_ext=c
4255290001Sglebiusac_cpp='$CPP $CPPFLAGS'
4256290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
4259290001Sglebius
4260290001Sglebius
4261290001Sglebiusdepcc="$CC"   am_compiler_list=
4262290001Sglebius
4263290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4264290001Sglebius$as_echo_n "checking dependency style of $depcc... " >&6; }
4265290001Sglebiusif ${am_cv_CC_dependencies_compiler_type+:} false; then :
4266290001Sglebius  $as_echo_n "(cached) " >&6
4267290001Sglebiuselse
4268290001Sglebius  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4269290001Sglebius  # We make a subdir and do the tests there.  Otherwise we can end up
4270290001Sglebius  # making bogus files that we don't know about and never remove.  For
4271290001Sglebius  # instance it was reported that on HP-UX the gcc test will end up
4272290001Sglebius  # making a dummy file named 'D' -- because '-MD' means "put the output
4273290001Sglebius  # in D".
4274290001Sglebius  rm -rf conftest.dir
4275290001Sglebius  mkdir conftest.dir
4276290001Sglebius  # Copy depcomp to subdir because otherwise we won't find it if we're
4277290001Sglebius  # using a relative directory.
4278290001Sglebius  cp "$am_depcomp" conftest.dir
4279290001Sglebius  cd conftest.dir
4280290001Sglebius  # We will build objects and dependencies in a subdirectory because
4281290001Sglebius  # it helps to detect inapplicable dependency modes.  For instance
4282290001Sglebius  # both Tru64's cc and ICC support -MD to output dependencies as a
4283290001Sglebius  # side effect of compilation, but ICC will put the dependencies in
4284290001Sglebius  # the current directory while Tru64 will put them in the object
4285290001Sglebius  # directory.
4286290001Sglebius  mkdir sub
4287290001Sglebius
4288290001Sglebius  am_cv_CC_dependencies_compiler_type=none
4289290001Sglebius  if test "$am_compiler_list" = ""; then
4290290001Sglebius     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4291290001Sglebius  fi
4292290001Sglebius  am__universal=false
4293290001Sglebius  case " $depcc " in #(
4294290001Sglebius     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4295290001Sglebius     esac
4296290001Sglebius
4297290001Sglebius  for depmode in $am_compiler_list; do
4298290001Sglebius    # Setup a source with many dependencies, because some compilers
4299290001Sglebius    # like to wrap large dependency lists on column 80 (with \), and
4300290001Sglebius    # we should not choose a depcomp mode which is confused by this.
4301290001Sglebius    #
4302290001Sglebius    # We need to recreate these files for each test, as the compiler may
4303290001Sglebius    # overwrite some of them when testing with obscure command lines.
4304290001Sglebius    # This happens at least with the AIX C compiler.
4305290001Sglebius    : > sub/conftest.c
4306290001Sglebius    for i in 1 2 3 4 5 6; do
4307290001Sglebius      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4308290001Sglebius      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4309290001Sglebius      # Solaris 10 /bin/sh.
4310290001Sglebius      echo '/* dummy */' > sub/conftst$i.h
4311290001Sglebius    done
4312290001Sglebius    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4313290001Sglebius
4314290001Sglebius    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4315290001Sglebius    # mode.  It turns out that the SunPro C++ compiler does not properly
4316290001Sglebius    # handle '-M -o', and we need to detect this.  Also, some Intel
4317290001Sglebius    # versions had trouble with output in subdirs.
4318290001Sglebius    am__obj=sub/conftest.${OBJEXT-o}
4319290001Sglebius    am__minus_obj="-o $am__obj"
4320290001Sglebius    case $depmode in
4321290001Sglebius    gcc)
4322290001Sglebius      # This depmode causes a compiler race in universal mode.
4323290001Sglebius      test "$am__universal" = false || continue
4324290001Sglebius      ;;
4325290001Sglebius    nosideeffect)
4326290001Sglebius      # After this tag, mechanisms are not by side-effect, so they'll
4327290001Sglebius      # only be used when explicitly requested.
4328290001Sglebius      if test "x$enable_dependency_tracking" = xyes; then
4329290001Sglebius	continue
4330290001Sglebius      else
4331290001Sglebius	break
4332290001Sglebius      fi
4333290001Sglebius      ;;
4334290001Sglebius    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4335290001Sglebius      # This compiler won't grok '-c -o', but also, the minuso test has
4336290001Sglebius      # not run yet.  These depmodes are late enough in the game, and
4337290001Sglebius      # so weak that their functioning should not be impacted.
4338290001Sglebius      am__obj=conftest.${OBJEXT-o}
4339290001Sglebius      am__minus_obj=
4340290001Sglebius      ;;
4341290001Sglebius    none) break ;;
4342290001Sglebius    esac
4343290001Sglebius    if depmode=$depmode \
4344290001Sglebius       source=sub/conftest.c object=$am__obj \
4345290001Sglebius       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4346290001Sglebius       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4347290001Sglebius         >/dev/null 2>conftest.err &&
4348290001Sglebius       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4349290001Sglebius       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4350290001Sglebius       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4351290001Sglebius       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4352290001Sglebius      # icc doesn't choke on unknown options, it will just issue warnings
4353290001Sglebius      # or remarks (even with -Werror).  So we grep stderr for any message
4354290001Sglebius      # that says an option was ignored or not supported.
4355290001Sglebius      # When given -MP, icc 7.0 and 7.1 complain thusly:
4356290001Sglebius      #   icc: Command line warning: ignoring option '-M'; no argument required
4357290001Sglebius      # The diagnosis changed in icc 8.0:
4358290001Sglebius      #   icc: Command line remark: option '-MP' not supported
4359290001Sglebius      if (grep 'ignoring option' conftest.err ||
4360290001Sglebius          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4361290001Sglebius        am_cv_CC_dependencies_compiler_type=$depmode
4362290001Sglebius        break
4363290001Sglebius      fi
4364290001Sglebius    fi
4365290001Sglebius  done
4366290001Sglebius
4367290001Sglebius  cd ..
4368290001Sglebius  rm -rf conftest.dir
4369290001Sglebiuselse
4370290001Sglebius  am_cv_CC_dependencies_compiler_type=none
4371290001Sglebiusfi
4372290001Sglebius
4373290001Sglebiusfi
4374290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4375290001Sglebius$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4376290001SglebiusCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4377290001Sglebius
4378290001Sglebius if
4379290001Sglebius  test "x$enable_dependency_tracking" != xno \
4380290001Sglebius  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4381290001Sglebius  am__fastdepCC_TRUE=
4382290001Sglebius  am__fastdepCC_FALSE='#'
4383290001Sglebiuselse
4384290001Sglebius  am__fastdepCC_TRUE='#'
4385290001Sglebius  am__fastdepCC_FALSE=
4386290001Sglebiusfi
4387290001Sglebius
4388290001Sglebius
4389290001Sglebius
4390290001Sglebiusac_ext=c
4391290001Sglebiusac_cpp='$CPP $CPPFLAGS'
4392290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
4395290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4396290001Sglebius$as_echo_n "checking how to run the C preprocessor... " >&6; }
4397290001Sglebius# On Suns, sometimes $CPP names a directory.
4398290001Sglebiusif test -n "$CPP" && test -d "$CPP"; then
4399290001Sglebius  CPP=
4400290001Sglebiusfi
4401290001Sglebiusif test -z "$CPP"; then
4402290001Sglebius  if ${ac_cv_prog_CPP+:} false; then :
4403290001Sglebius  $as_echo_n "(cached) " >&6
4404290001Sglebiuselse
4405290001Sglebius      # Double quotes because CPP needs to be expanded
4406290001Sglebius    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4407290001Sglebius    do
4408290001Sglebius      ac_preproc_ok=false
4409290001Sglebiusfor ac_c_preproc_warn_flag in '' yes
4410290001Sglebiusdo
4411290001Sglebius  # Use a header file that comes with gcc, so configuring glibc
4412290001Sglebius  # with a fresh cross-compiler works.
4413290001Sglebius  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414290001Sglebius  # <limits.h> exists even on freestanding compilers.
4415290001Sglebius  # On the NeXT, cc -E runs the code through the compiler's parser,
4416290001Sglebius  # not just through cpp. "Syntax error" is here to catch this case.
4417290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418290001Sglebius/* end confdefs.h.  */
4419290001Sglebius#ifdef __STDC__
4420290001Sglebius# include <limits.h>
4421290001Sglebius#else
4422290001Sglebius# include <assert.h>
4423290001Sglebius#endif
4424290001Sglebius		     Syntax error
4425290001Sglebius_ACEOF
4426290001Sglebiusif ac_fn_c_try_cpp "$LINENO"; then :
4427290001Sglebius
4428290001Sglebiuselse
4429290001Sglebius  # Broken: fails on valid input.
4430290001Sglebiuscontinue
4431290001Sglebiusfi
4432290001Sglebiusrm -f conftest.err conftest.i conftest.$ac_ext
4433290001Sglebius
4434290001Sglebius  # OK, works on sane cases.  Now check whether nonexistent headers
4435290001Sglebius  # can be detected and how.
4436290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437290001Sglebius/* end confdefs.h.  */
4438290001Sglebius#include <ac_nonexistent.h>
4439290001Sglebius_ACEOF
4440290001Sglebiusif ac_fn_c_try_cpp "$LINENO"; then :
4441290001Sglebius  # Broken: success on invalid input.
4442290001Sglebiuscontinue
4443290001Sglebiuselse
4444290001Sglebius  # Passes both tests.
4445290001Sglebiusac_preproc_ok=:
4446290001Sglebiusbreak
4447290001Sglebiusfi
4448290001Sglebiusrm -f conftest.err conftest.i conftest.$ac_ext
4449290001Sglebius
4450290001Sglebiusdone
4451290001Sglebius# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4452290001Sglebiusrm -f conftest.i conftest.err conftest.$ac_ext
4453290001Sglebiusif $ac_preproc_ok; then :
4454290001Sglebius  break
4455290001Sglebiusfi
4456290001Sglebius
4457290001Sglebius    done
4458290001Sglebius    ac_cv_prog_CPP=$CPP
4459290001Sglebius
4460290001Sglebiusfi
4461290001Sglebius  CPP=$ac_cv_prog_CPP
4462290001Sglebiuselse
4463290001Sglebius  ac_cv_prog_CPP=$CPP
4464290001Sglebiusfi
4465290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4466290001Sglebius$as_echo "$CPP" >&6; }
4467290001Sglebiusac_preproc_ok=false
4468290001Sglebiusfor ac_c_preproc_warn_flag in '' yes
4469290001Sglebiusdo
4470290001Sglebius  # Use a header file that comes with gcc, so configuring glibc
4471290001Sglebius  # with a fresh cross-compiler works.
4472290001Sglebius  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473290001Sglebius  # <limits.h> exists even on freestanding compilers.
4474290001Sglebius  # On the NeXT, cc -E runs the code through the compiler's parser,
4475290001Sglebius  # not just through cpp. "Syntax error" is here to catch this case.
4476290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477290001Sglebius/* end confdefs.h.  */
4478290001Sglebius#ifdef __STDC__
4479290001Sglebius# include <limits.h>
4480290001Sglebius#else
4481290001Sglebius# include <assert.h>
4482290001Sglebius#endif
4483290001Sglebius		     Syntax error
4484290001Sglebius_ACEOF
4485290001Sglebiusif ac_fn_c_try_cpp "$LINENO"; then :
4486290001Sglebius
4487290001Sglebiuselse
4488290001Sglebius  # Broken: fails on valid input.
4489290001Sglebiuscontinue
4490290001Sglebiusfi
4491290001Sglebiusrm -f conftest.err conftest.i conftest.$ac_ext
4492290001Sglebius
4493290001Sglebius  # OK, works on sane cases.  Now check whether nonexistent headers
4494290001Sglebius  # can be detected and how.
4495290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496290001Sglebius/* end confdefs.h.  */
4497290001Sglebius#include <ac_nonexistent.h>
4498290001Sglebius_ACEOF
4499290001Sglebiusif ac_fn_c_try_cpp "$LINENO"; then :
4500290001Sglebius  # Broken: success on invalid input.
4501290001Sglebiuscontinue
4502290001Sglebiuselse
4503290001Sglebius  # Passes both tests.
4504290001Sglebiusac_preproc_ok=:
4505290001Sglebiusbreak
4506290001Sglebiusfi
4507290001Sglebiusrm -f conftest.err conftest.i conftest.$ac_ext
4508290001Sglebius
4509290001Sglebiusdone
4510290001Sglebius# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511290001Sglebiusrm -f conftest.i conftest.err conftest.$ac_ext
4512290001Sglebiusif $ac_preproc_ok; then :
4513290001Sglebius
4514290001Sglebiuselse
4515290001Sglebius  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517290001Sglebiusas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4518290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
4519290001Sglebiusfi
4520290001Sglebius
4521290001Sglebiusac_ext=c
4522290001Sglebiusac_cpp='$CPP $CPPFLAGS'
4523290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
4526290001Sglebius
4527290001Sglebius
4528290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4529290001Sglebius$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4530290001Sglebiusif ${ac_cv_path_GREP+:} false; then :
4531290001Sglebius  $as_echo_n "(cached) " >&6
4532290001Sglebiuselse
4533290001Sglebius  if test -z "$GREP"; then
4534290001Sglebius  ac_path_GREP_found=false
4535290001Sglebius  # Loop through the user's path and test for each of PROGNAME-LIST
4536290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537290001Sglebiusfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4538290001Sglebiusdo
4539290001Sglebius  IFS=$as_save_IFS
4540290001Sglebius  test -z "$as_dir" && as_dir=.
4541290001Sglebius    for ac_prog in grep ggrep; do
4542290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
4543290001Sglebius      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4544290001Sglebius      as_fn_executable_p "$ac_path_GREP" || continue
4545290001Sglebius# Check for GNU ac_path_GREP and select it if it is found.
4546290001Sglebius  # Check for GNU $ac_path_GREP
4547290001Sglebiuscase `"$ac_path_GREP" --version 2>&1` in
4548290001Sglebius*GNU*)
4549290001Sglebius  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4550290001Sglebius*)
4551290001Sglebius  ac_count=0
4552290001Sglebius  $as_echo_n 0123456789 >"conftest.in"
4553290001Sglebius  while :
4554290001Sglebius  do
4555290001Sglebius    cat "conftest.in" "conftest.in" >"conftest.tmp"
4556290001Sglebius    mv "conftest.tmp" "conftest.in"
4557290001Sglebius    cp "conftest.in" "conftest.nl"
4558290001Sglebius    $as_echo 'GREP' >> "conftest.nl"
4559290001Sglebius    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560290001Sglebius    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561290001Sglebius    as_fn_arith $ac_count + 1 && ac_count=$as_val
4562290001Sglebius    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4563290001Sglebius      # Best one so far, save it but keep looking for a better one
4564290001Sglebius      ac_cv_path_GREP="$ac_path_GREP"
4565290001Sglebius      ac_path_GREP_max=$ac_count
4566290001Sglebius    fi
4567290001Sglebius    # 10*(2^10) chars as input seems more than enough
4568290001Sglebius    test $ac_count -gt 10 && break
4569290001Sglebius  done
4570290001Sglebius  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571290001Sglebiusesac
4572290001Sglebius
4573290001Sglebius      $ac_path_GREP_found && break 3
4574290001Sglebius    done
4575290001Sglebius  done
4576290001Sglebius  done
4577290001SglebiusIFS=$as_save_IFS
4578290001Sglebius  if test -z "$ac_cv_path_GREP"; then
4579290001Sglebius    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4580290001Sglebius  fi
4581290001Sglebiuselse
4582290001Sglebius  ac_cv_path_GREP=$GREP
4583290001Sglebiusfi
4584290001Sglebius
4585290001Sglebiusfi
4586290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4587290001Sglebius$as_echo "$ac_cv_path_GREP" >&6; }
4588290001Sglebius GREP="$ac_cv_path_GREP"
4589290001Sglebius
4590290001Sglebius
4591290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4592290001Sglebius$as_echo_n "checking for egrep... " >&6; }
4593290001Sglebiusif ${ac_cv_path_EGREP+:} false; then :
4594290001Sglebius  $as_echo_n "(cached) " >&6
4595290001Sglebiuselse
4596290001Sglebius  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4597290001Sglebius   then ac_cv_path_EGREP="$GREP -E"
4598290001Sglebius   else
4599290001Sglebius     if test -z "$EGREP"; then
4600290001Sglebius  ac_path_EGREP_found=false
4601290001Sglebius  # Loop through the user's path and test for each of PROGNAME-LIST
4602290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603290001Sglebiusfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4604290001Sglebiusdo
4605290001Sglebius  IFS=$as_save_IFS
4606290001Sglebius  test -z "$as_dir" && as_dir=.
4607290001Sglebius    for ac_prog in egrep; do
4608290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
4609290001Sglebius      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4610290001Sglebius      as_fn_executable_p "$ac_path_EGREP" || continue
4611290001Sglebius# Check for GNU ac_path_EGREP and select it if it is found.
4612290001Sglebius  # Check for GNU $ac_path_EGREP
4613290001Sglebiuscase `"$ac_path_EGREP" --version 2>&1` in
4614290001Sglebius*GNU*)
4615290001Sglebius  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4616290001Sglebius*)
4617290001Sglebius  ac_count=0
4618290001Sglebius  $as_echo_n 0123456789 >"conftest.in"
4619290001Sglebius  while :
4620290001Sglebius  do
4621290001Sglebius    cat "conftest.in" "conftest.in" >"conftest.tmp"
4622290001Sglebius    mv "conftest.tmp" "conftest.in"
4623290001Sglebius    cp "conftest.in" "conftest.nl"
4624290001Sglebius    $as_echo 'EGREP' >> "conftest.nl"
4625290001Sglebius    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626290001Sglebius    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627290001Sglebius    as_fn_arith $ac_count + 1 && ac_count=$as_val
4628290001Sglebius    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4629290001Sglebius      # Best one so far, save it but keep looking for a better one
4630290001Sglebius      ac_cv_path_EGREP="$ac_path_EGREP"
4631290001Sglebius      ac_path_EGREP_max=$ac_count
4632290001Sglebius    fi
4633290001Sglebius    # 10*(2^10) chars as input seems more than enough
4634290001Sglebius    test $ac_count -gt 10 && break
4635290001Sglebius  done
4636290001Sglebius  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637290001Sglebiusesac
4638290001Sglebius
4639290001Sglebius      $ac_path_EGREP_found && break 3
4640290001Sglebius    done
4641290001Sglebius  done
4642290001Sglebius  done
4643290001SglebiusIFS=$as_save_IFS
4644290001Sglebius  if test -z "$ac_cv_path_EGREP"; then
4645290001Sglebius    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4646290001Sglebius  fi
4647290001Sglebiuselse
4648290001Sglebius  ac_cv_path_EGREP=$EGREP
4649290001Sglebiusfi
4650290001Sglebius
4651290001Sglebius   fi
4652290001Sglebiusfi
4653290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4654290001Sglebius$as_echo "$ac_cv_path_EGREP" >&6; }
4655290001Sglebius EGREP="$ac_cv_path_EGREP"
4656290001Sglebius
4657290001Sglebius
4658290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4659290001Sglebius$as_echo_n "checking for ANSI C header files... " >&6; }
4660290001Sglebiusif ${ac_cv_header_stdc+:} false; then :
4661290001Sglebius  $as_echo_n "(cached) " >&6
4662290001Sglebiuselse
4663290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664290001Sglebius/* end confdefs.h.  */
4665290001Sglebius#include <stdlib.h>
4666290001Sglebius#include <stdarg.h>
4667290001Sglebius#include <string.h>
4668290001Sglebius#include <float.h>
4669290001Sglebius
4670290001Sglebiusint
4671290001Sglebiusmain ()
4672290001Sglebius{
4673290001Sglebius
4674290001Sglebius  ;
4675290001Sglebius  return 0;
4676290001Sglebius}
4677290001Sglebius_ACEOF
4678290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
4679290001Sglebius  ac_cv_header_stdc=yes
4680290001Sglebiuselse
4681290001Sglebius  ac_cv_header_stdc=no
4682290001Sglebiusfi
4683290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684290001Sglebius
4685290001Sglebiusif test $ac_cv_header_stdc = yes; then
4686290001Sglebius  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4687290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688290001Sglebius/* end confdefs.h.  */
4689290001Sglebius#include <string.h>
4690290001Sglebius
4691290001Sglebius_ACEOF
4692290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693290001Sglebius  $EGREP "memchr" >/dev/null 2>&1; then :
4694290001Sglebius
4695290001Sglebiuselse
4696290001Sglebius  ac_cv_header_stdc=no
4697290001Sglebiusfi
4698290001Sglebiusrm -f conftest*
4699290001Sglebius
4700290001Sglebiusfi
4701290001Sglebius
4702290001Sglebiusif test $ac_cv_header_stdc = yes; then
4703290001Sglebius  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4704290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705290001Sglebius/* end confdefs.h.  */
4706290001Sglebius#include <stdlib.h>
4707290001Sglebius
4708290001Sglebius_ACEOF
4709290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4710290001Sglebius  $EGREP "free" >/dev/null 2>&1; then :
4711290001Sglebius
4712290001Sglebiuselse
4713290001Sglebius  ac_cv_header_stdc=no
4714290001Sglebiusfi
4715290001Sglebiusrm -f conftest*
4716290001Sglebius
4717290001Sglebiusfi
4718290001Sglebius
4719290001Sglebiusif test $ac_cv_header_stdc = yes; then
4720290001Sglebius  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4721290001Sglebius  if test "$cross_compiling" = yes; then :
4722290001Sglebius  :
4723290001Sglebiuselse
4724290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725290001Sglebius/* end confdefs.h.  */
4726290001Sglebius#include <ctype.h>
4727290001Sglebius#include <stdlib.h>
4728290001Sglebius#if ((' ' & 0x0FF) == 0x020)
4729290001Sglebius# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4730290001Sglebius# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4731290001Sglebius#else
4732290001Sglebius# define ISLOWER(c) \
4733290001Sglebius		   (('a' <= (c) && (c) <= 'i') \
4734290001Sglebius		     || ('j' <= (c) && (c) <= 'r') \
4735290001Sglebius		     || ('s' <= (c) && (c) <= 'z'))
4736290001Sglebius# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4737290001Sglebius#endif
4738290001Sglebius
4739290001Sglebius#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4740290001Sglebiusint
4741290001Sglebiusmain ()
4742290001Sglebius{
4743290001Sglebius  int i;
4744290001Sglebius  for (i = 0; i < 256; i++)
4745290001Sglebius    if (XOR (islower (i), ISLOWER (i))
4746290001Sglebius	|| toupper (i) != TOUPPER (i))
4747290001Sglebius      return 2;
4748290001Sglebius  return 0;
4749290001Sglebius}
4750290001Sglebius_ACEOF
4751290001Sglebiusif ac_fn_c_try_run "$LINENO"; then :
4752290001Sglebius
4753290001Sglebiuselse
4754290001Sglebius  ac_cv_header_stdc=no
4755290001Sglebiusfi
4756290001Sglebiusrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4757290001Sglebius  conftest.$ac_objext conftest.beam conftest.$ac_ext
4758290001Sglebiusfi
4759290001Sglebius
4760290001Sglebiusfi
4761290001Sglebiusfi
4762290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4763290001Sglebius$as_echo "$ac_cv_header_stdc" >&6; }
4764290001Sglebiusif test $ac_cv_header_stdc = yes; then
4765290001Sglebius
4766290001Sglebius$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4767290001Sglebius
4768290001Sglebiusfi
4769290001Sglebius
4770290001Sglebius# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4771290001Sglebiusfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4772290001Sglebius		  inttypes.h stdint.h unistd.h
4773290001Sglebiusdo :
4774290001Sglebius  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775290001Sglebiusac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4776290001Sglebius"
4777290001Sglebiusif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4778290001Sglebius  cat >>confdefs.h <<_ACEOF
4779290001Sglebius#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780290001Sglebius_ACEOF
4781290001Sglebius
4782290001Sglebiusfi
4783290001Sglebius
4784290001Sglebiusdone
4785290001Sglebius
4786290001Sglebius
4787290001Sglebius
4788290001Sglebius
4789290001Sglebius
4790290001Sglebius  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4791290001Sglebiusif test "x$ac_cv_header_minix_config_h" = xyes; then :
4792290001Sglebius  MINIX=yes
4793290001Sglebiuselse
4794290001Sglebius  MINIX=
4795290001Sglebiusfi
4796290001Sglebius
4797290001Sglebius
4798290001Sglebius  if test "$MINIX" = yes; then
4799290001Sglebius
4800290001Sglebius$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4801290001Sglebius
4802290001Sglebius
4803290001Sglebius$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4804290001Sglebius
4805290001Sglebius
4806290001Sglebius$as_echo "#define _MINIX 1" >>confdefs.h
4807290001Sglebius
4808290001Sglebius  fi
4809290001Sglebius
4810290001Sglebius        case "$host_os" in
4811290001Sglebius    hpux*)
4812290001Sglebius
4813290001Sglebius$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4814290001Sglebius
4815290001Sglebius      ;;
4816290001Sglebius  esac
4817290001Sglebius
4818290001Sglebius
4819290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4820290001Sglebius$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4821290001Sglebiusif ${ac_cv_safe_to_define___extensions__+:} false; then :
4822290001Sglebius  $as_echo_n "(cached) " >&6
4823290001Sglebiuselse
4824290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825290001Sglebius/* end confdefs.h.  */
4826290001Sglebius
4827290001Sglebius#         define __EXTENSIONS__ 1
4828290001Sglebius          $ac_includes_default
4829290001Sglebiusint
4830290001Sglebiusmain ()
4831290001Sglebius{
4832290001Sglebius
4833290001Sglebius  ;
4834290001Sglebius  return 0;
4835290001Sglebius}
4836290001Sglebius_ACEOF
4837290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
4838290001Sglebius  ac_cv_safe_to_define___extensions__=yes
4839290001Sglebiuselse
4840290001Sglebius  ac_cv_safe_to_define___extensions__=no
4841290001Sglebiusfi
4842290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843290001Sglebiusfi
4844290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4845290001Sglebius$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4846290001Sglebius  test $ac_cv_safe_to_define___extensions__ = yes &&
4847290001Sglebius    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4848290001Sglebius
4849290001Sglebius  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4850290001Sglebius
4851290001Sglebius  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4852290001Sglebius
4853290001Sglebius  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4854290001Sglebius
4855290001Sglebius  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4856290001Sglebius
4857290001Sglebius
4858290001Sglebius
4859290001Sglebius
4860290001Sglebius
4861290001Sglebius
4862290001Sglebius
4863290001Sglebius#case "$host_os" in
4864290001Sglebius#
4865290001Sglebius# osf5*)
4866290001Sglebius#    CFLAGS="$CFLAGS -D_OSF_SOURCE"
4867290001Sglebius#    ;;
4868290001Sglebius#esac
4869290001Sglebius
4870290001Sglebius
4871290001Sglebius
4872290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4873290001Sglebius$as_echo_n "checking whether ln -s works... " >&6; }
4874290001SglebiusLN_S=$as_ln_s
4875290001Sglebiusif test "$LN_S" = "ln -s"; then
4876290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877290001Sglebius$as_echo "yes" >&6; }
4878290001Sglebiuselse
4879290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4880290001Sglebius$as_echo "no, using $LN_S" >&6; }
4881290001Sglebiusfi
4882290001Sglebius
4883290001Sglebius# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4884290001Sglebius
4885290001Sglebius# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4886290001Sglebius# versions
4887290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4888290001Sglebius$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4889290001Sglebiusif ${ac_cv_path_SED+:} false; then :
4890290001Sglebius  $as_echo_n "(cached) " >&6
4891290001Sglebiuselse
4892290001Sglebius            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4893290001Sglebius     for ac_i in 1 2 3 4 5 6 7; do
4894290001Sglebius       ac_script="$ac_script$as_nl$ac_script"
4895290001Sglebius     done
4896290001Sglebius     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4897290001Sglebius     { ac_script=; unset ac_script;}
4898290001Sglebius     if test -z "$SED"; then
4899290001Sglebius  ac_path_SED_found=false
4900290001Sglebius  # Loop through the user's path and test for each of PROGNAME-LIST
4901290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902290001Sglebiusfor as_dir in $PATH
4903290001Sglebiusdo
4904290001Sglebius  IFS=$as_save_IFS
4905290001Sglebius  test -z "$as_dir" && as_dir=.
4906290001Sglebius    for ac_prog in sed gsed; do
4907290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
4908290001Sglebius      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4909290001Sglebius      as_fn_executable_p "$ac_path_SED" || continue
4910290001Sglebius# Check for GNU ac_path_SED and select it if it is found.
4911290001Sglebius  # Check for GNU $ac_path_SED
4912290001Sglebiuscase `"$ac_path_SED" --version 2>&1` in
4913290001Sglebius*GNU*)
4914290001Sglebius  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915290001Sglebius*)
4916290001Sglebius  ac_count=0
4917290001Sglebius  $as_echo_n 0123456789 >"conftest.in"
4918290001Sglebius  while :
4919290001Sglebius  do
4920290001Sglebius    cat "conftest.in" "conftest.in" >"conftest.tmp"
4921290001Sglebius    mv "conftest.tmp" "conftest.in"
4922290001Sglebius    cp "conftest.in" "conftest.nl"
4923290001Sglebius    $as_echo '' >> "conftest.nl"
4924290001Sglebius    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925290001Sglebius    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926290001Sglebius    as_fn_arith $ac_count + 1 && ac_count=$as_val
4927290001Sglebius    if test $ac_count -gt ${ac_path_SED_max-0}; then
4928290001Sglebius      # Best one so far, save it but keep looking for a better one
4929290001Sglebius      ac_cv_path_SED="$ac_path_SED"
4930290001Sglebius      ac_path_SED_max=$ac_count
4931290001Sglebius    fi
4932290001Sglebius    # 10*(2^10) chars as input seems more than enough
4933290001Sglebius    test $ac_count -gt 10 && break
4934290001Sglebius  done
4935290001Sglebius  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936290001Sglebiusesac
4937290001Sglebius
4938290001Sglebius      $ac_path_SED_found && break 3
4939290001Sglebius    done
4940290001Sglebius  done
4941290001Sglebius  done
4942290001SglebiusIFS=$as_save_IFS
4943290001Sglebius  if test -z "$ac_cv_path_SED"; then
4944290001Sglebius    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945290001Sglebius  fi
4946290001Sglebiuselse
4947290001Sglebius  ac_cv_path_SED=$SED
4948290001Sglebiusfi
4949290001Sglebius
4950290001Sglebiusfi
4951290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952290001Sglebius$as_echo "$ac_cv_path_SED" >&6; }
4953290001Sglebius SED="$ac_cv_path_SED"
4954290001Sglebius  rm -f conftest.sed
4955290001Sglebius
4956290001Sglebius
4957290001Sglebiusif test $ac_cv_c_compiler_gnu = yes; then
4958290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4959290001Sglebius$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4960290001Sglebiusif ${ac_cv_prog_gcc_traditional+:} false; then :
4961290001Sglebius  $as_echo_n "(cached) " >&6
4962290001Sglebiuselse
4963290001Sglebius    ac_pattern="Autoconf.*'x'"
4964290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965290001Sglebius/* end confdefs.h.  */
4966290001Sglebius#include <sgtty.h>
4967290001SglebiusAutoconf TIOCGETP
4968290001Sglebius_ACEOF
4969290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970290001Sglebius  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4971290001Sglebius  ac_cv_prog_gcc_traditional=yes
4972290001Sglebiuselse
4973290001Sglebius  ac_cv_prog_gcc_traditional=no
4974290001Sglebiusfi
4975290001Sglebiusrm -f conftest*
4976290001Sglebius
4977290001Sglebius
4978290001Sglebius  if test $ac_cv_prog_gcc_traditional = no; then
4979290001Sglebius    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980290001Sglebius/* end confdefs.h.  */
4981290001Sglebius#include <termio.h>
4982290001SglebiusAutoconf TCGETA
4983290001Sglebius_ACEOF
4984290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985290001Sglebius  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4986290001Sglebius  ac_cv_prog_gcc_traditional=yes
4987290001Sglebiusfi
4988290001Sglebiusrm -f conftest*
4989290001Sglebius
4990290001Sglebius  fi
4991290001Sglebiusfi
4992290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4993290001Sglebius$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4994290001Sglebius  if test $ac_cv_prog_gcc_traditional = yes; then
4995290001Sglebius    CC="$CC -traditional"
4996290001Sglebius  fi
4997290001Sglebiusfi
4998290001Sglebius
4999290001Sglebius
5000290001Sglebius# We need to test for at least gcc 2.95 here, because older versions don't
5001290001Sglebius# have -fno-strict-aliasing
5002290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003290001Sglebius/* end confdefs.h.  */
5004290001Sglebius
5005290001Sglebiusint
5006290001Sglebiusmain ()
5007290001Sglebius{
5008290001Sglebius
5009290001Sglebius#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5010290001Sglebius#error
5011290001Sglebius#endif
5012290001Sglebius  ;
5013290001Sglebius  return 0;
5014290001Sglebius}
5015290001Sglebius_ACEOF
5016290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
5017290001Sglebius  have_gcc295=yes
5018290001Sglebiuselse
5019290001Sglebius  have_gcc295=no
5020290001Sglebiusfi
5021290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022290001Sglebius
5023290001Sglebiusif test "$GCC" = "yes" ; then
5024290001Sglebius        # Enable many gcc warnings by default...
5025290001Sglebius        CFLAGS="$CFLAGS -Wall"
5026290001Sglebius	# And disable the strict-aliasing optimization, since it breaks
5027290001Sglebius	# our sockaddr-handling code in strange ways.
5028290001Sglebius	if test x$have_gcc295 = xyes; then
5029290001Sglebius		CFLAGS="$CFLAGS -fno-strict-aliasing"
5030290001Sglebius	fi
5031290001Sglebiusfi
5032290001Sglebius
5033290001Sglebius# OS X Lion started deprecating the system openssl. Let's just disable
5034290001Sglebius# all deprecation warnings on OS X.
5035290001Sglebiuscase "$host_os" in
5036290001Sglebius
5037290001Sglebius darwin*)
5038290001Sglebius    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5039290001Sglebius    ;;
5040290001Sglebiusesac
5041290001Sglebius
5042290001Sglebius# Check whether --enable-gcc-warnings was given.
5043290001Sglebiusif test "${enable_gcc_warnings+set}" = set; then :
5044290001Sglebius  enableval=$enable_gcc_warnings;
5045290001Sglebiusfi
5046290001Sglebius
5047290001Sglebius
5048290001Sglebius# Check whether --enable-gcc-hardening was given.
5049290001Sglebiusif test "${enable_gcc_hardening+set}" = set; then :
5050290001Sglebius  enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5051290001Sglebius    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5052290001Sglebius    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5053290001Sglebius    CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5054290001Sglebiusfi
5055290001Sglebiusfi
5056290001Sglebius
5057290001Sglebius
5058290001Sglebius# Check whether --enable-thread-support was given.
5059290001Sglebiusif test "${enable_thread_support+set}" = set; then :
5060290001Sglebius  enableval=$enable_thread_support;
5061290001Sglebiuselse
5062290001Sglebius  enable_thread_support=yes
5063290001Sglebiusfi
5064290001Sglebius
5065290001Sglebius# Check whether --enable-malloc-replacement was given.
5066290001Sglebiusif test "${enable_malloc_replacement+set}" = set; then :
5067290001Sglebius  enableval=$enable_malloc_replacement;
5068290001Sglebiuselse
5069290001Sglebius  enable_malloc_replacement=yes
5070290001Sglebiusfi
5071290001Sglebius
5072290001Sglebius# Check whether --enable-openssl was given.
5073290001Sglebiusif test "${enable_openssl+set}" = set; then :
5074290001Sglebius  enableval=$enable_openssl;
5075290001Sglebiuselse
5076290001Sglebius  enable_openssl=yes
5077290001Sglebiusfi
5078290001Sglebius
5079290001Sglebius# Check whether --enable-debug-mode was given.
5080290001Sglebiusif test "${enable_debug_mode+set}" = set; then :
5081290001Sglebius  enableval=$enable_debug_mode;
5082290001Sglebiuselse
5083290001Sglebius  enable_debug_mode=yes
5084290001Sglebiusfi
5085290001Sglebius
5086290001Sglebius# Check whether --enable-libevent-install was given.
5087290001Sglebiusif test "${enable_libevent_install+set}" = set; then :
5088290001Sglebius  enableval=$enable_libevent_install;
5089290001Sglebiuselse
5090290001Sglebius  enable_libevent_install=yes
5091290001Sglebiusfi
5092290001Sglebius
5093290001Sglebius# Check whether --enable-libevent-regress was given.
5094290001Sglebiusif test "${enable_libevent_regress+set}" = set; then :
5095290001Sglebius  enableval=$enable_libevent_regress;
5096290001Sglebiuselse
5097290001Sglebius  enable_libevent_regress=yes
5098290001Sglebiusfi
5099290001Sglebius
5100290001Sglebius# Check whether --enable-samples was given.
5101290001Sglebiusif test "${enable_samples+set}" = set; then :
5102290001Sglebius  enableval=$enable_samples;
5103290001Sglebiuselse
5104290001Sglebius  enable_samples=yes
5105290001Sglebiusfi
5106290001Sglebius
5107290001Sglebius# Check whether --enable-function-sections was given.
5108290001Sglebiusif test "${enable_function_sections+set}" = set; then :
5109290001Sglebius  enableval=$enable_function_sections;
5110290001Sglebiuselse
5111290001Sglebius  enable_function_sections=no
5112290001Sglebiusfi
5113290001Sglebius
5114290001Sglebius# Check whether --enable-verbose-debug was given.
5115290001Sglebiusif test "${enable_verbose_debug+set}" = set; then :
5116290001Sglebius  enableval=$enable_verbose_debug;
5117290001Sglebiuselse
5118290001Sglebius  enable_verbose_debug=no
5119290001Sglebiusfi
5120290001Sglebius
5121290001Sglebius
5122290001Sglebius
5123290001Sglebiuscase `pwd` in
5124290001Sglebius  *\ * | *\	*)
5125290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5126290001Sglebius$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5127290001Sglebiusesac
5128290001Sglebius
5129290001Sglebius
5130290001Sglebius
5131290001Sglebiusmacro_version='2.4.2'
5132290001Sglebiusmacro_revision='1.3337'
5133290001Sglebius
5134290001Sglebius
5135290001Sglebius
5136290001Sglebius
5137290001Sglebius
5138290001Sglebius
5139290001Sglebius
5140290001Sglebius
5141290001Sglebius
5142290001Sglebius
5143290001Sglebius
5144290001Sglebius
5145290001Sglebius
5146290001Sglebiusltmain="$ac_aux_dir/ltmain.sh"
5147290001Sglebius
5148290001Sglebius# Backslashify metacharacters that are still active within
5149290001Sglebius# double-quoted strings.
5150290001Sglebiussed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5151290001Sglebius
5152290001Sglebius# Same as above, but do not quote variable references.
5153290001Sglebiusdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
5154290001Sglebius
5155290001Sglebius# Sed substitution to delay expansion of an escaped shell variable in a
5156290001Sglebius# double_quote_subst'ed string.
5157290001Sglebiusdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5158290001Sglebius
5159290001Sglebius# Sed substitution to delay expansion of an escaped single quote.
5160290001Sglebiusdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5161290001Sglebius
5162290001Sglebius# Sed substitution to avoid accidental globbing in evaled expressions
5163290001Sglebiusno_glob_subst='s/\*/\\\*/g'
5164290001Sglebius
5165290001SglebiusECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5166290001SglebiusECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5167290001SglebiusECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5168290001Sglebius
5169290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5170290001Sglebius$as_echo_n "checking how to print strings... " >&6; }
5171290001Sglebius# Test print first, because it will be a builtin if present.
5172290001Sglebiusif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5173290001Sglebius   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5174290001Sglebius  ECHO='print -r --'
5175290001Sglebiuselif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5176290001Sglebius  ECHO='printf %s\n'
5177290001Sglebiuselse
5178290001Sglebius  # Use this function as a fallback that always works.
5179290001Sglebius  func_fallback_echo ()
5180290001Sglebius  {
5181290001Sglebius    eval 'cat <<_LTECHO_EOF
5182290001Sglebius$1
5183290001Sglebius_LTECHO_EOF'
5184290001Sglebius  }
5185290001Sglebius  ECHO='func_fallback_echo'
5186290001Sglebiusfi
5187290001Sglebius
5188290001Sglebius# func_echo_all arg...
5189290001Sglebius# Invoke $ECHO with all args, space-separated.
5190290001Sglebiusfunc_echo_all ()
5191290001Sglebius{
5192290001Sglebius    $ECHO ""
5193290001Sglebius}
5194290001Sglebius
5195290001Sglebiuscase "$ECHO" in
5196290001Sglebius  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5197290001Sglebius$as_echo "printf" >&6; } ;;
5198290001Sglebius  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5199290001Sglebius$as_echo "print -r" >&6; } ;;
5200290001Sglebius  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5201290001Sglebius$as_echo "cat" >&6; } ;;
5202290001Sglebiusesac
5203290001Sglebius
5204290001Sglebius
5205290001Sglebius
5206290001Sglebius
5207290001Sglebius
5208290001Sglebius
5209290001Sglebius
5210290001Sglebius
5211290001Sglebius
5212290001Sglebius
5213290001Sglebius
5214290001Sglebius
5215290001Sglebius
5216290001Sglebius
5217290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5218290001Sglebius$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5219290001Sglebiusif ${ac_cv_path_SED+:} false; then :
5220290001Sglebius  $as_echo_n "(cached) " >&6
5221290001Sglebiuselse
5222290001Sglebius            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5223290001Sglebius     for ac_i in 1 2 3 4 5 6 7; do
5224290001Sglebius       ac_script="$ac_script$as_nl$ac_script"
5225290001Sglebius     done
5226290001Sglebius     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5227290001Sglebius     { ac_script=; unset ac_script;}
5228290001Sglebius     if test -z "$SED"; then
5229290001Sglebius  ac_path_SED_found=false
5230290001Sglebius  # Loop through the user's path and test for each of PROGNAME-LIST
5231290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232290001Sglebiusfor as_dir in $PATH
5233290001Sglebiusdo
5234290001Sglebius  IFS=$as_save_IFS
5235290001Sglebius  test -z "$as_dir" && as_dir=.
5236290001Sglebius    for ac_prog in sed gsed; do
5237290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
5238290001Sglebius      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5239290001Sglebius      as_fn_executable_p "$ac_path_SED" || continue
5240290001Sglebius# Check for GNU ac_path_SED and select it if it is found.
5241290001Sglebius  # Check for GNU $ac_path_SED
5242290001Sglebiuscase `"$ac_path_SED" --version 2>&1` in
5243290001Sglebius*GNU*)
5244290001Sglebius  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5245290001Sglebius*)
5246290001Sglebius  ac_count=0
5247290001Sglebius  $as_echo_n 0123456789 >"conftest.in"
5248290001Sglebius  while :
5249290001Sglebius  do
5250290001Sglebius    cat "conftest.in" "conftest.in" >"conftest.tmp"
5251290001Sglebius    mv "conftest.tmp" "conftest.in"
5252290001Sglebius    cp "conftest.in" "conftest.nl"
5253290001Sglebius    $as_echo '' >> "conftest.nl"
5254290001Sglebius    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5255290001Sglebius    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5256290001Sglebius    as_fn_arith $ac_count + 1 && ac_count=$as_val
5257290001Sglebius    if test $ac_count -gt ${ac_path_SED_max-0}; then
5258290001Sglebius      # Best one so far, save it but keep looking for a better one
5259290001Sglebius      ac_cv_path_SED="$ac_path_SED"
5260290001Sglebius      ac_path_SED_max=$ac_count
5261290001Sglebius    fi
5262290001Sglebius    # 10*(2^10) chars as input seems more than enough
5263290001Sglebius    test $ac_count -gt 10 && break
5264290001Sglebius  done
5265290001Sglebius  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5266290001Sglebiusesac
5267290001Sglebius
5268290001Sglebius      $ac_path_SED_found && break 3
5269290001Sglebius    done
5270290001Sglebius  done
5271290001Sglebius  done
5272290001SglebiusIFS=$as_save_IFS
5273290001Sglebius  if test -z "$ac_cv_path_SED"; then
5274290001Sglebius    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5275290001Sglebius  fi
5276290001Sglebiuselse
5277290001Sglebius  ac_cv_path_SED=$SED
5278290001Sglebiusfi
5279290001Sglebius
5280290001Sglebiusfi
5281290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5282290001Sglebius$as_echo "$ac_cv_path_SED" >&6; }
5283290001Sglebius SED="$ac_cv_path_SED"
5284290001Sglebius  rm -f conftest.sed
5285290001Sglebius
5286290001Sglebiustest -z "$SED" && SED=sed
5287290001SglebiusXsed="$SED -e 1s/^X//"
5288290001Sglebius
5289290001Sglebius
5290290001Sglebius
5291290001Sglebius
5292290001Sglebius
5293290001Sglebius
5294290001Sglebius
5295290001Sglebius
5296290001Sglebius
5297290001Sglebius
5298290001Sglebius
5299290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5300290001Sglebius$as_echo_n "checking for fgrep... " >&6; }
5301290001Sglebiusif ${ac_cv_path_FGREP+:} false; then :
5302290001Sglebius  $as_echo_n "(cached) " >&6
5303290001Sglebiuselse
5304290001Sglebius  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5305290001Sglebius   then ac_cv_path_FGREP="$GREP -F"
5306290001Sglebius   else
5307290001Sglebius     if test -z "$FGREP"; then
5308290001Sglebius  ac_path_FGREP_found=false
5309290001Sglebius  # Loop through the user's path and test for each of PROGNAME-LIST
5310290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311290001Sglebiusfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5312290001Sglebiusdo
5313290001Sglebius  IFS=$as_save_IFS
5314290001Sglebius  test -z "$as_dir" && as_dir=.
5315290001Sglebius    for ac_prog in fgrep; do
5316290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
5317290001Sglebius      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5318290001Sglebius      as_fn_executable_p "$ac_path_FGREP" || continue
5319290001Sglebius# Check for GNU ac_path_FGREP and select it if it is found.
5320290001Sglebius  # Check for GNU $ac_path_FGREP
5321290001Sglebiuscase `"$ac_path_FGREP" --version 2>&1` in
5322290001Sglebius*GNU*)
5323290001Sglebius  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5324290001Sglebius*)
5325290001Sglebius  ac_count=0
5326290001Sglebius  $as_echo_n 0123456789 >"conftest.in"
5327290001Sglebius  while :
5328290001Sglebius  do
5329290001Sglebius    cat "conftest.in" "conftest.in" >"conftest.tmp"
5330290001Sglebius    mv "conftest.tmp" "conftest.in"
5331290001Sglebius    cp "conftest.in" "conftest.nl"
5332290001Sglebius    $as_echo 'FGREP' >> "conftest.nl"
5333290001Sglebius    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334290001Sglebius    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335290001Sglebius    as_fn_arith $ac_count + 1 && ac_count=$as_val
5336290001Sglebius    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5337290001Sglebius      # Best one so far, save it but keep looking for a better one
5338290001Sglebius      ac_cv_path_FGREP="$ac_path_FGREP"
5339290001Sglebius      ac_path_FGREP_max=$ac_count
5340290001Sglebius    fi
5341290001Sglebius    # 10*(2^10) chars as input seems more than enough
5342290001Sglebius    test $ac_count -gt 10 && break
5343290001Sglebius  done
5344290001Sglebius  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5345290001Sglebiusesac
5346290001Sglebius
5347290001Sglebius      $ac_path_FGREP_found && break 3
5348290001Sglebius    done
5349290001Sglebius  done
5350290001Sglebius  done
5351290001SglebiusIFS=$as_save_IFS
5352290001Sglebius  if test -z "$ac_cv_path_FGREP"; then
5353290001Sglebius    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5354290001Sglebius  fi
5355290001Sglebiuselse
5356290001Sglebius  ac_cv_path_FGREP=$FGREP
5357290001Sglebiusfi
5358290001Sglebius
5359290001Sglebius   fi
5360290001Sglebiusfi
5361290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5362290001Sglebius$as_echo "$ac_cv_path_FGREP" >&6; }
5363290001Sglebius FGREP="$ac_cv_path_FGREP"
5364290001Sglebius
5365290001Sglebius
5366290001Sglebiustest -z "$GREP" && GREP=grep
5367290001Sglebius
5368290001Sglebius
5369290001Sglebius
5370290001Sglebius
5371290001Sglebius
5372290001Sglebius
5373290001Sglebius
5374290001Sglebius
5375290001Sglebius
5376290001Sglebius
5377290001Sglebius
5378290001Sglebius
5379290001Sglebius
5380290001Sglebius
5381290001Sglebius
5382290001Sglebius
5383290001Sglebius
5384290001Sglebius
5385290001Sglebius
5386290001Sglebius# Check whether --with-gnu-ld was given.
5387290001Sglebiusif test "${with_gnu_ld+set}" = set; then :
5388290001Sglebius  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5389290001Sglebiuselse
5390290001Sglebius  with_gnu_ld=no
5391290001Sglebiusfi
5392290001Sglebius
5393290001Sglebiusac_prog=ld
5394290001Sglebiusif test "$GCC" = yes; then
5395290001Sglebius  # Check if gcc -print-prog-name=ld gives a path.
5396290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5397290001Sglebius$as_echo_n "checking for ld used by $CC... " >&6; }
5398290001Sglebius  case $host in
5399290001Sglebius  *-*-mingw*)
5400290001Sglebius    # gcc leaves a trailing carriage return which upsets mingw
5401290001Sglebius    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5402290001Sglebius  *)
5403290001Sglebius    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5404290001Sglebius  esac
5405290001Sglebius  case $ac_prog in
5406290001Sglebius    # Accept absolute paths.
5407290001Sglebius    [\\/]* | ?:[\\/]*)
5408290001Sglebius      re_direlt='/[^/][^/]*/\.\./'
5409290001Sglebius      # Canonicalize the pathname of ld
5410290001Sglebius      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5411290001Sglebius      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5412290001Sglebius	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5413290001Sglebius      done
5414290001Sglebius      test -z "$LD" && LD="$ac_prog"
5415290001Sglebius      ;;
5416290001Sglebius  "")
5417290001Sglebius    # If it fails, then pretend we aren't using GCC.
5418290001Sglebius    ac_prog=ld
5419290001Sglebius    ;;
5420290001Sglebius  *)
5421290001Sglebius    # If it is relative, then search for the first ld in PATH.
5422290001Sglebius    with_gnu_ld=unknown
5423290001Sglebius    ;;
5424290001Sglebius  esac
5425290001Sglebiuselif test "$with_gnu_ld" = yes; then
5426290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5427290001Sglebius$as_echo_n "checking for GNU ld... " >&6; }
5428290001Sglebiuselse
5429290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5430290001Sglebius$as_echo_n "checking for non-GNU ld... " >&6; }
5431290001Sglebiusfi
5432290001Sglebiusif ${lt_cv_path_LD+:} false; then :
5433290001Sglebius  $as_echo_n "(cached) " >&6
5434290001Sglebiuselse
5435290001Sglebius  if test -z "$LD"; then
5436290001Sglebius  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5437290001Sglebius  for ac_dir in $PATH; do
5438290001Sglebius    IFS="$lt_save_ifs"
5439290001Sglebius    test -z "$ac_dir" && ac_dir=.
5440290001Sglebius    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5441290001Sglebius      lt_cv_path_LD="$ac_dir/$ac_prog"
5442290001Sglebius      # Check to see if the program is GNU ld.  I'd rather use --version,
5443290001Sglebius      # but apparently some variants of GNU ld only accept -v.
5444290001Sglebius      # Break only if it was the GNU/non-GNU ld that we prefer.
5445290001Sglebius      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5446290001Sglebius      *GNU* | *'with BFD'*)
5447290001Sglebius	test "$with_gnu_ld" != no && break
5448290001Sglebius	;;
5449290001Sglebius      *)
5450290001Sglebius	test "$with_gnu_ld" != yes && break
5451290001Sglebius	;;
5452290001Sglebius      esac
5453290001Sglebius    fi
5454290001Sglebius  done
5455290001Sglebius  IFS="$lt_save_ifs"
5456290001Sglebiuselse
5457290001Sglebius  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5458290001Sglebiusfi
5459290001Sglebiusfi
5460290001Sglebius
5461290001SglebiusLD="$lt_cv_path_LD"
5462290001Sglebiusif test -n "$LD"; then
5463290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5464290001Sglebius$as_echo "$LD" >&6; }
5465290001Sglebiuselse
5466290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467290001Sglebius$as_echo "no" >&6; }
5468290001Sglebiusfi
5469290001Sglebiustest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5470290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5471290001Sglebius$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5472290001Sglebiusif ${lt_cv_prog_gnu_ld+:} false; then :
5473290001Sglebius  $as_echo_n "(cached) " >&6
5474290001Sglebiuselse
5475290001Sglebius  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5476290001Sglebiuscase `$LD -v 2>&1 </dev/null` in
5477290001Sglebius*GNU* | *'with BFD'*)
5478290001Sglebius  lt_cv_prog_gnu_ld=yes
5479290001Sglebius  ;;
5480290001Sglebius*)
5481290001Sglebius  lt_cv_prog_gnu_ld=no
5482290001Sglebius  ;;
5483290001Sglebiusesac
5484290001Sglebiusfi
5485290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5486290001Sglebius$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5487290001Sglebiuswith_gnu_ld=$lt_cv_prog_gnu_ld
5488290001Sglebius
5489290001Sglebius
5490290001Sglebius
5491290001Sglebius
5492290001Sglebius
5493290001Sglebius
5494290001Sglebius
5495290001Sglebius
5496290001Sglebius
5497290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5498290001Sglebius$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5499290001Sglebiusif ${lt_cv_path_NM+:} false; then :
5500290001Sglebius  $as_echo_n "(cached) " >&6
5501290001Sglebiuselse
5502290001Sglebius  if test -n "$NM"; then
5503290001Sglebius  # Let the user override the test.
5504290001Sglebius  lt_cv_path_NM="$NM"
5505290001Sglebiuselse
5506290001Sglebius  lt_nm_to_check="${ac_tool_prefix}nm"
5507290001Sglebius  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5508290001Sglebius    lt_nm_to_check="$lt_nm_to_check nm"
5509290001Sglebius  fi
5510290001Sglebius  for lt_tmp_nm in $lt_nm_to_check; do
5511290001Sglebius    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5512290001Sglebius    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5513290001Sglebius      IFS="$lt_save_ifs"
5514290001Sglebius      test -z "$ac_dir" && ac_dir=.
5515290001Sglebius      tmp_nm="$ac_dir/$lt_tmp_nm"
5516290001Sglebius      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5517290001Sglebius	# Check to see if the nm accepts a BSD-compat flag.
5518290001Sglebius	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5519290001Sglebius	#   nm: unknown option "B" ignored
5520290001Sglebius	# Tru64's nm complains that /dev/null is an invalid object file
5521290001Sglebius	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5522290001Sglebius	*/dev/null* | *'Invalid file or object type'*)
5523290001Sglebius	  lt_cv_path_NM="$tmp_nm -B"
5524290001Sglebius	  break
5525290001Sglebius	  ;;
5526290001Sglebius	*)
5527290001Sglebius	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5528290001Sglebius	  */dev/null*)
5529290001Sglebius	    lt_cv_path_NM="$tmp_nm -p"
5530290001Sglebius	    break
5531290001Sglebius	    ;;
5532290001Sglebius	  *)
5533290001Sglebius	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5534290001Sglebius	    continue # so that we can try to find one that supports BSD flags
5535290001Sglebius	    ;;
5536290001Sglebius	  esac
5537290001Sglebius	  ;;
5538290001Sglebius	esac
5539290001Sglebius      fi
5540290001Sglebius    done
5541290001Sglebius    IFS="$lt_save_ifs"
5542290001Sglebius  done
5543290001Sglebius  : ${lt_cv_path_NM=no}
5544290001Sglebiusfi
5545290001Sglebiusfi
5546290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5547290001Sglebius$as_echo "$lt_cv_path_NM" >&6; }
5548290001Sglebiusif test "$lt_cv_path_NM" != "no"; then
5549290001Sglebius  NM="$lt_cv_path_NM"
5550290001Sglebiuselse
5551290001Sglebius  # Didn't find any BSD compatible name lister, look for dumpbin.
5552290001Sglebius  if test -n "$DUMPBIN"; then :
5553290001Sglebius    # Let the user override the test.
5554290001Sglebius  else
5555290001Sglebius    if test -n "$ac_tool_prefix"; then
5556290001Sglebius  for ac_prog in dumpbin "link -dump"
5557290001Sglebius  do
5558290001Sglebius    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559290001Sglebiusset dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
5562290001Sglebiusif ${ac_cv_prog_DUMPBIN+:} false; then :
5563290001Sglebius  $as_echo_n "(cached) " >&6
5564290001Sglebiuselse
5565290001Sglebius  if test -n "$DUMPBIN"; then
5566290001Sglebius  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5567290001Sglebiuselse
5568290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569290001Sglebiusfor as_dir in $PATH
5570290001Sglebiusdo
5571290001Sglebius  IFS=$as_save_IFS
5572290001Sglebius  test -z "$as_dir" && as_dir=.
5573290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
5574290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575290001Sglebius    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5576290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577290001Sglebius    break 2
5578290001Sglebius  fi
5579290001Sglebiusdone
5580290001Sglebius  done
5581290001SglebiusIFS=$as_save_IFS
5582290001Sglebius
5583290001Sglebiusfi
5584290001Sglebiusfi
5585290001SglebiusDUMPBIN=$ac_cv_prog_DUMPBIN
5586290001Sglebiusif test -n "$DUMPBIN"; then
5587290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5588290001Sglebius$as_echo "$DUMPBIN" >&6; }
5589290001Sglebiuselse
5590290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591290001Sglebius$as_echo "no" >&6; }
5592290001Sglebiusfi
5593290001Sglebius
5594290001Sglebius
5595290001Sglebius    test -n "$DUMPBIN" && break
5596290001Sglebius  done
5597290001Sglebiusfi
5598290001Sglebiusif test -z "$DUMPBIN"; then
5599290001Sglebius  ac_ct_DUMPBIN=$DUMPBIN
5600290001Sglebius  for ac_prog in dumpbin "link -dump"
5601290001Sglebiusdo
5602290001Sglebius  # Extract the first word of "$ac_prog", so it can be a program name with args.
5603290001Sglebiusset dummy $ac_prog; ac_word=$2
5604290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
5606290001Sglebiusif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5607290001Sglebius  $as_echo_n "(cached) " >&6
5608290001Sglebiuselse
5609290001Sglebius  if test -n "$ac_ct_DUMPBIN"; then
5610290001Sglebius  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5611290001Sglebiuselse
5612290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613290001Sglebiusfor as_dir in $PATH
5614290001Sglebiusdo
5615290001Sglebius  IFS=$as_save_IFS
5616290001Sglebius  test -z "$as_dir" && as_dir=.
5617290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
5618290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619290001Sglebius    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5620290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621290001Sglebius    break 2
5622290001Sglebius  fi
5623290001Sglebiusdone
5624290001Sglebius  done
5625290001SglebiusIFS=$as_save_IFS
5626290001Sglebius
5627290001Sglebiusfi
5628290001Sglebiusfi
5629290001Sglebiusac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5630290001Sglebiusif test -n "$ac_ct_DUMPBIN"; then
5631290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5632290001Sglebius$as_echo "$ac_ct_DUMPBIN" >&6; }
5633290001Sglebiuselse
5634290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635290001Sglebius$as_echo "no" >&6; }
5636290001Sglebiusfi
5637290001Sglebius
5638290001Sglebius
5639290001Sglebius  test -n "$ac_ct_DUMPBIN" && break
5640290001Sglebiusdone
5641290001Sglebius
5642290001Sglebius  if test "x$ac_ct_DUMPBIN" = x; then
5643290001Sglebius    DUMPBIN=":"
5644290001Sglebius  else
5645290001Sglebius    case $cross_compiling:$ac_tool_warned in
5646290001Sglebiusyes:)
5647290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649290001Sglebiusac_tool_warned=yes ;;
5650290001Sglebiusesac
5651290001Sglebius    DUMPBIN=$ac_ct_DUMPBIN
5652290001Sglebius  fi
5653290001Sglebiusfi
5654290001Sglebius
5655290001Sglebius    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5656290001Sglebius    *COFF*)
5657290001Sglebius      DUMPBIN="$DUMPBIN -symbols"
5658290001Sglebius      ;;
5659290001Sglebius    *)
5660290001Sglebius      DUMPBIN=:
5661290001Sglebius      ;;
5662290001Sglebius    esac
5663290001Sglebius  fi
5664290001Sglebius
5665290001Sglebius  if test "$DUMPBIN" != ":"; then
5666290001Sglebius    NM="$DUMPBIN"
5667290001Sglebius  fi
5668290001Sglebiusfi
5669290001Sglebiustest -z "$NM" && NM=nm
5670290001Sglebius
5671290001Sglebius
5672290001Sglebius
5673290001Sglebius
5674290001Sglebius
5675290001Sglebius
5676290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5677290001Sglebius$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5678290001Sglebiusif ${lt_cv_nm_interface+:} false; then :
5679290001Sglebius  $as_echo_n "(cached) " >&6
5680290001Sglebiuselse
5681290001Sglebius  lt_cv_nm_interface="BSD nm"
5682290001Sglebius  echo "int some_variable = 0;" > conftest.$ac_ext
5683290001Sglebius  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5684290001Sglebius  (eval "$ac_compile" 2>conftest.err)
5685290001Sglebius  cat conftest.err >&5
5686290001Sglebius  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5687290001Sglebius  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5688290001Sglebius  cat conftest.err >&5
5689290001Sglebius  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5690290001Sglebius  cat conftest.out >&5
5691290001Sglebius  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5692290001Sglebius    lt_cv_nm_interface="MS dumpbin"
5693290001Sglebius  fi
5694290001Sglebius  rm -f conftest*
5695290001Sglebiusfi
5696290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5697290001Sglebius$as_echo "$lt_cv_nm_interface" >&6; }
5698290001Sglebius
5699290001Sglebius# find the maximum length of command line arguments
5700290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5701290001Sglebius$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5702290001Sglebiusif ${lt_cv_sys_max_cmd_len+:} false; then :
5703290001Sglebius  $as_echo_n "(cached) " >&6
5704290001Sglebiuselse
5705290001Sglebius    i=0
5706290001Sglebius  teststring="ABCD"
5707290001Sglebius
5708290001Sglebius  case $build_os in
5709290001Sglebius  msdosdjgpp*)
5710290001Sglebius    # On DJGPP, this test can blow up pretty badly due to problems in libc
5711290001Sglebius    # (any single argument exceeding 2000 bytes causes a buffer overrun
5712290001Sglebius    # during glob expansion).  Even if it were fixed, the result of this
5713290001Sglebius    # check would be larger than it should be.
5714290001Sglebius    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5715290001Sglebius    ;;
5716290001Sglebius
5717290001Sglebius  gnu*)
5718290001Sglebius    # Under GNU Hurd, this test is not required because there is
5719290001Sglebius    # no limit to the length of command line arguments.
5720290001Sglebius    # Libtool will interpret -1 as no limit whatsoever
5721290001Sglebius    lt_cv_sys_max_cmd_len=-1;
5722290001Sglebius    ;;
5723290001Sglebius
5724290001Sglebius  cygwin* | mingw* | cegcc*)
5725290001Sglebius    # On Win9x/ME, this test blows up -- it succeeds, but takes
5726290001Sglebius    # about 5 minutes as the teststring grows exponentially.
5727290001Sglebius    # Worse, since 9x/ME are not pre-emptively multitasking,
5728290001Sglebius    # you end up with a "frozen" computer, even though with patience
5729290001Sglebius    # the test eventually succeeds (with a max line length of 256k).
5730290001Sglebius    # Instead, let's just punt: use the minimum linelength reported by
5731290001Sglebius    # all of the supported platforms: 8192 (on NT/2K/XP).
5732290001Sglebius    lt_cv_sys_max_cmd_len=8192;
5733290001Sglebius    ;;
5734290001Sglebius
5735290001Sglebius  mint*)
5736290001Sglebius    # On MiNT this can take a long time and run out of memory.
5737290001Sglebius    lt_cv_sys_max_cmd_len=8192;
5738290001Sglebius    ;;
5739290001Sglebius
5740290001Sglebius  amigaos*)
5741290001Sglebius    # On AmigaOS with pdksh, this test takes hours, literally.
5742290001Sglebius    # So we just punt and use a minimum line length of 8192.
5743290001Sglebius    lt_cv_sys_max_cmd_len=8192;
5744290001Sglebius    ;;
5745290001Sglebius
5746290001Sglebius  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5747290001Sglebius    # This has been around since 386BSD, at least.  Likely further.
5748290001Sglebius    if test -x /sbin/sysctl; then
5749290001Sglebius      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5750290001Sglebius    elif test -x /usr/sbin/sysctl; then
5751290001Sglebius      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5752290001Sglebius    else
5753290001Sglebius      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5754290001Sglebius    fi
5755290001Sglebius    # And add a safety zone
5756290001Sglebius    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5757290001Sglebius    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5758290001Sglebius    ;;
5759290001Sglebius
5760290001Sglebius  interix*)
5761290001Sglebius    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5762290001Sglebius    lt_cv_sys_max_cmd_len=196608
5763290001Sglebius    ;;
5764290001Sglebius
5765290001Sglebius  osf*)
5766290001Sglebius    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5767290001Sglebius    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5768290001Sglebius    # nice to cause kernel panics so lets avoid the loop below.
5769290001Sglebius    # First set a reasonable default.
5770290001Sglebius    lt_cv_sys_max_cmd_len=16384
5771290001Sglebius    #
5772290001Sglebius    if test -x /sbin/sysconfig; then
5773290001Sglebius      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5774290001Sglebius        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5775290001Sglebius      esac
5776290001Sglebius    fi
5777290001Sglebius    ;;
5778290001Sglebius  sco3.2v5*)
5779290001Sglebius    lt_cv_sys_max_cmd_len=102400
5780290001Sglebius    ;;
5781290001Sglebius  sysv5* | sco5v6* | sysv4.2uw2*)
5782290001Sglebius    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5783290001Sglebius    if test -n "$kargmax"; then
5784290001Sglebius      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5785290001Sglebius    else
5786290001Sglebius      lt_cv_sys_max_cmd_len=32768
5787290001Sglebius    fi
5788290001Sglebius    ;;
5789290001Sglebius  *)
5790290001Sglebius    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5791290001Sglebius    if test -n "$lt_cv_sys_max_cmd_len"; then
5792290001Sglebius      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5793290001Sglebius      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5794290001Sglebius    else
5795290001Sglebius      # Make teststring a little bigger before we do anything with it.
5796290001Sglebius      # a 1K string should be a reasonable start.
5797290001Sglebius      for i in 1 2 3 4 5 6 7 8 ; do
5798290001Sglebius        teststring=$teststring$teststring
5799290001Sglebius      done
5800290001Sglebius      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5801290001Sglebius      # If test is not a shell built-in, we'll probably end up computing a
5802290001Sglebius      # maximum length that is only half of the actual maximum length, but
5803290001Sglebius      # we can't tell.
5804290001Sglebius      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5805290001Sglebius	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5806290001Sglebius	      test $i != 17 # 1/2 MB should be enough
5807290001Sglebius      do
5808290001Sglebius        i=`expr $i + 1`
5809290001Sglebius        teststring=$teststring$teststring
5810290001Sglebius      done
5811290001Sglebius      # Only check the string length outside the loop.
5812290001Sglebius      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5813290001Sglebius      teststring=
5814290001Sglebius      # Add a significant safety factor because C++ compilers can tack on
5815290001Sglebius      # massive amounts of additional arguments before passing them to the
5816290001Sglebius      # linker.  It appears as though 1/2 is a usable value.
5817290001Sglebius      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5818290001Sglebius    fi
5819290001Sglebius    ;;
5820290001Sglebius  esac
5821290001Sglebius
5822290001Sglebiusfi
5823290001Sglebius
5824290001Sglebiusif test -n $lt_cv_sys_max_cmd_len ; then
5825290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5826290001Sglebius$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5827290001Sglebiuselse
5828290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5829290001Sglebius$as_echo "none" >&6; }
5830290001Sglebiusfi
5831290001Sglebiusmax_cmd_len=$lt_cv_sys_max_cmd_len
5832290001Sglebius
5833290001Sglebius
5834290001Sglebius
5835290001Sglebius
5836290001Sglebius
5837290001Sglebius
5838290001Sglebius: ${CP="cp -f"}
5839290001Sglebius: ${MV="mv -f"}
5840290001Sglebius: ${RM="rm -f"}
5841290001Sglebius
5842290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5843290001Sglebius$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5844290001Sglebius# Try some XSI features
5845290001Sglebiusxsi_shell=no
5846290001Sglebius( _lt_dummy="a/b/c"
5847290001Sglebius  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5848290001Sglebius      = c,a/b,b/c, \
5849290001Sglebius    && eval 'test $(( 1 + 1 )) -eq 2 \
5850290001Sglebius    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5851290001Sglebius  && xsi_shell=yes
5852290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5853290001Sglebius$as_echo "$xsi_shell" >&6; }
5854290001Sglebius
5855290001Sglebius
5856290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5857290001Sglebius$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5858290001Sglebiuslt_shell_append=no
5859290001Sglebius( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5860290001Sglebius    >/dev/null 2>&1 \
5861290001Sglebius  && lt_shell_append=yes
5862290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5863290001Sglebius$as_echo "$lt_shell_append" >&6; }
5864290001Sglebius
5865290001Sglebius
5866290001Sglebiusif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5867290001Sglebius  lt_unset=unset
5868290001Sglebiuselse
5869290001Sglebius  lt_unset=false
5870290001Sglebiusfi
5871290001Sglebius
5872290001Sglebius
5873290001Sglebius
5874290001Sglebius
5875290001Sglebius
5876290001Sglebius# test EBCDIC or ASCII
5877290001Sglebiuscase `echo X|tr X '\101'` in
5878290001Sglebius A) # ASCII based system
5879290001Sglebius    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5880290001Sglebius  lt_SP2NL='tr \040 \012'
5881290001Sglebius  lt_NL2SP='tr \015\012 \040\040'
5882290001Sglebius  ;;
5883290001Sglebius *) # EBCDIC based system
5884290001Sglebius  lt_SP2NL='tr \100 \n'
5885290001Sglebius  lt_NL2SP='tr \r\n \100\100'
5886290001Sglebius  ;;
5887290001Sglebiusesac
5888290001Sglebius
5889290001Sglebius
5890290001Sglebius
5891290001Sglebius
5892290001Sglebius
5893290001Sglebius
5894290001Sglebius
5895290001Sglebius
5896290001Sglebius
5897290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5898290001Sglebius$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5899290001Sglebiusif ${lt_cv_to_host_file_cmd+:} false; then :
5900290001Sglebius  $as_echo_n "(cached) " >&6
5901290001Sglebiuselse
5902290001Sglebius  case $host in
5903290001Sglebius  *-*-mingw* )
5904290001Sglebius    case $build in
5905290001Sglebius      *-*-mingw* ) # actually msys
5906290001Sglebius        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5907290001Sglebius        ;;
5908290001Sglebius      *-*-cygwin* )
5909290001Sglebius        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5910290001Sglebius        ;;
5911290001Sglebius      * ) # otherwise, assume *nix
5912290001Sglebius        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5913290001Sglebius        ;;
5914290001Sglebius    esac
5915290001Sglebius    ;;
5916290001Sglebius  *-*-cygwin* )
5917290001Sglebius    case $build in
5918290001Sglebius      *-*-mingw* ) # actually msys
5919290001Sglebius        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5920290001Sglebius        ;;
5921290001Sglebius      *-*-cygwin* )
5922290001Sglebius        lt_cv_to_host_file_cmd=func_convert_file_noop
5923290001Sglebius        ;;
5924290001Sglebius      * ) # otherwise, assume *nix
5925290001Sglebius        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5926290001Sglebius        ;;
5927290001Sglebius    esac
5928290001Sglebius    ;;
5929290001Sglebius  * ) # unhandled hosts (and "normal" native builds)
5930290001Sglebius    lt_cv_to_host_file_cmd=func_convert_file_noop
5931290001Sglebius    ;;
5932290001Sglebiusesac
5933290001Sglebius
5934290001Sglebiusfi
5935290001Sglebius
5936290001Sglebiusto_host_file_cmd=$lt_cv_to_host_file_cmd
5937290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5938290001Sglebius$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5939290001Sglebius
5940290001Sglebius
5941290001Sglebius
5942290001Sglebius
5943290001Sglebius
5944290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5945290001Sglebius$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5946290001Sglebiusif ${lt_cv_to_tool_file_cmd+:} false; then :
5947290001Sglebius  $as_echo_n "(cached) " >&6
5948290001Sglebiuselse
5949290001Sglebius  #assume ordinary cross tools, or native build.
5950290001Sglebiuslt_cv_to_tool_file_cmd=func_convert_file_noop
5951290001Sglebiuscase $host in
5952290001Sglebius  *-*-mingw* )
5953290001Sglebius    case $build in
5954290001Sglebius      *-*-mingw* ) # actually msys
5955290001Sglebius        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5956290001Sglebius        ;;
5957290001Sglebius    esac
5958290001Sglebius    ;;
5959290001Sglebiusesac
5960290001Sglebius
5961290001Sglebiusfi
5962290001Sglebius
5963290001Sglebiusto_tool_file_cmd=$lt_cv_to_tool_file_cmd
5964290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5965290001Sglebius$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5966290001Sglebius
5967290001Sglebius
5968290001Sglebius
5969290001Sglebius
5970290001Sglebius
5971290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5972290001Sglebius$as_echo_n "checking for $LD option to reload object files... " >&6; }
5973290001Sglebiusif ${lt_cv_ld_reload_flag+:} false; then :
5974290001Sglebius  $as_echo_n "(cached) " >&6
5975290001Sglebiuselse
5976290001Sglebius  lt_cv_ld_reload_flag='-r'
5977290001Sglebiusfi
5978290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5979290001Sglebius$as_echo "$lt_cv_ld_reload_flag" >&6; }
5980290001Sglebiusreload_flag=$lt_cv_ld_reload_flag
5981290001Sglebiuscase $reload_flag in
5982290001Sglebius"" | " "*) ;;
5983290001Sglebius*) reload_flag=" $reload_flag" ;;
5984290001Sglebiusesac
5985290001Sglebiusreload_cmds='$LD$reload_flag -o $output$reload_objs'
5986290001Sglebiuscase $host_os in
5987290001Sglebius  cygwin* | mingw* | pw32* | cegcc*)
5988290001Sglebius    if test "$GCC" != yes; then
5989290001Sglebius      reload_cmds=false
5990290001Sglebius    fi
5991290001Sglebius    ;;
5992290001Sglebius  darwin*)
5993290001Sglebius    if test "$GCC" = yes; then
5994290001Sglebius      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5995290001Sglebius    else
5996290001Sglebius      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5997290001Sglebius    fi
5998290001Sglebius    ;;
5999290001Sglebiusesac
6000290001Sglebius
6001290001Sglebius
6002290001Sglebius
6003290001Sglebius
6004290001Sglebius
6005290001Sglebius
6006290001Sglebius
6007290001Sglebius
6008290001Sglebius
6009290001Sglebiusif test -n "$ac_tool_prefix"; then
6010290001Sglebius  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6011290001Sglebiusset dummy ${ac_tool_prefix}objdump; ac_word=$2
6012290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6014290001Sglebiusif ${ac_cv_prog_OBJDUMP+:} false; then :
6015290001Sglebius  $as_echo_n "(cached) " >&6
6016290001Sglebiuselse
6017290001Sglebius  if test -n "$OBJDUMP"; then
6018290001Sglebius  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6019290001Sglebiuselse
6020290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021290001Sglebiusfor as_dir in $PATH
6022290001Sglebiusdo
6023290001Sglebius  IFS=$as_save_IFS
6024290001Sglebius  test -z "$as_dir" && as_dir=.
6025290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6026290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027290001Sglebius    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6028290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029290001Sglebius    break 2
6030290001Sglebius  fi
6031290001Sglebiusdone
6032290001Sglebius  done
6033290001SglebiusIFS=$as_save_IFS
6034290001Sglebius
6035290001Sglebiusfi
6036290001Sglebiusfi
6037290001SglebiusOBJDUMP=$ac_cv_prog_OBJDUMP
6038290001Sglebiusif test -n "$OBJDUMP"; then
6039290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6040290001Sglebius$as_echo "$OBJDUMP" >&6; }
6041290001Sglebiuselse
6042290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043290001Sglebius$as_echo "no" >&6; }
6044290001Sglebiusfi
6045290001Sglebius
6046290001Sglebius
6047290001Sglebiusfi
6048290001Sglebiusif test -z "$ac_cv_prog_OBJDUMP"; then
6049290001Sglebius  ac_ct_OBJDUMP=$OBJDUMP
6050290001Sglebius  # Extract the first word of "objdump", so it can be a program name with args.
6051290001Sglebiusset dummy objdump; ac_word=$2
6052290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6054290001Sglebiusif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6055290001Sglebius  $as_echo_n "(cached) " >&6
6056290001Sglebiuselse
6057290001Sglebius  if test -n "$ac_ct_OBJDUMP"; then
6058290001Sglebius  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6059290001Sglebiuselse
6060290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061290001Sglebiusfor as_dir in $PATH
6062290001Sglebiusdo
6063290001Sglebius  IFS=$as_save_IFS
6064290001Sglebius  test -z "$as_dir" && as_dir=.
6065290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6066290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067290001Sglebius    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6068290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069290001Sglebius    break 2
6070290001Sglebius  fi
6071290001Sglebiusdone
6072290001Sglebius  done
6073290001SglebiusIFS=$as_save_IFS
6074290001Sglebius
6075290001Sglebiusfi
6076290001Sglebiusfi
6077290001Sglebiusac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6078290001Sglebiusif test -n "$ac_ct_OBJDUMP"; then
6079290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6080290001Sglebius$as_echo "$ac_ct_OBJDUMP" >&6; }
6081290001Sglebiuselse
6082290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083290001Sglebius$as_echo "no" >&6; }
6084290001Sglebiusfi
6085290001Sglebius
6086290001Sglebius  if test "x$ac_ct_OBJDUMP" = x; then
6087290001Sglebius    OBJDUMP="false"
6088290001Sglebius  else
6089290001Sglebius    case $cross_compiling:$ac_tool_warned in
6090290001Sglebiusyes:)
6091290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093290001Sglebiusac_tool_warned=yes ;;
6094290001Sglebiusesac
6095290001Sglebius    OBJDUMP=$ac_ct_OBJDUMP
6096290001Sglebius  fi
6097290001Sglebiuselse
6098290001Sglebius  OBJDUMP="$ac_cv_prog_OBJDUMP"
6099290001Sglebiusfi
6100290001Sglebius
6101290001Sglebiustest -z "$OBJDUMP" && OBJDUMP=objdump
6102290001Sglebius
6103290001Sglebius
6104290001Sglebius
6105290001Sglebius
6106290001Sglebius
6107290001Sglebius
6108290001Sglebius
6109290001Sglebius
6110290001Sglebius
6111290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6112290001Sglebius$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6113290001Sglebiusif ${lt_cv_deplibs_check_method+:} false; then :
6114290001Sglebius  $as_echo_n "(cached) " >&6
6115290001Sglebiuselse
6116290001Sglebius  lt_cv_file_magic_cmd='$MAGIC_CMD'
6117290001Sglebiuslt_cv_file_magic_test_file=
6118290001Sglebiuslt_cv_deplibs_check_method='unknown'
6119290001Sglebius# Need to set the preceding variable on all platforms that support
6120290001Sglebius# interlibrary dependencies.
6121290001Sglebius# 'none' -- dependencies not supported.
6122290001Sglebius# `unknown' -- same as none, but documents that we really don't know.
6123290001Sglebius# 'pass_all' -- all dependencies passed with no checks.
6124290001Sglebius# 'test_compile' -- check by making test program.
6125290001Sglebius# 'file_magic [[regex]]' -- check by looking for files in library path
6126290001Sglebius# which responds to the $file_magic_cmd with a given extended regex.
6127290001Sglebius# If you have `file' or equivalent on your system and you're not sure
6128290001Sglebius# whether `pass_all' will *always* work, you probably want this one.
6129290001Sglebius
6130290001Sglebiuscase $host_os in
6131290001Sglebiusaix[4-9]*)
6132290001Sglebius  lt_cv_deplibs_check_method=pass_all
6133290001Sglebius  ;;
6134290001Sglebius
6135290001Sglebiusbeos*)
6136290001Sglebius  lt_cv_deplibs_check_method=pass_all
6137290001Sglebius  ;;
6138290001Sglebius
6139290001Sglebiusbsdi[45]*)
6140290001Sglebius  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6141290001Sglebius  lt_cv_file_magic_cmd='/usr/bin/file -L'
6142290001Sglebius  lt_cv_file_magic_test_file=/shlib/libc.so
6143290001Sglebius  ;;
6144290001Sglebius
6145290001Sglebiuscygwin*)
6146290001Sglebius  # func_win32_libid is a shell function defined in ltmain.sh
6147290001Sglebius  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6148290001Sglebius  lt_cv_file_magic_cmd='func_win32_libid'
6149290001Sglebius  ;;
6150290001Sglebius
6151290001Sglebiusmingw* | pw32*)
6152290001Sglebius  # Base MSYS/MinGW do not provide the 'file' command needed by
6153290001Sglebius  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6154290001Sglebius  # unless we find 'file', for example because we are cross-compiling.
6155290001Sglebius  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6156290001Sglebius  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6157290001Sglebius    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6158290001Sglebius    lt_cv_file_magic_cmd='func_win32_libid'
6159290001Sglebius  else
6160290001Sglebius    # Keep this pattern in sync with the one in func_win32_libid.
6161290001Sglebius    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6162290001Sglebius    lt_cv_file_magic_cmd='$OBJDUMP -f'
6163290001Sglebius  fi
6164290001Sglebius  ;;
6165290001Sglebius
6166290001Sglebiuscegcc*)
6167290001Sglebius  # use the weaker test based on 'objdump'. See mingw*.
6168290001Sglebius  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6169290001Sglebius  lt_cv_file_magic_cmd='$OBJDUMP -f'
6170290001Sglebius  ;;
6171290001Sglebius
6172290001Sglebiusdarwin* | rhapsody*)
6173290001Sglebius  lt_cv_deplibs_check_method=pass_all
6174290001Sglebius  ;;
6175290001Sglebius
6176290001Sglebiusfreebsd* | dragonfly*)
6177290001Sglebius  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6178290001Sglebius    case $host_cpu in
6179290001Sglebius    i*86 )
6180290001Sglebius      # Not sure whether the presence of OpenBSD here was a mistake.
6181290001Sglebius      # Let's accept both of them until this is cleared up.
6182290001Sglebius      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6183290001Sglebius      lt_cv_file_magic_cmd=/usr/bin/file
6184290001Sglebius      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6185290001Sglebius      ;;
6186290001Sglebius    esac
6187290001Sglebius  else
6188290001Sglebius    lt_cv_deplibs_check_method=pass_all
6189290001Sglebius  fi
6190290001Sglebius  ;;
6191290001Sglebius
6192290001Sglebiusgnu*)
6193290001Sglebius  lt_cv_deplibs_check_method=pass_all
6194290001Sglebius  ;;
6195290001Sglebius
6196290001Sglebiushaiku*)
6197290001Sglebius  lt_cv_deplibs_check_method=pass_all
6198290001Sglebius  ;;
6199290001Sglebius
6200290001Sglebiushpux10.20* | hpux11*)
6201290001Sglebius  lt_cv_file_magic_cmd=/usr/bin/file
6202290001Sglebius  case $host_cpu in
6203290001Sglebius  ia64*)
6204290001Sglebius    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6205290001Sglebius    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6206290001Sglebius    ;;
6207290001Sglebius  hppa*64*)
6208290001Sglebius    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]'
6209290001Sglebius    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6210290001Sglebius    ;;
6211290001Sglebius  *)
6212290001Sglebius    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6213290001Sglebius    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6214290001Sglebius    ;;
6215290001Sglebius  esac
6216290001Sglebius  ;;
6217290001Sglebius
6218290001Sglebiusinterix[3-9]*)
6219290001Sglebius  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6220290001Sglebius  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6221290001Sglebius  ;;
6222290001Sglebius
6223290001Sglebiusirix5* | irix6* | nonstopux*)
6224290001Sglebius  case $LD in
6225290001Sglebius  *-32|*"-32 ") libmagic=32-bit;;
6226290001Sglebius  *-n32|*"-n32 ") libmagic=N32;;
6227290001Sglebius  *-64|*"-64 ") libmagic=64-bit;;
6228290001Sglebius  *) libmagic=never-match;;
6229290001Sglebius  esac
6230290001Sglebius  lt_cv_deplibs_check_method=pass_all
6231290001Sglebius  ;;
6232290001Sglebius
6233290001Sglebius# This must be Linux ELF.
6234290001Sglebiuslinux* | k*bsd*-gnu | kopensolaris*-gnu)
6235290001Sglebius  lt_cv_deplibs_check_method=pass_all
6236290001Sglebius  ;;
6237290001Sglebius
6238290001Sglebiusnetbsd*)
6239290001Sglebius  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6240290001Sglebius    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6241290001Sglebius  else
6242290001Sglebius    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6243290001Sglebius  fi
6244290001Sglebius  ;;
6245290001Sglebius
6246290001Sglebiusnewos6*)
6247290001Sglebius  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6248290001Sglebius  lt_cv_file_magic_cmd=/usr/bin/file
6249290001Sglebius  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6250290001Sglebius  ;;
6251290001Sglebius
6252290001Sglebius*nto* | *qnx*)
6253290001Sglebius  lt_cv_deplibs_check_method=pass_all
6254290001Sglebius  ;;
6255290001Sglebius
6256290001Sglebiusopenbsd*)
6257290001Sglebius  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6258290001Sglebius    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6259290001Sglebius  else
6260290001Sglebius    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6261290001Sglebius  fi
6262290001Sglebius  ;;
6263290001Sglebius
6264290001Sglebiusosf3* | osf4* | osf5*)
6265290001Sglebius  lt_cv_deplibs_check_method=pass_all
6266290001Sglebius  ;;
6267290001Sglebius
6268290001Sglebiusrdos*)
6269290001Sglebius  lt_cv_deplibs_check_method=pass_all
6270290001Sglebius  ;;
6271290001Sglebius
6272290001Sglebiussolaris*)
6273290001Sglebius  lt_cv_deplibs_check_method=pass_all
6274290001Sglebius  ;;
6275290001Sglebius
6276290001Sglebiussysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6277290001Sglebius  lt_cv_deplibs_check_method=pass_all
6278290001Sglebius  ;;
6279290001Sglebius
6280290001Sglebiussysv4 | sysv4.3*)
6281290001Sglebius  case $host_vendor in
6282290001Sglebius  motorola)
6283290001Sglebius    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]'
6284290001Sglebius    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6285290001Sglebius    ;;
6286290001Sglebius  ncr)
6287290001Sglebius    lt_cv_deplibs_check_method=pass_all
6288290001Sglebius    ;;
6289290001Sglebius  sequent)
6290290001Sglebius    lt_cv_file_magic_cmd='/bin/file'
6291290001Sglebius    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6292290001Sglebius    ;;
6293290001Sglebius  sni)
6294290001Sglebius    lt_cv_file_magic_cmd='/bin/file'
6295290001Sglebius    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6296290001Sglebius    lt_cv_file_magic_test_file=/lib/libc.so
6297290001Sglebius    ;;
6298290001Sglebius  siemens)
6299290001Sglebius    lt_cv_deplibs_check_method=pass_all
6300290001Sglebius    ;;
6301290001Sglebius  pc)
6302290001Sglebius    lt_cv_deplibs_check_method=pass_all
6303290001Sglebius    ;;
6304290001Sglebius  esac
6305290001Sglebius  ;;
6306290001Sglebius
6307290001Sglebiustpf*)
6308290001Sglebius  lt_cv_deplibs_check_method=pass_all
6309290001Sglebius  ;;
6310290001Sglebiusesac
6311290001Sglebius
6312290001Sglebiusfi
6313290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6314290001Sglebius$as_echo "$lt_cv_deplibs_check_method" >&6; }
6315290001Sglebius
6316290001Sglebiusfile_magic_glob=
6317290001Sglebiuswant_nocaseglob=no
6318290001Sglebiusif test "$build" = "$host"; then
6319290001Sglebius  case $host_os in
6320290001Sglebius  mingw* | pw32*)
6321290001Sglebius    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6322290001Sglebius      want_nocaseglob=yes
6323290001Sglebius    else
6324290001Sglebius      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6325290001Sglebius    fi
6326290001Sglebius    ;;
6327290001Sglebius  esac
6328290001Sglebiusfi
6329290001Sglebius
6330290001Sglebiusfile_magic_cmd=$lt_cv_file_magic_cmd
6331290001Sglebiusdeplibs_check_method=$lt_cv_deplibs_check_method
6332290001Sglebiustest -z "$deplibs_check_method" && deplibs_check_method=unknown
6333290001Sglebius
6334290001Sglebius
6335290001Sglebius
6336290001Sglebius
6337290001Sglebius
6338290001Sglebius
6339290001Sglebius
6340290001Sglebius
6341290001Sglebius
6342290001Sglebius
6343290001Sglebius
6344290001Sglebius
6345290001Sglebius
6346290001Sglebius
6347290001Sglebius
6348290001Sglebius
6349290001Sglebius
6350290001Sglebius
6351290001Sglebius
6352290001Sglebius
6353290001Sglebius
6354290001Sglebius
6355290001Sglebiusif test -n "$ac_tool_prefix"; then
6356290001Sglebius  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6357290001Sglebiusset dummy ${ac_tool_prefix}dlltool; ac_word=$2
6358290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6360290001Sglebiusif ${ac_cv_prog_DLLTOOL+:} false; then :
6361290001Sglebius  $as_echo_n "(cached) " >&6
6362290001Sglebiuselse
6363290001Sglebius  if test -n "$DLLTOOL"; then
6364290001Sglebius  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6365290001Sglebiuselse
6366290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367290001Sglebiusfor as_dir in $PATH
6368290001Sglebiusdo
6369290001Sglebius  IFS=$as_save_IFS
6370290001Sglebius  test -z "$as_dir" && as_dir=.
6371290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6372290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373290001Sglebius    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6374290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375290001Sglebius    break 2
6376290001Sglebius  fi
6377290001Sglebiusdone
6378290001Sglebius  done
6379290001SglebiusIFS=$as_save_IFS
6380290001Sglebius
6381290001Sglebiusfi
6382290001Sglebiusfi
6383290001SglebiusDLLTOOL=$ac_cv_prog_DLLTOOL
6384290001Sglebiusif test -n "$DLLTOOL"; then
6385290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6386290001Sglebius$as_echo "$DLLTOOL" >&6; }
6387290001Sglebiuselse
6388290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389290001Sglebius$as_echo "no" >&6; }
6390290001Sglebiusfi
6391290001Sglebius
6392290001Sglebius
6393290001Sglebiusfi
6394290001Sglebiusif test -z "$ac_cv_prog_DLLTOOL"; then
6395290001Sglebius  ac_ct_DLLTOOL=$DLLTOOL
6396290001Sglebius  # Extract the first word of "dlltool", so it can be a program name with args.
6397290001Sglebiusset dummy dlltool; ac_word=$2
6398290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6400290001Sglebiusif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6401290001Sglebius  $as_echo_n "(cached) " >&6
6402290001Sglebiuselse
6403290001Sglebius  if test -n "$ac_ct_DLLTOOL"; then
6404290001Sglebius  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6405290001Sglebiuselse
6406290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407290001Sglebiusfor as_dir in $PATH
6408290001Sglebiusdo
6409290001Sglebius  IFS=$as_save_IFS
6410290001Sglebius  test -z "$as_dir" && as_dir=.
6411290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6412290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413290001Sglebius    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6414290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415290001Sglebius    break 2
6416290001Sglebius  fi
6417290001Sglebiusdone
6418290001Sglebius  done
6419290001SglebiusIFS=$as_save_IFS
6420290001Sglebius
6421290001Sglebiusfi
6422290001Sglebiusfi
6423290001Sglebiusac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6424290001Sglebiusif test -n "$ac_ct_DLLTOOL"; then
6425290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6426290001Sglebius$as_echo "$ac_ct_DLLTOOL" >&6; }
6427290001Sglebiuselse
6428290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429290001Sglebius$as_echo "no" >&6; }
6430290001Sglebiusfi
6431290001Sglebius
6432290001Sglebius  if test "x$ac_ct_DLLTOOL" = x; then
6433290001Sglebius    DLLTOOL="false"
6434290001Sglebius  else
6435290001Sglebius    case $cross_compiling:$ac_tool_warned in
6436290001Sglebiusyes:)
6437290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439290001Sglebiusac_tool_warned=yes ;;
6440290001Sglebiusesac
6441290001Sglebius    DLLTOOL=$ac_ct_DLLTOOL
6442290001Sglebius  fi
6443290001Sglebiuselse
6444290001Sglebius  DLLTOOL="$ac_cv_prog_DLLTOOL"
6445290001Sglebiusfi
6446290001Sglebius
6447290001Sglebiustest -z "$DLLTOOL" && DLLTOOL=dlltool
6448290001Sglebius
6449290001Sglebius
6450290001Sglebius
6451290001Sglebius
6452290001Sglebius
6453290001Sglebius
6454290001Sglebius
6455290001Sglebius
6456290001Sglebius
6457290001Sglebius
6458290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6459290001Sglebius$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6460290001Sglebiusif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6461290001Sglebius  $as_echo_n "(cached) " >&6
6462290001Sglebiuselse
6463290001Sglebius  lt_cv_sharedlib_from_linklib_cmd='unknown'
6464290001Sglebius
6465290001Sglebiuscase $host_os in
6466290001Sglebiuscygwin* | mingw* | pw32* | cegcc*)
6467290001Sglebius  # two different shell functions defined in ltmain.sh
6468290001Sglebius  # decide which to use based on capabilities of $DLLTOOL
6469290001Sglebius  case `$DLLTOOL --help 2>&1` in
6470290001Sglebius  *--identify-strict*)
6471290001Sglebius    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6472290001Sglebius    ;;
6473290001Sglebius  *)
6474290001Sglebius    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6475290001Sglebius    ;;
6476290001Sglebius  esac
6477290001Sglebius  ;;
6478290001Sglebius*)
6479290001Sglebius  # fallback: assume linklib IS sharedlib
6480290001Sglebius  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6481290001Sglebius  ;;
6482290001Sglebiusesac
6483290001Sglebius
6484290001Sglebiusfi
6485290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6486290001Sglebius$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6487290001Sglebiussharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6488290001Sglebiustest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6489290001Sglebius
6490290001Sglebius
6491290001Sglebius
6492290001Sglebius
6493290001Sglebius
6494290001Sglebius
6495290001Sglebius
6496290001Sglebiusif test -n "$ac_tool_prefix"; then
6497290001Sglebius  for ac_prog in ar
6498290001Sglebius  do
6499290001Sglebius    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6500290001Sglebiusset dummy $ac_tool_prefix$ac_prog; ac_word=$2
6501290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6503290001Sglebiusif ${ac_cv_prog_AR+:} false; then :
6504290001Sglebius  $as_echo_n "(cached) " >&6
6505290001Sglebiuselse
6506290001Sglebius  if test -n "$AR"; then
6507290001Sglebius  ac_cv_prog_AR="$AR" # Let the user override the test.
6508290001Sglebiuselse
6509290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510290001Sglebiusfor as_dir in $PATH
6511290001Sglebiusdo
6512290001Sglebius  IFS=$as_save_IFS
6513290001Sglebius  test -z "$as_dir" && as_dir=.
6514290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6515290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516290001Sglebius    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6517290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518290001Sglebius    break 2
6519290001Sglebius  fi
6520290001Sglebiusdone
6521290001Sglebius  done
6522290001SglebiusIFS=$as_save_IFS
6523290001Sglebius
6524290001Sglebiusfi
6525290001Sglebiusfi
6526290001SglebiusAR=$ac_cv_prog_AR
6527290001Sglebiusif test -n "$AR"; then
6528290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6529290001Sglebius$as_echo "$AR" >&6; }
6530290001Sglebiuselse
6531290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532290001Sglebius$as_echo "no" >&6; }
6533290001Sglebiusfi
6534290001Sglebius
6535290001Sglebius
6536290001Sglebius    test -n "$AR" && break
6537290001Sglebius  done
6538290001Sglebiusfi
6539290001Sglebiusif test -z "$AR"; then
6540290001Sglebius  ac_ct_AR=$AR
6541290001Sglebius  for ac_prog in ar
6542290001Sglebiusdo
6543290001Sglebius  # Extract the first word of "$ac_prog", so it can be a program name with args.
6544290001Sglebiusset dummy $ac_prog; ac_word=$2
6545290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6547290001Sglebiusif ${ac_cv_prog_ac_ct_AR+:} false; then :
6548290001Sglebius  $as_echo_n "(cached) " >&6
6549290001Sglebiuselse
6550290001Sglebius  if test -n "$ac_ct_AR"; then
6551290001Sglebius  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6552290001Sglebiuselse
6553290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554290001Sglebiusfor as_dir in $PATH
6555290001Sglebiusdo
6556290001Sglebius  IFS=$as_save_IFS
6557290001Sglebius  test -z "$as_dir" && as_dir=.
6558290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6559290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560290001Sglebius    ac_cv_prog_ac_ct_AR="$ac_prog"
6561290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562290001Sglebius    break 2
6563290001Sglebius  fi
6564290001Sglebiusdone
6565290001Sglebius  done
6566290001SglebiusIFS=$as_save_IFS
6567290001Sglebius
6568290001Sglebiusfi
6569290001Sglebiusfi
6570290001Sglebiusac_ct_AR=$ac_cv_prog_ac_ct_AR
6571290001Sglebiusif test -n "$ac_ct_AR"; then
6572290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6573290001Sglebius$as_echo "$ac_ct_AR" >&6; }
6574290001Sglebiuselse
6575290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576290001Sglebius$as_echo "no" >&6; }
6577290001Sglebiusfi
6578290001Sglebius
6579290001Sglebius
6580290001Sglebius  test -n "$ac_ct_AR" && break
6581290001Sglebiusdone
6582290001Sglebius
6583290001Sglebius  if test "x$ac_ct_AR" = x; then
6584290001Sglebius    AR="false"
6585290001Sglebius  else
6586290001Sglebius    case $cross_compiling:$ac_tool_warned in
6587290001Sglebiusyes:)
6588290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590290001Sglebiusac_tool_warned=yes ;;
6591290001Sglebiusesac
6592290001Sglebius    AR=$ac_ct_AR
6593290001Sglebius  fi
6594290001Sglebiusfi
6595290001Sglebius
6596290001Sglebius: ${AR=ar}
6597290001Sglebius: ${AR_FLAGS=cru}
6598290001Sglebius
6599290001Sglebius
6600290001Sglebius
6601290001Sglebius
6602290001Sglebius
6603290001Sglebius
6604290001Sglebius
6605290001Sglebius
6606290001Sglebius
6607290001Sglebius
6608290001Sglebius
6609290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6610290001Sglebius$as_echo_n "checking for archiver @FILE support... " >&6; }
6611290001Sglebiusif ${lt_cv_ar_at_file+:} false; then :
6612290001Sglebius  $as_echo_n "(cached) " >&6
6613290001Sglebiuselse
6614290001Sglebius  lt_cv_ar_at_file=no
6615290001Sglebius   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616290001Sglebius/* end confdefs.h.  */
6617290001Sglebius
6618290001Sglebiusint
6619290001Sglebiusmain ()
6620290001Sglebius{
6621290001Sglebius
6622290001Sglebius  ;
6623290001Sglebius  return 0;
6624290001Sglebius}
6625290001Sglebius_ACEOF
6626290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
6627290001Sglebius  echo conftest.$ac_objext > conftest.lst
6628290001Sglebius      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6629290001Sglebius      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6630290001Sglebius  (eval $lt_ar_try) 2>&5
6631290001Sglebius  ac_status=$?
6632290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633290001Sglebius  test $ac_status = 0; }
6634290001Sglebius      if test "$ac_status" -eq 0; then
6635290001Sglebius	# Ensure the archiver fails upon bogus file names.
6636290001Sglebius	rm -f conftest.$ac_objext libconftest.a
6637290001Sglebius	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6638290001Sglebius  (eval $lt_ar_try) 2>&5
6639290001Sglebius  ac_status=$?
6640290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641290001Sglebius  test $ac_status = 0; }
6642290001Sglebius	if test "$ac_status" -ne 0; then
6643290001Sglebius          lt_cv_ar_at_file=@
6644290001Sglebius        fi
6645290001Sglebius      fi
6646290001Sglebius      rm -f conftest.* libconftest.a
6647290001Sglebius
6648290001Sglebiusfi
6649290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650290001Sglebius
6651290001Sglebiusfi
6652290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6653290001Sglebius$as_echo "$lt_cv_ar_at_file" >&6; }
6654290001Sglebius
6655290001Sglebiusif test "x$lt_cv_ar_at_file" = xno; then
6656290001Sglebius  archiver_list_spec=
6657290001Sglebiuselse
6658290001Sglebius  archiver_list_spec=$lt_cv_ar_at_file
6659290001Sglebiusfi
6660290001Sglebius
6661290001Sglebius
6662290001Sglebius
6663290001Sglebius
6664290001Sglebius
6665290001Sglebius
6666290001Sglebius
6667290001Sglebiusif test -n "$ac_tool_prefix"; then
6668290001Sglebius  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669290001Sglebiusset dummy ${ac_tool_prefix}strip; ac_word=$2
6670290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6672290001Sglebiusif ${ac_cv_prog_STRIP+:} false; then :
6673290001Sglebius  $as_echo_n "(cached) " >&6
6674290001Sglebiuselse
6675290001Sglebius  if test -n "$STRIP"; then
6676290001Sglebius  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677290001Sglebiuselse
6678290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679290001Sglebiusfor as_dir in $PATH
6680290001Sglebiusdo
6681290001Sglebius  IFS=$as_save_IFS
6682290001Sglebius  test -z "$as_dir" && as_dir=.
6683290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6684290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685290001Sglebius    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687290001Sglebius    break 2
6688290001Sglebius  fi
6689290001Sglebiusdone
6690290001Sglebius  done
6691290001SglebiusIFS=$as_save_IFS
6692290001Sglebius
6693290001Sglebiusfi
6694290001Sglebiusfi
6695290001SglebiusSTRIP=$ac_cv_prog_STRIP
6696290001Sglebiusif test -n "$STRIP"; then
6697290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6698290001Sglebius$as_echo "$STRIP" >&6; }
6699290001Sglebiuselse
6700290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701290001Sglebius$as_echo "no" >&6; }
6702290001Sglebiusfi
6703290001Sglebius
6704290001Sglebius
6705290001Sglebiusfi
6706290001Sglebiusif test -z "$ac_cv_prog_STRIP"; then
6707290001Sglebius  ac_ct_STRIP=$STRIP
6708290001Sglebius  # Extract the first word of "strip", so it can be a program name with args.
6709290001Sglebiusset dummy strip; ac_word=$2
6710290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6712290001Sglebiusif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6713290001Sglebius  $as_echo_n "(cached) " >&6
6714290001Sglebiuselse
6715290001Sglebius  if test -n "$ac_ct_STRIP"; then
6716290001Sglebius  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717290001Sglebiuselse
6718290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719290001Sglebiusfor as_dir in $PATH
6720290001Sglebiusdo
6721290001Sglebius  IFS=$as_save_IFS
6722290001Sglebius  test -z "$as_dir" && as_dir=.
6723290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6724290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725290001Sglebius    ac_cv_prog_ac_ct_STRIP="strip"
6726290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727290001Sglebius    break 2
6728290001Sglebius  fi
6729290001Sglebiusdone
6730290001Sglebius  done
6731290001SglebiusIFS=$as_save_IFS
6732290001Sglebius
6733290001Sglebiusfi
6734290001Sglebiusfi
6735290001Sglebiusac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736290001Sglebiusif test -n "$ac_ct_STRIP"; then
6737290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6738290001Sglebius$as_echo "$ac_ct_STRIP" >&6; }
6739290001Sglebiuselse
6740290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741290001Sglebius$as_echo "no" >&6; }
6742290001Sglebiusfi
6743290001Sglebius
6744290001Sglebius  if test "x$ac_ct_STRIP" = x; then
6745290001Sglebius    STRIP=":"
6746290001Sglebius  else
6747290001Sglebius    case $cross_compiling:$ac_tool_warned in
6748290001Sglebiusyes:)
6749290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751290001Sglebiusac_tool_warned=yes ;;
6752290001Sglebiusesac
6753290001Sglebius    STRIP=$ac_ct_STRIP
6754290001Sglebius  fi
6755290001Sglebiuselse
6756290001Sglebius  STRIP="$ac_cv_prog_STRIP"
6757290001Sglebiusfi
6758290001Sglebius
6759290001Sglebiustest -z "$STRIP" && STRIP=:
6760290001Sglebius
6761290001Sglebius
6762290001Sglebius
6763290001Sglebius
6764290001Sglebius
6765290001Sglebius
6766290001Sglebiusif test -n "$ac_tool_prefix"; then
6767290001Sglebius  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6768290001Sglebiusset dummy ${ac_tool_prefix}ranlib; ac_word=$2
6769290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6771290001Sglebiusif ${ac_cv_prog_RANLIB+:} false; then :
6772290001Sglebius  $as_echo_n "(cached) " >&6
6773290001Sglebiuselse
6774290001Sglebius  if test -n "$RANLIB"; then
6775290001Sglebius  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6776290001Sglebiuselse
6777290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778290001Sglebiusfor as_dir in $PATH
6779290001Sglebiusdo
6780290001Sglebius  IFS=$as_save_IFS
6781290001Sglebius  test -z "$as_dir" && as_dir=.
6782290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6783290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784290001Sglebius    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6785290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786290001Sglebius    break 2
6787290001Sglebius  fi
6788290001Sglebiusdone
6789290001Sglebius  done
6790290001SglebiusIFS=$as_save_IFS
6791290001Sglebius
6792290001Sglebiusfi
6793290001Sglebiusfi
6794290001SglebiusRANLIB=$ac_cv_prog_RANLIB
6795290001Sglebiusif test -n "$RANLIB"; then
6796290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6797290001Sglebius$as_echo "$RANLIB" >&6; }
6798290001Sglebiuselse
6799290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800290001Sglebius$as_echo "no" >&6; }
6801290001Sglebiusfi
6802290001Sglebius
6803290001Sglebius
6804290001Sglebiusfi
6805290001Sglebiusif test -z "$ac_cv_prog_RANLIB"; then
6806290001Sglebius  ac_ct_RANLIB=$RANLIB
6807290001Sglebius  # Extract the first word of "ranlib", so it can be a program name with args.
6808290001Sglebiusset dummy ranlib; ac_word=$2
6809290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
6811290001Sglebiusif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6812290001Sglebius  $as_echo_n "(cached) " >&6
6813290001Sglebiuselse
6814290001Sglebius  if test -n "$ac_ct_RANLIB"; then
6815290001Sglebius  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6816290001Sglebiuselse
6817290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818290001Sglebiusfor as_dir in $PATH
6819290001Sglebiusdo
6820290001Sglebius  IFS=$as_save_IFS
6821290001Sglebius  test -z "$as_dir" && as_dir=.
6822290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
6823290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824290001Sglebius    ac_cv_prog_ac_ct_RANLIB="ranlib"
6825290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826290001Sglebius    break 2
6827290001Sglebius  fi
6828290001Sglebiusdone
6829290001Sglebius  done
6830290001SglebiusIFS=$as_save_IFS
6831290001Sglebius
6832290001Sglebiusfi
6833290001Sglebiusfi
6834290001Sglebiusac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835290001Sglebiusif test -n "$ac_ct_RANLIB"; then
6836290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6837290001Sglebius$as_echo "$ac_ct_RANLIB" >&6; }
6838290001Sglebiuselse
6839290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840290001Sglebius$as_echo "no" >&6; }
6841290001Sglebiusfi
6842290001Sglebius
6843290001Sglebius  if test "x$ac_ct_RANLIB" = x; then
6844290001Sglebius    RANLIB=":"
6845290001Sglebius  else
6846290001Sglebius    case $cross_compiling:$ac_tool_warned in
6847290001Sglebiusyes:)
6848290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850290001Sglebiusac_tool_warned=yes ;;
6851290001Sglebiusesac
6852290001Sglebius    RANLIB=$ac_ct_RANLIB
6853290001Sglebius  fi
6854290001Sglebiuselse
6855290001Sglebius  RANLIB="$ac_cv_prog_RANLIB"
6856290001Sglebiusfi
6857290001Sglebius
6858290001Sglebiustest -z "$RANLIB" && RANLIB=:
6859290001Sglebius
6860290001Sglebius
6861290001Sglebius
6862290001Sglebius
6863290001Sglebius
6864290001Sglebius
6865290001Sglebius# Determine commands to create old-style static archives.
6866290001Sglebiusold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6867290001Sglebiusold_postinstall_cmds='chmod 644 $oldlib'
6868290001Sglebiusold_postuninstall_cmds=
6869290001Sglebius
6870290001Sglebiusif test -n "$RANLIB"; then
6871290001Sglebius  case $host_os in
6872290001Sglebius  openbsd*)
6873290001Sglebius    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6874290001Sglebius    ;;
6875290001Sglebius  *)
6876290001Sglebius    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6877290001Sglebius    ;;
6878290001Sglebius  esac
6879290001Sglebius  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6880290001Sglebiusfi
6881290001Sglebius
6882290001Sglebiuscase $host_os in
6883290001Sglebius  darwin*)
6884290001Sglebius    lock_old_archive_extraction=yes ;;
6885290001Sglebius  *)
6886290001Sglebius    lock_old_archive_extraction=no ;;
6887290001Sglebiusesac
6888290001Sglebius
6889290001Sglebius
6890290001Sglebius
6891290001Sglebius
6892290001Sglebius
6893290001Sglebius
6894290001Sglebius
6895290001Sglebius
6896290001Sglebius
6897290001Sglebius
6898290001Sglebius
6899290001Sglebius
6900290001Sglebius
6901290001Sglebius
6902290001Sglebius
6903290001Sglebius
6904290001Sglebius
6905290001Sglebius
6906290001Sglebius
6907290001Sglebius
6908290001Sglebius
6909290001Sglebius
6910290001Sglebius
6911290001Sglebius
6912290001Sglebius
6913290001Sglebius
6914290001Sglebius
6915290001Sglebius
6916290001Sglebius
6917290001Sglebius
6918290001Sglebius
6919290001Sglebius
6920290001Sglebius
6921290001Sglebius
6922290001Sglebius
6923290001Sglebius
6924290001Sglebius
6925290001Sglebius
6926290001Sglebius
6927290001Sglebius# If no C compiler was specified, use CC.
6928290001SglebiusLTCC=${LTCC-"$CC"}
6929290001Sglebius
6930290001Sglebius# If no C compiler flags were specified, use CFLAGS.
6931290001SglebiusLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6932290001Sglebius
6933290001Sglebius# Allow CC to be a program name with arguments.
6934290001Sglebiuscompiler=$CC
6935290001Sglebius
6936290001Sglebius
6937290001Sglebius# Check for command to grab the raw symbol name followed by C symbol from nm.
6938290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6939290001Sglebius$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6940290001Sglebiusif ${lt_cv_sys_global_symbol_pipe+:} false; then :
6941290001Sglebius  $as_echo_n "(cached) " >&6
6942290001Sglebiuselse
6943290001Sglebius
6944290001Sglebius# These are sane defaults that work on at least a few old systems.
6945290001Sglebius# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6946290001Sglebius
6947290001Sglebius# Character class describing NM global symbol codes.
6948290001Sglebiussymcode='[BCDEGRST]'
6949290001Sglebius
6950290001Sglebius# Regexp to match symbols that can be accessed directly from C.
6951290001Sglebiussympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6952290001Sglebius
6953290001Sglebius# Define system-specific variables.
6954290001Sglebiuscase $host_os in
6955290001Sglebiusaix*)
6956290001Sglebius  symcode='[BCDT]'
6957290001Sglebius  ;;
6958290001Sglebiuscygwin* | mingw* | pw32* | cegcc*)
6959290001Sglebius  symcode='[ABCDGISTW]'
6960290001Sglebius  ;;
6961290001Sglebiushpux*)
6962290001Sglebius  if test "$host_cpu" = ia64; then
6963290001Sglebius    symcode='[ABCDEGRST]'
6964290001Sglebius  fi
6965290001Sglebius  ;;
6966290001Sglebiusirix* | nonstopux*)
6967290001Sglebius  symcode='[BCDEGRST]'
6968290001Sglebius  ;;
6969290001Sglebiusosf*)
6970290001Sglebius  symcode='[BCDEGQRST]'
6971290001Sglebius  ;;
6972290001Sglebiussolaris*)
6973290001Sglebius  symcode='[BDRT]'
6974290001Sglebius  ;;
6975290001Sglebiussco3.2v5*)
6976290001Sglebius  symcode='[DT]'
6977290001Sglebius  ;;
6978290001Sglebiussysv4.2uw2*)
6979290001Sglebius  symcode='[DT]'
6980290001Sglebius  ;;
6981290001Sglebiussysv5* | sco5v6* | unixware* | OpenUNIX*)
6982290001Sglebius  symcode='[ABDT]'
6983290001Sglebius  ;;
6984290001Sglebiussysv4)
6985290001Sglebius  symcode='[DFNSTU]'
6986290001Sglebius  ;;
6987290001Sglebiusesac
6988290001Sglebius
6989290001Sglebius# If we're using GNU nm, then use its standard symbol codes.
6990290001Sglebiuscase `$NM -V 2>&1` in
6991290001Sglebius*GNU* | *'with BFD'*)
6992290001Sglebius  symcode='[ABCDGIRSTW]' ;;
6993290001Sglebiusesac
6994290001Sglebius
6995290001Sglebius# Transform an extracted symbol line into a proper C declaration.
6996290001Sglebius# Some systems (esp. on ia64) link data and code symbols differently,
6997290001Sglebius# so use this general approach.
6998290001Sglebiuslt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6999290001Sglebius
7000290001Sglebius# Transform an extracted symbol line into symbol name and symbol address
7001290001Sglebiuslt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7002290001Sglebiuslt_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'"
7003290001Sglebius
7004290001Sglebius# Handle CRLF in mingw tool chain
7005290001Sglebiusopt_cr=
7006290001Sglebiuscase $build_os in
7007290001Sglebiusmingw*)
7008290001Sglebius  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7009290001Sglebius  ;;
7010290001Sglebiusesac
7011290001Sglebius
7012290001Sglebius# Try without a prefix underscore, then with it.
7013290001Sglebiusfor ac_symprfx in "" "_"; do
7014290001Sglebius
7015290001Sglebius  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7016290001Sglebius  symxfrm="\\1 $ac_symprfx\\2 \\2"
7017290001Sglebius
7018290001Sglebius  # Write the raw and C identifiers.
7019290001Sglebius  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7020290001Sglebius    # Fake it for dumpbin and say T for any non-static function
7021290001Sglebius    # and D for any global variable.
7022290001Sglebius    # Also find C++ and __fastcall symbols from MSVC++,
7023290001Sglebius    # which start with @ or ?.
7024290001Sglebius    lt_cv_sys_global_symbol_pipe="$AWK '"\
7025290001Sglebius"     {last_section=section; section=\$ 3};"\
7026290001Sglebius"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7027290001Sglebius"     \$ 0!~/External *\|/{next};"\
7028290001Sglebius"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7029290001Sglebius"     {if(hide[section]) next};"\
7030290001Sglebius"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7031290001Sglebius"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7032290001Sglebius"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7033290001Sglebius"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7034290001Sglebius"     ' prfx=^$ac_symprfx"
7035290001Sglebius  else
7036290001Sglebius    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7037290001Sglebius  fi
7038290001Sglebius  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7039290001Sglebius
7040290001Sglebius  # Check to see that the pipe works correctly.
7041290001Sglebius  pipe_works=no
7042290001Sglebius
7043290001Sglebius  rm -f conftest*
7044290001Sglebius  cat > conftest.$ac_ext <<_LT_EOF
7045290001Sglebius#ifdef __cplusplus
7046290001Sglebiusextern "C" {
7047290001Sglebius#endif
7048290001Sglebiuschar nm_test_var;
7049290001Sglebiusvoid nm_test_func(void);
7050290001Sglebiusvoid nm_test_func(void){}
7051290001Sglebius#ifdef __cplusplus
7052290001Sglebius}
7053290001Sglebius#endif
7054290001Sglebiusint main(){nm_test_var='a';nm_test_func();return(0);}
7055290001Sglebius_LT_EOF
7056290001Sglebius
7057290001Sglebius  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7058290001Sglebius  (eval $ac_compile) 2>&5
7059290001Sglebius  ac_status=$?
7060290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061290001Sglebius  test $ac_status = 0; }; then
7062290001Sglebius    # Now try to grab the symbols.
7063290001Sglebius    nlist=conftest.nm
7064290001Sglebius    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7065290001Sglebius  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7066290001Sglebius  ac_status=$?
7067290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068290001Sglebius  test $ac_status = 0; } && test -s "$nlist"; then
7069290001Sglebius      # Try sorting and uniquifying the output.
7070290001Sglebius      if sort "$nlist" | uniq > "$nlist"T; then
7071290001Sglebius	mv -f "$nlist"T "$nlist"
7072290001Sglebius      else
7073290001Sglebius	rm -f "$nlist"T
7074290001Sglebius      fi
7075290001Sglebius
7076290001Sglebius      # Make sure that we snagged all the symbols we need.
7077290001Sglebius      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078290001Sglebius	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079290001Sglebius	  cat <<_LT_EOF > conftest.$ac_ext
7080290001Sglebius/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7081290001Sglebius#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7082290001Sglebius/* DATA imports from DLLs on WIN32 con't be const, because runtime
7083290001Sglebius   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7084290001Sglebius# define LT_DLSYM_CONST
7085290001Sglebius#elif defined(__osf__)
7086290001Sglebius/* This system does not cope well with relocations in const data.  */
7087290001Sglebius# define LT_DLSYM_CONST
7088290001Sglebius#else
7089290001Sglebius# define LT_DLSYM_CONST const
7090290001Sglebius#endif
7091290001Sglebius
7092290001Sglebius#ifdef __cplusplus
7093290001Sglebiusextern "C" {
7094290001Sglebius#endif
7095290001Sglebius
7096290001Sglebius_LT_EOF
7097290001Sglebius	  # Now generate the symbol file.
7098290001Sglebius	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7099290001Sglebius
7100290001Sglebius	  cat <<_LT_EOF >> conftest.$ac_ext
7101290001Sglebius
7102290001Sglebius/* The mapping between symbol names and symbols.  */
7103290001SglebiusLT_DLSYM_CONST struct {
7104290001Sglebius  const char *name;
7105290001Sglebius  void       *address;
7106290001Sglebius}
7107290001Sglebiuslt__PROGRAM__LTX_preloaded_symbols[] =
7108290001Sglebius{
7109290001Sglebius  { "@PROGRAM@", (void *) 0 },
7110290001Sglebius_LT_EOF
7111290001Sglebius	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7112290001Sglebius	  cat <<\_LT_EOF >> conftest.$ac_ext
7113290001Sglebius  {0, (void *) 0}
7114290001Sglebius};
7115290001Sglebius
7116290001Sglebius/* This works around a problem in FreeBSD linker */
7117290001Sglebius#ifdef FREEBSD_WORKAROUND
7118290001Sglebiusstatic const void *lt_preloaded_setup() {
7119290001Sglebius  return lt__PROGRAM__LTX_preloaded_symbols;
7120290001Sglebius}
7121290001Sglebius#endif
7122290001Sglebius
7123290001Sglebius#ifdef __cplusplus
7124290001Sglebius}
7125290001Sglebius#endif
7126290001Sglebius_LT_EOF
7127290001Sglebius	  # Now try linking the two files.
7128290001Sglebius	  mv conftest.$ac_objext conftstm.$ac_objext
7129290001Sglebius	  lt_globsym_save_LIBS=$LIBS
7130290001Sglebius	  lt_globsym_save_CFLAGS=$CFLAGS
7131290001Sglebius	  LIBS="conftstm.$ac_objext"
7132290001Sglebius	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7133290001Sglebius	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7134290001Sglebius  (eval $ac_link) 2>&5
7135290001Sglebius  ac_status=$?
7136290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137290001Sglebius  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7138290001Sglebius	    pipe_works=yes
7139290001Sglebius	  fi
7140290001Sglebius	  LIBS=$lt_globsym_save_LIBS
7141290001Sglebius	  CFLAGS=$lt_globsym_save_CFLAGS
7142290001Sglebius	else
7143290001Sglebius	  echo "cannot find nm_test_func in $nlist" >&5
7144290001Sglebius	fi
7145290001Sglebius      else
7146290001Sglebius	echo "cannot find nm_test_var in $nlist" >&5
7147290001Sglebius      fi
7148290001Sglebius    else
7149290001Sglebius      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7150290001Sglebius    fi
7151290001Sglebius  else
7152290001Sglebius    echo "$progname: failed program was:" >&5
7153290001Sglebius    cat conftest.$ac_ext >&5
7154290001Sglebius  fi
7155290001Sglebius  rm -rf conftest* conftst*
7156290001Sglebius
7157290001Sglebius  # Do not use the global_symbol_pipe unless it works.
7158290001Sglebius  if test "$pipe_works" = yes; then
7159290001Sglebius    break
7160290001Sglebius  else
7161290001Sglebius    lt_cv_sys_global_symbol_pipe=
7162290001Sglebius  fi
7163290001Sglebiusdone
7164290001Sglebius
7165290001Sglebiusfi
7166290001Sglebius
7167290001Sglebiusif test -z "$lt_cv_sys_global_symbol_pipe"; then
7168290001Sglebius  lt_cv_sys_global_symbol_to_cdecl=
7169290001Sglebiusfi
7170290001Sglebiusif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7171290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7172290001Sglebius$as_echo "failed" >&6; }
7173290001Sglebiuselse
7174290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7175290001Sglebius$as_echo "ok" >&6; }
7176290001Sglebiusfi
7177290001Sglebius
7178290001Sglebius# Response file support.
7179290001Sglebiusif test "$lt_cv_nm_interface" = "MS dumpbin"; then
7180290001Sglebius  nm_file_list_spec='@'
7181290001Sglebiuselif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7182290001Sglebius  nm_file_list_spec='@'
7183290001Sglebiusfi
7184290001Sglebius
7185290001Sglebius
7186290001Sglebius
7187290001Sglebius
7188290001Sglebius
7189290001Sglebius
7190290001Sglebius
7191290001Sglebius
7192290001Sglebius
7193290001Sglebius
7194290001Sglebius
7195290001Sglebius
7196290001Sglebius
7197290001Sglebius
7198290001Sglebius
7199290001Sglebius
7200290001Sglebius
7201290001Sglebius
7202290001Sglebius
7203290001Sglebius
7204290001Sglebius
7205290001Sglebius
7206290001Sglebius
7207290001Sglebius
7208290001Sglebius
7209290001Sglebius
7210290001Sglebius
7211290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7212290001Sglebius$as_echo_n "checking for sysroot... " >&6; }
7213290001Sglebius
7214290001Sglebius# Check whether --with-sysroot was given.
7215290001Sglebiusif test "${with_sysroot+set}" = set; then :
7216290001Sglebius  withval=$with_sysroot;
7217290001Sglebiuselse
7218290001Sglebius  with_sysroot=no
7219290001Sglebiusfi
7220290001Sglebius
7221290001Sglebius
7222290001Sglebiuslt_sysroot=
7223290001Sglebiuscase ${with_sysroot} in #(
7224290001Sglebius yes)
7225290001Sglebius   if test "$GCC" = yes; then
7226290001Sglebius     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7227290001Sglebius   fi
7228290001Sglebius   ;; #(
7229290001Sglebius /*)
7230290001Sglebius   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7231290001Sglebius   ;; #(
7232290001Sglebius no|'')
7233290001Sglebius   ;; #(
7234290001Sglebius *)
7235290001Sglebius   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7236290001Sglebius$as_echo "${with_sysroot}" >&6; }
7237290001Sglebius   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7238290001Sglebius   ;;
7239290001Sglebiusesac
7240290001Sglebius
7241290001Sglebius { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7242290001Sglebius$as_echo "${lt_sysroot:-no}" >&6; }
7243290001Sglebius
7244290001Sglebius
7245290001Sglebius
7246290001Sglebius
7247290001Sglebius
7248290001Sglebius# Check whether --enable-libtool-lock was given.
7249290001Sglebiusif test "${enable_libtool_lock+set}" = set; then :
7250290001Sglebius  enableval=$enable_libtool_lock;
7251290001Sglebiusfi
7252290001Sglebius
7253290001Sglebiustest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7254290001Sglebius
7255290001Sglebius# Some flags need to be propagated to the compiler or linker for good
7256290001Sglebius# libtool support.
7257290001Sglebiuscase $host in
7258290001Sglebiusia64-*-hpux*)
7259290001Sglebius  # Find out which ABI we are using.
7260290001Sglebius  echo 'int i;' > conftest.$ac_ext
7261290001Sglebius  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262290001Sglebius  (eval $ac_compile) 2>&5
7263290001Sglebius  ac_status=$?
7264290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265290001Sglebius  test $ac_status = 0; }; then
7266290001Sglebius    case `/usr/bin/file conftest.$ac_objext` in
7267290001Sglebius      *ELF-32*)
7268290001Sglebius	HPUX_IA64_MODE="32"
7269290001Sglebius	;;
7270290001Sglebius      *ELF-64*)
7271290001Sglebius	HPUX_IA64_MODE="64"
7272290001Sglebius	;;
7273290001Sglebius    esac
7274290001Sglebius  fi
7275290001Sglebius  rm -rf conftest*
7276290001Sglebius  ;;
7277290001Sglebius*-*-irix6*)
7278290001Sglebius  # Find out which ABI we are using.
7279290001Sglebius  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7280290001Sglebius  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281290001Sglebius  (eval $ac_compile) 2>&5
7282290001Sglebius  ac_status=$?
7283290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284290001Sglebius  test $ac_status = 0; }; then
7285290001Sglebius    if test "$lt_cv_prog_gnu_ld" = yes; then
7286290001Sglebius      case `/usr/bin/file conftest.$ac_objext` in
7287290001Sglebius	*32-bit*)
7288290001Sglebius	  LD="${LD-ld} -melf32bsmip"
7289290001Sglebius	  ;;
7290290001Sglebius	*N32*)
7291290001Sglebius	  LD="${LD-ld} -melf32bmipn32"
7292290001Sglebius	  ;;
7293290001Sglebius	*64-bit*)
7294290001Sglebius	  LD="${LD-ld} -melf64bmip"
7295290001Sglebius	;;
7296290001Sglebius      esac
7297290001Sglebius    else
7298290001Sglebius      case `/usr/bin/file conftest.$ac_objext` in
7299290001Sglebius	*32-bit*)
7300290001Sglebius	  LD="${LD-ld} -32"
7301290001Sglebius	  ;;
7302290001Sglebius	*N32*)
7303290001Sglebius	  LD="${LD-ld} -n32"
7304290001Sglebius	  ;;
7305290001Sglebius	*64-bit*)
7306290001Sglebius	  LD="${LD-ld} -64"
7307290001Sglebius	  ;;
7308290001Sglebius      esac
7309290001Sglebius    fi
7310290001Sglebius  fi
7311290001Sglebius  rm -rf conftest*
7312290001Sglebius  ;;
7313290001Sglebius
7314290001Sglebiusx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7315290001Sglebiuss390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7316290001Sglebius  # Find out which ABI we are using.
7317290001Sglebius  echo 'int i;' > conftest.$ac_ext
7318290001Sglebius  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319290001Sglebius  (eval $ac_compile) 2>&5
7320290001Sglebius  ac_status=$?
7321290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322290001Sglebius  test $ac_status = 0; }; then
7323290001Sglebius    case `/usr/bin/file conftest.o` in
7324290001Sglebius      *32-bit*)
7325290001Sglebius	case $host in
7326290001Sglebius	  x86_64-*kfreebsd*-gnu)
7327290001Sglebius	    LD="${LD-ld} -m elf_i386_fbsd"
7328290001Sglebius	    ;;
7329290001Sglebius	  x86_64-*linux*)
7330290001Sglebius	    LD="${LD-ld} -m elf_i386"
7331290001Sglebius	    ;;
7332290001Sglebius	  ppc64-*linux*|powerpc64-*linux*)
7333290001Sglebius	    LD="${LD-ld} -m elf32ppclinux"
7334290001Sglebius	    ;;
7335290001Sglebius	  s390x-*linux*)
7336290001Sglebius	    LD="${LD-ld} -m elf_s390"
7337290001Sglebius	    ;;
7338290001Sglebius	  sparc64-*linux*)
7339290001Sglebius	    LD="${LD-ld} -m elf32_sparc"
7340290001Sglebius	    ;;
7341290001Sglebius	esac
7342290001Sglebius	;;
7343290001Sglebius      *64-bit*)
7344290001Sglebius	case $host in
7345290001Sglebius	  x86_64-*kfreebsd*-gnu)
7346290001Sglebius	    LD="${LD-ld} -m elf_x86_64_fbsd"
7347290001Sglebius	    ;;
7348290001Sglebius	  x86_64-*linux*)
7349290001Sglebius	    LD="${LD-ld} -m elf_x86_64"
7350290001Sglebius	    ;;
7351290001Sglebius	  ppc*-*linux*|powerpc*-*linux*)
7352290001Sglebius	    LD="${LD-ld} -m elf64ppc"
7353290001Sglebius	    ;;
7354290001Sglebius	  s390*-*linux*|s390*-*tpf*)
7355290001Sglebius	    LD="${LD-ld} -m elf64_s390"
7356290001Sglebius	    ;;
7357290001Sglebius	  sparc*-*linux*)
7358290001Sglebius	    LD="${LD-ld} -m elf64_sparc"
7359290001Sglebius	    ;;
7360290001Sglebius	esac
7361290001Sglebius	;;
7362290001Sglebius    esac
7363290001Sglebius  fi
7364290001Sglebius  rm -rf conftest*
7365290001Sglebius  ;;
7366290001Sglebius
7367290001Sglebius*-*-sco3.2v5*)
7368290001Sglebius  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7369290001Sglebius  SAVE_CFLAGS="$CFLAGS"
7370290001Sglebius  CFLAGS="$CFLAGS -belf"
7371290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7372290001Sglebius$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7373290001Sglebiusif ${lt_cv_cc_needs_belf+:} false; then :
7374290001Sglebius  $as_echo_n "(cached) " >&6
7375290001Sglebiuselse
7376290001Sglebius  ac_ext=c
7377290001Sglebiusac_cpp='$CPP $CPPFLAGS'
7378290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7379290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7380290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
7381290001Sglebius
7382290001Sglebius     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383290001Sglebius/* end confdefs.h.  */
7384290001Sglebius
7385290001Sglebiusint
7386290001Sglebiusmain ()
7387290001Sglebius{
7388290001Sglebius
7389290001Sglebius  ;
7390290001Sglebius  return 0;
7391290001Sglebius}
7392290001Sglebius_ACEOF
7393290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
7394290001Sglebius  lt_cv_cc_needs_belf=yes
7395290001Sglebiuselse
7396290001Sglebius  lt_cv_cc_needs_belf=no
7397290001Sglebiusfi
7398290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
7399290001Sglebius    conftest$ac_exeext conftest.$ac_ext
7400290001Sglebius     ac_ext=c
7401290001Sglebiusac_cpp='$CPP $CPPFLAGS'
7402290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
7405290001Sglebius
7406290001Sglebiusfi
7407290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7408290001Sglebius$as_echo "$lt_cv_cc_needs_belf" >&6; }
7409290001Sglebius  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7410290001Sglebius    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7411290001Sglebius    CFLAGS="$SAVE_CFLAGS"
7412290001Sglebius  fi
7413290001Sglebius  ;;
7414290001Sglebiussparc*-*solaris*)
7415290001Sglebius  # Find out which ABI we are using.
7416290001Sglebius  echo 'int i;' > conftest.$ac_ext
7417290001Sglebius  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418290001Sglebius  (eval $ac_compile) 2>&5
7419290001Sglebius  ac_status=$?
7420290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421290001Sglebius  test $ac_status = 0; }; then
7422290001Sglebius    case `/usr/bin/file conftest.o` in
7423290001Sglebius    *64-bit*)
7424290001Sglebius      case $lt_cv_prog_gnu_ld in
7425290001Sglebius      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7426290001Sglebius      *)
7427290001Sglebius	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7428290001Sglebius	  LD="${LD-ld} -64"
7429290001Sglebius	fi
7430290001Sglebius	;;
7431290001Sglebius      esac
7432290001Sglebius      ;;
7433290001Sglebius    esac
7434290001Sglebius  fi
7435290001Sglebius  rm -rf conftest*
7436290001Sglebius  ;;
7437290001Sglebiusesac
7438290001Sglebius
7439290001Sglebiusneed_locks="$enable_libtool_lock"
7440290001Sglebius
7441290001Sglebiusif test -n "$ac_tool_prefix"; then
7442290001Sglebius  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7443290001Sglebiusset dummy ${ac_tool_prefix}mt; ac_word=$2
7444290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7446290001Sglebiusif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7447290001Sglebius  $as_echo_n "(cached) " >&6
7448290001Sglebiuselse
7449290001Sglebius  if test -n "$MANIFEST_TOOL"; then
7450290001Sglebius  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7451290001Sglebiuselse
7452290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453290001Sglebiusfor as_dir in $PATH
7454290001Sglebiusdo
7455290001Sglebius  IFS=$as_save_IFS
7456290001Sglebius  test -z "$as_dir" && as_dir=.
7457290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7458290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459290001Sglebius    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7460290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461290001Sglebius    break 2
7462290001Sglebius  fi
7463290001Sglebiusdone
7464290001Sglebius  done
7465290001SglebiusIFS=$as_save_IFS
7466290001Sglebius
7467290001Sglebiusfi
7468290001Sglebiusfi
7469290001SglebiusMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7470290001Sglebiusif test -n "$MANIFEST_TOOL"; then
7471290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7472290001Sglebius$as_echo "$MANIFEST_TOOL" >&6; }
7473290001Sglebiuselse
7474290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475290001Sglebius$as_echo "no" >&6; }
7476290001Sglebiusfi
7477290001Sglebius
7478290001Sglebius
7479290001Sglebiusfi
7480290001Sglebiusif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7481290001Sglebius  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7482290001Sglebius  # Extract the first word of "mt", so it can be a program name with args.
7483290001Sglebiusset dummy mt; ac_word=$2
7484290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7486290001Sglebiusif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7487290001Sglebius  $as_echo_n "(cached) " >&6
7488290001Sglebiuselse
7489290001Sglebius  if test -n "$ac_ct_MANIFEST_TOOL"; then
7490290001Sglebius  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7491290001Sglebiuselse
7492290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493290001Sglebiusfor as_dir in $PATH
7494290001Sglebiusdo
7495290001Sglebius  IFS=$as_save_IFS
7496290001Sglebius  test -z "$as_dir" && as_dir=.
7497290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7498290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499290001Sglebius    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7500290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501290001Sglebius    break 2
7502290001Sglebius  fi
7503290001Sglebiusdone
7504290001Sglebius  done
7505290001SglebiusIFS=$as_save_IFS
7506290001Sglebius
7507290001Sglebiusfi
7508290001Sglebiusfi
7509290001Sglebiusac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7510290001Sglebiusif test -n "$ac_ct_MANIFEST_TOOL"; then
7511290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7512290001Sglebius$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7513290001Sglebiuselse
7514290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515290001Sglebius$as_echo "no" >&6; }
7516290001Sglebiusfi
7517290001Sglebius
7518290001Sglebius  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7519290001Sglebius    MANIFEST_TOOL=":"
7520290001Sglebius  else
7521290001Sglebius    case $cross_compiling:$ac_tool_warned in
7522290001Sglebiusyes:)
7523290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525290001Sglebiusac_tool_warned=yes ;;
7526290001Sglebiusesac
7527290001Sglebius    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7528290001Sglebius  fi
7529290001Sglebiuselse
7530290001Sglebius  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7531290001Sglebiusfi
7532290001Sglebius
7533290001Sglebiustest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7534290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7535290001Sglebius$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7536290001Sglebiusif ${lt_cv_path_mainfest_tool+:} false; then :
7537290001Sglebius  $as_echo_n "(cached) " >&6
7538290001Sglebiuselse
7539290001Sglebius  lt_cv_path_mainfest_tool=no
7540290001Sglebius  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7541290001Sglebius  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7542290001Sglebius  cat conftest.err >&5
7543290001Sglebius  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7544290001Sglebius    lt_cv_path_mainfest_tool=yes
7545290001Sglebius  fi
7546290001Sglebius  rm -f conftest*
7547290001Sglebiusfi
7548290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7549290001Sglebius$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7550290001Sglebiusif test "x$lt_cv_path_mainfest_tool" != xyes; then
7551290001Sglebius  MANIFEST_TOOL=:
7552290001Sglebiusfi
7553290001Sglebius
7554290001Sglebius
7555290001Sglebius
7556290001Sglebius
7557290001Sglebius
7558290001Sglebius
7559290001Sglebius  case $host_os in
7560290001Sglebius    rhapsody* | darwin*)
7561290001Sglebius    if test -n "$ac_tool_prefix"; then
7562290001Sglebius  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7563290001Sglebiusset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7564290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7566290001Sglebiusif ${ac_cv_prog_DSYMUTIL+:} false; then :
7567290001Sglebius  $as_echo_n "(cached) " >&6
7568290001Sglebiuselse
7569290001Sglebius  if test -n "$DSYMUTIL"; then
7570290001Sglebius  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7571290001Sglebiuselse
7572290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573290001Sglebiusfor as_dir in $PATH
7574290001Sglebiusdo
7575290001Sglebius  IFS=$as_save_IFS
7576290001Sglebius  test -z "$as_dir" && as_dir=.
7577290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7578290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579290001Sglebius    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7580290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581290001Sglebius    break 2
7582290001Sglebius  fi
7583290001Sglebiusdone
7584290001Sglebius  done
7585290001SglebiusIFS=$as_save_IFS
7586290001Sglebius
7587290001Sglebiusfi
7588290001Sglebiusfi
7589290001SglebiusDSYMUTIL=$ac_cv_prog_DSYMUTIL
7590290001Sglebiusif test -n "$DSYMUTIL"; then
7591290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7592290001Sglebius$as_echo "$DSYMUTIL" >&6; }
7593290001Sglebiuselse
7594290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595290001Sglebius$as_echo "no" >&6; }
7596290001Sglebiusfi
7597290001Sglebius
7598290001Sglebius
7599290001Sglebiusfi
7600290001Sglebiusif test -z "$ac_cv_prog_DSYMUTIL"; then
7601290001Sglebius  ac_ct_DSYMUTIL=$DSYMUTIL
7602290001Sglebius  # Extract the first word of "dsymutil", so it can be a program name with args.
7603290001Sglebiusset dummy dsymutil; ac_word=$2
7604290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7606290001Sglebiusif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7607290001Sglebius  $as_echo_n "(cached) " >&6
7608290001Sglebiuselse
7609290001Sglebius  if test -n "$ac_ct_DSYMUTIL"; then
7610290001Sglebius  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7611290001Sglebiuselse
7612290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613290001Sglebiusfor as_dir in $PATH
7614290001Sglebiusdo
7615290001Sglebius  IFS=$as_save_IFS
7616290001Sglebius  test -z "$as_dir" && as_dir=.
7617290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7618290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619290001Sglebius    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7620290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621290001Sglebius    break 2
7622290001Sglebius  fi
7623290001Sglebiusdone
7624290001Sglebius  done
7625290001SglebiusIFS=$as_save_IFS
7626290001Sglebius
7627290001Sglebiusfi
7628290001Sglebiusfi
7629290001Sglebiusac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7630290001Sglebiusif test -n "$ac_ct_DSYMUTIL"; then
7631290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7632290001Sglebius$as_echo "$ac_ct_DSYMUTIL" >&6; }
7633290001Sglebiuselse
7634290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635290001Sglebius$as_echo "no" >&6; }
7636290001Sglebiusfi
7637290001Sglebius
7638290001Sglebius  if test "x$ac_ct_DSYMUTIL" = x; then
7639290001Sglebius    DSYMUTIL=":"
7640290001Sglebius  else
7641290001Sglebius    case $cross_compiling:$ac_tool_warned in
7642290001Sglebiusyes:)
7643290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645290001Sglebiusac_tool_warned=yes ;;
7646290001Sglebiusesac
7647290001Sglebius    DSYMUTIL=$ac_ct_DSYMUTIL
7648290001Sglebius  fi
7649290001Sglebiuselse
7650290001Sglebius  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7651290001Sglebiusfi
7652290001Sglebius
7653290001Sglebius    if test -n "$ac_tool_prefix"; then
7654290001Sglebius  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7655290001Sglebiusset dummy ${ac_tool_prefix}nmedit; ac_word=$2
7656290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7658290001Sglebiusif ${ac_cv_prog_NMEDIT+:} false; then :
7659290001Sglebius  $as_echo_n "(cached) " >&6
7660290001Sglebiuselse
7661290001Sglebius  if test -n "$NMEDIT"; then
7662290001Sglebius  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7663290001Sglebiuselse
7664290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665290001Sglebiusfor as_dir in $PATH
7666290001Sglebiusdo
7667290001Sglebius  IFS=$as_save_IFS
7668290001Sglebius  test -z "$as_dir" && as_dir=.
7669290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7670290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671290001Sglebius    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7672290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673290001Sglebius    break 2
7674290001Sglebius  fi
7675290001Sglebiusdone
7676290001Sglebius  done
7677290001SglebiusIFS=$as_save_IFS
7678290001Sglebius
7679290001Sglebiusfi
7680290001Sglebiusfi
7681290001SglebiusNMEDIT=$ac_cv_prog_NMEDIT
7682290001Sglebiusif test -n "$NMEDIT"; then
7683290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7684290001Sglebius$as_echo "$NMEDIT" >&6; }
7685290001Sglebiuselse
7686290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687290001Sglebius$as_echo "no" >&6; }
7688290001Sglebiusfi
7689290001Sglebius
7690290001Sglebius
7691290001Sglebiusfi
7692290001Sglebiusif test -z "$ac_cv_prog_NMEDIT"; then
7693290001Sglebius  ac_ct_NMEDIT=$NMEDIT
7694290001Sglebius  # Extract the first word of "nmedit", so it can be a program name with args.
7695290001Sglebiusset dummy nmedit; ac_word=$2
7696290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7698290001Sglebiusif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7699290001Sglebius  $as_echo_n "(cached) " >&6
7700290001Sglebiuselse
7701290001Sglebius  if test -n "$ac_ct_NMEDIT"; then
7702290001Sglebius  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7703290001Sglebiuselse
7704290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705290001Sglebiusfor as_dir in $PATH
7706290001Sglebiusdo
7707290001Sglebius  IFS=$as_save_IFS
7708290001Sglebius  test -z "$as_dir" && as_dir=.
7709290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7710290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711290001Sglebius    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7712290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713290001Sglebius    break 2
7714290001Sglebius  fi
7715290001Sglebiusdone
7716290001Sglebius  done
7717290001SglebiusIFS=$as_save_IFS
7718290001Sglebius
7719290001Sglebiusfi
7720290001Sglebiusfi
7721290001Sglebiusac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7722290001Sglebiusif test -n "$ac_ct_NMEDIT"; then
7723290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7724290001Sglebius$as_echo "$ac_ct_NMEDIT" >&6; }
7725290001Sglebiuselse
7726290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727290001Sglebius$as_echo "no" >&6; }
7728290001Sglebiusfi
7729290001Sglebius
7730290001Sglebius  if test "x$ac_ct_NMEDIT" = x; then
7731290001Sglebius    NMEDIT=":"
7732290001Sglebius  else
7733290001Sglebius    case $cross_compiling:$ac_tool_warned in
7734290001Sglebiusyes:)
7735290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737290001Sglebiusac_tool_warned=yes ;;
7738290001Sglebiusesac
7739290001Sglebius    NMEDIT=$ac_ct_NMEDIT
7740290001Sglebius  fi
7741290001Sglebiuselse
7742290001Sglebius  NMEDIT="$ac_cv_prog_NMEDIT"
7743290001Sglebiusfi
7744290001Sglebius
7745290001Sglebius    if test -n "$ac_tool_prefix"; then
7746290001Sglebius  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7747290001Sglebiusset dummy ${ac_tool_prefix}lipo; ac_word=$2
7748290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7750290001Sglebiusif ${ac_cv_prog_LIPO+:} false; then :
7751290001Sglebius  $as_echo_n "(cached) " >&6
7752290001Sglebiuselse
7753290001Sglebius  if test -n "$LIPO"; then
7754290001Sglebius  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7755290001Sglebiuselse
7756290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757290001Sglebiusfor as_dir in $PATH
7758290001Sglebiusdo
7759290001Sglebius  IFS=$as_save_IFS
7760290001Sglebius  test -z "$as_dir" && as_dir=.
7761290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7762290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763290001Sglebius    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7764290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765290001Sglebius    break 2
7766290001Sglebius  fi
7767290001Sglebiusdone
7768290001Sglebius  done
7769290001SglebiusIFS=$as_save_IFS
7770290001Sglebius
7771290001Sglebiusfi
7772290001Sglebiusfi
7773290001SglebiusLIPO=$ac_cv_prog_LIPO
7774290001Sglebiusif test -n "$LIPO"; then
7775290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7776290001Sglebius$as_echo "$LIPO" >&6; }
7777290001Sglebiuselse
7778290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779290001Sglebius$as_echo "no" >&6; }
7780290001Sglebiusfi
7781290001Sglebius
7782290001Sglebius
7783290001Sglebiusfi
7784290001Sglebiusif test -z "$ac_cv_prog_LIPO"; then
7785290001Sglebius  ac_ct_LIPO=$LIPO
7786290001Sglebius  # Extract the first word of "lipo", so it can be a program name with args.
7787290001Sglebiusset dummy lipo; ac_word=$2
7788290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7790290001Sglebiusif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7791290001Sglebius  $as_echo_n "(cached) " >&6
7792290001Sglebiuselse
7793290001Sglebius  if test -n "$ac_ct_LIPO"; then
7794290001Sglebius  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7795290001Sglebiuselse
7796290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797290001Sglebiusfor as_dir in $PATH
7798290001Sglebiusdo
7799290001Sglebius  IFS=$as_save_IFS
7800290001Sglebius  test -z "$as_dir" && as_dir=.
7801290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7802290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803290001Sglebius    ac_cv_prog_ac_ct_LIPO="lipo"
7804290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805290001Sglebius    break 2
7806290001Sglebius  fi
7807290001Sglebiusdone
7808290001Sglebius  done
7809290001SglebiusIFS=$as_save_IFS
7810290001Sglebius
7811290001Sglebiusfi
7812290001Sglebiusfi
7813290001Sglebiusac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7814290001Sglebiusif test -n "$ac_ct_LIPO"; then
7815290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7816290001Sglebius$as_echo "$ac_ct_LIPO" >&6; }
7817290001Sglebiuselse
7818290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819290001Sglebius$as_echo "no" >&6; }
7820290001Sglebiusfi
7821290001Sglebius
7822290001Sglebius  if test "x$ac_ct_LIPO" = x; then
7823290001Sglebius    LIPO=":"
7824290001Sglebius  else
7825290001Sglebius    case $cross_compiling:$ac_tool_warned in
7826290001Sglebiusyes:)
7827290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7828290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7829290001Sglebiusac_tool_warned=yes ;;
7830290001Sglebiusesac
7831290001Sglebius    LIPO=$ac_ct_LIPO
7832290001Sglebius  fi
7833290001Sglebiuselse
7834290001Sglebius  LIPO="$ac_cv_prog_LIPO"
7835290001Sglebiusfi
7836290001Sglebius
7837290001Sglebius    if test -n "$ac_tool_prefix"; then
7838290001Sglebius  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7839290001Sglebiusset dummy ${ac_tool_prefix}otool; ac_word=$2
7840290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7842290001Sglebiusif ${ac_cv_prog_OTOOL+:} false; then :
7843290001Sglebius  $as_echo_n "(cached) " >&6
7844290001Sglebiuselse
7845290001Sglebius  if test -n "$OTOOL"; then
7846290001Sglebius  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7847290001Sglebiuselse
7848290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849290001Sglebiusfor as_dir in $PATH
7850290001Sglebiusdo
7851290001Sglebius  IFS=$as_save_IFS
7852290001Sglebius  test -z "$as_dir" && as_dir=.
7853290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7854290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855290001Sglebius    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7856290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857290001Sglebius    break 2
7858290001Sglebius  fi
7859290001Sglebiusdone
7860290001Sglebius  done
7861290001SglebiusIFS=$as_save_IFS
7862290001Sglebius
7863290001Sglebiusfi
7864290001Sglebiusfi
7865290001SglebiusOTOOL=$ac_cv_prog_OTOOL
7866290001Sglebiusif test -n "$OTOOL"; then
7867290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7868290001Sglebius$as_echo "$OTOOL" >&6; }
7869290001Sglebiuselse
7870290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871290001Sglebius$as_echo "no" >&6; }
7872290001Sglebiusfi
7873290001Sglebius
7874290001Sglebius
7875290001Sglebiusfi
7876290001Sglebiusif test -z "$ac_cv_prog_OTOOL"; then
7877290001Sglebius  ac_ct_OTOOL=$OTOOL
7878290001Sglebius  # Extract the first word of "otool", so it can be a program name with args.
7879290001Sglebiusset dummy otool; ac_word=$2
7880290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7882290001Sglebiusif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7883290001Sglebius  $as_echo_n "(cached) " >&6
7884290001Sglebiuselse
7885290001Sglebius  if test -n "$ac_ct_OTOOL"; then
7886290001Sglebius  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7887290001Sglebiuselse
7888290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889290001Sglebiusfor as_dir in $PATH
7890290001Sglebiusdo
7891290001Sglebius  IFS=$as_save_IFS
7892290001Sglebius  test -z "$as_dir" && as_dir=.
7893290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7894290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895290001Sglebius    ac_cv_prog_ac_ct_OTOOL="otool"
7896290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897290001Sglebius    break 2
7898290001Sglebius  fi
7899290001Sglebiusdone
7900290001Sglebius  done
7901290001SglebiusIFS=$as_save_IFS
7902290001Sglebius
7903290001Sglebiusfi
7904290001Sglebiusfi
7905290001Sglebiusac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7906290001Sglebiusif test -n "$ac_ct_OTOOL"; then
7907290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7908290001Sglebius$as_echo "$ac_ct_OTOOL" >&6; }
7909290001Sglebiuselse
7910290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911290001Sglebius$as_echo "no" >&6; }
7912290001Sglebiusfi
7913290001Sglebius
7914290001Sglebius  if test "x$ac_ct_OTOOL" = x; then
7915290001Sglebius    OTOOL=":"
7916290001Sglebius  else
7917290001Sglebius    case $cross_compiling:$ac_tool_warned in
7918290001Sglebiusyes:)
7919290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7920290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7921290001Sglebiusac_tool_warned=yes ;;
7922290001Sglebiusesac
7923290001Sglebius    OTOOL=$ac_ct_OTOOL
7924290001Sglebius  fi
7925290001Sglebiuselse
7926290001Sglebius  OTOOL="$ac_cv_prog_OTOOL"
7927290001Sglebiusfi
7928290001Sglebius
7929290001Sglebius    if test -n "$ac_tool_prefix"; then
7930290001Sglebius  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7931290001Sglebiusset dummy ${ac_tool_prefix}otool64; ac_word=$2
7932290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7934290001Sglebiusif ${ac_cv_prog_OTOOL64+:} false; then :
7935290001Sglebius  $as_echo_n "(cached) " >&6
7936290001Sglebiuselse
7937290001Sglebius  if test -n "$OTOOL64"; then
7938290001Sglebius  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7939290001Sglebiuselse
7940290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941290001Sglebiusfor as_dir in $PATH
7942290001Sglebiusdo
7943290001Sglebius  IFS=$as_save_IFS
7944290001Sglebius  test -z "$as_dir" && as_dir=.
7945290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7946290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947290001Sglebius    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7948290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949290001Sglebius    break 2
7950290001Sglebius  fi
7951290001Sglebiusdone
7952290001Sglebius  done
7953290001SglebiusIFS=$as_save_IFS
7954290001Sglebius
7955290001Sglebiusfi
7956290001Sglebiusfi
7957290001SglebiusOTOOL64=$ac_cv_prog_OTOOL64
7958290001Sglebiusif test -n "$OTOOL64"; then
7959290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7960290001Sglebius$as_echo "$OTOOL64" >&6; }
7961290001Sglebiuselse
7962290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963290001Sglebius$as_echo "no" >&6; }
7964290001Sglebiusfi
7965290001Sglebius
7966290001Sglebius
7967290001Sglebiusfi
7968290001Sglebiusif test -z "$ac_cv_prog_OTOOL64"; then
7969290001Sglebius  ac_ct_OTOOL64=$OTOOL64
7970290001Sglebius  # Extract the first word of "otool64", so it can be a program name with args.
7971290001Sglebiusset dummy otool64; ac_word=$2
7972290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
7974290001Sglebiusif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7975290001Sglebius  $as_echo_n "(cached) " >&6
7976290001Sglebiuselse
7977290001Sglebius  if test -n "$ac_ct_OTOOL64"; then
7978290001Sglebius  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7979290001Sglebiuselse
7980290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981290001Sglebiusfor as_dir in $PATH
7982290001Sglebiusdo
7983290001Sglebius  IFS=$as_save_IFS
7984290001Sglebius  test -z "$as_dir" && as_dir=.
7985290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
7986290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987290001Sglebius    ac_cv_prog_ac_ct_OTOOL64="otool64"
7988290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989290001Sglebius    break 2
7990290001Sglebius  fi
7991290001Sglebiusdone
7992290001Sglebius  done
7993290001SglebiusIFS=$as_save_IFS
7994290001Sglebius
7995290001Sglebiusfi
7996290001Sglebiusfi
7997290001Sglebiusac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7998290001Sglebiusif test -n "$ac_ct_OTOOL64"; then
7999290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8000290001Sglebius$as_echo "$ac_ct_OTOOL64" >&6; }
8001290001Sglebiuselse
8002290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003290001Sglebius$as_echo "no" >&6; }
8004290001Sglebiusfi
8005290001Sglebius
8006290001Sglebius  if test "x$ac_ct_OTOOL64" = x; then
8007290001Sglebius    OTOOL64=":"
8008290001Sglebius  else
8009290001Sglebius    case $cross_compiling:$ac_tool_warned in
8010290001Sglebiusyes:)
8011290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013290001Sglebiusac_tool_warned=yes ;;
8014290001Sglebiusesac
8015290001Sglebius    OTOOL64=$ac_ct_OTOOL64
8016290001Sglebius  fi
8017290001Sglebiuselse
8018290001Sglebius  OTOOL64="$ac_cv_prog_OTOOL64"
8019290001Sglebiusfi
8020290001Sglebius
8021290001Sglebius
8022290001Sglebius
8023290001Sglebius
8024290001Sglebius
8025290001Sglebius
8026290001Sglebius
8027290001Sglebius
8028290001Sglebius
8029290001Sglebius
8030290001Sglebius
8031290001Sglebius
8032290001Sglebius
8033290001Sglebius
8034290001Sglebius
8035290001Sglebius
8036290001Sglebius
8037290001Sglebius
8038290001Sglebius
8039290001Sglebius
8040290001Sglebius
8041290001Sglebius
8042290001Sglebius
8043290001Sglebius
8044290001Sglebius
8045290001Sglebius
8046290001Sglebius
8047290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8048290001Sglebius$as_echo_n "checking for -single_module linker flag... " >&6; }
8049290001Sglebiusif ${lt_cv_apple_cc_single_mod+:} false; then :
8050290001Sglebius  $as_echo_n "(cached) " >&6
8051290001Sglebiuselse
8052290001Sglebius  lt_cv_apple_cc_single_mod=no
8053290001Sglebius      if test -z "${LT_MULTI_MODULE}"; then
8054290001Sglebius	# By default we will add the -single_module flag. You can override
8055290001Sglebius	# by either setting the environment variable LT_MULTI_MODULE
8056290001Sglebius	# non-empty at configure time, or by adding -multi_module to the
8057290001Sglebius	# link flags.
8058290001Sglebius	rm -rf libconftest.dylib*
8059290001Sglebius	echo "int foo(void){return 1;}" > conftest.c
8060290001Sglebius	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8061290001Sglebius-dynamiclib -Wl,-single_module conftest.c" >&5
8062290001Sglebius	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8063290001Sglebius	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8064290001Sglebius        _lt_result=$?
8065290001Sglebius	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8066290001Sglebius	  lt_cv_apple_cc_single_mod=yes
8067290001Sglebius	else
8068290001Sglebius	  cat conftest.err >&5
8069290001Sglebius	fi
8070290001Sglebius	rm -rf libconftest.dylib*
8071290001Sglebius	rm -f conftest.*
8072290001Sglebius      fi
8073290001Sglebiusfi
8074290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8075290001Sglebius$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8076290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8077290001Sglebius$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8078290001Sglebiusif ${lt_cv_ld_exported_symbols_list+:} false; then :
8079290001Sglebius  $as_echo_n "(cached) " >&6
8080290001Sglebiuselse
8081290001Sglebius  lt_cv_ld_exported_symbols_list=no
8082290001Sglebius      save_LDFLAGS=$LDFLAGS
8083290001Sglebius      echo "_main" > conftest.sym
8084290001Sglebius      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8085290001Sglebius      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086290001Sglebius/* end confdefs.h.  */
8087290001Sglebius
8088290001Sglebiusint
8089290001Sglebiusmain ()
8090290001Sglebius{
8091290001Sglebius
8092290001Sglebius  ;
8093290001Sglebius  return 0;
8094290001Sglebius}
8095290001Sglebius_ACEOF
8096290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
8097290001Sglebius  lt_cv_ld_exported_symbols_list=yes
8098290001Sglebiuselse
8099290001Sglebius  lt_cv_ld_exported_symbols_list=no
8100290001Sglebiusfi
8101290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
8102290001Sglebius    conftest$ac_exeext conftest.$ac_ext
8103290001Sglebius	LDFLAGS="$save_LDFLAGS"
8104290001Sglebius
8105290001Sglebiusfi
8106290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8107290001Sglebius$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8108290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8109290001Sglebius$as_echo_n "checking for -force_load linker flag... " >&6; }
8110290001Sglebiusif ${lt_cv_ld_force_load+:} false; then :
8111290001Sglebius  $as_echo_n "(cached) " >&6
8112290001Sglebiuselse
8113290001Sglebius  lt_cv_ld_force_load=no
8114290001Sglebius      cat > conftest.c << _LT_EOF
8115290001Sglebiusint forced_loaded() { return 2;}
8116290001Sglebius_LT_EOF
8117290001Sglebius      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8118290001Sglebius      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8119290001Sglebius      echo "$AR cru libconftest.a conftest.o" >&5
8120290001Sglebius      $AR cru libconftest.a conftest.o 2>&5
8121290001Sglebius      echo "$RANLIB libconftest.a" >&5
8122290001Sglebius      $RANLIB libconftest.a 2>&5
8123290001Sglebius      cat > conftest.c << _LT_EOF
8124290001Sglebiusint main() { return 0;}
8125290001Sglebius_LT_EOF
8126290001Sglebius      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8127290001Sglebius      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8128290001Sglebius      _lt_result=$?
8129290001Sglebius      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8130290001Sglebius	lt_cv_ld_force_load=yes
8131290001Sglebius      else
8132290001Sglebius	cat conftest.err >&5
8133290001Sglebius      fi
8134290001Sglebius        rm -f conftest.err libconftest.a conftest conftest.c
8135290001Sglebius        rm -rf conftest.dSYM
8136290001Sglebius
8137290001Sglebiusfi
8138290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8139290001Sglebius$as_echo "$lt_cv_ld_force_load" >&6; }
8140290001Sglebius    case $host_os in
8141290001Sglebius    rhapsody* | darwin1.[012])
8142290001Sglebius      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8143290001Sglebius    darwin1.*)
8144290001Sglebius      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8145290001Sglebius    darwin*) # darwin 5.x on
8146290001Sglebius      # if running on 10.5 or later, the deployment target defaults
8147290001Sglebius      # to the OS version, if on x86, and 10.4, the deployment
8148290001Sglebius      # target defaults to 10.4. Don't you love it?
8149290001Sglebius      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8150290001Sglebius	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8151290001Sglebius	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8152290001Sglebius	10.[012]*)
8153290001Sglebius	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8154290001Sglebius	10.*)
8155290001Sglebius	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8156290001Sglebius      esac
8157290001Sglebius    ;;
8158290001Sglebius  esac
8159290001Sglebius    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8160290001Sglebius      _lt_dar_single_mod='$single_module'
8161290001Sglebius    fi
8162290001Sglebius    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8163290001Sglebius      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8164290001Sglebius    else
8165290001Sglebius      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8166290001Sglebius    fi
8167290001Sglebius    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8168290001Sglebius      _lt_dsymutil='~$DSYMUTIL $lib || :'
8169290001Sglebius    else
8170290001Sglebius      _lt_dsymutil=
8171290001Sglebius    fi
8172290001Sglebius    ;;
8173290001Sglebius  esac
8174290001Sglebius
8175290001Sglebiusfor ac_header in dlfcn.h
8176290001Sglebiusdo :
8177290001Sglebius  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8178290001Sglebius"
8179290001Sglebiusif test "x$ac_cv_header_dlfcn_h" = xyes; then :
8180290001Sglebius  cat >>confdefs.h <<_ACEOF
8181290001Sglebius#define HAVE_DLFCN_H 1
8182290001Sglebius_ACEOF
8183290001Sglebius
8184290001Sglebiusfi
8185290001Sglebius
8186290001Sglebiusdone
8187290001Sglebius
8188290001Sglebius
8189290001Sglebius
8190290001Sglebius
8191290001Sglebius
8192290001Sglebius# Set options
8193290001Sglebius
8194290001Sglebius
8195290001Sglebius
8196290001Sglebius        enable_dlopen=no
8197290001Sglebius
8198290001Sglebius
8199290001Sglebius  enable_win32_dll=no
8200290001Sglebius
8201290001Sglebius
8202290001Sglebius            # Check whether --enable-shared was given.
8203290001Sglebiusif test "${enable_shared+set}" = set; then :
8204290001Sglebius  enableval=$enable_shared; p=${PACKAGE-default}
8205290001Sglebius    case $enableval in
8206290001Sglebius    yes) enable_shared=yes ;;
8207290001Sglebius    no) enable_shared=no ;;
8208290001Sglebius    *)
8209290001Sglebius      enable_shared=no
8210290001Sglebius      # Look at the argument we got.  We use all the common list separators.
8211290001Sglebius      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8212290001Sglebius      for pkg in $enableval; do
8213290001Sglebius	IFS="$lt_save_ifs"
8214290001Sglebius	if test "X$pkg" = "X$p"; then
8215290001Sglebius	  enable_shared=yes
8216290001Sglebius	fi
8217290001Sglebius      done
8218290001Sglebius      IFS="$lt_save_ifs"
8219290001Sglebius      ;;
8220290001Sglebius    esac
8221290001Sglebiuselse
8222290001Sglebius  enable_shared=yes
8223290001Sglebiusfi
8224290001Sglebius
8225290001Sglebius
8226290001Sglebius
8227290001Sglebius
8228290001Sglebius
8229290001Sglebius
8230290001Sglebius
8231290001Sglebius
8232290001Sglebius
8233290001Sglebius  # Check whether --enable-static was given.
8234290001Sglebiusif test "${enable_static+set}" = set; then :
8235290001Sglebius  enableval=$enable_static; p=${PACKAGE-default}
8236290001Sglebius    case $enableval in
8237290001Sglebius    yes) enable_static=yes ;;
8238290001Sglebius    no) enable_static=no ;;
8239290001Sglebius    *)
8240290001Sglebius     enable_static=no
8241290001Sglebius      # Look at the argument we got.  We use all the common list separators.
8242290001Sglebius      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8243290001Sglebius      for pkg in $enableval; do
8244290001Sglebius	IFS="$lt_save_ifs"
8245290001Sglebius	if test "X$pkg" = "X$p"; then
8246290001Sglebius	  enable_static=yes
8247290001Sglebius	fi
8248290001Sglebius      done
8249290001Sglebius      IFS="$lt_save_ifs"
8250290001Sglebius      ;;
8251290001Sglebius    esac
8252290001Sglebiuselse
8253290001Sglebius  enable_static=yes
8254290001Sglebiusfi
8255290001Sglebius
8256290001Sglebius
8257290001Sglebius
8258290001Sglebius
8259290001Sglebius
8260290001Sglebius
8261290001Sglebius
8262290001Sglebius
8263290001Sglebius
8264290001Sglebius
8265290001Sglebius# Check whether --with-pic was given.
8266290001Sglebiusif test "${with_pic+set}" = set; then :
8267290001Sglebius  withval=$with_pic; pic_mode="$withval"
8268290001Sglebiuselse
8269290001Sglebius  pic_mode=default
8270290001Sglebiusfi
8271290001Sglebius
8272290001Sglebius
8273290001Sglebiustest -z "$pic_mode" && pic_mode=default
8274290001Sglebius
8275290001Sglebius
8276290001Sglebius
8277290001Sglebius
8278290001Sglebius
8279290001Sglebius
8280290001Sglebius
8281290001Sglebius  # Check whether --enable-fast-install was given.
8282290001Sglebiusif test "${enable_fast_install+set}" = set; then :
8283290001Sglebius  enableval=$enable_fast_install; p=${PACKAGE-default}
8284290001Sglebius    case $enableval in
8285290001Sglebius    yes) enable_fast_install=yes ;;
8286290001Sglebius    no) enable_fast_install=no ;;
8287290001Sglebius    *)
8288290001Sglebius      enable_fast_install=no
8289290001Sglebius      # Look at the argument we got.  We use all the common list separators.
8290290001Sglebius      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8291290001Sglebius      for pkg in $enableval; do
8292290001Sglebius	IFS="$lt_save_ifs"
8293290001Sglebius	if test "X$pkg" = "X$p"; then
8294290001Sglebius	  enable_fast_install=yes
8295290001Sglebius	fi
8296290001Sglebius      done
8297290001Sglebius      IFS="$lt_save_ifs"
8298290001Sglebius      ;;
8299290001Sglebius    esac
8300290001Sglebiuselse
8301290001Sglebius  enable_fast_install=yes
8302290001Sglebiusfi
8303290001Sglebius
8304290001Sglebius
8305290001Sglebius
8306290001Sglebius
8307290001Sglebius
8308290001Sglebius
8309290001Sglebius
8310290001Sglebius
8311290001Sglebius
8312290001Sglebius
8313290001Sglebius
8314290001Sglebius# This can be used to rebuild libtool when needed
8315290001SglebiusLIBTOOL_DEPS="$ltmain"
8316290001Sglebius
8317290001Sglebius# Always use our own libtool.
8318290001SglebiusLIBTOOL='$(SHELL) $(top_builddir)/libtool'
8319290001Sglebius
8320290001Sglebius
8321290001Sglebius
8322290001Sglebius
8323290001Sglebius
8324290001Sglebius
8325290001Sglebius
8326290001Sglebius
8327290001Sglebius
8328290001Sglebius
8329290001Sglebius
8330290001Sglebius
8331290001Sglebius
8332290001Sglebius
8333290001Sglebius
8334290001Sglebius
8335290001Sglebius
8336290001Sglebius
8337290001Sglebius
8338290001Sglebius
8339290001Sglebius
8340290001Sglebius
8341290001Sglebius
8342290001Sglebius
8343290001Sglebius
8344290001Sglebius
8345290001Sglebiustest -z "$LN_S" && LN_S="ln -s"
8346290001Sglebius
8347290001Sglebius
8348290001Sglebius
8349290001Sglebius
8350290001Sglebius
8351290001Sglebius
8352290001Sglebius
8353290001Sglebius
8354290001Sglebius
8355290001Sglebius
8356290001Sglebius
8357290001Sglebius
8358290001Sglebius
8359290001Sglebius
8360290001Sglebiusif test -n "${ZSH_VERSION+set}" ; then
8361290001Sglebius   setopt NO_GLOB_SUBST
8362290001Sglebiusfi
8363290001Sglebius
8364290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8365290001Sglebius$as_echo_n "checking for objdir... " >&6; }
8366290001Sglebiusif ${lt_cv_objdir+:} false; then :
8367290001Sglebius  $as_echo_n "(cached) " >&6
8368290001Sglebiuselse
8369290001Sglebius  rm -f .libs 2>/dev/null
8370290001Sglebiusmkdir .libs 2>/dev/null
8371290001Sglebiusif test -d .libs; then
8372290001Sglebius  lt_cv_objdir=.libs
8373290001Sglebiuselse
8374290001Sglebius  # MS-DOS does not allow filenames that begin with a dot.
8375290001Sglebius  lt_cv_objdir=_libs
8376290001Sglebiusfi
8377290001Sglebiusrmdir .libs 2>/dev/null
8378290001Sglebiusfi
8379290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8380290001Sglebius$as_echo "$lt_cv_objdir" >&6; }
8381290001Sglebiusobjdir=$lt_cv_objdir
8382290001Sglebius
8383290001Sglebius
8384290001Sglebius
8385290001Sglebius
8386290001Sglebius
8387290001Sglebiuscat >>confdefs.h <<_ACEOF
8388290001Sglebius#define LT_OBJDIR "$lt_cv_objdir/"
8389290001Sglebius_ACEOF
8390290001Sglebius
8391290001Sglebius
8392290001Sglebius
8393290001Sglebius
8394290001Sglebiuscase $host_os in
8395290001Sglebiusaix3*)
8396290001Sglebius  # AIX sometimes has problems with the GCC collect2 program.  For some
8397290001Sglebius  # reason, if we set the COLLECT_NAMES environment variable, the problems
8398290001Sglebius  # vanish in a puff of smoke.
8399290001Sglebius  if test "X${COLLECT_NAMES+set}" != Xset; then
8400290001Sglebius    COLLECT_NAMES=
8401290001Sglebius    export COLLECT_NAMES
8402290001Sglebius  fi
8403290001Sglebius  ;;
8404290001Sglebiusesac
8405290001Sglebius
8406290001Sglebius# Global variables:
8407290001Sglebiusofile=libtool
8408290001Sglebiuscan_build_shared=yes
8409290001Sglebius
8410290001Sglebius# All known linkers require a `.a' archive for static linking (except MSVC,
8411290001Sglebius# which needs '.lib').
8412290001Sglebiuslibext=a
8413290001Sglebius
8414290001Sglebiuswith_gnu_ld="$lt_cv_prog_gnu_ld"
8415290001Sglebius
8416290001Sglebiusold_CC="$CC"
8417290001Sglebiusold_CFLAGS="$CFLAGS"
8418290001Sglebius
8419290001Sglebius# Set sane defaults for various variables
8420290001Sglebiustest -z "$CC" && CC=cc
8421290001Sglebiustest -z "$LTCC" && LTCC=$CC
8422290001Sglebiustest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8423290001Sglebiustest -z "$LD" && LD=ld
8424290001Sglebiustest -z "$ac_objext" && ac_objext=o
8425290001Sglebius
8426290001Sglebiusfor cc_temp in $compiler""; do
8427290001Sglebius  case $cc_temp in
8428290001Sglebius    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8429290001Sglebius    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8430290001Sglebius    \-*) ;;
8431290001Sglebius    *) break;;
8432290001Sglebius  esac
8433290001Sglebiusdone
8434290001Sglebiuscc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8435290001Sglebius
8436290001Sglebius
8437290001Sglebius# Only perform the check for file, if the check method requires it
8438290001Sglebiustest -z "$MAGIC_CMD" && MAGIC_CMD=file
8439290001Sglebiuscase $deplibs_check_method in
8440290001Sglebiusfile_magic*)
8441290001Sglebius  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8442290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8443290001Sglebius$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8444290001Sglebiusif ${lt_cv_path_MAGIC_CMD+:} false; then :
8445290001Sglebius  $as_echo_n "(cached) " >&6
8446290001Sglebiuselse
8447290001Sglebius  case $MAGIC_CMD in
8448290001Sglebius[\\/*] |  ?:[\\/]*)
8449290001Sglebius  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8450290001Sglebius  ;;
8451290001Sglebius*)
8452290001Sglebius  lt_save_MAGIC_CMD="$MAGIC_CMD"
8453290001Sglebius  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8454290001Sglebius  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8455290001Sglebius  for ac_dir in $ac_dummy; do
8456290001Sglebius    IFS="$lt_save_ifs"
8457290001Sglebius    test -z "$ac_dir" && ac_dir=.
8458290001Sglebius    if test -f $ac_dir/${ac_tool_prefix}file; then
8459290001Sglebius      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8460290001Sglebius      if test -n "$file_magic_test_file"; then
8461290001Sglebius	case $deplibs_check_method in
8462290001Sglebius	"file_magic "*)
8463290001Sglebius	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8464290001Sglebius	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8465290001Sglebius	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8466290001Sglebius	    $EGREP "$file_magic_regex" > /dev/null; then
8467290001Sglebius	    :
8468290001Sglebius	  else
8469290001Sglebius	    cat <<_LT_EOF 1>&2
8470290001Sglebius
8471290001Sglebius*** Warning: the command libtool uses to detect shared libraries,
8472290001Sglebius*** $file_magic_cmd, produces output that libtool cannot recognize.
8473290001Sglebius*** The result is that libtool may fail to recognize shared libraries
8474290001Sglebius*** as such.  This will affect the creation of libtool libraries that
8475290001Sglebius*** depend on shared libraries, but programs linked with such libtool
8476290001Sglebius*** libraries will work regardless of this problem.  Nevertheless, you
8477290001Sglebius*** may want to report the problem to your system manager and/or to
8478290001Sglebius*** bug-libtool@gnu.org
8479290001Sglebius
8480290001Sglebius_LT_EOF
8481290001Sglebius	  fi ;;
8482290001Sglebius	esac
8483290001Sglebius      fi
8484290001Sglebius      break
8485290001Sglebius    fi
8486290001Sglebius  done
8487290001Sglebius  IFS="$lt_save_ifs"
8488290001Sglebius  MAGIC_CMD="$lt_save_MAGIC_CMD"
8489290001Sglebius  ;;
8490290001Sglebiusesac
8491290001Sglebiusfi
8492290001Sglebius
8493290001SglebiusMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8494290001Sglebiusif test -n "$MAGIC_CMD"; then
8495290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8496290001Sglebius$as_echo "$MAGIC_CMD" >&6; }
8497290001Sglebiuselse
8498290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499290001Sglebius$as_echo "no" >&6; }
8500290001Sglebiusfi
8501290001Sglebius
8502290001Sglebius
8503290001Sglebius
8504290001Sglebius
8505290001Sglebius
8506290001Sglebiusif test -z "$lt_cv_path_MAGIC_CMD"; then
8507290001Sglebius  if test -n "$ac_tool_prefix"; then
8508290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8509290001Sglebius$as_echo_n "checking for file... " >&6; }
8510290001Sglebiusif ${lt_cv_path_MAGIC_CMD+:} false; then :
8511290001Sglebius  $as_echo_n "(cached) " >&6
8512290001Sglebiuselse
8513290001Sglebius  case $MAGIC_CMD in
8514290001Sglebius[\\/*] |  ?:[\\/]*)
8515290001Sglebius  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8516290001Sglebius  ;;
8517290001Sglebius*)
8518290001Sglebius  lt_save_MAGIC_CMD="$MAGIC_CMD"
8519290001Sglebius  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8520290001Sglebius  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8521290001Sglebius  for ac_dir in $ac_dummy; do
8522290001Sglebius    IFS="$lt_save_ifs"
8523290001Sglebius    test -z "$ac_dir" && ac_dir=.
8524290001Sglebius    if test -f $ac_dir/file; then
8525290001Sglebius      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8526290001Sglebius      if test -n "$file_magic_test_file"; then
8527290001Sglebius	case $deplibs_check_method in
8528290001Sglebius	"file_magic "*)
8529290001Sglebius	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8530290001Sglebius	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8531290001Sglebius	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8532290001Sglebius	    $EGREP "$file_magic_regex" > /dev/null; then
8533290001Sglebius	    :
8534290001Sglebius	  else
8535290001Sglebius	    cat <<_LT_EOF 1>&2
8536290001Sglebius
8537290001Sglebius*** Warning: the command libtool uses to detect shared libraries,
8538290001Sglebius*** $file_magic_cmd, produces output that libtool cannot recognize.
8539290001Sglebius*** The result is that libtool may fail to recognize shared libraries
8540290001Sglebius*** as such.  This will affect the creation of libtool libraries that
8541290001Sglebius*** depend on shared libraries, but programs linked with such libtool
8542290001Sglebius*** libraries will work regardless of this problem.  Nevertheless, you
8543290001Sglebius*** may want to report the problem to your system manager and/or to
8544290001Sglebius*** bug-libtool@gnu.org
8545290001Sglebius
8546290001Sglebius_LT_EOF
8547290001Sglebius	  fi ;;
8548290001Sglebius	esac
8549290001Sglebius      fi
8550290001Sglebius      break
8551290001Sglebius    fi
8552290001Sglebius  done
8553290001Sglebius  IFS="$lt_save_ifs"
8554290001Sglebius  MAGIC_CMD="$lt_save_MAGIC_CMD"
8555290001Sglebius  ;;
8556290001Sglebiusesac
8557290001Sglebiusfi
8558290001Sglebius
8559290001SglebiusMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8560290001Sglebiusif test -n "$MAGIC_CMD"; then
8561290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8562290001Sglebius$as_echo "$MAGIC_CMD" >&6; }
8563290001Sglebiuselse
8564290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565290001Sglebius$as_echo "no" >&6; }
8566290001Sglebiusfi
8567290001Sglebius
8568290001Sglebius
8569290001Sglebius  else
8570290001Sglebius    MAGIC_CMD=:
8571290001Sglebius  fi
8572290001Sglebiusfi
8573290001Sglebius
8574290001Sglebius  fi
8575290001Sglebius  ;;
8576290001Sglebiusesac
8577290001Sglebius
8578290001Sglebius# Use C for the default configuration in the libtool script
8579290001Sglebius
8580290001Sglebiuslt_save_CC="$CC"
8581290001Sglebiusac_ext=c
8582290001Sglebiusac_cpp='$CPP $CPPFLAGS'
8583290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
8586290001Sglebius
8587290001Sglebius
8588290001Sglebius# Source file extension for C test sources.
8589290001Sglebiusac_ext=c
8590290001Sglebius
8591290001Sglebius# Object file extension for compiled C test sources.
8592290001Sglebiusobjext=o
8593290001Sglebiusobjext=$objext
8594290001Sglebius
8595290001Sglebius# Code to be used in simple compile tests
8596290001Sglebiuslt_simple_compile_test_code="int some_variable = 0;"
8597290001Sglebius
8598290001Sglebius# Code to be used in simple link tests
8599290001Sglebiuslt_simple_link_test_code='int main(){return(0);}'
8600290001Sglebius
8601290001Sglebius
8602290001Sglebius
8603290001Sglebius
8604290001Sglebius
8605290001Sglebius
8606290001Sglebius
8607290001Sglebius# If no C compiler was specified, use CC.
8608290001SglebiusLTCC=${LTCC-"$CC"}
8609290001Sglebius
8610290001Sglebius# If no C compiler flags were specified, use CFLAGS.
8611290001SglebiusLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8612290001Sglebius
8613290001Sglebius# Allow CC to be a program name with arguments.
8614290001Sglebiuscompiler=$CC
8615290001Sglebius
8616290001Sglebius# Save the default compiler, since it gets overwritten when the other
8617290001Sglebius# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8618290001Sglebiuscompiler_DEFAULT=$CC
8619290001Sglebius
8620290001Sglebius# save warnings/boilerplate of simple test code
8621290001Sglebiusac_outfile=conftest.$ac_objext
8622290001Sglebiusecho "$lt_simple_compile_test_code" >conftest.$ac_ext
8623290001Sglebiuseval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8624290001Sglebius_lt_compiler_boilerplate=`cat conftest.err`
8625290001Sglebius$RM conftest*
8626290001Sglebius
8627290001Sglebiusac_outfile=conftest.$ac_objext
8628290001Sglebiusecho "$lt_simple_link_test_code" >conftest.$ac_ext
8629290001Sglebiuseval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8630290001Sglebius_lt_linker_boilerplate=`cat conftest.err`
8631290001Sglebius$RM -r conftest*
8632290001Sglebius
8633290001Sglebius
8634290001Sglebius## CAVEAT EMPTOR:
8635290001Sglebius## There is no encapsulation within the following macros, do not change
8636290001Sglebius## the running order or otherwise move them around unless you know exactly
8637290001Sglebius## what you are doing...
8638290001Sglebiusif test -n "$compiler"; then
8639290001Sglebius
8640290001Sglebiuslt_prog_compiler_no_builtin_flag=
8641290001Sglebius
8642290001Sglebiusif test "$GCC" = yes; then
8643290001Sglebius  case $cc_basename in
8644290001Sglebius  nvcc*)
8645290001Sglebius    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8646290001Sglebius  *)
8647290001Sglebius    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8648290001Sglebius  esac
8649290001Sglebius
8650290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8651290001Sglebius$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8652290001Sglebiusif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8653290001Sglebius  $as_echo_n "(cached) " >&6
8654290001Sglebiuselse
8655290001Sglebius  lt_cv_prog_compiler_rtti_exceptions=no
8656290001Sglebius   ac_outfile=conftest.$ac_objext
8657290001Sglebius   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8658290001Sglebius   lt_compiler_flag="-fno-rtti -fno-exceptions"
8659290001Sglebius   # Insert the option either (1) after the last *FLAGS variable, or
8660290001Sglebius   # (2) before a word containing "conftest.", or (3) at the end.
8661290001Sglebius   # Note that $ac_compile itself does not contain backslashes and begins
8662290001Sglebius   # with a dollar sign (not a hyphen), so the echo should work correctly.
8663290001Sglebius   # The option is referenced via a variable to avoid confusing sed.
8664290001Sglebius   lt_compile=`echo "$ac_compile" | $SED \
8665290001Sglebius   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666290001Sglebius   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667290001Sglebius   -e 's:$: $lt_compiler_flag:'`
8668290001Sglebius   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8669290001Sglebius   (eval "$lt_compile" 2>conftest.err)
8670290001Sglebius   ac_status=$?
8671290001Sglebius   cat conftest.err >&5
8672290001Sglebius   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673290001Sglebius   if (exit $ac_status) && test -s "$ac_outfile"; then
8674290001Sglebius     # The compiler can only warn and ignore the option if not recognized
8675290001Sglebius     # So say no if there are warnings other than the usual output.
8676290001Sglebius     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8677290001Sglebius     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8678290001Sglebius     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8679290001Sglebius       lt_cv_prog_compiler_rtti_exceptions=yes
8680290001Sglebius     fi
8681290001Sglebius   fi
8682290001Sglebius   $RM conftest*
8683290001Sglebius
8684290001Sglebiusfi
8685290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8686290001Sglebius$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8687290001Sglebius
8688290001Sglebiusif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8689290001Sglebius    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8690290001Sglebiuselse
8691290001Sglebius    :
8692290001Sglebiusfi
8693290001Sglebius
8694290001Sglebiusfi
8695290001Sglebius
8696290001Sglebius
8697290001Sglebius
8698290001Sglebius
8699290001Sglebius
8700290001Sglebius
8701290001Sglebius  lt_prog_compiler_wl=
8702290001Sglebiuslt_prog_compiler_pic=
8703290001Sglebiuslt_prog_compiler_static=
8704290001Sglebius
8705290001Sglebius
8706290001Sglebius  if test "$GCC" = yes; then
8707290001Sglebius    lt_prog_compiler_wl='-Wl,'
8708290001Sglebius    lt_prog_compiler_static='-static'
8709290001Sglebius
8710290001Sglebius    case $host_os in
8711290001Sglebius      aix*)
8712290001Sglebius      # All AIX code is PIC.
8713290001Sglebius      if test "$host_cpu" = ia64; then
8714290001Sglebius	# AIX 5 now supports IA64 processor
8715290001Sglebius	lt_prog_compiler_static='-Bstatic'
8716290001Sglebius      fi
8717290001Sglebius      ;;
8718290001Sglebius
8719290001Sglebius    amigaos*)
8720290001Sglebius      case $host_cpu in
8721290001Sglebius      powerpc)
8722290001Sglebius            # see comment about AmigaOS4 .so support
8723290001Sglebius            lt_prog_compiler_pic='-fPIC'
8724290001Sglebius        ;;
8725290001Sglebius      m68k)
8726290001Sglebius            # FIXME: we need at least 68020 code to build shared libraries, but
8727290001Sglebius            # adding the `-m68020' flag to GCC prevents building anything better,
8728290001Sglebius            # like `-m68040'.
8729290001Sglebius            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8730290001Sglebius        ;;
8731290001Sglebius      esac
8732290001Sglebius      ;;
8733290001Sglebius
8734290001Sglebius    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8735290001Sglebius      # PIC is the default for these OSes.
8736290001Sglebius      ;;
8737290001Sglebius
8738290001Sglebius    mingw* | cygwin* | pw32* | os2* | cegcc*)
8739290001Sglebius      # This hack is so that the source file can tell whether it is being
8740290001Sglebius      # built for inclusion in a dll (and should export symbols for example).
8741290001Sglebius      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8742290001Sglebius      # (--disable-auto-import) libraries
8743290001Sglebius      lt_prog_compiler_pic='-DDLL_EXPORT'
8744290001Sglebius      ;;
8745290001Sglebius
8746290001Sglebius    darwin* | rhapsody*)
8747290001Sglebius      # PIC is the default on this platform
8748290001Sglebius      # Common symbols not allowed in MH_DYLIB files
8749290001Sglebius      lt_prog_compiler_pic='-fno-common'
8750290001Sglebius      ;;
8751290001Sglebius
8752290001Sglebius    haiku*)
8753290001Sglebius      # PIC is the default for Haiku.
8754290001Sglebius      # The "-static" flag exists, but is broken.
8755290001Sglebius      lt_prog_compiler_static=
8756290001Sglebius      ;;
8757290001Sglebius
8758290001Sglebius    hpux*)
8759290001Sglebius      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8760290001Sglebius      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8761290001Sglebius      # sets the default TLS model and affects inlining.
8762290001Sglebius      case $host_cpu in
8763290001Sglebius      hppa*64*)
8764290001Sglebius	# +Z the default
8765290001Sglebius	;;
8766290001Sglebius      *)
8767290001Sglebius	lt_prog_compiler_pic='-fPIC'
8768290001Sglebius	;;
8769290001Sglebius      esac
8770290001Sglebius      ;;
8771290001Sglebius
8772290001Sglebius    interix[3-9]*)
8773290001Sglebius      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8774290001Sglebius      # Instead, we relocate shared libraries at runtime.
8775290001Sglebius      ;;
8776290001Sglebius
8777290001Sglebius    msdosdjgpp*)
8778290001Sglebius      # Just because we use GCC doesn't mean we suddenly get shared libraries
8779290001Sglebius      # on systems that don't support them.
8780290001Sglebius      lt_prog_compiler_can_build_shared=no
8781290001Sglebius      enable_shared=no
8782290001Sglebius      ;;
8783290001Sglebius
8784290001Sglebius    *nto* | *qnx*)
8785290001Sglebius      # QNX uses GNU C++, but need to define -shared option too, otherwise
8786290001Sglebius      # it will coredump.
8787290001Sglebius      lt_prog_compiler_pic='-fPIC -shared'
8788290001Sglebius      ;;
8789290001Sglebius
8790290001Sglebius    sysv4*MP*)
8791290001Sglebius      if test -d /usr/nec; then
8792290001Sglebius	lt_prog_compiler_pic=-Kconform_pic
8793290001Sglebius      fi
8794290001Sglebius      ;;
8795290001Sglebius
8796290001Sglebius    *)
8797290001Sglebius      lt_prog_compiler_pic='-fPIC'
8798290001Sglebius      ;;
8799290001Sglebius    esac
8800290001Sglebius
8801290001Sglebius    case $cc_basename in
8802290001Sglebius    nvcc*) # Cuda Compiler Driver 2.2
8803290001Sglebius      lt_prog_compiler_wl='-Xlinker '
8804290001Sglebius      lt_prog_compiler_pic='-Xcompiler -fPIC'
8805290001Sglebius      ;;
8806290001Sglebius    esac
8807290001Sglebius  else
8808290001Sglebius    # PORTME Check for flag to pass linker flags through the system compiler.
8809290001Sglebius    case $host_os in
8810290001Sglebius    aix*)
8811290001Sglebius      lt_prog_compiler_wl='-Wl,'
8812290001Sglebius      if test "$host_cpu" = ia64; then
8813290001Sglebius	# AIX 5 now supports IA64 processor
8814290001Sglebius	lt_prog_compiler_static='-Bstatic'
8815290001Sglebius      else
8816290001Sglebius	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8817290001Sglebius      fi
8818290001Sglebius      ;;
8819290001Sglebius
8820290001Sglebius    mingw* | cygwin* | pw32* | os2* | cegcc*)
8821290001Sglebius      # This hack is so that the source file can tell whether it is being
8822290001Sglebius      # built for inclusion in a dll (and should export symbols for example).
8823290001Sglebius      lt_prog_compiler_pic='-DDLL_EXPORT'
8824290001Sglebius      ;;
8825290001Sglebius
8826290001Sglebius    hpux9* | hpux10* | hpux11*)
8827290001Sglebius      lt_prog_compiler_wl='-Wl,'
8828290001Sglebius      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8829290001Sglebius      # not for PA HP-UX.
8830290001Sglebius      case $host_cpu in
8831290001Sglebius      hppa*64*|ia64*)
8832290001Sglebius	# +Z the default
8833290001Sglebius	;;
8834290001Sglebius      *)
8835290001Sglebius	lt_prog_compiler_pic='+Z'
8836290001Sglebius	;;
8837290001Sglebius      esac
8838290001Sglebius      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8839290001Sglebius      lt_prog_compiler_static='${wl}-a ${wl}archive'
8840290001Sglebius      ;;
8841290001Sglebius
8842290001Sglebius    irix5* | irix6* | nonstopux*)
8843290001Sglebius      lt_prog_compiler_wl='-Wl,'
8844290001Sglebius      # PIC (with -KPIC) is the default.
8845290001Sglebius      lt_prog_compiler_static='-non_shared'
8846290001Sglebius      ;;
8847290001Sglebius
8848290001Sglebius    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8849290001Sglebius      case $cc_basename in
8850290001Sglebius      # old Intel for x86_64 which still supported -KPIC.
8851290001Sglebius      ecc*)
8852290001Sglebius	lt_prog_compiler_wl='-Wl,'
8853290001Sglebius	lt_prog_compiler_pic='-KPIC'
8854290001Sglebius	lt_prog_compiler_static='-static'
8855290001Sglebius        ;;
8856290001Sglebius      # icc used to be incompatible with GCC.
8857290001Sglebius      # ICC 10 doesn't accept -KPIC any more.
8858290001Sglebius      icc* | ifort*)
8859290001Sglebius	lt_prog_compiler_wl='-Wl,'
8860290001Sglebius	lt_prog_compiler_pic='-fPIC'
8861290001Sglebius	lt_prog_compiler_static='-static'
8862290001Sglebius        ;;
8863290001Sglebius      # Lahey Fortran 8.1.
8864290001Sglebius      lf95*)
8865290001Sglebius	lt_prog_compiler_wl='-Wl,'
8866290001Sglebius	lt_prog_compiler_pic='--shared'
8867290001Sglebius	lt_prog_compiler_static='--static'
8868290001Sglebius	;;
8869290001Sglebius      nagfor*)
8870290001Sglebius	# NAG Fortran compiler
8871290001Sglebius	lt_prog_compiler_wl='-Wl,-Wl,,'
8872290001Sglebius	lt_prog_compiler_pic='-PIC'
8873290001Sglebius	lt_prog_compiler_static='-Bstatic'
8874290001Sglebius	;;
8875290001Sglebius      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8876290001Sglebius        # Portland Group compilers (*not* the Pentium gcc compiler,
8877290001Sglebius	# which looks to be a dead project)
8878290001Sglebius	lt_prog_compiler_wl='-Wl,'
8879290001Sglebius	lt_prog_compiler_pic='-fpic'
8880290001Sglebius	lt_prog_compiler_static='-Bstatic'
8881290001Sglebius        ;;
8882290001Sglebius      ccc*)
8883290001Sglebius        lt_prog_compiler_wl='-Wl,'
8884290001Sglebius        # All Alpha code is PIC.
8885290001Sglebius        lt_prog_compiler_static='-non_shared'
8886290001Sglebius        ;;
8887290001Sglebius      xl* | bgxl* | bgf* | mpixl*)
8888290001Sglebius	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8889290001Sglebius	lt_prog_compiler_wl='-Wl,'
8890290001Sglebius	lt_prog_compiler_pic='-qpic'
8891290001Sglebius	lt_prog_compiler_static='-qstaticlink'
8892290001Sglebius	;;
8893290001Sglebius      *)
8894290001Sglebius	case `$CC -V 2>&1 | sed 5q` in
8895290001Sglebius	*Sun\ F* | *Sun*Fortran*)
8896290001Sglebius	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8897290001Sglebius	  lt_prog_compiler_pic='-KPIC'
8898290001Sglebius	  lt_prog_compiler_static='-Bstatic'
8899290001Sglebius	  lt_prog_compiler_wl=''
8900290001Sglebius	  ;;
8901290001Sglebius	*Sun\ C*)
8902290001Sglebius	  # Sun C 5.9
8903290001Sglebius	  lt_prog_compiler_pic='-KPIC'
8904290001Sglebius	  lt_prog_compiler_static='-Bstatic'
8905290001Sglebius	  lt_prog_compiler_wl='-Wl,'
8906290001Sglebius	  ;;
8907290001Sglebius	esac
8908290001Sglebius	;;
8909290001Sglebius      esac
8910290001Sglebius      ;;
8911290001Sglebius
8912290001Sglebius    newsos6)
8913290001Sglebius      lt_prog_compiler_pic='-KPIC'
8914290001Sglebius      lt_prog_compiler_static='-Bstatic'
8915290001Sglebius      ;;
8916290001Sglebius
8917290001Sglebius    *nto* | *qnx*)
8918290001Sglebius      # QNX uses GNU C++, but need to define -shared option too, otherwise
8919290001Sglebius      # it will coredump.
8920290001Sglebius      lt_prog_compiler_pic='-fPIC -shared'
8921290001Sglebius      ;;
8922290001Sglebius
8923290001Sglebius    osf3* | osf4* | osf5*)
8924290001Sglebius      lt_prog_compiler_wl='-Wl,'
8925290001Sglebius      # All OSF/1 code is PIC.
8926290001Sglebius      lt_prog_compiler_static='-non_shared'
8927290001Sglebius      ;;
8928290001Sglebius
8929290001Sglebius    rdos*)
8930290001Sglebius      lt_prog_compiler_static='-non_shared'
8931290001Sglebius      ;;
8932290001Sglebius
8933290001Sglebius    solaris*)
8934290001Sglebius      lt_prog_compiler_pic='-KPIC'
8935290001Sglebius      lt_prog_compiler_static='-Bstatic'
8936290001Sglebius      case $cc_basename in
8937290001Sglebius      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8938290001Sglebius	lt_prog_compiler_wl='-Qoption ld ';;
8939290001Sglebius      *)
8940290001Sglebius	lt_prog_compiler_wl='-Wl,';;
8941290001Sglebius      esac
8942290001Sglebius      ;;
8943290001Sglebius
8944290001Sglebius    sunos4*)
8945290001Sglebius      lt_prog_compiler_wl='-Qoption ld '
8946290001Sglebius      lt_prog_compiler_pic='-PIC'
8947290001Sglebius      lt_prog_compiler_static='-Bstatic'
8948290001Sglebius      ;;
8949290001Sglebius
8950290001Sglebius    sysv4 | sysv4.2uw2* | sysv4.3*)
8951290001Sglebius      lt_prog_compiler_wl='-Wl,'
8952290001Sglebius      lt_prog_compiler_pic='-KPIC'
8953290001Sglebius      lt_prog_compiler_static='-Bstatic'
8954290001Sglebius      ;;
8955290001Sglebius
8956290001Sglebius    sysv4*MP*)
8957290001Sglebius      if test -d /usr/nec ;then
8958290001Sglebius	lt_prog_compiler_pic='-Kconform_pic'
8959290001Sglebius	lt_prog_compiler_static='-Bstatic'
8960290001Sglebius      fi
8961290001Sglebius      ;;
8962290001Sglebius
8963290001Sglebius    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8964290001Sglebius      lt_prog_compiler_wl='-Wl,'
8965290001Sglebius      lt_prog_compiler_pic='-KPIC'
8966290001Sglebius      lt_prog_compiler_static='-Bstatic'
8967290001Sglebius      ;;
8968290001Sglebius
8969290001Sglebius    unicos*)
8970290001Sglebius      lt_prog_compiler_wl='-Wl,'
8971290001Sglebius      lt_prog_compiler_can_build_shared=no
8972290001Sglebius      ;;
8973290001Sglebius
8974290001Sglebius    uts4*)
8975290001Sglebius      lt_prog_compiler_pic='-pic'
8976290001Sglebius      lt_prog_compiler_static='-Bstatic'
8977290001Sglebius      ;;
8978290001Sglebius
8979290001Sglebius    *)
8980290001Sglebius      lt_prog_compiler_can_build_shared=no
8981290001Sglebius      ;;
8982290001Sglebius    esac
8983290001Sglebius  fi
8984290001Sglebius
8985290001Sglebiuscase $host_os in
8986290001Sglebius  # For platforms which do not support PIC, -DPIC is meaningless:
8987290001Sglebius  *djgpp*)
8988290001Sglebius    lt_prog_compiler_pic=
8989290001Sglebius    ;;
8990290001Sglebius  *)
8991290001Sglebius    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8992290001Sglebius    ;;
8993290001Sglebiusesac
8994290001Sglebius
8995290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8996290001Sglebius$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8997290001Sglebiusif ${lt_cv_prog_compiler_pic+:} false; then :
8998290001Sglebius  $as_echo_n "(cached) " >&6
8999290001Sglebiuselse
9000290001Sglebius  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9001290001Sglebiusfi
9002290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9003290001Sglebius$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9004290001Sglebiuslt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9005290001Sglebius
9006290001Sglebius#
9007290001Sglebius# Check to make sure the PIC flag actually works.
9008290001Sglebius#
9009290001Sglebiusif test -n "$lt_prog_compiler_pic"; then
9010290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9011290001Sglebius$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9012290001Sglebiusif ${lt_cv_prog_compiler_pic_works+:} false; then :
9013290001Sglebius  $as_echo_n "(cached) " >&6
9014290001Sglebiuselse
9015290001Sglebius  lt_cv_prog_compiler_pic_works=no
9016290001Sglebius   ac_outfile=conftest.$ac_objext
9017290001Sglebius   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9018290001Sglebius   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9019290001Sglebius   # Insert the option either (1) after the last *FLAGS variable, or
9020290001Sglebius   # (2) before a word containing "conftest.", or (3) at the end.
9021290001Sglebius   # Note that $ac_compile itself does not contain backslashes and begins
9022290001Sglebius   # with a dollar sign (not a hyphen), so the echo should work correctly.
9023290001Sglebius   # The option is referenced via a variable to avoid confusing sed.
9024290001Sglebius   lt_compile=`echo "$ac_compile" | $SED \
9025290001Sglebius   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9026290001Sglebius   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9027290001Sglebius   -e 's:$: $lt_compiler_flag:'`
9028290001Sglebius   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9029290001Sglebius   (eval "$lt_compile" 2>conftest.err)
9030290001Sglebius   ac_status=$?
9031290001Sglebius   cat conftest.err >&5
9032290001Sglebius   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033290001Sglebius   if (exit $ac_status) && test -s "$ac_outfile"; then
9034290001Sglebius     # The compiler can only warn and ignore the option if not recognized
9035290001Sglebius     # So say no if there are warnings other than the usual output.
9036290001Sglebius     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9037290001Sglebius     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9038290001Sglebius     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9039290001Sglebius       lt_cv_prog_compiler_pic_works=yes
9040290001Sglebius     fi
9041290001Sglebius   fi
9042290001Sglebius   $RM conftest*
9043290001Sglebius
9044290001Sglebiusfi
9045290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9046290001Sglebius$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9047290001Sglebius
9048290001Sglebiusif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9049290001Sglebius    case $lt_prog_compiler_pic in
9050290001Sglebius     "" | " "*) ;;
9051290001Sglebius     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9052290001Sglebius     esac
9053290001Sglebiuselse
9054290001Sglebius    lt_prog_compiler_pic=
9055290001Sglebius     lt_prog_compiler_can_build_shared=no
9056290001Sglebiusfi
9057290001Sglebius
9058290001Sglebiusfi
9059290001Sglebius
9060290001Sglebius
9061290001Sglebius
9062290001Sglebius
9063290001Sglebius
9064290001Sglebius
9065290001Sglebius
9066290001Sglebius
9067290001Sglebius
9068290001Sglebius
9069290001Sglebius
9070290001Sglebius#
9071290001Sglebius# Check to make sure the static flag actually works.
9072290001Sglebius#
9073290001Sglebiuswl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9074290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9075290001Sglebius$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9076290001Sglebiusif ${lt_cv_prog_compiler_static_works+:} false; then :
9077290001Sglebius  $as_echo_n "(cached) " >&6
9078290001Sglebiuselse
9079290001Sglebius  lt_cv_prog_compiler_static_works=no
9080290001Sglebius   save_LDFLAGS="$LDFLAGS"
9081290001Sglebius   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9082290001Sglebius   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9083290001Sglebius   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9084290001Sglebius     # The linker can only warn and ignore the option if not recognized
9085290001Sglebius     # So say no if there are warnings
9086290001Sglebius     if test -s conftest.err; then
9087290001Sglebius       # Append any errors to the config.log.
9088290001Sglebius       cat conftest.err 1>&5
9089290001Sglebius       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9090290001Sglebius       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091290001Sglebius       if diff conftest.exp conftest.er2 >/dev/null; then
9092290001Sglebius         lt_cv_prog_compiler_static_works=yes
9093290001Sglebius       fi
9094290001Sglebius     else
9095290001Sglebius       lt_cv_prog_compiler_static_works=yes
9096290001Sglebius     fi
9097290001Sglebius   fi
9098290001Sglebius   $RM -r conftest*
9099290001Sglebius   LDFLAGS="$save_LDFLAGS"
9100290001Sglebius
9101290001Sglebiusfi
9102290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9103290001Sglebius$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9104290001Sglebius
9105290001Sglebiusif test x"$lt_cv_prog_compiler_static_works" = xyes; then
9106290001Sglebius    :
9107290001Sglebiuselse
9108290001Sglebius    lt_prog_compiler_static=
9109290001Sglebiusfi
9110290001Sglebius
9111290001Sglebius
9112290001Sglebius
9113290001Sglebius
9114290001Sglebius
9115290001Sglebius
9116290001Sglebius
9117290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9118290001Sglebius$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9119290001Sglebiusif ${lt_cv_prog_compiler_c_o+:} false; then :
9120290001Sglebius  $as_echo_n "(cached) " >&6
9121290001Sglebiuselse
9122290001Sglebius  lt_cv_prog_compiler_c_o=no
9123290001Sglebius   $RM -r conftest 2>/dev/null
9124290001Sglebius   mkdir conftest
9125290001Sglebius   cd conftest
9126290001Sglebius   mkdir out
9127290001Sglebius   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9128290001Sglebius
9129290001Sglebius   lt_compiler_flag="-o out/conftest2.$ac_objext"
9130290001Sglebius   # Insert the option either (1) after the last *FLAGS variable, or
9131290001Sglebius   # (2) before a word containing "conftest.", or (3) at the end.
9132290001Sglebius   # Note that $ac_compile itself does not contain backslashes and begins
9133290001Sglebius   # with a dollar sign (not a hyphen), so the echo should work correctly.
9134290001Sglebius   lt_compile=`echo "$ac_compile" | $SED \
9135290001Sglebius   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9136290001Sglebius   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9137290001Sglebius   -e 's:$: $lt_compiler_flag:'`
9138290001Sglebius   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9139290001Sglebius   (eval "$lt_compile" 2>out/conftest.err)
9140290001Sglebius   ac_status=$?
9141290001Sglebius   cat out/conftest.err >&5
9142290001Sglebius   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143290001Sglebius   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9144290001Sglebius   then
9145290001Sglebius     # The compiler can only warn and ignore the option if not recognized
9146290001Sglebius     # So say no if there are warnings
9147290001Sglebius     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9148290001Sglebius     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9149290001Sglebius     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9150290001Sglebius       lt_cv_prog_compiler_c_o=yes
9151290001Sglebius     fi
9152290001Sglebius   fi
9153290001Sglebius   chmod u+w . 2>&5
9154290001Sglebius   $RM conftest*
9155290001Sglebius   # SGI C++ compiler will create directory out/ii_files/ for
9156290001Sglebius   # template instantiation
9157290001Sglebius   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9158290001Sglebius   $RM out/* && rmdir out
9159290001Sglebius   cd ..
9160290001Sglebius   $RM -r conftest
9161290001Sglebius   $RM conftest*
9162290001Sglebius
9163290001Sglebiusfi
9164290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9165290001Sglebius$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9166290001Sglebius
9167290001Sglebius
9168290001Sglebius
9169290001Sglebius
9170290001Sglebius
9171290001Sglebius
9172290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9173290001Sglebius$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9174290001Sglebiusif ${lt_cv_prog_compiler_c_o+:} false; then :
9175290001Sglebius  $as_echo_n "(cached) " >&6
9176290001Sglebiuselse
9177290001Sglebius  lt_cv_prog_compiler_c_o=no
9178290001Sglebius   $RM -r conftest 2>/dev/null
9179290001Sglebius   mkdir conftest
9180290001Sglebius   cd conftest
9181290001Sglebius   mkdir out
9182290001Sglebius   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183290001Sglebius
9184290001Sglebius   lt_compiler_flag="-o out/conftest2.$ac_objext"
9185290001Sglebius   # Insert the option either (1) after the last *FLAGS variable, or
9186290001Sglebius   # (2) before a word containing "conftest.", or (3) at the end.
9187290001Sglebius   # Note that $ac_compile itself does not contain backslashes and begins
9188290001Sglebius   # with a dollar sign (not a hyphen), so the echo should work correctly.
9189290001Sglebius   lt_compile=`echo "$ac_compile" | $SED \
9190290001Sglebius   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191290001Sglebius   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192290001Sglebius   -e 's:$: $lt_compiler_flag:'`
9193290001Sglebius   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194290001Sglebius   (eval "$lt_compile" 2>out/conftest.err)
9195290001Sglebius   ac_status=$?
9196290001Sglebius   cat out/conftest.err >&5
9197290001Sglebius   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198290001Sglebius   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9199290001Sglebius   then
9200290001Sglebius     # The compiler can only warn and ignore the option if not recognized
9201290001Sglebius     # So say no if there are warnings
9202290001Sglebius     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9203290001Sglebius     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9204290001Sglebius     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9205290001Sglebius       lt_cv_prog_compiler_c_o=yes
9206290001Sglebius     fi
9207290001Sglebius   fi
9208290001Sglebius   chmod u+w . 2>&5
9209290001Sglebius   $RM conftest*
9210290001Sglebius   # SGI C++ compiler will create directory out/ii_files/ for
9211290001Sglebius   # template instantiation
9212290001Sglebius   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9213290001Sglebius   $RM out/* && rmdir out
9214290001Sglebius   cd ..
9215290001Sglebius   $RM -r conftest
9216290001Sglebius   $RM conftest*
9217290001Sglebius
9218290001Sglebiusfi
9219290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9220290001Sglebius$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9221290001Sglebius
9222290001Sglebius
9223290001Sglebius
9224290001Sglebius
9225290001Sglebiushard_links="nottested"
9226290001Sglebiusif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9227290001Sglebius  # do not overwrite the value of need_locks provided by the user
9228290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9229290001Sglebius$as_echo_n "checking if we can lock with hard links... " >&6; }
9230290001Sglebius  hard_links=yes
9231290001Sglebius  $RM conftest*
9232290001Sglebius  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9233290001Sglebius  touch conftest.a
9234290001Sglebius  ln conftest.a conftest.b 2>&5 || hard_links=no
9235290001Sglebius  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9236290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9237290001Sglebius$as_echo "$hard_links" >&6; }
9238290001Sglebius  if test "$hard_links" = no; then
9239290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9240290001Sglebius$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9241290001Sglebius    need_locks=warn
9242290001Sglebius  fi
9243290001Sglebiuselse
9244290001Sglebius  need_locks=no
9245290001Sglebiusfi
9246290001Sglebius
9247290001Sglebius
9248290001Sglebius
9249290001Sglebius
9250290001Sglebius
9251290001Sglebius
9252290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9253290001Sglebius$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9254290001Sglebius
9255290001Sglebius  runpath_var=
9256290001Sglebius  allow_undefined_flag=
9257290001Sglebius  always_export_symbols=no
9258290001Sglebius  archive_cmds=
9259290001Sglebius  archive_expsym_cmds=
9260290001Sglebius  compiler_needs_object=no
9261290001Sglebius  enable_shared_with_static_runtimes=no
9262290001Sglebius  export_dynamic_flag_spec=
9263290001Sglebius  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9264290001Sglebius  hardcode_automatic=no
9265290001Sglebius  hardcode_direct=no
9266290001Sglebius  hardcode_direct_absolute=no
9267290001Sglebius  hardcode_libdir_flag_spec=
9268290001Sglebius  hardcode_libdir_flag_spec_ld=
9269290001Sglebius  hardcode_libdir_separator=
9270290001Sglebius  hardcode_minus_L=no
9271290001Sglebius  hardcode_shlibpath_var=unsupported
9272290001Sglebius  inherit_rpath=no
9273290001Sglebius  link_all_deplibs=unknown
9274290001Sglebius  module_cmds=
9275290001Sglebius  module_expsym_cmds=
9276290001Sglebius  old_archive_from_new_cmds=
9277290001Sglebius  old_archive_from_expsyms_cmds=
9278290001Sglebius  thread_safe_flag_spec=
9279290001Sglebius  whole_archive_flag_spec=
9280290001Sglebius  # include_expsyms should be a list of space-separated symbols to be *always*
9281290001Sglebius  # included in the symbol list
9282290001Sglebius  include_expsyms=
9283290001Sglebius  # exclude_expsyms can be an extended regexp of symbols to exclude
9284290001Sglebius  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9285290001Sglebius  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9286290001Sglebius  # as well as any symbol that contains `d'.
9287290001Sglebius  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9288290001Sglebius  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9289290001Sglebius  # platforms (ab)use it in PIC code, but their linkers get confused if
9290290001Sglebius  # the symbol is explicitly referenced.  Since portable code cannot
9291290001Sglebius  # rely on this symbol name, it's probably fine to never include it in
9292290001Sglebius  # preloaded symbol tables.
9293290001Sglebius  # Exclude shared library initialization/finalization symbols.
9294290001Sglebius  extract_expsyms_cmds=
9295290001Sglebius
9296290001Sglebius  case $host_os in
9297290001Sglebius  cygwin* | mingw* | pw32* | cegcc*)
9298290001Sglebius    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9299290001Sglebius    # When not using gcc, we currently assume that we are using
9300290001Sglebius    # Microsoft Visual C++.
9301290001Sglebius    if test "$GCC" != yes; then
9302290001Sglebius      with_gnu_ld=no
9303290001Sglebius    fi
9304290001Sglebius    ;;
9305290001Sglebius  interix*)
9306290001Sglebius    # we just hope/assume this is gcc and not c89 (= MSVC++)
9307290001Sglebius    with_gnu_ld=yes
9308290001Sglebius    ;;
9309290001Sglebius  openbsd*)
9310290001Sglebius    with_gnu_ld=no
9311290001Sglebius    ;;
9312290001Sglebius  esac
9313290001Sglebius
9314290001Sglebius  ld_shlibs=yes
9315290001Sglebius
9316290001Sglebius  # On some targets, GNU ld is compatible enough with the native linker
9317290001Sglebius  # that we're better off using the native interface for both.
9318290001Sglebius  lt_use_gnu_ld_interface=no
9319290001Sglebius  if test "$with_gnu_ld" = yes; then
9320290001Sglebius    case $host_os in
9321290001Sglebius      aix*)
9322290001Sglebius	# The AIX port of GNU ld has always aspired to compatibility
9323290001Sglebius	# with the native linker.  However, as the warning in the GNU ld
9324290001Sglebius	# block says, versions before 2.19.5* couldn't really create working
9325290001Sglebius	# shared libraries, regardless of the interface used.
9326290001Sglebius	case `$LD -v 2>&1` in
9327290001Sglebius	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9328290001Sglebius	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9329290001Sglebius	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9330290001Sglebius	  *)
9331290001Sglebius	    lt_use_gnu_ld_interface=yes
9332290001Sglebius	    ;;
9333290001Sglebius	esac
9334290001Sglebius	;;
9335290001Sglebius      *)
9336290001Sglebius	lt_use_gnu_ld_interface=yes
9337290001Sglebius	;;
9338290001Sglebius    esac
9339290001Sglebius  fi
9340290001Sglebius
9341290001Sglebius  if test "$lt_use_gnu_ld_interface" = yes; then
9342290001Sglebius    # If archive_cmds runs LD, not CC, wlarc should be empty
9343290001Sglebius    wlarc='${wl}'
9344290001Sglebius
9345290001Sglebius    # Set some defaults for GNU ld with shared library support. These
9346290001Sglebius    # are reset later if shared libraries are not supported. Putting them
9347290001Sglebius    # here allows them to be overridden if necessary.
9348290001Sglebius    runpath_var=LD_RUN_PATH
9349290001Sglebius    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350290001Sglebius    export_dynamic_flag_spec='${wl}--export-dynamic'
9351290001Sglebius    # ancient GNU ld didn't support --whole-archive et. al.
9352290001Sglebius    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9353290001Sglebius      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9354290001Sglebius    else
9355290001Sglebius      whole_archive_flag_spec=
9356290001Sglebius    fi
9357290001Sglebius    supports_anon_versioning=no
9358290001Sglebius    case `$LD -v 2>&1` in
9359290001Sglebius      *GNU\ gold*) supports_anon_versioning=yes ;;
9360290001Sglebius      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9361290001Sglebius      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9362290001Sglebius      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9363290001Sglebius      *\ 2.11.*) ;; # other 2.11 versions
9364290001Sglebius      *) supports_anon_versioning=yes ;;
9365290001Sglebius    esac
9366290001Sglebius
9367290001Sglebius    # See if GNU ld supports shared libraries.
9368290001Sglebius    case $host_os in
9369290001Sglebius    aix[3-9]*)
9370290001Sglebius      # On AIX/PPC, the GNU linker is very broken
9371290001Sglebius      if test "$host_cpu" != ia64; then
9372290001Sglebius	ld_shlibs=no
9373290001Sglebius	cat <<_LT_EOF 1>&2
9374290001Sglebius
9375290001Sglebius*** Warning: the GNU linker, at least up to release 2.19, is reported
9376290001Sglebius*** to be unable to reliably create shared libraries on AIX.
9377290001Sglebius*** Therefore, libtool is disabling shared libraries support.  If you
9378290001Sglebius*** really care for shared libraries, you may want to install binutils
9379290001Sglebius*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9380290001Sglebius*** You will then need to restart the configuration process.
9381290001Sglebius
9382290001Sglebius_LT_EOF
9383290001Sglebius      fi
9384290001Sglebius      ;;
9385290001Sglebius
9386290001Sglebius    amigaos*)
9387290001Sglebius      case $host_cpu in
9388290001Sglebius      powerpc)
9389290001Sglebius            # see comment about AmigaOS4 .so support
9390290001Sglebius            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391290001Sglebius            archive_expsym_cmds=''
9392290001Sglebius        ;;
9393290001Sglebius      m68k)
9394290001Sglebius            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)'
9395290001Sglebius            hardcode_libdir_flag_spec='-L$libdir'
9396290001Sglebius            hardcode_minus_L=yes
9397290001Sglebius        ;;
9398290001Sglebius      esac
9399290001Sglebius      ;;
9400290001Sglebius
9401290001Sglebius    beos*)
9402290001Sglebius      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403290001Sglebius	allow_undefined_flag=unsupported
9404290001Sglebius	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9405290001Sglebius	# support --undefined.  This deserves some investigation.  FIXME
9406290001Sglebius	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407290001Sglebius      else
9408290001Sglebius	ld_shlibs=no
9409290001Sglebius      fi
9410290001Sglebius      ;;
9411290001Sglebius
9412290001Sglebius    cygwin* | mingw* | pw32* | cegcc*)
9413290001Sglebius      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9414290001Sglebius      # as there is no search path for DLLs.
9415290001Sglebius      hardcode_libdir_flag_spec='-L$libdir'
9416290001Sglebius      export_dynamic_flag_spec='${wl}--export-all-symbols'
9417290001Sglebius      allow_undefined_flag=unsupported
9418290001Sglebius      always_export_symbols=no
9419290001Sglebius      enable_shared_with_static_runtimes=yes
9420290001Sglebius      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'
9421290001Sglebius      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9422290001Sglebius
9423290001Sglebius      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9424290001Sglebius        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9425290001Sglebius	# If the export-symbols file already is a .def file (1st line
9426290001Sglebius	# is EXPORTS), use it as is; otherwise, prepend...
9427290001Sglebius	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9428290001Sglebius	  cp $export_symbols $output_objdir/$soname.def;
9429290001Sglebius	else
9430290001Sglebius	  echo EXPORTS > $output_objdir/$soname.def;
9431290001Sglebius	  cat $export_symbols >> $output_objdir/$soname.def;
9432290001Sglebius	fi~
9433290001Sglebius	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9434290001Sglebius      else
9435290001Sglebius	ld_shlibs=no
9436290001Sglebius      fi
9437290001Sglebius      ;;
9438290001Sglebius
9439290001Sglebius    haiku*)
9440290001Sglebius      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441290001Sglebius      link_all_deplibs=yes
9442290001Sglebius      ;;
9443290001Sglebius
9444290001Sglebius    interix[3-9]*)
9445290001Sglebius      hardcode_direct=no
9446290001Sglebius      hardcode_shlibpath_var=no
9447290001Sglebius      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9448290001Sglebius      export_dynamic_flag_spec='${wl}-E'
9449290001Sglebius      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9450290001Sglebius      # Instead, shared libraries are loaded at an image base (0x10000000 by
9451290001Sglebius      # default) and relocated if they conflict, which is a slow very memory
9452290001Sglebius      # consuming and fragmenting process.  To avoid this, we pick a random,
9453290001Sglebius      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9454290001Sglebius      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9455290001Sglebius      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9456290001Sglebius      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'
9457290001Sglebius      ;;
9458290001Sglebius
9459290001Sglebius    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9460290001Sglebius      tmp_diet=no
9461290001Sglebius      if test "$host_os" = linux-dietlibc; then
9462290001Sglebius	case $cc_basename in
9463290001Sglebius	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9464290001Sglebius	esac
9465290001Sglebius      fi
9466290001Sglebius      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9467290001Sglebius	 && test "$tmp_diet" = no
9468290001Sglebius      then
9469290001Sglebius	tmp_addflag=' $pic_flag'
9470290001Sglebius	tmp_sharedflag='-shared'
9471290001Sglebius	case $cc_basename,$host_cpu in
9472290001Sglebius        pgcc*)				# Portland Group C compiler
9473290001Sglebius	  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'
9474290001Sglebius	  tmp_addflag=' $pic_flag'
9475290001Sglebius	  ;;
9476290001Sglebius	pgf77* | pgf90* | pgf95* | pgfortran*)
9477290001Sglebius					# Portland Group f77 and f90 compilers
9478290001Sglebius	  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'
9479290001Sglebius	  tmp_addflag=' $pic_flag -Mnomain' ;;
9480290001Sglebius	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9481290001Sglebius	  tmp_addflag=' -i_dynamic' ;;
9482290001Sglebius	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9483290001Sglebius	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9484290001Sglebius	ifc* | ifort*)			# Intel Fortran compiler
9485290001Sglebius	  tmp_addflag=' -nofor_main' ;;
9486290001Sglebius	lf95*)				# Lahey Fortran 8.1
9487290001Sglebius	  whole_archive_flag_spec=
9488290001Sglebius	  tmp_sharedflag='--shared' ;;
9489290001Sglebius	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9490290001Sglebius	  tmp_sharedflag='-qmkshrobj'
9491290001Sglebius	  tmp_addflag= ;;
9492290001Sglebius	nvcc*)	# Cuda Compiler Driver 2.2
9493290001Sglebius	  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'
9494290001Sglebius	  compiler_needs_object=yes
9495290001Sglebius	  ;;
9496290001Sglebius	esac
9497290001Sglebius	case `$CC -V 2>&1 | sed 5q` in
9498290001Sglebius	*Sun\ C*)			# Sun C 5.9
9499290001Sglebius	  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'
9500290001Sglebius	  compiler_needs_object=yes
9501290001Sglebius	  tmp_sharedflag='-G' ;;
9502290001Sglebius	*Sun\ F*)			# Sun Fortran 8.3
9503290001Sglebius	  tmp_sharedflag='-G' ;;
9504290001Sglebius	esac
9505290001Sglebius	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506290001Sglebius
9507290001Sglebius        if test "x$supports_anon_versioning" = xyes; then
9508290001Sglebius          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9509290001Sglebius	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9510290001Sglebius	    echo "local: *; };" >> $output_objdir/$libname.ver~
9511290001Sglebius	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9512290001Sglebius        fi
9513290001Sglebius
9514290001Sglebius	case $cc_basename in
9515290001Sglebius	xlf* | bgf* | bgxlf* | mpixlf*)
9516290001Sglebius	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9517290001Sglebius	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9518290001Sglebius	  hardcode_libdir_flag_spec=
9519290001Sglebius	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9520290001Sglebius	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9521290001Sglebius	  if test "x$supports_anon_versioning" = xyes; then
9522290001Sglebius	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9523290001Sglebius	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9524290001Sglebius	      echo "local: *; };" >> $output_objdir/$libname.ver~
9525290001Sglebius	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9526290001Sglebius	  fi
9527290001Sglebius	  ;;
9528290001Sglebius	esac
9529290001Sglebius      else
9530290001Sglebius        ld_shlibs=no
9531290001Sglebius      fi
9532290001Sglebius      ;;
9533290001Sglebius
9534290001Sglebius    netbsd*)
9535290001Sglebius      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9536290001Sglebius	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9537290001Sglebius	wlarc=
9538290001Sglebius      else
9539290001Sglebius	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540290001Sglebius	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9541290001Sglebius      fi
9542290001Sglebius      ;;
9543290001Sglebius
9544290001Sglebius    solaris*)
9545290001Sglebius      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9546290001Sglebius	ld_shlibs=no
9547290001Sglebius	cat <<_LT_EOF 1>&2
9548290001Sglebius
9549290001Sglebius*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9550290001Sglebius*** create shared libraries on Solaris systems.  Therefore, libtool
9551290001Sglebius*** is disabling shared libraries support.  We urge you to upgrade GNU
9552290001Sglebius*** binutils to release 2.9.1 or newer.  Another option is to modify
9553290001Sglebius*** your PATH or compiler configuration so that the native linker is
9554290001Sglebius*** used, and then restart.
9555290001Sglebius
9556290001Sglebius_LT_EOF
9557290001Sglebius      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558290001Sglebius	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9559290001Sglebius	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9560290001Sglebius      else
9561290001Sglebius	ld_shlibs=no
9562290001Sglebius      fi
9563290001Sglebius      ;;
9564290001Sglebius
9565290001Sglebius    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9566290001Sglebius      case `$LD -v 2>&1` in
9567290001Sglebius        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9568290001Sglebius	ld_shlibs=no
9569290001Sglebius	cat <<_LT_EOF 1>&2
9570290001Sglebius
9571290001Sglebius*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9572290001Sglebius*** reliably create shared libraries on SCO systems.  Therefore, libtool
9573290001Sglebius*** is disabling shared libraries support.  We urge you to upgrade GNU
9574290001Sglebius*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9575290001Sglebius*** your PATH or compiler configuration so that the native linker is
9576290001Sglebius*** used, and then restart.
9577290001Sglebius
9578290001Sglebius_LT_EOF
9579290001Sglebius	;;
9580290001Sglebius	*)
9581290001Sglebius	  # For security reasons, it is highly recommended that you always
9582290001Sglebius	  # use absolute paths for naming shared libraries, and exclude the
9583290001Sglebius	  # DT_RUNPATH tag from executables and libraries.  But doing so
9584290001Sglebius	  # requires that you compile everything twice, which is a pain.
9585290001Sglebius	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9586290001Sglebius	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587290001Sglebius	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588290001Sglebius	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9589290001Sglebius	  else
9590290001Sglebius	    ld_shlibs=no
9591290001Sglebius	  fi
9592290001Sglebius	;;
9593290001Sglebius      esac
9594290001Sglebius      ;;
9595290001Sglebius
9596290001Sglebius    sunos4*)
9597290001Sglebius      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9598290001Sglebius      wlarc=
9599290001Sglebius      hardcode_direct=yes
9600290001Sglebius      hardcode_shlibpath_var=no
9601290001Sglebius      ;;
9602290001Sglebius
9603290001Sglebius    *)
9604290001Sglebius      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9605290001Sglebius	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606290001Sglebius	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9607290001Sglebius      else
9608290001Sglebius	ld_shlibs=no
9609290001Sglebius      fi
9610290001Sglebius      ;;
9611290001Sglebius    esac
9612290001Sglebius
9613290001Sglebius    if test "$ld_shlibs" = no; then
9614290001Sglebius      runpath_var=
9615290001Sglebius      hardcode_libdir_flag_spec=
9616290001Sglebius      export_dynamic_flag_spec=
9617290001Sglebius      whole_archive_flag_spec=
9618290001Sglebius    fi
9619290001Sglebius  else
9620290001Sglebius    # PORTME fill in a description of your system's linker (not GNU ld)
9621290001Sglebius    case $host_os in
9622290001Sglebius    aix3*)
9623290001Sglebius      allow_undefined_flag=unsupported
9624290001Sglebius      always_export_symbols=yes
9625290001Sglebius      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'
9626290001Sglebius      # Note: this linker hardcodes the directories in LIBPATH if there
9627290001Sglebius      # are no directories specified by -L.
9628290001Sglebius      hardcode_minus_L=yes
9629290001Sglebius      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9630290001Sglebius	# Neither direct hardcoding nor static linking is supported with a
9631290001Sglebius	# broken collect2.
9632290001Sglebius	hardcode_direct=unsupported
9633290001Sglebius      fi
9634290001Sglebius      ;;
9635290001Sglebius
9636290001Sglebius    aix[4-9]*)
9637290001Sglebius      if test "$host_cpu" = ia64; then
9638290001Sglebius	# On IA64, the linker does run time linking by default, so we don't
9639290001Sglebius	# have to do anything special.
9640290001Sglebius	aix_use_runtimelinking=no
9641290001Sglebius	exp_sym_flag='-Bexport'
9642290001Sglebius	no_entry_flag=""
9643290001Sglebius      else
9644290001Sglebius	# If we're using GNU nm, then we don't want the "-C" option.
9645290001Sglebius	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9646290001Sglebius	# Also, AIX nm treats weak defined symbols like other global
9647290001Sglebius	# defined symbols, whereas GNU nm marks them as "W".
9648290001Sglebius	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9649290001Sglebius	  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'
9650290001Sglebius	else
9651290001Sglebius	  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'
9652290001Sglebius	fi
9653290001Sglebius	aix_use_runtimelinking=no
9654290001Sglebius
9655290001Sglebius	# Test if we are trying to use run time linking or normal
9656290001Sglebius	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9657290001Sglebius	# need to do runtime linking.
9658290001Sglebius	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9659290001Sglebius	  for ld_flag in $LDFLAGS; do
9660290001Sglebius	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9661290001Sglebius	    aix_use_runtimelinking=yes
9662290001Sglebius	    break
9663290001Sglebius	  fi
9664290001Sglebius	  done
9665290001Sglebius	  ;;
9666290001Sglebius	esac
9667290001Sglebius
9668290001Sglebius	exp_sym_flag='-bexport'
9669290001Sglebius	no_entry_flag='-bnoentry'
9670290001Sglebius      fi
9671290001Sglebius
9672290001Sglebius      # When large executables or shared objects are built, AIX ld can
9673290001Sglebius      # have problems creating the table of contents.  If linking a library
9674290001Sglebius      # or program results in "error TOC overflow" add -mminimal-toc to
9675290001Sglebius      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9676290001Sglebius      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9677290001Sglebius
9678290001Sglebius      archive_cmds=''
9679290001Sglebius      hardcode_direct=yes
9680290001Sglebius      hardcode_direct_absolute=yes
9681290001Sglebius      hardcode_libdir_separator=':'
9682290001Sglebius      link_all_deplibs=yes
9683290001Sglebius      file_list_spec='${wl}-f,'
9684290001Sglebius
9685290001Sglebius      if test "$GCC" = yes; then
9686290001Sglebius	case $host_os in aix4.[012]|aix4.[012].*)
9687290001Sglebius	# We only want to do this on AIX 4.2 and lower, the check
9688290001Sglebius	# below for broken collect2 doesn't work under 4.3+
9689290001Sglebius	  collect2name=`${CC} -print-prog-name=collect2`
9690290001Sglebius	  if test -f "$collect2name" &&
9691290001Sglebius	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9692290001Sglebius	  then
9693290001Sglebius	  # We have reworked collect2
9694290001Sglebius	  :
9695290001Sglebius	  else
9696290001Sglebius	  # We have old collect2
9697290001Sglebius	  hardcode_direct=unsupported
9698290001Sglebius	  # It fails to find uninstalled libraries when the uninstalled
9699290001Sglebius	  # path is not listed in the libpath.  Setting hardcode_minus_L
9700290001Sglebius	  # to unsupported forces relinking
9701290001Sglebius	  hardcode_minus_L=yes
9702290001Sglebius	  hardcode_libdir_flag_spec='-L$libdir'
9703290001Sglebius	  hardcode_libdir_separator=
9704290001Sglebius	  fi
9705290001Sglebius	  ;;
9706290001Sglebius	esac
9707290001Sglebius	shared_flag='-shared'
9708290001Sglebius	if test "$aix_use_runtimelinking" = yes; then
9709290001Sglebius	  shared_flag="$shared_flag "'${wl}-G'
9710290001Sglebius	fi
9711290001Sglebius      else
9712290001Sglebius	# not using gcc
9713290001Sglebius	if test "$host_cpu" = ia64; then
9714290001Sglebius	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9715290001Sglebius	# chokes on -Wl,-G. The following line is correct:
9716290001Sglebius	  shared_flag='-G'
9717290001Sglebius	else
9718290001Sglebius	  if test "$aix_use_runtimelinking" = yes; then
9719290001Sglebius	    shared_flag='${wl}-G'
9720290001Sglebius	  else
9721290001Sglebius	    shared_flag='${wl}-bM:SRE'
9722290001Sglebius	  fi
9723290001Sglebius	fi
9724290001Sglebius      fi
9725290001Sglebius
9726290001Sglebius      export_dynamic_flag_spec='${wl}-bexpall'
9727290001Sglebius      # It seems that -bexpall does not export symbols beginning with
9728290001Sglebius      # underscore (_), so it is better to generate a list of symbols to export.
9729290001Sglebius      always_export_symbols=yes
9730290001Sglebius      if test "$aix_use_runtimelinking" = yes; then
9731290001Sglebius	# Warning - without using the other runtime loading flags (-brtl),
9732290001Sglebius	# -berok will link without error, but may produce a broken library.
9733290001Sglebius	allow_undefined_flag='-berok'
9734290001Sglebius        # Determine the default libpath from the value encoded in an
9735290001Sglebius        # empty executable.
9736290001Sglebius        if test "${lt_cv_aix_libpath+set}" = set; then
9737290001Sglebius  aix_libpath=$lt_cv_aix_libpath
9738290001Sglebiuselse
9739290001Sglebius  if ${lt_cv_aix_libpath_+:} false; then :
9740290001Sglebius  $as_echo_n "(cached) " >&6
9741290001Sglebiuselse
9742290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743290001Sglebius/* end confdefs.h.  */
9744290001Sglebius
9745290001Sglebiusint
9746290001Sglebiusmain ()
9747290001Sglebius{
9748290001Sglebius
9749290001Sglebius  ;
9750290001Sglebius  return 0;
9751290001Sglebius}
9752290001Sglebius_ACEOF
9753290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
9754290001Sglebius
9755290001Sglebius  lt_aix_libpath_sed='
9756290001Sglebius      /Import File Strings/,/^$/ {
9757290001Sglebius	  /^0/ {
9758290001Sglebius	      s/^0  *\([^ ]*\) *$/\1/
9759290001Sglebius	      p
9760290001Sglebius	  }
9761290001Sglebius      }'
9762290001Sglebius  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763290001Sglebius  # Check for a 64-bit object if we didn't find anything.
9764290001Sglebius  if test -z "$lt_cv_aix_libpath_"; then
9765290001Sglebius    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766290001Sglebius  fi
9767290001Sglebiusfi
9768290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
9769290001Sglebius    conftest$ac_exeext conftest.$ac_ext
9770290001Sglebius  if test -z "$lt_cv_aix_libpath_"; then
9771290001Sglebius    lt_cv_aix_libpath_="/usr/lib:/lib"
9772290001Sglebius  fi
9773290001Sglebius
9774290001Sglebiusfi
9775290001Sglebius
9776290001Sglebius  aix_libpath=$lt_cv_aix_libpath_
9777290001Sglebiusfi
9778290001Sglebius
9779290001Sglebius        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9780290001Sglebius        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"
9781290001Sglebius      else
9782290001Sglebius	if test "$host_cpu" = ia64; then
9783290001Sglebius	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9784290001Sglebius	  allow_undefined_flag="-z nodefs"
9785290001Sglebius	  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"
9786290001Sglebius	else
9787290001Sglebius	 # Determine the default libpath from the value encoded in an
9788290001Sglebius	 # empty executable.
9789290001Sglebius	 if test "${lt_cv_aix_libpath+set}" = set; then
9790290001Sglebius  aix_libpath=$lt_cv_aix_libpath
9791290001Sglebiuselse
9792290001Sglebius  if ${lt_cv_aix_libpath_+:} false; then :
9793290001Sglebius  $as_echo_n "(cached) " >&6
9794290001Sglebiuselse
9795290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796290001Sglebius/* end confdefs.h.  */
9797290001Sglebius
9798290001Sglebiusint
9799290001Sglebiusmain ()
9800290001Sglebius{
9801290001Sglebius
9802290001Sglebius  ;
9803290001Sglebius  return 0;
9804290001Sglebius}
9805290001Sglebius_ACEOF
9806290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
9807290001Sglebius
9808290001Sglebius  lt_aix_libpath_sed='
9809290001Sglebius      /Import File Strings/,/^$/ {
9810290001Sglebius	  /^0/ {
9811290001Sglebius	      s/^0  *\([^ ]*\) *$/\1/
9812290001Sglebius	      p
9813290001Sglebius	  }
9814290001Sglebius      }'
9815290001Sglebius  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9816290001Sglebius  # Check for a 64-bit object if we didn't find anything.
9817290001Sglebius  if test -z "$lt_cv_aix_libpath_"; then
9818290001Sglebius    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819290001Sglebius  fi
9820290001Sglebiusfi
9821290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
9822290001Sglebius    conftest$ac_exeext conftest.$ac_ext
9823290001Sglebius  if test -z "$lt_cv_aix_libpath_"; then
9824290001Sglebius    lt_cv_aix_libpath_="/usr/lib:/lib"
9825290001Sglebius  fi
9826290001Sglebius
9827290001Sglebiusfi
9828290001Sglebius
9829290001Sglebius  aix_libpath=$lt_cv_aix_libpath_
9830290001Sglebiusfi
9831290001Sglebius
9832290001Sglebius	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9833290001Sglebius	  # Warning - without using the other run time loading flags,
9834290001Sglebius	  # -berok will link without error, but may produce a broken library.
9835290001Sglebius	  no_undefined_flag=' ${wl}-bernotok'
9836290001Sglebius	  allow_undefined_flag=' ${wl}-berok'
9837290001Sglebius	  if test "$with_gnu_ld" = yes; then
9838290001Sglebius	    # We only use this code for GNU lds that support --whole-archive.
9839290001Sglebius	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9840290001Sglebius	  else
9841290001Sglebius	    # Exported symbols can be pulled into shared objects from archives
9842290001Sglebius	    whole_archive_flag_spec='$convenience'
9843290001Sglebius	  fi
9844290001Sglebius	  archive_cmds_need_lc=yes
9845290001Sglebius	  # This is similar to how AIX traditionally builds its shared libraries.
9846290001Sglebius	  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'
9847290001Sglebius	fi
9848290001Sglebius      fi
9849290001Sglebius      ;;
9850290001Sglebius
9851290001Sglebius    amigaos*)
9852290001Sglebius      case $host_cpu in
9853290001Sglebius      powerpc)
9854290001Sglebius            # see comment about AmigaOS4 .so support
9855290001Sglebius            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856290001Sglebius            archive_expsym_cmds=''
9857290001Sglebius        ;;
9858290001Sglebius      m68k)
9859290001Sglebius            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)'
9860290001Sglebius            hardcode_libdir_flag_spec='-L$libdir'
9861290001Sglebius            hardcode_minus_L=yes
9862290001Sglebius        ;;
9863290001Sglebius      esac
9864290001Sglebius      ;;
9865290001Sglebius
9866290001Sglebius    bsdi[45]*)
9867290001Sglebius      export_dynamic_flag_spec=-rdynamic
9868290001Sglebius      ;;
9869290001Sglebius
9870290001Sglebius    cygwin* | mingw* | pw32* | cegcc*)
9871290001Sglebius      # When not using gcc, we currently assume that we are using
9872290001Sglebius      # Microsoft Visual C++.
9873290001Sglebius      # hardcode_libdir_flag_spec is actually meaningless, as there is
9874290001Sglebius      # no search path for DLLs.
9875290001Sglebius      case $cc_basename in
9876290001Sglebius      cl*)
9877290001Sglebius	# Native MSVC
9878290001Sglebius	hardcode_libdir_flag_spec=' '
9879290001Sglebius	allow_undefined_flag=unsupported
9880290001Sglebius	always_export_symbols=yes
9881290001Sglebius	file_list_spec='@'
9882290001Sglebius	# Tell ltmain to make .lib files, not .a files.
9883290001Sglebius	libext=lib
9884290001Sglebius	# Tell ltmain to make .dll files, not .so files.
9885290001Sglebius	shrext_cmds=".dll"
9886290001Sglebius	# FIXME: Setting linknames here is a bad hack.
9887290001Sglebius	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9888290001Sglebius	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9889290001Sglebius	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9890290001Sglebius	  else
9891290001Sglebius	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9892290001Sglebius	  fi~
9893290001Sglebius	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9894290001Sglebius	  linknames='
9895290001Sglebius	# The linker will not automatically build a static lib if we build a DLL.
9896290001Sglebius	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9897290001Sglebius	enable_shared_with_static_runtimes=yes
9898290001Sglebius	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9899290001Sglebius	# Don't use ranlib
9900290001Sglebius	old_postinstall_cmds='chmod 644 $oldlib'
9901290001Sglebius	postlink_cmds='lt_outputfile="@OUTPUT@"~
9902290001Sglebius	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9903290001Sglebius	  case $lt_outputfile in
9904290001Sglebius	    *.exe|*.EXE) ;;
9905290001Sglebius	    *)
9906290001Sglebius	      lt_outputfile="$lt_outputfile.exe"
9907290001Sglebius	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9908290001Sglebius	      ;;
9909290001Sglebius	  esac~
9910290001Sglebius	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9911290001Sglebius	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9912290001Sglebius	    $RM "$lt_outputfile.manifest";
9913290001Sglebius	  fi'
9914290001Sglebius	;;
9915290001Sglebius      *)
9916290001Sglebius	# Assume MSVC wrapper
9917290001Sglebius	hardcode_libdir_flag_spec=' '
9918290001Sglebius	allow_undefined_flag=unsupported
9919290001Sglebius	# Tell ltmain to make .lib files, not .a files.
9920290001Sglebius	libext=lib
9921290001Sglebius	# Tell ltmain to make .dll files, not .so files.
9922290001Sglebius	shrext_cmds=".dll"
9923290001Sglebius	# FIXME: Setting linknames here is a bad hack.
9924290001Sglebius	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9925290001Sglebius	# The linker will automatically build a .lib file if we build a DLL.
9926290001Sglebius	old_archive_from_new_cmds='true'
9927290001Sglebius	# FIXME: Should let the user specify the lib program.
9928290001Sglebius	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9929290001Sglebius	enable_shared_with_static_runtimes=yes
9930290001Sglebius	;;
9931290001Sglebius      esac
9932290001Sglebius      ;;
9933290001Sglebius
9934290001Sglebius    darwin* | rhapsody*)
9935290001Sglebius
9936290001Sglebius
9937290001Sglebius  archive_cmds_need_lc=no
9938290001Sglebius  hardcode_direct=no
9939290001Sglebius  hardcode_automatic=yes
9940290001Sglebius  hardcode_shlibpath_var=unsupported
9941290001Sglebius  if test "$lt_cv_ld_force_load" = "yes"; then
9942290001Sglebius    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\"`'
9943290001Sglebius  else
9944290001Sglebius    whole_archive_flag_spec=''
9945290001Sglebius  fi
9946290001Sglebius  link_all_deplibs=yes
9947290001Sglebius  allow_undefined_flag="$_lt_dar_allow_undefined"
9948290001Sglebius  case $cc_basename in
9949290001Sglebius     ifort*) _lt_dar_can_shared=yes ;;
9950290001Sglebius     *) _lt_dar_can_shared=$GCC ;;
9951290001Sglebius  esac
9952290001Sglebius  if test "$_lt_dar_can_shared" = "yes"; then
9953290001Sglebius    output_verbose_link_cmd=func_echo_all
9954290001Sglebius    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9955290001Sglebius    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9956290001Sglebius    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}"
9957290001Sglebius    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}"
9958290001Sglebius
9959290001Sglebius  else
9960290001Sglebius  ld_shlibs=no
9961290001Sglebius  fi
9962290001Sglebius
9963290001Sglebius      ;;
9964290001Sglebius
9965290001Sglebius    dgux*)
9966290001Sglebius      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967290001Sglebius      hardcode_libdir_flag_spec='-L$libdir'
9968290001Sglebius      hardcode_shlibpath_var=no
9969290001Sglebius      ;;
9970290001Sglebius
9971290001Sglebius    freebsd1*)
9972290001Sglebius      ld_shlibs=no
9973290001Sglebius      ;;
9974290001Sglebius
9975290001Sglebius    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9976290001Sglebius    # support.  Future versions do this automatically, but an explicit c++rt0.o
9977290001Sglebius    # does not break anything, and helps significantly (at the cost of a little
9978290001Sglebius    # extra space).
9979290001Sglebius    freebsd2.2*)
9980290001Sglebius      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9981290001Sglebius      hardcode_libdir_flag_spec='-R$libdir'
9982290001Sglebius      hardcode_direct=yes
9983290001Sglebius      hardcode_shlibpath_var=no
9984290001Sglebius      ;;
9985290001Sglebius
9986290001Sglebius    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9987290001Sglebius    freebsd2*)
9988290001Sglebius      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9989290001Sglebius      hardcode_direct=yes
9990290001Sglebius      hardcode_minus_L=yes
9991290001Sglebius      hardcode_shlibpath_var=no
9992290001Sglebius      ;;
9993290001Sglebius
9994290001Sglebius    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9995290001Sglebius    freebsd* | dragonfly*)
9996290001Sglebius      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997290001Sglebius      hardcode_libdir_flag_spec='-R$libdir'
9998290001Sglebius      hardcode_direct=yes
9999290001Sglebius      hardcode_shlibpath_var=no
10000290001Sglebius      ;;
10001290001Sglebius
10002290001Sglebius    hpux9*)
10003290001Sglebius      if test "$GCC" = yes; then
10004290001Sglebius	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'
10005290001Sglebius      else
10006290001Sglebius	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'
10007290001Sglebius      fi
10008290001Sglebius      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10009290001Sglebius      hardcode_libdir_separator=:
10010290001Sglebius      hardcode_direct=yes
10011290001Sglebius
10012290001Sglebius      # hardcode_minus_L: Not really in the search PATH,
10013290001Sglebius      # but as the default location of the library.
10014290001Sglebius      hardcode_minus_L=yes
10015290001Sglebius      export_dynamic_flag_spec='${wl}-E'
10016290001Sglebius      ;;
10017290001Sglebius
10018290001Sglebius    hpux10*)
10019290001Sglebius      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10020290001Sglebius	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10021290001Sglebius      else
10022290001Sglebius	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10023290001Sglebius      fi
10024290001Sglebius      if test "$with_gnu_ld" = no; then
10025290001Sglebius	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10026290001Sglebius	hardcode_libdir_flag_spec_ld='+b $libdir'
10027290001Sglebius	hardcode_libdir_separator=:
10028290001Sglebius	hardcode_direct=yes
10029290001Sglebius	hardcode_direct_absolute=yes
10030290001Sglebius	export_dynamic_flag_spec='${wl}-E'
10031290001Sglebius	# hardcode_minus_L: Not really in the search PATH,
10032290001Sglebius	# but as the default location of the library.
10033290001Sglebius	hardcode_minus_L=yes
10034290001Sglebius      fi
10035290001Sglebius      ;;
10036290001Sglebius
10037290001Sglebius    hpux11*)
10038290001Sglebius      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10039290001Sglebius	case $host_cpu in
10040290001Sglebius	hppa*64*)
10041290001Sglebius	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042290001Sglebius	  ;;
10043290001Sglebius	ia64*)
10044290001Sglebius	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045290001Sglebius	  ;;
10046290001Sglebius	*)
10047290001Sglebius	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10048290001Sglebius	  ;;
10049290001Sglebius	esac
10050290001Sglebius      else
10051290001Sglebius	case $host_cpu in
10052290001Sglebius	hppa*64*)
10053290001Sglebius	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10054290001Sglebius	  ;;
10055290001Sglebius	ia64*)
10056290001Sglebius	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10057290001Sglebius	  ;;
10058290001Sglebius	*)
10059290001Sglebius
10060290001Sglebius	  # Older versions of the 11.00 compiler do not understand -b yet
10061290001Sglebius	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10062290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10063290001Sglebius$as_echo_n "checking if $CC understands -b... " >&6; }
10064290001Sglebiusif ${lt_cv_prog_compiler__b+:} false; then :
10065290001Sglebius  $as_echo_n "(cached) " >&6
10066290001Sglebiuselse
10067290001Sglebius  lt_cv_prog_compiler__b=no
10068290001Sglebius   save_LDFLAGS="$LDFLAGS"
10069290001Sglebius   LDFLAGS="$LDFLAGS -b"
10070290001Sglebius   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10071290001Sglebius   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10072290001Sglebius     # The linker can only warn and ignore the option if not recognized
10073290001Sglebius     # So say no if there are warnings
10074290001Sglebius     if test -s conftest.err; then
10075290001Sglebius       # Append any errors to the config.log.
10076290001Sglebius       cat conftest.err 1>&5
10077290001Sglebius       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10078290001Sglebius       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10079290001Sglebius       if diff conftest.exp conftest.er2 >/dev/null; then
10080290001Sglebius         lt_cv_prog_compiler__b=yes
10081290001Sglebius       fi
10082290001Sglebius     else
10083290001Sglebius       lt_cv_prog_compiler__b=yes
10084290001Sglebius     fi
10085290001Sglebius   fi
10086290001Sglebius   $RM -r conftest*
10087290001Sglebius   LDFLAGS="$save_LDFLAGS"
10088290001Sglebius
10089290001Sglebiusfi
10090290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10091290001Sglebius$as_echo "$lt_cv_prog_compiler__b" >&6; }
10092290001Sglebius
10093290001Sglebiusif test x"$lt_cv_prog_compiler__b" = xyes; then
10094290001Sglebius    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10095290001Sglebiuselse
10096290001Sglebius    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10097290001Sglebiusfi
10098290001Sglebius
10099290001Sglebius	  ;;
10100290001Sglebius	esac
10101290001Sglebius      fi
10102290001Sglebius      if test "$with_gnu_ld" = no; then
10103290001Sglebius	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10104290001Sglebius	hardcode_libdir_separator=:
10105290001Sglebius
10106290001Sglebius	case $host_cpu in
10107290001Sglebius	hppa*64*|ia64*)
10108290001Sglebius	  hardcode_direct=no
10109290001Sglebius	  hardcode_shlibpath_var=no
10110290001Sglebius	  ;;
10111290001Sglebius	*)
10112290001Sglebius	  hardcode_direct=yes
10113290001Sglebius	  hardcode_direct_absolute=yes
10114290001Sglebius	  export_dynamic_flag_spec='${wl}-E'
10115290001Sglebius
10116290001Sglebius	  # hardcode_minus_L: Not really in the search PATH,
10117290001Sglebius	  # but as the default location of the library.
10118290001Sglebius	  hardcode_minus_L=yes
10119290001Sglebius	  ;;
10120290001Sglebius	esac
10121290001Sglebius      fi
10122290001Sglebius      ;;
10123290001Sglebius
10124290001Sglebius    irix5* | irix6* | nonstopux*)
10125290001Sglebius      if test "$GCC" = yes; then
10126290001Sglebius	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'
10127290001Sglebius	# Try to use the -exported_symbol ld option, if it does not
10128290001Sglebius	# work, assume that -exports_file does not work either and
10129290001Sglebius	# implicitly export all symbols.
10130290001Sglebius	# This should be the same for all languages, so no per-tag cache variable.
10131290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10132290001Sglebius$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10133290001Sglebiusif ${lt_cv_irix_exported_symbol+:} false; then :
10134290001Sglebius  $as_echo_n "(cached) " >&6
10135290001Sglebiuselse
10136290001Sglebius  save_LDFLAGS="$LDFLAGS"
10137290001Sglebius	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10138290001Sglebius	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139290001Sglebius/* end confdefs.h.  */
10140290001Sglebiusint foo (void) { return 0; }
10141290001Sglebius_ACEOF
10142290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
10143290001Sglebius  lt_cv_irix_exported_symbol=yes
10144290001Sglebiuselse
10145290001Sglebius  lt_cv_irix_exported_symbol=no
10146290001Sglebiusfi
10147290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
10148290001Sglebius    conftest$ac_exeext conftest.$ac_ext
10149290001Sglebius           LDFLAGS="$save_LDFLAGS"
10150290001Sglebiusfi
10151290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10152290001Sglebius$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10153290001Sglebius	if test "$lt_cv_irix_exported_symbol" = yes; then
10154290001Sglebius          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'
10155290001Sglebius	fi
10156290001Sglebius      else
10157290001Sglebius	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'
10158290001Sglebius	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'
10159290001Sglebius      fi
10160290001Sglebius      archive_cmds_need_lc='no'
10161290001Sglebius      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162290001Sglebius      hardcode_libdir_separator=:
10163290001Sglebius      inherit_rpath=yes
10164290001Sglebius      link_all_deplibs=yes
10165290001Sglebius      ;;
10166290001Sglebius
10167290001Sglebius    netbsd*)
10168290001Sglebius      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10169290001Sglebius	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10170290001Sglebius      else
10171290001Sglebius	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10172290001Sglebius      fi
10173290001Sglebius      hardcode_libdir_flag_spec='-R$libdir'
10174290001Sglebius      hardcode_direct=yes
10175290001Sglebius      hardcode_shlibpath_var=no
10176290001Sglebius      ;;
10177290001Sglebius
10178290001Sglebius    newsos6)
10179290001Sglebius      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180290001Sglebius      hardcode_direct=yes
10181290001Sglebius      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182290001Sglebius      hardcode_libdir_separator=:
10183290001Sglebius      hardcode_shlibpath_var=no
10184290001Sglebius      ;;
10185290001Sglebius
10186290001Sglebius    *nto* | *qnx*)
10187290001Sglebius      ;;
10188290001Sglebius
10189290001Sglebius    openbsd*)
10190290001Sglebius      if test -f /usr/libexec/ld.so; then
10191290001Sglebius	hardcode_direct=yes
10192290001Sglebius	hardcode_shlibpath_var=no
10193290001Sglebius	hardcode_direct_absolute=yes
10194290001Sglebius	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10195290001Sglebius	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196290001Sglebius	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10197290001Sglebius	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10198290001Sglebius	  export_dynamic_flag_spec='${wl}-E'
10199290001Sglebius	else
10200290001Sglebius	  case $host_os in
10201290001Sglebius	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10202290001Sglebius	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10203290001Sglebius	     hardcode_libdir_flag_spec='-R$libdir'
10204290001Sglebius	     ;;
10205290001Sglebius	   *)
10206290001Sglebius	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10207290001Sglebius	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10208290001Sglebius	     ;;
10209290001Sglebius	  esac
10210290001Sglebius	fi
10211290001Sglebius      else
10212290001Sglebius	ld_shlibs=no
10213290001Sglebius      fi
10214290001Sglebius      ;;
10215290001Sglebius
10216290001Sglebius    os2*)
10217290001Sglebius      hardcode_libdir_flag_spec='-L$libdir'
10218290001Sglebius      hardcode_minus_L=yes
10219290001Sglebius      allow_undefined_flag=unsupported
10220290001Sglebius      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'
10221290001Sglebius      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10222290001Sglebius      ;;
10223290001Sglebius
10224290001Sglebius    osf3*)
10225290001Sglebius      if test "$GCC" = yes; then
10226290001Sglebius	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10227290001Sglebius	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'
10228290001Sglebius      else
10229290001Sglebius	allow_undefined_flag=' -expect_unresolved \*'
10230290001Sglebius	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'
10231290001Sglebius      fi
10232290001Sglebius      archive_cmds_need_lc='no'
10233290001Sglebius      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234290001Sglebius      hardcode_libdir_separator=:
10235290001Sglebius      ;;
10236290001Sglebius
10237290001Sglebius    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10238290001Sglebius      if test "$GCC" = yes; then
10239290001Sglebius	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10240290001Sglebius	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'
10241290001Sglebius	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242290001Sglebius      else
10243290001Sglebius	allow_undefined_flag=' -expect_unresolved \*'
10244290001Sglebius	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'
10245290001Sglebius	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~
10246290001Sglebius	$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'
10247290001Sglebius
10248290001Sglebius	# Both c and cxx compiler support -rpath directly
10249290001Sglebius	hardcode_libdir_flag_spec='-rpath $libdir'
10250290001Sglebius      fi
10251290001Sglebius      archive_cmds_need_lc='no'
10252290001Sglebius      hardcode_libdir_separator=:
10253290001Sglebius      ;;
10254290001Sglebius
10255290001Sglebius    solaris*)
10256290001Sglebius      no_undefined_flag=' -z defs'
10257290001Sglebius      if test "$GCC" = yes; then
10258290001Sglebius	wlarc='${wl}'
10259290001Sglebius	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10260290001Sglebius	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10261290001Sglebius	  $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'
10262290001Sglebius      else
10263290001Sglebius	case `$CC -V 2>&1` in
10264290001Sglebius	*"Compilers 5.0"*)
10265290001Sglebius	  wlarc=''
10266290001Sglebius	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267290001Sglebius	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10268290001Sglebius	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10269290001Sglebius	  ;;
10270290001Sglebius	*)
10271290001Sglebius	  wlarc='${wl}'
10272290001Sglebius	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10273290001Sglebius	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10274290001Sglebius	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10275290001Sglebius	  ;;
10276290001Sglebius	esac
10277290001Sglebius      fi
10278290001Sglebius      hardcode_libdir_flag_spec='-R$libdir'
10279290001Sglebius      hardcode_shlibpath_var=no
10280290001Sglebius      case $host_os in
10281290001Sglebius      solaris2.[0-5] | solaris2.[0-5].*) ;;
10282290001Sglebius      *)
10283290001Sglebius	# The compiler driver will combine and reorder linker options,
10284290001Sglebius	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10285290001Sglebius	# but is careful enough not to reorder.
10286290001Sglebius	# Supported since Solaris 2.6 (maybe 2.5.1?)
10287290001Sglebius	if test "$GCC" = yes; then
10288290001Sglebius	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10289290001Sglebius	else
10290290001Sglebius	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10291290001Sglebius	fi
10292290001Sglebius	;;
10293290001Sglebius      esac
10294290001Sglebius      link_all_deplibs=yes
10295290001Sglebius      ;;
10296290001Sglebius
10297290001Sglebius    sunos4*)
10298290001Sglebius      if test "x$host_vendor" = xsequent; then
10299290001Sglebius	# Use $CC to link under sequent, because it throws in some extra .o
10300290001Sglebius	# files that make .init and .fini sections work.
10301290001Sglebius	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10302290001Sglebius      else
10303290001Sglebius	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10304290001Sglebius      fi
10305290001Sglebius      hardcode_libdir_flag_spec='-L$libdir'
10306290001Sglebius      hardcode_direct=yes
10307290001Sglebius      hardcode_minus_L=yes
10308290001Sglebius      hardcode_shlibpath_var=no
10309290001Sglebius      ;;
10310290001Sglebius
10311290001Sglebius    sysv4)
10312290001Sglebius      case $host_vendor in
10313290001Sglebius	sni)
10314290001Sglebius	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315290001Sglebius	  hardcode_direct=yes # is this really true???
10316290001Sglebius	;;
10317290001Sglebius	siemens)
10318290001Sglebius	  ## LD is ld it makes a PLAMLIB
10319290001Sglebius	  ## CC just makes a GrossModule.
10320290001Sglebius	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10321290001Sglebius	  reload_cmds='$CC -r -o $output$reload_objs'
10322290001Sglebius	  hardcode_direct=no
10323290001Sglebius        ;;
10324290001Sglebius	motorola)
10325290001Sglebius	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10326290001Sglebius	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10327290001Sglebius	;;
10328290001Sglebius      esac
10329290001Sglebius      runpath_var='LD_RUN_PATH'
10330290001Sglebius      hardcode_shlibpath_var=no
10331290001Sglebius      ;;
10332290001Sglebius
10333290001Sglebius    sysv4.3*)
10334290001Sglebius      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335290001Sglebius      hardcode_shlibpath_var=no
10336290001Sglebius      export_dynamic_flag_spec='-Bexport'
10337290001Sglebius      ;;
10338290001Sglebius
10339290001Sglebius    sysv4*MP*)
10340290001Sglebius      if test -d /usr/nec; then
10341290001Sglebius	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342290001Sglebius	hardcode_shlibpath_var=no
10343290001Sglebius	runpath_var=LD_RUN_PATH
10344290001Sglebius	hardcode_runpath_var=yes
10345290001Sglebius	ld_shlibs=yes
10346290001Sglebius      fi
10347290001Sglebius      ;;
10348290001Sglebius
10349290001Sglebius    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10350290001Sglebius      no_undefined_flag='${wl}-z,text'
10351290001Sglebius      archive_cmds_need_lc=no
10352290001Sglebius      hardcode_shlibpath_var=no
10353290001Sglebius      runpath_var='LD_RUN_PATH'
10354290001Sglebius
10355290001Sglebius      if test "$GCC" = yes; then
10356290001Sglebius	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357290001Sglebius	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358290001Sglebius      else
10359290001Sglebius	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360290001Sglebius	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361290001Sglebius      fi
10362290001Sglebius      ;;
10363290001Sglebius
10364290001Sglebius    sysv5* | sco3.2v5* | sco5v6*)
10365290001Sglebius      # Note: We can NOT use -z defs as we might desire, because we do not
10366290001Sglebius      # link with -lc, and that would cause any symbols used from libc to
10367290001Sglebius      # always be unresolved, which means just about no library would
10368290001Sglebius      # ever link correctly.  If we're not using GNU ld we use -z text
10369290001Sglebius      # though, which does catch some bad symbols but isn't as heavy-handed
10370290001Sglebius      # as -z defs.
10371290001Sglebius      no_undefined_flag='${wl}-z,text'
10372290001Sglebius      allow_undefined_flag='${wl}-z,nodefs'
10373290001Sglebius      archive_cmds_need_lc=no
10374290001Sglebius      hardcode_shlibpath_var=no
10375290001Sglebius      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10376290001Sglebius      hardcode_libdir_separator=':'
10377290001Sglebius      link_all_deplibs=yes
10378290001Sglebius      export_dynamic_flag_spec='${wl}-Bexport'
10379290001Sglebius      runpath_var='LD_RUN_PATH'
10380290001Sglebius
10381290001Sglebius      if test "$GCC" = yes; then
10382290001Sglebius	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383290001Sglebius	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384290001Sglebius      else
10385290001Sglebius	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386290001Sglebius	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387290001Sglebius      fi
10388290001Sglebius      ;;
10389290001Sglebius
10390290001Sglebius    uts4*)
10391290001Sglebius      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392290001Sglebius      hardcode_libdir_flag_spec='-L$libdir'
10393290001Sglebius      hardcode_shlibpath_var=no
10394290001Sglebius      ;;
10395290001Sglebius
10396290001Sglebius    *)
10397290001Sglebius      ld_shlibs=no
10398290001Sglebius      ;;
10399290001Sglebius    esac
10400290001Sglebius
10401290001Sglebius    if test x$host_vendor = xsni; then
10402290001Sglebius      case $host in
10403290001Sglebius      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10404290001Sglebius	export_dynamic_flag_spec='${wl}-Blargedynsym'
10405290001Sglebius	;;
10406290001Sglebius      esac
10407290001Sglebius    fi
10408290001Sglebius  fi
10409290001Sglebius
10410290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10411290001Sglebius$as_echo "$ld_shlibs" >&6; }
10412290001Sglebiustest "$ld_shlibs" = no && can_build_shared=no
10413290001Sglebius
10414290001Sglebiuswith_gnu_ld=$with_gnu_ld
10415290001Sglebius
10416290001Sglebius
10417290001Sglebius
10418290001Sglebius
10419290001Sglebius
10420290001Sglebius
10421290001Sglebius
10422290001Sglebius
10423290001Sglebius
10424290001Sglebius
10425290001Sglebius
10426290001Sglebius
10427290001Sglebius
10428290001Sglebius
10429290001Sglebius
10430290001Sglebius#
10431290001Sglebius# Do we need to explicitly link libc?
10432290001Sglebius#
10433290001Sglebiuscase "x$archive_cmds_need_lc" in
10434290001Sglebiusx|xyes)
10435290001Sglebius  # Assume -lc should be added
10436290001Sglebius  archive_cmds_need_lc=yes
10437290001Sglebius
10438290001Sglebius  if test "$enable_shared" = yes && test "$GCC" = yes; then
10439290001Sglebius    case $archive_cmds in
10440290001Sglebius    *'~'*)
10441290001Sglebius      # FIXME: we may have to deal with multi-command sequences.
10442290001Sglebius      ;;
10443290001Sglebius    '$CC '*)
10444290001Sglebius      # Test whether the compiler implicitly links with -lc since on some
10445290001Sglebius      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10446290001Sglebius      # to ld, don't add -lc before -lgcc.
10447290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10448290001Sglebius$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10449290001Sglebiusif ${lt_cv_archive_cmds_need_lc+:} false; then :
10450290001Sglebius  $as_echo_n "(cached) " >&6
10451290001Sglebiuselse
10452290001Sglebius  $RM conftest*
10453290001Sglebius	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10454290001Sglebius
10455290001Sglebius	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10456290001Sglebius  (eval $ac_compile) 2>&5
10457290001Sglebius  ac_status=$?
10458290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10459290001Sglebius  test $ac_status = 0; } 2>conftest.err; then
10460290001Sglebius	  soname=conftest
10461290001Sglebius	  lib=conftest
10462290001Sglebius	  libobjs=conftest.$ac_objext
10463290001Sglebius	  deplibs=
10464290001Sglebius	  wl=$lt_prog_compiler_wl
10465290001Sglebius	  pic_flag=$lt_prog_compiler_pic
10466290001Sglebius	  compiler_flags=-v
10467290001Sglebius	  linker_flags=-v
10468290001Sglebius	  verstring=
10469290001Sglebius	  output_objdir=.
10470290001Sglebius	  libname=conftest
10471290001Sglebius	  lt_save_allow_undefined_flag=$allow_undefined_flag
10472290001Sglebius	  allow_undefined_flag=
10473290001Sglebius	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10474290001Sglebius  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10475290001Sglebius  ac_status=$?
10476290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10477290001Sglebius  test $ac_status = 0; }
10478290001Sglebius	  then
10479290001Sglebius	    lt_cv_archive_cmds_need_lc=no
10480290001Sglebius	  else
10481290001Sglebius	    lt_cv_archive_cmds_need_lc=yes
10482290001Sglebius	  fi
10483290001Sglebius	  allow_undefined_flag=$lt_save_allow_undefined_flag
10484290001Sglebius	else
10485290001Sglebius	  cat conftest.err 1>&5
10486290001Sglebius	fi
10487290001Sglebius	$RM conftest*
10488290001Sglebius
10489290001Sglebiusfi
10490290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10491290001Sglebius$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10492290001Sglebius      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10493290001Sglebius      ;;
10494290001Sglebius    esac
10495290001Sglebius  fi
10496290001Sglebius  ;;
10497290001Sglebiusesac
10498290001Sglebius
10499290001Sglebius
10500290001Sglebius
10501290001Sglebius
10502290001Sglebius
10503290001Sglebius
10504290001Sglebius
10505290001Sglebius
10506290001Sglebius
10507290001Sglebius
10508290001Sglebius
10509290001Sglebius
10510290001Sglebius
10511290001Sglebius
10512290001Sglebius
10513290001Sglebius
10514290001Sglebius
10515290001Sglebius
10516290001Sglebius
10517290001Sglebius
10518290001Sglebius
10519290001Sglebius
10520290001Sglebius
10521290001Sglebius
10522290001Sglebius
10523290001Sglebius
10524290001Sglebius
10525290001Sglebius
10526290001Sglebius
10527290001Sglebius
10528290001Sglebius
10529290001Sglebius
10530290001Sglebius
10531290001Sglebius
10532290001Sglebius
10533290001Sglebius
10534290001Sglebius
10535290001Sglebius
10536290001Sglebius
10537290001Sglebius
10538290001Sglebius
10539290001Sglebius
10540290001Sglebius
10541290001Sglebius
10542290001Sglebius
10543290001Sglebius
10544290001Sglebius
10545290001Sglebius
10546290001Sglebius
10547290001Sglebius
10548290001Sglebius
10549290001Sglebius
10550290001Sglebius
10551290001Sglebius
10552290001Sglebius
10553290001Sglebius
10554290001Sglebius
10555290001Sglebius
10556290001Sglebius
10557290001Sglebius
10558290001Sglebius
10559290001Sglebius
10560290001Sglebius
10561290001Sglebius
10562290001Sglebius
10563290001Sglebius
10564290001Sglebius
10565290001Sglebius
10566290001Sglebius
10567290001Sglebius
10568290001Sglebius
10569290001Sglebius
10570290001Sglebius
10571290001Sglebius
10572290001Sglebius
10573290001Sglebius
10574290001Sglebius
10575290001Sglebius
10576290001Sglebius
10577290001Sglebius
10578290001Sglebius
10579290001Sglebius
10580290001Sglebius
10581290001Sglebius
10582290001Sglebius
10583290001Sglebius
10584290001Sglebius
10585290001Sglebius
10586290001Sglebius
10587290001Sglebius
10588290001Sglebius
10589290001Sglebius
10590290001Sglebius
10591290001Sglebius
10592290001Sglebius
10593290001Sglebius
10594290001Sglebius
10595290001Sglebius
10596290001Sglebius
10597290001Sglebius
10598290001Sglebius
10599290001Sglebius
10600290001Sglebius
10601290001Sglebius
10602290001Sglebius
10603290001Sglebius
10604290001Sglebius
10605290001Sglebius
10606290001Sglebius
10607290001Sglebius
10608290001Sglebius
10609290001Sglebius
10610290001Sglebius
10611290001Sglebius
10612290001Sglebius
10613290001Sglebius
10614290001Sglebius
10615290001Sglebius
10616290001Sglebius
10617290001Sglebius
10618290001Sglebius
10619290001Sglebius
10620290001Sglebius
10621290001Sglebius
10622290001Sglebius
10623290001Sglebius
10624290001Sglebius
10625290001Sglebius
10626290001Sglebius
10627290001Sglebius
10628290001Sglebius
10629290001Sglebius
10630290001Sglebius
10631290001Sglebius
10632290001Sglebius
10633290001Sglebius
10634290001Sglebius
10635290001Sglebius
10636290001Sglebius
10637290001Sglebius
10638290001Sglebius
10639290001Sglebius
10640290001Sglebius
10641290001Sglebius
10642290001Sglebius
10643290001Sglebius
10644290001Sglebius
10645290001Sglebius
10646290001Sglebius
10647290001Sglebius
10648290001Sglebius
10649290001Sglebius
10650290001Sglebius
10651290001Sglebius
10652290001Sglebius
10653290001Sglebius
10654290001Sglebius
10655290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10656290001Sglebius$as_echo_n "checking dynamic linker characteristics... " >&6; }
10657290001Sglebius
10658290001Sglebiusif test "$GCC" = yes; then
10659290001Sglebius  case $host_os in
10660290001Sglebius    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10661290001Sglebius    *) lt_awk_arg="/^libraries:/" ;;
10662290001Sglebius  esac
10663290001Sglebius  case $host_os in
10664290001Sglebius    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10665290001Sglebius    *) lt_sed_strip_eq="s,=/,/,g" ;;
10666290001Sglebius  esac
10667290001Sglebius  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10668290001Sglebius  case $lt_search_path_spec in
10669290001Sglebius  *\;*)
10670290001Sglebius    # if the path contains ";" then we assume it to be the separator
10671290001Sglebius    # otherwise default to the standard path separator (i.e. ":") - it is
10672290001Sglebius    # assumed that no part of a normal pathname contains ";" but that should
10673290001Sglebius    # okay in the real world where ";" in dirpaths is itself problematic.
10674290001Sglebius    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10675290001Sglebius    ;;
10676290001Sglebius  *)
10677290001Sglebius    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10678290001Sglebius    ;;
10679290001Sglebius  esac
10680290001Sglebius  # Ok, now we have the path, separated by spaces, we can step through it
10681290001Sglebius  # and add multilib dir if necessary.
10682290001Sglebius  lt_tmp_lt_search_path_spec=
10683290001Sglebius  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10684290001Sglebius  for lt_sys_path in $lt_search_path_spec; do
10685290001Sglebius    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10686290001Sglebius      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10687290001Sglebius    else
10688290001Sglebius      test -d "$lt_sys_path" && \
10689290001Sglebius	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10690290001Sglebius    fi
10691290001Sglebius  done
10692290001Sglebius  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10693290001SglebiusBEGIN {RS=" "; FS="/|\n";} {
10694290001Sglebius  lt_foo="";
10695290001Sglebius  lt_count=0;
10696290001Sglebius  for (lt_i = NF; lt_i > 0; lt_i--) {
10697290001Sglebius    if ($lt_i != "" && $lt_i != ".") {
10698290001Sglebius      if ($lt_i == "..") {
10699290001Sglebius        lt_count++;
10700290001Sglebius      } else {
10701290001Sglebius        if (lt_count == 0) {
10702290001Sglebius          lt_foo="/" $lt_i lt_foo;
10703290001Sglebius        } else {
10704290001Sglebius          lt_count--;
10705290001Sglebius        }
10706290001Sglebius      }
10707290001Sglebius    }
10708290001Sglebius  }
10709290001Sglebius  if (lt_foo != "") { lt_freq[lt_foo]++; }
10710290001Sglebius  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10711290001Sglebius}'`
10712290001Sglebius  # AWK program above erroneously prepends '/' to C:/dos/paths
10713290001Sglebius  # for these hosts.
10714290001Sglebius  case $host_os in
10715290001Sglebius    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10716290001Sglebius      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10717290001Sglebius  esac
10718290001Sglebius  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10719290001Sglebiuselse
10720290001Sglebius  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10721290001Sglebiusfi
10722290001Sglebiuslibrary_names_spec=
10723290001Sglebiuslibname_spec='lib$name'
10724290001Sglebiussoname_spec=
10725290001Sglebiusshrext_cmds=".so"
10726290001Sglebiuspostinstall_cmds=
10727290001Sglebiuspostuninstall_cmds=
10728290001Sglebiusfinish_cmds=
10729290001Sglebiusfinish_eval=
10730290001Sglebiusshlibpath_var=
10731290001Sglebiusshlibpath_overrides_runpath=unknown
10732290001Sglebiusversion_type=none
10733290001Sglebiusdynamic_linker="$host_os ld.so"
10734290001Sglebiussys_lib_dlsearch_path_spec="/lib /usr/lib"
10735290001Sglebiusneed_lib_prefix=unknown
10736290001Sglebiushardcode_into_libs=no
10737290001Sglebius
10738290001Sglebius# when you set need_version to no, make sure it does not cause -set_version
10739290001Sglebius# flags to be left without arguments
10740290001Sglebiusneed_version=unknown
10741290001Sglebius
10742290001Sglebiuscase $host_os in
10743290001Sglebiusaix3*)
10744290001Sglebius  version_type=linux
10745290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746290001Sglebius  shlibpath_var=LIBPATH
10747290001Sglebius
10748290001Sglebius  # AIX 3 has no versioning support, so we append a major version to the name.
10749290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
10750290001Sglebius  ;;
10751290001Sglebius
10752290001Sglebiusaix[4-9]*)
10753290001Sglebius  version_type=linux
10754290001Sglebius  need_lib_prefix=no
10755290001Sglebius  need_version=no
10756290001Sglebius  hardcode_into_libs=yes
10757290001Sglebius  if test "$host_cpu" = ia64; then
10758290001Sglebius    # AIX 5 supports IA64
10759290001Sglebius    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760290001Sglebius    shlibpath_var=LD_LIBRARY_PATH
10761290001Sglebius  else
10762290001Sglebius    # With GCC up to 2.95.x, collect2 would create an import file
10763290001Sglebius    # for dependence libraries.  The import file would start with
10764290001Sglebius    # the line `#! .'.  This would cause the generated library to
10765290001Sglebius    # depend on `.', always an invalid library.  This was fixed in
10766290001Sglebius    # development snapshots of GCC prior to 3.0.
10767290001Sglebius    case $host_os in
10768290001Sglebius      aix4 | aix4.[01] | aix4.[01].*)
10769290001Sglebius      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10770290001Sglebius	   echo ' yes '
10771290001Sglebius	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10772290001Sglebius	:
10773290001Sglebius      else
10774290001Sglebius	can_build_shared=no
10775290001Sglebius      fi
10776290001Sglebius      ;;
10777290001Sglebius    esac
10778290001Sglebius    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779290001Sglebius    # soname into executable. Probably we can add versioning support to
10780290001Sglebius    # collect2, so additional links can be useful in future.
10781290001Sglebius    if test "$aix_use_runtimelinking" = yes; then
10782290001Sglebius      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783290001Sglebius      # instead of lib<name>.a to let people know that these are not
10784290001Sglebius      # typical AIX shared libraries.
10785290001Sglebius      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786290001Sglebius    else
10787290001Sglebius      # We preserve .a as extension for shared libraries through AIX4.2
10788290001Sglebius      # and later when we are not doing run time linking.
10789290001Sglebius      library_names_spec='${libname}${release}.a $libname.a'
10790290001Sglebius      soname_spec='${libname}${release}${shared_ext}$major'
10791290001Sglebius    fi
10792290001Sglebius    shlibpath_var=LIBPATH
10793290001Sglebius  fi
10794290001Sglebius  ;;
10795290001Sglebius
10796290001Sglebiusamigaos*)
10797290001Sglebius  case $host_cpu in
10798290001Sglebius  powerpc)
10799290001Sglebius    # Since July 2007 AmigaOS4 officially supports .so libraries.
10800290001Sglebius    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10801290001Sglebius    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802290001Sglebius    ;;
10803290001Sglebius  m68k)
10804290001Sglebius    library_names_spec='$libname.ixlibrary $libname.a'
10805290001Sglebius    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10806290001Sglebius    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'
10807290001Sglebius    ;;
10808290001Sglebius  esac
10809290001Sglebius  ;;
10810290001Sglebius
10811290001Sglebiusbeos*)
10812290001Sglebius  library_names_spec='${libname}${shared_ext}'
10813290001Sglebius  dynamic_linker="$host_os ld.so"
10814290001Sglebius  shlibpath_var=LIBRARY_PATH
10815290001Sglebius  ;;
10816290001Sglebius
10817290001Sglebiusbsdi[45]*)
10818290001Sglebius  version_type=linux
10819290001Sglebius  need_version=no
10820290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
10822290001Sglebius  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10823290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
10824290001Sglebius  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10825290001Sglebius  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10826290001Sglebius  # the default ld.so.conf also contains /usr/contrib/lib and
10827290001Sglebius  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10828290001Sglebius  # libtool to hard-code these into programs
10829290001Sglebius  ;;
10830290001Sglebius
10831290001Sglebiuscygwin* | mingw* | pw32* | cegcc*)
10832290001Sglebius  version_type=windows
10833290001Sglebius  shrext_cmds=".dll"
10834290001Sglebius  need_version=no
10835290001Sglebius  need_lib_prefix=no
10836290001Sglebius
10837290001Sglebius  case $GCC,$cc_basename in
10838290001Sglebius  yes,*)
10839290001Sglebius    # gcc
10840290001Sglebius    library_names_spec='$libname.dll.a'
10841290001Sglebius    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842290001Sglebius    postinstall_cmds='base_file=`basename \${file}`~
10843290001Sglebius      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10844290001Sglebius      dldir=$destdir/`dirname \$dlpath`~
10845290001Sglebius      test -d \$dldir || mkdir -p \$dldir~
10846290001Sglebius      $install_prog $dir/$dlname \$dldir/$dlname~
10847290001Sglebius      chmod a+x \$dldir/$dlname~
10848290001Sglebius      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10849290001Sglebius        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10850290001Sglebius      fi'
10851290001Sglebius    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10852290001Sglebius      dlpath=$dir/\$dldll~
10853290001Sglebius       $RM \$dlpath'
10854290001Sglebius    shlibpath_overrides_runpath=yes
10855290001Sglebius
10856290001Sglebius    case $host_os in
10857290001Sglebius    cygwin*)
10858290001Sglebius      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10859290001Sglebius      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10860290001Sglebius
10861290001Sglebius      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10862290001Sglebius      ;;
10863290001Sglebius    mingw* | cegcc*)
10864290001Sglebius      # MinGW DLLs use traditional 'lib' prefix
10865290001Sglebius      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10866290001Sglebius      ;;
10867290001Sglebius    pw32*)
10868290001Sglebius      # pw32 DLLs use 'pw' prefix rather than 'lib'
10869290001Sglebius      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10870290001Sglebius      ;;
10871290001Sglebius    esac
10872290001Sglebius    dynamic_linker='Win32 ld.exe'
10873290001Sglebius    ;;
10874290001Sglebius
10875290001Sglebius  *,cl*)
10876290001Sglebius    # Native MSVC
10877290001Sglebius    libname_spec='$name'
10878290001Sglebius    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10879290001Sglebius    library_names_spec='${libname}.dll.lib'
10880290001Sglebius
10881290001Sglebius    case $build_os in
10882290001Sglebius    mingw*)
10883290001Sglebius      sys_lib_search_path_spec=
10884290001Sglebius      lt_save_ifs=$IFS
10885290001Sglebius      IFS=';'
10886290001Sglebius      for lt_path in $LIB
10887290001Sglebius      do
10888290001Sglebius        IFS=$lt_save_ifs
10889290001Sglebius        # Let DOS variable expansion print the short 8.3 style file name.
10890290001Sglebius        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10891290001Sglebius        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10892290001Sglebius      done
10893290001Sglebius      IFS=$lt_save_ifs
10894290001Sglebius      # Convert to MSYS style.
10895290001Sglebius      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10896290001Sglebius      ;;
10897290001Sglebius    cygwin*)
10898290001Sglebius      # Convert to unix form, then to dos form, then back to unix form
10899290001Sglebius      # but this time dos style (no spaces!) so that the unix form looks
10900290001Sglebius      # like /cygdrive/c/PROGRA~1:/cygdr...
10901290001Sglebius      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10902290001Sglebius      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10903290001Sglebius      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10904290001Sglebius      ;;
10905290001Sglebius    *)
10906290001Sglebius      sys_lib_search_path_spec="$LIB"
10907290001Sglebius      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10908290001Sglebius        # It is most probably a Windows format PATH.
10909290001Sglebius        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10910290001Sglebius      else
10911290001Sglebius        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10912290001Sglebius      fi
10913290001Sglebius      # FIXME: find the short name or the path components, as spaces are
10914290001Sglebius      # common. (e.g. "Program Files" -> "PROGRA~1")
10915290001Sglebius      ;;
10916290001Sglebius    esac
10917290001Sglebius
10918290001Sglebius    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10919290001Sglebius    postinstall_cmds='base_file=`basename \${file}`~
10920290001Sglebius      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10921290001Sglebius      dldir=$destdir/`dirname \$dlpath`~
10922290001Sglebius      test -d \$dldir || mkdir -p \$dldir~
10923290001Sglebius      $install_prog $dir/$dlname \$dldir/$dlname'
10924290001Sglebius    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10925290001Sglebius      dlpath=$dir/\$dldll~
10926290001Sglebius       $RM \$dlpath'
10927290001Sglebius    shlibpath_overrides_runpath=yes
10928290001Sglebius    dynamic_linker='Win32 link.exe'
10929290001Sglebius    ;;
10930290001Sglebius
10931290001Sglebius  *)
10932290001Sglebius    # Assume MSVC wrapper
10933290001Sglebius    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10934290001Sglebius    dynamic_linker='Win32 ld.exe'
10935290001Sglebius    ;;
10936290001Sglebius  esac
10937290001Sglebius  # FIXME: first we should search . and the directory the executable is in
10938290001Sglebius  shlibpath_var=PATH
10939290001Sglebius  ;;
10940290001Sglebius
10941290001Sglebiusdarwin* | rhapsody*)
10942290001Sglebius  dynamic_linker="$host_os dyld"
10943290001Sglebius  version_type=darwin
10944290001Sglebius  need_lib_prefix=no
10945290001Sglebius  need_version=no
10946290001Sglebius  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10947290001Sglebius  soname_spec='${libname}${release}${major}$shared_ext'
10948290001Sglebius  shlibpath_overrides_runpath=yes
10949290001Sglebius  shlibpath_var=DYLD_LIBRARY_PATH
10950290001Sglebius  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10951290001Sglebius
10952290001Sglebius  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10953290001Sglebius  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10954290001Sglebius  ;;
10955290001Sglebius
10956290001Sglebiusdgux*)
10957290001Sglebius  version_type=linux
10958290001Sglebius  need_lib_prefix=no
10959290001Sglebius  need_version=no
10960290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10961290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
10962290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
10963290001Sglebius  ;;
10964290001Sglebius
10965290001Sglebiusfreebsd1*)
10966290001Sglebius  dynamic_linker=no
10967290001Sglebius  ;;
10968290001Sglebius
10969290001Sglebiusfreebsd* | dragonfly*)
10970290001Sglebius  # DragonFly does not have aout.  When/if they implement a new
10971290001Sglebius  # versioning mechanism, adjust this.
10972290001Sglebius  if test -x /usr/bin/objformat; then
10973290001Sglebius    objformat=`/usr/bin/objformat`
10974290001Sglebius  else
10975290001Sglebius    case $host_os in
10976290001Sglebius    freebsd[123]*) objformat=aout ;;
10977290001Sglebius    *) objformat=elf ;;
10978290001Sglebius    esac
10979290001Sglebius  fi
10980290001Sglebius  version_type=freebsd-$objformat
10981290001Sglebius  case $version_type in
10982290001Sglebius    freebsd-elf*)
10983290001Sglebius      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10984290001Sglebius      need_version=no
10985290001Sglebius      need_lib_prefix=no
10986290001Sglebius      ;;
10987290001Sglebius    freebsd-*)
10988290001Sglebius      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10989290001Sglebius      need_version=yes
10990290001Sglebius      ;;
10991290001Sglebius  esac
10992290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
10993290001Sglebius  case $host_os in
10994290001Sglebius  freebsd2*)
10995290001Sglebius    shlibpath_overrides_runpath=yes
10996290001Sglebius    ;;
10997290001Sglebius  freebsd3.[01]* | freebsdelf3.[01]*)
10998290001Sglebius    shlibpath_overrides_runpath=yes
10999290001Sglebius    hardcode_into_libs=yes
11000290001Sglebius    ;;
11001290001Sglebius  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11002290001Sglebius  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11003290001Sglebius    shlibpath_overrides_runpath=no
11004290001Sglebius    hardcode_into_libs=yes
11005290001Sglebius    ;;
11006290001Sglebius  *) # from 4.6 on, and DragonFly
11007290001Sglebius    shlibpath_overrides_runpath=yes
11008290001Sglebius    hardcode_into_libs=yes
11009290001Sglebius    ;;
11010290001Sglebius  esac
11011290001Sglebius  ;;
11012290001Sglebius
11013290001Sglebiusgnu*)
11014290001Sglebius  version_type=linux
11015290001Sglebius  need_lib_prefix=no
11016290001Sglebius  need_version=no
11017290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11018290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11019290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11020290001Sglebius  hardcode_into_libs=yes
11021290001Sglebius  ;;
11022290001Sglebius
11023290001Sglebiushaiku*)
11024290001Sglebius  version_type=linux
11025290001Sglebius  need_lib_prefix=no
11026290001Sglebius  need_version=no
11027290001Sglebius  dynamic_linker="$host_os runtime_loader"
11028290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11029290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11030290001Sglebius  shlibpath_var=LIBRARY_PATH
11031290001Sglebius  shlibpath_overrides_runpath=yes
11032290001Sglebius  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11033290001Sglebius  hardcode_into_libs=yes
11034290001Sglebius  ;;
11035290001Sglebius
11036290001Sglebiushpux9* | hpux10* | hpux11*)
11037290001Sglebius  # Give a soname corresponding to the major version so that dld.sl refuses to
11038290001Sglebius  # link against other versions.
11039290001Sglebius  version_type=sunos
11040290001Sglebius  need_lib_prefix=no
11041290001Sglebius  need_version=no
11042290001Sglebius  case $host_cpu in
11043290001Sglebius  ia64*)
11044290001Sglebius    shrext_cmds='.so'
11045290001Sglebius    hardcode_into_libs=yes
11046290001Sglebius    dynamic_linker="$host_os dld.so"
11047290001Sglebius    shlibpath_var=LD_LIBRARY_PATH
11048290001Sglebius    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11049290001Sglebius    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050290001Sglebius    soname_spec='${libname}${release}${shared_ext}$major'
11051290001Sglebius    if test "X$HPUX_IA64_MODE" = X32; then
11052290001Sglebius      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11053290001Sglebius    else
11054290001Sglebius      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11055290001Sglebius    fi
11056290001Sglebius    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11057290001Sglebius    ;;
11058290001Sglebius  hppa*64*)
11059290001Sglebius    shrext_cmds='.sl'
11060290001Sglebius    hardcode_into_libs=yes
11061290001Sglebius    dynamic_linker="$host_os dld.sl"
11062290001Sglebius    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11063290001Sglebius    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11064290001Sglebius    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065290001Sglebius    soname_spec='${libname}${release}${shared_ext}$major'
11066290001Sglebius    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11067290001Sglebius    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11068290001Sglebius    ;;
11069290001Sglebius  *)
11070290001Sglebius    shrext_cmds='.sl'
11071290001Sglebius    dynamic_linker="$host_os dld.sl"
11072290001Sglebius    shlibpath_var=SHLIB_PATH
11073290001Sglebius    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11074290001Sglebius    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075290001Sglebius    soname_spec='${libname}${release}${shared_ext}$major'
11076290001Sglebius    ;;
11077290001Sglebius  esac
11078290001Sglebius  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11079290001Sglebius  postinstall_cmds='chmod 555 $lib'
11080290001Sglebius  # or fails outright, so override atomically:
11081290001Sglebius  install_override_mode=555
11082290001Sglebius  ;;
11083290001Sglebius
11084290001Sglebiusinterix[3-9]*)
11085290001Sglebius  version_type=linux
11086290001Sglebius  need_lib_prefix=no
11087290001Sglebius  need_version=no
11088290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11089290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11090290001Sglebius  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11091290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11092290001Sglebius  shlibpath_overrides_runpath=no
11093290001Sglebius  hardcode_into_libs=yes
11094290001Sglebius  ;;
11095290001Sglebius
11096290001Sglebiusirix5* | irix6* | nonstopux*)
11097290001Sglebius  case $host_os in
11098290001Sglebius    nonstopux*) version_type=nonstopux ;;
11099290001Sglebius    *)
11100290001Sglebius	if test "$lt_cv_prog_gnu_ld" = yes; then
11101290001Sglebius		version_type=linux
11102290001Sglebius	else
11103290001Sglebius		version_type=irix
11104290001Sglebius	fi ;;
11105290001Sglebius  esac
11106290001Sglebius  need_lib_prefix=no
11107290001Sglebius  need_version=no
11108290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11109290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11110290001Sglebius  case $host_os in
11111290001Sglebius  irix5* | nonstopux*)
11112290001Sglebius    libsuff= shlibsuff=
11113290001Sglebius    ;;
11114290001Sglebius  *)
11115290001Sglebius    case $LD in # libtool.m4 will add one of these switches to LD
11116290001Sglebius    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11117290001Sglebius      libsuff= shlibsuff= libmagic=32-bit;;
11118290001Sglebius    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11119290001Sglebius      libsuff=32 shlibsuff=N32 libmagic=N32;;
11120290001Sglebius    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11121290001Sglebius      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11122290001Sglebius    *) libsuff= shlibsuff= libmagic=never-match;;
11123290001Sglebius    esac
11124290001Sglebius    ;;
11125290001Sglebius  esac
11126290001Sglebius  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11127290001Sglebius  shlibpath_overrides_runpath=no
11128290001Sglebius  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11129290001Sglebius  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11130290001Sglebius  hardcode_into_libs=yes
11131290001Sglebius  ;;
11132290001Sglebius
11133290001Sglebius# No shared lib support for Linux oldld, aout, or coff.
11134290001Sglebiuslinux*oldld* | linux*aout* | linux*coff*)
11135290001Sglebius  dynamic_linker=no
11136290001Sglebius  ;;
11137290001Sglebius
11138290001Sglebius# This must be Linux ELF.
11139290001Sglebiuslinux* | k*bsd*-gnu | kopensolaris*-gnu)
11140290001Sglebius  version_type=linux
11141290001Sglebius  need_lib_prefix=no
11142290001Sglebius  need_version=no
11143290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11145290001Sglebius  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11146290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11147290001Sglebius  shlibpath_overrides_runpath=no
11148290001Sglebius
11149290001Sglebius  # Some binutils ld are patched to set DT_RUNPATH
11150290001Sglebius  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11151290001Sglebius  $as_echo_n "(cached) " >&6
11152290001Sglebiuselse
11153290001Sglebius  lt_cv_shlibpath_overrides_runpath=no
11154290001Sglebius    save_LDFLAGS=$LDFLAGS
11155290001Sglebius    save_libdir=$libdir
11156290001Sglebius    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11157290001Sglebius	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11158290001Sglebius    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159290001Sglebius/* end confdefs.h.  */
11160290001Sglebius
11161290001Sglebiusint
11162290001Sglebiusmain ()
11163290001Sglebius{
11164290001Sglebius
11165290001Sglebius  ;
11166290001Sglebius  return 0;
11167290001Sglebius}
11168290001Sglebius_ACEOF
11169290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
11170290001Sglebius  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11171290001Sglebius  lt_cv_shlibpath_overrides_runpath=yes
11172290001Sglebiusfi
11173290001Sglebiusfi
11174290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
11175290001Sglebius    conftest$ac_exeext conftest.$ac_ext
11176290001Sglebius    LDFLAGS=$save_LDFLAGS
11177290001Sglebius    libdir=$save_libdir
11178290001Sglebius
11179290001Sglebiusfi
11180290001Sglebius
11181290001Sglebius  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11182290001Sglebius
11183290001Sglebius  # This implies no fast_install, which is unacceptable.
11184290001Sglebius  # Some rework will be needed to allow for fast_install
11185290001Sglebius  # before this can be enabled.
11186290001Sglebius  hardcode_into_libs=yes
11187290001Sglebius
11188290001Sglebius  # Append ld.so.conf contents to the search path
11189290001Sglebius  if test -f /etc/ld.so.conf; then
11190290001Sglebius    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' ' '`
11191290001Sglebius    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11192290001Sglebius  fi
11193290001Sglebius
11194290001Sglebius  # We used to test for /lib/ld.so.1 and disable shared libraries on
11195290001Sglebius  # powerpc, because MkLinux only supported shared libraries with the
11196290001Sglebius  # GNU dynamic linker.  Since this was broken with cross compilers,
11197290001Sglebius  # most powerpc-linux boxes support dynamic linking these days and
11198290001Sglebius  # people can always --disable-shared, the test was removed, and we
11199290001Sglebius  # assume the GNU/Linux dynamic linker is in use.
11200290001Sglebius  dynamic_linker='GNU/Linux ld.so'
11201290001Sglebius  ;;
11202290001Sglebius
11203290001Sglebiusnetbsd*)
11204290001Sglebius  version_type=sunos
11205290001Sglebius  need_lib_prefix=no
11206290001Sglebius  need_version=no
11207290001Sglebius  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11208290001Sglebius    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11209290001Sglebius    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11210290001Sglebius    dynamic_linker='NetBSD (a.out) ld.so'
11211290001Sglebius  else
11212290001Sglebius    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11213290001Sglebius    soname_spec='${libname}${release}${shared_ext}$major'
11214290001Sglebius    dynamic_linker='NetBSD ld.elf_so'
11215290001Sglebius  fi
11216290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11217290001Sglebius  shlibpath_overrides_runpath=yes
11218290001Sglebius  hardcode_into_libs=yes
11219290001Sglebius  ;;
11220290001Sglebius
11221290001Sglebiusnewsos6)
11222290001Sglebius  version_type=linux
11223290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11225290001Sglebius  shlibpath_overrides_runpath=yes
11226290001Sglebius  ;;
11227290001Sglebius
11228290001Sglebius*nto* | *qnx*)
11229290001Sglebius  version_type=qnx
11230290001Sglebius  need_lib_prefix=no
11231290001Sglebius  need_version=no
11232290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11234290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11235290001Sglebius  shlibpath_overrides_runpath=no
11236290001Sglebius  hardcode_into_libs=yes
11237290001Sglebius  dynamic_linker='ldqnx.so'
11238290001Sglebius  ;;
11239290001Sglebius
11240290001Sglebiusopenbsd*)
11241290001Sglebius  version_type=sunos
11242290001Sglebius  sys_lib_dlsearch_path_spec="/usr/lib"
11243290001Sglebius  need_lib_prefix=no
11244290001Sglebius  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11245290001Sglebius  case $host_os in
11246290001Sglebius    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11247290001Sglebius    *)				need_version=no  ;;
11248290001Sglebius  esac
11249290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11250290001Sglebius  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11251290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11252290001Sglebius  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11253290001Sglebius    case $host_os in
11254290001Sglebius      openbsd2.[89] | openbsd2.[89].*)
11255290001Sglebius	shlibpath_overrides_runpath=no
11256290001Sglebius	;;
11257290001Sglebius      *)
11258290001Sglebius	shlibpath_overrides_runpath=yes
11259290001Sglebius	;;
11260290001Sglebius      esac
11261290001Sglebius  else
11262290001Sglebius    shlibpath_overrides_runpath=yes
11263290001Sglebius  fi
11264290001Sglebius  ;;
11265290001Sglebius
11266290001Sglebiusos2*)
11267290001Sglebius  libname_spec='$name'
11268290001Sglebius  shrext_cmds=".dll"
11269290001Sglebius  need_lib_prefix=no
11270290001Sglebius  library_names_spec='$libname${shared_ext} $libname.a'
11271290001Sglebius  dynamic_linker='OS/2 ld.exe'
11272290001Sglebius  shlibpath_var=LIBPATH
11273290001Sglebius  ;;
11274290001Sglebius
11275290001Sglebiusosf3* | osf4* | osf5*)
11276290001Sglebius  version_type=osf
11277290001Sglebius  need_lib_prefix=no
11278290001Sglebius  need_version=no
11279290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11280290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11282290001Sglebius  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11283290001Sglebius  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11284290001Sglebius  ;;
11285290001Sglebius
11286290001Sglebiusrdos*)
11287290001Sglebius  dynamic_linker=no
11288290001Sglebius  ;;
11289290001Sglebius
11290290001Sglebiussolaris*)
11291290001Sglebius  version_type=linux
11292290001Sglebius  need_lib_prefix=no
11293290001Sglebius  need_version=no
11294290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11296290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11297290001Sglebius  shlibpath_overrides_runpath=yes
11298290001Sglebius  hardcode_into_libs=yes
11299290001Sglebius  # ldd complains unless libraries are executable
11300290001Sglebius  postinstall_cmds='chmod +x $lib'
11301290001Sglebius  ;;
11302290001Sglebius
11303290001Sglebiussunos4*)
11304290001Sglebius  version_type=sunos
11305290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11306290001Sglebius  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11307290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11308290001Sglebius  shlibpath_overrides_runpath=yes
11309290001Sglebius  if test "$with_gnu_ld" = yes; then
11310290001Sglebius    need_lib_prefix=no
11311290001Sglebius  fi
11312290001Sglebius  need_version=yes
11313290001Sglebius  ;;
11314290001Sglebius
11315290001Sglebiussysv4 | sysv4.3*)
11316290001Sglebius  version_type=linux
11317290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11319290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11320290001Sglebius  case $host_vendor in
11321290001Sglebius    sni)
11322290001Sglebius      shlibpath_overrides_runpath=no
11323290001Sglebius      need_lib_prefix=no
11324290001Sglebius      runpath_var=LD_RUN_PATH
11325290001Sglebius      ;;
11326290001Sglebius    siemens)
11327290001Sglebius      need_lib_prefix=no
11328290001Sglebius      ;;
11329290001Sglebius    motorola)
11330290001Sglebius      need_lib_prefix=no
11331290001Sglebius      need_version=no
11332290001Sglebius      shlibpath_overrides_runpath=no
11333290001Sglebius      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11334290001Sglebius      ;;
11335290001Sglebius  esac
11336290001Sglebius  ;;
11337290001Sglebius
11338290001Sglebiussysv4*MP*)
11339290001Sglebius  if test -d /usr/nec ;then
11340290001Sglebius    version_type=linux
11341290001Sglebius    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11342290001Sglebius    soname_spec='$libname${shared_ext}.$major'
11343290001Sglebius    shlibpath_var=LD_LIBRARY_PATH
11344290001Sglebius  fi
11345290001Sglebius  ;;
11346290001Sglebius
11347290001Sglebiussysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11348290001Sglebius  version_type=freebsd-elf
11349290001Sglebius  need_lib_prefix=no
11350290001Sglebius  need_version=no
11351290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11352290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11353290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11354290001Sglebius  shlibpath_overrides_runpath=yes
11355290001Sglebius  hardcode_into_libs=yes
11356290001Sglebius  if test "$with_gnu_ld" = yes; then
11357290001Sglebius    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11358290001Sglebius  else
11359290001Sglebius    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11360290001Sglebius    case $host_os in
11361290001Sglebius      sco3.2v5*)
11362290001Sglebius        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11363290001Sglebius	;;
11364290001Sglebius    esac
11365290001Sglebius  fi
11366290001Sglebius  sys_lib_dlsearch_path_spec='/usr/lib'
11367290001Sglebius  ;;
11368290001Sglebius
11369290001Sglebiustpf*)
11370290001Sglebius  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11371290001Sglebius  version_type=linux
11372290001Sglebius  need_lib_prefix=no
11373290001Sglebius  need_version=no
11374290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11376290001Sglebius  shlibpath_overrides_runpath=no
11377290001Sglebius  hardcode_into_libs=yes
11378290001Sglebius  ;;
11379290001Sglebius
11380290001Sglebiusuts4*)
11381290001Sglebius  version_type=linux
11382290001Sglebius  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383290001Sglebius  soname_spec='${libname}${release}${shared_ext}$major'
11384290001Sglebius  shlibpath_var=LD_LIBRARY_PATH
11385290001Sglebius  ;;
11386290001Sglebius
11387290001Sglebius*)
11388290001Sglebius  dynamic_linker=no
11389290001Sglebius  ;;
11390290001Sglebiusesac
11391290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11392290001Sglebius$as_echo "$dynamic_linker" >&6; }
11393290001Sglebiustest "$dynamic_linker" = no && can_build_shared=no
11394290001Sglebius
11395290001Sglebiusvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11396290001Sglebiusif test "$GCC" = yes; then
11397290001Sglebius  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11398290001Sglebiusfi
11399290001Sglebius
11400290001Sglebiusif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11401290001Sglebius  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11402290001Sglebiusfi
11403290001Sglebiusif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11404290001Sglebius  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11405290001Sglebiusfi
11406290001Sglebius
11407290001Sglebius
11408290001Sglebius
11409290001Sglebius
11410290001Sglebius
11411290001Sglebius
11412290001Sglebius
11413290001Sglebius
11414290001Sglebius
11415290001Sglebius
11416290001Sglebius
11417290001Sglebius
11418290001Sglebius
11419290001Sglebius
11420290001Sglebius
11421290001Sglebius
11422290001Sglebius
11423290001Sglebius
11424290001Sglebius
11425290001Sglebius
11426290001Sglebius
11427290001Sglebius
11428290001Sglebius
11429290001Sglebius
11430290001Sglebius
11431290001Sglebius
11432290001Sglebius
11433290001Sglebius
11434290001Sglebius
11435290001Sglebius
11436290001Sglebius
11437290001Sglebius
11438290001Sglebius
11439290001Sglebius
11440290001Sglebius
11441290001Sglebius
11442290001Sglebius
11443290001Sglebius
11444290001Sglebius
11445290001Sglebius
11446290001Sglebius
11447290001Sglebius
11448290001Sglebius
11449290001Sglebius
11450290001Sglebius
11451290001Sglebius
11452290001Sglebius
11453290001Sglebius
11454290001Sglebius
11455290001Sglebius
11456290001Sglebius
11457290001Sglebius
11458290001Sglebius
11459290001Sglebius
11460290001Sglebius
11461290001Sglebius
11462290001Sglebius
11463290001Sglebius
11464290001Sglebius
11465290001Sglebius
11466290001Sglebius
11467290001Sglebius
11468290001Sglebius
11469290001Sglebius
11470290001Sglebius
11471290001Sglebius
11472290001Sglebius
11473290001Sglebius
11474290001Sglebius
11475290001Sglebius
11476290001Sglebius
11477290001Sglebius
11478290001Sglebius
11479290001Sglebius
11480290001Sglebius
11481290001Sglebius
11482290001Sglebius
11483290001Sglebius
11484290001Sglebius
11485290001Sglebius
11486290001Sglebius
11487290001Sglebius
11488290001Sglebius
11489290001Sglebius
11490290001Sglebius
11491290001Sglebius
11492290001Sglebius
11493290001Sglebius
11494290001Sglebius
11495290001Sglebius
11496290001Sglebius
11497290001Sglebius
11498290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11499290001Sglebius$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11500290001Sglebiushardcode_action=
11501290001Sglebiusif test -n "$hardcode_libdir_flag_spec" ||
11502290001Sglebius   test -n "$runpath_var" ||
11503290001Sglebius   test "X$hardcode_automatic" = "Xyes" ; then
11504290001Sglebius
11505290001Sglebius  # We can hardcode non-existent directories.
11506290001Sglebius  if test "$hardcode_direct" != no &&
11507290001Sglebius     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11508290001Sglebius     # have to relink, otherwise we might link with an installed library
11509290001Sglebius     # when we should be linking with a yet-to-be-installed one
11510290001Sglebius     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11511290001Sglebius     test "$hardcode_minus_L" != no; then
11512290001Sglebius    # Linking always hardcodes the temporary library directory.
11513290001Sglebius    hardcode_action=relink
11514290001Sglebius  else
11515290001Sglebius    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11516290001Sglebius    hardcode_action=immediate
11517290001Sglebius  fi
11518290001Sglebiuselse
11519290001Sglebius  # We cannot hardcode anything, or else we can only hardcode existing
11520290001Sglebius  # directories.
11521290001Sglebius  hardcode_action=unsupported
11522290001Sglebiusfi
11523290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11524290001Sglebius$as_echo "$hardcode_action" >&6; }
11525290001Sglebius
11526290001Sglebiusif test "$hardcode_action" = relink ||
11527290001Sglebius   test "$inherit_rpath" = yes; then
11528290001Sglebius  # Fast installation is not supported
11529290001Sglebius  enable_fast_install=no
11530290001Sglebiuselif test "$shlibpath_overrides_runpath" = yes ||
11531290001Sglebius     test "$enable_shared" = no; then
11532290001Sglebius  # Fast installation is not necessary
11533290001Sglebius  enable_fast_install=needless
11534290001Sglebiusfi
11535290001Sglebius
11536290001Sglebius
11537290001Sglebius
11538290001Sglebius
11539290001Sglebius
11540290001Sglebius
11541290001Sglebius  if test "x$enable_dlopen" != xyes; then
11542290001Sglebius  enable_dlopen=unknown
11543290001Sglebius  enable_dlopen_self=unknown
11544290001Sglebius  enable_dlopen_self_static=unknown
11545290001Sglebiuselse
11546290001Sglebius  lt_cv_dlopen=no
11547290001Sglebius  lt_cv_dlopen_libs=
11548290001Sglebius
11549290001Sglebius  case $host_os in
11550290001Sglebius  beos*)
11551290001Sglebius    lt_cv_dlopen="load_add_on"
11552290001Sglebius    lt_cv_dlopen_libs=
11553290001Sglebius    lt_cv_dlopen_self=yes
11554290001Sglebius    ;;
11555290001Sglebius
11556290001Sglebius  mingw* | pw32* | cegcc*)
11557290001Sglebius    lt_cv_dlopen="LoadLibrary"
11558290001Sglebius    lt_cv_dlopen_libs=
11559290001Sglebius    ;;
11560290001Sglebius
11561290001Sglebius  cygwin*)
11562290001Sglebius    lt_cv_dlopen="dlopen"
11563290001Sglebius    lt_cv_dlopen_libs=
11564290001Sglebius    ;;
11565290001Sglebius
11566290001Sglebius  darwin*)
11567290001Sglebius  # if libdl is installed we need to link against it
11568290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11569290001Sglebius$as_echo_n "checking for dlopen in -ldl... " >&6; }
11570290001Sglebiusif ${ac_cv_lib_dl_dlopen+:} false; then :
11571290001Sglebius  $as_echo_n "(cached) " >&6
11572290001Sglebiuselse
11573290001Sglebius  ac_check_lib_save_LIBS=$LIBS
11574290001SglebiusLIBS="-ldl  $LIBS"
11575290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576290001Sglebius/* end confdefs.h.  */
11577290001Sglebius
11578290001Sglebius/* Override any GCC internal prototype to avoid an error.
11579290001Sglebius   Use char because int might match the return type of a GCC
11580290001Sglebius   builtin and then its argument prototype would still apply.  */
11581290001Sglebius#ifdef __cplusplus
11582290001Sglebiusextern "C"
11583290001Sglebius#endif
11584290001Sglebiuschar dlopen ();
11585290001Sglebiusint
11586290001Sglebiusmain ()
11587290001Sglebius{
11588290001Sglebiusreturn dlopen ();
11589290001Sglebius  ;
11590290001Sglebius  return 0;
11591290001Sglebius}
11592290001Sglebius_ACEOF
11593290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
11594290001Sglebius  ac_cv_lib_dl_dlopen=yes
11595290001Sglebiuselse
11596290001Sglebius  ac_cv_lib_dl_dlopen=no
11597290001Sglebiusfi
11598290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
11599290001Sglebius    conftest$ac_exeext conftest.$ac_ext
11600290001SglebiusLIBS=$ac_check_lib_save_LIBS
11601290001Sglebiusfi
11602290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11603290001Sglebius$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11604290001Sglebiusif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11605290001Sglebius  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11606290001Sglebiuselse
11607290001Sglebius
11608290001Sglebius    lt_cv_dlopen="dyld"
11609290001Sglebius    lt_cv_dlopen_libs=
11610290001Sglebius    lt_cv_dlopen_self=yes
11611290001Sglebius
11612290001Sglebiusfi
11613290001Sglebius
11614290001Sglebius    ;;
11615290001Sglebius
11616290001Sglebius  *)
11617290001Sglebius    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11618290001Sglebiusif test "x$ac_cv_func_shl_load" = xyes; then :
11619290001Sglebius  lt_cv_dlopen="shl_load"
11620290001Sglebiuselse
11621290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11622290001Sglebius$as_echo_n "checking for shl_load in -ldld... " >&6; }
11623290001Sglebiusif ${ac_cv_lib_dld_shl_load+:} false; then :
11624290001Sglebius  $as_echo_n "(cached) " >&6
11625290001Sglebiuselse
11626290001Sglebius  ac_check_lib_save_LIBS=$LIBS
11627290001SglebiusLIBS="-ldld  $LIBS"
11628290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629290001Sglebius/* end confdefs.h.  */
11630290001Sglebius
11631290001Sglebius/* Override any GCC internal prototype to avoid an error.
11632290001Sglebius   Use char because int might match the return type of a GCC
11633290001Sglebius   builtin and then its argument prototype would still apply.  */
11634290001Sglebius#ifdef __cplusplus
11635290001Sglebiusextern "C"
11636290001Sglebius#endif
11637290001Sglebiuschar shl_load ();
11638290001Sglebiusint
11639290001Sglebiusmain ()
11640290001Sglebius{
11641290001Sglebiusreturn shl_load ();
11642290001Sglebius  ;
11643290001Sglebius  return 0;
11644290001Sglebius}
11645290001Sglebius_ACEOF
11646290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
11647290001Sglebius  ac_cv_lib_dld_shl_load=yes
11648290001Sglebiuselse
11649290001Sglebius  ac_cv_lib_dld_shl_load=no
11650290001Sglebiusfi
11651290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
11652290001Sglebius    conftest$ac_exeext conftest.$ac_ext
11653290001SglebiusLIBS=$ac_check_lib_save_LIBS
11654290001Sglebiusfi
11655290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11656290001Sglebius$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11657290001Sglebiusif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11658290001Sglebius  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11659290001Sglebiuselse
11660290001Sglebius  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11661290001Sglebiusif test "x$ac_cv_func_dlopen" = xyes; then :
11662290001Sglebius  lt_cv_dlopen="dlopen"
11663290001Sglebiuselse
11664290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11665290001Sglebius$as_echo_n "checking for dlopen in -ldl... " >&6; }
11666290001Sglebiusif ${ac_cv_lib_dl_dlopen+:} false; then :
11667290001Sglebius  $as_echo_n "(cached) " >&6
11668290001Sglebiuselse
11669290001Sglebius  ac_check_lib_save_LIBS=$LIBS
11670290001SglebiusLIBS="-ldl  $LIBS"
11671290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672290001Sglebius/* end confdefs.h.  */
11673290001Sglebius
11674290001Sglebius/* Override any GCC internal prototype to avoid an error.
11675290001Sglebius   Use char because int might match the return type of a GCC
11676290001Sglebius   builtin and then its argument prototype would still apply.  */
11677290001Sglebius#ifdef __cplusplus
11678290001Sglebiusextern "C"
11679290001Sglebius#endif
11680290001Sglebiuschar dlopen ();
11681290001Sglebiusint
11682290001Sglebiusmain ()
11683290001Sglebius{
11684290001Sglebiusreturn dlopen ();
11685290001Sglebius  ;
11686290001Sglebius  return 0;
11687290001Sglebius}
11688290001Sglebius_ACEOF
11689290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
11690290001Sglebius  ac_cv_lib_dl_dlopen=yes
11691290001Sglebiuselse
11692290001Sglebius  ac_cv_lib_dl_dlopen=no
11693290001Sglebiusfi
11694290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
11695290001Sglebius    conftest$ac_exeext conftest.$ac_ext
11696290001SglebiusLIBS=$ac_check_lib_save_LIBS
11697290001Sglebiusfi
11698290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11699290001Sglebius$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11700290001Sglebiusif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11701290001Sglebius  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11702290001Sglebiuselse
11703290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11704290001Sglebius$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11705290001Sglebiusif ${ac_cv_lib_svld_dlopen+:} false; then :
11706290001Sglebius  $as_echo_n "(cached) " >&6
11707290001Sglebiuselse
11708290001Sglebius  ac_check_lib_save_LIBS=$LIBS
11709290001SglebiusLIBS="-lsvld  $LIBS"
11710290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711290001Sglebius/* end confdefs.h.  */
11712290001Sglebius
11713290001Sglebius/* Override any GCC internal prototype to avoid an error.
11714290001Sglebius   Use char because int might match the return type of a GCC
11715290001Sglebius   builtin and then its argument prototype would still apply.  */
11716290001Sglebius#ifdef __cplusplus
11717290001Sglebiusextern "C"
11718290001Sglebius#endif
11719290001Sglebiuschar dlopen ();
11720290001Sglebiusint
11721290001Sglebiusmain ()
11722290001Sglebius{
11723290001Sglebiusreturn dlopen ();
11724290001Sglebius  ;
11725290001Sglebius  return 0;
11726290001Sglebius}
11727290001Sglebius_ACEOF
11728290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
11729290001Sglebius  ac_cv_lib_svld_dlopen=yes
11730290001Sglebiuselse
11731290001Sglebius  ac_cv_lib_svld_dlopen=no
11732290001Sglebiusfi
11733290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
11734290001Sglebius    conftest$ac_exeext conftest.$ac_ext
11735290001SglebiusLIBS=$ac_check_lib_save_LIBS
11736290001Sglebiusfi
11737290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11738290001Sglebius$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11739290001Sglebiusif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11740290001Sglebius  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11741290001Sglebiuselse
11742290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11743290001Sglebius$as_echo_n "checking for dld_link in -ldld... " >&6; }
11744290001Sglebiusif ${ac_cv_lib_dld_dld_link+:} false; then :
11745290001Sglebius  $as_echo_n "(cached) " >&6
11746290001Sglebiuselse
11747290001Sglebius  ac_check_lib_save_LIBS=$LIBS
11748290001SglebiusLIBS="-ldld  $LIBS"
11749290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750290001Sglebius/* end confdefs.h.  */
11751290001Sglebius
11752290001Sglebius/* Override any GCC internal prototype to avoid an error.
11753290001Sglebius   Use char because int might match the return type of a GCC
11754290001Sglebius   builtin and then its argument prototype would still apply.  */
11755290001Sglebius#ifdef __cplusplus
11756290001Sglebiusextern "C"
11757290001Sglebius#endif
11758290001Sglebiuschar dld_link ();
11759290001Sglebiusint
11760290001Sglebiusmain ()
11761290001Sglebius{
11762290001Sglebiusreturn dld_link ();
11763290001Sglebius  ;
11764290001Sglebius  return 0;
11765290001Sglebius}
11766290001Sglebius_ACEOF
11767290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
11768290001Sglebius  ac_cv_lib_dld_dld_link=yes
11769290001Sglebiuselse
11770290001Sglebius  ac_cv_lib_dld_dld_link=no
11771290001Sglebiusfi
11772290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
11773290001Sglebius    conftest$ac_exeext conftest.$ac_ext
11774290001SglebiusLIBS=$ac_check_lib_save_LIBS
11775290001Sglebiusfi
11776290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11777290001Sglebius$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11778290001Sglebiusif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11779290001Sglebius  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11780290001Sglebiusfi
11781290001Sglebius
11782290001Sglebius
11783290001Sglebiusfi
11784290001Sglebius
11785290001Sglebius
11786290001Sglebiusfi
11787290001Sglebius
11788290001Sglebius
11789290001Sglebiusfi
11790290001Sglebius
11791290001Sglebius
11792290001Sglebiusfi
11793290001Sglebius
11794290001Sglebius
11795290001Sglebiusfi
11796290001Sglebius
11797290001Sglebius    ;;
11798290001Sglebius  esac
11799290001Sglebius
11800290001Sglebius  if test "x$lt_cv_dlopen" != xno; then
11801290001Sglebius    enable_dlopen=yes
11802290001Sglebius  else
11803290001Sglebius    enable_dlopen=no
11804290001Sglebius  fi
11805290001Sglebius
11806290001Sglebius  case $lt_cv_dlopen in
11807290001Sglebius  dlopen)
11808290001Sglebius    save_CPPFLAGS="$CPPFLAGS"
11809290001Sglebius    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11810290001Sglebius
11811290001Sglebius    save_LDFLAGS="$LDFLAGS"
11812290001Sglebius    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11813290001Sglebius
11814290001Sglebius    save_LIBS="$LIBS"
11815290001Sglebius    LIBS="$lt_cv_dlopen_libs $LIBS"
11816290001Sglebius
11817290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11818290001Sglebius$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11819290001Sglebiusif ${lt_cv_dlopen_self+:} false; then :
11820290001Sglebius  $as_echo_n "(cached) " >&6
11821290001Sglebiuselse
11822290001Sglebius  	  if test "$cross_compiling" = yes; then :
11823290001Sglebius  lt_cv_dlopen_self=cross
11824290001Sglebiuselse
11825290001Sglebius  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11826290001Sglebius  lt_status=$lt_dlunknown
11827290001Sglebius  cat > conftest.$ac_ext <<_LT_EOF
11828290001Sglebius#line $LINENO "configure"
11829290001Sglebius#include "confdefs.h"
11830290001Sglebius
11831290001Sglebius#if HAVE_DLFCN_H
11832290001Sglebius#include <dlfcn.h>
11833290001Sglebius#endif
11834290001Sglebius
11835290001Sglebius#include <stdio.h>
11836290001Sglebius
11837290001Sglebius#ifdef RTLD_GLOBAL
11838290001Sglebius#  define LT_DLGLOBAL		RTLD_GLOBAL
11839290001Sglebius#else
11840290001Sglebius#  ifdef DL_GLOBAL
11841290001Sglebius#    define LT_DLGLOBAL		DL_GLOBAL
11842290001Sglebius#  else
11843290001Sglebius#    define LT_DLGLOBAL		0
11844290001Sglebius#  endif
11845290001Sglebius#endif
11846290001Sglebius
11847290001Sglebius/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11848290001Sglebius   find out it does not work in some platform. */
11849290001Sglebius#ifndef LT_DLLAZY_OR_NOW
11850290001Sglebius#  ifdef RTLD_LAZY
11851290001Sglebius#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11852290001Sglebius#  else
11853290001Sglebius#    ifdef DL_LAZY
11854290001Sglebius#      define LT_DLLAZY_OR_NOW		DL_LAZY
11855290001Sglebius#    else
11856290001Sglebius#      ifdef RTLD_NOW
11857290001Sglebius#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11858290001Sglebius#      else
11859290001Sglebius#        ifdef DL_NOW
11860290001Sglebius#          define LT_DLLAZY_OR_NOW	DL_NOW
11861290001Sglebius#        else
11862290001Sglebius#          define LT_DLLAZY_OR_NOW	0
11863290001Sglebius#        endif
11864290001Sglebius#      endif
11865290001Sglebius#    endif
11866290001Sglebius#  endif
11867290001Sglebius#endif
11868290001Sglebius
11869290001Sglebius/* When -fvisbility=hidden is used, assume the code has been annotated
11870290001Sglebius   correspondingly for the symbols needed.  */
11871290001Sglebius#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11872290001Sglebiusint fnord () __attribute__((visibility("default")));
11873290001Sglebius#endif
11874290001Sglebius
11875290001Sglebiusint fnord () { return 42; }
11876290001Sglebiusint main ()
11877290001Sglebius{
11878290001Sglebius  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11879290001Sglebius  int status = $lt_dlunknown;
11880290001Sglebius
11881290001Sglebius  if (self)
11882290001Sglebius    {
11883290001Sglebius      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11884290001Sglebius      else
11885290001Sglebius        {
11886290001Sglebius	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11887290001Sglebius          else puts (dlerror ());
11888290001Sglebius	}
11889290001Sglebius      /* dlclose (self); */
11890290001Sglebius    }
11891290001Sglebius  else
11892290001Sglebius    puts (dlerror ());
11893290001Sglebius
11894290001Sglebius  return status;
11895290001Sglebius}
11896290001Sglebius_LT_EOF
11897290001Sglebius  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11898290001Sglebius  (eval $ac_link) 2>&5
11899290001Sglebius  ac_status=$?
11900290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11901290001Sglebius  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11902290001Sglebius    (./conftest; exit; ) >&5 2>/dev/null
11903290001Sglebius    lt_status=$?
11904290001Sglebius    case x$lt_status in
11905290001Sglebius      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11906290001Sglebius      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11907290001Sglebius      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11908290001Sglebius    esac
11909290001Sglebius  else :
11910290001Sglebius    # compilation failed
11911290001Sglebius    lt_cv_dlopen_self=no
11912290001Sglebius  fi
11913290001Sglebiusfi
11914290001Sglebiusrm -fr conftest*
11915290001Sglebius
11916290001Sglebius
11917290001Sglebiusfi
11918290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11919290001Sglebius$as_echo "$lt_cv_dlopen_self" >&6; }
11920290001Sglebius
11921290001Sglebius    if test "x$lt_cv_dlopen_self" = xyes; then
11922290001Sglebius      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11923290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11924290001Sglebius$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11925290001Sglebiusif ${lt_cv_dlopen_self_static+:} false; then :
11926290001Sglebius  $as_echo_n "(cached) " >&6
11927290001Sglebiuselse
11928290001Sglebius  	  if test "$cross_compiling" = yes; then :
11929290001Sglebius  lt_cv_dlopen_self_static=cross
11930290001Sglebiuselse
11931290001Sglebius  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11932290001Sglebius  lt_status=$lt_dlunknown
11933290001Sglebius  cat > conftest.$ac_ext <<_LT_EOF
11934290001Sglebius#line $LINENO "configure"
11935290001Sglebius#include "confdefs.h"
11936290001Sglebius
11937290001Sglebius#if HAVE_DLFCN_H
11938290001Sglebius#include <dlfcn.h>
11939290001Sglebius#endif
11940290001Sglebius
11941290001Sglebius#include <stdio.h>
11942290001Sglebius
11943290001Sglebius#ifdef RTLD_GLOBAL
11944290001Sglebius#  define LT_DLGLOBAL		RTLD_GLOBAL
11945290001Sglebius#else
11946290001Sglebius#  ifdef DL_GLOBAL
11947290001Sglebius#    define LT_DLGLOBAL		DL_GLOBAL
11948290001Sglebius#  else
11949290001Sglebius#    define LT_DLGLOBAL		0
11950290001Sglebius#  endif
11951290001Sglebius#endif
11952290001Sglebius
11953290001Sglebius/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11954290001Sglebius   find out it does not work in some platform. */
11955290001Sglebius#ifndef LT_DLLAZY_OR_NOW
11956290001Sglebius#  ifdef RTLD_LAZY
11957290001Sglebius#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11958290001Sglebius#  else
11959290001Sglebius#    ifdef DL_LAZY
11960290001Sglebius#      define LT_DLLAZY_OR_NOW		DL_LAZY
11961290001Sglebius#    else
11962290001Sglebius#      ifdef RTLD_NOW
11963290001Sglebius#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11964290001Sglebius#      else
11965290001Sglebius#        ifdef DL_NOW
11966290001Sglebius#          define LT_DLLAZY_OR_NOW	DL_NOW
11967290001Sglebius#        else
11968290001Sglebius#          define LT_DLLAZY_OR_NOW	0
11969290001Sglebius#        endif
11970290001Sglebius#      endif
11971290001Sglebius#    endif
11972290001Sglebius#  endif
11973290001Sglebius#endif
11974290001Sglebius
11975290001Sglebius/* When -fvisbility=hidden is used, assume the code has been annotated
11976290001Sglebius   correspondingly for the symbols needed.  */
11977290001Sglebius#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11978290001Sglebiusint fnord () __attribute__((visibility("default")));
11979290001Sglebius#endif
11980290001Sglebius
11981290001Sglebiusint fnord () { return 42; }
11982290001Sglebiusint main ()
11983290001Sglebius{
11984290001Sglebius  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11985290001Sglebius  int status = $lt_dlunknown;
11986290001Sglebius
11987290001Sglebius  if (self)
11988290001Sglebius    {
11989290001Sglebius      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11990290001Sglebius      else
11991290001Sglebius        {
11992290001Sglebius	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11993290001Sglebius          else puts (dlerror ());
11994290001Sglebius	}
11995290001Sglebius      /* dlclose (self); */
11996290001Sglebius    }
11997290001Sglebius  else
11998290001Sglebius    puts (dlerror ());
11999290001Sglebius
12000290001Sglebius  return status;
12001290001Sglebius}
12002290001Sglebius_LT_EOF
12003290001Sglebius  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12004290001Sglebius  (eval $ac_link) 2>&5
12005290001Sglebius  ac_status=$?
12006290001Sglebius  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12007290001Sglebius  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12008290001Sglebius    (./conftest; exit; ) >&5 2>/dev/null
12009290001Sglebius    lt_status=$?
12010290001Sglebius    case x$lt_status in
12011290001Sglebius      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12012290001Sglebius      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12013290001Sglebius      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12014290001Sglebius    esac
12015290001Sglebius  else :
12016290001Sglebius    # compilation failed
12017290001Sglebius    lt_cv_dlopen_self_static=no
12018290001Sglebius  fi
12019290001Sglebiusfi
12020290001Sglebiusrm -fr conftest*
12021290001Sglebius
12022290001Sglebius
12023290001Sglebiusfi
12024290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12025290001Sglebius$as_echo "$lt_cv_dlopen_self_static" >&6; }
12026290001Sglebius    fi
12027290001Sglebius
12028290001Sglebius    CPPFLAGS="$save_CPPFLAGS"
12029290001Sglebius    LDFLAGS="$save_LDFLAGS"
12030290001Sglebius    LIBS="$save_LIBS"
12031290001Sglebius    ;;
12032290001Sglebius  esac
12033290001Sglebius
12034290001Sglebius  case $lt_cv_dlopen_self in
12035290001Sglebius  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12036290001Sglebius  *) enable_dlopen_self=unknown ;;
12037290001Sglebius  esac
12038290001Sglebius
12039290001Sglebius  case $lt_cv_dlopen_self_static in
12040290001Sglebius  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12041290001Sglebius  *) enable_dlopen_self_static=unknown ;;
12042290001Sglebius  esac
12043290001Sglebiusfi
12044290001Sglebius
12045290001Sglebius
12046290001Sglebius
12047290001Sglebius
12048290001Sglebius
12049290001Sglebius
12050290001Sglebius
12051290001Sglebius
12052290001Sglebius
12053290001Sglebius
12054290001Sglebius
12055290001Sglebius
12056290001Sglebius
12057290001Sglebius
12058290001Sglebius
12059290001Sglebius
12060290001Sglebius
12061290001Sglebiusstriplib=
12062290001Sglebiusold_striplib=
12063290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12064290001Sglebius$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12065290001Sglebiusif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12066290001Sglebius  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12067290001Sglebius  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12068290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069290001Sglebius$as_echo "yes" >&6; }
12070290001Sglebiuselse
12071290001Sglebius# FIXME - insert some real tests, host_os isn't really good enough
12072290001Sglebius  case $host_os in
12073290001Sglebius  darwin*)
12074290001Sglebius    if test -n "$STRIP" ; then
12075290001Sglebius      striplib="$STRIP -x"
12076290001Sglebius      old_striplib="$STRIP -S"
12077290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12078290001Sglebius$as_echo "yes" >&6; }
12079290001Sglebius    else
12080290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081290001Sglebius$as_echo "no" >&6; }
12082290001Sglebius    fi
12083290001Sglebius    ;;
12084290001Sglebius  *)
12085290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086290001Sglebius$as_echo "no" >&6; }
12087290001Sglebius    ;;
12088290001Sglebius  esac
12089290001Sglebiusfi
12090290001Sglebius
12091290001Sglebius
12092290001Sglebius
12093290001Sglebius
12094290001Sglebius
12095290001Sglebius
12096290001Sglebius
12097290001Sglebius
12098290001Sglebius
12099290001Sglebius
12100290001Sglebius
12101290001Sglebius
12102290001Sglebius  # Report which library types will actually be built
12103290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12104290001Sglebius$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12105290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12106290001Sglebius$as_echo "$can_build_shared" >&6; }
12107290001Sglebius
12108290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12109290001Sglebius$as_echo_n "checking whether to build shared libraries... " >&6; }
12110290001Sglebius  test "$can_build_shared" = "no" && enable_shared=no
12111290001Sglebius
12112290001Sglebius  # On AIX, shared libraries and static libraries use the same namespace, and
12113290001Sglebius  # are all built from PIC.
12114290001Sglebius  case $host_os in
12115290001Sglebius  aix3*)
12116290001Sglebius    test "$enable_shared" = yes && enable_static=no
12117290001Sglebius    if test -n "$RANLIB"; then
12118290001Sglebius      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12119290001Sglebius      postinstall_cmds='$RANLIB $lib'
12120290001Sglebius    fi
12121290001Sglebius    ;;
12122290001Sglebius
12123290001Sglebius  aix[4-9]*)
12124290001Sglebius    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12125290001Sglebius      test "$enable_shared" = yes && enable_static=no
12126290001Sglebius    fi
12127290001Sglebius    ;;
12128290001Sglebius  esac
12129290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12130290001Sglebius$as_echo "$enable_shared" >&6; }
12131290001Sglebius
12132290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12133290001Sglebius$as_echo_n "checking whether to build static libraries... " >&6; }
12134290001Sglebius  # Make sure either enable_shared or enable_static is yes.
12135290001Sglebius  test "$enable_shared" = yes || enable_static=yes
12136290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12137290001Sglebius$as_echo "$enable_static" >&6; }
12138290001Sglebius
12139290001Sglebius
12140290001Sglebius
12141290001Sglebius
12142290001Sglebiusfi
12143290001Sglebiusac_ext=c
12144290001Sglebiusac_cpp='$CPP $CPPFLAGS'
12145290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
12148290001Sglebius
12149290001SglebiusCC="$lt_save_CC"
12150290001Sglebius
12151290001Sglebius
12152290001Sglebius
12153290001Sglebius
12154290001Sglebius
12155290001Sglebius
12156290001Sglebius
12157290001Sglebius
12158290001Sglebius
12159290001Sglebius
12160290001Sglebius
12161290001Sglebius
12162290001Sglebius
12163290001Sglebius        ac_config_commands="$ac_config_commands libtool"
12164290001Sglebius
12165290001Sglebius
12166290001Sglebius
12167290001Sglebius
12168290001Sglebius# Only expand once:
12169290001Sglebius
12170290001Sglebius
12171290001Sglebius
12172290001Sglebius
12173290001Sglebius
12174290001Sglebius if test "$enable_samples" = "yes"; then
12175290001Sglebius  BUILD_SAMPLES_TRUE=
12176290001Sglebius  BUILD_SAMPLES_FALSE='#'
12177290001Sglebiuselse
12178290001Sglebius  BUILD_SAMPLES_TRUE='#'
12179290001Sglebius  BUILD_SAMPLES_FALSE=
12180290001Sglebiusfi
12181290001Sglebius
12182290001Sglebius if test "$enable_libevent_regress" = "yes"; then
12183290001Sglebius  BUILD_REGRESS_TRUE=
12184290001Sglebius  BUILD_REGRESS_FALSE='#'
12185290001Sglebiuselse
12186290001Sglebius  BUILD_REGRESS_TRUE='#'
12187290001Sglebius  BUILD_REGRESS_FALSE=
12188290001Sglebiusfi
12189290001Sglebius
12190290001Sglebius
12191290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12192290001Sglebius$as_echo_n "checking for library containing inet_ntoa... " >&6; }
12193290001Sglebiusif ${ac_cv_search_inet_ntoa+:} false; then :
12194290001Sglebius  $as_echo_n "(cached) " >&6
12195290001Sglebiuselse
12196290001Sglebius  ac_func_search_save_LIBS=$LIBS
12197290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198290001Sglebius/* end confdefs.h.  */
12199290001Sglebius
12200290001Sglebius/* Override any GCC internal prototype to avoid an error.
12201290001Sglebius   Use char because int might match the return type of a GCC
12202290001Sglebius   builtin and then its argument prototype would still apply.  */
12203290001Sglebius#ifdef __cplusplus
12204290001Sglebiusextern "C"
12205290001Sglebius#endif
12206290001Sglebiuschar inet_ntoa ();
12207290001Sglebiusint
12208290001Sglebiusmain ()
12209290001Sglebius{
12210290001Sglebiusreturn inet_ntoa ();
12211290001Sglebius  ;
12212290001Sglebius  return 0;
12213290001Sglebius}
12214290001Sglebius_ACEOF
12215290001Sglebiusfor ac_lib in '' nsl; do
12216290001Sglebius  if test -z "$ac_lib"; then
12217290001Sglebius    ac_res="none required"
12218290001Sglebius  else
12219290001Sglebius    ac_res=-l$ac_lib
12220290001Sglebius    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12221290001Sglebius  fi
12222290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
12223290001Sglebius  ac_cv_search_inet_ntoa=$ac_res
12224290001Sglebiusfi
12225290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
12226290001Sglebius    conftest$ac_exeext
12227290001Sglebius  if ${ac_cv_search_inet_ntoa+:} false; then :
12228290001Sglebius  break
12229290001Sglebiusfi
12230290001Sglebiusdone
12231290001Sglebiusif ${ac_cv_search_inet_ntoa+:} false; then :
12232290001Sglebius
12233290001Sglebiuselse
12234290001Sglebius  ac_cv_search_inet_ntoa=no
12235290001Sglebiusfi
12236290001Sglebiusrm conftest.$ac_ext
12237290001SglebiusLIBS=$ac_func_search_save_LIBS
12238290001Sglebiusfi
12239290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12240290001Sglebius$as_echo "$ac_cv_search_inet_ntoa" >&6; }
12241290001Sglebiusac_res=$ac_cv_search_inet_ntoa
12242290001Sglebiusif test "$ac_res" != no; then :
12243290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12244290001Sglebius
12245290001Sglebiusfi
12246290001Sglebius
12247290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12248290001Sglebius$as_echo_n "checking for library containing socket... " >&6; }
12249290001Sglebiusif ${ac_cv_search_socket+:} false; then :
12250290001Sglebius  $as_echo_n "(cached) " >&6
12251290001Sglebiuselse
12252290001Sglebius  ac_func_search_save_LIBS=$LIBS
12253290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254290001Sglebius/* end confdefs.h.  */
12255290001Sglebius
12256290001Sglebius/* Override any GCC internal prototype to avoid an error.
12257290001Sglebius   Use char because int might match the return type of a GCC
12258290001Sglebius   builtin and then its argument prototype would still apply.  */
12259290001Sglebius#ifdef __cplusplus
12260290001Sglebiusextern "C"
12261290001Sglebius#endif
12262290001Sglebiuschar socket ();
12263290001Sglebiusint
12264290001Sglebiusmain ()
12265290001Sglebius{
12266290001Sglebiusreturn socket ();
12267290001Sglebius  ;
12268290001Sglebius  return 0;
12269290001Sglebius}
12270290001Sglebius_ACEOF
12271290001Sglebiusfor ac_lib in '' socket; do
12272290001Sglebius  if test -z "$ac_lib"; then
12273290001Sglebius    ac_res="none required"
12274290001Sglebius  else
12275290001Sglebius    ac_res=-l$ac_lib
12276290001Sglebius    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12277290001Sglebius  fi
12278290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
12279290001Sglebius  ac_cv_search_socket=$ac_res
12280290001Sglebiusfi
12281290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
12282290001Sglebius    conftest$ac_exeext
12283290001Sglebius  if ${ac_cv_search_socket+:} false; then :
12284290001Sglebius  break
12285290001Sglebiusfi
12286290001Sglebiusdone
12287290001Sglebiusif ${ac_cv_search_socket+:} false; then :
12288290001Sglebius
12289290001Sglebiuselse
12290290001Sglebius  ac_cv_search_socket=no
12291290001Sglebiusfi
12292290001Sglebiusrm conftest.$ac_ext
12293290001SglebiusLIBS=$ac_func_search_save_LIBS
12294290001Sglebiusfi
12295290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12296290001Sglebius$as_echo "$ac_cv_search_socket" >&6; }
12297290001Sglebiusac_res=$ac_cv_search_socket
12298290001Sglebiusif test "$ac_res" != no; then :
12299290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12300290001Sglebius
12301290001Sglebiusfi
12302290001Sglebius
12303290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12304290001Sglebius$as_echo_n "checking for library containing inet_aton... " >&6; }
12305290001Sglebiusif ${ac_cv_search_inet_aton+:} false; then :
12306290001Sglebius  $as_echo_n "(cached) " >&6
12307290001Sglebiuselse
12308290001Sglebius  ac_func_search_save_LIBS=$LIBS
12309290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310290001Sglebius/* end confdefs.h.  */
12311290001Sglebius
12312290001Sglebius/* Override any GCC internal prototype to avoid an error.
12313290001Sglebius   Use char because int might match the return type of a GCC
12314290001Sglebius   builtin and then its argument prototype would still apply.  */
12315290001Sglebius#ifdef __cplusplus
12316290001Sglebiusextern "C"
12317290001Sglebius#endif
12318290001Sglebiuschar inet_aton ();
12319290001Sglebiusint
12320290001Sglebiusmain ()
12321290001Sglebius{
12322290001Sglebiusreturn inet_aton ();
12323290001Sglebius  ;
12324290001Sglebius  return 0;
12325290001Sglebius}
12326290001Sglebius_ACEOF
12327290001Sglebiusfor ac_lib in '' resolv; do
12328290001Sglebius  if test -z "$ac_lib"; then
12329290001Sglebius    ac_res="none required"
12330290001Sglebius  else
12331290001Sglebius    ac_res=-l$ac_lib
12332290001Sglebius    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12333290001Sglebius  fi
12334290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
12335290001Sglebius  ac_cv_search_inet_aton=$ac_res
12336290001Sglebiusfi
12337290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
12338290001Sglebius    conftest$ac_exeext
12339290001Sglebius  if ${ac_cv_search_inet_aton+:} false; then :
12340290001Sglebius  break
12341290001Sglebiusfi
12342290001Sglebiusdone
12343290001Sglebiusif ${ac_cv_search_inet_aton+:} false; then :
12344290001Sglebius
12345290001Sglebiuselse
12346290001Sglebius  ac_cv_search_inet_aton=no
12347290001Sglebiusfi
12348290001Sglebiusrm conftest.$ac_ext
12349290001SglebiusLIBS=$ac_func_search_save_LIBS
12350290001Sglebiusfi
12351290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12352290001Sglebius$as_echo "$ac_cv_search_inet_aton" >&6; }
12353290001Sglebiusac_res=$ac_cv_search_inet_aton
12354290001Sglebiusif test "$ac_res" != no; then :
12355290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12356290001Sglebius
12357290001Sglebiusfi
12358290001Sglebius
12359290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12360290001Sglebius$as_echo_n "checking for library containing clock_gettime... " >&6; }
12361290001Sglebiusif ${ac_cv_search_clock_gettime+:} false; then :
12362290001Sglebius  $as_echo_n "(cached) " >&6
12363290001Sglebiuselse
12364290001Sglebius  ac_func_search_save_LIBS=$LIBS
12365290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366290001Sglebius/* end confdefs.h.  */
12367290001Sglebius
12368290001Sglebius/* Override any GCC internal prototype to avoid an error.
12369290001Sglebius   Use char because int might match the return type of a GCC
12370290001Sglebius   builtin and then its argument prototype would still apply.  */
12371290001Sglebius#ifdef __cplusplus
12372290001Sglebiusextern "C"
12373290001Sglebius#endif
12374290001Sglebiuschar clock_gettime ();
12375290001Sglebiusint
12376290001Sglebiusmain ()
12377290001Sglebius{
12378290001Sglebiusreturn clock_gettime ();
12379290001Sglebius  ;
12380290001Sglebius  return 0;
12381290001Sglebius}
12382290001Sglebius_ACEOF
12383290001Sglebiusfor ac_lib in '' rt; do
12384290001Sglebius  if test -z "$ac_lib"; then
12385290001Sglebius    ac_res="none required"
12386290001Sglebius  else
12387290001Sglebius    ac_res=-l$ac_lib
12388290001Sglebius    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12389290001Sglebius  fi
12390290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
12391290001Sglebius  ac_cv_search_clock_gettime=$ac_res
12392290001Sglebiusfi
12393290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
12394290001Sglebius    conftest$ac_exeext
12395290001Sglebius  if ${ac_cv_search_clock_gettime+:} false; then :
12396290001Sglebius  break
12397290001Sglebiusfi
12398290001Sglebiusdone
12399290001Sglebiusif ${ac_cv_search_clock_gettime+:} false; then :
12400290001Sglebius
12401290001Sglebiuselse
12402290001Sglebius  ac_cv_search_clock_gettime=no
12403290001Sglebiusfi
12404290001Sglebiusrm conftest.$ac_ext
12405290001SglebiusLIBS=$ac_func_search_save_LIBS
12406290001Sglebiusfi
12407290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12408290001Sglebius$as_echo "$ac_cv_search_clock_gettime" >&6; }
12409290001Sglebiusac_res=$ac_cv_search_clock_gettime
12410290001Sglebiusif test "$ac_res" != no; then :
12411290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12412290001Sglebius
12413290001Sglebiusfi
12414290001Sglebius
12415290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12416290001Sglebius$as_echo_n "checking for library containing sendfile... " >&6; }
12417290001Sglebiusif ${ac_cv_search_sendfile+:} false; then :
12418290001Sglebius  $as_echo_n "(cached) " >&6
12419290001Sglebiuselse
12420290001Sglebius  ac_func_search_save_LIBS=$LIBS
12421290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422290001Sglebius/* end confdefs.h.  */
12423290001Sglebius
12424290001Sglebius/* Override any GCC internal prototype to avoid an error.
12425290001Sglebius   Use char because int might match the return type of a GCC
12426290001Sglebius   builtin and then its argument prototype would still apply.  */
12427290001Sglebius#ifdef __cplusplus
12428290001Sglebiusextern "C"
12429290001Sglebius#endif
12430290001Sglebiuschar sendfile ();
12431290001Sglebiusint
12432290001Sglebiusmain ()
12433290001Sglebius{
12434290001Sglebiusreturn sendfile ();
12435290001Sglebius  ;
12436290001Sglebius  return 0;
12437290001Sglebius}
12438290001Sglebius_ACEOF
12439290001Sglebiusfor ac_lib in '' sendfile; do
12440290001Sglebius  if test -z "$ac_lib"; then
12441290001Sglebius    ac_res="none required"
12442290001Sglebius  else
12443290001Sglebius    ac_res=-l$ac_lib
12444290001Sglebius    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12445290001Sglebius  fi
12446290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
12447290001Sglebius  ac_cv_search_sendfile=$ac_res
12448290001Sglebiusfi
12449290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
12450290001Sglebius    conftest$ac_exeext
12451290001Sglebius  if ${ac_cv_search_sendfile+:} false; then :
12452290001Sglebius  break
12453290001Sglebiusfi
12454290001Sglebiusdone
12455290001Sglebiusif ${ac_cv_search_sendfile+:} false; then :
12456290001Sglebius
12457290001Sglebiuselse
12458290001Sglebius  ac_cv_search_sendfile=no
12459290001Sglebiusfi
12460290001Sglebiusrm conftest.$ac_ext
12461290001SglebiusLIBS=$ac_func_search_save_LIBS
12462290001Sglebiusfi
12463290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12464290001Sglebius$as_echo "$ac_cv_search_sendfile" >&6; }
12465290001Sglebiusac_res=$ac_cv_search_sendfile
12466290001Sglebiusif test "$ac_res" != no; then :
12467290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12468290001Sglebius
12469290001Sglebiusfi
12470290001Sglebius
12471290001Sglebius
12472290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12473290001Sglebius$as_echo_n "checking for WIN32... " >&6; }
12474290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475290001Sglebius/* end confdefs.h.  */
12476290001Sglebius
12477290001Sglebiusint
12478290001Sglebiusmain ()
12479290001Sglebius{
12480290001Sglebius
12481290001Sglebius#ifndef _WIN32
12482290001Sglebiusdie horribly
12483290001Sglebius#endif
12484290001Sglebius
12485290001Sglebius  ;
12486290001Sglebius  return 0;
12487290001Sglebius}
12488290001Sglebius_ACEOF
12489290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
12490290001Sglebius  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12491290001Sglebius$as_echo "yes" >&6; }
12492290001Sglebiuselse
12493290001Sglebius  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494290001Sglebius$as_echo "no" >&6; }
12495290001Sglebiusfi
12496290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497290001Sglebius
12498290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12499290001Sglebius$as_echo_n "checking for CYGWIN... " >&6; }
12500290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501290001Sglebius/* end confdefs.h.  */
12502290001Sglebius
12503290001Sglebiusint
12504290001Sglebiusmain ()
12505290001Sglebius{
12506290001Sglebius
12507290001Sglebius#ifndef __CYGWIN__
12508290001Sglebiusdie horribly
12509290001Sglebius#endif
12510290001Sglebius
12511290001Sglebius  ;
12512290001Sglebius  return 0;
12513290001Sglebius}
12514290001Sglebius_ACEOF
12515290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
12516290001Sglebius  cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12517290001Sglebius$as_echo "yes" >&6; }
12518290001Sglebiuselse
12519290001Sglebius  cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520290001Sglebius$as_echo "no" >&6; }
12521290001Sglebiusfi
12522290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523290001Sglebius
12524290001Sglebiusfor ac_header in zlib.h
12525290001Sglebiusdo :
12526290001Sglebius  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12527290001Sglebiusif test "x$ac_cv_header_zlib_h" = xyes; then :
12528290001Sglebius  cat >>confdefs.h <<_ACEOF
12529290001Sglebius#define HAVE_ZLIB_H 1
12530290001Sglebius_ACEOF
12531290001Sglebius
12532290001Sglebiusfi
12533290001Sglebius
12534290001Sglebiusdone
12535290001Sglebius
12536290001Sglebius
12537290001Sglebiusif test "x$ac_cv_header_zlib_h" = "xyes"; then
12538290001Sglebiussave_LIBS="$LIBS"
12539290001SglebiusLIBS=""
12540290001SglebiusZLIB_LIBS=""
12541290001Sglebiushave_zlib=no
12542290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12543290001Sglebius$as_echo_n "checking for library containing inflateEnd... " >&6; }
12544290001Sglebiusif ${ac_cv_search_inflateEnd+:} false; then :
12545290001Sglebius  $as_echo_n "(cached) " >&6
12546290001Sglebiuselse
12547290001Sglebius  ac_func_search_save_LIBS=$LIBS
12548290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549290001Sglebius/* end confdefs.h.  */
12550290001Sglebius
12551290001Sglebius/* Override any GCC internal prototype to avoid an error.
12552290001Sglebius   Use char because int might match the return type of a GCC
12553290001Sglebius   builtin and then its argument prototype would still apply.  */
12554290001Sglebius#ifdef __cplusplus
12555290001Sglebiusextern "C"
12556290001Sglebius#endif
12557290001Sglebiuschar inflateEnd ();
12558290001Sglebiusint
12559290001Sglebiusmain ()
12560290001Sglebius{
12561290001Sglebiusreturn inflateEnd ();
12562290001Sglebius  ;
12563290001Sglebius  return 0;
12564290001Sglebius}
12565290001Sglebius_ACEOF
12566290001Sglebiusfor ac_lib in '' z; do
12567290001Sglebius  if test -z "$ac_lib"; then
12568290001Sglebius    ac_res="none required"
12569290001Sglebius  else
12570290001Sglebius    ac_res=-l$ac_lib
12571290001Sglebius    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12572290001Sglebius  fi
12573290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
12574290001Sglebius  ac_cv_search_inflateEnd=$ac_res
12575290001Sglebiusfi
12576290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
12577290001Sglebius    conftest$ac_exeext
12578290001Sglebius  if ${ac_cv_search_inflateEnd+:} false; then :
12579290001Sglebius  break
12580290001Sglebiusfi
12581290001Sglebiusdone
12582290001Sglebiusif ${ac_cv_search_inflateEnd+:} false; then :
12583290001Sglebius
12584290001Sglebiuselse
12585290001Sglebius  ac_cv_search_inflateEnd=no
12586290001Sglebiusfi
12587290001Sglebiusrm conftest.$ac_ext
12588290001SglebiusLIBS=$ac_func_search_save_LIBS
12589290001Sglebiusfi
12590290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12591290001Sglebius$as_echo "$ac_cv_search_inflateEnd" >&6; }
12592290001Sglebiusac_res=$ac_cv_search_inflateEnd
12593290001Sglebiusif test "$ac_res" != no; then :
12594290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12595290001Sglebius  have_zlib=yes
12596290001Sglebius	ZLIB_LIBS="$LIBS"
12597290001Sglebius
12598290001Sglebius$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12599290001Sglebius
12600290001Sglebiusfi
12601290001Sglebius
12602290001SglebiusLIBS="$save_LIBS"
12603290001Sglebius
12604290001Sglebiusfi
12605290001Sglebius if test "$have_zlib" = "yes"; then
12606290001Sglebius  ZLIB_REGRESS_TRUE=
12607290001Sglebius  ZLIB_REGRESS_FALSE='#'
12608290001Sglebiuselse
12609290001Sglebius  ZLIB_REGRESS_TRUE='#'
12610290001Sglebius  ZLIB_REGRESS_FALSE=
12611290001Sglebiusfi
12612290001Sglebius
12613290001Sglebius
12614290001Sglebiusif test "$bwin32" = true; then
12615290001Sglebius  EV_LIB_WS32=-lws2_32
12616290001Sglebius  EV_LIB_GDI=-lgdi32
12617290001Sglebiuselse
12618290001Sglebius  EV_LIB_WS32=
12619290001Sglebius  EV_LIB_GDI=
12620290001Sglebiusfi
12621290001Sglebius
12622290001Sglebius
12623290001Sglebius
12624290001Sglebius
12625290001Sglebius# Check whether --enable-largefile was given.
12626290001Sglebiusif test "${enable_largefile+set}" = set; then :
12627290001Sglebius  enableval=$enable_largefile;
12628290001Sglebiusfi
12629290001Sglebius
12630290001Sglebiusif test "$enable_largefile" != no; then
12631290001Sglebius
12632290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12633290001Sglebius$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12634290001Sglebiusif ${ac_cv_sys_largefile_CC+:} false; then :
12635290001Sglebius  $as_echo_n "(cached) " >&6
12636290001Sglebiuselse
12637290001Sglebius  ac_cv_sys_largefile_CC=no
12638290001Sglebius     if test "$GCC" != yes; then
12639290001Sglebius       ac_save_CC=$CC
12640290001Sglebius       while :; do
12641290001Sglebius	 # IRIX 6.2 and later do not support large files by default,
12642290001Sglebius	 # so use the C compiler's -n32 option if that helps.
12643290001Sglebius	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644290001Sglebius/* end confdefs.h.  */
12645290001Sglebius#include <sys/types.h>
12646290001Sglebius /* Check that off_t can represent 2**63 - 1 correctly.
12647290001Sglebius    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12648290001Sglebius    since some C++ compilers masquerading as C compilers
12649290001Sglebius    incorrectly reject 9223372036854775807.  */
12650290001Sglebius#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12651290001Sglebius  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12652290001Sglebius		       && LARGE_OFF_T % 2147483647 == 1)
12653290001Sglebius		      ? 1 : -1];
12654290001Sglebiusint
12655290001Sglebiusmain ()
12656290001Sglebius{
12657290001Sglebius
12658290001Sglebius  ;
12659290001Sglebius  return 0;
12660290001Sglebius}
12661290001Sglebius_ACEOF
12662290001Sglebius	 if ac_fn_c_try_compile "$LINENO"; then :
12663290001Sglebius  break
12664290001Sglebiusfi
12665290001Sglebiusrm -f core conftest.err conftest.$ac_objext
12666290001Sglebius	 CC="$CC -n32"
12667290001Sglebius	 if ac_fn_c_try_compile "$LINENO"; then :
12668290001Sglebius  ac_cv_sys_largefile_CC=' -n32'; break
12669290001Sglebiusfi
12670290001Sglebiusrm -f core conftest.err conftest.$ac_objext
12671290001Sglebius	 break
12672290001Sglebius       done
12673290001Sglebius       CC=$ac_save_CC
12674290001Sglebius       rm -f conftest.$ac_ext
12675290001Sglebius    fi
12676290001Sglebiusfi
12677290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12678290001Sglebius$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12679290001Sglebius  if test "$ac_cv_sys_largefile_CC" != no; then
12680290001Sglebius    CC=$CC$ac_cv_sys_largefile_CC
12681290001Sglebius  fi
12682290001Sglebius
12683290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12684290001Sglebius$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12685290001Sglebiusif ${ac_cv_sys_file_offset_bits+:} false; then :
12686290001Sglebius  $as_echo_n "(cached) " >&6
12687290001Sglebiuselse
12688290001Sglebius  while :; do
12689290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690290001Sglebius/* end confdefs.h.  */
12691290001Sglebius#include <sys/types.h>
12692290001Sglebius /* Check that off_t can represent 2**63 - 1 correctly.
12693290001Sglebius    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12694290001Sglebius    since some C++ compilers masquerading as C compilers
12695290001Sglebius    incorrectly reject 9223372036854775807.  */
12696290001Sglebius#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12697290001Sglebius  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12698290001Sglebius		       && LARGE_OFF_T % 2147483647 == 1)
12699290001Sglebius		      ? 1 : -1];
12700290001Sglebiusint
12701290001Sglebiusmain ()
12702290001Sglebius{
12703290001Sglebius
12704290001Sglebius  ;
12705290001Sglebius  return 0;
12706290001Sglebius}
12707290001Sglebius_ACEOF
12708290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
12709290001Sglebius  ac_cv_sys_file_offset_bits=no; break
12710290001Sglebiusfi
12711290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713290001Sglebius/* end confdefs.h.  */
12714290001Sglebius#define _FILE_OFFSET_BITS 64
12715290001Sglebius#include <sys/types.h>
12716290001Sglebius /* Check that off_t can represent 2**63 - 1 correctly.
12717290001Sglebius    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12718290001Sglebius    since some C++ compilers masquerading as C compilers
12719290001Sglebius    incorrectly reject 9223372036854775807.  */
12720290001Sglebius#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12721290001Sglebius  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12722290001Sglebius		       && LARGE_OFF_T % 2147483647 == 1)
12723290001Sglebius		      ? 1 : -1];
12724290001Sglebiusint
12725290001Sglebiusmain ()
12726290001Sglebius{
12727290001Sglebius
12728290001Sglebius  ;
12729290001Sglebius  return 0;
12730290001Sglebius}
12731290001Sglebius_ACEOF
12732290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
12733290001Sglebius  ac_cv_sys_file_offset_bits=64; break
12734290001Sglebiusfi
12735290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736290001Sglebius  ac_cv_sys_file_offset_bits=unknown
12737290001Sglebius  break
12738290001Sglebiusdone
12739290001Sglebiusfi
12740290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12741290001Sglebius$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12742290001Sglebiuscase $ac_cv_sys_file_offset_bits in #(
12743290001Sglebius  no | unknown) ;;
12744290001Sglebius  *)
12745290001Sglebiuscat >>confdefs.h <<_ACEOF
12746290001Sglebius#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12747290001Sglebius_ACEOF
12748290001Sglebius;;
12749290001Sglebiusesac
12750290001Sglebiusrm -rf conftest*
12751290001Sglebius  if test $ac_cv_sys_file_offset_bits = unknown; then
12752290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12753290001Sglebius$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12754290001Sglebiusif ${ac_cv_sys_large_files+:} false; then :
12755290001Sglebius  $as_echo_n "(cached) " >&6
12756290001Sglebiuselse
12757290001Sglebius  while :; do
12758290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759290001Sglebius/* end confdefs.h.  */
12760290001Sglebius#include <sys/types.h>
12761290001Sglebius /* Check that off_t can represent 2**63 - 1 correctly.
12762290001Sglebius    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12763290001Sglebius    since some C++ compilers masquerading as C compilers
12764290001Sglebius    incorrectly reject 9223372036854775807.  */
12765290001Sglebius#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12766290001Sglebius  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12767290001Sglebius		       && LARGE_OFF_T % 2147483647 == 1)
12768290001Sglebius		      ? 1 : -1];
12769290001Sglebiusint
12770290001Sglebiusmain ()
12771290001Sglebius{
12772290001Sglebius
12773290001Sglebius  ;
12774290001Sglebius  return 0;
12775290001Sglebius}
12776290001Sglebius_ACEOF
12777290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
12778290001Sglebius  ac_cv_sys_large_files=no; break
12779290001Sglebiusfi
12780290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782290001Sglebius/* end confdefs.h.  */
12783290001Sglebius#define _LARGE_FILES 1
12784290001Sglebius#include <sys/types.h>
12785290001Sglebius /* Check that off_t can represent 2**63 - 1 correctly.
12786290001Sglebius    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12787290001Sglebius    since some C++ compilers masquerading as C compilers
12788290001Sglebius    incorrectly reject 9223372036854775807.  */
12789290001Sglebius#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12790290001Sglebius  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12791290001Sglebius		       && LARGE_OFF_T % 2147483647 == 1)
12792290001Sglebius		      ? 1 : -1];
12793290001Sglebiusint
12794290001Sglebiusmain ()
12795290001Sglebius{
12796290001Sglebius
12797290001Sglebius  ;
12798290001Sglebius  return 0;
12799290001Sglebius}
12800290001Sglebius_ACEOF
12801290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
12802290001Sglebius  ac_cv_sys_large_files=1; break
12803290001Sglebiusfi
12804290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805290001Sglebius  ac_cv_sys_large_files=unknown
12806290001Sglebius  break
12807290001Sglebiusdone
12808290001Sglebiusfi
12809290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12810290001Sglebius$as_echo "$ac_cv_sys_large_files" >&6; }
12811290001Sglebiuscase $ac_cv_sys_large_files in #(
12812290001Sglebius  no | unknown) ;;
12813290001Sglebius  *)
12814290001Sglebiuscat >>confdefs.h <<_ACEOF
12815290001Sglebius#define _LARGE_FILES $ac_cv_sys_large_files
12816290001Sglebius_ACEOF
12817290001Sglebius;;
12818290001Sglebiusesac
12819290001Sglebiusrm -rf conftest*
12820290001Sglebius  fi
12821290001Sglebius
12822290001Sglebius
12823290001Sglebiusfi
12824290001Sglebius
12825290001Sglebius
12826290001Sglebius
12827290001Sglebius
12828290001Sglebiusntp_pkgconfig_min_version='0.15.0'
12829290001Sglebiusif test -n "$ac_tool_prefix"; then
12830290001Sglebius  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12831290001Sglebiusset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12832290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
12834290001Sglebiusif ${ac_cv_path_PKG_CONFIG+:} false; then :
12835290001Sglebius  $as_echo_n "(cached) " >&6
12836290001Sglebiuselse
12837290001Sglebius  case $PKG_CONFIG in
12838290001Sglebius  [\\/]* | ?:[\\/]*)
12839290001Sglebius  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12840290001Sglebius  ;;
12841290001Sglebius  *)
12842290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843290001Sglebiusfor as_dir in $PATH
12844290001Sglebiusdo
12845290001Sglebius  IFS=$as_save_IFS
12846290001Sglebius  test -z "$as_dir" && as_dir=.
12847290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
12848290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849290001Sglebius    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12850290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851290001Sglebius    break 2
12852290001Sglebius  fi
12853290001Sglebiusdone
12854290001Sglebius  done
12855290001SglebiusIFS=$as_save_IFS
12856290001Sglebius
12857290001Sglebius  ;;
12858290001Sglebiusesac
12859290001Sglebiusfi
12860290001SglebiusPKG_CONFIG=$ac_cv_path_PKG_CONFIG
12861290001Sglebiusif test -n "$PKG_CONFIG"; then
12862290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12863290001Sglebius$as_echo "$PKG_CONFIG" >&6; }
12864290001Sglebiuselse
12865290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866290001Sglebius$as_echo "no" >&6; }
12867290001Sglebiusfi
12868290001Sglebius
12869290001Sglebius
12870290001Sglebiusfi
12871290001Sglebiusif test -z "$ac_cv_path_PKG_CONFIG"; then
12872290001Sglebius  ac_pt_PKG_CONFIG=$PKG_CONFIG
12873290001Sglebius  # Extract the first word of "pkg-config", so it can be a program name with args.
12874290001Sglebiusset dummy pkg-config; ac_word=$2
12875290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
12877290001Sglebiusif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12878290001Sglebius  $as_echo_n "(cached) " >&6
12879290001Sglebiuselse
12880290001Sglebius  case $ac_pt_PKG_CONFIG in
12881290001Sglebius  [\\/]* | ?:[\\/]*)
12882290001Sglebius  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12883290001Sglebius  ;;
12884290001Sglebius  *)
12885290001Sglebius  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886290001Sglebiusfor as_dir in $PATH
12887290001Sglebiusdo
12888290001Sglebius  IFS=$as_save_IFS
12889290001Sglebius  test -z "$as_dir" && as_dir=.
12890290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
12891290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892290001Sglebius    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12893290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894290001Sglebius    break 2
12895290001Sglebius  fi
12896290001Sglebiusdone
12897290001Sglebius  done
12898290001SglebiusIFS=$as_save_IFS
12899290001Sglebius
12900290001Sglebius  ;;
12901290001Sglebiusesac
12902290001Sglebiusfi
12903290001Sglebiusac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12904290001Sglebiusif test -n "$ac_pt_PKG_CONFIG"; then
12905290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12906290001Sglebius$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12907290001Sglebiuselse
12908290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909290001Sglebius$as_echo "no" >&6; }
12910290001Sglebiusfi
12911290001Sglebius
12912290001Sglebius  if test "x$ac_pt_PKG_CONFIG" = x; then
12913290001Sglebius    PKG_CONFIG=""
12914290001Sglebius  else
12915290001Sglebius    case $cross_compiling:$ac_tool_warned in
12916290001Sglebiusyes:)
12917290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12918290001Sglebius$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12919290001Sglebiusac_tool_warned=yes ;;
12920290001Sglebiusesac
12921290001Sglebius    PKG_CONFIG=$ac_pt_PKG_CONFIG
12922290001Sglebius  fi
12923290001Sglebiuselse
12924290001Sglebius  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12925290001Sglebiusfi
12926290001Sglebius
12927290001Sglebius{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
12928290001Sglebius{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
12929290001Sglebius
12930290001Sglebiuscase "$PKG_CONFIG" in
12931290001Sglebius /*)
12932290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
12933290001Sglebius$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
12934290001Sglebius    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
12935290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12936290001Sglebius$as_echo "yes" >&6; }
12937290001Sglebius    else
12938290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939290001Sglebius$as_echo "no" >&6; }
12940290001Sglebius	PKG_CONFIG=""
12941290001Sglebius    fi
12942290001Sglebius    ;;
12943290001Sglebiusesac
12944290001Sglebius
12945290001Sglebius
12946290001Sglebius
12947290001Sglebius
12948290001Sglebiuscase "$enable_openssl" in
12949290001Sglebius yes)
12950290001Sglebius    have_openssl=no
12951290001Sglebius    case "$PKG_CONFIG" in
12952290001Sglebius     '')
12953290001Sglebius	;;
12954290001Sglebius     *)
12955290001Sglebius	OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
12956290001Sglebius	case "$OPENSSL_LIBS" in
12957290001Sglebius	 '') ;;
12958290001Sglebius	 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12959290001Sglebius	    have_openssl=yes
12960290001Sglebius	    ;;
12961290001Sglebius	esac
12962290001Sglebius	OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
12963290001Sglebius	;;
12964290001Sglebius    esac
12965290001Sglebius    case "$have_openssl" in
12966290001Sglebius     yes) ;;
12967290001Sglebius     *)
12968290001Sglebius	save_LIBS="$LIBS"
12969290001Sglebius	LIBS=""
12970290001Sglebius	OPENSSL_LIBS=""
12971290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12972290001Sglebius$as_echo_n "checking for library containing SSL_new... " >&6; }
12973290001Sglebiusif ${ac_cv_search_SSL_new+:} false; then :
12974290001Sglebius  $as_echo_n "(cached) " >&6
12975290001Sglebiuselse
12976290001Sglebius  ac_func_search_save_LIBS=$LIBS
12977290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978290001Sglebius/* end confdefs.h.  */
12979290001Sglebius
12980290001Sglebius/* Override any GCC internal prototype to avoid an error.
12981290001Sglebius   Use char because int might match the return type of a GCC
12982290001Sglebius   builtin and then its argument prototype would still apply.  */
12983290001Sglebius#ifdef __cplusplus
12984290001Sglebiusextern "C"
12985290001Sglebius#endif
12986290001Sglebiuschar SSL_new ();
12987290001Sglebiusint
12988290001Sglebiusmain ()
12989290001Sglebius{
12990290001Sglebiusreturn SSL_new ();
12991290001Sglebius  ;
12992290001Sglebius  return 0;
12993290001Sglebius}
12994290001Sglebius_ACEOF
12995290001Sglebiusfor ac_lib in '' ssl; do
12996290001Sglebius  if test -z "$ac_lib"; then
12997290001Sglebius    ac_res="none required"
12998290001Sglebius  else
12999290001Sglebius    ac_res=-l$ac_lib
13000290001Sglebius    LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
13001290001Sglebius  fi
13002290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
13003290001Sglebius  ac_cv_search_SSL_new=$ac_res
13004290001Sglebiusfi
13005290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
13006290001Sglebius    conftest$ac_exeext
13007290001Sglebius  if ${ac_cv_search_SSL_new+:} false; then :
13008290001Sglebius  break
13009290001Sglebiusfi
13010290001Sglebiusdone
13011290001Sglebiusif ${ac_cv_search_SSL_new+:} false; then :
13012290001Sglebius
13013290001Sglebiuselse
13014290001Sglebius  ac_cv_search_SSL_new=no
13015290001Sglebiusfi
13016290001Sglebiusrm conftest.$ac_ext
13017290001SglebiusLIBS=$ac_func_search_save_LIBS
13018290001Sglebiusfi
13019290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13020290001Sglebius$as_echo "$ac_cv_search_SSL_new" >&6; }
13021290001Sglebiusac_res=$ac_cv_search_SSL_new
13022290001Sglebiusif test "$ac_res" != no; then :
13023290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13024290001Sglebius  have_openssl=yes
13025290001Sglebius	    OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13026290001Sglebiuselse
13027290001Sglebius  have_openssl=no
13028290001Sglebiusfi
13029290001Sglebius
13030290001Sglebius	LIBS="$save_LIBS"
13031290001Sglebius	;;
13032290001Sglebius    esac
13033290001Sglebius
13034290001Sglebius
13035290001Sglebius    case "$have_openssl" in
13036290001Sglebius     yes)
13037290001Sglebius$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13038290001Sglebius ;;
13039290001Sglebius    esac
13040290001Sglebius    ;;
13041290001Sglebiusesac
13042290001Sglebius
13043290001Sglebius# check if we have and should use openssl
13044290001Sglebius if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
13045290001Sglebius  OPENSSL_TRUE=
13046290001Sglebius  OPENSSL_FALSE='#'
13047290001Sglebiuselse
13048290001Sglebius  OPENSSL_TRUE='#'
13049290001Sglebius  OPENSSL_FALSE=
13050290001Sglebiusfi
13051290001Sglebius
13052290001Sglebius
13053290001Sglebius
13054290001Sglebiusfor ac_header in  \
13055290001Sglebius  arpa/inet.h \
13056290001Sglebius  fcntl.h \
13057290001Sglebius  ifaddrs.h \
13058290001Sglebius  mach/mach_time.h \
13059290001Sglebius  netdb.h \
13060290001Sglebius  netinet/in.h \
13061290001Sglebius  netinet/in6.h \
13062290001Sglebius  netinet/tcp.h \
13063290001Sglebius  poll.h \
13064290001Sglebius  port.h \
13065290001Sglebius  stdarg.h \
13066290001Sglebius  stddef.h \
13067290001Sglebius  sys/devpoll.h \
13068290001Sglebius  sys/epoll.h \
13069290001Sglebius  sys/event.h \
13070290001Sglebius  sys/eventfd.h \
13071290001Sglebius  sys/ioctl.h \
13072290001Sglebius  sys/mman.h \
13073290001Sglebius  sys/param.h \
13074290001Sglebius  sys/queue.h \
13075290001Sglebius  sys/resource.h \
13076290001Sglebius  sys/select.h \
13077290001Sglebius  sys/sendfile.h \
13078290001Sglebius  sys/socket.h \
13079290001Sglebius  sys/stat.h \
13080290001Sglebius  sys/time.h \
13081290001Sglebius  sys/timerfd.h \
13082290001Sglebius  sys/uio.h \
13083290001Sglebius  sys/wait.h \
13084290001Sglebius
13085290001Sglebiusdo :
13086290001Sglebius  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13087290001Sglebiusac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13088290001Sglebiusif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13089290001Sglebius  cat >>confdefs.h <<_ACEOF
13090290001Sglebius#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13091290001Sglebius_ACEOF
13092290001Sglebius
13093290001Sglebiusfi
13094290001Sglebius
13095290001Sglebiusdone
13096290001Sglebius
13097290001Sglebius
13098290001Sglebiusfor ac_header in sys/sysctl.h
13099290001Sglebiusdo :
13100290001Sglebius  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13101290001Sglebius#ifdef HAVE_SYS_PARAM_H
13102290001Sglebius#include <sys/param.h>
13103290001Sglebius#endif
13104290001Sglebius
13105290001Sglebius"
13106290001Sglebiusif test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13107290001Sglebius  cat >>confdefs.h <<_ACEOF
13108290001Sglebius#define HAVE_SYS_SYSCTL_H 1
13109290001Sglebius_ACEOF
13110290001Sglebius
13111290001Sglebiusfi
13112290001Sglebius
13113290001Sglebiusdone
13114290001Sglebius
13115290001Sglebiusif test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13116290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13117290001Sglebius$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13118290001Sglebius	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119290001Sglebius/* end confdefs.h.  */
13120290001Sglebius
13121290001Sglebius#include <sys/queue.h>
13122290001Sglebius#ifdef TAILQ_FOREACH
13123290001Sglebius yes
13124290001Sglebius#endif
13125290001Sglebius
13126290001Sglebius_ACEOF
13127290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128290001Sglebius  $EGREP "yes" >/dev/null 2>&1; then :
13129290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13130290001Sglebius$as_echo "yes" >&6; }
13131290001Sglebius
13132290001Sglebius$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13133290001Sglebius
13134290001Sglebiuselse
13135290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136290001Sglebius$as_echo "no" >&6; }
13137290001Sglebius
13138290001Sglebiusfi
13139290001Sglebiusrm -f conftest*
13140290001Sglebius
13141290001Sglebiusfi
13142290001Sglebius
13143290001Sglebiusif test "x$ac_cv_header_sys_time_h" = "xyes"; then
13144290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13145290001Sglebius$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13146290001Sglebius	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147290001Sglebius/* end confdefs.h.  */
13148290001Sglebius
13149290001Sglebius#include <sys/time.h>
13150290001Sglebius#ifdef timeradd
13151290001Sglebius yes
13152290001Sglebius#endif
13153290001Sglebius
13154290001Sglebius_ACEOF
13155290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13156290001Sglebius  $EGREP "yes" >/dev/null 2>&1; then :
13157290001Sglebius
13158290001Sglebius$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13159290001Sglebius
13160290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13161290001Sglebius$as_echo "yes" >&6; }
13162290001Sglebiuselse
13163290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164290001Sglebius$as_echo "no" >&6; }
13165290001Sglebius
13166290001Sglebiusfi
13167290001Sglebiusrm -f conftest*
13168290001Sglebius
13169290001Sglebiusfi
13170290001Sglebius
13171290001Sglebiusif test "x$ac_cv_header_sys_time_h" = "xyes"; then
13172290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13173290001Sglebius$as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13174290001Sglebius	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175290001Sglebius/* end confdefs.h.  */
13176290001Sglebius
13177290001Sglebius#include <sys/time.h>
13178290001Sglebius#ifdef timercmp
13179290001Sglebius yes
13180290001Sglebius#endif
13181290001Sglebius
13182290001Sglebius_ACEOF
13183290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13184290001Sglebius  $EGREP "yes" >/dev/null 2>&1; then :
13185290001Sglebius
13186290001Sglebius$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13187290001Sglebius
13188290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13189290001Sglebius$as_echo "yes" >&6; }
13190290001Sglebiuselse
13191290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192290001Sglebius$as_echo "no" >&6; }
13193290001Sglebius
13194290001Sglebiusfi
13195290001Sglebiusrm -f conftest*
13196290001Sglebius
13197290001Sglebiusfi
13198290001Sglebius
13199290001Sglebiusif test "x$ac_cv_header_sys_time_h" = "xyes"; then
13200290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13201290001Sglebius$as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13202290001Sglebius	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203290001Sglebius/* end confdefs.h.  */
13204290001Sglebius
13205290001Sglebius#include <sys/time.h>
13206290001Sglebius#ifdef timerclear
13207290001Sglebius yes
13208290001Sglebius#endif
13209290001Sglebius
13210290001Sglebius_ACEOF
13211290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13212290001Sglebius  $EGREP "yes" >/dev/null 2>&1; then :
13213290001Sglebius
13214290001Sglebius$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13215290001Sglebius
13216290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13217290001Sglebius$as_echo "yes" >&6; }
13218290001Sglebiuselse
13219290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220290001Sglebius$as_echo "no" >&6; }
13221290001Sglebius
13222290001Sglebiusfi
13223290001Sglebiusrm -f conftest*
13224290001Sglebius
13225290001Sglebiusfi
13226290001Sglebius
13227290001Sglebiusif test "x$ac_cv_header_sys_time_h" = "xyes"; then
13228290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13229290001Sglebius$as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13230290001Sglebius	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231290001Sglebius/* end confdefs.h.  */
13232290001Sglebius
13233290001Sglebius#include <sys/time.h>
13234290001Sglebius#ifdef timerisset
13235290001Sglebius yes
13236290001Sglebius#endif
13237290001Sglebius
13238290001Sglebius_ACEOF
13239290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13240290001Sglebius  $EGREP "yes" >/dev/null 2>&1; then :
13241290001Sglebius
13242290001Sglebius$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13243290001Sglebius
13244290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245290001Sglebius$as_echo "yes" >&6; }
13246290001Sglebiuselse
13247290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248290001Sglebius$as_echo "no" >&6; }
13249290001Sglebius
13250290001Sglebiusfi
13251290001Sglebiusrm -f conftest*
13252290001Sglebius
13253290001Sglebiusfi
13254290001Sglebius
13255290001Sglebiusif test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13256290001Sglebius	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13257290001Sglebius	     #include <sys/sysctl.h>
13258290001Sglebius
13259290001Sglebius"
13260290001Sglebiusif test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13261290001Sglebius  ac_have_decl=1
13262290001Sglebiuselse
13263290001Sglebius  ac_have_decl=0
13264290001Sglebiusfi
13265290001Sglebius
13266290001Sglebiuscat >>confdefs.h <<_ACEOF
13267290001Sglebius#define HAVE_DECL_CTL_KERN $ac_have_decl
13268290001Sglebius_ACEOF
13269290001Sglebiusac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
13270290001Sglebius	     #include <sys/sysctl.h>
13271290001Sglebius
13272290001Sglebius"
13273290001Sglebiusif test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
13274290001Sglebius  ac_have_decl=1
13275290001Sglebiuselse
13276290001Sglebius  ac_have_decl=0
13277290001Sglebiusfi
13278290001Sglebius
13279290001Sglebiuscat >>confdefs.h <<_ACEOF
13280290001Sglebius#define HAVE_DECL_KERN_RANDOM $ac_have_decl
13281290001Sglebius_ACEOF
13282290001Sglebiusac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
13283290001Sglebius	     #include <sys/sysctl.h>
13284290001Sglebius
13285290001Sglebius"
13286290001Sglebiusif test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
13287290001Sglebius  ac_have_decl=1
13288290001Sglebiuselse
13289290001Sglebius  ac_have_decl=0
13290290001Sglebiusfi
13291290001Sglebius
13292290001Sglebiuscat >>confdefs.h <<_ACEOF
13293290001Sglebius#define HAVE_DECL_RANDOM_UUID $ac_have_decl
13294290001Sglebius_ACEOF
13295290001Sglebiusac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13296290001Sglebius	     #include <sys/sysctl.h>
13297290001Sglebius
13298290001Sglebius"
13299290001Sglebiusif test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13300290001Sglebius  ac_have_decl=1
13301290001Sglebiuselse
13302290001Sglebius  ac_have_decl=0
13303290001Sglebiusfi
13304290001Sglebius
13305290001Sglebiuscat >>confdefs.h <<_ACEOF
13306290001Sglebius#define HAVE_DECL_KERN_ARND $ac_have_decl
13307290001Sglebius_ACEOF
13308290001Sglebius
13309290001Sglebiusfi
13310290001Sglebius
13311290001Sglebius if test x$bwin32 = xtrue; then
13312290001Sglebius  BUILD_WIN32_TRUE=
13313290001Sglebius  BUILD_WIN32_FALSE='#'
13314290001Sglebiuselse
13315290001Sglebius  BUILD_WIN32_TRUE='#'
13316290001Sglebius  BUILD_WIN32_FALSE=
13317290001Sglebiusfi
13318290001Sglebius
13319290001Sglebius if test x$cygwin = xtrue; then
13320290001Sglebius  BUILD_CYGWIN_TRUE=
13321290001Sglebius  BUILD_CYGWIN_FALSE='#'
13322290001Sglebiuselse
13323290001Sglebius  BUILD_CYGWIN_TRUE='#'
13324290001Sglebius  BUILD_CYGWIN_FALSE=
13325290001Sglebiusfi
13326290001Sglebius
13327290001Sglebius if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
13328290001Sglebius  BUILD_WITH_NO_UNDEFINED_TRUE=
13329290001Sglebius  BUILD_WITH_NO_UNDEFINED_FALSE='#'
13330290001Sglebiuselse
13331290001Sglebius  BUILD_WITH_NO_UNDEFINED_TRUE='#'
13332290001Sglebius  BUILD_WITH_NO_UNDEFINED_FALSE=
13333290001Sglebiusfi
13334290001Sglebius
13335290001Sglebius
13336290001Sglebiusif test x$bwin32 = xtrue; then
13337290001Sglebius   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
13338290001Sglebius$as_echo_n "checking for library containing getservbyname... " >&6; }
13339290001Sglebiusif ${ac_cv_search_getservbyname+:} false; then :
13340290001Sglebius  $as_echo_n "(cached) " >&6
13341290001Sglebiuselse
13342290001Sglebius  ac_func_search_save_LIBS=$LIBS
13343290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344290001Sglebius/* end confdefs.h.  */
13345290001Sglebius
13346290001Sglebius/* Override any GCC internal prototype to avoid an error.
13347290001Sglebius   Use char because int might match the return type of a GCC
13348290001Sglebius   builtin and then its argument prototype would still apply.  */
13349290001Sglebius#ifdef __cplusplus
13350290001Sglebiusextern "C"
13351290001Sglebius#endif
13352290001Sglebiuschar getservbyname ();
13353290001Sglebiusint
13354290001Sglebiusmain ()
13355290001Sglebius{
13356290001Sglebiusreturn getservbyname ();
13357290001Sglebius  ;
13358290001Sglebius  return 0;
13359290001Sglebius}
13360290001Sglebius_ACEOF
13361290001Sglebiusfor ac_lib in '' ws2_32; do
13362290001Sglebius  if test -z "$ac_lib"; then
13363290001Sglebius    ac_res="none required"
13364290001Sglebius  else
13365290001Sglebius    ac_res=-l$ac_lib
13366290001Sglebius    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13367290001Sglebius  fi
13368290001Sglebius  if ac_fn_c_try_link "$LINENO"; then :
13369290001Sglebius  ac_cv_search_getservbyname=$ac_res
13370290001Sglebiusfi
13371290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
13372290001Sglebius    conftest$ac_exeext
13373290001Sglebius  if ${ac_cv_search_getservbyname+:} false; then :
13374290001Sglebius  break
13375290001Sglebiusfi
13376290001Sglebiusdone
13377290001Sglebiusif ${ac_cv_search_getservbyname+:} false; then :
13378290001Sglebius
13379290001Sglebiuselse
13380290001Sglebius  ac_cv_search_getservbyname=no
13381290001Sglebiusfi
13382290001Sglebiusrm conftest.$ac_ext
13383290001SglebiusLIBS=$ac_func_search_save_LIBS
13384290001Sglebiusfi
13385290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13386290001Sglebius$as_echo "$ac_cv_search_getservbyname" >&6; }
13387290001Sglebiusac_res=$ac_cv_search_getservbyname
13388290001Sglebiusif test "$ac_res" != no; then :
13389290001Sglebius  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13390290001Sglebius
13391290001Sglebiusfi
13392290001Sglebius
13393290001Sglebiusfi
13394290001Sglebius
13395290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13396290001Sglebius$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13397290001Sglebiusif ${ac_cv_c_const+:} false; then :
13398290001Sglebius  $as_echo_n "(cached) " >&6
13399290001Sglebiuselse
13400290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401290001Sglebius/* end confdefs.h.  */
13402290001Sglebius
13403290001Sglebiusint
13404290001Sglebiusmain ()
13405290001Sglebius{
13406290001Sglebius
13407290001Sglebius#ifndef __cplusplus
13408290001Sglebius  /* Ultrix mips cc rejects this sort of thing.  */
13409290001Sglebius  typedef int charset[2];
13410290001Sglebius  const charset cs = { 0, 0 };
13411290001Sglebius  /* SunOS 4.1.1 cc rejects this.  */
13412290001Sglebius  char const *const *pcpcc;
13413290001Sglebius  char **ppc;
13414290001Sglebius  /* NEC SVR4.0.2 mips cc rejects this.  */
13415290001Sglebius  struct point {int x, y;};
13416290001Sglebius  static struct point const zero = {0,0};
13417290001Sglebius  /* AIX XL C 1.02.0.0 rejects this.
13418290001Sglebius     It does not let you subtract one const X* pointer from another in
13419290001Sglebius     an arm of an if-expression whose if-part is not a constant
13420290001Sglebius     expression */
13421290001Sglebius  const char *g = "string";
13422290001Sglebius  pcpcc = &g + (g ? g-g : 0);
13423290001Sglebius  /* HPUX 7.0 cc rejects these. */
13424290001Sglebius  ++pcpcc;
13425290001Sglebius  ppc = (char**) pcpcc;
13426290001Sglebius  pcpcc = (char const *const *) ppc;
13427290001Sglebius  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13428290001Sglebius    char tx;
13429290001Sglebius    char *t = &tx;
13430290001Sglebius    char const *s = 0 ? (char *) 0 : (char const *) 0;
13431290001Sglebius
13432290001Sglebius    *t++ = 0;
13433290001Sglebius    if (s) return 0;
13434290001Sglebius  }
13435290001Sglebius  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13436290001Sglebius    int x[] = {25, 17};
13437290001Sglebius    const int *foo = &x[0];
13438290001Sglebius    ++foo;
13439290001Sglebius  }
13440290001Sglebius  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13441290001Sglebius    typedef const int *iptr;
13442290001Sglebius    iptr p = 0;
13443290001Sglebius    ++p;
13444290001Sglebius  }
13445290001Sglebius  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13446290001Sglebius       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13447290001Sglebius    struct s { int j; const int *ap[3]; } bx;
13448290001Sglebius    struct s *b = &bx; b->j = 5;
13449290001Sglebius  }
13450290001Sglebius  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13451290001Sglebius    const int foo = 10;
13452290001Sglebius    if (!foo) return 0;
13453290001Sglebius  }
13454290001Sglebius  return !cs[0] && !zero.x;
13455290001Sglebius#endif
13456290001Sglebius
13457290001Sglebius  ;
13458290001Sglebius  return 0;
13459290001Sglebius}
13460290001Sglebius_ACEOF
13461290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
13462290001Sglebius  ac_cv_c_const=yes
13463290001Sglebiuselse
13464290001Sglebius  ac_cv_c_const=no
13465290001Sglebiusfi
13466290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467290001Sglebiusfi
13468290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13469290001Sglebius$as_echo "$ac_cv_c_const" >&6; }
13470290001Sglebiusif test $ac_cv_c_const = no; then
13471290001Sglebius
13472290001Sglebius$as_echo "#define const /**/" >>confdefs.h
13473290001Sglebius
13474290001Sglebiusfi
13475290001Sglebius
13476290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13477290001Sglebius$as_echo_n "checking for inline... " >&6; }
13478290001Sglebiusif ${ac_cv_c_inline+:} false; then :
13479290001Sglebius  $as_echo_n "(cached) " >&6
13480290001Sglebiuselse
13481290001Sglebius  ac_cv_c_inline=no
13482290001Sglebiusfor ac_kw in inline __inline__ __inline; do
13483290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484290001Sglebius/* end confdefs.h.  */
13485290001Sglebius#ifndef __cplusplus
13486290001Sglebiustypedef int foo_t;
13487290001Sglebiusstatic $ac_kw foo_t static_foo () {return 0; }
13488290001Sglebius$ac_kw foo_t foo () {return 0; }
13489290001Sglebius#endif
13490290001Sglebius
13491290001Sglebius_ACEOF
13492290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
13493290001Sglebius  ac_cv_c_inline=$ac_kw
13494290001Sglebiusfi
13495290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496290001Sglebius  test "$ac_cv_c_inline" != no && break
13497290001Sglebiusdone
13498290001Sglebius
13499290001Sglebiusfi
13500290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13501290001Sglebius$as_echo "$ac_cv_c_inline" >&6; }
13502290001Sglebius
13503290001Sglebiuscase $ac_cv_c_inline in
13504290001Sglebius  inline | yes) ;;
13505290001Sglebius  *)
13506290001Sglebius    case $ac_cv_c_inline in
13507290001Sglebius      no) ac_val=;;
13508290001Sglebius      *) ac_val=$ac_cv_c_inline;;
13509290001Sglebius    esac
13510290001Sglebius    cat >>confdefs.h <<_ACEOF
13511290001Sglebius#ifndef __cplusplus
13512290001Sglebius#define inline $ac_val
13513290001Sglebius#endif
13514290001Sglebius_ACEOF
13515290001Sglebius    ;;
13516290001Sglebiusesac
13517290001Sglebius
13518290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13519290001Sglebius$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13520290001Sglebiusif ${ac_cv_header_time+:} false; then :
13521290001Sglebius  $as_echo_n "(cached) " >&6
13522290001Sglebiuselse
13523290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524290001Sglebius/* end confdefs.h.  */
13525290001Sglebius#include <sys/types.h>
13526290001Sglebius#include <sys/time.h>
13527290001Sglebius#include <time.h>
13528290001Sglebius
13529290001Sglebiusint
13530290001Sglebiusmain ()
13531290001Sglebius{
13532290001Sglebiusif ((struct tm *) 0)
13533290001Sglebiusreturn 0;
13534290001Sglebius  ;
13535290001Sglebius  return 0;
13536290001Sglebius}
13537290001Sglebius_ACEOF
13538290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
13539290001Sglebius  ac_cv_header_time=yes
13540290001Sglebiuselse
13541290001Sglebius  ac_cv_header_time=no
13542290001Sglebiusfi
13543290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544290001Sglebiusfi
13545290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13546290001Sglebius$as_echo "$ac_cv_header_time" >&6; }
13547290001Sglebiusif test $ac_cv_header_time = yes; then
13548290001Sglebius
13549290001Sglebius$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13550290001Sglebius
13551290001Sglebiusfi
13552290001Sglebius
13553290001Sglebius
13554290001Sglebiusfor ac_func in  \
13555290001Sglebius  accept4 \
13556290001Sglebius  arc4random \
13557290001Sglebius  arc4random_buf \
13558290001Sglebius  clock_gettime \
13559290001Sglebius  eventfd \
13560290001Sglebius  epoll_create1 \
13561290001Sglebius  fcntl \
13562290001Sglebius  getegid \
13563290001Sglebius  geteuid \
13564290001Sglebius  getifaddrs \
13565290001Sglebius  getnameinfo \
13566290001Sglebius  getprotobynumber \
13567290001Sglebius  gettimeofday \
13568290001Sglebius  inet_ntop \
13569290001Sglebius  inet_pton \
13570290001Sglebius  issetugid \
13571290001Sglebius  mach_absolute_time \
13572290001Sglebius  mmap \
13573290001Sglebius  nanosleep \
13574290001Sglebius  pipe \
13575290001Sglebius  pipe2 \
13576290001Sglebius  putenv \
13577290001Sglebius  sendfile \
13578290001Sglebius  setenv \
13579290001Sglebius  setrlimit \
13580290001Sglebius  sigaction \
13581290001Sglebius  signal \
13582290001Sglebius  splice \
13583290001Sglebius  strlcpy \
13584290001Sglebius  strsep \
13585290001Sglebius  strtok_r \
13586290001Sglebius  strtoll \
13587290001Sglebius  sysctl \
13588290001Sglebius  timerfd_create \
13589290001Sglebius  umask \
13590290001Sglebius  unsetenv \
13591290001Sglebius  usleep \
13592290001Sglebius  vasprintf \
13593290001Sglebius
13594290001Sglebiusdo :
13595290001Sglebius  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13596290001Sglebiusac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13597290001Sglebiusif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13598290001Sglebius  cat >>confdefs.h <<_ACEOF
13599290001Sglebius#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13600290001Sglebius_ACEOF
13601290001Sglebius
13602290001Sglebiusfi
13603290001Sglebiusdone
13604290001Sglebius
13605290001Sglebius if test x"$ac_cv_func_strlcpy" = xno; then
13606290001Sglebius  STRLCPY_IMPL_TRUE=
13607290001Sglebius  STRLCPY_IMPL_FALSE='#'
13608290001Sglebiuselse
13609290001Sglebius  STRLCPY_IMPL_TRUE='#'
13610290001Sglebius  STRLCPY_IMPL_FALSE=
13611290001Sglebiusfi
13612290001Sglebius
13613290001Sglebius
13614290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13615290001Sglebius$as_echo_n "checking for getaddrinfo... " >&6; }
13616290001Sglebiusif ${libevent_cv_getaddrinfo+:} false; then :
13617290001Sglebius  $as_echo_n "(cached) " >&6
13618290001Sglebiuselse
13619290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620290001Sglebius/* end confdefs.h.  */
13621290001Sglebius
13622290001Sglebius		#ifdef HAVE_NETDB_H
13623290001Sglebius		#include <netdb.h>
13624290001Sglebius		#endif
13625290001Sglebius
13626290001Sglebiusint
13627290001Sglebiusmain ()
13628290001Sglebius{
13629290001Sglebius
13630290001Sglebius		getaddrinfo;
13631290001Sglebius
13632290001Sglebius
13633290001Sglebius  ;
13634290001Sglebius  return 0;
13635290001Sglebius}
13636290001Sglebius_ACEOF
13637290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
13638290001Sglebius  libevent_cv_getaddrinfo=yes
13639290001Sglebiuselse
13640290001Sglebius  libevent_cv_getaddrinfo=no
13641290001Sglebius
13642290001Sglebiusfi
13643290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
13644290001Sglebius    conftest$ac_exeext conftest.$ac_ext
13645290001Sglebius
13646290001Sglebiusfi
13647290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13648290001Sglebius$as_echo "$libevent_cv_getaddrinfo" >&6; }
13649290001Sglebiusif test "$libevent_cv_getaddrinfo" = "yes" ; then
13650290001Sglebius
13651290001Sglebius$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13652290001Sglebius
13653290001Sglebiuselse
13654290001Sglebius
13655290001Sglebiusfor ac_func in getservbyname
13656290001Sglebiusdo :
13657290001Sglebius  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13658290001Sglebiusif test "x$ac_cv_func_getservbyname" = xyes; then :
13659290001Sglebius  cat >>confdefs.h <<_ACEOF
13660290001Sglebius#define HAVE_GETSERVBYNAME 1
13661290001Sglebius_ACEOF
13662290001Sglebius
13663290001Sglebiusfi
13664290001Sglebiusdone
13665290001Sglebius
13666290001Sglebius# Check for gethostbyname_r in all its glorious incompatible versions.
13667290001Sglebius#   (This is cut-and-pasted from Tor, which based its logic on
13668290001Sglebius#   Python's configure.in.)
13669290001Sglebius
13670290001Sglebius
13671290001Sglebiusac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13672290001Sglebiusif test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13673290001Sglebius
13674290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13675290001Sglebius$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13676290001Sglebius  OLD_CFLAGS=$CFLAGS
13677290001Sglebius  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13678290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679290001Sglebius/* end confdefs.h.  */
13680290001Sglebius
13681290001Sglebius#include <netdb.h>
13682290001Sglebius
13683290001Sglebiusint
13684290001Sglebiusmain ()
13685290001Sglebius{
13686290001Sglebius
13687290001Sglebius    char *cp1, *cp2;
13688290001Sglebius    struct hostent *h1, *h2;
13689290001Sglebius    int i1, i2;
13690290001Sglebius    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13691290001Sglebius
13692290001Sglebius  ;
13693290001Sglebius  return 0;
13694290001Sglebius}
13695290001Sglebius_ACEOF
13696290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
13697290001Sglebius
13698290001Sglebius    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13699290001Sglebius
13700290001Sglebius
13701290001Sglebius$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13702290001Sglebius
13703290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13704290001Sglebius$as_echo "6" >&6; }
13705290001Sglebius
13706290001Sglebiuselse
13707290001Sglebius
13708290001Sglebius    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709290001Sglebius/* end confdefs.h.  */
13710290001Sglebius
13711290001Sglebius#include <netdb.h>
13712290001Sglebius
13713290001Sglebiusint
13714290001Sglebiusmain ()
13715290001Sglebius{
13716290001Sglebius
13717290001Sglebius      char *cp1, *cp2;
13718290001Sglebius      struct hostent *h1;
13719290001Sglebius      int i1, i2;
13720290001Sglebius      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13721290001Sglebius
13722290001Sglebius  ;
13723290001Sglebius  return 0;
13724290001Sglebius}
13725290001Sglebius_ACEOF
13726290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
13727290001Sglebius
13728290001Sglebius      $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13729290001Sglebius
13730290001Sglebius
13731290001Sglebius$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13732290001Sglebius
13733290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13734290001Sglebius$as_echo "5" >&6; }
13735290001Sglebius
13736290001Sglebiuselse
13737290001Sglebius
13738290001Sglebius      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739290001Sglebius/* end confdefs.h.  */
13740290001Sglebius
13741290001Sglebius#include <netdb.h>
13742290001Sglebius
13743290001Sglebiusint
13744290001Sglebiusmain ()
13745290001Sglebius{
13746290001Sglebius
13747290001Sglebius       char *cp1;
13748290001Sglebius       struct hostent *h1;
13749290001Sglebius       struct hostent_data hd;
13750290001Sglebius       (void) gethostbyname_r(cp1,h1,&hd);
13751290001Sglebius
13752290001Sglebius  ;
13753290001Sglebius  return 0;
13754290001Sglebius}
13755290001Sglebius_ACEOF
13756290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
13757290001Sglebius
13758290001Sglebius       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13759290001Sglebius
13760290001Sglebius
13761290001Sglebius$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13762290001Sglebius
13763290001Sglebius       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13764290001Sglebius$as_echo "3" >&6; }
13765290001Sglebius
13766290001Sglebiuselse
13767290001Sglebius
13768290001Sglebius       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13769290001Sglebius$as_echo "0" >&6; }
13770290001Sglebius
13771290001Sglebiusfi
13772290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773290001Sglebius
13774290001Sglebiusfi
13775290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776290001Sglebius
13777290001Sglebiusfi
13778290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779290001Sglebius CFLAGS=$OLD_CFLAGS
13780290001Sglebius
13781290001Sglebiusfi
13782290001Sglebius
13783290001Sglebius
13784290001Sglebiusfi
13785290001Sglebius
13786290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13787290001Sglebius$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13788290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789290001Sglebius/* end confdefs.h.  */
13790290001Sglebius
13791290001Sglebius#define _GNU_SOURCE
13792290001Sglebius#include <fcntl.h>
13793290001Sglebius#ifdef F_SETFD
13794290001Sglebiusyes
13795290001Sglebius#endif
13796290001Sglebius
13797290001Sglebius_ACEOF
13798290001Sglebiusif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13799290001Sglebius  $EGREP "yes" >/dev/null 2>&1; then :
13800290001Sglebius
13801290001Sglebius$as_echo "#define HAVE_SETFD 1" >>confdefs.h
13802290001Sglebius
13803290001Sglebius	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13804290001Sglebius$as_echo "yes" >&6; }
13805290001Sglebiuselse
13806290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807290001Sglebius$as_echo "no" >&6; }
13808290001Sglebiusfi
13809290001Sglebiusrm -f conftest*
13810290001Sglebius
13811290001Sglebius
13812290001Sglebiusneedsignal=no
13813290001Sglebiushaveselect=no
13814290001Sglebiusif test x$bwin32 != xtrue; then
13815290001Sglebius    for ac_func in select
13816290001Sglebiusdo :
13817290001Sglebius  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13818290001Sglebiusif test "x$ac_cv_func_select" = xyes; then :
13819290001Sglebius  cat >>confdefs.h <<_ACEOF
13820290001Sglebius#define HAVE_SELECT 1
13821290001Sglebius_ACEOF
13822290001Sglebius haveselect=yes
13823290001Sglebiusfi
13824290001Sglebiusdone
13825290001Sglebius
13826290001Sglebius    if test "x$haveselect" = "xyes" ; then
13827290001Sglebius 	needsignal=yes
13828290001Sglebius    fi
13829290001Sglebiusfi
13830290001Sglebius if test "x$haveselect" = "xyes"; then
13831290001Sglebius  SELECT_BACKEND_TRUE=
13832290001Sglebius  SELECT_BACKEND_FALSE='#'
13833290001Sglebiuselse
13834290001Sglebius  SELECT_BACKEND_TRUE='#'
13835290001Sglebius  SELECT_BACKEND_FALSE=
13836290001Sglebiusfi
13837290001Sglebius
13838290001Sglebius
13839290001Sglebiushavepoll=no
13840290001Sglebiusfor ac_func in poll
13841290001Sglebiusdo :
13842290001Sglebius  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13843290001Sglebiusif test "x$ac_cv_func_poll" = xyes; then :
13844290001Sglebius  cat >>confdefs.h <<_ACEOF
13845290001Sglebius#define HAVE_POLL 1
13846290001Sglebius_ACEOF
13847290001Sglebius havepoll=yes
13848290001Sglebiusfi
13849290001Sglebiusdone
13850290001Sglebius
13851290001Sglebiusif test "x$havepoll" = "xyes" ; then
13852290001Sglebius	needsignal=yes
13853290001Sglebiusfi
13854290001Sglebius if test "x$havepoll" = "xyes"; then
13855290001Sglebius  POLL_BACKEND_TRUE=
13856290001Sglebius  POLL_BACKEND_FALSE='#'
13857290001Sglebiuselse
13858290001Sglebius  POLL_BACKEND_TRUE='#'
13859290001Sglebius  POLL_BACKEND_FALSE=
13860290001Sglebiusfi
13861290001Sglebius
13862290001Sglebius
13863290001Sglebiushavedevpoll=no
13864290001Sglebiusif test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13865290001Sglebius
13866290001Sglebius$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13867290001Sglebius
13868290001Sglebiusfi
13869290001Sglebius if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13870290001Sglebius  DEVPOLL_BACKEND_TRUE=
13871290001Sglebius  DEVPOLL_BACKEND_FALSE='#'
13872290001Sglebiuselse
13873290001Sglebius  DEVPOLL_BACKEND_TRUE='#'
13874290001Sglebius  DEVPOLL_BACKEND_FALSE=
13875290001Sglebiusfi
13876290001Sglebius
13877290001Sglebius
13878290001Sglebiushavekqueue=no
13879290001Sglebiusif test "x$ac_cv_header_sys_event_h" = "xyes"; then
13880290001Sglebius	for ac_func in kqueue
13881290001Sglebiusdo :
13882290001Sglebius  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13883290001Sglebiusif test "x$ac_cv_func_kqueue" = xyes; then :
13884290001Sglebius  cat >>confdefs.h <<_ACEOF
13885290001Sglebius#define HAVE_KQUEUE 1
13886290001Sglebius_ACEOF
13887290001Sglebius havekqueue=yes
13888290001Sglebiusfi
13889290001Sglebiusdone
13890290001Sglebius
13891290001Sglebius	if test "x$havekqueue" = "xyes" ; then
13892290001Sglebius		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13893290001Sglebius$as_echo_n "checking for working kqueue... " >&6; }
13894290001Sglebius		if test "$cross_compiling" = yes; then :
13895290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896290001Sglebius$as_echo "no" >&6; }
13897290001Sglebiuselse
13898290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899290001Sglebius/* end confdefs.h.  */
13900290001Sglebius#include <sys/types.h>
13901290001Sglebius#include <sys/time.h>
13902290001Sglebius#include <sys/event.h>
13903290001Sglebius#include <stdio.h>
13904290001Sglebius#include <unistd.h>
13905290001Sglebius#include <fcntl.h>
13906290001Sglebius
13907290001Sglebiusint
13908290001Sglebiusmain(int argc, char **argv)
13909290001Sglebius{
13910290001Sglebius	int kq;
13911290001Sglebius	int n;
13912290001Sglebius	int fd[2];
13913290001Sglebius	struct kevent ev;
13914290001Sglebius	struct timespec ts;
13915290001Sglebius	char buf[8000];
13916290001Sglebius
13917290001Sglebius	if (pipe(fd) == -1)
13918290001Sglebius		exit(1);
13919290001Sglebius	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13920290001Sglebius		exit(1);
13921290001Sglebius
13922290001Sglebius	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13923290001Sglebius		;
13924290001Sglebius
13925290001Sglebius        if ((kq = kqueue()) == -1)
13926290001Sglebius		exit(1);
13927290001Sglebius
13928290001Sglebius	memset(&ev, 0, sizeof(ev));
13929290001Sglebius	ev.ident = fd[1];
13930290001Sglebius	ev.filter = EVFILT_WRITE;
13931290001Sglebius	ev.flags = EV_ADD | EV_ENABLE;
13932290001Sglebius	n = kevent(kq, &ev, 1, NULL, 0, NULL);
13933290001Sglebius	if (n == -1)
13934290001Sglebius		exit(1);
13935290001Sglebius
13936290001Sglebius	read(fd[0], buf, sizeof(buf));
13937290001Sglebius
13938290001Sglebius	ts.tv_sec = 0;
13939290001Sglebius	ts.tv_nsec = 0;
13940290001Sglebius	n = kevent(kq, NULL, 0, &ev, 1, &ts);
13941290001Sglebius	if (n == -1 || n == 0)
13942290001Sglebius		exit(1);
13943290001Sglebius
13944290001Sglebius	exit(0);
13945290001Sglebius}
13946290001Sglebius_ACEOF
13947290001Sglebiusif ac_fn_c_try_run "$LINENO"; then :
13948290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13949290001Sglebius$as_echo "yes" >&6; }
13950290001Sglebius
13951290001Sglebius$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13952290001Sglebius
13953290001Sglebius    havekqueue=yes
13954290001Sglebius
13955290001Sglebiuselse
13956290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957290001Sglebius$as_echo "no" >&6; }
13958290001Sglebiusfi
13959290001Sglebiusrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13960290001Sglebius  conftest.$ac_objext conftest.beam conftest.$ac_ext
13961290001Sglebiusfi
13962290001Sglebius
13963290001Sglebius	fi
13964290001Sglebiusfi
13965290001Sglebius if test "x$havekqueue" = "xyes"; then
13966290001Sglebius  KQUEUE_BACKEND_TRUE=
13967290001Sglebius  KQUEUE_BACKEND_FALSE='#'
13968290001Sglebiuselse
13969290001Sglebius  KQUEUE_BACKEND_TRUE='#'
13970290001Sglebius  KQUEUE_BACKEND_FALSE=
13971290001Sglebiusfi
13972290001Sglebius
13973290001Sglebius
13974290001Sglebiushaveepollsyscall=no
13975290001Sglebiushaveepoll=no
13976290001Sglebiusfor ac_func in epoll_ctl
13977290001Sglebiusdo :
13978290001Sglebius  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13979290001Sglebiusif test "x$ac_cv_func_epoll_ctl" = xyes; then :
13980290001Sglebius  cat >>confdefs.h <<_ACEOF
13981290001Sglebius#define HAVE_EPOLL_CTL 1
13982290001Sglebius_ACEOF
13983290001Sglebius haveepoll=yes
13984290001Sglebiusfi
13985290001Sglebiusdone
13986290001Sglebius
13987290001Sglebiusif test "x$haveepoll" = "xyes" ; then
13988290001Sglebius
13989290001Sglebius$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13990290001Sglebius
13991290001Sglebius	needsignal=yes
13992290001Sglebiusfi
13993290001Sglebiusif test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13994290001Sglebius	if test "x$haveepoll" = "xno" ; then
13995290001Sglebius		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13996290001Sglebius$as_echo_n "checking for epoll system call... " >&6; }
13997290001Sglebius		if test "$cross_compiling" = yes; then :
13998290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999290001Sglebius$as_echo "no" >&6; }
14000290001Sglebiuselse
14001290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002290001Sglebius/* end confdefs.h.  */
14003290001Sglebius#include <stdint.h>
14004290001Sglebius#include <sys/param.h>
14005290001Sglebius#include <sys/types.h>
14006290001Sglebius#include <sys/syscall.h>
14007290001Sglebius#include <sys/epoll.h>
14008290001Sglebius#include <unistd.h>
14009290001Sglebius
14010290001Sglebiusint
14011290001Sglebiusepoll_create(int size)
14012290001Sglebius{
14013290001Sglebius	return (syscall(__NR_epoll_create, size));
14014290001Sglebius}
14015290001Sglebius
14016290001Sglebiusint
14017290001Sglebiusmain(int argc, char **argv)
14018290001Sglebius{
14019290001Sglebius	int epfd;
14020290001Sglebius
14021290001Sglebius	epfd = epoll_create(256);
14022290001Sglebius	exit (epfd == -1 ? 1 : 0);
14023290001Sglebius}
14024290001Sglebius_ACEOF
14025290001Sglebiusif ac_fn_c_try_run "$LINENO"; then :
14026290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14027290001Sglebius$as_echo "yes" >&6; }
14028290001Sglebius
14029290001Sglebius$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14030290001Sglebius
14031290001Sglebius    needsignal=yes
14032290001Sglebius    have_epoll=yes
14033290001Sglebius    case " $LIBOBJS " in
14034290001Sglebius  *" epoll_sub.$ac_objext "* ) ;;
14035290001Sglebius  *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
14036290001Sglebius ;;
14037290001Sglebiusesac
14038290001Sglebius
14039290001Sglebius
14040290001Sglebiuselse
14041290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042290001Sglebius$as_echo "no" >&6; }
14043290001Sglebiusfi
14044290001Sglebiusrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14045290001Sglebius  conftest.$ac_objext conftest.beam conftest.$ac_ext
14046290001Sglebiusfi
14047290001Sglebius
14048290001Sglebius	fi
14049290001Sglebiusfi
14050290001Sglebius if test "x$haveepoll" = "xyes"; then
14051290001Sglebius  EPOLL_BACKEND_TRUE=
14052290001Sglebius  EPOLL_BACKEND_FALSE='#'
14053290001Sglebiuselse
14054290001Sglebius  EPOLL_BACKEND_TRUE='#'
14055290001Sglebius  EPOLL_BACKEND_FALSE=
14056290001Sglebiusfi
14057290001Sglebius
14058290001Sglebius
14059290001Sglebiushaveeventports=no
14060290001Sglebiusfor ac_func in port_create
14061290001Sglebiusdo :
14062290001Sglebius  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14063290001Sglebiusif test "x$ac_cv_func_port_create" = xyes; then :
14064290001Sglebius  cat >>confdefs.h <<_ACEOF
14065290001Sglebius#define HAVE_PORT_CREATE 1
14066290001Sglebius_ACEOF
14067290001Sglebius haveeventports=yes
14068290001Sglebiusfi
14069290001Sglebiusdone
14070290001Sglebius
14071290001Sglebiusif test "x$haveeventports" = "xyes" ; then
14072290001Sglebius
14073290001Sglebius$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
14074290001Sglebius
14075290001Sglebius	needsignal=yes
14076290001Sglebiusfi
14077290001Sglebius if test "x$haveeventports" = "xyes"; then
14078290001Sglebius  EVPORT_BACKEND_TRUE=
14079290001Sglebius  EVPORT_BACKEND_FALSE='#'
14080290001Sglebiuselse
14081290001Sglebius  EVPORT_BACKEND_TRUE='#'
14082290001Sglebius  EVPORT_BACKEND_FALSE=
14083290001Sglebiusfi
14084290001Sglebius
14085290001Sglebius
14086290001Sglebiusif test "x$bwin32" = "xtrue"; then
14087290001Sglebius	needsignal=yes
14088290001Sglebiusfi
14089290001Sglebius
14090290001Sglebius if test "x$needsignal" = "xyes"; then
14091290001Sglebius  SIGNAL_SUPPORT_TRUE=
14092290001Sglebius  SIGNAL_SUPPORT_FALSE='#'
14093290001Sglebiuselse
14094290001Sglebius  SIGNAL_SUPPORT_TRUE='#'
14095290001Sglebius  SIGNAL_SUPPORT_FALSE=
14096290001Sglebiusfi
14097290001Sglebius
14098290001Sglebius
14099290001Sglebiusac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14100290001Sglebiusif test "x$ac_cv_type_pid_t" = xyes; then :
14101290001Sglebius
14102290001Sglebiuselse
14103290001Sglebius
14104290001Sglebiuscat >>confdefs.h <<_ACEOF
14105290001Sglebius#define pid_t int
14106290001Sglebius_ACEOF
14107290001Sglebius
14108290001Sglebiusfi
14109290001Sglebius
14110290001Sglebiusac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14111290001Sglebiusif test "x$ac_cv_type_size_t" = xyes; then :
14112290001Sglebius
14113290001Sglebiuselse
14114290001Sglebius
14115290001Sglebiuscat >>confdefs.h <<_ACEOF
14116290001Sglebius#define size_t unsigned int
14117290001Sglebius_ACEOF
14118290001Sglebius
14119290001Sglebiusfi
14120290001Sglebius
14121290001Sglebiusac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14122290001Sglebiusif test "x$ac_cv_type_ssize_t" = xyes; then :
14123290001Sglebius
14124290001Sglebiuselse
14125290001Sglebius
14126290001Sglebiuscat >>confdefs.h <<_ACEOF
14127290001Sglebius#define ssize_t int
14128290001Sglebius_ACEOF
14129290001Sglebius
14130290001Sglebiusfi
14131290001Sglebius
14132290001Sglebius
14133290001Sglebiusac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14134290001Sglebius#include <stdint.h>
14135290001Sglebius#elif defined(HAVE_INTTYPES_H)
14136290001Sglebius#include <inttypes.h>
14137290001Sglebius#endif
14138290001Sglebius#ifdef HAVE_SYS_TYPES_H
14139290001Sglebius#include <sys/types.h>
14140290001Sglebius#endif
14141290001Sglebius"
14142290001Sglebiusif test "x$ac_cv_type_uint64_t" = xyes; then :
14143290001Sglebius
14144290001Sglebiuscat >>confdefs.h <<_ACEOF
14145290001Sglebius#define HAVE_UINT64_T 1
14146290001Sglebius_ACEOF
14147290001Sglebius
14148290001Sglebius
14149290001Sglebiusfi
14150290001Sglebiusac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
14151290001Sglebius#include <stdint.h>
14152290001Sglebius#elif defined(HAVE_INTTYPES_H)
14153290001Sglebius#include <inttypes.h>
14154290001Sglebius#endif
14155290001Sglebius#ifdef HAVE_SYS_TYPES_H
14156290001Sglebius#include <sys/types.h>
14157290001Sglebius#endif
14158290001Sglebius"
14159290001Sglebiusif test "x$ac_cv_type_uint32_t" = xyes; then :
14160290001Sglebius
14161290001Sglebiuscat >>confdefs.h <<_ACEOF
14162290001Sglebius#define HAVE_UINT32_T 1
14163290001Sglebius_ACEOF
14164290001Sglebius
14165290001Sglebius
14166290001Sglebiusfi
14167290001Sglebiusac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
14168290001Sglebius#include <stdint.h>
14169290001Sglebius#elif defined(HAVE_INTTYPES_H)
14170290001Sglebius#include <inttypes.h>
14171290001Sglebius#endif
14172290001Sglebius#ifdef HAVE_SYS_TYPES_H
14173290001Sglebius#include <sys/types.h>
14174290001Sglebius#endif
14175290001Sglebius"
14176290001Sglebiusif test "x$ac_cv_type_uint16_t" = xyes; then :
14177290001Sglebius
14178290001Sglebiuscat >>confdefs.h <<_ACEOF
14179290001Sglebius#define HAVE_UINT16_T 1
14180290001Sglebius_ACEOF
14181290001Sglebius
14182290001Sglebius
14183290001Sglebiusfi
14184290001Sglebiusac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
14185290001Sglebius#include <stdint.h>
14186290001Sglebius#elif defined(HAVE_INTTYPES_H)
14187290001Sglebius#include <inttypes.h>
14188290001Sglebius#endif
14189290001Sglebius#ifdef HAVE_SYS_TYPES_H
14190290001Sglebius#include <sys/types.h>
14191290001Sglebius#endif
14192290001Sglebius"
14193290001Sglebiusif test "x$ac_cv_type_uint8_t" = xyes; then :
14194290001Sglebius
14195290001Sglebiuscat >>confdefs.h <<_ACEOF
14196290001Sglebius#define HAVE_UINT8_T 1
14197290001Sglebius_ACEOF
14198290001Sglebius
14199290001Sglebius
14200290001Sglebiusfi
14201290001Sglebiusac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
14202290001Sglebius#include <stdint.h>
14203290001Sglebius#elif defined(HAVE_INTTYPES_H)
14204290001Sglebius#include <inttypes.h>
14205290001Sglebius#endif
14206290001Sglebius#ifdef HAVE_SYS_TYPES_H
14207290001Sglebius#include <sys/types.h>
14208290001Sglebius#endif
14209290001Sglebius"
14210290001Sglebiusif test "x$ac_cv_type_uintptr_t" = xyes; then :
14211290001Sglebius
14212290001Sglebiuscat >>confdefs.h <<_ACEOF
14213290001Sglebius#define HAVE_UINTPTR_T 1
14214290001Sglebius_ACEOF
14215290001Sglebius
14216290001Sglebius
14217290001Sglebiusfi
14218290001Sglebius
14219290001Sglebius
14220290001Sglebiusac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
14221290001Sglebius#include <sys/types.h>
14222290001Sglebius#endif
14223290001Sglebius#ifdef HAVE_SYS_SELECT_H
14224290001Sglebius#include <sys/select.h>
14225290001Sglebius#endif
14226290001Sglebius"
14227290001Sglebiusif test "x$ac_cv_type_fd_mask" = xyes; then :
14228290001Sglebius
14229290001Sglebiuscat >>confdefs.h <<_ACEOF
14230290001Sglebius#define HAVE_FD_MASK 1
14231290001Sglebius_ACEOF
14232290001Sglebius
14233290001Sglebius
14234290001Sglebiusfi
14235290001Sglebius
14236290001Sglebius
14237290001Sglebius# The cast to long int works around a bug in the HP C Compiler
14238290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14239290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14240290001Sglebius# This bug is HP SR number 8606223364.
14241290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14242290001Sglebius$as_echo_n "checking size of long long... " >&6; }
14243290001Sglebiusif ${ac_cv_sizeof_long_long+:} false; then :
14244290001Sglebius  $as_echo_n "(cached) " >&6
14245290001Sglebiuselse
14246290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
14247290001Sglebius
14248290001Sglebiuselse
14249290001Sglebius  if test "$ac_cv_type_long_long" = yes; then
14250290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14251290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14252290001Sglebiusas_fn_error 77 "cannot compute sizeof (long long)
14253290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
14254290001Sglebius   else
14255290001Sglebius     ac_cv_sizeof_long_long=0
14256290001Sglebius   fi
14257290001Sglebiusfi
14258290001Sglebius
14259290001Sglebiusfi
14260290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14261290001Sglebius$as_echo "$ac_cv_sizeof_long_long" >&6; }
14262290001Sglebius
14263290001Sglebius
14264290001Sglebius
14265290001Sglebiuscat >>confdefs.h <<_ACEOF
14266290001Sglebius#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14267290001Sglebius_ACEOF
14268290001Sglebius
14269290001Sglebius
14270290001Sglebius# The cast to long int works around a bug in the HP C Compiler
14271290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14272290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14273290001Sglebius# This bug is HP SR number 8606223364.
14274290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14275290001Sglebius$as_echo_n "checking size of long... " >&6; }
14276290001Sglebiusif ${ac_cv_sizeof_long+:} false; then :
14277290001Sglebius  $as_echo_n "(cached) " >&6
14278290001Sglebiuselse
14279290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14280290001Sglebius
14281290001Sglebiuselse
14282290001Sglebius  if test "$ac_cv_type_long" = yes; then
14283290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14284290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14285290001Sglebiusas_fn_error 77 "cannot compute sizeof (long)
14286290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
14287290001Sglebius   else
14288290001Sglebius     ac_cv_sizeof_long=0
14289290001Sglebius   fi
14290290001Sglebiusfi
14291290001Sglebius
14292290001Sglebiusfi
14293290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14294290001Sglebius$as_echo "$ac_cv_sizeof_long" >&6; }
14295290001Sglebius
14296290001Sglebius
14297290001Sglebius
14298290001Sglebiuscat >>confdefs.h <<_ACEOF
14299290001Sglebius#define SIZEOF_LONG $ac_cv_sizeof_long
14300290001Sglebius_ACEOF
14301290001Sglebius
14302290001Sglebius
14303290001Sglebius# The cast to long int works around a bug in the HP C Compiler
14304290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14305290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14306290001Sglebius# This bug is HP SR number 8606223364.
14307290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14308290001Sglebius$as_echo_n "checking size of int... " >&6; }
14309290001Sglebiusif ${ac_cv_sizeof_int+:} false; then :
14310290001Sglebius  $as_echo_n "(cached) " >&6
14311290001Sglebiuselse
14312290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14313290001Sglebius
14314290001Sglebiuselse
14315290001Sglebius  if test "$ac_cv_type_int" = yes; then
14316290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14317290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14318290001Sglebiusas_fn_error 77 "cannot compute sizeof (int)
14319290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
14320290001Sglebius   else
14321290001Sglebius     ac_cv_sizeof_int=0
14322290001Sglebius   fi
14323290001Sglebiusfi
14324290001Sglebius
14325290001Sglebiusfi
14326290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14327290001Sglebius$as_echo "$ac_cv_sizeof_int" >&6; }
14328290001Sglebius
14329290001Sglebius
14330290001Sglebius
14331290001Sglebiuscat >>confdefs.h <<_ACEOF
14332290001Sglebius#define SIZEOF_INT $ac_cv_sizeof_int
14333290001Sglebius_ACEOF
14334290001Sglebius
14335290001Sglebius
14336290001Sglebius# The cast to long int works around a bug in the HP C Compiler
14337290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14338290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14339290001Sglebius# This bug is HP SR number 8606223364.
14340290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14341290001Sglebius$as_echo_n "checking size of short... " >&6; }
14342290001Sglebiusif ${ac_cv_sizeof_short+:} false; then :
14343290001Sglebius  $as_echo_n "(cached) " >&6
14344290001Sglebiuselse
14345290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14346290001Sglebius
14347290001Sglebiuselse
14348290001Sglebius  if test "$ac_cv_type_short" = yes; then
14349290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14350290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14351290001Sglebiusas_fn_error 77 "cannot compute sizeof (short)
14352290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
14353290001Sglebius   else
14354290001Sglebius     ac_cv_sizeof_short=0
14355290001Sglebius   fi
14356290001Sglebiusfi
14357290001Sglebius
14358290001Sglebiusfi
14359290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14360290001Sglebius$as_echo "$ac_cv_sizeof_short" >&6; }
14361290001Sglebius
14362290001Sglebius
14363290001Sglebius
14364290001Sglebiuscat >>confdefs.h <<_ACEOF
14365290001Sglebius#define SIZEOF_SHORT $ac_cv_sizeof_short
14366290001Sglebius_ACEOF
14367290001Sglebius
14368290001Sglebius
14369290001Sglebius# The cast to long int works around a bug in the HP C Compiler
14370290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14371290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14372290001Sglebius# This bug is HP SR number 8606223364.
14373290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14374290001Sglebius$as_echo_n "checking size of size_t... " >&6; }
14375290001Sglebiusif ${ac_cv_sizeof_size_t+:} false; then :
14376290001Sglebius  $as_echo_n "(cached) " >&6
14377290001Sglebiuselse
14378290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14379290001Sglebius
14380290001Sglebiuselse
14381290001Sglebius  if test "$ac_cv_type_size_t" = yes; then
14382290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14383290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14384290001Sglebiusas_fn_error 77 "cannot compute sizeof (size_t)
14385290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
14386290001Sglebius   else
14387290001Sglebius     ac_cv_sizeof_size_t=0
14388290001Sglebius   fi
14389290001Sglebiusfi
14390290001Sglebius
14391290001Sglebiusfi
14392290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14393290001Sglebius$as_echo "$ac_cv_sizeof_size_t" >&6; }
14394290001Sglebius
14395290001Sglebius
14396290001Sglebius
14397290001Sglebiuscat >>confdefs.h <<_ACEOF
14398290001Sglebius#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14399290001Sglebius_ACEOF
14400290001Sglebius
14401290001Sglebius
14402290001Sglebius# The cast to long int works around a bug in the HP C Compiler
14403290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14404290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14405290001Sglebius# This bug is HP SR number 8606223364.
14406290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14407290001Sglebius$as_echo_n "checking size of void *... " >&6; }
14408290001Sglebiusif ${ac_cv_sizeof_void_p+:} false; then :
14409290001Sglebius  $as_echo_n "(cached) " >&6
14410290001Sglebiuselse
14411290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14412290001Sglebius
14413290001Sglebiuselse
14414290001Sglebius  if test "$ac_cv_type_void_p" = yes; then
14415290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14416290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14417290001Sglebiusas_fn_error 77 "cannot compute sizeof (void *)
14418290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
14419290001Sglebius   else
14420290001Sglebius     ac_cv_sizeof_void_p=0
14421290001Sglebius   fi
14422290001Sglebiusfi
14423290001Sglebius
14424290001Sglebiusfi
14425290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14426290001Sglebius$as_echo "$ac_cv_sizeof_void_p" >&6; }
14427290001Sglebius
14428290001Sglebius
14429290001Sglebius
14430290001Sglebiuscat >>confdefs.h <<_ACEOF
14431290001Sglebius#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14432290001Sglebius_ACEOF
14433290001Sglebius
14434290001Sglebius
14435290001Sglebius# The cast to long int works around a bug in the HP C Compiler
14436290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14437290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14438290001Sglebius# This bug is HP SR number 8606223364.
14439290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14440290001Sglebius$as_echo_n "checking size of off_t... " >&6; }
14441290001Sglebiusif ${ac_cv_sizeof_off_t+:} false; then :
14442290001Sglebius  $as_echo_n "(cached) " >&6
14443290001Sglebiuselse
14444290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14445290001Sglebius
14446290001Sglebiuselse
14447290001Sglebius  if test "$ac_cv_type_off_t" = yes; then
14448290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14449290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14450290001Sglebiusas_fn_error 77 "cannot compute sizeof (off_t)
14451290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
14452290001Sglebius   else
14453290001Sglebius     ac_cv_sizeof_off_t=0
14454290001Sglebius   fi
14455290001Sglebiusfi
14456290001Sglebius
14457290001Sglebiusfi
14458290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14459290001Sglebius$as_echo "$ac_cv_sizeof_off_t" >&6; }
14460290001Sglebius
14461290001Sglebius
14462290001Sglebius
14463290001Sglebiuscat >>confdefs.h <<_ACEOF
14464290001Sglebius#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14465290001Sglebius_ACEOF
14466290001Sglebius
14467290001Sglebius
14468290001Sglebius
14469290001Sglebiusac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14470290001Sglebius#include <sys/types.h>
14471290001Sglebius#ifdef HAVE_NETINET_IN_H
14472290001Sglebius#include <netinet/in.h>
14473290001Sglebius#endif
14474290001Sglebius#ifdef HAVE_NETINET_IN6_H
14475290001Sglebius#include <netinet/in6.h>
14476290001Sglebius#endif
14477290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14478290001Sglebius#include <sys/socket.h>
14479290001Sglebius#endif
14480290001Sglebius#ifdef HAVE_NETDB_H
14481290001Sglebius#include <netdb.h>
14482290001Sglebius#endif
14483290001Sglebius#ifdef _WIN32
14484290001Sglebius#define WIN32_WINNT 0x400
14485290001Sglebius#define _WIN32_WINNT 0x400
14486290001Sglebius#define WIN32_LEAN_AND_MEAN
14487290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14488290001Sglebius#include <winsock.h>
14489290001Sglebius#else
14490290001Sglebius#include <winsock2.h>
14491290001Sglebius#include <ws2tcpip.h>
14492290001Sglebius#endif
14493290001Sglebius#endif
14494290001Sglebius
14495290001Sglebius"
14496290001Sglebiusif test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14497290001Sglebius
14498290001Sglebiuscat >>confdefs.h <<_ACEOF
14499290001Sglebius#define HAVE_STRUCT_IN6_ADDR 1
14500290001Sglebius_ACEOF
14501290001Sglebius
14502290001Sglebius
14503290001Sglebiusfi
14504290001Sglebiusac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14505290001Sglebius#include <sys/types.h>
14506290001Sglebius#ifdef HAVE_NETINET_IN_H
14507290001Sglebius#include <netinet/in.h>
14508290001Sglebius#endif
14509290001Sglebius#ifdef HAVE_NETINET_IN6_H
14510290001Sglebius#include <netinet/in6.h>
14511290001Sglebius#endif
14512290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14513290001Sglebius#include <sys/socket.h>
14514290001Sglebius#endif
14515290001Sglebius#ifdef HAVE_NETDB_H
14516290001Sglebius#include <netdb.h>
14517290001Sglebius#endif
14518290001Sglebius#ifdef _WIN32
14519290001Sglebius#define WIN32_WINNT 0x400
14520290001Sglebius#define _WIN32_WINNT 0x400
14521290001Sglebius#define WIN32_LEAN_AND_MEAN
14522290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14523290001Sglebius#include <winsock.h>
14524290001Sglebius#else
14525290001Sglebius#include <winsock2.h>
14526290001Sglebius#include <ws2tcpip.h>
14527290001Sglebius#endif
14528290001Sglebius#endif
14529290001Sglebius
14530290001Sglebius"
14531290001Sglebiusif test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14532290001Sglebius
14533290001Sglebiuscat >>confdefs.h <<_ACEOF
14534290001Sglebius#define HAVE_STRUCT_SOCKADDR_IN6 1
14535290001Sglebius_ACEOF
14536290001Sglebius
14537290001Sglebius
14538290001Sglebiusfi
14539290001Sglebiusac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14540290001Sglebius#include <sys/types.h>
14541290001Sglebius#ifdef HAVE_NETINET_IN_H
14542290001Sglebius#include <netinet/in.h>
14543290001Sglebius#endif
14544290001Sglebius#ifdef HAVE_NETINET_IN6_H
14545290001Sglebius#include <netinet/in6.h>
14546290001Sglebius#endif
14547290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14548290001Sglebius#include <sys/socket.h>
14549290001Sglebius#endif
14550290001Sglebius#ifdef HAVE_NETDB_H
14551290001Sglebius#include <netdb.h>
14552290001Sglebius#endif
14553290001Sglebius#ifdef _WIN32
14554290001Sglebius#define WIN32_WINNT 0x400
14555290001Sglebius#define _WIN32_WINNT 0x400
14556290001Sglebius#define WIN32_LEAN_AND_MEAN
14557290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14558290001Sglebius#include <winsock.h>
14559290001Sglebius#else
14560290001Sglebius#include <winsock2.h>
14561290001Sglebius#include <ws2tcpip.h>
14562290001Sglebius#endif
14563290001Sglebius#endif
14564290001Sglebius
14565290001Sglebius"
14566290001Sglebiusif test "x$ac_cv_type_sa_family_t" = xyes; then :
14567290001Sglebius
14568290001Sglebiuscat >>confdefs.h <<_ACEOF
14569290001Sglebius#define HAVE_SA_FAMILY_T 1
14570290001Sglebius_ACEOF
14571290001Sglebius
14572290001Sglebius
14573290001Sglebiusfi
14574290001Sglebiusac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14575290001Sglebius#include <sys/types.h>
14576290001Sglebius#ifdef HAVE_NETINET_IN_H
14577290001Sglebius#include <netinet/in.h>
14578290001Sglebius#endif
14579290001Sglebius#ifdef HAVE_NETINET_IN6_H
14580290001Sglebius#include <netinet/in6.h>
14581290001Sglebius#endif
14582290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14583290001Sglebius#include <sys/socket.h>
14584290001Sglebius#endif
14585290001Sglebius#ifdef HAVE_NETDB_H
14586290001Sglebius#include <netdb.h>
14587290001Sglebius#endif
14588290001Sglebius#ifdef _WIN32
14589290001Sglebius#define WIN32_WINNT 0x400
14590290001Sglebius#define _WIN32_WINNT 0x400
14591290001Sglebius#define WIN32_LEAN_AND_MEAN
14592290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14593290001Sglebius#include <winsock.h>
14594290001Sglebius#else
14595290001Sglebius#include <winsock2.h>
14596290001Sglebius#include <ws2tcpip.h>
14597290001Sglebius#endif
14598290001Sglebius#endif
14599290001Sglebius
14600290001Sglebius"
14601290001Sglebiusif test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14602290001Sglebius
14603290001Sglebiuscat >>confdefs.h <<_ACEOF
14604290001Sglebius#define HAVE_STRUCT_ADDRINFO 1
14605290001Sglebius_ACEOF
14606290001Sglebius
14607290001Sglebius
14608290001Sglebiusfi
14609290001Sglebiusac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14610290001Sglebius#include <sys/types.h>
14611290001Sglebius#ifdef HAVE_NETINET_IN_H
14612290001Sglebius#include <netinet/in.h>
14613290001Sglebius#endif
14614290001Sglebius#ifdef HAVE_NETINET_IN6_H
14615290001Sglebius#include <netinet/in6.h>
14616290001Sglebius#endif
14617290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14618290001Sglebius#include <sys/socket.h>
14619290001Sglebius#endif
14620290001Sglebius#ifdef HAVE_NETDB_H
14621290001Sglebius#include <netdb.h>
14622290001Sglebius#endif
14623290001Sglebius#ifdef _WIN32
14624290001Sglebius#define WIN32_WINNT 0x400
14625290001Sglebius#define _WIN32_WINNT 0x400
14626290001Sglebius#define WIN32_LEAN_AND_MEAN
14627290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14628290001Sglebius#include <winsock.h>
14629290001Sglebius#else
14630290001Sglebius#include <winsock2.h>
14631290001Sglebius#include <ws2tcpip.h>
14632290001Sglebius#endif
14633290001Sglebius#endif
14634290001Sglebius
14635290001Sglebius"
14636290001Sglebiusif test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14637290001Sglebius
14638290001Sglebiuscat >>confdefs.h <<_ACEOF
14639290001Sglebius#define HAVE_STRUCT_SOCKADDR_STORAGE 1
14640290001Sglebius_ACEOF
14641290001Sglebius
14642290001Sglebius
14643290001Sglebiusfi
14644290001Sglebius
14645290001Sglebiusac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14646290001Sglebius#ifdef HAVE_NETINET_IN_H
14647290001Sglebius#include <netinet/in.h>
14648290001Sglebius#endif
14649290001Sglebius#ifdef HAVE_NETINET_IN6_H
14650290001Sglebius#include <netinet/in6.h>
14651290001Sglebius#endif
14652290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14653290001Sglebius#include <sys/socket.h>
14654290001Sglebius#endif
14655290001Sglebius#ifdef _WIN32
14656290001Sglebius#define WIN32_WINNT 0x400
14657290001Sglebius#define _WIN32_WINNT 0x400
14658290001Sglebius#define WIN32_LEAN_AND_MEAN
14659290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14660290001Sglebius#include <winsock.h>
14661290001Sglebius#else
14662290001Sglebius#include <winsock2.h>
14663290001Sglebius#include <ws2tcpip.h>
14664290001Sglebius#endif
14665290001Sglebius#endif
14666290001Sglebius
14667290001Sglebius"
14668290001Sglebiusif test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14669290001Sglebius
14670290001Sglebiuscat >>confdefs.h <<_ACEOF
14671290001Sglebius#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14672290001Sglebius_ACEOF
14673290001Sglebius
14674290001Sglebius
14675290001Sglebiusfi
14676290001Sglebiusac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14677290001Sglebius#ifdef HAVE_NETINET_IN_H
14678290001Sglebius#include <netinet/in.h>
14679290001Sglebius#endif
14680290001Sglebius#ifdef HAVE_NETINET_IN6_H
14681290001Sglebius#include <netinet/in6.h>
14682290001Sglebius#endif
14683290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14684290001Sglebius#include <sys/socket.h>
14685290001Sglebius#endif
14686290001Sglebius#ifdef _WIN32
14687290001Sglebius#define WIN32_WINNT 0x400
14688290001Sglebius#define _WIN32_WINNT 0x400
14689290001Sglebius#define WIN32_LEAN_AND_MEAN
14690290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14691290001Sglebius#include <winsock.h>
14692290001Sglebius#else
14693290001Sglebius#include <winsock2.h>
14694290001Sglebius#include <ws2tcpip.h>
14695290001Sglebius#endif
14696290001Sglebius#endif
14697290001Sglebius
14698290001Sglebius"
14699290001Sglebiusif test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14700290001Sglebius
14701290001Sglebiuscat >>confdefs.h <<_ACEOF
14702290001Sglebius#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14703290001Sglebius_ACEOF
14704290001Sglebius
14705290001Sglebius
14706290001Sglebiusfi
14707290001Sglebiusac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14708290001Sglebius#ifdef HAVE_NETINET_IN_H
14709290001Sglebius#include <netinet/in.h>
14710290001Sglebius#endif
14711290001Sglebius#ifdef HAVE_NETINET_IN6_H
14712290001Sglebius#include <netinet/in6.h>
14713290001Sglebius#endif
14714290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14715290001Sglebius#include <sys/socket.h>
14716290001Sglebius#endif
14717290001Sglebius#ifdef _WIN32
14718290001Sglebius#define WIN32_WINNT 0x400
14719290001Sglebius#define _WIN32_WINNT 0x400
14720290001Sglebius#define WIN32_LEAN_AND_MEAN
14721290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14722290001Sglebius#include <winsock.h>
14723290001Sglebius#else
14724290001Sglebius#include <winsock2.h>
14725290001Sglebius#include <ws2tcpip.h>
14726290001Sglebius#endif
14727290001Sglebius#endif
14728290001Sglebius
14729290001Sglebius"
14730290001Sglebiusif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14731290001Sglebius
14732290001Sglebiuscat >>confdefs.h <<_ACEOF
14733290001Sglebius#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14734290001Sglebius_ACEOF
14735290001Sglebius
14736290001Sglebius
14737290001Sglebiusfi
14738290001Sglebiusac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14739290001Sglebius#ifdef HAVE_NETINET_IN_H
14740290001Sglebius#include <netinet/in.h>
14741290001Sglebius#endif
14742290001Sglebius#ifdef HAVE_NETINET_IN6_H
14743290001Sglebius#include <netinet/in6.h>
14744290001Sglebius#endif
14745290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14746290001Sglebius#include <sys/socket.h>
14747290001Sglebius#endif
14748290001Sglebius#ifdef _WIN32
14749290001Sglebius#define WIN32_WINNT 0x400
14750290001Sglebius#define _WIN32_WINNT 0x400
14751290001Sglebius#define WIN32_LEAN_AND_MEAN
14752290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14753290001Sglebius#include <winsock.h>
14754290001Sglebius#else
14755290001Sglebius#include <winsock2.h>
14756290001Sglebius#include <ws2tcpip.h>
14757290001Sglebius#endif
14758290001Sglebius#endif
14759290001Sglebius
14760290001Sglebius"
14761290001Sglebiusif test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14762290001Sglebius
14763290001Sglebiuscat >>confdefs.h <<_ACEOF
14764290001Sglebius#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14765290001Sglebius_ACEOF
14766290001Sglebius
14767290001Sglebius
14768290001Sglebiusfi
14769290001Sglebiusac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14770290001Sglebius#ifdef HAVE_NETINET_IN_H
14771290001Sglebius#include <netinet/in.h>
14772290001Sglebius#endif
14773290001Sglebius#ifdef HAVE_NETINET_IN6_H
14774290001Sglebius#include <netinet/in6.h>
14775290001Sglebius#endif
14776290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14777290001Sglebius#include <sys/socket.h>
14778290001Sglebius#endif
14779290001Sglebius#ifdef _WIN32
14780290001Sglebius#define WIN32_WINNT 0x400
14781290001Sglebius#define _WIN32_WINNT 0x400
14782290001Sglebius#define WIN32_LEAN_AND_MEAN
14783290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14784290001Sglebius#include <winsock.h>
14785290001Sglebius#else
14786290001Sglebius#include <winsock2.h>
14787290001Sglebius#include <ws2tcpip.h>
14788290001Sglebius#endif
14789290001Sglebius#endif
14790290001Sglebius
14791290001Sglebius"
14792290001Sglebiusif test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14793290001Sglebius
14794290001Sglebiuscat >>confdefs.h <<_ACEOF
14795290001Sglebius#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14796290001Sglebius_ACEOF
14797290001Sglebius
14798290001Sglebius
14799290001Sglebiusfi
14800290001Sglebiusac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14801290001Sglebius#ifdef HAVE_NETINET_IN_H
14802290001Sglebius#include <netinet/in.h>
14803290001Sglebius#endif
14804290001Sglebius#ifdef HAVE_NETINET_IN6_H
14805290001Sglebius#include <netinet/in6.h>
14806290001Sglebius#endif
14807290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14808290001Sglebius#include <sys/socket.h>
14809290001Sglebius#endif
14810290001Sglebius#ifdef _WIN32
14811290001Sglebius#define WIN32_WINNT 0x400
14812290001Sglebius#define _WIN32_WINNT 0x400
14813290001Sglebius#define WIN32_LEAN_AND_MEAN
14814290001Sglebius#if defined(_MSC_VER) && (_MSC_VER < 1300)
14815290001Sglebius#include <winsock.h>
14816290001Sglebius#else
14817290001Sglebius#include <winsock2.h>
14818290001Sglebius#include <ws2tcpip.h>
14819290001Sglebius#endif
14820290001Sglebius#endif
14821290001Sglebius
14822290001Sglebius"
14823290001Sglebiusif test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14824290001Sglebius
14825290001Sglebiuscat >>confdefs.h <<_ACEOF
14826290001Sglebius#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14827290001Sglebius_ACEOF
14828290001Sglebius
14829290001Sglebius
14830290001Sglebiusfi
14831290001Sglebius
14832290001Sglebius
14833290001Sglebiusac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
14834290001Sglebius#ifdef HAVE_SYS_SOCKET_H
14835290001Sglebius#include <sys/socket.h>
14836290001Sglebius#endif
14837290001Sglebius
14838290001Sglebius"
14839290001Sglebiusif test "x$ac_cv_type_struct_so_linger" = xyes; then :
14840290001Sglebius
14841290001Sglebiuscat >>confdefs.h <<_ACEOF
14842290001Sglebius#define HAVE_STRUCT_SO_LINGER 1
14843290001Sglebius_ACEOF
14844290001Sglebius
14845290001Sglebius#define HAVE_SO_LINGER
14846290001Sglebiusfi
14847290001Sglebius
14848290001Sglebius
14849290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14850290001Sglebius$as_echo_n "checking for socklen_t... " >&6; }
14851290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852290001Sglebius/* end confdefs.h.  */
14853290001Sglebius
14854290001Sglebius #include <sys/types.h>
14855290001Sglebius #include <sys/socket.h>
14856290001Sglebiusint
14857290001Sglebiusmain ()
14858290001Sglebius{
14859290001Sglebiussocklen_t x;
14860290001Sglebius  ;
14861290001Sglebius  return 0;
14862290001Sglebius}
14863290001Sglebius_ACEOF
14864290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
14865290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14866290001Sglebius$as_echo "yes" >&6; }
14867290001Sglebiuselse
14868290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869290001Sglebius$as_echo "no" >&6; }
14870290001Sglebius
14871290001Sglebius$as_echo "#define socklen_t unsigned int" >>confdefs.h
14872290001Sglebius
14873290001Sglebius
14874290001Sglebiusfi
14875290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876290001Sglebius
14877290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14878290001Sglebius$as_echo_n "checking whether our compiler supports __func__... " >&6; }
14879290001Sglebiuscat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880290001Sglebius/* end confdefs.h.  */
14881290001Sglebius
14882290001Sglebiusint
14883290001Sglebiusmain ()
14884290001Sglebius{
14885290001Sglebius const char *cp = __func__;
14886290001Sglebius  ;
14887290001Sglebius  return 0;
14888290001Sglebius}
14889290001Sglebius_ACEOF
14890290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
14891290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14892290001Sglebius$as_echo "yes" >&6; }
14893290001Sglebiuselse
14894290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895290001Sglebius$as_echo "no" >&6; }
14896290001Sglebius { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14897290001Sglebius$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14898290001Sglebius cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899290001Sglebius/* end confdefs.h.  */
14900290001Sglebius
14901290001Sglebiusint
14902290001Sglebiusmain ()
14903290001Sglebius{
14904290001Sglebius const char *cp = __FUNCTION__;
14905290001Sglebius  ;
14906290001Sglebius  return 0;
14907290001Sglebius}
14908290001Sglebius_ACEOF
14909290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
14910290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14911290001Sglebius$as_echo "yes" >&6; }
14912290001Sglebius
14913290001Sglebius$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14914290001Sglebius
14915290001Sglebiuselse
14916290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14917290001Sglebius$as_echo "no" >&6; }
14918290001Sglebius
14919290001Sglebius$as_echo "#define __func__ __FILE__" >>confdefs.h
14920290001Sglebius
14921290001Sglebiusfi
14922290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923290001Sglebiusfi
14924290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925290001Sglebius
14926290001Sglebius
14927290001Sglebius# check if we can compile with pthreads
14928290001Sglebiushave_pthreads=no
14929290001Sglebiusif test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14930290001Sglebius
14931290001Sglebius
14932290001Sglebius
14933290001Sglebiusac_ext=c
14934290001Sglebiusac_cpp='$CPP $CPPFLAGS'
14935290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
14938290001Sglebius
14939290001Sglebiusacx_pthread_ok=no
14940290001Sglebius
14941290001Sglebius# We used to check for pthread.h first, but this fails if pthread.h
14942290001Sglebius# requires special compiler flags (e.g. on True64 or Sequent).
14943290001Sglebius# It gets checked for in the link test anyway.
14944290001Sglebius
14945290001Sglebius# First of all, check if the user has set any of the PTHREAD_LIBS,
14946290001Sglebius# etcetera environment variables, and if threads linking works using
14947290001Sglebius# them:
14948290001Sglebiusif test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14949290001Sglebius        save_CFLAGS="$CFLAGS"
14950290001Sglebius        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14951290001Sglebius        save_LIBS="$LIBS"
14952290001Sglebius        LIBS="$PTHREAD_LIBS $LIBS"
14953290001Sglebius        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14954290001Sglebius$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14955290001Sglebius        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956290001Sglebius/* end confdefs.h.  */
14957290001Sglebius
14958290001Sglebius/* Override any GCC internal prototype to avoid an error.
14959290001Sglebius   Use char because int might match the return type of a GCC
14960290001Sglebius   builtin and then its argument prototype would still apply.  */
14961290001Sglebius#ifdef __cplusplus
14962290001Sglebiusextern "C"
14963290001Sglebius#endif
14964290001Sglebiuschar pthread_join ();
14965290001Sglebiusint
14966290001Sglebiusmain ()
14967290001Sglebius{
14968290001Sglebiusreturn pthread_join ();
14969290001Sglebius  ;
14970290001Sglebius  return 0;
14971290001Sglebius}
14972290001Sglebius_ACEOF
14973290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
14974290001Sglebius  acx_pthread_ok=yes
14975290001Sglebiusfi
14976290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
14977290001Sglebius    conftest$ac_exeext conftest.$ac_ext
14978290001Sglebius        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14979290001Sglebius$as_echo "$acx_pthread_ok" >&6; }
14980290001Sglebius        if test x"$acx_pthread_ok" = xno; then
14981290001Sglebius                PTHREAD_LIBS=""
14982290001Sglebius                PTHREAD_CFLAGS=""
14983290001Sglebius        fi
14984290001Sglebius        LIBS="$save_LIBS"
14985290001Sglebius        CFLAGS="$save_CFLAGS"
14986290001Sglebiusfi
14987290001Sglebius
14988290001Sglebius# We must check for the threads library under a number of different
14989290001Sglebius# names; the ordering is very important because some systems
14990290001Sglebius# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14991290001Sglebius# libraries is broken (non-POSIX).
14992290001Sglebius
14993290001Sglebius# Create a list of thread flags to try.  Items starting with a "-" are
14994290001Sglebius# C compiler flags, and other items are library names, except for "none"
14995290001Sglebius# which indicates that we try without any flags at all, and "pthread-config"
14996290001Sglebius# which is a program returning the flags for the Pth emulation library.
14997290001Sglebius
14998290001Sglebiusacx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14999290001Sglebius
15000290001Sglebius# The ordering *is* (sometimes) important.  Some notes on the
15001290001Sglebius# individual items follow:
15002290001Sglebius
15003290001Sglebius# pthreads: AIX (must check this before -lpthread)
15004290001Sglebius# none: in case threads are in libc; should be tried before -Kthread and
15005290001Sglebius#       other compiler flags to prevent continual compiler warnings
15006290001Sglebius# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15007290001Sglebius# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15008290001Sglebius# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15009290001Sglebius# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15010290001Sglebius# -pthreads: Solaris/gcc
15011290001Sglebius# -mthreads: Mingw32/gcc, Lynx/gcc
15012290001Sglebius# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15013290001Sglebius#      doesn't hurt to check since this sometimes defines pthreads too;
15014290001Sglebius#      also defines -D_REENTRANT)
15015290001Sglebius#      ... -mt is also the pthreads flag for HP/aCC
15016290001Sglebius# pthread: Linux, etcetera
15017290001Sglebius# --thread-safe: KAI C++
15018290001Sglebius# pthread-config: use pthread-config program (for GNU Pth library)
15019290001Sglebius
15020290001Sglebiuscase "${host_cpu}-${host_os}" in
15021290001Sglebius        *solaris*)
15022290001Sglebius
15023290001Sglebius        # On Solaris (at least, for some versions), libc contains stubbed
15024290001Sglebius        # (non-functional) versions of the pthreads routines, so link-based
15025290001Sglebius        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15026290001Sglebius        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15027290001Sglebius        # a function called by this macro, so we could check for that, but
15028290001Sglebius        # who knows whether they'll stub that too in a future libc.)  So,
15029290001Sglebius        # we'll just look for -pthreads and -lpthread first:
15030290001Sglebius
15031290001Sglebius        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15032290001Sglebius        ;;
15033290001Sglebiusesac
15034290001Sglebius
15035290001Sglebiusif test x"$acx_pthread_ok" = xno; then
15036290001Sglebiusfor flag in $acx_pthread_flags; do
15037290001Sglebius
15038290001Sglebius        case $flag in
15039290001Sglebius                none)
15040290001Sglebius                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15041290001Sglebius$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15042290001Sglebius                ;;
15043290001Sglebius
15044290001Sglebius                -*)
15045290001Sglebius                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15046290001Sglebius$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15047290001Sglebius                PTHREAD_CFLAGS="$flag"
15048290001Sglebius                ;;
15049290001Sglebius
15050290001Sglebius		pthread-config)
15051290001Sglebius		# Extract the first word of "pthread-config", so it can be a program name with args.
15052290001Sglebiusset dummy pthread-config; ac_word=$2
15053290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15054290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
15055290001Sglebiusif ${ac_cv_prog_acx_pthread_config+:} false; then :
15056290001Sglebius  $as_echo_n "(cached) " >&6
15057290001Sglebiuselse
15058290001Sglebius  if test -n "$acx_pthread_config"; then
15059290001Sglebius  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15060290001Sglebiuselse
15061290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062290001Sglebiusfor as_dir in $PATH
15063290001Sglebiusdo
15064290001Sglebius  IFS=$as_save_IFS
15065290001Sglebius  test -z "$as_dir" && as_dir=.
15066290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
15067290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068290001Sglebius    ac_cv_prog_acx_pthread_config="yes"
15069290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15070290001Sglebius    break 2
15071290001Sglebius  fi
15072290001Sglebiusdone
15073290001Sglebius  done
15074290001SglebiusIFS=$as_save_IFS
15075290001Sglebius
15076290001Sglebius  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15077290001Sglebiusfi
15078290001Sglebiusfi
15079290001Sglebiusacx_pthread_config=$ac_cv_prog_acx_pthread_config
15080290001Sglebiusif test -n "$acx_pthread_config"; then
15081290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15082290001Sglebius$as_echo "$acx_pthread_config" >&6; }
15083290001Sglebiuselse
15084290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085290001Sglebius$as_echo "no" >&6; }
15086290001Sglebiusfi
15087290001Sglebius
15088290001Sglebius
15089290001Sglebius		if test x"$acx_pthread_config" = xno; then continue; fi
15090290001Sglebius		PTHREAD_CFLAGS="`pthread-config --cflags`"
15091290001Sglebius		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15092290001Sglebius		;;
15093290001Sglebius
15094290001Sglebius                *)
15095290001Sglebius                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15096290001Sglebius$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15097290001Sglebius                PTHREAD_LIBS="-l$flag"
15098290001Sglebius                ;;
15099290001Sglebius        esac
15100290001Sglebius
15101290001Sglebius        save_LIBS="$LIBS"
15102290001Sglebius        save_CFLAGS="$CFLAGS"
15103290001Sglebius        LIBS="$PTHREAD_LIBS $LIBS"
15104290001Sglebius        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15105290001Sglebius
15106290001Sglebius        # Check for various functions.  We must include pthread.h,
15107290001Sglebius        # since some functions may be macros.  (On the Sequent, we
15108290001Sglebius        # need a special flag -Kthread to make this header compile.)
15109290001Sglebius        # We check for pthread_join because it is in -lpthread on IRIX
15110290001Sglebius        # while pthread_create is in libc.  We check for pthread_attr_init
15111290001Sglebius        # due to DEC craziness with -lpthreads.  We check for
15112290001Sglebius        # pthread_cleanup_push because it is one of the few pthread
15113290001Sglebius        # functions on Solaris that doesn't have a non-functional libc stub.
15114290001Sglebius        # We try pthread_create on general principles.
15115290001Sglebius        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116290001Sglebius/* end confdefs.h.  */
15117290001Sglebius#include <pthread.h>
15118290001Sglebiusint
15119290001Sglebiusmain ()
15120290001Sglebius{
15121290001Sglebiuspthread_t th; pthread_join(th, 0);
15122290001Sglebius                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
15123290001Sglebius                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15124290001Sglebius  ;
15125290001Sglebius  return 0;
15126290001Sglebius}
15127290001Sglebius_ACEOF
15128290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
15129290001Sglebius  acx_pthread_ok=yes
15130290001Sglebiusfi
15131290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
15132290001Sglebius    conftest$ac_exeext conftest.$ac_ext
15133290001Sglebius
15134290001Sglebius        LIBS="$save_LIBS"
15135290001Sglebius        CFLAGS="$save_CFLAGS"
15136290001Sglebius
15137290001Sglebius        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15138290001Sglebius$as_echo "$acx_pthread_ok" >&6; }
15139290001Sglebius        if test "x$acx_pthread_ok" = xyes; then
15140290001Sglebius                break;
15141290001Sglebius        fi
15142290001Sglebius
15143290001Sglebius        PTHREAD_LIBS=""
15144290001Sglebius        PTHREAD_CFLAGS=""
15145290001Sglebiusdone
15146290001Sglebiusfi
15147290001Sglebius
15148290001Sglebius# Various other checks:
15149290001Sglebiusif test "x$acx_pthread_ok" = xyes; then
15150290001Sglebius        save_LIBS="$LIBS"
15151290001Sglebius        LIBS="$PTHREAD_LIBS $LIBS"
15152290001Sglebius        save_CFLAGS="$CFLAGS"
15153290001Sglebius        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15154290001Sglebius
15155290001Sglebius        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15156290001Sglebius	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15157290001Sglebius$as_echo_n "checking for joinable pthread attribute... " >&6; }
15158290001Sglebius	attr_name=unknown
15159290001Sglebius	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15160290001Sglebius	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161290001Sglebius/* end confdefs.h.  */
15162290001Sglebius#include <pthread.h>
15163290001Sglebiusint
15164290001Sglebiusmain ()
15165290001Sglebius{
15166290001Sglebiusint attr=$attr; return attr;
15167290001Sglebius  ;
15168290001Sglebius  return 0;
15169290001Sglebius}
15170290001Sglebius_ACEOF
15171290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
15172290001Sglebius  attr_name=$attr; break
15173290001Sglebiusfi
15174290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
15175290001Sglebius    conftest$ac_exeext conftest.$ac_ext
15176290001Sglebius	done
15177290001Sglebius        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15178290001Sglebius$as_echo "$attr_name" >&6; }
15179290001Sglebius        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15180290001Sglebius
15181290001Sglebiuscat >>confdefs.h <<_ACEOF
15182290001Sglebius#define PTHREAD_CREATE_JOINABLE $attr_name
15183290001Sglebius_ACEOF
15184290001Sglebius
15185290001Sglebius        fi
15186290001Sglebius
15187290001Sglebius        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15188290001Sglebius$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15189290001Sglebius        flag=no
15190290001Sglebius        case "${host_cpu}-${host_os}" in
15191290001Sglebius            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15192290001Sglebius            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15193290001Sglebius        esac
15194290001Sglebius        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15195290001Sglebius$as_echo "${flag}" >&6; }
15196290001Sglebius        if test "x$flag" != xno; then
15197290001Sglebius            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15198290001Sglebius        fi
15199290001Sglebius
15200290001Sglebius        LIBS="$save_LIBS"
15201290001Sglebius        CFLAGS="$save_CFLAGS"
15202290001Sglebius
15203290001Sglebius        # More AIX lossage: must compile with xlc_r or cc_r
15204290001Sglebius	if test x"$GCC" != xyes; then
15205290001Sglebius          for ac_prog in xlc_r cc_r
15206290001Sglebiusdo
15207290001Sglebius  # Extract the first word of "$ac_prog", so it can be a program name with args.
15208290001Sglebiusset dummy $ac_prog; ac_word=$2
15209290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15210290001Sglebius$as_echo_n "checking for $ac_word... " >&6; }
15211290001Sglebiusif ${ac_cv_prog_PTHREAD_CC+:} false; then :
15212290001Sglebius  $as_echo_n "(cached) " >&6
15213290001Sglebiuselse
15214290001Sglebius  if test -n "$PTHREAD_CC"; then
15215290001Sglebius  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15216290001Sglebiuselse
15217290001Sglebiusas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218290001Sglebiusfor as_dir in $PATH
15219290001Sglebiusdo
15220290001Sglebius  IFS=$as_save_IFS
15221290001Sglebius  test -z "$as_dir" && as_dir=.
15222290001Sglebius    for ac_exec_ext in '' $ac_executable_extensions; do
15223290001Sglebius  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15224290001Sglebius    ac_cv_prog_PTHREAD_CC="$ac_prog"
15225290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15226290001Sglebius    break 2
15227290001Sglebius  fi
15228290001Sglebiusdone
15229290001Sglebius  done
15230290001SglebiusIFS=$as_save_IFS
15231290001Sglebius
15232290001Sglebiusfi
15233290001Sglebiusfi
15234290001SglebiusPTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15235290001Sglebiusif test -n "$PTHREAD_CC"; then
15236290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15237290001Sglebius$as_echo "$PTHREAD_CC" >&6; }
15238290001Sglebiuselse
15239290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240290001Sglebius$as_echo "no" >&6; }
15241290001Sglebiusfi
15242290001Sglebius
15243290001Sglebius
15244290001Sglebius  test -n "$PTHREAD_CC" && break
15245290001Sglebiusdone
15246290001Sglebiustest -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15247290001Sglebius
15248290001Sglebius        else
15249290001Sglebius          PTHREAD_CC=$CC
15250290001Sglebius	fi
15251290001Sglebiuselse
15252290001Sglebius        PTHREAD_CC="$CC"
15253290001Sglebiusfi
15254290001Sglebius
15255290001Sglebius
15256290001Sglebius
15257290001Sglebius
15258290001Sglebius
15259290001Sglebius# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15260290001Sglebiusif test x"$acx_pthread_ok" = xyes; then
15261290001Sglebius
15262290001Sglebius
15263290001Sglebius$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
15264290001Sglebius
15265290001Sglebius	have_pthreads=yes
15266290001Sglebius        :
15267290001Sglebiuselse
15268290001Sglebius        acx_pthread_ok=no
15269290001Sglebius
15270290001Sglebiusfi
15271290001Sglebiusac_ext=c
15272290001Sglebiusac_cpp='$CPP $CPPFLAGS'
15273290001Sglebiusac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15274290001Sglebiusac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15275290001Sglebiusac_compiler_gnu=$ac_cv_c_compiler_gnu
15276290001Sglebius
15277290001Sglebius
15278290001Sglebius  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15279290001Sglebius  # The cast to long int works around a bug in the HP C Compiler
15280290001Sglebius# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15281290001Sglebius# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15282290001Sglebius# This bug is HP SR number 8606223364.
15283290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15284290001Sglebius$as_echo_n "checking size of pthread_t... " >&6; }
15285290001Sglebiusif ${ac_cv_sizeof_pthread_t+:} false; then :
15286290001Sglebius  $as_echo_n "(cached) " >&6
15287290001Sglebiuselse
15288290001Sglebius  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
15289290001Sglebius      #include <pthread.h>
15290290001Sglebius
15291290001Sglebius"; then :
15292290001Sglebius
15293290001Sglebiuselse
15294290001Sglebius  if test "$ac_cv_type_pthread_t" = yes; then
15295290001Sglebius     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15296290001Sglebius$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15297290001Sglebiusas_fn_error 77 "cannot compute sizeof (pthread_t)
15298290001SglebiusSee \`config.log' for more details" "$LINENO" 5; }
15299290001Sglebius   else
15300290001Sglebius     ac_cv_sizeof_pthread_t=0
15301290001Sglebius   fi
15302290001Sglebiusfi
15303290001Sglebius
15304290001Sglebiusfi
15305290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15306290001Sglebius$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15307290001Sglebius
15308290001Sglebius
15309290001Sglebius
15310290001Sglebiuscat >>confdefs.h <<_ACEOF
15311290001Sglebius#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15312290001Sglebius_ACEOF
15313290001Sglebius
15314290001Sglebius
15315290001Sglebiusfi
15316290001Sglebius if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
15317290001Sglebius  PTHREADS_TRUE=
15318290001Sglebius  PTHREADS_FALSE='#'
15319290001Sglebiuselse
15320290001Sglebius  PTHREADS_TRUE='#'
15321290001Sglebius  PTHREADS_FALSE=
15322290001Sglebiusfi
15323290001Sglebius
15324290001Sglebius
15325290001Sglebius# check if we should compile locking into the library
15326290001Sglebiusif test x$enable_thread_support = xno; then
15327290001Sglebius
15328290001Sglebius$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
15329290001Sglebius
15330290001Sglebiusfi
15331290001Sglebius
15332290001Sglebius# check if we should hard-code the mm functions.
15333290001Sglebiusif test x$enable_malloc_replacement = xno; then
15334290001Sglebius
15335290001Sglebius$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
15336290001Sglebius
15337290001Sglebiusfi
15338290001Sglebius
15339290001Sglebius# check if we should hard-code debugging out
15340290001Sglebiusif test x$enable_debug_mode = xno; then
15341290001Sglebius
15342290001Sglebius$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
15343290001Sglebius
15344290001Sglebiusfi
15345290001Sglebius
15346290001Sglebius# check if we should enable verbose debugging
15347290001Sglebiusif test x$enable_verbose_debug = xyes; then
15348290001Sglebius	CFLAGS="$CFLAGS -DUSE_DEBUG"
15349290001Sglebiusfi
15350290001Sglebius
15351290001Sglebius# check if we have and should use openssl
15352290001Sglebius if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
15353290001Sglebius  OPENSSL_TRUE=
15354290001Sglebius  OPENSSL_FALSE='#'
15355290001Sglebiuselse
15356290001Sglebius  OPENSSL_TRUE='#'
15357290001Sglebius  OPENSSL_FALSE=
15358290001Sglebiusfi
15359290001Sglebius
15360290001Sglebius
15361290001Sglebius# Add some more warnings which we use in development but not in the
15362290001Sglebius# released versions.  (Some relevant gcc versions can't handle these.)
15363290001Sglebiusif test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
15364290001Sglebius
15365290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366290001Sglebius/* end confdefs.h.  */
15367290001Sglebius
15368290001Sglebiusint
15369290001Sglebiusmain ()
15370290001Sglebius{
15371290001Sglebius
15372290001Sglebius#if !defined(__GNUC__) || (__GNUC__ < 4)
15373290001Sglebius#error
15374290001Sglebius#endif
15375290001Sglebius  ;
15376290001Sglebius  return 0;
15377290001Sglebius}
15378290001Sglebius_ACEOF
15379290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
15380290001Sglebius  have_gcc4=yes
15381290001Sglebiuselse
15382290001Sglebius  have_gcc4=no
15383290001Sglebiusfi
15384290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385290001Sglebius
15386290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387290001Sglebius/* end confdefs.h.  */
15388290001Sglebius
15389290001Sglebiusint
15390290001Sglebiusmain ()
15391290001Sglebius{
15392290001Sglebius
15393290001Sglebius#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15394290001Sglebius#error
15395290001Sglebius#endif
15396290001Sglebius  ;
15397290001Sglebius  return 0;
15398290001Sglebius}
15399290001Sglebius_ACEOF
15400290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
15401290001Sglebius  have_gcc42=yes
15402290001Sglebiuselse
15403290001Sglebius  have_gcc42=no
15404290001Sglebiusfi
15405290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406290001Sglebius
15407290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408290001Sglebius/* end confdefs.h.  */
15409290001Sglebius
15410290001Sglebiusint
15411290001Sglebiusmain ()
15412290001Sglebius{
15413290001Sglebius
15414290001Sglebius#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15415290001Sglebius#error
15416290001Sglebius#endif
15417290001Sglebius  ;
15418290001Sglebius  return 0;
15419290001Sglebius}
15420290001Sglebius_ACEOF
15421290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
15422290001Sglebius  have_gcc45=yes
15423290001Sglebiuselse
15424290001Sglebius  have_gcc45=no
15425290001Sglebiusfi
15426290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427290001Sglebius
15428290001Sglebius  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429290001Sglebius/* end confdefs.h.  */
15430290001Sglebius
15431290001Sglebiusint
15432290001Sglebiusmain ()
15433290001Sglebius{
15434290001Sglebius
15435290001Sglebius#if !defined(__clang__)
15436290001Sglebius#error
15437290001Sglebius#endif
15438290001Sglebius  ;
15439290001Sglebius  return 0;
15440290001Sglebius}
15441290001Sglebius_ACEOF
15442290001Sglebiusif ac_fn_c_try_compile "$LINENO"; then :
15443290001Sglebius  have_clang=yes
15444290001Sglebiuselse
15445290001Sglebius  have_clang=no
15446290001Sglebiusfi
15447290001Sglebiusrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448290001Sglebius
15449290001Sglebius  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum"
15450290001Sglebius  if test x$enable_gcc_warnings = xyes; then
15451290001Sglebius    CFLAGS="$CFLAGS -Werror"
15452290001Sglebius  fi
15453290001Sglebius
15454290001Sglebius  CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15455290001Sglebius
15456290001Sglebius  if test x$have_gcc4 = xyes ; then
15457290001Sglebius    # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15458290001Sglebius    CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15459290001Sglebius    #CFLAGS="$CFLAGS -Wold-style-definition"
15460290001Sglebius  fi
15461290001Sglebius
15462290001Sglebius  if test x$have_gcc42 = xyes ; then
15463290001Sglebius    # These warnings break gcc 4.0.2 and work on gcc 4.2
15464290001Sglebius    CFLAGS="$CFLAGS -Waddress"
15465290001Sglebius  fi
15466290001Sglebius
15467290001Sglebius  if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15468290001Sglebius    # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15469290001Sglebius    CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15470290001Sglebius  fi
15471290001Sglebius
15472290001Sglebius  if test x$have_gcc45 = xyes ; then
15473290001Sglebius    # These warnings work on gcc 4.5
15474290001Sglebius    CFLAGS="$CFLAGS -Wlogical-op"
15475290001Sglebius  fi
15476290001Sglebius
15477290001Sglebius  if test x$have_clang = xyes; then
15478290001Sglebius    # Disable the unused-function warnings, because these trigger
15479290001Sglebius    # for minheap-internal.h related code.
15480290001Sglebius    CFLAGS="$CFLAGS -Wno-unused-function"
15481290001Sglebius
15482290001Sglebius    # clang on macosx emits warnigns for each directory specified which
15483290001Sglebius    # isn't "used" generating a lot of build noise (typically 3 warnings
15484290001Sglebius    # per file
15485290001Sglebius    case "$host_os" in
15486290001Sglebius        darwin*)
15487290001Sglebius            CFLAGS="$CFLAGS -Qunused-arguments"
15488290001Sglebius        ;;
15489290001Sglebius    esac
15490290001Sglebius  fi
15491290001Sglebius
15492290001Sglebius##This will break the world on some 64-bit architectures
15493290001Sglebius# CFLAGS="$CFLAGS -Winline"
15494290001Sglebius
15495290001Sglebiusfi
15496290001Sglebius
15497290001SglebiusLIBEVENT_GC_SECTIONS=
15498290001Sglebiusif test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15499290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15500290001Sglebius$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15501290001Sglebiusif ${libevent_cv_gc_sections_runs+:} false; then :
15502290001Sglebius  $as_echo_n "(cached) " >&6
15503290001Sglebiuselse
15504290001Sglebius
15505290001Sglebius	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
15506290001Sglebius	    CFLAGS="$CFLAGS -Wl,--gc-sections"
15507290001Sglebius	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508290001Sglebius/* end confdefs.h.  */
15509290001Sglebius
15510290001Sglebius			#include <stdlib.h>
15511290001Sglebius			#include <stdio.h>
15512290001Sglebius
15513290001Sglebiusint
15514290001Sglebiusmain ()
15515290001Sglebius{
15516290001Sglebius
15517290001Sglebius			FILE *	fpC;
15518290001Sglebius			char	buf[32];
15519290001Sglebius			size_t	cch;
15520290001Sglebius			int	read_success_once;
15521290001Sglebius
15522290001Sglebius			fpC = fopen("conftest.c", "r");
15523290001Sglebius			if (NULL == fpC)
15524290001Sglebius				exit(1);
15525290001Sglebius			do {
15526290001Sglebius				cch = fread(buf, sizeof(buf), 1, fpC);
15527290001Sglebius				read_success_once |= (0 != cch);
15528290001Sglebius			} while (0 != cch);
15529290001Sglebius			if (!read_success_once)
15530290001Sglebius				exit(2);
15531290001Sglebius			if (!feof(fpC))
15532290001Sglebius				exit(3);
15533290001Sglebius			if (0 != fclose(fpC))
15534290001Sglebius				exit(4);
15535290001Sglebius
15536290001Sglebius			exit(EXIT_SUCCESS);
15537290001Sglebius
15538290001Sglebius
15539290001Sglebius  ;
15540290001Sglebius  return 0;
15541290001Sglebius}
15542290001Sglebius_ACEOF
15543290001Sglebiusif ac_fn_c_try_link "$LINENO"; then :
15544290001Sglebius
15545290001Sglebius                                                            		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15546290001Sglebius			libevent_cv_gc_sections_runs=no
15547290001Sglebius		    else
15548290001Sglebius			libevent_cv_gc_sections_runs=no
15549290001Sglebius			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15550290001Sglebius		    fi
15551290001Sglebius
15552290001Sglebiuselse
15553290001Sglebius  libevent_cv_gc_sections_runs=no
15554290001Sglebius
15555290001Sglebiusfi
15556290001Sglebiusrm -f core conftest.err conftest.$ac_objext \
15557290001Sglebius    conftest$ac_exeext conftest.$ac_ext
15558290001Sglebius	    CFLAGS="$origCFLAGS"
15559290001Sglebius	    { origCFLAGS=; unset origCFLAGS;}
15560290001Sglebius
15561290001Sglebius
15562290001Sglebiusfi
15563290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15564290001Sglebius$as_echo "$libevent_cv_gc_sections_runs" >&6; }
15565290001Sglebius    case "$libevent_cv_gc_sections_runs" in
15566290001Sglebius     yes)
15567290001Sglebius	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15568290001Sglebius	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15569290001Sglebius	;;
15570290001Sglebius    esac
15571290001Sglebiusfi
15572290001Sglebius
15573290001Sglebius
15574290001Sglebius if test "$enable_libevent_install" = "yes"; then
15575290001Sglebius  INSTALL_LIBEVENT_TRUE=
15576290001Sglebius  INSTALL_LIBEVENT_FALSE='#'
15577290001Sglebiuselse
15578290001Sglebius  INSTALL_LIBEVENT_TRUE='#'
15579290001Sglebius  INSTALL_LIBEVENT_FALSE=
15580290001Sglebiusfi
15581290001Sglebius
15582290001Sglebius
15583290001Sglebiusac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15584290001Sglebius
15585290001Sglebiusac_config_files="$ac_config_files Makefile"
15586290001Sglebius
15587290001Sglebiuscat >confcache <<\_ACEOF
15588290001Sglebius# This file is a shell script that caches the results of configure
15589290001Sglebius# tests run on this system so they can be shared between configure
15590290001Sglebius# scripts and configure runs, see configure's option --config-cache.
15591290001Sglebius# It is not useful on other systems.  If it contains results you don't
15592290001Sglebius# want to keep, you may remove or edit it.
15593290001Sglebius#
15594290001Sglebius# config.status only pays attention to the cache file if you give it
15595290001Sglebius# the --recheck option to rerun configure.
15596290001Sglebius#
15597290001Sglebius# `ac_cv_env_foo' variables (set or unset) will be overridden when
15598290001Sglebius# loading this file, other *unset* `ac_cv_foo' will be assigned the
15599290001Sglebius# following values.
15600290001Sglebius
15601290001Sglebius_ACEOF
15602290001Sglebius
15603290001Sglebius# The following way of writing the cache mishandles newlines in values,
15604290001Sglebius# but we know of no workaround that is simple, portable, and efficient.
15605290001Sglebius# So, we kill variables containing newlines.
15606290001Sglebius# Ultrix sh set writes to stderr and can't be redirected directly,
15607290001Sglebius# and sets the high bit in the cache file unless we assign to the vars.
15608290001Sglebius(
15609290001Sglebius  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15610290001Sglebius    eval ac_val=\$$ac_var
15611290001Sglebius    case $ac_val in #(
15612290001Sglebius    *${as_nl}*)
15613290001Sglebius      case $ac_var in #(
15614290001Sglebius      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15615290001Sglebius$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15616290001Sglebius      esac
15617290001Sglebius      case $ac_var in #(
15618290001Sglebius      _ | IFS | as_nl) ;; #(
15619290001Sglebius      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15620290001Sglebius      *) { eval $ac_var=; unset $ac_var;} ;;
15621290001Sglebius      esac ;;
15622290001Sglebius    esac
15623290001Sglebius  done
15624290001Sglebius
15625290001Sglebius  (set) 2>&1 |
15626290001Sglebius    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15627290001Sglebius    *${as_nl}ac_space=\ *)
15628290001Sglebius      # `set' does not quote correctly, so add quotes: double-quote
15629290001Sglebius      # substitution turns \\\\ into \\, and sed turns \\ into \.
15630290001Sglebius      sed -n \
15631290001Sglebius	"s/'/'\\\\''/g;
15632290001Sglebius	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15633290001Sglebius      ;; #(
15634290001Sglebius    *)
15635290001Sglebius      # `set' quotes correctly as required by POSIX, so do not add quotes.
15636290001Sglebius      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15637290001Sglebius      ;;
15638290001Sglebius    esac |
15639290001Sglebius    sort
15640290001Sglebius) |
15641290001Sglebius  sed '
15642290001Sglebius     /^ac_cv_env_/b end
15643290001Sglebius     t clear
15644290001Sglebius     :clear
15645290001Sglebius     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15646290001Sglebius     t end
15647290001Sglebius     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15648290001Sglebius     :end' >>confcache
15649290001Sglebiusif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15650290001Sglebius  if test -w "$cache_file"; then
15651290001Sglebius    if test "x$cache_file" != "x/dev/null"; then
15652290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15653290001Sglebius$as_echo "$as_me: updating cache $cache_file" >&6;}
15654290001Sglebius      if test ! -f "$cache_file" || test -h "$cache_file"; then
15655290001Sglebius	cat confcache >"$cache_file"
15656290001Sglebius      else
15657290001Sglebius        case $cache_file in #(
15658290001Sglebius        */* | ?:*)
15659290001Sglebius	  mv -f confcache "$cache_file"$$ &&
15660290001Sglebius	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15661290001Sglebius        *)
15662290001Sglebius	  mv -f confcache "$cache_file" ;;
15663290001Sglebius	esac
15664290001Sglebius      fi
15665290001Sglebius    fi
15666290001Sglebius  else
15667290001Sglebius    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15668290001Sglebius$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15669290001Sglebius  fi
15670290001Sglebiusfi
15671290001Sglebiusrm -f confcache
15672290001Sglebius
15673290001Sglebiustest "x$prefix" = xNONE && prefix=$ac_default_prefix
15674290001Sglebius# Let make expand exec_prefix.
15675290001Sglebiustest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15676290001Sglebius
15677290001SglebiusDEFS=-DHAVE_CONFIG_H
15678290001Sglebius
15679290001Sglebiusac_libobjs=
15680290001Sglebiusac_ltlibobjs=
15681290001SglebiusU=
15682290001Sglebiusfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15683290001Sglebius  # 1. Remove the extension, and $U if already installed.
15684290001Sglebius  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15685290001Sglebius  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15686290001Sglebius  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15687290001Sglebius  #    will be set to the directory where LIBOBJS objects are built.
15688290001Sglebius  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15689290001Sglebius  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15690290001Sglebiusdone
15691290001SglebiusLIBOBJS=$ac_libobjs
15692290001Sglebius
15693290001SglebiusLTLIBOBJS=$ac_ltlibobjs
15694290001Sglebius
15695290001Sglebius
15696290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15697290001Sglebius$as_echo_n "checking that generated files are newer than configure... " >&6; }
15698290001Sglebius   if test -n "$am_sleep_pid"; then
15699290001Sglebius     # Hide warnings about reused PIDs.
15700290001Sglebius     wait $am_sleep_pid 2>/dev/null
15701290001Sglebius   fi
15702290001Sglebius   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15703290001Sglebius$as_echo "done" >&6; }
15704290001Sglebius if test -n "$EXEEXT"; then
15705290001Sglebius  am__EXEEXT_TRUE=
15706290001Sglebius  am__EXEEXT_FALSE='#'
15707290001Sglebiuselse
15708290001Sglebius  am__EXEEXT_TRUE='#'
15709290001Sglebius  am__EXEEXT_FALSE=
15710290001Sglebiusfi
15711290001Sglebius
15712290001Sglebiusif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15713290001Sglebius  as_fn_error $? "conditional \"AMDEP\" was never defined.
15714290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15715290001Sglebiusfi
15716290001Sglebiusif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15717290001Sglebius  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15718290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15719290001Sglebiusfi
15720290001Sglebiusif test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
15721290001Sglebius  as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
15722290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15723290001Sglebiusfi
15724290001Sglebiusif test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15725290001Sglebius  as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15726290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15727290001Sglebiusfi
15728290001Sglebiusif test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15729290001Sglebius  as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15730290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15731290001Sglebiusfi
15732290001Sglebiusif test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15733290001Sglebius  as_fn_error $? "conditional \"OPENSSL\" was never defined.
15734290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15735290001Sglebiusfi
15736290001Sglebiusif test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15737290001Sglebius  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15738290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15739290001Sglebiusfi
15740290001Sglebiusif test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15741290001Sglebius  as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15742290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15743290001Sglebiusfi
15744290001Sglebiusif test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15745290001Sglebius  as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15746290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15747290001Sglebiusfi
15748290001Sglebiusif test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
15749290001Sglebius  as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
15750290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15751290001Sglebiusfi
15752290001Sglebiusif test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15753290001Sglebius  as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15754290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15755290001Sglebiusfi
15756290001Sglebiusif test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15757290001Sglebius  as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15758290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15759290001Sglebiusfi
15760290001Sglebiusif test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15761290001Sglebius  as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15762290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15763290001Sglebiusfi
15764290001Sglebiusif test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15765290001Sglebius  as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15766290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15767290001Sglebiusfi
15768290001Sglebiusif test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15769290001Sglebius  as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15770290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15771290001Sglebiusfi
15772290001Sglebiusif test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15773290001Sglebius  as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15774290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15775290001Sglebiusfi
15776290001Sglebiusif test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15777290001Sglebius  as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15778290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15779290001Sglebiusfi
15780290001Sglebiusif test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15781290001Sglebius  as_fn_error $? "conditional \"PTHREADS\" was never defined.
15782290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15783290001Sglebiusfi
15784290001Sglebiusif test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15785290001Sglebius  as_fn_error $? "conditional \"OPENSSL\" was never defined.
15786290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15787290001Sglebiusfi
15788290001Sglebiusif test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15789290001Sglebius  as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15790290001SglebiusUsually this means the macro was only invoked conditionally." "$LINENO" 5
15791290001Sglebiusfi
15792290001Sglebius
15793290001Sglebius: "${CONFIG_STATUS=./config.status}"
15794290001Sglebiusac_write_fail=0
15795290001Sglebiusac_clean_files_save=$ac_clean_files
15796290001Sglebiusac_clean_files="$ac_clean_files $CONFIG_STATUS"
15797290001Sglebius{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15798290001Sglebius$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15799290001Sglebiusas_write_fail=0
15800290001Sglebiuscat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15801290001Sglebius#! $SHELL
15802290001Sglebius# Generated by $as_me.
15803290001Sglebius# Run this file to recreate the current configuration.
15804290001Sglebius# Compiler output produced by configure, useful for debugging
15805290001Sglebius# configure, is in config.log if it exists.
15806290001Sglebius
15807290001Sglebiusdebug=false
15808290001Sglebiusac_cs_recheck=false
15809290001Sglebiusac_cs_silent=false
15810290001Sglebius
15811290001SglebiusSHELL=\${CONFIG_SHELL-$SHELL}
15812290001Sglebiusexport SHELL
15813290001Sglebius_ASEOF
15814290001Sglebiuscat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15815290001Sglebius## -------------------- ##
15816290001Sglebius## M4sh Initialization. ##
15817290001Sglebius## -------------------- ##
15818290001Sglebius
15819290001Sglebius# Be more Bourne compatible
15820290001SglebiusDUALCASE=1; export DUALCASE # for MKS sh
15821290001Sglebiusif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15822290001Sglebius  emulate sh
15823290001Sglebius  NULLCMD=:
15824290001Sglebius  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15825290001Sglebius  # is contrary to our usage.  Disable this feature.
15826290001Sglebius  alias -g '${1+"$@"}'='"$@"'
15827290001Sglebius  setopt NO_GLOB_SUBST
15828290001Sglebiuselse
15829290001Sglebius  case `(set -o) 2>/dev/null` in #(
15830290001Sglebius  *posix*) :
15831290001Sglebius    set -o posix ;; #(
15832290001Sglebius  *) :
15833290001Sglebius     ;;
15834290001Sglebiusesac
15835290001Sglebiusfi
15836290001Sglebius
15837290001Sglebius
15838290001Sglebiusas_nl='
15839290001Sglebius'
15840290001Sglebiusexport as_nl
15841290001Sglebius# Printing a long string crashes Solaris 7 /usr/bin/printf.
15842290001Sglebiusas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15843290001Sglebiusas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15844290001Sglebiusas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15845290001Sglebius# Prefer a ksh shell builtin over an external printf program on Solaris,
15846290001Sglebius# but without wasting forks for bash or zsh.
15847290001Sglebiusif test -z "$BASH_VERSION$ZSH_VERSION" \
15848290001Sglebius    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15849290001Sglebius  as_echo='print -r --'
15850290001Sglebius  as_echo_n='print -rn --'
15851290001Sglebiuselif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15852290001Sglebius  as_echo='printf %s\n'
15853290001Sglebius  as_echo_n='printf %s'
15854290001Sglebiuselse
15855290001Sglebius  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15856290001Sglebius    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15857290001Sglebius    as_echo_n='/usr/ucb/echo -n'
15858290001Sglebius  else
15859290001Sglebius    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15860290001Sglebius    as_echo_n_body='eval
15861290001Sglebius      arg=$1;
15862290001Sglebius      case $arg in #(
15863290001Sglebius      *"$as_nl"*)
15864290001Sglebius	expr "X$arg" : "X\\(.*\\)$as_nl";
15865290001Sglebius	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15866290001Sglebius      esac;
15867290001Sglebius      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15868290001Sglebius    '
15869290001Sglebius    export as_echo_n_body
15870290001Sglebius    as_echo_n='sh -c $as_echo_n_body as_echo'
15871290001Sglebius  fi
15872290001Sglebius  export as_echo_body
15873290001Sglebius  as_echo='sh -c $as_echo_body as_echo'
15874290001Sglebiusfi
15875290001Sglebius
15876290001Sglebius# The user is always right.
15877290001Sglebiusif test "${PATH_SEPARATOR+set}" != set; then
15878290001Sglebius  PATH_SEPARATOR=:
15879290001Sglebius  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15880290001Sglebius    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15881290001Sglebius      PATH_SEPARATOR=';'
15882290001Sglebius  }
15883290001Sglebiusfi
15884290001Sglebius
15885290001Sglebius
15886290001Sglebius# IFS
15887290001Sglebius# We need space, tab and new line, in precisely that order.  Quoting is
15888290001Sglebius# there to prevent editors from complaining about space-tab.
15889290001Sglebius# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15890290001Sglebius# splitting by setting IFS to empty value.)
15891290001SglebiusIFS=" ""	$as_nl"
15892290001Sglebius
15893290001Sglebius# Find who we are.  Look in the path if we contain no directory separator.
15894290001Sglebiusas_myself=
15895290001Sglebiuscase $0 in #((
15896290001Sglebius  *[\\/]* ) as_myself=$0 ;;
15897290001Sglebius  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15898290001Sglebiusfor as_dir in $PATH
15899290001Sglebiusdo
15900290001Sglebius  IFS=$as_save_IFS
15901290001Sglebius  test -z "$as_dir" && as_dir=.
15902290001Sglebius    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15903290001Sglebius  done
15904290001SglebiusIFS=$as_save_IFS
15905290001Sglebius
15906290001Sglebius     ;;
15907290001Sglebiusesac
15908290001Sglebius# We did not find ourselves, most probably we were run as `sh COMMAND'
15909290001Sglebius# in which case we are not to be found in the path.
15910290001Sglebiusif test "x$as_myself" = x; then
15911290001Sglebius  as_myself=$0
15912290001Sglebiusfi
15913290001Sglebiusif test ! -f "$as_myself"; then
15914290001Sglebius  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15915290001Sglebius  exit 1
15916290001Sglebiusfi
15917290001Sglebius
15918290001Sglebius# Unset variables that we do not need and which cause bugs (e.g. in
15919290001Sglebius# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15920290001Sglebius# suppresses any "Segmentation fault" message there.  '((' could
15921290001Sglebius# trigger a bug in pdksh 5.2.14.
15922290001Sglebiusfor as_var in BASH_ENV ENV MAIL MAILPATH
15923290001Sglebiusdo eval test x\${$as_var+set} = xset \
15924290001Sglebius  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15925290001Sglebiusdone
15926290001SglebiusPS1='$ '
15927290001SglebiusPS2='> '
15928290001SglebiusPS4='+ '
15929290001Sglebius
15930290001Sglebius# NLS nuisances.
15931290001SglebiusLC_ALL=C
15932290001Sglebiusexport LC_ALL
15933290001SglebiusLANGUAGE=C
15934290001Sglebiusexport LANGUAGE
15935290001Sglebius
15936290001Sglebius# CDPATH.
15937290001Sglebius(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15938290001Sglebius
15939290001Sglebius
15940290001Sglebius# as_fn_error STATUS ERROR [LINENO LOG_FD]
15941290001Sglebius# ----------------------------------------
15942290001Sglebius# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15943290001Sglebius# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15944290001Sglebius# script with STATUS, using 1 if that was 0.
15945290001Sglebiusas_fn_error ()
15946290001Sglebius{
15947290001Sglebius  as_status=$1; test $as_status -eq 0 && as_status=1
15948290001Sglebius  if test "$4"; then
15949290001Sglebius    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15950290001Sglebius    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15951290001Sglebius  fi
15952290001Sglebius  $as_echo "$as_me: error: $2" >&2
15953290001Sglebius  as_fn_exit $as_status
15954290001Sglebius} # as_fn_error
15955290001Sglebius
15956290001Sglebius
15957290001Sglebius# as_fn_set_status STATUS
15958290001Sglebius# -----------------------
15959290001Sglebius# Set $? to STATUS, without forking.
15960290001Sglebiusas_fn_set_status ()
15961290001Sglebius{
15962290001Sglebius  return $1
15963290001Sglebius} # as_fn_set_status
15964290001Sglebius
15965290001Sglebius# as_fn_exit STATUS
15966290001Sglebius# -----------------
15967290001Sglebius# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15968290001Sglebiusas_fn_exit ()
15969290001Sglebius{
15970290001Sglebius  set +e
15971290001Sglebius  as_fn_set_status $1
15972290001Sglebius  exit $1
15973290001Sglebius} # as_fn_exit
15974290001Sglebius
15975290001Sglebius# as_fn_unset VAR
15976290001Sglebius# ---------------
15977290001Sglebius# Portably unset VAR.
15978290001Sglebiusas_fn_unset ()
15979290001Sglebius{
15980290001Sglebius  { eval $1=; unset $1;}
15981290001Sglebius}
15982290001Sglebiusas_unset=as_fn_unset
15983290001Sglebius# as_fn_append VAR VALUE
15984290001Sglebius# ----------------------
15985290001Sglebius# Append the text in VALUE to the end of the definition contained in VAR. Take
15986290001Sglebius# advantage of any shell optimizations that allow amortized linear growth over
15987290001Sglebius# repeated appends, instead of the typical quadratic growth present in naive
15988290001Sglebius# implementations.
15989290001Sglebiusif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15990290001Sglebius  eval 'as_fn_append ()
15991290001Sglebius  {
15992290001Sglebius    eval $1+=\$2
15993290001Sglebius  }'
15994290001Sglebiuselse
15995290001Sglebius  as_fn_append ()
15996290001Sglebius  {
15997290001Sglebius    eval $1=\$$1\$2
15998290001Sglebius  }
15999290001Sglebiusfi # as_fn_append
16000290001Sglebius
16001290001Sglebius# as_fn_arith ARG...
16002290001Sglebius# ------------------
16003290001Sglebius# Perform arithmetic evaluation on the ARGs, and store the result in the
16004290001Sglebius# global $as_val. Take advantage of shells that can avoid forks. The arguments
16005290001Sglebius# must be portable across $(()) and expr.
16006290001Sglebiusif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16007290001Sglebius  eval 'as_fn_arith ()
16008290001Sglebius  {
16009290001Sglebius    as_val=$(( $* ))
16010290001Sglebius  }'
16011290001Sglebiuselse
16012290001Sglebius  as_fn_arith ()
16013290001Sglebius  {
16014290001Sglebius    as_val=`expr "$@" || test $? -eq 1`
16015290001Sglebius  }
16016290001Sglebiusfi # as_fn_arith
16017290001Sglebius
16018290001Sglebius
16019290001Sglebiusif expr a : '\(a\)' >/dev/null 2>&1 &&
16020290001Sglebius   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16021290001Sglebius  as_expr=expr
16022290001Sglebiuselse
16023290001Sglebius  as_expr=false
16024290001Sglebiusfi
16025290001Sglebius
16026290001Sglebiusif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16027290001Sglebius  as_basename=basename
16028290001Sglebiuselse
16029290001Sglebius  as_basename=false
16030290001Sglebiusfi
16031290001Sglebius
16032290001Sglebiusif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16033290001Sglebius  as_dirname=dirname
16034290001Sglebiuselse
16035290001Sglebius  as_dirname=false
16036290001Sglebiusfi
16037290001Sglebius
16038290001Sglebiusas_me=`$as_basename -- "$0" ||
16039290001Sglebius$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16040290001Sglebius	 X"$0" : 'X\(//\)$' \| \
16041290001Sglebius	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16042290001Sglebius$as_echo X/"$0" |
16043290001Sglebius    sed '/^.*\/\([^/][^/]*\)\/*$/{
16044290001Sglebius	    s//\1/
16045290001Sglebius	    q
16046290001Sglebius	  }
16047290001Sglebius	  /^X\/\(\/\/\)$/{
16048290001Sglebius	    s//\1/
16049290001Sglebius	    q
16050290001Sglebius	  }
16051290001Sglebius	  /^X\/\(\/\).*/{
16052290001Sglebius	    s//\1/
16053290001Sglebius	    q
16054290001Sglebius	  }
16055290001Sglebius	  s/.*/./; q'`
16056290001Sglebius
16057290001Sglebius# Avoid depending upon Character Ranges.
16058290001Sglebiusas_cr_letters='abcdefghijklmnopqrstuvwxyz'
16059290001Sglebiusas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16060290001Sglebiusas_cr_Letters=$as_cr_letters$as_cr_LETTERS
16061290001Sglebiusas_cr_digits='0123456789'
16062290001Sglebiusas_cr_alnum=$as_cr_Letters$as_cr_digits
16063290001Sglebius
16064290001SglebiusECHO_C= ECHO_N= ECHO_T=
16065290001Sglebiuscase `echo -n x` in #(((((
16066290001Sglebius-n*)
16067290001Sglebius  case `echo 'xy\c'` in
16068290001Sglebius  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16069290001Sglebius  xy)  ECHO_C='\c';;
16070290001Sglebius  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16071290001Sglebius       ECHO_T='	';;
16072290001Sglebius  esac;;
16073290001Sglebius*)
16074290001Sglebius  ECHO_N='-n';;
16075290001Sglebiusesac
16076290001Sglebius
16077290001Sglebiusrm -f conf$$ conf$$.exe conf$$.file
16078290001Sglebiusif test -d conf$$.dir; then
16079290001Sglebius  rm -f conf$$.dir/conf$$.file
16080290001Sglebiuselse
16081290001Sglebius  rm -f conf$$.dir
16082290001Sglebius  mkdir conf$$.dir 2>/dev/null
16083290001Sglebiusfi
16084290001Sglebiusif (echo >conf$$.file) 2>/dev/null; then
16085290001Sglebius  if ln -s conf$$.file conf$$ 2>/dev/null; then
16086290001Sglebius    as_ln_s='ln -s'
16087290001Sglebius    # ... but there are two gotchas:
16088290001Sglebius    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16089290001Sglebius    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16090290001Sglebius    # In both cases, we have to default to `cp -pR'.
16091290001Sglebius    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16092290001Sglebius      as_ln_s='cp -pR'
16093290001Sglebius  elif ln conf$$.file conf$$ 2>/dev/null; then
16094290001Sglebius    as_ln_s=ln
16095290001Sglebius  else
16096290001Sglebius    as_ln_s='cp -pR'
16097290001Sglebius  fi
16098290001Sglebiuselse
16099290001Sglebius  as_ln_s='cp -pR'
16100290001Sglebiusfi
16101290001Sglebiusrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16102290001Sglebiusrmdir conf$$.dir 2>/dev/null
16103290001Sglebius
16104290001Sglebius
16105290001Sglebius# as_fn_mkdir_p
16106290001Sglebius# -------------
16107290001Sglebius# Create "$as_dir" as a directory, including parents if necessary.
16108290001Sglebiusas_fn_mkdir_p ()
16109290001Sglebius{
16110290001Sglebius
16111290001Sglebius  case $as_dir in #(
16112290001Sglebius  -*) as_dir=./$as_dir;;
16113290001Sglebius  esac
16114290001Sglebius  test -d "$as_dir" || eval $as_mkdir_p || {
16115290001Sglebius    as_dirs=
16116290001Sglebius    while :; do
16117290001Sglebius      case $as_dir in #(
16118290001Sglebius      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16119290001Sglebius      *) as_qdir=$as_dir;;
16120290001Sglebius      esac
16121290001Sglebius      as_dirs="'$as_qdir' $as_dirs"
16122290001Sglebius      as_dir=`$as_dirname -- "$as_dir" ||
16123290001Sglebius$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16124290001Sglebius	 X"$as_dir" : 'X\(//\)[^/]' \| \
16125290001Sglebius	 X"$as_dir" : 'X\(//\)$' \| \
16126290001Sglebius	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16127290001Sglebius$as_echo X"$as_dir" |
16128290001Sglebius    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16129290001Sglebius	    s//\1/
16130290001Sglebius	    q
16131290001Sglebius	  }
16132290001Sglebius	  /^X\(\/\/\)[^/].*/{
16133290001Sglebius	    s//\1/
16134290001Sglebius	    q
16135290001Sglebius	  }
16136290001Sglebius	  /^X\(\/\/\)$/{
16137290001Sglebius	    s//\1/
16138290001Sglebius	    q
16139290001Sglebius	  }
16140290001Sglebius	  /^X\(\/\).*/{
16141290001Sglebius	    s//\1/
16142290001Sglebius	    q
16143290001Sglebius	  }
16144290001Sglebius	  s/.*/./; q'`
16145290001Sglebius      test -d "$as_dir" && break
16146290001Sglebius    done
16147290001Sglebius    test -z "$as_dirs" || eval "mkdir $as_dirs"
16148290001Sglebius  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16149290001Sglebius
16150290001Sglebius
16151290001Sglebius} # as_fn_mkdir_p
16152290001Sglebiusif mkdir -p . 2>/dev/null; then
16153290001Sglebius  as_mkdir_p='mkdir -p "$as_dir"'
16154290001Sglebiuselse
16155290001Sglebius  test -d ./-p && rmdir ./-p
16156290001Sglebius  as_mkdir_p=false
16157290001Sglebiusfi
16158290001Sglebius
16159290001Sglebius
16160290001Sglebius# as_fn_executable_p FILE
16161290001Sglebius# -----------------------
16162290001Sglebius# Test if FILE is an executable regular file.
16163290001Sglebiusas_fn_executable_p ()
16164290001Sglebius{
16165290001Sglebius  test -f "$1" && test -x "$1"
16166290001Sglebius} # as_fn_executable_p
16167290001Sglebiusas_test_x='test -x'
16168290001Sglebiusas_executable_p=as_fn_executable_p
16169290001Sglebius
16170290001Sglebius# Sed expression to map a string onto a valid CPP name.
16171290001Sglebiusas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16172290001Sglebius
16173290001Sglebius# Sed expression to map a string onto a valid variable name.
16174290001Sglebiusas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16175290001Sglebius
16176290001Sglebius
16177290001Sglebiusexec 6>&1
16178290001Sglebius## ----------------------------------- ##
16179290001Sglebius## Main body of $CONFIG_STATUS script. ##
16180290001Sglebius## ----------------------------------- ##
16181290001Sglebius_ASEOF
16182290001Sglebiustest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16183290001Sglebius
16184290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185290001Sglebius# Save the log message, to keep $0 and so on meaningful, and to
16186290001Sglebius# report actual input values of CONFIG_FILES etc. instead of their
16187290001Sglebius# values after options handling.
16188290001Sglebiusac_log="
16189290001SglebiusThis file was extended by libevent $as_me 2.1.5-beta, which was
16190290001Sglebiusgenerated by GNU Autoconf 2.69.  Invocation command line was
16191290001Sglebius
16192290001Sglebius  CONFIG_FILES    = $CONFIG_FILES
16193290001Sglebius  CONFIG_HEADERS  = $CONFIG_HEADERS
16194290001Sglebius  CONFIG_LINKS    = $CONFIG_LINKS
16195290001Sglebius  CONFIG_COMMANDS = $CONFIG_COMMANDS
16196290001Sglebius  $ $0 $@
16197290001Sglebius
16198290001Sglebiuson `(hostname || uname -n) 2>/dev/null | sed 1q`
16199290001Sglebius"
16200290001Sglebius
16201290001Sglebius_ACEOF
16202290001Sglebius
16203290001Sglebiuscase $ac_config_files in *"
16204290001Sglebius"*) set x $ac_config_files; shift; ac_config_files=$*;;
16205290001Sglebiusesac
16206290001Sglebius
16207290001Sglebiuscase $ac_config_headers in *"
16208290001Sglebius"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16209290001Sglebiusesac
16210290001Sglebius
16211290001Sglebius
16212290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16213290001Sglebius# Files that config.status was made for.
16214290001Sglebiusconfig_files="$ac_config_files"
16215290001Sglebiusconfig_headers="$ac_config_headers"
16216290001Sglebiusconfig_commands="$ac_config_commands"
16217290001Sglebius
16218290001Sglebius_ACEOF
16219290001Sglebius
16220290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221290001Sglebiusac_cs_usage="\
16222290001Sglebius\`$as_me' instantiates files and other configuration actions
16223290001Sglebiusfrom templates according to the current configuration.  Unless the files
16224290001Sglebiusand actions are specified as TAGs, all are instantiated by default.
16225290001Sglebius
16226290001SglebiusUsage: $0 [OPTION]... [TAG]...
16227290001Sglebius
16228290001Sglebius  -h, --help       print this help, then exit
16229290001Sglebius  -V, --version    print version number and configuration settings, then exit
16230290001Sglebius      --config     print configuration, then exit
16231290001Sglebius  -q, --quiet, --silent
16232290001Sglebius                   do not print progress messages
16233290001Sglebius  -d, --debug      don't remove temporary files
16234290001Sglebius      --recheck    update $as_me by reconfiguring in the same conditions
16235290001Sglebius      --file=FILE[:TEMPLATE]
16236290001Sglebius                   instantiate the configuration file FILE
16237290001Sglebius      --header=FILE[:TEMPLATE]
16238290001Sglebius                   instantiate the configuration header FILE
16239290001Sglebius
16240290001SglebiusConfiguration files:
16241290001Sglebius$config_files
16242290001Sglebius
16243290001SglebiusConfiguration headers:
16244290001Sglebius$config_headers
16245290001Sglebius
16246290001SglebiusConfiguration commands:
16247290001Sglebius$config_commands
16248290001Sglebius
16249290001SglebiusReport bugs to the package provider."
16250290001Sglebius
16251290001Sglebius_ACEOF
16252290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253290001Sglebiusac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16254290001Sglebiusac_cs_version="\\
16255290001Sglebiuslibevent config.status 2.1.5-beta
16256290001Sglebiusconfigured by $0, generated by GNU Autoconf 2.69,
16257290001Sglebius  with options \\"\$ac_cs_config\\"
16258290001Sglebius
16259290001SglebiusCopyright (C) 2012 Free Software Foundation, Inc.
16260290001SglebiusThis config.status script is free software; the Free Software Foundation
16261290001Sglebiusgives unlimited permission to copy, distribute and modify it."
16262290001Sglebius
16263290001Sglebiusac_pwd='$ac_pwd'
16264290001Sglebiussrcdir='$srcdir'
16265290001SglebiusINSTALL='$INSTALL'
16266290001SglebiusMKDIR_P='$MKDIR_P'
16267290001SglebiusAWK='$AWK'
16268290001Sglebiustest -n "\$AWK" || AWK=awk
16269290001Sglebius_ACEOF
16270290001Sglebius
16271290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272290001Sglebius# The default lists apply if the user does not specify any file.
16273290001Sglebiusac_need_defaults=:
16274290001Sglebiuswhile test $# != 0
16275290001Sglebiusdo
16276290001Sglebius  case $1 in
16277290001Sglebius  --*=?*)
16278290001Sglebius    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16279290001Sglebius    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16280290001Sglebius    ac_shift=:
16281290001Sglebius    ;;
16282290001Sglebius  --*=)
16283290001Sglebius    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16284290001Sglebius    ac_optarg=
16285290001Sglebius    ac_shift=:
16286290001Sglebius    ;;
16287290001Sglebius  *)
16288290001Sglebius    ac_option=$1
16289290001Sglebius    ac_optarg=$2
16290290001Sglebius    ac_shift=shift
16291290001Sglebius    ;;
16292290001Sglebius  esac
16293290001Sglebius
16294290001Sglebius  case $ac_option in
16295290001Sglebius  # Handling of the options.
16296290001Sglebius  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16297290001Sglebius    ac_cs_recheck=: ;;
16298290001Sglebius  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16299290001Sglebius    $as_echo "$ac_cs_version"; exit ;;
16300290001Sglebius  --config | --confi | --conf | --con | --co | --c )
16301290001Sglebius    $as_echo "$ac_cs_config"; exit ;;
16302290001Sglebius  --debug | --debu | --deb | --de | --d | -d )
16303290001Sglebius    debug=: ;;
16304290001Sglebius  --file | --fil | --fi | --f )
16305290001Sglebius    $ac_shift
16306290001Sglebius    case $ac_optarg in
16307290001Sglebius    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16308290001Sglebius    '') as_fn_error $? "missing file argument" ;;
16309290001Sglebius    esac
16310290001Sglebius    as_fn_append CONFIG_FILES " '$ac_optarg'"
16311290001Sglebius    ac_need_defaults=false;;
16312290001Sglebius  --header | --heade | --head | --hea )
16313290001Sglebius    $ac_shift
16314290001Sglebius    case $ac_optarg in
16315290001Sglebius    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16316290001Sglebius    esac
16317290001Sglebius    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16318290001Sglebius    ac_need_defaults=false;;
16319290001Sglebius  --he | --h)
16320290001Sglebius    # Conflict between --help and --header
16321290001Sglebius    as_fn_error $? "ambiguous option: \`$1'
16322290001SglebiusTry \`$0 --help' for more information.";;
16323290001Sglebius  --help | --hel | -h )
16324290001Sglebius    $as_echo "$ac_cs_usage"; exit ;;
16325290001Sglebius  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16326290001Sglebius  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16327290001Sglebius    ac_cs_silent=: ;;
16328290001Sglebius
16329290001Sglebius  # This is an error.
16330290001Sglebius  -*) as_fn_error $? "unrecognized option: \`$1'
16331290001SglebiusTry \`$0 --help' for more information." ;;
16332290001Sglebius
16333290001Sglebius  *) as_fn_append ac_config_targets " $1"
16334290001Sglebius     ac_need_defaults=false ;;
16335290001Sglebius
16336290001Sglebius  esac
16337290001Sglebius  shift
16338290001Sglebiusdone
16339290001Sglebius
16340290001Sglebiusac_configure_extra_args=
16341290001Sglebius
16342290001Sglebiusif $ac_cs_silent; then
16343290001Sglebius  exec 6>/dev/null
16344290001Sglebius  ac_configure_extra_args="$ac_configure_extra_args --silent"
16345290001Sglebiusfi
16346290001Sglebius
16347290001Sglebius_ACEOF
16348290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349290001Sglebiusif \$ac_cs_recheck; then
16350290001Sglebius  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16351290001Sglebius  shift
16352290001Sglebius  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16353290001Sglebius  CONFIG_SHELL='$SHELL'
16354290001Sglebius  export CONFIG_SHELL
16355290001Sglebius  exec "\$@"
16356290001Sglebiusfi
16357290001Sglebius
16358290001Sglebius_ACEOF
16359290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16360290001Sglebiusexec 5>>config.log
16361290001Sglebius{
16362290001Sglebius  echo
16363290001Sglebius  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16364290001Sglebius## Running $as_me. ##
16365290001Sglebius_ASBOX
16366290001Sglebius  $as_echo "$ac_log"
16367290001Sglebius} >&5
16368290001Sglebius
16369290001Sglebius_ACEOF
16370290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16371290001Sglebius#
16372290001Sglebius# INIT-COMMANDS
16373290001Sglebius#
16374290001SglebiusAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16375290001Sglebius
16376290001Sglebius
16377290001Sglebius# The HP-UX ksh and POSIX shell print the target directory to stdout
16378290001Sglebius# if CDPATH is set.
16379290001Sglebius(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16380290001Sglebius
16381290001Sglebiussed_quote_subst='$sed_quote_subst'
16382290001Sglebiusdouble_quote_subst='$double_quote_subst'
16383290001Sglebiusdelay_variable_subst='$delay_variable_subst'
16384290001Sglebiusmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16385290001Sglebiusmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16386290001Sglebiusenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16387290001Sglebiusenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16388290001Sglebiuspic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16389290001Sglebiusenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16390290001SglebiusSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16391290001SglebiusECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16392290001Sglebiushost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16393290001Sglebiushost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16394290001Sglebiushost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16395290001Sglebiusbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16396290001Sglebiusbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16397290001Sglebiusbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16398290001SglebiusSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16399290001SglebiusXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16400290001SglebiusGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16401290001SglebiusEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16402290001SglebiusFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16403290001SglebiusLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16404290001SglebiusNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16405290001SglebiusLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16406290001Sglebiusmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16407290001Sglebiusac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16408290001Sglebiusexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16409290001Sglebiuslt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16410290001Sglebiuslt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16411290001Sglebiuslt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16412290001Sglebiuslt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16413290001Sglebiuslt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16414290001Sglebiusreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16415290001Sglebiusreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16416290001SglebiusOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16417290001Sglebiusdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16418290001Sglebiusfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16419290001Sglebiusfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16420290001Sglebiuswant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16421290001SglebiusDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16422290001Sglebiussharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16423290001SglebiusAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16424290001SglebiusAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16425290001Sglebiusarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16426290001SglebiusSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16427290001SglebiusRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16428290001Sglebiusold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16429290001Sglebiusold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16430290001Sglebiusold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16431290001Sglebiuslock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16432290001SglebiusCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16433290001SglebiusCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16434290001Sglebiuscompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16435290001SglebiusGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16436290001Sglebiuslt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16437290001Sglebiuslt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16438290001Sglebiuslt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16439290001Sglebiuslt_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"`'
16440290001Sglebiusnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16441290001Sglebiuslt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16442290001Sglebiusobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16443290001SglebiusMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16444290001Sglebiuslt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16445290001Sglebiuslt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16446290001Sglebiuslt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16447290001Sglebiuslt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16448290001Sglebiuslt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16449290001Sglebiusneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16450290001SglebiusMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16451290001SglebiusDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16452290001SglebiusNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16453290001SglebiusLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16454290001SglebiusOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16455290001SglebiusOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16456290001Sglebiuslibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16457290001Sglebiusshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16458290001Sglebiusextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16459290001Sglebiusarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16460290001Sglebiusenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16461290001Sglebiusexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16462290001Sglebiuswhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16463290001Sglebiuscompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16464290001Sglebiusold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16465290001Sglebiusold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16466290001Sglebiusarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16467290001Sglebiusarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16468290001Sglebiusmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16469290001Sglebiusmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16470290001Sglebiuswith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16471290001Sglebiusallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16472290001Sglebiusno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16473290001Sglebiushardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16474290001Sglebiushardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16475290001Sglebiushardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16476290001Sglebiushardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16477290001Sglebiushardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16478290001Sglebiushardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16479290001Sglebiushardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16480290001Sglebiushardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16481290001Sglebiusinherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16482290001Sglebiuslink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16483290001Sglebiusalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16484290001Sglebiusexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16485290001Sglebiusexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16486290001Sglebiusinclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16487290001Sglebiusprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16488290001Sglebiuspostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16489290001Sglebiusfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16490290001Sglebiusvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16491290001Sglebiusneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16492290001Sglebiusneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16493290001Sglebiusversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16494290001Sglebiusrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16495290001Sglebiusshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16496290001Sglebiusshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16497290001Sglebiuslibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16498290001Sglebiuslibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16499290001Sglebiussoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16500290001Sglebiusinstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16501290001Sglebiuspostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16502290001Sglebiuspostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16503290001Sglebiusfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16504290001Sglebiusfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16505290001Sglebiushardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16506290001Sglebiussys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16507290001Sglebiussys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16508290001Sglebiushardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16509290001Sglebiusenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16510290001Sglebiusenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16511290001Sglebiusenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16512290001Sglebiusold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16513290001Sglebiusstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16514290001Sglebius
16515290001SglebiusLTCC='$LTCC'
16516290001SglebiusLTCFLAGS='$LTCFLAGS'
16517290001Sglebiuscompiler='$compiler_DEFAULT'
16518290001Sglebius
16519290001Sglebius# A function that is used when there is no print builtin or printf.
16520290001Sglebiusfunc_fallback_echo ()
16521290001Sglebius{
16522290001Sglebius  eval 'cat <<_LTECHO_EOF
16523290001Sglebius\$1
16524290001Sglebius_LTECHO_EOF'
16525290001Sglebius}
16526290001Sglebius
16527290001Sglebius# Quote evaled strings.
16528290001Sglebiusfor var in SHELL \
16529290001SglebiusECHO \
16530290001SglebiusSED \
16531290001SglebiusGREP \
16532290001SglebiusEGREP \
16533290001SglebiusFGREP \
16534290001SglebiusLD \
16535290001SglebiusNM \
16536290001SglebiusLN_S \
16537290001Sglebiuslt_SP2NL \
16538290001Sglebiuslt_NL2SP \
16539290001Sglebiusreload_flag \
16540290001SglebiusOBJDUMP \
16541290001Sglebiusdeplibs_check_method \
16542290001Sglebiusfile_magic_cmd \
16543290001Sglebiusfile_magic_glob \
16544290001Sglebiuswant_nocaseglob \
16545290001SglebiusDLLTOOL \
16546290001Sglebiussharedlib_from_linklib_cmd \
16547290001SglebiusAR \
16548290001SglebiusAR_FLAGS \
16549290001Sglebiusarchiver_list_spec \
16550290001SglebiusSTRIP \
16551290001SglebiusRANLIB \
16552290001SglebiusCC \
16553290001SglebiusCFLAGS \
16554290001Sglebiuscompiler \
16555290001Sglebiuslt_cv_sys_global_symbol_pipe \
16556290001Sglebiuslt_cv_sys_global_symbol_to_cdecl \
16557290001Sglebiuslt_cv_sys_global_symbol_to_c_name_address \
16558290001Sglebiuslt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16559290001Sglebiusnm_file_list_spec \
16560290001Sglebiuslt_prog_compiler_no_builtin_flag \
16561290001Sglebiuslt_prog_compiler_pic \
16562290001Sglebiuslt_prog_compiler_wl \
16563290001Sglebiuslt_prog_compiler_static \
16564290001Sglebiuslt_cv_prog_compiler_c_o \
16565290001Sglebiusneed_locks \
16566290001SglebiusMANIFEST_TOOL \
16567290001SglebiusDSYMUTIL \
16568290001SglebiusNMEDIT \
16569290001SglebiusLIPO \
16570290001SglebiusOTOOL \
16571290001SglebiusOTOOL64 \
16572290001Sglebiusshrext_cmds \
16573290001Sglebiusexport_dynamic_flag_spec \
16574290001Sglebiuswhole_archive_flag_spec \
16575290001Sglebiuscompiler_needs_object \
16576290001Sglebiuswith_gnu_ld \
16577290001Sglebiusallow_undefined_flag \
16578290001Sglebiusno_undefined_flag \
16579290001Sglebiushardcode_libdir_flag_spec \
16580290001Sglebiushardcode_libdir_flag_spec_ld \
16581290001Sglebiushardcode_libdir_separator \
16582290001Sglebiusexclude_expsyms \
16583290001Sglebiusinclude_expsyms \
16584290001Sglebiusfile_list_spec \
16585290001Sglebiusvariables_saved_for_relink \
16586290001Sglebiuslibname_spec \
16587290001Sglebiuslibrary_names_spec \
16588290001Sglebiussoname_spec \
16589290001Sglebiusinstall_override_mode \
16590290001Sglebiusfinish_eval \
16591290001Sglebiusold_striplib \
16592290001Sglebiusstriplib; do
16593290001Sglebius    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16594290001Sglebius    *[\\\\\\\`\\"\\\$]*)
16595290001Sglebius      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16596290001Sglebius      ;;
16597290001Sglebius    *)
16598290001Sglebius      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16599290001Sglebius      ;;
16600290001Sglebius    esac
16601290001Sglebiusdone
16602290001Sglebius
16603290001Sglebius# Double-quote double-evaled strings.
16604290001Sglebiusfor var in reload_cmds \
16605290001Sglebiusold_postinstall_cmds \
16606290001Sglebiusold_postuninstall_cmds \
16607290001Sglebiusold_archive_cmds \
16608290001Sglebiusextract_expsyms_cmds \
16609290001Sglebiusold_archive_from_new_cmds \
16610290001Sglebiusold_archive_from_expsyms_cmds \
16611290001Sglebiusarchive_cmds \
16612290001Sglebiusarchive_expsym_cmds \
16613290001Sglebiusmodule_cmds \
16614290001Sglebiusmodule_expsym_cmds \
16615290001Sglebiusexport_symbols_cmds \
16616290001Sglebiusprelink_cmds \
16617290001Sglebiuspostlink_cmds \
16618290001Sglebiuspostinstall_cmds \
16619290001Sglebiuspostuninstall_cmds \
16620290001Sglebiusfinish_cmds \
16621290001Sglebiussys_lib_search_path_spec \
16622290001Sglebiussys_lib_dlsearch_path_spec; do
16623290001Sglebius    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16624290001Sglebius    *[\\\\\\\`\\"\\\$]*)
16625290001Sglebius      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16626290001Sglebius      ;;
16627290001Sglebius    *)
16628290001Sglebius      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16629290001Sglebius      ;;
16630290001Sglebius    esac
16631290001Sglebiusdone
16632290001Sglebius
16633290001Sglebiusac_aux_dir='$ac_aux_dir'
16634290001Sglebiusxsi_shell='$xsi_shell'
16635290001Sglebiuslt_shell_append='$lt_shell_append'
16636290001Sglebius
16637290001Sglebius# See if we are running on zsh, and set the options which allow our
16638290001Sglebius# commands through without removal of \ escapes INIT.
16639290001Sglebiusif test -n "\${ZSH_VERSION+set}" ; then
16640290001Sglebius   setopt NO_GLOB_SUBST
16641290001Sglebiusfi
16642290001Sglebius
16643290001Sglebius
16644290001Sglebius    PACKAGE='$PACKAGE'
16645290001Sglebius    VERSION='$VERSION'
16646290001Sglebius    TIMESTAMP='$TIMESTAMP'
16647290001Sglebius    RM='$RM'
16648290001Sglebius    ofile='$ofile'
16649290001Sglebius
16650290001Sglebius
16651290001Sglebius
16652290001Sglebius
16653290001Sglebius_ACEOF
16654290001Sglebius
16655290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16656290001Sglebius
16657290001Sglebius# Handling of arguments.
16658290001Sglebiusfor ac_config_target in $ac_config_targets
16659290001Sglebiusdo
16660290001Sglebius  case $ac_config_target in
16661290001Sglebius    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16662290001Sglebius    "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
16663290001Sglebius    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16664290001Sglebius    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16665290001Sglebius    "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16666290001Sglebius    "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16667290001Sglebius    "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16668290001Sglebius    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16669290001Sglebius
16670290001Sglebius  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16671290001Sglebius  esac
16672290001Sglebiusdone
16673290001Sglebius
16674290001Sglebius
16675290001Sglebius# If the user did not use the arguments to specify the items to instantiate,
16676290001Sglebius# then the envvar interface is used.  Set only those that are not.
16677290001Sglebius# We use the long form for the default assignment because of an extremely
16678290001Sglebius# bizarre bug on SunOS 4.1.3.
16679290001Sglebiusif $ac_need_defaults; then
16680290001Sglebius  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16681290001Sglebius  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16682290001Sglebius  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16683290001Sglebiusfi
16684290001Sglebius
16685290001Sglebius# Have a temporary directory for convenience.  Make it in the build tree
16686290001Sglebius# simply because there is no reason against having it here, and in addition,
16687290001Sglebius# creating and moving files from /tmp can sometimes cause problems.
16688290001Sglebius# Hook for its removal unless debugging.
16689290001Sglebius# Note that there is a small window in which the directory will not be cleaned:
16690290001Sglebius# after its creation but before its name has been assigned to `$tmp'.
16691290001Sglebius$debug ||
16692290001Sglebius{
16693290001Sglebius  tmp= ac_tmp=
16694290001Sglebius  trap 'exit_status=$?
16695290001Sglebius  : "${ac_tmp:=$tmp}"
16696290001Sglebius  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16697290001Sglebius' 0
16698290001Sglebius  trap 'as_fn_exit 1' 1 2 13 15
16699290001Sglebius}
16700290001Sglebius# Create a (secure) tmp directory for tmp files.
16701290001Sglebius
16702290001Sglebius{
16703290001Sglebius  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16704290001Sglebius  test -d "$tmp"
16705290001Sglebius}  ||
16706290001Sglebius{
16707290001Sglebius  tmp=./conf$$-$RANDOM
16708290001Sglebius  (umask 077 && mkdir "$tmp")
16709290001Sglebius} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16710290001Sglebiusac_tmp=$tmp
16711290001Sglebius
16712290001Sglebius# Set up the scripts for CONFIG_FILES section.
16713290001Sglebius# No need to generate them if there are no CONFIG_FILES.
16714290001Sglebius# This happens for instance with `./config.status config.h'.
16715290001Sglebiusif test -n "$CONFIG_FILES"; then
16716290001Sglebius
16717290001Sglebius
16718290001Sglebiusac_cr=`echo X | tr X '\015'`
16719290001Sglebius# On cygwin, bash can eat \r inside `` if the user requested igncr.
16720290001Sglebius# But we know of no other shell where ac_cr would be empty at this
16721290001Sglebius# point, so we can use a bashism as a fallback.
16722290001Sglebiusif test "x$ac_cr" = x; then
16723290001Sglebius  eval ac_cr=\$\'\\r\'
16724290001Sglebiusfi
16725290001Sglebiusac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16726290001Sglebiusif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16727290001Sglebius  ac_cs_awk_cr='\\r'
16728290001Sglebiuselse
16729290001Sglebius  ac_cs_awk_cr=$ac_cr
16730290001Sglebiusfi
16731290001Sglebius
16732290001Sglebiusecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16733290001Sglebius_ACEOF
16734290001Sglebius
16735290001Sglebius
16736290001Sglebius{
16737290001Sglebius  echo "cat >conf$$subs.awk <<_ACEOF" &&
16738290001Sglebius  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16739290001Sglebius  echo "_ACEOF"
16740290001Sglebius} >conf$$subs.sh ||
16741290001Sglebius  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16742290001Sglebiusac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16743290001Sglebiusac_delim='%!_!# '
16744290001Sglebiusfor ac_last_try in false false false false false :; do
16745290001Sglebius  . ./conf$$subs.sh ||
16746290001Sglebius    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16747290001Sglebius
16748290001Sglebius  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16749290001Sglebius  if test $ac_delim_n = $ac_delim_num; then
16750290001Sglebius    break
16751290001Sglebius  elif $ac_last_try; then
16752290001Sglebius    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16753290001Sglebius  else
16754290001Sglebius    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16755290001Sglebius  fi
16756290001Sglebiusdone
16757290001Sglebiusrm -f conf$$subs.sh
16758290001Sglebius
16759290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16760290001Sglebiuscat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16761290001Sglebius_ACEOF
16762290001Sglebiussed -n '
16763290001Sglebiush
16764290001Sglebiuss/^/S["/; s/!.*/"]=/
16765290001Sglebiusp
16766290001Sglebiusg
16767290001Sglebiuss/^[^!]*!//
16768290001Sglebius:repl
16769290001Sglebiust repl
16770290001Sglebiuss/'"$ac_delim"'$//
16771290001Sglebiust delim
16772290001Sglebius:nl
16773290001Sglebiush
16774290001Sglebiuss/\(.\{148\}\)..*/\1/
16775290001Sglebiust more1
16776290001Sglebiuss/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16777290001Sglebiusp
16778290001Sglebiusn
16779290001Sglebiusb repl
16780290001Sglebius:more1
16781290001Sglebiuss/["\\]/\\&/g; s/^/"/; s/$/"\\/
16782290001Sglebiusp
16783290001Sglebiusg
16784290001Sglebiuss/.\{148\}//
16785290001Sglebiust nl
16786290001Sglebius:delim
16787290001Sglebiush
16788290001Sglebiuss/\(.\{148\}\)..*/\1/
16789290001Sglebiust more2
16790290001Sglebiuss/["\\]/\\&/g; s/^/"/; s/$/"/
16791290001Sglebiusp
16792290001Sglebiusb
16793290001Sglebius:more2
16794290001Sglebiuss/["\\]/\\&/g; s/^/"/; s/$/"\\/
16795290001Sglebiusp
16796290001Sglebiusg
16797290001Sglebiuss/.\{148\}//
16798290001Sglebiust delim
16799290001Sglebius' <conf$$subs.awk | sed '
16800290001Sglebius/^[^""]/{
16801290001Sglebius  N
16802290001Sglebius  s/\n//
16803290001Sglebius}
16804290001Sglebius' >>$CONFIG_STATUS || ac_write_fail=1
16805290001Sglebiusrm -f conf$$subs.awk
16806290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807290001Sglebius_ACAWK
16808290001Sglebiuscat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16809290001Sglebius  for (key in S) S_is_set[key] = 1
16810290001Sglebius  FS = ""
16811290001Sglebius
16812290001Sglebius}
16813290001Sglebius{
16814290001Sglebius  line = $ 0
16815290001Sglebius  nfields = split(line, field, "@")
16816290001Sglebius  substed = 0
16817290001Sglebius  len = length(field[1])
16818290001Sglebius  for (i = 2; i < nfields; i++) {
16819290001Sglebius    key = field[i]
16820290001Sglebius    keylen = length(key)
16821290001Sglebius    if (S_is_set[key]) {
16822290001Sglebius      value = S[key]
16823290001Sglebius      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16824290001Sglebius      len += length(value) + length(field[++i])
16825290001Sglebius      substed = 1
16826290001Sglebius    } else
16827290001Sglebius      len += 1 + keylen
16828290001Sglebius  }
16829290001Sglebius
16830290001Sglebius  print line
16831290001Sglebius}
16832290001Sglebius
16833290001Sglebius_ACAWK
16834290001Sglebius_ACEOF
16835290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836290001Sglebiusif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16837290001Sglebius  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16838290001Sglebiuselse
16839290001Sglebius  cat
16840290001Sglebiusfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16841290001Sglebius  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16842290001Sglebius_ACEOF
16843290001Sglebius
16844290001Sglebius# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16845290001Sglebius# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16846290001Sglebius# trailing colons and then remove the whole line if VPATH becomes empty
16847290001Sglebius# (actually we leave an empty line to preserve line numbers).
16848290001Sglebiusif test "x$srcdir" = x.; then
16849290001Sglebius  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16850290001Sglebiush
16851290001Sglebiuss///
16852290001Sglebiuss/^/:/
16853290001Sglebiuss/[	 ]*$/:/
16854290001Sglebiuss/:\$(srcdir):/:/g
16855290001Sglebiuss/:\${srcdir}:/:/g
16856290001Sglebiuss/:@srcdir@:/:/g
16857290001Sglebiuss/^:*//
16858290001Sglebiuss/:*$//
16859290001Sglebiusx
16860290001Sglebiuss/\(=[	 ]*\).*/\1/
16861290001SglebiusG
16862290001Sglebiuss/\n//
16863290001Sglebiuss/^[^=]*=[	 ]*$//
16864290001Sglebius}'
16865290001Sglebiusfi
16866290001Sglebius
16867290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16868290001Sglebiusfi # test -n "$CONFIG_FILES"
16869290001Sglebius
16870290001Sglebius# Set up the scripts for CONFIG_HEADERS section.
16871290001Sglebius# No need to generate them if there are no CONFIG_HEADERS.
16872290001Sglebius# This happens for instance with `./config.status Makefile'.
16873290001Sglebiusif test -n "$CONFIG_HEADERS"; then
16874290001Sglebiuscat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16875290001SglebiusBEGIN {
16876290001Sglebius_ACEOF
16877290001Sglebius
16878290001Sglebius# Transform confdefs.h into an awk script `defines.awk', embedded as
16879290001Sglebius# here-document in config.status, that substitutes the proper values into
16880290001Sglebius# config.h.in to produce config.h.
16881290001Sglebius
16882290001Sglebius# Create a delimiter string that does not exist in confdefs.h, to ease
16883290001Sglebius# handling of long lines.
16884290001Sglebiusac_delim='%!_!# '
16885290001Sglebiusfor ac_last_try in false false :; do
16886290001Sglebius  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16887290001Sglebius  if test -z "$ac_tt"; then
16888290001Sglebius    break
16889290001Sglebius  elif $ac_last_try; then
16890290001Sglebius    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16891290001Sglebius  else
16892290001Sglebius    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16893290001Sglebius  fi
16894290001Sglebiusdone
16895290001Sglebius
16896290001Sglebius# For the awk script, D is an array of macro values keyed by name,
16897290001Sglebius# likewise P contains macro parameters if any.  Preserve backslash
16898290001Sglebius# newline sequences.
16899290001Sglebius
16900290001Sglebiusac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16901290001Sglebiussed -n '
16902290001Sglebiuss/.\{148\}/&'"$ac_delim"'/g
16903290001Sglebiust rset
16904290001Sglebius:rset
16905290001Sglebiuss/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16906290001Sglebiust def
16907290001Sglebiusd
16908290001Sglebius:def
16909290001Sglebiuss/\\$//
16910290001Sglebiust bsnl
16911290001Sglebiuss/["\\]/\\&/g
16912290001Sglebiuss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16913290001SglebiusD["\1"]=" \3"/p
16914290001Sglebiuss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16915290001Sglebiusd
16916290001Sglebius:bsnl
16917290001Sglebiuss/["\\]/\\&/g
16918290001Sglebiuss/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16919290001SglebiusD["\1"]=" \3\\\\\\n"\\/p
16920290001Sglebiust cont
16921290001Sglebiuss/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16922290001Sglebiust cont
16923290001Sglebiusd
16924290001Sglebius:cont
16925290001Sglebiusn
16926290001Sglebiuss/.\{148\}/&'"$ac_delim"'/g
16927290001Sglebiust clear
16928290001Sglebius:clear
16929290001Sglebiuss/\\$//
16930290001Sglebiust bsnlc
16931290001Sglebiuss/["\\]/\\&/g; s/^/"/; s/$/"/p
16932290001Sglebiusd
16933290001Sglebius:bsnlc
16934290001Sglebiuss/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16935290001Sglebiusb cont
16936290001Sglebius' <confdefs.h | sed '
16937290001Sglebiuss/'"$ac_delim"'/"\\\
16938290001Sglebius"/g' >>$CONFIG_STATUS || ac_write_fail=1
16939290001Sglebius
16940290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941290001Sglebius  for (key in D) D_is_set[key] = 1
16942290001Sglebius  FS = ""
16943290001Sglebius}
16944290001Sglebius/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16945290001Sglebius  line = \$ 0
16946290001Sglebius  split(line, arg, " ")
16947290001Sglebius  if (arg[1] == "#") {
16948290001Sglebius    defundef = arg[2]
16949290001Sglebius    mac1 = arg[3]
16950290001Sglebius  } else {
16951290001Sglebius    defundef = substr(arg[1], 2)
16952290001Sglebius    mac1 = arg[2]
16953290001Sglebius  }
16954290001Sglebius  split(mac1, mac2, "(") #)
16955290001Sglebius  macro = mac2[1]
16956290001Sglebius  prefix = substr(line, 1, index(line, defundef) - 1)
16957290001Sglebius  if (D_is_set[macro]) {
16958290001Sglebius    # Preserve the white space surrounding the "#".
16959290001Sglebius    print prefix "define", macro P[macro] D[macro]
16960290001Sglebius    next
16961290001Sglebius  } else {
16962290001Sglebius    # Replace #undef with comments.  This is necessary, for example,
16963290001Sglebius    # in the case of _POSIX_SOURCE, which is predefined and required
16964290001Sglebius    # on some systems where configure will not decide to define it.
16965290001Sglebius    if (defundef == "undef") {
16966290001Sglebius      print "/*", prefix defundef, macro, "*/"
16967290001Sglebius      next
16968290001Sglebius    }
16969290001Sglebius  }
16970290001Sglebius}
16971290001Sglebius{ print }
16972290001Sglebius_ACAWK
16973290001Sglebius_ACEOF
16974290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16975290001Sglebius  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16976290001Sglebiusfi # test -n "$CONFIG_HEADERS"
16977290001Sglebius
16978290001Sglebius
16979290001Sglebiuseval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16980290001Sglebiusshift
16981290001Sglebiusfor ac_tag
16982290001Sglebiusdo
16983290001Sglebius  case $ac_tag in
16984290001Sglebius  :[FHLC]) ac_mode=$ac_tag; continue;;
16985290001Sglebius  esac
16986290001Sglebius  case $ac_mode$ac_tag in
16987290001Sglebius  :[FHL]*:*);;
16988290001Sglebius  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16989290001Sglebius  :[FH]-) ac_tag=-:-;;
16990290001Sglebius  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16991290001Sglebius  esac
16992290001Sglebius  ac_save_IFS=$IFS
16993290001Sglebius  IFS=:
16994290001Sglebius  set x $ac_tag
16995290001Sglebius  IFS=$ac_save_IFS
16996290001Sglebius  shift
16997290001Sglebius  ac_file=$1
16998290001Sglebius  shift
16999290001Sglebius
17000290001Sglebius  case $ac_mode in
17001290001Sglebius  :L) ac_source=$1;;
17002290001Sglebius  :[FH])
17003290001Sglebius    ac_file_inputs=
17004290001Sglebius    for ac_f
17005290001Sglebius    do
17006290001Sglebius      case $ac_f in
17007290001Sglebius      -) ac_f="$ac_tmp/stdin";;
17008290001Sglebius      *) # Look for the file first in the build tree, then in the source tree
17009290001Sglebius	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17010290001Sglebius	 # because $ac_f cannot contain `:'.
17011290001Sglebius	 test -f "$ac_f" ||
17012290001Sglebius	   case $ac_f in
17013290001Sglebius	   [\\/$]*) false;;
17014290001Sglebius	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17015290001Sglebius	   esac ||
17016290001Sglebius	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17017290001Sglebius      esac
17018290001Sglebius      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17019290001Sglebius      as_fn_append ac_file_inputs " '$ac_f'"
17020290001Sglebius    done
17021290001Sglebius
17022290001Sglebius    # Let's still pretend it is `configure' which instantiates (i.e., don't
17023290001Sglebius    # use $as_me), people would be surprised to read:
17024290001Sglebius    #    /* config.h.  Generated by config.status.  */
17025290001Sglebius    configure_input='Generated from '`
17026290001Sglebius	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17027290001Sglebius	`' by configure.'
17028290001Sglebius    if test x"$ac_file" != x-; then
17029290001Sglebius      configure_input="$ac_file.  $configure_input"
17030290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17031290001Sglebius$as_echo "$as_me: creating $ac_file" >&6;}
17032290001Sglebius    fi
17033290001Sglebius    # Neutralize special characters interpreted by sed in replacement strings.
17034290001Sglebius    case $configure_input in #(
17035290001Sglebius    *\&* | *\|* | *\\* )
17036290001Sglebius       ac_sed_conf_input=`$as_echo "$configure_input" |
17037290001Sglebius       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17038290001Sglebius    *) ac_sed_conf_input=$configure_input;;
17039290001Sglebius    esac
17040290001Sglebius
17041290001Sglebius    case $ac_tag in
17042290001Sglebius    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17043290001Sglebius      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17044290001Sglebius    esac
17045290001Sglebius    ;;
17046290001Sglebius  esac
17047290001Sglebius
17048290001Sglebius  ac_dir=`$as_dirname -- "$ac_file" ||
17049290001Sglebius$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17050290001Sglebius	 X"$ac_file" : 'X\(//\)[^/]' \| \
17051290001Sglebius	 X"$ac_file" : 'X\(//\)$' \| \
17052290001Sglebius	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17053290001Sglebius$as_echo X"$ac_file" |
17054290001Sglebius    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17055290001Sglebius	    s//\1/
17056290001Sglebius	    q
17057290001Sglebius	  }
17058290001Sglebius	  /^X\(\/\/\)[^/].*/{
17059290001Sglebius	    s//\1/
17060290001Sglebius	    q
17061290001Sglebius	  }
17062290001Sglebius	  /^X\(\/\/\)$/{
17063290001Sglebius	    s//\1/
17064290001Sglebius	    q
17065290001Sglebius	  }
17066290001Sglebius	  /^X\(\/\).*/{
17067290001Sglebius	    s//\1/
17068290001Sglebius	    q
17069290001Sglebius	  }
17070290001Sglebius	  s/.*/./; q'`
17071290001Sglebius  as_dir="$ac_dir"; as_fn_mkdir_p
17072290001Sglebius  ac_builddir=.
17073290001Sglebius
17074290001Sglebiuscase "$ac_dir" in
17075290001Sglebius.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17076290001Sglebius*)
17077290001Sglebius  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17078290001Sglebius  # A ".." for each directory in $ac_dir_suffix.
17079290001Sglebius  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17080290001Sglebius  case $ac_top_builddir_sub in
17081290001Sglebius  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17082290001Sglebius  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17083290001Sglebius  esac ;;
17084290001Sglebiusesac
17085290001Sglebiusac_abs_top_builddir=$ac_pwd
17086290001Sglebiusac_abs_builddir=$ac_pwd$ac_dir_suffix
17087290001Sglebius# for backward compatibility:
17088290001Sglebiusac_top_builddir=$ac_top_build_prefix
17089290001Sglebius
17090290001Sglebiuscase $srcdir in
17091290001Sglebius  .)  # We are building in place.
17092290001Sglebius    ac_srcdir=.
17093290001Sglebius    ac_top_srcdir=$ac_top_builddir_sub
17094290001Sglebius    ac_abs_top_srcdir=$ac_pwd ;;
17095290001Sglebius  [\\/]* | ?:[\\/]* )  # Absolute name.
17096290001Sglebius    ac_srcdir=$srcdir$ac_dir_suffix;
17097290001Sglebius    ac_top_srcdir=$srcdir
17098290001Sglebius    ac_abs_top_srcdir=$srcdir ;;
17099290001Sglebius  *) # Relative name.
17100290001Sglebius    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17101290001Sglebius    ac_top_srcdir=$ac_top_build_prefix$srcdir
17102290001Sglebius    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17103290001Sglebiusesac
17104290001Sglebiusac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17105290001Sglebius
17106290001Sglebius
17107290001Sglebius  case $ac_mode in
17108290001Sglebius  :F)
17109290001Sglebius  #
17110290001Sglebius  # CONFIG_FILE
17111290001Sglebius  #
17112290001Sglebius
17113290001Sglebius  case $INSTALL in
17114290001Sglebius  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17115290001Sglebius  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17116290001Sglebius  esac
17117290001Sglebius  ac_MKDIR_P=$MKDIR_P
17118290001Sglebius  case $MKDIR_P in
17119290001Sglebius  [\\/$]* | ?:[\\/]* ) ;;
17120290001Sglebius  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17121290001Sglebius  esac
17122290001Sglebius_ACEOF
17123290001Sglebius
17124290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125290001Sglebius# If the template does not know about datarootdir, expand it.
17126290001Sglebius# FIXME: This hack should be removed a few years after 2.60.
17127290001Sglebiusac_datarootdir_hack=; ac_datarootdir_seen=
17128290001Sglebiusac_sed_dataroot='
17129290001Sglebius/datarootdir/ {
17130290001Sglebius  p
17131290001Sglebius  q
17132290001Sglebius}
17133290001Sglebius/@datadir@/p
17134290001Sglebius/@docdir@/p
17135290001Sglebius/@infodir@/p
17136290001Sglebius/@localedir@/p
17137290001Sglebius/@mandir@/p'
17138290001Sglebiuscase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17139290001Sglebius*datarootdir*) ac_datarootdir_seen=yes;;
17140290001Sglebius*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17141290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17142290001Sglebius$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17143290001Sglebius_ACEOF
17144290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17145290001Sglebius  ac_datarootdir_hack='
17146290001Sglebius  s&@datadir@&$datadir&g
17147290001Sglebius  s&@docdir@&$docdir&g
17148290001Sglebius  s&@infodir@&$infodir&g
17149290001Sglebius  s&@localedir@&$localedir&g
17150290001Sglebius  s&@mandir@&$mandir&g
17151290001Sglebius  s&\\\${datarootdir}&$datarootdir&g' ;;
17152290001Sglebiusesac
17153290001Sglebius_ACEOF
17154290001Sglebius
17155290001Sglebius# Neutralize VPATH when `$srcdir' = `.'.
17156290001Sglebius# Shell code in configure.ac might set extrasub.
17157290001Sglebius# FIXME: do we really want to maintain this feature?
17158290001Sglebiuscat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17159290001Sglebiusac_sed_extra="$ac_vpsub
17160290001Sglebius$extrasub
17161290001Sglebius_ACEOF
17162290001Sglebiuscat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17163290001Sglebius:t
17164290001Sglebius/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17165290001Sglebiuss|@configure_input@|$ac_sed_conf_input|;t t
17166290001Sglebiuss&@top_builddir@&$ac_top_builddir_sub&;t t
17167290001Sglebiuss&@top_build_prefix@&$ac_top_build_prefix&;t t
17168290001Sglebiuss&@srcdir@&$ac_srcdir&;t t
17169290001Sglebiuss&@abs_srcdir@&$ac_abs_srcdir&;t t
17170290001Sglebiuss&@top_srcdir@&$ac_top_srcdir&;t t
17171290001Sglebiuss&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17172290001Sglebiuss&@builddir@&$ac_builddir&;t t
17173290001Sglebiuss&@abs_builddir@&$ac_abs_builddir&;t t
17174290001Sglebiuss&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17175290001Sglebiuss&@INSTALL@&$ac_INSTALL&;t t
17176290001Sglebiuss&@MKDIR_P@&$ac_MKDIR_P&;t t
17177290001Sglebius$ac_datarootdir_hack
17178290001Sglebius"
17179290001Sglebiuseval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17180290001Sglebius  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17181290001Sglebius
17182290001Sglebiustest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17183290001Sglebius  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17184290001Sglebius  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17185290001Sglebius      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17186290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17187290001Sglebiuswhich seems to be undefined.  Please make sure it is defined" >&5
17188290001Sglebius$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17189290001Sglebiuswhich seems to be undefined.  Please make sure it is defined" >&2;}
17190290001Sglebius
17191290001Sglebius  rm -f "$ac_tmp/stdin"
17192290001Sglebius  case $ac_file in
17193290001Sglebius  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17194290001Sglebius  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17195290001Sglebius  esac \
17196290001Sglebius  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17197290001Sglebius ;;
17198290001Sglebius  :H)
17199290001Sglebius  #
17200290001Sglebius  # CONFIG_HEADER
17201290001Sglebius  #
17202290001Sglebius  if test x"$ac_file" != x-; then
17203290001Sglebius    {
17204290001Sglebius      $as_echo "/* $configure_input  */" \
17205290001Sglebius      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17206290001Sglebius    } >"$ac_tmp/config.h" \
17207290001Sglebius      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17208290001Sglebius    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17209290001Sglebius      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17210290001Sglebius$as_echo "$as_me: $ac_file is unchanged" >&6;}
17211290001Sglebius    else
17212290001Sglebius      rm -f "$ac_file"
17213290001Sglebius      mv "$ac_tmp/config.h" "$ac_file" \
17214290001Sglebius	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17215290001Sglebius    fi
17216290001Sglebius  else
17217290001Sglebius    $as_echo "/* $configure_input  */" \
17218290001Sglebius      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17219290001Sglebius      || as_fn_error $? "could not create -" "$LINENO" 5
17220290001Sglebius  fi
17221290001Sglebius# Compute "$ac_file"'s index in $config_headers.
17222290001Sglebius_am_arg="$ac_file"
17223290001Sglebius_am_stamp_count=1
17224290001Sglebiusfor _am_header in $config_headers :; do
17225290001Sglebius  case $_am_header in
17226290001Sglebius    $_am_arg | $_am_arg:* )
17227290001Sglebius      break ;;
17228290001Sglebius    * )
17229290001Sglebius      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17230290001Sglebius  esac
17231290001Sglebiusdone
17232290001Sglebiusecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17233290001Sglebius$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17234290001Sglebius	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17235290001Sglebius	 X"$_am_arg" : 'X\(//\)$' \| \
17236290001Sglebius	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17237290001Sglebius$as_echo X"$_am_arg" |
17238290001Sglebius    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17239290001Sglebius	    s//\1/
17240290001Sglebius	    q
17241290001Sglebius	  }
17242290001Sglebius	  /^X\(\/\/\)[^/].*/{
17243290001Sglebius	    s//\1/
17244290001Sglebius	    q
17245290001Sglebius	  }
17246290001Sglebius	  /^X\(\/\/\)$/{
17247290001Sglebius	    s//\1/
17248290001Sglebius	    q
17249290001Sglebius	  }
17250290001Sglebius	  /^X\(\/\).*/{
17251290001Sglebius	    s//\1/
17252290001Sglebius	    q
17253290001Sglebius	  }
17254290001Sglebius	  s/.*/./; q'`/stamp-h$_am_stamp_count
17255290001Sglebius ;;
17256290001Sglebius
17257290001Sglebius  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17258290001Sglebius$as_echo "$as_me: executing $ac_file commands" >&6;}
17259290001Sglebius ;;
17260290001Sglebius  esac
17261290001Sglebius
17262290001Sglebius
17263290001Sglebius  case $ac_file$ac_mode in
17264290001Sglebius    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17265290001Sglebius  # Older Autoconf quotes --file arguments for eval, but not when files
17266290001Sglebius  # are listed without --file.  Let's play safe and only enable the eval
17267290001Sglebius  # if we detect the quoting.
17268290001Sglebius  case $CONFIG_FILES in
17269290001Sglebius  *\'*) eval set x "$CONFIG_FILES" ;;
17270290001Sglebius  *)   set x $CONFIG_FILES ;;
17271290001Sglebius  esac
17272290001Sglebius  shift
17273290001Sglebius  for mf
17274290001Sglebius  do
17275290001Sglebius    # Strip MF so we end up with the name of the file.
17276290001Sglebius    mf=`echo "$mf" | sed -e 's/:.*$//'`
17277290001Sglebius    # Check whether this is an Automake generated Makefile or not.
17278290001Sglebius    # We used to match only the files named 'Makefile.in', but
17279290001Sglebius    # some people rename them; so instead we look at the file content.
17280290001Sglebius    # Grep'ing the first line is not enough: some people post-process
17281290001Sglebius    # each Makefile.in and add a new line on top of each file to say so.
17282290001Sglebius    # Grep'ing the whole file is not good either: AIX grep has a line
17283290001Sglebius    # limit of 2048, but all sed's we know have understand at least 4000.
17284290001Sglebius    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17285290001Sglebius      dirpart=`$as_dirname -- "$mf" ||
17286290001Sglebius$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17287290001Sglebius	 X"$mf" : 'X\(//\)[^/]' \| \
17288290001Sglebius	 X"$mf" : 'X\(//\)$' \| \
17289290001Sglebius	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17290290001Sglebius$as_echo X"$mf" |
17291290001Sglebius    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17292290001Sglebius	    s//\1/
17293290001Sglebius	    q
17294290001Sglebius	  }
17295290001Sglebius	  /^X\(\/\/\)[^/].*/{
17296290001Sglebius	    s//\1/
17297290001Sglebius	    q
17298290001Sglebius	  }
17299290001Sglebius	  /^X\(\/\/\)$/{
17300290001Sglebius	    s//\1/
17301290001Sglebius	    q
17302290001Sglebius	  }
17303290001Sglebius	  /^X\(\/\).*/{
17304290001Sglebius	    s//\1/
17305290001Sglebius	    q
17306290001Sglebius	  }
17307290001Sglebius	  s/.*/./; q'`
17308290001Sglebius    else
17309290001Sglebius      continue
17310290001Sglebius    fi
17311290001Sglebius    # Extract the definition of DEPDIR, am__include, and am__quote
17312290001Sglebius    # from the Makefile without running 'make'.
17313290001Sglebius    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17314290001Sglebius    test -z "$DEPDIR" && continue
17315290001Sglebius    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17316290001Sglebius    test -z "$am__include" && continue
17317290001Sglebius    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17318290001Sglebius    # Find all dependency output files, they are included files with
17319290001Sglebius    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17320290001Sglebius    # simplest approach to changing $(DEPDIR) to its actual value in the
17321290001Sglebius    # expansion.
17322290001Sglebius    for file in `sed -n "
17323290001Sglebius      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17324290001Sglebius	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17325290001Sglebius      # Make sure the directory exists.
17326290001Sglebius      test -f "$dirpart/$file" && continue
17327290001Sglebius      fdir=`$as_dirname -- "$file" ||
17328290001Sglebius$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17329290001Sglebius	 X"$file" : 'X\(//\)[^/]' \| \
17330290001Sglebius	 X"$file" : 'X\(//\)$' \| \
17331290001Sglebius	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17332290001Sglebius$as_echo X"$file" |
17333290001Sglebius    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334290001Sglebius	    s//\1/
17335290001Sglebius	    q
17336290001Sglebius	  }
17337290001Sglebius	  /^X\(\/\/\)[^/].*/{
17338290001Sglebius	    s//\1/
17339290001Sglebius	    q
17340290001Sglebius	  }
17341290001Sglebius	  /^X\(\/\/\)$/{
17342290001Sglebius	    s//\1/
17343290001Sglebius	    q
17344290001Sglebius	  }
17345290001Sglebius	  /^X\(\/\).*/{
17346290001Sglebius	    s//\1/
17347290001Sglebius	    q
17348290001Sglebius	  }
17349290001Sglebius	  s/.*/./; q'`
17350290001Sglebius      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17351290001Sglebius      # echo "creating $dirpart/$file"
17352290001Sglebius      echo '# dummy' > "$dirpart/$file"
17353290001Sglebius    done
17354290001Sglebius  done
17355290001Sglebius}
17356290001Sglebius ;;
17357290001Sglebius    "libtool":C)
17358290001Sglebius
17359290001Sglebius    # See if we are running on zsh, and set the options which allow our
17360290001Sglebius    # commands through without removal of \ escapes.
17361290001Sglebius    if test -n "${ZSH_VERSION+set}" ; then
17362290001Sglebius      setopt NO_GLOB_SUBST
17363290001Sglebius    fi
17364290001Sglebius
17365290001Sglebius    cfgfile="${ofile}T"
17366290001Sglebius    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17367290001Sglebius    $RM "$cfgfile"
17368290001Sglebius
17369290001Sglebius    cat <<_LT_EOF >> "$cfgfile"
17370290001Sglebius#! $SHELL
17371290001Sglebius
17372290001Sglebius# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17373290001Sglebius# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17374290001Sglebius# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17375290001Sglebius# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17376290001Sglebius#
17377290001Sglebius#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17378290001Sglebius#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17379290001Sglebius#                 Inc.
17380290001Sglebius#   Written by Gordon Matzigkeit, 1996
17381290001Sglebius#
17382290001Sglebius#   This file is part of GNU Libtool.
17383290001Sglebius#
17384290001Sglebius# GNU Libtool is free software; you can redistribute it and/or
17385290001Sglebius# modify it under the terms of the GNU General Public License as
17386290001Sglebius# published by the Free Software Foundation; either version 2 of
17387290001Sglebius# the License, or (at your option) any later version.
17388290001Sglebius#
17389290001Sglebius# As a special exception to the GNU General Public License,
17390290001Sglebius# if you distribute this file as part of a program or library that
17391290001Sglebius# is built using GNU Libtool, you may include this file under the
17392290001Sglebius# same distribution terms that you use for the rest of that program.
17393290001Sglebius#
17394290001Sglebius# GNU Libtool is distributed in the hope that it will be useful,
17395290001Sglebius# but WITHOUT ANY WARRANTY; without even the implied warranty of
17396290001Sglebius# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17397290001Sglebius# GNU General Public License for more details.
17398290001Sglebius#
17399290001Sglebius# You should have received a copy of the GNU General Public License
17400290001Sglebius# along with GNU Libtool; see the file COPYING.  If not, a copy
17401290001Sglebius# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17402290001Sglebius# obtained by writing to the Free Software Foundation, Inc.,
17403290001Sglebius# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17404290001Sglebius
17405290001Sglebius
17406290001Sglebius# The names of the tagged configurations supported by this script.
17407290001Sglebiusavailable_tags=""
17408290001Sglebius
17409290001Sglebius# ### BEGIN LIBTOOL CONFIG
17410290001Sglebius
17411290001Sglebius# Which release of libtool.m4 was used?
17412290001Sglebiusmacro_version=$macro_version
17413290001Sglebiusmacro_revision=$macro_revision
17414290001Sglebius
17415290001Sglebius# Whether or not to build shared libraries.
17416290001Sglebiusbuild_libtool_libs=$enable_shared
17417290001Sglebius
17418290001Sglebius# Whether or not to build static libraries.
17419290001Sglebiusbuild_old_libs=$enable_static
17420290001Sglebius
17421290001Sglebius# What type of objects to build.
17422290001Sglebiuspic_mode=$pic_mode
17423290001Sglebius
17424290001Sglebius# Whether or not to optimize for fast installation.
17425290001Sglebiusfast_install=$enable_fast_install
17426290001Sglebius
17427290001Sglebius# Shell to use when invoking shell scripts.
17428290001SglebiusSHELL=$lt_SHELL
17429290001Sglebius
17430290001Sglebius# An echo program that protects backslashes.
17431290001SglebiusECHO=$lt_ECHO
17432290001Sglebius
17433290001Sglebius# The host system.
17434290001Sglebiushost_alias=$host_alias
17435290001Sglebiushost=$host
17436290001Sglebiushost_os=$host_os
17437290001Sglebius
17438290001Sglebius# The build system.
17439290001Sglebiusbuild_alias=$build_alias
17440290001Sglebiusbuild=$build
17441290001Sglebiusbuild_os=$build_os
17442290001Sglebius
17443290001Sglebius# A sed program that does not truncate output.
17444290001SglebiusSED=$lt_SED
17445290001Sglebius
17446290001Sglebius# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17447290001SglebiusXsed="\$SED -e 1s/^X//"
17448290001Sglebius
17449290001Sglebius# A grep program that handles long lines.
17450290001SglebiusGREP=$lt_GREP
17451290001Sglebius
17452290001Sglebius# An ERE matcher.
17453290001SglebiusEGREP=$lt_EGREP
17454290001Sglebius
17455290001Sglebius# A literal string matcher.
17456290001SglebiusFGREP=$lt_FGREP
17457290001Sglebius
17458290001Sglebius# A BSD- or MS-compatible name lister.
17459290001SglebiusNM=$lt_NM
17460290001Sglebius
17461290001Sglebius# Whether we need soft or hard links.
17462290001SglebiusLN_S=$lt_LN_S
17463290001Sglebius
17464290001Sglebius# What is the maximum length of a command?
17465290001Sglebiusmax_cmd_len=$max_cmd_len
17466290001Sglebius
17467290001Sglebius# Object file suffix (normally "o").
17468290001Sglebiusobjext=$ac_objext
17469290001Sglebius
17470290001Sglebius# Executable file suffix (normally "").
17471290001Sglebiusexeext=$exeext
17472290001Sglebius
17473290001Sglebius# whether the shell understands "unset".
17474290001Sglebiuslt_unset=$lt_unset
17475290001Sglebius
17476290001Sglebius# turn spaces into newlines.
17477290001SglebiusSP2NL=$lt_lt_SP2NL
17478290001Sglebius
17479290001Sglebius# turn newlines into spaces.
17480290001SglebiusNL2SP=$lt_lt_NL2SP
17481290001Sglebius
17482290001Sglebius# convert \$build file names to \$host format.
17483290001Sglebiusto_host_file_cmd=$lt_cv_to_host_file_cmd
17484290001Sglebius
17485290001Sglebius# convert \$build files to toolchain format.
17486290001Sglebiusto_tool_file_cmd=$lt_cv_to_tool_file_cmd
17487290001Sglebius
17488290001Sglebius# An object symbol dumper.
17489290001SglebiusOBJDUMP=$lt_OBJDUMP
17490290001Sglebius
17491290001Sglebius# Method to check whether dependent libraries are shared objects.
17492290001Sglebiusdeplibs_check_method=$lt_deplibs_check_method
17493290001Sglebius
17494290001Sglebius# Command to use when deplibs_check_method = "file_magic".
17495290001Sglebiusfile_magic_cmd=$lt_file_magic_cmd
17496290001Sglebius
17497290001Sglebius# How to find potential files when deplibs_check_method = "file_magic".
17498290001Sglebiusfile_magic_glob=$lt_file_magic_glob
17499290001Sglebius
17500290001Sglebius# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17501290001Sglebiuswant_nocaseglob=$lt_want_nocaseglob
17502290001Sglebius
17503290001Sglebius# DLL creation program.
17504290001SglebiusDLLTOOL=$lt_DLLTOOL
17505290001Sglebius
17506290001Sglebius# Command to associate shared and link libraries.
17507290001Sglebiussharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17508290001Sglebius
17509290001Sglebius# The archiver.
17510290001SglebiusAR=$lt_AR
17511290001Sglebius
17512290001Sglebius# Flags to create an archive.
17513290001SglebiusAR_FLAGS=$lt_AR_FLAGS
17514290001Sglebius
17515290001Sglebius# How to feed a file listing to the archiver.
17516290001Sglebiusarchiver_list_spec=$lt_archiver_list_spec
17517290001Sglebius
17518290001Sglebius# A symbol stripping program.
17519290001SglebiusSTRIP=$lt_STRIP
17520290001Sglebius
17521290001Sglebius# Commands used to install an old-style archive.
17522290001SglebiusRANLIB=$lt_RANLIB
17523290001Sglebiusold_postinstall_cmds=$lt_old_postinstall_cmds
17524290001Sglebiusold_postuninstall_cmds=$lt_old_postuninstall_cmds
17525290001Sglebius
17526290001Sglebius# Whether to use a lock for old archive extraction.
17527290001Sglebiuslock_old_archive_extraction=$lock_old_archive_extraction
17528290001Sglebius
17529290001Sglebius# A C compiler.
17530290001SglebiusLTCC=$lt_CC
17531290001Sglebius
17532290001Sglebius# LTCC compiler flags.
17533290001SglebiusLTCFLAGS=$lt_CFLAGS
17534290001Sglebius
17535290001Sglebius# Take the output of nm and produce a listing of raw symbols and C names.
17536290001Sglebiusglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17537290001Sglebius
17538290001Sglebius# Transform the output of nm in a proper C declaration.
17539290001Sglebiusglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17540290001Sglebius
17541290001Sglebius# Transform the output of nm in a C name address pair.
17542290001Sglebiusglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17543290001Sglebius
17544290001Sglebius# Transform the output of nm in a C name address pair when lib prefix is needed.
17545290001Sglebiusglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17546290001Sglebius
17547290001Sglebius# Specify filename containing input files for \$NM.
17548290001Sglebiusnm_file_list_spec=$lt_nm_file_list_spec
17549290001Sglebius
17550290001Sglebius# The root where to search for dependent libraries,and in which our libraries should be installed.
17551290001Sglebiuslt_sysroot=$lt_sysroot
17552290001Sglebius
17553290001Sglebius# The name of the directory that contains temporary libtool files.
17554290001Sglebiusobjdir=$objdir
17555290001Sglebius
17556290001Sglebius# Used to examine libraries when file_magic_cmd begins with "file".
17557290001SglebiusMAGIC_CMD=$MAGIC_CMD
17558290001Sglebius
17559290001Sglebius# Must we lock files when doing compilation?
17560290001Sglebiusneed_locks=$lt_need_locks
17561290001Sglebius
17562290001Sglebius# Manifest tool.
17563290001SglebiusMANIFEST_TOOL=$lt_MANIFEST_TOOL
17564290001Sglebius
17565290001Sglebius# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17566290001SglebiusDSYMUTIL=$lt_DSYMUTIL
17567290001Sglebius
17568290001Sglebius# Tool to change global to local symbols on Mac OS X.
17569290001SglebiusNMEDIT=$lt_NMEDIT
17570290001Sglebius
17571290001Sglebius# Tool to manipulate fat objects and archives on Mac OS X.
17572290001SglebiusLIPO=$lt_LIPO
17573290001Sglebius
17574290001Sglebius# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17575290001SglebiusOTOOL=$lt_OTOOL
17576290001Sglebius
17577290001Sglebius# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17578290001SglebiusOTOOL64=$lt_OTOOL64
17579290001Sglebius
17580290001Sglebius# Old archive suffix (normally "a").
17581290001Sglebiuslibext=$libext
17582290001Sglebius
17583290001Sglebius# Shared library suffix (normally ".so").
17584290001Sglebiusshrext_cmds=$lt_shrext_cmds
17585290001Sglebius
17586290001Sglebius# The commands to extract the exported symbol list from a shared archive.
17587290001Sglebiusextract_expsyms_cmds=$lt_extract_expsyms_cmds
17588290001Sglebius
17589290001Sglebius# Variables whose values should be saved in libtool wrapper scripts and
17590290001Sglebius# restored at link time.
17591290001Sglebiusvariables_saved_for_relink=$lt_variables_saved_for_relink
17592290001Sglebius
17593290001Sglebius# Do we need the "lib" prefix for modules?
17594290001Sglebiusneed_lib_prefix=$need_lib_prefix
17595290001Sglebius
17596290001Sglebius# Do we need a version for libraries?
17597290001Sglebiusneed_version=$need_version
17598290001Sglebius
17599290001Sglebius# Library versioning type.
17600290001Sglebiusversion_type=$version_type
17601290001Sglebius
17602290001Sglebius# Shared library runtime path variable.
17603290001Sglebiusrunpath_var=$runpath_var
17604290001Sglebius
17605290001Sglebius# Shared library path variable.
17606290001Sglebiusshlibpath_var=$shlibpath_var
17607290001Sglebius
17608290001Sglebius# Is shlibpath searched before the hard-coded library search path?
17609290001Sglebiusshlibpath_overrides_runpath=$shlibpath_overrides_runpath
17610290001Sglebius
17611290001Sglebius# Format of library name prefix.
17612290001Sglebiuslibname_spec=$lt_libname_spec
17613290001Sglebius
17614290001Sglebius# List of archive names.  First name is the real one, the rest are links.
17615290001Sglebius# The last name is the one that the linker finds with -lNAME
17616290001Sglebiuslibrary_names_spec=$lt_library_names_spec
17617290001Sglebius
17618290001Sglebius# The coded name of the library, if different from the real name.
17619290001Sglebiussoname_spec=$lt_soname_spec
17620290001Sglebius
17621290001Sglebius# Permission mode override for installation of shared libraries.
17622290001Sglebiusinstall_override_mode=$lt_install_override_mode
17623290001Sglebius
17624290001Sglebius# Command to use after installation of a shared archive.
17625290001Sglebiuspostinstall_cmds=$lt_postinstall_cmds
17626290001Sglebius
17627290001Sglebius# Command to use after uninstallation of a shared archive.
17628290001Sglebiuspostuninstall_cmds=$lt_postuninstall_cmds
17629290001Sglebius
17630290001Sglebius# Commands used to finish a libtool library installation in a directory.
17631290001Sglebiusfinish_cmds=$lt_finish_cmds
17632290001Sglebius
17633290001Sglebius# As "finish_cmds", except a single script fragment to be evaled but
17634290001Sglebius# not shown.
17635290001Sglebiusfinish_eval=$lt_finish_eval
17636290001Sglebius
17637290001Sglebius# Whether we should hardcode library paths into libraries.
17638290001Sglebiushardcode_into_libs=$hardcode_into_libs
17639290001Sglebius
17640290001Sglebius# Compile-time system search path for libraries.
17641290001Sglebiussys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17642290001Sglebius
17643290001Sglebius# Run-time system search path for libraries.
17644290001Sglebiussys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17645290001Sglebius
17646290001Sglebius# Whether dlopen is supported.
17647290001Sglebiusdlopen_support=$enable_dlopen
17648290001Sglebius
17649290001Sglebius# Whether dlopen of programs is supported.
17650290001Sglebiusdlopen_self=$enable_dlopen_self
17651290001Sglebius
17652290001Sglebius# Whether dlopen of statically linked programs is supported.
17653290001Sglebiusdlopen_self_static=$enable_dlopen_self_static
17654290001Sglebius
17655290001Sglebius# Commands to strip libraries.
17656290001Sglebiusold_striplib=$lt_old_striplib
17657290001Sglebiusstriplib=$lt_striplib
17658290001Sglebius
17659290001Sglebius
17660290001Sglebius# The linker used to build libraries.
17661290001SglebiusLD=$lt_LD
17662290001Sglebius
17663290001Sglebius# How to create reloadable object files.
17664290001Sglebiusreload_flag=$lt_reload_flag
17665290001Sglebiusreload_cmds=$lt_reload_cmds
17666290001Sglebius
17667290001Sglebius# Commands used to build an old-style archive.
17668290001Sglebiusold_archive_cmds=$lt_old_archive_cmds
17669290001Sglebius
17670290001Sglebius# A language specific compiler.
17671290001SglebiusCC=$lt_compiler
17672290001Sglebius
17673290001Sglebius# Is the compiler the GNU compiler?
17674290001Sglebiuswith_gcc=$GCC
17675290001Sglebius
17676290001Sglebius# Compiler flag to turn off builtin functions.
17677290001Sglebiusno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17678290001Sglebius
17679290001Sglebius# Additional compiler flags for building library objects.
17680290001Sglebiuspic_flag=$lt_lt_prog_compiler_pic
17681290001Sglebius
17682290001Sglebius# How to pass a linker flag through the compiler.
17683290001Sglebiuswl=$lt_lt_prog_compiler_wl
17684290001Sglebius
17685290001Sglebius# Compiler flag to prevent dynamic linking.
17686290001Sglebiuslink_static_flag=$lt_lt_prog_compiler_static
17687290001Sglebius
17688290001Sglebius# Does compiler simultaneously support -c and -o options?
17689290001Sglebiuscompiler_c_o=$lt_lt_cv_prog_compiler_c_o
17690290001Sglebius
17691290001Sglebius# Whether or not to add -lc for building shared libraries.
17692290001Sglebiusbuild_libtool_need_lc=$archive_cmds_need_lc
17693290001Sglebius
17694290001Sglebius# Whether or not to disallow shared libs when runtime libs are static.
17695290001Sglebiusallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17696290001Sglebius
17697290001Sglebius# Compiler flag to allow reflexive dlopens.
17698290001Sglebiusexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17699290001Sglebius
17700290001Sglebius# Compiler flag to generate shared objects directly from archives.
17701290001Sglebiuswhole_archive_flag_spec=$lt_whole_archive_flag_spec
17702290001Sglebius
17703290001Sglebius# Whether the compiler copes with passing no objects directly.
17704290001Sglebiuscompiler_needs_object=$lt_compiler_needs_object
17705290001Sglebius
17706290001Sglebius# Create an old-style archive from a shared archive.
17707290001Sglebiusold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17708290001Sglebius
17709290001Sglebius# Create a temporary old-style archive to link instead of a shared archive.
17710290001Sglebiusold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17711290001Sglebius
17712290001Sglebius# Commands used to build a shared archive.
17713290001Sglebiusarchive_cmds=$lt_archive_cmds
17714290001Sglebiusarchive_expsym_cmds=$lt_archive_expsym_cmds
17715290001Sglebius
17716290001Sglebius# Commands used to build a loadable module if different from building
17717290001Sglebius# a shared archive.
17718290001Sglebiusmodule_cmds=$lt_module_cmds
17719290001Sglebiusmodule_expsym_cmds=$lt_module_expsym_cmds
17720290001Sglebius
17721290001Sglebius# Whether we are building with GNU ld or not.
17722290001Sglebiuswith_gnu_ld=$lt_with_gnu_ld
17723290001Sglebius
17724290001Sglebius# Flag that allows shared libraries with undefined symbols to be built.
17725290001Sglebiusallow_undefined_flag=$lt_allow_undefined_flag
17726290001Sglebius
17727290001Sglebius# Flag that enforces no undefined symbols.
17728290001Sglebiusno_undefined_flag=$lt_no_undefined_flag
17729290001Sglebius
17730290001Sglebius# Flag to hardcode \$libdir into a binary during linking.
17731290001Sglebius# This must work even if \$libdir does not exist
17732290001Sglebiushardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17733290001Sglebius
17734290001Sglebius# If ld is used when linking, flag to hardcode \$libdir into a binary
17735290001Sglebius# during linking.  This must work even if \$libdir does not exist.
17736290001Sglebiushardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17737290001Sglebius
17738290001Sglebius# Whether we need a single "-rpath" flag with a separated argument.
17739290001Sglebiushardcode_libdir_separator=$lt_hardcode_libdir_separator
17740290001Sglebius
17741290001Sglebius# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17742290001Sglebius# DIR into the resulting binary.
17743290001Sglebiushardcode_direct=$hardcode_direct
17744290001Sglebius
17745290001Sglebius# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17746290001Sglebius# DIR into the resulting binary and the resulting library dependency is
17747290001Sglebius# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17748290001Sglebius# library is relocated.
17749290001Sglebiushardcode_direct_absolute=$hardcode_direct_absolute
17750290001Sglebius
17751290001Sglebius# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17752290001Sglebius# into the resulting binary.
17753290001Sglebiushardcode_minus_L=$hardcode_minus_L
17754290001Sglebius
17755290001Sglebius# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17756290001Sglebius# into the resulting binary.
17757290001Sglebiushardcode_shlibpath_var=$hardcode_shlibpath_var
17758290001Sglebius
17759290001Sglebius# Set to "yes" if building a shared library automatically hardcodes DIR
17760290001Sglebius# into the library and all subsequent libraries and executables linked
17761290001Sglebius# against it.
17762290001Sglebiushardcode_automatic=$hardcode_automatic
17763290001Sglebius
17764290001Sglebius# Set to yes if linker adds runtime paths of dependent libraries
17765290001Sglebius# to runtime path list.
17766290001Sglebiusinherit_rpath=$inherit_rpath
17767290001Sglebius
17768290001Sglebius# Whether libtool must link a program against all its dependency libraries.
17769290001Sglebiuslink_all_deplibs=$link_all_deplibs
17770290001Sglebius
17771290001Sglebius# Set to "yes" if exported symbols are required.
17772290001Sglebiusalways_export_symbols=$always_export_symbols
17773290001Sglebius
17774290001Sglebius# The commands to list exported symbols.
17775290001Sglebiusexport_symbols_cmds=$lt_export_symbols_cmds
17776290001Sglebius
17777290001Sglebius# Symbols that should not be listed in the preloaded symbols.
17778290001Sglebiusexclude_expsyms=$lt_exclude_expsyms
17779290001Sglebius
17780290001Sglebius# Symbols that must always be exported.
17781290001Sglebiusinclude_expsyms=$lt_include_expsyms
17782290001Sglebius
17783290001Sglebius# Commands necessary for linking programs (against libraries) with templates.
17784290001Sglebiusprelink_cmds=$lt_prelink_cmds
17785290001Sglebius
17786290001Sglebius# Commands necessary for finishing linking programs.
17787290001Sglebiuspostlink_cmds=$lt_postlink_cmds
17788290001Sglebius
17789290001Sglebius# Specify filename containing input files.
17790290001Sglebiusfile_list_spec=$lt_file_list_spec
17791290001Sglebius
17792290001Sglebius# How to hardcode a shared library path into an executable.
17793290001Sglebiushardcode_action=$hardcode_action
17794290001Sglebius
17795290001Sglebius# ### END LIBTOOL CONFIG
17796290001Sglebius
17797290001Sglebius_LT_EOF
17798290001Sglebius
17799290001Sglebius  case $host_os in
17800290001Sglebius  aix3*)
17801290001Sglebius    cat <<\_LT_EOF >> "$cfgfile"
17802290001Sglebius# AIX sometimes has problems with the GCC collect2 program.  For some
17803290001Sglebius# reason, if we set the COLLECT_NAMES environment variable, the problems
17804290001Sglebius# vanish in a puff of smoke.
17805290001Sglebiusif test "X${COLLECT_NAMES+set}" != Xset; then
17806290001Sglebius  COLLECT_NAMES=
17807290001Sglebius  export COLLECT_NAMES
17808290001Sglebiusfi
17809290001Sglebius_LT_EOF
17810290001Sglebius    ;;
17811290001Sglebius  esac
17812290001Sglebius
17813290001Sglebius
17814290001Sglebiusltmain="$ac_aux_dir/ltmain.sh"
17815290001Sglebius
17816290001Sglebius
17817290001Sglebius  # We use sed instead of cat because bash on DJGPP gets confused if
17818290001Sglebius  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17819290001Sglebius  # text mode, it properly converts lines to CR/LF.  This bash problem
17820290001Sglebius  # is reportedly fixed, but why not run on old versions too?
17821290001Sglebius  sed '$q' "$ltmain" >> "$cfgfile" \
17822290001Sglebius     || (rm -f "$cfgfile"; exit 1)
17823290001Sglebius
17824290001Sglebius  if test x"$xsi_shell" = xyes; then
17825290001Sglebius  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17826290001Sglebiusfunc_dirname ()\
17827290001Sglebius{\
17828290001Sglebius\    case ${1} in\
17829290001Sglebius\      */*) func_dirname_result="${1%/*}${2}" ;;\
17830290001Sglebius\      *  ) func_dirname_result="${3}" ;;\
17831290001Sglebius\    esac\
17832290001Sglebius} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17833290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17834290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17835290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17836290001Sglebius
17837290001Sglebius
17838290001Sglebius  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17839290001Sglebiusfunc_basename ()\
17840290001Sglebius{\
17841290001Sglebius\    func_basename_result="${1##*/}"\
17842290001Sglebius} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17843290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17844290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17845290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17846290001Sglebius
17847290001Sglebius
17848290001Sglebius  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17849290001Sglebiusfunc_dirname_and_basename ()\
17850290001Sglebius{\
17851290001Sglebius\    case ${1} in\
17852290001Sglebius\      */*) func_dirname_result="${1%/*}${2}" ;;\
17853290001Sglebius\      *  ) func_dirname_result="${3}" ;;\
17854290001Sglebius\    esac\
17855290001Sglebius\    func_basename_result="${1##*/}"\
17856290001Sglebius} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17857290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17858290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17859290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17860290001Sglebius
17861290001Sglebius
17862290001Sglebius  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17863290001Sglebiusfunc_stripname ()\
17864290001Sglebius{\
17865290001Sglebius\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17866290001Sglebius\    # positional parameters, so assign one to ordinary parameter first.\
17867290001Sglebius\    func_stripname_result=${3}\
17868290001Sglebius\    func_stripname_result=${func_stripname_result#"${1}"}\
17869290001Sglebius\    func_stripname_result=${func_stripname_result%"${2}"}\
17870290001Sglebius} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17871290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17872290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17873290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17874290001Sglebius
17875290001Sglebius
17876290001Sglebius  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17877290001Sglebiusfunc_split_long_opt ()\
17878290001Sglebius{\
17879290001Sglebius\    func_split_long_opt_name=${1%%=*}\
17880290001Sglebius\    func_split_long_opt_arg=${1#*=}\
17881290001Sglebius} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17882290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17883290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17884290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17885290001Sglebius
17886290001Sglebius
17887290001Sglebius  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17888290001Sglebiusfunc_split_short_opt ()\
17889290001Sglebius{\
17890290001Sglebius\    func_split_short_opt_arg=${1#??}\
17891290001Sglebius\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17892290001Sglebius} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17893290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17894290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17895290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17896290001Sglebius
17897290001Sglebius
17898290001Sglebius  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17899290001Sglebiusfunc_lo2o ()\
17900290001Sglebius{\
17901290001Sglebius\    case ${1} in\
17902290001Sglebius\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17903290001Sglebius\      *)    func_lo2o_result=${1} ;;\
17904290001Sglebius\    esac\
17905290001Sglebius} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17906290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17907290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17908290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17909290001Sglebius
17910290001Sglebius
17911290001Sglebius  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17912290001Sglebiusfunc_xform ()\
17913290001Sglebius{\
17914290001Sglebius    func_xform_result=${1%.*}.lo\
17915290001Sglebius} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17916290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17917290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17918290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17919290001Sglebius
17920290001Sglebius
17921290001Sglebius  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17922290001Sglebiusfunc_arith ()\
17923290001Sglebius{\
17924290001Sglebius    func_arith_result=$(( $* ))\
17925290001Sglebius} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17926290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17927290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17928290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17929290001Sglebius
17930290001Sglebius
17931290001Sglebius  sed -e '/^func_len ()$/,/^} # func_len /c\
17932290001Sglebiusfunc_len ()\
17933290001Sglebius{\
17934290001Sglebius    func_len_result=${#1}\
17935290001Sglebius} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17936290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17937290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17938290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17939290001Sglebius
17940290001Sglebiusfi
17941290001Sglebius
17942290001Sglebiusif test x"$lt_shell_append" = xyes; then
17943290001Sglebius  sed -e '/^func_append ()$/,/^} # func_append /c\
17944290001Sglebiusfunc_append ()\
17945290001Sglebius{\
17946290001Sglebius    eval "${1}+=\\${2}"\
17947290001Sglebius} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17948290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17949290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17950290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17951290001Sglebius
17952290001Sglebius
17953290001Sglebius  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17954290001Sglebiusfunc_append_quoted ()\
17955290001Sglebius{\
17956290001Sglebius\    func_quote_for_eval "${2}"\
17957290001Sglebius\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17958290001Sglebius} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17959290001Sglebius  && mv -f "$cfgfile.tmp" "$cfgfile" \
17960290001Sglebius    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17961290001Sglebiustest 0 -eq $? || _lt_function_replace_fail=:
17962290001Sglebius
17963290001Sglebius
17964290001Sglebius  # Save a `func_append' function call where possible by direct use of '+='
17965290001Sglebius  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17966290001Sglebius    && mv -f "$cfgfile.tmp" "$cfgfile" \
17967290001Sglebius      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17968290001Sglebius  test 0 -eq $? || _lt_function_replace_fail=:
17969290001Sglebiuselse
17970290001Sglebius  # Save a `func_append' function call even when '+=' is not available
17971290001Sglebius  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17972290001Sglebius    && mv -f "$cfgfile.tmp" "$cfgfile" \
17973290001Sglebius      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17974290001Sglebius  test 0 -eq $? || _lt_function_replace_fail=:
17975290001Sglebiusfi
17976290001Sglebius
17977290001Sglebiusif test x"$_lt_function_replace_fail" = x":"; then
17978290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17979290001Sglebius$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17980290001Sglebiusfi
17981290001Sglebius
17982290001Sglebius
17983290001Sglebius   mv -f "$cfgfile" "$ofile" ||
17984290001Sglebius    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17985290001Sglebius  chmod +x "$ofile"
17986290001Sglebius
17987290001Sglebius ;;
17988290001Sglebius
17989290001Sglebius  esac
17990290001Sglebiusdone # for ac_tag
17991290001Sglebius
17992290001Sglebius
17993290001Sglebiusas_fn_exit 0
17994290001Sglebius_ACEOF
17995290001Sglebiusac_clean_files=$ac_clean_files_save
17996290001Sglebius
17997290001Sglebiustest $ac_write_fail = 0 ||
17998290001Sglebius  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17999290001Sglebius
18000290001Sglebius
18001290001Sglebius# configure is writing to config.log, and then calls config.status.
18002290001Sglebius# config.status does its own redirection, appending to config.log.
18003290001Sglebius# Unfortunately, on DOS this fails, as config.log is still kept open
18004290001Sglebius# by configure, so config.status won't be able to write to it; its
18005290001Sglebius# output is simply discarded.  So we exec the FD to /dev/null,
18006290001Sglebius# effectively closing config.log, so it can be properly (re)opened and
18007290001Sglebius# appended to by config.status.  When coming back to configure, we
18008290001Sglebius# need to make the FD available again.
18009290001Sglebiusif test "$no_create" != yes; then
18010290001Sglebius  ac_cs_success=:
18011290001Sglebius  ac_config_status_args=
18012290001Sglebius  test "$silent" = yes &&
18013290001Sglebius    ac_config_status_args="$ac_config_status_args --quiet"
18014290001Sglebius  exec 5>/dev/null
18015290001Sglebius  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18016290001Sglebius  exec 5>>config.log
18017290001Sglebius  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18018290001Sglebius  # would make configure fail if this is the last instruction.
18019290001Sglebius  $ac_cs_success || as_fn_exit 1
18020290001Sglebiusfi
18021290001Sglebiusif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18022290001Sglebius  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18023290001Sglebius$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18024290001Sglebiusfi
18025290001Sglebius
18026