1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libevent 2.1.8-stable.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libevent'
589PACKAGE_TARNAME='libevent'
590PACKAGE_VERSION='2.1.8-stable'
591PACKAGE_STRING='libevent 2.1.8-stable'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="event.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635INSTALL_LIBEVENT_FALSE
636INSTALL_LIBEVENT_TRUE
637LIBEVENT_GC_SECTIONS
638PTHREADS_FALSE
639PTHREADS_TRUE
640THREADS_FALSE
641THREADS_TRUE
642PTHREAD_CFLAGS
643PTHREAD_LIBS
644PTHREAD_CC
645acx_pthread_config
646SIGNAL_SUPPORT_FALSE
647SIGNAL_SUPPORT_TRUE
648EVPORT_BACKEND_FALSE
649EVPORT_BACKEND_TRUE
650EPOLL_BACKEND_FALSE
651EPOLL_BACKEND_TRUE
652LIBOBJS
653KQUEUE_BACKEND_FALSE
654KQUEUE_BACKEND_TRUE
655DEVPOLL_BACKEND_FALSE
656DEVPOLL_BACKEND_TRUE
657POLL_BACKEND_FALSE
658POLL_BACKEND_TRUE
659SELECT_BACKEND_FALSE
660SELECT_BACKEND_TRUE
661STRLCPY_IMPL_FALSE
662STRLCPY_IMPL_TRUE
663BUILD_WITH_NO_UNDEFINED_FALSE
664BUILD_WITH_NO_UNDEFINED_TRUE
665BUILD_CYGWIN_FALSE
666BUILD_CYGWIN_TRUE
667BUILD_WIN32_FALSE
668BUILD_WIN32_TRUE
669OPENSSL_FALSE
670OPENSSL_TRUE
671OPENSSL_LIBS
672OPENSSL_INCS
673PKG_CONFIG
674OPENSSL_LIBADD
675EV_LIB_GDI
676EV_LIB_WS32
677ZLIB_REGRESS_FALSE
678ZLIB_REGRESS_TRUE
679ZLIB_LIBS
680BUILD_REGRESS_FALSE
681BUILD_REGRESS_TRUE
682BUILD_SAMPLES_FALSE
683BUILD_SAMPLES_TRUE
684LIBTOOL_DEPS
685LT_SYS_LIBRARY_PATH
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
691MANIFEST_TOOL
692RANLIB
693ac_ct_AR
694AR
695DLLTOOL
696OBJDUMP
697NM
698ac_ct_DUMPBIN
699DUMPBIN
700LD
701FGREP
702LIBTOOL
703SED
704LN_S
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713EGREP
714GREP
715CPP
716am__fastdepCC_FALSE
717am__fastdepCC_TRUE
718CCDEPMODE
719am__nodep
720AMDEPBACKSLASH
721AMDEP_FALSE
722AMDEP_TRUE
723am__quote
724am__include
725DEPDIR
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760target_alias
761host_alias
762build_alias
763LIBS
764ECHO_T
765ECHO_N
766ECHO_C
767DEFS
768mandir
769localedir
770libdir
771psdir
772pdfdir
773dvidir
774htmldir
775infodir
776docdir
777oldincludedir
778includedir
779localstatedir
780sharedstatedir
781sysconfdir
782datadir
783datarootdir
784libexecdir
785sbindir
786bindir
787program_transform_name
788prefix
789exec_prefix
790PACKAGE_URL
791PACKAGE_BUGREPORT
792PACKAGE_STRING
793PACKAGE_VERSION
794PACKAGE_TARNAME
795PACKAGE_NAME
796PATH_SEPARATOR
797SHELL'
798ac_subst_files=''
799ac_user_opts='
800enable_option_checking
801enable_silent_rules
802enable_dependency_tracking
803enable_gcc_warnings
804enable_gcc_hardening
805enable_thread_support
806enable_malloc_replacement
807enable_openssl
808enable_debug_mode
809enable_libevent_install
810enable_libevent_regress
811enable_samples
812enable_function_sections
813enable_verbose_debug
814enable_clock_gettime
815enable_shared
816enable_static
817with_pic
818enable_fast_install
819with_aix_soname
820with_gnu_ld
821with_sysroot
822enable_libtool_lock
823enable_largefile
824'
825      ac_precious_vars='build_alias
826host_alias
827target_alias
828CC
829CFLAGS
830LDFLAGS
831LIBS
832CPPFLAGS
833CPP
834LT_SYS_LIBRARY_PATH'
835
836
837# Initialize some variables set by options.
838ac_init_help=
839ac_init_version=false
840ac_unrecognized_opts=
841ac_unrecognized_sep=
842# The variables have the same names as the options, with
843# dashes changed to underlines.
844cache_file=/dev/null
845exec_prefix=NONE
846no_create=
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
855verbose=
856x_includes=NONE
857x_libraries=NONE
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
864# (The list follows the same order as the GNU Coding Standards.)
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889  # If the previous option needs an argument, assign it.
890  if test -n "$ac_prev"; then
891    eval $ac_prev=\$ac_option
892    ac_prev=
893    continue
894  fi
895
896  case $ac_option in
897  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898  *=)   ac_optarg= ;;
899  *)    ac_optarg=yes ;;
900  esac
901
902  # Accept the important Cygnus configure options, so we can diagnose typos.
903
904  case $ac_dashdash$ac_option in
905  --)
906    ac_dashdash=yes ;;
907
908  -bindir | --bindir | --bindi | --bind | --bin | --bi)
909    ac_prev=bindir ;;
910  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911    bindir=$ac_optarg ;;
912
913  -build | --build | --buil | --bui | --bu)
914    ac_prev=build_alias ;;
915  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916    build_alias=$ac_optarg ;;
917
918  -cache-file | --cache-file | --cache-fil | --cache-fi \
919  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920    ac_prev=cache_file ;;
921  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923    cache_file=$ac_optarg ;;
924
925  --config-cache | -C)
926    cache_file=config.cache ;;
927
928  -datadir | --datadir | --datadi | --datad)
929    ac_prev=datadir ;;
930  -datadir=* | --datadir=* | --datadi=* | --datad=*)
931    datadir=$ac_optarg ;;
932
933  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934  | --dataroo | --dataro | --datar)
935    ac_prev=datarootdir ;;
936  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938    datarootdir=$ac_optarg ;;
939
940  -disable-* | --disable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=no ;;
955
956  -docdir | --docdir | --docdi | --doc | --do)
957    ac_prev=docdir ;;
958  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959    docdir=$ac_optarg ;;
960
961  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962    ac_prev=dvidir ;;
963  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964    dvidir=$ac_optarg ;;
965
966  -enable-* | --enable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=\$ac_optarg ;;
981
982  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984  | --exec | --exe | --ex)
985    ac_prev=exec_prefix ;;
986  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988  | --exec=* | --exe=* | --ex=*)
989    exec_prefix=$ac_optarg ;;
990
991  -gas | --gas | --ga | --g)
992    # Obsolete; use --with-gas.
993    with_gas=yes ;;
994
995  -help | --help | --hel | --he | -h)
996    ac_init_help=long ;;
997  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998    ac_init_help=recursive ;;
999  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000    ac_init_help=short ;;
1001
1002  -host | --host | --hos | --ho)
1003    ac_prev=host_alias ;;
1004  -host=* | --host=* | --hos=* | --ho=*)
1005    host_alias=$ac_optarg ;;
1006
1007  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008    ac_prev=htmldir ;;
1009  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010  | --ht=*)
1011    htmldir=$ac_optarg ;;
1012
1013  -includedir | --includedir | --includedi | --included | --include \
1014  | --includ | --inclu | --incl | --inc)
1015    ac_prev=includedir ;;
1016  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017  | --includ=* | --inclu=* | --incl=* | --inc=*)
1018    includedir=$ac_optarg ;;
1019
1020  -infodir | --infodir | --infodi | --infod | --info | --inf)
1021    ac_prev=infodir ;;
1022  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023    infodir=$ac_optarg ;;
1024
1025  -libdir | --libdir | --libdi | --libd)
1026    ac_prev=libdir ;;
1027  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028    libdir=$ac_optarg ;;
1029
1030  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031  | --libexe | --libex | --libe)
1032    ac_prev=libexecdir ;;
1033  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034  | --libexe=* | --libex=* | --libe=*)
1035    libexecdir=$ac_optarg ;;
1036
1037  -localedir | --localedir | --localedi | --localed | --locale)
1038    ac_prev=localedir ;;
1039  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040    localedir=$ac_optarg ;;
1041
1042  -localstatedir | --localstatedir | --localstatedi | --localstated \
1043  | --localstate | --localstat | --localsta | --localst | --locals)
1044    ac_prev=localstatedir ;;
1045  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047    localstatedir=$ac_optarg ;;
1048
1049  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050    ac_prev=mandir ;;
1051  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052    mandir=$ac_optarg ;;
1053
1054  -nfp | --nfp | --nf)
1055    # Obsolete; use --without-fp.
1056    with_fp=no ;;
1057
1058  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059  | --no-cr | --no-c | -n)
1060    no_create=yes ;;
1061
1062  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064    no_recursion=yes ;;
1065
1066  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068  | --oldin | --oldi | --old | --ol | --o)
1069    ac_prev=oldincludedir ;;
1070  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073    oldincludedir=$ac_optarg ;;
1074
1075  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076    ac_prev=prefix ;;
1077  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078    prefix=$ac_optarg ;;
1079
1080  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081  | --program-pre | --program-pr | --program-p)
1082    ac_prev=program_prefix ;;
1083  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085    program_prefix=$ac_optarg ;;
1086
1087  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088  | --program-suf | --program-su | --program-s)
1089    ac_prev=program_suffix ;;
1090  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092    program_suffix=$ac_optarg ;;
1093
1094  -program-transform-name | --program-transform-name \
1095  | --program-transform-nam | --program-transform-na \
1096  | --program-transform-n | --program-transform- \
1097  | --program-transform | --program-transfor \
1098  | --program-transfo | --program-transf \
1099  | --program-trans | --program-tran \
1100  | --progr-tra | --program-tr | --program-t)
1101    ac_prev=program_transform_name ;;
1102  -program-transform-name=* | --program-transform-name=* \
1103  | --program-transform-nam=* | --program-transform-na=* \
1104  | --program-transform-n=* | --program-transform-=* \
1105  | --program-transform=* | --program-transfor=* \
1106  | --program-transfo=* | --program-transf=* \
1107  | --program-trans=* | --program-tran=* \
1108  | --progr-tra=* | --program-tr=* | --program-t=*)
1109    program_transform_name=$ac_optarg ;;
1110
1111  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112    ac_prev=pdfdir ;;
1113  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114    pdfdir=$ac_optarg ;;
1115
1116  -psdir | --psdir | --psdi | --psd | --ps)
1117    ac_prev=psdir ;;
1118  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119    psdir=$ac_optarg ;;
1120
1121  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122  | -silent | --silent | --silen | --sile | --sil)
1123    silent=yes ;;
1124
1125  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126    ac_prev=sbindir ;;
1127  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128  | --sbi=* | --sb=*)
1129    sbindir=$ac_optarg ;;
1130
1131  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133  | --sharedst | --shareds | --shared | --share | --shar \
1134  | --sha | --sh)
1135    ac_prev=sharedstatedir ;;
1136  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139  | --sha=* | --sh=*)
1140    sharedstatedir=$ac_optarg ;;
1141
1142  -site | --site | --sit)
1143    ac_prev=site ;;
1144  -site=* | --site=* | --sit=*)
1145    site=$ac_optarg ;;
1146
1147  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148    ac_prev=srcdir ;;
1149  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150    srcdir=$ac_optarg ;;
1151
1152  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153  | --syscon | --sysco | --sysc | --sys | --sy)
1154    ac_prev=sysconfdir ;;
1155  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157    sysconfdir=$ac_optarg ;;
1158
1159  -target | --target | --targe | --targ | --tar | --ta | --t)
1160    ac_prev=target_alias ;;
1161  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162    target_alias=$ac_optarg ;;
1163
1164  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165    verbose=yes ;;
1166
1167  -version | --version | --versio | --versi | --vers | -V)
1168    ac_init_version=: ;;
1169
1170  -with-* | --with-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=\$ac_optarg ;;
1185
1186  -without-* | --without-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid package name: $ac_useropt"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"with_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval with_$ac_useropt=no ;;
1201
1202  --x)
1203    # Obsolete; use --with-x.
1204    with_x=yes ;;
1205
1206  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207  | --x-incl | --x-inc | --x-in | --x-i)
1208    ac_prev=x_includes ;;
1209  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211    x_includes=$ac_optarg ;;
1212
1213  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215    ac_prev=x_libraries ;;
1216  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218    x_libraries=$ac_optarg ;;
1219
1220  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
1222    ;;
1223
1224  *=*)
1225    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226    # Reject names that are not valid shell variable names.
1227    case $ac_envvar in #(
1228      '' | [0-9]* | *[!_$as_cr_alnum]* )
1229      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230    esac
1231    eval $ac_envvar=\$ac_optarg
1232    export $ac_envvar ;;
1233
1234  *)
1235    # FIXME: should be removed in autoconf 3.0.
1236    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240    ;;
1241
1242  esac
1243done
1244
1245if test -n "$ac_prev"; then
1246  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247  as_fn_error $? "missing argument to $ac_option"
1248fi
1249
1250if test -n "$ac_unrecognized_opts"; then
1251  case $enable_option_checking in
1252    no) ;;
1253    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255  esac
1256fi
1257
1258# Check all directory arguments for consistency.
1259for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260		datadir sysconfdir sharedstatedir localstatedir includedir \
1261		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262		libdir localedir mandir
1263do
1264  eval ac_val=\$$ac_var
1265  # Remove trailing slashes.
1266  case $ac_val in
1267    */ )
1268      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269      eval $ac_var=\$ac_val;;
1270  esac
1271  # Be sure to have absolute directory names.
1272  case $ac_val in
1273    [\\/$]* | ?:[\\/]* )  continue;;
1274    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275  esac
1276  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288  if test "x$build_alias" = x; then
1289    cross_compiling=maybe
1290  elif test "x$build_alias" != "x$host_alias"; then
1291    cross_compiling=yes
1292  fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
1301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304  as_fn_error $? "working directory cannot be determined"
1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306  as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311  ac_srcdir_defaulted=yes
1312  # Try the directory containing this script, then the parent directory.
1313  ac_confdir=`$as_dirname -- "$as_myself" ||
1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315	 X"$as_myself" : 'X\(//\)[^/]' \| \
1316	 X"$as_myself" : 'X\(//\)$' \| \
1317	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318$as_echo X"$as_myself" |
1319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\/\)[^/].*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  /^X\(\/\/\)$/{
1328	    s//\1/
1329	    q
1330	  }
1331	  /^X\(\/\).*/{
1332	    s//\1/
1333	    q
1334	  }
1335	  s/.*/./; q'`
1336  srcdir=$ac_confdir
1337  if test ! -r "$srcdir/$ac_unique_file"; then
1338    srcdir=..
1339  fi
1340else
1341  ac_srcdir_defaulted=no
1342fi
1343if test ! -r "$srcdir/$ac_unique_file"; then
1344  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346fi
1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348ac_abs_confdir=`(
1349	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350	pwd)`
1351# When building in place, set srcdir=.
1352if test "$ac_abs_confdir" = "$ac_pwd"; then
1353  srcdir=.
1354fi
1355# Remove unnecessary trailing slashes from srcdir.
1356# Double slashes in file names in object file debugging info
1357# mess up M-x gdb in Emacs.
1358case $srcdir in
1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360esac
1361for ac_var in $ac_precious_vars; do
1362  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_env_${ac_var}_value=\$${ac_var}
1364  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366done
1367
1368#
1369# Report the --help message.
1370#
1371if test "$ac_init_help" = "long"; then
1372  # Omit some internal or obsolete options to make the list less imposing.
1373  # This message is too long to be a string in the A/UX 3.1 sh.
1374  cat <<_ACEOF
1375\`configure' configures libevent 2.1.8-stable to adapt to many kinds of systems.
1376
1377Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382Defaults for the options are specified in brackets.
1383
1384Configuration:
1385  -h, --help              display this help and exit
1386      --help=short        display options specific to this package
1387      --help=recursive    display the short help of all the included packages
1388  -V, --version           display version information and exit
1389  -q, --quiet, --silent   do not print \`checking ...' messages
1390      --cache-file=FILE   cache test results in FILE [disabled]
1391  -C, --config-cache      alias for \`--cache-file=config.cache'
1392  -n, --no-create         do not create output files
1393      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395Installation directories:
1396  --prefix=PREFIX         install architecture-independent files in PREFIX
1397                          [$ac_default_prefix]
1398  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                          [PREFIX]
1400
1401By default, \`make install' will install all the files in
1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404for instance \`--prefix=\$HOME'.
1405
1406For better control, use the options below.
1407
1408Fine tuning of the installation directories:
1409  --bindir=DIR            user executables [EPREFIX/bin]
1410  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411  --libexecdir=DIR        program executables [EPREFIX/libexec]
1412  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415  --libdir=DIR            object code libraries [EPREFIX/lib]
1416  --includedir=DIR        C header files [PREFIX/include]
1417  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420  --infodir=DIR           info documentation [DATAROOTDIR/info]
1421  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422  --mandir=DIR            man documentation [DATAROOTDIR/man]
1423  --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
1424  --htmldir=DIR           html documentation [DOCDIR]
1425  --dvidir=DIR            dvi documentation [DOCDIR]
1426  --pdfdir=DIR            pdf documentation [DOCDIR]
1427  --psdir=DIR             ps documentation [DOCDIR]
1428_ACEOF
1429
1430  cat <<\_ACEOF
1431
1432Program names:
1433  --program-prefix=PREFIX            prepend PREFIX to installed program names
1434  --program-suffix=SUFFIX            append SUFFIX to installed program names
1435  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437System types:
1438  --build=BUILD     configure for building on BUILD [guessed]
1439  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444  case $ac_init_help in
1445     short | recursive ) echo "Configuration of libevent 2.1.8-stable:";;
1446   esac
1447  cat <<\_ACEOF
1448
1449Optional Features:
1450  --disable-option-checking  ignore unrecognized --enable/--with options
1451  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453  --enable-silent-rules   less verbose build output (undo: "make V=1")
1454  --disable-silent-rules  verbose build output (undo: "make V=0")
1455  --enable-dependency-tracking
1456                          do not reject slow dependency extractors
1457  --disable-dependency-tracking
1458                          speeds up one-time build
1459  --disable-gcc-warnings  disable verbose warnings with GCC
1460  --enable-gcc-hardening  enable compiler security checks
1461  --disable-thread-support
1462                          disable support for threading
1463  --disable-malloc-replacement
1464                          disable support for replacing the memory mgt
1465                          functions
1466  --disable-openssl       disable support for openssl encryption
1467  --disable-debug-mode    disable support for running in debug mode
1468  --disable-libevent-install, disable installation of libevent
1469
1470  --disable-libevent-regress, skip regress in make check
1471
1472  --disable-samples, skip building of sample programs
1473
1474  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1475
1476  --enable-verbose-debug, verbose debug logging
1477
1478  --disable-clock-gettime do not use clock_gettime even if it is available
1479  --enable-shared[=PKGS]  build shared libraries [default=yes]
1480  --enable-static[=PKGS]  build static libraries [default=yes]
1481  --enable-fast-install[=PKGS]
1482                          optimize for fast installation [default=yes]
1483  --disable-libtool-lock  avoid locking (might break parallel builds)
1484  --disable-largefile     omit support for large files
1485
1486Optional Packages:
1487  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1490                          both]
1491  --with-aix-soname=aix|svr4|both
1492                          shared library versioning (aka "SONAME") variant to
1493                          provide on AIX, [default=aix].
1494  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1495  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1496                          compiler's sysroot if not specified).
1497
1498Some influential environment variables:
1499  CC          C compiler command
1500  CFLAGS      C compiler flags
1501  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502              nonstandard directory <lib dir>
1503  LIBS        libraries to pass to the linker, e.g. -l<library>
1504  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505              you have headers in a nonstandard directory <include dir>
1506  CPP         C preprocessor
1507  LT_SYS_LIBRARY_PATH
1508              User-defined run-time library search path.
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to the package provider.
1514_ACEOF
1515ac_status=$?
1516fi
1517
1518if test "$ac_init_help" = "recursive"; then
1519  # If there are subdirs, report their specific --help.
1520  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521    test -d "$ac_dir" ||
1522      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523      continue
1524    ac_builddir=.
1525
1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
1529  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530  # A ".." for each directory in $ac_dir_suffix.
1531  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532  case $ac_top_builddir_sub in
1533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535  esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
1541
1542case $srcdir in
1543  .)  # We are building in place.
1544    ac_srcdir=.
1545    ac_top_srcdir=$ac_top_builddir_sub
1546    ac_abs_top_srcdir=$ac_pwd ;;
1547  [\\/]* | ?:[\\/]* )  # Absolute name.
1548    ac_srcdir=$srcdir$ac_dir_suffix;
1549    ac_top_srcdir=$srcdir
1550    ac_abs_top_srcdir=$srcdir ;;
1551  *) # Relative name.
1552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553    ac_top_srcdir=$ac_top_build_prefix$srcdir
1554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555esac
1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558    cd "$ac_dir" || { ac_status=$?; continue; }
1559    # Check for guested configure.
1560    if test -f "$ac_srcdir/configure.gnu"; then
1561      echo &&
1562      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563    elif test -f "$ac_srcdir/configure"; then
1564      echo &&
1565      $SHELL "$ac_srcdir/configure" --help=recursive
1566    else
1567      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568    fi || ac_status=$?
1569    cd "$ac_pwd" || { ac_status=$?; break; }
1570  done
1571fi
1572
1573test -n "$ac_init_help" && exit $ac_status
1574if $ac_init_version; then
1575  cat <<\_ACEOF
1576libevent configure 2.1.8-stable
1577generated by GNU Autoconf 2.69
1578
1579Copyright (C) 2012 Free Software Foundation, Inc.
1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
1583  exit
1584fi
1585
1586## ------------------------ ##
1587## Autoconf initialization. ##
1588## ------------------------ ##
1589
1590# ac_fn_c_try_compile LINENO
1591# --------------------------
1592# Try to compile conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_compile ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  rm -f conftest.$ac_objext
1597  if { { ac_try="$ac_compile"
1598case "(($ac_try" in
1599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600  *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604  (eval "$ac_compile") 2>conftest.err
1605  ac_status=$?
1606  if test -s conftest.err; then
1607    grep -v '^ *+' conftest.err >conftest.er1
1608    cat conftest.er1 >&5
1609    mv -f conftest.er1 conftest.err
1610  fi
1611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612  test $ac_status = 0; } && {
1613	 test -z "$ac_c_werror_flag" ||
1614	 test ! -s conftest.err
1615       } && test -s conftest.$ac_objext; then :
1616  ac_retval=0
1617else
1618  $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621	ac_retval=1
1622fi
1623  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624  as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_compile
1627
1628# ac_fn_c_try_cpp LINENO
1629# ----------------------
1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_cpp ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  if { { ac_try="$ac_cpp conftest.$ac_ext"
1635case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642  ac_status=$?
1643  if test -s conftest.err; then
1644    grep -v '^ *+' conftest.err >conftest.er1
1645    cat conftest.er1 >&5
1646    mv -f conftest.er1 conftest.err
1647  fi
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; } > conftest.i && {
1650	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651	 test ! -s conftest.err
1652       }; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658    ac_retval=1
1659fi
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_cpp
1664
1665# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666# -------------------------------------------------------
1667# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668# the include files in INCLUDES and setting the cache variable VAR
1669# accordingly.
1670ac_fn_c_check_header_mongrel ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if eval \${$3+:} false; then :
1674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if eval \${$3+:} false; then :
1677  $as_echo_n "(cached) " >&6
1678fi
1679eval ac_res=\$$3
1680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682else
1683  # Is the header compilable?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685$as_echo_n "checking $2 usability... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h.  */
1688$4
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_compile "$LINENO"; then :
1692  ac_header_compiler=yes
1693else
1694  ac_header_compiler=no
1695fi
1696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698$as_echo "$ac_header_compiler" >&6; }
1699
1700# Is the header present?
1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702$as_echo_n "checking $2 presence... " >&6; }
1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h.  */
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_cpp "$LINENO"; then :
1708  ac_header_preproc=yes
1709else
1710  ac_header_preproc=no
1711fi
1712rm -f conftest.err conftest.i conftest.$ac_ext
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714$as_echo "$ac_header_preproc" >&6; }
1715
1716# So?  What about this header?
1717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718  yes:no: )
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723    ;;
1724  no:yes:* )
1725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1728$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1732$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1733    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735    ;;
1736esac
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if eval \${$3+:} false; then :
1740  $as_echo_n "(cached) " >&6
1741else
1742  eval "$3=\$ac_header_compiler"
1743fi
1744eval ac_res=\$$3
1745	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746$as_echo "$ac_res" >&6; }
1747fi
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750} # ac_fn_c_check_header_mongrel
1751
1752# ac_fn_c_try_run LINENO
1753# ----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755# that executables *can* be run.
1756ac_fn_c_try_run ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_link") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770  { { case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_try") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; }; }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: program exited with status $ac_status" >&5
1783       $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786       ac_retval=$ac_status
1787fi
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_run
1793
1794# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists and can be compiled using the include files in
1797# INCLUDES, setting the cache variable VAR accordingly.
1798ac_fn_c_check_header_compile ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805else
1806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808$4
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812  eval "$3=yes"
1813else
1814  eval "$3=no"
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823} # ac_fn_c_check_header_compile
1824
1825# ac_fn_c_try_link LINENO
1826# -----------------------
1827# Try to link conftest.$ac_ext, and return whether this succeeded.
1828ac_fn_c_try_link ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  rm -f conftest.$ac_objext conftest$ac_exeext
1832  if { { ac_try="$ac_link"
1833case "(($ac_try" in
1834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835  *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839  (eval "$ac_link") 2>conftest.err
1840  ac_status=$?
1841  if test -s conftest.err; then
1842    grep -v '^ *+' conftest.err >conftest.er1
1843    cat conftest.er1 >&5
1844    mv -f conftest.er1 conftest.err
1845  fi
1846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; } && {
1848	 test -z "$ac_c_werror_flag" ||
1849	 test ! -s conftest.err
1850       } && test -s conftest$ac_exeext && {
1851	 test "$cross_compiling" = yes ||
1852	 test -x conftest$ac_exeext
1853       }; then :
1854  ac_retval=0
1855else
1856  $as_echo "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859	ac_retval=1
1860fi
1861  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863  # interfere with the next link command; also delete a directory that is
1864  # left behind by Apple's compiler.  We do this before executing the actions.
1865  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867  as_fn_set_status $ac_retval
1868
1869} # ac_fn_c_try_link
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880  $as_echo_n "(cached) " >&6
1881else
1882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h.  */
1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886#define $2 innocuous_$2
1887
1888/* System header to define __stub macros and hopefully few prototypes,
1889    which can conflict with char $2 (); below.
1890    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891    <limits.h> exists even on freestanding compilers.  */
1892
1893#ifdef __STDC__
1894# include <limits.h>
1895#else
1896# include <assert.h>
1897#endif
1898
1899#undef $2
1900
1901/* Override any GCC internal prototype to avoid an error.
1902   Use char because int might match the return type of a GCC
1903   builtin and then its argument prototype would still apply.  */
1904#ifdef __cplusplus
1905extern "C"
1906#endif
1907char $2 ();
1908/* The GNU C library defines this for functions which it implements
1909    to always fail with ENOSYS.  Some functions are actually named
1910    something starting with __ and the normal name is an alias.  */
1911#if defined __stub_$2 || defined __stub___$2
1912choke me
1913#endif
1914
1915int
1916main ()
1917{
1918return $2 ();
1919  ;
1920  return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_link "$LINENO"; then :
1924  eval "$3=yes"
1925else
1926  eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext \
1929    conftest$ac_exeext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_func
1937
1938# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1939# ---------------------------------------------
1940# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1941# accordingly.
1942ac_fn_c_check_decl ()
1943{
1944  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945  as_decl_name=`echo $2|sed 's/ *(.*//'`
1946  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1948$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1949if eval \${$3+:} false; then :
1950  $as_echo_n "(cached) " >&6
1951else
1952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h.  */
1954$4
1955int
1956main ()
1957{
1958#ifndef $as_decl_name
1959#ifdef __cplusplus
1960  (void) $as_decl_use;
1961#else
1962  (void) $as_decl_name;
1963#endif
1964#endif
1965
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971  eval "$3=yes"
1972else
1973  eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976fi
1977eval ac_res=\$$3
1978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982} # ac_fn_c_check_decl
1983
1984# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1985# -------------------------------------------
1986# Tests whether TYPE exists after having included INCLUDES, setting cache
1987# variable VAR accordingly.
1988ac_fn_c_check_type ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992$as_echo_n "checking for $2... " >&6; }
1993if eval \${$3+:} false; then :
1994  $as_echo_n "(cached) " >&6
1995else
1996  eval "$3=no"
1997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999$4
2000int
2001main ()
2002{
2003if (sizeof ($2))
2004	 return 0;
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013int
2014main ()
2015{
2016if (sizeof (($2)))
2017	    return 0;
2018  ;
2019  return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023
2024else
2025  eval "$3=yes"
2026fi
2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031eval ac_res=\$$3
2032	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; }
2034  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036} # ac_fn_c_check_type
2037
2038# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2039# --------------------------------------------
2040# Tries to find the compile-time value of EXPR in a program that includes
2041# INCLUDES, setting VAR accordingly. Returns whether the value could be
2042# computed
2043ac_fn_c_compute_int ()
2044{
2045  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046  if test "$cross_compiling" = yes; then
2047    # Depending upon the size, compute the lo and hi bounds.
2048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051int
2052main ()
2053{
2054static int test_array [1 - 2 * !(($2) >= 0)];
2055test_array [0] = 0;
2056return test_array [0];
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063  ac_lo=0 ac_mid=0
2064  while :; do
2065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068int
2069main ()
2070{
2071static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072test_array [0] = 0;
2073return test_array [0];
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  ac_hi=$ac_mid; break
2081else
2082  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2083			if test $ac_lo -le $ac_mid; then
2084			  ac_lo= ac_hi=
2085			  break
2086			fi
2087			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090  done
2091else
2092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094$4
2095int
2096main ()
2097{
2098static int test_array [1 - 2 * !(($2) < 0)];
2099test_array [0] = 0;
2100return test_array [0];
2101
2102  ;
2103  return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107  ac_hi=-1 ac_mid=-1
2108  while :; do
2109    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h.  */
2111$4
2112int
2113main ()
2114{
2115static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2116test_array [0] = 0;
2117return test_array [0];
2118
2119  ;
2120  return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
2124  ac_lo=$ac_mid; break
2125else
2126  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2127			if test $ac_mid -le $ac_hi; then
2128			  ac_lo= ac_hi=
2129			  break
2130			fi
2131			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134  done
2135else
2136  ac_lo= ac_hi=
2137fi
2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139fi
2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141# Binary search between lo and hi bounds.
2142while test "x$ac_lo" != "x$ac_hi"; do
2143  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h.  */
2146$4
2147int
2148main ()
2149{
2150static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2151test_array [0] = 0;
2152return test_array [0];
2153
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159  ac_hi=$ac_mid
2160else
2161  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164done
2165case $ac_lo in #((
2166?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2167'') ac_retval=1 ;;
2168esac
2169  else
2170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173static long int longval () { return $2; }
2174static unsigned long int ulongval () { return $2; }
2175#include <stdio.h>
2176#include <stdlib.h>
2177int
2178main ()
2179{
2180
2181  FILE *f = fopen ("conftest.val", "w");
2182  if (! f)
2183    return 1;
2184  if (($2) < 0)
2185    {
2186      long int i = longval ();
2187      if (i != ($2))
2188	return 1;
2189      fprintf (f, "%ld", i);
2190    }
2191  else
2192    {
2193      unsigned long int i = ulongval ();
2194      if (i != ($2))
2195	return 1;
2196      fprintf (f, "%lu", i);
2197    }
2198  /* Do not output a trailing newline, as this causes \r\n confusion
2199     on some platforms.  */
2200  return ferror (f) || fclose (f) != 0;
2201
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_run "$LINENO"; then :
2207  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2208else
2209  ac_retval=1
2210fi
2211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2212  conftest.$ac_objext conftest.beam conftest.$ac_ext
2213rm -f conftest.val
2214
2215  fi
2216  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217  as_fn_set_status $ac_retval
2218
2219} # ac_fn_c_compute_int
2220
2221# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2222# ----------------------------------------------------
2223# Tries to find if the field MEMBER exists in type AGGR, after including
2224# INCLUDES, setting cache variable VAR accordingly.
2225ac_fn_c_check_member ()
2226{
2227  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2229$as_echo_n "checking for $2.$3... " >&6; }
2230if eval \${$4+:} false; then :
2231  $as_echo_n "(cached) " >&6
2232else
2233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234/* end confdefs.h.  */
2235$5
2236int
2237main ()
2238{
2239static $2 ac_aggr;
2240if (ac_aggr.$3)
2241return 0;
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247  eval "$4=yes"
2248else
2249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$5
2252int
2253main ()
2254{
2255static $2 ac_aggr;
2256if (sizeof ac_aggr.$3)
2257return 0;
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263  eval "$4=yes"
2264else
2265  eval "$4=no"
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268fi
2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270fi
2271eval ac_res=\$$4
2272	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
2274  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276} # ac_fn_c_check_member
2277cat >config.log <<_ACEOF
2278This file contains any messages produced by compilers while
2279running configure, to aid debugging if configure makes a mistake.
2280
2281It was created by libevent $as_me 2.1.8-stable, which was
2282generated by GNU Autoconf 2.69.  Invocation command line was
2283
2284  $ $0 $@
2285
2286_ACEOF
2287exec 5>>config.log
2288{
2289cat <<_ASUNAME
2290## --------- ##
2291## Platform. ##
2292## --------- ##
2293
2294hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2295uname -m = `(uname -m) 2>/dev/null || echo unknown`
2296uname -r = `(uname -r) 2>/dev/null || echo unknown`
2297uname -s = `(uname -s) 2>/dev/null || echo unknown`
2298uname -v = `(uname -v) 2>/dev/null || echo unknown`
2299
2300/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2301/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2302
2303/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2304/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2305/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2306/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2307/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2308/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2309/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2310
2311_ASUNAME
2312
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316  IFS=$as_save_IFS
2317  test -z "$as_dir" && as_dir=.
2318    $as_echo "PATH: $as_dir"
2319  done
2320IFS=$as_save_IFS
2321
2322} >&5
2323
2324cat >&5 <<_ACEOF
2325
2326
2327## ----------- ##
2328## Core tests. ##
2329## ----------- ##
2330
2331_ACEOF
2332
2333
2334# Keep a trace of the command line.
2335# Strip out --no-create and --no-recursion so they do not pile up.
2336# Strip out --silent because we don't want to record it for future runs.
2337# Also quote any args containing shell meta-characters.
2338# Make two passes to allow for proper duplicate-argument suppression.
2339ac_configure_args=
2340ac_configure_args0=
2341ac_configure_args1=
2342ac_must_keep_next=false
2343for ac_pass in 1 2
2344do
2345  for ac_arg
2346  do
2347    case $ac_arg in
2348    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2349    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2350    | -silent | --silent | --silen | --sile | --sil)
2351      continue ;;
2352    *\'*)
2353      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2354    esac
2355    case $ac_pass in
2356    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2357    2)
2358      as_fn_append ac_configure_args1 " '$ac_arg'"
2359      if test $ac_must_keep_next = true; then
2360	ac_must_keep_next=false # Got value, back to normal.
2361      else
2362	case $ac_arg in
2363	  *=* | --config-cache | -C | -disable-* | --disable-* \
2364	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2365	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2366	  | -with-* | --with-* | -without-* | --without-* | --x)
2367	    case "$ac_configure_args0 " in
2368	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2369	    esac
2370	    ;;
2371	  -* ) ac_must_keep_next=true ;;
2372	esac
2373      fi
2374      as_fn_append ac_configure_args " '$ac_arg'"
2375      ;;
2376    esac
2377  done
2378done
2379{ ac_configure_args0=; unset ac_configure_args0;}
2380{ ac_configure_args1=; unset ac_configure_args1;}
2381
2382# When interrupted or exit'd, cleanup temporary files, and complete
2383# config.log.  We remove comments because anyway the quotes in there
2384# would cause problems or look ugly.
2385# WARNING: Use '\'' to represent an apostrophe within the trap.
2386# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2387trap 'exit_status=$?
2388  # Save into config.log some information that might help in debugging.
2389  {
2390    echo
2391
2392    $as_echo "## ---------------- ##
2393## Cache variables. ##
2394## ---------------- ##"
2395    echo
2396    # The following way of writing the cache mishandles newlines in values,
2397(
2398  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2399    eval ac_val=\$$ac_var
2400    case $ac_val in #(
2401    *${as_nl}*)
2402      case $ac_var in #(
2403      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2404$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2405      esac
2406      case $ac_var in #(
2407      _ | IFS | as_nl) ;; #(
2408      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2409      *) { eval $ac_var=; unset $ac_var;} ;;
2410      esac ;;
2411    esac
2412  done
2413  (set) 2>&1 |
2414    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2415    *${as_nl}ac_space=\ *)
2416      sed -n \
2417	"s/'\''/'\''\\\\'\'''\''/g;
2418	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2419      ;; #(
2420    *)
2421      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2422      ;;
2423    esac |
2424    sort
2425)
2426    echo
2427
2428    $as_echo "## ----------------- ##
2429## Output variables. ##
2430## ----------------- ##"
2431    echo
2432    for ac_var in $ac_subst_vars
2433    do
2434      eval ac_val=\$$ac_var
2435      case $ac_val in
2436      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437      esac
2438      $as_echo "$ac_var='\''$ac_val'\''"
2439    done | sort
2440    echo
2441
2442    if test -n "$ac_subst_files"; then
2443      $as_echo "## ------------------- ##
2444## File substitutions. ##
2445## ------------------- ##"
2446      echo
2447      for ac_var in $ac_subst_files
2448      do
2449	eval ac_val=\$$ac_var
2450	case $ac_val in
2451	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452	esac
2453	$as_echo "$ac_var='\''$ac_val'\''"
2454      done | sort
2455      echo
2456    fi
2457
2458    if test -s confdefs.h; then
2459      $as_echo "## ----------- ##
2460## confdefs.h. ##
2461## ----------- ##"
2462      echo
2463      cat confdefs.h
2464      echo
2465    fi
2466    test "$ac_signal" != 0 &&
2467      $as_echo "$as_me: caught signal $ac_signal"
2468    $as_echo "$as_me: exit $exit_status"
2469  } >&5
2470  rm -f core *.core core.conftest.* &&
2471    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2472    exit $exit_status
2473' 0
2474for ac_signal in 1 2 13 15; do
2475  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2476done
2477ac_signal=0
2478
2479# confdefs.h avoids OS command line length limits that DEFS can exceed.
2480rm -f -r conftest* confdefs.h
2481
2482$as_echo "/* confdefs.h */" > confdefs.h
2483
2484# Predefined preprocessor variables.
2485
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_NAME "$PACKAGE_NAME"
2488_ACEOF
2489
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2492_ACEOF
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_VERSION "$PACKAGE_VERSION"
2496_ACEOF
2497
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_STRING "$PACKAGE_STRING"
2500_ACEOF
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_URL "$PACKAGE_URL"
2508_ACEOF
2509
2510
2511# Let the site file select an alternate cache file if it wants to.
2512# Prefer an explicitly selected file to automatically selected ones.
2513ac_site_file1=NONE
2514ac_site_file2=NONE
2515if test -n "$CONFIG_SITE"; then
2516  # We do not want a PATH search for config.site.
2517  case $CONFIG_SITE in #((
2518    -*)  ac_site_file1=./$CONFIG_SITE;;
2519    */*) ac_site_file1=$CONFIG_SITE;;
2520    *)   ac_site_file1=./$CONFIG_SITE;;
2521  esac
2522elif test "x$prefix" != xNONE; then
2523  ac_site_file1=$prefix/share/config.site
2524  ac_site_file2=$prefix/etc/config.site
2525else
2526  ac_site_file1=$ac_default_prefix/share/config.site
2527  ac_site_file2=$ac_default_prefix/etc/config.site
2528fi
2529for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2530do
2531  test "x$ac_site_file" = xNONE && continue
2532  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2533    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2534$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2535    sed 's/^/| /' "$ac_site_file" >&5
2536    . "$ac_site_file" \
2537      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539as_fn_error $? "failed to load site script $ac_site_file
2540See \`config.log' for more details" "$LINENO" 5; }
2541  fi
2542done
2543
2544if test -r "$cache_file"; then
2545  # Some versions of bash will fail to source /dev/null (special files
2546  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2547  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2548    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2549$as_echo "$as_me: loading cache $cache_file" >&6;}
2550    case $cache_file in
2551      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2552      *)                      . "./$cache_file";;
2553    esac
2554  fi
2555else
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2557$as_echo "$as_me: creating cache $cache_file" >&6;}
2558  >$cache_file
2559fi
2560
2561# Check that the precious variables saved in the cache have kept the same
2562# value.
2563ac_cache_corrupted=false
2564for ac_var in $ac_precious_vars; do
2565  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2566  eval ac_new_set=\$ac_env_${ac_var}_set
2567  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2568  eval ac_new_val=\$ac_env_${ac_var}_value
2569  case $ac_old_set,$ac_new_set in
2570    set,)
2571      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2572$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2573      ac_cache_corrupted=: ;;
2574    ,set)
2575      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2576$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2577      ac_cache_corrupted=: ;;
2578    ,);;
2579    *)
2580      if test "x$ac_old_val" != "x$ac_new_val"; then
2581	# differences in whitespace do not lead to failure.
2582	ac_old_val_w=`echo x $ac_old_val`
2583	ac_new_val_w=`echo x $ac_new_val`
2584	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2585	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2586$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2587	  ac_cache_corrupted=:
2588	else
2589	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2590$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2591	  eval $ac_var=\$ac_old_val
2592	fi
2593	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2594$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2595	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2596$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2597      fi;;
2598  esac
2599  # Pass precious variables to config.status.
2600  if test "$ac_new_set" = set; then
2601    case $ac_new_val in
2602    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2603    *) ac_arg=$ac_var=$ac_new_val ;;
2604    esac
2605    case " $ac_configure_args " in
2606      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2607      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2608    esac
2609  fi
2610done
2611if $ac_cache_corrupted; then
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2615$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2616  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2617fi
2618## -------------------- ##
2619## Main body of script. ##
2620## -------------------- ##
2621
2622ac_ext=c
2623ac_cpp='$CPP $CPPFLAGS'
2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627
2628
2629
2630
2631
2632
2633am__api_version='1.15'
2634
2635ac_aux_dir=
2636for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2637  if test -f "$ac_dir/install-sh"; then
2638    ac_aux_dir=$ac_dir
2639    ac_install_sh="$ac_aux_dir/install-sh -c"
2640    break
2641  elif test -f "$ac_dir/install.sh"; then
2642    ac_aux_dir=$ac_dir
2643    ac_install_sh="$ac_aux_dir/install.sh -c"
2644    break
2645  elif test -f "$ac_dir/shtool"; then
2646    ac_aux_dir=$ac_dir
2647    ac_install_sh="$ac_aux_dir/shtool install -c"
2648    break
2649  fi
2650done
2651if test -z "$ac_aux_dir"; then
2652  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2653fi
2654
2655# These three variables are undocumented and unsupported,
2656# and are intended to be withdrawn in a future Autoconf release.
2657# They can cause serious problems if a builder's source tree is in a directory
2658# whose full name contains unusual characters.
2659ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2660ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2661ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2662
2663
2664# Find a good install program.  We prefer a C program (faster),
2665# so one script is as good as another.  But avoid the broken or
2666# incompatible versions:
2667# SysV /etc/install, /usr/sbin/install
2668# SunOS /usr/etc/install
2669# IRIX /sbin/install
2670# AIX /bin/install
2671# AmigaOS /C/install, which installs bootblocks on floppy discs
2672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2675# OS/2's system install, which has a completely different semantic
2676# ./install, which can be erroneously created by make from ./install.sh.
2677# Reject install programs that cannot install multiple files.
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2679$as_echo_n "checking for a BSD-compatible install... " >&6; }
2680if test -z "$INSTALL"; then
2681if ${ac_cv_path_install+:} false; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689    # Account for people who put trailing slashes in PATH elements.
2690case $as_dir/ in #((
2691  ./ | .// | /[cC]/* | \
2692  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2693  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2694  /usr/ucb/* ) ;;
2695  *)
2696    # OSF1 and SCO ODT 3.0 have their own names for install.
2697    # Don't use installbsd from OSF since it installs stuff as root
2698    # by default.
2699    for ac_prog in ginstall scoinst install; do
2700      for ac_exec_ext in '' $ac_executable_extensions; do
2701	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2702	  if test $ac_prog = install &&
2703	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704	    # AIX install.  It has an incompatible calling convention.
2705	    :
2706	  elif test $ac_prog = install &&
2707	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708	    # program-specific install script used by HP pwplus--don't use.
2709	    :
2710	  else
2711	    rm -rf conftest.one conftest.two conftest.dir
2712	    echo one > conftest.one
2713	    echo two > conftest.two
2714	    mkdir conftest.dir
2715	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2716	      test -s conftest.one && test -s conftest.two &&
2717	      test -s conftest.dir/conftest.one &&
2718	      test -s conftest.dir/conftest.two
2719	    then
2720	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2721	      break 3
2722	    fi
2723	  fi
2724	fi
2725      done
2726    done
2727    ;;
2728esac
2729
2730  done
2731IFS=$as_save_IFS
2732
2733rm -rf conftest.one conftest.two conftest.dir
2734
2735fi
2736  if test "${ac_cv_path_install+set}" = set; then
2737    INSTALL=$ac_cv_path_install
2738  else
2739    # As a last resort, use the slow shell script.  Don't cache a
2740    # value for INSTALL within a source directory, because that will
2741    # break other packages using the cache if that directory is
2742    # removed, or if the value is a relative name.
2743    INSTALL=$ac_install_sh
2744  fi
2745fi
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2747$as_echo "$INSTALL" >&6; }
2748
2749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2750# It thinks the first close brace ends the variable substitution.
2751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2752
2753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2754
2755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2756
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2758$as_echo_n "checking whether build environment is sane... " >&6; }
2759# Reject unsafe characters in $srcdir or the absolute working directory
2760# name.  Accept space and tab only in the latter.
2761am_lf='
2762'
2763case `pwd` in
2764  *[\\\"\#\$\&\'\`$am_lf]*)
2765    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2766esac
2767case $srcdir in
2768  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2769    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2770esac
2771
2772# Do 'set' in a subshell so we don't clobber the current shell's
2773# arguments.  Must try -L first in case configure is actually a
2774# symlink; some systems play weird games with the mod time of symlinks
2775# (eg FreeBSD returns the mod time of the symlink's containing
2776# directory).
2777if (
2778   am_has_slept=no
2779   for am_try in 1 2; do
2780     echo "timestamp, slept: $am_has_slept" > conftest.file
2781     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2782     if test "$*" = "X"; then
2783	# -L didn't work.
2784	set X `ls -t "$srcdir/configure" conftest.file`
2785     fi
2786     if test "$*" != "X $srcdir/configure conftest.file" \
2787	&& test "$*" != "X conftest.file $srcdir/configure"; then
2788
2789	# If neither matched, then we have a broken ls.  This can happen
2790	# if, for instance, CONFIG_SHELL is bash and it inherits a
2791	# broken ls alias from the environment.  This has actually
2792	# happened.  Such a system could not be considered "sane".
2793	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2794  alias in your environment" "$LINENO" 5
2795     fi
2796     if test "$2" = conftest.file || test $am_try -eq 2; then
2797       break
2798     fi
2799     # Just in case.
2800     sleep 1
2801     am_has_slept=yes
2802   done
2803   test "$2" = conftest.file
2804   )
2805then
2806   # Ok.
2807   :
2808else
2809   as_fn_error $? "newly created file is older than distributed files!
2810Check your system clock" "$LINENO" 5
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2813$as_echo "yes" >&6; }
2814# If we didn't sleep, we still need to ensure time stamps of config.status and
2815# generated files are strictly newer.
2816am_sleep_pid=
2817if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2818  ( sleep 1 ) &
2819  am_sleep_pid=$!
2820fi
2821
2822rm -f conftest.file
2823
2824test "$program_prefix" != NONE &&
2825  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2826# Use a double $ so make ignores it.
2827test "$program_suffix" != NONE &&
2828  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2829# Double any \ or $.
2830# By default was `s,x,x', remove it if useless.
2831ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2832program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2833
2834# Expand $ac_aux_dir to an absolute path.
2835am_aux_dir=`cd "$ac_aux_dir" && pwd`
2836
2837if test x"${MISSING+set}" != xset; then
2838  case $am_aux_dir in
2839  *\ * | *\	*)
2840    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2841  *)
2842    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2843  esac
2844fi
2845# Use eval to expand $SHELL
2846if eval "$MISSING --is-lightweight"; then
2847  am_missing_run="$MISSING "
2848else
2849  am_missing_run=
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2851$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2852fi
2853
2854if test x"${install_sh+set}" != xset; then
2855  case $am_aux_dir in
2856  *\ * | *\	*)
2857    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2858  *)
2859    install_sh="\${SHELL} $am_aux_dir/install-sh"
2860  esac
2861fi
2862
2863# Installed binaries are usually stripped using 'strip' when the user
2864# run "make install-strip".  However 'strip' might not be the right
2865# tool to use in cross-compilation environments, therefore Automake
2866# will honor the 'STRIP' environment variable to overrule this program.
2867if test "$cross_compiling" != no; then
2868  if test -n "$ac_tool_prefix"; then
2869  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}strip; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_STRIP+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$STRIP"; then
2877  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896STRIP=$ac_cv_prog_STRIP
2897if test -n "$STRIP"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2899$as_echo "$STRIP" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908  ac_ct_STRIP=$STRIP
2909  # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$ac_ct_STRIP"; then
2917  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_ac_ct_STRIP="strip"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937if test -n "$ac_ct_STRIP"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2939$as_echo "$ac_ct_STRIP" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945  if test "x$ac_ct_STRIP" = x; then
2946    STRIP=":"
2947  else
2948    case $cross_compiling:$ac_tool_warned in
2949yes:)
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952ac_tool_warned=yes ;;
2953esac
2954    STRIP=$ac_ct_STRIP
2955  fi
2956else
2957  STRIP="$ac_cv_prog_STRIP"
2958fi
2959
2960fi
2961INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2962
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2964$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2965if test -z "$MKDIR_P"; then
2966  if ${ac_cv_path_mkdir+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2971do
2972  IFS=$as_save_IFS
2973  test -z "$as_dir" && as_dir=.
2974    for ac_prog in mkdir gmkdir; do
2975	 for ac_exec_ext in '' $ac_executable_extensions; do
2976	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2977	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2978	     'mkdir (GNU coreutils) '* | \
2979	     'mkdir (coreutils) '* | \
2980	     'mkdir (fileutils) '4.1*)
2981	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2982	       break 3;;
2983	   esac
2984	 done
2985       done
2986  done
2987IFS=$as_save_IFS
2988
2989fi
2990
2991  test -d ./--version && rmdir ./--version
2992  if test "${ac_cv_path_mkdir+set}" = set; then
2993    MKDIR_P="$ac_cv_path_mkdir -p"
2994  else
2995    # As a last resort, use the slow shell script.  Don't cache a
2996    # value for MKDIR_P within a source directory, because that will
2997    # break other packages using the cache if that directory is
2998    # removed, or if the value is a relative name.
2999    MKDIR_P="$ac_install_sh -d"
3000  fi
3001fi
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3003$as_echo "$MKDIR_P" >&6; }
3004
3005for ac_prog in gawk mawk nawk awk
3006do
3007  # Extract the first word of "$ac_prog", so it can be a program name with args.
3008set dummy $ac_prog; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_AWK+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$AWK"; then
3015  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_AWK="$ac_prog"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034AWK=$ac_cv_prog_AWK
3035if test -n "$AWK"; then
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037$as_echo "$AWK" >&6; }
3038else
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044  test -n "$AWK" && break
3045done
3046
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049set x ${MAKE-make}
3050ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3052  $as_echo_n "(cached) " >&6
3053else
3054  cat >conftest.make <<\_ACEOF
3055SHELL = /bin/sh
3056all:
3057	@echo '@@@%%%=$(MAKE)=@@@%%%'
3058_ACEOF
3059# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3060case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061  *@@@%%%=?*=@@@%%%*)
3062    eval ac_cv_prog_make_${ac_make}_set=yes;;
3063  *)
3064    eval ac_cv_prog_make_${ac_make}_set=no;;
3065esac
3066rm -f conftest.make
3067fi
3068if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070$as_echo "yes" >&6; }
3071  SET_MAKE=
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075  SET_MAKE="MAKE=${MAKE-make}"
3076fi
3077
3078rm -rf .tst 2>/dev/null
3079mkdir .tst 2>/dev/null
3080if test -d .tst; then
3081  am__leading_dot=.
3082else
3083  am__leading_dot=_
3084fi
3085rmdir .tst 2>/dev/null
3086
3087# Check whether --enable-silent-rules was given.
3088if test "${enable_silent_rules+set}" = set; then :
3089  enableval=$enable_silent_rules;
3090fi
3091
3092case $enable_silent_rules in # (((
3093  yes) AM_DEFAULT_VERBOSITY=0;;
3094   no) AM_DEFAULT_VERBOSITY=1;;
3095    *) AM_DEFAULT_VERBOSITY=1;;
3096esac
3097am_make=${MAKE-make}
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3099$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3100if ${am_cv_make_support_nested_variables+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if $as_echo 'TRUE=$(BAR$(V))
3104BAR0=false
3105BAR1=true
3106V=1
3107am__doit:
3108	@$(TRUE)
3109.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3110  am_cv_make_support_nested_variables=yes
3111else
3112  am_cv_make_support_nested_variables=no
3113fi
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3116$as_echo "$am_cv_make_support_nested_variables" >&6; }
3117if test $am_cv_make_support_nested_variables = yes; then
3118    AM_V='$(V)'
3119  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3120else
3121  AM_V=$AM_DEFAULT_VERBOSITY
3122  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3123fi
3124AM_BACKSLASH='\'
3125
3126if test "`cd $srcdir && pwd`" != "`pwd`"; then
3127  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3128  # is not polluted with repeated "-I."
3129  am__isrc=' -I$(srcdir)'
3130  # test to see if srcdir already configured
3131  if test -f $srcdir/config.status; then
3132    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3133  fi
3134fi
3135
3136# test whether we have cygpath
3137if test -z "$CYGPATH_W"; then
3138  if (cygpath --version) >/dev/null 2>/dev/null; then
3139    CYGPATH_W='cygpath -w'
3140  else
3141    CYGPATH_W=echo
3142  fi
3143fi
3144
3145
3146# Define the identity of the package.
3147 PACKAGE='libevent'
3148 VERSION='2.1.8-stable'
3149
3150
3151cat >>confdefs.h <<_ACEOF
3152#define PACKAGE "$PACKAGE"
3153_ACEOF
3154
3155
3156cat >>confdefs.h <<_ACEOF
3157#define VERSION "$VERSION"
3158_ACEOF
3159
3160# Some tools Automake needs.
3161
3162ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3163
3164
3165AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3166
3167
3168AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3169
3170
3171AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3172
3173
3174MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3175
3176# For better backward compatibility.  To be removed once Automake 1.9.x
3177# dies out for good.  For more background, see:
3178# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3179# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3180mkdir_p='$(MKDIR_P)'
3181
3182# We need awk for the "check" target (and possibly the TAP driver).  The
3183# system "awk" is bad on some platforms.
3184# Always define AMTAR for backward compatibility.  Yes, it's still used
3185# in the wild :-(  We should find a proper way to deprecate it ...
3186AMTAR='$${TAR-tar}'
3187
3188
3189# We'll loop over all known methods to create a tar archive until one works.
3190_am_tools='gnutar  pax cpio none'
3191
3192am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3193
3194
3195
3196
3197
3198
3199# POSIX will say in a future version that running "rm -f" with no argument
3200# is OK; and we want to be able to make that assumption in our Makefile
3201# recipes.  So use an aggressive probe to check that the usage we want is
3202# actually supported "in the wild" to an acceptable degree.
3203# See automake bug#10828.
3204# To make any issue more visible, cause the running configure to be aborted
3205# by default if the 'rm' program in use doesn't match our expectations; the
3206# user can still override this though.
3207if rm -f && rm -fr && rm -rf; then : OK; else
3208  cat >&2 <<'END'
3209Oops!
3210
3211Your 'rm' program seems unable to run without file operands specified
3212on the command line, even when the '-f' option is present.  This is contrary
3213to the behaviour of most rm programs out there, and not conforming with
3214the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3215
3216Please tell bug-automake@gnu.org about your system, including the value
3217of your $PATH and any error possibly output before this message.  This
3218can help us improve future automake versions.
3219
3220END
3221  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3222    echo 'Configuration will proceed anyway, since you have set the' >&2
3223    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3224    echo >&2
3225  else
3226    cat >&2 <<'END'
3227Aborting the configuration process, to ensure you take notice of the issue.
3228
3229You can download and install GNU coreutils to get an 'rm' implementation
3230that behaves properly: <http://www.gnu.org/software/coreutils/>.
3231
3232If you want to complete the configuration process using your problematic
3233'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3234to "yes", and re-run configure.
3235
3236END
3237    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3238  fi
3239fi
3240
3241# Check whether --enable-silent-rules was given.
3242if test "${enable_silent_rules+set}" = set; then :
3243  enableval=$enable_silent_rules;
3244fi
3245
3246case $enable_silent_rules in # (((
3247  yes) AM_DEFAULT_VERBOSITY=0;;
3248   no) AM_DEFAULT_VERBOSITY=1;;
3249    *) AM_DEFAULT_VERBOSITY=0;;
3250esac
3251am_make=${MAKE-make}
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3253$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3254if ${am_cv_make_support_nested_variables+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  if $as_echo 'TRUE=$(BAR$(V))
3258BAR0=false
3259BAR1=true
3260V=1
3261am__doit:
3262	@$(TRUE)
3263.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3264  am_cv_make_support_nested_variables=yes
3265else
3266  am_cv_make_support_nested_variables=no
3267fi
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3270$as_echo "$am_cv_make_support_nested_variables" >&6; }
3271if test $am_cv_make_support_nested_variables = yes; then
3272    AM_V='$(V)'
3273  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3274else
3275  AM_V=$AM_DEFAULT_VERBOSITY
3276  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3277fi
3278AM_BACKSLASH='\'
3279
3280ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3281
3282
3283$as_echo "#define NUMERIC_VERSION 0x02010800" >>confdefs.h
3284
3285
3286if test "$prefix" = "NONE"; then
3287   prefix="/usr/local"
3288fi
3289
3290
3291DEPDIR="${am__leading_dot}deps"
3292
3293ac_config_commands="$ac_config_commands depfiles"
3294
3295
3296am_make=${MAKE-make}
3297cat > confinc << 'END'
3298am__doit:
3299	@echo this is the am__doit target
3300.PHONY: am__doit
3301END
3302# If we don't find an include directive, just comment out the code.
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3304$as_echo_n "checking for style of include used by $am_make... " >&6; }
3305am__include="#"
3306am__quote=
3307_am_result=none
3308# First try GNU make style include.
3309echo "include confinc" > confmf
3310# Ignore all kinds of additional output from 'make'.
3311case `$am_make -s -f confmf 2> /dev/null` in #(
3312*the\ am__doit\ target*)
3313  am__include=include
3314  am__quote=
3315  _am_result=GNU
3316  ;;
3317esac
3318# Now try BSD make style include.
3319if test "$am__include" = "#"; then
3320   echo '.include "confinc"' > confmf
3321   case `$am_make -s -f confmf 2> /dev/null` in #(
3322   *the\ am__doit\ target*)
3323     am__include=.include
3324     am__quote="\""
3325     _am_result=BSD
3326     ;;
3327   esac
3328fi
3329
3330
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3332$as_echo "$_am_result" >&6; }
3333rm -f confinc confmf
3334
3335# Check whether --enable-dependency-tracking was given.
3336if test "${enable_dependency_tracking+set}" = set; then :
3337  enableval=$enable_dependency_tracking;
3338fi
3339
3340if test "x$enable_dependency_tracking" != xno; then
3341  am_depcomp="$ac_aux_dir/depcomp"
3342  AMDEPBACKSLASH='\'
3343  am__nodep='_no'
3344fi
3345 if test "x$enable_dependency_tracking" != xno; then
3346  AMDEP_TRUE=
3347  AMDEP_FALSE='#'
3348else
3349  AMDEP_TRUE='#'
3350  AMDEP_FALSE=
3351fi
3352
3353
3354ac_ext=c
3355ac_cpp='$CPP $CPPFLAGS'
3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359if test -n "$ac_tool_prefix"; then
3360  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3361set dummy ${ac_tool_prefix}gcc; ac_word=$2
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363$as_echo_n "checking for $ac_word... " >&6; }
3364if ${ac_cv_prog_CC+:} false; then :
3365  $as_echo_n "(cached) " >&6
3366else
3367  if test -n "$CC"; then
3368  ac_cv_prog_CC="$CC" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375    for ac_exec_ext in '' $ac_executable_extensions; do
3376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379    break 2
3380  fi
3381done
3382  done
3383IFS=$as_save_IFS
3384
3385fi
3386fi
3387CC=$ac_cv_prog_CC
3388if test -n "$CC"; then
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390$as_echo "$CC" >&6; }
3391else
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393$as_echo "no" >&6; }
3394fi
3395
3396
3397fi
3398if test -z "$ac_cv_prog_CC"; then
3399  ac_ct_CC=$CC
3400  # Extract the first word of "gcc", so it can be a program name with args.
3401set dummy gcc; ac_word=$2
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403$as_echo_n "checking for $ac_word... " >&6; }
3404if ${ac_cv_prog_ac_ct_CC+:} false; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  if test -n "$ac_ct_CC"; then
3408  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409else
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413  IFS=$as_save_IFS
3414  test -z "$as_dir" && as_dir=.
3415    for ac_exec_ext in '' $ac_executable_extensions; do
3416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417    ac_cv_prog_ac_ct_CC="gcc"
3418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422  done
3423IFS=$as_save_IFS
3424
3425fi
3426fi
3427ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428if test -n "$ac_ct_CC"; then
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3430$as_echo "$ac_ct_CC" >&6; }
3431else
3432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433$as_echo "no" >&6; }
3434fi
3435
3436  if test "x$ac_ct_CC" = x; then
3437    CC=""
3438  else
3439    case $cross_compiling:$ac_tool_warned in
3440yes:)
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443ac_tool_warned=yes ;;
3444esac
3445    CC=$ac_ct_CC
3446  fi
3447else
3448  CC="$ac_cv_prog_CC"
3449fi
3450
3451if test -z "$CC"; then
3452          if test -n "$ac_tool_prefix"; then
3453    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3454set dummy ${ac_tool_prefix}cc; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if ${ac_cv_prog_CC+:} false; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  if test -n "$CC"; then
3461  ac_cv_prog_CC="$CC" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470    ac_cv_prog_CC="${ac_tool_prefix}cc"
3471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475  done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483$as_echo "$CC" >&6; }
3484else
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489
3490  fi
3491fi
3492if test -z "$CC"; then
3493  # Extract the first word of "cc", so it can be a program name with args.
3494set dummy cc; ac_word=$2
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496$as_echo_n "checking for $ac_word... " >&6; }
3497if ${ac_cv_prog_CC+:} false; then :
3498  $as_echo_n "(cached) " >&6
3499else
3500  if test -n "$CC"; then
3501  ac_cv_prog_CC="$CC" # Let the user override the test.
3502else
3503  ac_prog_rejected=no
3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507  IFS=$as_save_IFS
3508  test -z "$as_dir" && as_dir=.
3509    for ac_exec_ext in '' $ac_executable_extensions; do
3510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3512       ac_prog_rejected=yes
3513       continue
3514     fi
3515    ac_cv_prog_CC="cc"
3516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517    break 2
3518  fi
3519done
3520  done
3521IFS=$as_save_IFS
3522
3523if test $ac_prog_rejected = yes; then
3524  # We found a bogon in the path, so make sure we never use it.
3525  set dummy $ac_cv_prog_CC
3526  shift
3527  if test $# != 0; then
3528    # We chose a different compiler from the bogus one.
3529    # However, it has the same basename, so the bogon will be chosen
3530    # first if we set CC to just the basename; use the full file name.
3531    shift
3532    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3533  fi
3534fi
3535fi
3536fi
3537CC=$ac_cv_prog_CC
3538if test -n "$CC"; then
3539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540$as_echo "$CC" >&6; }
3541else
3542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543$as_echo "no" >&6; }
3544fi
3545
3546
3547fi
3548if test -z "$CC"; then
3549  if test -n "$ac_tool_prefix"; then
3550  for ac_prog in cl.exe
3551  do
3552    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3553set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555$as_echo_n "checking for $ac_word... " >&6; }
3556if ${ac_cv_prog_CC+:} false; then :
3557  $as_echo_n "(cached) " >&6
3558else
3559  if test -n "$CC"; then
3560  ac_cv_prog_CC="$CC" # Let the user override the test.
3561else
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565  IFS=$as_save_IFS
3566  test -z "$as_dir" && as_dir=.
3567    for ac_exec_ext in '' $ac_executable_extensions; do
3568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571    break 2
3572  fi
3573done
3574  done
3575IFS=$as_save_IFS
3576
3577fi
3578fi
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582$as_echo "$CC" >&6; }
3583else
3584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585$as_echo "no" >&6; }
3586fi
3587
3588
3589    test -n "$CC" && break
3590  done
3591fi
3592if test -z "$CC"; then
3593  ac_ct_CC=$CC
3594  for ac_prog in cl.exe
3595do
3596  # Extract the first word of "$ac_prog", so it can be a program name with args.
3597set dummy $ac_prog; ac_word=$2
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599$as_echo_n "checking for $ac_word... " >&6; }
3600if ${ac_cv_prog_ac_ct_CC+:} false; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603  if test -n "$ac_ct_CC"; then
3604  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605else
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609  IFS=$as_save_IFS
3610  test -z "$as_dir" && as_dir=.
3611    for ac_exec_ext in '' $ac_executable_extensions; do
3612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613    ac_cv_prog_ac_ct_CC="$ac_prog"
3614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615    break 2
3616  fi
3617done
3618  done
3619IFS=$as_save_IFS
3620
3621fi
3622fi
3623ac_ct_CC=$ac_cv_prog_ac_ct_CC
3624if test -n "$ac_ct_CC"; then
3625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3626$as_echo "$ac_ct_CC" >&6; }
3627else
3628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629$as_echo "no" >&6; }
3630fi
3631
3632
3633  test -n "$ac_ct_CC" && break
3634done
3635
3636  if test "x$ac_ct_CC" = x; then
3637    CC=""
3638  else
3639    case $cross_compiling:$ac_tool_warned in
3640yes:)
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3643ac_tool_warned=yes ;;
3644esac
3645    CC=$ac_ct_CC
3646  fi
3647fi
3648
3649fi
3650
3651
3652test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654as_fn_error $? "no acceptable C compiler found in \$PATH
3655See \`config.log' for more details" "$LINENO" 5; }
3656
3657# Provide some information about the compiler.
3658$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3659set X $ac_compile
3660ac_compiler=$2
3661for ac_option in --version -v -V -qversion; do
3662  { { ac_try="$ac_compiler $ac_option >&5"
3663case "(($ac_try" in
3664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665  *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3670  ac_status=$?
3671  if test -s conftest.err; then
3672    sed '10a\
3673... rest of stderr output deleted ...
3674         10q' conftest.err >conftest.er1
3675    cat conftest.er1 >&5
3676  fi
3677  rm -f conftest.er1 conftest.err
3678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679  test $ac_status = 0; }
3680done
3681
3682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693ac_clean_files_save=$ac_clean_files
3694ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3695# Try to create an executable without -o first, disregard a.out.
3696# It will help us diagnose broken compilers, and finding out an intuition
3697# of exeext.
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3699$as_echo_n "checking whether the C compiler works... " >&6; }
3700ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3701
3702# The possible output files:
3703ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3704
3705ac_rmfiles=
3706for ac_file in $ac_files
3707do
3708  case $ac_file in
3709    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3710    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3711  esac
3712done
3713rm -f $ac_rmfiles
3714
3715if { { ac_try="$ac_link_default"
3716case "(($ac_try" in
3717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718  *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722  (eval "$ac_link_default") 2>&5
3723  ac_status=$?
3724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725  test $ac_status = 0; }; then :
3726  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3727# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3728# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3729# so that the user can short-circuit this test for compilers unknown to
3730# Autoconf.
3731for ac_file in $ac_files ''
3732do
3733  test -f "$ac_file" || continue
3734  case $ac_file in
3735    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3736	;;
3737    [ab].out )
3738	# We found the default executable, but exeext='' is most
3739	# certainly right.
3740	break;;
3741    *.* )
3742	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3743	then :; else
3744	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3745	fi
3746	# We set ac_cv_exeext here because the later test for it is not
3747	# safe: cross compilers may not add the suffix if given an `-o'
3748	# argument, so we may need to know it at that point already.
3749	# Even if this section looks crufty: it has the advantage of
3750	# actually working.
3751	break;;
3752    * )
3753	break;;
3754  esac
3755done
3756test "$ac_cv_exeext" = no && ac_cv_exeext=
3757
3758else
3759  ac_file=''
3760fi
3761if test -z "$ac_file"; then :
3762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763$as_echo "no" >&6; }
3764$as_echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769as_fn_error 77 "C compiler cannot create executables
3770See \`config.log' for more details" "$LINENO" 5; }
3771else
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773$as_echo "yes" >&6; }
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3776$as_echo_n "checking for C compiler default output file name... " >&6; }
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3778$as_echo "$ac_file" >&6; }
3779ac_exeext=$ac_cv_exeext
3780
3781rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3782ac_clean_files=$ac_clean_files_save
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3784$as_echo_n "checking for suffix of executables... " >&6; }
3785if { { ac_try="$ac_link"
3786case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792  (eval "$ac_link") 2>&5
3793  ac_status=$?
3794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }; then :
3796  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3797# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3798# work properly (i.e., refer to `conftest.exe'), while it won't with
3799# `rm'.
3800for ac_file in conftest.exe conftest conftest.*; do
3801  test -f "$ac_file" || continue
3802  case $ac_file in
3803    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805	  break;;
3806    * ) break;;
3807  esac
3808done
3809else
3810  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3813See \`config.log' for more details" "$LINENO" 5; }
3814fi
3815rm -f conftest conftest$ac_cv_exeext
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3817$as_echo "$ac_cv_exeext" >&6; }
3818
3819rm -f conftest.$ac_ext
3820EXEEXT=$ac_cv_exeext
3821ac_exeext=$EXEEXT
3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824#include <stdio.h>
3825int
3826main ()
3827{
3828FILE *f = fopen ("conftest.out", "w");
3829 return ferror (f) || fclose (f) != 0;
3830
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835ac_clean_files="$ac_clean_files conftest.out"
3836# Check that the compiler produces executables we can run.  If not, either
3837# the compiler is broken, or we cross compile.
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3839$as_echo_n "checking whether we are cross compiling... " >&6; }
3840if test "$cross_compiling" != yes; then
3841  { { ac_try="$ac_link"
3842case "(($ac_try" in
3843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844  *) ac_try_echo=$ac_try;;
3845esac
3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847$as_echo "$ac_try_echo"; } >&5
3848  (eval "$ac_link") 2>&5
3849  ac_status=$?
3850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851  test $ac_status = 0; }
3852  if { ac_try='./conftest$ac_cv_exeext'
3853  { { case "(($ac_try" in
3854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855  *) ac_try_echo=$ac_try;;
3856esac
3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858$as_echo "$ac_try_echo"; } >&5
3859  (eval "$ac_try") 2>&5
3860  ac_status=$?
3861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862  test $ac_status = 0; }; }; then
3863    cross_compiling=no
3864  else
3865    if test "$cross_compiling" = maybe; then
3866	cross_compiling=yes
3867    else
3868	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870as_fn_error $? "cannot run C compiled programs.
3871If you meant to cross compile, use \`--host'.
3872See \`config.log' for more details" "$LINENO" 5; }
3873    fi
3874  fi
3875fi
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3877$as_echo "$cross_compiling" >&6; }
3878
3879rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3880ac_clean_files=$ac_clean_files_save
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3882$as_echo_n "checking for suffix of object files... " >&6; }
3883if ${ac_cv_objext+:} false; then :
3884  $as_echo_n "(cached) " >&6
3885else
3886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888
3889int
3890main ()
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897rm -f conftest.o conftest.obj
3898if { { ac_try="$ac_compile"
3899case "(($ac_try" in
3900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901  *) ac_try_echo=$ac_try;;
3902esac
3903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904$as_echo "$ac_try_echo"; } >&5
3905  (eval "$ac_compile") 2>&5
3906  ac_status=$?
3907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908  test $ac_status = 0; }; then :
3909  for ac_file in conftest.o conftest.obj conftest.*; do
3910  test -f "$ac_file" || continue;
3911  case $ac_file in
3912    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3913    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3914       break;;
3915  esac
3916done
3917else
3918  $as_echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923as_fn_error $? "cannot compute suffix of object files: cannot compile
3924See \`config.log' for more details" "$LINENO" 5; }
3925fi
3926rm -f conftest.$ac_cv_objext conftest.$ac_ext
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3929$as_echo "$ac_cv_objext" >&6; }
3930OBJEXT=$ac_cv_objext
3931ac_objext=$OBJEXT
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3933$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3934if ${ac_cv_c_compiler_gnu+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h.  */
3939
3940int
3941main ()
3942{
3943#ifndef __GNUC__
3944       choke me
3945#endif
3946
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951if ac_fn_c_try_compile "$LINENO"; then :
3952  ac_compiler_gnu=yes
3953else
3954  ac_compiler_gnu=no
3955fi
3956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957ac_cv_c_compiler_gnu=$ac_compiler_gnu
3958
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3961$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3962if test $ac_compiler_gnu = yes; then
3963  GCC=yes
3964else
3965  GCC=
3966fi
3967ac_test_CFLAGS=${CFLAGS+set}
3968ac_save_CFLAGS=$CFLAGS
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3970$as_echo_n "checking whether $CC accepts -g... " >&6; }
3971if ${ac_cv_prog_cc_g+:} false; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974  ac_save_c_werror_flag=$ac_c_werror_flag
3975   ac_c_werror_flag=yes
3976   ac_cv_prog_cc_g=no
3977   CFLAGS="-g"
3978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980
3981int
3982main ()
3983{
3984
3985  ;
3986  return 0;
3987}
3988_ACEOF
3989if ac_fn_c_try_compile "$LINENO"; then :
3990  ac_cv_prog_cc_g=yes
3991else
3992  CFLAGS=""
3993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004if ac_fn_c_try_compile "$LINENO"; then :
4005
4006else
4007  ac_c_werror_flag=$ac_save_c_werror_flag
4008	 CFLAGS="-g"
4009	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010/* end confdefs.h.  */
4011
4012int
4013main ()
4014{
4015
4016  ;
4017  return 0;
4018}
4019_ACEOF
4020if ac_fn_c_try_compile "$LINENO"; then :
4021  ac_cv_prog_cc_g=yes
4022fi
4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028   ac_c_werror_flag=$ac_save_c_werror_flag
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4031$as_echo "$ac_cv_prog_cc_g" >&6; }
4032if test "$ac_test_CFLAGS" = set; then
4033  CFLAGS=$ac_save_CFLAGS
4034elif test $ac_cv_prog_cc_g = yes; then
4035  if test "$GCC" = yes; then
4036    CFLAGS="-g -O2"
4037  else
4038    CFLAGS="-g"
4039  fi
4040else
4041  if test "$GCC" = yes; then
4042    CFLAGS="-O2"
4043  else
4044    CFLAGS=
4045  fi
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4048$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4049if ${ac_cv_prog_cc_c89+:} false; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052  ac_cv_prog_cc_c89=no
4053ac_save_CC=$CC
4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056#include <stdarg.h>
4057#include <stdio.h>
4058struct stat;
4059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4060struct buf { int x; };
4061FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062static char *e (p, i)
4063     char **p;
4064     int i;
4065{
4066  return p[i];
4067}
4068static char *f (char * (*g) (char **, int), char **p, ...)
4069{
4070  char *s;
4071  va_list v;
4072  va_start (v,p);
4073  s = g (p, va_arg (v,int));
4074  va_end (v);
4075  return s;
4076}
4077
4078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4079   function prototypes and stuff, but not '\xHH' hex character constants.
4080   These don't provoke an error unfortunately, instead are silently treated
4081   as 'x'.  The following induces an error, until -std is added to get
4082   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4083   array size at least.  It's necessary to write '\x00'==0 to get something
4084   that's true only with -std.  */
4085int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086
4087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088   inside strings and character constants.  */
4089#define FOO(x) 'x'
4090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091
4092int test (int i, double x);
4093struct s1 {int (*f) (int a);};
4094struct s2 {int (*f) (double a);};
4095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4096int argc;
4097char **argv;
4098int
4099main ()
4100{
4101return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108do
4109  CC="$ac_save_CC $ac_arg"
4110  if ac_fn_c_try_compile "$LINENO"; then :
4111  ac_cv_prog_cc_c89=$ac_arg
4112fi
4113rm -f core conftest.err conftest.$ac_objext
4114  test "x$ac_cv_prog_cc_c89" != "xno" && break
4115done
4116rm -f conftest.$ac_ext
4117CC=$ac_save_CC
4118
4119fi
4120# AC_CACHE_VAL
4121case "x$ac_cv_prog_cc_c89" in
4122  x)
4123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4124$as_echo "none needed" >&6; } ;;
4125  xno)
4126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4127$as_echo "unsupported" >&6; } ;;
4128  *)
4129    CC="$CC $ac_cv_prog_cc_c89"
4130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4132esac
4133if test "x$ac_cv_prog_cc_c89" != xno; then :
4134
4135fi
4136
4137ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4149$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4150if ${am_cv_prog_cc_c_o+:} false; then :
4151  $as_echo_n "(cached) " >&6
4152else
4153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h.  */
4155
4156int
4157main ()
4158{
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164  # Make sure it works both with $CC and with simple cc.
4165  # Following AC_PROG_CC_C_O, we do the test twice because some
4166  # compilers refuse to overwrite an existing .o file with -o,
4167  # though they will create one.
4168  am_cv_prog_cc_c_o=yes
4169  for am_i in 1 2; do
4170    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4171   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); } \
4175         && test -f conftest2.$ac_objext; then
4176      : OK
4177    else
4178      am_cv_prog_cc_c_o=no
4179      break
4180    fi
4181  done
4182  rm -f core conftest*
4183  unset am_i
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4186$as_echo "$am_cv_prog_cc_c_o" >&6; }
4187if test "$am_cv_prog_cc_c_o" != yes; then
4188   # Losing compiler, so override with the script.
4189   # FIXME: It is wrong to rewrite CC.
4190   # But if we don't then we get into trouble of one sort or another.
4191   # A longer-term fix would be to have automake use am__CC in this case,
4192   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4193   CC="$am_aux_dir/compile $CC"
4194fi
4195ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202depcc="$CC"   am_compiler_list=
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4205$as_echo_n "checking dependency style of $depcc... " >&6; }
4206if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4210  # We make a subdir and do the tests there.  Otherwise we can end up
4211  # making bogus files that we don't know about and never remove.  For
4212  # instance it was reported that on HP-UX the gcc test will end up
4213  # making a dummy file named 'D' -- because '-MD' means "put the output
4214  # in D".
4215  rm -rf conftest.dir
4216  mkdir conftest.dir
4217  # Copy depcomp to subdir because otherwise we won't find it if we're
4218  # using a relative directory.
4219  cp "$am_depcomp" conftest.dir
4220  cd conftest.dir
4221  # We will build objects and dependencies in a subdirectory because
4222  # it helps to detect inapplicable dependency modes.  For instance
4223  # both Tru64's cc and ICC support -MD to output dependencies as a
4224  # side effect of compilation, but ICC will put the dependencies in
4225  # the current directory while Tru64 will put them in the object
4226  # directory.
4227  mkdir sub
4228
4229  am_cv_CC_dependencies_compiler_type=none
4230  if test "$am_compiler_list" = ""; then
4231     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4232  fi
4233  am__universal=false
4234  case " $depcc " in #(
4235     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4236     esac
4237
4238  for depmode in $am_compiler_list; do
4239    # Setup a source with many dependencies, because some compilers
4240    # like to wrap large dependency lists on column 80 (with \), and
4241    # we should not choose a depcomp mode which is confused by this.
4242    #
4243    # We need to recreate these files for each test, as the compiler may
4244    # overwrite some of them when testing with obscure command lines.
4245    # This happens at least with the AIX C compiler.
4246    : > sub/conftest.c
4247    for i in 1 2 3 4 5 6; do
4248      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4249      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4250      # Solaris 10 /bin/sh.
4251      echo '/* dummy */' > sub/conftst$i.h
4252    done
4253    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4254
4255    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4256    # mode.  It turns out that the SunPro C++ compiler does not properly
4257    # handle '-M -o', and we need to detect this.  Also, some Intel
4258    # versions had trouble with output in subdirs.
4259    am__obj=sub/conftest.${OBJEXT-o}
4260    am__minus_obj="-o $am__obj"
4261    case $depmode in
4262    gcc)
4263      # This depmode causes a compiler race in universal mode.
4264      test "$am__universal" = false || continue
4265      ;;
4266    nosideeffect)
4267      # After this tag, mechanisms are not by side-effect, so they'll
4268      # only be used when explicitly requested.
4269      if test "x$enable_dependency_tracking" = xyes; then
4270	continue
4271      else
4272	break
4273      fi
4274      ;;
4275    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4276      # This compiler won't grok '-c -o', but also, the minuso test has
4277      # not run yet.  These depmodes are late enough in the game, and
4278      # so weak that their functioning should not be impacted.
4279      am__obj=conftest.${OBJEXT-o}
4280      am__minus_obj=
4281      ;;
4282    none) break ;;
4283    esac
4284    if depmode=$depmode \
4285       source=sub/conftest.c object=$am__obj \
4286       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4287       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4288         >/dev/null 2>conftest.err &&
4289       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4290       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4291       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4292       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4293      # icc doesn't choke on unknown options, it will just issue warnings
4294      # or remarks (even with -Werror).  So we grep stderr for any message
4295      # that says an option was ignored or not supported.
4296      # When given -MP, icc 7.0 and 7.1 complain thusly:
4297      #   icc: Command line warning: ignoring option '-M'; no argument required
4298      # The diagnosis changed in icc 8.0:
4299      #   icc: Command line remark: option '-MP' not supported
4300      if (grep 'ignoring option' conftest.err ||
4301          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4302        am_cv_CC_dependencies_compiler_type=$depmode
4303        break
4304      fi
4305    fi
4306  done
4307
4308  cd ..
4309  rm -rf conftest.dir
4310else
4311  am_cv_CC_dependencies_compiler_type=none
4312fi
4313
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4316$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4318
4319 if
4320  test "x$enable_dependency_tracking" != xno \
4321  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4322  am__fastdepCC_TRUE=
4323  am__fastdepCC_FALSE='#'
4324else
4325  am__fastdepCC_TRUE='#'
4326  am__fastdepCC_FALSE=
4327fi
4328
4329
4330
4331ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4337$as_echo_n "checking how to run the C preprocessor... " >&6; }
4338# On Suns, sometimes $CPP names a directory.
4339if test -n "$CPP" && test -d "$CPP"; then
4340  CPP=
4341fi
4342if test -z "$CPP"; then
4343  if ${ac_cv_prog_CPP+:} false; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346      # Double quotes because CPP needs to be expanded
4347    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4348    do
4349      ac_preproc_ok=false
4350for ac_c_preproc_warn_flag in '' yes
4351do
4352  # Use a header file that comes with gcc, so configuring glibc
4353  # with a fresh cross-compiler works.
4354  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4355  # <limits.h> exists even on freestanding compilers.
4356  # On the NeXT, cc -E runs the code through the compiler's parser,
4357  # not just through cpp. "Syntax error" is here to catch this case.
4358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h.  */
4360#ifdef __STDC__
4361# include <limits.h>
4362#else
4363# include <assert.h>
4364#endif
4365		     Syntax error
4366_ACEOF
4367if ac_fn_c_try_cpp "$LINENO"; then :
4368
4369else
4370  # Broken: fails on valid input.
4371continue
4372fi
4373rm -f conftest.err conftest.i conftest.$ac_ext
4374
4375  # OK, works on sane cases.  Now check whether nonexistent headers
4376  # can be detected and how.
4377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378/* end confdefs.h.  */
4379#include <ac_nonexistent.h>
4380_ACEOF
4381if ac_fn_c_try_cpp "$LINENO"; then :
4382  # Broken: success on invalid input.
4383continue
4384else
4385  # Passes both tests.
4386ac_preproc_ok=:
4387break
4388fi
4389rm -f conftest.err conftest.i conftest.$ac_ext
4390
4391done
4392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393rm -f conftest.i conftest.err conftest.$ac_ext
4394if $ac_preproc_ok; then :
4395  break
4396fi
4397
4398    done
4399    ac_cv_prog_CPP=$CPP
4400
4401fi
4402  CPP=$ac_cv_prog_CPP
4403else
4404  ac_cv_prog_CPP=$CPP
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4407$as_echo "$CPP" >&6; }
4408ac_preproc_ok=false
4409for ac_c_preproc_warn_flag in '' yes
4410do
4411  # Use a header file that comes with gcc, so configuring glibc
4412  # with a fresh cross-compiler works.
4413  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414  # <limits.h> exists even on freestanding compilers.
4415  # On the NeXT, cc -E runs the code through the compiler's parser,
4416  # not just through cpp. "Syntax error" is here to catch this case.
4417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418/* end confdefs.h.  */
4419#ifdef __STDC__
4420# include <limits.h>
4421#else
4422# include <assert.h>
4423#endif
4424		     Syntax error
4425_ACEOF
4426if ac_fn_c_try_cpp "$LINENO"; then :
4427
4428else
4429  # Broken: fails on valid input.
4430continue
4431fi
4432rm -f conftest.err conftest.i conftest.$ac_ext
4433
4434  # OK, works on sane cases.  Now check whether nonexistent headers
4435  # can be detected and how.
4436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h.  */
4438#include <ac_nonexistent.h>
4439_ACEOF
4440if ac_fn_c_try_cpp "$LINENO"; then :
4441  # Broken: success on invalid input.
4442continue
4443else
4444  # Passes both tests.
4445ac_preproc_ok=:
4446break
4447fi
4448rm -f conftest.err conftest.i conftest.$ac_ext
4449
4450done
4451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4452rm -f conftest.i conftest.err conftest.$ac_ext
4453if $ac_preproc_ok; then :
4454
4455else
4456  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4459See \`config.log' for more details" "$LINENO" 5; }
4460fi
4461
4462ac_ext=c
4463ac_cpp='$CPP $CPPFLAGS'
4464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4470$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4471if ${ac_cv_path_GREP+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  if test -z "$GREP"; then
4475  ac_path_GREP_found=false
4476  # Loop through the user's path and test for each of PROGNAME-LIST
4477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479do
4480  IFS=$as_save_IFS
4481  test -z "$as_dir" && as_dir=.
4482    for ac_prog in grep ggrep; do
4483    for ac_exec_ext in '' $ac_executable_extensions; do
4484      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4485      as_fn_executable_p "$ac_path_GREP" || continue
4486# Check for GNU ac_path_GREP and select it if it is found.
4487  # Check for GNU $ac_path_GREP
4488case `"$ac_path_GREP" --version 2>&1` in
4489*GNU*)
4490  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4491*)
4492  ac_count=0
4493  $as_echo_n 0123456789 >"conftest.in"
4494  while :
4495  do
4496    cat "conftest.in" "conftest.in" >"conftest.tmp"
4497    mv "conftest.tmp" "conftest.in"
4498    cp "conftest.in" "conftest.nl"
4499    $as_echo 'GREP' >> "conftest.nl"
4500    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502    as_fn_arith $ac_count + 1 && ac_count=$as_val
4503    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4504      # Best one so far, save it but keep looking for a better one
4505      ac_cv_path_GREP="$ac_path_GREP"
4506      ac_path_GREP_max=$ac_count
4507    fi
4508    # 10*(2^10) chars as input seems more than enough
4509    test $ac_count -gt 10 && break
4510  done
4511  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512esac
4513
4514      $ac_path_GREP_found && break 3
4515    done
4516  done
4517  done
4518IFS=$as_save_IFS
4519  if test -z "$ac_cv_path_GREP"; then
4520    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4521  fi
4522else
4523  ac_cv_path_GREP=$GREP
4524fi
4525
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4528$as_echo "$ac_cv_path_GREP" >&6; }
4529 GREP="$ac_cv_path_GREP"
4530
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4533$as_echo_n "checking for egrep... " >&6; }
4534if ${ac_cv_path_EGREP+:} false; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4538   then ac_cv_path_EGREP="$GREP -E"
4539   else
4540     if test -z "$EGREP"; then
4541  ac_path_EGREP_found=false
4542  # Loop through the user's path and test for each of PROGNAME-LIST
4543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4545do
4546  IFS=$as_save_IFS
4547  test -z "$as_dir" && as_dir=.
4548    for ac_prog in egrep; do
4549    for ac_exec_ext in '' $ac_executable_extensions; do
4550      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4551      as_fn_executable_p "$ac_path_EGREP" || continue
4552# Check for GNU ac_path_EGREP and select it if it is found.
4553  # Check for GNU $ac_path_EGREP
4554case `"$ac_path_EGREP" --version 2>&1` in
4555*GNU*)
4556  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4557*)
4558  ac_count=0
4559  $as_echo_n 0123456789 >"conftest.in"
4560  while :
4561  do
4562    cat "conftest.in" "conftest.in" >"conftest.tmp"
4563    mv "conftest.tmp" "conftest.in"
4564    cp "conftest.in" "conftest.nl"
4565    $as_echo 'EGREP' >> "conftest.nl"
4566    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4567    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4568    as_fn_arith $ac_count + 1 && ac_count=$as_val
4569    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4570      # Best one so far, save it but keep looking for a better one
4571      ac_cv_path_EGREP="$ac_path_EGREP"
4572      ac_path_EGREP_max=$ac_count
4573    fi
4574    # 10*(2^10) chars as input seems more than enough
4575    test $ac_count -gt 10 && break
4576  done
4577  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578esac
4579
4580      $ac_path_EGREP_found && break 3
4581    done
4582  done
4583  done
4584IFS=$as_save_IFS
4585  if test -z "$ac_cv_path_EGREP"; then
4586    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4587  fi
4588else
4589  ac_cv_path_EGREP=$EGREP
4590fi
4591
4592   fi
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4595$as_echo "$ac_cv_path_EGREP" >&6; }
4596 EGREP="$ac_cv_path_EGREP"
4597
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4600$as_echo_n "checking for ANSI C header files... " >&6; }
4601if ${ac_cv_header_stdc+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h.  */
4606#include <stdlib.h>
4607#include <stdarg.h>
4608#include <string.h>
4609#include <float.h>
4610
4611int
4612main ()
4613{
4614
4615  ;
4616  return 0;
4617}
4618_ACEOF
4619if ac_fn_c_try_compile "$LINENO"; then :
4620  ac_cv_header_stdc=yes
4621else
4622  ac_cv_header_stdc=no
4623fi
4624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625
4626if test $ac_cv_header_stdc = yes; then
4627  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h.  */
4630#include <string.h>
4631
4632_ACEOF
4633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634  $EGREP "memchr" >/dev/null 2>&1; then :
4635
4636else
4637  ac_cv_header_stdc=no
4638fi
4639rm -f conftest*
4640
4641fi
4642
4643if test $ac_cv_header_stdc = yes; then
4644  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h.  */
4647#include <stdlib.h>
4648
4649_ACEOF
4650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4651  $EGREP "free" >/dev/null 2>&1; then :
4652
4653else
4654  ac_cv_header_stdc=no
4655fi
4656rm -f conftest*
4657
4658fi
4659
4660if test $ac_cv_header_stdc = yes; then
4661  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4662  if test "$cross_compiling" = yes; then :
4663  :
4664else
4665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h.  */
4667#include <ctype.h>
4668#include <stdlib.h>
4669#if ((' ' & 0x0FF) == 0x020)
4670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4672#else
4673# define ISLOWER(c) \
4674		   (('a' <= (c) && (c) <= 'i') \
4675		     || ('j' <= (c) && (c) <= 'r') \
4676		     || ('s' <= (c) && (c) <= 'z'))
4677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4678#endif
4679
4680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4681int
4682main ()
4683{
4684  int i;
4685  for (i = 0; i < 256; i++)
4686    if (XOR (islower (i), ISLOWER (i))
4687	|| toupper (i) != TOUPPER (i))
4688      return 2;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_run "$LINENO"; then :
4693
4694else
4695  ac_cv_header_stdc=no
4696fi
4697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4698  conftest.$ac_objext conftest.beam conftest.$ac_ext
4699fi
4700
4701fi
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4704$as_echo "$ac_cv_header_stdc" >&6; }
4705if test $ac_cv_header_stdc = yes; then
4706
4707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4708
4709fi
4710
4711# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4713		  inttypes.h stdint.h unistd.h
4714do :
4715  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4716ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4717"
4718if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4719  cat >>confdefs.h <<_ACEOF
4720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4721_ACEOF
4722
4723fi
4724
4725done
4726
4727
4728
4729  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4730if test "x$ac_cv_header_minix_config_h" = xyes; then :
4731  MINIX=yes
4732else
4733  MINIX=
4734fi
4735
4736
4737  if test "$MINIX" = yes; then
4738
4739$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4740
4741
4742$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4743
4744
4745$as_echo "#define _MINIX 1" >>confdefs.h
4746
4747  fi
4748
4749
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4751$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4752if ${ac_cv_safe_to_define___extensions__+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h.  */
4757
4758#         define __EXTENSIONS__ 1
4759          $ac_includes_default
4760int
4761main ()
4762{
4763
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768if ac_fn_c_try_compile "$LINENO"; then :
4769  ac_cv_safe_to_define___extensions__=yes
4770else
4771  ac_cv_safe_to_define___extensions__=no
4772fi
4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4776$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4777  test $ac_cv_safe_to_define___extensions__ = yes &&
4778    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4779
4780  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4781
4782  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4783
4784  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4785
4786  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4787
4788
4789
4790
4791# Make sure we can run config.sub.
4792$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4793  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4794
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4796$as_echo_n "checking build system type... " >&6; }
4797if ${ac_cv_build+:} false; then :
4798  $as_echo_n "(cached) " >&6
4799else
4800  ac_build_alias=$build_alias
4801test "x$ac_build_alias" = x &&
4802  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4803test "x$ac_build_alias" = x &&
4804  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4805ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4806  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4807
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4810$as_echo "$ac_cv_build" >&6; }
4811case $ac_cv_build in
4812*-*-*) ;;
4813*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4814esac
4815build=$ac_cv_build
4816ac_save_IFS=$IFS; IFS='-'
4817set x $ac_cv_build
4818shift
4819build_cpu=$1
4820build_vendor=$2
4821shift; shift
4822# Remember, the first character of IFS is used to create $*,
4823# except with old shells:
4824build_os=$*
4825IFS=$ac_save_IFS
4826case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4827
4828
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4830$as_echo_n "checking host system type... " >&6; }
4831if ${ac_cv_host+:} false; then :
4832  $as_echo_n "(cached) " >&6
4833else
4834  if test "x$host_alias" = x; then
4835  ac_cv_host=$ac_cv_build
4836else
4837  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4838    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4839fi
4840
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4843$as_echo "$ac_cv_host" >&6; }
4844case $ac_cv_host in
4845*-*-*) ;;
4846*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4847esac
4848host=$ac_cv_host
4849ac_save_IFS=$IFS; IFS='-'
4850set x $ac_cv_host
4851shift
4852host_cpu=$1
4853host_vendor=$2
4854shift; shift
4855# Remember, the first character of IFS is used to create $*,
4856# except with old shells:
4857host_os=$*
4858IFS=$ac_save_IFS
4859case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4860
4861
4862
4863#case "$host_os" in
4864#
4865# osf5*)
4866#    CFLAGS="$CFLAGS -D_OSF_SOURCE"
4867#    ;;
4868#esac
4869
4870
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4873$as_echo_n "checking whether ln -s works... " >&6; }
4874LN_S=$as_ln_s
4875if test "$LN_S" = "ln -s"; then
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877$as_echo "yes" >&6; }
4878else
4879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4880$as_echo "no, using $LN_S" >&6; }
4881fi
4882
4883# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4884
4885# AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4886# versions
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4888$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4889if ${ac_cv_path_SED+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4893     for ac_i in 1 2 3 4 5 6 7; do
4894       ac_script="$ac_script$as_nl$ac_script"
4895     done
4896     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4897     { ac_script=; unset ac_script;}
4898     if test -z "$SED"; then
4899  ac_path_SED_found=false
4900  # Loop through the user's path and test for each of PROGNAME-LIST
4901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906    for ac_prog in sed gsed; do
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4909      as_fn_executable_p "$ac_path_SED" || continue
4910# Check for GNU ac_path_SED and select it if it is found.
4911  # Check for GNU $ac_path_SED
4912case `"$ac_path_SED" --version 2>&1` in
4913*GNU*)
4914  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915*)
4916  ac_count=0
4917  $as_echo_n 0123456789 >"conftest.in"
4918  while :
4919  do
4920    cat "conftest.in" "conftest.in" >"conftest.tmp"
4921    mv "conftest.tmp" "conftest.in"
4922    cp "conftest.in" "conftest.nl"
4923    $as_echo '' >> "conftest.nl"
4924    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926    as_fn_arith $ac_count + 1 && ac_count=$as_val
4927    if test $ac_count -gt ${ac_path_SED_max-0}; then
4928      # Best one so far, save it but keep looking for a better one
4929      ac_cv_path_SED="$ac_path_SED"
4930      ac_path_SED_max=$ac_count
4931    fi
4932    # 10*(2^10) chars as input seems more than enough
4933    test $ac_count -gt 10 && break
4934  done
4935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936esac
4937
4938      $ac_path_SED_found && break 3
4939    done
4940  done
4941  done
4942IFS=$as_save_IFS
4943  if test -z "$ac_cv_path_SED"; then
4944    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945  fi
4946else
4947  ac_cv_path_SED=$SED
4948fi
4949
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952$as_echo "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4954  rm -f conftest.sed
4955
4956
4957if test $ac_cv_c_compiler_gnu = yes; then
4958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4959$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4960if ${ac_cv_prog_gcc_traditional+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963    ac_pattern="Autoconf.*'x'"
4964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h.  */
4966#include <sgtty.h>
4967Autoconf TIOCGETP
4968_ACEOF
4969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4971  ac_cv_prog_gcc_traditional=yes
4972else
4973  ac_cv_prog_gcc_traditional=no
4974fi
4975rm -f conftest*
4976
4977
4978  if test $ac_cv_prog_gcc_traditional = no; then
4979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981#include <termio.h>
4982Autoconf TCGETA
4983_ACEOF
4984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4986  ac_cv_prog_gcc_traditional=yes
4987fi
4988rm -f conftest*
4989
4990  fi
4991fi
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4993$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4994  if test $ac_cv_prog_gcc_traditional = yes; then
4995    CC="$CC -traditional"
4996  fi
4997fi
4998
4999
5000# We need to test for at least gcc 2.95 here, because older versions don't
5001# have -fno-strict-aliasing
5002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004
5005int
5006main ()
5007{
5008
5009#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5010#error
5011#endif
5012  ;
5013  return 0;
5014}
5015_ACEOF
5016if ac_fn_c_try_compile "$LINENO"; then :
5017  have_gcc295=yes
5018else
5019  have_gcc295=no
5020fi
5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022
5023if test "$GCC" = "yes" ; then
5024        # Enable many gcc warnings by default...
5025        CFLAGS="$CFLAGS -Wall"
5026	# And disable the strict-aliasing optimization, since it breaks
5027	# our sockaddr-handling code in strange ways.
5028	if test x$have_gcc295 = xyes; then
5029		CFLAGS="$CFLAGS -fno-strict-aliasing"
5030	fi
5031fi
5032
5033# OS X Lion started deprecating the system openssl. Let's just disable
5034# all deprecation warnings on OS X; but do so only for gcc...
5035if test "$GCC" = "yes" ; then
5036	case "$host_os" in
5037	 darwin*)
5038	    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5039	    ;;
5040	esac
5041fi
5042
5043# Check whether --enable-gcc-warnings was given.
5044if test "${enable_gcc_warnings+set}" = set; then :
5045  enableval=$enable_gcc_warnings;
5046fi
5047
5048
5049# Check whether --enable-gcc-hardening was given.
5050if test "${enable_gcc_hardening+set}" = set; then :
5051  enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5052    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5053    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5054    CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5055fi
5056fi
5057
5058
5059# Check whether --enable-thread-support was given.
5060if test "${enable_thread_support+set}" = set; then :
5061  enableval=$enable_thread_support;
5062else
5063  enable_thread_support=yes
5064fi
5065
5066# Check whether --enable-malloc-replacement was given.
5067if test "${enable_malloc_replacement+set}" = set; then :
5068  enableval=$enable_malloc_replacement;
5069else
5070  enable_malloc_replacement=yes
5071fi
5072
5073# Check whether --enable-openssl was given.
5074if test "${enable_openssl+set}" = set; then :
5075  enableval=$enable_openssl;
5076else
5077  enable_openssl=yes
5078fi
5079
5080# Check whether --enable-debug-mode was given.
5081if test "${enable_debug_mode+set}" = set; then :
5082  enableval=$enable_debug_mode;
5083else
5084  enable_debug_mode=yes
5085fi
5086
5087# Check whether --enable-libevent-install was given.
5088if test "${enable_libevent_install+set}" = set; then :
5089  enableval=$enable_libevent_install;
5090else
5091  enable_libevent_install=yes
5092fi
5093
5094# Check whether --enable-libevent-regress was given.
5095if test "${enable_libevent_regress+set}" = set; then :
5096  enableval=$enable_libevent_regress;
5097else
5098  enable_libevent_regress=yes
5099fi
5100
5101# Check whether --enable-samples was given.
5102if test "${enable_samples+set}" = set; then :
5103  enableval=$enable_samples;
5104else
5105  enable_samples=yes
5106fi
5107
5108# Check whether --enable-function-sections was given.
5109if test "${enable_function_sections+set}" = set; then :
5110  enableval=$enable_function_sections;
5111else
5112  enable_function_sections=no
5113fi
5114
5115# Check whether --enable-verbose-debug was given.
5116if test "${enable_verbose_debug+set}" = set; then :
5117  enableval=$enable_verbose_debug;
5118else
5119  enable_verbose_debug=no
5120fi
5121
5122# Check whether --enable-clock-gettime was given.
5123if test "${enable_clock_gettime+set}" = set; then :
5124  enableval=$enable_clock_gettime;
5125else
5126  enable_clock_gettime=yes
5127fi
5128
5129
5130
5131case `pwd` in
5132  *\ * | *\	*)
5133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5134$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5135esac
5136
5137
5138
5139macro_version='2.4.6'
5140macro_revision='2.4.6'
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154ltmain=$ac_aux_dir/ltmain.sh
5155
5156# Backslashify metacharacters that are still active within
5157# double-quoted strings.
5158sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5159
5160# Same as above, but do not quote variable references.
5161double_quote_subst='s/\(["`\\]\)/\\\1/g'
5162
5163# Sed substitution to delay expansion of an escaped shell variable in a
5164# double_quote_subst'ed string.
5165delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5166
5167# Sed substitution to delay expansion of an escaped single quote.
5168delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5169
5170# Sed substitution to avoid accidental globbing in evaled expressions
5171no_glob_subst='s/\*/\\\*/g'
5172
5173ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5174ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5175ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5178$as_echo_n "checking how to print strings... " >&6; }
5179# Test print first, because it will be a builtin if present.
5180if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5181   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5182  ECHO='print -r --'
5183elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5184  ECHO='printf %s\n'
5185else
5186  # Use this function as a fallback that always works.
5187  func_fallback_echo ()
5188  {
5189    eval 'cat <<_LTECHO_EOF
5190$1
5191_LTECHO_EOF'
5192  }
5193  ECHO='func_fallback_echo'
5194fi
5195
5196# func_echo_all arg...
5197# Invoke $ECHO with all args, space-separated.
5198func_echo_all ()
5199{
5200    $ECHO ""
5201}
5202
5203case $ECHO in
5204  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5205$as_echo "printf" >&6; } ;;
5206  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5207$as_echo "print -r" >&6; } ;;
5208  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5209$as_echo "cat" >&6; } ;;
5210esac
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5226$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5227if ${ac_cv_path_SED+:} false; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5231     for ac_i in 1 2 3 4 5 6 7; do
5232       ac_script="$ac_script$as_nl$ac_script"
5233     done
5234     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5235     { ac_script=; unset ac_script;}
5236     if test -z "$SED"; then
5237  ac_path_SED_found=false
5238  # Loop through the user's path and test for each of PROGNAME-LIST
5239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH
5241do
5242  IFS=$as_save_IFS
5243  test -z "$as_dir" && as_dir=.
5244    for ac_prog in sed gsed; do
5245    for ac_exec_ext in '' $ac_executable_extensions; do
5246      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5247      as_fn_executable_p "$ac_path_SED" || continue
5248# Check for GNU ac_path_SED and select it if it is found.
5249  # Check for GNU $ac_path_SED
5250case `"$ac_path_SED" --version 2>&1` in
5251*GNU*)
5252  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5253*)
5254  ac_count=0
5255  $as_echo_n 0123456789 >"conftest.in"
5256  while :
5257  do
5258    cat "conftest.in" "conftest.in" >"conftest.tmp"
5259    mv "conftest.tmp" "conftest.in"
5260    cp "conftest.in" "conftest.nl"
5261    $as_echo '' >> "conftest.nl"
5262    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264    as_fn_arith $ac_count + 1 && ac_count=$as_val
5265    if test $ac_count -gt ${ac_path_SED_max-0}; then
5266      # Best one so far, save it but keep looking for a better one
5267      ac_cv_path_SED="$ac_path_SED"
5268      ac_path_SED_max=$ac_count
5269    fi
5270    # 10*(2^10) chars as input seems more than enough
5271    test $ac_count -gt 10 && break
5272  done
5273  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274esac
5275
5276      $ac_path_SED_found && break 3
5277    done
5278  done
5279  done
5280IFS=$as_save_IFS
5281  if test -z "$ac_cv_path_SED"; then
5282    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5283  fi
5284else
5285  ac_cv_path_SED=$SED
5286fi
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5290$as_echo "$ac_cv_path_SED" >&6; }
5291 SED="$ac_cv_path_SED"
5292  rm -f conftest.sed
5293
5294test -z "$SED" && SED=sed
5295Xsed="$SED -e 1s/^X//"
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5308$as_echo_n "checking for fgrep... " >&6; }
5309if ${ac_cv_path_FGREP+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5313   then ac_cv_path_FGREP="$GREP -F"
5314   else
5315     if test -z "$FGREP"; then
5316  ac_path_FGREP_found=false
5317  # Loop through the user's path and test for each of PROGNAME-LIST
5318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320do
5321  IFS=$as_save_IFS
5322  test -z "$as_dir" && as_dir=.
5323    for ac_prog in fgrep; do
5324    for ac_exec_ext in '' $ac_executable_extensions; do
5325      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5326      as_fn_executable_p "$ac_path_FGREP" || continue
5327# Check for GNU ac_path_FGREP and select it if it is found.
5328  # Check for GNU $ac_path_FGREP
5329case `"$ac_path_FGREP" --version 2>&1` in
5330*GNU*)
5331  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5332*)
5333  ac_count=0
5334  $as_echo_n 0123456789 >"conftest.in"
5335  while :
5336  do
5337    cat "conftest.in" "conftest.in" >"conftest.tmp"
5338    mv "conftest.tmp" "conftest.in"
5339    cp "conftest.in" "conftest.nl"
5340    $as_echo 'FGREP' >> "conftest.nl"
5341    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343    as_fn_arith $ac_count + 1 && ac_count=$as_val
5344    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5345      # Best one so far, save it but keep looking for a better one
5346      ac_cv_path_FGREP="$ac_path_FGREP"
5347      ac_path_FGREP_max=$ac_count
5348    fi
5349    # 10*(2^10) chars as input seems more than enough
5350    test $ac_count -gt 10 && break
5351  done
5352  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353esac
5354
5355      $ac_path_FGREP_found && break 3
5356    done
5357  done
5358  done
5359IFS=$as_save_IFS
5360  if test -z "$ac_cv_path_FGREP"; then
5361    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5362  fi
5363else
5364  ac_cv_path_FGREP=$FGREP
5365fi
5366
5367   fi
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5370$as_echo "$ac_cv_path_FGREP" >&6; }
5371 FGREP="$ac_cv_path_FGREP"
5372
5373
5374test -z "$GREP" && GREP=grep
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394# Check whether --with-gnu-ld was given.
5395if test "${with_gnu_ld+set}" = set; then :
5396  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5397else
5398  with_gnu_ld=no
5399fi
5400
5401ac_prog=ld
5402if test yes = "$GCC"; then
5403  # Check if gcc -print-prog-name=ld gives a path.
5404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5405$as_echo_n "checking for ld used by $CC... " >&6; }
5406  case $host in
5407  *-*-mingw*)
5408    # gcc leaves a trailing carriage return, which upsets mingw
5409    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5410  *)
5411    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5412  esac
5413  case $ac_prog in
5414    # Accept absolute paths.
5415    [\\/]* | ?:[\\/]*)
5416      re_direlt='/[^/][^/]*/\.\./'
5417      # Canonicalize the pathname of ld
5418      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5419      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5420	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5421      done
5422      test -z "$LD" && LD=$ac_prog
5423      ;;
5424  "")
5425    # If it fails, then pretend we aren't using GCC.
5426    ac_prog=ld
5427    ;;
5428  *)
5429    # If it is relative, then search for the first ld in PATH.
5430    with_gnu_ld=unknown
5431    ;;
5432  esac
5433elif test yes = "$with_gnu_ld"; then
5434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5435$as_echo_n "checking for GNU ld... " >&6; }
5436else
5437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5438$as_echo_n "checking for non-GNU ld... " >&6; }
5439fi
5440if ${lt_cv_path_LD+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  if test -z "$LD"; then
5444  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5445  for ac_dir in $PATH; do
5446    IFS=$lt_save_ifs
5447    test -z "$ac_dir" && ac_dir=.
5448    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5449      lt_cv_path_LD=$ac_dir/$ac_prog
5450      # Check to see if the program is GNU ld.  I'd rather use --version,
5451      # but apparently some variants of GNU ld only accept -v.
5452      # Break only if it was the GNU/non-GNU ld that we prefer.
5453      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5454      *GNU* | *'with BFD'*)
5455	test no != "$with_gnu_ld" && break
5456	;;
5457      *)
5458	test yes != "$with_gnu_ld" && break
5459	;;
5460      esac
5461    fi
5462  done
5463  IFS=$lt_save_ifs
5464else
5465  lt_cv_path_LD=$LD # Let the user override the test with a path.
5466fi
5467fi
5468
5469LD=$lt_cv_path_LD
5470if test -n "$LD"; then
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5472$as_echo "$LD" >&6; }
5473else
5474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5479$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5480if ${lt_cv_prog_gnu_ld+:} false; then :
5481  $as_echo_n "(cached) " >&6
5482else
5483  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5484case `$LD -v 2>&1 </dev/null` in
5485*GNU* | *'with BFD'*)
5486  lt_cv_prog_gnu_ld=yes
5487  ;;
5488*)
5489  lt_cv_prog_gnu_ld=no
5490  ;;
5491esac
5492fi
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5494$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5495with_gnu_ld=$lt_cv_prog_gnu_ld
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5506$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5507if ${lt_cv_path_NM+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  if test -n "$NM"; then
5511  # Let the user override the test.
5512  lt_cv_path_NM=$NM
5513else
5514  lt_nm_to_check=${ac_tool_prefix}nm
5515  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5516    lt_nm_to_check="$lt_nm_to_check nm"
5517  fi
5518  for lt_tmp_nm in $lt_nm_to_check; do
5519    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5520    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5521      IFS=$lt_save_ifs
5522      test -z "$ac_dir" && ac_dir=.
5523      tmp_nm=$ac_dir/$lt_tmp_nm
5524      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5525	# Check to see if the nm accepts a BSD-compat flag.
5526	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5527	#   nm: unknown option "B" ignored
5528	# Tru64's nm complains that /dev/null is an invalid object file
5529	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5530	case $build_os in
5531	mingw*) lt_bad_file=conftest.nm/nofile ;;
5532	*) lt_bad_file=/dev/null ;;
5533	esac
5534	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5535	*$lt_bad_file* | *'Invalid file or object type'*)
5536	  lt_cv_path_NM="$tmp_nm -B"
5537	  break 2
5538	  ;;
5539	*)
5540	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5541	  */dev/null*)
5542	    lt_cv_path_NM="$tmp_nm -p"
5543	    break 2
5544	    ;;
5545	  *)
5546	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5547	    continue # so that we can try to find one that supports BSD flags
5548	    ;;
5549	  esac
5550	  ;;
5551	esac
5552      fi
5553    done
5554    IFS=$lt_save_ifs
5555  done
5556  : ${lt_cv_path_NM=no}
5557fi
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5560$as_echo "$lt_cv_path_NM" >&6; }
5561if test no != "$lt_cv_path_NM"; then
5562  NM=$lt_cv_path_NM
5563else
5564  # Didn't find any BSD compatible name lister, look for dumpbin.
5565  if test -n "$DUMPBIN"; then :
5566    # Let the user override the test.
5567  else
5568    if test -n "$ac_tool_prefix"; then
5569  for ac_prog in dumpbin "link -dump"
5570  do
5571    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5572set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574$as_echo_n "checking for $ac_word... " >&6; }
5575if ${ac_cv_prog_DUMPBIN+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578  if test -n "$DUMPBIN"; then
5579  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5580else
5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH
5583do
5584  IFS=$as_save_IFS
5585  test -z "$as_dir" && as_dir=.
5586    for ac_exec_ext in '' $ac_executable_extensions; do
5587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590    break 2
5591  fi
5592done
5593  done
5594IFS=$as_save_IFS
5595
5596fi
5597fi
5598DUMPBIN=$ac_cv_prog_DUMPBIN
5599if test -n "$DUMPBIN"; then
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5601$as_echo "$DUMPBIN" >&6; }
5602else
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
5605fi
5606
5607
5608    test -n "$DUMPBIN" && break
5609  done
5610fi
5611if test -z "$DUMPBIN"; then
5612  ac_ct_DUMPBIN=$DUMPBIN
5613  for ac_prog in dumpbin "link -dump"
5614do
5615  # Extract the first word of "$ac_prog", so it can be a program name with args.
5616set dummy $ac_prog; ac_word=$2
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  if test -n "$ac_ct_DUMPBIN"; then
5623  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630    for ac_exec_ext in '' $ac_executable_extensions; do
5631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637  done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5643if test -n "$ac_ct_DUMPBIN"; then
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5645$as_echo "$ac_ct_DUMPBIN" >&6; }
5646else
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }
5649fi
5650
5651
5652  test -n "$ac_ct_DUMPBIN" && break
5653done
5654
5655  if test "x$ac_ct_DUMPBIN" = x; then
5656    DUMPBIN=":"
5657  else
5658    case $cross_compiling:$ac_tool_warned in
5659yes:)
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662ac_tool_warned=yes ;;
5663esac
5664    DUMPBIN=$ac_ct_DUMPBIN
5665  fi
5666fi
5667
5668    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5669    *COFF*)
5670      DUMPBIN="$DUMPBIN -symbols -headers"
5671      ;;
5672    *)
5673      DUMPBIN=:
5674      ;;
5675    esac
5676  fi
5677
5678  if test : != "$DUMPBIN"; then
5679    NM=$DUMPBIN
5680  fi
5681fi
5682test -z "$NM" && NM=nm
5683
5684
5685
5686
5687
5688
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5690$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5691if ${lt_cv_nm_interface+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  lt_cv_nm_interface="BSD nm"
5695  echo "int some_variable = 0;" > conftest.$ac_ext
5696  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5697  (eval "$ac_compile" 2>conftest.err)
5698  cat conftest.err >&5
5699  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5700  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5701  cat conftest.err >&5
5702  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5703  cat conftest.out >&5
5704  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5705    lt_cv_nm_interface="MS dumpbin"
5706  fi
5707  rm -f conftest*
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5710$as_echo "$lt_cv_nm_interface" >&6; }
5711
5712# find the maximum length of command line arguments
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5714$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5715if ${lt_cv_sys_max_cmd_len+:} false; then :
5716  $as_echo_n "(cached) " >&6
5717else
5718    i=0
5719  teststring=ABCD
5720
5721  case $build_os in
5722  msdosdjgpp*)
5723    # On DJGPP, this test can blow up pretty badly due to problems in libc
5724    # (any single argument exceeding 2000 bytes causes a buffer overrun
5725    # during glob expansion).  Even if it were fixed, the result of this
5726    # check would be larger than it should be.
5727    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5728    ;;
5729
5730  gnu*)
5731    # Under GNU Hurd, this test is not required because there is
5732    # no limit to the length of command line arguments.
5733    # Libtool will interpret -1 as no limit whatsoever
5734    lt_cv_sys_max_cmd_len=-1;
5735    ;;
5736
5737  cygwin* | mingw* | cegcc*)
5738    # On Win9x/ME, this test blows up -- it succeeds, but takes
5739    # about 5 minutes as the teststring grows exponentially.
5740    # Worse, since 9x/ME are not pre-emptively multitasking,
5741    # you end up with a "frozen" computer, even though with patience
5742    # the test eventually succeeds (with a max line length of 256k).
5743    # Instead, let's just punt: use the minimum linelength reported by
5744    # all of the supported platforms: 8192 (on NT/2K/XP).
5745    lt_cv_sys_max_cmd_len=8192;
5746    ;;
5747
5748  mint*)
5749    # On MiNT this can take a long time and run out of memory.
5750    lt_cv_sys_max_cmd_len=8192;
5751    ;;
5752
5753  amigaos*)
5754    # On AmigaOS with pdksh, this test takes hours, literally.
5755    # So we just punt and use a minimum line length of 8192.
5756    lt_cv_sys_max_cmd_len=8192;
5757    ;;
5758
5759  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5760    # This has been around since 386BSD, at least.  Likely further.
5761    if test -x /sbin/sysctl; then
5762      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5763    elif test -x /usr/sbin/sysctl; then
5764      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5765    else
5766      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5767    fi
5768    # And add a safety zone
5769    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5770    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5771    ;;
5772
5773  interix*)
5774    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5775    lt_cv_sys_max_cmd_len=196608
5776    ;;
5777
5778  os2*)
5779    # The test takes a long time on OS/2.
5780    lt_cv_sys_max_cmd_len=8192
5781    ;;
5782
5783  osf*)
5784    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5785    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5786    # nice to cause kernel panics so lets avoid the loop below.
5787    # First set a reasonable default.
5788    lt_cv_sys_max_cmd_len=16384
5789    #
5790    if test -x /sbin/sysconfig; then
5791      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5792        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5793      esac
5794    fi
5795    ;;
5796  sco3.2v5*)
5797    lt_cv_sys_max_cmd_len=102400
5798    ;;
5799  sysv5* | sco5v6* | sysv4.2uw2*)
5800    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5801    if test -n "$kargmax"; then
5802      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5803    else
5804      lt_cv_sys_max_cmd_len=32768
5805    fi
5806    ;;
5807  *)
5808    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5809    if test -n "$lt_cv_sys_max_cmd_len" && \
5810       test undefined != "$lt_cv_sys_max_cmd_len"; then
5811      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5812      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5813    else
5814      # Make teststring a little bigger before we do anything with it.
5815      # a 1K string should be a reasonable start.
5816      for i in 1 2 3 4 5 6 7 8; do
5817        teststring=$teststring$teststring
5818      done
5819      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5820      # If test is not a shell built-in, we'll probably end up computing a
5821      # maximum length that is only half of the actual maximum length, but
5822      # we can't tell.
5823      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5824	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5825	      test 17 != "$i" # 1/2 MB should be enough
5826      do
5827        i=`expr $i + 1`
5828        teststring=$teststring$teststring
5829      done
5830      # Only check the string length outside the loop.
5831      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5832      teststring=
5833      # Add a significant safety factor because C++ compilers can tack on
5834      # massive amounts of additional arguments before passing them to the
5835      # linker.  It appears as though 1/2 is a usable value.
5836      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5837    fi
5838    ;;
5839  esac
5840
5841fi
5842
5843if test -n "$lt_cv_sys_max_cmd_len"; then
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5845$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5846else
5847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5848$as_echo "none" >&6; }
5849fi
5850max_cmd_len=$lt_cv_sys_max_cmd_len
5851
5852
5853
5854
5855
5856
5857: ${CP="cp -f"}
5858: ${MV="mv -f"}
5859: ${RM="rm -f"}
5860
5861if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5862  lt_unset=unset
5863else
5864  lt_unset=false
5865fi
5866
5867
5868
5869
5870
5871# test EBCDIC or ASCII
5872case `echo X|tr X '\101'` in
5873 A) # ASCII based system
5874    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5875  lt_SP2NL='tr \040 \012'
5876  lt_NL2SP='tr \015\012 \040\040'
5877  ;;
5878 *) # EBCDIC based system
5879  lt_SP2NL='tr \100 \n'
5880  lt_NL2SP='tr \r\n \100\100'
5881  ;;
5882esac
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5893$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5894if ${lt_cv_to_host_file_cmd+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897  case $host in
5898  *-*-mingw* )
5899    case $build in
5900      *-*-mingw* ) # actually msys
5901        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5902        ;;
5903      *-*-cygwin* )
5904        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5905        ;;
5906      * ) # otherwise, assume *nix
5907        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5908        ;;
5909    esac
5910    ;;
5911  *-*-cygwin* )
5912    case $build in
5913      *-*-mingw* ) # actually msys
5914        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5915        ;;
5916      *-*-cygwin* )
5917        lt_cv_to_host_file_cmd=func_convert_file_noop
5918        ;;
5919      * ) # otherwise, assume *nix
5920        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5921        ;;
5922    esac
5923    ;;
5924  * ) # unhandled hosts (and "normal" native builds)
5925    lt_cv_to_host_file_cmd=func_convert_file_noop
5926    ;;
5927esac
5928
5929fi
5930
5931to_host_file_cmd=$lt_cv_to_host_file_cmd
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5933$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5934
5935
5936
5937
5938
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5940$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5941if ${lt_cv_to_tool_file_cmd+:} false; then :
5942  $as_echo_n "(cached) " >&6
5943else
5944  #assume ordinary cross tools, or native build.
5945lt_cv_to_tool_file_cmd=func_convert_file_noop
5946case $host in
5947  *-*-mingw* )
5948    case $build in
5949      *-*-mingw* ) # actually msys
5950        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5951        ;;
5952    esac
5953    ;;
5954esac
5955
5956fi
5957
5958to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5960$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5961
5962
5963
5964
5965
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5967$as_echo_n "checking for $LD option to reload object files... " >&6; }
5968if ${lt_cv_ld_reload_flag+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  lt_cv_ld_reload_flag='-r'
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5974$as_echo "$lt_cv_ld_reload_flag" >&6; }
5975reload_flag=$lt_cv_ld_reload_flag
5976case $reload_flag in
5977"" | " "*) ;;
5978*) reload_flag=" $reload_flag" ;;
5979esac
5980reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981case $host_os in
5982  cygwin* | mingw* | pw32* | cegcc*)
5983    if test yes != "$GCC"; then
5984      reload_cmds=false
5985    fi
5986    ;;
5987  darwin*)
5988    if test yes = "$GCC"; then
5989      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5990    else
5991      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5992    fi
5993    ;;
5994esac
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004if test -n "$ac_tool_prefix"; then
6005  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6006set dummy ${ac_tool_prefix}objdump; ac_word=$2
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
6009if ${ac_cv_prog_OBJDUMP+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  if test -n "$OBJDUMP"; then
6013  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018  IFS=$as_save_IFS
6019  test -z "$as_dir" && as_dir=.
6020    for ac_exec_ext in '' $ac_executable_extensions; do
6021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024    break 2
6025  fi
6026done
6027  done
6028IFS=$as_save_IFS
6029
6030fi
6031fi
6032OBJDUMP=$ac_cv_prog_OBJDUMP
6033if test -n "$OBJDUMP"; then
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6035$as_echo "$OBJDUMP" >&6; }
6036else
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038$as_echo "no" >&6; }
6039fi
6040
6041
6042fi
6043if test -z "$ac_cv_prog_OBJDUMP"; then
6044  ac_ct_OBJDUMP=$OBJDUMP
6045  # Extract the first word of "objdump", so it can be a program name with args.
6046set dummy objdump; ac_word=$2
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048$as_echo_n "checking for $ac_word... " >&6; }
6049if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6050  $as_echo_n "(cached) " >&6
6051else
6052  if test -n "$ac_ct_OBJDUMP"; then
6053  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058  IFS=$as_save_IFS
6059  test -z "$as_dir" && as_dir=.
6060    for ac_exec_ext in '' $ac_executable_extensions; do
6061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064    break 2
6065  fi
6066done
6067  done
6068IFS=$as_save_IFS
6069
6070fi
6071fi
6072ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073if test -n "$ac_ct_OBJDUMP"; then
6074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6075$as_echo "$ac_ct_OBJDUMP" >&6; }
6076else
6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078$as_echo "no" >&6; }
6079fi
6080
6081  if test "x$ac_ct_OBJDUMP" = x; then
6082    OBJDUMP="false"
6083  else
6084    case $cross_compiling:$ac_tool_warned in
6085yes:)
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088ac_tool_warned=yes ;;
6089esac
6090    OBJDUMP=$ac_ct_OBJDUMP
6091  fi
6092else
6093  OBJDUMP="$ac_cv_prog_OBJDUMP"
6094fi
6095
6096test -z "$OBJDUMP" && OBJDUMP=objdump
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6107$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6108if ${lt_cv_deplibs_check_method+:} false; then :
6109  $as_echo_n "(cached) " >&6
6110else
6111  lt_cv_file_magic_cmd='$MAGIC_CMD'
6112lt_cv_file_magic_test_file=
6113lt_cv_deplibs_check_method='unknown'
6114# Need to set the preceding variable on all platforms that support
6115# interlibrary dependencies.
6116# 'none' -- dependencies not supported.
6117# 'unknown' -- same as none, but documents that we really don't know.
6118# 'pass_all' -- all dependencies passed with no checks.
6119# 'test_compile' -- check by making test program.
6120# 'file_magic [[regex]]' -- check by looking for files in library path
6121# that responds to the $file_magic_cmd with a given extended regex.
6122# If you have 'file' or equivalent on your system and you're not sure
6123# whether 'pass_all' will *always* work, you probably want this one.
6124
6125case $host_os in
6126aix[4-9]*)
6127  lt_cv_deplibs_check_method=pass_all
6128  ;;
6129
6130beos*)
6131  lt_cv_deplibs_check_method=pass_all
6132  ;;
6133
6134bsdi[45]*)
6135  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6136  lt_cv_file_magic_cmd='/usr/bin/file -L'
6137  lt_cv_file_magic_test_file=/shlib/libc.so
6138  ;;
6139
6140cygwin*)
6141  # func_win32_libid is a shell function defined in ltmain.sh
6142  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6143  lt_cv_file_magic_cmd='func_win32_libid'
6144  ;;
6145
6146mingw* | pw32*)
6147  # Base MSYS/MinGW do not provide the 'file' command needed by
6148  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6149  # unless we find 'file', for example because we are cross-compiling.
6150  if ( file / ) >/dev/null 2>&1; then
6151    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6152    lt_cv_file_magic_cmd='func_win32_libid'
6153  else
6154    # Keep this pattern in sync with the one in func_win32_libid.
6155    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6156    lt_cv_file_magic_cmd='$OBJDUMP -f'
6157  fi
6158  ;;
6159
6160cegcc*)
6161  # use the weaker test based on 'objdump'. See mingw*.
6162  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6163  lt_cv_file_magic_cmd='$OBJDUMP -f'
6164  ;;
6165
6166darwin* | rhapsody*)
6167  lt_cv_deplibs_check_method=pass_all
6168  ;;
6169
6170freebsd* | dragonfly*)
6171  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6172    case $host_cpu in
6173    i*86 )
6174      # Not sure whether the presence of OpenBSD here was a mistake.
6175      # Let's accept both of them until this is cleared up.
6176      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6177      lt_cv_file_magic_cmd=/usr/bin/file
6178      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6179      ;;
6180    esac
6181  else
6182    lt_cv_deplibs_check_method=pass_all
6183  fi
6184  ;;
6185
6186haiku*)
6187  lt_cv_deplibs_check_method=pass_all
6188  ;;
6189
6190hpux10.20* | hpux11*)
6191  lt_cv_file_magic_cmd=/usr/bin/file
6192  case $host_cpu in
6193  ia64*)
6194    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6195    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6196    ;;
6197  hppa*64*)
6198    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]'
6199    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6200    ;;
6201  *)
6202    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6203    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6204    ;;
6205  esac
6206  ;;
6207
6208interix[3-9]*)
6209  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6210  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6211  ;;
6212
6213irix5* | irix6* | nonstopux*)
6214  case $LD in
6215  *-32|*"-32 ") libmagic=32-bit;;
6216  *-n32|*"-n32 ") libmagic=N32;;
6217  *-64|*"-64 ") libmagic=64-bit;;
6218  *) libmagic=never-match;;
6219  esac
6220  lt_cv_deplibs_check_method=pass_all
6221  ;;
6222
6223# This must be glibc/ELF.
6224linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6225  lt_cv_deplibs_check_method=pass_all
6226  ;;
6227
6228netbsd*)
6229  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6230    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6231  else
6232    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6233  fi
6234  ;;
6235
6236newos6*)
6237  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6238  lt_cv_file_magic_cmd=/usr/bin/file
6239  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6240  ;;
6241
6242*nto* | *qnx*)
6243  lt_cv_deplibs_check_method=pass_all
6244  ;;
6245
6246openbsd* | bitrig*)
6247  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6248    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6249  else
6250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6251  fi
6252  ;;
6253
6254osf3* | osf4* | osf5*)
6255  lt_cv_deplibs_check_method=pass_all
6256  ;;
6257
6258rdos*)
6259  lt_cv_deplibs_check_method=pass_all
6260  ;;
6261
6262solaris*)
6263  lt_cv_deplibs_check_method=pass_all
6264  ;;
6265
6266sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6267  lt_cv_deplibs_check_method=pass_all
6268  ;;
6269
6270sysv4 | sysv4.3*)
6271  case $host_vendor in
6272  motorola)
6273    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]'
6274    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6275    ;;
6276  ncr)
6277    lt_cv_deplibs_check_method=pass_all
6278    ;;
6279  sequent)
6280    lt_cv_file_magic_cmd='/bin/file'
6281    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6282    ;;
6283  sni)
6284    lt_cv_file_magic_cmd='/bin/file'
6285    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6286    lt_cv_file_magic_test_file=/lib/libc.so
6287    ;;
6288  siemens)
6289    lt_cv_deplibs_check_method=pass_all
6290    ;;
6291  pc)
6292    lt_cv_deplibs_check_method=pass_all
6293    ;;
6294  esac
6295  ;;
6296
6297tpf*)
6298  lt_cv_deplibs_check_method=pass_all
6299  ;;
6300os2*)
6301  lt_cv_deplibs_check_method=pass_all
6302  ;;
6303esac
6304
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6307$as_echo "$lt_cv_deplibs_check_method" >&6; }
6308
6309file_magic_glob=
6310want_nocaseglob=no
6311if test "$build" = "$host"; then
6312  case $host_os in
6313  mingw* | pw32*)
6314    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6315      want_nocaseglob=yes
6316    else
6317      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6318    fi
6319    ;;
6320  esac
6321fi
6322
6323file_magic_cmd=$lt_cv_file_magic_cmd
6324deplibs_check_method=$lt_cv_deplibs_check_method
6325test -z "$deplibs_check_method" && deplibs_check_method=unknown
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348if test -n "$ac_tool_prefix"; then
6349  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6350set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
6353if ${ac_cv_prog_DLLTOOL+:} false; then :
6354  $as_echo_n "(cached) " >&6
6355else
6356  if test -n "$DLLTOOL"; then
6357  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362  IFS=$as_save_IFS
6363  test -z "$as_dir" && as_dir=.
6364    for ac_exec_ext in '' $ac_executable_extensions; do
6365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371  done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376DLLTOOL=$ac_cv_prog_DLLTOOL
6377if test -n "$DLLTOOL"; then
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6379$as_echo "$DLLTOOL" >&6; }
6380else
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385
6386fi
6387if test -z "$ac_cv_prog_DLLTOOL"; then
6388  ac_ct_DLLTOOL=$DLLTOOL
6389  # Extract the first word of "dlltool", so it can be a program name with args.
6390set dummy dlltool; ac_word=$2
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392$as_echo_n "checking for $ac_word... " >&6; }
6393if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  if test -n "$ac_ct_DLLTOOL"; then
6397  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402  IFS=$as_save_IFS
6403  test -z "$as_dir" && as_dir=.
6404    for ac_exec_ext in '' $ac_executable_extensions; do
6405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408    break 2
6409  fi
6410done
6411  done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6417if test -n "$ac_ct_DLLTOOL"; then
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6419$as_echo "$ac_ct_DLLTOOL" >&6; }
6420else
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425  if test "x$ac_ct_DLLTOOL" = x; then
6426    DLLTOOL="false"
6427  else
6428    case $cross_compiling:$ac_tool_warned in
6429yes:)
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6432ac_tool_warned=yes ;;
6433esac
6434    DLLTOOL=$ac_ct_DLLTOOL
6435  fi
6436else
6437  DLLTOOL="$ac_cv_prog_DLLTOOL"
6438fi
6439
6440test -z "$DLLTOOL" && DLLTOOL=dlltool
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6452$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6453if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  lt_cv_sharedlib_from_linklib_cmd='unknown'
6457
6458case $host_os in
6459cygwin* | mingw* | pw32* | cegcc*)
6460  # two different shell functions defined in ltmain.sh;
6461  # decide which one to use based on capabilities of $DLLTOOL
6462  case `$DLLTOOL --help 2>&1` in
6463  *--identify-strict*)
6464    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6465    ;;
6466  *)
6467    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6468    ;;
6469  esac
6470  ;;
6471*)
6472  # fallback: assume linklib IS sharedlib
6473  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6474  ;;
6475esac
6476
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6479$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6480sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6481test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6482
6483
6484
6485
6486
6487
6488
6489if test -n "$ac_tool_prefix"; then
6490  for ac_prog in ar
6491  do
6492    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if ${ac_cv_prog_AR+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  if test -n "$AR"; then
6500  ac_cv_prog_AR="$AR" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505  IFS=$as_save_IFS
6506  test -z "$as_dir" && as_dir=.
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511    break 2
6512  fi
6513done
6514  done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519AR=$ac_cv_prog_AR
6520if test -n "$AR"; then
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6522$as_echo "$AR" >&6; }
6523else
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528
6529    test -n "$AR" && break
6530  done
6531fi
6532if test -z "$AR"; then
6533  ac_ct_AR=$AR
6534  for ac_prog in ar
6535do
6536  # Extract the first word of "$ac_prog", so it can be a program name with args.
6537set dummy $ac_prog; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
6540if ${ac_cv_prog_ac_ct_AR+:} false; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  if test -n "$ac_ct_AR"; then
6544  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549  IFS=$as_save_IFS
6550  test -z "$as_dir" && as_dir=.
6551    for ac_exec_ext in '' $ac_executable_extensions; do
6552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553    ac_cv_prog_ac_ct_AR="$ac_prog"
6554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555    break 2
6556  fi
6557done
6558  done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563ac_ct_AR=$ac_cv_prog_ac_ct_AR
6564if test -n "$ac_ct_AR"; then
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6566$as_echo "$ac_ct_AR" >&6; }
6567else
6568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572
6573  test -n "$ac_ct_AR" && break
6574done
6575
6576  if test "x$ac_ct_AR" = x; then
6577    AR="false"
6578  else
6579    case $cross_compiling:$ac_tool_warned in
6580yes:)
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583ac_tool_warned=yes ;;
6584esac
6585    AR=$ac_ct_AR
6586  fi
6587fi
6588
6589: ${AR=ar}
6590: ${AR_FLAGS=cru}
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6603$as_echo_n "checking for archiver @FILE support... " >&6; }
6604if ${lt_cv_ar_at_file+:} false; then :
6605  $as_echo_n "(cached) " >&6
6606else
6607  lt_cv_ar_at_file=no
6608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610
6611int
6612main ()
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620  echo conftest.$ac_objext > conftest.lst
6621      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6622      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6623  (eval $lt_ar_try) 2>&5
6624  ac_status=$?
6625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626  test $ac_status = 0; }
6627      if test 0 -eq "$ac_status"; then
6628	# Ensure the archiver fails upon bogus file names.
6629	rm -f conftest.$ac_objext libconftest.a
6630	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6631  (eval $lt_ar_try) 2>&5
6632  ac_status=$?
6633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634  test $ac_status = 0; }
6635	if test 0 -ne "$ac_status"; then
6636          lt_cv_ar_at_file=@
6637        fi
6638      fi
6639      rm -f conftest.* libconftest.a
6640
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643
6644fi
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6646$as_echo "$lt_cv_ar_at_file" >&6; }
6647
6648if test no = "$lt_cv_ar_at_file"; then
6649  archiver_list_spec=
6650else
6651  archiver_list_spec=$lt_cv_ar_at_file
6652fi
6653
6654
6655
6656
6657
6658
6659
6660if test -n "$ac_tool_prefix"; then
6661  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6662set dummy ${ac_tool_prefix}strip; ac_word=$2
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664$as_echo_n "checking for $ac_word... " >&6; }
6665if ${ac_cv_prog_STRIP+:} false; then :
6666  $as_echo_n "(cached) " >&6
6667else
6668  if test -n "$STRIP"; then
6669  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674  IFS=$as_save_IFS
6675  test -z "$as_dir" && as_dir=.
6676    for ac_exec_ext in '' $ac_executable_extensions; do
6677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6678    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680    break 2
6681  fi
6682done
6683  done
6684IFS=$as_save_IFS
6685
6686fi
6687fi
6688STRIP=$ac_cv_prog_STRIP
6689if test -n "$STRIP"; then
6690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6691$as_echo "$STRIP" >&6; }
6692else
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694$as_echo "no" >&6; }
6695fi
6696
6697
6698fi
6699if test -z "$ac_cv_prog_STRIP"; then
6700  ac_ct_STRIP=$STRIP
6701  # Extract the first word of "strip", so it can be a program name with args.
6702set dummy strip; ac_word=$2
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704$as_echo_n "checking for $ac_word... " >&6; }
6705if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  if test -n "$ac_ct_STRIP"; then
6709  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714  IFS=$as_save_IFS
6715  test -z "$as_dir" && as_dir=.
6716    for ac_exec_ext in '' $ac_executable_extensions; do
6717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718    ac_cv_prog_ac_ct_STRIP="strip"
6719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720    break 2
6721  fi
6722done
6723  done
6724IFS=$as_save_IFS
6725
6726fi
6727fi
6728ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6729if test -n "$ac_ct_STRIP"; then
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6731$as_echo "$ac_ct_STRIP" >&6; }
6732else
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736
6737  if test "x$ac_ct_STRIP" = x; then
6738    STRIP=":"
6739  else
6740    case $cross_compiling:$ac_tool_warned in
6741yes:)
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744ac_tool_warned=yes ;;
6745esac
6746    STRIP=$ac_ct_STRIP
6747  fi
6748else
6749  STRIP="$ac_cv_prog_STRIP"
6750fi
6751
6752test -z "$STRIP" && STRIP=:
6753
6754
6755
6756
6757
6758
6759if test -n "$ac_tool_prefix"; then
6760  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6761set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763$as_echo_n "checking for $ac_word... " >&6; }
6764if ${ac_cv_prog_RANLIB+:} false; then :
6765  $as_echo_n "(cached) " >&6
6766else
6767  if test -n "$RANLIB"; then
6768  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773  IFS=$as_save_IFS
6774  test -z "$as_dir" && as_dir=.
6775    for ac_exec_ext in '' $ac_executable_extensions; do
6776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779    break 2
6780  fi
6781done
6782  done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787RANLIB=$ac_cv_prog_RANLIB
6788if test -n "$RANLIB"; then
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6790$as_echo "$RANLIB" >&6; }
6791else
6792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793$as_echo "no" >&6; }
6794fi
6795
6796
6797fi
6798if test -z "$ac_cv_prog_RANLIB"; then
6799  ac_ct_RANLIB=$RANLIB
6800  # Extract the first word of "ranlib", so it can be a program name with args.
6801set dummy ranlib; ac_word=$2
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803$as_echo_n "checking for $ac_word... " >&6; }
6804if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6805  $as_echo_n "(cached) " >&6
6806else
6807  if test -n "$ac_ct_RANLIB"; then
6808  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813  IFS=$as_save_IFS
6814  test -z "$as_dir" && as_dir=.
6815    for ac_exec_ext in '' $ac_executable_extensions; do
6816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817    ac_cv_prog_ac_ct_RANLIB="ranlib"
6818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819    break 2
6820  fi
6821done
6822  done
6823IFS=$as_save_IFS
6824
6825fi
6826fi
6827ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6828if test -n "$ac_ct_RANLIB"; then
6829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6830$as_echo "$ac_ct_RANLIB" >&6; }
6831else
6832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833$as_echo "no" >&6; }
6834fi
6835
6836  if test "x$ac_ct_RANLIB" = x; then
6837    RANLIB=":"
6838  else
6839    case $cross_compiling:$ac_tool_warned in
6840yes:)
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843ac_tool_warned=yes ;;
6844esac
6845    RANLIB=$ac_ct_RANLIB
6846  fi
6847else
6848  RANLIB="$ac_cv_prog_RANLIB"
6849fi
6850
6851test -z "$RANLIB" && RANLIB=:
6852
6853
6854
6855
6856
6857
6858# Determine commands to create old-style static archives.
6859old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6860old_postinstall_cmds='chmod 644 $oldlib'
6861old_postuninstall_cmds=
6862
6863if test -n "$RANLIB"; then
6864  case $host_os in
6865  bitrig* | openbsd*)
6866    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6867    ;;
6868  *)
6869    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6870    ;;
6871  esac
6872  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6873fi
6874
6875case $host_os in
6876  darwin*)
6877    lock_old_archive_extraction=yes ;;
6878  *)
6879    lock_old_archive_extraction=no ;;
6880esac
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920# If no C compiler was specified, use CC.
6921LTCC=${LTCC-"$CC"}
6922
6923# If no C compiler flags were specified, use CFLAGS.
6924LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6925
6926# Allow CC to be a program name with arguments.
6927compiler=$CC
6928
6929
6930# Check for command to grab the raw symbol name followed by C symbol from nm.
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6932$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6933if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936
6937# These are sane defaults that work on at least a few old systems.
6938# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6939
6940# Character class describing NM global symbol codes.
6941symcode='[BCDEGRST]'
6942
6943# Regexp to match symbols that can be accessed directly from C.
6944sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6945
6946# Define system-specific variables.
6947case $host_os in
6948aix*)
6949  symcode='[BCDT]'
6950  ;;
6951cygwin* | mingw* | pw32* | cegcc*)
6952  symcode='[ABCDGISTW]'
6953  ;;
6954hpux*)
6955  if test ia64 = "$host_cpu"; then
6956    symcode='[ABCDEGRST]'
6957  fi
6958  ;;
6959irix* | nonstopux*)
6960  symcode='[BCDEGRST]'
6961  ;;
6962osf*)
6963  symcode='[BCDEGQRST]'
6964  ;;
6965solaris*)
6966  symcode='[BDRT]'
6967  ;;
6968sco3.2v5*)
6969  symcode='[DT]'
6970  ;;
6971sysv4.2uw2*)
6972  symcode='[DT]'
6973  ;;
6974sysv5* | sco5v6* | unixware* | OpenUNIX*)
6975  symcode='[ABDT]'
6976  ;;
6977sysv4)
6978  symcode='[DFNSTU]'
6979  ;;
6980esac
6981
6982# If we're using GNU nm, then use its standard symbol codes.
6983case `$NM -V 2>&1` in
6984*GNU* | *'with BFD'*)
6985  symcode='[ABCDGIRSTW]' ;;
6986esac
6987
6988if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6989  # Gets list of data symbols to import.
6990  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6991  # Adjust the below global symbol transforms to fixup imported variables.
6992  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6993  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6994  lt_c_name_lib_hook="\
6995  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6996  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6997else
6998  # Disable hooks by default.
6999  lt_cv_sys_global_symbol_to_import=
7000  lt_cdecl_hook=
7001  lt_c_name_hook=
7002  lt_c_name_lib_hook=
7003fi
7004
7005# Transform an extracted symbol line into a proper C declaration.
7006# Some systems (esp. on ia64) link data and code symbols differently,
7007# so use this general approach.
7008lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7009$lt_cdecl_hook\
7010" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7011" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7012
7013# Transform an extracted symbol line into symbol name and symbol address
7014lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7015$lt_c_name_hook\
7016" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7017" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7018
7019# Transform an extracted symbol line into symbol name with lib prefix and
7020# symbol address.
7021lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7022$lt_c_name_lib_hook\
7023" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7024" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7025" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7026
7027# Handle CRLF in mingw tool chain
7028opt_cr=
7029case $build_os in
7030mingw*)
7031  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7032  ;;
7033esac
7034
7035# Try without a prefix underscore, then with it.
7036for ac_symprfx in "" "_"; do
7037
7038  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7039  symxfrm="\\1 $ac_symprfx\\2 \\2"
7040
7041  # Write the raw and C identifiers.
7042  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7043    # Fake it for dumpbin and say T for any non-static function,
7044    # D for any global variable and I for any imported variable.
7045    # Also find C++ and __fastcall symbols from MSVC++,
7046    # which start with @ or ?.
7047    lt_cv_sys_global_symbol_pipe="$AWK '"\
7048"     {last_section=section; section=\$ 3};"\
7049"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7050"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7052"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7053"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7054"     \$ 0!~/External *\|/{next};"\
7055"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7056"     {if(hide[section]) next};"\
7057"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7058"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7059"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7060"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7061"     ' prfx=^$ac_symprfx"
7062  else
7063    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7064  fi
7065  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7066
7067  # Check to see that the pipe works correctly.
7068  pipe_works=no
7069
7070  rm -f conftest*
7071  cat > conftest.$ac_ext <<_LT_EOF
7072#ifdef __cplusplus
7073extern "C" {
7074#endif
7075char nm_test_var;
7076void nm_test_func(void);
7077void nm_test_func(void){}
7078#ifdef __cplusplus
7079}
7080#endif
7081int main(){nm_test_var='a';nm_test_func();return(0);}
7082_LT_EOF
7083
7084  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085  (eval $ac_compile) 2>&5
7086  ac_status=$?
7087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088  test $ac_status = 0; }; then
7089    # Now try to grab the symbols.
7090    nlist=conftest.nm
7091    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7092  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7093  ac_status=$?
7094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095  test $ac_status = 0; } && test -s "$nlist"; then
7096      # Try sorting and uniquifying the output.
7097      if sort "$nlist" | uniq > "$nlist"T; then
7098	mv -f "$nlist"T "$nlist"
7099      else
7100	rm -f "$nlist"T
7101      fi
7102
7103      # Make sure that we snagged all the symbols we need.
7104      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7105	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7106	  cat <<_LT_EOF > conftest.$ac_ext
7107/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7108#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7109/* DATA imports from DLLs on WIN32 can't be const, because runtime
7110   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7111# define LT_DLSYM_CONST
7112#elif defined __osf__
7113/* This system does not cope well with relocations in const data.  */
7114# define LT_DLSYM_CONST
7115#else
7116# define LT_DLSYM_CONST const
7117#endif
7118
7119#ifdef __cplusplus
7120extern "C" {
7121#endif
7122
7123_LT_EOF
7124	  # Now generate the symbol file.
7125	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7126
7127	  cat <<_LT_EOF >> conftest.$ac_ext
7128
7129/* The mapping between symbol names and symbols.  */
7130LT_DLSYM_CONST struct {
7131  const char *name;
7132  void       *address;
7133}
7134lt__PROGRAM__LTX_preloaded_symbols[] =
7135{
7136  { "@PROGRAM@", (void *) 0 },
7137_LT_EOF
7138	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139	  cat <<\_LT_EOF >> conftest.$ac_ext
7140  {0, (void *) 0}
7141};
7142
7143/* This works around a problem in FreeBSD linker */
7144#ifdef FREEBSD_WORKAROUND
7145static const void *lt_preloaded_setup() {
7146  return lt__PROGRAM__LTX_preloaded_symbols;
7147}
7148#endif
7149
7150#ifdef __cplusplus
7151}
7152#endif
7153_LT_EOF
7154	  # Now try linking the two files.
7155	  mv conftest.$ac_objext conftstm.$ac_objext
7156	  lt_globsym_save_LIBS=$LIBS
7157	  lt_globsym_save_CFLAGS=$CFLAGS
7158	  LIBS=conftstm.$ac_objext
7159	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161  (eval $ac_link) 2>&5
7162  ac_status=$?
7163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7165	    pipe_works=yes
7166	  fi
7167	  LIBS=$lt_globsym_save_LIBS
7168	  CFLAGS=$lt_globsym_save_CFLAGS
7169	else
7170	  echo "cannot find nm_test_func in $nlist" >&5
7171	fi
7172      else
7173	echo "cannot find nm_test_var in $nlist" >&5
7174      fi
7175    else
7176      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177    fi
7178  else
7179    echo "$progname: failed program was:" >&5
7180    cat conftest.$ac_ext >&5
7181  fi
7182  rm -rf conftest* conftst*
7183
7184  # Do not use the global_symbol_pipe unless it works.
7185  if test yes = "$pipe_works"; then
7186    break
7187  else
7188    lt_cv_sys_global_symbol_pipe=
7189  fi
7190done
7191
7192fi
7193
7194if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195  lt_cv_sys_global_symbol_to_cdecl=
7196fi
7197if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199$as_echo "failed" >&6; }
7200else
7201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202$as_echo "ok" >&6; }
7203fi
7204
7205# Response file support.
7206if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7207  nm_file_list_spec='@'
7208elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7209  nm_file_list_spec='@'
7210fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7249$as_echo_n "checking for sysroot... " >&6; }
7250
7251# Check whether --with-sysroot was given.
7252if test "${with_sysroot+set}" = set; then :
7253  withval=$with_sysroot;
7254else
7255  with_sysroot=no
7256fi
7257
7258
7259lt_sysroot=
7260case $with_sysroot in #(
7261 yes)
7262   if test yes = "$GCC"; then
7263     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7264   fi
7265   ;; #(
7266 /*)
7267   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7268   ;; #(
7269 no|'')
7270   ;; #(
7271 *)
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7273$as_echo "$with_sysroot" >&6; }
7274   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7275   ;;
7276esac
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7279$as_echo "${lt_sysroot:-no}" >&6; }
7280
7281
7282
7283
7284
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7286$as_echo_n "checking for a working dd... " >&6; }
7287if ${ac_cv_path_lt_DD+:} false; then :
7288  $as_echo_n "(cached) " >&6
7289else
7290  printf 0123456789abcdef0123456789abcdef >conftest.i
7291cat conftest.i conftest.i >conftest2.i
7292: ${lt_DD:=$DD}
7293if test -z "$lt_DD"; then
7294  ac_path_lt_DD_found=false
7295  # Loop through the user's path and test for each of PROGNAME-LIST
7296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301    for ac_prog in dd; do
7302    for ac_exec_ext in '' $ac_executable_extensions; do
7303      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7304      as_fn_executable_p "$ac_path_lt_DD" || continue
7305if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7306  cmp -s conftest.i conftest.out \
7307  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7308fi
7309      $ac_path_lt_DD_found && break 3
7310    done
7311  done
7312  done
7313IFS=$as_save_IFS
7314  if test -z "$ac_cv_path_lt_DD"; then
7315    :
7316  fi
7317else
7318  ac_cv_path_lt_DD=$lt_DD
7319fi
7320
7321rm -f conftest.i conftest2.i conftest.out
7322fi
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7324$as_echo "$ac_cv_path_lt_DD" >&6; }
7325
7326
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7328$as_echo_n "checking how to truncate binary pipes... " >&6; }
7329if ${lt_cv_truncate_bin+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  printf 0123456789abcdef0123456789abcdef >conftest.i
7333cat conftest.i conftest.i >conftest2.i
7334lt_cv_truncate_bin=
7335if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7336  cmp -s conftest.i conftest.out \
7337  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7338fi
7339rm -f conftest.i conftest2.i conftest.out
7340test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7341fi
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7343$as_echo "$lt_cv_truncate_bin" >&6; }
7344
7345
7346
7347
7348
7349
7350
7351# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7352func_cc_basename ()
7353{
7354    for cc_temp in $*""; do
7355      case $cc_temp in
7356        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7357        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7358        \-*) ;;
7359        *) break;;
7360      esac
7361    done
7362    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7363}
7364
7365# Check whether --enable-libtool-lock was given.
7366if test "${enable_libtool_lock+set}" = set; then :
7367  enableval=$enable_libtool_lock;
7368fi
7369
7370test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7371
7372# Some flags need to be propagated to the compiler or linker for good
7373# libtool support.
7374case $host in
7375ia64-*-hpux*)
7376  # Find out what ABI is being produced by ac_compile, and set mode
7377  # options accordingly.
7378  echo 'int i;' > conftest.$ac_ext
7379  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7380  (eval $ac_compile) 2>&5
7381  ac_status=$?
7382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383  test $ac_status = 0; }; then
7384    case `/usr/bin/file conftest.$ac_objext` in
7385      *ELF-32*)
7386	HPUX_IA64_MODE=32
7387	;;
7388      *ELF-64*)
7389	HPUX_IA64_MODE=64
7390	;;
7391    esac
7392  fi
7393  rm -rf conftest*
7394  ;;
7395*-*-irix6*)
7396  # Find out what ABI is being produced by ac_compile, and set linker
7397  # options accordingly.
7398  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7399  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7400  (eval $ac_compile) 2>&5
7401  ac_status=$?
7402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403  test $ac_status = 0; }; then
7404    if test yes = "$lt_cv_prog_gnu_ld"; then
7405      case `/usr/bin/file conftest.$ac_objext` in
7406	*32-bit*)
7407	  LD="${LD-ld} -melf32bsmip"
7408	  ;;
7409	*N32*)
7410	  LD="${LD-ld} -melf32bmipn32"
7411	  ;;
7412	*64-bit*)
7413	  LD="${LD-ld} -melf64bmip"
7414	;;
7415      esac
7416    else
7417      case `/usr/bin/file conftest.$ac_objext` in
7418	*32-bit*)
7419	  LD="${LD-ld} -32"
7420	  ;;
7421	*N32*)
7422	  LD="${LD-ld} -n32"
7423	  ;;
7424	*64-bit*)
7425	  LD="${LD-ld} -64"
7426	  ;;
7427      esac
7428    fi
7429  fi
7430  rm -rf conftest*
7431  ;;
7432
7433mips64*-*linux*)
7434  # Find out what ABI is being produced by ac_compile, and set linker
7435  # options accordingly.
7436  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7437  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438  (eval $ac_compile) 2>&5
7439  ac_status=$?
7440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441  test $ac_status = 0; }; then
7442    emul=elf
7443    case `/usr/bin/file conftest.$ac_objext` in
7444      *32-bit*)
7445	emul="${emul}32"
7446	;;
7447      *64-bit*)
7448	emul="${emul}64"
7449	;;
7450    esac
7451    case `/usr/bin/file conftest.$ac_objext` in
7452      *MSB*)
7453	emul="${emul}btsmip"
7454	;;
7455      *LSB*)
7456	emul="${emul}ltsmip"
7457	;;
7458    esac
7459    case `/usr/bin/file conftest.$ac_objext` in
7460      *N32*)
7461	emul="${emul}n32"
7462	;;
7463    esac
7464    LD="${LD-ld} -m $emul"
7465  fi
7466  rm -rf conftest*
7467  ;;
7468
7469x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7470s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7471  # Find out what ABI is being produced by ac_compile, and set linker
7472  # options accordingly.  Note that the listed cases only cover the
7473  # situations where additional linker options are needed (such as when
7474  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7475  # vice versa); the common cases where no linker options are needed do
7476  # not appear in the list.
7477  echo 'int i;' > conftest.$ac_ext
7478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479  (eval $ac_compile) 2>&5
7480  ac_status=$?
7481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482  test $ac_status = 0; }; then
7483    case `/usr/bin/file conftest.o` in
7484      *32-bit*)
7485	case $host in
7486	  x86_64-*kfreebsd*-gnu)
7487	    LD="${LD-ld} -m elf_i386_fbsd"
7488	    ;;
7489	  x86_64-*linux*)
7490	    case `/usr/bin/file conftest.o` in
7491	      *x86-64*)
7492		LD="${LD-ld} -m elf32_x86_64"
7493		;;
7494	      *)
7495		LD="${LD-ld} -m elf_i386"
7496		;;
7497	    esac
7498	    ;;
7499	  powerpc64le-*linux*)
7500	    LD="${LD-ld} -m elf32lppclinux"
7501	    ;;
7502	  powerpc64-*linux*)
7503	    LD="${LD-ld} -m elf32ppclinux"
7504	    ;;
7505	  s390x-*linux*)
7506	    LD="${LD-ld} -m elf_s390"
7507	    ;;
7508	  sparc64-*linux*)
7509	    LD="${LD-ld} -m elf32_sparc"
7510	    ;;
7511	esac
7512	;;
7513      *64-bit*)
7514	case $host in
7515	  x86_64-*kfreebsd*-gnu)
7516	    LD="${LD-ld} -m elf_x86_64_fbsd"
7517	    ;;
7518	  x86_64-*linux*)
7519	    LD="${LD-ld} -m elf_x86_64"
7520	    ;;
7521	  powerpcle-*linux*)
7522	    LD="${LD-ld} -m elf64lppc"
7523	    ;;
7524	  powerpc-*linux*)
7525	    LD="${LD-ld} -m elf64ppc"
7526	    ;;
7527	  s390*-*linux*|s390*-*tpf*)
7528	    LD="${LD-ld} -m elf64_s390"
7529	    ;;
7530	  sparc*-*linux*)
7531	    LD="${LD-ld} -m elf64_sparc"
7532	    ;;
7533	esac
7534	;;
7535    esac
7536  fi
7537  rm -rf conftest*
7538  ;;
7539
7540*-*-sco3.2v5*)
7541  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7542  SAVE_CFLAGS=$CFLAGS
7543  CFLAGS="$CFLAGS -belf"
7544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7545$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7546if ${lt_cv_cc_needs_belf+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  ac_ext=c
7550ac_cpp='$CPP $CPPFLAGS'
7551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554
7555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557
7558int
7559main ()
7560{
7561
7562  ;
7563  return 0;
7564}
7565_ACEOF
7566if ac_fn_c_try_link "$LINENO"; then :
7567  lt_cv_cc_needs_belf=yes
7568else
7569  lt_cv_cc_needs_belf=no
7570fi
7571rm -f core conftest.err conftest.$ac_objext \
7572    conftest$ac_exeext conftest.$ac_ext
7573     ac_ext=c
7574ac_cpp='$CPP $CPPFLAGS'
7575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7581$as_echo "$lt_cv_cc_needs_belf" >&6; }
7582  if test yes != "$lt_cv_cc_needs_belf"; then
7583    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7584    CFLAGS=$SAVE_CFLAGS
7585  fi
7586  ;;
7587*-*solaris*)
7588  # Find out what ABI is being produced by ac_compile, and set linker
7589  # options accordingly.
7590  echo 'int i;' > conftest.$ac_ext
7591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7592  (eval $ac_compile) 2>&5
7593  ac_status=$?
7594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7595  test $ac_status = 0; }; then
7596    case `/usr/bin/file conftest.o` in
7597    *64-bit*)
7598      case $lt_cv_prog_gnu_ld in
7599      yes*)
7600        case $host in
7601        i?86-*-solaris*|x86_64-*-solaris*)
7602          LD="${LD-ld} -m elf_x86_64"
7603          ;;
7604        sparc*-*-solaris*)
7605          LD="${LD-ld} -m elf64_sparc"
7606          ;;
7607        esac
7608        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7609        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7610          LD=${LD-ld}_sol2
7611        fi
7612        ;;
7613      *)
7614	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7615	  LD="${LD-ld} -64"
7616	fi
7617	;;
7618      esac
7619      ;;
7620    esac
7621  fi
7622  rm -rf conftest*
7623  ;;
7624esac
7625
7626need_locks=$enable_libtool_lock
7627
7628if test -n "$ac_tool_prefix"; then
7629  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7630set dummy ${ac_tool_prefix}mt; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$MANIFEST_TOOL"; then
7637  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7657if test -n "$MANIFEST_TOOL"; then