1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
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
638OPENSSL_FALSE
639OPENSSL_TRUE
640PTHREADS_FALSE
641PTHREADS_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
661BUILD_WITH_NO_UNDEFINED_FALSE
662BUILD_WITH_NO_UNDEFINED_TRUE
663BUILD_CYGWIN_FALSE
664BUILD_CYGWIN_TRUE
665BUILD_WIN32_FALSE
666BUILD_WIN32_TRUE
667OPENSSL_LIBS
668OPENSSL_LIBADD
669EV_LIB_GDI
670EV_LIB_WS32
671ZLIB_REGRESS_FALSE
672ZLIB_REGRESS_TRUE
673ZLIB_LIBS
674BUILD_REGRESS_FALSE
675BUILD_REGRESS_TRUE
676LIBTOOL_DEPS
677OTOOL64
678OTOOL
679LIPO
680NMEDIT
681DSYMUTIL
682MANIFEST_TOOL
683RANLIB
684ac_ct_AR
685AR
686DLLTOOL
687OBJDUMP
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LD
692FGREP
693SED
694LIBTOOL
695EGREP
696GREP
697CPP
698LN_S
699am__fastdepCC_FALSE
700am__fastdepCC_TRUE
701CCDEPMODE
702am__nodep
703AMDEPBACKSLASH
704AMDEP_FALSE
705AMDEP_TRUE
706am__quote
707am__include
708DEPDIR
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
728am__untar
729am__tar
730AMTAR
731am__leading_dot
732SET_MAKE
733AWK
734mkdir_p
735MKDIR_P
736INSTALL_STRIP_PROGRAM
737STRIP
738install_sh
739MAKEINFO
740AUTOHEADER
741AUTOMAKE
742AUTOCONF
743ACLOCAL
744VERSION
745PACKAGE
746CYGPATH_W
747am__isrc
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL'
789ac_subst_files=''
790ac_user_opts='
791enable_option_checking
792enable_silent_rules
793enable_dependency_tracking
794enable_gcc_warnings
795enable_thread_support
796enable_malloc_replacement
797enable_openssl
798enable_debug_mode
799enable_libevent_install
800enable_libevent_regress
801enable_function_sections
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809'
810      ac_precious_vars='build_alias
811host_alias
812target_alias
813CC
814CFLAGS
815LDFLAGS
816LIBS
817CPPFLAGS
818CPP'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244		datadir sysconfdir sharedstatedir localstatedir includedir \
1245		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246		libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300	 X"$as_myself" : 'X\(//\)$' \| \
1301	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)[^/].*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\).*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334	pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures this package to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428
1429  cat <<\_ACEOF
1430
1431Optional Features:
1432  --disable-option-checking  ignore unrecognized --enable/--with options
1433  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --enable-dependency-tracking
1438                          do not reject slow dependency extractors
1439  --disable-dependency-tracking
1440                          speeds up one-time build
1441  --enable-gcc-warnings   enable verbose warnings with GCC
1442  --disable-thread-support
1443                          disable support for threading
1444  --disable-malloc-replacement
1445                          disable support for replacing the memory mgt
1446                          functions
1447  --disable-openssl       disable support for openssl encryption
1448  --disable-debug-mode    disable support for running in debug mode
1449  --disable-libevent-install, disable installation of libevent
1450
1451  --disable-libevent-regress, skip regress in make check
1452
1453  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1454
1455  --enable-shared[=PKGS]  build shared libraries [default=yes]
1456  --enable-static[=PKGS]  build static libraries [default=yes]
1457  --enable-fast-install[=PKGS]
1458                          optimize for fast installation [default=yes]
1459  --disable-libtool-lock  avoid locking (might break parallel builds)
1460
1461Optional Packages:
1462  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464  --with-pic              try to use only PIC/non-PIC objects [default=use
1465                          both]
1466  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467  --with-sysroot=DIR Search for dependent libraries within DIR
1468                        (or the compiler's sysroot if not specified).
1469
1470Some influential environment variables:
1471  CC          C compiler command
1472  CFLAGS      C compiler flags
1473  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474              nonstandard directory <lib dir>
1475  LIBS        libraries to pass to the linker, e.g. -l<library>
1476  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477              you have headers in a nonstandard directory <include dir>
1478  CPP         C preprocessor
1479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to the package provider.
1484_ACEOF
1485ac_status=$?
1486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489  # If there are subdirs, report their specific --help.
1490  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491    test -d "$ac_dir" ||
1492      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493      continue
1494    ac_builddir=.
1495
1496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
1499  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500  # A ".." for each directory in $ac_dir_suffix.
1501  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502  case $ac_top_builddir_sub in
1503  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505  esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
1511
1512case $srcdir in
1513  .)  # We are building in place.
1514    ac_srcdir=.
1515    ac_top_srcdir=$ac_top_builddir_sub
1516    ac_abs_top_srcdir=$ac_pwd ;;
1517  [\\/]* | ?:[\\/]* )  # Absolute name.
1518    ac_srcdir=$srcdir$ac_dir_suffix;
1519    ac_top_srcdir=$srcdir
1520    ac_abs_top_srcdir=$srcdir ;;
1521  *) # Relative name.
1522    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523    ac_top_srcdir=$ac_top_build_prefix$srcdir
1524    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525esac
1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528    cd "$ac_dir" || { ac_status=$?; continue; }
1529    # Check for guested configure.
1530    if test -f "$ac_srcdir/configure.gnu"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533    elif test -f "$ac_srcdir/configure"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure" --help=recursive
1536    else
1537      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538    fi || ac_status=$?
1539    cd "$ac_pwd" || { ac_status=$?; break; }
1540  done
1541fi
1542
1543test -n "$ac_init_help" && exit $ac_status
1544if $ac_init_version; then
1545  cat <<\_ACEOF
1546configure
1547generated by GNU Autoconf 2.69
1548
1549Copyright (C) 2012 Free Software Foundation, Inc.
1550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
1552_ACEOF
1553  exit
1554fi
1555
1556## ------------------------ ##
1557## Autoconf initialization. ##
1558## ------------------------ ##
1559
1560# ac_fn_c_try_compile LINENO
1561# --------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_compile ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext
1567  if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_compile") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest.$ac_objext; then :
1586  ac_retval=0
1587else
1588  $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591	ac_retval=1
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_c_try_cpp LINENO
1599# ----------------------
1600# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601ac_fn_c_try_cpp ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  if { { ac_try="$ac_cpp conftest.$ac_ext"
1605case "(($ac_try" in
1606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607  *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612  ac_status=$?
1613  if test -s conftest.err; then
1614    grep -v '^ *+' conftest.err >conftest.er1
1615    cat conftest.er1 >&5
1616    mv -f conftest.er1 conftest.err
1617  fi
1618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619  test $ac_status = 0; } > conftest.i && {
1620	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621	 test ! -s conftest.err
1622       }; then :
1623  ac_retval=0
1624else
1625  $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628    ac_retval=1
1629fi
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631  as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_cpp
1634
1635# ac_fn_c_try_link LINENO
1636# -----------------------
1637# Try to link conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_link ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  rm -f conftest.$ac_objext conftest$ac_exeext
1642  if { { ac_try="$ac_link"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649  (eval "$ac_link") 2>conftest.err
1650  ac_status=$?
1651  if test -s conftest.err; then
1652    grep -v '^ *+' conftest.err >conftest.er1
1653    cat conftest.er1 >&5
1654    mv -f conftest.er1 conftest.err
1655  fi
1656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; } && {
1658	 test -z "$ac_c_werror_flag" ||
1659	 test ! -s conftest.err
1660       } && test -s conftest$ac_exeext && {
1661	 test "$cross_compiling" = yes ||
1662	 test -x conftest$ac_exeext
1663       }; then :
1664  ac_retval=0
1665else
1666  $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669	ac_retval=1
1670fi
1671  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1672  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1673  # interfere with the next link command; also delete a directory that is
1674  # left behind by Apple's compiler.  We do this before executing the actions.
1675  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677  as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_link
1680
1681# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1682# -------------------------------------------------------
1683# Tests whether HEADER exists and can be compiled using the include files in
1684# INCLUDES, setting the cache variable VAR accordingly.
1685ac_fn_c_check_header_compile ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
1690if eval \${$3+:} false; then :
1691  $as_echo_n "(cached) " >&6
1692else
1693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h.  */
1695$4
1696#include <$2>
1697_ACEOF
1698if ac_fn_c_try_compile "$LINENO"; then :
1699  eval "$3=yes"
1700else
1701  eval "$3=no"
1702fi
1703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704fi
1705eval ac_res=\$$3
1706	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707$as_echo "$ac_res" >&6; }
1708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710} # ac_fn_c_check_header_compile
1711
1712# ac_fn_c_try_run LINENO
1713# ----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715# that executables *can* be run.
1716ac_fn_c_try_run ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722  *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726  (eval "$ac_link") 2>&5
1727  ac_status=$?
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730  { { case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_try") 2>&5
1737  ac_status=$?
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; }; }; then :
1740  ac_retval=0
1741else
1742  $as_echo "$as_me: program exited with status $ac_status" >&5
1743       $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746       ac_retval=$ac_status
1747fi
1748  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_run
1753
1754# ac_fn_c_check_func LINENO FUNC VAR
1755# ----------------------------------
1756# Tests whether FUNC exists, setting the cache variable VAR accordingly
1757ac_fn_c_check_func ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if eval \${$3+:} false; then :
1763  $as_echo_n "(cached) " >&6
1764else
1765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1769#define $2 innocuous_$2
1770
1771/* System header to define __stub macros and hopefully few prototypes,
1772    which can conflict with char $2 (); below.
1773    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774    <limits.h> exists even on freestanding compilers.  */
1775
1776#ifdef __STDC__
1777# include <limits.h>
1778#else
1779# include <assert.h>
1780#endif
1781
1782#undef $2
1783
1784/* Override any GCC internal prototype to avoid an error.
1785   Use char because int might match the return type of a GCC
1786   builtin and then its argument prototype would still apply.  */
1787#ifdef __cplusplus
1788extern "C"
1789#endif
1790char $2 ();
1791/* The GNU C library defines this for functions which it implements
1792    to always fail with ENOSYS.  Some functions are actually named
1793    something starting with __ and the normal name is an alias.  */
1794#if defined __stub_$2 || defined __stub___$2
1795choke me
1796#endif
1797
1798int
1799main ()
1800{
1801return $2 ();
1802  ;
1803  return 0;
1804}
1805_ACEOF
1806if ac_fn_c_try_link "$LINENO"; then :
1807  eval "$3=yes"
1808else
1809  eval "$3=no"
1810fi
1811rm -f core conftest.err conftest.$ac_objext \
1812    conftest$ac_exeext conftest.$ac_ext
1813fi
1814eval ac_res=\$$3
1815	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819} # ac_fn_c_check_func
1820
1821# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1822# -------------------------------------------------------
1823# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1824# the include files in INCLUDES and setting the cache variable VAR
1825# accordingly.
1826ac_fn_c_check_header_mongrel ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  if eval \${$3+:} false; then :
1830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if eval \${$3+:} false; then :
1833  $as_echo_n "(cached) " >&6
1834fi
1835eval ac_res=\$$3
1836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837$as_echo "$ac_res" >&6; }
1838else
1839  # Is the header compilable?
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1841$as_echo_n "checking $2 usability... " >&6; }
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844$4
1845#include <$2>
1846_ACEOF
1847if ac_fn_c_try_compile "$LINENO"; then :
1848  ac_header_compiler=yes
1849else
1850  ac_header_compiler=no
1851fi
1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1854$as_echo "$ac_header_compiler" >&6; }
1855
1856# Is the header present?
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1858$as_echo_n "checking $2 presence... " >&6; }
1859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h.  */
1861#include <$2>
1862_ACEOF
1863if ac_fn_c_try_cpp "$LINENO"; then :
1864  ac_header_preproc=yes
1865else
1866  ac_header_preproc=no
1867fi
1868rm -f conftest.err conftest.i conftest.$ac_ext
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1870$as_echo "$ac_header_preproc" >&6; }
1871
1872# So?  What about this header?
1873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1874  yes:no: )
1875    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1876$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879    ;;
1880  no:yes:* )
1881    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1882$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1884$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1886$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1888$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891    ;;
1892esac
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  eval "$3=\$ac_header_compiler"
1899fi
1900eval ac_res=\$$3
1901	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902$as_echo "$ac_res" >&6; }
1903fi
1904  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906} # ac_fn_c_check_header_mongrel
1907
1908# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1909# ---------------------------------------------
1910# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1911# accordingly.
1912ac_fn_c_check_decl ()
1913{
1914  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915  as_decl_name=`echo $2|sed 's/ *(.*//'`
1916  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1918$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1919if eval \${$3+:} false; then :
1920  $as_echo_n "(cached) " >&6
1921else
1922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924$4
1925int
1926main ()
1927{
1928#ifndef $as_decl_name
1929#ifdef __cplusplus
1930  (void) $as_decl_use;
1931#else
1932  (void) $as_decl_name;
1933#endif
1934#endif
1935
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941  eval "$3=yes"
1942else
1943  eval "$3=no"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_decl
1953
1954# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1955# --------------------------------------------
1956# Tries to find the compile-time value of EXPR in a program that includes
1957# INCLUDES, setting VAR accordingly. Returns whether the value could be
1958# computed
1959ac_fn_c_compute_int ()
1960{
1961  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962  if test "$cross_compiling" = yes; then
1963    # Depending upon the size, compute the lo and hi bounds.
1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966$4
1967int
1968main ()
1969{
1970static int test_array [1 - 2 * !(($2) >= 0)];
1971test_array [0] = 0;
1972return test_array [0];
1973
1974  ;
1975  return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"; then :
1979  ac_lo=0 ac_mid=0
1980  while :; do
1981    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h.  */
1983$4
1984int
1985main ()
1986{
1987static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988test_array [0] = 0;
1989return test_array [0];
1990
1991  ;
1992  return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996  ac_hi=$ac_mid; break
1997else
1998  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1999			if test $ac_lo -le $ac_mid; then
2000			  ac_lo= ac_hi=
2001			  break
2002			fi
2003			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006  done
2007else
2008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h.  */
2010$4
2011int
2012main ()
2013{
2014static int test_array [1 - 2 * !(($2) < 0)];
2015test_array [0] = 0;
2016return test_array [0];
2017
2018  ;
2019  return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023  ac_hi=-1 ac_mid=-1
2024  while :; do
2025    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h.  */
2027$4
2028int
2029main ()
2030{
2031static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2032test_array [0] = 0;
2033return test_array [0];
2034
2035  ;
2036  return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040  ac_lo=$ac_mid; break
2041else
2042  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2043			if test $ac_mid -le $ac_hi; then
2044			  ac_lo= ac_hi=
2045			  break
2046			fi
2047			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050  done
2051else
2052  ac_lo= ac_hi=
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057# Binary search between lo and hi bounds.
2058while test "x$ac_lo" != "x$ac_hi"; do
2059  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062$4
2063int
2064main ()
2065{
2066static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067test_array [0] = 0;
2068return test_array [0];
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075  ac_hi=$ac_mid
2076else
2077  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080done
2081case $ac_lo in #((
2082?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2083'') ac_retval=1 ;;
2084esac
2085  else
2086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089static long int longval () { return $2; }
2090static unsigned long int ulongval () { return $2; }
2091#include <stdio.h>
2092#include <stdlib.h>
2093int
2094main ()
2095{
2096
2097  FILE *f = fopen ("conftest.val", "w");
2098  if (! f)
2099    return 1;
2100  if (($2) < 0)
2101    {
2102      long int i = longval ();
2103      if (i != ($2))
2104	return 1;
2105      fprintf (f, "%ld", i);
2106    }
2107  else
2108    {
2109      unsigned long int i = ulongval ();
2110      if (i != ($2))
2111	return 1;
2112      fprintf (f, "%lu", i);
2113    }
2114  /* Do not output a trailing newline, as this causes \r\n confusion
2115     on some platforms.  */
2116  return ferror (f) || fclose (f) != 0;
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_run "$LINENO"; then :
2123  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2124else
2125  ac_retval=1
2126fi
2127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2128  conftest.$ac_objext conftest.beam conftest.$ac_ext
2129rm -f conftest.val
2130
2131  fi
2132  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133  as_fn_set_status $ac_retval
2134
2135} # ac_fn_c_compute_int
2136
2137# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2138# -------------------------------------------
2139# Tests whether TYPE exists after having included INCLUDES, setting cache
2140# variable VAR accordingly.
2141ac_fn_c_check_type ()
2142{
2143  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145$as_echo_n "checking for $2... " >&6; }
2146if eval \${$3+:} false; then :
2147  $as_echo_n "(cached) " >&6
2148else
2149  eval "$3=no"
2150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h.  */
2152$4
2153int
2154main ()
2155{
2156if (sizeof ($2))
2157	 return 0;
2158  ;
2159  return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h.  */
2165$4
2166int
2167main ()
2168{
2169if (sizeof (($2)))
2170	    return 0;
2171  ;
2172  return 0;
2173}
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176
2177else
2178  eval "$3=yes"
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183fi
2184eval ac_res=\$$3
2185	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186$as_echo "$ac_res" >&6; }
2187  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188
2189} # ac_fn_c_check_type
2190
2191# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2192# ----------------------------------------------------
2193# Tries to find if the field MEMBER exists in type AGGR, after including
2194# INCLUDES, setting cache variable VAR accordingly.
2195ac_fn_c_check_member ()
2196{
2197  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2199$as_echo_n "checking for $2.$3... " >&6; }
2200if eval \${$4+:} false; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h.  */
2205$5
2206int
2207main ()
2208{
2209static $2 ac_aggr;
2210if (ac_aggr.$3)
2211return 0;
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217  eval "$4=yes"
2218else
2219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221$5
2222int
2223main ()
2224{
2225static $2 ac_aggr;
2226if (sizeof ac_aggr.$3)
2227return 0;
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  eval "$4=yes"
2234else
2235  eval "$4=no"
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238fi
2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240fi
2241eval ac_res=\$$4
2242	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245
2246} # ac_fn_c_check_member
2247cat >config.log <<_ACEOF
2248This file contains any messages produced by compilers while
2249running configure, to aid debugging if configure makes a mistake.
2250
2251It was created by $as_me, which was
2252generated by GNU Autoconf 2.69.  Invocation command line was
2253
2254  $ $0 $@
2255
2256_ACEOF
2257exec 5>>config.log
2258{
2259cat <<_ASUNAME
2260## --------- ##
2261## Platform. ##
2262## --------- ##
2263
2264hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268uname -v = `(uname -v) 2>/dev/null || echo unknown`
2269
2270/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2272
2273/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2274/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2275/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2277/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2278/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2279/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2280
2281_ASUNAME
2282
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286  IFS=$as_save_IFS
2287  test -z "$as_dir" && as_dir=.
2288    $as_echo "PATH: $as_dir"
2289  done
2290IFS=$as_save_IFS
2291
2292} >&5
2293
2294cat >&5 <<_ACEOF
2295
2296
2297## ----------- ##
2298## Core tests. ##
2299## ----------- ##
2300
2301_ACEOF
2302
2303
2304# Keep a trace of the command line.
2305# Strip out --no-create and --no-recursion so they do not pile up.
2306# Strip out --silent because we don't want to record it for future runs.
2307# Also quote any args containing shell meta-characters.
2308# Make two passes to allow for proper duplicate-argument suppression.
2309ac_configure_args=
2310ac_configure_args0=
2311ac_configure_args1=
2312ac_must_keep_next=false
2313for ac_pass in 1 2
2314do
2315  for ac_arg
2316  do
2317    case $ac_arg in
2318    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2319    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2320    | -silent | --silent | --silen | --sile | --sil)
2321      continue ;;
2322    *\'*)
2323      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2324    esac
2325    case $ac_pass in
2326    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2327    2)
2328      as_fn_append ac_configure_args1 " '$ac_arg'"
2329      if test $ac_must_keep_next = true; then
2330	ac_must_keep_next=false # Got value, back to normal.
2331      else
2332	case $ac_arg in
2333	  *=* | --config-cache | -C | -disable-* | --disable-* \
2334	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2335	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2336	  | -with-* | --with-* | -without-* | --without-* | --x)
2337	    case "$ac_configure_args0 " in
2338	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2339	    esac
2340	    ;;
2341	  -* ) ac_must_keep_next=true ;;
2342	esac
2343      fi
2344      as_fn_append ac_configure_args " '$ac_arg'"
2345      ;;
2346    esac
2347  done
2348done
2349{ ac_configure_args0=; unset ac_configure_args0;}
2350{ ac_configure_args1=; unset ac_configure_args1;}
2351
2352# When interrupted or exit'd, cleanup temporary files, and complete
2353# config.log.  We remove comments because anyway the quotes in there
2354# would cause problems or look ugly.
2355# WARNING: Use '\'' to represent an apostrophe within the trap.
2356# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2357trap 'exit_status=$?
2358  # Save into config.log some information that might help in debugging.
2359  {
2360    echo
2361
2362    $as_echo "## ---------------- ##
2363## Cache variables. ##
2364## ---------------- ##"
2365    echo
2366    # The following way of writing the cache mishandles newlines in values,
2367(
2368  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369    eval ac_val=\$$ac_var
2370    case $ac_val in #(
2371    *${as_nl}*)
2372      case $ac_var in #(
2373      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375      esac
2376      case $ac_var in #(
2377      _ | IFS | as_nl) ;; #(
2378      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379      *) { eval $ac_var=; unset $ac_var;} ;;
2380      esac ;;
2381    esac
2382  done
2383  (set) 2>&1 |
2384    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385    *${as_nl}ac_space=\ *)
2386      sed -n \
2387	"s/'\''/'\''\\\\'\'''\''/g;
2388	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389      ;; #(
2390    *)
2391      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392      ;;
2393    esac |
2394    sort
2395)
2396    echo
2397
2398    $as_echo "## ----------------- ##
2399## Output variables. ##
2400## ----------------- ##"
2401    echo
2402    for ac_var in $ac_subst_vars
2403    do
2404      eval ac_val=\$$ac_var
2405      case $ac_val in
2406      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407      esac
2408      $as_echo "$ac_var='\''$ac_val'\''"
2409    done | sort
2410    echo
2411
2412    if test -n "$ac_subst_files"; then
2413      $as_echo "## ------------------- ##
2414## File substitutions. ##
2415## ------------------- ##"
2416      echo
2417      for ac_var in $ac_subst_files
2418      do
2419	eval ac_val=\$$ac_var
2420	case $ac_val in
2421	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422	esac
2423	$as_echo "$ac_var='\''$ac_val'\''"
2424      done | sort
2425      echo
2426    fi
2427
2428    if test -s confdefs.h; then
2429      $as_echo "## ----------- ##
2430## confdefs.h. ##
2431## ----------- ##"
2432      echo
2433      cat confdefs.h
2434      echo
2435    fi
2436    test "$ac_signal" != 0 &&
2437      $as_echo "$as_me: caught signal $ac_signal"
2438    $as_echo "$as_me: exit $exit_status"
2439  } >&5
2440  rm -f core *.core core.conftest.* &&
2441    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442    exit $exit_status
2443' 0
2444for ac_signal in 1 2 13 15; do
2445  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446done
2447ac_signal=0
2448
2449# confdefs.h avoids OS command line length limits that DEFS can exceed.
2450rm -f -r conftest* confdefs.h
2451
2452$as_echo "/* confdefs.h */" > confdefs.h
2453
2454# Predefined preprocessor variables.
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_NAME "$PACKAGE_NAME"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_VERSION "$PACKAGE_VERSION"
2466_ACEOF
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_STRING "$PACKAGE_STRING"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_URL "$PACKAGE_URL"
2478_ACEOF
2479
2480
2481# Let the site file select an alternate cache file if it wants to.
2482# Prefer an explicitly selected file to automatically selected ones.
2483ac_site_file1=NONE
2484ac_site_file2=NONE
2485if test -n "$CONFIG_SITE"; then
2486  # We do not want a PATH search for config.site.
2487  case $CONFIG_SITE in #((
2488    -*)  ac_site_file1=./$CONFIG_SITE;;
2489    */*) ac_site_file1=$CONFIG_SITE;;
2490    *)   ac_site_file1=./$CONFIG_SITE;;
2491  esac
2492elif test "x$prefix" != xNONE; then
2493  ac_site_file1=$prefix/share/config.site
2494  ac_site_file2=$prefix/etc/config.site
2495else
2496  ac_site_file1=$ac_default_prefix/share/config.site
2497  ac_site_file2=$ac_default_prefix/etc/config.site
2498fi
2499for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500do
2501  test "x$ac_site_file" = xNONE && continue
2502  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2503    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505    sed 's/^/| /' "$ac_site_file" >&5
2506    . "$ac_site_file" \
2507      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509as_fn_error $? "failed to load site script $ac_site_file
2510See \`config.log' for more details" "$LINENO" 5; }
2511  fi
2512done
2513
2514if test -r "$cache_file"; then
2515  # Some versions of bash will fail to source /dev/null (special files
2516  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2517  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2518    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519$as_echo "$as_me: loading cache $cache_file" >&6;}
2520    case $cache_file in
2521      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522      *)                      . "./$cache_file";;
2523    esac
2524  fi
2525else
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527$as_echo "$as_me: creating cache $cache_file" >&6;}
2528  >$cache_file
2529fi
2530
2531# Check that the precious variables saved in the cache have kept the same
2532# value.
2533ac_cache_corrupted=false
2534for ac_var in $ac_precious_vars; do
2535  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536  eval ac_new_set=\$ac_env_${ac_var}_set
2537  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538  eval ac_new_val=\$ac_env_${ac_var}_value
2539  case $ac_old_set,$ac_new_set in
2540    set,)
2541      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543      ac_cache_corrupted=: ;;
2544    ,set)
2545      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547      ac_cache_corrupted=: ;;
2548    ,);;
2549    *)
2550      if test "x$ac_old_val" != "x$ac_new_val"; then
2551	# differences in whitespace do not lead to failure.
2552	ac_old_val_w=`echo x $ac_old_val`
2553	ac_new_val_w=`echo x $ac_new_val`
2554	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557	  ac_cache_corrupted=:
2558	else
2559	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561	  eval $ac_var=\$ac_old_val
2562	fi
2563	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2564$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2565	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2566$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2567      fi;;
2568  esac
2569  # Pass precious variables to config.status.
2570  if test "$ac_new_set" = set; then
2571    case $ac_new_val in
2572    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573    *) ac_arg=$ac_var=$ac_new_val ;;
2574    esac
2575    case " $ac_configure_args " in
2576      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2577      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578    esac
2579  fi
2580done
2581if $ac_cache_corrupted; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2587fi
2588## -------------------- ##
2589## Main body of script. ##
2590## -------------------- ##
2591
2592ac_ext=c
2593ac_cpp='$CPP $CPPFLAGS'
2594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597
2598
2599
2600
2601
2602am__api_version='1.12'
2603
2604ac_aux_dir=
2605for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2606  if test -f "$ac_dir/install-sh"; then
2607    ac_aux_dir=$ac_dir
2608    ac_install_sh="$ac_aux_dir/install-sh -c"
2609    break
2610  elif test -f "$ac_dir/install.sh"; then
2611    ac_aux_dir=$ac_dir
2612    ac_install_sh="$ac_aux_dir/install.sh -c"
2613    break
2614  elif test -f "$ac_dir/shtool"; then
2615    ac_aux_dir=$ac_dir
2616    ac_install_sh="$ac_aux_dir/shtool install -c"
2617    break
2618  fi
2619done
2620if test -z "$ac_aux_dir"; then
2621  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2622fi
2623
2624# These three variables are undocumented and unsupported,
2625# and are intended to be withdrawn in a future Autoconf release.
2626# They can cause serious problems if a builder's source tree is in a directory
2627# whose full name contains unusual characters.
2628ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2629ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2630ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2631
2632
2633# Find a good install program.  We prefer a C program (faster),
2634# so one script is as good as another.  But avoid the broken or
2635# incompatible versions:
2636# SysV /etc/install, /usr/sbin/install
2637# SunOS /usr/etc/install
2638# IRIX /sbin/install
2639# AIX /bin/install
2640# AmigaOS /C/install, which installs bootblocks on floppy discs
2641# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644# OS/2's system install, which has a completely different semantic
2645# ./install, which can be erroneously created by make from ./install.sh.
2646# Reject install programs that cannot install multiple files.
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648$as_echo_n "checking for a BSD-compatible install... " >&6; }
2649if test -z "$INSTALL"; then
2650if ${ac_cv_path_install+:} false; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656  IFS=$as_save_IFS
2657  test -z "$as_dir" && as_dir=.
2658    # Account for people who put trailing slashes in PATH elements.
2659case $as_dir/ in #((
2660  ./ | .// | /[cC]/* | \
2661  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2663  /usr/ucb/* ) ;;
2664  *)
2665    # OSF1 and SCO ODT 3.0 have their own names for install.
2666    # Don't use installbsd from OSF since it installs stuff as root
2667    # by default.
2668    for ac_prog in ginstall scoinst install; do
2669      for ac_exec_ext in '' $ac_executable_extensions; do
2670	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2671	  if test $ac_prog = install &&
2672	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673	    # AIX install.  It has an incompatible calling convention.
2674	    :
2675	  elif test $ac_prog = install &&
2676	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677	    # program-specific install script used by HP pwplus--don't use.
2678	    :
2679	  else
2680	    rm -rf conftest.one conftest.two conftest.dir
2681	    echo one > conftest.one
2682	    echo two > conftest.two
2683	    mkdir conftest.dir
2684	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685	      test -s conftest.one && test -s conftest.two &&
2686	      test -s conftest.dir/conftest.one &&
2687	      test -s conftest.dir/conftest.two
2688	    then
2689	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690	      break 3
2691	    fi
2692	  fi
2693	fi
2694      done
2695    done
2696    ;;
2697esac
2698
2699  done
2700IFS=$as_save_IFS
2701
2702rm -rf conftest.one conftest.two conftest.dir
2703
2704fi
2705  if test "${ac_cv_path_install+set}" = set; then
2706    INSTALL=$ac_cv_path_install
2707  else
2708    # As a last resort, use the slow shell script.  Don't cache a
2709    # value for INSTALL within a source directory, because that will
2710    # break other packages using the cache if that directory is
2711    # removed, or if the value is a relative name.
2712    INSTALL=$ac_install_sh
2713  fi
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716$as_echo "$INSTALL" >&6; }
2717
2718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719# It thinks the first close brace ends the variable substitution.
2720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2721
2722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2723
2724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2725
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2727$as_echo_n "checking whether build environment is sane... " >&6; }
2728# Reject unsafe characters in $srcdir or the absolute working directory
2729# name.  Accept space and tab only in the latter.
2730am_lf='
2731'
2732case `pwd` in
2733  *[\\\"\#\$\&\'\`$am_lf]*)
2734    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2735esac
2736case $srcdir in
2737  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2738    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2739esac
2740
2741# Do 'set' in a subshell so we don't clobber the current shell's
2742# arguments.  Must try -L first in case configure is actually a
2743# symlink; some systems play weird games with the mod time of symlinks
2744# (eg FreeBSD returns the mod time of the symlink's containing
2745# directory).
2746if (
2747   am_has_slept=no
2748   for am_try in 1 2; do
2749     echo "timestamp, slept: $am_has_slept" > conftest.file
2750     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2751     if test "$*" = "X"; then
2752	# -L didn't work.
2753	set X `ls -t "$srcdir/configure" conftest.file`
2754     fi
2755     if test "$*" != "X $srcdir/configure conftest.file" \
2756	&& test "$*" != "X conftest.file $srcdir/configure"; then
2757
2758	# If neither matched, then we have a broken ls.  This can happen
2759	# if, for instance, CONFIG_SHELL is bash and it inherits a
2760	# broken ls alias from the environment.  This has actually
2761	# happened.  Such a system could not be considered "sane".
2762	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2763  alias in your environment" "$LINENO" 5
2764     fi
2765     if test "$2" = conftest.file || test $am_try -eq 2; then
2766       break
2767     fi
2768     # Just in case.
2769     sleep 1
2770     am_has_slept=yes
2771   done
2772   test "$2" = conftest.file
2773   )
2774then
2775   # Ok.
2776   :
2777else
2778   as_fn_error $? "newly created file is older than distributed files!
2779Check your system clock" "$LINENO" 5
2780fi
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782$as_echo "yes" >&6; }
2783# If we didn't sleep, we still need to ensure time stamps of config.status and
2784# generated files are strictly newer.
2785am_sleep_pid=
2786if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2787  ( sleep 1 ) &
2788  am_sleep_pid=$!
2789fi
2790
2791rm -f conftest.file
2792
2793test "$program_prefix" != NONE &&
2794  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2795# Use a double $ so make ignores it.
2796test "$program_suffix" != NONE &&
2797  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2798# Double any \ or $.
2799# By default was `s,x,x', remove it if useless.
2800ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2801program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2802
2803# expand $ac_aux_dir to an absolute path
2804am_aux_dir=`cd $ac_aux_dir && pwd`
2805
2806if test x"${MISSING+set}" != xset; then
2807  case $am_aux_dir in
2808  *\ * | *\	*)
2809    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2810  *)
2811    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2812  esac
2813fi
2814# Use eval to expand $SHELL
2815if eval "$MISSING --run true"; then
2816  am_missing_run="$MISSING --run "
2817else
2818  am_missing_run=
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2820$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2821fi
2822
2823if test x"${install_sh}" != xset; then
2824  case $am_aux_dir in
2825  *\ * | *\	*)
2826    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2827  *)
2828    install_sh="\${SHELL} $am_aux_dir/install-sh"
2829  esac
2830fi
2831
2832# Installed binaries are usually stripped using 'strip' when the user
2833# run "make install-strip".  However 'strip' might not be the right
2834# tool to use in cross-compilation environments, therefore Automake
2835# will honor the 'STRIP' environment variable to overrule this program.
2836if test "$cross_compiling" != no; then
2837  if test -n "$ac_tool_prefix"; then
2838  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2839set dummy ${ac_tool_prefix}strip; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_STRIP+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$STRIP"; then
2846  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853    for ac_exec_ext in '' $ac_executable_extensions; do
2854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865STRIP=$ac_cv_prog_STRIP
2866if test -n "$STRIP"; then
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2868$as_echo "$STRIP" >&6; }
2869else
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874
2875fi
2876if test -z "$ac_cv_prog_STRIP"; then
2877  ac_ct_STRIP=$STRIP
2878  # Extract the first word of "strip", so it can be a program name with args.
2879set dummy strip; ac_word=$2
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  if test -n "$ac_ct_STRIP"; then
2886  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891  IFS=$as_save_IFS
2892  test -z "$as_dir" && as_dir=.
2893    for ac_exec_ext in '' $ac_executable_extensions; do
2894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895    ac_cv_prog_ac_ct_STRIP="strip"
2896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897    break 2
2898  fi
2899done
2900  done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2906if test -n "$ac_ct_STRIP"; then
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2908$as_echo "$ac_ct_STRIP" >&6; }
2909else
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
2912fi
2913
2914  if test "x$ac_ct_STRIP" = x; then
2915    STRIP=":"
2916  else
2917    case $cross_compiling:$ac_tool_warned in
2918yes:)
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921ac_tool_warned=yes ;;
2922esac
2923    STRIP=$ac_ct_STRIP
2924  fi
2925else
2926  STRIP="$ac_cv_prog_STRIP"
2927fi
2928
2929fi
2930INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2931
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2933$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2934if test -z "$MKDIR_P"; then
2935  if ${ac_cv_path_mkdir+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_prog in mkdir gmkdir; do
2944	 for ac_exec_ext in '' $ac_executable_extensions; do
2945	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2946	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2947	     'mkdir (GNU coreutils) '* | \
2948	     'mkdir (coreutils) '* | \
2949	     'mkdir (fileutils) '4.1*)
2950	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2951	       break 3;;
2952	   esac
2953	 done
2954       done
2955  done
2956IFS=$as_save_IFS
2957
2958fi
2959
2960  test -d ./--version && rmdir ./--version
2961  if test "${ac_cv_path_mkdir+set}" = set; then
2962    MKDIR_P="$ac_cv_path_mkdir -p"
2963  else
2964    # As a last resort, use the slow shell script.  Don't cache a
2965    # value for MKDIR_P within a source directory, because that will
2966    # break other packages using the cache if that directory is
2967    # removed, or if the value is a relative name.
2968    MKDIR_P="$ac_install_sh -d"
2969  fi
2970fi
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2972$as_echo "$MKDIR_P" >&6; }
2973
2974for ac_prog in gawk mawk nawk awk
2975do
2976  # Extract the first word of "$ac_prog", so it can be a program name with args.
2977set dummy $ac_prog; ac_word=$2
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979$as_echo_n "checking for $ac_word... " >&6; }
2980if ${ac_cv_prog_AWK+:} false; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  if test -n "$AWK"; then
2984  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993    ac_cv_prog_AWK="$ac_prog"
2994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003AWK=$ac_cv_prog_AWK
3004if test -n "$AWK"; then
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006$as_echo "$AWK" >&6; }
3007else
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009$as_echo "no" >&6; }
3010fi
3011
3012
3013  test -n "$AWK" && break
3014done
3015
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3018set x ${MAKE-make}
3019ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3021  $as_echo_n "(cached) " >&6
3022else
3023  cat >conftest.make <<\_ACEOF
3024SHELL = /bin/sh
3025all:
3026	@echo '@@@%%%=$(MAKE)=@@@%%%'
3027_ACEOF
3028# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3029case `${MAKE-make} -f conftest.make 2>/dev/null` in
3030  *@@@%%%=?*=@@@%%%*)
3031    eval ac_cv_prog_make_${ac_make}_set=yes;;
3032  *)
3033    eval ac_cv_prog_make_${ac_make}_set=no;;
3034esac
3035rm -f conftest.make
3036fi
3037if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039$as_echo "yes" >&6; }
3040  SET_MAKE=
3041else
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044  SET_MAKE="MAKE=${MAKE-make}"
3045fi
3046
3047rm -rf .tst 2>/dev/null
3048mkdir .tst 2>/dev/null
3049if test -d .tst; then
3050  am__leading_dot=.
3051else
3052  am__leading_dot=_
3053fi
3054rmdir .tst 2>/dev/null
3055
3056if test "`cd $srcdir && pwd`" != "`pwd`"; then
3057  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3058  # is not polluted with repeated "-I."
3059  am__isrc=' -I$(srcdir)'
3060  # test to see if srcdir already configured
3061  if test -f $srcdir/config.status; then
3062    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3063  fi
3064fi
3065
3066# test whether we have cygpath
3067if test -z "$CYGPATH_W"; then
3068  if (cygpath --version) >/dev/null 2>/dev/null; then
3069    CYGPATH_W='cygpath -w'
3070  else
3071    CYGPATH_W=echo
3072  fi
3073fi
3074
3075
3076# Define the identity of the package.
3077
3078 PACKAGE=libevent
3079 VERSION=2.0.18-stable
3080
3081
3082cat >>confdefs.h <<_ACEOF
3083#define PACKAGE "$PACKAGE"
3084_ACEOF
3085
3086
3087cat >>confdefs.h <<_ACEOF
3088#define VERSION "$VERSION"
3089_ACEOF
3090
3091# Some tools Automake needs.
3092
3093ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3094
3095
3096AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3097
3098
3099AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3100
3101
3102AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3103
3104
3105MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3106
3107# For better backward compatibility.  To be removed once Automake 1.9.x
3108# dies out for good.  For more background, see:
3109# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3110# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3111mkdir_p='$(MKDIR_P)'
3112
3113# We need awk for the "check" target.  The system "awk" is bad on
3114# some platforms.
3115# Always define AMTAR for backward compatibility.  Yes, it's still used
3116# in the wild :-(  We should find a proper way to deprecate it ...
3117AMTAR='$${TAR-tar}'
3118
3119am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3120
3121
3122
3123
3124
3125# Check whether --enable-silent-rules was given.
3126if test "${enable_silent_rules+set}" = set; then :
3127  enableval=$enable_silent_rules;
3128fi
3129
3130case $enable_silent_rules in # (((
3131  yes) AM_DEFAULT_VERBOSITY=0;;
3132   no) AM_DEFAULT_VERBOSITY=1;;
3133    *) AM_DEFAULT_VERBOSITY=0;;
3134esac
3135am_make=${MAKE-make}
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3137$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3138if ${am_cv_make_support_nested_variables+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  if $as_echo 'TRUE=$(BAR$(V))
3142BAR0=false
3143BAR1=true
3144V=1
3145am__doit:
3146	@$(TRUE)
3147.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3148  am_cv_make_support_nested_variables=yes
3149else
3150  am_cv_make_support_nested_variables=no
3151fi
3152fi
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3154$as_echo "$am_cv_make_support_nested_variables" >&6; }
3155if test $am_cv_make_support_nested_variables = yes; then
3156    AM_V='$(V)'
3157  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3158else
3159  AM_V=$AM_DEFAULT_VERBOSITY
3160  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3161fi
3162AM_BACKSLASH='\'
3163
3164ac_config_headers="$ac_config_headers config.h"
3165
3166
3167$as_echo "#define NUMERIC_VERSION 0x02001200" >>confdefs.h
3168
3169
3170if test "$prefix" = "NONE"; then
3171   prefix="/usr/local"
3172fi
3173
3174# Make sure we can run config.sub.
3175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3176  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3177
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3179$as_echo_n "checking build system type... " >&6; }
3180if ${ac_cv_build+:} false; then :
3181  $as_echo_n "(cached) " >&6
3182else
3183  ac_build_alias=$build_alias
3184test "x$ac_build_alias" = x &&
3185  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3186test "x$ac_build_alias" = x &&
3187  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3188ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3189  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3190
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3193$as_echo "$ac_cv_build" >&6; }
3194case $ac_cv_build in
3195*-*-*) ;;
3196*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3197esac
3198build=$ac_cv_build
3199ac_save_IFS=$IFS; IFS='-'
3200set x $ac_cv_build
3201shift
3202build_cpu=$1
3203build_vendor=$2
3204shift; shift
3205# Remember, the first character of IFS is used to create $*,
3206# except with old shells:
3207build_os=$*
3208IFS=$ac_save_IFS
3209case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3210
3211
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3213$as_echo_n "checking host system type... " >&6; }
3214if ${ac_cv_host+:} false; then :
3215  $as_echo_n "(cached) " >&6
3216else
3217  if test "x$host_alias" = x; then
3218  ac_cv_host=$ac_cv_build
3219else
3220  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3221    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3222fi
3223
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3226$as_echo "$ac_cv_host" >&6; }
3227case $ac_cv_host in
3228*-*-*) ;;
3229*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3230esac
3231host=$ac_cv_host
3232ac_save_IFS=$IFS; IFS='-'
3233set x $ac_cv_host
3234shift
3235host_cpu=$1
3236host_vendor=$2
3237shift; shift
3238# Remember, the first character of IFS is used to create $*,
3239# except with old shells:
3240host_os=$*
3241IFS=$ac_save_IFS
3242case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3243
3244
3245
3246case "$host_os" in
3247
3248 osf5*)
3249    CFLAGS="$CFLAGS -D_OSF_SOURCE"
3250    ;;
3251esac
3252
3253ac_ext=c
3254ac_cpp='$CPP $CPPFLAGS'
3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258if test -n "$ac_tool_prefix"; then
3259  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3260set dummy ${ac_tool_prefix}gcc; ac_word=$2
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if ${ac_cv_prog_CC+:} false; then :
3264  $as_echo_n "(cached) " >&6
3265else
3266  if test -n "$CC"; then
3267  ac_cv_prog_CC="$CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274    for ac_exec_ext in '' $ac_executable_extensions; do
3275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278    break 2
3279  fi
3280done
3281  done
3282IFS=$as_save_IFS
3283
3284fi
3285fi
3286CC=$ac_cv_prog_CC
3287if test -n "$CC"; then
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289$as_echo "$CC" >&6; }
3290else
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295
3296fi
3297if test -z "$ac_cv_prog_CC"; then
3298  ac_ct_CC=$CC
3299  # Extract the first word of "gcc", so it can be a program name with args.
3300set dummy gcc; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
3303if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304  $as_echo_n "(cached) " >&6
3305else
3306  if test -n "$ac_ct_CC"; then
3307  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    for ac_exec_ext in '' $ac_executable_extensions; do
3315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316    ac_cv_prog_ac_ct_CC="gcc"
3317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318    break 2
3319  fi
3320done
3321  done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327if test -n "$ac_ct_CC"; then
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329$as_echo "$ac_ct_CC" >&6; }
3330else
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335  if test "x$ac_ct_CC" = x; then
3336    CC=""
3337  else
3338    case $cross_compiling:$ac_tool_warned in
3339yes:)
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342ac_tool_warned=yes ;;
3343esac
3344    CC=$ac_ct_CC
3345  fi
3346else
3347  CC="$ac_cv_prog_CC"
3348fi
3349
3350if test -z "$CC"; then
3351          if test -n "$ac_tool_prefix"; then
3352    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353set dummy ${ac_tool_prefix}cc; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if ${ac_cv_prog_CC+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  if test -n "$CC"; then
3360  ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_prog_CC="${ac_tool_prefix}cc"
3370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374  done
3375IFS=$as_save_IFS
3376
3377fi
3378fi
3379CC=$ac_cv_prog_CC
3380if test -n "$CC"; then
3381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382$as_echo "$CC" >&6; }
3383else
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386fi
3387
3388
3389  fi
3390fi
3391if test -z "$CC"; then
3392  # Extract the first word of "cc", so it can be a program name with args.
3393set dummy cc; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if ${ac_cv_prog_CC+:} false; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if test -n "$CC"; then
3400  ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402  ac_prog_rejected=no
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406  IFS=$as_save_IFS
3407  test -z "$as_dir" && as_dir=.
3408    for ac_exec_ext in '' $ac_executable_extensions; do
3409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411       ac_prog_rejected=yes
3412       continue
3413     fi
3414    ac_cv_prog_CC="cc"
3415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416    break 2
3417  fi
3418done
3419  done
3420IFS=$as_save_IFS
3421
3422if test $ac_prog_rejected = yes; then
3423  # We found a bogon in the path, so make sure we never use it.
3424  set dummy $ac_cv_prog_CC
3425  shift
3426  if test $# != 0; then
3427    # We chose a different compiler from the bogus one.
3428    # However, it has the same basename, so the bogon will be chosen
3429    # first if we set CC to just the basename; use the full file name.
3430    shift
3431    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432  fi
3433fi
3434fi
3435fi
3436CC=$ac_cv_prog_CC
3437if test -n "$CC"; then
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439$as_echo "$CC" >&6; }
3440else
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442$as_echo "no" >&6; }
3443fi
3444
3445
3446fi
3447if test -z "$CC"; then
3448  if test -n "$ac_tool_prefix"; then
3449  for ac_prog in cl.exe
3450  do
3451    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if ${ac_cv_prog_CC+:} false; then :
3456  $as_echo_n "(cached) " >&6
3457else
3458  if test -n "$CC"; then
3459  ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464  IFS=$as_save_IFS
3465  test -z "$as_dir" && as_dir=.
3466    for ac_exec_ext in '' $ac_executable_extensions; do
3467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473  done
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481$as_echo "$CC" >&6; }
3482else
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488    test -n "$CC" && break
3489  done
3490fi
3491if test -z "$CC"; then
3492  ac_ct_CC=$CC
3493  for ac_prog in cl.exe
3494do
3495  # Extract the first word of "$ac_prog", so it can be a program name with args.
3496set dummy $ac_prog; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_ac_ct_CC+:} false; then :
3500  $as_echo_n "(cached) " >&6
3501else
3502  if test -n "$ac_ct_CC"; then
3503  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508  IFS=$as_save_IFS
3509  test -z "$as_dir" && as_dir=.
3510    for ac_exec_ext in '' $ac_executable_extensions; do
3511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512    ac_cv_prog_ac_ct_CC="$ac_prog"
3513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514    break 2
3515  fi
3516done
3517  done
3518IFS=$as_save_IFS
3519
3520fi
3521fi
3522ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523if test -n "$ac_ct_CC"; then
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525$as_echo "$ac_ct_CC" >&6; }
3526else
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529fi
3530
3531
3532  test -n "$ac_ct_CC" && break
3533done
3534
3535  if test "x$ac_ct_CC" = x; then
3536    CC=""
3537  else
3538    case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542ac_tool_warned=yes ;;
3543esac
3544    CC=$ac_ct_CC
3545  fi
3546fi
3547
3548fi
3549
3550
3551test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553as_fn_error $? "no acceptable C compiler found in \$PATH
3554See \`config.log' for more details" "$LINENO" 5; }
3555
3556# Provide some information about the compiler.
3557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3558set X $ac_compile
3559ac_compiler=$2
3560for ac_option in --version -v -V -qversion; do
3561  { { ac_try="$ac_compiler $ac_option >&5"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569  ac_status=$?
3570  if test -s conftest.err; then
3571    sed '10a\
3572... rest of stderr output deleted ...
3573         10q' conftest.err >conftest.er1
3574    cat conftest.er1 >&5
3575  fi
3576  rm -f conftest.er1 conftest.err
3577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578  test $ac_status = 0; }
3579done
3580
3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592ac_clean_files_save=$ac_clean_files
3593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3594# Try to create an executable without -o first, disregard a.out.
3595# It will help us diagnose broken compilers, and finding out an intuition
3596# of exeext.
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598$as_echo_n "checking whether the C compiler works... " >&6; }
3599ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600
3601# The possible output files:
3602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603
3604ac_rmfiles=
3605for ac_file in $ac_files
3606do
3607  case $ac_file in
3608    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3610  esac
3611done
3612rm -f $ac_rmfiles
3613
3614if { { ac_try="$ac_link_default"
3615case "(($ac_try" in
3616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617  *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620$as_echo "$ac_try_echo"; } >&5
3621  (eval "$ac_link_default") 2>&5
3622  ac_status=$?
3623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624  test $ac_status = 0; }; then :
3625  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3627# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3628# so that the user can short-circuit this test for compilers unknown to
3629# Autoconf.
3630for ac_file in $ac_files ''
3631do
3632  test -f "$ac_file" || continue
3633  case $ac_file in
3634    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635	;;
3636    [ab].out )
3637	# We found the default executable, but exeext='' is most
3638	# certainly right.
3639	break;;
3640    *.* )
3641	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642	then :; else
3643	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644	fi
3645	# We set ac_cv_exeext here because the later test for it is not
3646	# safe: cross compilers may not add the suffix if given an `-o'
3647	# argument, so we may need to know it at that point already.
3648	# Even if this section looks crufty: it has the advantage of
3649	# actually working.
3650	break;;
3651    * )
3652	break;;
3653  esac
3654done
3655test "$ac_cv_exeext" = no && ac_cv_exeext=
3656
3657else
3658  ac_file=''
3659fi
3660if test -z "$ac_file"; then :
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663$as_echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668as_fn_error 77 "C compiler cannot create executables
3669See \`config.log' for more details" "$LINENO" 5; }
3670else
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672$as_echo "yes" >&6; }
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3675$as_echo_n "checking for C compiler default output file name... " >&6; }
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3677$as_echo "$ac_file" >&6; }
3678ac_exeext=$ac_cv_exeext
3679
3680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3681ac_clean_files=$ac_clean_files_save
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3683$as_echo_n "checking for suffix of executables... " >&6; }
3684if { { ac_try="$ac_link"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690$as_echo "$ac_try_echo"; } >&5
3691  (eval "$ac_link") 2>&5
3692  ac_status=$?
3693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694  test $ac_status = 0; }; then :
3695  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3696# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3697# work properly (i.e., refer to `conftest.exe'), while it won't with
3698# `rm'.
3699for ac_file in conftest.exe conftest conftest.*; do
3700  test -f "$ac_file" || continue
3701  case $ac_file in
3702    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3703    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704	  break;;
3705    * ) break;;
3706  esac
3707done
3708else
3709  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3712See \`config.log' for more details" "$LINENO" 5; }
3713fi
3714rm -f conftest conftest$ac_cv_exeext
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3716$as_echo "$ac_cv_exeext" >&6; }
3717
3718rm -f conftest.$ac_ext
3719EXEEXT=$ac_cv_exeext
3720ac_exeext=$EXEEXT
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723#include <stdio.h>
3724int
3725main ()
3726{
3727FILE *f = fopen ("conftest.out", "w");
3728 return ferror (f) || fclose (f) != 0;
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734ac_clean_files="$ac_clean_files conftest.out"
3735# Check that the compiler produces executables we can run.  If not, either
3736# the compiler is broken, or we cross compile.
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3738$as_echo_n "checking whether we are cross compiling... " >&6; }
3739if test "$cross_compiling" != yes; then
3740  { { ac_try="$ac_link"
3741case "(($ac_try" in
3742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743  *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747  (eval "$ac_link") 2>&5
3748  ac_status=$?
3749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750  test $ac_status = 0; }
3751  if { ac_try='./conftest$ac_cv_exeext'
3752  { { case "(($ac_try" in
3753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754  *) ac_try_echo=$ac_try;;
3755esac
3756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757$as_echo "$ac_try_echo"; } >&5
3758  (eval "$ac_try") 2>&5
3759  ac_status=$?
3760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761  test $ac_status = 0; }; }; then
3762    cross_compiling=no
3763  else
3764    if test "$cross_compiling" = maybe; then
3765	cross_compiling=yes
3766    else
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 $? "cannot run C compiled programs.
3770If you meant to cross compile, use \`--host'.
3771See \`config.log' for more details" "$LINENO" 5; }
3772    fi
3773  fi
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3776$as_echo "$cross_compiling" >&6; }
3777
3778rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3779ac_clean_files=$ac_clean_files_save
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3781$as_echo_n "checking for suffix of object files... " >&6; }
3782if ${ac_cv_objext+:} false; then :
3783  $as_echo_n "(cached) " >&6
3784else
3785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h.  */
3787
3788int
3789main ()
3790{
3791
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796rm -f conftest.o conftest.obj
3797if { { ac_try="$ac_compile"
3798case "(($ac_try" in
3799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800  *) ac_try_echo=$ac_try;;
3801esac
3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803$as_echo "$ac_try_echo"; } >&5
3804  (eval "$ac_compile") 2>&5
3805  ac_status=$?
3806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807  test $ac_status = 0; }; then :
3808  for ac_file in conftest.o conftest.obj conftest.*; do
3809  test -f "$ac_file" || continue;
3810  case $ac_file in
3811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3812    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813       break;;
3814  esac
3815done
3816else
3817  $as_echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "cannot compute suffix of object files: cannot compile
3823See \`config.log' for more details" "$LINENO" 5; }
3824fi
3825rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3828$as_echo "$ac_cv_objext" >&6; }
3829OBJEXT=$ac_cv_objext
3830ac_objext=$OBJEXT
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3832$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3833if ${ac_cv_c_compiler_gnu+:} false; then :
3834  $as_echo_n "(cached) " >&6
3835else
3836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838
3839int
3840main ()
3841{
3842#ifndef __GNUC__
3843       choke me
3844#endif
3845
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850if ac_fn_c_try_compile "$LINENO"; then :
3851  ac_compiler_gnu=yes
3852else
3853  ac_compiler_gnu=no
3854fi
3855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3860$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3861if test $ac_compiler_gnu = yes; then
3862  GCC=yes
3863else
3864  GCC=
3865fi
3866ac_test_CFLAGS=${CFLAGS+set}
3867ac_save_CFLAGS=$CFLAGS
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3869$as_echo_n "checking whether $CC accepts -g... " >&6; }
3870if ${ac_cv_prog_cc_g+:} false; then :
3871  $as_echo_n "(cached) " >&6
3872else
3873  ac_save_c_werror_flag=$ac_c_werror_flag
3874   ac_c_werror_flag=yes
3875   ac_cv_prog_cc_g=no
3876   CFLAGS="-g"
3877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879
3880int
3881main ()
3882{
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888if ac_fn_c_try_compile "$LINENO"; then :
3889  ac_cv_prog_cc_g=yes
3890else
3891  CFLAGS=""
3892      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h.  */
3894
3895int
3896main ()
3897{
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_compile "$LINENO"; then :
3904
3905else
3906  ac_c_werror_flag=$ac_save_c_werror_flag
3907	 CFLAGS="-g"
3908	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h.  */
3910
3911int
3912main ()
3913{
3914
3915  ;
3916  return 0;
3917}
3918_ACEOF
3919if ac_fn_c_try_compile "$LINENO"; then :
3920  ac_cv_prog_cc_g=yes
3921fi
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923fi
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927   ac_c_werror_flag=$ac_save_c_werror_flag
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3930$as_echo "$ac_cv_prog_cc_g" >&6; }
3931if test "$ac_test_CFLAGS" = set; then
3932  CFLAGS=$ac_save_CFLAGS
3933elif test $ac_cv_prog_cc_g = yes; then
3934  if test "$GCC" = yes; then
3935    CFLAGS="-g -O2"
3936  else
3937    CFLAGS="-g"
3938  fi
3939else
3940  if test "$GCC" = yes; then
3941    CFLAGS="-O2"
3942  else
3943    CFLAGS=
3944  fi
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948if ${ac_cv_prog_cc_c89+:} false; then :
3949  $as_echo_n "(cached) " >&6
3950else
3951  ac_cv_prog_cc_c89=no
3952ac_save_CC=$CC
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955#include <stdarg.h>
3956#include <stdio.h>
3957struct stat;
3958/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3959struct buf { int x; };
3960FILE * (*rcsopen) (struct buf *, struct stat *, int);
3961static char *e (p, i)
3962     char **p;
3963     int i;
3964{
3965  return p[i];
3966}
3967static char *f (char * (*g) (char **, int), char **p, ...)
3968{
3969  char *s;
3970  va_list v;
3971  va_start (v,p);
3972  s = g (p, va_arg (v,int));
3973  va_end (v);
3974  return s;
3975}
3976
3977/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3978   function prototypes and stuff, but not '\xHH' hex character constants.
3979   These don't provoke an error unfortunately, instead are silently treated
3980   as 'x'.  The following induces an error, until -std is added to get
3981   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3982   array size at least.  It's necessary to write '\x00'==0 to get something
3983   that's true only with -std.  */
3984int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3985
3986/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3987   inside strings and character constants.  */
3988#define FOO(x) 'x'
3989int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3990
3991int test (int i, double x);
3992struct s1 {int (*f) (int a);};
3993struct s2 {int (*f) (double a);};
3994int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3995int argc;
3996char **argv;
3997int
3998main ()
3999{
4000return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4006	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4007do
4008  CC="$ac_save_CC $ac_arg"
4009  if ac_fn_c_try_compile "$LINENO"; then :
4010  ac_cv_prog_cc_c89=$ac_arg
4011fi
4012rm -f core conftest.err conftest.$ac_objext
4013  test "x$ac_cv_prog_cc_c89" != "xno" && break
4014done
4015rm -f conftest.$ac_ext
4016CC=$ac_save_CC
4017
4018fi
4019# AC_CACHE_VAL
4020case "x$ac_cv_prog_cc_c89" in
4021  x)
4022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023$as_echo "none needed" >&6; } ;;
4024  xno)
4025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4026$as_echo "unsupported" >&6; } ;;
4027  *)
4028    CC="$CC $ac_cv_prog_cc_c89"
4029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4030$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031esac
4032if test "x$ac_cv_prog_cc_c89" != xno; then :
4033
4034fi
4035
4036ac_ext=c
4037ac_cpp='$CPP $CPPFLAGS'
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041DEPDIR="${am__leading_dot}deps"
4042
4043ac_config_commands="$ac_config_commands depfiles"
4044
4045
4046am_make=${MAKE-make}
4047cat > confinc << 'END'
4048am__doit:
4049	@echo this is the am__doit target
4050.PHONY: am__doit
4051END
4052# If we don't find an include directive, just comment out the code.
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4054$as_echo_n "checking for style of include used by $am_make... " >&6; }
4055am__include="#"
4056am__quote=
4057_am_result=none
4058# First try GNU make style include.
4059echo "include confinc" > confmf
4060# Ignore all kinds of additional output from 'make'.
4061case `$am_make -s -f confmf 2> /dev/null` in #(
4062*the\ am__doit\ target*)
4063  am__include=include
4064  am__quote=
4065  _am_result=GNU
4066  ;;
4067esac
4068# Now try BSD make style include.
4069if test "$am__include" = "#"; then
4070   echo '.include "confinc"' > confmf
4071   case `$am_make -s -f confmf 2> /dev/null` in #(
4072   *the\ am__doit\ target*)
4073     am__include=.include
4074     am__quote="\""
4075     _am_result=BSD
4076     ;;
4077   esac
4078fi
4079
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4082$as_echo "$_am_result" >&6; }
4083rm -f confinc confmf
4084
4085# Check whether --enable-dependency-tracking was given.
4086if test "${enable_dependency_tracking+set}" = set; then :
4087  enableval=$enable_dependency_tracking;
4088fi
4089
4090if test "x$enable_dependency_tracking" != xno; then
4091  am_depcomp="$ac_aux_dir/depcomp"
4092  AMDEPBACKSLASH='\'
4093  am__nodep='_no'
4094fi
4095 if test "x$enable_dependency_tracking" != xno; then
4096  AMDEP_TRUE=
4097  AMDEP_FALSE='#'
4098else
4099  AMDEP_TRUE='#'
4100  AMDEP_FALSE=
4101fi
4102
4103
4104
4105depcc="$CC"   am_compiler_list=
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108$as_echo_n "checking dependency style of $depcc... " >&6; }
4109if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4110  $as_echo_n "(cached) " >&6
4111else
4112  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113  # We make a subdir and do the tests there.  Otherwise we can end up
4114  # making bogus files that we don't know about and never remove.  For
4115  # instance it was reported that on HP-UX the gcc test will end up
4116  # making a dummy file named 'D' -- because '-MD' means "put the output
4117  # in D".
4118  rm -rf conftest.dir
4119  mkdir conftest.dir
4120  # Copy depcomp to subdir because otherwise we won't find it if we're
4121  # using a relative directory.
4122  cp "$am_depcomp" conftest.dir
4123  cd conftest.dir
4124  # We will build objects and dependencies in a subdirectory because
4125  # it helps to detect inapplicable dependency modes.  For instance
4126  # both Tru64's cc and ICC support -MD to output dependencies as a
4127  # side effect of compilation, but ICC will put the dependencies in
4128  # the current directory while Tru64 will put them in the object
4129  # directory.
4130  mkdir sub
4131
4132  am_cv_CC_dependencies_compiler_type=none
4133  if test "$am_compiler_list" = ""; then
4134     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135  fi
4136  am__universal=false
4137  case " $depcc " in #(
4138     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4139     esac
4140
4141  for depmode in $am_compiler_list; do
4142    # Setup a source with many dependencies, because some compilers
4143    # like to wrap large dependency lists on column 80 (with \), and
4144    # we should not choose a depcomp mode which is confused by this.
4145    #
4146    # We need to recreate these files for each test, as the compiler may
4147    # overwrite some of them when testing with obscure command lines.
4148    # This happens at least with the AIX C compiler.
4149    : > sub/conftest.c
4150    for i in 1 2 3 4 5 6; do
4151      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4153      # Solaris 10 /bin/sh.
4154      echo '/* dummy */' > sub/conftst$i.h
4155    done
4156    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157
4158    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4159    # mode.  It turns out that the SunPro C++ compiler does not properly
4160    # handle '-M -o', and we need to detect this.  Also, some Intel
4161    # versions had trouble with output in subdirs.
4162    am__obj=sub/conftest.${OBJEXT-o}
4163    am__minus_obj="-o $am__obj"
4164    case $depmode in
4165    gcc)
4166      # This depmode causes a compiler race in universal mode.
4167      test "$am__universal" = false || continue
4168      ;;
4169    nosideeffect)
4170      # After this tag, mechanisms are not by side-effect, so they'll
4171      # only be used when explicitly requested.
4172      if test "x$enable_dependency_tracking" = xyes; then
4173	continue
4174      else
4175	break
4176      fi
4177      ;;
4178    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4179      # This compiler won't grok '-c -o', but also, the minuso test has
4180      # not run yet.  These depmodes are late enough in the game, and
4181      # so weak that their functioning should not be impacted.
4182      am__obj=conftest.${OBJEXT-o}
4183      am__minus_obj=
4184      ;;
4185    none) break ;;
4186    esac
4187    if depmode=$depmode \
4188       source=sub/conftest.c object=$am__obj \
4189       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191         >/dev/null 2>conftest.err &&
4192       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196      # icc doesn't choke on unknown options, it will just issue warnings
4197      # or remarks (even with -Werror).  So we grep stderr for any message
4198      # that says an option was ignored or not supported.
4199      # When given -MP, icc 7.0 and 7.1 complain thusly:
4200      #   icc: Command line warning: ignoring option '-M'; no argument required
4201      # The diagnosis changed in icc 8.0:
4202      #   icc: Command line remark: option '-MP' not supported
4203      if (grep 'ignoring option' conftest.err ||
4204          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205        am_cv_CC_dependencies_compiler_type=$depmode
4206        break
4207      fi
4208    fi
4209  done
4210
4211  cd ..
4212  rm -rf conftest.dir
4213else
4214  am_cv_CC_dependencies_compiler_type=none
4215fi
4216
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4221
4222 if
4223  test "x$enable_dependency_tracking" != xno \
4224  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225  am__fastdepCC_TRUE=
4226  am__fastdepCC_FALSE='#'
4227else
4228  am__fastdepCC_TRUE='#'
4229  am__fastdepCC_FALSE=
4230fi
4231
4232
4233if test "x$CC" != xcc; then
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4235$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4236else
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4238$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4239fi
4240set dummy $CC; ac_cc=`$as_echo "$2" |
4241		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4242if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h.  */
4247
4248int
4249main ()
4250{
4251
4252  ;
4253  return 0;
4254}
4255_ACEOF
4256# Make sure it works both with $CC and with simple cc.
4257# We do the test twice because some compilers refuse to overwrite an
4258# existing .o file with -o, though they will create one.
4259ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4260rm -f conftest2.*
4261if { { case "(($ac_try" in
4262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263  *) ac_try_echo=$ac_try;;
4264esac
4265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266$as_echo "$ac_try_echo"; } >&5
4267  (eval "$ac_try") 2>&5
4268  ac_status=$?
4269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270  test $ac_status = 0; } &&
4271   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273  *) ac_try_echo=$ac_try;;
4274esac
4275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276$as_echo "$ac_try_echo"; } >&5
4277  (eval "$ac_try") 2>&5
4278  ac_status=$?
4279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280  test $ac_status = 0; };
4281then
4282  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4283  if test "x$CC" != xcc; then
4284    # Test first that cc exists at all.
4285    if { ac_try='cc -c conftest.$ac_ext >&5'
4286  { { case "(($ac_try" in
4287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288  *) ac_try_echo=$ac_try;;
4289esac
4290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291$as_echo "$ac_try_echo"; } >&5
4292  (eval "$ac_try") 2>&5
4293  ac_status=$?
4294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295  test $ac_status = 0; }; }; then
4296      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4297      rm -f conftest2.*
4298      if { { case "(($ac_try" in
4299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300  *) ac_try_echo=$ac_try;;
4301esac
4302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303$as_echo "$ac_try_echo"; } >&5
4304  (eval "$ac_try") 2>&5
4305  ac_status=$?
4306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307  test $ac_status = 0; } &&
4308	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310  *) ac_try_echo=$ac_try;;
4311esac
4312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313$as_echo "$ac_try_echo"; } >&5
4314  (eval "$ac_try") 2>&5
4315  ac_status=$?
4316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317  test $ac_status = 0; };
4318      then
4319	# cc works too.
4320	:
4321      else
4322	# cc exists but doesn't like -o.
4323	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4324      fi
4325    fi
4326  fi
4327else
4328  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4329fi
4330rm -f core conftest*
4331
4332fi
4333if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335$as_echo "yes" >&6; }
4336else
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338$as_echo "no" >&6; }
4339
4340$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4341
4342fi
4343
4344# FIXME: we rely on the cache variable name because
4345# there is no other way.
4346set dummy $CC
4347am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4348eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4349if test "$am_t" != yes; then
4350   # Losing compiler, so override with the script.
4351   # FIXME: It is wrong to rewrite CC.
4352   # But if we don't then we get into trouble of one sort or another.
4353   # A longer-term fix would be to have automake use am__CC in this case,
4354   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4355   CC="$am_aux_dir/compile $CC"
4356fi
4357
4358
4359
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4361$as_echo_n "checking whether ln -s works... " >&6; }
4362LN_S=$as_ln_s
4363if test "$LN_S" = "ln -s"; then
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365$as_echo "yes" >&6; }
4366else
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4368$as_echo "no, using $LN_S" >&6; }
4369fi
4370
4371
4372
4373
4374ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4380$as_echo_n "checking how to run the C preprocessor... " >&6; }
4381# On Suns, sometimes $CPP names a directory.
4382if test -n "$CPP" && test -d "$CPP"; then
4383  CPP=
4384fi
4385if test -z "$CPP"; then
4386  if ${ac_cv_prog_CPP+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389      # Double quotes because CPP needs to be expanded
4390    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4391    do
4392      ac_preproc_ok=false
4393for ac_c_preproc_warn_flag in '' yes
4394do
4395  # Use a header file that comes with gcc, so configuring glibc
4396  # with a fresh cross-compiler works.
4397  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4398  # <limits.h> exists even on freestanding compilers.
4399  # On the NeXT, cc -E runs the code through the compiler's parser,
4400  # not just through cpp. "Syntax error" is here to catch this case.
4401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402/* end confdefs.h.  */
4403#ifdef __STDC__
4404# include <limits.h>
4405#else
4406# include <assert.h>
4407#endif
4408		     Syntax error
4409_ACEOF
4410if ac_fn_c_try_cpp "$LINENO"; then :
4411
4412else
4413  # Broken: fails on valid input.
4414continue
4415fi
4416rm -f conftest.err conftest.i conftest.$ac_ext
4417
4418  # OK, works on sane cases.  Now check whether nonexistent headers
4419  # can be detected and how.
4420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421/* end confdefs.h.  */
4422#include <ac_nonexistent.h>
4423_ACEOF
4424if ac_fn_c_try_cpp "$LINENO"; then :
4425  # Broken: success on invalid input.
4426continue
4427else
4428  # Passes both tests.
4429ac_preproc_ok=:
4430break
4431fi
4432rm -f conftest.err conftest.i conftest.$ac_ext
4433
4434done
4435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4436rm -f conftest.i conftest.err conftest.$ac_ext
4437if $ac_preproc_ok; then :
4438  break
4439fi
4440
4441    done
4442    ac_cv_prog_CPP=$CPP
4443
4444fi
4445  CPP=$ac_cv_prog_CPP
4446else
4447  ac_cv_prog_CPP=$CPP
4448fi
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4450$as_echo "$CPP" >&6; }
4451ac_preproc_ok=false
4452for ac_c_preproc_warn_flag in '' yes
4453do
4454  # Use a header file that comes with gcc, so configuring glibc
4455  # with a fresh cross-compiler works.
4456  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457  # <limits.h> exists even on freestanding compilers.
4458  # On the NeXT, cc -E runs the code through the compiler's parser,
4459  # not just through cpp. "Syntax error" is here to catch this case.
4460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462#ifdef __STDC__
4463# include <limits.h>
4464#else
4465# include <assert.h>
4466#endif
4467		     Syntax error
4468_ACEOF
4469if ac_fn_c_try_cpp "$LINENO"; then :
4470
4471else
4472  # Broken: fails on valid input.
4473continue
4474fi
4475rm -f conftest.err conftest.i conftest.$ac_ext
4476
4477  # OK, works on sane cases.  Now check whether nonexistent headers
4478  # can be detected and how.
4479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h.  */
4481#include <ac_nonexistent.h>
4482_ACEOF
4483if ac_fn_c_try_cpp "$LINENO"; then :
4484  # Broken: success on invalid input.
4485continue
4486else
4487  # Passes both tests.
4488ac_preproc_ok=:
4489break
4490fi
4491rm -f conftest.err conftest.i conftest.$ac_ext
4492
4493done
4494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4495rm -f conftest.i conftest.err conftest.$ac_ext
4496if $ac_preproc_ok; then :
4497
4498else
4499  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4502See \`config.log' for more details" "$LINENO" 5; }
4503fi
4504
4505ac_ext=c
4506ac_cpp='$CPP $CPPFLAGS'
4507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4513$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4514if ${ac_cv_path_GREP+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  if test -z "$GREP"; then
4518  ac_path_GREP_found=false
4519  # Loop through the user's path and test for each of PROGNAME-LIST
4520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4522do
4523  IFS=$as_save_IFS
4524  test -z "$as_dir" && as_dir=.
4525    for ac_prog in grep ggrep; do
4526    for ac_exec_ext in '' $ac_executable_extensions; do
4527      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4528      as_fn_executable_p "$ac_path_GREP" || continue
4529# Check for GNU ac_path_GREP and select it if it is found.
4530  # Check for GNU $ac_path_GREP
4531case `"$ac_path_GREP" --version 2>&1` in
4532*GNU*)
4533  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4534*)
4535  ac_count=0
4536  $as_echo_n 0123456789 >"conftest.in"
4537  while :
4538  do
4539    cat "conftest.in" "conftest.in" >"conftest.tmp"
4540    mv "conftest.tmp" "conftest.in"
4541    cp "conftest.in" "conftest.nl"
4542    $as_echo 'GREP' >> "conftest.nl"
4543    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4544    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4545    as_fn_arith $ac_count + 1 && ac_count=$as_val
4546    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4547      # Best one so far, save it but keep looking for a better one
4548      ac_cv_path_GREP="$ac_path_GREP"
4549      ac_path_GREP_max=$ac_count
4550    fi
4551    # 10*(2^10) chars as input seems more than enough
4552    test $ac_count -gt 10 && break
4553  done
4554  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555esac
4556
4557      $ac_path_GREP_found && break 3
4558    done
4559  done
4560  done
4561IFS=$as_save_IFS
4562  if test -z "$ac_cv_path_GREP"; then
4563    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4564  fi
4565else
4566  ac_cv_path_GREP=$GREP
4567fi
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4571$as_echo "$ac_cv_path_GREP" >&6; }
4572 GREP="$ac_cv_path_GREP"
4573
4574
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4576$as_echo_n "checking for egrep... " >&6; }
4577if ${ac_cv_path_EGREP+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4581   then ac_cv_path_EGREP="$GREP -E"
4582   else
4583     if test -z "$EGREP"; then
4584  ac_path_EGREP_found=false
4585  # Loop through the user's path and test for each of PROGNAME-LIST
4586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_prog in egrep; do
4592    for ac_exec_ext in '' $ac_executable_extensions; do
4593      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4594      as_fn_executable_p "$ac_path_EGREP" || continue
4595# Check for GNU ac_path_EGREP and select it if it is found.
4596  # Check for GNU $ac_path_EGREP
4597case `"$ac_path_EGREP" --version 2>&1` in
4598*GNU*)
4599  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4600*)
4601  ac_count=0
4602  $as_echo_n 0123456789 >"conftest.in"
4603  while :
4604  do
4605    cat "conftest.in" "conftest.in" >"conftest.tmp"
4606    mv "conftest.tmp" "conftest.in"
4607    cp "conftest.in" "conftest.nl"
4608    $as_echo 'EGREP' >> "conftest.nl"
4609    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611    as_fn_arith $ac_count + 1 && ac_count=$as_val
4612    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4613      # Best one so far, save it but keep looking for a better one
4614      ac_cv_path_EGREP="$ac_path_EGREP"
4615      ac_path_EGREP_max=$ac_count
4616    fi
4617    # 10*(2^10) chars as input seems more than enough
4618    test $ac_count -gt 10 && break
4619  done
4620  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621esac
4622
4623      $ac_path_EGREP_found && break 3
4624    done
4625  done
4626  done
4627IFS=$as_save_IFS
4628  if test -z "$ac_cv_path_EGREP"; then
4629    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4630  fi
4631else
4632  ac_cv_path_EGREP=$EGREP
4633fi
4634
4635   fi
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4638$as_echo "$ac_cv_path_EGREP" >&6; }
4639 EGREP="$ac_cv_path_EGREP"
4640
4641
4642if test $ac_cv_c_compiler_gnu = yes; then
4643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4644$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4645if ${ac_cv_prog_gcc_traditional+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648    ac_pattern="Autoconf.*'x'"
4649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h.  */
4651#include <sgtty.h>
4652Autoconf TIOCGETP
4653_ACEOF
4654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4655  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4656  ac_cv_prog_gcc_traditional=yes
4657else
4658  ac_cv_prog_gcc_traditional=no
4659fi
4660rm -f conftest*
4661
4662
4663  if test $ac_cv_prog_gcc_traditional = no; then
4664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h.  */
4666#include <termio.h>
4667Autoconf TCGETA
4668_ACEOF
4669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4671  ac_cv_prog_gcc_traditional=yes
4672fi
4673rm -f conftest*
4674
4675  fi
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4678$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4679  if test $ac_cv_prog_gcc_traditional = yes; then
4680    CC="$CC -traditional"
4681  fi
4682fi
4683
4684
4685if test "$GCC" = "yes" ; then
4686        # Enable many gcc warnings by default...
4687        CFLAGS="$CFLAGS -Wall"
4688	# And disable the strict-aliasing optimization, since it breaks
4689	# our sockaddr-handling code in strange ways.
4690	CFLAGS="$CFLAGS -fno-strict-aliasing"
4691fi
4692
4693# OS X Lion started deprecating the system openssl. Let's just disable
4694# all deprecation warnings on OS X.
4695case "$host_os" in
4696
4697 darwin*)
4698    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4699    ;;
4700esac
4701
4702# Check whether --enable-gcc-warnings was given.
4703if test "${enable_gcc_warnings+set}" = set; then :
4704  enableval=$enable_gcc_warnings;
4705fi
4706
4707# Check whether --enable-thread-support was given.
4708if test "${enable_thread_support+set}" = set; then :
4709  enableval=$enable_thread_support;
4710else
4711  enable_thread_support=yes
4712fi
4713
4714# Check whether --enable-malloc-replacement was given.
4715if test "${enable_malloc_replacement+set}" = set; then :
4716  enableval=$enable_malloc_replacement;
4717else
4718  enable_malloc_replacement=yes
4719fi
4720
4721# Check whether --enable-openssl was given.
4722if test "${enable_openssl+set}" = set; then :
4723  enableval=$enable_openssl;
4724else
4725  enable_openssl=yes
4726fi
4727
4728# Check whether --enable-debug-mode was given.
4729if test "${enable_debug_mode+set}" = set; then :
4730  enableval=$enable_debug_mode;
4731else
4732  enable_debug_mode=yes
4733fi
4734
4735# Check whether --enable-libevent-install was given.
4736if test "${enable_libevent_install+set}" = set; then :
4737  enableval=$enable_libevent_install;
4738else
4739  enable_libevent_install=yes
4740fi
4741
4742# Check whether --enable-libevent-regress was given.
4743if test "${enable_libevent_regress+set}" = set; then :
4744  enableval=$enable_libevent_regress;
4745else
4746  enable_libevent_regress=yes
4747fi
4748
4749# Check whether --enable-function-sections was given.
4750if test "${enable_function_sections+set}" = set; then :
4751  enableval=$enable_function_sections;
4752else
4753  enable_function_sections=no
4754fi
4755
4756
4757
4758case `pwd` in
4759  *\ * | *\	*)
4760    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4761$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4762esac
4763
4764
4765
4766macro_version='2.4'
4767macro_revision='1.3293'
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781ltmain="$ac_aux_dir/ltmain.sh"
4782
4783# Backslashify metacharacters that are still active within
4784# double-quoted strings.
4785sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4786
4787# Same as above, but do not quote variable references.
4788double_quote_subst='s/\(["`\\]\)/\\\1/g'
4789
4790# Sed substitution to delay expansion of an escaped shell variable in a
4791# double_quote_subst'ed string.
4792delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4793
4794# Sed substitution to delay expansion of an escaped single quote.
4795delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4796
4797# Sed substitution to avoid accidental globbing in evaled expressions
4798no_glob_subst='s/\*/\\\*/g'
4799
4800ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4801ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4802ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4805$as_echo_n "checking how to print strings... " >&6; }
4806# Test print first, because it will be a builtin if present.
4807if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4808   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4809  ECHO='print -r --'
4810elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4811  ECHO='printf %s\n'
4812else
4813  # Use this function as a fallback that always works.
4814  func_fallback_echo ()
4815  {
4816    eval 'cat <<_LTECHO_EOF
4817$1
4818_LTECHO_EOF'
4819  }
4820  ECHO='func_fallback_echo'
4821fi
4822
4823# func_echo_all arg...
4824# Invoke $ECHO with all args, space-separated.
4825func_echo_all ()
4826{
4827    $ECHO ""
4828}
4829
4830case "$ECHO" in
4831  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4832$as_echo "printf" >&6; } ;;
4833  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4834$as_echo "print -r" >&6; } ;;
4835  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4836$as_echo "cat" >&6; } ;;
4837esac
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4853$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4854if ${ac_cv_path_SED+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4858     for ac_i in 1 2 3 4 5 6 7; do
4859       ac_script="$ac_script$as_nl$ac_script"
4860     done
4861     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4862     { ac_script=; unset ac_script;}
4863     if test -z "$SED"; then
4864  ac_path_SED_found=false
4865  # Loop through the user's path and test for each of PROGNAME-LIST
4866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869  IFS=$as_save_IFS
4870  test -z "$as_dir" && as_dir=.
4871    for ac_prog in sed gsed; do
4872    for ac_exec_ext in '' $ac_executable_extensions; do
4873      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4874      as_fn_executable_p "$ac_path_SED" || continue
4875# Check for GNU ac_path_SED and select it if it is found.
4876  # Check for GNU $ac_path_SED
4877case `"$ac_path_SED" --version 2>&1` in
4878*GNU*)
4879  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4880*)
4881  ac_count=0
4882  $as_echo_n 0123456789 >"conftest.in"
4883  while :
4884  do
4885    cat "conftest.in" "conftest.in" >"conftest.tmp"
4886    mv "conftest.tmp" "conftest.in"
4887    cp "conftest.in" "conftest.nl"
4888    $as_echo '' >> "conftest.nl"
4889    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4890    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4891    as_fn_arith $ac_count + 1 && ac_count=$as_val
4892    if test $ac_count -gt ${ac_path_SED_max-0}; then
4893      # Best one so far, save it but keep looking for a better one
4894      ac_cv_path_SED="$ac_path_SED"
4895      ac_path_SED_max=$ac_count
4896    fi
4897    # 10*(2^10) chars as input seems more than enough
4898    test $ac_count -gt 10 && break
4899  done
4900  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901esac
4902
4903      $ac_path_SED_found && break 3
4904    done
4905  done
4906  done
4907IFS=$as_save_IFS
4908  if test -z "$ac_cv_path_SED"; then
4909    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4910  fi
4911else
4912  ac_cv_path_SED=$SED
4913fi
4914
4915fi
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4917$as_echo "$ac_cv_path_SED" >&6; }
4918 SED="$ac_cv_path_SED"
4919  rm -f conftest.sed
4920
4921test -z "$SED" && SED=sed
4922Xsed="$SED -e 1s/^X//"
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4935$as_echo_n "checking for fgrep... " >&6; }
4936if ${ac_cv_path_FGREP+:} false; then :
4937  $as_echo_n "(cached) " >&6
4938else
4939  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4940   then ac_cv_path_FGREP="$GREP -F"
4941   else
4942     if test -z "$FGREP"; then
4943  ac_path_FGREP_found=false
4944  # Loop through the user's path and test for each of PROGNAME-LIST
4945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4947do
4948  IFS=$as_save_IFS
4949  test -z "$as_dir" && as_dir=.
4950    for ac_prog in fgrep; do
4951    for ac_exec_ext in '' $ac_executable_extensions; do
4952      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4953      as_fn_executable_p "$ac_path_FGREP" || continue
4954# Check for GNU ac_path_FGREP and select it if it is found.
4955  # Check for GNU $ac_path_FGREP
4956case `"$ac_path_FGREP" --version 2>&1` in
4957*GNU*)
4958  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4959*)
4960  ac_count=0
4961  $as_echo_n 0123456789 >"conftest.in"
4962  while :
4963  do
4964    cat "conftest.in" "conftest.in" >"conftest.tmp"
4965    mv "conftest.tmp" "conftest.in"
4966    cp "conftest.in" "conftest.nl"
4967    $as_echo 'FGREP' >> "conftest.nl"
4968    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4969    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4970    as_fn_arith $ac_count + 1 && ac_count=$as_val
4971    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4972      # Best one so far, save it but keep looking for a better one
4973      ac_cv_path_FGREP="$ac_path_FGREP"
4974      ac_path_FGREP_max=$ac_count
4975    fi
4976    # 10*(2^10) chars as input seems more than enough
4977    test $ac_count -gt 10 && break
4978  done
4979  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4980esac
4981
4982      $ac_path_FGREP_found && break 3
4983    done
4984  done
4985  done
4986IFS=$as_save_IFS
4987  if test -z "$ac_cv_path_FGREP"; then
4988    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4989  fi
4990else
4991  ac_cv_path_FGREP=$FGREP
4992fi
4993
4994   fi
4995fi
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4997$as_echo "$ac_cv_path_FGREP" >&6; }
4998 FGREP="$ac_cv_path_FGREP"
4999
5000
5001test -z "$GREP" && GREP=grep
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021# Check whether --with-gnu-ld was given.
5022if test "${with_gnu_ld+set}" = set; then :
5023  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5024else
5025  with_gnu_ld=no
5026fi
5027
5028ac_prog=ld
5029if test "$GCC" = yes; then
5030  # Check if gcc -print-prog-name=ld gives a path.
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5032$as_echo_n "checking for ld used by $CC... " >&6; }
5033  case $host in
5034  *-*-mingw*)
5035    # gcc leaves a trailing carriage return which upsets mingw
5036    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5037  *)
5038    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5039  esac
5040  case $ac_prog in
5041    # Accept absolute paths.
5042    [\\/]* | ?:[\\/]*)
5043      re_direlt='/[^/][^/]*/\.\./'
5044      # Canonicalize the pathname of ld
5045      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5046      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5047	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5048      done
5049      test -z "$LD" && LD="$ac_prog"
5050      ;;
5051  "")
5052    # If it fails, then pretend we aren't using GCC.
5053    ac_prog=ld
5054    ;;
5055  *)
5056    # If it is relative, then search for the first ld in PATH.
5057    with_gnu_ld=unknown
5058    ;;
5059  esac
5060elif test "$with_gnu_ld" = yes; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5062$as_echo_n "checking for GNU ld... " >&6; }
5063else
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5065$as_echo_n "checking for non-GNU ld... " >&6; }
5066fi
5067if ${lt_cv_path_LD+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -z "$LD"; then
5071  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5072  for ac_dir in $PATH; do
5073    IFS="$lt_save_ifs"
5074    test -z "$ac_dir" && ac_dir=.
5075    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5076      lt_cv_path_LD="$ac_dir/$ac_prog"
5077      # Check to see if the program is GNU ld.  I'd rather use --version,
5078      # but apparently some variants of GNU ld only accept -v.
5079      # Break only if it was the GNU/non-GNU ld that we prefer.
5080      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5081      *GNU* | *'with BFD'*)
5082	test "$with_gnu_ld" != no && break
5083	;;
5084      *)
5085	test "$with_gnu_ld" != yes && break
5086	;;
5087      esac
5088    fi
5089  done
5090  IFS="$lt_save_ifs"
5091else
5092  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5093fi
5094fi
5095
5096LD="$lt_cv_path_LD"
5097if test -n "$LD"; then
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5099$as_echo "$LD" >&6; }
5100else
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103fi
5104test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5106$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5107if ${lt_cv_prog_gnu_ld+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5111case `$LD -v 2>&1 </dev/null` in
5112*GNU* | *'with BFD'*)
5113  lt_cv_prog_gnu_ld=yes
5114  ;;
5115*)
5116  lt_cv_prog_gnu_ld=no
5117  ;;
5118esac
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5121$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5122with_gnu_ld=$lt_cv_prog_gnu_ld
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5133$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5134if ${lt_cv_path_NM+:} false; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  if test -n "$NM"; then
5138  # Let the user override the test.
5139  lt_cv_path_NM="$NM"
5140else
5141  lt_nm_to_check="${ac_tool_prefix}nm"
5142  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5143    lt_nm_to_check="$lt_nm_to_check nm"
5144  fi
5145  for lt_tmp_nm in $lt_nm_to_check; do
5146    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5147    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5148      IFS="$lt_save_ifs"
5149      test -z "$ac_dir" && ac_dir=.
5150      tmp_nm="$ac_dir/$lt_tmp_nm"
5151      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5152	# Check to see if the nm accepts a BSD-compat flag.
5153	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5154	#   nm: unknown option "B" ignored
5155	# Tru64's nm complains that /dev/null is an invalid object file
5156	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5157	*/dev/null* | *'Invalid file or object type'*)
5158	  lt_cv_path_NM="$tmp_nm -B"
5159	  break
5160	  ;;
5161	*)
5162	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5163	  */dev/null*)
5164	    lt_cv_path_NM="$tmp_nm -p"
5165	    break
5166	    ;;
5167	  *)
5168	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5169	    continue # so that we can try to find one that supports BSD flags
5170	    ;;
5171	  esac
5172	  ;;
5173	esac
5174      fi
5175    done
5176    IFS="$lt_save_ifs"
5177  done
5178  : ${lt_cv_path_NM=no}
5179fi
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5182$as_echo "$lt_cv_path_NM" >&6; }
5183if test "$lt_cv_path_NM" != "no"; then
5184  NM="$lt_cv_path_NM"
5185else
5186  # Didn't find any BSD compatible name lister, look for dumpbin.
5187  if test -n "$DUMPBIN"; then :
5188    # Let the user override the test.
5189  else
5190    if test -n "$ac_tool_prefix"; then
5191  for ac_prog in dumpbin "link -dump"
5192  do
5193    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196$as_echo_n "checking for $ac_word... " >&6; }
5197if ${ac_cv_prog_DUMPBIN+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  if test -n "$DUMPBIN"; then
5201  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208    for ac_exec_ext in '' $ac_executable_extensions; do
5209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215  done
5216IFS=$as_save_IFS
5217
5218fi
5219fi
5220DUMPBIN=$ac_cv_prog_DUMPBIN
5221if test -n "$DUMPBIN"; then
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5223$as_echo "$DUMPBIN" >&6; }
5224else
5225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229
5230    test -n "$DUMPBIN" && break
5231  done
5232fi
5233if test -z "$DUMPBIN"; then
5234  ac_ct_DUMPBIN=$DUMPBIN
5235  for ac_prog in dumpbin "link -dump"
5236do
5237  # Extract the first word of "$ac_prog", so it can be a program name with args.
5238set dummy $ac_prog; ac_word=$2
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240$as_echo_n "checking for $ac_word... " >&6; }
5241if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  if test -n "$ac_ct_DUMPBIN"; then
5245  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5246else
5247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250  IFS=$as_save_IFS
5251  test -z "$as_dir" && as_dir=.
5252    for ac_exec_ext in '' $ac_executable_extensions; do
5253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256    break 2
5257  fi
5258done
5259  done
5260IFS=$as_save_IFS
5261
5262fi
5263fi
5264ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5265if test -n "$ac_ct_DUMPBIN"; then
5266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5267$as_echo "$ac_ct_DUMPBIN" >&6; }
5268else
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270$as_echo "no" >&6; }
5271fi
5272
5273
5274  test -n "$ac_ct_DUMPBIN" && break
5275done
5276
5277  if test "x$ac_ct_DUMPBIN" = x; then
5278    DUMPBIN=":"
5279  else
5280    case $cross_compiling:$ac_tool_warned in
5281yes:)
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284ac_tool_warned=yes ;;
5285esac
5286    DUMPBIN=$ac_ct_DUMPBIN
5287  fi
5288fi
5289
5290    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5291    *COFF*)
5292      DUMPBIN="$DUMPBIN -symbols"
5293      ;;
5294    *)
5295      DUMPBIN=:
5296      ;;
5297    esac
5298  fi
5299
5300  if test "$DUMPBIN" != ":"; then
5301    NM="$DUMPBIN"
5302  fi
5303fi
5304test -z "$NM" && NM=nm
5305
5306
5307
5308
5309
5310
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5312$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5313if ${lt_cv_nm_interface+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  lt_cv_nm_interface="BSD nm"
5317  echo "int some_variable = 0;" > conftest.$ac_ext
5318  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5319  (eval "$ac_compile" 2>conftest.err)
5320  cat conftest.err >&5
5321  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5322  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5323  cat conftest.err >&5
5324  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5325  cat conftest.out >&5
5326  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5327    lt_cv_nm_interface="MS dumpbin"
5328  fi
5329  rm -f conftest*
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5332$as_echo "$lt_cv_nm_interface" >&6; }
5333
5334# find the maximum length of command line arguments
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5336$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5337if ${lt_cv_sys_max_cmd_len+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340    i=0
5341  teststring="ABCD"
5342
5343  case $build_os in
5344  msdosdjgpp*)
5345    # On DJGPP, this test can blow up pretty badly due to problems in libc
5346    # (any single argument exceeding 2000 bytes causes a buffer overrun
5347    # during glob expansion).  Even if it were fixed, the result of this
5348    # check would be larger than it should be.
5349    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5350    ;;
5351
5352  gnu*)
5353    # Under GNU Hurd, this test is not required because there is
5354    # no limit to the length of command line arguments.
5355    # Libtool will interpret -1 as no limit whatsoever
5356    lt_cv_sys_max_cmd_len=-1;
5357    ;;
5358
5359  cygwin* | mingw* | cegcc*)
5360    # On Win9x/ME, this test blows up -- it succeeds, but takes
5361    # about 5 minutes as the teststring grows exponentially.
5362    # Worse, since 9x/ME are not pre-emptively multitasking,
5363    # you end up with a "frozen" computer, even though with patience
5364    # the test eventually succeeds (with a max line length of 256k).
5365    # Instead, let's just punt: use the minimum linelength reported by
5366    # all of the supported platforms: 8192 (on NT/2K/XP).
5367    lt_cv_sys_max_cmd_len=8192;
5368    ;;
5369
5370  mint*)
5371    # On MiNT this can take a long time and run out of memory.
5372    lt_cv_sys_max_cmd_len=8192;
5373    ;;
5374
5375  amigaos*)
5376    # On AmigaOS with pdksh, this test takes hours, literally.
5377    # So we just punt and use a minimum line length of 8192.
5378    lt_cv_sys_max_cmd_len=8192;
5379    ;;
5380
5381  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5382    # This has been around since 386BSD, at least.  Likely further.
5383    if test -x /sbin/sysctl; then
5384      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5385    elif test -x /usr/sbin/sysctl; then
5386      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5387    else
5388      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5389    fi
5390    # And add a safety zone
5391    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5392    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5393    ;;
5394
5395  interix*)
5396    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5397    lt_cv_sys_max_cmd_len=196608
5398    ;;
5399
5400  osf*)
5401    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5402    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5403    # nice to cause kernel panics so lets avoid the loop below.
5404    # First set a reasonable default.
5405    lt_cv_sys_max_cmd_len=16384
5406    #
5407    if test -x /sbin/sysconfig; then
5408      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5409        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5410      esac
5411    fi
5412    ;;
5413  sco3.2v5*)
5414    lt_cv_sys_max_cmd_len=102400
5415    ;;
5416  sysv5* | sco5v6* | sysv4.2uw2*)
5417    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5418    if test -n "$kargmax"; then
5419      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5420    else
5421      lt_cv_sys_max_cmd_len=32768
5422    fi
5423    ;;
5424  *)
5425    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5426    if test -n "$lt_cv_sys_max_cmd_len"; then
5427      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5428      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5429    else
5430      # Make teststring a little bigger before we do anything with it.
5431      # a 1K string should be a reasonable start.
5432      for i in 1 2 3 4 5 6 7 8 ; do
5433        teststring=$teststring$teststring
5434      done
5435      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5436      # If test is not a shell built-in, we'll probably end up computing a
5437      # maximum length that is only half of the actual maximum length, but
5438      # we can't tell.
5439      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5440	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5441	      test $i != 17 # 1/2 MB should be enough
5442      do
5443        i=`expr $i + 1`
5444        teststring=$teststring$teststring
5445      done
5446      # Only check the string length outside the loop.
5447      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5448      teststring=
5449      # Add a significant safety factor because C++ compilers can tack on
5450      # massive amounts of additional arguments before passing them to the
5451      # linker.  It appears as though 1/2 is a usable value.
5452      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453    fi
5454    ;;
5455  esac
5456
5457fi
5458
5459if test -n $lt_cv_sys_max_cmd_len ; then
5460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5461$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5462else
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5464$as_echo "none" >&6; }
5465fi
5466max_cmd_len=$lt_cv_sys_max_cmd_len
5467
5468
5469
5470
5471
5472
5473: ${CP="cp -f"}
5474: ${MV="mv -f"}
5475: ${RM="rm -f"}
5476
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5478$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5479# Try some XSI features
5480xsi_shell=no
5481( _lt_dummy="a/b/c"
5482  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5483      = c,a/b,b/c, \
5484    && eval 'test $(( 1 + 1 )) -eq 2 \
5485    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5486  && xsi_shell=yes
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5488$as_echo "$xsi_shell" >&6; }
5489
5490
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5492$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5493lt_shell_append=no
5494( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5495    >/dev/null 2>&1 \
5496  && lt_shell_append=yes
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5498$as_echo "$lt_shell_append" >&6; }
5499
5500
5501if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5502  lt_unset=unset
5503else
5504  lt_unset=false
5505fi
5506
5507
5508
5509
5510
5511# test EBCDIC or ASCII
5512case `echo X|tr X '\101'` in
5513 A) # ASCII based system
5514    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5515  lt_SP2NL='tr \040 \012'
5516  lt_NL2SP='tr \015\012 \040\040'
5517  ;;
5518 *) # EBCDIC based system
5519  lt_SP2NL='tr \100 \n'
5520  lt_NL2SP='tr \r\n \100\100'
5521  ;;
5522esac
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5533$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5534if ${lt_cv_to_host_file_cmd+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  case $host in
5538  *-*-mingw* )
5539    case $build in
5540      *-*-mingw* ) # actually msys
5541        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5542        ;;
5543      *-*-cygwin* )
5544        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5545        ;;
5546      * ) # otherwise, assume *nix
5547        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5548        ;;
5549    esac
5550    ;;
5551  *-*-cygwin* )
5552    case $build in
5553      *-*-mingw* ) # actually msys
5554        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5555        ;;
5556      *-*-cygwin* )
5557        lt_cv_to_host_file_cmd=func_convert_file_noop
5558        ;;
5559      * ) # otherwise, assume *nix
5560        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5561        ;;
5562    esac
5563    ;;
5564  * ) # unhandled hosts (and "normal" native builds)
5565    lt_cv_to_host_file_cmd=func_convert_file_noop
5566    ;;
5567esac
5568
5569fi
5570
5571to_host_file_cmd=$lt_cv_to_host_file_cmd
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5573$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5574
5575
5576
5577
5578
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5580$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5581if ${lt_cv_to_tool_file_cmd+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  #assume ordinary cross tools, or native build.
5585lt_cv_to_tool_file_cmd=func_convert_file_noop
5586case $host in
5587  *-*-mingw* )
5588    case $build in
5589      *-*-mingw* ) # actually msys
5590        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5591        ;;
5592    esac
5593    ;;
5594esac
5595
5596fi
5597
5598to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5600$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5601
5602
5603
5604
5605
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5607$as_echo_n "checking for $LD option to reload object files... " >&6; }
5608if ${lt_cv_ld_reload_flag+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  lt_cv_ld_reload_flag='-r'
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5614$as_echo "$lt_cv_ld_reload_flag" >&6; }
5615reload_flag=$lt_cv_ld_reload_flag
5616case $reload_flag in
5617"" | " "*) ;;
5618*) reload_flag=" $reload_flag" ;;
5619esac
5620reload_cmds='$LD$reload_flag -o $output$reload_objs'
5621case $host_os in
5622  cygwin* | mingw* | pw32* | cegcc*)
5623    if test "$GCC" != yes; then
5624      reload_cmds=false
5625    fi
5626    ;;
5627  darwin*)
5628    if test "$GCC" = yes; then
5629      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5630    else
5631      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5632    fi
5633    ;;
5634esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644if test -n "$ac_tool_prefix"; then
5645  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5646set dummy ${ac_tool_prefix}objdump; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if ${ac_cv_prog_OBJDUMP+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -n "$OBJDUMP"; then
5653  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672OBJDUMP=$ac_cv_prog_OBJDUMP
5673if test -n "$OBJDUMP"; then
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5675$as_echo "$OBJDUMP" >&6; }
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$ac_cv_prog_OBJDUMP"; then
5684  ac_ct_OBJDUMP=$OBJDUMP
5685  # Extract the first word of "objdump", so it can be a program name with args.
5686set dummy objdump; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$ac_ct_OBJDUMP"; then
5693  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5713if test -n "$ac_ct_OBJDUMP"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5715$as_echo "$ac_ct_OBJDUMP" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721  if test "x$ac_ct_OBJDUMP" = x; then
5722    OBJDUMP="false"
5723  else
5724    case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730    OBJDUMP=$ac_ct_OBJDUMP
5731  fi
5732else
5733  OBJDUMP="$ac_cv_prog_OBJDUMP"
5734fi
5735
5736test -z "$OBJDUMP" && OBJDUMP=objdump
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5747$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5748if ${lt_cv_deplibs_check_method+:} false; then :
5749  $as_echo_n "(cached) " >&6
5750else
5751  lt_cv_file_magic_cmd='$MAGIC_CMD'
5752lt_cv_file_magic_test_file=
5753lt_cv_deplibs_check_method='unknown'
5754# Need to set the preceding variable on all platforms that support
5755# interlibrary dependencies.
5756# 'none' -- dependencies not supported.
5757# `unknown' -- same as none, but documents that we really don't know.
5758# 'pass_all' -- all dependencies passed with no checks.
5759# 'test_compile' -- check by making test program.
5760# 'file_magic [[regex]]' -- check by looking for files in library path
5761# which responds to the $file_magic_cmd with a given extended regex.
5762# If you have `file' or equivalent on your system and you're not sure
5763# whether `pass_all' will *always* work, you probably want this one.
5764
5765case $host_os in
5766aix[4-9]*)
5767  lt_cv_deplibs_check_method=pass_all
5768  ;;
5769
5770beos*)
5771  lt_cv_deplibs_check_method=pass_all
5772  ;;
5773
5774bsdi[45]*)
5775  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5776  lt_cv_file_magic_cmd='/usr/bin/file -L'
5777  lt_cv_file_magic_test_file=/shlib/libc.so
5778  ;;
5779
5780cygwin*)
5781  # func_win32_libid is a shell function defined in ltmain.sh
5782  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5783  lt_cv_file_magic_cmd='func_win32_libid'
5784  ;;
5785
5786mingw* | pw32*)
5787  # Base MSYS/MinGW do not provide the 'file' command needed by
5788  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5789  # unless we find 'file', for example because we are cross-compiling.
5790  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5791  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5792    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5793    lt_cv_file_magic_cmd='func_win32_libid'
5794  else
5795    # Keep this pattern in sync with the one in func_win32_libid.
5796    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5797    lt_cv_file_magic_cmd='$OBJDUMP -f'
5798  fi
5799  ;;
5800
5801cegcc*)
5802  # use the weaker test based on 'objdump'. See mingw*.
5803  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5804  lt_cv_file_magic_cmd='$OBJDUMP -f'
5805  ;;
5806
5807darwin* | rhapsody*)
5808  lt_cv_deplibs_check_method=pass_all
5809  ;;
5810
5811freebsd* | dragonfly*)
5812  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5813    case $host_cpu in
5814    i*86 )
5815      # Not sure whether the presence of OpenBSD here was a mistake.
5816      # Let's accept both of them until this is cleared up.
5817      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5818      lt_cv_file_magic_cmd=/usr/bin/file
5819      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5820      ;;
5821    esac
5822  else
5823    lt_cv_deplibs_check_method=pass_all
5824  fi
5825  ;;
5826
5827gnu*)
5828  lt_cv_deplibs_check_method=pass_all
5829  ;;
5830
5831haiku*)
5832  lt_cv_deplibs_check_method=pass_all
5833  ;;
5834
5835hpux10.20* | hpux11*)
5836  lt_cv_file_magic_cmd=/usr/bin/file
5837  case $host_cpu in
5838  ia64*)
5839    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5840    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5841    ;;
5842  hppa*64*)
5843    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]'
5844    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5845    ;;
5846  *)
5847    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5848    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5849    ;;
5850  esac
5851  ;;
5852
5853interix[3-9]*)
5854  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5855  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5856  ;;
5857
5858irix5* | irix6* | nonstopux*)
5859  case $LD in
5860  *-32|*"-32 ") libmagic=32-bit;;
5861  *-n32|*"-n32 ") libmagic=N32;;
5862  *-64|*"-64 ") libmagic=64-bit;;
5863  *) libmagic=never-match;;
5864  esac
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867
5868# This must be Linux ELF.
5869linux* | k*bsd*-gnu | kopensolaris*-gnu)
5870  lt_cv_deplibs_check_method=pass_all
5871  ;;
5872
5873netbsd*)
5874  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5875    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876  else
5877    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5878  fi
5879  ;;
5880
5881newos6*)
5882  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5883  lt_cv_file_magic_cmd=/usr/bin/file
5884  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5885  ;;
5886
5887*nto* | *qnx*)
5888  lt_cv_deplibs_check_method=pass_all
5889  ;;
5890
5891openbsd*)
5892  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5893    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5894  else
5895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5896  fi
5897  ;;
5898
5899osf3* | osf4* | osf5*)
5900  lt_cv_deplibs_check_method=pass_all
5901  ;;
5902
5903rdos*)
5904  lt_cv_deplibs_check_method=pass_all
5905  ;;
5906
5907solaris*)
5908  lt_cv_deplibs_check_method=pass_all
5909  ;;
5910
5911sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915sysv4 | sysv4.3*)
5916  case $host_vendor in
5917  motorola)
5918    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]'
5919    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5920    ;;
5921  ncr)
5922    lt_cv_deplibs_check_method=pass_all
5923    ;;
5924  sequent)
5925    lt_cv_file_magic_cmd='/bin/file'
5926    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5927    ;;
5928  sni)
5929    lt_cv_file_magic_cmd='/bin/file'
5930    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5931    lt_cv_file_magic_test_file=/lib/libc.so
5932    ;;
5933  siemens)
5934    lt_cv_deplibs_check_method=pass_all
5935    ;;
5936  pc)
5937    lt_cv_deplibs_check_method=pass_all
5938    ;;
5939  esac
5940  ;;
5941
5942tpf*)
5943  lt_cv_deplibs_check_method=pass_all
5944  ;;
5945esac
5946
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5949$as_echo "$lt_cv_deplibs_check_method" >&6; }
5950
5951file_magic_glob=
5952want_nocaseglob=no
5953if test "$build" = "$host"; then
5954  case $host_os in
5955  mingw* | pw32*)
5956    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5957      want_nocaseglob=yes
5958    else
5959      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5960    fi
5961    ;;
5962  esac
5963fi
5964
5965file_magic_cmd=$lt_cv_file_magic_cmd
5966deplibs_check_method=$lt_cv_deplibs_check_method
5967test -z "$deplibs_check_method" && deplibs_check_method=unknown
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990if test -n "$ac_tool_prefix"; then
5991  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5992set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
5995if ${ac_cv_prog_DLLTOOL+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  if test -n "$DLLTOOL"; then
5999  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004  IFS=$as_save_IFS
6005  test -z "$as_dir" && as_dir=.
6006    for ac_exec_ext in '' $ac_executable_extensions; do
6007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010    break 2
6011  fi
6012done
6013  done
6014IFS=$as_save_IFS
6015
6016fi
6017fi
6018DLLTOOL=$ac_cv_prog_DLLTOOL
6019if test -n "$DLLTOOL"; then
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6021$as_echo "$DLLTOOL" >&6; }
6022else
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
6025fi
6026
6027
6028fi
6029if test -z "$ac_cv_prog_DLLTOOL"; then
6030  ac_ct_DLLTOOL=$DLLTOOL
6031  # Extract the first word of "dlltool", so it can be a program name with args.
6032set dummy dlltool; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  if test -n "$ac_ct_DLLTOOL"; then
6039  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046    for ac_exec_ext in '' $ac_executable_extensions; do
6047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053  done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6059if test -n "$ac_ct_DLLTOOL"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6061$as_echo "$ac_ct_DLLTOOL" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067  if test "x$ac_ct_DLLTOOL" = x; then
6068    DLLTOOL="false"
6069  else
6070    case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076    DLLTOOL=$ac_ct_DLLTOOL
6077  fi
6078else
6079  DLLTOOL="$ac_cv_prog_DLLTOOL"
6080fi
6081
6082test -z "$DLLTOOL" && DLLTOOL=dlltool
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6094$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6095if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6096  $as_echo_n "(cached) " >&6
6097else
6098  lt_cv_sharedlib_from_linklib_cmd='unknown'
6099
6100case $host_os in
6101cygwin* | mingw* | pw32* | cegcc*)
6102  # two different shell functions defined in ltmain.sh
6103  # decide which to use based on capabilities of $DLLTOOL
6104  case `$DLLTOOL --help 2>&1` in
6105  *--identify-strict*)
6106    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6107    ;;
6108  *)
6109    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6110    ;;
6111  esac
6112  ;;
6113*)
6114  # fallback: assume linklib IS sharedlib
6115  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6116  ;;
6117esac
6118
6119fi
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6121$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6122sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6123test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6124
6125
6126
6127
6128
6129
6130
6131if test -n "$ac_tool_prefix"; then
6132  for ac_prog in ar
6133  do
6134    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if ${ac_cv_prog_AR+:} false; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  if test -n "$AR"; then
6142  ac_cv_prog_AR="$AR" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147  IFS=$as_save_IFS
6148  test -z "$as_dir" && as_dir=.
6149    for ac_exec_ext in '' $ac_executable_extensions; do
6150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153    break 2
6154  fi
6155done
6156  done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161AR=$ac_cv_prog_AR
6162if test -n "$AR"; then
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6164$as_echo "$AR" >&6; }
6165else
6166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168fi
6169
6170
6171    test -n "$AR" && break
6172  done
6173fi
6174if test -z "$AR"; then
6175  ac_ct_AR=$AR
6176  for ac_prog in ar
6177do
6178  # Extract the first word of "$ac_prog", so it can be a program name with args.
6179set dummy $ac_prog; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_ac_ct_AR+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  if test -n "$ac_ct_AR"; then
6186  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193    for ac_exec_ext in '' $ac_executable_extensions; do
6194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_ac_ct_AR="$ac_prog"
6196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200  done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206if test -n "$ac_ct_AR"; then
6207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6208$as_echo "$ac_ct_AR" >&6; }
6209else
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
6212fi
6213
6214
6215  test -n "$ac_ct_AR" && break
6216done
6217
6218  if test "x$ac_ct_AR" = x; then
6219    AR="false"
6220  else
6221    case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227    AR=$ac_ct_AR
6228  fi
6229fi
6230
6231: ${AR=ar}
6232: ${AR_FLAGS=cru}
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6245$as_echo_n "checking for archiver @FILE support... " >&6; }
6246if ${lt_cv_ar_at_file+:} false; then :
6247  $as_echo_n "(cached) " >&6
6248else
6249  lt_cv_ar_at_file=no
6250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h.  */
6252
6253int
6254main ()
6255{
6256
6257  ;
6258  return 0;
6259}
6260_ACEOF
6261if ac_fn_c_try_compile "$LINENO"; then :
6262  echo conftest.$ac_objext > conftest.lst
6263      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6264      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6265  (eval $lt_ar_try) 2>&5
6266  ac_status=$?
6267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268  test $ac_status = 0; }
6269      if test "$ac_status" -eq 0; then
6270	# Ensure the archiver fails upon bogus file names.
6271	rm -f conftest.$ac_objext libconftest.a
6272	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6273  (eval $lt_ar_try) 2>&5
6274  ac_status=$?
6275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276  test $ac_status = 0; }
6277	if test "$ac_status" -ne 0; then
6278          lt_cv_ar_at_file=@
6279        fi
6280      fi
6281      rm -f conftest.* libconftest.a
6282
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285
6286fi
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6288$as_echo "$lt_cv_ar_at_file" >&6; }
6289
6290if test "x$lt_cv_ar_at_file" = xno; then
6291  archiver_list_spec=
6292else
6293  archiver_list_spec=$lt_cv_ar_at_file
6294fi
6295
6296
6297
6298
6299
6300
6301
6302if test -n "$ac_tool_prefix"; then
6303  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6304set dummy ${ac_tool_prefix}strip; ac_word=$2
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306$as_echo_n "checking for $ac_word... " >&6; }
6307if ${ac_cv_prog_STRIP+:} false; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  if test -n "$STRIP"; then
6311  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316  IFS=$as_save_IFS
6317  test -z "$as_dir" && as_dir=.
6318    for ac_exec_ext in '' $ac_executable_extensions; do
6319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322    break 2
6323  fi
6324done
6325  done
6326IFS=$as_save_IFS
6327
6328fi
6329fi
6330STRIP=$ac_cv_prog_STRIP
6331if test -n "$STRIP"; then
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6333$as_echo "$STRIP" >&6; }
6334else
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336$as_echo "no" >&6; }
6337fi
6338
6339
6340fi
6341if test -z "$ac_cv_prog_STRIP"; then
6342  ac_ct_STRIP=$STRIP
6343  # Extract the first word of "strip", so it can be a program name with args.
6344set dummy strip; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  if test -n "$ac_ct_STRIP"; then
6351  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  test -z "$as_dir" && as_dir=.
6358    for ac_exec_ext in '' $ac_executable_extensions; do
6359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360    ac_cv_prog_ac_ct_STRIP="strip"
6361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365  done
6366IFS=$as_save_IFS
6367
6368fi
6369fi
6370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6371if test -n "$ac_ct_STRIP"; then
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6373$as_echo "$ac_ct_STRIP" >&6; }
6374else
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379  if test "x$ac_ct_STRIP" = x; then
6380    STRIP=":"
6381  else
6382    case $cross_compiling:$ac_tool_warned in
6383yes:)
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386ac_tool_warned=yes ;;
6387esac
6388    STRIP=$ac_ct_STRIP
6389  fi
6390else
6391  STRIP="$ac_cv_prog_STRIP"
6392fi
6393
6394test -z "$STRIP" && STRIP=:
6395
6396
6397
6398
6399
6400
6401if test -n "$ac_tool_prefix"; then
6402  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6403set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405$as_echo_n "checking for $ac_word... " >&6; }
6406if ${ac_cv_prog_RANLIB+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  if test -n "$RANLIB"; then
6410  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415  IFS=$as_save_IFS
6416  test -z "$as_dir" && as_dir=.
6417    for ac_exec_ext in '' $ac_executable_extensions; do
6418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421    break 2
6422  fi
6423done
6424  done
6425IFS=$as_save_IFS
6426
6427fi
6428fi
6429RANLIB=$ac_cv_prog_RANLIB
6430if test -n "$RANLIB"; then
6431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6432$as_echo "$RANLIB" >&6; }
6433else
6434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }
6436fi
6437
6438
6439fi
6440if test -z "$ac_cv_prog_RANLIB"; then
6441  ac_ct_RANLIB=$RANLIB
6442  # Extract the first word of "ranlib", so it can be a program name with args.
6443set dummy ranlib; ac_word=$2
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  if test -n "$ac_ct_RANLIB"; then
6450  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455  IFS=$as_save_IFS
6456  test -z "$as_dir" && as_dir=.
6457    for ac_exec_ext in '' $ac_executable_extensions; do
6458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459    ac_cv_prog_ac_ct_RANLIB="ranlib"
6460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461    break 2
6462  fi
6463done
6464  done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6470if test -n "$ac_ct_RANLIB"; then
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6472$as_echo "$ac_ct_RANLIB" >&6; }
6473else
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478  if test "x$ac_ct_RANLIB" = x; then
6479    RANLIB=":"
6480  else
6481    case $cross_compiling:$ac_tool_warned in
6482yes:)
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485ac_tool_warned=yes ;;
6486esac
6487    RANLIB=$ac_ct_RANLIB
6488  fi
6489else
6490  RANLIB="$ac_cv_prog_RANLIB"
6491fi
6492
6493test -z "$RANLIB" && RANLIB=:
6494
6495
6496
6497
6498
6499
6500# Determine commands to create old-style static archives.
6501old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6502old_postinstall_cmds='chmod 644 $oldlib'
6503old_postuninstall_cmds=
6504
6505if test -n "$RANLIB"; then
6506  case $host_os in
6507  openbsd*)
6508    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6509    ;;
6510  *)
6511    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6512    ;;
6513  esac
6514  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6515fi
6516
6517case $host_os in
6518  darwin*)
6519    lock_old_archive_extraction=yes ;;
6520  *)
6521    lock_old_archive_extraction=no ;;
6522esac
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562# If no C compiler was specified, use CC.
6563LTCC=${LTCC-"$CC"}
6564
6565# If no C compiler flags were specified, use CFLAGS.
6566LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6567
6568# Allow CC to be a program name with arguments.
6569compiler=$CC
6570
6571
6572# Check for command to grab the raw symbol name followed by C symbol from nm.
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6574$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6575if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578
6579# These are sane defaults that work on at least a few old systems.
6580# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6581
6582# Character class describing NM global symbol codes.
6583symcode='[BCDEGRST]'
6584
6585# Regexp to match symbols that can be accessed directly from C.
6586sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6587
6588# Define system-specific variables.
6589case $host_os in
6590aix*)
6591  symcode='[BCDT]'
6592  ;;
6593cygwin* | mingw* | pw32* | cegcc*)
6594  symcode='[ABCDGISTW]'
6595  ;;
6596hpux*)
6597  if test "$host_cpu" = ia64; then
6598    symcode='[ABCDEGRST]'
6599  fi
6600  ;;
6601irix* | nonstopux*)
6602  symcode='[BCDEGRST]'
6603  ;;
6604osf*)
6605  symcode='[BCDEGQRST]'
6606  ;;
6607solaris*)
6608  symcode='[BDRT]'
6609  ;;
6610sco3.2v5*)
6611  symcode='[DT]'
6612  ;;
6613sysv4.2uw2*)
6614  symcode='[DT]'
6615  ;;
6616sysv5* | sco5v6* | unixware* | OpenUNIX*)
6617  symcode='[ABDT]'
6618  ;;
6619sysv4)
6620  symcode='[DFNSTU]'
6621  ;;
6622esac
6623
6624# If we're using GNU nm, then use its standard symbol codes.
6625case `$NM -V 2>&1` in
6626*GNU* | *'with BFD'*)
6627  symcode='[ABCDGIRSTW]' ;;
6628esac
6629
6630# Transform an extracted symbol line into a proper C declaration.
6631# Some systems (esp. on ia64) link data and code symbols differently,
6632# so use this general approach.
6633lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6634
6635# Transform an extracted symbol line into symbol name and symbol address
6636lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6637lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6638
6639# Handle CRLF in mingw tool chain
6640opt_cr=
6641case $build_os in
6642mingw*)
6643  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6644  ;;
6645esac
6646
6647# Try without a prefix underscore, then with it.
6648for ac_symprfx in "" "_"; do
6649
6650  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6651  symxfrm="\\1 $ac_symprfx\\2 \\2"
6652
6653  # Write the raw and C identifiers.
6654  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6655    # Fake it for dumpbin and say T for any non-static function
6656    # and D for any global variable.
6657    # Also find C++ and __fastcall symbols from MSVC++,
6658    # which start with @ or ?.
6659    lt_cv_sys_global_symbol_pipe="$AWK '"\
6660"     {last_section=section; section=\$ 3};"\
6661"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6662"     \$ 0!~/External *\|/{next};"\
6663"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6664"     {if(hide[section]) next};"\
6665"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6666"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6667"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6668"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6669"     ' prfx=^$ac_symprfx"
6670  else
6671    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6672  fi
6673  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6674
6675  # Check to see that the pipe works correctly.
6676  pipe_works=no
6677
6678  rm -f conftest*
6679  cat > conftest.$ac_ext <<_LT_EOF
6680#ifdef __cplusplus
6681extern "C" {
6682#endif
6683char nm_test_var;
6684void nm_test_func(void);
6685void nm_test_func(void){}
6686#ifdef __cplusplus
6687}
6688#endif
6689int main(){nm_test_var='a';nm_test_func();return(0);}
6690_LT_EOF
6691
6692  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693  (eval $ac_compile) 2>&5
6694  ac_status=$?
6695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696  test $ac_status = 0; }; then
6697    # Now try to grab the symbols.
6698    nlist=conftest.nm
6699    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6700  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6701  ac_status=$?
6702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703  test $ac_status = 0; } && test -s "$nlist"; then
6704      # Try sorting and uniquifying the output.
6705      if sort "$nlist" | uniq > "$nlist"T; then
6706	mv -f "$nlist"T "$nlist"
6707      else
6708	rm -f "$nlist"T
6709      fi
6710
6711      # Make sure that we snagged all the symbols we need.
6712      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6713	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6714	  cat <<_LT_EOF > conftest.$ac_ext
6715/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6716#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6717/* DATA imports from DLLs on WIN32 con't be const, because runtime
6718   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6719# define LT_DLSYM_CONST
6720#elif defined(__osf__)
6721/* This system does not cope well with relocations in const data.  */
6722# define LT_DLSYM_CONST
6723#else
6724# define LT_DLSYM_CONST const
6725#endif
6726
6727#ifdef __cplusplus
6728extern "C" {
6729#endif
6730
6731_LT_EOF
6732	  # Now generate the symbol file.
6733	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6734
6735	  cat <<_LT_EOF >> conftest.$ac_ext
6736
6737/* The mapping between symbol names and symbols.  */
6738LT_DLSYM_CONST struct {
6739  const char *name;
6740  void       *address;
6741}
6742lt__PROGRAM__LTX_preloaded_symbols[] =
6743{
6744  { "@PROGRAM@", (void *) 0 },
6745_LT_EOF
6746	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6747	  cat <<\_LT_EOF >> conftest.$ac_ext
6748  {0, (void *) 0}
6749};
6750
6751/* This works around a problem in FreeBSD linker */
6752#ifdef FREEBSD_WORKAROUND
6753static const void *lt_preloaded_setup() {
6754  return lt__PROGRAM__LTX_preloaded_symbols;
6755}
6756#endif
6757
6758#ifdef __cplusplus
6759}
6760#endif
6761_LT_EOF
6762	  # Now try linking the two files.
6763	  mv conftest.$ac_objext conftstm.$ac_objext
6764	  lt_globsym_save_LIBS=$LIBS
6765	  lt_globsym_save_CFLAGS=$CFLAGS
6766	  LIBS="conftstm.$ac_objext"
6767	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6768	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6769  (eval $ac_link) 2>&5
6770  ac_status=$?
6771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6773	    pipe_works=yes
6774	  fi
6775	  LIBS=$lt_globsym_save_LIBS
6776	  CFLAGS=$lt_globsym_save_CFLAGS
6777	else
6778	  echo "cannot find nm_test_func in $nlist" >&5
6779	fi
6780      else
6781	echo "cannot find nm_test_var in $nlist" >&5
6782      fi
6783    else
6784      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6785    fi
6786  else
6787    echo "$progname: failed program was:" >&5
6788    cat conftest.$ac_ext >&5
6789  fi
6790  rm -rf conftest* conftst*
6791
6792  # Do not use the global_symbol_pipe unless it works.
6793  if test "$pipe_works" = yes; then
6794    break
6795  else
6796    lt_cv_sys_global_symbol_pipe=
6797  fi
6798done
6799
6800fi
6801
6802if test -z "$lt_cv_sys_global_symbol_pipe"; then
6803  lt_cv_sys_global_symbol_to_cdecl=
6804fi
6805if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6807$as_echo "failed" >&6; }
6808else
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6810$as_echo "ok" >&6; }
6811fi
6812
6813# Response file support.
6814if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6815  nm_file_list_spec='@'
6816elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6817  nm_file_list_spec='@'
6818fi
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6847$as_echo_n "checking for sysroot... " >&6; }
6848
6849# Check whether --with-sysroot was given.
6850if test "${with_sysroot+set}" = set; then :
6851  withval=$with_sysroot;
6852else
6853  with_sysroot=no
6854fi
6855
6856
6857lt_sysroot=
6858case ${with_sysroot} in #(
6859 yes)
6860   if test "$GCC" = yes; then
6861     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6862   fi
6863   ;; #(
6864 /*)
6865   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6866   ;; #(
6867 no|'')
6868   ;; #(
6869 *)
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6871$as_echo "${with_sysroot}" >&6; }
6872   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6873   ;;
6874esac
6875
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6877$as_echo "${lt_sysroot:-no}" >&6; }
6878
6879
6880
6881
6882
6883# Check whether --enable-libtool-lock was given.
6884if test "${enable_libtool_lock+set}" = set; then :
6885  enableval=$enable_libtool_lock;
6886fi
6887
6888test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6889
6890# Some flags need to be propagated to the compiler or linker for good
6891# libtool support.
6892case $host in
6893ia64-*-hpux*)
6894  # Find out which ABI we are using.
6895  echo 'int i;' > conftest.$ac_ext
6896  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897  (eval $ac_compile) 2>&5
6898  ac_status=$?
6899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900  test $ac_status = 0; }; then
6901    case `/usr/bin/file conftest.$ac_objext` in
6902      *ELF-32*)
6903	HPUX_IA64_MODE="32"
6904	;;
6905      *ELF-64*)
6906	HPUX_IA64_MODE="64"
6907	;;
6908    esac
6909  fi
6910  rm -rf conftest*
6911  ;;
6912*-*-irix6*)
6913  # Find out which ABI we are using.
6914  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6915  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6916  (eval $ac_compile) 2>&5
6917  ac_status=$?
6918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6919  test $ac_status = 0; }; then
6920    if test "$lt_cv_prog_gnu_ld" = yes; then
6921      case `/usr/bin/file conftest.$ac_objext` in
6922	*32-bit*)
6923	  LD="${LD-ld} -melf32bsmip"
6924	  ;;
6925	*N32*)
6926	  LD="${LD-ld} -melf32bmipn32"
6927	  ;;
6928	*64-bit*)
6929	  LD="${LD-ld} -melf64bmip"
6930	;;
6931      esac
6932    else
6933      case `/usr/bin/file conftest.$ac_objext` in
6934	*32-bit*)
6935	  LD="${LD-ld} -32"
6936	  ;;
6937	*N32*)
6938	  LD="${LD-ld} -n32"
6939	  ;;
6940	*64-bit*)
6941	  LD="${LD-ld} -64"
6942	  ;;
6943      esac
6944    fi
6945  fi
6946  rm -rf conftest*
6947  ;;
6948
6949x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6950s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6951  # Find out which ABI we are using.
6952  echo 'int i;' > conftest.$ac_ext
6953  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954  (eval $ac_compile) 2>&5
6955  ac_status=$?
6956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957  test $ac_status = 0; }; then
6958    case `/usr/bin/file conftest.o` in
6959      *32-bit*)
6960	case $host in
6961	  x86_64-*kfreebsd*-gnu)
6962	    LD="${LD-ld} -m elf_i386_fbsd"
6963	    ;;
6964	  x86_64-*linux*)
6965	    LD="${LD-ld} -m elf_i386"
6966	    ;;
6967	  ppc64-*linux*|powerpc64-*linux*)
6968	    LD="${LD-ld} -m elf32ppclinux"
6969	    ;;
6970	  s390x-*linux*)
6971	    LD="${LD-ld} -m elf_s390"
6972	    ;;
6973	  sparc64-*linux*)
6974	    LD="${LD-ld} -m elf32_sparc"
6975	    ;;
6976	esac
6977	;;
6978      *64-bit*)
6979	case $host in
6980	  x86_64-*kfreebsd*-gnu)
6981	    LD="${LD-ld} -m elf_x86_64_fbsd"
6982	    ;;
6983	  x86_64-*linux*)
6984	    LD="${LD-ld} -m elf_x86_64"
6985	    ;;
6986	  ppc*-*linux*|powerpc*-*linux*)
6987	    LD="${LD-ld} -m elf64ppc"
6988	    ;;
6989	  s390*-*linux*|s390*-*tpf*)
6990	    LD="${LD-ld} -m elf64_s390"
6991	    ;;
6992	  sparc*-*linux*)
6993	    LD="${LD-ld} -m elf64_sparc"
6994	    ;;
6995	esac
6996	;;
6997    esac
6998  fi
6999  rm -rf conftest*
7000  ;;
7001
7002*-*-sco3.2v5*)
7003  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7004  SAVE_CFLAGS="$CFLAGS"
7005  CFLAGS="$CFLAGS -belf"
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7007$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7008if ${lt_cv_cc_needs_belf+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  ac_ext=c
7012ac_cpp='$CPP $CPPFLAGS'
7013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016
7017     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019
7020int
7021main ()
7022{
7023
7024  ;
7025  return 0;
7026}
7027_ACEOF
7028if ac_fn_c_try_link "$LINENO"; then :
7029  lt_cv_cc_needs_belf=yes
7030else
7031  lt_cv_cc_needs_belf=no
7032fi
7033rm -f core conftest.err conftest.$ac_objext \
7034    conftest$ac_exeext conftest.$ac_ext
7035     ac_ext=c
7036ac_cpp='$CPP $CPPFLAGS'
7037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7043$as_echo "$lt_cv_cc_needs_belf" >&6; }
7044  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7045    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7046    CFLAGS="$SAVE_CFLAGS"
7047  fi
7048  ;;
7049sparc*-*solaris*)
7050  # Find out which ABI we are using.
7051  echo 'int i;' > conftest.$ac_ext
7052  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7053  (eval $ac_compile) 2>&5
7054  ac_status=$?
7055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056  test $ac_status = 0; }; then
7057    case `/usr/bin/file conftest.o` in
7058    *64-bit*)
7059      case $lt_cv_prog_gnu_ld in
7060      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7061      *)
7062	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7063	  LD="${LD-ld} -64"
7064	fi
7065	;;
7066      esac
7067      ;;
7068    esac
7069  fi
7070  rm -rf conftest*
7071  ;;
7072esac
7073
7074need_locks="$enable_libtool_lock"
7075
7076if test -n "$ac_tool_prefix"; then
7077  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7078set dummy ${ac_tool_prefix}mt; ac_word=$2
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  if test -n "$MANIFEST_TOOL"; then
7085  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092    for ac_exec_ext in '' $ac_executable_extensions; do
7093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099  done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7105if test -n "$MANIFEST_TOOL"; then
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7107$as_echo "$MANIFEST_TOOL" >&6; }
7108else
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
7111fi
7112
7113
7114fi
7115if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7116  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7117  # Extract the first word of "mt", so it can be a program name with args.
7118set dummy mt; ac_word=$2
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120$as_echo_n "checking for $ac_word... " >&6; }
7121if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  if test -n "$ac_ct_MANIFEST_TOOL"; then
7125  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130  IFS=$as_save_IFS
7131  test -z "$as_dir" && as_dir=.
7132    for ac_exec_ext in '' $ac_executable_extensions; do
7133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136    break 2
7137  fi
7138done
7139  done
7140IFS=$as_save_IFS
7141
7142fi
7143fi
7144ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7145if test -n "$ac_ct_MANIFEST_TOOL"; then
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7147$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7148else
7149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150$as_echo "no" >&6; }
7151fi
7152
7153  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7154    MANIFEST_TOOL=":"
7155  else
7156    case $cross_compiling:$ac_tool_warned in
7157yes:)
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160ac_tool_warned=yes ;;
7161esac
7162    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7163  fi
7164else
7165  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7166fi
7167
7168test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7170$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7171if ${lt_cv_path_mainfest_tool+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  lt_cv_path_mainfest_tool=no
7175  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7176  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7177  cat conftest.err >&5
7178  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7179    lt_cv_path_mainfest_tool=yes
7180  fi
7181  rm -f conftest*
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7184$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7185if test "x$lt_cv_path_mainfest_tool" != xyes; then
7186  MANIFEST_TOOL=:
7187fi
7188
7189
7190
7191
7192
7193
7194  case $host_os in
7195    rhapsody* | darwin*)
7196    if test -n "$ac_tool_prefix"; then
7197  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7198set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200$as_echo_n "checking for $ac_word... " >&6; }
7201if ${ac_cv_prog_DSYMUTIL+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  if test -n "$DSYMUTIL"; then
7205  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210  IFS=$as_save_IFS
7211  test -z "$as_dir" && as_dir=.
7212    for ac_exec_ext in '' $ac_executable_extensions; do
7213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216    break 2
7217  fi
7218done
7219  done
7220IFS=$as_save_IFS
7221
7222fi
7223fi
7224DSYMUTIL=$ac_cv_prog_DSYMUTIL
7225if test -n "$DSYMUTIL"; then
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7227$as_echo "$DSYMUTIL" >&6; }
7228else
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231fi
7232
7233
7234fi
7235if test -z "$ac_cv_prog_DSYMUTIL"; then
7236  ac_ct_DSYMUTIL=$DSYMUTIL
7237  # Extract the first word of "dsymutil", so it can be a program name with args.
7238set dummy dsymutil; ac_word=$2
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240$as_echo_n "checking for $ac_word... " >&6; }
7241if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  if test -n "$ac_ct_DSYMUTIL"; then
7245  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7246else
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250  IFS=$as_save_IFS
7251  test -z "$as_dir" && as_dir=.
7252    for ac_exec_ext in '' $ac_executable_extensions; do
7253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256    break 2
7257  fi
7258done
7259  done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7265if test -n "$ac_ct_DSYMUTIL"; then
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7267$as_echo "$ac_ct_DSYMUTIL" >&6; }
7268else
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271fi
7272
7273  if test "x$ac_ct_DSYMUTIL" = x; then
7274    DSYMUTIL=":"
7275  else
7276    case $cross_compiling:$ac_tool_warned in
7277yes:)
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280ac_tool_warned=yes ;;
7281esac
7282    DSYMUTIL=$ac_ct_DSYMUTIL
7283  fi
7284else
7285  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7286fi
7287
7288    if test -n "$ac_tool_prefix"; then
7289  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7290set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292$as_echo_n "checking for $ac_word... " >&6; }
7293if ${ac_cv_prog_NMEDIT+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  if test -n "$NMEDIT"; then
7297  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7298else
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302  IFS=$as_save_IFS
7303  test -z "$as_dir" && as_dir=.
7304    for ac_exec_ext in '' $ac_executable_extensions; do
7305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308    break 2
7309  fi
7310done
7311  done
7312IFS=$as_save_IFS
7313
7314fi
7315fi
7316NMEDIT=$ac_cv_prog_NMEDIT
7317if test -n "$NMEDIT"; then
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7319$as_echo "$NMEDIT" >&6; }
7320else
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322$as_echo "no" >&6; }
7323fi
7324
7325
7326fi
7327if test -z "$ac_cv_prog_NMEDIT"; then
7328  ac_ct_NMEDIT=$NMEDIT
7329  # Extract the first word of "nmedit", so it can be a program name with args.
7330set dummy nmedit; ac_word=$2
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332$as_echo_n "checking for $ac_word... " >&6; }
7333if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7334  $as_echo_n "(cached) " >&6
7335else
7336  if test -n "$ac_ct_NMEDIT"; then
7337  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342  IFS=$as_save_IFS
7343  test -z "$as_dir" && as_dir=.
7344    for ac_exec_ext in '' $ac_executable_extensions; do
7345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348    break 2
7349  fi
7350done
7351  done
7352IFS=$as_save_IFS
7353
7354fi
7355fi
7356ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7357if test -n "$ac_ct_NMEDIT"; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7359$as_echo "$ac_ct_NMEDIT" >&6; }
7360else
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365  if test "x$ac_ct_NMEDIT" = x; then
7366    NMEDIT=":"
7367  else
7368    case $cross_compiling:$ac_tool_warned in
7369yes:)
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372ac_tool_warned=yes ;;
7373esac
7374    NMEDIT=$ac_ct_NMEDIT
7375  fi
7376else
7377  NMEDIT="$ac_cv_prog_NMEDIT"
7378fi
7379
7380    if test -n "$ac_tool_prefix"; then
7381  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7382set dummy ${ac_tool_prefix}lipo; ac_word=$2
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384$as_echo_n "checking for $ac_word... " >&6; }
7385if ${ac_cv_prog_LIPO+:} false; then :
7386  $as_echo_n "(cached) " >&6
7387else
7388  if test -n "$LIPO"; then
7389  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7390else
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394  IFS=$as_save_IFS
7395  test -z "$as_dir" && as_dir=.
7396    for ac_exec_ext in '' $ac_executable_extensions; do
7397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400    break 2
7401  fi
7402done
7403  done
7404IFS=$as_save_IFS
7405
7406fi
7407fi
7408LIPO=$ac_cv_prog_LIPO
7409if test -n "$LIPO"; then
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7411$as_echo "$LIPO" >&6; }
7412else
7413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414$as_echo "no" >&6; }
7415fi
7416
7417
7418fi
7419if test -z "$ac_cv_prog_LIPO"; then
7420  ac_ct_LIPO=$LIPO
7421  # Extract the first word of "lipo", so it can be a program name with args.
7422set dummy lipo; ac_word=$2
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424$as_echo_n "checking for $ac_word... " >&6; }
7425if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7426  $as_echo_n "(cached) " >&6
7427else
7428  if test -n "$ac_ct_LIPO"; then
7429  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434  IFS=$as_save_IFS
7435  test -z "$as_dir" && as_dir=.
7436    for ac_exec_ext in '' $ac_executable_extensions; do
7437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438    ac_cv_prog_ac_ct_LIPO="lipo"
7439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440    break 2
7441  fi
7442done
7443  done
7444IFS=$as_save_IFS
7445
7446fi
7447fi
7448ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7449if test -n "$ac_ct_LIPO"; then
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7451$as_echo "$ac_ct_LIPO" >&6; }
7452else
7453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454$as_echo "no" >&6; }
7455fi
7456
7457  if test "x$ac_ct_LIPO" = x; then
7458    LIPO=":"
7459  else
7460    case $cross_compiling:$ac_tool_warned in
7461yes:)
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7464ac_tool_warned=yes ;;
7465esac
7466    LIPO=$ac_ct_LIPO
7467  fi
7468else
7469  LIPO="$ac_cv_prog_LIPO"
7470fi
7471
7472    if test -n "$ac_tool_prefix"; then
7473  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7474set dummy ${ac_tool_prefix}otool; ac_word=$2
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476$as_echo_n "checking for $ac_word... " >&6; }
7477if ${ac_cv_prog_OTOOL+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  if test -n "$OTOOL"; then
7481  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  test -z "$as_dir" && as_dir=.
7488    for ac_exec_ext in '' $ac_executable_extensions; do
7489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492    break 2
7493  fi
7494done
7495  done
7496IFS=$as_save_IFS
7497
7498fi
7499fi
7500OTOOL=$ac_cv_prog_OTOOL
7501if test -n "$OTOOL"; then
7502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7503$as_echo "$OTOOL" >&6; }
7504else
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
7507fi
7508
7509
7510fi
7511if test -z "$ac_cv_prog_OTOOL"; then
7512  ac_ct_OTOOL=$OTOOL
7513  # Extract the first word of "otool", so it can be a program name with args.
7514set dummy otool; ac_word=$2
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516$as_echo_n "checking for $ac_word... " >&6; }
7517if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  if test -n "$ac_ct_OTOOL"; then
7521  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526  IFS=$as_save_IFS
7527  test -z "$as_dir" && as_dir=.
7528    for ac_exec_ext in '' $ac_executable_extensions; do
7529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530    ac_cv_prog_ac_ct_OTOOL="otool"
7531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532    break 2
7533  fi
7534done
7535  done
7536IFS=$as_save_IFS
7537
7538fi
7539fi
7540ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7541if test -n "$ac_ct_OTOOL"; then
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7543$as_echo "$ac_ct_OTOOL" >&6; }
7544else
7545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547fi
7548
7549  if test "x$ac_ct_OTOOL" = x; then
7550    OTOOL=":"
7551  else
7552    case $cross_compiling:$ac_tool_warned in
7553yes:)
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7556ac_tool_warned=yes ;;
7557esac
7558    OTOOL=$ac_ct_OTOOL
7559  fi
7560else
7561  OTOOL="$ac_cv_prog_OTOOL"
7562fi
7563
7564    if test -n "$ac_tool_prefix"; then
7565  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7566set dummy ${ac_tool_prefix}otool64; ac_word=$2
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
7569if ${ac_cv_prog_OTOOL64+:} false; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  if test -n "$OTOOL64"; then
7573  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578  IFS=$as_save_IFS
7579  test -z "$as_dir" && as_dir=.
7580    for ac_exec_ext in '' $ac_executable_extensions; do
7581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584    break 2
7585  fi
7586done
7587  done
7588IFS=$as_save_IFS
7589
7590fi
7591fi
7592OTOOL64=$ac_cv_prog_OTOOL64
7593if test -n "$OTOOL64"; then
7594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7595$as_echo "$OTOOL64" >&6; }
7596else
7597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599fi
7600
7601
7602fi
7603if test -z "$ac_cv_prog_OTOOL64"; then
7604  ac_ct_OTOOL64=$OTOOL64
7605  # Extract the first word of "otool64", so it can be a program name with args.
7606set dummy otool64; ac_word=$2
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608$as_echo_n "checking for $ac_word... " >&6; }
7609if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7610  $as_echo_n "(cached) " >&6
7611else
7612  if test -n "$ac_ct_OTOOL64"; then
7613  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618  IFS=$as_save_IFS
7619  test -z "$as_dir" && as_dir=.
7620    for ac_exec_ext in '' $ac_executable_extensions; do
7621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622    ac_cv_prog_ac_ct_OTOOL64="otool64"
7623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624    break 2
7625  fi
7626done
7627  done
7628IFS=$as_save_IFS
7629
7630fi
7631fi
7632ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7633if test -n "$ac_ct_OTOOL64"; then
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7635$as_echo "$ac_ct_OTOOL64" >&6; }
7636else
7637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
7639fi
7640
7641  if test "x$ac_ct_OTOOL64" = x; then
7642    OTOOL64=":"
7643  else
7644    case $cross_compiling:$ac_tool_warned in
7645yes:)
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648ac_tool_warned=yes ;;
7649esac
7650    OTOOL64=$ac_ct_OTOOL64
7651  fi
7652else
7653  OTOOL64="$ac_cv_prog_OTOOL64"
7654fi
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7683$as_echo_n "checking for -single_module linker flag... " >&6; }
7684if ${lt_cv_apple_cc_single_mod+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  lt_cv_apple_cc_single_mod=no
7688      if test -z "${LT_MULTI_MODULE}"; then
7689	# By default we will add the -single_module flag. You can override
7690	# by either setting the environment variable LT_MULTI_MODULE
7691	# non-empty at configure time, or by adding -multi_module to the
7692	# link flags.
7693	rm -rf libconftest.dylib*
7694	echo "int foo(void){return 1;}" > conftest.c
7695	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7696-dynamiclib -Wl,-single_module conftest.c" >&5
7697	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7698	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7699        _lt_result=$?
7700	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7701	  lt_cv_apple_cc_single_mod=yes
7702	else
7703	  cat conftest.err >&5
7704	fi
7705	rm -rf libconftest.dylib*
7706	rm -f conftest.*
7707      fi
7708fi
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7710$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7712$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7713if ${lt_cv_ld_exported_symbols_list+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  lt_cv_ld_exported_symbols_list=no
7717      save_LDFLAGS=$LDFLAGS
7718      echo "_main" > conftest.sym
7719      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7720      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722
7723int
7724main ()
7725{
7726
7727  ;
7728  return 0;
7729}
7730_ACEOF
7731if ac_fn_c_try_link "$LINENO"; then :
7732  lt_cv_ld_exported_symbols_list=yes
7733else
7734  lt_cv_ld_exported_symbols_list=no
7735fi
7736rm -f core conftest.err conftest.$ac_objext \
7737    conftest$ac_exeext conftest.$ac_ext
7738	LDFLAGS="$save_LDFLAGS"
7739
7740fi
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7742$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7744$as_echo_n "checking for -force_load linker flag... " >&6; }
7745if ${lt_cv_ld_force_load+:} false; then :
7746  $as_echo_n "(cached) " >&6
7747else
7748  lt_cv_ld_force_load=no
7749      cat > conftest.c << _LT_EOF
7750int forced_loaded() { return 2;}
7751_LT_EOF
7752      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7753      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7754      echo "$AR cru libconftest.a conftest.o" >&5
7755      $AR cru libconftest.a conftest.o 2>&5
7756      echo "$RANLIB libconftest.a" >&5
7757      $RANLIB libconftest.a 2>&5
7758      cat > conftest.c << _LT_EOF
7759int main() { return 0;}
7760_LT_EOF
7761      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7762      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7763      _lt_result=$?
7764      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7765	lt_cv_ld_force_load=yes
7766      else
7767	cat conftest.err >&5
7768      fi
7769        rm -f conftest.err libconftest.a conftest conftest.c
7770        rm -rf conftest.dSYM
7771
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7774$as_echo "$lt_cv_ld_force_load" >&6; }
7775    case $host_os in
7776    rhapsody* | darwin1.[012])
7777      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7778    darwin1.*)
7779      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7780    darwin*) # darwin 5.x on
7781      # if running on 10.5 or later, the deployment target defaults
7782      # to the OS version, if on x86, and 10.4, the deployment
7783      # target defaults to 10.4. Don't you love it?
7784      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7785	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7786	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7787	10.[012]*)
7788	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7789	10.*)
7790	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7791      esac
7792    ;;
7793  esac
7794    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7795      _lt_dar_single_mod='$single_module'
7796    fi
7797    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7798      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7799    else
7800      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7801    fi
7802    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7803      _lt_dsymutil='~$DSYMUTIL $lib || :'
7804    else
7805      _lt_dsymutil=
7806    fi
7807    ;;
7808  esac
7809
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7811$as_echo_n "checking for ANSI C header files... " >&6; }
7812if ${ac_cv_header_stdc+:} false; then :
7813  $as_echo_n "(cached) " >&6
7814else
7815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h.  */
7817#include <stdlib.h>
7818#include <stdarg.h>
7819#include <string.h>
7820#include <float.h>
7821
7822int
7823main ()
7824{
7825
7826  ;
7827  return 0;
7828}
7829_ACEOF
7830if ac_fn_c_try_compile "$LINENO"; then :
7831  ac_cv_header_stdc=yes
7832else
7833  ac_cv_header_stdc=no
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836
7837if test $ac_cv_header_stdc = yes; then
7838  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841#include <string.h>
7842
7843_ACEOF
7844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7845  $EGREP "memchr" >/dev/null 2>&1; then :
7846
7847else
7848  ac_cv_header_stdc=no
7849fi
7850rm -f conftest*
7851
7852fi
7853
7854if test $ac_cv_header_stdc = yes; then
7855  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857/* end confdefs.h.  */
7858#include <stdlib.h>
7859
7860_ACEOF
7861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7862  $EGREP "free" >/dev/null 2>&1; then :
7863
7864else
7865  ac_cv_header_stdc=no
7866fi
7867rm -f conftest*
7868
7869fi
7870
7871if test $ac_cv_header_stdc = yes; then
7872  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7873  if test "$cross_compiling" = yes; then :
7874  :
7875else
7876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878#include <ctype.h>
7879#include <stdlib.h>
7880#if ((' ' & 0x0FF) == 0x020)
7881# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7882# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7883#else
7884# define ISLOWER(c) \
7885		   (('a' <= (c) && (c) <= 'i') \
7886		     || ('j' <= (c) && (c) <= 'r') \
7887		     || ('s' <= (c) && (c) <= 'z'))
7888# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7889#endif
7890
7891#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7892int
7893main ()
7894{
7895  int i;
7896  for (i = 0; i < 256; i++)
7897    if (XOR (islower (i), ISLOWER (i))
7898	|| toupper (i) != TOUPPER (i))
7899      return 2;
7900  return 0;
7901}
7902_ACEOF
7903if ac_fn_c_try_run "$LINENO"; then :
7904
7905else
7906  ac_cv_header_stdc=no
7907fi
7908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7909  conftest.$ac_objext conftest.beam conftest.$ac_ext
7910fi
7911
7912fi
7913fi
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7915$as_echo "$ac_cv_header_stdc" >&6; }
7916if test $ac_cv_header_stdc = yes; then
7917
7918$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7919
7920fi
7921
7922# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7923for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7924		  inttypes.h stdint.h unistd.h
7925do :
7926  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7928"
7929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7930  cat >>confdefs.h <<_ACEOF
7931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932_ACEOF
7933
7934fi
7935
7936done
7937
7938
7939for ac_header in dlfcn.h
7940do :
7941  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7942"
7943if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7944  cat >>confdefs.h <<_ACEOF
7945#define HAVE_DLFCN_H 1
7946_ACEOF
7947
7948fi
7949
7950done
7951
7952
7953
7954
7955
7956# Set options
7957
7958
7959
7960        enable_dlopen=no
7961
7962
7963  enable_win32_dll=no
7964
7965
7966            # Check whether --enable-shared was given.
7967if test "${enable_shared+set}" = set; then :
7968  enableval=$enable_shared; p=${PACKAGE-default}
7969    case $enableval in
7970    yes) enable_shared=yes ;;
7971    no) enable_shared=no ;;
7972    *)
7973      enable_shared=no
7974      # Look at the argument we got.  We use all the common list separators.
7975      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7976      for pkg in $enableval; do
7977	IFS="$lt_save_ifs"
7978	if test "X$pkg" = "X$p"; then
7979	  enable_shared=yes
7980	fi
7981      done
7982      IFS="$lt_save_ifs"
7983      ;;
7984    esac
7985else
7986  enable_shared=yes
7987fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997  # Check whether --enable-static was given.
7998if test "${enable_static+set}" = set; then :
7999  enableval=$enable_static; p=${PACKAGE-default}
8000    case $enableval in
8001    yes) enable_static=yes ;;
8002    no) enable_static=no ;;
8003    *)
8004     enable_static=no
8005      # Look at the argument we got.  We use all the common list separators.
8006      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8007      for pkg in $enableval; do
8008	IFS="$lt_save_ifs"
8009	if test "X$pkg" = "X$p"; then
8010	  enable_static=yes
8011	fi
8012      done
8013      IFS="$lt_save_ifs"
8014      ;;
8015    esac
8016else
8017  enable_static=yes
8018fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029# Check whether --with-pic was given.
8030if test "${with_pic+set}" = set; then :
8031  withval=$with_pic; pic_mode="$withval"
8032else
8033  pic_mode=default
8034fi
8035
8036
8037test -z "$pic_mode" && pic_mode=default
8038
8039
8040
8041
8042
8043
8044
8045  # Check whether --enable-fast-install was given.
8046if test "${enable_fast_install+set}" = set; then :
8047  enableval=$enable_fast_install; p=${PACKAGE-default}
8048    case $enableval in
8049    yes) enable_fast_install=yes ;;
8050    no) enable_fast_install=no ;;
8051    *)
8052      enable_fast_install=no
8053      # Look at the argument we got.  We use all the common list separators.
8054      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8055      for pkg in $enableval; do
8056	IFS="$lt_save_ifs"
8057	if test "X$pkg" = "X$p"; then
8058	  enable_fast_install=yes
8059	fi
8060      done
8061      IFS="$lt_save_ifs"
8062      ;;
8063    esac
8064else
8065  enable_fast_install=yes
8066fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078# This can be used to rebuild libtool when needed
8079LIBTOOL_DEPS="$ltmain"
8080
8081# Always use our own libtool.
8082LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109test -z "$LN_S" && LN_S="ln -s"
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124if test -n "${ZSH_VERSION+set}" ; then
8125   setopt NO_GLOB_SUBST
8126fi
8127
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8129$as_echo_n "checking for objdir... " >&6; }
8130if ${lt_cv_objdir+:} false; then :
8131  $as_echo_n "(cached) " >&6
8132else
8133  rm -f .libs 2>/dev/null
8134mkdir .libs 2>/dev/null
8135if test -d .libs; then
8136  lt_cv_objdir=.libs
8137else
8138  # MS-DOS does not allow filenames that begin with a dot.
8139  lt_cv_objdir=_libs
8140fi
8141rmdir .libs 2>/dev/null
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8144$as_echo "$lt_cv_objdir" >&6; }
8145objdir=$lt_cv_objdir
8146
8147
8148
8149
8150
8151cat >>confdefs.h <<_ACEOF
8152#define LT_OBJDIR "$lt_cv_objdir/"
8153_ACEOF
8154
8155
8156
8157
8158case $host_os in
8159aix3*)
8160  # AIX sometimes has problems with the GCC collect2 program.  For some
8161  # reason, if we set the COLLECT_NAMES environment variable, the problems
8162  # vanish in a puff of smoke.
8163  if test "X${COLLECT_NAMES+set}" != Xset; then
8164    COLLECT_NAMES=
8165    export COLLECT_NAMES
8166  fi
8167  ;;
8168esac
8169
8170# Global variables:
8171ofile=libtool
8172can_build_shared=yes
8173
8174# All known linkers require a `.a' archive for static linking (except MSVC,
8175# which needs '.lib').
8176libext=a
8177
8178with_gnu_ld="$lt_cv_prog_gnu_ld"
8179
8180old_CC="$CC"
8181old_CFLAGS="$CFLAGS"
8182
8183# Set sane defaults for various variables
8184test -z "$CC" && CC=cc
8185test -z "$LTCC" && LTCC=$CC
8186test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8187test -z "$LD" && LD=ld
8188test -z "$ac_objext" && ac_objext=o
8189
8190for cc_temp in $compiler""; do
8191  case $cc_temp in
8192    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8193    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194    \-*) ;;
8195    *) break;;
8196  esac
8197done
8198cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8199
8200
8201# Only perform the check for file, if the check method requires it
8202test -z "$MAGIC_CMD" && MAGIC_CMD=file
8203case $deplibs_check_method in
8204file_magic*)
8205  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8207$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8208if ${lt_cv_path_MAGIC_CMD+:} false; then :
8209  $as_echo_n "(cached) " >&6
8210else
8211  case $MAGIC_CMD in
8212[\\/*] |  ?:[\\/]*)
8213  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8214  ;;
8215*)
8216  lt_save_MAGIC_CMD="$MAGIC_CMD"
8217  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8218  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8219  for ac_dir in $ac_dummy; do
8220    IFS="$lt_save_ifs"
8221    test -z "$ac_dir" && ac_dir=.
8222    if test -f $ac_dir/${ac_tool_prefix}file; then
8223      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8224      if test -n "$file_magic_test_file"; then
8225	case $deplibs_check_method in
8226	"file_magic "*)
8227	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8228	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8230	    $EGREP "$file_magic_regex" > /dev/null; then
8231	    :
8232	  else
8233	    cat <<_LT_EOF 1>&2
8234
8235*** Warning: the command libtool uses to detect shared libraries,
8236*** $file_magic_cmd, produces output that libtool cannot recognize.
8237*** The result is that libtool may fail to recognize shared libraries
8238*** as such.  This will affect the creation of libtool libraries that
8239*** depend on shared libraries, but programs linked with such libtool
8240*** libraries will work regardless of this problem.  Nevertheless, you
8241*** may want to report the problem to your system manager and/or to
8242*** bug-libtool@gnu.org
8243
8244_LT_EOF
8245	  fi ;;
8246	esac
8247      fi
8248      break
8249    fi
8250  done
8251  IFS="$lt_save_ifs"
8252  MAGIC_CMD="$lt_save_MAGIC_CMD"
8253  ;;
8254esac
8255fi
8256
8257MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258if test -n "$MAGIC_CMD"; then
8259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8260$as_echo "$MAGIC_CMD" >&6; }
8261else
8262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
8264fi
8265
8266
8267
8268
8269
8270if test -z "$lt_cv_path_MAGIC_CMD"; then
8271  if test -n "$ac_tool_prefix"; then
8272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8273$as_echo_n "checking for file... " >&6; }
8274if ${lt_cv_path_MAGIC_CMD+:} false; then :
8275  $as_echo_n "(cached) " >&6
8276else
8277  case $MAGIC_CMD in
8278[\\/*] |  ?:[\\/]*)
8279  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8280  ;;
8281*)
8282  lt_save_MAGIC_CMD="$MAGIC_CMD"
8283  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8284  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285  for ac_dir in $ac_dummy; do
8286    IFS="$lt_save_ifs"
8287    test -z "$ac_dir" && ac_dir=.
8288    if test -f $ac_dir/file; then
8289      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8290      if test -n "$file_magic_test_file"; then
8291	case $deplibs_check_method in
8292	"file_magic "*)
8293	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296	    $EGREP "$file_magic_regex" > /dev/null; then
8297	    :
8298	  else
8299	    cat <<_LT_EOF 1>&2
8300
8301*** Warning: the command libtool uses to detect shared libraries,
8302*** $file_magic_cmd, produces output that libtool cannot recognize.
8303*** The result is that libtool may fail to recognize shared libraries
8304*** as such.  This will affect the creation of libtool libraries that
8305*** depend on shared libraries, but programs linked with such libtool
8306*** libraries will work regardless of this problem.  Nevertheless, you
8307*** may want to report the problem to your system manager and/or to
8308*** bug-libtool@gnu.org
8309
8310_LT_EOF
8311	  fi ;;
8312	esac
8313      fi
8314      break
8315    fi
8316  done
8317  IFS="$lt_save_ifs"
8318  MAGIC_CMD="$lt_save_MAGIC_CMD"
8319  ;;
8320esac
8321fi
8322
8323MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324if test -n "$MAGIC_CMD"; then
8325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326$as_echo "$MAGIC_CMD" >&6; }
8327else
8328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329$as_echo "no" >&6; }
8330fi
8331
8332
8333  else
8334    MAGIC_CMD=:
8335  fi
8336fi
8337
8338  fi
8339  ;;
8340esac
8341
8342# Use C for the default configuration in the libtool script
8343
8344lt_save_CC="$CC"
8345ac_ext=c
8346ac_cpp='$CPP $CPPFLAGS'
8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
8351
8352# Source file extension for C test sources.
8353ac_ext=c
8354
8355# Object file extension for compiled C test sources.
8356objext=o
8357objext=$objext
8358
8359# Code to be used in simple compile tests
8360lt_simple_compile_test_code="int some_variable = 0;"
8361
8362# Code to be used in simple link tests
8363lt_simple_link_test_code='int main(){return(0);}'
8364
8365
8366
8367
8368
8369
8370
8371# If no C compiler was specified, use CC.
8372LTCC=${LTCC-"$CC"}
8373
8374# If no C compiler flags were specified, use CFLAGS.
8375LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8376
8377# Allow CC to be a program name with arguments.
8378compiler=$CC
8379
8380# Save the default compiler, since it gets overwritten when the other
8381# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8382compiler_DEFAULT=$CC
8383
8384# save warnings/boilerplate of simple test code
8385ac_outfile=conftest.$ac_objext
8386echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8387eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8388_lt_compiler_boilerplate=`cat conftest.err`
8389$RM conftest*
8390
8391ac_outfile=conftest.$ac_objext
8392echo "$lt_simple_link_test_code" >conftest.$ac_ext
8393eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8394_lt_linker_boilerplate=`cat conftest.err`
8395$RM -r conftest*
8396
8397
8398## CAVEAT EMPTOR:
8399## There is no encapsulation within the following macros, do not change
8400## the running order or otherwise move them around unless you know exactly
8401## what you are doing...
8402if test -n "$compiler"; then
8403
8404lt_prog_compiler_no_builtin_flag=
8405
8406if test "$GCC" = yes; then
8407  case $cc_basename in
8408  nvcc*)
8409    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8410  *)
8411    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8412  esac
8413
8414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8415$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8416if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  lt_cv_prog_compiler_rtti_exceptions=no
8420   ac_outfile=conftest.$ac_objext
8421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422   lt_compiler_flag="-fno-rtti -fno-exceptions"
8423   # Insert the option either (1) after the last *FLAGS variable, or
8424   # (2) before a word containing "conftest.", or (3) at the end.
8425   # Note that $ac_compile itself does not contain backslashes and begins
8426   # with a dollar sign (not a hyphen), so the echo should work correctly.
8427   # The option is referenced via a variable to avoid confusing sed.
8428   lt_compile=`echo "$ac_compile" | $SED \
8429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431   -e 's:$: $lt_compiler_flag:'`
8432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433   (eval "$lt_compile" 2>conftest.err)
8434   ac_status=$?
8435   cat conftest.err >&5
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   if (exit $ac_status) && test -s "$ac_outfile"; then
8438     # The compiler can only warn and ignore the option if not recognized
8439     # So say no if there are warnings other than the usual output.
8440     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8441     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8442     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8443       lt_cv_prog_compiler_rtti_exceptions=yes
8444     fi
8445   fi
8446   $RM conftest*
8447
8448fi
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8450$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8451
8452if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8453    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8454else
8455    :
8456fi
8457
8458fi
8459
8460
8461
8462
8463
8464
8465  lt_prog_compiler_wl=
8466lt_prog_compiler_pic=
8467lt_prog_compiler_static=
8468
8469
8470  if test "$GCC" = yes; then
8471    lt_prog_compiler_wl='-Wl,'
8472    lt_prog_compiler_static='-static'
8473
8474    case $host_os in
8475      aix*)
8476      # All AIX code is PIC.
8477      if test "$host_cpu" = ia64; then
8478	# AIX 5 now supports IA64 processor
8479	lt_prog_compiler_static='-Bstatic'
8480      fi
8481      ;;
8482
8483    amigaos*)
8484      case $host_cpu in
8485      powerpc)
8486            # see comment about AmigaOS4 .so support
8487            lt_prog_compiler_pic='-fPIC'
8488        ;;
8489      m68k)
8490            # FIXME: we need at least 68020 code to build shared libraries, but
8491            # adding the `-m68020' flag to GCC prevents building anything better,
8492            # like `-m68040'.
8493            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8494        ;;
8495      esac
8496      ;;
8497
8498    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8499      # PIC is the default for these OSes.
8500      ;;
8501
8502    mingw* | cygwin* | pw32* | os2* | cegcc*)
8503      # This hack is so that the source file can tell whether it is being
8504      # built for inclusion in a dll (and should export symbols for example).
8505      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8506      # (--disable-auto-import) libraries
8507      lt_prog_compiler_pic='-DDLL_EXPORT'
8508      ;;
8509
8510    darwin* | rhapsody*)
8511      # PIC is the default on this platform
8512      # Common symbols not allowed in MH_DYLIB files
8513      lt_prog_compiler_pic='-fno-common'
8514      ;;
8515
8516    haiku*)
8517      # PIC is the default for Haiku.
8518      # The "-static" flag exists, but is broken.
8519      lt_prog_compiler_static=
8520      ;;
8521
8522    hpux*)
8523      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8524      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8525      # sets the default TLS model and affects inlining.
8526      case $host_cpu in
8527      hppa*64*)
8528	# +Z the default
8529	;;
8530      *)
8531	lt_prog_compiler_pic='-fPIC'
8532	;;
8533      esac
8534      ;;
8535
8536    interix[3-9]*)
8537      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8538      # Instead, we relocate shared libraries at runtime.
8539      ;;
8540
8541    msdosdjgpp*)
8542      # Just because we use GCC doesn't mean we suddenly get shared libraries
8543      # on systems that don't support them.
8544      lt_prog_compiler_can_build_shared=no
8545      enable_shared=no
8546      ;;
8547
8548    *nto* | *qnx*)
8549      # QNX uses GNU C++, but need to define -shared option too, otherwise
8550      # it will coredump.
8551      lt_prog_compiler_pic='-fPIC -shared'
8552      ;;
8553
8554    sysv4*MP*)
8555      if test -d /usr/nec; then
8556	lt_prog_compiler_pic=-Kconform_pic
8557      fi
8558      ;;
8559
8560    *)
8561      lt_prog_compiler_pic='-fPIC'
8562      ;;
8563    esac
8564
8565    case $cc_basename in
8566    nvcc*) # Cuda Compiler Driver 2.2
8567      lt_prog_compiler_wl='-Xlinker '
8568      lt_prog_compiler_pic='-Xcompiler -fPIC'
8569      ;;
8570    esac
8571  else
8572    # PORTME Check for flag to pass linker flags through the system compiler.
8573    case $host_os in
8574    aix*)
8575      lt_prog_compiler_wl='-Wl,'
8576      if test "$host_cpu" = ia64; then
8577	# AIX 5 now supports IA64 processor
8578	lt_prog_compiler_static='-Bstatic'
8579      else
8580	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8581      fi
8582      ;;
8583
8584    mingw* | cygwin* | pw32* | os2* | cegcc*)
8585      # This hack is so that the source file can tell whether it is being
8586      # built for inclusion in a dll (and should export symbols for example).
8587      lt_prog_compiler_pic='-DDLL_EXPORT'
8588      ;;
8589
8590    hpux9* | hpux10* | hpux11*)
8591      lt_prog_compiler_wl='-Wl,'
8592      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8593      # not for PA HP-UX.
8594      case $host_cpu in
8595      hppa*64*|ia64*)
8596	# +Z the default
8597	;;
8598      *)
8599	lt_prog_compiler_pic='+Z'
8600	;;
8601      esac
8602      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8603      lt_prog_compiler_static='${wl}-a ${wl}archive'
8604      ;;
8605
8606    irix5* | irix6* | nonstopux*)
8607      lt_prog_compiler_wl='-Wl,'
8608      # PIC (with -KPIC) is the default.
8609      lt_prog_compiler_static='-non_shared'
8610      ;;
8611
8612    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8613      case $cc_basename in
8614      # old Intel for x86_64 which still supported -KPIC.
8615      ecc*)
8616	lt_prog_compiler_wl='-Wl,'
8617	lt_prog_compiler_pic='-KPIC'
8618	lt_prog_compiler_static='-static'
8619        ;;
8620      # icc used to be incompatible with GCC.
8621      # ICC 10 doesn't accept -KPIC any more.
8622      icc* | ifort*)
8623	lt_prog_compiler_wl='-Wl,'
8624	lt_prog_compiler_pic='-fPIC'
8625	lt_prog_compiler_static='-static'
8626        ;;
8627      # Lahey Fortran 8.1.
8628      lf95*)
8629	lt_prog_compiler_wl='-Wl,'
8630	lt_prog_compiler_pic='--shared'
8631	lt_prog_compiler_static='--static'
8632	;;
8633      nagfor*)
8634	# NAG Fortran compiler
8635	lt_prog_compiler_wl='-Wl,-Wl,,'
8636	lt_prog_compiler_pic='-PIC'
8637	lt_prog_compiler_static='-Bstatic'
8638	;;
8639      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8640        # Portland Group compilers (*not* the Pentium gcc compiler,
8641	# which looks to be a dead project)
8642	lt_prog_compiler_wl='-Wl,'
8643	lt_prog_compiler_pic='-fpic'
8644	lt_prog_compiler_static='-Bstatic'
8645        ;;
8646      ccc*)
8647        lt_prog_compiler_wl='-Wl,'
8648        # All Alpha code is PIC.
8649        lt_prog_compiler_static='-non_shared'
8650        ;;
8651      xl* | bgxl* | bgf* | mpixl*)
8652	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8653	lt_prog_compiler_wl='-Wl,'
8654	lt_prog_compiler_pic='-qpic'
8655	lt_prog_compiler_static='-qstaticlink'
8656	;;
8657      *)
8658	case `$CC -V 2>&1 | sed 5q` in
8659	*Sun\ F* | *Sun*Fortran*)
8660	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8661	  lt_prog_compiler_pic='-KPIC'
8662	  lt_prog_compiler_static='-Bstatic'
8663	  lt_prog_compiler_wl=''
8664	  ;;
8665	*Sun\ C*)
8666	  # Sun C 5.9
8667	  lt_prog_compiler_pic='-KPIC'
8668	  lt_prog_compiler_static='-Bstatic'
8669	  lt_prog_compiler_wl='-Wl,'
8670	  ;;
8671	esac
8672	;;
8673      esac
8674      ;;
8675
8676    newsos6)
8677      lt_prog_compiler_pic='-KPIC'
8678      lt_prog_compiler_static='-Bstatic'
8679      ;;
8680
8681    *nto* | *qnx*)
8682      # QNX uses GNU C++, but need to define -shared option too, otherwise
8683      # it will coredump.
8684      lt_prog_compiler_pic='-fPIC -shared'
8685      ;;
8686
8687    osf3* | osf4* | osf5*)
8688      lt_prog_compiler_wl='-Wl,'
8689      # All OSF/1 code is PIC.
8690      lt_prog_compiler_static='-non_shared'
8691      ;;
8692
8693    rdos*)
8694      lt_prog_compiler_static='-non_shared'
8695      ;;
8696
8697    solaris*)
8698      lt_prog_compiler_pic='-KPIC'
8699      lt_prog_compiler_static='-Bstatic'
8700      case $cc_basename in
8701      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8702	lt_prog_compiler_wl='-Qoption ld ';;
8703      *)
8704	lt_prog_compiler_wl='-Wl,';;
8705      esac
8706      ;;
8707
8708    sunos4*)
8709      lt_prog_compiler_wl='-Qoption ld '
8710      lt_prog_compiler_pic='-PIC'
8711      lt_prog_compiler_static='-Bstatic'
8712      ;;
8713
8714    sysv4 | sysv4.2uw2* | sysv4.3*)
8715      lt_prog_compiler_wl='-Wl,'
8716      lt_prog_compiler_pic='-KPIC'
8717      lt_prog_compiler_static='-Bstatic'
8718      ;;
8719
8720    sysv4*MP*)
8721      if test -d /usr/nec ;then
8722	lt_prog_compiler_pic='-Kconform_pic'
8723	lt_prog_compiler_static='-Bstatic'
8724      fi
8725      ;;
8726
8727    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8728      lt_prog_compiler_wl='-Wl,'
8729      lt_prog_compiler_pic='-KPIC'
8730      lt_prog_compiler_static='-Bstatic'
8731      ;;
8732
8733    unicos*)
8734      lt_prog_compiler_wl='-Wl,'
8735      lt_prog_compiler_can_build_shared=no
8736      ;;
8737
8738    uts4*)
8739      lt_prog_compiler_pic='-pic'
8740      lt_prog_compiler_static='-Bstatic'
8741      ;;
8742
8743    *)
8744      lt_prog_compiler_can_build_shared=no
8745      ;;
8746    esac
8747  fi
8748
8749case $host_os in
8750  # For platforms which do not support PIC, -DPIC is meaningless:
8751  *djgpp*)
8752    lt_prog_compiler_pic=
8753    ;;
8754  *)
8755    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8756    ;;
8757esac
8758
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8760$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8761if ${lt_cv_prog_compiler_pic+:} false; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8765fi
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8767$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8768lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8769
8770#
8771# Check to make sure the PIC flag actually works.
8772#
8773if test -n "$lt_prog_compiler_pic"; then
8774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8775$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8776if ${lt_cv_prog_compiler_pic_works+:} false; then :
8777  $as_echo_n "(cached) " >&6
8778else
8779  lt_cv_prog_compiler_pic_works=no
8780   ac_outfile=conftest.$ac_objext
8781   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8782   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8783   # Insert the option either (1) after the last *FLAGS variable, or
8784   # (2) before a word containing "conftest.", or (3) at the end.
8785   # Note that $ac_compile itself does not contain backslashes and begins
8786   # with a dollar sign (not a hyphen), so the echo should work correctly.
8787   # The option is referenced via a variable to avoid confusing sed.
8788   lt_compile=`echo "$ac_compile" | $SED \
8789   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8790   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8791   -e 's:$: $lt_compiler_flag:'`
8792   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8793   (eval "$lt_compile" 2>conftest.err)
8794   ac_status=$?
8795   cat conftest.err >&5
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   if (exit $ac_status) && test -s "$ac_outfile"; then
8798     # The compiler can only warn and ignore the option if not recognized
8799     # So say no if there are warnings other than the usual output.
8800     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8801     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8802     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8803       lt_cv_prog_compiler_pic_works=yes
8804     fi
8805   fi
8806   $RM conftest*
8807
8808fi
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8810$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8811
8812if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8813    case $lt_prog_compiler_pic in
8814     "" | " "*) ;;
8815     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8816     esac
8817else
8818    lt_prog_compiler_pic=
8819     lt_prog_compiler_can_build_shared=no
8820fi
8821
8822fi
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834#
8835# Check to make sure the static flag actually works.
8836#
8837wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8839$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8840if ${lt_cv_prog_compiler_static_works+:} false; then :
8841  $as_echo_n "(cached) " >&6
8842else
8843  lt_cv_prog_compiler_static_works=no
8844   save_LDFLAGS="$LDFLAGS"
8845   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8846   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8847   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8848     # The linker can only warn and ignore the option if not recognized
8849     # So say no if there are warnings
8850     if test -s conftest.err; then
8851       # Append any errors to the config.log.
8852       cat conftest.err 1>&5
8853       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8854       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8855       if diff conftest.exp conftest.er2 >/dev/null; then
8856         lt_cv_prog_compiler_static_works=yes
8857       fi
8858     else
8859       lt_cv_prog_compiler_static_works=yes
8860     fi
8861   fi
8862   $RM -r conftest*
8863   LDFLAGS="$save_LDFLAGS"
8864
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8867$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8868
8869if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8870    :
8871else
8872    lt_prog_compiler_static=
8873fi
8874
8875
8876
8877
8878
8879
8880
8881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8882$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8883if ${lt_cv_prog_compiler_c_o+:} false; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  lt_cv_prog_compiler_c_o=no
8887   $RM -r conftest 2>/dev/null
8888   mkdir conftest
8889   cd conftest
8890   mkdir out
8891   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892
8893   lt_compiler_flag="-o out/conftest2.$ac_objext"
8894   # Insert the option either (1) after the last *FLAGS variable, or
8895   # (2) before a word containing "conftest.", or (3) at the end.
8896   # Note that $ac_compile itself does not contain backslashes and begins
8897   # with a dollar sign (not a hyphen), so the echo should work correctly.
8898   lt_compile=`echo "$ac_compile" | $SED \
8899   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901   -e 's:$: $lt_compiler_flag:'`
8902   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903   (eval "$lt_compile" 2>out/conftest.err)
8904   ac_status=$?
8905   cat out/conftest.err >&5
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8908   then
8909     # The compiler can only warn and ignore the option if not recognized
8910     # So say no if there are warnings
8911     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8912     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8913     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8914       lt_cv_prog_compiler_c_o=yes
8915     fi
8916   fi
8917   chmod u+w . 2>&5
8918   $RM conftest*
8919   # SGI C++ compiler will create directory out/ii_files/ for
8920   # template instantiation
8921   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8922   $RM out/* && rmdir out
8923   cd ..
8924   $RM -r conftest
8925   $RM conftest*
8926
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8929$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8930
8931
8932
8933
8934
8935
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8937$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8938if ${lt_cv_prog_compiler_c_o+:} false; then :
8939  $as_echo_n "(cached) " >&6
8940else
8941  lt_cv_prog_compiler_c_o=no
8942   $RM -r conftest 2>/dev/null
8943   mkdir conftest
8944   cd conftest
8945   mkdir out
8946   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8947
8948   lt_compiler_flag="-o out/conftest2.$ac_objext"
8949   # Insert the option either (1) after the last *FLAGS variable, or
8950   # (2) before a word containing "conftest.", or (3) at the end.
8951   # Note that $ac_compile itself does not contain backslashes and begins
8952   # with a dollar sign (not a hyphen), so the echo should work correctly.
8953   lt_compile=`echo "$ac_compile" | $SED \
8954   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8955   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8956   -e 's:$: $lt_compiler_flag:'`
8957   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8958   (eval "$lt_compile" 2>out/conftest.err)
8959   ac_status=$?
8960   cat out/conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8963   then
8964     # The compiler can only warn and ignore the option if not recognized
8965     # So say no if there are warnings
8966     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8967     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8968     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8969       lt_cv_prog_compiler_c_o=yes
8970     fi
8971   fi
8972   chmod u+w . 2>&5
8973   $RM conftest*
8974   # SGI C++ compiler will create directory out/ii_files/ for
8975   # template instantiation
8976   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8977   $RM out/* && rmdir out
8978   cd ..
8979   $RM -r conftest
8980   $RM conftest*
8981
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8984$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8985
8986
8987
8988
8989hard_links="nottested"
8990if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8991  # do not overwrite the value of need_locks provided by the user
8992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8993$as_echo_n "checking if we can lock with hard links... " >&6; }
8994  hard_links=yes
8995  $RM conftest*
8996  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8997  touch conftest.a
8998  ln conftest.a conftest.b 2>&5 || hard_links=no
8999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9001$as_echo "$hard_links" >&6; }
9002  if test "$hard_links" = no; then
9003    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9004$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9005    need_locks=warn
9006  fi
9007else
9008  need_locks=no
9009fi
9010
9011
9012
9013
9014
9015
9016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9017$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9018
9019  runpath_var=
9020  allow_undefined_flag=
9021  always_export_symbols=no
9022  archive_cmds=
9023  archive_expsym_cmds=
9024  compiler_needs_object=no
9025  enable_shared_with_static_runtimes=no
9026  export_dynamic_flag_spec=
9027  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9028  hardcode_automatic=no
9029  hardcode_direct=no
9030  hardcode_direct_absolute=no
9031  hardcode_libdir_flag_spec=
9032  hardcode_libdir_flag_spec_ld=
9033  hardcode_libdir_separator=
9034  hardcode_minus_L=no
9035  hardcode_shlibpath_var=unsupported
9036  inherit_rpath=no
9037  link_all_deplibs=unknown
9038  module_cmds=
9039  module_expsym_cmds=
9040  old_archive_from_new_cmds=
9041  old_archive_from_expsyms_cmds=
9042  thread_safe_flag_spec=
9043  whole_archive_flag_spec=
9044  # include_expsyms should be a list of space-separated symbols to be *always*
9045  # included in the symbol list
9046  include_expsyms=
9047  # exclude_expsyms can be an extended regexp of symbols to exclude
9048  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9049  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9050  # as well as any symbol that contains `d'.
9051  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9052  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9053  # platforms (ab)use it in PIC code, but their linkers get confused if
9054  # the symbol is explicitly referenced.  Since portable code cannot
9055  # rely on this symbol name, it's probably fine to never include it in
9056  # preloaded symbol tables.
9057  # Exclude shared library initialization/finalization symbols.
9058  extract_expsyms_cmds=
9059
9060  case $host_os in
9061  cygwin* | mingw* | pw32* | cegcc*)
9062    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9063    # When not using gcc, we currently assume that we are using
9064    # Microsoft Visual C++.
9065    if test "$GCC" != yes; then
9066      with_gnu_ld=no
9067    fi
9068    ;;
9069  interix*)
9070    # we just hope/assume this is gcc and not c89 (= MSVC++)
9071    with_gnu_ld=yes
9072    ;;
9073  openbsd*)
9074    with_gnu_ld=no
9075    ;;
9076  esac
9077
9078  ld_shlibs=yes
9079
9080  # On some targets, GNU ld is compatible enough with the native linker
9081  # that we're better off using the native interface for both.
9082  lt_use_gnu_ld_interface=no
9083  if test "$with_gnu_ld" = yes; then
9084    case $host_os in
9085      aix*)
9086	# The AIX port of GNU ld has always aspired to compatibility
9087	# with the native linker.  However, as the warning in the GNU ld
9088	# block says, versions before 2.19.5* couldn't really create working
9089	# shared libraries, regardless of the interface used.
9090	case `$LD -v 2>&1` in
9091	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9092	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9093	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9094	  *)
9095	    lt_use_gnu_ld_interface=yes
9096	    ;;
9097	esac
9098	;;
9099      *)
9100	lt_use_gnu_ld_interface=yes
9101	;;
9102    esac
9103  fi
9104
9105  if test "$lt_use_gnu_ld_interface" = yes; then
9106    # If archive_cmds runs LD, not CC, wlarc should be empty
9107    wlarc='${wl}'
9108
9109    # Set some defaults for GNU ld with shared library support. These
9110    # are reset later if shared libraries are not supported. Putting them
9111    # here allows them to be overridden if necessary.
9112    runpath_var=LD_RUN_PATH
9113    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9114    export_dynamic_flag_spec='${wl}--export-dynamic'
9115    # ancient GNU ld didn't support --whole-archive et. al.
9116    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9117      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9118    else
9119      whole_archive_flag_spec=
9120    fi
9121    supports_anon_versioning=no
9122    case `$LD -v 2>&1` in
9123      *GNU\ gold*) supports_anon_versioning=yes ;;
9124      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9125      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9126      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9127      *\ 2.11.*) ;; # other 2.11 versions
9128      *) supports_anon_versioning=yes ;;
9129    esac
9130
9131    # See if GNU ld supports shared libraries.
9132    case $host_os in
9133    aix[3-9]*)
9134      # On AIX/PPC, the GNU linker is very broken
9135      if test "$host_cpu" != ia64; then
9136	ld_shlibs=no
9137	cat <<_LT_EOF 1>&2
9138
9139*** Warning: the GNU linker, at least up to release 2.19, is reported
9140*** to be unable to reliably create shared libraries on AIX.
9141*** Therefore, libtool is disabling shared libraries support.  If you
9142*** really care for shared libraries, you may want to install binutils
9143*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9144*** You will then need to restart the configuration process.
9145
9146_LT_EOF
9147      fi
9148      ;;
9149
9150    amigaos*)
9151      case $host_cpu in
9152      powerpc)
9153            # see comment about AmigaOS4 .so support
9154            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155            archive_expsym_cmds=''
9156        ;;
9157      m68k)
9158            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9159            hardcode_libdir_flag_spec='-L$libdir'
9160            hardcode_minus_L=yes
9161        ;;
9162      esac
9163      ;;
9164
9165    beos*)
9166      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9167	allow_undefined_flag=unsupported
9168	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9169	# support --undefined.  This deserves some investigation.  FIXME
9170	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171      else
9172	ld_shlibs=no
9173      fi
9174      ;;
9175
9176    cygwin* | mingw* | pw32* | cegcc*)
9177      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9178      # as there is no search path for DLLs.
9179      hardcode_libdir_flag_spec='-L$libdir'
9180      export_dynamic_flag_spec='${wl}--export-all-symbols'
9181      allow_undefined_flag=unsupported
9182      always_export_symbols=no
9183      enable_shared_with_static_runtimes=yes
9184      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9185      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9186
9187      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9188        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9189	# If the export-symbols file already is a .def file (1st line
9190	# is EXPORTS), use it as is; otherwise, prepend...
9191	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9192	  cp $export_symbols $output_objdir/$soname.def;
9193	else
9194	  echo EXPORTS > $output_objdir/$soname.def;
9195	  cat $export_symbols >> $output_objdir/$soname.def;
9196	fi~
9197	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9198      else
9199	ld_shlibs=no
9200      fi
9201      ;;
9202
9203    haiku*)
9204      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205      link_all_deplibs=yes
9206      ;;
9207
9208    interix[3-9]*)
9209      hardcode_direct=no
9210      hardcode_shlibpath_var=no
9211      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9212      export_dynamic_flag_spec='${wl}-E'
9213      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9214      # Instead, shared libraries are loaded at an image base (0x10000000 by
9215      # default) and relocated if they conflict, which is a slow very memory
9216      # consuming and fragmenting process.  To avoid this, we pick a random,
9217      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9218      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9219      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9220      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9221      ;;
9222
9223    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9224      tmp_diet=no
9225      if test "$host_os" = linux-dietlibc; then
9226	case $cc_basename in
9227	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9228	esac
9229      fi
9230      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9231	 && test "$tmp_diet" = no
9232      then
9233	tmp_addflag=' $pic_flag'
9234	tmp_sharedflag='-shared'
9235	case $cc_basename,$host_cpu in
9236        pgcc*)				# Portland Group C compiler
9237	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9238	  tmp_addflag=' $pic_flag'
9239	  ;;
9240	pgf77* | pgf90* | pgf95* | pgfortran*)
9241					# Portland Group f77 and f90 compilers
9242	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9243	  tmp_addflag=' $pic_flag -Mnomain' ;;
9244	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9245	  tmp_addflag=' -i_dynamic' ;;
9246	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9247	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9248	ifc* | ifort*)			# Intel Fortran compiler
9249	  tmp_addflag=' -nofor_main' ;;
9250	lf95*)				# Lahey Fortran 8.1
9251	  whole_archive_flag_spec=
9252	  tmp_sharedflag='--shared' ;;
9253	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9254	  tmp_sharedflag='-qmkshrobj'
9255	  tmp_addflag= ;;
9256	nvcc*)	# Cuda Compiler Driver 2.2
9257	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9258	  compiler_needs_object=yes
9259	  ;;
9260	esac
9261	case `$CC -V 2>&1 | sed 5q` in
9262	*Sun\ C*)			# Sun C 5.9
9263	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9264	  compiler_needs_object=yes
9265	  tmp_sharedflag='-G' ;;
9266	*Sun\ F*)			# Sun Fortran 8.3
9267	  tmp_sharedflag='-G' ;;
9268	esac
9269	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270
9271        if test "x$supports_anon_versioning" = xyes; then
9272          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9273	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9274	    echo "local: *; };" >> $output_objdir/$libname.ver~
9275	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9276        fi
9277
9278	case $cc_basename in
9279	xlf* | bgf* | bgxlf* | mpixlf*)
9280	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9281	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9282	  hardcode_libdir_flag_spec=
9283	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9284	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9285	  if test "x$supports_anon_versioning" = xyes; then
9286	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9287	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9288	      echo "local: *; };" >> $output_objdir/$libname.ver~
9289	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9290	  fi
9291	  ;;
9292	esac
9293      else
9294        ld_shlibs=no
9295      fi
9296      ;;
9297
9298    netbsd*)
9299      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9300	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9301	wlarc=
9302      else
9303	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9305      fi
9306      ;;
9307
9308    solaris*)
9309      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9310	ld_shlibs=no
9311	cat <<_LT_EOF 1>&2
9312
9313*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9314*** create shared libraries on Solaris systems.  Therefore, libtool
9315*** is disabling shared libraries support.  We urge you to upgrade GNU
9316*** binutils to release 2.9.1 or newer.  Another option is to modify
9317*** your PATH or compiler configuration so that the native linker is
9318*** used, and then restart.
9319
9320_LT_EOF
9321      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9324      else
9325	ld_shlibs=no
9326      fi
9327      ;;
9328
9329    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9330      case `$LD -v 2>&1` in
9331        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9332	ld_shlibs=no
9333	cat <<_LT_EOF 1>&2
9334
9335*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9336*** reliably create shared libraries on SCO systems.  Therefore, libtool
9337*** is disabling shared libraries support.  We urge you to upgrade GNU
9338*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9339*** your PATH or compiler configuration so that the native linker is
9340*** used, and then restart.
9341
9342_LT_EOF
9343	;;
9344	*)
9345	  # For security reasons, it is highly recommended that you always
9346	  # use absolute paths for naming shared libraries, and exclude the
9347	  # DT_RUNPATH tag from executables and libraries.  But doing so
9348	  # requires that you compile everything twice, which is a pain.
9349	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9350	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9353	  else
9354	    ld_shlibs=no
9355	  fi
9356	;;
9357      esac
9358      ;;
9359
9360    sunos4*)
9361      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9362      wlarc=
9363      hardcode_direct=yes
9364      hardcode_shlibpath_var=no
9365      ;;
9366
9367    *)
9368      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9369	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9371      else
9372	ld_shlibs=no
9373      fi
9374      ;;
9375    esac
9376
9377    if test "$ld_shlibs" = no; then
9378      runpath_var=
9379      hardcode_libdir_flag_spec=
9380      export_dynamic_flag_spec=
9381      whole_archive_flag_spec=
9382    fi
9383  else
9384    # PORTME fill in a description of your system's linker (not GNU ld)
9385    case $host_os in
9386    aix3*)
9387      allow_undefined_flag=unsupported
9388      always_export_symbols=yes
9389      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9390      # Note: this linker hardcodes the directories in LIBPATH if there
9391      # are no directories specified by -L.
9392      hardcode_minus_L=yes
9393      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9394	# Neither direct hardcoding nor static linking is supported with a
9395	# broken collect2.
9396	hardcode_direct=unsupported
9397      fi
9398      ;;
9399
9400    aix[4-9]*)
9401      if test "$host_cpu" = ia64; then
9402	# On IA64, the linker does run time linking by default, so we don't
9403	# have to do anything special.
9404	aix_use_runtimelinking=no
9405	exp_sym_flag='-Bexport'
9406	no_entry_flag=""
9407      else
9408	# If we're using GNU nm, then we don't want the "-C" option.
9409	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9410	# Also, AIX nm treats weak defined symbols like other global
9411	# defined symbols, whereas GNU nm marks them as "W".
9412	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9413	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9414	else
9415	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9416	fi
9417	aix_use_runtimelinking=no
9418
9419	# Test if we are trying to use run time linking or normal
9420	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9421	# need to do runtime linking.
9422	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9423	  for ld_flag in $LDFLAGS; do
9424	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9425	    aix_use_runtimelinking=yes
9426	    break
9427	  fi
9428	  done
9429	  ;;
9430	esac
9431
9432	exp_sym_flag='-bexport'
9433	no_entry_flag='-bnoentry'
9434      fi
9435
9436      # When large executables or shared objects are built, AIX ld can
9437      # have problems creating the table of contents.  If linking a library
9438      # or program results in "error TOC overflow" add -mminimal-toc to
9439      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9440      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9441
9442      archive_cmds=''
9443      hardcode_direct=yes
9444      hardcode_direct_absolute=yes
9445      hardcode_libdir_separator=':'
9446      link_all_deplibs=yes
9447      file_list_spec='${wl}-f,'
9448
9449      if test "$GCC" = yes; then
9450	case $host_os in aix4.[012]|aix4.[012].*)
9451	# We only want to do this on AIX 4.2 and lower, the check
9452	# below for broken collect2 doesn't work under 4.3+
9453	  collect2name=`${CC} -print-prog-name=collect2`
9454	  if test -f "$collect2name" &&
9455	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9456	  then
9457	  # We have reworked collect2
9458	  :
9459	  else
9460	  # We have old collect2
9461	  hardcode_direct=unsupported
9462	  # It fails to find uninstalled libraries when the uninstalled
9463	  # path is not listed in the libpath.  Setting hardcode_minus_L
9464	  # to unsupported forces relinking
9465	  hardcode_minus_L=yes
9466	  hardcode_libdir_flag_spec='-L$libdir'
9467	  hardcode_libdir_separator=
9468	  fi
9469	  ;;
9470	esac
9471	shared_flag='-shared'
9472	if test "$aix_use_runtimelinking" = yes; then
9473	  shared_flag="$shared_flag "'${wl}-G'
9474	fi
9475      else
9476	# not using gcc
9477	if test "$host_cpu" = ia64; then
9478	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9479	# chokes on -Wl,-G. The following line is correct:
9480	  shared_flag='-G'
9481	else
9482	  if test "$aix_use_runtimelinking" = yes; then
9483	    shared_flag='${wl}-G'
9484	  else
9485	    shared_flag='${wl}-bM:SRE'
9486	  fi
9487	fi
9488      fi
9489
9490      export_dynamic_flag_spec='${wl}-bexpall'
9491      # It seems that -bexpall does not export symbols beginning with
9492      # underscore (_), so it is better to generate a list of symbols to export.
9493      always_export_symbols=yes
9494      if test "$aix_use_runtimelinking" = yes; then
9495	# Warning - without using the other runtime loading flags (-brtl),
9496	# -berok will link without error, but may produce a broken library.
9497	allow_undefined_flag='-berok'
9498        # Determine the default libpath from the value encoded in an
9499        # empty executable.
9500        if test "${lt_cv_aix_libpath+set}" = set; then
9501  aix_libpath=$lt_cv_aix_libpath
9502else
9503  if ${lt_cv_aix_libpath_+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507/* end confdefs.h.  */
9508
9509int
9510main ()
9511{
9512
9513  ;
9514  return 0;
9515}
9516_ACEOF
9517if ac_fn_c_try_link "$LINENO"; then :
9518
9519  lt_aix_libpath_sed='
9520      /Import File Strings/,/^$/ {
9521	  /^0/ {
9522	      s/^0  *\([^ ]*\) *$/\1/
9523	      p
9524	  }
9525      }'
9526  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527  # Check for a 64-bit object if we didn't find anything.
9528  if test -z "$lt_cv_aix_libpath_"; then
9529    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530  fi
9531fi
9532rm -f core conftest.err conftest.$ac_objext \
9533    conftest$ac_exeext conftest.$ac_ext
9534  if test -z "$lt_cv_aix_libpath_"; then
9535    lt_cv_aix_libpath_="/usr/lib:/lib"
9536  fi
9537
9538fi
9539
9540  aix_libpath=$lt_cv_aix_libpath_
9541fi
9542
9543        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9544        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9545      else
9546	if test "$host_cpu" = ia64; then
9547	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9548	  allow_undefined_flag="-z nodefs"
9549	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9550	else
9551	 # Determine the default libpath from the value encoded in an
9552	 # empty executable.
9553	 if test "${lt_cv_aix_libpath+set}" = set; then
9554  aix_libpath=$lt_cv_aix_libpath
9555else
9556  if ${lt_cv_aix_libpath_+:} false; then :
9557  $as_echo_n "(cached) " >&6
9558else
9559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561
9562int
9563main ()
9564{
9565
9566  ;
9567  return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_link "$LINENO"; then :
9571
9572  lt_aix_libpath_sed='
9573      /Import File Strings/,/^$/ {
9574	  /^0/ {
9575	      s/^0  *\([^ ]*\) *$/\1/
9576	      p
9577	  }
9578      }'
9579  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580  # Check for a 64-bit object if we didn't find anything.
9581  if test -z "$lt_cv_aix_libpath_"; then
9582    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583  fi
9584fi
9585rm -f core conftest.err conftest.$ac_objext \
9586    conftest$ac_exeext conftest.$ac_ext
9587  if test -z "$lt_cv_aix_libpath_"; then
9588    lt_cv_aix_libpath_="/usr/lib:/lib"
9589  fi
9590
9591fi
9592
9593  aix_libpath=$lt_cv_aix_libpath_
9594fi
9595
9596	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9597	  # Warning - without using the other run time loading flags,
9598	  # -berok will link without error, but may produce a broken library.
9599	  no_undefined_flag=' ${wl}-bernotok'
9600	  allow_undefined_flag=' ${wl}-berok'
9601	  if test "$with_gnu_ld" = yes; then
9602	    # We only use this code for GNU lds that support --whole-archive.
9603	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9604	  else
9605	    # Exported symbols can be pulled into shared objects from archives
9606	    whole_archive_flag_spec='$convenience'
9607	  fi
9608	  archive_cmds_need_lc=yes
9609	  # This is similar to how AIX traditionally builds its shared libraries.
9610	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9611	fi
9612      fi
9613      ;;
9614
9615    amigaos*)
9616      case $host_cpu in
9617      powerpc)
9618            # see comment about AmigaOS4 .so support
9619            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620            archive_expsym_cmds=''
9621        ;;
9622      m68k)
9623            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9624            hardcode_libdir_flag_spec='-L$libdir'
9625            hardcode_minus_L=yes
9626        ;;
9627      esac
9628      ;;
9629
9630    bsdi[45]*)
9631      export_dynamic_flag_spec=-rdynamic
9632      ;;
9633
9634    cygwin* | mingw* | pw32* | cegcc*)
9635      # When not using gcc, we currently assume that we are using
9636      # Microsoft Visual C++.
9637      # hardcode_libdir_flag_spec is actually meaningless, as there is
9638      # no search path for DLLs.
9639      case $cc_basename in
9640      cl*)
9641	# Native MSVC
9642	hardcode_libdir_flag_spec=' '
9643	allow_undefined_flag=unsupported
9644	always_export_symbols=yes
9645	file_list_spec='@'
9646	# Tell ltmain to make .lib files, not .a files.
9647	libext=lib
9648	# Tell ltmain to make .dll files, not .so files.
9649	shrext_cmds=".dll"
9650	# FIXME: Setting linknames here is a bad hack.
9651	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9652	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9653	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9654	  else
9655	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9656	  fi~
9657	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9658	  linknames='
9659	# The linker will not automatically build a static lib if we build a DLL.
9660	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9661	enable_shared_with_static_runtimes=yes
9662	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9663	# Don't use ranlib
9664	old_postinstall_cmds='chmod 644 $oldlib'
9665	postlink_cmds='lt_outputfile="@OUTPUT@"~
9666	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9667	  case $lt_outputfile in
9668	    *.exe|*.EXE) ;;
9669	    *)
9670	      lt_outputfile="$lt_outputfile.exe"
9671	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9672	      ;;
9673	  esac~
9674	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9675	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9676	    $RM "$lt_outputfile.manifest";
9677	  fi'
9678	;;
9679      *)
9680	# Assume MSVC wrapper
9681	hardcode_libdir_flag_spec=' '
9682	allow_undefined_flag=unsupported
9683	# Tell ltmain to make .lib files, not .a files.
9684	libext=lib
9685	# Tell ltmain to make .dll files, not .so files.
9686	shrext_cmds=".dll"
9687	# FIXME: Setting linknames here is a bad hack.
9688	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9689	# The linker will automatically build a .lib file if we build a DLL.
9690	old_archive_from_new_cmds='true'
9691	# FIXME: Should let the user specify the lib program.
9692	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9693	enable_shared_with_static_runtimes=yes
9694	;;
9695      esac
9696      ;;
9697
9698    darwin* | rhapsody*)
9699
9700
9701  archive_cmds_need_lc=no
9702  hardcode_direct=no
9703  hardcode_automatic=yes
9704  hardcode_shlibpath_var=unsupported
9705  if test "$lt_cv_ld_force_load" = "yes"; then
9706    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9707  else
9708    whole_archive_flag_spec=''
9709  fi
9710  link_all_deplibs=yes
9711  allow_undefined_flag="$_lt_dar_allow_undefined"
9712  case $cc_basename in
9713     ifort*) _lt_dar_can_shared=yes ;;
9714     *) _lt_dar_can_shared=$GCC ;;
9715  esac
9716  if test "$_lt_dar_can_shared" = "yes"; then
9717    output_verbose_link_cmd=func_echo_all
9718    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9719    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9720    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9721    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9722
9723  else
9724  ld_shlibs=no
9725  fi
9726
9727      ;;
9728
9729    dgux*)
9730      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731      hardcode_libdir_flag_spec='-L$libdir'
9732      hardcode_shlibpath_var=no
9733      ;;
9734
9735    freebsd1*)
9736      ld_shlibs=no
9737      ;;
9738
9739    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9740    # support.  Future versions do this automatically, but an explicit c++rt0.o
9741    # does not break anything, and helps significantly (at the cost of a little
9742    # extra space).
9743    freebsd2.2*)
9744      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9745      hardcode_libdir_flag_spec='-R$libdir'
9746      hardcode_direct=yes
9747      hardcode_shlibpath_var=no
9748      ;;
9749
9750    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9751    freebsd2*)
9752      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9753      hardcode_direct=yes
9754      hardcode_minus_L=yes
9755      hardcode_shlibpath_var=no
9756      ;;
9757
9758    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9759    freebsd* | dragonfly*)
9760      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9761      hardcode_libdir_flag_spec='-R$libdir'
9762      hardcode_direct=yes
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    hpux9*)
9767      if test "$GCC" = yes; then
9768	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9769      else
9770	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9771      fi
9772      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9773      hardcode_libdir_separator=:
9774      hardcode_direct=yes
9775
9776      # hardcode_minus_L: Not really in the search PATH,
9777      # but as the default location of the library.
9778      hardcode_minus_L=yes
9779      export_dynamic_flag_spec='${wl}-E'
9780      ;;
9781
9782    hpux10*)
9783      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9784	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9785      else
9786	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9787      fi
9788      if test "$with_gnu_ld" = no; then
9789	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9790	hardcode_libdir_flag_spec_ld='+b $libdir'
9791	hardcode_libdir_separator=:
9792	hardcode_direct=yes
9793	hardcode_direct_absolute=yes
9794	export_dynamic_flag_spec='${wl}-E'
9795	# hardcode_minus_L: Not really in the search PATH,
9796	# but as the default location of the library.
9797	hardcode_minus_L=yes
9798      fi
9799      ;;
9800
9801    hpux11*)
9802      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9803	case $host_cpu in
9804	hppa*64*)
9805	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9806	  ;;
9807	ia64*)
9808	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9809	  ;;
9810	*)
9811	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9812	  ;;
9813	esac
9814      else
9815	case $host_cpu in
9816	hppa*64*)
9817	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9818	  ;;
9819	ia64*)
9820	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9821	  ;;
9822	*)
9823
9824	  # Older versions of the 11.00 compiler do not understand -b yet
9825	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9826	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9827$as_echo_n "checking if $CC understands -b... " >&6; }
9828if ${lt_cv_prog_compiler__b+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  lt_cv_prog_compiler__b=no
9832   save_LDFLAGS="$LDFLAGS"
9833   LDFLAGS="$LDFLAGS -b"
9834   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9835   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9836     # The linker can only warn and ignore the option if not recognized
9837     # So say no if there are warnings
9838     if test -s conftest.err; then
9839       # Append any errors to the config.log.
9840       cat conftest.err 1>&5
9841       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9842       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9843       if diff conftest.exp conftest.er2 >/dev/null; then
9844         lt_cv_prog_compiler__b=yes
9845       fi
9846     else
9847       lt_cv_prog_compiler__b=yes
9848     fi
9849   fi
9850   $RM -r conftest*
9851   LDFLAGS="$save_LDFLAGS"
9852
9853fi
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9855$as_echo "$lt_cv_prog_compiler__b" >&6; }
9856
9857if test x"$lt_cv_prog_compiler__b" = xyes; then
9858    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9859else
9860    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9861fi
9862
9863	  ;;
9864	esac
9865      fi
9866      if test "$with_gnu_ld" = no; then
9867	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9868	hardcode_libdir_separator=:
9869
9870	case $host_cpu in
9871	hppa*64*|ia64*)
9872	  hardcode_direct=no
9873	  hardcode_shlibpath_var=no
9874	  ;;
9875	*)
9876	  hardcode_direct=yes
9877	  hardcode_direct_absolute=yes
9878	  export_dynamic_flag_spec='${wl}-E'
9879
9880	  # hardcode_minus_L: Not really in the search PATH,
9881	  # but as the default location of the library.
9882	  hardcode_minus_L=yes
9883	  ;;
9884	esac
9885      fi
9886      ;;
9887
9888    irix5* | irix6* | nonstopux*)
9889      if test "$GCC" = yes; then
9890	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9891	# Try to use the -exported_symbol ld option, if it does not
9892	# work, assume that -exports_file does not work either and
9893	# implicitly export all symbols.
9894	# This should be the same for all languages, so no per-tag cache variable.
9895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9896$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9897if ${lt_cv_irix_exported_symbol+:} false; then :
9898  $as_echo_n "(cached) " >&6
9899else
9900  save_LDFLAGS="$LDFLAGS"
9901	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9902	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904int foo (void) { return 0; }
9905_ACEOF
9906if ac_fn_c_try_link "$LINENO"; then :
9907  lt_cv_irix_exported_symbol=yes
9908else
9909  lt_cv_irix_exported_symbol=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext \
9912    conftest$ac_exeext conftest.$ac_ext
9913           LDFLAGS="$save_LDFLAGS"
9914fi
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9916$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9917	if test "$lt_cv_irix_exported_symbol" = yes; then
9918          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9919	fi
9920      else
9921	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9922	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9923      fi
9924      archive_cmds_need_lc='no'
9925      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926      hardcode_libdir_separator=:
9927      inherit_rpath=yes
9928      link_all_deplibs=yes
9929      ;;
9930
9931    netbsd*)
9932      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9933	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9934      else
9935	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9936      fi
9937      hardcode_libdir_flag_spec='-R$libdir'
9938      hardcode_direct=yes
9939      hardcode_shlibpath_var=no
9940      ;;
9941
9942    newsos6)
9943      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944      hardcode_direct=yes
9945      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9946      hardcode_libdir_separator=:
9947      hardcode_shlibpath_var=no
9948      ;;
9949
9950    *nto* | *qnx*)
9951      ;;
9952
9953    openbsd*)
9954      if test -f /usr/libexec/ld.so; then
9955	hardcode_direct=yes
9956	hardcode_shlibpath_var=no
9957	hardcode_direct_absolute=yes
9958	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9959	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9960	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9961	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9962	  export_dynamic_flag_spec='${wl}-E'
9963	else
9964	  case $host_os in
9965	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9966	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9967	     hardcode_libdir_flag_spec='-R$libdir'
9968	     ;;
9969	   *)
9970	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9971	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9972	     ;;
9973	  esac
9974	fi
9975      else
9976	ld_shlibs=no
9977      fi
9978      ;;
9979
9980    os2*)
9981      hardcode_libdir_flag_spec='-L$libdir'
9982      hardcode_minus_L=yes
9983      allow_undefined_flag=unsupported
9984      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9985      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9986      ;;
9987
9988    osf3*)
9989      if test "$GCC" = yes; then
9990	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9991	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9992      else
9993	allow_undefined_flag=' -expect_unresolved \*'
9994	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9995      fi
9996      archive_cmds_need_lc='no'
9997      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9998      hardcode_libdir_separator=:
9999      ;;
10000
10001    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10002      if test "$GCC" = yes; then
10003	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10004	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10005	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006      else
10007	allow_undefined_flag=' -expect_unresolved \*'
10008	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10009	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10010	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10011
10012	# Both c and cxx compiler support -rpath directly
10013	hardcode_libdir_flag_spec='-rpath $libdir'
10014      fi
10015      archive_cmds_need_lc='no'
10016      hardcode_libdir_separator=:
10017      ;;
10018
10019    solaris*)
10020      no_undefined_flag=' -z defs'
10021      if test "$GCC" = yes; then
10022	wlarc='${wl}'
10023	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10024	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10025	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10026      else
10027	case `$CC -V 2>&1` in
10028	*"Compilers 5.0"*)
10029	  wlarc=''
10030	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10032	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10033	  ;;
10034	*)
10035	  wlarc='${wl}'
10036	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10037	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10038	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10039	  ;;
10040	esac
10041      fi
10042      hardcode_libdir_flag_spec='-R$libdir'
10043      hardcode_shlibpath_var=no
10044      case $host_os in
10045      solaris2.[0-5] | solaris2.[0-5].*) ;;
10046      *)
10047	# The compiler driver will combine and reorder linker options,
10048	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10049	# but is careful enough not to reorder.
10050	# Supported since Solaris 2.6 (maybe 2.5.1?)
10051	if test "$GCC" = yes; then
10052	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10053	else
10054	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10055	fi
10056	;;
10057      esac
10058      link_all_deplibs=yes
10059      ;;
10060
10061    sunos4*)
10062      if test "x$host_vendor" = xsequent; then
10063	# Use $CC to link under sequent, because it throws in some extra .o
10064	# files that make .init and .fini sections work.
10065	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10066      else
10067	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10068      fi
10069      hardcode_libdir_flag_spec='-L$libdir'
10070      hardcode_direct=yes
10071      hardcode_minus_L=yes
10072      hardcode_shlibpath_var=no
10073      ;;
10074
10075    sysv4)
10076      case $host_vendor in
10077	sni)
10078	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079	  hardcode_direct=yes # is this really true???
10080	;;
10081	siemens)
10082	  ## LD is ld it makes a PLAMLIB
10083	  ## CC just makes a GrossModule.
10084	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10085	  reload_cmds='$CC -r -o $output$reload_objs'
10086	  hardcode_direct=no
10087        ;;
10088	motorola)
10089	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10091	;;
10092      esac
10093      runpath_var='LD_RUN_PATH'
10094      hardcode_shlibpath_var=no
10095      ;;
10096
10097    sysv4.3*)
10098      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099      hardcode_shlibpath_var=no
10100      export_dynamic_flag_spec='-Bexport'
10101      ;;
10102
10103    sysv4*MP*)
10104      if test -d /usr/nec; then
10105	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10106	hardcode_shlibpath_var=no
10107	runpath_var=LD_RUN_PATH
10108	hardcode_runpath_var=yes
10109	ld_shlibs=yes
10110      fi
10111      ;;
10112
10113    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10114      no_undefined_flag='${wl}-z,text'
10115      archive_cmds_need_lc=no
10116      hardcode_shlibpath_var=no
10117      runpath_var='LD_RUN_PATH'
10118
10119      if test "$GCC" = yes; then
10120	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122      else
10123	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125      fi
10126      ;;
10127
10128    sysv5* | sco3.2v5* | sco5v6*)
10129      # Note: We can NOT use -z defs as we might desire, because we do not
10130      # link with -lc, and that would cause any symbols used from libc to
10131      # always be unresolved, which means just about no library would
10132      # ever link correctly.  If we're not using GNU ld we use -z text
10133      # though, which does catch some bad symbols but isn't as heavy-handed
10134      # as -z defs.
10135      no_undefined_flag='${wl}-z,text'
10136      allow_undefined_flag='${wl}-z,nodefs'
10137      archive_cmds_need_lc=no
10138      hardcode_shlibpath_var=no
10139      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10140      hardcode_libdir_separator=':'
10141      link_all_deplibs=yes
10142      export_dynamic_flag_spec='${wl}-Bexport'
10143      runpath_var='LD_RUN_PATH'
10144
10145      if test "$GCC" = yes; then
10146	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148      else
10149	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151      fi
10152      ;;
10153
10154    uts4*)
10155      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156      hardcode_libdir_flag_spec='-L$libdir'
10157      hardcode_shlibpath_var=no
10158      ;;
10159
10160    *)
10161      ld_shlibs=no
10162      ;;
10163    esac
10164
10165    if test x$host_vendor = xsni; then
10166      case $host in
10167      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10168	export_dynamic_flag_spec='${wl}-Blargedynsym'
10169	;;
10170      esac
10171    fi
10172  fi
10173
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10175$as_echo "$ld_shlibs" >&6; }
10176test "$ld_shlibs" = no && can_build_shared=no
10177
10178with_gnu_ld=$with_gnu_ld
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194#
10195# Do we need to explicitly link libc?
10196#
10197case "x$archive_cmds_need_lc" in
10198x|xyes)
10199  # Assume -lc should be added
10200  archive_cmds_need_lc=yes
10201
10202  if test "$enable_shared" = yes && test "$GCC" = yes; then
10203    case $archive_cmds in
10204    *'~'*)
10205      # FIXME: we may have to deal with multi-command sequences.
10206      ;;
10207    '$CC '*)
10208      # Test whether the compiler implicitly links with -lc since on some
10209      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10210      # to ld, don't add -lc before -lgcc.
10211      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10212$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10213if ${lt_cv_archive_cmds_need_lc+:} false; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  $RM conftest*
10217	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10218
10219	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10220  (eval $ac_compile) 2>&5
10221  ac_status=$?
10222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10223  test $ac_status = 0; } 2>conftest.err; then
10224	  soname=conftest
10225	  lib=conftest
10226	  libobjs=conftest.$ac_objext
10227	  deplibs=
10228	  wl=$lt_prog_compiler_wl
10229	  pic_flag=$lt_prog_compiler_pic
10230	  compiler_flags=-v
10231	  linker_flags=-v
10232	  verstring=
10233	  output_objdir=.
10234	  libname=conftest
10235	  lt_save_allow_undefined_flag=$allow_undefined_flag
10236	  allow_undefined_flag=
10237	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10238  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10239  ac_status=$?
10240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10241  test $ac_status = 0; }
10242	  then
10243	    lt_cv_archive_cmds_need_lc=no
10244	  else
10245	    lt_cv_archive_cmds_need_lc=yes
10246	  fi
10247	  allow_undefined_flag=$lt_save_allow_undefined_flag
10248	else
10249	  cat conftest.err 1>&5
10250	fi
10251	$RM conftest*
10252
10253fi
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10255$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10256      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10257      ;;
10258    esac
10259  fi
10260  ;;
10261esac
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10420$as_echo_n "checking dynamic linker characteristics... " >&6; }
10421
10422if test "$GCC" = yes; then
10423  case $host_os in
10424    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10425    *) lt_awk_arg="/^libraries:/" ;;
10426  esac
10427  case $host_os in
10428    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10429    *) lt_sed_strip_eq="s,=/,/,g" ;;
10430  esac
10431  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10432  case $lt_search_path_spec in
10433  *\;*)
10434    # if the path contains ";" then we assume it to be the separator
10435    # otherwise default to the standard path separator (i.e. ":") - it is
10436    # assumed that no part of a normal pathname contains ";" but that should
10437    # okay in the real world where ";" in dirpaths is itself problematic.
10438    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10439    ;;
10440  *)
10441    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10442    ;;
10443  esac
10444  # Ok, now we have the path, separated by spaces, we can step through it
10445  # and add multilib dir if necessary.
10446  lt_tmp_lt_search_path_spec=
10447  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10448  for lt_sys_path in $lt_search_path_spec; do
10449    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10450      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10451    else
10452      test -d "$lt_sys_path" && \
10453	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10454    fi
10455  done
10456  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10457BEGIN {RS=" "; FS="/|\n";} {
10458  lt_foo="";
10459  lt_count=0;
10460  for (lt_i = NF; lt_i > 0; lt_i--) {
10461    if ($lt_i != "" && $lt_i != ".") {
10462      if ($lt_i == "..") {
10463        lt_count++;
10464      } else {
10465        if (lt_count == 0) {
10466          lt_foo="/" $lt_i lt_foo;
10467        } else {
10468          lt_count--;
10469        }
10470      }
10471    }
10472  }
10473  if (lt_foo != "") { lt_freq[lt_foo]++; }
10474  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10475}'`
10476  # AWK program above erroneously prepends '/' to C:/dos/paths
10477  # for these hosts.
10478  case $host_os in
10479    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10480      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10481  esac
10482  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10483else
10484  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10485fi
10486library_names_spec=
10487libname_spec='lib$name'
10488soname_spec=
10489shrext_cmds=".so"
10490postinstall_cmds=
10491postuninstall_cmds=
10492finish_cmds=
10493finish_eval=
10494shlibpath_var=
10495shlibpath_overrides_runpath=unknown
10496version_type=none
10497dynamic_linker="$host_os ld.so"
10498sys_lib_dlsearch_path_spec="/lib /usr/lib"
10499need_lib_prefix=unknown
10500hardcode_into_libs=no
10501
10502# when you set need_version to no, make sure it does not cause -set_version
10503# flags to be left without arguments
10504need_version=unknown
10505
10506case $host_os in
10507aix3*)
10508  version_type=linux
10509  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10510  shlibpath_var=LIBPATH
10511
10512  # AIX 3 has no versioning support, so we append a major version to the name.
10513  soname_spec='${libname}${release}${shared_ext}$major'
10514  ;;
10515
10516aix[4-9]*)
10517  version_type=linux
10518  need_lib_prefix=no
10519  need_version=no
10520  hardcode_into_libs=yes
10521  if test "$host_cpu" = ia64; then
10522    # AIX 5 supports IA64
10523    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10524    shlibpath_var=LD_LIBRARY_PATH
10525  else
10526    # With GCC up to 2.95.x, collect2 would create an import file
10527    # for dependence libraries.  The import file would start with
10528    # the line `#! .'.  This would cause the generated library to
10529    # depend on `.', always an invalid library.  This was fixed in
10530    # development snapshots of GCC prior to 3.0.
10531    case $host_os in
10532      aix4 | aix4.[01] | aix4.[01].*)
10533      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10534	   echo ' yes '
10535	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10536	:
10537      else
10538	can_build_shared=no
10539      fi
10540      ;;
10541    esac
10542    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10543    # soname into executable. Probably we can add versioning support to
10544    # collect2, so additional links can be useful in future.
10545    if test "$aix_use_runtimelinking" = yes; then
10546      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10547      # instead of lib<name>.a to let people know that these are not
10548      # typical AIX shared libraries.
10549      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550    else
10551      # We preserve .a as extension for shared libraries through AIX4.2
10552      # and later when we are not doing run time linking.
10553      library_names_spec='${libname}${release}.a $libname.a'
10554      soname_spec='${libname}${release}${shared_ext}$major'
10555    fi
10556    shlibpath_var=LIBPATH
10557  fi
10558  ;;
10559
10560amigaos*)
10561  case $host_cpu in
10562  powerpc)
10563    # Since July 2007 AmigaOS4 officially supports .so libraries.
10564    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566    ;;
10567  m68k)
10568    library_names_spec='$libname.ixlibrary $libname.a'
10569    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10570    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10571    ;;
10572  esac
10573  ;;
10574
10575beos*)
10576  library_names_spec='${libname}${shared_ext}'
10577  dynamic_linker="$host_os ld.so"
10578  shlibpath_var=LIBRARY_PATH
10579  ;;
10580
10581bsdi[45]*)
10582  version_type=linux
10583  need_version=no
10584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585  soname_spec='${libname}${release}${shared_ext}$major'
10586  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10587  shlibpath_var=LD_LIBRARY_PATH
10588  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10589  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10590  # the default ld.so.conf also contains /usr/contrib/lib and
10591  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10592  # libtool to hard-code these into programs
10593  ;;
10594
10595cygwin* | mingw* | pw32* | cegcc*)
10596  version_type=windows
10597  shrext_cmds=".dll"
10598  need_version=no
10599  need_lib_prefix=no
10600
10601  case $GCC,$cc_basename in
10602  yes,*)
10603    # gcc
10604    library_names_spec='$libname.dll.a'
10605    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10606    postinstall_cmds='base_file=`basename \${file}`~
10607      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10608      dldir=$destdir/`dirname \$dlpath`~
10609      test -d \$dldir || mkdir -p \$dldir~
10610      $install_prog $dir/$dlname \$dldir/$dlname~
10611      chmod a+x \$dldir/$dlname~
10612      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10613        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10614      fi'
10615    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10616      dlpath=$dir/\$dldll~
10617       $RM \$dlpath'
10618    shlibpath_overrides_runpath=yes
10619
10620    case $host_os in
10621    cygwin*)
10622      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10623      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10624
10625      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10626      ;;
10627    mingw* | cegcc*)
10628      # MinGW DLLs use traditional 'lib' prefix
10629      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10630      ;;
10631    pw32*)
10632      # pw32 DLLs use 'pw' prefix rather than 'lib'
10633      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10634      ;;
10635    esac
10636    dynamic_linker='Win32 ld.exe'
10637    ;;
10638
10639  *,cl*)
10640    # Native MSVC
10641    libname_spec='$name'
10642    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10643    library_names_spec='${libname}.dll.lib'
10644
10645    case $build_os in
10646    mingw*)
10647      sys_lib_search_path_spec=
10648      lt_save_ifs=$IFS
10649      IFS=';'
10650      for lt_path in $LIB
10651      do
10652        IFS=$lt_save_ifs
10653        # Let DOS variable expansion print the short 8.3 style file name.
10654        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10655        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10656      done
10657      IFS=$lt_save_ifs
10658      # Convert to MSYS style.
10659      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10660      ;;
10661    cygwin*)
10662      # Convert to unix form, then to dos form, then back to unix form
10663      # but this time dos style (no spaces!) so that the unix form looks
10664      # like /cygdrive/c/PROGRA~1:/cygdr...
10665      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10666      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10667      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10668      ;;
10669    *)
10670      sys_lib_search_path_spec="$LIB"
10671      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10672        # It is most probably a Windows format PATH.
10673        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10674      else
10675        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10676      fi
10677      # FIXME: find the short name or the path components, as spaces are
10678      # common. (e.g. "Program Files" -> "PROGRA~1")
10679      ;;
10680    esac
10681
10682    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10683    postinstall_cmds='base_file=`basename \${file}`~
10684      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10685      dldir=$destdir/`dirname \$dlpath`~
10686      test -d \$dldir || mkdir -p \$dldir~
10687      $install_prog $dir/$dlname \$dldir/$dlname'
10688    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10689      dlpath=$dir/\$dldll~
10690       $RM \$dlpath'
10691    shlibpath_overrides_runpath=yes
10692    dynamic_linker='Win32 link.exe'
10693    ;;
10694
10695  *)
10696    # Assume MSVC wrapper
10697    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10698    dynamic_linker='Win32 ld.exe'
10699    ;;
10700  esac
10701  # FIXME: first we should search . and the directory the executable is in
10702  shlibpath_var=PATH
10703  ;;
10704
10705darwin* | rhapsody*)
10706  dynamic_linker="$host_os dyld"
10707  version_type=darwin
10708  need_lib_prefix=no
10709  need_version=no
10710  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10711  soname_spec='${libname}${release}${major}$shared_ext'
10712  shlibpath_overrides_runpath=yes
10713  shlibpath_var=DYLD_LIBRARY_PATH
10714  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10715
10716  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10717  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10718  ;;
10719
10720dgux*)
10721  version_type=linux
10722  need_lib_prefix=no
10723  need_version=no
10724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10725  soname_spec='${libname}${release}${shared_ext}$major'
10726  shlibpath_var=LD_LIBRARY_PATH
10727  ;;
10728
10729freebsd1*)
10730  dynamic_linker=no
10731  ;;
10732
10733freebsd* | dragonfly*)
10734  # DragonFly does not have aout.  When/if they implement a new
10735  # versioning mechanism, adjust this.
10736  if test -x /usr/bin/objformat; then
10737    objformat=`/usr/bin/objformat`
10738  else
10739    case $host_os in
10740    freebsd[123]*) objformat=aout ;;
10741    *) objformat=elf ;;
10742    esac
10743  fi
10744  version_type=freebsd-$objformat
10745  case $version_type in
10746    freebsd-elf*)
10747      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10748      need_version=no
10749      need_lib_prefix=no
10750      ;;
10751    freebsd-*)
10752      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10753      need_version=yes
10754      ;;
10755  esac
10756  shlibpath_var=LD_LIBRARY_PATH
10757  case $host_os in
10758  freebsd2*)
10759    shlibpath_overrides_runpath=yes
10760    ;;
10761  freebsd3.[01]* | freebsdelf3.[01]*)
10762    shlibpath_overrides_runpath=yes
10763    hardcode_into_libs=yes
10764    ;;
10765  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10766  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10767    shlibpath_overrides_runpath=no
10768    hardcode_into_libs=yes
10769    ;;
10770  *) # from 4.6 on, and DragonFly
10771    shlibpath_overrides_runpath=yes
10772    hardcode_into_libs=yes
10773    ;;
10774  esac
10775  ;;
10776
10777gnu*)
10778  version_type=linux
10779  need_lib_prefix=no
10780  need_version=no
10781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10782  soname_spec='${libname}${release}${shared_ext}$major'
10783  shlibpath_var=LD_LIBRARY_PATH
10784  hardcode_into_libs=yes
10785  ;;
10786
10787haiku*)
10788  version_type=linux
10789  need_lib_prefix=no
10790  need_version=no
10791  dynamic_linker="$host_os runtime_loader"
10792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10793  soname_spec='${libname}${release}${shared_ext}$major'
10794  shlibpath_var=LIBRARY_PATH
10795  shlibpath_overrides_runpath=yes
10796  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10797  hardcode_into_libs=yes
10798  ;;
10799
10800hpux9* | hpux10* | hpux11*)
10801  # Give a soname corresponding to the major version so that dld.sl refuses to
10802  # link against other versions.
10803  version_type=sunos
10804  need_lib_prefix=no
10805  need_version=no
10806  case $host_cpu in
10807  ia64*)
10808    shrext_cmds='.so'
10809    hardcode_into_libs=yes
10810    dynamic_linker="$host_os dld.so"
10811    shlibpath_var=LD_LIBRARY_PATH
10812    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814    soname_spec='${libname}${release}${shared_ext}$major'
10815    if test "X$HPUX_IA64_MODE" = X32; then
10816      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10817    else
10818      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10819    fi
10820    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10821    ;;
10822  hppa*64*)
10823    shrext_cmds='.sl'
10824    hardcode_into_libs=yes
10825    dynamic_linker="$host_os dld.sl"
10826    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10827    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829    soname_spec='${libname}${release}${shared_ext}$major'
10830    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10831    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10832    ;;
10833  *)
10834    shrext_cmds='.sl'
10835    dynamic_linker="$host_os dld.sl"
10836    shlibpath_var=SHLIB_PATH
10837    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10838    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839    soname_spec='${libname}${release}${shared_ext}$major'
10840    ;;
10841  esac
10842  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10843  postinstall_cmds='chmod 555 $lib'
10844  # or fails outright, so override atomically:
10845  install_override_mode=555
10846  ;;
10847
10848interix[3-9]*)
10849  version_type=linux
10850  need_lib_prefix=no
10851  need_version=no
10852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10853  soname_spec='${libname}${release}${shared_ext}$major'
10854  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10855  shlibpath_var=LD_LIBRARY_PATH
10856  shlibpath_overrides_runpath=no
10857  hardcode_into_libs=yes
10858  ;;
10859
10860irix5* | irix6* | nonstopux*)
10861  case $host_os in
10862    nonstopux*) version_type=nonstopux ;;
10863    *)
10864	if test "$lt_cv_prog_gnu_ld" = yes; then
10865		version_type=linux
10866	else
10867		version_type=irix
10868	fi ;;
10869  esac
10870  need_lib_prefix=no
10871  need_version=no
10872  soname_spec='${libname}${release}${shared_ext}$major'
10873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10874  case $host_os in
10875  irix5* | nonstopux*)
10876    libsuff= shlibsuff=
10877    ;;
10878  *)
10879    case $LD in # libtool.m4 will add one of these switches to LD
10880    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10881      libsuff= shlibsuff= libmagic=32-bit;;
10882    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10883      libsuff=32 shlibsuff=N32 libmagic=N32;;
10884    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10885      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10886    *) libsuff= shlibsuff= libmagic=never-match;;
10887    esac
10888    ;;
10889  esac
10890  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10891  shlibpath_overrides_runpath=no
10892  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10893  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10894  hardcode_into_libs=yes
10895  ;;
10896
10897# No shared lib support for Linux oldld, aout, or coff.
10898linux*oldld* | linux*aout* | linux*coff*)
10899  dynamic_linker=no
10900  ;;
10901
10902# This must be Linux ELF.
10903linux* | k*bsd*-gnu | kopensolaris*-gnu)
10904  version_type=linux
10905  need_lib_prefix=no
10906  need_version=no
10907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908  soname_spec='${libname}${release}${shared_ext}$major'
10909  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10910  shlibpath_var=LD_LIBRARY_PATH
10911  shlibpath_overrides_runpath=no
10912
10913  # Some binutils ld are patched to set DT_RUNPATH
10914  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  lt_cv_shlibpath_overrides_runpath=no
10918    save_LDFLAGS=$LDFLAGS
10919    save_libdir=$libdir
10920    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10921	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10922    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923/* end confdefs.h.  */
10924
10925int
10926main ()
10927{
10928
10929  ;
10930  return 0;
10931}
10932_ACEOF
10933if ac_fn_c_try_link "$LINENO"; then :
10934  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10935  lt_cv_shlibpath_overrides_runpath=yes
10936fi
10937fi
10938rm -f core conftest.err conftest.$ac_objext \
10939    conftest$ac_exeext conftest.$ac_ext
10940    LDFLAGS=$save_LDFLAGS
10941    libdir=$save_libdir
10942
10943fi
10944
10945  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10946
10947  # This implies no fast_install, which is unacceptable.
10948  # Some rework will be needed to allow for fast_install
10949  # before this can be enabled.
10950  hardcode_into_libs=yes
10951
10952  # Append ld.so.conf contents to the search path
10953  if test -f /etc/ld.so.conf; then
10954    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10955    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10956  fi
10957
10958  # We used to test for /lib/ld.so.1 and disable shared libraries on
10959  # powerpc, because MkLinux only supported shared libraries with the
10960  # GNU dynamic linker.  Since this was broken with cross compilers,
10961  # most powerpc-linux boxes support dynamic linking these days and
10962  # people can always --disable-shared, the test was removed, and we
10963  # assume the GNU/Linux dynamic linker is in use.
10964  dynamic_linker='GNU/Linux ld.so'
10965  ;;
10966
10967netbsd*)
10968  version_type=sunos
10969  need_lib_prefix=no
10970  need_version=no
10971  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10972    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10973    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10974    dynamic_linker='NetBSD (a.out) ld.so'
10975  else
10976    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10977    soname_spec='${libname}${release}${shared_ext}$major'
10978    dynamic_linker='NetBSD ld.elf_so'
10979  fi
10980  shlibpath_var=LD_LIBRARY_PATH
10981  shlibpath_overrides_runpath=yes
10982  hardcode_into_libs=yes
10983  ;;
10984
10985newsos6)
10986  version_type=linux
10987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988  shlibpath_var=LD_LIBRARY_PATH
10989  shlibpath_overrides_runpath=yes
10990  ;;
10991
10992*nto* | *qnx*)
10993  version_type=qnx
10994  need_lib_prefix=no
10995  need_version=no
10996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997  soname_spec='${libname}${release}${shared_ext}$major'
10998  shlibpath_var=LD_LIBRARY_PATH
10999  shlibpath_overrides_runpath=no
11000  hardcode_into_libs=yes
11001  dynamic_linker='ldqnx.so'
11002  ;;
11003
11004openbsd*)
11005  version_type=sunos
11006  sys_lib_dlsearch_path_spec="/usr/lib"
11007  need_lib_prefix=no
11008  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11009  case $host_os in
11010    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11011    *)				need_version=no  ;;
11012  esac
11013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11014  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11015  shlibpath_var=LD_LIBRARY_PATH
11016  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11017    case $host_os in
11018      openbsd2.[89] | openbsd2.[89].*)
11019	shlibpath_overrides_runpath=no
11020	;;
11021      *)
11022	shlibpath_overrides_runpath=yes
11023	;;
11024      esac
11025  else
11026    shlibpath_overrides_runpath=yes
11027  fi
11028  ;;
11029
11030os2*)
11031  libname_spec='$name'
11032  shrext_cmds=".dll"
11033  need_lib_prefix=no
11034  library_names_spec='$libname${shared_ext} $libname.a'
11035  dynamic_linker='OS/2 ld.exe'
11036  shlibpath_var=LIBPATH
11037  ;;
11038
11039osf3* | osf4* | osf5*)
11040  version_type=osf
11041  need_lib_prefix=no
11042  need_version=no
11043  soname_spec='${libname}${release}${shared_ext}$major'
11044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045  shlibpath_var=LD_LIBRARY_PATH
11046  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11047  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11048  ;;
11049
11050rdos*)
11051  dynamic_linker=no
11052  ;;
11053
11054solaris*)
11055  version_type=linux
11056  need_lib_prefix=no
11057  need_version=no
11058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059  soname_spec='${libname}${release}${shared_ext}$major'
11060  shlibpath_var=LD_LIBRARY_PATH
11061  shlibpath_overrides_runpath=yes
11062  hardcode_into_libs=yes
11063  # ldd complains unless libraries are executable
11064  postinstall_cmds='chmod +x $lib'
11065  ;;
11066
11067sunos4*)
11068  version_type=sunos
11069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11070  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11071  shlibpath_var=LD_LIBRARY_PATH
11072  shlibpath_overrides_runpath=yes
11073  if test "$with_gnu_ld" = yes; then
11074    need_lib_prefix=no
11075  fi
11076  need_version=yes
11077  ;;
11078
11079sysv4 | sysv4.3*)
11080  version_type=linux
11081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082  soname_spec='${libname}${release}${shared_ext}$major'
11083  shlibpath_var=LD_LIBRARY_PATH
11084  case $host_vendor in
11085    sni)
11086      shlibpath_overrides_runpath=no
11087      need_lib_prefix=no
11088      runpath_var=LD_RUN_PATH
11089      ;;
11090    siemens)
11091      need_lib_prefix=no
11092      ;;
11093    motorola)
11094      need_lib_prefix=no
11095      need_version=no
11096      shlibpath_overrides_runpath=no
11097      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11098      ;;
11099  esac
11100  ;;
11101
11102sysv4*MP*)
11103  if test -d /usr/nec ;then
11104    version_type=linux
11105    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11106    soname_spec='$libname${shared_ext}.$major'
11107    shlibpath_var=LD_LIBRARY_PATH
11108  fi
11109  ;;
11110
11111sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11112  version_type=freebsd-elf
11113  need_lib_prefix=no
11114  need_version=no
11115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11116  soname_spec='${libname}${release}${shared_ext}$major'
11117  shlibpath_var=LD_LIBRARY_PATH
11118  shlibpath_overrides_runpath=yes
11119  hardcode_into_libs=yes
11120  if test "$with_gnu_ld" = yes; then
11121    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11122  else
11123    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11124    case $host_os in
11125      sco3.2v5*)
11126        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11127	;;
11128    esac
11129  fi
11130  sys_lib_dlsearch_path_spec='/usr/lib'
11131  ;;
11132
11133tpf*)
11134  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11135  version_type=linux
11136  need_lib_prefix=no
11137  need_version=no
11138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139  shlibpath_var=LD_LIBRARY_PATH
11140  shlibpath_overrides_runpath=no
11141  hardcode_into_libs=yes
11142  ;;
11143
11144uts4*)
11145  version_type=linux
11146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147  soname_spec='${libname}${release}${shared_ext}$major'
11148  shlibpath_var=LD_LIBRARY_PATH
11149  ;;
11150
11151*)
11152  dynamic_linker=no
11153  ;;
11154esac
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11156$as_echo "$dynamic_linker" >&6; }
11157test "$dynamic_linker" = no && can_build_shared=no
11158
11159variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11160if test "$GCC" = yes; then
11161  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11162fi
11163
11164if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11165  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11166fi
11167if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11168  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11169fi
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11263$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11264hardcode_action=
11265if test -n "$hardcode_libdir_flag_spec" ||
11266   test -n "$runpath_var" ||
11267   test "X$hardcode_automatic" = "Xyes" ; then
11268
11269  # We can hardcode non-existent directories.
11270  if test "$hardcode_direct" != no &&
11271     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11272     # have to relink, otherwise we might link with an installed library
11273     # when we should be linking with a yet-to-be-installed one
11274     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11275     test "$hardcode_minus_L" != no; then
11276    # Linking always hardcodes the temporary library directory.
11277    hardcode_action=relink
11278  else
11279    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11280    hardcode_action=immediate
11281  fi
11282else
11283  # We cannot hardcode anything, or else we can only hardcode existing
11284  # directories.
11285  hardcode_action=unsupported
11286fi
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11288$as_echo "$hardcode_action" >&6; }
11289
11290if test "$hardcode_action" = relink ||
11291   test "$inherit_rpath" = yes; then
11292  # Fast installation is not supported
11293  enable_fast_install=no
11294elif test "$shlibpath_overrides_runpath" = yes ||
11295     test "$enable_shared" = no; then
11296  # Fast installation is not necessary
11297  enable_fast_install=needless
11298fi
11299
11300
11301
11302
11303
11304
11305  if test "x$enable_dlopen" != xyes; then
11306  enable_dlopen=unknown
11307  enable_dlopen_self=unknown
11308  enable_dlopen_self_static=unknown
11309else
11310  lt_cv_dlopen=no
11311  lt_cv_dlopen_libs=
11312
11313  case $host_os in
11314  beos*)
11315    lt_cv_dlopen="load_add_on"
11316    lt_cv_dlopen_libs=
11317    lt_cv_dlopen_self=yes
11318    ;;
11319
11320  mingw* | pw32* | cegcc*)
11321    lt_cv_dlopen="LoadLibrary"
11322    lt_cv_dlopen_libs=
11323    ;;
11324
11325  cygwin*)
11326    lt_cv_dlopen="dlopen"
11327    lt_cv_dlopen_libs=
11328    ;;
11329
11330  darwin*)
11331  # if libdl is installed we need to link against it
11332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11333$as_echo_n "checking for dlopen in -ldl... " >&6; }
11334if ${ac_cv_lib_dl_dlopen+:} false; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  ac_check_lib_save_LIBS=$LIBS
11338LIBS="-ldl  $LIBS"
11339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h.  */
11341
11342/* Override any GCC internal prototype to avoid an error.
11343   Use char because int might match the return type of a GCC
11344   builtin and then its argument prototype would still apply.  */
11345#ifdef __cplusplus
11346extern "C"
11347#endif
11348char dlopen ();
11349int
11350main ()
11351{
11352return dlopen ();
11353  ;
11354  return 0;
11355}
11356_ACEOF
11357if ac_fn_c_try_link "$LINENO"; then :
11358  ac_cv_lib_dl_dlopen=yes
11359else
11360  ac_cv_lib_dl_dlopen=no
11361fi
11362rm -f core conftest.err conftest.$ac_objext \
11363    conftest$ac_exeext conftest.$ac_ext
11364LIBS=$ac_check_lib_save_LIBS
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11367$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11368if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11369  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11370else
11371
11372    lt_cv_dlopen="dyld"
11373    lt_cv_dlopen_libs=
11374    lt_cv_dlopen_self=yes
11375
11376fi
11377
11378    ;;
11379
11380  *)
11381    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11382if test "x$ac_cv_func_shl_load" = xyes; then :
11383  lt_cv_dlopen="shl_load"
11384else
11385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11386$as_echo_n "checking for shl_load in -ldld... " >&6; }
11387if ${ac_cv_lib_dld_shl_load+:} false; then :
11388  $as_echo_n "(cached) " >&6
11389else
11390  ac_check_lib_save_LIBS=$LIBS
11391LIBS="-ldld  $LIBS"
11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h.  */
11394
11395/* Override any GCC internal prototype to avoid an error.
11396   Use char because int might match the return type of a GCC
11397   builtin and then its argument prototype would still apply.  */
11398#ifdef __cplusplus
11399extern "C"
11400#endif
11401char shl_load ();
11402int
11403main ()
11404{
11405return shl_load ();
11406  ;
11407  return 0;
11408}
11409_ACEOF
11410if ac_fn_c_try_link "$LINENO"; then :
11411  ac_cv_lib_dld_shl_load=yes
11412else
11413  ac_cv_lib_dld_shl_load=no
11414fi
11415rm -f core conftest.err conftest.$ac_objext \
11416    conftest$ac_exeext conftest.$ac_ext
11417LIBS=$ac_check_lib_save_LIBS
11418fi
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11420$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11421if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11422  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11423else
11424  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11425if test "x$ac_cv_func_dlopen" = xyes; then :
11426  lt_cv_dlopen="dlopen"
11427else
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11429$as_echo_n "checking for dlopen in -ldl... " >&6; }
11430if ${ac_cv_lib_dl_dlopen+:} false; then :
11431  $as_echo_n "(cached) " >&6
11432else
11433  ac_check_lib_save_LIBS=$LIBS
11434LIBS="-ldl  $LIBS"
11435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436/* end confdefs.h.  */
11437
11438/* Override any GCC internal prototype to avoid an error.
11439   Use char because int might match the return type of a GCC
11440   builtin and then its argument prototype would still apply.  */
11441#ifdef __cplusplus
11442extern "C"
11443#endif
11444char dlopen ();
11445int
11446main ()
11447{
11448return dlopen ();
11449  ;
11450  return 0;
11451}
11452_ACEOF
11453if ac_fn_c_try_link "$LINENO"; then :
11454  ac_cv_lib_dl_dlopen=yes
11455else
11456  ac_cv_lib_dl_dlopen=no
11457fi
11458rm -f core conftest.err conftest.$ac_objext \
11459    conftest$ac_exeext conftest.$ac_ext
11460LIBS=$ac_check_lib_save_LIBS
11461fi
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11463$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11464if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11465  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11466else
11467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11468$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11469if ${ac_cv_lib_svld_dlopen+:} false; then :
11470  $as_echo_n "(cached) " >&6
11471else
11472  ac_check_lib_save_LIBS=$LIBS
11473LIBS="-lsvld  $LIBS"
11474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475/* end confdefs.h.  */
11476
11477/* Override any GCC internal prototype to avoid an error.
11478   Use char because int might match the return type of a GCC
11479   builtin and then its argument prototype would still apply.  */
11480#ifdef __cplusplus
11481extern "C"
11482#endif
11483char dlopen ();
11484int
11485main ()
11486{
11487return dlopen ();
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492if ac_fn_c_try_link "$LINENO"; then :
11493  ac_cv_lib_svld_dlopen=yes
11494else
11495  ac_cv_lib_svld_dlopen=no
11496fi
11497rm -f core conftest.err conftest.$ac_objext \
11498    conftest$ac_exeext conftest.$ac_ext
11499LIBS=$ac_check_lib_save_LIBS
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11502$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11503if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11504  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11505else
11506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11507$as_echo_n "checking for dld_link in -ldld... " >&6; }
11508if ${ac_cv_lib_dld_dld_link+:} false; then :
11509  $as_echo_n "(cached) " >&6
11510else
11511  ac_check_lib_save_LIBS=$LIBS
11512LIBS="-ldld  $LIBS"
11513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514/* end confdefs.h.  */
11515
11516/* Override any GCC internal prototype to avoid an error.
11517   Use char because int might match the return type of a GCC
11518   builtin and then its argument prototype would still apply.  */
11519#ifdef __cplusplus
11520extern "C"
11521#endif
11522char dld_link ();
11523int
11524main ()
11525{
11526return dld_link ();
11527  ;
11528  return 0;
11529}
11530_ACEOF
11531if ac_fn_c_try_link "$LINENO"; then :
11532  ac_cv_lib_dld_dld_link=yes
11533else
11534  ac_cv_lib_dld_dld_link=no
11535fi
11536rm -f core conftest.err conftest.$ac_objext \
11537    conftest$ac_exeext conftest.$ac_ext
11538LIBS=$ac_check_lib_save_LIBS
11539fi
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11541$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11542if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11543  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11544fi
11545
11546
11547fi
11548
11549
11550fi
11551
11552
11553fi
11554
11555
11556fi
11557
11558
11559fi
11560
11561    ;;
11562  esac
11563
11564  if test "x$lt_cv_dlopen" != xno; then
11565    enable_dlopen=yes
11566  else
11567    enable_dlopen=no
11568  fi
11569
11570  case $lt_cv_dlopen in
11571  dlopen)
11572    save_CPPFLAGS="$CPPFLAGS"
11573    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11574
11575    save_LDFLAGS="$LDFLAGS"
11576    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11577
11578    save_LIBS="$LIBS"
11579    LIBS="$lt_cv_dlopen_libs $LIBS"
11580
11581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11582$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11583if ${lt_cv_dlopen_self+:} false; then :
11584  $as_echo_n "(cached) " >&6
11585else
11586  	  if test "$cross_compiling" = yes; then :
11587  lt_cv_dlopen_self=cross
11588else
11589  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11590  lt_status=$lt_dlunknown
11591  cat > conftest.$ac_ext <<_LT_EOF
11592#line $LINENO "configure"
11593#include "confdefs.h"
11594
11595#if HAVE_DLFCN_H
11596#include <dlfcn.h>
11597#endif
11598
11599#include <stdio.h>
11600
11601#ifdef RTLD_GLOBAL
11602#  define LT_DLGLOBAL		RTLD_GLOBAL
11603#else
11604#  ifdef DL_GLOBAL
11605#    define LT_DLGLOBAL		DL_GLOBAL
11606#  else
11607#    define LT_DLGLOBAL		0
11608#  endif
11609#endif
11610
11611/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11612   find out it does not work in some platform. */
11613#ifndef LT_DLLAZY_OR_NOW
11614#  ifdef RTLD_LAZY
11615#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11616#  else
11617#    ifdef DL_LAZY
11618#      define LT_DLLAZY_OR_NOW		DL_LAZY
11619#    else
11620#      ifdef RTLD_NOW
11621#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11622#      else
11623#        ifdef DL_NOW
11624#          define LT_DLLAZY_OR_NOW	DL_NOW
11625#        else
11626#          define LT_DLLAZY_OR_NOW	0
11627#        endif
11628#      endif
11629#    endif
11630#  endif
11631#endif
11632
11633/* When -fvisbility=hidden is used, assume the code has been annotated
11634   correspondingly for the symbols needed.  */
11635#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11636int fnord () __attribute__((visibility("default")));
11637#endif
11638
11639int fnord () { return 42; }
11640int main ()
11641{
11642  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11643  int status = $lt_dlunknown;
11644
11645  if (self)
11646    {
11647      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11648      else
11649        {
11650	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11651          else puts (dlerror ());
11652	}
11653      /* dlclose (self); */
11654    }
11655  else
11656    puts (dlerror ());
11657
11658  return status;
11659}
11660_LT_EOF
11661  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11662  (eval $ac_link) 2>&5
11663  ac_status=$?
11664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11666    (./conftest; exit; ) >&5 2>/dev/null
11667    lt_status=$?
11668    case x$lt_status in
11669      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11670      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11671      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11672    esac
11673  else :
11674    # compilation failed
11675    lt_cv_dlopen_self=no
11676  fi
11677fi
11678rm -fr conftest*
11679
11680
11681fi
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11683$as_echo "$lt_cv_dlopen_self" >&6; }
11684
11685    if test "x$lt_cv_dlopen_self" = xyes; then
11686      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11687      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11688$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11689if ${lt_cv_dlopen_self_static+:} false; then :
11690  $as_echo_n "(cached) " >&6
11691else
11692  	  if test "$cross_compiling" = yes; then :
11693  lt_cv_dlopen_self_static=cross
11694else
11695  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11696  lt_status=$lt_dlunknown
11697  cat > conftest.$ac_ext <<_LT_EOF
11698#line $LINENO "configure"
11699#include "confdefs.h"
11700
11701#if HAVE_DLFCN_H
11702#include <dlfcn.h>
11703#endif
11704
11705#include <stdio.h>
11706
11707#ifdef RTLD_GLOBAL
11708#  define LT_DLGLOBAL		RTLD_GLOBAL
11709#else
11710#  ifdef DL_GLOBAL
11711#    define LT_DLGLOBAL		DL_GLOBAL
11712#  else
11713#    define LT_DLGLOBAL		0
11714#  endif
11715#endif
11716
11717/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11718   find out it does not work in some platform. */
11719#ifndef LT_DLLAZY_OR_NOW
11720#  ifdef RTLD_LAZY
11721#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11722#  else
11723#    ifdef DL_LAZY
11724#      define LT_DLLAZY_OR_NOW		DL_LAZY
11725#    else
11726#      ifdef RTLD_NOW
11727#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11728#      else
11729#        ifdef DL_NOW
11730#          define LT_DLLAZY_OR_NOW	DL_NOW
11731#        else
11732#          define LT_DLLAZY_OR_NOW	0
11733#        endif
11734#      endif
11735#    endif
11736#  endif
11737#endif
11738
11739/* When -fvisbility=hidden is used, assume the code has been annotated
11740   correspondingly for the symbols needed.  */
11741#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11742int fnord () __attribute__((visibility("default")));
11743#endif
11744
11745int fnord () { return 42; }
11746int main ()
11747{
11748  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11749  int status = $lt_dlunknown;
11750
11751  if (self)
11752    {
11753      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11754      else
11755        {
11756	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11757          else puts (dlerror ());
11758	}
11759      /* dlclose (self); */
11760    }
11761  else
11762    puts (dlerror ());
11763
11764  return status;
11765}
11766_LT_EOF
11767  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11768  (eval $ac_link) 2>&5
11769  ac_status=$?
11770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11771  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11772    (./conftest; exit; ) >&5 2>/dev/null
11773    lt_status=$?
11774    case x$lt_status in
11775      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11776      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11777      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11778    esac
11779  else :
11780    # compilation failed
11781    lt_cv_dlopen_self_static=no
11782  fi
11783fi
11784rm -fr conftest*
11785
11786
11787fi
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11789$as_echo "$lt_cv_dlopen_self_static" >&6; }
11790    fi
11791
11792    CPPFLAGS="$save_CPPFLAGS"
11793    LDFLAGS="$save_LDFLAGS"
11794    LIBS="$save_LIBS"
11795    ;;
11796  esac
11797
11798  case $lt_cv_dlopen_self in
11799  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11800  *) enable_dlopen_self=unknown ;;
11801  esac
11802
11803  case $lt_cv_dlopen_self_static in
11804  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11805  *) enable_dlopen_self_static=unknown ;;
11806  esac
11807fi
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825striplib=
11826old_striplib=
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11828$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11829if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11830  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11831  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833$as_echo "yes" >&6; }
11834else
11835# FIXME - insert some real tests, host_os isn't really good enough
11836  case $host_os in
11837  darwin*)
11838    if test -n "$STRIP" ; then
11839      striplib="$STRIP -x"
11840      old_striplib="$STRIP -S"
11841      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842$as_echo "yes" >&6; }
11843    else
11844      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
11846    fi
11847    ;;
11848  *)
11849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850$as_echo "no" >&6; }
11851    ;;
11852  esac
11853fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866  # Report which library types will actually be built
11867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11868$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11870$as_echo "$can_build_shared" >&6; }
11871
11872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11873$as_echo_n "checking whether to build shared libraries... " >&6; }
11874  test "$can_build_shared" = "no" && enable_shared=no
11875
11876  # On AIX, shared libraries and static libraries use the same namespace, and
11877  # are all built from PIC.
11878  case $host_os in
11879  aix3*)
11880    test "$enable_shared" = yes && enable_static=no
11881    if test -n "$RANLIB"; then
11882      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11883      postinstall_cmds='$RANLIB $lib'
11884    fi
11885    ;;
11886
11887  aix[4-9]*)
11888    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11889      test "$enable_shared" = yes && enable_static=no
11890    fi
11891    ;;
11892  esac
11893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11894$as_echo "$enable_shared" >&6; }
11895
11896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11897$as_echo_n "checking whether to build static libraries... " >&6; }
11898  # Make sure either enable_shared or enable_static is yes.
11899  test "$enable_shared" = yes || enable_static=yes
11900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11901$as_echo "$enable_static" >&6; }
11902
11903
11904
11905
11906fi
11907ac_ext=c
11908ac_cpp='$CPP $CPPFLAGS'
11909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912
11913CC="$lt_save_CC"
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927        ac_config_commands="$ac_config_commands libtool"
11928
11929
11930
11931
11932# Only expand once:
11933
11934
11935
11936
11937
11938 if test "$enable_libevent_regress" = "yes"; then
11939  BUILD_REGRESS_TRUE=
11940  BUILD_REGRESS_FALSE='#'
11941else
11942  BUILD_REGRESS_TRUE='#'
11943  BUILD_REGRESS_FALSE=
11944fi
11945
11946
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
11948$as_echo_n "checking for library containing inet_ntoa... " >&6; }
11949if ${ac_cv_search_inet_ntoa+:} false; then :
11950  $as_echo_n "(cached) " >&6
11951else
11952  ac_func_search_save_LIBS=$LIBS
11953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h.  */
11955
11956/* Override any GCC internal prototype to avoid an error.
11957   Use char because int might match the return type of a GCC
11958   builtin and then its argument prototype would still apply.  */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962char inet_ntoa ();
11963int
11964main ()
11965{
11966return inet_ntoa ();
11967  ;
11968  return 0;
11969}
11970_ACEOF
11971for ac_lib in '' nsl; do
11972  if test -z "$ac_lib"; then
11973    ac_res="none required"
11974  else
11975    ac_res=-l$ac_lib
11976    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11977  fi
11978  if ac_fn_c_try_link "$LINENO"; then :
11979  ac_cv_search_inet_ntoa=$ac_res
11980fi
11981rm -f core conftest.err conftest.$ac_objext \
11982    conftest$ac_exeext
11983  if ${ac_cv_search_inet_ntoa+:} false; then :
11984  break
11985fi
11986done
11987if ${ac_cv_search_inet_ntoa+:} false; then :
11988
11989else
11990  ac_cv_search_inet_ntoa=no
11991fi
11992rm conftest.$ac_ext
11993LIBS=$ac_func_search_save_LIBS
11994fi
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
11996$as_echo "$ac_cv_search_inet_ntoa" >&6; }
11997ac_res=$ac_cv_search_inet_ntoa
11998if test "$ac_res" != no; then :
11999  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12000
12001fi
12002
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12004$as_echo_n "checking for library containing socket... " >&6; }
12005if ${ac_cv_search_socket+:} false; then :
12006  $as_echo_n "(cached) " >&6
12007else
12008  ac_func_search_save_LIBS=$LIBS
12009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010/* end confdefs.h.  */
12011
12012/* Override any GCC internal prototype to avoid an error.
12013   Use char because int might match the return type of a GCC
12014   builtin and then its argument prototype would still apply.  */
12015#ifdef __cplusplus
12016extern "C"
12017#endif
12018char socket ();
12019int
12020main ()
12021{
12022return socket ();
12023  ;
12024  return 0;
12025}
12026_ACEOF
12027for ac_lib in '' socket; do
12028  if test -z "$ac_lib"; then
12029    ac_res="none required"
12030  else
12031    ac_res=-l$ac_lib
12032    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12033  fi
12034  if ac_fn_c_try_link "$LINENO"; then :
12035  ac_cv_search_socket=$ac_res
12036fi
12037rm -f core conftest.err conftest.$ac_objext \
12038    conftest$ac_exeext
12039  if ${ac_cv_search_socket+:} false; then :
12040  break
12041fi
12042done
12043if ${ac_cv_search_socket+:} false; then :
12044
12045else
12046  ac_cv_search_socket=no
12047fi
12048rm conftest.$ac_ext
12049LIBS=$ac_func_search_save_LIBS
12050fi
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12052$as_echo "$ac_cv_search_socket" >&6; }
12053ac_res=$ac_cv_search_socket
12054if test "$ac_res" != no; then :
12055  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12056
12057fi
12058
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12060$as_echo_n "checking for library containing inet_aton... " >&6; }
12061if ${ac_cv_search_inet_aton+:} false; then :
12062  $as_echo_n "(cached) " >&6
12063else
12064  ac_func_search_save_LIBS=$LIBS
12065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066/* end confdefs.h.  */
12067
12068/* Override any GCC internal prototype to avoid an error.
12069   Use char because int might match the return type of a GCC
12070   builtin and then its argument prototype would still apply.  */
12071#ifdef __cplusplus
12072extern "C"
12073#endif
12074char inet_aton ();
12075int
12076main ()
12077{
12078return inet_aton ();
12079  ;
12080  return 0;
12081}
12082_ACEOF
12083for ac_lib in '' resolv; do
12084  if test -z "$ac_lib"; then
12085    ac_res="none required"
12086  else
12087    ac_res=-l$ac_lib
12088    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12089  fi
12090  if ac_fn_c_try_link "$LINENO"; then :
12091  ac_cv_search_inet_aton=$ac_res
12092fi
12093rm -f core conftest.err conftest.$ac_objext \
12094    conftest$ac_exeext
12095  if ${ac_cv_search_inet_aton+:} false; then :
12096  break
12097fi
12098done
12099if ${ac_cv_search_inet_aton+:} false; then :
12100
12101else
12102  ac_cv_search_inet_aton=no
12103fi
12104rm conftest.$ac_ext
12105LIBS=$ac_func_search_save_LIBS
12106fi
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12108$as_echo "$ac_cv_search_inet_aton" >&6; }
12109ac_res=$ac_cv_search_inet_aton
12110if test "$ac_res" != no; then :
12111  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12112
12113fi
12114
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12116$as_echo_n "checking for library containing clock_gettime... " >&6; }
12117if ${ac_cv_search_clock_gettime+:} false; then :
12118  $as_echo_n "(cached) " >&6
12119else
12120  ac_func_search_save_LIBS=$LIBS
12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122/* end confdefs.h.  */
12123
12124/* Override any GCC internal prototype to avoid an error.
12125   Use char because int might match the return type of a GCC
12126   builtin and then its argument prototype would still apply.  */
12127#ifdef __cplusplus
12128extern "C"
12129#endif
12130char clock_gettime ();
12131int
12132main ()
12133{
12134return clock_gettime ();
12135  ;
12136  return 0;
12137}
12138_ACEOF
12139for ac_lib in '' rt; do
12140  if test -z "$ac_lib"; then
12141    ac_res="none required"
12142  else
12143    ac_res=-l$ac_lib
12144    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12145  fi
12146  if ac_fn_c_try_link "$LINENO"; then :
12147  ac_cv_search_clock_gettime=$ac_res
12148fi
12149rm -f core conftest.err conftest.$ac_objext \
12150    conftest$ac_exeext
12151  if ${ac_cv_search_clock_gettime+:} false; then :
12152  break
12153fi
12154done
12155if ${ac_cv_search_clock_gettime+:} false; then :
12156
12157else
12158  ac_cv_search_clock_gettime=no
12159fi
12160rm conftest.$ac_ext
12161LIBS=$ac_func_search_save_LIBS
12162fi
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12164$as_echo "$ac_cv_search_clock_gettime" >&6; }
12165ac_res=$ac_cv_search_clock_gettime
12166if test "$ac_res" != no; then :
12167  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12168
12169fi
12170
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12172$as_echo_n "checking for library containing sendfile... " >&6; }
12173if ${ac_cv_search_sendfile+:} false; then :
12174  $as_echo_n "(cached) " >&6
12175else
12176  ac_func_search_save_LIBS=$LIBS
12177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178/* end confdefs.h.  */
12179
12180/* Override any GCC internal prototype to avoid an error.
12181   Use char because int might match the return type of a GCC
12182   builtin and then its argument prototype would still apply.  */
12183#ifdef __cplusplus
12184extern "C"
12185#endif
12186char sendfile ();
12187int
12188main ()
12189{
12190return sendfile ();
12191  ;
12192  return 0;
12193}
12194_ACEOF
12195for ac_lib in '' sendfile; do
12196  if test -z "$ac_lib"; then
12197    ac_res="none required"
12198  else
12199    ac_res=-l$ac_lib
12200    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12201  fi
12202  if ac_fn_c_try_link "$LINENO"; then :
12203  ac_cv_search_sendfile=$ac_res
12204fi
12205rm -f core conftest.err conftest.$ac_objext \
12206    conftest$ac_exeext
12207  if ${ac_cv_search_sendfile+:} false; then :
12208  break
12209fi
12210done
12211if ${ac_cv_search_sendfile+:} false; then :
12212
12213else
12214  ac_cv_search_sendfile=no
12215fi
12216rm conftest.$ac_ext
12217LIBS=$ac_func_search_save_LIBS
12218fi
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12220$as_echo "$ac_cv_search_sendfile" >&6; }
12221ac_res=$ac_cv_search_sendfile
12222if test "$ac_res" != no; then :
12223  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12224
12225fi
12226
12227
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12229$as_echo_n "checking for WIN32... " >&6; }
12230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231/* end confdefs.h.  */
12232
12233int
12234main ()
12235{
12236
12237#ifndef WIN32
12238die horribly
12239#endif
12240
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245if ac_fn_c_try_compile "$LINENO"; then :
12246  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12247$as_echo "yes" >&6; }
12248else
12249  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
12251fi
12252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12255$as_echo_n "checking for CYGWIN... " >&6; }
12256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257/* end confdefs.h.  */
12258
12259int
12260main ()
12261{
12262
12263#ifndef __CYGWIN__
12264die horribly
12265#endif
12266
12267  ;
12268  return 0;
12269}
12270_ACEOF
12271if ac_fn_c_try_compile "$LINENO"; then :
12272  cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273$as_echo "yes" >&6; }
12274else
12275  cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277fi
12278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279
12280for ac_header in zlib.h
12281do :
12282  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12283if test "x$ac_cv_header_zlib_h" = xyes; then :
12284  cat >>confdefs.h <<_ACEOF
12285#define HAVE_ZLIB_H 1
12286_ACEOF
12287
12288fi
12289
12290done
12291
12292
12293if test "x$ac_cv_header_zlib_h" = "xyes"; then
12294save_LIBS="$LIBS"
12295LIBS=""
12296ZLIB_LIBS=""
12297have_zlib=no
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12299$as_echo_n "checking for library containing inflateEnd... " >&6; }
12300if ${ac_cv_search_inflateEnd+:} false; then :
12301  $as_echo_n "(cached) " >&6
12302else
12303  ac_func_search_save_LIBS=$LIBS
12304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h.  */
12306
12307/* Override any GCC internal prototype to avoid an error.
12308   Use char because int might match the return type of a GCC
12309   builtin and then its argument prototype would still apply.  */
12310#ifdef __cplusplus
12311extern "C"
12312#endif
12313char inflateEnd ();
12314int
12315main ()
12316{
12317return inflateEnd ();
12318  ;
12319  return 0;
12320}
12321_ACEOF
12322for ac_lib in '' z; do
12323  if test -z "$ac_lib"; then
12324    ac_res="none required"
12325  else
12326    ac_res=-l$ac_lib
12327    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12328  fi
12329  if ac_fn_c_try_link "$LINENO"; then :
12330  ac_cv_search_inflateEnd=$ac_res
12331fi
12332rm -f core conftest.err conftest.$ac_objext \
12333    conftest$ac_exeext
12334  if ${ac_cv_search_inflateEnd+:} false; then :
12335  break
12336fi
12337done
12338if ${ac_cv_search_inflateEnd+:} false; then :
12339
12340else
12341  ac_cv_search_inflateEnd=no
12342fi
12343rm conftest.$ac_ext
12344LIBS=$ac_func_search_save_LIBS
12345fi
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12347$as_echo "$ac_cv_search_inflateEnd" >&6; }
12348ac_res=$ac_cv_search_inflateEnd
12349if test "$ac_res" != no; then :
12350  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12351  have_zlib=yes
12352	ZLIB_LIBS="$LIBS"
12353
12354$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12355
12356fi
12357
12358LIBS="$save_LIBS"
12359
12360fi
12361 if test "$have_zlib" = "yes"; then
12362  ZLIB_REGRESS_TRUE=
12363  ZLIB_REGRESS_FALSE='#'
12364else
12365  ZLIB_REGRESS_TRUE='#'
12366  ZLIB_REGRESS_FALSE=
12367fi
12368
12369
12370if test "$bwin32" = true; then
12371  EV_LIB_WS32=-lws2_32
12372  EV_LIB_GDI=-lgdi32
12373else
12374  EV_LIB_WS32=
12375  EV_LIB_GDI=
12376fi
12377
12378
12379
12380
12381for ac_header in openssl/bio.h
12382do :
12383  ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12384if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12385  cat >>confdefs.h <<_ACEOF
12386#define HAVE_OPENSSL_BIO_H 1
12387_ACEOF
12388
12389fi
12390
12391done
12392
12393
12394if test "$enable_openssl" = "yes"; then
12395save_LIBS="$LIBS"
12396LIBS=""
12397OPENSSL_LIBS=""
12398have_openssl=no
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12400$as_echo_n "checking for library containing SSL_new... " >&6; }
12401if ${ac_cv_search_SSL_new+:} false; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  ac_func_search_save_LIBS=$LIBS
12405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h.  */
12407
12408/* Override any GCC internal prototype to avoid an error.
12409   Use char because int might match the return type of a GCC
12410   builtin and then its argument prototype would still apply.  */
12411#ifdef __cplusplus
12412extern "C"
12413#endif
12414char SSL_new ();
12415int
12416main ()
12417{
12418return SSL_new ();
12419  ;
12420  return 0;
12421}
12422_ACEOF
12423for ac_lib in '' ssl; do
12424  if test -z "$ac_lib"; then
12425    ac_res="none required"
12426  else
12427    ac_res=-l$ac_lib
12428    LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12429  fi
12430  if ac_fn_c_try_link "$LINENO"; then :
12431  ac_cv_search_SSL_new=$ac_res
12432fi
12433rm -f core conftest.err conftest.$ac_objext \
12434    conftest$ac_exeext
12435  if ${ac_cv_search_SSL_new+:} false; then :
12436  break
12437fi
12438done
12439if ${ac_cv_search_SSL_new+:} false; then :
12440
12441else
12442  ac_cv_search_SSL_new=no
12443fi
12444rm conftest.$ac_ext
12445LIBS=$ac_func_search_save_LIBS
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12448$as_echo "$ac_cv_search_SSL_new" >&6; }
12449ac_res=$ac_cv_search_SSL_new
12450if test "$ac_res" != no; then :
12451  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12452  have_openssl=yes
12453	OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12454
12455$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12456
12457else
12458  have_openssl=no
12459fi
12460
12461LIBS="$save_LIBS"
12462
12463fi
12464
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12466$as_echo_n "checking for ANSI C header files... " >&6; }
12467if ${ac_cv_header_stdc+:} false; then :
12468  $as_echo_n "(cached) " >&6
12469else
12470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471/* end confdefs.h.  */
12472#include <stdlib.h>
12473#include <stdarg.h>
12474#include <string.h>
12475#include <float.h>
12476
12477int
12478main ()
12479{
12480
12481  ;
12482  return 0;
12483}
12484_ACEOF
12485if ac_fn_c_try_compile "$LINENO"; then :
12486  ac_cv_header_stdc=yes
12487else
12488  ac_cv_header_stdc=no
12489fi
12490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491
12492if test $ac_cv_header_stdc = yes; then
12493  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h.  */
12496#include <string.h>
12497
12498_ACEOF
12499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12500  $EGREP "memchr" >/dev/null 2>&1; then :
12501
12502else
12503  ac_cv_header_stdc=no
12504fi
12505rm -f conftest*
12506
12507fi
12508
12509if test $ac_cv_header_stdc = yes; then
12510  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h.  */
12513#include <stdlib.h>
12514
12515_ACEOF
12516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12517  $EGREP "free" >/dev/null 2>&1; then :
12518
12519else
12520  ac_cv_header_stdc=no
12521fi
12522rm -f conftest*
12523
12524fi
12525
12526if test $ac_cv_header_stdc = yes; then
12527  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12528  if test "$cross_compiling" = yes; then :
12529  :
12530else
12531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532/* end confdefs.h.  */
12533#include <ctype.h>
12534#include <stdlib.h>
12535#if ((' ' & 0x0FF) == 0x020)
12536# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12537# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12538#else
12539# define ISLOWER(c) \
12540		   (('a' <= (c) && (c) <= 'i') \
12541		     || ('j' <= (c) && (c) <= 'r') \
12542		     || ('s' <= (c) && (c) <= 'z'))
12543# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12544#endif
12545
12546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12547int
12548main ()
12549{
12550  int i;
12551  for (i = 0; i < 256; i++)
12552    if (XOR (islower (i), ISLOWER (i))
12553	|| toupper (i) != TOUPPER (i))
12554      return 2;
12555  return 0;
12556}
12557_ACEOF
12558if ac_fn_c_try_run "$LINENO"; then :
12559
12560else
12561  ac_cv_header_stdc=no
12562fi
12563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12564  conftest.$ac_objext conftest.beam conftest.$ac_ext
12565fi
12566
12567fi
12568fi
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12570$as_echo "$ac_cv_header_stdc" >&6; }
12571if test $ac_cv_header_stdc = yes; then
12572
12573$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12574
12575fi
12576
12577for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12578do :
12579  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12582  cat >>confdefs.h <<_ACEOF
12583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12584_ACEOF
12585
12586fi
12587
12588done
12589
12590for ac_header in sys/sysctl.h
12591do :
12592  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12593#ifdef HAVE_SYS_PARAM_H
12594#include <sys/param.h>
12595#endif
12596
12597"
12598if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12599  cat >>confdefs.h <<_ACEOF
12600#define HAVE_SYS_SYSCTL_H 1
12601_ACEOF
12602
12603fi
12604
12605done
12606
12607if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12609$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12610	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h.  */
12612
12613#include <sys/queue.h>
12614#ifdef TAILQ_FOREACH
12615 yes
12616#endif
12617
12618_ACEOF
12619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12620  $EGREP "yes" >/dev/null 2>&1; then :
12621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622$as_echo "yes" >&6; }
12623
12624$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12625
12626else
12627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628$as_echo "no" >&6; }
12629
12630fi
12631rm -f conftest*
12632
12633fi
12634
12635if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12637$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12638	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639/* end confdefs.h.  */
12640
12641#include <sys/time.h>
12642#ifdef timeradd
12643 yes
12644#endif
12645
12646_ACEOF
12647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12648  $EGREP "yes" >/dev/null 2>&1; then :
12649
12650$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12651
12652	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12653$as_echo "yes" >&6; }
12654else
12655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656$as_echo "no" >&6; }
12657
12658fi
12659rm -f conftest*
12660
12661fi
12662
12663if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12665$as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12666	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667/* end confdefs.h.  */
12668
12669#include <sys/time.h>
12670#ifdef timercmp
12671 yes
12672#endif
12673
12674_ACEOF
12675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12676  $EGREP "yes" >/dev/null 2>&1; then :
12677
12678$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12679
12680	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12681$as_echo "yes" >&6; }
12682else
12683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684$as_echo "no" >&6; }
12685
12686fi
12687rm -f conftest*
12688
12689fi
12690
12691if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12693$as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12694	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695/* end confdefs.h.  */
12696
12697#include <sys/time.h>
12698#ifdef timerclear
12699 yes
12700#endif
12701
12702_ACEOF
12703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12704  $EGREP "yes" >/dev/null 2>&1; then :
12705
12706$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12707
12708	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709$as_echo "yes" >&6; }
12710else
12711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713
12714fi
12715rm -f conftest*
12716
12717fi
12718
12719if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12721$as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12722	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723/* end confdefs.h.  */
12724
12725#include <sys/time.h>
12726#ifdef timerisset
12727 yes
12728#endif
12729
12730_ACEOF
12731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12732  $EGREP "yes" >/dev/null 2>&1; then :
12733
12734$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12735
12736	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12737$as_echo "yes" >&6; }
12738else
12739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740$as_echo "no" >&6; }
12741
12742fi
12743rm -f conftest*
12744
12745fi
12746
12747if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12748	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12749	     #include <sys/sysctl.h>
12750
12751"
12752if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12753  ac_have_decl=1
12754else
12755  ac_have_decl=0
12756fi
12757
12758cat >>confdefs.h <<_ACEOF
12759#define HAVE_DECL_CTL_KERN $ac_have_decl
12760_ACEOF
12761ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12762	     #include <sys/sysctl.h>
12763
12764"
12765if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12766  ac_have_decl=1
12767else
12768  ac_have_decl=0
12769fi
12770
12771cat >>confdefs.h <<_ACEOF
12772#define HAVE_DECL_KERN_RANDOM $ac_have_decl
12773_ACEOF
12774ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12775	     #include <sys/sysctl.h>
12776
12777"
12778if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12779  ac_have_decl=1
12780else
12781  ac_have_decl=0
12782fi
12783
12784cat >>confdefs.h <<_ACEOF
12785#define HAVE_DECL_RANDOM_UUID $ac_have_decl
12786_ACEOF
12787ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12788	     #include <sys/sysctl.h>
12789
12790"
12791if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12792  ac_have_decl=1
12793else
12794  ac_have_decl=0
12795fi
12796
12797cat >>confdefs.h <<_ACEOF
12798#define HAVE_DECL_KERN_ARND $ac_have_decl
12799_ACEOF
12800
12801fi
12802
12803 if test x$bwin32 = xtrue; then
12804  BUILD_WIN32_TRUE=
12805  BUILD_WIN32_FALSE='#'
12806else
12807  BUILD_WIN32_TRUE='#'
12808  BUILD_WIN32_FALSE=
12809fi
12810
12811 if test x$cygwin = xtrue; then
12812  BUILD_CYGWIN_TRUE=
12813  BUILD_CYGWIN_FALSE='#'
12814else
12815  BUILD_CYGWIN_TRUE='#'
12816  BUILD_CYGWIN_FALSE=
12817fi
12818
12819 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12820  BUILD_WITH_NO_UNDEFINED_TRUE=
12821  BUILD_WITH_NO_UNDEFINED_FALSE='#'
12822else
12823  BUILD_WITH_NO_UNDEFINED_TRUE='#'
12824  BUILD_WITH_NO_UNDEFINED_FALSE=
12825fi
12826
12827
12828if test x$bwin32 = xtrue; then
12829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12830$as_echo_n "checking for library containing getservbyname... " >&6; }
12831if ${ac_cv_search_getservbyname+:} false; then :
12832  $as_echo_n "(cached) " >&6
12833else
12834  ac_func_search_save_LIBS=$LIBS
12835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836/* end confdefs.h.  */
12837
12838/* Override any GCC internal prototype to avoid an error.
12839   Use char because int might match the return type of a GCC
12840   builtin and then its argument prototype would still apply.  */
12841#ifdef __cplusplus
12842extern "C"
12843#endif
12844char getservbyname ();
12845int
12846main ()
12847{
12848return getservbyname ();
12849  ;
12850  return 0;
12851}
12852_ACEOF
12853for ac_lib in '' ws2_32; do
12854  if test -z "$ac_lib"; then
12855    ac_res="none required"
12856  else
12857    ac_res=-l$ac_lib
12858    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12859  fi
12860  if ac_fn_c_try_link "$LINENO"; then :
12861  ac_cv_search_getservbyname=$ac_res
12862fi
12863rm -f core conftest.err conftest.$ac_objext \
12864    conftest$ac_exeext
12865  if ${ac_cv_search_getservbyname+:} false; then :
12866  break
12867fi
12868done
12869if ${ac_cv_search_getservbyname+:} false; then :
12870
12871else
12872  ac_cv_search_getservbyname=no
12873fi
12874rm conftest.$ac_ext
12875LIBS=$ac_func_search_save_LIBS
12876fi
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12878$as_echo "$ac_cv_search_getservbyname" >&6; }
12879ac_res=$ac_cv_search_getservbyname
12880if test "$ac_res" != no; then :
12881  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12882
12883fi
12884
12885fi
12886
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12888$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12889if ${ac_cv_c_const+:} false; then :
12890  $as_echo_n "(cached) " >&6
12891else
12892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h.  */
12894
12895int
12896main ()
12897{
12898
12899#ifndef __cplusplus
12900  /* Ultrix mips cc rejects this sort of thing.  */
12901  typedef int charset[2];
12902  const charset cs = { 0, 0 };
12903  /* SunOS 4.1.1 cc rejects this.  */
12904  char const *const *pcpcc;
12905  char **ppc;
12906  /* NEC SVR4.0.2 mips cc rejects this.  */
12907  struct point {int x, y;};
12908  static struct point const zero = {0,0};
12909  /* AIX XL C 1.02.0.0 rejects this.
12910     It does not let you subtract one const X* pointer from another in
12911     an arm of an if-expression whose if-part is not a constant
12912     expression */
12913  const char *g = "string";
12914  pcpcc = &g + (g ? g-g : 0);
12915  /* HPUX 7.0 cc rejects these. */
12916  ++pcpcc;
12917  ppc = (char**) pcpcc;
12918  pcpcc = (char const *const *) ppc;
12919  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12920    char tx;
12921    char *t = &tx;
12922    char const *s = 0 ? (char *) 0 : (char const *) 0;
12923
12924    *t++ = 0;
12925    if (s) return 0;
12926  }
12927  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12928    int x[] = {25, 17};
12929    const int *foo = &x[0];
12930    ++foo;
12931  }
12932  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12933    typedef const int *iptr;
12934    iptr p = 0;
12935    ++p;
12936  }
12937  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12938       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12939    struct s { int j; const int *ap[3]; } bx;
12940    struct s *b = &bx; b->j = 5;
12941  }
12942  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12943    const int foo = 10;
12944    if (!foo) return 0;
12945  }
12946  return !cs[0] && !zero.x;
12947#endif
12948
12949  ;
12950  return 0;
12951}
12952_ACEOF
12953if ac_fn_c_try_compile "$LINENO"; then :
12954  ac_cv_c_const=yes
12955else
12956  ac_cv_c_const=no
12957fi
12958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12961$as_echo "$ac_cv_c_const" >&6; }
12962if test $ac_cv_c_const = no; then
12963
12964$as_echo "#define const /**/" >>confdefs.h
12965
12966fi
12967
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12969$as_echo_n "checking for inline... " >&6; }
12970if ${ac_cv_c_inline+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  ac_cv_c_inline=no
12974for ac_kw in inline __inline__ __inline; do
12975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976/* end confdefs.h.  */
12977#ifndef __cplusplus
12978typedef int foo_t;
12979static $ac_kw foo_t static_foo () {return 0; }
12980$ac_kw foo_t foo () {return 0; }
12981#endif
12982
12983_ACEOF
12984if ac_fn_c_try_compile "$LINENO"; then :
12985  ac_cv_c_inline=$ac_kw
12986fi
12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988  test "$ac_cv_c_inline" != no && break
12989done
12990
12991fi
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12993$as_echo "$ac_cv_c_inline" >&6; }
12994
12995case $ac_cv_c_inline in
12996  inline | yes) ;;
12997  *)
12998    case $ac_cv_c_inline in
12999      no) ac_val=;;
13000      *) ac_val=$ac_cv_c_inline;;
13001    esac
13002    cat >>confdefs.h <<_ACEOF
13003#ifndef __cplusplus
13004#define inline $ac_val
13005#endif
13006_ACEOF
13007    ;;
13008esac
13009
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13011$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13012if ${ac_cv_header_time+:} false; then :
13013  $as_echo_n "(cached) " >&6
13014else
13015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016/* end confdefs.h.  */
13017#include <sys/types.h>
13018#include <sys/time.h>
13019#include <time.h>
13020
13021int
13022main ()
13023{
13024if ((struct tm *) 0)
13025return 0;
13026  ;
13027  return 0;
13028}
13029_ACEOF
13030if ac_fn_c_try_compile "$LINENO"; then :
13031  ac_cv_header_time=yes
13032else
13033  ac_cv_header_time=no
13034fi
13035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036fi
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13038$as_echo "$ac_cv_header_time" >&6; }
13039if test $ac_cv_header_time = yes; then
13040
13041$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13042
13043fi
13044
13045
13046for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13047do :
13048  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13049ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13050if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13051  cat >>confdefs.h <<_ACEOF
13052#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13053_ACEOF
13054
13055fi
13056done
13057
13058for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13059do :
13060  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13062if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13063  cat >>confdefs.h <<_ACEOF
13064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13065_ACEOF
13066
13067fi
13068done
13069
13070
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13072$as_echo_n "checking for getaddrinfo... " >&6; }
13073if ${libevent_cv_getaddrinfo+:} false; then :
13074  $as_echo_n "(cached) " >&6
13075else
13076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077/* end confdefs.h.  */
13078
13079		#ifdef HAVE_NETDB_H
13080		#include <netdb.h>
13081		#endif
13082
13083int
13084main ()
13085{
13086
13087		getaddrinfo;
13088
13089
13090  ;
13091  return 0;
13092}
13093_ACEOF
13094if ac_fn_c_try_link "$LINENO"; then :
13095  libevent_cv_getaddrinfo=yes
13096else
13097  libevent_cv_getaddrinfo=no
13098
13099fi
13100rm -f core conftest.err conftest.$ac_objext \
13101    conftest$ac_exeext conftest.$ac_ext
13102
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13105$as_echo "$libevent_cv_getaddrinfo" >&6; }
13106if test "$libevent_cv_getaddrinfo" = "yes" ; then
13107
13108$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13109
13110else
13111
13112for ac_func in getservbyname
13113do :
13114  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13115if test "x$ac_cv_func_getservbyname" = xyes; then :
13116  cat >>confdefs.h <<_ACEOF
13117#define HAVE_GETSERVBYNAME 1
13118_ACEOF
13119
13120fi
13121done
13122
13123# Check for gethostbyname_r in all its glorious incompatible versions.
13124#   (This is cut-and-pasted from Tor, which based its logic on
13125#   Python's configure.in.)
13126
13127
13128ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13129if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13130
13131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13132$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13133  OLD_CFLAGS=$CFLAGS
13134  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136/* end confdefs.h.  */
13137
13138#include <netdb.h>
13139
13140int
13141main ()
13142{
13143
13144    char *cp1, *cp2;
13145    struct hostent *h1, *h2;
13146    int i1, i2;
13147    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13148
13149  ;
13150  return 0;
13151}
13152_ACEOF
13153if ac_fn_c_try_compile "$LINENO"; then :
13154
13155    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13156
13157
13158$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13159
13160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13161$as_echo "6" >&6; }
13162
13163else
13164
13165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166/* end confdefs.h.  */
13167
13168#include <netdb.h>
13169
13170int
13171main ()
13172{
13173
13174      char *cp1, *cp2;
13175      struct hostent *h1;
13176      int i1, i2;
13177      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13178
13179  ;
13180  return 0;
13181}
13182_ACEOF
13183if ac_fn_c_try_compile "$LINENO"; then :
13184
13185      $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13186
13187
13188$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13189
13190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13191$as_echo "5" >&6; }
13192
13193else
13194
13195      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196/* end confdefs.h.  */
13197
13198#include <netdb.h>
13199
13200int
13201main ()
13202{
13203
13204       char *cp1;
13205       struct hostent *h1;
13206       struct hostent_data hd;
13207       (void) gethostbyname_r(cp1,h1,&hd);
13208
13209  ;
13210  return 0;
13211}
13212_ACEOF
13213if ac_fn_c_try_compile "$LINENO"; then :
13214
13215       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13216
13217
13218$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13219
13220       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13221$as_echo "3" >&6; }
13222
13223else
13224
13225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13226$as_echo "0" >&6; }
13227
13228fi
13229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230
13231fi
13232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233
13234fi
13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 CFLAGS=$OLD_CFLAGS
13237
13238fi
13239
13240
13241fi
13242
13243# The cast to long int works around a bug in the HP C Compiler
13244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13246# This bug is HP SR number 8606223364.
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13248$as_echo_n "checking size of long... " >&6; }
13249if ${ac_cv_sizeof_long+:} false; then :
13250  $as_echo_n "(cached) " >&6
13251else
13252  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13253
13254else
13255  if test "$ac_cv_type_long" = yes; then
13256     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13258as_fn_error 77 "cannot compute sizeof (long)
13259See \`config.log' for more details" "$LINENO" 5; }
13260   else
13261     ac_cv_sizeof_long=0
13262   fi
13263fi
13264
13265fi
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13267$as_echo "$ac_cv_sizeof_long" >&6; }
13268
13269
13270
13271cat >>confdefs.h <<_ACEOF
13272#define SIZEOF_LONG $ac_cv_sizeof_long
13273_ACEOF
13274
13275
13276
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13278$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h.  */
13281
13282#define _GNU_SOURCE
13283#include <fcntl.h>
13284#ifdef F_SETFD
13285yes
13286#endif
13287
13288_ACEOF
13289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13290  $EGREP "yes" >/dev/null 2>&1; then :
13291
13292$as_echo "#define HAVE_SETFD 1" >>confdefs.h
13293
13294	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13295$as_echo "yes" >&6; }
13296else
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
13299fi
13300rm -f conftest*
13301
13302
13303needsignal=no
13304haveselect=no
13305if test x$bwin32 != xtrue; then
13306    for ac_func in select
13307do :
13308  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13309if test "x$ac_cv_func_select" = xyes; then :
13310  cat >>confdefs.h <<_ACEOF
13311#define HAVE_SELECT 1
13312_ACEOF
13313 haveselect=yes
13314fi
13315done
13316
13317    if test "x$haveselect" = "xyes" ; then
13318 	needsignal=yes
13319    fi
13320fi
13321 if test "x$haveselect" = "xyes"; then
13322  SELECT_BACKEND_TRUE=
13323  SELECT_BACKEND_FALSE='#'
13324else
13325  SELECT_BACKEND_TRUE='#'
13326  SELECT_BACKEND_FALSE=
13327fi
13328
13329
13330havepoll=no
13331for ac_func in poll
13332do :
13333  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13334if test "x$ac_cv_func_poll" = xyes; then :
13335  cat >>confdefs.h <<_ACEOF
13336#define HAVE_POLL 1
13337_ACEOF
13338 havepoll=yes
13339fi
13340done
13341
13342if test "x$havepoll" = "xyes" ; then
13343	needsignal=yes
13344fi
13345 if test "x$havepoll" = "xyes"; then
13346  POLL_BACKEND_TRUE=
13347  POLL_BACKEND_FALSE='#'
13348else
13349  POLL_BACKEND_TRUE='#'
13350  POLL_BACKEND_FALSE=
13351fi
13352
13353
13354havedevpoll=no
13355if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13356
13357$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13358
13359fi
13360 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13361  DEVPOLL_BACKEND_TRUE=
13362  DEVPOLL_BACKEND_FALSE='#'
13363else
13364  DEVPOLL_BACKEND_TRUE='#'
13365  DEVPOLL_BACKEND_FALSE=
13366fi
13367
13368
13369havekqueue=no
13370if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13371	for ac_func in kqueue
13372do :
13373  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13374if test "x$ac_cv_func_kqueue" = xyes; then :
13375  cat >>confdefs.h <<_ACEOF
13376#define HAVE_KQUEUE 1
13377_ACEOF
13378 havekqueue=yes
13379fi
13380done
13381
13382	if test "x$havekqueue" = "xyes" ; then
13383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13384$as_echo_n "checking for working kqueue... " >&6; }
13385		if test "$cross_compiling" = yes; then :
13386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387$as_echo "no" >&6; }
13388else
13389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390/* end confdefs.h.  */
13391#include <sys/types.h>
13392#include <sys/time.h>
13393#include <sys/event.h>
13394#include <stdio.h>
13395#include <unistd.h>
13396#include <fcntl.h>
13397
13398int
13399main(int argc, char **argv)
13400{
13401	int kq;
13402	int n;
13403	int fd[2];
13404	struct kevent ev;
13405	struct timespec ts;
13406	char buf[8000];
13407
13408	if (pipe(fd) == -1)
13409		exit(1);
13410	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13411		exit(1);
13412
13413	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13414		;
13415
13416        if ((kq = kqueue()) == -1)
13417		exit(1);
13418
13419	memset(&ev, 0, sizeof(ev));
13420	ev.ident = fd[1];
13421	ev.filter = EVFILT_WRITE;
13422	ev.flags = EV_ADD | EV_ENABLE;
13423	n = kevent(kq, &ev, 1, NULL, 0, NULL);
13424	if (n == -1)
13425		exit(1);
13426
13427	read(fd[0], buf, sizeof(buf));
13428
13429	ts.tv_sec = 0;
13430	ts.tv_nsec = 0;
13431	n = kevent(kq, NULL, 0, &ev, 1, &ts);
13432	if (n == -1 || n == 0)
13433		exit(1);
13434
13435	exit(0);
13436}
13437_ACEOF
13438if ac_fn_c_try_run "$LINENO"; then :
13439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13440$as_echo "yes" >&6; }
13441
13442$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13443
13444    havekqueue=yes
13445
13446else
13447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13451  conftest.$ac_objext conftest.beam conftest.$ac_ext
13452fi
13453
13454	fi
13455fi
13456 if test "x$havekqueue" = "xyes"; then
13457  KQUEUE_BACKEND_TRUE=
13458  KQUEUE_BACKEND_FALSE='#'
13459else
13460  KQUEUE_BACKEND_TRUE='#'
13461  KQUEUE_BACKEND_FALSE=
13462fi
13463
13464
13465haveepollsyscall=no
13466haveepoll=no
13467for ac_func in epoll_ctl
13468do :
13469  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13470if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13471  cat >>confdefs.h <<_ACEOF
13472#define HAVE_EPOLL_CTL 1
13473_ACEOF
13474 haveepoll=yes
13475fi
13476done
13477
13478if test "x$haveepoll" = "xyes" ; then
13479
13480$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13481
13482	needsignal=yes
13483fi
13484if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13485	if test "x$haveepoll" = "xno" ; then
13486		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13487$as_echo_n "checking for epoll system call... " >&6; }
13488		if test "$cross_compiling" = yes; then :
13489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490$as_echo "no" >&6; }
13491else
13492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493/* end confdefs.h.  */
13494#include <stdint.h>
13495#include <sys/param.h>
13496#include <sys/types.h>
13497#include <sys/syscall.h>
13498#include <sys/epoll.h>
13499#include <unistd.h>
13500
13501int
13502epoll_create(int size)
13503{
13504	return (syscall(__NR_epoll_create, size));
13505}
13506
13507int
13508main(int argc, char **argv)
13509{
13510	int epfd;
13511
13512	epfd = epoll_create(256);
13513	exit (epfd == -1 ? 1 : 0);
13514}
13515_ACEOF
13516if ac_fn_c_try_run "$LINENO"; then :
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13518$as_echo "yes" >&6; }
13519
13520$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13521
13522    needsignal=yes
13523    have_epoll=yes
13524    case " $LIBOBJS " in
13525  *" epoll_sub.$ac_objext "* ) ;;
13526  *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13527 ;;
13528esac
13529
13530
13531else
13532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533$as_echo "no" >&6; }
13534fi
13535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13536  conftest.$ac_objext conftest.beam conftest.$ac_ext
13537fi
13538
13539	fi
13540fi
13541 if test "x$haveepoll" = "xyes"; then
13542  EPOLL_BACKEND_TRUE=
13543  EPOLL_BACKEND_FALSE='#'
13544else
13545  EPOLL_BACKEND_TRUE='#'
13546  EPOLL_BACKEND_FALSE=
13547fi
13548
13549
13550haveeventports=no
13551for ac_func in port_create
13552do :
13553  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13554if test "x$ac_cv_func_port_create" = xyes; then :
13555  cat >>confdefs.h <<_ACEOF
13556#define HAVE_PORT_CREATE 1
13557_ACEOF
13558 haveeventports=yes
13559fi
13560done
13561
13562if test "x$haveeventports" = "xyes" ; then
13563
13564$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13565
13566	needsignal=yes
13567fi
13568 if test "x$haveeventports" = "xyes"; then
13569  EVPORT_BACKEND_TRUE=
13570  EVPORT_BACKEND_FALSE='#'
13571else
13572  EVPORT_BACKEND_TRUE='#'
13573  EVPORT_BACKEND_FALSE=
13574fi
13575
13576
13577if test "x$bwin32" = "xtrue"; then
13578	needsignal=yes
13579fi
13580
13581 if test "x$needsignal" = "xyes"; then
13582  SIGNAL_SUPPORT_TRUE=
13583  SIGNAL_SUPPORT_FALSE='#'
13584else
13585  SIGNAL_SUPPORT_TRUE='#'
13586  SIGNAL_SUPPORT_FALSE=
13587fi
13588
13589
13590ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13591if test "x$ac_cv_type_pid_t" = xyes; then :
13592
13593else
13594
13595cat >>confdefs.h <<_ACEOF
13596#define pid_t int
13597_ACEOF
13598
13599fi
13600
13601ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13602if test "x$ac_cv_type_size_t" = xyes; then :
13603
13604else
13605
13606cat >>confdefs.h <<_ACEOF
13607#define size_t unsigned int
13608_ACEOF
13609
13610fi
13611
13612ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13613if test "x$ac_cv_type_ssize_t" = xyes; then :
13614
13615else
13616
13617cat >>confdefs.h <<_ACEOF
13618#define ssize_t int
13619_ACEOF
13620
13621fi
13622
13623
13624ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13625#include <stdint.h>
13626#elif defined(HAVE_INTTYPES_H)
13627#include <inttypes.h>
13628#endif
13629#ifdef HAVE_SYS_TYPES_H
13630#include <sys/types.h>
13631#endif
13632"
13633if test "x$ac_cv_type_uint64_t" = xyes; then :
13634
13635cat >>confdefs.h <<_ACEOF
13636#define HAVE_UINT64_T 1
13637_ACEOF
13638
13639
13640fi
13641ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13642#include <stdint.h>
13643#elif defined(HAVE_INTTYPES_H)
13644#include <inttypes.h>
13645#endif
13646#ifdef HAVE_SYS_TYPES_H
13647#include <sys/types.h>
13648#endif
13649"
13650if test "x$ac_cv_type_uint32_t" = xyes; then :
13651
13652cat >>confdefs.h <<_ACEOF
13653#define HAVE_UINT32_T 1
13654_ACEOF
13655
13656
13657fi
13658ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13659#include <stdint.h>
13660#elif defined(HAVE_INTTYPES_H)
13661#include <inttypes.h>
13662#endif
13663#ifdef HAVE_SYS_TYPES_H
13664#include <sys/types.h>
13665#endif
13666"
13667if test "x$ac_cv_type_uint16_t" = xyes; then :
13668
13669cat >>confdefs.h <<_ACEOF
13670#define HAVE_UINT16_T 1
13671_ACEOF
13672
13673
13674fi
13675ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13676#include <stdint.h>
13677#elif defined(HAVE_INTTYPES_H)
13678#include <inttypes.h>
13679#endif
13680#ifdef HAVE_SYS_TYPES_H
13681#include <sys/types.h>
13682#endif
13683"
13684if test "x$ac_cv_type_uint8_t" = xyes; then :
13685
13686cat >>confdefs.h <<_ACEOF
13687#define HAVE_UINT8_T 1
13688_ACEOF
13689
13690
13691fi
13692ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13693#include <stdint.h>
13694#elif defined(HAVE_INTTYPES_H)
13695#include <inttypes.h>
13696#endif
13697#ifdef HAVE_SYS_TYPES_H
13698#include <sys/types.h>
13699#endif
13700"
13701if test "x$ac_cv_type_uintptr_t" = xyes; then :
13702
13703cat >>confdefs.h <<_ACEOF
13704#define HAVE_UINTPTR_T 1
13705_ACEOF
13706
13707
13708fi
13709
13710
13711ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13712#include <sys/types.h>
13713#endif
13714#ifdef HAVE_SYS_SELECT_H
13715#include <sys/select.h>
13716#endif
13717"
13718if test "x$ac_cv_type_fd_mask" = xyes; then :
13719
13720cat >>confdefs.h <<_ACEOF
13721#define HAVE_FD_MASK 1
13722_ACEOF
13723
13724
13725fi
13726
13727
13728# The cast to long int works around a bug in the HP C Compiler
13729# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13730# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13731# This bug is HP SR number 8606223364.
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13733$as_echo_n "checking size of long long... " >&6; }
13734if ${ac_cv_sizeof_long_long+:} false; then :
13735  $as_echo_n "(cached) " >&6
13736else
13737  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13738
13739else
13740  if test "$ac_cv_type_long_long" = yes; then
13741     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13743as_fn_error 77 "cannot compute sizeof (long long)
13744See \`config.log' for more details" "$LINENO" 5; }
13745   else
13746     ac_cv_sizeof_long_long=0
13747   fi
13748fi
13749
13750fi
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13752$as_echo "$ac_cv_sizeof_long_long" >&6; }
13753
13754
13755
13756cat >>confdefs.h <<_ACEOF
13757#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13758_ACEOF
13759
13760
13761# The cast to long int works around a bug in the HP C Compiler
13762# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13763# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13764# This bug is HP SR number 8606223364.
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13766$as_echo_n "checking size of long... " >&6; }
13767if ${ac_cv_sizeof_long+:} false; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13771
13772else
13773  if test "$ac_cv_type_long" = yes; then
13774     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13776as_fn_error 77 "cannot compute sizeof (long)
13777See \`config.log' for more details" "$LINENO" 5; }
13778   else
13779     ac_cv_sizeof_long=0
13780   fi
13781fi
13782
13783fi
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13785$as_echo "$ac_cv_sizeof_long" >&6; }
13786
13787
13788
13789cat >>confdefs.h <<_ACEOF
13790#define SIZEOF_LONG $ac_cv_sizeof_long
13791_ACEOF
13792
13793
13794# The cast to long int works around a bug in the HP C Compiler
13795# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13796# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13797# This bug is HP SR number 8606223364.
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13799$as_echo_n "checking size of int... " >&6; }
13800if ${ac_cv_sizeof_int+:} false; then :
13801  $as_echo_n "(cached) " >&6
13802else
13803  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13804
13805else
13806  if test "$ac_cv_type_int" = yes; then
13807     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13809as_fn_error 77 "cannot compute sizeof (int)
13810See \`config.log' for more details" "$LINENO" 5; }
13811   else
13812     ac_cv_sizeof_int=0
13813   fi
13814fi
13815
13816fi
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13818$as_echo "$ac_cv_sizeof_int" >&6; }
13819
13820
13821
13822cat >>confdefs.h <<_ACEOF
13823#define SIZEOF_INT $ac_cv_sizeof_int
13824_ACEOF
13825
13826
13827# The cast to long int works around a bug in the HP C Compiler
13828# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13829# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13830# This bug is HP SR number 8606223364.
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13832$as_echo_n "checking size of short... " >&6; }
13833if ${ac_cv_sizeof_short+:} false; then :
13834  $as_echo_n "(cached) " >&6
13835else
13836  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13837
13838else
13839  if test "$ac_cv_type_short" = yes; then
13840     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13842as_fn_error 77 "cannot compute sizeof (short)
13843See \`config.log' for more details" "$LINENO" 5; }
13844   else
13845     ac_cv_sizeof_short=0
13846   fi
13847fi
13848
13849fi
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13851$as_echo "$ac_cv_sizeof_short" >&6; }
13852
13853
13854
13855cat >>confdefs.h <<_ACEOF
13856#define SIZEOF_SHORT $ac_cv_sizeof_short
13857_ACEOF
13858
13859
13860# The cast to long int works around a bug in the HP C Compiler
13861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13863# This bug is HP SR number 8606223364.
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13865$as_echo_n "checking size of size_t... " >&6; }
13866if ${ac_cv_sizeof_size_t+:} false; then :
13867  $as_echo_n "(cached) " >&6
13868else
13869  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
13870
13871else
13872  if test "$ac_cv_type_size_t" = yes; then
13873     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13875as_fn_error 77 "cannot compute sizeof (size_t)
13876See \`config.log' for more details" "$LINENO" 5; }
13877   else
13878     ac_cv_sizeof_size_t=0
13879   fi
13880fi
13881
13882fi
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13884$as_echo "$ac_cv_sizeof_size_t" >&6; }
13885
13886
13887
13888cat >>confdefs.h <<_ACEOF
13889#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13890_ACEOF
13891
13892
13893# The cast to long int works around a bug in the HP C Compiler
13894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13896# This bug is HP SR number 8606223364.
13897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13898$as_echo_n "checking size of void *... " >&6; }
13899if ${ac_cv_sizeof_void_p+:} false; then :
13900  $as_echo_n "(cached) " >&6
13901else
13902  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13903
13904else
13905  if test "$ac_cv_type_void_p" = yes; then
13906     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13908as_fn_error 77 "cannot compute sizeof (void *)
13909See \`config.log' for more details" "$LINENO" 5; }
13910   else
13911     ac_cv_sizeof_void_p=0
13912   fi
13913fi
13914
13915fi
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13917$as_echo "$ac_cv_sizeof_void_p" >&6; }
13918
13919
13920
13921cat >>confdefs.h <<_ACEOF
13922#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13923_ACEOF
13924
13925
13926
13927ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
13928#include <sys/types.h>
13929#ifdef HAVE_NETINET_IN_H
13930#include <netinet/in.h>
13931#endif
13932#ifdef HAVE_NETINET_IN6_H
13933#include <netinet/in6.h>
13934#endif
13935#ifdef HAVE_SYS_SOCKET_H
13936#include <sys/socket.h>
13937#endif
13938#ifdef HAVE_NETDB_H
13939#include <netdb.h>
13940#endif
13941#ifdef WIN32
13942#define WIN32_WINNT 0x400
13943#define _WIN32_WINNT 0x400
13944#define WIN32_LEAN_AND_MEAN
13945#if defined(_MSC_VER) && (_MSC_VER < 1300)
13946#include <winsock.h>
13947#else
13948#include <winsock2.h>
13949#include <ws2tcpip.h>
13950#endif
13951#endif
13952
13953"
13954if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
13955
13956cat >>confdefs.h <<_ACEOF
13957#define HAVE_STRUCT_IN6_ADDR 1
13958_ACEOF
13959
13960
13961fi
13962ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
13963#include <sys/types.h>
13964#ifdef HAVE_NETINET_IN_H
13965#include <netinet/in.h>
13966#endif
13967#ifdef HAVE_NETINET_IN6_H
13968#include <netinet/in6.h>
13969#endif
13970#ifdef HAVE_SYS_SOCKET_H
13971#include <sys/socket.h>
13972#endif
13973#ifdef HAVE_NETDB_H
13974#include <netdb.h>
13975#endif
13976#ifdef WIN32
13977#define WIN32_WINNT 0x400
13978#define _WIN32_WINNT 0x400
13979#define WIN32_LEAN_AND_MEAN
13980#if defined(_MSC_VER) && (_MSC_VER < 1300)
13981#include <winsock.h>
13982#else
13983#include <winsock2.h>
13984#include <ws2tcpip.h>
13985#endif
13986#endif
13987
13988"
13989if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13990
13991cat >>confdefs.h <<_ACEOF
13992#define HAVE_STRUCT_SOCKADDR_IN6 1
13993_ACEOF
13994
13995
13996fi
13997ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
13998#include <sys/types.h>
13999#ifdef HAVE_NETINET_IN_H
14000#include <netinet/in.h>
14001#endif
14002#ifdef HAVE_NETINET_IN6_H
14003#include <netinet/in6.h>
14004#endif
14005#ifdef HAVE_SYS_SOCKET_H
14006#include <sys/socket.h>
14007#endif
14008#ifdef HAVE_NETDB_H
14009#include <netdb.h>
14010#endif
14011#ifdef WIN32
14012#define WIN32_WINNT 0x400
14013#define _WIN32_WINNT 0x400
14014#define WIN32_LEAN_AND_MEAN
14015#if defined(_MSC_VER) && (_MSC_VER < 1300)
14016#include <winsock.h>
14017#else
14018#include <winsock2.h>
14019#include <ws2tcpip.h>
14020#endif
14021#endif
14022
14023"
14024if test "x$ac_cv_type_sa_family_t" = xyes; then :
14025
14026cat >>confdefs.h <<_ACEOF
14027#define HAVE_SA_FAMILY_T 1
14028_ACEOF
14029
14030
14031fi
14032ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14033#include <sys/types.h>
14034#ifdef HAVE_NETINET_IN_H
14035#include <netinet/in.h>
14036#endif
14037#ifdef HAVE_NETINET_IN6_H
14038#include <netinet/in6.h>
14039#endif
14040#ifdef HAVE_SYS_SOCKET_H
14041#include <sys/socket.h>
14042#endif
14043#ifdef HAVE_NETDB_H
14044#include <netdb.h>
14045#endif
14046#ifdef WIN32
14047#define WIN32_WINNT 0x400
14048#define _WIN32_WINNT 0x400
14049#define WIN32_LEAN_AND_MEAN
14050#if defined(_MSC_VER) && (_MSC_VER < 1300)
14051#include <winsock.h>
14052#else
14053#include <winsock2.h>
14054#include <ws2tcpip.h>
14055#endif
14056#endif
14057
14058"
14059if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14060
14061cat >>confdefs.h <<_ACEOF
14062#define HAVE_STRUCT_ADDRINFO 1
14063_ACEOF
14064
14065
14066fi
14067ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14068#include <sys/types.h>
14069#ifdef HAVE_NETINET_IN_H
14070#include <netinet/in.h>
14071#endif
14072#ifdef HAVE_NETINET_IN6_H
14073#include <netinet/in6.h>
14074#endif
14075#ifdef HAVE_SYS_SOCKET_H
14076#include <sys/socket.h>
14077#endif
14078#ifdef HAVE_NETDB_H
14079#include <netdb.h>
14080#endif
14081#ifdef WIN32
14082#define WIN32_WINNT 0x400
14083#define _WIN32_WINNT 0x400
14084#define WIN32_LEAN_AND_MEAN
14085#if defined(_MSC_VER) && (_MSC_VER < 1300)
14086#include <winsock.h>
14087#else
14088#include <winsock2.h>
14089#include <ws2tcpip.h>
14090#endif
14091#endif
14092
14093"
14094if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14095
14096cat >>confdefs.h <<_ACEOF
14097#define HAVE_STRUCT_SOCKADDR_STORAGE 1
14098_ACEOF
14099
14100
14101fi
14102
14103ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14104#ifdef HAVE_NETINET_IN_H
14105#include <netinet/in.h>
14106#endif
14107#ifdef HAVE_NETINET_IN6_H
14108#include <netinet/in6.h>
14109#endif
14110#ifdef HAVE_SYS_SOCKET_H
14111#include <sys/socket.h>
14112#endif
14113#ifdef WIN32
14114#define WIN32_WINNT 0x400
14115#define _WIN32_WINNT 0x400
14116#define WIN32_LEAN_AND_MEAN
14117#if defined(_MSC_VER) && (_MSC_VER < 1300)
14118#include <winsock.h>
14119#else
14120#include <winsock2.h>
14121#include <ws2tcpip.h>
14122#endif
14123#endif
14124
14125"
14126if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14127
14128cat >>confdefs.h <<_ACEOF
14129#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14130_ACEOF
14131
14132
14133fi
14134ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14135#ifdef HAVE_NETINET_IN_H
14136#include <netinet/in.h>
14137#endif
14138#ifdef HAVE_NETINET_IN6_H
14139#include <netinet/in6.h>
14140#endif
14141#ifdef HAVE_SYS_SOCKET_H
14142#include <sys/socket.h>
14143#endif
14144#ifdef WIN32
14145#define WIN32_WINNT 0x400
14146#define _WIN32_WINNT 0x400
14147#define WIN32_LEAN_AND_MEAN
14148#if defined(_MSC_VER) && (_MSC_VER < 1300)
14149#include <winsock.h>
14150#else
14151#include <winsock2.h>
14152#include <ws2tcpip.h>
14153#endif
14154#endif
14155
14156"
14157if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14158
14159cat >>confdefs.h <<_ACEOF
14160#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14161_ACEOF
14162
14163
14164fi
14165ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14166#ifdef HAVE_NETINET_IN_H
14167#include <netinet/in.h>
14168#endif
14169#ifdef HAVE_NETINET_IN6_H
14170#include <netinet/in6.h>
14171#endif
14172#ifdef HAVE_SYS_SOCKET_H
14173#include <sys/socket.h>
14174#endif
14175#ifdef WIN32
14176#define WIN32_WINNT 0x400
14177#define _WIN32_WINNT 0x400
14178#define WIN32_LEAN_AND_MEAN
14179#if defined(_MSC_VER) && (_MSC_VER < 1300)
14180#include <winsock.h>
14181#else
14182#include <winsock2.h>
14183#include <ws2tcpip.h>
14184#endif
14185#endif
14186
14187"
14188if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14189
14190cat >>confdefs.h <<_ACEOF
14191#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14192_ACEOF
14193
14194
14195fi
14196ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14197#ifdef HAVE_NETINET_IN_H
14198#include <netinet/in.h>
14199#endif
14200#ifdef HAVE_NETINET_IN6_H
14201#include <netinet/in6.h>
14202#endif
14203#ifdef HAVE_SYS_SOCKET_H
14204#include <sys/socket.h>
14205#endif
14206#ifdef WIN32
14207#define WIN32_WINNT 0x400
14208#define _WIN32_WINNT 0x400
14209#define WIN32_LEAN_AND_MEAN
14210#if defined(_MSC_VER) && (_MSC_VER < 1300)
14211#include <winsock.h>
14212#else
14213#include <winsock2.h>
14214#include <ws2tcpip.h>
14215#endif
14216#endif
14217
14218"
14219if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14220
14221cat >>confdefs.h <<_ACEOF
14222#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14223_ACEOF
14224
14225
14226fi
14227ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14228#ifdef HAVE_NETINET_IN_H
14229#include <netinet/in.h>
14230#endif
14231#ifdef HAVE_NETINET_IN6_H
14232#include <netinet/in6.h>
14233#endif
14234#ifdef HAVE_SYS_SOCKET_H
14235#include <sys/socket.h>
14236#endif
14237#ifdef WIN32
14238#define WIN32_WINNT 0x400
14239#define _WIN32_WINNT 0x400
14240#define WIN32_LEAN_AND_MEAN
14241#if defined(_MSC_VER) && (_MSC_VER < 1300)
14242#include <winsock.h>
14243#else
14244#include <winsock2.h>
14245#include <ws2tcpip.h>
14246#endif
14247#endif
14248
14249"
14250if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14251
14252cat >>confdefs.h <<_ACEOF
14253#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14254_ACEOF
14255
14256
14257fi
14258ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14259#ifdef HAVE_NETINET_IN_H
14260#include <netinet/in.h>
14261#endif
14262#ifdef HAVE_NETINET_IN6_H
14263#include <netinet/in6.h>
14264#endif
14265#ifdef HAVE_SYS_SOCKET_H
14266#include <sys/socket.h>
14267#endif
14268#ifdef WIN32
14269#define WIN32_WINNT 0x400
14270#define _WIN32_WINNT 0x400
14271#define WIN32_LEAN_AND_MEAN
14272#if defined(_MSC_VER) && (_MSC_VER < 1300)
14273#include <winsock.h>
14274#else
14275#include <winsock2.h>
14276#include <ws2tcpip.h>
14277#endif
14278#endif
14279
14280"
14281if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14282
14283cat >>confdefs.h <<_ACEOF
14284#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14285_ACEOF
14286
14287
14288fi
14289
14290
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14292$as_echo_n "checking for socklen_t... " >&6; }
14293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294/* end confdefs.h.  */
14295
14296 #include <sys/types.h>
14297 #include <sys/socket.h>
14298int
14299main ()
14300{
14301socklen_t x;
14302  ;
14303  return 0;
14304}
14305_ACEOF
14306if ac_fn_c_try_compile "$LINENO"; then :
14307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14308$as_echo "yes" >&6; }
14309else
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311$as_echo "no" >&6; }
14312
14313$as_echo "#define socklen_t unsigned int" >>confdefs.h
14314
14315
14316fi
14317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14320$as_echo_n "checking whether our compiler supports __func__... " >&6; }
14321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323
14324int
14325main ()
14326{
14327 const char *cp = __func__;
14328  ;
14329  return 0;
14330}
14331_ACEOF
14332if ac_fn_c_try_compile "$LINENO"; then :
14333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14334$as_echo "yes" >&6; }
14335else
14336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337$as_echo "no" >&6; }
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14339$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h.  */
14342
14343int
14344main ()
14345{
14346 const char *cp = __FUNCTION__;
14347  ;
14348  return 0;
14349}
14350_ACEOF
14351if ac_fn_c_try_compile "$LINENO"; then :
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14353$as_echo "yes" >&6; }
14354
14355$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14356
14357else
14358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359$as_echo "no" >&6; }
14360
14361$as_echo "#define __func__ __FILE__" >>confdefs.h
14362
14363fi
14364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365fi
14366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14367
14368
14369# check if we can compile with pthreads
14370have_pthreads=no
14371if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14372
14373
14374
14375ac_ext=c
14376ac_cpp='$CPP $CPPFLAGS'
14377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380
14381acx_pthread_ok=no
14382
14383# We used to check for pthread.h first, but this fails if pthread.h
14384# requires special compiler flags (e.g. on True64 or Sequent).
14385# It gets checked for in the link test anyway.
14386
14387# First of all, check if the user has set any of the PTHREAD_LIBS,
14388# etcetera environment variables, and if threads linking works using
14389# them:
14390if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14391        save_CFLAGS="$CFLAGS"
14392        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14393        save_LIBS="$LIBS"
14394        LIBS="$PTHREAD_LIBS $LIBS"
14395        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14396$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14397        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398/* end confdefs.h.  */
14399
14400/* Override any GCC internal prototype to avoid an error.
14401   Use char because int might match the return type of a GCC
14402   builtin and then its argument prototype would still apply.  */
14403#ifdef __cplusplus
14404extern "C"
14405#endif
14406char pthread_join ();
14407int
14408main ()
14409{
14410return pthread_join ();
14411  ;
14412  return 0;
14413}
14414_ACEOF
14415if ac_fn_c_try_link "$LINENO"; then :
14416  acx_pthread_ok=yes
14417fi
14418rm -f core conftest.err conftest.$ac_objext \
14419    conftest$ac_exeext conftest.$ac_ext
14420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14421$as_echo "$acx_pthread_ok" >&6; }
14422        if test x"$acx_pthread_ok" = xno; then
14423                PTHREAD_LIBS=""
14424                PTHREAD_CFLAGS=""
14425        fi
14426        LIBS="$save_LIBS"
14427        CFLAGS="$save_CFLAGS"
14428fi
14429
14430# We must check for the threads library under a number of different
14431# names; the ordering is very important because some systems
14432# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14433# libraries is broken (non-POSIX).
14434
14435# Create a list of thread flags to try.  Items starting with a "-" are
14436# C compiler flags, and other items are library names, except for "none"
14437# which indicates that we try without any flags at all, and "pthread-config"
14438# which is a program returning the flags for the Pth emulation library.
14439
14440acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14441
14442# The ordering *is* (sometimes) important.  Some notes on the
14443# individual items follow:
14444
14445# pthreads: AIX (must check this before -lpthread)
14446# none: in case threads are in libc; should be tried before -Kthread and
14447#       other compiler flags to prevent continual compiler warnings
14448# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14449# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14450# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14451# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14452# -pthreads: Solaris/gcc
14453# -mthreads: Mingw32/gcc, Lynx/gcc
14454# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14455#      doesn't hurt to check since this sometimes defines pthreads too;
14456#      also defines -D_REENTRANT)
14457#      ... -mt is also the pthreads flag for HP/aCC
14458# pthread: Linux, etcetera
14459# --thread-safe: KAI C++
14460# pthread-config: use pthread-config program (for GNU Pth library)
14461
14462case "${host_cpu}-${host_os}" in
14463        *solaris*)
14464
14465        # On Solaris (at least, for some versions), libc contains stubbed
14466        # (non-functional) versions of the pthreads routines, so link-based
14467        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14468        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14469        # a function called by this macro, so we could check for that, but
14470        # who knows whether they'll stub that too in a future libc.)  So,
14471        # we'll just look for -pthreads and -lpthread first:
14472
14473        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14474        ;;
14475esac
14476
14477if test x"$acx_pthread_ok" = xno; then
14478for flag in $acx_pthread_flags; do
14479
14480        case $flag in
14481                none)
14482                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14483$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14484                ;;
14485
14486                -*)
14487                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14488$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14489                PTHREAD_CFLAGS="$flag"
14490                ;;
14491
14492		pthread-config)
14493		# Extract the first word of "pthread-config", so it can be a program name with args.
14494set dummy pthread-config; ac_word=$2
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496$as_echo_n "checking for $ac_word... " >&6; }
14497if ${ac_cv_prog_acx_pthread_config+:} false; then :
14498  $as_echo_n "(cached) " >&6
14499else
14500  if test -n "$acx_pthread_config"; then
14501  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14502else
14503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504for as_dir in $PATH
14505do
14506  IFS=$as_save_IFS
14507  test -z "$as_dir" && as_dir=.
14508    for ac_exec_ext in '' $ac_executable_extensions; do
14509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14510    ac_cv_prog_acx_pthread_config="yes"
14511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14512    break 2
14513  fi
14514done
14515  done
14516IFS=$as_save_IFS
14517
14518  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14519fi
14520fi
14521acx_pthread_config=$ac_cv_prog_acx_pthread_config
14522if test -n "$acx_pthread_config"; then
14523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14524$as_echo "$acx_pthread_config" >&6; }
14525else
14526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527$as_echo "no" >&6; }
14528fi
14529
14530
14531		if test x"$acx_pthread_config" = xno; then continue; fi
14532		PTHREAD_CFLAGS="`pthread-config --cflags`"
14533		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14534		;;
14535
14536                *)
14537                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14538$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14539                PTHREAD_LIBS="-l$flag"
14540                ;;
14541        esac
14542
14543        save_LIBS="$LIBS"
14544        save_CFLAGS="$CFLAGS"
14545        LIBS="$PTHREAD_LIBS $LIBS"
14546        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14547
14548        # Check for various functions.  We must include pthread.h,
14549        # since some functions may be macros.  (On the Sequent, we
14550        # need a special flag -Kthread to make this header compile.)
14551        # We check for pthread_join because it is in -lpthread on IRIX
14552        # while pthread_create is in libc.  We check for pthread_attr_init
14553        # due to DEC craziness with -lpthreads.  We check for
14554        # pthread_cleanup_push because it is one of the few pthread
14555        # functions on Solaris that doesn't have a non-functional libc stub.
14556        # We try pthread_create on general principles.
14557        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h.  */
14559#include <pthread.h>
14560int
14561main ()
14562{
14563pthread_t th; pthread_join(th, 0);
14564                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
14565                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14566  ;
14567  return 0;
14568}
14569_ACEOF
14570if ac_fn_c_try_link "$LINENO"; then :
14571  acx_pthread_ok=yes
14572fi
14573rm -f core conftest.err conftest.$ac_objext \
14574    conftest$ac_exeext conftest.$ac_ext
14575
14576        LIBS="$save_LIBS"
14577        CFLAGS="$save_CFLAGS"
14578
14579        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14580$as_echo "$acx_pthread_ok" >&6; }
14581        if test "x$acx_pthread_ok" = xyes; then
14582                break;
14583        fi
14584
14585        PTHREAD_LIBS=""
14586        PTHREAD_CFLAGS=""
14587done
14588fi
14589
14590# Various other checks:
14591if test "x$acx_pthread_ok" = xyes; then
14592        save_LIBS="$LIBS"
14593        LIBS="$PTHREAD_LIBS $LIBS"
14594        save_CFLAGS="$CFLAGS"
14595        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14596
14597        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14599$as_echo_n "checking for joinable pthread attribute... " >&6; }
14600	attr_name=unknown
14601	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14602	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603/* end confdefs.h.  */
14604#include <pthread.h>
14605int
14606main ()
14607{
14608int attr=$attr; return attr;
14609  ;
14610  return 0;
14611}
14612_ACEOF
14613if ac_fn_c_try_link "$LINENO"; then :
14614  attr_name=$attr; break
14615fi
14616rm -f core conftest.err conftest.$ac_objext \
14617    conftest$ac_exeext conftest.$ac_ext
14618	done
14619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14620$as_echo "$attr_name" >&6; }
14621        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14622
14623cat >>confdefs.h <<_ACEOF
14624#define PTHREAD_CREATE_JOINABLE $attr_name
14625_ACEOF
14626
14627        fi
14628
14629        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14630$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14631        flag=no
14632        case "${host_cpu}-${host_os}" in
14633            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14634            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14635        esac
14636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14637$as_echo "${flag}" >&6; }
14638        if test "x$flag" != xno; then
14639            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14640        fi
14641
14642        LIBS="$save_LIBS"
14643        CFLAGS="$save_CFLAGS"
14644
14645        # More AIX lossage: must compile with xlc_r or cc_r
14646	if test x"$GCC" != xyes; then
14647          for ac_prog in xlc_r cc_r
14648do
14649  # Extract the first word of "$ac_prog", so it can be a program name with args.
14650set dummy $ac_prog; ac_word=$2
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14652$as_echo_n "checking for $ac_word... " >&6; }
14653if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14654  $as_echo_n "(cached) " >&6
14655else
14656  if test -n "$PTHREAD_CC"; then
14657  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14658else
14659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660for as_dir in $PATH
14661do
14662  IFS=$as_save_IFS
14663  test -z "$as_dir" && as_dir=.
14664    for ac_exec_ext in '' $ac_executable_extensions; do
14665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14666    ac_cv_prog_PTHREAD_CC="$ac_prog"
14667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14668    break 2
14669  fi
14670done
14671  done
14672IFS=$as_save_IFS
14673
14674fi
14675fi
14676PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14677if test -n "$PTHREAD_CC"; then
14678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14679$as_echo "$PTHREAD_CC" >&6; }
14680else
14681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682$as_echo "no" >&6; }
14683fi
14684
14685
14686  test -n "$PTHREAD_CC" && break
14687done
14688test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14689
14690        else
14691          PTHREAD_CC=$CC
14692	fi
14693else
14694        PTHREAD_CC="$CC"
14695fi
14696
14697
14698
14699
14700
14701# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14702if test x"$acx_pthread_ok" = xyes; then
14703
14704
14705$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14706
14707	have_pthreads=yes
14708        :
14709else
14710        acx_pthread_ok=no
14711
14712fi
14713ac_ext=c
14714ac_cpp='$CPP $CPPFLAGS'
14715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14717ac_compiler_gnu=$ac_cv_c_compiler_gnu
14718
14719
14720  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14721  # The cast to long int works around a bug in the HP C Compiler
14722# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14723# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14724# This bug is HP SR number 8606223364.
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14726$as_echo_n "checking size of pthread_t... " >&6; }
14727if ${ac_cv_sizeof_pthread_t+:} false; then :
14728  $as_echo_n "(cached) " >&6
14729else
14730  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
14731      #include <pthread.h>
14732
14733"; then :
14734
14735else
14736  if test "$ac_cv_type_pthread_t" = yes; then
14737     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14739as_fn_error 77 "cannot compute sizeof (pthread_t)
14740See \`config.log' for more details" "$LINENO" 5; }
14741   else
14742     ac_cv_sizeof_pthread_t=0
14743   fi
14744fi
14745
14746fi
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14748$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14749
14750
14751
14752cat >>confdefs.h <<_ACEOF
14753#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14754_ACEOF
14755
14756
14757fi
14758 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14759  PTHREADS_TRUE=
14760  PTHREADS_FALSE='#'
14761else
14762  PTHREADS_TRUE='#'
14763  PTHREADS_FALSE=
14764fi
14765
14766
14767# check if we should compile locking into the library
14768if test x$enable_thread_support = xno; then
14769
14770$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14771
14772fi
14773
14774# check if we should hard-code the mm functions.
14775if test x$enable_malloc_replacement = xno; then
14776
14777$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14778
14779fi
14780
14781# check if we should hard-code debugging out
14782if test x$enable_debug_mode = xno; then
14783
14784$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14785
14786fi
14787
14788# check if we have and should use openssl
14789 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14790  OPENSSL_TRUE=
14791  OPENSSL_FALSE='#'
14792else
14793  OPENSSL_TRUE='#'
14794  OPENSSL_FALSE=
14795fi
14796
14797
14798# Add some more warnings which we use in development but not in the
14799# released versions.  (Some relevant gcc versions can't handle these.)
14800if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14801
14802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803/* end confdefs.h.  */
14804
14805int
14806main ()
14807{
14808
14809#if !defined(__GNUC__) || (__GNUC__ < 4)
14810#error
14811#endif
14812  ;
14813  return 0;
14814}
14815_ACEOF
14816if ac_fn_c_try_compile "$LINENO"; then :
14817  have_gcc4=yes
14818else
14819  have_gcc4=no
14820fi
14821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822
14823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825
14826int
14827main ()
14828{
14829
14830#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14831#error
14832#endif
14833  ;
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_compile "$LINENO"; then :
14838  have_gcc42=yes
14839else
14840  have_gcc42=no
14841fi
14842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843
14844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845/* end confdefs.h.  */
14846
14847int
14848main ()
14849{
14850
14851#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14852#error
14853#endif
14854  ;
14855  return 0;
14856}
14857_ACEOF
14858if ac_fn_c_try_compile "$LINENO"; then :
14859  have_gcc45=yes
14860else
14861  have_gcc45=no
14862fi
14863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864
14865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866/* end confdefs.h.  */
14867
14868int
14869main ()
14870{
14871
14872#if !defined(__clang__)
14873#error
14874#endif
14875  ;
14876  return 0;
14877}
14878_ACEOF
14879if ac_fn_c_try_compile "$LINENO"; then :
14880  have_clang=yes
14881else
14882  have_clang=no
14883fi
14884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885
14886  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
14887  CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14888
14889  if test x$have_gcc4 = xyes ; then
14890    # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14891    CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14892    #CFLAGS="$CFLAGS -Wold-style-definition"
14893  fi
14894
14895  if test x$have_gcc42 = xyes ; then
14896    # These warnings break gcc 4.0.2 and work on gcc 4.2
14897    CFLAGS="$CFLAGS -Waddress"
14898  fi
14899
14900  if test x$have_gcc42 = xyes && test x$have_clang = xno; then
14901    # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14902    CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
14903  fi
14904
14905  if test x$have_gcc45 = xyes ; then
14906    # These warnings work on gcc 4.5
14907    CFLAGS="$CFLAGS -Wlogical-op"
14908  fi
14909
14910  if test x$have_clang = xyes; then
14911    # Disable the unused-function warnings, because these trigger
14912    # for minheap-internal.h related code.
14913    CFLAGS="$CFLAGS -Wno-unused-function"
14914  fi
14915
14916##This will break the world on some 64-bit architectures
14917# CFLAGS="$CFLAGS -Winline"
14918
14919fi
14920
14921LIBEVENT_GC_SECTIONS=
14922if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
14923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
14924$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
14925if ${libevent_cv_gc_sections_runs+:} false; then :
14926  $as_echo_n "(cached) " >&6
14927else
14928
14929	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
14930	    CFLAGS="$CFLAGS -Wl,--gc-sections"
14931	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932/* end confdefs.h.  */
14933
14934			#include <stdlib.h>
14935			#include <stdio.h>
14936
14937int
14938main ()
14939{
14940
14941			FILE *	fpC;
14942			char	buf[32];
14943			size_t	cch;
14944			int	read_success_once;
14945
14946			fpC = fopen("conftest.c", "r");
14947			if (NULL == fpC)
14948				exit(1);
14949			do {
14950				cch = fread(buf, sizeof(buf), 1, fpC);
14951				read_success_once |= (0 != cch);
14952			} while (0 != cch);
14953			if (!read_success_once)
14954				exit(2);
14955			if (!feof(fpC))
14956				exit(3);
14957			if (0 != fclose(fpC))
14958				exit(4);
14959
14960			exit(EXIT_SUCCESS);
14961
14962
14963  ;
14964  return 0;
14965}
14966_ACEOF
14967if ac_fn_c_try_link "$LINENO"; then :
14968
14969                                                            		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
14970			libevent_cv_gc_sections_runs=no
14971		    else
14972			libevent_cv_gc_sections_runs=no
14973			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
14974		    fi
14975
14976else
14977  libevent_cv_gc_sections_runs=no
14978
14979fi
14980rm -f core conftest.err conftest.$ac_objext \
14981    conftest$ac_exeext conftest.$ac_ext
14982	    CFLAGS="$origCFLAGS"
14983	    { origCFLAGS=; unset origCFLAGS;}
14984
14985
14986fi
14987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
14988$as_echo "$libevent_cv_gc_sections_runs" >&6; }
14989    case "$libevent_cv_gc_sections_runs" in
14990     yes)
14991	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
14992	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
14993	;;
14994    esac
14995fi
14996
14997
14998 if test "$enable_libevent_install" = "yes"; then
14999  INSTALL_LIBEVENT_TRUE=
15000  INSTALL_LIBEVENT_FALSE='#'
15001else
15002  INSTALL_LIBEVENT_TRUE='#'
15003  INSTALL_LIBEVENT_FALSE=
15004fi
15005
15006
15007ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15008
15009ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15010
15011cat >confcache <<\_ACEOF
15012# This file is a shell script that caches the results of configure
15013# tests run on this system so they can be shared between configure
15014# scripts and configure runs, see configure's option --config-cache.
15015# It is not useful on other systems.  If it contains results you don't
15016# want to keep, you may remove or edit it.
15017#
15018# config.status only pays attention to the cache file if you give it
15019# the --recheck option to rerun configure.
15020#
15021# `ac_cv_env_foo' variables (set or unset) will be overridden when
15022# loading this file, other *unset* `ac_cv_foo' will be assigned the
15023# following values.
15024
15025_ACEOF
15026
15027# The following way of writing the cache mishandles newlines in values,
15028# but we know of no workaround that is simple, portable, and efficient.
15029# So, we kill variables containing newlines.
15030# Ultrix sh set writes to stderr and can't be redirected directly,
15031# and sets the high bit in the cache file unless we assign to the vars.
15032(
15033  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15034    eval ac_val=\$$ac_var
15035    case $ac_val in #(
15036    *${as_nl}*)
15037      case $ac_var in #(
15038      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15040      esac
15041      case $ac_var in #(
15042      _ | IFS | as_nl) ;; #(
15043      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15044      *) { eval $ac_var=; unset $ac_var;} ;;
15045      esac ;;
15046    esac
15047  done
15048
15049  (set) 2>&1 |
15050    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15051    *${as_nl}ac_space=\ *)
15052      # `set' does not quote correctly, so add quotes: double-quote
15053      # substitution turns \\\\ into \\, and sed turns \\ into \.
15054      sed -n \
15055	"s/'/'\\\\''/g;
15056	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15057      ;; #(
15058    *)
15059      # `set' quotes correctly as required by POSIX, so do not add quotes.
15060      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15061      ;;
15062    esac |
15063    sort
15064) |
15065  sed '
15066     /^ac_cv_env_/b end
15067     t clear
15068     :clear
15069     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15070     t end
15071     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15072     :end' >>confcache
15073if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15074  if test -w "$cache_file"; then
15075    if test "x$cache_file" != "x/dev/null"; then
15076      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15077$as_echo "$as_me: updating cache $cache_file" >&6;}
15078      if test ! -f "$cache_file" || test -h "$cache_file"; then
15079	cat confcache >"$cache_file"
15080      else
15081        case $cache_file in #(
15082        */* | ?:*)
15083	  mv -f confcache "$cache_file"$$ &&
15084	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15085        *)
15086	  mv -f confcache "$cache_file" ;;
15087	esac
15088      fi
15089    fi
15090  else
15091    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15092$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15093  fi
15094fi
15095rm -f confcache
15096
15097test "x$prefix" = xNONE && prefix=$ac_default_prefix
15098# Let make expand exec_prefix.
15099test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15100
15101DEFS=-DHAVE_CONFIG_H
15102
15103ac_libobjs=
15104ac_ltlibobjs=
15105U=
15106for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15107  # 1. Remove the extension, and $U if already installed.
15108  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15109  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15110  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15111  #    will be set to the directory where LIBOBJS objects are built.
15112  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15113  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15114done
15115LIBOBJS=$ac_libobjs
15116
15117LTLIBOBJS=$ac_ltlibobjs
15118
15119
15120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15121$as_echo_n "checking that generated files are newer than configure... " >&6; }
15122   if test -n "$am_sleep_pid"; then
15123     # Hide warnings about reused PIDs.
15124     wait $am_sleep_pid 2>/dev/null
15125   fi
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15127$as_echo "done" >&6; }
15128 if test -n "$EXEEXT"; then
15129  am__EXEEXT_TRUE=
15130  am__EXEEXT_FALSE='#'
15131else
15132  am__EXEEXT_TRUE='#'
15133  am__EXEEXT_FALSE=
15134fi
15135
15136if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15137  as_fn_error $? "conditional \"AMDEP\" was never defined.
15138Usually this means the macro was only invoked conditionally." "$LINENO" 5
15139fi
15140if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15141  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15142Usually this means the macro was only invoked conditionally." "$LINENO" 5
15143fi
15144if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15145  as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15146Usually this means the macro was only invoked conditionally." "$LINENO" 5
15147fi
15148if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15149  as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15150Usually this means the macro was only invoked conditionally." "$LINENO" 5
15151fi
15152if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15153  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15154Usually this means the macro was only invoked conditionally." "$LINENO" 5
15155fi
15156if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15157  as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15158Usually this means the macro was only invoked conditionally." "$LINENO" 5
15159fi
15160if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15161  as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15162Usually this means the macro was only invoked conditionally." "$LINENO" 5
15163fi
15164if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15165  as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15166Usually this means the macro was only invoked conditionally." "$LINENO" 5
15167fi
15168if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15169  as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15170Usually this means the macro was only invoked conditionally." "$LINENO" 5
15171fi
15172if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15173  as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15174Usually this means the macro was only invoked conditionally." "$LINENO" 5
15175fi
15176if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15177  as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15178Usually this means the macro was only invoked conditionally." "$LINENO" 5
15179fi
15180if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15181  as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15182Usually this means the macro was only invoked conditionally." "$LINENO" 5
15183fi
15184if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15185  as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15186Usually this means the macro was only invoked conditionally." "$LINENO" 5
15187fi
15188if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15189  as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15190Usually this means the macro was only invoked conditionally." "$LINENO" 5
15191fi
15192if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15193  as_fn_error $? "conditional \"PTHREADS\" was never defined.
15194Usually this means the macro was only invoked conditionally." "$LINENO" 5
15195fi
15196if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15197  as_fn_error $? "conditional \"OPENSSL\" was never defined.
15198Usually this means the macro was only invoked conditionally." "$LINENO" 5
15199fi
15200if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15201  as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15202Usually this means the macro was only invoked conditionally." "$LINENO" 5
15203fi
15204
15205: "${CONFIG_STATUS=./config.status}"
15206ac_write_fail=0
15207ac_clean_files_save=$ac_clean_files
15208ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15209{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15210$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15211as_write_fail=0
15212cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15213#! $SHELL
15214# Generated by $as_me.
15215# Run this file to recreate the current configuration.
15216# Compiler output produced by configure, useful for debugging
15217# configure, is in config.log if it exists.
15218
15219debug=false
15220ac_cs_recheck=false
15221ac_cs_silent=false
15222
15223SHELL=\${CONFIG_SHELL-$SHELL}
15224export SHELL
15225_ASEOF
15226cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15227## -------------------- ##
15228## M4sh Initialization. ##
15229## -------------------- ##
15230
15231# Be more Bourne compatible
15232DUALCASE=1; export DUALCASE # for MKS sh
15233if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15234  emulate sh
15235  NULLCMD=:
15236  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15237  # is contrary to our usage.  Disable this feature.
15238  alias -g '${1+"$@"}'='"$@"'
15239  setopt NO_GLOB_SUBST
15240else
15241  case `(set -o) 2>/dev/null` in #(
15242  *posix*) :
15243    set -o posix ;; #(
15244  *) :
15245     ;;
15246esac
15247fi
15248
15249
15250as_nl='
15251'
15252export as_nl
15253# Printing a long string crashes Solaris 7 /usr/bin/printf.
15254as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15255as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15256as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15257# Prefer a ksh shell builtin over an external printf program on Solaris,
15258# but without wasting forks for bash or zsh.
15259if test -z "$BASH_VERSION$ZSH_VERSION" \
15260    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15261  as_echo='print -r --'
15262  as_echo_n='print -rn --'
15263elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15264  as_echo='printf %s\n'
15265  as_echo_n='printf %s'
15266else
15267  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15268    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15269    as_echo_n='/usr/ucb/echo -n'
15270  else
15271    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15272    as_echo_n_body='eval
15273      arg=$1;
15274      case $arg in #(
15275      *"$as_nl"*)
15276	expr "X$arg" : "X\\(.*\\)$as_nl";
15277	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15278      esac;
15279      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15280    '
15281    export as_echo_n_body
15282    as_echo_n='sh -c $as_echo_n_body as_echo'
15283  fi
15284  export as_echo_body
15285  as_echo='sh -c $as_echo_body as_echo'
15286fi
15287
15288# The user is always right.
15289if test "${PATH_SEPARATOR+set}" != set; then
15290  PATH_SEPARATOR=:
15291  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15292    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15293      PATH_SEPARATOR=';'
15294  }
15295fi
15296
15297
15298# IFS
15299# We need space, tab and new line, in precisely that order.  Quoting is
15300# there to prevent editors from complaining about space-tab.
15301# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15302# splitting by setting IFS to empty value.)
15303IFS=" ""	$as_nl"
15304
15305# Find who we are.  Look in the path if we contain no directory separator.
15306as_myself=
15307case $0 in #((
15308  *[\\/]* ) as_myself=$0 ;;
15309  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15310for as_dir in $PATH
15311do
15312  IFS=$as_save_IFS
15313  test -z "$as_dir" && as_dir=.
15314    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15315  done
15316IFS=$as_save_IFS
15317
15318     ;;
15319esac
15320# We did not find ourselves, most probably we were run as `sh COMMAND'
15321# in which case we are not to be found in the path.
15322if test "x$as_myself" = x; then
15323  as_myself=$0
15324fi
15325if test ! -f "$as_myself"; then
15326  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15327  exit 1
15328fi
15329
15330# Unset variables that we do not need and which cause bugs (e.g. in
15331# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15332# suppresses any "Segmentation fault" message there.  '((' could
15333# trigger a bug in pdksh 5.2.14.
15334for as_var in BASH_ENV ENV MAIL MAILPATH
15335do eval test x\${$as_var+set} = xset \
15336  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15337done
15338PS1='$ '
15339PS2='> '
15340PS4='+ '
15341
15342# NLS nuisances.
15343LC_ALL=C
15344export LC_ALL
15345LANGUAGE=C
15346export LANGUAGE
15347
15348# CDPATH.
15349(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15350
15351
15352# as_fn_error STATUS ERROR [LINENO LOG_FD]
15353# ----------------------------------------
15354# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15355# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15356# script with STATUS, using 1 if that was 0.
15357as_fn_error ()
15358{
15359  as_status=$1; test $as_status -eq 0 && as_status=1
15360  if test "$4"; then
15361    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15362    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15363  fi
15364  $as_echo "$as_me: error: $2" >&2
15365  as_fn_exit $as_status
15366} # as_fn_error
15367
15368
15369# as_fn_set_status STATUS
15370# -----------------------
15371# Set $? to STATUS, without forking.
15372as_fn_set_status ()
15373{
15374  return $1
15375} # as_fn_set_status
15376
15377# as_fn_exit STATUS
15378# -----------------
15379# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15380as_fn_exit ()
15381{
15382  set +e
15383  as_fn_set_status $1
15384  exit $1
15385} # as_fn_exit
15386
15387# as_fn_unset VAR
15388# ---------------
15389# Portably unset VAR.
15390as_fn_unset ()
15391{
15392  { eval $1=; unset $1;}
15393}
15394as_unset=as_fn_unset
15395# as_fn_append VAR VALUE
15396# ----------------------
15397# Append the text in VALUE to the end of the definition contained in VAR. Take
15398# advantage of any shell optimizations that allow amortized linear growth over
15399# repeated appends, instead of the typical quadratic growth present in naive
15400# implementations.
15401if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15402  eval 'as_fn_append ()
15403  {
15404    eval $1+=\$2
15405  }'
15406else
15407  as_fn_append ()
15408  {
15409    eval $1=\$$1\$2
15410  }
15411fi # as_fn_append
15412
15413# as_fn_arith ARG...
15414# ------------------
15415# Perform arithmetic evaluation on the ARGs, and store the result in the
15416# global $as_val. Take advantage of shells that can avoid forks. The arguments
15417# must be portable across $(()) and expr.
15418if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15419  eval 'as_fn_arith ()
15420  {
15421    as_val=$(( $* ))
15422  }'
15423else
15424  as_fn_arith ()
15425  {
15426    as_val=`expr "$@" || test $? -eq 1`
15427  }
15428fi # as_fn_arith
15429
15430
15431if expr a : '\(a\)' >/dev/null 2>&1 &&
15432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15433  as_expr=expr
15434else
15435  as_expr=false
15436fi
15437
15438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15439  as_basename=basename
15440else
15441  as_basename=false
15442fi
15443
15444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15445  as_dirname=dirname
15446else
15447  as_dirname=false
15448fi
15449
15450as_me=`$as_basename -- "$0" ||
15451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15452	 X"$0" : 'X\(//\)$' \| \
15453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15454$as_echo X/"$0" |
15455    sed '/^.*\/\([^/][^/]*\)\/*$/{
15456	    s//\1/
15457	    q
15458	  }
15459	  /^X\/\(\/\/\)$/{
15460	    s//\1/
15461	    q
15462	  }
15463	  /^X\/\(\/\).*/{
15464	    s//\1/
15465	    q
15466	  }
15467	  s/.*/./; q'`
15468
15469# Avoid depending upon Character Ranges.
15470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15473as_cr_digits='0123456789'
15474as_cr_alnum=$as_cr_Letters$as_cr_digits
15475
15476ECHO_C= ECHO_N= ECHO_T=
15477case `echo -n x` in #(((((
15478-n*)
15479  case `echo 'xy\c'` in
15480  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15481  xy)  ECHO_C='\c';;
15482  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15483       ECHO_T='	';;
15484  esac;;
15485*)
15486  ECHO_N='-n';;
15487esac
15488
15489rm -f conf$$ conf$$.exe conf$$.file
15490if test -d conf$$.dir; then
15491  rm -f conf$$.dir/conf$$.file
15492else
15493  rm -f conf$$.dir
15494  mkdir conf$$.dir 2>/dev/null
15495fi
15496if (echo >conf$$.file) 2>/dev/null; then
15497  if ln -s conf$$.file conf$$ 2>/dev/null; then
15498    as_ln_s='ln -s'
15499    # ... but there are two gotchas:
15500    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15501    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15502    # In both cases, we have to default to `cp -pR'.
15503    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15504      as_ln_s='cp -pR'
15505  elif ln conf$$.file conf$$ 2>/dev/null; then
15506    as_ln_s=ln
15507  else
15508    as_ln_s='cp -pR'
15509  fi
15510else
15511  as_ln_s='cp -pR'
15512fi
15513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15514rmdir conf$$.dir 2>/dev/null
15515
15516
15517# as_fn_mkdir_p
15518# -------------
15519# Create "$as_dir" as a directory, including parents if necessary.
15520as_fn_mkdir_p ()
15521{
15522
15523  case $as_dir in #(
15524  -*) as_dir=./$as_dir;;
15525  esac
15526  test -d "$as_dir" || eval $as_mkdir_p || {
15527    as_dirs=
15528    while :; do
15529      case $as_dir in #(
15530      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15531      *) as_qdir=$as_dir;;
15532      esac
15533      as_dirs="'$as_qdir' $as_dirs"
15534      as_dir=`$as_dirname -- "$as_dir" ||
15535$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15536	 X"$as_dir" : 'X\(//\)[^/]' \| \
15537	 X"$as_dir" : 'X\(//\)$' \| \
15538	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15539$as_echo X"$as_dir" |
15540    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15541	    s//\1/
15542	    q
15543	  }
15544	  /^X\(\/\/\)[^/].*/{
15545	    s//\1/
15546	    q
15547	  }
15548	  /^X\(\/\/\)$/{
15549	    s//\1/
15550	    q
15551	  }
15552	  /^X\(\/\).*/{
15553	    s//\1/
15554	    q
15555	  }
15556	  s/.*/./; q'`
15557      test -d "$as_dir" && break
15558    done
15559    test -z "$as_dirs" || eval "mkdir $as_dirs"
15560  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15561
15562
15563} # as_fn_mkdir_p
15564if mkdir -p . 2>/dev/null; then
15565  as_mkdir_p='mkdir -p "$as_dir"'
15566else
15567  test -d ./-p && rmdir ./-p
15568  as_mkdir_p=false
15569fi
15570
15571
15572# as_fn_executable_p FILE
15573# -----------------------
15574# Test if FILE is an executable regular file.
15575as_fn_executable_p ()
15576{
15577  test -f "$1" && test -x "$1"
15578} # as_fn_executable_p
15579as_test_x='test -x'
15580as_executable_p=as_fn_executable_p
15581
15582# Sed expression to map a string onto a valid CPP name.
15583as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15584
15585# Sed expression to map a string onto a valid variable name.
15586as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15587
15588
15589exec 6>&1
15590## ----------------------------------- ##
15591## Main body of $CONFIG_STATUS script. ##
15592## ----------------------------------- ##
15593_ASEOF
15594test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15595
15596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597# Save the log message, to keep $0 and so on meaningful, and to
15598# report actual input values of CONFIG_FILES etc. instead of their
15599# values after options handling.
15600ac_log="
15601This file was extended by $as_me, which was
15602generated by GNU Autoconf 2.69.  Invocation command line was
15603
15604  CONFIG_FILES    = $CONFIG_FILES
15605  CONFIG_HEADERS  = $CONFIG_HEADERS
15606  CONFIG_LINKS    = $CONFIG_LINKS
15607  CONFIG_COMMANDS = $CONFIG_COMMANDS
15608  $ $0 $@
15609
15610on `(hostname || uname -n) 2>/dev/null | sed 1q`
15611"
15612
15613_ACEOF
15614
15615case $ac_config_files in *"
15616"*) set x $ac_config_files; shift; ac_config_files=$*;;
15617esac
15618
15619case $ac_config_headers in *"
15620"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15621esac
15622
15623
15624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625# Files that config.status was made for.
15626config_files="$ac_config_files"
15627config_headers="$ac_config_headers"
15628config_commands="$ac_config_commands"
15629
15630_ACEOF
15631
15632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15633ac_cs_usage="\
15634\`$as_me' instantiates files and other configuration actions
15635from templates according to the current configuration.  Unless the files
15636and actions are specified as TAGs, all are instantiated by default.
15637
15638Usage: $0 [OPTION]... [TAG]...
15639
15640  -h, --help       print this help, then exit
15641  -V, --version    print version number and configuration settings, then exit
15642      --config     print configuration, then exit
15643  -q, --quiet, --silent
15644                   do not print progress messages
15645  -d, --debug      don't remove temporary files
15646      --recheck    update $as_me by reconfiguring in the same conditions
15647      --file=FILE[:TEMPLATE]
15648                   instantiate the configuration file FILE
15649      --header=FILE[:TEMPLATE]
15650                   instantiate the configuration header FILE
15651
15652Configuration files:
15653$config_files
15654
15655Configuration headers:
15656$config_headers
15657
15658Configuration commands:
15659$config_commands
15660
15661Report bugs to the package provider."
15662
15663_ACEOF
15664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15665ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15666ac_cs_version="\\
15667config.status
15668configured by $0, generated by GNU Autoconf 2.69,
15669  with options \\"\$ac_cs_config\\"
15670
15671Copyright (C) 2012 Free Software Foundation, Inc.
15672This config.status script is free software; the Free Software Foundation
15673gives unlimited permission to copy, distribute and modify it."
15674
15675ac_pwd='$ac_pwd'
15676srcdir='$srcdir'
15677INSTALL='$INSTALL'
15678MKDIR_P='$MKDIR_P'
15679AWK='$AWK'
15680test -n "\$AWK" || AWK=awk
15681_ACEOF
15682
15683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15684# The default lists apply if the user does not specify any file.
15685ac_need_defaults=:
15686while test $# != 0
15687do
15688  case $1 in
15689  --*=?*)
15690    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15691    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15692    ac_shift=:
15693    ;;
15694  --*=)
15695    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15696    ac_optarg=
15697    ac_shift=:
15698    ;;
15699  *)
15700    ac_option=$1
15701    ac_optarg=$2
15702    ac_shift=shift
15703    ;;
15704  esac
15705
15706  case $ac_option in
15707  # Handling of the options.
15708  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15709    ac_cs_recheck=: ;;
15710  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15711    $as_echo "$ac_cs_version"; exit ;;
15712  --config | --confi | --conf | --con | --co | --c )
15713    $as_echo "$ac_cs_config"; exit ;;
15714  --debug | --debu | --deb | --de | --d | -d )
15715    debug=: ;;
15716  --file | --fil | --fi | --f )
15717    $ac_shift
15718    case $ac_optarg in
15719    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15720    '') as_fn_error $? "missing file argument" ;;
15721    esac
15722    as_fn_append CONFIG_FILES " '$ac_optarg'"
15723    ac_need_defaults=false;;
15724  --header | --heade | --head | --hea )
15725    $ac_shift
15726    case $ac_optarg in
15727    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15728    esac
15729    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15730    ac_need_defaults=false;;
15731  --he | --h)
15732    # Conflict between --help and --header
15733    as_fn_error $? "ambiguous option: \`$1'
15734Try \`$0 --help' for more information.";;
15735  --help | --hel | -h )
15736    $as_echo "$ac_cs_usage"; exit ;;
15737  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15738  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15739    ac_cs_silent=: ;;
15740
15741  # This is an error.
15742  -*) as_fn_error $? "unrecognized option: \`$1'
15743Try \`$0 --help' for more information." ;;
15744
15745  *) as_fn_append ac_config_targets " $1"
15746     ac_need_defaults=false ;;
15747
15748  esac
15749  shift
15750done
15751
15752ac_configure_extra_args=
15753
15754if $ac_cs_silent; then
15755  exec 6>/dev/null
15756  ac_configure_extra_args="$ac_configure_extra_args --silent"
15757fi
15758
15759_ACEOF
15760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761if \$ac_cs_recheck; then
15762  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15763  shift
15764  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15765  CONFIG_SHELL='$SHELL'
15766  export CONFIG_SHELL
15767  exec "\$@"
15768fi
15769
15770_ACEOF
15771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15772exec 5>>config.log
15773{
15774  echo
15775  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15776## Running $as_me. ##
15777_ASBOX
15778  $as_echo "$ac_log"
15779} >&5
15780
15781_ACEOF
15782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15783#
15784# INIT-COMMANDS
15785#
15786AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15787
15788
15789# The HP-UX ksh and POSIX shell print the target directory to stdout
15790# if CDPATH is set.
15791(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15792
15793sed_quote_subst='$sed_quote_subst'
15794double_quote_subst='$double_quote_subst'
15795delay_variable_subst='$delay_variable_subst'
15796macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15797macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15798enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15799enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15800pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15801enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15802SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15803ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15804host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15805host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15806host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15807build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15808build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15809build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15810SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15811Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15812GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15813EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15814FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15815LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15816NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15817LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15818max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15819ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15820exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15821lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15822lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15823lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15824lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15825lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15826reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15827reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15828OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15829deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15830file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15831file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15832want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15833DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15834sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15835AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15836AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15837archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15838STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15839RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15840old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15841old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15842old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15843lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15844CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15845CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15846compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15847GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15848lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15849lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15850lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15851lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15852nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15853lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15854objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15855MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15856lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15857lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15858lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15859lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15860lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15861need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15862MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15863DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15864NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15865LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15866OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15867OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15868libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15869shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15870extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15871archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15872enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15873export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15874whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15875compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15876old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15877old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15878archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15879archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15880module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15881module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15882with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15883allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15884no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15885hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15886hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15887hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15888hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15889hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15890hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15891hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15892hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15893inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15894link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15895always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15896export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15897exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15898include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15899prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15900postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15901file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15902variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15903need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15904need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15905version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15906runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15907shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15908shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15909libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15910library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15911soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15912install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15913postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15914postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15915finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15916finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15917hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15918sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15919sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15920hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15921enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15922enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15923enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15924old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15925striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15926
15927LTCC='$LTCC'
15928LTCFLAGS='$LTCFLAGS'
15929compiler='$compiler_DEFAULT'
15930
15931# A function that is used when there is no print builtin or printf.
15932func_fallback_echo ()
15933{
15934  eval 'cat <<_LTECHO_EOF
15935\$1
15936_LTECHO_EOF'
15937}
15938
15939# Quote evaled strings.
15940for var in SHELL \
15941ECHO \
15942SED \
15943GREP \
15944EGREP \
15945FGREP \
15946LD \
15947NM \
15948LN_S \
15949lt_SP2NL \
15950lt_NL2SP \
15951reload_flag \
15952OBJDUMP \
15953deplibs_check_method \
15954file_magic_cmd \
15955file_magic_glob \
15956want_nocaseglob \
15957DLLTOOL \
15958sharedlib_from_linklib_cmd \
15959AR \
15960AR_FLAGS \
15961archiver_list_spec \
15962STRIP \
15963RANLIB \
15964CC \
15965CFLAGS \
15966compiler \
15967lt_cv_sys_global_symbol_pipe \
15968lt_cv_sys_global_symbol_to_cdecl \
15969lt_cv_sys_global_symbol_to_c_name_address \
15970lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15971nm_file_list_spec \
15972lt_prog_compiler_no_builtin_flag \
15973lt_prog_compiler_pic \
15974lt_prog_compiler_wl \
15975lt_prog_compiler_static \
15976lt_cv_prog_compiler_c_o \
15977need_locks \
15978MANIFEST_TOOL \
15979DSYMUTIL \
15980NMEDIT \
15981LIPO \
15982OTOOL \
15983OTOOL64 \
15984shrext_cmds \
15985export_dynamic_flag_spec \
15986whole_archive_flag_spec \
15987compiler_needs_object \
15988with_gnu_ld \
15989allow_undefined_flag \
15990no_undefined_flag \
15991hardcode_libdir_flag_spec \
15992hardcode_libdir_flag_spec_ld \
15993hardcode_libdir_separator \
15994exclude_expsyms \
15995include_expsyms \
15996file_list_spec \
15997variables_saved_for_relink \
15998libname_spec \
15999library_names_spec \
16000soname_spec \
16001install_override_mode \
16002finish_eval \
16003old_striplib \
16004striplib; do
16005    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16006    *[\\\\\\\`\\"\\\$]*)
16007      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16008      ;;
16009    *)
16010      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16011      ;;
16012    esac
16013done
16014
16015# Double-quote double-evaled strings.
16016for var in reload_cmds \
16017old_postinstall_cmds \
16018old_postuninstall_cmds \
16019old_archive_cmds \
16020extract_expsyms_cmds \
16021old_archive_from_new_cmds \
16022old_archive_from_expsyms_cmds \
16023archive_cmds \
16024archive_expsym_cmds \
16025module_cmds \
16026module_expsym_cmds \
16027export_symbols_cmds \
16028prelink_cmds \
16029postlink_cmds \
16030postinstall_cmds \
16031postuninstall_cmds \
16032finish_cmds \
16033sys_lib_search_path_spec \
16034sys_lib_dlsearch_path_spec; do
16035    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16036    *[\\\\\\\`\\"\\\$]*)
16037      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16038      ;;
16039    *)
16040      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16041      ;;
16042    esac
16043done
16044
16045ac_aux_dir='$ac_aux_dir'
16046xsi_shell='$xsi_shell'
16047lt_shell_append='$lt_shell_append'
16048
16049# See if we are running on zsh, and set the options which allow our
16050# commands through without removal of \ escapes INIT.
16051if test -n "\${ZSH_VERSION+set}" ; then
16052   setopt NO_GLOB_SUBST
16053fi
16054
16055
16056    PACKAGE='$PACKAGE'
16057    VERSION='$VERSION'
16058    TIMESTAMP='$TIMESTAMP'
16059    RM='$RM'
16060    ofile='$ofile'
16061
16062
16063
16064
16065_ACEOF
16066
16067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068
16069# Handling of arguments.
16070for ac_config_target in $ac_config_targets
16071do
16072  case $ac_config_target in
16073    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16074    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16075    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16076    "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16077    "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16078    "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16079    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16080    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16081    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16082    "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16083
16084  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16085  esac
16086done
16087
16088
16089# If the user did not use the arguments to specify the items to instantiate,
16090# then the envvar interface is used.  Set only those that are not.
16091# We use the long form for the default assignment because of an extremely
16092# bizarre bug on SunOS 4.1.3.
16093if $ac_need_defaults; then
16094  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16095  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16096  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16097fi
16098
16099# Have a temporary directory for convenience.  Make it in the build tree
16100# simply because there is no reason against having it here, and in addition,
16101# creating and moving files from /tmp can sometimes cause problems.
16102# Hook for its removal unless debugging.
16103# Note that there is a small window in which the directory will not be cleaned:
16104# after its creation but before its name has been assigned to `$tmp'.
16105$debug ||
16106{
16107  tmp= ac_tmp=
16108  trap 'exit_status=$?
16109  : "${ac_tmp:=$tmp}"
16110  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16111' 0
16112  trap 'as_fn_exit 1' 1 2 13 15
16113}
16114# Create a (secure) tmp directory for tmp files.
16115
16116{
16117  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16118  test -d "$tmp"
16119}  ||
16120{
16121  tmp=./conf$$-$RANDOM
16122  (umask 077 && mkdir "$tmp")
16123} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16124ac_tmp=$tmp
16125
16126# Set up the scripts for CONFIG_FILES section.
16127# No need to generate them if there are no CONFIG_FILES.
16128# This happens for instance with `./config.status config.h'.
16129if test -n "$CONFIG_FILES"; then
16130
16131
16132ac_cr=`echo X | tr X '\015'`
16133# On cygwin, bash can eat \r inside `` if the user requested igncr.
16134# But we know of no other shell where ac_cr would be empty at this
16135# point, so we can use a bashism as a fallback.
16136if test "x$ac_cr" = x; then
16137  eval ac_cr=\$\'\\r\'
16138fi
16139ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16140if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16141  ac_cs_awk_cr='\\r'
16142else
16143  ac_cs_awk_cr=$ac_cr
16144fi
16145
16146echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16147_ACEOF
16148
16149
16150{
16151  echo "cat >conf$$subs.awk <<_ACEOF" &&
16152  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16153  echo "_ACEOF"
16154} >conf$$subs.sh ||
16155  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16156ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16157ac_delim='%!_!# '
16158for ac_last_try in false false false false false :; do
16159  . ./conf$$subs.sh ||
16160    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16161
16162  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16163  if test $ac_delim_n = $ac_delim_num; then
16164    break
16165  elif $ac_last_try; then
16166    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16167  else
16168    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16169  fi
16170done
16171rm -f conf$$subs.sh
16172
16173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16174cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16175_ACEOF
16176sed -n '
16177h
16178s/^/S["/; s/!.*/"]=/
16179p
16180g
16181s/^[^!]*!//
16182:repl
16183t repl
16184s/'"$ac_delim"'$//
16185t delim
16186:nl
16187h
16188s/\(.\{148\}\)..*/\1/
16189t more1
16190s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16191p
16192n
16193b repl
16194:more1
16195s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16196p
16197g
16198s/.\{148\}//
16199t nl
16200:delim
16201h
16202s/\(.\{148\}\)..*/\1/
16203t more2
16204s/["\\]/\\&/g; s/^/"/; s/$/"/
16205p
16206b
16207:more2
16208s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16209p
16210g
16211s/.\{148\}//
16212t delim
16213' <conf$$subs.awk | sed '
16214/^[^""]/{
16215  N
16216  s/\n//
16217}
16218' >>$CONFIG_STATUS || ac_write_fail=1
16219rm -f conf$$subs.awk
16220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16221_ACAWK
16222cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16223  for (key in S) S_is_set[key] = 1
16224  FS = ""
16225
16226}
16227{
16228  line = $ 0
16229  nfields = split(line, field, "@")
16230  substed = 0
16231  len = length(field[1])
16232  for (i = 2; i < nfields; i++) {
16233    key = field[i]
16234    keylen = length(key)
16235    if (S_is_set[key]) {
16236      value = S[key]
16237      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16238      len += length(value) + length(field[++i])
16239      substed = 1
16240    } else
16241      len += 1 + keylen
16242  }
16243
16244  print line
16245}
16246
16247_ACAWK
16248_ACEOF
16249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16251  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16252else
16253  cat
16254fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16255  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16256_ACEOF
16257
16258# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16259# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16260# trailing colons and then remove the whole line if VPATH becomes empty
16261# (actually we leave an empty line to preserve line numbers).
16262if test "x$srcdir" = x.; then
16263  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16264h
16265s///
16266s/^/:/
16267s/[	 ]*$/:/
16268s/:\$(srcdir):/:/g
16269s/:\${srcdir}:/:/g
16270s/:@srcdir@:/:/g
16271s/^:*//
16272s/:*$//
16273x
16274s/\(=[	 ]*\).*/\1/
16275G
16276s/\n//
16277s/^[^=]*=[	 ]*$//
16278}'
16279fi
16280
16281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282fi # test -n "$CONFIG_FILES"
16283
16284# Set up the scripts for CONFIG_HEADERS section.
16285# No need to generate them if there are no CONFIG_HEADERS.
16286# This happens for instance with `./config.status Makefile'.
16287if test -n "$CONFIG_HEADERS"; then
16288cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16289BEGIN {
16290_ACEOF
16291
16292# Transform confdefs.h into an awk script `defines.awk', embedded as
16293# here-document in config.status, that substitutes the proper values into
16294# config.h.in to produce config.h.
16295
16296# Create a delimiter string that does not exist in confdefs.h, to ease
16297# handling of long lines.
16298ac_delim='%!_!# '
16299for ac_last_try in false false :; do
16300  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16301  if test -z "$ac_tt"; then
16302    break
16303  elif $ac_last_try; then
16304    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16305  else
16306    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16307  fi
16308done
16309
16310# For the awk script, D is an array of macro values keyed by name,
16311# likewise P contains macro parameters if any.  Preserve backslash
16312# newline sequences.
16313
16314ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16315sed -n '
16316s/.\{148\}/&'"$ac_delim"'/g
16317t rset
16318:rset
16319s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16320t def
16321d
16322:def
16323s/\\$//
16324t bsnl
16325s/["\\]/\\&/g
16326s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16327D["\1"]=" \3"/p
16328s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16329d
16330:bsnl
16331s/["\\]/\\&/g
16332s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16333D["\1"]=" \3\\\\\\n"\\/p
16334t cont
16335s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16336t cont
16337d
16338:cont
16339n
16340s/.\{148\}/&'"$ac_delim"'/g
16341t clear
16342:clear
16343s/\\$//
16344t bsnlc
16345s/["\\]/\\&/g; s/^/"/; s/$/"/p
16346d
16347:bsnlc
16348s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16349b cont
16350' <confdefs.h | sed '
16351s/'"$ac_delim"'/"\\\
16352"/g' >>$CONFIG_STATUS || ac_write_fail=1
16353
16354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355  for (key in D) D_is_set[key] = 1
16356  FS = ""
16357}
16358/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16359  line = \$ 0
16360  split(line, arg, " ")
16361  if (arg[1] == "#") {
16362    defundef = arg[2]
16363    mac1 = arg[3]
16364  } else {
16365    defundef = substr(arg[1], 2)
16366    mac1 = arg[2]
16367  }
16368  split(mac1, mac2, "(") #)
16369  macro = mac2[1]
16370  prefix = substr(line, 1, index(line, defundef) - 1)
16371  if (D_is_set[macro]) {
16372    # Preserve the white space surrounding the "#".
16373    print prefix "define", macro P[macro] D[macro]
16374    next
16375  } else {
16376    # Replace #undef with comments.  This is necessary, for example,
16377    # in the case of _POSIX_SOURCE, which is predefined and required
16378    # on some systems where configure will not decide to define it.
16379    if (defundef == "undef") {
16380      print "/*", prefix defundef, macro, "*/"
16381      next
16382    }
16383  }
16384}
16385{ print }
16386_ACAWK
16387_ACEOF
16388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16389  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16390fi # test -n "$CONFIG_HEADERS"
16391
16392
16393eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16394shift
16395for ac_tag
16396do
16397  case $ac_tag in
16398  :[FHLC]) ac_mode=$ac_tag; continue;;
16399  esac
16400  case $ac_mode$ac_tag in
16401  :[FHL]*:*);;
16402  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16403  :[FH]-) ac_tag=-:-;;
16404  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16405  esac
16406  ac_save_IFS=$IFS
16407  IFS=:
16408  set x $ac_tag
16409  IFS=$ac_save_IFS
16410  shift
16411  ac_file=$1
16412  shift
16413
16414  case $ac_mode in
16415  :L) ac_source=$1;;
16416  :[FH])
16417    ac_file_inputs=
16418    for ac_f
16419    do
16420      case $ac_f in
16421      -) ac_f="$ac_tmp/stdin";;
16422      *) # Look for the file first in the build tree, then in the source tree
16423	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16424	 # because $ac_f cannot contain `:'.
16425	 test -f "$ac_f" ||
16426	   case $ac_f in
16427	   [\\/$]*) false;;
16428	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16429	   esac ||
16430	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16431      esac
16432      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16433      as_fn_append ac_file_inputs " '$ac_f'"
16434    done
16435
16436    # Let's still pretend it is `configure' which instantiates (i.e., don't
16437    # use $as_me), people would be surprised to read:
16438    #    /* config.h.  Generated by config.status.  */
16439    configure_input='Generated from '`
16440	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16441	`' by configure.'
16442    if test x"$ac_file" != x-; then
16443      configure_input="$ac_file.  $configure_input"
16444      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16445$as_echo "$as_me: creating $ac_file" >&6;}
16446    fi
16447    # Neutralize special characters interpreted by sed in replacement strings.
16448    case $configure_input in #(
16449    *\&* | *\|* | *\\* )
16450       ac_sed_conf_input=`$as_echo "$configure_input" |
16451       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16452    *) ac_sed_conf_input=$configure_input;;
16453    esac
16454
16455    case $ac_tag in
16456    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16457      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16458    esac
16459    ;;
16460  esac
16461
16462  ac_dir=`$as_dirname -- "$ac_file" ||
16463$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16464	 X"$ac_file" : 'X\(//\)[^/]' \| \
16465	 X"$ac_file" : 'X\(//\)$' \| \
16466	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16467$as_echo X"$ac_file" |
16468    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16469	    s//\1/
16470	    q
16471	  }
16472	  /^X\(\/\/\)[^/].*/{
16473	    s//\1/
16474	    q
16475	  }
16476	  /^X\(\/\/\)$/{
16477	    s//\1/
16478	    q
16479	  }
16480	  /^X\(\/\).*/{
16481	    s//\1/
16482	    q
16483	  }
16484	  s/.*/./; q'`
16485  as_dir="$ac_dir"; as_fn_mkdir_p
16486  ac_builddir=.
16487
16488case "$ac_dir" in
16489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16490*)
16491  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16492  # A ".." for each directory in $ac_dir_suffix.
16493  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16494  case $ac_top_builddir_sub in
16495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16497  esac ;;
16498esac
16499ac_abs_top_builddir=$ac_pwd
16500ac_abs_builddir=$ac_pwd$ac_dir_suffix
16501# for backward compatibility:
16502ac_top_builddir=$ac_top_build_prefix
16503
16504case $srcdir in
16505  .)  # We are building in place.
16506    ac_srcdir=.
16507    ac_top_srcdir=$ac_top_builddir_sub
16508    ac_abs_top_srcdir=$ac_pwd ;;
16509  [\\/]* | ?:[\\/]* )  # Absolute name.
16510    ac_srcdir=$srcdir$ac_dir_suffix;
16511    ac_top_srcdir=$srcdir
16512    ac_abs_top_srcdir=$srcdir ;;
16513  *) # Relative name.
16514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16515    ac_top_srcdir=$ac_top_build_prefix$srcdir
16516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16517esac
16518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16519
16520
16521  case $ac_mode in
16522  :F)
16523  #
16524  # CONFIG_FILE
16525  #
16526
16527  case $INSTALL in
16528  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16529  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16530  esac
16531  ac_MKDIR_P=$MKDIR_P
16532  case $MKDIR_P in
16533  [\\/$]* | ?:[\\/]* ) ;;
16534  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16535  esac
16536_ACEOF
16537
16538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16539# If the template does not know about datarootdir, expand it.
16540# FIXME: This hack should be removed a few years after 2.60.
16541ac_datarootdir_hack=; ac_datarootdir_seen=
16542ac_sed_dataroot='
16543/datarootdir/ {
16544  p
16545  q
16546}
16547/@datadir@/p
16548/@docdir@/p
16549/@infodir@/p
16550/@localedir@/p
16551/@mandir@/p'
16552case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16553*datarootdir*) ac_datarootdir_seen=yes;;
16554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16555  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16556$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16557_ACEOF
16558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16559  ac_datarootdir_hack='
16560  s&@datadir@&$datadir&g
16561  s&@docdir@&$docdir&g
16562  s&@infodir@&$infodir&g
16563  s&@localedir@&$localedir&g
16564  s&@mandir@&$mandir&g
16565  s&\\\${datarootdir}&$datarootdir&g' ;;
16566esac
16567_ACEOF
16568
16569# Neutralize VPATH when `$srcdir' = `.'.
16570# Shell code in configure.ac might set extrasub.
16571# FIXME: do we really want to maintain this feature?
16572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16573ac_sed_extra="$ac_vpsub
16574$extrasub
16575_ACEOF
16576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577:t
16578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16579s|@configure_input@|$ac_sed_conf_input|;t t
16580s&@top_builddir@&$ac_top_builddir_sub&;t t
16581s&@top_build_prefix@&$ac_top_build_prefix&;t t
16582s&@srcdir@&$ac_srcdir&;t t
16583s&@abs_srcdir@&$ac_abs_srcdir&;t t
16584s&@top_srcdir@&$ac_top_srcdir&;t t
16585s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16586s&@builddir@&$ac_builddir&;t t
16587s&@abs_builddir@&$ac_abs_builddir&;t t
16588s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16589s&@INSTALL@&$ac_INSTALL&;t t
16590s&@MKDIR_P@&$ac_MKDIR_P&;t t
16591$ac_datarootdir_hack
16592"
16593eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16594  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16595
16596test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16597  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16598  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16599      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16600  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16601which seems to be undefined.  Please make sure it is defined" >&5
16602$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16603which seems to be undefined.  Please make sure it is defined" >&2;}
16604
16605  rm -f "$ac_tmp/stdin"
16606  case $ac_file in
16607  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16608  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16609  esac \
16610  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16611 ;;
16612  :H)
16613  #
16614  # CONFIG_HEADER
16615  #
16616  if test x"$ac_file" != x-; then
16617    {
16618      $as_echo "/* $configure_input  */" \
16619      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16620    } >"$ac_tmp/config.h" \
16621      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16622    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16623      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16624$as_echo "$as_me: $ac_file is unchanged" >&6;}
16625    else
16626      rm -f "$ac_file"
16627      mv "$ac_tmp/config.h" "$ac_file" \
16628	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16629    fi
16630  else
16631    $as_echo "/* $configure_input  */" \
16632      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16633      || as_fn_error $? "could not create -" "$LINENO" 5
16634  fi
16635# Compute "$ac_file"'s index in $config_headers.
16636_am_arg="$ac_file"
16637_am_stamp_count=1
16638for _am_header in $config_headers :; do
16639  case $_am_header in
16640    $_am_arg | $_am_arg:* )
16641      break ;;
16642    * )
16643      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16644  esac
16645done
16646echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16647$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16648	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16649	 X"$_am_arg" : 'X\(//\)$' \| \
16650	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16651$as_echo X"$_am_arg" |
16652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16653	    s//\1/
16654	    q
16655	  }
16656	  /^X\(\/\/\)[^/].*/{
16657	    s//\1/
16658	    q
16659	  }
16660	  /^X\(\/\/\)$/{
16661	    s//\1/
16662	    q
16663	  }
16664	  /^X\(\/\).*/{
16665	    s//\1/
16666	    q
16667	  }
16668	  s/.*/./; q'`/stamp-h$_am_stamp_count
16669 ;;
16670
16671  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16672$as_echo "$as_me: executing $ac_file commands" >&6;}
16673 ;;
16674  esac
16675
16676
16677  case $ac_file$ac_mode in
16678    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16679  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16680  # are listed without --file.  Let's play safe and only enable the eval
16681  # if we detect the quoting.
16682  case $CONFIG_FILES in
16683  *\'*) eval set x "$CONFIG_FILES" ;;
16684  *)   set x $CONFIG_FILES ;;
16685  esac
16686  shift
16687  for mf
16688  do
16689    # Strip MF so we end up with the name of the file.
16690    mf=`echo "$mf" | sed -e 's/:.*$//'`
16691    # Check whether this is an Automake generated Makefile or not.
16692    # We used to match only the files named 'Makefile.in', but
16693    # some people rename them; so instead we look at the file content.
16694    # Grep'ing the first line is not enough: some people post-process
16695    # each Makefile.in and add a new line on top of each file to say so.
16696    # Grep'ing the whole file is not good either: AIX grep has a line
16697    # limit of 2048, but all sed's we know have understand at least 4000.
16698    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16699      dirpart=`$as_dirname -- "$mf" ||
16700$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16701	 X"$mf" : 'X\(//\)[^/]' \| \
16702	 X"$mf" : 'X\(//\)$' \| \
16703	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16704$as_echo X"$mf" |
16705    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16706	    s//\1/
16707	    q
16708	  }
16709	  /^X\(\/\/\)[^/].*/{
16710	    s//\1/
16711	    q
16712	  }
16713	  /^X\(\/\/\)$/{
16714	    s//\1/
16715	    q
16716	  }
16717	  /^X\(\/\).*/{
16718	    s//\1/
16719	    q
16720	  }
16721	  s/.*/./; q'`
16722    else
16723      continue
16724    fi
16725    # Extract the definition of DEPDIR, am__include, and am__quote
16726    # from the Makefile without running 'make'.
16727    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16728    test -z "$DEPDIR" && continue
16729    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16730    test -z "am__include" && continue
16731    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16732    # Find all dependency output files, they are included files with
16733    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16734    # simplest approach to changing $(DEPDIR) to its actual value in the
16735    # expansion.
16736    for file in `sed -n "
16737      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16738	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16739      # Make sure the directory exists.
16740      test -f "$dirpart/$file" && continue
16741      fdir=`$as_dirname -- "$file" ||
16742$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16743	 X"$file" : 'X\(//\)[^/]' \| \
16744	 X"$file" : 'X\(//\)$' \| \
16745	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16746$as_echo X"$file" |
16747    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16748	    s//\1/
16749	    q
16750	  }
16751	  /^X\(\/\/\)[^/].*/{
16752	    s//\1/
16753	    q
16754	  }
16755	  /^X\(\/\/\)$/{
16756	    s//\1/
16757	    q
16758	  }
16759	  /^X\(\/\).*/{
16760	    s//\1/
16761	    q
16762	  }
16763	  s/.*/./; q'`
16764      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16765      # echo "creating $dirpart/$file"
16766      echo '# dummy' > "$dirpart/$file"
16767    done
16768  done
16769}
16770 ;;
16771    "libtool":C)
16772
16773    # See if we are running on zsh, and set the options which allow our
16774    # commands through without removal of \ escapes.
16775    if test -n "${ZSH_VERSION+set}" ; then
16776      setopt NO_GLOB_SUBST
16777    fi
16778
16779    cfgfile="${ofile}T"
16780    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16781    $RM "$cfgfile"
16782
16783    cat <<_LT_EOF >> "$cfgfile"
16784#! $SHELL
16785
16786# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16787# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16788# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16789# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16790#
16791#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16792#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16793#                 Inc.
16794#   Written by Gordon Matzigkeit, 1996
16795#
16796#   This file is part of GNU Libtool.
16797#
16798# GNU Libtool is free software; you can redistribute it and/or
16799# modify it under the terms of the GNU General Public License as
16800# published by the Free Software Foundation; either version 2 of
16801# the License, or (at your option) any later version.
16802#
16803# As a special exception to the GNU General Public License,
16804# if you distribute this file as part of a program or library that
16805# is built using GNU Libtool, you may include this file under the
16806# same distribution terms that you use for the rest of that program.
16807#
16808# GNU Libtool is distributed in the hope that it will be useful,
16809# but WITHOUT ANY WARRANTY; without even the implied warranty of
16810# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16811# GNU General Public License for more details.
16812#
16813# You should have received a copy of the GNU General Public License
16814# along with GNU Libtool; see the file COPYING.  If not, a copy
16815# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16816# obtained by writing to the Free Software Foundation, Inc.,
16817# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16818
16819
16820# The names of the tagged configurations supported by this script.
16821available_tags=""
16822
16823# ### BEGIN LIBTOOL CONFIG
16824
16825# Which release of libtool.m4 was used?
16826macro_version=$macro_version
16827macro_revision=$macro_revision
16828
16829# Whether or not to build shared libraries.
16830build_libtool_libs=$enable_shared
16831
16832# Whether or not to build static libraries.
16833build_old_libs=$enable_static
16834
16835# What type of objects to build.
16836pic_mode=$pic_mode
16837
16838# Whether or not to optimize for fast installation.
16839fast_install=$enable_fast_install
16840
16841# Shell to use when invoking shell scripts.
16842SHELL=$lt_SHELL
16843
16844# An echo program that protects backslashes.
16845ECHO=$lt_ECHO
16846
16847# The host system.
16848host_alias=$host_alias
16849host=$host
16850host_os=$host_os
16851
16852# The build system.
16853build_alias=$build_alias
16854build=$build
16855build_os=$build_os
16856
16857# A sed program that does not truncate output.
16858SED=$lt_SED
16859
16860# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16861Xsed="\$SED -e 1s/^X//"
16862
16863# A grep program that handles long lines.
16864GREP=$lt_GREP
16865
16866# An ERE matcher.
16867EGREP=$lt_EGREP
16868
16869# A literal string matcher.
16870FGREP=$lt_FGREP
16871
16872# A BSD- or MS-compatible name lister.
16873NM=$lt_NM
16874
16875# Whether we need soft or hard links.
16876LN_S=$lt_LN_S
16877
16878# What is the maximum length of a command?
16879max_cmd_len=$max_cmd_len
16880
16881# Object file suffix (normally "o").
16882objext=$ac_objext
16883
16884# Executable file suffix (normally "").
16885exeext=$exeext
16886
16887# whether the shell understands "unset".
16888lt_unset=$lt_unset
16889
16890# turn spaces into newlines.
16891SP2NL=$lt_lt_SP2NL
16892
16893# turn newlines into spaces.
16894NL2SP=$lt_lt_NL2SP
16895
16896# convert \$build file names to \$host format.
16897to_host_file_cmd=$lt_cv_to_host_file_cmd
16898
16899# convert \$build files to toolchain format.
16900to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16901
16902# An object symbol dumper.
16903OBJDUMP=$lt_OBJDUMP
16904
16905# Method to check whether dependent libraries are shared objects.
16906deplibs_check_method=$lt_deplibs_check_method
16907
16908# Command to use when deplibs_check_method = "file_magic".
16909file_magic_cmd=$lt_file_magic_cmd
16910
16911# How to find potential files when deplibs_check_method = "file_magic".
16912file_magic_glob=$lt_file_magic_glob
16913
16914# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16915want_nocaseglob=$lt_want_nocaseglob
16916
16917# DLL creation program.
16918DLLTOOL=$lt_DLLTOOL
16919
16920# Command to associate shared and link libraries.
16921sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16922
16923# The archiver.
16924AR=$lt_AR
16925
16926# Flags to create an archive.
16927AR_FLAGS=$lt_AR_FLAGS
16928
16929# How to feed a file listing to the archiver.
16930archiver_list_spec=$lt_archiver_list_spec
16931
16932# A symbol stripping program.
16933STRIP=$lt_STRIP
16934
16935# Commands used to install an old-style archive.
16936RANLIB=$lt_RANLIB
16937old_postinstall_cmds=$lt_old_postinstall_cmds
16938old_postuninstall_cmds=$lt_old_postuninstall_cmds
16939
16940# Whether to use a lock for old archive extraction.
16941lock_old_archive_extraction=$lock_old_archive_extraction
16942
16943# A C compiler.
16944LTCC=$lt_CC
16945
16946# LTCC compiler flags.
16947LTCFLAGS=$lt_CFLAGS
16948
16949# Take the output of nm and produce a listing of raw symbols and C names.
16950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16951
16952# Transform the output of nm in a proper C declaration.
16953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16954
16955# Transform the output of nm in a C name address pair.
16956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16957
16958# Transform the output of nm in a C name address pair when lib prefix is needed.
16959global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16960
16961# Specify filename containing input files for \$NM.
16962nm_file_list_spec=$lt_nm_file_list_spec
16963
16964# The root where to search for dependent libraries,and in which our libraries should be installed.
16965lt_sysroot=$lt_sysroot
16966
16967# The name of the directory that contains temporary libtool files.
16968objdir=$objdir
16969
16970# Used to examine libraries when file_magic_cmd begins with "file".
16971MAGIC_CMD=$MAGIC_CMD
16972
16973# Must we lock files when doing compilation?
16974need_locks=$lt_need_locks
16975
16976# Manifest tool.
16977MANIFEST_TOOL=$lt_MANIFEST_TOOL
16978
16979# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16980DSYMUTIL=$lt_DSYMUTIL
16981
16982# Tool to change global to local symbols on Mac OS X.
16983NMEDIT=$lt_NMEDIT
16984
16985# Tool to manipulate fat objects and archives on Mac OS X.
16986LIPO=$lt_LIPO
16987
16988# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16989OTOOL=$lt_OTOOL
16990
16991# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16992OTOOL64=$lt_OTOOL64
16993
16994# Old archive suffix (normally "a").
16995libext=$libext
16996
16997# Shared library suffix (normally ".so").
16998shrext_cmds=$lt_shrext_cmds
16999
17000# The commands to extract the exported symbol list from a shared archive.
17001extract_expsyms_cmds=$lt_extract_expsyms_cmds
17002
17003# Variables whose values should be saved in libtool wrapper scripts and
17004# restored at link time.
17005variables_saved_for_relink=$lt_variables_saved_for_relink
17006
17007# Do we need the "lib" prefix for modules?
17008need_lib_prefix=$need_lib_prefix
17009
17010# Do we need a version for libraries?
17011need_version=$need_version
17012
17013# Library versioning type.
17014version_type=$version_type
17015
17016# Shared library runtime path variable.
17017runpath_var=$runpath_var
17018
17019# Shared library path variable.
17020shlibpath_var=$shlibpath_var
17021
17022# Is shlibpath searched before the hard-coded library search path?
17023shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17024
17025# Format of library name prefix.
17026libname_spec=$lt_libname_spec
17027
17028# List of archive names.  First name is the real one, the rest are links.
17029# The last name is the one that the linker finds with -lNAME
17030library_names_spec=$lt_library_names_spec
17031
17032# The coded name of the library, if different from the real name.
17033soname_spec=$lt_soname_spec
17034
17035# Permission mode override for installation of shared libraries.
17036install_override_mode=$lt_install_override_mode
17037
17038# Command to use after installation of a shared archive.
17039postinstall_cmds=$lt_postinstall_cmds
17040
17041# Command to use after uninstallation of a shared archive.
17042postuninstall_cmds=$lt_postuninstall_cmds
17043
17044# Commands used to finish a libtool library installation in a directory.
17045finish_cmds=$lt_finish_cmds
17046
17047# As "finish_cmds", except a single script fragment to be evaled but
17048# not shown.
17049finish_eval=$lt_finish_eval
17050
17051# Whether we should hardcode library paths into libraries.
17052hardcode_into_libs=$hardcode_into_libs
17053
17054# Compile-time system search path for libraries.
17055sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17056
17057# Run-time system search path for libraries.
17058sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17059
17060# Whether dlopen is supported.
17061dlopen_support=$enable_dlopen
17062
17063# Whether dlopen of programs is supported.
17064dlopen_self=$enable_dlopen_self
17065
17066# Whether dlopen of statically linked programs is supported.
17067dlopen_self_static=$enable_dlopen_self_static
17068
17069# Commands to strip libraries.
17070old_striplib=$lt_old_striplib
17071striplib=$lt_striplib
17072
17073
17074# The linker used to build libraries.
17075LD=$lt_LD
17076
17077# How to create reloadable object files.
17078reload_flag=$lt_reload_flag
17079reload_cmds=$lt_reload_cmds
17080
17081# Commands used to build an old-style archive.
17082old_archive_cmds=$lt_old_archive_cmds
17083
17084# A language specific compiler.
17085CC=$lt_compiler
17086
17087# Is the compiler the GNU compiler?
17088with_gcc=$GCC
17089
17090# Compiler flag to turn off builtin functions.
17091no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17092
17093# Additional compiler flags for building library objects.
17094pic_flag=$lt_lt_prog_compiler_pic
17095
17096# How to pass a linker flag through the compiler.
17097wl=$lt_lt_prog_compiler_wl
17098
17099# Compiler flag to prevent dynamic linking.
17100link_static_flag=$lt_lt_prog_compiler_static
17101
17102# Does compiler simultaneously support -c and -o options?
17103compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17104
17105# Whether or not to add -lc for building shared libraries.
17106build_libtool_need_lc=$archive_cmds_need_lc
17107
17108# Whether or not to disallow shared libs when runtime libs are static.
17109allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17110
17111# Compiler flag to allow reflexive dlopens.
17112export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17113
17114# Compiler flag to generate shared objects directly from archives.
17115whole_archive_flag_spec=$lt_whole_archive_flag_spec
17116
17117# Whether the compiler copes with passing no objects directly.
17118compiler_needs_object=$lt_compiler_needs_object
17119
17120# Create an old-style archive from a shared archive.
17121old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17122
17123# Create a temporary old-style archive to link instead of a shared archive.
17124old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17125
17126# Commands used to build a shared archive.
17127archive_cmds=$lt_archive_cmds
17128archive_expsym_cmds=$lt_archive_expsym_cmds
17129
17130# Commands used to build a loadable module if different from building
17131# a shared archive.
17132module_cmds=$lt_module_cmds
17133module_expsym_cmds=$lt_module_expsym_cmds
17134
17135# Whether we are building with GNU ld or not.
17136with_gnu_ld=$lt_with_gnu_ld
17137
17138# Flag that allows shared libraries with undefined symbols to be built.
17139allow_undefined_flag=$lt_allow_undefined_flag
17140
17141# Flag that enforces no undefined symbols.
17142no_undefined_flag=$lt_no_undefined_flag
17143
17144# Flag to hardcode \$libdir into a binary during linking.
17145# This must work even if \$libdir does not exist
17146hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17147
17148# If ld is used when linking, flag to hardcode \$libdir into a binary
17149# during linking.  This must work even if \$libdir does not exist.
17150hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17151
17152# Whether we need a single "-rpath" flag with a separated argument.
17153hardcode_libdir_separator=$lt_hardcode_libdir_separator
17154
17155# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17156# DIR into the resulting binary.
17157hardcode_direct=$hardcode_direct
17158
17159# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17160# DIR into the resulting binary and the resulting library dependency is
17161# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17162# library is relocated.
17163hardcode_direct_absolute=$hardcode_direct_absolute
17164
17165# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17166# into the resulting binary.
17167hardcode_minus_L=$hardcode_minus_L
17168
17169# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17170# into the resulting binary.
17171hardcode_shlibpath_var=$hardcode_shlibpath_var
17172
17173# Set to "yes" if building a shared library automatically hardcodes DIR
17174# into the library and all subsequent libraries and executables linked
17175# against it.
17176hardcode_automatic=$hardcode_automatic
17177
17178# Set to yes if linker adds runtime paths of dependent libraries
17179# to runtime path list.
17180inherit_rpath=$inherit_rpath
17181
17182# Whether libtool must link a program against all its dependency libraries.
17183link_all_deplibs=$link_all_deplibs
17184
17185# Set to "yes" if exported symbols are required.
17186always_export_symbols=$always_export_symbols
17187
17188# The commands to list exported symbols.
17189export_symbols_cmds=$lt_export_symbols_cmds
17190
17191# Symbols that should not be listed in the preloaded symbols.
17192exclude_expsyms=$lt_exclude_expsyms
17193
17194# Symbols that must always be exported.
17195include_expsyms=$lt_include_expsyms
17196
17197# Commands necessary for linking programs (against libraries) with templates.
17198prelink_cmds=$lt_prelink_cmds
17199
17200# Commands necessary for finishing linking programs.
17201postlink_cmds=$lt_postlink_cmds
17202
17203# Specify filename containing input files.
17204file_list_spec=$lt_file_list_spec
17205
17206# How to hardcode a shared library path into an executable.
17207hardcode_action=$hardcode_action
17208
17209# ### END LIBTOOL CONFIG
17210
17211_LT_EOF
17212
17213  case $host_os in
17214  aix3*)
17215    cat <<\_LT_EOF >> "$cfgfile"
17216# AIX sometimes has problems with the GCC collect2 program.  For some
17217# reason, if we set the COLLECT_NAMES environment variable, the problems
17218# vanish in a puff of smoke.
17219if test "X${COLLECT_NAMES+set}" != Xset; then
17220  COLLECT_NAMES=
17221  export COLLECT_NAMES
17222fi
17223_LT_EOF
17224    ;;
17225  esac
17226
17227
17228ltmain="$ac_aux_dir/ltmain.sh"
17229
17230
17231  # We use sed instead of cat because bash on DJGPP gets confused if
17232  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17233  # text mode, it properly converts lines to CR/LF.  This bash problem
17234  # is reportedly fixed, but why not run on old versions too?
17235  sed '$q' "$ltmain" >> "$cfgfile" \
17236     || (rm -f "$cfgfile"; exit 1)
17237
17238  if test x"$xsi_shell" = xyes; then
17239  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17240func_dirname ()\
17241{\
17242\    case ${1} in\
17243\      */*) func_dirname_result="${1%/*}${2}" ;;\
17244\      *  ) func_dirname_result="${3}" ;;\
17245\    esac\
17246} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17247  && mv -f "$cfgfile.tmp" "$cfgfile" \
17248    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17249test 0 -eq $? || _lt_function_replace_fail=:
17250
17251
17252  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17253func_basename ()\
17254{\
17255\    func_basename_result="${1##*/}"\
17256} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17257  && mv -f "$cfgfile.tmp" "$cfgfile" \
17258    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17259test 0 -eq $? || _lt_function_replace_fail=:
17260
17261
17262  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17263func_dirname_and_basename ()\
17264{\
17265\    case ${1} in\
17266\      */*) func_dirname_result="${1%/*}${2}" ;;\
17267\      *  ) func_dirname_result="${3}" ;;\
17268\    esac\
17269\    func_basename_result="${1##*/}"\
17270} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17271  && mv -f "$cfgfile.tmp" "$cfgfile" \
17272    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17273test 0 -eq $? || _lt_function_replace_fail=:
17274
17275
17276  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17277func_stripname ()\
17278{\
17279\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17280\    # positional parameters, so assign one to ordinary parameter first.\
17281\    func_stripname_result=${3}\
17282\    func_stripname_result=${func_stripname_result#"${1}"}\
17283\    func_stripname_result=${func_stripname_result%"${2}"}\
17284} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17285  && mv -f "$cfgfile.tmp" "$cfgfile" \
17286    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17287test 0 -eq $? || _lt_function_replace_fail=:
17288
17289
17290  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17291func_split_long_opt ()\
17292{\
17293\    func_split_long_opt_name=${1%%=*}\
17294\    func_split_long_opt_arg=${1#*=}\
17295} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17296  && mv -f "$cfgfile.tmp" "$cfgfile" \
17297    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17298test 0 -eq $? || _lt_function_replace_fail=:
17299
17300
17301  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17302func_split_short_opt ()\
17303{\
17304\    func_split_short_opt_arg=${1#??}\
17305\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17306} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17307  && mv -f "$cfgfile.tmp" "$cfgfile" \
17308    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17309test 0 -eq $? || _lt_function_replace_fail=:
17310
17311
17312  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17313func_lo2o ()\
17314{\
17315\    case ${1} in\
17316\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17317\      *)    func_lo2o_result=${1} ;;\
17318\    esac\
17319} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17320  && mv -f "$cfgfile.tmp" "$cfgfile" \
17321    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17322test 0 -eq $? || _lt_function_replace_fail=:
17323
17324
17325  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17326func_xform ()\
17327{\
17328    func_xform_result=${1%.*}.lo\
17329} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17330  && mv -f "$cfgfile.tmp" "$cfgfile" \
17331    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17332test 0 -eq $? || _lt_function_replace_fail=:
17333
17334
17335  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17336func_arith ()\
17337{\
17338    func_arith_result=$(( $* ))\
17339} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17340  && mv -f "$cfgfile.tmp" "$cfgfile" \
17341    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17342test 0 -eq $? || _lt_function_replace_fail=:
17343
17344
17345  sed -e '/^func_len ()$/,/^} # func_len /c\
17346func_len ()\
17347{\
17348    func_len_result=${#1}\
17349} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17350  && mv -f "$cfgfile.tmp" "$cfgfile" \
17351    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17352test 0 -eq $? || _lt_function_replace_fail=:
17353
17354fi
17355
17356if test x"$lt_shell_append" = xyes; then
17357  sed -e '/^func_append ()$/,/^} # func_append /c\
17358func_append ()\
17359{\
17360    eval "${1}+=\\${2}"\
17361} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17362  && mv -f "$cfgfile.tmp" "$cfgfile" \
17363    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17364test 0 -eq $? || _lt_function_replace_fail=:
17365
17366
17367  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17368func_append_quoted ()\
17369{\
17370\    func_quote_for_eval "${2}"\
17371\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17372} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17373  && mv -f "$cfgfile.tmp" "$cfgfile" \
17374    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17375test 0 -eq $? || _lt_function_replace_fail=:
17376
17377
17378  # Save a `func_append' function call where possible by direct use of '+='
17379  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17380    && mv -f "$cfgfile.tmp" "$cfgfile" \
17381      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17382  test 0 -eq $? || _lt_function_replace_fail=:
17383else
17384  # Save a `func_append' function call even when '+=' is not available
17385  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17386    && mv -f "$cfgfile.tmp" "$cfgfile" \
17387      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17388  test 0 -eq $? || _lt_function_replace_fail=:
17389fi
17390
17391if test x"$_lt_function_replace_fail" = x":"; then
17392  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17393$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17394fi
17395
17396
17397   mv -f "$cfgfile" "$ofile" ||
17398    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17399  chmod +x "$ofile"
17400
17401 ;;
17402
17403  esac
17404done # for ac_tag
17405
17406
17407as_fn_exit 0
17408_ACEOF
17409ac_clean_files=$ac_clean_files_save
17410
17411test $ac_write_fail = 0 ||
17412  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17413
17414
17415# configure is writing to config.log, and then calls config.status.
17416# config.status does its own redirection, appending to config.log.
17417# Unfortunately, on DOS this fails, as config.log is still kept open
17418# by configure, so config.status won't be able to write to it; its
17419# output is simply discarded.  So we exec the FD to /dev/null,
17420# effectively closing config.log, so it can be properly (re)opened and
17421# appended to by config.status.  When coming back to configure, we
17422# need to make the FD available again.
17423if test "$no_create" != yes; then
17424  ac_cs_success=:
17425  ac_config_status_args=
17426  test "$silent" = yes &&
17427    ac_config_status_args="$ac_config_status_args --quiet"
17428  exec 5>/dev/null
17429  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17430  exec 5>>config.log
17431  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17432  # would make configure fail if this is the last instruction.
17433  $ac_cs_success || as_fn_exit 1
17434fi
17435if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17437$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17438fi
17439
17440