1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="event.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='am__EXEEXT_FALSE
613am__EXEEXT_TRUE
614LTLIBOBJS
615INSTALL_LIBEVENT_FALSE
616INSTALL_LIBEVENT_TRUE
617LIBEVENT_GC_SECTIONS
618OPENSSL_FALSE
619OPENSSL_TRUE
620PTHREADS_FALSE
621PTHREADS_TRUE
622PTHREAD_CFLAGS
623PTHREAD_LIBS
624PTHREAD_CC
625acx_pthread_config
626SIGNAL_SUPPORT_FALSE
627SIGNAL_SUPPORT_TRUE
628EVPORT_BACKEND_FALSE
629EVPORT_BACKEND_TRUE
630EPOLL_BACKEND_FALSE
631EPOLL_BACKEND_TRUE
632LIBOBJS
633KQUEUE_BACKEND_FALSE
634KQUEUE_BACKEND_TRUE
635DEVPOLL_BACKEND_FALSE
636DEVPOLL_BACKEND_TRUE
637POLL_BACKEND_FALSE
638POLL_BACKEND_TRUE
639SELECT_BACKEND_FALSE
640SELECT_BACKEND_TRUE
641BUILD_WITH_NO_UNDEFINED_FALSE
642BUILD_WITH_NO_UNDEFINED_TRUE
643BUILD_CYGWIN_FALSE
644BUILD_CYGWIN_TRUE
645BUILD_WIN32_FALSE
646BUILD_WIN32_TRUE
647OPENSSL_LIBS
648OPENSSL_LIBADD
649EV_LIB_GDI
650EV_LIB_WS32
651ZLIB_REGRESS_FALSE
652ZLIB_REGRESS_TRUE
653ZLIB_LIBS
654BUILD_REGRESS_FALSE
655BUILD_REGRESS_TRUE
656LIBTOOL_DEPS
657OTOOL64
658OTOOL
659LIPO
660NMEDIT
661DSYMUTIL
662MANIFEST_TOOL
663RANLIB
664ac_ct_AR
665AR
666DLLTOOL
667OBJDUMP
668NM
669ac_ct_DUMPBIN
670DUMPBIN
671LD
672FGREP
673LIBTOOL
674EGREP
675GREP
676CPP
677LN_S
678SED
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
682am__nodep
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689OBJEXT
690EXEEXT
691ac_ct_CC
692CPPFLAGS
693LDFLAGS
694CFLAGS
695CC
696host_os
697host_vendor
698host_cpu
699host
700build_os
701build_vendor
702build_cpu
703build
704am__untar
705am__tar
706AMTAR
707am__leading_dot
708SET_MAKE
709AWK
710mkdir_p
711MKDIR_P
712INSTALL_STRIP_PROGRAM
713STRIP
714install_sh
715MAKEINFO
716AUTOHEADER
717AUTOMAKE
718AUTOCONF
719ACLOCAL
720VERSION
721PACKAGE
722CYGPATH_W
723am__isrc
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727target_alias
728host_alias
729build_alias
730LIBS
731ECHO_T
732ECHO_N
733ECHO_C
734DEFS
735mandir
736localedir
737libdir
738psdir
739pdfdir
740dvidir
741htmldir
742infodir
743docdir
744oldincludedir
745includedir
746localstatedir
747sharedstatedir
748sysconfdir
749datadir
750datarootdir
751libexecdir
752sbindir
753bindir
754program_transform_name
755prefix
756exec_prefix
757PACKAGE_URL
758PACKAGE_BUGREPORT
759PACKAGE_STRING
760PACKAGE_VERSION
761PACKAGE_TARNAME
762PACKAGE_NAME
763PATH_SEPARATOR
764SHELL'
765ac_subst_files=''
766ac_user_opts='
767enable_option_checking
768enable_dependency_tracking
769enable_gcc_warnings
770enable_thread_support
771enable_malloc_replacement
772enable_openssl
773enable_debug_mode
774enable_libevent_install
775enable_libevent_regress
776enable_function_sections
777enable_shared
778enable_static
779with_pic
780enable_fast_install
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784'
785      ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793CPP'
794
795
796# Initialize some variables set by options.
797ac_init_help=
798ac_init_version=false
799ac_unrecognized_opts=
800ac_unrecognized_sep=
801# The variables have the same names as the options, with
802# dashes changed to underlines.
803cache_file=/dev/null
804exec_prefix=NONE
805no_create=
806no_recursion=
807prefix=NONE
808program_prefix=NONE
809program_suffix=NONE
810program_transform_name=s,x,x,
811silent=
812site=
813srcdir=
814verbose=
815x_includes=NONE
816x_libraries=NONE
817
818# Installation directory options.
819# These are left unexpanded so users can "make install exec_prefix=/foo"
820# and all the variables that are supposed to be based on exec_prefix
821# by default will actually change.
822# Use braces instead of parens because sh, perl, etc. also accept them.
823# (The list follows the same order as the GNU Coding Standards.)
824bindir='${exec_prefix}/bin'
825sbindir='${exec_prefix}/sbin'
826libexecdir='${exec_prefix}/libexec'
827datarootdir='${prefix}/share'
828datadir='${datarootdir}'
829sysconfdir='${prefix}/etc'
830sharedstatedir='${prefix}/com'
831localstatedir='${prefix}/var'
832includedir='${prefix}/include'
833oldincludedir='/usr/include'
834docdir='${datarootdir}/doc/${PACKAGE}'
835infodir='${datarootdir}/info'
836htmldir='${docdir}'
837dvidir='${docdir}'
838pdfdir='${docdir}'
839psdir='${docdir}'
840libdir='${exec_prefix}/lib'
841localedir='${datarootdir}/locale'
842mandir='${datarootdir}/man'
843
844ac_prev=
845ac_dashdash=
846for ac_option
847do
848  # If the previous option needs an argument, assign it.
849  if test -n "$ac_prev"; then
850    eval $ac_prev=\$ac_option
851    ac_prev=
852    continue
853  fi
854
855  case $ac_option in
856  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857  *=)   ac_optarg= ;;
858  *)    ac_optarg=yes ;;
859  esac
860
861  # Accept the important Cygnus configure options, so we can diagnose typos.
862
863  case $ac_dashdash$ac_option in
864  --)
865    ac_dashdash=yes ;;
866
867  -bindir | --bindir | --bindi | --bind | --bin | --bi)
868    ac_prev=bindir ;;
869  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870    bindir=$ac_optarg ;;
871
872  -build | --build | --buil | --bui | --bu)
873    ac_prev=build_alias ;;
874  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875    build_alias=$ac_optarg ;;
876
877  -cache-file | --cache-file | --cache-fil | --cache-fi \
878  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879    ac_prev=cache_file ;;
880  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882    cache_file=$ac_optarg ;;
883
884  --config-cache | -C)
885    cache_file=config.cache ;;
886
887  -datadir | --datadir | --datadi | --datad)
888    ac_prev=datadir ;;
889  -datadir=* | --datadir=* | --datadi=* | --datad=*)
890    datadir=$ac_optarg ;;
891
892  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893  | --dataroo | --dataro | --datar)
894    ac_prev=datarootdir ;;
895  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897    datarootdir=$ac_optarg ;;
898
899  -disable-* | --disable-*)
900    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901    # Reject names that are not valid shell variable names.
902    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903      as_fn_error $? "invalid feature name: $ac_useropt"
904    ac_useropt_orig=$ac_useropt
905    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906    case $ac_user_opts in
907      *"
908"enable_$ac_useropt"
909"*) ;;
910      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911	 ac_unrecognized_sep=', ';;
912    esac
913    eval enable_$ac_useropt=no ;;
914
915  -docdir | --docdir | --docdi | --doc | --do)
916    ac_prev=docdir ;;
917  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918    docdir=$ac_optarg ;;
919
920  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921    ac_prev=dvidir ;;
922  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923    dvidir=$ac_optarg ;;
924
925  -enable-* | --enable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=\$ac_optarg ;;
940
941  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943  | --exec | --exe | --ex)
944    ac_prev=exec_prefix ;;
945  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947  | --exec=* | --exe=* | --ex=*)
948    exec_prefix=$ac_optarg ;;
949
950  -gas | --gas | --ga | --g)
951    # Obsolete; use --with-gas.
952    with_gas=yes ;;
953
954  -help | --help | --hel | --he | -h)
955    ac_init_help=long ;;
956  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957    ac_init_help=recursive ;;
958  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959    ac_init_help=short ;;
960
961  -host | --host | --hos | --ho)
962    ac_prev=host_alias ;;
963  -host=* | --host=* | --hos=* | --ho=*)
964    host_alias=$ac_optarg ;;
965
966  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967    ac_prev=htmldir ;;
968  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969  | --ht=*)
970    htmldir=$ac_optarg ;;
971
972  -includedir | --includedir | --includedi | --included | --include \
973  | --includ | --inclu | --incl | --inc)
974    ac_prev=includedir ;;
975  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976  | --includ=* | --inclu=* | --incl=* | --inc=*)
977    includedir=$ac_optarg ;;
978
979  -infodir | --infodir | --infodi | --infod | --info | --inf)
980    ac_prev=infodir ;;
981  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982    infodir=$ac_optarg ;;
983
984  -libdir | --libdir | --libdi | --libd)
985    ac_prev=libdir ;;
986  -libdir=* | --libdir=* | --libdi=* | --libd=*)
987    libdir=$ac_optarg ;;
988
989  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990  | --libexe | --libex | --libe)
991    ac_prev=libexecdir ;;
992  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993  | --libexe=* | --libex=* | --libe=*)
994    libexecdir=$ac_optarg ;;
995
996  -localedir | --localedir | --localedi | --localed | --locale)
997    ac_prev=localedir ;;
998  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999    localedir=$ac_optarg ;;
1000
1001  -localstatedir | --localstatedir | --localstatedi | --localstated \
1002  | --localstate | --localstat | --localsta | --localst | --locals)
1003    ac_prev=localstatedir ;;
1004  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006    localstatedir=$ac_optarg ;;
1007
1008  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009    ac_prev=mandir ;;
1010  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011    mandir=$ac_optarg ;;
1012
1013  -nfp | --nfp | --nf)
1014    # Obsolete; use --without-fp.
1015    with_fp=no ;;
1016
1017  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018  | --no-cr | --no-c | -n)
1019    no_create=yes ;;
1020
1021  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023    no_recursion=yes ;;
1024
1025  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027  | --oldin | --oldi | --old | --ol | --o)
1028    ac_prev=oldincludedir ;;
1029  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032    oldincludedir=$ac_optarg ;;
1033
1034  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035    ac_prev=prefix ;;
1036  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037    prefix=$ac_optarg ;;
1038
1039  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040  | --program-pre | --program-pr | --program-p)
1041    ac_prev=program_prefix ;;
1042  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044    program_prefix=$ac_optarg ;;
1045
1046  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047  | --program-suf | --program-su | --program-s)
1048    ac_prev=program_suffix ;;
1049  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051    program_suffix=$ac_optarg ;;
1052
1053  -program-transform-name | --program-transform-name \
1054  | --program-transform-nam | --program-transform-na \
1055  | --program-transform-n | --program-transform- \
1056  | --program-transform | --program-transfor \
1057  | --program-transfo | --program-transf \
1058  | --program-trans | --program-tran \
1059  | --progr-tra | --program-tr | --program-t)
1060    ac_prev=program_transform_name ;;
1061  -program-transform-name=* | --program-transform-name=* \
1062  | --program-transform-nam=* | --program-transform-na=* \
1063  | --program-transform-n=* | --program-transform-=* \
1064  | --program-transform=* | --program-transfor=* \
1065  | --program-transfo=* | --program-transf=* \
1066  | --program-trans=* | --program-tran=* \
1067  | --progr-tra=* | --program-tr=* | --program-t=*)
1068    program_transform_name=$ac_optarg ;;
1069
1070  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071    ac_prev=pdfdir ;;
1072  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073    pdfdir=$ac_optarg ;;
1074
1075  -psdir | --psdir | --psdi | --psd | --ps)
1076    ac_prev=psdir ;;
1077  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078    psdir=$ac_optarg ;;
1079
1080  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081  | -silent | --silent | --silen | --sile | --sil)
1082    silent=yes ;;
1083
1084  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085    ac_prev=sbindir ;;
1086  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087  | --sbi=* | --sb=*)
1088    sbindir=$ac_optarg ;;
1089
1090  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092  | --sharedst | --shareds | --shared | --share | --shar \
1093  | --sha | --sh)
1094    ac_prev=sharedstatedir ;;
1095  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098  | --sha=* | --sh=*)
1099    sharedstatedir=$ac_optarg ;;
1100
1101  -site | --site | --sit)
1102    ac_prev=site ;;
1103  -site=* | --site=* | --sit=*)
1104    site=$ac_optarg ;;
1105
1106  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107    ac_prev=srcdir ;;
1108  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109    srcdir=$ac_optarg ;;
1110
1111  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112  | --syscon | --sysco | --sysc | --sys | --sy)
1113    ac_prev=sysconfdir ;;
1114  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116    sysconfdir=$ac_optarg ;;
1117
1118  -target | --target | --targe | --targ | --tar | --ta | --t)
1119    ac_prev=target_alias ;;
1120  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121    target_alias=$ac_optarg ;;
1122
1123  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124    verbose=yes ;;
1125
1126  -version | --version | --versio | --versi | --vers | -V)
1127    ac_init_version=: ;;
1128
1129  -with-* | --with-*)
1130    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131    # Reject names that are not valid shell variable names.
1132    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133      as_fn_error $? "invalid package name: $ac_useropt"
1134    ac_useropt_orig=$ac_useropt
1135    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136    case $ac_user_opts in
1137      *"
1138"with_$ac_useropt"
1139"*) ;;
1140      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141	 ac_unrecognized_sep=', ';;
1142    esac
1143    eval with_$ac_useropt=\$ac_optarg ;;
1144
1145  -without-* | --without-*)
1146    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149      as_fn_error $? "invalid package name: $ac_useropt"
1150    ac_useropt_orig=$ac_useropt
1151    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152    case $ac_user_opts in
1153      *"
1154"with_$ac_useropt"
1155"*) ;;
1156      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157	 ac_unrecognized_sep=', ';;
1158    esac
1159    eval with_$ac_useropt=no ;;
1160
1161  --x)
1162    # Obsolete; use --with-x.
1163    with_x=yes ;;
1164
1165  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166  | --x-incl | --x-inc | --x-in | --x-i)
1167    ac_prev=x_includes ;;
1168  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170    x_includes=$ac_optarg ;;
1171
1172  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174    ac_prev=x_libraries ;;
1175  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177    x_libraries=$ac_optarg ;;
1178
1179  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180Try \`$0 --help' for more information"
1181    ;;
1182
1183  *=*)
1184    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185    # Reject names that are not valid shell variable names.
1186    case $ac_envvar in #(
1187      '' | [0-9]* | *[!_$as_cr_alnum]* )
1188      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189    esac
1190    eval $ac_envvar=\$ac_optarg
1191    export $ac_envvar ;;
1192
1193  *)
1194    # FIXME: should be removed in autoconf 3.0.
1195    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199    ;;
1200
1201  esac
1202done
1203
1204if test -n "$ac_prev"; then
1205  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206  as_fn_error $? "missing argument to $ac_option"
1207fi
1208
1209if test -n "$ac_unrecognized_opts"; then
1210  case $enable_option_checking in
1211    no) ;;
1212    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214  esac
1215fi
1216
1217# Check all directory arguments for consistency.
1218for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219		datadir sysconfdir sharedstatedir localstatedir includedir \
1220		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221		libdir localedir mandir
1222do
1223  eval ac_val=\$$ac_var
1224  # Remove trailing slashes.
1225  case $ac_val in
1226    */ )
1227      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228      eval $ac_var=\$ac_val;;
1229  esac
1230  # Be sure to have absolute directory names.
1231  case $ac_val in
1232    [\\/$]* | ?:[\\/]* )  continue;;
1233    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234  esac
1235  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236done
1237
1238# There might be people who depend on the old broken behavior: `$host'
1239# used to hold the argument of --host etc.
1240# FIXME: To remove some day.
1241build=$build_alias
1242host=$host_alias
1243target=$target_alias
1244
1245# FIXME: To remove some day.
1246if test "x$host_alias" != x; then
1247  if test "x$build_alias" = x; then
1248    cross_compiling=maybe
1249    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1250    If a cross compiler is detected then cross compile mode will be used" >&2
1251  elif test "x$build_alias" != "x$host_alias"; then
1252    cross_compiling=yes
1253  fi
1254fi
1255
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
1260
1261
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265  as_fn_error $? "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267  as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272  ac_srcdir_defaulted=yes
1273  # Try the directory containing this script, then the parent directory.
1274  ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276	 X"$as_myself" : 'X\(//\)[^/]' \| \
1277	 X"$as_myself" : 'X\(//\)$' \| \
1278	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)[^/].*/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)$/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\).*/{
1293	    s//\1/
1294	    q
1295	  }
1296	  s/.*/./; q'`
1297  srcdir=$ac_confdir
1298  if test ! -r "$srcdir/$ac_unique_file"; then
1299    srcdir=..
1300  fi
1301else
1302  ac_srcdir_defaulted=no
1303fi
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311	pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314  srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_env_${ac_var}_value=\$${ac_var}
1325  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333  # Omit some internal or obsolete options to make the list less imposing.
1334  # This message is too long to be a string in the A/UX 3.1 sh.
1335  cat <<_ACEOF
1336\`configure' configures this package to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346  -h, --help              display this help and exit
1347      --help=short        display options specific to this package
1348      --help=recursive    display the short help of all the included packages
1349  -V, --version           display version information and exit
1350  -q, --quiet, --silent   do not print \`checking ...' messages
1351      --cache-file=FILE   cache test results in FILE [disabled]
1352  -C, --config-cache      alias for \`--cache-file=config.cache'
1353  -n, --no-create         do not create output files
1354      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357  --prefix=PREFIX         install architecture-independent files in PREFIX
1358                          [$ac_default_prefix]
1359  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                          [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370  --bindir=DIR            user executables [EPREFIX/bin]
1371  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372  --libexecdir=DIR        program executables [EPREFIX/libexec]
1373  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376  --libdir=DIR            object code libraries [EPREFIX/lib]
1377  --includedir=DIR        C header files [PREFIX/include]
1378  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR           info documentation [DATAROOTDIR/info]
1382  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR            man documentation [DATAROOTDIR/man]
1384  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393Program names:
1394  --program-prefix=PREFIX            prepend PREFIX to installed program names
1395  --program-suffix=SUFFIX            append SUFFIX to installed program names
1396  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398System types:
1399  --build=BUILD     configure for building on BUILD [guessed]
1400  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405
1406  cat <<\_ACEOF
1407
1408Optional Features:
1409  --disable-option-checking  ignore unrecognized --enable/--with options
1410  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1411  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1412  --disable-dependency-tracking  speeds up one-time build
1413  --enable-dependency-tracking   do not reject slow dependency extractors
1414  --enable-gcc-warnings   enable verbose warnings with GCC
1415  --disable-thread-support
1416                          disable support for threading
1417  --disable-malloc-replacement
1418                          disable support for replacing the memory mgt
1419                          functions
1420  --disable-openssl       disable support for openssl encryption
1421  --disable-debug-mode    disable support for running in debug mode
1422  --disable-libevent-install, disable installation of libevent
1423
1424  --disable-libevent-regress, skip regress in make check
1425
1426  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1427
1428  --enable-shared[=PKGS]  build shared libraries [default=yes]
1429  --enable-static[=PKGS]  build static libraries [default=yes]
1430  --enable-fast-install[=PKGS]
1431                          optimize for fast installation [default=yes]
1432  --disable-libtool-lock  avoid locking (might break parallel builds)
1433
1434Optional Packages:
1435  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437  --with-pic              try to use only PIC/non-PIC objects [default=use
1438                          both]
1439  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1440  --with-sysroot=DIR Search for dependent libraries within DIR
1441                        (or the compiler's sysroot if not specified).
1442
1443Some influential environment variables:
1444  CC          C compiler command
1445  CFLAGS      C compiler flags
1446  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447              nonstandard directory <lib dir>
1448  LIBS        libraries to pass to the linker, e.g. -l<library>
1449  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450              you have headers in a nonstandard directory <include dir>
1451  CPP         C preprocessor
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
1456Report bugs to the package provider.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for guested configure.
1503    if test -f "$ac_srcdir/configure.gnu"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506    elif test -f "$ac_srcdir/configure"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure" --help=recursive
1509    else
1510      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511    fi || ac_status=$?
1512    cd "$ac_pwd" || { ac_status=$?; break; }
1513  done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518  cat <<\_ACEOF
1519configure
1520generated by GNU Autoconf 2.68
1521
1522Copyright (C) 2010 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext
1540  if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_compile") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest.$ac_objext; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_cpp LINENO
1572# ----------------------
1573# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_cpp ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  if { { ac_try="$ac_cpp conftest.$ac_ext"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } > conftest.i && {
1593	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       }; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601    ac_retval=1
1602fi
1603  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604  as_fn_set_status $ac_retval
1605
1606} # ac_fn_c_try_cpp
1607
1608# ac_fn_c_try_link LINENO
1609# -----------------------
1610# Try to link conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_link ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext conftest$ac_exeext
1615  if { { ac_try="$ac_link"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622  (eval "$ac_link") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest$ac_exeext && {
1634	 test "$cross_compiling" = yes ||
1635	 $as_test_x conftest$ac_exeext
1636       }; then :
1637  ac_retval=0
1638else
1639  $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642	ac_retval=1
1643fi
1644  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646  # interfere with the next link command; also delete a directory that is
1647  # left behind by Apple's compiler.  We do this before executing the actions.
1648  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_link
1653
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists and can be compiled using the include files in
1657# INCLUDES, setting the cache variable VAR accordingly.
1658ac_fn_c_check_header_compile ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval \${$3+:} false; then :
1664  $as_echo_n "(cached) " >&6
1665else
1666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h.  */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672  eval "$3=yes"
1673else
1674  eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_header_compile
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703  { { case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_try") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; }; }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: program exited with status $ac_status" >&5
1716       $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719       ac_retval=$ac_status
1720fi
1721  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745    which can conflict with char $2 (); below.
1746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747    <limits.h> exists even on freestanding compilers.  */
1748
1749#ifdef __STDC__
1750# include <limits.h>
1751#else
1752# include <assert.h>
1753#endif
1754
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758   Use char because int might match the return type of a GCC
1759   builtin and then its argument prototype would still apply.  */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765    to always fail with ENOSYS.  Some functions are actually named
1766    something starting with __ and the normal name is an alias.  */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main ()
1773{
1774return $2 ();
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  if eval \${$3+:} false; then :
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812  # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821  ac_header_compiler=yes
1822else
1823  ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837  ac_header_preproc=yes
1838else
1839  ac_header_preproc=no
1840fi
1841rm -f conftest.err conftest.i conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So?  What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847  yes:no: )
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852    ;;
1853  no:yes:* )
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864    ;;
1865esac
1866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval \${$3+:} false; then :
1869  $as_echo_n "(cached) " >&6
1870else
1871  eval "$3=\$ac_header_compiler"
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876fi
1877  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879} # ac_fn_c_check_header_mongrel
1880
1881# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1882# ---------------------------------------------
1883# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1884# accordingly.
1885ac_fn_c_check_decl ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  as_decl_name=`echo $2|sed 's/ *(.*//'`
1889  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1891$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1892if eval \${$3+:} false; then :
1893  $as_echo_n "(cached) " >&6
1894else
1895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h.  */
1897$4
1898int
1899main ()
1900{
1901#ifndef $as_decl_name
1902#ifdef __cplusplus
1903  (void) $as_decl_use;
1904#else
1905  (void) $as_decl_name;
1906#endif
1907#endif
1908
1909  ;
1910  return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925} # ac_fn_c_check_decl
1926
1927# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1928# --------------------------------------------
1929# Tries to find the compile-time value of EXPR in a program that includes
1930# INCLUDES, setting VAR accordingly. Returns whether the value could be
1931# computed
1932ac_fn_c_compute_int ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  if test "$cross_compiling" = yes; then
1936    # Depending upon the size, compute the lo and hi bounds.
1937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940int
1941main ()
1942{
1943static int test_array [1 - 2 * !(($2) >= 0)];
1944test_array [0] = 0
1945
1946  ;
1947  return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951  ac_lo=0 ac_mid=0
1952  while :; do
1953    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h.  */
1955$4
1956int
1957main ()
1958{
1959static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1960test_array [0] = 0
1961
1962  ;
1963  return 0;
1964}
1965_ACEOF
1966if ac_fn_c_try_compile "$LINENO"; then :
1967  ac_hi=$ac_mid; break
1968else
1969  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1970			if test $ac_lo -le $ac_mid; then
1971			  ac_lo= ac_hi=
1972			  break
1973			fi
1974			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977  done
1978else
1979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h.  */
1981$4
1982int
1983main ()
1984{
1985static int test_array [1 - 2 * !(($2) < 0)];
1986test_array [0] = 0
1987
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  ac_hi=-1 ac_mid=-1
1994  while :; do
1995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h.  */
1997$4
1998int
1999main ()
2000{
2001static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2002test_array [0] = 0
2003
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009  ac_lo=$ac_mid; break
2010else
2011  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2012			if test $ac_mid -le $ac_hi; then
2013			  ac_lo= ac_hi=
2014			  break
2015			fi
2016			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019  done
2020else
2021  ac_lo= ac_hi=
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026# Binary search between lo and hi bounds.
2027while test "x$ac_lo" != "x$ac_hi"; do
2028  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$4
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2036test_array [0] = 0
2037
2038  ;
2039  return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043  ac_hi=$ac_mid
2044else
2045  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048done
2049case $ac_lo in #((
2050?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2051'') ac_retval=1 ;;
2052esac
2053  else
2054    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h.  */
2056$4
2057static long int longval () { return $2; }
2058static unsigned long int ulongval () { return $2; }
2059#include <stdio.h>
2060#include <stdlib.h>
2061int
2062main ()
2063{
2064
2065  FILE *f = fopen ("conftest.val", "w");
2066  if (! f)
2067    return 1;
2068  if (($2) < 0)
2069    {
2070      long int i = longval ();
2071      if (i != ($2))
2072	return 1;
2073      fprintf (f, "%ld", i);
2074    }
2075  else
2076    {
2077      unsigned long int i = ulongval ();
2078      if (i != ($2))
2079	return 1;
2080      fprintf (f, "%lu", i);
2081    }
2082  /* Do not output a trailing newline, as this causes \r\n confusion
2083     on some platforms.  */
2084  return ferror (f) || fclose (f) != 0;
2085
2086  ;
2087  return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_run "$LINENO"; then :
2091  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2092else
2093  ac_retval=1
2094fi
2095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2096  conftest.$ac_objext conftest.beam conftest.$ac_ext
2097rm -f conftest.val
2098
2099  fi
2100  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101  as_fn_set_status $ac_retval
2102
2103} # ac_fn_c_compute_int
2104
2105# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2106# -------------------------------------------
2107# Tests whether TYPE exists after having included INCLUDES, setting cache
2108# variable VAR accordingly.
2109ac_fn_c_check_type ()
2110{
2111  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113$as_echo_n "checking for $2... " >&6; }
2114if eval \${$3+:} false; then :
2115  $as_echo_n "(cached) " >&6
2116else
2117  eval "$3=no"
2118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h.  */
2120$4
2121int
2122main ()
2123{
2124if (sizeof ($2))
2125	 return 0;
2126  ;
2127  return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_compile "$LINENO"; then :
2131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h.  */
2133$4
2134int
2135main ()
2136{
2137if (sizeof (($2)))
2138	    return 0;
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144
2145else
2146  eval "$3=yes"
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152eval ac_res=\$$3
2153	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154$as_echo "$ac_res" >&6; }
2155  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156
2157} # ac_fn_c_check_type
2158
2159# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2160# ----------------------------------------------------
2161# Tries to find if the field MEMBER exists in type AGGR, after including
2162# INCLUDES, setting cache variable VAR accordingly.
2163ac_fn_c_check_member ()
2164{
2165  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2167$as_echo_n "checking for $2.$3... " >&6; }
2168if eval \${$4+:} false; then :
2169  $as_echo_n "(cached) " >&6
2170else
2171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h.  */
2173$5
2174int
2175main ()
2176{
2177static $2 ac_aggr;
2178if (ac_aggr.$3)
2179return 0;
2180  ;
2181  return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185  eval "$4=yes"
2186else
2187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h.  */
2189$5
2190int
2191main ()
2192{
2193static $2 ac_aggr;
2194if (sizeof ac_aggr.$3)
2195return 0;
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
2201  eval "$4=yes"
2202else
2203  eval "$4=no"
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209eval ac_res=\$$4
2210	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214} # ac_fn_c_check_member
2215cat >config.log <<_ACEOF
2216This file contains any messages produced by compilers while
2217running configure, to aid debugging if configure makes a mistake.
2218
2219It was created by $as_me, which was
2220generated by GNU Autoconf 2.68.  Invocation command line was
2221
2222  $ $0 $@
2223
2224_ACEOF
2225exec 5>>config.log
2226{
2227cat <<_ASUNAME
2228## --------- ##
2229## Platform. ##
2230## --------- ##
2231
2232hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236uname -v = `(uname -v) 2>/dev/null || echo unknown`
2237
2238/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2240
2241/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2242/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2243/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2245/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2246/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2247/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2248
2249_ASUNAME
2250
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254  IFS=$as_save_IFS
2255  test -z "$as_dir" && as_dir=.
2256    $as_echo "PATH: $as_dir"
2257  done
2258IFS=$as_save_IFS
2259
2260} >&5
2261
2262cat >&5 <<_ACEOF
2263
2264
2265## ----------- ##
2266## Core tests. ##
2267## ----------- ##
2268
2269_ACEOF
2270
2271
2272# Keep a trace of the command line.
2273# Strip out --no-create and --no-recursion so they do not pile up.
2274# Strip out --silent because we don't want to record it for future runs.
2275# Also quote any args containing shell meta-characters.
2276# Make two passes to allow for proper duplicate-argument suppression.
2277ac_configure_args=
2278ac_configure_args0=
2279ac_configure_args1=
2280ac_must_keep_next=false
2281for ac_pass in 1 2
2282do
2283  for ac_arg
2284  do
2285    case $ac_arg in
2286    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2287    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2288    | -silent | --silent | --silen | --sile | --sil)
2289      continue ;;
2290    *\'*)
2291      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292    esac
2293    case $ac_pass in
2294    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2295    2)
2296      as_fn_append ac_configure_args1 " '$ac_arg'"
2297      if test $ac_must_keep_next = true; then
2298	ac_must_keep_next=false # Got value, back to normal.
2299      else
2300	case $ac_arg in
2301	  *=* | --config-cache | -C | -disable-* | --disable-* \
2302	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2303	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2304	  | -with-* | --with-* | -without-* | --without-* | --x)
2305	    case "$ac_configure_args0 " in
2306	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307	    esac
2308	    ;;
2309	  -* ) ac_must_keep_next=true ;;
2310	esac
2311      fi
2312      as_fn_append ac_configure_args " '$ac_arg'"
2313      ;;
2314    esac
2315  done
2316done
2317{ ac_configure_args0=; unset ac_configure_args0;}
2318{ ac_configure_args1=; unset ac_configure_args1;}
2319
2320# When interrupted or exit'd, cleanup temporary files, and complete
2321# config.log.  We remove comments because anyway the quotes in there
2322# would cause problems or look ugly.
2323# WARNING: Use '\'' to represent an apostrophe within the trap.
2324# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2325trap 'exit_status=$?
2326  # Save into config.log some information that might help in debugging.
2327  {
2328    echo
2329
2330    $as_echo "## ---------------- ##
2331## Cache variables. ##
2332## ---------------- ##"
2333    echo
2334    # The following way of writing the cache mishandles newlines in values,
2335(
2336  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2337    eval ac_val=\$$ac_var
2338    case $ac_val in #(
2339    *${as_nl}*)
2340      case $ac_var in #(
2341      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2342$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2343      esac
2344      case $ac_var in #(
2345      _ | IFS | as_nl) ;; #(
2346      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2347      *) { eval $ac_var=; unset $ac_var;} ;;
2348      esac ;;
2349    esac
2350  done
2351  (set) 2>&1 |
2352    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2353    *${as_nl}ac_space=\ *)
2354      sed -n \
2355	"s/'\''/'\''\\\\'\'''\''/g;
2356	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2357      ;; #(
2358    *)
2359      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2360      ;;
2361    esac |
2362    sort
2363)
2364    echo
2365
2366    $as_echo "## ----------------- ##
2367## Output variables. ##
2368## ----------------- ##"
2369    echo
2370    for ac_var in $ac_subst_vars
2371    do
2372      eval ac_val=\$$ac_var
2373      case $ac_val in
2374      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375      esac
2376      $as_echo "$ac_var='\''$ac_val'\''"
2377    done | sort
2378    echo
2379
2380    if test -n "$ac_subst_files"; then
2381      $as_echo "## ------------------- ##
2382## File substitutions. ##
2383## ------------------- ##"
2384      echo
2385      for ac_var in $ac_subst_files
2386      do
2387	eval ac_val=\$$ac_var
2388	case $ac_val in
2389	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390	esac
2391	$as_echo "$ac_var='\''$ac_val'\''"
2392      done | sort
2393      echo
2394    fi
2395
2396    if test -s confdefs.h; then
2397      $as_echo "## ----------- ##
2398## confdefs.h. ##
2399## ----------- ##"
2400      echo
2401      cat confdefs.h
2402      echo
2403    fi
2404    test "$ac_signal" != 0 &&
2405      $as_echo "$as_me: caught signal $ac_signal"
2406    $as_echo "$as_me: exit $exit_status"
2407  } >&5
2408  rm -f core *.core core.conftest.* &&
2409    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2410    exit $exit_status
2411' 0
2412for ac_signal in 1 2 13 15; do
2413  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2414done
2415ac_signal=0
2416
2417# confdefs.h avoids OS command line length limits that DEFS can exceed.
2418rm -f -r conftest* confdefs.h
2419
2420$as_echo "/* confdefs.h */" > confdefs.h
2421
2422# Predefined preprocessor variables.
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_NAME "$PACKAGE_NAME"
2426_ACEOF
2427
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2430_ACEOF
2431
2432cat >>confdefs.h <<_ACEOF
2433#define PACKAGE_VERSION "$PACKAGE_VERSION"
2434_ACEOF
2435
2436cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_STRING "$PACKAGE_STRING"
2438_ACEOF
2439
2440cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2442_ACEOF
2443
2444cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_URL "$PACKAGE_URL"
2446_ACEOF
2447
2448
2449# Let the site file select an alternate cache file if it wants to.
2450# Prefer an explicitly selected file to automatically selected ones.
2451ac_site_file1=NONE
2452ac_site_file2=NONE
2453if test -n "$CONFIG_SITE"; then
2454  # We do not want a PATH search for config.site.
2455  case $CONFIG_SITE in #((
2456    -*)  ac_site_file1=./$CONFIG_SITE;;
2457    */*) ac_site_file1=$CONFIG_SITE;;
2458    *)   ac_site_file1=./$CONFIG_SITE;;
2459  esac
2460elif test "x$prefix" != xNONE; then
2461  ac_site_file1=$prefix/share/config.site
2462  ac_site_file2=$prefix/etc/config.site
2463else
2464  ac_site_file1=$ac_default_prefix/share/config.site
2465  ac_site_file2=$ac_default_prefix/etc/config.site
2466fi
2467for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2468do
2469  test "x$ac_site_file" = xNONE && continue
2470  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2471    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2472$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2473    sed 's/^/| /' "$ac_site_file" >&5
2474    . "$ac_site_file" \
2475      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477as_fn_error $? "failed to load site script $ac_site_file
2478See \`config.log' for more details" "$LINENO" 5; }
2479  fi
2480done
2481
2482if test -r "$cache_file"; then
2483  # Some versions of bash will fail to source /dev/null (special files
2484  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2485  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2486    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2487$as_echo "$as_me: loading cache $cache_file" >&6;}
2488    case $cache_file in
2489      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2490      *)                      . "./$cache_file";;
2491    esac
2492  fi
2493else
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2495$as_echo "$as_me: creating cache $cache_file" >&6;}
2496  >$cache_file
2497fi
2498
2499# Check that the precious variables saved in the cache have kept the same
2500# value.
2501ac_cache_corrupted=false
2502for ac_var in $ac_precious_vars; do
2503  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504  eval ac_new_set=\$ac_env_${ac_var}_set
2505  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506  eval ac_new_val=\$ac_env_${ac_var}_value
2507  case $ac_old_set,$ac_new_set in
2508    set,)
2509      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2510$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2511      ac_cache_corrupted=: ;;
2512    ,set)
2513      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2514$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2515      ac_cache_corrupted=: ;;
2516    ,);;
2517    *)
2518      if test "x$ac_old_val" != "x$ac_new_val"; then
2519	# differences in whitespace do not lead to failure.
2520	ac_old_val_w=`echo x $ac_old_val`
2521	ac_new_val_w=`echo x $ac_new_val`
2522	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2524$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2525	  ac_cache_corrupted=:
2526	else
2527	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2528$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2529	  eval $ac_var=\$ac_old_val
2530	fi
2531	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2532$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2533	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2534$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2535      fi;;
2536  esac
2537  # Pass precious variables to config.status.
2538  if test "$ac_new_set" = set; then
2539    case $ac_new_val in
2540    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2541    *) ac_arg=$ac_var=$ac_new_val ;;
2542    esac
2543    case " $ac_configure_args " in
2544      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2545      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2546    esac
2547  fi
2548done
2549if $ac_cache_corrupted; then
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2554  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2555fi
2556## -------------------- ##
2557## Main body of script. ##
2558## -------------------- ##
2559
2560ac_ext=c
2561ac_cpp='$CPP $CPPFLAGS'
2562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565
2566
2567
2568
2569
2570am__api_version='1.11'
2571
2572ac_aux_dir=
2573for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2574  if test -f "$ac_dir/install-sh"; then
2575    ac_aux_dir=$ac_dir
2576    ac_install_sh="$ac_aux_dir/install-sh -c"
2577    break
2578  elif test -f "$ac_dir/install.sh"; then
2579    ac_aux_dir=$ac_dir
2580    ac_install_sh="$ac_aux_dir/install.sh -c"
2581    break
2582  elif test -f "$ac_dir/shtool"; then
2583    ac_aux_dir=$ac_dir
2584    ac_install_sh="$ac_aux_dir/shtool install -c"
2585    break
2586  fi
2587done
2588if test -z "$ac_aux_dir"; then
2589  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2590fi
2591
2592# These three variables are undocumented and unsupported,
2593# and are intended to be withdrawn in a future Autoconf release.
2594# They can cause serious problems if a builder's source tree is in a directory
2595# whose full name contains unusual characters.
2596ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2597ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2598ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2599
2600
2601# Find a good install program.  We prefer a C program (faster),
2602# so one script is as good as another.  But avoid the broken or
2603# incompatible versions:
2604# SysV /etc/install, /usr/sbin/install
2605# SunOS /usr/etc/install
2606# IRIX /sbin/install
2607# AIX /bin/install
2608# AmigaOS /C/install, which installs bootblocks on floppy discs
2609# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2610# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2611# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2612# OS/2's system install, which has a completely different semantic
2613# ./install, which can be erroneously created by make from ./install.sh.
2614# Reject install programs that cannot install multiple files.
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2616$as_echo_n "checking for a BSD-compatible install... " >&6; }
2617if test -z "$INSTALL"; then
2618if ${ac_cv_path_install+:} false; then :
2619  $as_echo_n "(cached) " >&6
2620else
2621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626    # Account for people who put trailing slashes in PATH elements.
2627case $as_dir/ in #((
2628  ./ | .// | /[cC]/* | \
2629  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2630  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2631  /usr/ucb/* ) ;;
2632  *)
2633    # OSF1 and SCO ODT 3.0 have their own names for install.
2634    # Don't use installbsd from OSF since it installs stuff as root
2635    # by default.
2636    for ac_prog in ginstall scoinst install; do
2637      for ac_exec_ext in '' $ac_executable_extensions; do
2638	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2639	  if test $ac_prog = install &&
2640	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641	    # AIX install.  It has an incompatible calling convention.
2642	    :
2643	  elif test $ac_prog = install &&
2644	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645	    # program-specific install script used by HP pwplus--don't use.
2646	    :
2647	  else
2648	    rm -rf conftest.one conftest.two conftest.dir
2649	    echo one > conftest.one
2650	    echo two > conftest.two
2651	    mkdir conftest.dir
2652	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2653	      test -s conftest.one && test -s conftest.two &&
2654	      test -s conftest.dir/conftest.one &&
2655	      test -s conftest.dir/conftest.two
2656	    then
2657	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2658	      break 3
2659	    fi
2660	  fi
2661	fi
2662      done
2663    done
2664    ;;
2665esac
2666
2667  done
2668IFS=$as_save_IFS
2669
2670rm -rf conftest.one conftest.two conftest.dir
2671
2672fi
2673  if test "${ac_cv_path_install+set}" = set; then
2674    INSTALL=$ac_cv_path_install
2675  else
2676    # As a last resort, use the slow shell script.  Don't cache a
2677    # value for INSTALL within a source directory, because that will
2678    # break other packages using the cache if that directory is
2679    # removed, or if the value is a relative name.
2680    INSTALL=$ac_install_sh
2681  fi
2682fi
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2684$as_echo "$INSTALL" >&6; }
2685
2686# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687# It thinks the first close brace ends the variable substitution.
2688test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2689
2690test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2691
2692test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2693
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2695$as_echo_n "checking whether build environment is sane... " >&6; }
2696# Just in case
2697sleep 1
2698echo timestamp > conftest.file
2699# Reject unsafe characters in $srcdir or the absolute working directory
2700# name.  Accept space and tab only in the latter.
2701am_lf='
2702'
2703case `pwd` in
2704  *[\\\"\#\$\&\'\`$am_lf]*)
2705    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2706esac
2707case $srcdir in
2708  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2709    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2710esac
2711
2712# Do `set' in a subshell so we don't clobber the current shell's
2713# arguments.  Must try -L first in case configure is actually a
2714# symlink; some systems play weird games with the mod time of symlinks
2715# (eg FreeBSD returns the mod time of the symlink's containing
2716# directory).
2717if (
2718   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2719   if test "$*" = "X"; then
2720      # -L didn't work.
2721      set X `ls -t "$srcdir/configure" conftest.file`
2722   fi
2723   rm -f conftest.file
2724   if test "$*" != "X $srcdir/configure conftest.file" \
2725      && test "$*" != "X conftest.file $srcdir/configure"; then
2726
2727      # If neither matched, then we have a broken ls.  This can happen
2728      # if, for instance, CONFIG_SHELL is bash and it inherits a
2729      # broken ls alias from the environment.  This has actually
2730      # happened.  Such a system could not be considered "sane".
2731      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2732alias in your environment" "$LINENO" 5
2733   fi
2734
2735   test "$2" = conftest.file
2736   )
2737then
2738   # Ok.
2739   :
2740else
2741   as_fn_error $? "newly created file is older than distributed files!
2742Check your system clock" "$LINENO" 5
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745$as_echo "yes" >&6; }
2746test "$program_prefix" != NONE &&
2747  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2748# Use a double $ so make ignores it.
2749test "$program_suffix" != NONE &&
2750  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2751# Double any \ or $.
2752# By default was `s,x,x', remove it if useless.
2753ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2754program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2755
2756# expand $ac_aux_dir to an absolute path
2757am_aux_dir=`cd $ac_aux_dir && pwd`
2758
2759if test x"${MISSING+set}" != xset; then
2760  case $am_aux_dir in
2761  *\ * | *\	*)
2762    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2763  *)
2764    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2765  esac
2766fi
2767# Use eval to expand $SHELL
2768if eval "$MISSING --run true"; then
2769  am_missing_run="$MISSING --run "
2770else
2771  am_missing_run=
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2773$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2774fi
2775
2776if test x"${install_sh}" != xset; then
2777  case $am_aux_dir in
2778  *\ * | *\	*)
2779    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2780  *)
2781    install_sh="\${SHELL} $am_aux_dir/install-sh"
2782  esac
2783fi
2784
2785# Installed binaries are usually stripped using `strip' when the user
2786# run `make install-strip'.  However `strip' might not be the right
2787# tool to use in cross-compilation environments, therefore Automake
2788# will honor the `STRIP' environment variable to overrule this program.
2789if test "$cross_compiling" != no; then
2790  if test -n "$ac_tool_prefix"; then
2791  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2792set dummy ${ac_tool_prefix}strip; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if ${ac_cv_prog_STRIP+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$STRIP"; then
2799  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818STRIP=$ac_cv_prog_STRIP
2819if test -n "$STRIP"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2821$as_echo "$STRIP" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828fi
2829if test -z "$ac_cv_prog_STRIP"; then
2830  ac_ct_STRIP=$STRIP
2831  # Extract the first word of "strip", so it can be a program name with args.
2832set dummy strip; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$ac_ct_STRIP"; then
2839  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848    ac_cv_prog_ac_ct_STRIP="strip"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2859if test -n "$ac_ct_STRIP"; then
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2861$as_echo "$ac_ct_STRIP" >&6; }
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867  if test "x$ac_ct_STRIP" = x; then
2868    STRIP=":"
2869  else
2870    case $cross_compiling:$ac_tool_warned in
2871yes:)
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874ac_tool_warned=yes ;;
2875esac
2876    STRIP=$ac_ct_STRIP
2877  fi
2878else
2879  STRIP="$ac_cv_prog_STRIP"
2880fi
2881
2882fi
2883INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2884
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2886$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2887if test -z "$MKDIR_P"; then
2888  if ${ac_cv_path_mkdir+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2893do
2894  IFS=$as_save_IFS
2895  test -z "$as_dir" && as_dir=.
2896    for ac_prog in mkdir gmkdir; do
2897	 for ac_exec_ext in '' $ac_executable_extensions; do
2898	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2899	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2900	     'mkdir (GNU coreutils) '* | \
2901	     'mkdir (coreutils) '* | \
2902	     'mkdir (fileutils) '4.1*)
2903	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2904	       break 3;;
2905	   esac
2906	 done
2907       done
2908  done
2909IFS=$as_save_IFS
2910
2911fi
2912
2913  test -d ./--version && rmdir ./--version
2914  if test "${ac_cv_path_mkdir+set}" = set; then
2915    MKDIR_P="$ac_cv_path_mkdir -p"
2916  else
2917    # As a last resort, use the slow shell script.  Don't cache a
2918    # value for MKDIR_P within a source directory, because that will
2919    # break other packages using the cache if that directory is
2920    # removed, or if the value is a relative name.
2921    MKDIR_P="$ac_install_sh -d"
2922  fi
2923fi
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2925$as_echo "$MKDIR_P" >&6; }
2926
2927mkdir_p="$MKDIR_P"
2928case $mkdir_p in
2929  [\\/$]* | ?:[\\/]*) ;;
2930  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2931esac
2932
2933for ac_prog in gawk mawk nawk awk
2934do
2935  # Extract the first word of "$ac_prog", so it can be a program name with args.
2936set dummy $ac_prog; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_AWK+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$AWK"; then
2943  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952    ac_cv_prog_AWK="$ac_prog"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962AWK=$ac_cv_prog_AWK
2963if test -n "$AWK"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2965$as_echo "$AWK" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972  test -n "$AWK" && break
2973done
2974
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2976$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2977set x ${MAKE-make}
2978ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2979if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  cat >conftest.make <<\_ACEOF
2983SHELL = /bin/sh
2984all:
2985	@echo '@@@%%%=$(MAKE)=@@@%%%'
2986_ACEOF
2987# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2988case `${MAKE-make} -f conftest.make 2>/dev/null` in
2989  *@@@%%%=?*=@@@%%%*)
2990    eval ac_cv_prog_make_${ac_make}_set=yes;;
2991  *)
2992    eval ac_cv_prog_make_${ac_make}_set=no;;
2993esac
2994rm -f conftest.make
2995fi
2996if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998$as_echo "yes" >&6; }
2999  SET_MAKE=
3000else
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003  SET_MAKE="MAKE=${MAKE-make}"
3004fi
3005
3006rm -rf .tst 2>/dev/null
3007mkdir .tst 2>/dev/null
3008if test -d .tst; then
3009  am__leading_dot=.
3010else
3011  am__leading_dot=_
3012fi
3013rmdir .tst 2>/dev/null
3014
3015if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017  # is not polluted with repeated "-I."
3018  am__isrc=' -I$(srcdir)'
3019  # test to see if srcdir already configured
3020  if test -f $srcdir/config.status; then
3021    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3022  fi
3023fi
3024
3025# test whether we have cygpath
3026if test -z "$CYGPATH_W"; then
3027  if (cygpath --version) >/dev/null 2>/dev/null; then
3028    CYGPATH_W='cygpath -w'
3029  else
3030    CYGPATH_W=echo
3031  fi
3032fi
3033
3034
3035# Define the identity of the package.
3036 PACKAGE=libevent
3037 VERSION=2.0.20-stable
3038
3039
3040cat >>confdefs.h <<_ACEOF
3041#define PACKAGE "$PACKAGE"
3042_ACEOF
3043
3044
3045cat >>confdefs.h <<_ACEOF
3046#define VERSION "$VERSION"
3047_ACEOF
3048
3049# Some tools Automake needs.
3050
3051ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052
3053
3054AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055
3056
3057AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058
3059
3060AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061
3062
3063MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064
3065# We need awk for the "check" target.  The system "awk" is bad on
3066# some platforms.
3067# Always define AMTAR for backward compatibility.  Yes, it's still used
3068# in the wild :-(  We should find a proper way to deprecate it ...
3069AMTAR='$${TAR-tar}'
3070
3071am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3072
3073
3074
3075
3076
3077ac_config_headers="$ac_config_headers config.h"
3078
3079
3080$as_echo "#define NUMERIC_VERSION 0x02001400" >>confdefs.h
3081
3082
3083if test "$prefix" = "NONE"; then
3084   prefix="/usr/local"
3085fi
3086
3087# Make sure we can run config.sub.
3088$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3089  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3090
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3092$as_echo_n "checking build system type... " >&6; }
3093if ${ac_cv_build+:} false; then :
3094  $as_echo_n "(cached) " >&6
3095else
3096  ac_build_alias=$build_alias
3097test "x$ac_build_alias" = x &&
3098  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3099test "x$ac_build_alias" = x &&
3100  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3101ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3102  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3103
3104fi
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3106$as_echo "$ac_cv_build" >&6; }
3107case $ac_cv_build in
3108*-*-*) ;;
3109*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3110esac
3111build=$ac_cv_build
3112ac_save_IFS=$IFS; IFS='-'
3113set x $ac_cv_build
3114shift
3115build_cpu=$1
3116build_vendor=$2
3117shift; shift
3118# Remember, the first character of IFS is used to create $*,
3119# except with old shells:
3120build_os=$*
3121IFS=$ac_save_IFS
3122case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3123
3124
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3126$as_echo_n "checking host system type... " >&6; }
3127if ${ac_cv_host+:} false; then :
3128  $as_echo_n "(cached) " >&6
3129else
3130  if test "x$host_alias" = x; then
3131  ac_cv_host=$ac_cv_build
3132else
3133  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3134    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3135fi
3136
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3139$as_echo "$ac_cv_host" >&6; }
3140case $ac_cv_host in
3141*-*-*) ;;
3142*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3143esac
3144host=$ac_cv_host
3145ac_save_IFS=$IFS; IFS='-'
3146set x $ac_cv_host
3147shift
3148host_cpu=$1
3149host_vendor=$2
3150shift; shift
3151# Remember, the first character of IFS is used to create $*,
3152# except with old shells:
3153host_os=$*
3154IFS=$ac_save_IFS
3155case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3156
3157
3158
3159case "$host_os" in
3160
3161 osf5*)
3162    CFLAGS="$CFLAGS -D_OSF_SOURCE"
3163    ;;
3164esac
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171if test -n "$ac_tool_prefix"; then
3172  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3173set dummy ${ac_tool_prefix}gcc; ac_word=$2
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175$as_echo_n "checking for $ac_word... " >&6; }
3176if ${ac_cv_prog_CC+:} false; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  if test -n "$CC"; then
3180  ac_cv_prog_CC="$CC" # Let the user override the test.
3181else
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185  IFS=$as_save_IFS
3186  test -z "$as_dir" && as_dir=.
3187    for ac_exec_ext in '' $ac_executable_extensions; do
3188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191    break 2
3192  fi
3193done
3194  done
3195IFS=$as_save_IFS
3196
3197fi
3198fi
3199CC=$ac_cv_prog_CC
3200if test -n "$CC"; then
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202$as_echo "$CC" >&6; }
3203else
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205$as_echo "no" >&6; }
3206fi
3207
3208
3209fi
3210if test -z "$ac_cv_prog_CC"; then
3211  ac_ct_CC=$CC
3212  # Extract the first word of "gcc", so it can be a program name with args.
3213set dummy gcc; ac_word=$2
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215$as_echo_n "checking for $ac_word... " >&6; }
3216if ${ac_cv_prog_ac_ct_CC+:} false; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  if test -n "$ac_ct_CC"; then
3220  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229    ac_cv_prog_ac_ct_CC="gcc"
3230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234  done
3235IFS=$as_save_IFS
3236
3237fi
3238fi
3239ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240if test -n "$ac_ct_CC"; then
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242$as_echo "$ac_ct_CC" >&6; }
3243else
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246fi
3247
3248  if test "x$ac_ct_CC" = x; then
3249    CC=""
3250  else
3251    case $cross_compiling:$ac_tool_warned in
3252yes:)
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255ac_tool_warned=yes ;;
3256esac
3257    CC=$ac_ct_CC
3258  fi
3259else
3260  CC="$ac_cv_prog_CC"
3261fi
3262
3263if test -z "$CC"; then
3264          if test -n "$ac_tool_prefix"; then
3265    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}cc; ac_word=$2
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268$as_echo_n "checking for $ac_word... " >&6; }
3269if ${ac_cv_prog_CC+:} false; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  if test -n "$CC"; then
3273  ac_cv_prog_CC="$CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  test -z "$as_dir" && as_dir=.
3280    for ac_exec_ext in '' $ac_executable_extensions; do
3281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282    ac_cv_prog_CC="${ac_tool_prefix}cc"
3283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287  done
3288IFS=$as_save_IFS
3289
3290fi
3291fi
3292CC=$ac_cv_prog_CC
3293if test -n "$CC"; then
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295$as_echo "$CC" >&6; }
3296else
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298$as_echo "no" >&6; }
3299fi
3300
3301
3302  fi
3303fi
3304if test -z "$CC"; then
3305  # Extract the first word of "cc", so it can be a program name with args.
3306set dummy cc; ac_word=$2
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308$as_echo_n "checking for $ac_word... " >&6; }
3309if ${ac_cv_prog_CC+:} false; then :
3310  $as_echo_n "(cached) " >&6
3311else
3312  if test -n "$CC"; then
3313  ac_cv_prog_CC="$CC" # Let the user override the test.
3314else
3315  ac_prog_rejected=no
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319  IFS=$as_save_IFS
3320  test -z "$as_dir" && as_dir=.
3321    for ac_exec_ext in '' $ac_executable_extensions; do
3322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324       ac_prog_rejected=yes
3325       continue
3326     fi
3327    ac_cv_prog_CC="cc"
3328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332  done
3333IFS=$as_save_IFS
3334
3335if test $ac_prog_rejected = yes; then
3336  # We found a bogon in the path, so make sure we never use it.
3337  set dummy $ac_cv_prog_CC
3338  shift
3339  if test $# != 0; then
3340    # We chose a different compiler from the bogus one.
3341    # However, it has the same basename, so the bogon will be chosen
3342    # first if we set CC to just the basename; use the full file name.
3343    shift
3344    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3345  fi
3346fi
3347fi
3348fi
3349CC=$ac_cv_prog_CC
3350if test -n "$CC"; then
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352$as_echo "$CC" >&6; }
3353else
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356fi
3357
3358
3359fi
3360if test -z "$CC"; then
3361  if test -n "$ac_tool_prefix"; then
3362  for ac_prog in cl.exe
3363  do
3364    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if ${ac_cv_prog_CC+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -n "$CC"; then
3372  ac_cv_prog_CC="$CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394$as_echo "$CC" >&6; }
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401    test -n "$CC" && break
3402  done
3403fi
3404if test -z "$CC"; then
3405  ac_ct_CC=$CC
3406  for ac_prog in cl.exe
3407do
3408  # Extract the first word of "$ac_prog", so it can be a program name with args.
3409set dummy $ac_prog; ac_word=$2
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411$as_echo_n "checking for $ac_word... " >&6; }
3412if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  if test -n "$ac_ct_CC"; then
3416  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417else
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421  IFS=$as_save_IFS
3422  test -z "$as_dir" && as_dir=.
3423    for ac_exec_ext in '' $ac_executable_extensions; do
3424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425    ac_cv_prog_ac_ct_CC="$ac_prog"
3426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427    break 2
3428  fi
3429done
3430  done
3431IFS=$as_save_IFS
3432
3433fi
3434fi
3435ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436if test -n "$ac_ct_CC"; then
3437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438$as_echo "$ac_ct_CC" >&6; }
3439else
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441$as_echo "no" >&6; }
3442fi
3443
3444
3445  test -n "$ac_ct_CC" && break
3446done
3447
3448  if test "x$ac_ct_CC" = x; then
3449    CC=""
3450  else
3451    case $cross_compiling:$ac_tool_warned in
3452yes:)
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455ac_tool_warned=yes ;;
3456esac
3457    CC=$ac_ct_CC
3458  fi
3459fi
3460
3461fi
3462
3463
3464test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466as_fn_error $? "no acceptable C compiler found in \$PATH
3467See \`config.log' for more details" "$LINENO" 5; }
3468
3469# Provide some information about the compiler.
3470$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3471set X $ac_compile
3472ac_compiler=$2
3473for ac_option in --version -v -V -qversion; do
3474  { { ac_try="$ac_compiler $ac_option >&5"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3482  ac_status=$?
3483  if test -s conftest.err; then
3484    sed '10a\
3485... rest of stderr output deleted ...
3486         10q' conftest.err >conftest.er1
3487    cat conftest.er1 >&5
3488  fi
3489  rm -f conftest.er1 conftest.err
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }
3492done
3493
3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505ac_clean_files_save=$ac_clean_files
3506ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3507# Try to create an executable without -o first, disregard a.out.
3508# It will help us diagnose broken compilers, and finding out an intuition
3509# of exeext.
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3511$as_echo_n "checking whether the C compiler works... " >&6; }
3512ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3513
3514# The possible output files:
3515ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516
3517ac_rmfiles=
3518for ac_file in $ac_files
3519do
3520  case $ac_file in
3521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523  esac
3524done
3525rm -f $ac_rmfiles
3526
3527if { { ac_try="$ac_link_default"
3528case "(($ac_try" in
3529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530  *) ac_try_echo=$ac_try;;
3531esac
3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533$as_echo "$ac_try_echo"; } >&5
3534  (eval "$ac_link_default") 2>&5
3535  ac_status=$?
3536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537  test $ac_status = 0; }; then :
3538  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3541# so that the user can short-circuit this test for compilers unknown to
3542# Autoconf.
3543for ac_file in $ac_files ''
3544do
3545  test -f "$ac_file" || continue
3546  case $ac_file in
3547    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548	;;
3549    [ab].out )
3550	# We found the default executable, but exeext='' is most
3551	# certainly right.
3552	break;;
3553    *.* )
3554	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555	then :; else
3556	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557	fi
3558	# We set ac_cv_exeext here because the later test for it is not
3559	# safe: cross compilers may not add the suffix if given an `-o'
3560	# argument, so we may need to know it at that point already.
3561	# Even if this section looks crufty: it has the advantage of
3562	# actually working.
3563	break;;
3564    * )
3565	break;;
3566  esac
3567done
3568test "$ac_cv_exeext" = no && ac_cv_exeext=
3569
3570else
3571  ac_file=''
3572fi
3573if test -z "$ac_file"; then :
3574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575$as_echo "no" >&6; }
3576$as_echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581as_fn_error 77 "C compiler cannot create executables
3582See \`config.log' for more details" "$LINENO" 5; }
3583else
3584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585$as_echo "yes" >&6; }
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3588$as_echo_n "checking for C compiler default output file name... " >&6; }
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3590$as_echo "$ac_file" >&6; }
3591ac_exeext=$ac_cv_exeext
3592
3593rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3594ac_clean_files=$ac_clean_files_save
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3596$as_echo_n "checking for suffix of executables... " >&6; }
3597if { { ac_try="$ac_link"
3598case "(($ac_try" in
3599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600  *) ac_try_echo=$ac_try;;
3601esac
3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603$as_echo "$ac_try_echo"; } >&5
3604  (eval "$ac_link") 2>&5
3605  ac_status=$?
3606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607  test $ac_status = 0; }; then :
3608  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3609# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3610# work properly (i.e., refer to `conftest.exe'), while it won't with
3611# `rm'.
3612for ac_file in conftest.exe conftest conftest.*; do
3613  test -f "$ac_file" || continue
3614  case $ac_file in
3615    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617	  break;;
3618    * ) break;;
3619  esac
3620done
3621else
3622  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3625See \`config.log' for more details" "$LINENO" 5; }
3626fi
3627rm -f conftest conftest$ac_cv_exeext
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3629$as_echo "$ac_cv_exeext" >&6; }
3630
3631rm -f conftest.$ac_ext
3632EXEEXT=$ac_cv_exeext
3633ac_exeext=$EXEEXT
3634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h.  */
3636#include <stdio.h>
3637int
3638main ()
3639{
3640FILE *f = fopen ("conftest.out", "w");
3641 return ferror (f) || fclose (f) != 0;
3642
3643  ;
3644  return 0;
3645}
3646_ACEOF
3647ac_clean_files="$ac_clean_files conftest.out"
3648# Check that the compiler produces executables we can run.  If not, either
3649# the compiler is broken, or we cross compile.
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3651$as_echo_n "checking whether we are cross compiling... " >&6; }
3652if test "$cross_compiling" != yes; then
3653  { { ac_try="$ac_link"
3654case "(($ac_try" in
3655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656  *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659$as_echo "$ac_try_echo"; } >&5
3660  (eval "$ac_link") 2>&5
3661  ac_status=$?
3662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663  test $ac_status = 0; }
3664  if { ac_try='./conftest$ac_cv_exeext'
3665  { { case "(($ac_try" in
3666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667  *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670$as_echo "$ac_try_echo"; } >&5
3671  (eval "$ac_try") 2>&5
3672  ac_status=$?
3673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674  test $ac_status = 0; }; }; then
3675    cross_compiling=no
3676  else
3677    if test "$cross_compiling" = maybe; then
3678	cross_compiling=yes
3679    else
3680	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682as_fn_error $? "cannot run C compiled programs.
3683If you meant to cross compile, use \`--host'.
3684See \`config.log' for more details" "$LINENO" 5; }
3685    fi
3686  fi
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3689$as_echo "$cross_compiling" >&6; }
3690
3691rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3692ac_clean_files=$ac_clean_files_save
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3694$as_echo_n "checking for suffix of object files... " >&6; }
3695if ${ac_cv_objext+:} false; then :
3696  $as_echo_n "(cached) " >&6
3697else
3698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709rm -f conftest.o conftest.obj
3710if { { ac_try="$ac_compile"
3711case "(($ac_try" in
3712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713  *) ac_try_echo=$ac_try;;
3714esac
3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716$as_echo "$ac_try_echo"; } >&5
3717  (eval "$ac_compile") 2>&5
3718  ac_status=$?
3719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720  test $ac_status = 0; }; then :
3721  for ac_file in conftest.o conftest.obj conftest.*; do
3722  test -f "$ac_file" || continue;
3723  case $ac_file in
3724    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3725    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3726       break;;
3727  esac
3728done
3729else
3730  $as_echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735as_fn_error $? "cannot compute suffix of object files: cannot compile
3736See \`config.log' for more details" "$LINENO" 5; }
3737fi
3738rm -f conftest.$ac_cv_objext conftest.$ac_ext
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3741$as_echo "$ac_cv_objext" >&6; }
3742OBJEXT=$ac_cv_objext
3743ac_objext=$OBJEXT
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3745$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3746if ${ac_cv_c_compiler_gnu+:} false; then :
3747  $as_echo_n "(cached) " >&6
3748else
3749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751
3752int
3753main ()
3754{
3755#ifndef __GNUC__
3756       choke me
3757#endif
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764  ac_compiler_gnu=yes
3765else
3766  ac_compiler_gnu=no
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769ac_cv_c_compiler_gnu=$ac_compiler_gnu
3770
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3773$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3774if test $ac_compiler_gnu = yes; then
3775  GCC=yes
3776else
3777  GCC=
3778fi
3779ac_test_CFLAGS=${CFLAGS+set}
3780ac_save_CFLAGS=$CFLAGS
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3782$as_echo_n "checking whether $CC accepts -g... " >&6; }
3783if ${ac_cv_prog_cc_g+:} false; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  ac_save_c_werror_flag=$ac_c_werror_flag
3787   ac_c_werror_flag=yes
3788   ac_cv_prog_cc_g=no
3789   CFLAGS="-g"
3790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791/* end confdefs.h.  */
3792
3793int
3794main ()
3795{
3796
3797  ;
3798  return 0;
3799}
3800_ACEOF
3801if ac_fn_c_try_compile "$LINENO"; then :
3802  ac_cv_prog_cc_g=yes
3803else
3804  CFLAGS=""
3805      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"; then :
3817
3818else
3819  ac_c_werror_flag=$ac_save_c_werror_flag
3820	 CFLAGS="-g"
3821	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823
3824int
3825main ()
3826{
3827
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832if ac_fn_c_try_compile "$LINENO"; then :
3833  ac_cv_prog_cc_g=yes
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836fi
3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838fi
3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840   ac_c_werror_flag=$ac_save_c_werror_flag
3841fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3843$as_echo "$ac_cv_prog_cc_g" >&6; }
3844if test "$ac_test_CFLAGS" = set; then
3845  CFLAGS=$ac_save_CFLAGS
3846elif test $ac_cv_prog_cc_g = yes; then
3847  if test "$GCC" = yes; then
3848    CFLAGS="-g -O2"
3849  else
3850    CFLAGS="-g"
3851  fi
3852else
3853  if test "$GCC" = yes; then
3854    CFLAGS="-O2"
3855  else
3856    CFLAGS=
3857  fi
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3860$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3861if ${ac_cv_prog_cc_c89+:} false; then :
3862  $as_echo_n "(cached) " >&6
3863else
3864  ac_cv_prog_cc_c89=no
3865ac_save_CC=$CC
3866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867/* end confdefs.h.  */
3868#include <stdarg.h>
3869#include <stdio.h>
3870#include <sys/types.h>
3871#include <sys/stat.h>
3872/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3873struct buf { int x; };
3874FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875static char *e (p, i)
3876     char **p;
3877     int i;
3878{
3879  return p[i];
3880}
3881static char *f (char * (*g) (char **, int), char **p, ...)
3882{
3883  char *s;
3884  va_list v;
3885  va_start (v,p);
3886  s = g (p, va_arg (v,int));
3887  va_end (v);
3888  return s;
3889}
3890
3891/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3892   function prototypes and stuff, but not '\xHH' hex character constants.
3893   These don't provoke an error unfortunately, instead are silently treated
3894   as 'x'.  The following induces an error, until -std is added to get
3895   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3896   array size at least.  It's necessary to write '\x00'==0 to get something
3897   that's true only with -std.  */
3898int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3899
3900/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3901   inside strings and character constants.  */
3902#define FOO(x) 'x'
3903int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3904
3905int test (int i, double x);
3906struct s1 {int (*f) (int a);};
3907struct s2 {int (*f) (double a);};
3908int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909int argc;
3910char **argv;
3911int
3912main ()
3913{
3914return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3915  ;
3916  return 0;
3917}
3918_ACEOF
3919for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3920	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3921do
3922  CC="$ac_save_CC $ac_arg"
3923  if ac_fn_c_try_compile "$LINENO"; then :
3924  ac_cv_prog_cc_c89=$ac_arg
3925fi
3926rm -f core conftest.err conftest.$ac_objext
3927  test "x$ac_cv_prog_cc_c89" != "xno" && break
3928done
3929rm -f conftest.$ac_ext
3930CC=$ac_save_CC
3931
3932fi
3933# AC_CACHE_VAL
3934case "x$ac_cv_prog_cc_c89" in
3935  x)
3936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3937$as_echo "none needed" >&6; } ;;
3938  xno)
3939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3940$as_echo "unsupported" >&6; } ;;
3941  *)
3942    CC="$CC $ac_cv_prog_cc_c89"
3943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3944$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945esac
3946if test "x$ac_cv_prog_cc_c89" != xno; then :
3947
3948fi
3949
3950ac_ext=c
3951ac_cpp='$CPP $CPPFLAGS'
3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955DEPDIR="${am__leading_dot}deps"
3956
3957ac_config_commands="$ac_config_commands depfiles"
3958
3959
3960am_make=${MAKE-make}
3961cat > confinc << 'END'
3962am__doit:
3963	@echo this is the am__doit target
3964.PHONY: am__doit
3965END
3966# If we don't find an include directive, just comment out the code.
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3968$as_echo_n "checking for style of include used by $am_make... " >&6; }
3969am__include="#"
3970am__quote=
3971_am_result=none
3972# First try GNU make style include.
3973echo "include confinc" > confmf
3974# Ignore all kinds of additional output from `make'.
3975case `$am_make -s -f confmf 2> /dev/null` in #(
3976*the\ am__doit\ target*)
3977  am__include=include
3978  am__quote=
3979  _am_result=GNU
3980  ;;
3981esac
3982# Now try BSD make style include.
3983if test "$am__include" = "#"; then
3984   echo '.include "confinc"' > confmf
3985   case `$am_make -s -f confmf 2> /dev/null` in #(
3986   *the\ am__doit\ target*)
3987     am__include=.include
3988     am__quote="\""
3989     _am_result=BSD
3990     ;;
3991   esac
3992fi
3993
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3996$as_echo "$_am_result" >&6; }
3997rm -f confinc confmf
3998
3999# Check whether --enable-dependency-tracking was given.
4000if test "${enable_dependency_tracking+set}" = set; then :
4001  enableval=$enable_dependency_tracking;
4002fi
4003
4004if test "x$enable_dependency_tracking" != xno; then
4005  am_depcomp="$ac_aux_dir/depcomp"
4006  AMDEPBACKSLASH='\'
4007  am__nodep='_no'
4008fi
4009 if test "x$enable_dependency_tracking" != xno; then
4010  AMDEP_TRUE=
4011  AMDEP_FALSE='#'
4012else
4013  AMDEP_TRUE='#'
4014  AMDEP_FALSE=
4015fi
4016
4017
4018
4019depcc="$CC"   am_compiler_list=
4020
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4022$as_echo_n "checking dependency style of $depcc... " >&6; }
4023if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4024  $as_echo_n "(cached) " >&6
4025else
4026  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4027  # We make a subdir and do the tests there.  Otherwise we can end up
4028  # making bogus files that we don't know about and never remove.  For
4029  # instance it was reported that on HP-UX the gcc test will end up
4030  # making a dummy file named `D' -- because `-MD' means `put the output
4031  # in D'.
4032  rm -rf conftest.dir
4033  mkdir conftest.dir
4034  # Copy depcomp to subdir because otherwise we won't find it if we're
4035  # using a relative directory.
4036  cp "$am_depcomp" conftest.dir
4037  cd conftest.dir
4038  # We will build objects and dependencies in a subdirectory because
4039  # it helps to detect inapplicable dependency modes.  For instance
4040  # both Tru64's cc and ICC support -MD to output dependencies as a
4041  # side effect of compilation, but ICC will put the dependencies in
4042  # the current directory while Tru64 will put them in the object
4043  # directory.
4044  mkdir sub
4045
4046  am_cv_CC_dependencies_compiler_type=none
4047  if test "$am_compiler_list" = ""; then
4048     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4049  fi
4050  am__universal=false
4051  case " $depcc " in #(
4052     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4053     esac
4054
4055  for depmode in $am_compiler_list; do
4056    # Setup a source with many dependencies, because some compilers
4057    # like to wrap large dependency lists on column 80 (with \), and
4058    # we should not choose a depcomp mode which is confused by this.
4059    #
4060    # We need to recreate these files for each test, as the compiler may
4061    # overwrite some of them when testing with obscure command lines.
4062    # This happens at least with the AIX C compiler.
4063    : > sub/conftest.c
4064    for i in 1 2 3 4 5 6; do
4065      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4066      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4067      # Solaris 8's {/usr,}/bin/sh.
4068      touch sub/conftst$i.h
4069    done
4070    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4071
4072    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4073    # mode.  It turns out that the SunPro C++ compiler does not properly
4074    # handle `-M -o', and we need to detect this.  Also, some Intel
4075    # versions had trouble with output in subdirs
4076    am__obj=sub/conftest.${OBJEXT-o}
4077    am__minus_obj="-o $am__obj"
4078    case $depmode in
4079    gcc)
4080      # This depmode causes a compiler race in universal mode.
4081      test "$am__universal" = false || continue
4082      ;;
4083    nosideeffect)
4084      # after this tag, mechanisms are not by side-effect, so they'll
4085      # only be used when explicitly requested
4086      if test "x$enable_dependency_tracking" = xyes; then
4087	continue
4088      else
4089	break
4090      fi
4091      ;;
4092    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4093      # This compiler won't grok `-c -o', but also, the minuso test has
4094      # not run yet.  These depmodes are late enough in the game, and
4095      # so weak that their functioning should not be impacted.
4096      am__obj=conftest.${OBJEXT-o}
4097      am__minus_obj=
4098      ;;
4099    none) break ;;
4100    esac
4101    if depmode=$depmode \
4102       source=sub/conftest.c object=$am__obj \
4103       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4104       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4105         >/dev/null 2>conftest.err &&
4106       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4107       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4109       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110      # icc doesn't choke on unknown options, it will just issue warnings
4111      # or remarks (even with -Werror).  So we grep stderr for any message
4112      # that says an option was ignored or not supported.
4113      # When given -MP, icc 7.0 and 7.1 complain thusly:
4114      #   icc: Command line warning: ignoring option '-M'; no argument required
4115      # The diagnosis changed in icc 8.0:
4116      #   icc: Command line remark: option '-MP' not supported
4117      if (grep 'ignoring option' conftest.err ||
4118          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119        am_cv_CC_dependencies_compiler_type=$depmode
4120        break
4121      fi
4122    fi
4123  done
4124
4125  cd ..
4126  rm -rf conftest.dir
4127else
4128  am_cv_CC_dependencies_compiler_type=none
4129fi
4130
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4133$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4134CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4135
4136 if
4137  test "x$enable_dependency_tracking" != xno \
4138  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4139  am__fastdepCC_TRUE=
4140  am__fastdepCC_FALSE='#'
4141else
4142  am__fastdepCC_TRUE='#'
4143  am__fastdepCC_FALSE=
4144fi
4145
4146
4147if test "x$CC" != xcc; then
4148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4149$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4150else
4151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4152$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4153fi
4154set dummy $CC; ac_cc=`$as_echo "$2" |
4155		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4156if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161
4162int
4163main ()
4164{
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170# Make sure it works both with $CC and with simple cc.
4171# We do the test twice because some compilers refuse to overwrite an
4172# existing .o file with -o, though they will create one.
4173ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4174rm -f conftest2.*
4175if { { case "(($ac_try" in
4176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177  *) ac_try_echo=$ac_try;;
4178esac
4179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180$as_echo "$ac_try_echo"; } >&5
4181  (eval "$ac_try") 2>&5
4182  ac_status=$?
4183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184  test $ac_status = 0; } &&
4185   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187  *) ac_try_echo=$ac_try;;
4188esac
4189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190$as_echo "$ac_try_echo"; } >&5
4191  (eval "$ac_try") 2>&5
4192  ac_status=$?
4193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194  test $ac_status = 0; };
4195then
4196  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4197  if test "x$CC" != xcc; then
4198    # Test first that cc exists at all.
4199    if { ac_try='cc -c conftest.$ac_ext >&5'
4200  { { case "(($ac_try" in
4201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202  *) ac_try_echo=$ac_try;;
4203esac
4204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205$as_echo "$ac_try_echo"; } >&5
4206  (eval "$ac_try") 2>&5
4207  ac_status=$?
4208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209  test $ac_status = 0; }; }; then
4210      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4211      rm -f conftest2.*
4212      if { { case "(($ac_try" in
4213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214  *) ac_try_echo=$ac_try;;
4215esac
4216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217$as_echo "$ac_try_echo"; } >&5
4218  (eval "$ac_try") 2>&5
4219  ac_status=$?
4220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221  test $ac_status = 0; } &&
4222	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224  *) ac_try_echo=$ac_try;;
4225esac
4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227$as_echo "$ac_try_echo"; } >&5
4228  (eval "$ac_try") 2>&5
4229  ac_status=$?
4230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231  test $ac_status = 0; };
4232      then
4233	# cc works too.
4234	:
4235      else
4236	# cc exists but doesn't like -o.
4237	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4238      fi
4239    fi
4240  fi
4241else
4242  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4243fi
4244rm -f core conftest*
4245
4246fi
4247if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4249$as_echo "yes" >&6; }
4250else
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252$as_echo "no" >&6; }
4253
4254$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4255
4256fi
4257
4258# FIXME: we rely on the cache variable name because
4259# there is no other way.
4260set dummy $CC
4261am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4263if test "$am_t" != yes; then
4264   # Losing compiler, so override with the script.
4265   # FIXME: It is wrong to rewrite CC.
4266   # But if we don't then we get into trouble of one sort or another.
4267   # A longer-term fix would be to have automake use am__CC in this case,
4268   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4269   CC="$am_aux_dir/compile $CC"
4270fi
4271
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4274$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4275if ${ac_cv_path_SED+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4279     for ac_i in 1 2 3 4 5 6 7; do
4280       ac_script="$ac_script$as_nl$ac_script"
4281     done
4282     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4283     { ac_script=; unset ac_script;}
4284     if test -z "$SED"; then
4285  ac_path_SED_found=false
4286  # Loop through the user's path and test for each of PROGNAME-LIST
4287  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_prog in sed gsed; do
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4295      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4296# Check for GNU ac_path_SED and select it if it is found.
4297  # Check for GNU $ac_path_SED
4298case `"$ac_path_SED" --version 2>&1` in
4299*GNU*)
4300  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4301*)
4302  ac_count=0
4303  $as_echo_n 0123456789 >"conftest.in"
4304  while :
4305  do
4306    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307    mv "conftest.tmp" "conftest.in"
4308    cp "conftest.in" "conftest.nl"
4309    $as_echo '' >> "conftest.nl"
4310    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312    as_fn_arith $ac_count + 1 && ac_count=$as_val
4313    if test $ac_count -gt ${ac_path_SED_max-0}; then
4314      # Best one so far, save it but keep looking for a better one
4315      ac_cv_path_SED="$ac_path_SED"
4316      ac_path_SED_max=$ac_count
4317    fi
4318    # 10*(2^10) chars as input seems more than enough
4319    test $ac_count -gt 10 && break
4320  done
4321  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322esac
4323
4324      $ac_path_SED_found && break 3
4325    done
4326  done
4327  done
4328IFS=$as_save_IFS
4329  if test -z "$ac_cv_path_SED"; then
4330    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4331  fi
4332else
4333  ac_cv_path_SED=$SED
4334fi
4335
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4338$as_echo "$ac_cv_path_SED" >&6; }
4339 SED="$ac_cv_path_SED"
4340  rm -f conftest.sed
4341
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4344$as_echo_n "checking whether ln -s works... " >&6; }
4345LN_S=$as_ln_s
4346if test "$LN_S" = "ln -s"; then
4347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348$as_echo "yes" >&6; }
4349else
4350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4351$as_echo "no, using $LN_S" >&6; }
4352fi
4353
4354
4355
4356
4357ac_ext=c
4358ac_cpp='$CPP $CPPFLAGS'
4359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4363$as_echo_n "checking how to run the C preprocessor... " >&6; }
4364# On Suns, sometimes $CPP names a directory.
4365if test -n "$CPP" && test -d "$CPP"; then
4366  CPP=
4367fi
4368if test -z "$CPP"; then
4369  if ${ac_cv_prog_CPP+:} false; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372      # Double quotes because CPP needs to be expanded
4373    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4374    do
4375      ac_preproc_ok=false
4376for ac_c_preproc_warn_flag in '' yes
4377do
4378  # Use a header file that comes with gcc, so configuring glibc
4379  # with a fresh cross-compiler works.
4380  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381  # <limits.h> exists even on freestanding compilers.
4382  # On the NeXT, cc -E runs the code through the compiler's parser,
4383  # not just through cpp. "Syntax error" is here to catch this case.
4384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386#ifdef __STDC__
4387# include <limits.h>
4388#else
4389# include <assert.h>
4390#endif
4391		     Syntax error
4392_ACEOF
4393if ac_fn_c_try_cpp "$LINENO"; then :
4394
4395else
4396  # Broken: fails on valid input.
4397continue
4398fi
4399rm -f conftest.err conftest.i conftest.$ac_ext
4400
4401  # OK, works on sane cases.  Now check whether nonexistent headers
4402  # can be detected and how.
4403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405#include <ac_nonexistent.h>
4406_ACEOF
4407if ac_fn_c_try_cpp "$LINENO"; then :
4408  # Broken: success on invalid input.
4409continue
4410else
4411  # Passes both tests.
4412ac_preproc_ok=:
4413break
4414fi
4415rm -f conftest.err conftest.i conftest.$ac_ext
4416
4417done
4418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419rm -f conftest.i conftest.err conftest.$ac_ext
4420if $ac_preproc_ok; then :
4421  break
4422fi
4423
4424    done
4425    ac_cv_prog_CPP=$CPP
4426
4427fi
4428  CPP=$ac_cv_prog_CPP
4429else
4430  ac_cv_prog_CPP=$CPP
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4433$as_echo "$CPP" >&6; }
4434ac_preproc_ok=false
4435for ac_c_preproc_warn_flag in '' yes
4436do
4437  # Use a header file that comes with gcc, so configuring glibc
4438  # with a fresh cross-compiler works.
4439  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440  # <limits.h> exists even on freestanding compilers.
4441  # On the NeXT, cc -E runs the code through the compiler's parser,
4442  # not just through cpp. "Syntax error" is here to catch this case.
4443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h.  */
4445#ifdef __STDC__
4446# include <limits.h>
4447#else
4448# include <assert.h>
4449#endif
4450		     Syntax error
4451_ACEOF
4452if ac_fn_c_try_cpp "$LINENO"; then :
4453
4454else
4455  # Broken: fails on valid input.
4456continue
4457fi
4458rm -f conftest.err conftest.i conftest.$ac_ext
4459
4460  # OK, works on sane cases.  Now check whether nonexistent headers
4461  # can be detected and how.
4462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h.  */
4464#include <ac_nonexistent.h>
4465_ACEOF
4466if ac_fn_c_try_cpp "$LINENO"; then :
4467  # Broken: success on invalid input.
4468continue
4469else
4470  # Passes both tests.
4471ac_preproc_ok=:
4472break
4473fi
4474rm -f conftest.err conftest.i conftest.$ac_ext
4475
4476done
4477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478rm -f conftest.i conftest.err conftest.$ac_ext
4479if $ac_preproc_ok; then :
4480
4481else
4482  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4485See \`config.log' for more details" "$LINENO" 5; }
4486fi
4487
4488ac_ext=c
4489ac_cpp='$CPP $CPPFLAGS'
4490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492ac_compiler_gnu=$ac_cv_c_compiler_gnu
4493
4494
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497if ${ac_cv_path_GREP+:} false; then :
4498  $as_echo_n "(cached) " >&6
4499else
4500  if test -z "$GREP"; then
4501  ac_path_GREP_found=false
4502  # Loop through the user's path and test for each of PROGNAME-LIST
4503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505do
4506  IFS=$as_save_IFS
4507  test -z "$as_dir" && as_dir=.
4508    for ac_prog in grep ggrep; do
4509    for ac_exec_ext in '' $ac_executable_extensions; do
4510      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4512# Check for GNU ac_path_GREP and select it if it is found.
4513  # Check for GNU $ac_path_GREP
4514case `"$ac_path_GREP" --version 2>&1` in
4515*GNU*)
4516  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4517*)
4518  ac_count=0
4519  $as_echo_n 0123456789 >"conftest.in"
4520  while :
4521  do
4522    cat "conftest.in" "conftest.in" >"conftest.tmp"
4523    mv "conftest.tmp" "conftest.in"
4524    cp "conftest.in" "conftest.nl"
4525    $as_echo 'GREP' >> "conftest.nl"
4526    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528    as_fn_arith $ac_count + 1 && ac_count=$as_val
4529    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530      # Best one so far, save it but keep looking for a better one
4531      ac_cv_path_GREP="$ac_path_GREP"
4532      ac_path_GREP_max=$ac_count
4533    fi
4534    # 10*(2^10) chars as input seems more than enough
4535    test $ac_count -gt 10 && break
4536  done
4537  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538esac
4539
4540      $ac_path_GREP_found && break 3
4541    done
4542  done
4543  done
4544IFS=$as_save_IFS
4545  if test -z "$ac_cv_path_GREP"; then
4546    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4547  fi
4548else
4549  ac_cv_path_GREP=$GREP
4550fi
4551
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554$as_echo "$ac_cv_path_GREP" >&6; }
4555 GREP="$ac_cv_path_GREP"
4556
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559$as_echo_n "checking for egrep... " >&6; }
4560if ${ac_cv_path_EGREP+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4564   then ac_cv_path_EGREP="$GREP -E"
4565   else
4566     if test -z "$EGREP"; then
4567  ac_path_EGREP_found=false
4568  # Loop through the user's path and test for each of PROGNAME-LIST
4569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571do
4572  IFS=$as_save_IFS
4573  test -z "$as_dir" && as_dir=.
4574    for ac_prog in egrep; do
4575    for ac_exec_ext in '' $ac_executable_extensions; do
4576      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4577      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4578# Check for GNU ac_path_EGREP and select it if it is found.
4579  # Check for GNU $ac_path_EGREP
4580case `"$ac_path_EGREP" --version 2>&1` in
4581*GNU*)
4582  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4583*)
4584  ac_count=0
4585  $as_echo_n 0123456789 >"conftest.in"
4586  while :
4587  do
4588    cat "conftest.in" "conftest.in" >"conftest.tmp"
4589    mv "conftest.tmp" "conftest.in"
4590    cp "conftest.in" "conftest.nl"
4591    $as_echo 'EGREP' >> "conftest.nl"
4592    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594    as_fn_arith $ac_count + 1 && ac_count=$as_val
4595    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596      # Best one so far, save it but keep looking for a better one
4597      ac_cv_path_EGREP="$ac_path_EGREP"
4598      ac_path_EGREP_max=$ac_count
4599    fi
4600    # 10*(2^10) chars as input seems more than enough
4601    test $ac_count -gt 10 && break
4602  done
4603  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604esac
4605
4606      $ac_path_EGREP_found && break 3
4607    done
4608  done
4609  done
4610IFS=$as_save_IFS
4611  if test -z "$ac_cv_path_EGREP"; then
4612    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613  fi
4614else
4615  ac_cv_path_EGREP=$EGREP
4616fi
4617
4618   fi
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621$as_echo "$ac_cv_path_EGREP" >&6; }
4622 EGREP="$ac_cv_path_EGREP"
4623
4624
4625if test $ac_cv_c_compiler_gnu = yes; then
4626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4627$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4628if ${ac_cv_prog_gcc_traditional+:} false; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631    ac_pattern="Autoconf.*'x'"
4632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634#include <sgtty.h>
4635Autoconf TIOCGETP
4636_ACEOF
4637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4638  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4639  ac_cv_prog_gcc_traditional=yes
4640else
4641  ac_cv_prog_gcc_traditional=no
4642fi
4643rm -f conftest*
4644
4645
4646  if test $ac_cv_prog_gcc_traditional = no; then
4647    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649#include <termio.h>
4650Autoconf TCGETA
4651_ACEOF
4652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4654  ac_cv_prog_gcc_traditional=yes
4655fi
4656rm -f conftest*
4657
4658  fi
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4661$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4662  if test $ac_cv_prog_gcc_traditional = yes; then
4663    CC="$CC -traditional"
4664  fi
4665fi
4666
4667
4668# We need to test for at least gcc 2.95 here, because older versions don't
4669# have -fno-strict-aliasing
4670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671/* end confdefs.h.  */
4672
4673int
4674main ()
4675{
4676
4677#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4678#error
4679#endif
4680  ;
4681  return 0;
4682}
4683_ACEOF
4684if ac_fn_c_try_compile "$LINENO"; then :
4685  have_gcc295=yes
4686else
4687  have_gcc295=no
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690
4691if test "$GCC" = "yes" ; then
4692        # Enable many gcc warnings by default...
4693        CFLAGS="$CFLAGS -Wall"
4694	# And disable the strict-aliasing optimization, since it breaks
4695	# our sockaddr-handling code in strange ways.
4696	if test x$have_gcc295 = xyes; then
4697		CFLAGS="$CFLAGS -fno-strict-aliasing"
4698	fi
4699fi
4700
4701# OS X Lion started deprecating the system openssl. Let's just disable
4702# all deprecation warnings on OS X.
4703case "$host_os" in
4704
4705 darwin*)
4706    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4707    ;;
4708esac
4709
4710# Check whether --enable-gcc-warnings was given.
4711if test "${enable_gcc_warnings+set}" = set; then :
4712  enableval=$enable_gcc_warnings;
4713fi
4714
4715# Check whether --enable-thread-support was given.
4716if test "${enable_thread_support+set}" = set; then :
4717  enableval=$enable_thread_support;
4718else
4719  enable_thread_support=yes
4720fi
4721
4722# Check whether --enable-malloc-replacement was given.
4723if test "${enable_malloc_replacement+set}" = set; then :
4724  enableval=$enable_malloc_replacement;
4725else
4726  enable_malloc_replacement=yes
4727fi
4728
4729# Check whether --enable-openssl was given.
4730if test "${enable_openssl+set}" = set; then :
4731  enableval=$enable_openssl;
4732else
4733  enable_openssl=yes
4734fi
4735
4736# Check whether --enable-debug-mode was given.
4737if test "${enable_debug_mode+set}" = set; then :
4738  enableval=$enable_debug_mode;
4739else
4740  enable_debug_mode=yes
4741fi
4742
4743# Check whether --enable-libevent-install was given.
4744if test "${enable_libevent_install+set}" = set; then :
4745  enableval=$enable_libevent_install;
4746else
4747  enable_libevent_install=yes
4748fi
4749
4750# Check whether --enable-libevent-regress was given.
4751if test "${enable_libevent_regress+set}" = set; then :
4752  enableval=$enable_libevent_regress;
4753else
4754  enable_libevent_regress=yes
4755fi
4756
4757# Check whether --enable-function-sections was given.
4758if test "${enable_function_sections+set}" = set; then :
4759  enableval=$enable_function_sections;
4760else
4761  enable_function_sections=no
4762fi
4763
4764
4765
4766case `pwd` in
4767  *\ * | *\	*)
4768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4769$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4770esac
4771
4772
4773
4774macro_version='2.4'
4775macro_revision='1.3293'
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789ltmain="$ac_aux_dir/ltmain.sh"
4790
4791# Backslashify metacharacters that are still active within
4792# double-quoted strings.
4793sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4794
4795# Same as above, but do not quote variable references.
4796double_quote_subst='s/\(["`\\]\)/\\\1/g'
4797
4798# Sed substitution to delay expansion of an escaped shell variable in a
4799# double_quote_subst'ed string.
4800delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4801
4802# Sed substitution to delay expansion of an escaped single quote.
4803delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4804
4805# Sed substitution to avoid accidental globbing in evaled expressions
4806no_glob_subst='s/\*/\\\*/g'
4807
4808ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4810ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4811
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4813$as_echo_n "checking how to print strings... " >&6; }
4814# Test print first, because it will be a builtin if present.
4815if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4816   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4817  ECHO='print -r --'
4818elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4819  ECHO='printf %s\n'
4820else
4821  # Use this function as a fallback that always works.
4822  func_fallback_echo ()
4823  {
4824    eval 'cat <<_LTECHO_EOF
4825$1
4826_LTECHO_EOF'
4827  }
4828  ECHO='func_fallback_echo'
4829fi
4830
4831# func_echo_all arg...
4832# Invoke $ECHO with all args, space-separated.
4833func_echo_all ()
4834{
4835    $ECHO ""
4836}
4837
4838case "$ECHO" in
4839  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4840$as_echo "printf" >&6; } ;;
4841  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4842$as_echo "print -r" >&6; } ;;
4843  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4844$as_echo "cat" >&6; } ;;
4845esac
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4861$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4862if ${ac_cv_path_SED+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4866     for ac_i in 1 2 3 4 5 6 7; do
4867       ac_script="$ac_script$as_nl$ac_script"
4868     done
4869     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4870     { ac_script=; unset ac_script;}
4871     if test -z "$SED"; then
4872  ac_path_SED_found=false
4873  # Loop through the user's path and test for each of PROGNAME-LIST
4874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879    for ac_prog in sed gsed; do
4880    for ac_exec_ext in '' $ac_executable_extensions; do
4881      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4882      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4883# Check for GNU ac_path_SED and select it if it is found.
4884  # Check for GNU $ac_path_SED
4885case `"$ac_path_SED" --version 2>&1` in
4886*GNU*)
4887  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4888*)
4889  ac_count=0
4890  $as_echo_n 0123456789 >"conftest.in"
4891  while :
4892  do
4893    cat "conftest.in" "conftest.in" >"conftest.tmp"
4894    mv "conftest.tmp" "conftest.in"
4895    cp "conftest.in" "conftest.nl"
4896    $as_echo '' >> "conftest.nl"
4897    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899    as_fn_arith $ac_count + 1 && ac_count=$as_val
4900    if test $ac_count -gt ${ac_path_SED_max-0}; then
4901      # Best one so far, save it but keep looking for a better one
4902      ac_cv_path_SED="$ac_path_SED"
4903      ac_path_SED_max=$ac_count
4904    fi
4905    # 10*(2^10) chars as input seems more than enough
4906    test $ac_count -gt 10 && break
4907  done
4908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
4910
4911      $ac_path_SED_found && break 3
4912    done
4913  done
4914  done
4915IFS=$as_save_IFS
4916  if test -z "$ac_cv_path_SED"; then
4917    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4918  fi
4919else
4920  ac_cv_path_SED=$SED
4921fi
4922
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4925$as_echo "$ac_cv_path_SED" >&6; }
4926 SED="$ac_cv_path_SED"
4927  rm -f conftest.sed
4928
4929test -z "$SED" && SED=sed
4930Xsed="$SED -e 1s/^X//"
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4943$as_echo_n "checking for fgrep... " >&6; }
4944if ${ac_cv_path_FGREP+:} false; then :
4945  $as_echo_n "(cached) " >&6
4946else
4947  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4948   then ac_cv_path_FGREP="$GREP -F"
4949   else
4950     if test -z "$FGREP"; then
4951  ac_path_FGREP_found=false
4952  # Loop through the user's path and test for each of PROGNAME-LIST
4953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_prog in fgrep; do
4959    for ac_exec_ext in '' $ac_executable_extensions; do
4960      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4961      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4962# Check for GNU ac_path_FGREP and select it if it is found.
4963  # Check for GNU $ac_path_FGREP
4964case `"$ac_path_FGREP" --version 2>&1` in
4965*GNU*)
4966  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4967*)
4968  ac_count=0
4969  $as_echo_n 0123456789 >"conftest.in"
4970  while :
4971  do
4972    cat "conftest.in" "conftest.in" >"conftest.tmp"
4973    mv "conftest.tmp" "conftest.in"
4974    cp "conftest.in" "conftest.nl"
4975    $as_echo 'FGREP' >> "conftest.nl"
4976    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4977    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4978    as_fn_arith $ac_count + 1 && ac_count=$as_val
4979    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4980      # Best one so far, save it but keep looking for a better one
4981      ac_cv_path_FGREP="$ac_path_FGREP"
4982      ac_path_FGREP_max=$ac_count
4983    fi
4984    # 10*(2^10) chars as input seems more than enough
4985    test $ac_count -gt 10 && break
4986  done
4987  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4988esac
4989
4990      $ac_path_FGREP_found && break 3
4991    done
4992  done
4993  done
4994IFS=$as_save_IFS
4995  if test -z "$ac_cv_path_FGREP"; then
4996    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4997  fi
4998else
4999  ac_cv_path_FGREP=$FGREP
5000fi
5001
5002   fi
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5005$as_echo "$ac_cv_path_FGREP" >&6; }
5006 FGREP="$ac_cv_path_FGREP"
5007
5008
5009test -z "$GREP" && GREP=grep
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029# Check whether --with-gnu-ld was given.
5030if test "${with_gnu_ld+set}" = set; then :
5031  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5032else
5033  with_gnu_ld=no
5034fi
5035
5036ac_prog=ld
5037if test "$GCC" = yes; then
5038  # Check if gcc -print-prog-name=ld gives a path.
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5040$as_echo_n "checking for ld used by $CC... " >&6; }
5041  case $host in
5042  *-*-mingw*)
5043    # gcc leaves a trailing carriage return which upsets mingw
5044    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5045  *)
5046    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5047  esac
5048  case $ac_prog in
5049    # Accept absolute paths.
5050    [\\/]* | ?:[\\/]*)
5051      re_direlt='/[^/][^/]*/\.\./'
5052      # Canonicalize the pathname of ld
5053      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5054      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5055	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5056      done
5057      test -z "$LD" && LD="$ac_prog"
5058      ;;
5059  "")
5060    # If it fails, then pretend we aren't using GCC.
5061    ac_prog=ld
5062    ;;
5063  *)
5064    # If it is relative, then search for the first ld in PATH.
5065    with_gnu_ld=unknown
5066    ;;
5067  esac
5068elif test "$with_gnu_ld" = yes; then
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5070$as_echo_n "checking for GNU ld... " >&6; }
5071else
5072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5073$as_echo_n "checking for non-GNU ld... " >&6; }
5074fi
5075if ${lt_cv_path_LD+:} false; then :
5076  $as_echo_n "(cached) " >&6
5077else
5078  if test -z "$LD"; then
5079  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5080  for ac_dir in $PATH; do
5081    IFS="$lt_save_ifs"
5082    test -z "$ac_dir" && ac_dir=.
5083    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5084      lt_cv_path_LD="$ac_dir/$ac_prog"
5085      # Check to see if the program is GNU ld.  I'd rather use --version,
5086      # but apparently some variants of GNU ld only accept -v.
5087      # Break only if it was the GNU/non-GNU ld that we prefer.
5088      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5089      *GNU* | *'with BFD'*)
5090	test "$with_gnu_ld" != no && break
5091	;;
5092      *)
5093	test "$with_gnu_ld" != yes && break
5094	;;
5095      esac
5096    fi
5097  done
5098  IFS="$lt_save_ifs"
5099else
5100  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5101fi
5102fi
5103
5104LD="$lt_cv_path_LD"
5105if test -n "$LD"; then
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5107$as_echo "$LD" >&6; }
5108else
5109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5114$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5115if ${lt_cv_prog_gnu_ld+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5119case `$LD -v 2>&1 </dev/null` in
5120*GNU* | *'with BFD'*)
5121  lt_cv_prog_gnu_ld=yes
5122  ;;
5123*)
5124  lt_cv_prog_gnu_ld=no
5125  ;;
5126esac
5127fi
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5129$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5130with_gnu_ld=$lt_cv_prog_gnu_ld
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5141$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5142if ${lt_cv_path_NM+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  if test -n "$NM"; then
5146  # Let the user override the test.
5147  lt_cv_path_NM="$NM"
5148else
5149  lt_nm_to_check="${ac_tool_prefix}nm"
5150  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5151    lt_nm_to_check="$lt_nm_to_check nm"
5152  fi
5153  for lt_tmp_nm in $lt_nm_to_check; do
5154    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5155    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5156      IFS="$lt_save_ifs"
5157      test -z "$ac_dir" && ac_dir=.
5158      tmp_nm="$ac_dir/$lt_tmp_nm"
5159      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5160	# Check to see if the nm accepts a BSD-compat flag.
5161	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5162	#   nm: unknown option "B" ignored
5163	# Tru64's nm complains that /dev/null is an invalid object file
5164	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5165	*/dev/null* | *'Invalid file or object type'*)
5166	  lt_cv_path_NM="$tmp_nm -B"
5167	  break
5168	  ;;
5169	*)
5170	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5171	  */dev/null*)
5172	    lt_cv_path_NM="$tmp_nm -p"
5173	    break
5174	    ;;
5175	  *)
5176	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5177	    continue # so that we can try to find one that supports BSD flags
5178	    ;;
5179	  esac
5180	  ;;
5181	esac
5182      fi
5183    done
5184    IFS="$lt_save_ifs"
5185  done
5186  : ${lt_cv_path_NM=no}
5187fi
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5190$as_echo "$lt_cv_path_NM" >&6; }
5191if test "$lt_cv_path_NM" != "no"; then
5192  NM="$lt_cv_path_NM"
5193else
5194  # Didn't find any BSD compatible name lister, look for dumpbin.
5195  if test -n "$DUMPBIN"; then :
5196    # Let the user override the test.
5197  else
5198    if test -n "$ac_tool_prefix"; then
5199  for ac_prog in dumpbin "link -dump"
5200  do
5201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204$as_echo_n "checking for $ac_word... " >&6; }
5205if ${ac_cv_prog_DUMPBIN+:} false; then :
5206  $as_echo_n "(cached) " >&6
5207else
5208  if test -n "$DUMPBIN"; then
5209  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214  IFS=$as_save_IFS
5215  test -z "$as_dir" && as_dir=.
5216    for ac_exec_ext in '' $ac_executable_extensions; do
5217  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220    break 2
5221  fi
5222done
5223  done
5224IFS=$as_save_IFS
5225
5226fi
5227fi
5228DUMPBIN=$ac_cv_prog_DUMPBIN
5229if test -n "$DUMPBIN"; then
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5231$as_echo "$DUMPBIN" >&6; }
5232else
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
5235fi
5236
5237
5238    test -n "$DUMPBIN" && break
5239  done
5240fi
5241if test -z "$DUMPBIN"; then
5242  ac_ct_DUMPBIN=$DUMPBIN
5243  for ac_prog in dumpbin "link -dump"
5244do
5245  # Extract the first word of "$ac_prog", so it can be a program name with args.
5246set dummy $ac_prog; ac_word=$2
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248$as_echo_n "checking for $ac_word... " >&6; }
5249if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5250  $as_echo_n "(cached) " >&6
5251else
5252  if test -n "$ac_ct_DUMPBIN"; then
5253  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5254else
5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH
5257do
5258  IFS=$as_save_IFS
5259  test -z "$as_dir" && as_dir=.
5260    for ac_exec_ext in '' $ac_executable_extensions; do
5261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264    break 2
5265  fi
5266done
5267  done
5268IFS=$as_save_IFS
5269
5270fi
5271fi
5272ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5273if test -n "$ac_ct_DUMPBIN"; then
5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5275$as_echo "$ac_ct_DUMPBIN" >&6; }
5276else
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278$as_echo "no" >&6; }
5279fi
5280
5281
5282  test -n "$ac_ct_DUMPBIN" && break
5283done
5284
5285  if test "x$ac_ct_DUMPBIN" = x; then
5286    DUMPBIN=":"
5287  else
5288    case $cross_compiling:$ac_tool_warned in
5289yes:)
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292ac_tool_warned=yes ;;
5293esac
5294    DUMPBIN=$ac_ct_DUMPBIN
5295  fi
5296fi
5297
5298    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5299    *COFF*)
5300      DUMPBIN="$DUMPBIN -symbols"
5301      ;;
5302    *)
5303      DUMPBIN=:
5304      ;;
5305    esac
5306  fi
5307
5308  if test "$DUMPBIN" != ":"; then
5309    NM="$DUMPBIN"
5310  fi
5311fi
5312test -z "$NM" && NM=nm
5313
5314
5315
5316
5317
5318
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5320$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5321if ${lt_cv_nm_interface+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  lt_cv_nm_interface="BSD nm"
5325  echo "int some_variable = 0;" > conftest.$ac_ext
5326  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5327  (eval "$ac_compile" 2>conftest.err)
5328  cat conftest.err >&5
5329  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5330  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5331  cat conftest.err >&5
5332  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5333  cat conftest.out >&5
5334  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5335    lt_cv_nm_interface="MS dumpbin"
5336  fi
5337  rm -f conftest*
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5340$as_echo "$lt_cv_nm_interface" >&6; }
5341
5342# find the maximum length of command line arguments
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5344$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5345if ${lt_cv_sys_max_cmd_len+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348    i=0
5349  teststring="ABCD"
5350
5351  case $build_os in
5352  msdosdjgpp*)
5353    # On DJGPP, this test can blow up pretty badly due to problems in libc
5354    # (any single argument exceeding 2000 bytes causes a buffer overrun
5355    # during glob expansion).  Even if it were fixed, the result of this
5356    # check would be larger than it should be.
5357    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5358    ;;
5359
5360  gnu*)
5361    # Under GNU Hurd, this test is not required because there is
5362    # no limit to the length of command line arguments.
5363    # Libtool will interpret -1 as no limit whatsoever
5364    lt_cv_sys_max_cmd_len=-1;
5365    ;;
5366
5367  cygwin* | mingw* | cegcc*)
5368    # On Win9x/ME, this test blows up -- it succeeds, but takes
5369    # about 5 minutes as the teststring grows exponentially.
5370    # Worse, since 9x/ME are not pre-emptively multitasking,
5371    # you end up with a "frozen" computer, even though with patience
5372    # the test eventually succeeds (with a max line length of 256k).
5373    # Instead, let's just punt: use the minimum linelength reported by
5374    # all of the supported platforms: 8192 (on NT/2K/XP).
5375    lt_cv_sys_max_cmd_len=8192;
5376    ;;
5377
5378  mint*)
5379    # On MiNT this can take a long time and run out of memory.
5380    lt_cv_sys_max_cmd_len=8192;
5381    ;;
5382
5383  amigaos*)
5384    # On AmigaOS with pdksh, this test takes hours, literally.
5385    # So we just punt and use a minimum line length of 8192.
5386    lt_cv_sys_max_cmd_len=8192;
5387    ;;
5388
5389  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5390    # This has been around since 386BSD, at least.  Likely further.
5391    if test -x /sbin/sysctl; then
5392      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5393    elif test -x /usr/sbin/sysctl; then
5394      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5395    else
5396      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5397    fi
5398    # And add a safety zone
5399    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5401    ;;
5402
5403  interix*)
5404    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5405    lt_cv_sys_max_cmd_len=196608
5406    ;;
5407
5408  osf*)
5409    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5410    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5411    # nice to cause kernel panics so lets avoid the loop below.
5412    # First set a reasonable default.
5413    lt_cv_sys_max_cmd_len=16384
5414    #
5415    if test -x /sbin/sysconfig; then
5416      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5417        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5418      esac
5419    fi
5420    ;;
5421  sco3.2v5*)
5422    lt_cv_sys_max_cmd_len=102400
5423    ;;
5424  sysv5* | sco5v6* | sysv4.2uw2*)
5425    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5426    if test -n "$kargmax"; then
5427      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5428    else
5429      lt_cv_sys_max_cmd_len=32768
5430    fi
5431    ;;
5432  *)
5433    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5434    if test -n "$lt_cv_sys_max_cmd_len"; then
5435      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5437    else
5438      # Make teststring a little bigger before we do anything with it.
5439      # a 1K string should be a reasonable start.
5440      for i in 1 2 3 4 5 6 7 8 ; do
5441        teststring=$teststring$teststring
5442      done
5443      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5444      # If test is not a shell built-in, we'll probably end up computing a
5445      # maximum length that is only half of the actual maximum length, but
5446      # we can't tell.
5447      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5448	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5449	      test $i != 17 # 1/2 MB should be enough
5450      do
5451        i=`expr $i + 1`
5452        teststring=$teststring$teststring
5453      done
5454      # Only check the string length outside the loop.
5455      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5456      teststring=
5457      # Add a significant safety factor because C++ compilers can tack on
5458      # massive amounts of additional arguments before passing them to the
5459      # linker.  It appears as though 1/2 is a usable value.
5460      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5461    fi
5462    ;;
5463  esac
5464
5465fi
5466
5467if test -n $lt_cv_sys_max_cmd_len ; then
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5469$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5470else
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5472$as_echo "none" >&6; }
5473fi
5474max_cmd_len=$lt_cv_sys_max_cmd_len
5475
5476
5477
5478
5479
5480
5481: ${CP="cp -f"}
5482: ${MV="mv -f"}
5483: ${RM="rm -f"}
5484
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5486$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5487# Try some XSI features
5488xsi_shell=no
5489( _lt_dummy="a/b/c"
5490  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5491      = c,a/b,b/c, \
5492    && eval 'test $(( 1 + 1 )) -eq 2 \
5493    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5494  && xsi_shell=yes
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5496$as_echo "$xsi_shell" >&6; }
5497
5498
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5500$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5501lt_shell_append=no
5502( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5503    >/dev/null 2>&1 \
5504  && lt_shell_append=yes
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5506$as_echo "$lt_shell_append" >&6; }
5507
5508
5509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5510  lt_unset=unset
5511else
5512  lt_unset=false
5513fi
5514
5515
5516
5517
5518
5519# test EBCDIC or ASCII
5520case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523  lt_SP2NL='tr \040 \012'
5524  lt_NL2SP='tr \015\012 \040\040'
5525  ;;
5526 *) # EBCDIC based system
5527  lt_SP2NL='tr \100 \n'
5528  lt_NL2SP='tr \r\n \100\100'
5529  ;;
5530esac
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5541$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5542if ${lt_cv_to_host_file_cmd+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  case $host in
5546  *-*-mingw* )
5547    case $build in
5548      *-*-mingw* ) # actually msys
5549        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5550        ;;
5551      *-*-cygwin* )
5552        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5553        ;;
5554      * ) # otherwise, assume *nix
5555        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5556        ;;
5557    esac
5558    ;;
5559  *-*-cygwin* )
5560    case $build in
5561      *-*-mingw* ) # actually msys
5562        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5563        ;;
5564      *-*-cygwin* )
5565        lt_cv_to_host_file_cmd=func_convert_file_noop
5566        ;;
5567      * ) # otherwise, assume *nix
5568        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5569        ;;
5570    esac
5571    ;;
5572  * ) # unhandled hosts (and "normal" native builds)
5573    lt_cv_to_host_file_cmd=func_convert_file_noop
5574    ;;
5575esac
5576
5577fi
5578
5579to_host_file_cmd=$lt_cv_to_host_file_cmd
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5581$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5582
5583
5584
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5588$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5589if ${lt_cv_to_tool_file_cmd+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  #assume ordinary cross tools, or native build.
5593lt_cv_to_tool_file_cmd=func_convert_file_noop
5594case $host in
5595  *-*-mingw* )
5596    case $build in
5597      *-*-mingw* ) # actually msys
5598        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5599        ;;
5600    esac
5601    ;;
5602esac
5603
5604fi
5605
5606to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5608$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5609
5610
5611
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5615$as_echo_n "checking for $LD option to reload object files... " >&6; }
5616if ${lt_cv_ld_reload_flag+:} false; then :
5617  $as_echo_n "(cached) " >&6
5618else
5619  lt_cv_ld_reload_flag='-r'
5620fi
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5622$as_echo "$lt_cv_ld_reload_flag" >&6; }
5623reload_flag=$lt_cv_ld_reload_flag
5624case $reload_flag in
5625"" | " "*) ;;
5626*) reload_flag=" $reload_flag" ;;
5627esac
5628reload_cmds='$LD$reload_flag -o $output$reload_objs'
5629case $host_os in
5630  cygwin* | mingw* | pw32* | cegcc*)
5631    if test "$GCC" != yes; then
5632      reload_cmds=false
5633    fi
5634    ;;
5635  darwin*)
5636    if test "$GCC" = yes; then
5637      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5638    else
5639      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5640    fi
5641    ;;
5642esac
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652if test -n "$ac_tool_prefix"; then
5653  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5654set dummy ${ac_tool_prefix}objdump; ac_word=$2
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656$as_echo_n "checking for $ac_word... " >&6; }
5657if ${ac_cv_prog_OBJDUMP+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  if test -n "$OBJDUMP"; then
5661  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666  IFS=$as_save_IFS
5667  test -z "$as_dir" && as_dir=.
5668    for ac_exec_ext in '' $ac_executable_extensions; do
5669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672    break 2
5673  fi
5674done
5675  done
5676IFS=$as_save_IFS
5677
5678fi
5679fi
5680OBJDUMP=$ac_cv_prog_OBJDUMP
5681if test -n "$OBJDUMP"; then
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5683$as_echo "$OBJDUMP" >&6; }
5684else
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686$as_echo "no" >&6; }
5687fi
5688
5689
5690fi
5691if test -z "$ac_cv_prog_OBJDUMP"; then
5692  ac_ct_OBJDUMP=$OBJDUMP
5693  # Extract the first word of "objdump", so it can be a program name with args.
5694set dummy objdump; ac_word=$2
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696$as_echo_n "checking for $ac_word... " >&6; }
5697if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700  if test -n "$ac_ct_OBJDUMP"; then
5701  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5702else
5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706  IFS=$as_save_IFS
5707  test -z "$as_dir" && as_dir=.
5708    for ac_exec_ext in '' $ac_executable_extensions; do
5709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712    break 2
5713  fi
5714done
5715  done
5716IFS=$as_save_IFS
5717
5718fi
5719fi
5720ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5721if test -n "$ac_ct_OBJDUMP"; then
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5723$as_echo "$ac_ct_OBJDUMP" >&6; }
5724else
5725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726$as_echo "no" >&6; }
5727fi
5728
5729  if test "x$ac_ct_OBJDUMP" = x; then
5730    OBJDUMP="false"
5731  else
5732    case $cross_compiling:$ac_tool_warned in
5733yes:)
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5736ac_tool_warned=yes ;;
5737esac
5738    OBJDUMP=$ac_ct_OBJDUMP
5739  fi
5740else
5741  OBJDUMP="$ac_cv_prog_OBJDUMP"
5742fi
5743
5744test -z "$OBJDUMP" && OBJDUMP=objdump
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5755$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5756if ${lt_cv_deplibs_check_method+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  lt_cv_file_magic_cmd='$MAGIC_CMD'
5760lt_cv_file_magic_test_file=
5761lt_cv_deplibs_check_method='unknown'
5762# Need to set the preceding variable on all platforms that support
5763# interlibrary dependencies.
5764# 'none' -- dependencies not supported.
5765# `unknown' -- same as none, but documents that we really don't know.
5766# 'pass_all' -- all dependencies passed with no checks.
5767# 'test_compile' -- check by making test program.
5768# 'file_magic [[regex]]' -- check by looking for files in library path
5769# which responds to the $file_magic_cmd with a given extended regex.
5770# If you have `file' or equivalent on your system and you're not sure
5771# whether `pass_all' will *always* work, you probably want this one.
5772
5773case $host_os in
5774aix[4-9]*)
5775  lt_cv_deplibs_check_method=pass_all
5776  ;;
5777
5778beos*)
5779  lt_cv_deplibs_check_method=pass_all
5780  ;;
5781
5782bsdi[45]*)
5783  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5784  lt_cv_file_magic_cmd='/usr/bin/file -L'
5785  lt_cv_file_magic_test_file=/shlib/libc.so
5786  ;;
5787
5788cygwin*)
5789  # func_win32_libid is a shell function defined in ltmain.sh
5790  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5791  lt_cv_file_magic_cmd='func_win32_libid'
5792  ;;
5793
5794mingw* | pw32*)
5795  # Base MSYS/MinGW do not provide the 'file' command needed by
5796  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5797  # unless we find 'file', for example because we are cross-compiling.
5798  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5799  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5800    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5801    lt_cv_file_magic_cmd='func_win32_libid'
5802  else
5803    # Keep this pattern in sync with the one in func_win32_libid.
5804    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5805    lt_cv_file_magic_cmd='$OBJDUMP -f'
5806  fi
5807  ;;
5808
5809cegcc*)
5810  # use the weaker test based on 'objdump'. See mingw*.
5811  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5812  lt_cv_file_magic_cmd='$OBJDUMP -f'
5813  ;;
5814
5815darwin* | rhapsody*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818
5819freebsd* | dragonfly*)
5820  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5821    case $host_cpu in
5822    i*86 )
5823      # Not sure whether the presence of OpenBSD here was a mistake.
5824      # Let's accept both of them until this is cleared up.
5825      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5826      lt_cv_file_magic_cmd=/usr/bin/file
5827      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5828      ;;
5829    esac
5830  else
5831    lt_cv_deplibs_check_method=pass_all
5832  fi
5833  ;;
5834
5835gnu*)
5836  lt_cv_deplibs_check_method=pass_all
5837  ;;
5838
5839haiku*)
5840  lt_cv_deplibs_check_method=pass_all
5841  ;;
5842
5843hpux10.20* | hpux11*)
5844  lt_cv_file_magic_cmd=/usr/bin/file
5845  case $host_cpu in
5846  ia64*)
5847    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5848    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5849    ;;
5850  hppa*64*)
5851    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]'
5852    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5853    ;;
5854  *)
5855    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5856    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5857    ;;
5858  esac
5859  ;;
5860
5861interix[3-9]*)
5862  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5863  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5864  ;;
5865
5866irix5* | irix6* | nonstopux*)
5867  case $LD in
5868  *-32|*"-32 ") libmagic=32-bit;;
5869  *-n32|*"-n32 ") libmagic=N32;;
5870  *-64|*"-64 ") libmagic=64-bit;;
5871  *) libmagic=never-match;;
5872  esac
5873  lt_cv_deplibs_check_method=pass_all
5874  ;;
5875
5876# This must be Linux ELF.
5877linux* | k*bsd*-gnu | kopensolaris*-gnu)
5878  lt_cv_deplibs_check_method=pass_all
5879  ;;
5880
5881netbsd*)
5882  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5883    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5884  else
5885    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5886  fi
5887  ;;
5888
5889newos6*)
5890  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5891  lt_cv_file_magic_cmd=/usr/bin/file
5892  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5893  ;;
5894
5895*nto* | *qnx*)
5896  lt_cv_deplibs_check_method=pass_all
5897  ;;
5898
5899openbsd*)
5900  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5901    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5902  else
5903    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5904  fi
5905  ;;
5906
5907osf3* | osf4* | osf5*)
5908  lt_cv_deplibs_check_method=pass_all
5909  ;;
5910
5911rdos*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915solaris*)
5916  lt_cv_deplibs_check_method=pass_all
5917  ;;
5918
5919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5920  lt_cv_deplibs_check_method=pass_all
5921  ;;
5922
5923sysv4 | sysv4.3*)
5924  case $host_vendor in
5925  motorola)
5926    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]'
5927    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5928    ;;
5929  ncr)
5930    lt_cv_deplibs_check_method=pass_all
5931    ;;
5932  sequent)
5933    lt_cv_file_magic_cmd='/bin/file'
5934    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5935    ;;
5936  sni)
5937    lt_cv_file_magic_cmd='/bin/file'
5938    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5939    lt_cv_file_magic_test_file=/lib/libc.so
5940    ;;
5941  siemens)
5942    lt_cv_deplibs_check_method=pass_all
5943    ;;
5944  pc)
5945    lt_cv_deplibs_check_method=pass_all
5946    ;;
5947  esac
5948  ;;
5949
5950tpf*)
5951  lt_cv_deplibs_check_method=pass_all
5952  ;;
5953esac
5954
5955fi
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5957$as_echo "$lt_cv_deplibs_check_method" >&6; }
5958
5959file_magic_glob=
5960want_nocaseglob=no
5961if test "$build" = "$host"; then
5962  case $host_os in
5963  mingw* | pw32*)
5964    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5965      want_nocaseglob=yes
5966    else
5967      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5968    fi
5969    ;;
5970  esac
5971fi
5972
5973file_magic_cmd=$lt_cv_file_magic_cmd
5974deplibs_check_method=$lt_cv_deplibs_check_method
5975test -z "$deplibs_check_method" && deplibs_check_method=unknown
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998if test -n "$ac_tool_prefix"; then
5999  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6000set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
6003if ${ac_cv_prog_DLLTOOL+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  if test -n "$DLLTOOL"; then
6007  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012  IFS=$as_save_IFS
6013  test -z "$as_dir" && as_dir=.
6014    for ac_exec_ext in '' $ac_executable_extensions; do
6015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018    break 2
6019  fi
6020done
6021  done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026DLLTOOL=$ac_cv_prog_DLLTOOL
6027if test -n "$DLLTOOL"; then
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6029$as_echo "$DLLTOOL" >&6; }
6030else
6031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035
6036fi
6037if test -z "$ac_cv_prog_DLLTOOL"; then
6038  ac_ct_DLLTOOL=$DLLTOOL
6039  # Extract the first word of "dlltool", so it can be a program name with args.
6040set dummy dlltool; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if test -n "$ac_ct_DLLTOOL"; then
6047  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052  IFS=$as_save_IFS
6053  test -z "$as_dir" && as_dir=.
6054    for ac_exec_ext in '' $ac_executable_extensions; do
6055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058    break 2
6059  fi
6060done
6061  done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6067if test -n "$ac_ct_DLLTOOL"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6069$as_echo "$ac_ct_DLLTOOL" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075  if test "x$ac_ct_DLLTOOL" = x; then
6076    DLLTOOL="false"
6077  else
6078    case $cross_compiling:$ac_tool_warned in
6079yes:)
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082ac_tool_warned=yes ;;
6083esac
6084    DLLTOOL=$ac_ct_DLLTOOL
6085  fi
6086else
6087  DLLTOOL="$ac_cv_prog_DLLTOOL"
6088fi
6089
6090test -z "$DLLTOOL" && DLLTOOL=dlltool
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6102$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6103if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  lt_cv_sharedlib_from_linklib_cmd='unknown'
6107
6108case $host_os in
6109cygwin* | mingw* | pw32* | cegcc*)
6110  # two different shell functions defined in ltmain.sh
6111  # decide which to use based on capabilities of $DLLTOOL
6112  case `$DLLTOOL --help 2>&1` in
6113  *--identify-strict*)
6114    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6115    ;;
6116  *)
6117    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6118    ;;
6119  esac
6120  ;;
6121*)
6122  # fallback: assume linklib IS sharedlib
6123  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6124  ;;
6125esac
6126
6127fi
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6129$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6130sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6131test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6132
6133
6134
6135
6136
6137
6138
6139if test -n "$ac_tool_prefix"; then
6140  for ac_prog in ar
6141  do
6142    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145$as_echo_n "checking for $ac_word... " >&6; }
6146if ${ac_cv_prog_AR+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  if test -n "$AR"; then
6150  ac_cv_prog_AR="$AR" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155  IFS=$as_save_IFS
6156  test -z "$as_dir" && as_dir=.
6157    for ac_exec_ext in '' $ac_executable_extensions; do
6158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161    break 2
6162  fi
6163done
6164  done
6165IFS=$as_save_IFS
6166
6167fi
6168fi
6169AR=$ac_cv_prog_AR
6170if test -n "$AR"; then
6171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6172$as_echo "$AR" >&6; }
6173else
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175$as_echo "no" >&6; }
6176fi
6177
6178
6179    test -n "$AR" && break
6180  done
6181fi
6182if test -z "$AR"; then
6183  ac_ct_AR=$AR
6184  for ac_prog in ar
6185do
6186  # Extract the first word of "$ac_prog", so it can be a program name with args.
6187set dummy $ac_prog; ac_word=$2
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189$as_echo_n "checking for $ac_word... " >&6; }
6190if ${ac_cv_prog_ac_ct_AR+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  if test -n "$ac_ct_AR"; then
6194  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6195else
6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199  IFS=$as_save_IFS
6200  test -z "$as_dir" && as_dir=.
6201    for ac_exec_ext in '' $ac_executable_extensions; do
6202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203    ac_cv_prog_ac_ct_AR="$ac_prog"
6204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205    break 2
6206  fi
6207done
6208  done
6209IFS=$as_save_IFS
6210
6211fi
6212fi
6213ac_ct_AR=$ac_cv_prog_ac_ct_AR
6214if test -n "$ac_ct_AR"; then
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6216$as_echo "$ac_ct_AR" >&6; }
6217else
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219$as_echo "no" >&6; }
6220fi
6221
6222
6223  test -n "$ac_ct_AR" && break
6224done
6225
6226  if test "x$ac_ct_AR" = x; then
6227    AR="false"
6228  else
6229    case $cross_compiling:$ac_tool_warned in
6230yes:)
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6233ac_tool_warned=yes ;;
6234esac
6235    AR=$ac_ct_AR
6236  fi
6237fi
6238
6239: ${AR=ar}
6240: ${AR_FLAGS=cru}
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6253$as_echo_n "checking for archiver @FILE support... " >&6; }
6254if ${lt_cv_ar_at_file+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  lt_cv_ar_at_file=no
6258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h.  */
6260
6261int
6262main ()
6263{
6264
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_compile "$LINENO"; then :
6270  echo conftest.$ac_objext > conftest.lst
6271      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
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" -eq 0; then
6278	# Ensure the archiver fails upon bogus file names.
6279	rm -f conftest.$ac_objext libconftest.a
6280	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6281  (eval $lt_ar_try) 2>&5
6282  ac_status=$?
6283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284  test $ac_status = 0; }
6285	if test "$ac_status" -ne 0; then
6286          lt_cv_ar_at_file=@
6287        fi
6288      fi
6289      rm -f conftest.* libconftest.a
6290
6291fi
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6296$as_echo "$lt_cv_ar_at_file" >&6; }
6297
6298if test "x$lt_cv_ar_at_file" = xno; then
6299  archiver_list_spec=
6300else
6301  archiver_list_spec=$lt_cv_ar_at_file
6302fi
6303
6304
6305
6306
6307
6308
6309
6310if test -n "$ac_tool_prefix"; then
6311  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6312set dummy ${ac_tool_prefix}strip; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
6315if ${ac_cv_prog_STRIP+:} false; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  if test -n "$STRIP"; then
6319  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324  IFS=$as_save_IFS
6325  test -z "$as_dir" && as_dir=.
6326    for ac_exec_ext in '' $ac_executable_extensions; do
6327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330    break 2
6331  fi
6332done
6333  done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338STRIP=$ac_cv_prog_STRIP
6339if test -n "$STRIP"; then
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6341$as_echo "$STRIP" >&6; }
6342else
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347
6348fi
6349if test -z "$ac_cv_prog_STRIP"; then
6350  ac_ct_STRIP=$STRIP
6351  # Extract the first word of "strip", so it can be a program name with args.
6352set dummy strip; ac_word=$2
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354$as_echo_n "checking for $ac_word... " >&6; }
6355if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  if test -n "$ac_ct_STRIP"; then
6359  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364  IFS=$as_save_IFS
6365  test -z "$as_dir" && as_dir=.
6366    for ac_exec_ext in '' $ac_executable_extensions; do
6367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368    ac_cv_prog_ac_ct_STRIP="strip"
6369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370    break 2
6371  fi
6372done
6373  done
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6379if test -n "$ac_ct_STRIP"; then
6380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6381$as_echo "$ac_ct_STRIP" >&6; }
6382else
6383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384$as_echo "no" >&6; }
6385fi
6386
6387  if test "x$ac_ct_STRIP" = x; then
6388    STRIP=":"
6389  else
6390    case $cross_compiling:$ac_tool_warned in
6391yes:)
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6394ac_tool_warned=yes ;;
6395esac
6396    STRIP=$ac_ct_STRIP
6397  fi
6398else
6399  STRIP="$ac_cv_prog_STRIP"
6400fi
6401
6402test -z "$STRIP" && STRIP=:
6403
6404
6405
6406
6407
6408
6409if test -n "$ac_tool_prefix"; then
6410  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413$as_echo_n "checking for $ac_word... " >&6; }
6414if ${ac_cv_prog_RANLIB+:} false; then :
6415  $as_echo_n "(cached) " >&6
6416else
6417  if test -n "$RANLIB"; then
6418  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6419else
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423  IFS=$as_save_IFS
6424  test -z "$as_dir" && as_dir=.
6425    for ac_exec_ext in '' $ac_executable_extensions; do
6426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429    break 2
6430  fi
6431done
6432  done
6433IFS=$as_save_IFS
6434
6435fi
6436fi
6437RANLIB=$ac_cv_prog_RANLIB
6438if test -n "$RANLIB"; then
6439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6440$as_echo "$RANLIB" >&6; }
6441else
6442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443$as_echo "no" >&6; }
6444fi
6445
6446
6447fi
6448if test -z "$ac_cv_prog_RANLIB"; then
6449  ac_ct_RANLIB=$RANLIB
6450  # Extract the first word of "ranlib", so it can be a program name with args.
6451set dummy ranlib; ac_word=$2
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453$as_echo_n "checking for $ac_word... " >&6; }
6454if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6455  $as_echo_n "(cached) " >&6
6456else
6457  if test -n "$ac_ct_RANLIB"; then
6458  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6459else
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463  IFS=$as_save_IFS
6464  test -z "$as_dir" && as_dir=.
6465    for ac_exec_ext in '' $ac_executable_extensions; do
6466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467    ac_cv_prog_ac_ct_RANLIB="ranlib"
6468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469    break 2
6470  fi
6471done
6472  done
6473IFS=$as_save_IFS
6474
6475fi
6476fi
6477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6478if test -n "$ac_ct_RANLIB"; then
6479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6480$as_echo "$ac_ct_RANLIB" >&6; }
6481else
6482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486  if test "x$ac_ct_RANLIB" = x; then
6487    RANLIB=":"
6488  else
6489    case $cross_compiling:$ac_tool_warned in
6490yes:)
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493ac_tool_warned=yes ;;
6494esac
6495    RANLIB=$ac_ct_RANLIB
6496  fi
6497else
6498  RANLIB="$ac_cv_prog_RANLIB"
6499fi
6500
6501test -z "$RANLIB" && RANLIB=:
6502
6503
6504
6505
6506
6507
6508# Determine commands to create old-style static archives.
6509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6510old_postinstall_cmds='chmod 644 $oldlib'
6511old_postuninstall_cmds=
6512
6513if test -n "$RANLIB"; then
6514  case $host_os in
6515  openbsd*)
6516    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6517    ;;
6518  *)
6519    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6520    ;;
6521  esac
6522  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6523fi
6524
6525case $host_os in
6526  darwin*)
6527    lock_old_archive_extraction=yes ;;
6528  *)
6529    lock_old_archive_extraction=no ;;
6530esac
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
6563
6564
6565
6566
6567
6568
6569
6570# If no C compiler was specified, use CC.
6571LTCC=${LTCC-"$CC"}
6572
6573# If no C compiler flags were specified, use CFLAGS.
6574LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6575
6576# Allow CC to be a program name with arguments.
6577compiler=$CC
6578
6579
6580# Check for command to grab the raw symbol name followed by C symbol from nm.
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6582$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6583if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586
6587# These are sane defaults that work on at least a few old systems.
6588# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6589
6590# Character class describing NM global symbol codes.
6591symcode='[BCDEGRST]'
6592
6593# Regexp to match symbols that can be accessed directly from C.
6594sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6595
6596# Define system-specific variables.
6597case $host_os in
6598aix*)
6599  symcode='[BCDT]'
6600  ;;
6601cygwin* | mingw* | pw32* | cegcc*)
6602  symcode='[ABCDGISTW]'
6603  ;;
6604hpux*)
6605  if test "$host_cpu" = ia64; then
6606    symcode='[ABCDEGRST]'
6607  fi
6608  ;;
6609irix* | nonstopux*)
6610  symcode='[BCDEGRST]'
6611  ;;
6612osf*)
6613  symcode='[BCDEGQRST]'
6614  ;;
6615solaris*)
6616  symcode='[BDRT]'
6617  ;;
6618sco3.2v5*)
6619  symcode='[DT]'
6620  ;;
6621sysv4.2uw2*)
6622  symcode='[DT]'
6623  ;;
6624sysv5* | sco5v6* | unixware* | OpenUNIX*)
6625  symcode='[ABDT]'
6626  ;;
6627sysv4)
6628  symcode='[DFNSTU]'
6629  ;;
6630esac
6631
6632# If we're using GNU nm, then use its standard symbol codes.
6633case `$NM -V 2>&1` in
6634*GNU* | *'with BFD'*)
6635  symcode='[ABCDGIRSTW]' ;;
6636esac
6637
6638# Transform an extracted symbol line into a proper C declaration.
6639# Some systems (esp. on ia64) link data and code symbols differently,
6640# so use this general approach.
6641lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6642
6643# Transform an extracted symbol line into symbol name and symbol address
6644lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6645lt_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'"
6646
6647# Handle CRLF in mingw tool chain
6648opt_cr=
6649case $build_os in
6650mingw*)
6651  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6652  ;;
6653esac
6654
6655# Try without a prefix underscore, then with it.
6656for ac_symprfx in "" "_"; do
6657
6658  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6659  symxfrm="\\1 $ac_symprfx\\2 \\2"
6660
6661  # Write the raw and C identifiers.
6662  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6663    # Fake it for dumpbin and say T for any non-static function
6664    # and D for any global variable.
6665    # Also find C++ and __fastcall symbols from MSVC++,
6666    # which start with @ or ?.
6667    lt_cv_sys_global_symbol_pipe="$AWK '"\
6668"     {last_section=section; section=\$ 3};"\
6669"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6670"     \$ 0!~/External *\|/{next};"\
6671"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6672"     {if(hide[section]) next};"\
6673"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6674"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6675"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6676"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6677"     ' prfx=^$ac_symprfx"
6678  else
6679    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6680  fi
6681  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6682
6683  # Check to see that the pipe works correctly.
6684  pipe_works=no
6685
6686  rm -f conftest*
6687  cat > conftest.$ac_ext <<_LT_EOF
6688#ifdef __cplusplus
6689extern "C" {
6690#endif
6691char nm_test_var;
6692void nm_test_func(void);
6693void nm_test_func(void){}
6694#ifdef __cplusplus
6695}
6696#endif
6697int main(){nm_test_var='a';nm_test_func();return(0);}
6698_LT_EOF
6699
6700  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6701  (eval $ac_compile) 2>&5
6702  ac_status=$?
6703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704  test $ac_status = 0; }; then
6705    # Now try to grab the symbols.
6706    nlist=conftest.nm
6707    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6708  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6709  ac_status=$?
6710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6711  test $ac_status = 0; } && test -s "$nlist"; then
6712      # Try sorting and uniquifying the output.
6713      if sort "$nlist" | uniq > "$nlist"T; then
6714	mv -f "$nlist"T "$nlist"
6715      else
6716	rm -f "$nlist"T
6717      fi
6718
6719      # Make sure that we snagged all the symbols we need.
6720      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6721	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6722	  cat <<_LT_EOF > conftest.$ac_ext
6723/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6724#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6725/* DATA imports from DLLs on WIN32 con't be const, because runtime
6726   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6727# define LT_DLSYM_CONST
6728#elif defined(__osf__)
6729/* This system does not cope well with relocations in const data.  */
6730# define LT_DLSYM_CONST
6731#else
6732# define LT_DLSYM_CONST const
6733#endif
6734
6735#ifdef __cplusplus
6736extern "C" {
6737#endif
6738
6739_LT_EOF
6740	  # Now generate the symbol file.
6741	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6742
6743	  cat <<_LT_EOF >> conftest.$ac_ext
6744
6745/* The mapping between symbol names and symbols.  */
6746LT_DLSYM_CONST struct {
6747  const char *name;
6748  void       *address;
6749}
6750lt__PROGRAM__LTX_preloaded_symbols[] =
6751{
6752  { "@PROGRAM@", (void *) 0 },
6753_LT_EOF
6754	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6755	  cat <<\_LT_EOF >> conftest.$ac_ext
6756  {0, (void *) 0}
6757};
6758
6759/* This works around a problem in FreeBSD linker */
6760#ifdef FREEBSD_WORKAROUND
6761static const void *lt_preloaded_setup() {
6762  return lt__PROGRAM__LTX_preloaded_symbols;
6763}
6764#endif
6765
6766#ifdef __cplusplus
6767}
6768#endif
6769_LT_EOF
6770	  # Now try linking the two files.
6771	  mv conftest.$ac_objext conftstm.$ac_objext
6772	  lt_globsym_save_LIBS=$LIBS
6773	  lt_globsym_save_CFLAGS=$CFLAGS
6774	  LIBS="conftstm.$ac_objext"
6775	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6776	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6777  (eval $ac_link) 2>&5
6778  ac_status=$?
6779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6781	    pipe_works=yes
6782	  fi
6783	  LIBS=$lt_globsym_save_LIBS
6784	  CFLAGS=$lt_globsym_save_CFLAGS
6785	else
6786	  echo "cannot find nm_test_func in $nlist" >&5
6787	fi
6788      else
6789	echo "cannot find nm_test_var in $nlist" >&5
6790      fi
6791    else
6792      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6793    fi
6794  else
6795    echo "$progname: failed program was:" >&5
6796    cat conftest.$ac_ext >&5
6797  fi
6798  rm -rf conftest* conftst*
6799
6800  # Do not use the global_symbol_pipe unless it works.
6801  if test "$pipe_works" = yes; then
6802    break
6803  else
6804    lt_cv_sys_global_symbol_pipe=
6805  fi
6806done
6807
6808fi
6809
6810if test -z "$lt_cv_sys_global_symbol_pipe"; then
6811  lt_cv_sys_global_symbol_to_cdecl=
6812fi
6813if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6815$as_echo "failed" >&6; }
6816else
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6818$as_echo "ok" >&6; }
6819fi
6820
6821# Response file support.
6822if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6823  nm_file_list_spec='@'
6824elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6825  nm_file_list_spec='@'
6826fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6855$as_echo_n "checking for sysroot... " >&6; }
6856
6857# Check whether --with-sysroot was given.
6858if test "${with_sysroot+set}" = set; then :
6859  withval=$with_sysroot;
6860else
6861  with_sysroot=no
6862fi
6863
6864
6865lt_sysroot=
6866case ${with_sysroot} in #(
6867 yes)
6868   if test "$GCC" = yes; then
6869     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6870   fi
6871   ;; #(
6872 /*)
6873   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6874   ;; #(
6875 no|'')
6876   ;; #(
6877 *)
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6879$as_echo "${with_sysroot}" >&6; }
6880   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6881   ;;
6882esac
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6885$as_echo "${lt_sysroot:-no}" >&6; }
6886
6887
6888
6889
6890
6891# Check whether --enable-libtool-lock was given.
6892if test "${enable_libtool_lock+set}" = set; then :
6893  enableval=$enable_libtool_lock;
6894fi
6895
6896test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6897
6898# Some flags need to be propagated to the compiler or linker for good
6899# libtool support.
6900case $host in
6901ia64-*-hpux*)
6902  # Find out which ABI we are using.
6903  echo 'int i;' > conftest.$ac_ext
6904  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905  (eval $ac_compile) 2>&5
6906  ac_status=$?
6907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908  test $ac_status = 0; }; then
6909    case `/usr/bin/file conftest.$ac_objext` in
6910      *ELF-32*)
6911	HPUX_IA64_MODE="32"
6912	;;
6913      *ELF-64*)
6914	HPUX_IA64_MODE="64"
6915	;;
6916    esac
6917  fi
6918  rm -rf conftest*
6919  ;;
6920*-*-irix6*)
6921  # Find out which ABI we are using.
6922  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6923  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6924  (eval $ac_compile) 2>&5
6925  ac_status=$?
6926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927  test $ac_status = 0; }; then
6928    if test "$lt_cv_prog_gnu_ld" = yes; then
6929      case `/usr/bin/file conftest.$ac_objext` in
6930	*32-bit*)
6931	  LD="${LD-ld} -melf32bsmip"
6932	  ;;
6933	*N32*)
6934	  LD="${LD-ld} -melf32bmipn32"
6935	  ;;
6936	*64-bit*)
6937	  LD="${LD-ld} -melf64bmip"
6938	;;
6939      esac
6940    else
6941      case `/usr/bin/file conftest.$ac_objext` in
6942	*32-bit*)
6943	  LD="${LD-ld} -32"
6944	  ;;
6945	*N32*)
6946	  LD="${LD-ld} -n32"
6947	  ;;
6948	*64-bit*)
6949	  LD="${LD-ld} -64"
6950	  ;;
6951      esac
6952    fi
6953  fi
6954  rm -rf conftest*
6955  ;;
6956
6957x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6958s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6959  # Find out which ABI we are using.
6960  echo 'int i;' > conftest.$ac_ext
6961  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6962  (eval $ac_compile) 2>&5
6963  ac_status=$?
6964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965  test $ac_status = 0; }; then
6966    case `/usr/bin/file conftest.o` in
6967      *32-bit*)
6968	case $host in
6969	  x86_64-*kfreebsd*-gnu)
6970	    LD="${LD-ld} -m elf_i386_fbsd"
6971	    ;;
6972	  x86_64-*linux*)
6973	    LD="${LD-ld} -m elf_i386"
6974	    ;;
6975	  ppc64-*linux*|powerpc64-*linux*)
6976	    LD="${LD-ld} -m elf32ppclinux"
6977	    ;;
6978	  s390x-*linux*)
6979	    LD="${LD-ld} -m elf_s390"
6980	    ;;
6981	  sparc64-*linux*)
6982	    LD="${LD-ld} -m elf32_sparc"
6983	    ;;
6984	esac
6985	;;
6986      *64-bit*)
6987	case $host in
6988	  x86_64-*kfreebsd*-gnu)
6989	    LD="${LD-ld} -m elf_x86_64_fbsd"
6990	    ;;
6991	  x86_64-*linux*)
6992	    LD="${LD-ld} -m elf_x86_64"
6993	    ;;
6994	  ppc*-*linux*|powerpc*-*linux*)
6995	    LD="${LD-ld} -m elf64ppc"
6996	    ;;
6997	  s390*-*linux*|s390*-*tpf*)
6998	    LD="${LD-ld} -m elf64_s390"
6999	    ;;
7000	  sparc*-*linux*)
7001	    LD="${LD-ld} -m elf64_sparc"
7002	    ;;
7003	esac
7004	;;
7005    esac
7006  fi
7007  rm -rf conftest*
7008  ;;
7009
7010*-*-sco3.2v5*)
7011  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7012  SAVE_CFLAGS="$CFLAGS"
7013  CFLAGS="$CFLAGS -belf"
7014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7015$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7016if ${lt_cv_cc_needs_belf+:} false; then :
7017  $as_echo_n "(cached) " >&6
7018else
7019  ac_ext=c
7020ac_cpp='$CPP $CPPFLAGS'
7021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
7025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026/* end confdefs.h.  */
7027
7028int
7029main ()
7030{
7031
7032  ;
7033  return 0;
7034}
7035_ACEOF
7036if ac_fn_c_try_link "$LINENO"; then :
7037  lt_cv_cc_needs_belf=yes
7038else
7039  lt_cv_cc_needs_belf=no
7040fi
7041rm -f core conftest.err conftest.$ac_objext \
7042    conftest$ac_exeext conftest.$ac_ext
7043     ac_ext=c
7044ac_cpp='$CPP $CPPFLAGS'
7045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048
7049fi
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7051$as_echo "$lt_cv_cc_needs_belf" >&6; }
7052  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7053    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7054    CFLAGS="$SAVE_CFLAGS"
7055  fi
7056  ;;
7057sparc*-*solaris*)
7058  # Find out which ABI we are using.
7059  echo 'int i;' > conftest.$ac_ext
7060  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7061  (eval $ac_compile) 2>&5
7062  ac_status=$?
7063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064  test $ac_status = 0; }; then
7065    case `/usr/bin/file conftest.o` in
7066    *64-bit*)
7067      case $lt_cv_prog_gnu_ld in
7068      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7069      *)
7070	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7071	  LD="${LD-ld} -64"
7072	fi
7073	;;
7074      esac
7075      ;;
7076    esac
7077  fi
7078  rm -rf conftest*
7079  ;;
7080esac
7081
7082need_locks="$enable_libtool_lock"
7083
7084if test -n "$ac_tool_prefix"; then
7085  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7086set dummy ${ac_tool_prefix}mt; ac_word=$2
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088$as_echo_n "checking for $ac_word... " >&6; }
7089if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  if test -n "$MANIFEST_TOOL"; then
7093  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098  IFS=$as_save_IFS
7099  test -z "$as_dir" && as_dir=.
7100    for ac_exec_ext in '' $ac_executable_extensions; do
7101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104    break 2
7105  fi
7106done
7107  done
7108IFS=$as_save_IFS
7109
7110fi
7111fi
7112MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7113if test -n "$MANIFEST_TOOL"; then
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7115$as_echo "$MANIFEST_TOOL" >&6; }
7116else
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118$as_echo "no" >&6; }
7119fi
7120
7121
7122fi
7123if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7124  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7125  # Extract the first word of "mt", so it can be a program name with args.
7126set dummy mt; ac_word=$2
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128$as_echo_n "checking for $ac_word... " >&6; }
7129if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  if test -n "$ac_ct_MANIFEST_TOOL"; then
7133  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138  IFS=$as_save_IFS
7139  test -z "$as_dir" && as_dir=.
7140    for ac_exec_ext in '' $ac_executable_extensions; do
7141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144    break 2
7145  fi
7146done
7147  done
7148IFS=$as_save_IFS
7149
7150fi
7151fi
7152ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7153if test -n "$ac_ct_MANIFEST_TOOL"; then
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7155$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7156else
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158$as_echo "no" >&6; }
7159fi
7160
7161  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7162    MANIFEST_TOOL=":"
7163  else
7164    case $cross_compiling:$ac_tool_warned in
7165yes:)
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168ac_tool_warned=yes ;;
7169esac
7170    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7171  fi
7172else
7173  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7174fi
7175
7176test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7178$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7179if ${lt_cv_path_mainfest_tool+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  lt_cv_path_mainfest_tool=no
7183  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7184  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7185  cat conftest.err >&5
7186  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7187    lt_cv_path_mainfest_tool=yes
7188  fi
7189  rm -f conftest*
7190fi
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7192$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7193if test "x$lt_cv_path_mainfest_tool" != xyes; then
7194  MANIFEST_TOOL=:
7195fi
7196
7197
7198
7199
7200
7201
7202  case $host_os in
7203    rhapsody* | darwin*)
7204    if test -n "$ac_tool_prefix"; then
7205  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7206set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208$as_echo_n "checking for $ac_word... " >&6; }
7209if ${ac_cv_prog_DSYMUTIL+:} false; then :
7210  $as_echo_n "(cached) " >&6
7211else
7212  if test -n "$DSYMUTIL"; then
7213  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7214else
7215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218  IFS=$as_save_IFS
7219  test -z "$as_dir" && as_dir=.
7220    for ac_exec_ext in '' $ac_executable_extensions; do
7221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224    break 2
7225  fi
7226done
7227  done
7228IFS=$as_save_IFS
7229
7230fi
7231fi
7232DSYMUTIL=$ac_cv_prog_DSYMUTIL
7233if test -n "$DSYMUTIL"; then
7234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7235$as_echo "$DSYMUTIL" >&6; }
7236else
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238$as_echo "no" >&6; }
7239fi
7240
7241
7242fi
7243if test -z "$ac_cv_prog_DSYMUTIL"; then
7244  ac_ct_DSYMUTIL=$DSYMUTIL
7245  # Extract the first word of "dsymutil", so it can be a program name with args.
7246set dummy dsymutil; ac_word=$2
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248$as_echo_n "checking for $ac_word... " >&6; }
7249if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  if test -n "$ac_ct_DSYMUTIL"; then
7253  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7254else
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258  IFS=$as_save_IFS
7259  test -z "$as_dir" && as_dir=.
7260    for ac_exec_ext in '' $ac_executable_extensions; do
7261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264    break 2
7265  fi
7266done
7267  done
7268IFS=$as_save_IFS
7269
7270fi
7271fi
7272ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7273if test -n "$ac_ct_DSYMUTIL"; then
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7275$as_echo "$ac_ct_DSYMUTIL" >&6; }
7276else
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278$as_echo "no" >&6; }
7279fi
7280
7281  if test "x$ac_ct_DSYMUTIL" = x; then
7282    DSYMUTIL=":"
7283  else
7284    case $cross_compiling:$ac_tool_warned in
7285yes:)
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288ac_tool_warned=yes ;;
7289esac
7290    DSYMUTIL=$ac_ct_DSYMUTIL
7291  fi
7292else
7293  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7294fi
7295
7296    if test -n "$ac_tool_prefix"; then
7297  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7298set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if ${ac_cv_prog_NMEDIT+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  if test -n "$NMEDIT"; then
7305  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310  IFS=$as_save_IFS
7311  test -z "$as_dir" && as_dir=.
7312    for ac_exec_ext in '' $ac_executable_extensions; do
7313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7314    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316    break 2
7317  fi
7318done
7319  done
7320IFS=$as_save_IFS
7321
7322fi
7323fi
7324NMEDIT=$ac_cv_prog_NMEDIT
7325if test -n "$NMEDIT"; then
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7327$as_echo "$NMEDIT" >&6; }
7328else
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333
7334fi
7335if test -z "$ac_cv_prog_NMEDIT"; then
7336  ac_ct_NMEDIT=$NMEDIT
7337  # Extract the first word of "nmedit", so it can be a program name with args.
7338set dummy nmedit; ac_word=$2
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340$as_echo_n "checking for $ac_word... " >&6; }
7341if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  if test -n "$ac_ct_NMEDIT"; then
7345  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352    for ac_exec_ext in '' $ac_executable_extensions; do
7353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359  done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7365if test -n "$ac_ct_NMEDIT"; then
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7367$as_echo "$ac_ct_NMEDIT" >&6; }
7368else
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370$as_echo "no" >&6; }
7371fi
7372
7373  if test "x$ac_ct_NMEDIT" = x; then
7374    NMEDIT=":"
7375  else
7376    case $cross_compiling:$ac_tool_warned in
7377yes:)
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7380ac_tool_warned=yes ;;
7381esac
7382    NMEDIT=$ac_ct_NMEDIT
7383  fi
7384else
7385  NMEDIT="$ac_cv_prog_NMEDIT"
7386fi
7387
7388    if test -n "$ac_tool_prefix"; then
7389  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7390set dummy ${ac_tool_prefix}lipo; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if ${ac_cv_prog_LIPO+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  if test -n "$LIPO"; then
7397  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402  IFS=$as_save_IFS
7403  test -z "$as_dir" && as_dir=.
7404    for ac_exec_ext in '' $ac_executable_extensions; do
7405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408    break 2
7409  fi
7410done
7411  done
7412IFS=$as_save_IFS
7413
7414fi
7415fi
7416LIPO=$ac_cv_prog_LIPO
7417if test -n "$LIPO"; then
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7419$as_echo "$LIPO" >&6; }
7420else
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423fi
7424
7425
7426fi
7427if test -z "$ac_cv_prog_LIPO"; then
7428  ac_ct_LIPO=$LIPO
7429  # Extract the first word of "lipo", so it can be a program name with args.
7430set dummy lipo; ac_word=$2
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432$as_echo_n "checking for $ac_word... " >&6; }
7433if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  if test -n "$ac_ct_LIPO"; then
7437  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444    for ac_exec_ext in '' $ac_executable_extensions; do
7445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446    ac_cv_prog_ac_ct_LIPO="lipo"
7447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451  done
7452IFS=$as_save_IFS
7453
7454fi
7455fi
7456ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7457if test -n "$ac_ct_LIPO"; then
7458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7459$as_echo "$ac_ct_LIPO" >&6; }
7460else
7461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463fi
7464
7465  if test "x$ac_ct_LIPO" = x; then
7466    LIPO=":"
7467  else
7468    case $cross_compiling:$ac_tool_warned in
7469yes:)
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472ac_tool_warned=yes ;;
7473esac
7474    LIPO=$ac_ct_LIPO
7475  fi
7476else
7477  LIPO="$ac_cv_prog_LIPO"
7478fi
7479
7480    if test -n "$ac_tool_prefix"; then
7481  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7482set dummy ${ac_tool_prefix}otool; ac_word=$2
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if ${ac_cv_prog_OTOOL+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  if test -n "$OTOOL"; then
7489  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494  IFS=$as_save_IFS
7495  test -z "$as_dir" && as_dir=.
7496    for ac_exec_ext in '' $ac_executable_extensions; do
7497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500    break 2
7501  fi
7502done
7503  done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508OTOOL=$ac_cv_prog_OTOOL
7509if test -n "$OTOOL"; then
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7511$as_echo "$OTOOL" >&6; }
7512else
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515fi
7516
7517
7518fi
7519if test -z "$ac_cv_prog_OTOOL"; then
7520  ac_ct_OTOOL=$OTOOL
7521  # Extract the first word of "otool", so it can be a program name with args.
7522set dummy otool; ac_word=$2
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524$as_echo_n "checking for $ac_word... " >&6; }
7525if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  if test -n "$ac_ct_OTOOL"; then
7529  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  test -z "$as_dir" && as_dir=.
7536    for ac_exec_ext in '' $ac_executable_extensions; do
7537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538    ac_cv_prog_ac_ct_OTOOL="otool"
7539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543  done
7544IFS=$as_save_IFS
7545
7546fi
7547fi
7548ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7549if test -n "$ac_ct_OTOOL"; then
7550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7551$as_echo "$ac_ct_OTOOL" >&6; }
7552else
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555fi
7556
7557  if test "x$ac_ct_OTOOL" = x; then
7558    OTOOL=":"
7559  else
7560    case $cross_compiling:$ac_tool_warned in
7561yes:)
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564ac_tool_warned=yes ;;
7565esac
7566    OTOOL=$ac_ct_OTOOL
7567  fi
7568else
7569  OTOOL="$ac_cv_prog_OTOOL"
7570fi
7571
7572    if test -n "$ac_tool_prefix"; then
7573  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}otool64; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if ${ac_cv_prog_OTOOL64+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  if test -n "$OTOOL64"; then
7581  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588    for ac_exec_ext in '' $ac_executable_extensions; do
7589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595  done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600OTOOL64=$ac_cv_prog_OTOOL64
7601if test -n "$OTOOL64"; then
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7603$as_echo "$OTOOL64" >&6; }
7604else
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609
7610fi
7611if test -z "$ac_cv_prog_OTOOL64"; then
7612  ac_ct_OTOOL64=$OTOOL64
7613  # Extract the first word of "otool64", so it can be a program name with args.
7614set dummy otool64; ac_word=$2
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616$as_echo_n "checking for $ac_word... " >&6; }
7617if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  if test -n "$ac_ct_OTOOL64"; then
7621  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7622else
7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624for as_dir in $PATH
7625do
7626  IFS=$as_save_IFS
7627  test -z "$as_dir" && as_dir=.
7628    for ac_exec_ext in '' $ac_executable_extensions; do
7629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630    ac_cv_prog_ac_ct_OTOOL64="otool64"
7631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632    break 2
7633  fi
7634done
7635  done
7636IFS=$as_save_IFS
7637
7638fi
7639fi
7640ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7641if test -n "$ac_ct_OTOOL64"; then
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7643$as_echo "$ac_ct_OTOOL64" >&6; }
7644else
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647fi
7648
7649  if test "x$ac_ct_OTOOL64" = x; then
7650    OTOOL64=":"
7651  else
7652    case $cross_compiling:$ac_tool_warned in
7653yes:)
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656ac_tool_warned=yes ;;
7657esac
7658    OTOOL64=$ac_ct_OTOOL64
7659  fi
7660else
7661  OTOOL64="$ac_cv_prog_OTOOL64"
7662fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7691$as_echo_n "checking for -single_module linker flag... " >&6; }
7692if ${lt_cv_apple_cc_single_mod+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  lt_cv_apple_cc_single_mod=no
7696      if test -z "${LT_MULTI_MODULE}"; then
7697	# By default we will add the -single_module flag. You can override
7698	# by either setting the environment variable LT_MULTI_MODULE
7699	# non-empty at configure time, or by adding -multi_module to the
7700	# link flags.
7701	rm -rf libconftest.dylib*
7702	echo "int foo(void){return 1;}" > conftest.c
7703	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7704-dynamiclib -Wl,-single_module conftest.c" >&5
7705	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7706	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7707        _lt_result=$?
7708	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7709	  lt_cv_apple_cc_single_mod=yes
7710	else
7711	  cat conftest.err >&5
7712	fi
7713	rm -rf libconftest.dylib*
7714	rm -f conftest.*
7715      fi
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7718$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7720$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7721if ${lt_cv_ld_exported_symbols_list+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  lt_cv_ld_exported_symbols_list=no
7725      save_LDFLAGS=$LDFLAGS
7726      echo "_main" > conftest.sym
7727      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7728      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730
7731int
7732main ()
7733{
7734
7735  ;
7736  return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_link "$LINENO"; then :
7740  lt_cv_ld_exported_symbols_list=yes
7741else
7742  lt_cv_ld_exported_symbols_list=no
7743fi
7744rm -f core conftest.err conftest.$ac_objext \
7745    conftest$ac_exeext conftest.$ac_ext
7746	LDFLAGS="$save_LDFLAGS"
7747
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7750$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7752$as_echo_n "checking for -force_load linker flag... " >&6; }
7753if ${lt_cv_ld_force_load+:} false; then :
7754  $as_echo_n "(cached) " >&6
7755else
7756  lt_cv_ld_force_load=no
7757      cat > conftest.c << _LT_EOF
7758int forced_loaded() { return 2;}
7759_LT_EOF
7760      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7761      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7762      echo "$AR cru libconftest.a conftest.o" >&5
7763      $AR cru libconftest.a conftest.o 2>&5
7764      echo "$RANLIB libconftest.a" >&5
7765      $RANLIB libconftest.a 2>&5
7766      cat > conftest.c << _LT_EOF
7767int main() { return 0;}
7768_LT_EOF
7769      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7770      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7771      _lt_result=$?
7772      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7773	lt_cv_ld_force_load=yes
7774      else
7775	cat conftest.err >&5
7776      fi
7777        rm -f conftest.err libconftest.a conftest conftest.c
7778        rm -rf conftest.dSYM
7779
7780fi
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7782$as_echo "$lt_cv_ld_force_load" >&6; }
7783    case $host_os in
7784    rhapsody* | darwin1.[012])
7785      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7786    darwin1.*)
7787      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7788    darwin*) # darwin 5.x on
7789      # if running on 10.5 or later, the deployment target defaults
7790      # to the OS version, if on x86, and 10.4, the deployment
7791      # target defaults to 10.4. Don't you love it?
7792      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7793	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7794	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7795	10.[012]*)
7796	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7797	10.*)
7798	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799      esac
7800    ;;
7801  esac
7802    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7803      _lt_dar_single_mod='$single_module'
7804    fi
7805    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7806      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7807    else
7808      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7809    fi
7810    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7811      _lt_dsymutil='~$DSYMUTIL $lib || :'
7812    else
7813      _lt_dsymutil=
7814    fi
7815    ;;
7816  esac
7817
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7819$as_echo_n "checking for ANSI C header files... " >&6; }
7820if ${ac_cv_header_stdc+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h.  */
7825#include <stdlib.h>
7826#include <stdarg.h>
7827#include <string.h>
7828#include <float.h>
7829
7830int
7831main ()
7832{
7833
7834  ;
7835  return 0;
7836}
7837_ACEOF
7838if ac_fn_c_try_compile "$LINENO"; then :
7839  ac_cv_header_stdc=yes
7840else
7841  ac_cv_header_stdc=no
7842fi
7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844
7845if test $ac_cv_header_stdc = yes; then
7846  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849#include <string.h>
7850
7851_ACEOF
7852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7853  $EGREP "memchr" >/dev/null 2>&1; then :
7854
7855else
7856  ac_cv_header_stdc=no
7857fi
7858rm -f conftest*
7859
7860fi
7861
7862if test $ac_cv_header_stdc = yes; then
7863  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866#include <stdlib.h>
7867
7868_ACEOF
7869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7870  $EGREP "free" >/dev/null 2>&1; then :
7871
7872else
7873  ac_cv_header_stdc=no
7874fi
7875rm -f conftest*
7876
7877fi
7878
7879if test $ac_cv_header_stdc = yes; then
7880  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7881  if test "$cross_compiling" = yes; then :
7882  :
7883else
7884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885/* end confdefs.h.  */
7886#include <ctype.h>
7887#include <stdlib.h>
7888#if ((' ' & 0x0FF) == 0x020)
7889# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7890# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7891#else
7892# define ISLOWER(c) \
7893		   (('a' <= (c) && (c) <= 'i') \
7894		     || ('j' <= (c) && (c) <= 'r') \
7895		     || ('s' <= (c) && (c) <= 'z'))
7896# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7897#endif
7898
7899#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7900int
7901main ()
7902{
7903  int i;
7904  for (i = 0; i < 256; i++)
7905    if (XOR (islower (i), ISLOWER (i))
7906	|| toupper (i) != TOUPPER (i))
7907      return 2;
7908  return 0;
7909}
7910_ACEOF
7911if ac_fn_c_try_run "$LINENO"; then :
7912
7913else
7914  ac_cv_header_stdc=no
7915fi
7916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7917  conftest.$ac_objext conftest.beam conftest.$ac_ext
7918fi
7919
7920fi
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7923$as_echo "$ac_cv_header_stdc" >&6; }
7924if test $ac_cv_header_stdc = yes; then
7925
7926$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7927
7928fi
7929
7930# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7931for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7932		  inttypes.h stdint.h unistd.h
7933do :
7934  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7935ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7936"
7937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7938  cat >>confdefs.h <<_ACEOF
7939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7940_ACEOF
7941
7942fi
7943
7944done
7945
7946
7947for ac_header in dlfcn.h
7948do :
7949  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7950"
7951if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7952  cat >>confdefs.h <<_ACEOF
7953#define HAVE_DLFCN_H 1
7954_ACEOF
7955
7956fi
7957
7958done
7959
7960
7961
7962
7963
7964# Set options
7965
7966
7967
7968        enable_dlopen=no
7969
7970
7971  enable_win32_dll=no
7972
7973
7974            # Check whether --enable-shared was given.
7975if test "${enable_shared+set}" = set; then :
7976  enableval=$enable_shared; p=${PACKAGE-default}
7977    case $enableval in
7978    yes) enable_shared=yes ;;
7979    no) enable_shared=no ;;
7980    *)
7981      enable_shared=no
7982      # Look at the argument we got.  We use all the common list separators.
7983      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984      for pkg in $enableval; do
7985	IFS="$lt_save_ifs"
7986	if test "X$pkg" = "X$p"; then
7987	  enable_shared=yes
7988	fi
7989      done
7990      IFS="$lt_save_ifs"
7991      ;;
7992    esac
7993else
7994  enable_shared=yes
7995fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005  # Check whether --enable-static was given.
8006if test "${enable_static+set}" = set; then :
8007  enableval=$enable_static; p=${PACKAGE-default}
8008    case $enableval in
8009    yes) enable_static=yes ;;
8010    no) enable_static=no ;;
8011    *)
8012     enable_static=no
8013      # Look at the argument we got.  We use all the common list separators.
8014      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015      for pkg in $enableval; do
8016	IFS="$lt_save_ifs"
8017	if test "X$pkg" = "X$p"; then
8018	  enable_static=yes
8019	fi
8020      done
8021      IFS="$lt_save_ifs"
8022      ;;
8023    esac
8024else
8025  enable_static=yes
8026fi
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037# Check whether --with-pic was given.
8038if test "${with_pic+set}" = set; then :
8039  withval=$with_pic; pic_mode="$withval"
8040else
8041  pic_mode=default
8042fi
8043
8044
8045test -z "$pic_mode" && pic_mode=default
8046
8047
8048
8049
8050
8051
8052
8053  # Check whether --enable-fast-install was given.
8054if test "${enable_fast_install+set}" = set; then :
8055  enableval=$enable_fast_install; p=${PACKAGE-default}
8056    case $enableval in
8057    yes) enable_fast_install=yes ;;
8058    no) enable_fast_install=no ;;
8059    *)
8060      enable_fast_install=no
8061      # Look at the argument we got.  We use all the common list separators.
8062      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063      for pkg in $enableval; do
8064	IFS="$lt_save_ifs"
8065	if test "X$pkg" = "X$p"; then
8066	  enable_fast_install=yes
8067	fi
8068      done
8069      IFS="$lt_save_ifs"
8070      ;;
8071    esac
8072else
8073  enable_fast_install=yes
8074fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086# This can be used to rebuild libtool when needed
8087LIBTOOL_DEPS="$ltmain"
8088
8089# Always use our own libtool.
8090LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117test -z "$LN_S" && LN_S="ln -s"
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132if test -n "${ZSH_VERSION+set}" ; then
8133   setopt NO_GLOB_SUBST
8134fi
8135
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8137$as_echo_n "checking for objdir... " >&6; }
8138if ${lt_cv_objdir+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  rm -f .libs 2>/dev/null
8142mkdir .libs 2>/dev/null
8143if test -d .libs; then
8144  lt_cv_objdir=.libs
8145else
8146  # MS-DOS does not allow filenames that begin with a dot.
8147  lt_cv_objdir=_libs
8148fi
8149rmdir .libs 2>/dev/null
8150fi
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8152$as_echo "$lt_cv_objdir" >&6; }
8153objdir=$lt_cv_objdir
8154
8155
8156
8157
8158
8159cat >>confdefs.h <<_ACEOF
8160#define LT_OBJDIR "$lt_cv_objdir/"
8161_ACEOF
8162
8163
8164
8165
8166case $host_os in
8167aix3*)
8168  # AIX sometimes has problems with the GCC collect2 program.  For some
8169  # reason, if we set the COLLECT_NAMES environment variable, the problems
8170  # vanish in a puff of smoke.
8171  if test "X${COLLECT_NAMES+set}" != Xset; then
8172    COLLECT_NAMES=
8173    export COLLECT_NAMES
8174  fi
8175  ;;
8176esac
8177
8178# Global variables:
8179ofile=libtool
8180can_build_shared=yes
8181
8182# All known linkers require a `.a' archive for static linking (except MSVC,
8183# which needs '.lib').
8184libext=a
8185
8186with_gnu_ld="$lt_cv_prog_gnu_ld"
8187
8188old_CC="$CC"
8189old_CFLAGS="$CFLAGS"
8190
8191# Set sane defaults for various variables
8192test -z "$CC" && CC=cc
8193test -z "$LTCC" && LTCC=$CC
8194test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8195test -z "$LD" && LD=ld
8196test -z "$ac_objext" && ac_objext=o
8197
8198for cc_temp in $compiler""; do
8199  case $cc_temp in
8200    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8201    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8202    \-*) ;;
8203    *) break;;
8204  esac
8205done
8206cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8207
8208
8209# Only perform the check for file, if the check method requires it
8210test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211case $deplibs_check_method in
8212file_magic*)
8213  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8215$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8216if ${lt_cv_path_MAGIC_CMD+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  case $MAGIC_CMD in
8220[\\/*] |  ?:[\\/]*)
8221  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8222  ;;
8223*)
8224  lt_save_MAGIC_CMD="$MAGIC_CMD"
8225  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8226  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227  for ac_dir in $ac_dummy; do
8228    IFS="$lt_save_ifs"
8229    test -z "$ac_dir" && ac_dir=.
8230    if test -f $ac_dir/${ac_tool_prefix}file; then
8231      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8232      if test -n "$file_magic_test_file"; then
8233	case $deplibs_check_method in
8234	"file_magic "*)
8235	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8236	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238	    $EGREP "$file_magic_regex" > /dev/null; then
8239	    :
8240	  else
8241	    cat <<_LT_EOF 1>&2
8242
8243*** Warning: the command libtool uses to detect shared libraries,
8244*** $file_magic_cmd, produces output that libtool cannot recognize.
8245*** The result is that libtool may fail to recognize shared libraries
8246*** as such.  This will affect the creation of libtool libraries that
8247*** depend on shared libraries, but programs linked with such libtool
8248*** libraries will work regardless of this problem.  Nevertheless, you
8249*** may want to report the problem to your system manager and/or to
8250*** bug-libtool@gnu.org
8251
8252_LT_EOF
8253	  fi ;;
8254	esac
8255      fi
8256      break
8257    fi
8258  done
8259  IFS="$lt_save_ifs"
8260  MAGIC_CMD="$lt_save_MAGIC_CMD"
8261  ;;
8262esac
8263fi
8264
8265MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266if test -n "$MAGIC_CMD"; then
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8268$as_echo "$MAGIC_CMD" >&6; }
8269else
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273
8274
8275
8276
8277
8278if test -z "$lt_cv_path_MAGIC_CMD"; then
8279  if test -n "$ac_tool_prefix"; then
8280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8281$as_echo_n "checking for file... " >&6; }
8282if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283  $as_echo_n "(cached) " >&6
8284else
8285  case $MAGIC_CMD in
8286[\\/*] |  ?:[\\/]*)
8287  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8288  ;;
8289*)
8290  lt_save_MAGIC_CMD="$MAGIC_CMD"
8291  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293  for ac_dir in $ac_dummy; do
8294    IFS="$lt_save_ifs"
8295    test -z "$ac_dir" && ac_dir=.
8296    if test -f $ac_dir/file; then
8297      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8298      if test -n "$file_magic_test_file"; then
8299	case $deplibs_check_method in
8300	"file_magic "*)
8301	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304	    $EGREP "$file_magic_regex" > /dev/null; then
8305	    :
8306	  else
8307	    cat <<_LT_EOF 1>&2
8308
8309*** Warning: the command libtool uses to detect shared libraries,
8310*** $file_magic_cmd, produces output that libtool cannot recognize.
8311*** The result is that libtool may fail to recognize shared libraries
8312*** as such.  This will affect the creation of libtool libraries that
8313*** depend on shared libraries, but programs linked with such libtool
8314*** libraries will work regardless of this problem.  Nevertheless, you
8315*** may want to report the problem to your system manager and/or to
8316*** bug-libtool@gnu.org
8317
8318_LT_EOF
8319	  fi ;;
8320	esac
8321      fi
8322      break
8323    fi
8324  done
8325  IFS="$lt_save_ifs"
8326  MAGIC_CMD="$lt_save_MAGIC_CMD"
8327  ;;
8328esac
8329fi
8330
8331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332if test -n "$MAGIC_CMD"; then
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334$as_echo "$MAGIC_CMD" >&6; }
8335else
8336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337$as_echo "no" >&6; }
8338fi
8339
8340
8341  else
8342    MAGIC_CMD=:
8343  fi
8344fi
8345
8346  fi
8347  ;;
8348esac
8349
8350# Use C for the default configuration in the libtool script
8351
8352lt_save_CC="$CC"
8353ac_ext=c
8354ac_cpp='$CPP $CPPFLAGS'
8355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
8360# Source file extension for C test sources.
8361ac_ext=c
8362
8363# Object file extension for compiled C test sources.
8364objext=o
8365objext=$objext
8366
8367# Code to be used in simple compile tests
8368lt_simple_compile_test_code="int some_variable = 0;"
8369
8370# Code to be used in simple link tests
8371lt_simple_link_test_code='int main(){return(0);}'
8372
8373
8374
8375
8376
8377
8378
8379# If no C compiler was specified, use CC.
8380LTCC=${LTCC-"$CC"}
8381
8382# If no C compiler flags were specified, use CFLAGS.
8383LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8384
8385# Allow CC to be a program name with arguments.
8386compiler=$CC
8387
8388# Save the default compiler, since it gets overwritten when the other
8389# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8390compiler_DEFAULT=$CC
8391
8392# save warnings/boilerplate of simple test code
8393ac_outfile=conftest.$ac_objext
8394echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8395eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396_lt_compiler_boilerplate=`cat conftest.err`
8397$RM conftest*
8398
8399ac_outfile=conftest.$ac_objext
8400echo "$lt_simple_link_test_code" >conftest.$ac_ext
8401eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8402_lt_linker_boilerplate=`cat conftest.err`
8403$RM -r conftest*
8404
8405
8406## CAVEAT EMPTOR:
8407## There is no encapsulation within the following macros, do not change
8408## the running order or otherwise move them around unless you know exactly
8409## what you are doing...
8410if test -n "$compiler"; then
8411
8412lt_prog_compiler_no_builtin_flag=
8413
8414if test "$GCC" = yes; then
8415  case $cc_basename in
8416  nvcc*)
8417    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8418  *)
8419    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8420  esac
8421
8422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8423$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8424if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  lt_cv_prog_compiler_rtti_exceptions=no
8428   ac_outfile=conftest.$ac_objext
8429   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8430   lt_compiler_flag="-fno-rtti -fno-exceptions"
8431   # Insert the option either (1) after the last *FLAGS variable, or
8432   # (2) before a word containing "conftest.", or (3) at the end.
8433   # Note that $ac_compile itself does not contain backslashes and begins
8434   # with a dollar sign (not a hyphen), so the echo should work correctly.
8435   # The option is referenced via a variable to avoid confusing sed.
8436   lt_compile=`echo "$ac_compile" | $SED \
8437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8439   -e 's:$: $lt_compiler_flag:'`
8440   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8441   (eval "$lt_compile" 2>conftest.err)
8442   ac_status=$?
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   if (exit $ac_status) && test -s "$ac_outfile"; then
8446     # The compiler can only warn and ignore the option if not recognized
8447     # So say no if there are warnings other than the usual output.
8448     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8449     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8450     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8451       lt_cv_prog_compiler_rtti_exceptions=yes
8452     fi
8453   fi
8454   $RM conftest*
8455
8456fi
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8458$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8459
8460if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8461    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8462else
8463    :
8464fi
8465
8466fi
8467
8468
8469
8470
8471
8472
8473  lt_prog_compiler_wl=
8474lt_prog_compiler_pic=
8475lt_prog_compiler_static=
8476
8477
8478  if test "$GCC" = yes; then
8479    lt_prog_compiler_wl='-Wl,'
8480    lt_prog_compiler_static='-static'
8481
8482    case $host_os in
8483      aix*)
8484      # All AIX code is PIC.
8485      if test "$host_cpu" = ia64; then
8486	# AIX 5 now supports IA64 processor
8487	lt_prog_compiler_static='-Bstatic'
8488      fi
8489      ;;
8490
8491    amigaos*)
8492      case $host_cpu in
8493      powerpc)
8494            # see comment about AmigaOS4 .so support
8495            lt_prog_compiler_pic='-fPIC'
8496        ;;
8497      m68k)
8498            # FIXME: we need at least 68020 code to build shared libraries, but
8499            # adding the `-m68020' flag to GCC prevents building anything better,
8500            # like `-m68040'.
8501            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8502        ;;
8503      esac
8504      ;;
8505
8506    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8507      # PIC is the default for these OSes.
8508      ;;
8509
8510    mingw* | cygwin* | pw32* | os2* | cegcc*)
8511      # This hack is so that the source file can tell whether it is being
8512      # built for inclusion in a dll (and should export symbols for example).
8513      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8514      # (--disable-auto-import) libraries
8515      lt_prog_compiler_pic='-DDLL_EXPORT'
8516      ;;
8517
8518    darwin* | rhapsody*)
8519      # PIC is the default on this platform
8520      # Common symbols not allowed in MH_DYLIB files
8521      lt_prog_compiler_pic='-fno-common'
8522      ;;
8523
8524    haiku*)
8525      # PIC is the default for Haiku.
8526      # The "-static" flag exists, but is broken.
8527      lt_prog_compiler_static=
8528      ;;
8529
8530    hpux*)
8531      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8532      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8533      # sets the default TLS model and affects inlining.
8534      case $host_cpu in
8535      hppa*64*)
8536	# +Z the default
8537	;;
8538      *)
8539	lt_prog_compiler_pic='-fPIC'
8540	;;
8541      esac
8542      ;;
8543
8544    interix[3-9]*)
8545      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8546      # Instead, we relocate shared libraries at runtime.
8547      ;;
8548
8549    msdosdjgpp*)
8550      # Just because we use GCC doesn't mean we suddenly get shared libraries
8551      # on systems that don't support them.
8552      lt_prog_compiler_can_build_shared=no
8553      enable_shared=no
8554      ;;
8555
8556    *nto* | *qnx*)
8557      # QNX uses GNU C++, but need to define -shared option too, otherwise
8558      # it will coredump.
8559      lt_prog_compiler_pic='-fPIC -shared'
8560      ;;
8561
8562    sysv4*MP*)
8563      if test -d /usr/nec; then
8564	lt_prog_compiler_pic=-Kconform_pic
8565      fi
8566      ;;
8567
8568    *)
8569      lt_prog_compiler_pic='-fPIC'
8570      ;;
8571    esac
8572
8573    case $cc_basename in
8574    nvcc*) # Cuda Compiler Driver 2.2
8575      lt_prog_compiler_wl='-Xlinker '
8576      lt_prog_compiler_pic='-Xcompiler -fPIC'
8577      ;;
8578    esac
8579  else
8580    # PORTME Check for flag to pass linker flags through the system compiler.
8581    case $host_os in
8582    aix*)
8583      lt_prog_compiler_wl='-Wl,'
8584      if test "$host_cpu" = ia64; then
8585	# AIX 5 now supports IA64 processor
8586	lt_prog_compiler_static='-Bstatic'
8587      else
8588	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8589      fi
8590      ;;
8591
8592    mingw* | cygwin* | pw32* | os2* | cegcc*)
8593      # This hack is so that the source file can tell whether it is being
8594      # built for inclusion in a dll (and should export symbols for example).
8595      lt_prog_compiler_pic='-DDLL_EXPORT'
8596      ;;
8597
8598    hpux9* | hpux10* | hpux11*)
8599      lt_prog_compiler_wl='-Wl,'
8600      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8601      # not for PA HP-UX.
8602      case $host_cpu in
8603      hppa*64*|ia64*)
8604	# +Z the default
8605	;;
8606      *)
8607	lt_prog_compiler_pic='+Z'
8608	;;
8609      esac
8610      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8611      lt_prog_compiler_static='${wl}-a ${wl}archive'
8612      ;;
8613
8614    irix5* | irix6* | nonstopux*)
8615      lt_prog_compiler_wl='-Wl,'
8616      # PIC (with -KPIC) is the default.
8617      lt_prog_compiler_static='-non_shared'
8618      ;;
8619
8620    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8621      case $cc_basename in
8622      # old Intel for x86_64 which still supported -KPIC.
8623      ecc*)
8624	lt_prog_compiler_wl='-Wl,'
8625	lt_prog_compiler_pic='-KPIC'
8626	lt_prog_compiler_static='-static'
8627        ;;
8628      # icc used to be incompatible with GCC.
8629      # ICC 10 doesn't accept -KPIC any more.
8630      icc* | ifort*)
8631	lt_prog_compiler_wl='-Wl,'
8632	lt_prog_compiler_pic='-fPIC'
8633	lt_prog_compiler_static='-static'
8634        ;;
8635      # Lahey Fortran 8.1.
8636      lf95*)
8637	lt_prog_compiler_wl='-Wl,'
8638	lt_prog_compiler_pic='--shared'
8639	lt_prog_compiler_static='--static'
8640	;;
8641      nagfor*)
8642	# NAG Fortran compiler
8643	lt_prog_compiler_wl='-Wl,-Wl,,'
8644	lt_prog_compiler_pic='-PIC'
8645	lt_prog_compiler_static='-Bstatic'
8646	;;
8647      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8648        # Portland Group compilers (*not* the Pentium gcc compiler,
8649	# which looks to be a dead project)
8650	lt_prog_compiler_wl='-Wl,'
8651	lt_prog_compiler_pic='-fpic'
8652	lt_prog_compiler_static='-Bstatic'
8653        ;;
8654      ccc*)
8655        lt_prog_compiler_wl='-Wl,'
8656        # All Alpha code is PIC.
8657        lt_prog_compiler_static='-non_shared'
8658        ;;
8659      xl* | bgxl* | bgf* | mpixl*)
8660	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8661	lt_prog_compiler_wl='-Wl,'
8662	lt_prog_compiler_pic='-qpic'
8663	lt_prog_compiler_static='-qstaticlink'
8664	;;
8665      *)
8666	case `$CC -V 2>&1 | sed 5q` in
8667	*Sun\ F* | *Sun*Fortran*)
8668	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8669	  lt_prog_compiler_pic='-KPIC'
8670	  lt_prog_compiler_static='-Bstatic'
8671	  lt_prog_compiler_wl=''
8672	  ;;
8673	*Sun\ C*)
8674	  # Sun C 5.9
8675	  lt_prog_compiler_pic='-KPIC'
8676	  lt_prog_compiler_static='-Bstatic'
8677	  lt_prog_compiler_wl='-Wl,'
8678	  ;;
8679	esac
8680	;;
8681      esac
8682      ;;
8683
8684    newsos6)
8685      lt_prog_compiler_pic='-KPIC'
8686      lt_prog_compiler_static='-Bstatic'
8687      ;;
8688
8689    *nto* | *qnx*)
8690      # QNX uses GNU C++, but need to define -shared option too, otherwise
8691      # it will coredump.
8692      lt_prog_compiler_pic='-fPIC -shared'
8693      ;;
8694
8695    osf3* | osf4* | osf5*)
8696      lt_prog_compiler_wl='-Wl,'
8697      # All OSF/1 code is PIC.
8698      lt_prog_compiler_static='-non_shared'
8699      ;;
8700
8701    rdos*)
8702      lt_prog_compiler_static='-non_shared'
8703      ;;
8704
8705    solaris*)
8706      lt_prog_compiler_pic='-KPIC'
8707      lt_prog_compiler_static='-Bstatic'
8708      case $cc_basename in
8709      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8710	lt_prog_compiler_wl='-Qoption ld ';;
8711      *)
8712	lt_prog_compiler_wl='-Wl,';;
8713      esac
8714      ;;
8715
8716    sunos4*)
8717      lt_prog_compiler_wl='-Qoption ld '
8718      lt_prog_compiler_pic='-PIC'
8719      lt_prog_compiler_static='-Bstatic'
8720      ;;
8721
8722    sysv4 | sysv4.2uw2* | sysv4.3*)
8723      lt_prog_compiler_wl='-Wl,'
8724      lt_prog_compiler_pic='-KPIC'
8725      lt_prog_compiler_static='-Bstatic'
8726      ;;
8727
8728    sysv4*MP*)
8729      if test -d /usr/nec ;then
8730	lt_prog_compiler_pic='-Kconform_pic'
8731	lt_prog_compiler_static='-Bstatic'
8732      fi
8733      ;;
8734
8735    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8736      lt_prog_compiler_wl='-Wl,'
8737      lt_prog_compiler_pic='-KPIC'
8738      lt_prog_compiler_static='-Bstatic'
8739      ;;
8740
8741    unicos*)
8742      lt_prog_compiler_wl='-Wl,'
8743      lt_prog_compiler_can_build_shared=no
8744      ;;
8745
8746    uts4*)
8747      lt_prog_compiler_pic='-pic'
8748      lt_prog_compiler_static='-Bstatic'
8749      ;;
8750
8751    *)
8752      lt_prog_compiler_can_build_shared=no
8753      ;;
8754    esac
8755  fi
8756
8757case $host_os in
8758  # For platforms which do not support PIC, -DPIC is meaningless:
8759  *djgpp*)
8760    lt_prog_compiler_pic=
8761    ;;
8762  *)
8763    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8764    ;;
8765esac
8766
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8768$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8769if ${lt_cv_prog_compiler_pic+:} false; then :
8770  $as_echo_n "(cached) " >&6
8771else
8772  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8773fi
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8775$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8776lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8777
8778#
8779# Check to make sure the PIC flag actually works.
8780#
8781if test -n "$lt_prog_compiler_pic"; then
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8784if ${lt_cv_prog_compiler_pic_works+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  lt_cv_prog_compiler_pic_works=no
8788   ac_outfile=conftest.$ac_objext
8789   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8790   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791   # Insert the option either (1) after the last *FLAGS variable, or
8792   # (2) before a word containing "conftest.", or (3) at the end.
8793   # Note that $ac_compile itself does not contain backslashes and begins
8794   # with a dollar sign (not a hyphen), so the echo should work correctly.
8795   # The option is referenced via a variable to avoid confusing sed.
8796   lt_compile=`echo "$ac_compile" | $SED \
8797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799   -e 's:$: $lt_compiler_flag:'`
8800   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8801   (eval "$lt_compile" 2>conftest.err)
8802   ac_status=$?
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   if (exit $ac_status) && test -s "$ac_outfile"; then
8806     # The compiler can only warn and ignore the option if not recognized
8807     # So say no if there are warnings other than the usual output.
8808     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8809     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8811       lt_cv_prog_compiler_pic_works=yes
8812     fi
8813   fi
8814   $RM conftest*
8815
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8818$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8819
8820if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8821    case $lt_prog_compiler_pic in
8822     "" | " "*) ;;
8823     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8824     esac
8825else
8826    lt_prog_compiler_pic=
8827     lt_prog_compiler_can_build_shared=no
8828fi
8829
8830fi
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842#
8843# Check to make sure the static flag actually works.
8844#
8845wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8847$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8848if ${lt_cv_prog_compiler_static_works+:} false; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  lt_cv_prog_compiler_static_works=no
8852   save_LDFLAGS="$LDFLAGS"
8853   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8854   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8855   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8856     # The linker can only warn and ignore the option if not recognized
8857     # So say no if there are warnings
8858     if test -s conftest.err; then
8859       # Append any errors to the config.log.
8860       cat conftest.err 1>&5
8861       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8862       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8863       if diff conftest.exp conftest.er2 >/dev/null; then
8864         lt_cv_prog_compiler_static_works=yes
8865       fi
8866     else
8867       lt_cv_prog_compiler_static_works=yes
8868     fi
8869   fi
8870   $RM -r conftest*
8871   LDFLAGS="$save_LDFLAGS"
8872
8873fi
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8875$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8876
8877if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8878    :
8879else
8880    lt_prog_compiler_static=
8881fi
8882
8883
8884
8885
8886
8887
8888
8889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8890$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8891if ${lt_cv_prog_compiler_c_o+:} false; then :
8892  $as_echo_n "(cached) " >&6
8893else
8894  lt_cv_prog_compiler_c_o=no
8895   $RM -r conftest 2>/dev/null
8896   mkdir conftest
8897   cd conftest
8898   mkdir out
8899   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900
8901   lt_compiler_flag="-o out/conftest2.$ac_objext"
8902   # Insert the option either (1) after the last *FLAGS variable, or
8903   # (2) before a word containing "conftest.", or (3) at the end.
8904   # Note that $ac_compile itself does not contain backslashes and begins
8905   # with a dollar sign (not a hyphen), so the echo should work correctly.
8906   lt_compile=`echo "$ac_compile" | $SED \
8907   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909   -e 's:$: $lt_compiler_flag:'`
8910   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8911   (eval "$lt_compile" 2>out/conftest.err)
8912   ac_status=$?
8913   cat out/conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8916   then
8917     # The compiler can only warn and ignore the option if not recognized
8918     # So say no if there are warnings
8919     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8920     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8921     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8922       lt_cv_prog_compiler_c_o=yes
8923     fi
8924   fi
8925   chmod u+w . 2>&5
8926   $RM conftest*
8927   # SGI C++ compiler will create directory out/ii_files/ for
8928   # template instantiation
8929   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8930   $RM out/* && rmdir out
8931   cd ..
8932   $RM -r conftest
8933   $RM conftest*
8934
8935fi
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8937$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8938
8939
8940
8941
8942
8943
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8946if ${lt_cv_prog_compiler_c_o+:} false; then :
8947  $as_echo_n "(cached) " >&6
8948else
8949  lt_cv_prog_compiler_c_o=no
8950   $RM -r conftest 2>/dev/null
8951   mkdir conftest
8952   cd conftest
8953   mkdir out
8954   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955
8956   lt_compiler_flag="-o out/conftest2.$ac_objext"
8957   # Insert the option either (1) after the last *FLAGS variable, or
8958   # (2) before a word containing "conftest.", or (3) at the end.
8959   # Note that $ac_compile itself does not contain backslashes and begins
8960   # with a dollar sign (not a hyphen), so the echo should work correctly.
8961   lt_compile=`echo "$ac_compile" | $SED \
8962   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8963   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8964   -e 's:$: $lt_compiler_flag:'`
8965   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8966   (eval "$lt_compile" 2>out/conftest.err)
8967   ac_status=$?
8968   cat out/conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8971   then
8972     # The compiler can only warn and ignore the option if not recognized
8973     # So say no if there are warnings
8974     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8975     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8976     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8977       lt_cv_prog_compiler_c_o=yes
8978     fi
8979   fi
8980   chmod u+w . 2>&5
8981   $RM conftest*
8982   # SGI C++ compiler will create directory out/ii_files/ for
8983   # template instantiation
8984   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8985   $RM out/* && rmdir out
8986   cd ..
8987   $RM -r conftest
8988   $RM conftest*
8989
8990fi
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8992$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8993
8994
8995
8996
8997hard_links="nottested"
8998if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8999  # do not overwrite the value of need_locks provided by the user
9000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9001$as_echo_n "checking if we can lock with hard links... " >&6; }
9002  hard_links=yes
9003  $RM conftest*
9004  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9005  touch conftest.a
9006  ln conftest.a conftest.b 2>&5 || hard_links=no
9007  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9009$as_echo "$hard_links" >&6; }
9010  if test "$hard_links" = no; then
9011    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9012$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9013    need_locks=warn
9014  fi
9015else
9016  need_locks=no
9017fi
9018
9019
9020
9021
9022
9023
9024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9025$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9026
9027  runpath_var=
9028  allow_undefined_flag=
9029  always_export_symbols=no
9030  archive_cmds=
9031  archive_expsym_cmds=
9032  compiler_needs_object=no
9033  enable_shared_with_static_runtimes=no
9034  export_dynamic_flag_spec=
9035  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9036  hardcode_automatic=no
9037  hardcode_direct=no
9038  hardcode_direct_absolute=no
9039  hardcode_libdir_flag_spec=
9040  hardcode_libdir_flag_spec_ld=
9041  hardcode_libdir_separator=
9042  hardcode_minus_L=no
9043  hardcode_shlibpath_var=unsupported
9044  inherit_rpath=no
9045  link_all_deplibs=unknown
9046  module_cmds=
9047  module_expsym_cmds=
9048  old_archive_from_new_cmds=
9049  old_archive_from_expsyms_cmds=
9050  thread_safe_flag_spec=
9051  whole_archive_flag_spec=
9052  # include_expsyms should be a list of space-separated symbols to be *always*
9053  # included in the symbol list
9054  include_expsyms=
9055  # exclude_expsyms can be an extended regexp of symbols to exclude
9056  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9057  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9058  # as well as any symbol that contains `d'.
9059  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9060  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9061  # platforms (ab)use it in PIC code, but their linkers get confused if
9062  # the symbol is explicitly referenced.  Since portable code cannot
9063  # rely on this symbol name, it's probably fine to never include it in
9064  # preloaded symbol tables.
9065  # Exclude shared library initialization/finalization symbols.
9066  extract_expsyms_cmds=
9067
9068  case $host_os in
9069  cygwin* | mingw* | pw32* | cegcc*)
9070    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9071    # When not using gcc, we currently assume that we are using
9072    # Microsoft Visual C++.
9073    if test "$GCC" != yes; then
9074      with_gnu_ld=no
9075    fi
9076    ;;
9077  interix*)
9078    # we just hope/assume this is gcc and not c89 (= MSVC++)
9079    with_gnu_ld=yes
9080    ;;
9081  openbsd*)
9082    with_gnu_ld=no
9083    ;;
9084  esac
9085
9086  ld_shlibs=yes
9087
9088  # On some targets, GNU ld is compatible enough with the native linker
9089  # that we're better off using the native interface for both.
9090  lt_use_gnu_ld_interface=no
9091  if test "$with_gnu_ld" = yes; then
9092    case $host_os in
9093      aix*)
9094	# The AIX port of GNU ld has always aspired to compatibility
9095	# with the native linker.  However, as the warning in the GNU ld
9096	# block says, versions before 2.19.5* couldn't really create working
9097	# shared libraries, regardless of the interface used.
9098	case `$LD -v 2>&1` in
9099	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9100	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9101	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9102	  *)
9103	    lt_use_gnu_ld_interface=yes
9104	    ;;
9105	esac
9106	;;
9107      *)
9108	lt_use_gnu_ld_interface=yes
9109	;;
9110    esac
9111  fi
9112
9113  if test "$lt_use_gnu_ld_interface" = yes; then
9114    # If archive_cmds runs LD, not CC, wlarc should be empty
9115    wlarc='${wl}'
9116
9117    # Set some defaults for GNU ld with shared library support. These
9118    # are reset later if shared libraries are not supported. Putting them
9119    # here allows them to be overridden if necessary.
9120    runpath_var=LD_RUN_PATH
9121    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9122    export_dynamic_flag_spec='${wl}--export-dynamic'
9123    # ancient GNU ld didn't support --whole-archive et. al.
9124    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9125      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9126    else
9127      whole_archive_flag_spec=
9128    fi
9129    supports_anon_versioning=no
9130    case `$LD -v 2>&1` in
9131      *GNU\ gold*) supports_anon_versioning=yes ;;
9132      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9133      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9134      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9135      *\ 2.11.*) ;; # other 2.11 versions
9136      *) supports_anon_versioning=yes ;;
9137    esac
9138
9139    # See if GNU ld supports shared libraries.
9140    case $host_os in
9141    aix[3-9]*)
9142      # On AIX/PPC, the GNU linker is very broken
9143      if test "$host_cpu" != ia64; then
9144	ld_shlibs=no
9145	cat <<_LT_EOF 1>&2
9146
9147*** Warning: the GNU linker, at least up to release 2.19, is reported
9148*** to be unable to reliably create shared libraries on AIX.
9149*** Therefore, libtool is disabling shared libraries support.  If you
9150*** really care for shared libraries, you may want to install binutils
9151*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9152*** You will then need to restart the configuration process.
9153
9154_LT_EOF
9155      fi
9156      ;;
9157
9158    amigaos*)
9159      case $host_cpu in
9160      powerpc)
9161            # see comment about AmigaOS4 .so support
9162            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9163            archive_expsym_cmds=''
9164        ;;
9165      m68k)
9166            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)'
9167            hardcode_libdir_flag_spec='-L$libdir'
9168            hardcode_minus_L=yes
9169        ;;
9170      esac
9171      ;;
9172
9173    beos*)
9174      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9175	allow_undefined_flag=unsupported
9176	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9177	# support --undefined.  This deserves some investigation.  FIXME
9178	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9179      else
9180	ld_shlibs=no
9181      fi
9182      ;;
9183
9184    cygwin* | mingw* | pw32* | cegcc*)
9185      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9186      # as there is no search path for DLLs.
9187      hardcode_libdir_flag_spec='-L$libdir'
9188      export_dynamic_flag_spec='${wl}--export-all-symbols'
9189      allow_undefined_flag=unsupported
9190      always_export_symbols=no
9191      enable_shared_with_static_runtimes=yes
9192      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'
9193      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9194
9195      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9196        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9197	# If the export-symbols file already is a .def file (1st line
9198	# is EXPORTS), use it as is; otherwise, prepend...
9199	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9200	  cp $export_symbols $output_objdir/$soname.def;
9201	else
9202	  echo EXPORTS > $output_objdir/$soname.def;
9203	  cat $export_symbols >> $output_objdir/$soname.def;
9204	fi~
9205	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9206      else
9207	ld_shlibs=no
9208      fi
9209      ;;
9210
9211    haiku*)
9212      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213      link_all_deplibs=yes
9214      ;;
9215
9216    interix[3-9]*)
9217      hardcode_direct=no
9218      hardcode_shlibpath_var=no
9219      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9220      export_dynamic_flag_spec='${wl}-E'
9221      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9222      # Instead, shared libraries are loaded at an image base (0x10000000 by
9223      # default) and relocated if they conflict, which is a slow very memory
9224      # consuming and fragmenting process.  To avoid this, we pick a random,
9225      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9226      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9227      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9228      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'
9229      ;;
9230
9231    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9232      tmp_diet=no
9233      if test "$host_os" = linux-dietlibc; then
9234	case $cc_basename in
9235	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9236	esac
9237      fi
9238      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9239	 && test "$tmp_diet" = no
9240      then
9241	tmp_addflag=' $pic_flag'
9242	tmp_sharedflag='-shared'
9243	case $cc_basename,$host_cpu in
9244        pgcc*)				# Portland Group C compiler
9245	  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'
9246	  tmp_addflag=' $pic_flag'
9247	  ;;
9248	pgf77* | pgf90* | pgf95* | pgfortran*)
9249					# Portland Group f77 and f90 compilers
9250	  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'
9251	  tmp_addflag=' $pic_flag -Mnomain' ;;
9252	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9253	  tmp_addflag=' -i_dynamic' ;;
9254	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9255	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9256	ifc* | ifort*)			# Intel Fortran compiler
9257	  tmp_addflag=' -nofor_main' ;;
9258	lf95*)				# Lahey Fortran 8.1
9259	  whole_archive_flag_spec=
9260	  tmp_sharedflag='--shared' ;;
9261	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9262	  tmp_sharedflag='-qmkshrobj'
9263	  tmp_addflag= ;;
9264	nvcc*)	# Cuda Compiler Driver 2.2
9265	  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'
9266	  compiler_needs_object=yes
9267	  ;;
9268	esac
9269	case `$CC -V 2>&1 | sed 5q` in
9270	*Sun\ C*)			# Sun C 5.9
9271	  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'
9272	  compiler_needs_object=yes
9273	  tmp_sharedflag='-G' ;;
9274	*Sun\ F*)			# Sun Fortran 8.3
9275	  tmp_sharedflag='-G' ;;
9276	esac
9277	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278
9279        if test "x$supports_anon_versioning" = xyes; then
9280          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9281	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9282	    echo "local: *; };" >> $output_objdir/$libname.ver~
9283	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9284        fi
9285
9286	case $cc_basename in
9287	xlf* | bgf* | bgxlf* | mpixlf*)
9288	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9289	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9290	  hardcode_libdir_flag_spec=
9291	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9292	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9293	  if test "x$supports_anon_versioning" = xyes; then
9294	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9295	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9296	      echo "local: *; };" >> $output_objdir/$libname.ver~
9297	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9298	  fi
9299	  ;;
9300	esac
9301      else
9302        ld_shlibs=no
9303      fi
9304      ;;
9305
9306    netbsd*)
9307      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9308	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9309	wlarc=
9310      else
9311	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313      fi
9314      ;;
9315
9316    solaris*)
9317      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9318	ld_shlibs=no
9319	cat <<_LT_EOF 1>&2
9320
9321*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9322*** create shared libraries on Solaris systems.  Therefore, libtool
9323*** is disabling shared libraries support.  We urge you to upgrade GNU
9324*** binutils to release 2.9.1 or newer.  Another option is to modify
9325*** your PATH or compiler configuration so that the native linker is
9326*** used, and then restart.
9327
9328_LT_EOF
9329      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9330	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9332      else
9333	ld_shlibs=no
9334      fi
9335      ;;
9336
9337    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9338      case `$LD -v 2>&1` in
9339        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9340	ld_shlibs=no
9341	cat <<_LT_EOF 1>&2
9342
9343*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9344*** reliably create shared libraries on SCO systems.  Therefore, libtool
9345*** is disabling shared libraries support.  We urge you to upgrade GNU
9346*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9347*** your PATH or compiler configuration so that the native linker is
9348*** used, and then restart.
9349
9350_LT_EOF
9351	;;
9352	*)
9353	  # For security reasons, it is highly recommended that you always
9354	  # use absolute paths for naming shared libraries, and exclude the
9355	  # DT_RUNPATH tag from executables and libraries.  But doing so
9356	  # requires that you compile everything twice, which is a pain.
9357	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361	  else
9362	    ld_shlibs=no
9363	  fi
9364	;;
9365      esac
9366      ;;
9367
9368    sunos4*)
9369      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9370      wlarc=
9371      hardcode_direct=yes
9372      hardcode_shlibpath_var=no
9373      ;;
9374
9375    *)
9376      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9377	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379      else
9380	ld_shlibs=no
9381      fi
9382      ;;
9383    esac
9384
9385    if test "$ld_shlibs" = no; then
9386      runpath_var=
9387      hardcode_libdir_flag_spec=
9388      export_dynamic_flag_spec=
9389      whole_archive_flag_spec=
9390    fi
9391  else
9392    # PORTME fill in a description of your system's linker (not GNU ld)
9393    case $host_os in
9394    aix3*)
9395      allow_undefined_flag=unsupported
9396      always_export_symbols=yes
9397      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'
9398      # Note: this linker hardcodes the directories in LIBPATH if there
9399      # are no directories specified by -L.
9400      hardcode_minus_L=yes
9401      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9402	# Neither direct hardcoding nor static linking is supported with a
9403	# broken collect2.
9404	hardcode_direct=unsupported
9405      fi
9406      ;;
9407
9408    aix[4-9]*)
9409      if test "$host_cpu" = ia64; then
9410	# On IA64, the linker does run time linking by default, so we don't
9411	# have to do anything special.
9412	aix_use_runtimelinking=no
9413	exp_sym_flag='-Bexport'
9414	no_entry_flag=""
9415      else
9416	# If we're using GNU nm, then we don't want the "-C" option.
9417	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9418	# Also, AIX nm treats weak defined symbols like other global
9419	# defined symbols, whereas GNU nm marks them as "W".
9420	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9421	  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'
9422	else
9423	  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'
9424	fi
9425	aix_use_runtimelinking=no
9426
9427	# Test if we are trying to use run time linking or normal
9428	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9429	# need to do runtime linking.
9430	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9431	  for ld_flag in $LDFLAGS; do
9432	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9433	    aix_use_runtimelinking=yes
9434	    break
9435	  fi
9436	  done
9437	  ;;
9438	esac
9439
9440	exp_sym_flag='-bexport'
9441	no_entry_flag='-bnoentry'
9442      fi
9443
9444      # When large executables or shared objects are built, AIX ld can
9445      # have problems creating the table of contents.  If linking a library
9446      # or program results in "error TOC overflow" add -mminimal-toc to
9447      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9448      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9449
9450      archive_cmds=''
9451      hardcode_direct=yes
9452      hardcode_direct_absolute=yes
9453      hardcode_libdir_separator=':'
9454      link_all_deplibs=yes
9455      file_list_spec='${wl}-f,'
9456
9457      if test "$GCC" = yes; then
9458	case $host_os in aix4.[012]|aix4.[012].*)
9459	# We only want to do this on AIX 4.2 and lower, the check
9460	# below for broken collect2 doesn't work under 4.3+
9461	  collect2name=`${CC} -print-prog-name=collect2`
9462	  if test -f "$collect2name" &&
9463	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9464	  then
9465	  # We have reworked collect2
9466	  :
9467	  else
9468	  # We have old collect2
9469	  hardcode_direct=unsupported
9470	  # It fails to find uninstalled libraries when the uninstalled
9471	  # path is not listed in the libpath.  Setting hardcode_minus_L
9472	  # to unsupported forces relinking
9473	  hardcode_minus_L=yes
9474	  hardcode_libdir_flag_spec='-L$libdir'
9475	  hardcode_libdir_separator=
9476	  fi
9477	  ;;
9478	esac
9479	shared_flag='-shared'
9480	if test "$aix_use_runtimelinking" = yes; then
9481	  shared_flag="$shared_flag "'${wl}-G'
9482	fi
9483      else
9484	# not using gcc
9485	if test "$host_cpu" = ia64; then
9486	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9487	# chokes on -Wl,-G. The following line is correct:
9488	  shared_flag='-G'
9489	else
9490	  if test "$aix_use_runtimelinking" = yes; then
9491	    shared_flag='${wl}-G'
9492	  else
9493	    shared_flag='${wl}-bM:SRE'
9494	  fi
9495	fi
9496      fi
9497
9498      export_dynamic_flag_spec='${wl}-bexpall'
9499      # It seems that -bexpall does not export symbols beginning with
9500      # underscore (_), so it is better to generate a list of symbols to export.
9501      always_export_symbols=yes
9502      if test "$aix_use_runtimelinking" = yes; then
9503	# Warning - without using the other runtime loading flags (-brtl),
9504	# -berok will link without error, but may produce a broken library.
9505	allow_undefined_flag='-berok'
9506        # Determine the default libpath from the value encoded in an
9507        # empty executable.
9508        if test "${lt_cv_aix_libpath+set}" = set; then
9509  aix_libpath=$lt_cv_aix_libpath
9510else
9511  if ${lt_cv_aix_libpath_+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516
9517int
9518main ()
9519{
9520
9521  ;
9522  return 0;
9523}
9524_ACEOF
9525if ac_fn_c_try_link "$LINENO"; then :
9526
9527  lt_aix_libpath_sed='
9528      /Import File Strings/,/^$/ {
9529	  /^0/ {
9530	      s/^0  *\([^ ]*\) *$/\1/
9531	      p
9532	  }
9533      }'
9534  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535  # Check for a 64-bit object if we didn't find anything.
9536  if test -z "$lt_cv_aix_libpath_"; then
9537    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9538  fi
9539fi
9540rm -f core conftest.err conftest.$ac_objext \
9541    conftest$ac_exeext conftest.$ac_ext
9542  if test -z "$lt_cv_aix_libpath_"; then
9543    lt_cv_aix_libpath_="/usr/lib:/lib"
9544  fi
9545
9546fi
9547
9548  aix_libpath=$lt_cv_aix_libpath_
9549fi
9550
9551        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9552        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"
9553      else
9554	if test "$host_cpu" = ia64; then
9555	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9556	  allow_undefined_flag="-z nodefs"
9557	  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"
9558	else
9559	 # Determine the default libpath from the value encoded in an
9560	 # empty executable.
9561	 if test "${lt_cv_aix_libpath+set}" = set; then
9562  aix_libpath=$lt_cv_aix_libpath
9563else
9564  if ${lt_cv_aix_libpath_+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568/* end confdefs.h.  */
9569
9570int
9571main ()
9572{
9573
9574  ;
9575  return 0;
9576}
9577_ACEOF
9578if ac_fn_c_try_link "$LINENO"; then :
9579
9580  lt_aix_libpath_sed='
9581      /Import File Strings/,/^$/ {
9582	  /^0/ {
9583	      s/^0  *\([^ ]*\) *$/\1/
9584	      p
9585	  }
9586      }'
9587  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9588  # Check for a 64-bit object if we didn't find anything.
9589  if test -z "$lt_cv_aix_libpath_"; then
9590    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9591  fi
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594    conftest$ac_exeext conftest.$ac_ext
9595  if test -z "$lt_cv_aix_libpath_"; then
9596    lt_cv_aix_libpath_="/usr/lib:/lib"
9597  fi
9598
9599fi
9600
9601  aix_libpath=$lt_cv_aix_libpath_
9602fi
9603
9604	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9605	  # Warning - without using the other run time loading flags,
9606	  # -berok will link without error, but may produce a broken library.
9607	  no_undefined_flag=' ${wl}-bernotok'
9608	  allow_undefined_flag=' ${wl}-berok'
9609	  if test "$with_gnu_ld" = yes; then
9610	    # We only use this code for GNU lds that support --whole-archive.
9611	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9612	  else
9613	    # Exported symbols can be pulled into shared objects from archives
9614	    whole_archive_flag_spec='$convenience'
9615	  fi
9616	  archive_cmds_need_lc=yes
9617	  # This is similar to how AIX traditionally builds its shared libraries.
9618	  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'
9619	fi
9620      fi
9621      ;;
9622
9623    amigaos*)
9624      case $host_cpu in
9625      powerpc)
9626            # see comment about AmigaOS4 .so support
9627            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628            archive_expsym_cmds=''
9629        ;;
9630      m68k)
9631            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)'
9632            hardcode_libdir_flag_spec='-L$libdir'
9633            hardcode_minus_L=yes
9634        ;;
9635      esac
9636      ;;
9637
9638    bsdi[45]*)
9639      export_dynamic_flag_spec=-rdynamic
9640      ;;
9641
9642    cygwin* | mingw* | pw32* | cegcc*)
9643      # When not using gcc, we currently assume that we are using
9644      # Microsoft Visual C++.
9645      # hardcode_libdir_flag_spec is actually meaningless, as there is
9646      # no search path for DLLs.
9647      case $cc_basename in
9648      cl*)
9649	# Native MSVC
9650	hardcode_libdir_flag_spec=' '
9651	allow_undefined_flag=unsupported
9652	always_export_symbols=yes
9653	file_list_spec='@'
9654	# Tell ltmain to make .lib files, not .a files.
9655	libext=lib
9656	# Tell ltmain to make .dll files, not .so files.
9657	shrext_cmds=".dll"
9658	# FIXME: Setting linknames here is a bad hack.
9659	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9660	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9661	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9662	  else
9663	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9664	  fi~
9665	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9666	  linknames='
9667	# The linker will not automatically build a static lib if we build a DLL.
9668	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9669	enable_shared_with_static_runtimes=yes
9670	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9671	# Don't use ranlib
9672	old_postinstall_cmds='chmod 644 $oldlib'
9673	postlink_cmds='lt_outputfile="@OUTPUT@"~
9674	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9675	  case $lt_outputfile in
9676	    *.exe|*.EXE) ;;
9677	    *)
9678	      lt_outputfile="$lt_outputfile.exe"
9679	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9680	      ;;
9681	  esac~
9682	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9683	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9684	    $RM "$lt_outputfile.manifest";
9685	  fi'
9686	;;
9687      *)
9688	# Assume MSVC wrapper
9689	hardcode_libdir_flag_spec=' '
9690	allow_undefined_flag=unsupported
9691	# Tell ltmain to make .lib files, not .a files.
9692	libext=lib
9693	# Tell ltmain to make .dll files, not .so files.
9694	shrext_cmds=".dll"
9695	# FIXME: Setting linknames here is a bad hack.
9696	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9697	# The linker will automatically build a .lib file if we build a DLL.
9698	old_archive_from_new_cmds='true'
9699	# FIXME: Should let the user specify the lib program.
9700	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9701	enable_shared_with_static_runtimes=yes
9702	;;
9703      esac
9704      ;;
9705
9706    darwin* | rhapsody*)
9707
9708
9709  archive_cmds_need_lc=no
9710  hardcode_direct=no
9711  hardcode_automatic=yes
9712  hardcode_shlibpath_var=unsupported
9713  if test "$lt_cv_ld_force_load" = "yes"; then
9714    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\"`'
9715  else
9716    whole_archive_flag_spec=''
9717  fi
9718  link_all_deplibs=yes
9719  allow_undefined_flag="$_lt_dar_allow_undefined"
9720  case $cc_basename in
9721     ifort*) _lt_dar_can_shared=yes ;;
9722     *) _lt_dar_can_shared=$GCC ;;
9723  esac
9724  if test "$_lt_dar_can_shared" = "yes"; then
9725    output_verbose_link_cmd=func_echo_all
9726    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9727    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9728    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}"
9729    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}"
9730
9731  else
9732  ld_shlibs=no
9733  fi
9734
9735      ;;
9736
9737    dgux*)
9738      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739      hardcode_libdir_flag_spec='-L$libdir'
9740      hardcode_shlibpath_var=no
9741      ;;
9742
9743    freebsd1*)
9744      ld_shlibs=no
9745      ;;
9746
9747    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9748    # support.  Future versions do this automatically, but an explicit c++rt0.o
9749    # does not break anything, and helps significantly (at the cost of a little
9750    # extra space).
9751    freebsd2.2*)
9752      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9753      hardcode_libdir_flag_spec='-R$libdir'
9754      hardcode_direct=yes
9755      hardcode_shlibpath_var=no
9756      ;;
9757
9758    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9759    freebsd2*)
9760      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761      hardcode_direct=yes
9762      hardcode_minus_L=yes
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9767    freebsd* | dragonfly*)
9768      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9769      hardcode_libdir_flag_spec='-R$libdir'
9770      hardcode_direct=yes
9771      hardcode_shlibpath_var=no
9772      ;;
9773
9774    hpux9*)
9775      if test "$GCC" = yes; then
9776	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'
9777      else
9778	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'
9779      fi
9780      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9781      hardcode_libdir_separator=:
9782      hardcode_direct=yes
9783
9784      # hardcode_minus_L: Not really in the search PATH,
9785      # but as the default location of the library.
9786      hardcode_minus_L=yes
9787      export_dynamic_flag_spec='${wl}-E'
9788      ;;
9789
9790    hpux10*)
9791      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9792	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793      else
9794	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9795      fi
9796      if test "$with_gnu_ld" = no; then
9797	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9798	hardcode_libdir_flag_spec_ld='+b $libdir'
9799	hardcode_libdir_separator=:
9800	hardcode_direct=yes
9801	hardcode_direct_absolute=yes
9802	export_dynamic_flag_spec='${wl}-E'
9803	# hardcode_minus_L: Not really in the search PATH,
9804	# but as the default location of the library.
9805	hardcode_minus_L=yes
9806      fi
9807      ;;
9808
9809    hpux11*)
9810      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9811	case $host_cpu in
9812	hppa*64*)
9813	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9814	  ;;
9815	ia64*)
9816	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9817	  ;;
9818	*)
9819	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9820	  ;;
9821	esac
9822      else
9823	case $host_cpu in
9824	hppa*64*)
9825	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9826	  ;;
9827	ia64*)
9828	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9829	  ;;
9830	*)
9831
9832	  # Older versions of the 11.00 compiler do not understand -b yet
9833	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9834	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9835$as_echo_n "checking if $CC understands -b... " >&6; }
9836if ${lt_cv_prog_compiler__b+:} false; then :
9837  $as_echo_n "(cached) " >&6
9838else
9839  lt_cv_prog_compiler__b=no
9840   save_LDFLAGS="$LDFLAGS"
9841   LDFLAGS="$LDFLAGS -b"
9842   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9843   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9844     # The linker can only warn and ignore the option if not recognized
9845     # So say no if there are warnings
9846     if test -s conftest.err; then
9847       # Append any errors to the config.log.
9848       cat conftest.err 1>&5
9849       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9850       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9851       if diff conftest.exp conftest.er2 >/dev/null; then
9852         lt_cv_prog_compiler__b=yes
9853       fi
9854     else
9855       lt_cv_prog_compiler__b=yes
9856     fi
9857   fi
9858   $RM -r conftest*
9859   LDFLAGS="$save_LDFLAGS"
9860
9861fi
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9863$as_echo "$lt_cv_prog_compiler__b" >&6; }
9864
9865if test x"$lt_cv_prog_compiler__b" = xyes; then
9866    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867else
9868    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9869fi
9870
9871	  ;;
9872	esac
9873      fi
9874      if test "$with_gnu_ld" = no; then
9875	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9876	hardcode_libdir_separator=:
9877
9878	case $host_cpu in
9879	hppa*64*|ia64*)
9880	  hardcode_direct=no
9881	  hardcode_shlibpath_var=no
9882	  ;;
9883	*)
9884	  hardcode_direct=yes
9885	  hardcode_direct_absolute=yes
9886	  export_dynamic_flag_spec='${wl}-E'
9887
9888	  # hardcode_minus_L: Not really in the search PATH,
9889	  # but as the default location of the library.
9890	  hardcode_minus_L=yes
9891	  ;;
9892	esac
9893      fi
9894      ;;
9895
9896    irix5* | irix6* | nonstopux*)
9897      if test "$GCC" = yes; then
9898	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'
9899	# Try to use the -exported_symbol ld option, if it does not
9900	# work, assume that -exports_file does not work either and
9901	# implicitly export all symbols.
9902	# This should be the same for all languages, so no per-tag cache variable.
9903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9904$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9905if ${lt_cv_irix_exported_symbol+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  save_LDFLAGS="$LDFLAGS"
9909	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9910	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911/* end confdefs.h.  */
9912int foo (void) { return 0; }
9913_ACEOF
9914if ac_fn_c_try_link "$LINENO"; then :
9915  lt_cv_irix_exported_symbol=yes
9916else
9917  lt_cv_irix_exported_symbol=no
9918fi
9919rm -f core conftest.err conftest.$ac_objext \
9920    conftest$ac_exeext conftest.$ac_ext
9921           LDFLAGS="$save_LDFLAGS"
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9924$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9925	if test "$lt_cv_irix_exported_symbol" = yes; then
9926          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'
9927	fi
9928      else
9929	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'
9930	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'
9931      fi
9932      archive_cmds_need_lc='no'
9933      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934      hardcode_libdir_separator=:
9935      inherit_rpath=yes
9936      link_all_deplibs=yes
9937      ;;
9938
9939    netbsd*)
9940      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9941	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9942      else
9943	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9944      fi
9945      hardcode_libdir_flag_spec='-R$libdir'
9946      hardcode_direct=yes
9947      hardcode_shlibpath_var=no
9948      ;;
9949
9950    newsos6)
9951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952      hardcode_direct=yes
9953      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954      hardcode_libdir_separator=:
9955      hardcode_shlibpath_var=no
9956      ;;
9957
9958    *nto* | *qnx*)
9959      ;;
9960
9961    openbsd*)
9962      if test -f /usr/libexec/ld.so; then
9963	hardcode_direct=yes
9964	hardcode_shlibpath_var=no
9965	hardcode_direct_absolute=yes
9966	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9968	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9969	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9970	  export_dynamic_flag_spec='${wl}-E'
9971	else
9972	  case $host_os in
9973	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9974	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975	     hardcode_libdir_flag_spec='-R$libdir'
9976	     ;;
9977	   *)
9978	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9979	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9980	     ;;
9981	  esac
9982	fi
9983      else
9984	ld_shlibs=no
9985      fi
9986      ;;
9987
9988    os2*)
9989      hardcode_libdir_flag_spec='-L$libdir'
9990      hardcode_minus_L=yes
9991      allow_undefined_flag=unsupported
9992      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'
9993      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9994      ;;
9995
9996    osf3*)
9997      if test "$GCC" = yes; then
9998	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999	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'
10000      else
10001	allow_undefined_flag=' -expect_unresolved \*'
10002	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'
10003      fi
10004      archive_cmds_need_lc='no'
10005      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006      hardcode_libdir_separator=:
10007      ;;
10008
10009    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10010      if test "$GCC" = yes; then
10011	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10012	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'
10013	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014      else
10015	allow_undefined_flag=' -expect_unresolved \*'
10016	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'
10017	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~
10018	$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'
10019
10020	# Both c and cxx compiler support -rpath directly
10021	hardcode_libdir_flag_spec='-rpath $libdir'
10022      fi
10023      archive_cmds_need_lc='no'
10024      hardcode_libdir_separator=:
10025      ;;
10026
10027    solaris*)
10028      no_undefined_flag=' -z defs'
10029      if test "$GCC" = yes; then
10030	wlarc='${wl}'
10031	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033	  $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'
10034      else
10035	case `$CC -V 2>&1` in
10036	*"Compilers 5.0"*)
10037	  wlarc=''
10038	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10040	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10041	  ;;
10042	*)
10043	  wlarc='${wl}'
10044	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10045	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10046	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10047	  ;;
10048	esac
10049      fi
10050      hardcode_libdir_flag_spec='-R$libdir'
10051      hardcode_shlibpath_var=no
10052      case $host_os in
10053      solaris2.[0-5] | solaris2.[0-5].*) ;;
10054      *)
10055	# The compiler driver will combine and reorder linker options,
10056	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10057	# but is careful enough not to reorder.
10058	# Supported since Solaris 2.6 (maybe 2.5.1?)
10059	if test "$GCC" = yes; then
10060	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10061	else
10062	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10063	fi
10064	;;
10065      esac
10066      link_all_deplibs=yes
10067      ;;
10068
10069    sunos4*)
10070      if test "x$host_vendor" = xsequent; then
10071	# Use $CC to link under sequent, because it throws in some extra .o
10072	# files that make .init and .fini sections work.
10073	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10074      else
10075	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10076      fi
10077      hardcode_libdir_flag_spec='-L$libdir'
10078      hardcode_direct=yes
10079      hardcode_minus_L=yes
10080      hardcode_shlibpath_var=no
10081      ;;
10082
10083    sysv4)
10084      case $host_vendor in
10085	sni)
10086	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087	  hardcode_direct=yes # is this really true???
10088	;;
10089	siemens)
10090	  ## LD is ld it makes a PLAMLIB
10091	  ## CC just makes a GrossModule.
10092	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10093	  reload_cmds='$CC -r -o $output$reload_objs'
10094	  hardcode_direct=no
10095        ;;
10096	motorola)
10097	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10099	;;
10100      esac
10101      runpath_var='LD_RUN_PATH'
10102      hardcode_shlibpath_var=no
10103      ;;
10104
10105    sysv4.3*)
10106      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107      hardcode_shlibpath_var=no
10108      export_dynamic_flag_spec='-Bexport'
10109      ;;
10110
10111    sysv4*MP*)
10112      if test -d /usr/nec; then
10113	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114	hardcode_shlibpath_var=no
10115	runpath_var=LD_RUN_PATH
10116	hardcode_runpath_var=yes
10117	ld_shlibs=yes
10118      fi
10119      ;;
10120
10121    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10122      no_undefined_flag='${wl}-z,text'
10123      archive_cmds_need_lc=no
10124      hardcode_shlibpath_var=no
10125      runpath_var='LD_RUN_PATH'
10126
10127      if test "$GCC" = yes; then
10128	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130      else
10131	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133      fi
10134      ;;
10135
10136    sysv5* | sco3.2v5* | sco5v6*)
10137      # Note: We can NOT use -z defs as we might desire, because we do not
10138      # link with -lc, and that would cause any symbols used from libc to
10139      # always be unresolved, which means just about no library would
10140      # ever link correctly.  If we're not using GNU ld we use -z text
10141      # though, which does catch some bad symbols but isn't as heavy-handed
10142      # as -z defs.
10143      no_undefined_flag='${wl}-z,text'
10144      allow_undefined_flag='${wl}-z,nodefs'
10145      archive_cmds_need_lc=no
10146      hardcode_shlibpath_var=no
10147      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10148      hardcode_libdir_separator=':'
10149      link_all_deplibs=yes
10150      export_dynamic_flag_spec='${wl}-Bexport'
10151      runpath_var='LD_RUN_PATH'
10152
10153      if test "$GCC" = yes; then
10154	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156      else
10157	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159      fi
10160      ;;
10161
10162    uts4*)
10163      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164      hardcode_libdir_flag_spec='-L$libdir'
10165      hardcode_shlibpath_var=no
10166      ;;
10167
10168    *)
10169      ld_shlibs=no
10170      ;;
10171    esac
10172
10173    if test x$host_vendor = xsni; then
10174      case $host in
10175      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10176	export_dynamic_flag_spec='${wl}-Blargedynsym'
10177	;;
10178      esac
10179    fi
10180  fi
10181
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10183$as_echo "$ld_shlibs" >&6; }
10184test "$ld_shlibs" = no && can_build_shared=no
10185
10186with_gnu_ld=$with_gnu_ld
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202#
10203# Do we need to explicitly link libc?
10204#
10205case "x$archive_cmds_need_lc" in
10206x|xyes)
10207  # Assume -lc should be added
10208  archive_cmds_need_lc=yes
10209
10210  if test "$enable_shared" = yes && test "$GCC" = yes; then
10211    case $archive_cmds in
10212    *'~'*)
10213      # FIXME: we may have to deal with multi-command sequences.
10214      ;;
10215    '$CC '*)
10216      # Test whether the compiler implicitly links with -lc since on some
10217      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10218      # to ld, don't add -lc before -lgcc.
10219      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10220$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10221if ${lt_cv_archive_cmds_need_lc+:} false; then :
10222  $as_echo_n "(cached) " >&6
10223else
10224  $RM conftest*
10225	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10226
10227	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10228  (eval $ac_compile) 2>&5
10229  ac_status=$?
10230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10231  test $ac_status = 0; } 2>conftest.err; then
10232	  soname=conftest
10233	  lib=conftest
10234	  libobjs=conftest.$ac_objext
10235	  deplibs=
10236	  wl=$lt_prog_compiler_wl
10237	  pic_flag=$lt_prog_compiler_pic
10238	  compiler_flags=-v
10239	  linker_flags=-v
10240	  verstring=
10241	  output_objdir=.
10242	  libname=conftest
10243	  lt_save_allow_undefined_flag=$allow_undefined_flag
10244	  allow_undefined_flag=
10245	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10246  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10247  ac_status=$?
10248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10249  test $ac_status = 0; }
10250	  then
10251	    lt_cv_archive_cmds_need_lc=no
10252	  else
10253	    lt_cv_archive_cmds_need_lc=yes
10254	  fi
10255	  allow_undefined_flag=$lt_save_allow_undefined_flag
10256	else
10257	  cat conftest.err 1>&5
10258	fi
10259	$RM conftest*
10260
10261fi
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10263$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10264      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10265      ;;
10266    esac
10267  fi
10268  ;;
10269esac
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
10420
10421
10422
10423
10424
10425
10426
10427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10428$as_echo_n "checking dynamic linker characteristics... " >&6; }
10429
10430if test "$GCC" = yes; then
10431  case $host_os in
10432    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10433    *) lt_awk_arg="/^libraries:/" ;;
10434  esac
10435  case $host_os in
10436    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10437    *) lt_sed_strip_eq="s,=/,/,g" ;;
10438  esac
10439  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10440  case $lt_search_path_spec in
10441  *\;*)
10442    # if the path contains ";" then we assume it to be the separator
10443    # otherwise default to the standard path separator (i.e. ":") - it is
10444    # assumed that no part of a normal pathname contains ";" but that should
10445    # okay in the real world where ";" in dirpaths is itself problematic.
10446    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10447    ;;
10448  *)
10449    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10450    ;;
10451  esac
10452  # Ok, now we have the path, separated by spaces, we can step through it
10453  # and add multilib dir if necessary.
10454  lt_tmp_lt_search_path_spec=
10455  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10456  for lt_sys_path in $lt_search_path_spec; do
10457    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10458      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10459    else
10460      test -d "$lt_sys_path" && \
10461	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10462    fi
10463  done
10464  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10465BEGIN {RS=" "; FS="/|\n";} {
10466  lt_foo="";
10467  lt_count=0;
10468  for (lt_i = NF; lt_i > 0; lt_i--) {
10469    if ($lt_i != "" && $lt_i != ".") {
10470      if ($lt_i == "..") {
10471        lt_count++;
10472      } else {
10473        if (lt_count == 0) {
10474          lt_foo="/" $lt_i lt_foo;
10475        } else {
10476          lt_count--;
10477        }
10478      }
10479    }
10480  }
10481  if (lt_foo != "") { lt_freq[lt_foo]++; }
10482  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10483}'`
10484  # AWK program above erroneously prepends '/' to C:/dos/paths
10485  # for these hosts.
10486  case $host_os in
10487    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10488      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10489  esac
10490  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10491else
10492  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10493fi
10494library_names_spec=
10495libname_spec='lib$name'
10496soname_spec=
10497shrext_cmds=".so"
10498postinstall_cmds=
10499postuninstall_cmds=
10500finish_cmds=
10501finish_eval=
10502shlibpath_var=
10503shlibpath_overrides_runpath=unknown
10504version_type=none
10505dynamic_linker="$host_os ld.so"
10506sys_lib_dlsearch_path_spec="/lib /usr/lib"
10507need_lib_prefix=unknown
10508hardcode_into_libs=no
10509
10510# when you set need_version to no, make sure it does not cause -set_version
10511# flags to be left without arguments
10512need_version=unknown
10513
10514case $host_os in
10515aix3*)
10516  version_type=linux
10517  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10518  shlibpath_var=LIBPATH
10519
10520  # AIX 3 has no versioning support, so we append a major version to the name.
10521  soname_spec='${libname}${release}${shared_ext}$major'
10522  ;;
10523
10524aix[4-9]*)
10525  version_type=linux
10526  need_lib_prefix=no
10527  need_version=no
10528  hardcode_into_libs=yes
10529  if test "$host_cpu" = ia64; then
10530    # AIX 5 supports IA64
10531    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10532    shlibpath_var=LD_LIBRARY_PATH
10533  else
10534    # With GCC up to 2.95.x, collect2 would create an import file
10535    # for dependence libraries.  The import file would start with
10536    # the line `#! .'.  This would cause the generated library to
10537    # depend on `.', always an invalid library.  This was fixed in
10538    # development snapshots of GCC prior to 3.0.
10539    case $host_os in
10540      aix4 | aix4.[01] | aix4.[01].*)
10541      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10542	   echo ' yes '
10543	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10544	:
10545      else
10546	can_build_shared=no
10547      fi
10548      ;;
10549    esac
10550    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10551    # soname into executable. Probably we can add versioning support to
10552    # collect2, so additional links can be useful in future.
10553    if test "$aix_use_runtimelinking" = yes; then
10554      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10555      # instead of lib<name>.a to let people know that these are not
10556      # typical AIX shared libraries.
10557      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558    else
10559      # We preserve .a as extension for shared libraries through AIX4.2
10560      # and later when we are not doing run time linking.
10561      library_names_spec='${libname}${release}.a $libname.a'
10562      soname_spec='${libname}${release}${shared_ext}$major'
10563    fi
10564    shlibpath_var=LIBPATH
10565  fi
10566  ;;
10567
10568amigaos*)
10569  case $host_cpu in
10570  powerpc)
10571    # Since July 2007 AmigaOS4 officially supports .so libraries.
10572    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574    ;;
10575  m68k)
10576    library_names_spec='$libname.ixlibrary $libname.a'
10577    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10578    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'
10579    ;;
10580  esac
10581  ;;
10582
10583beos*)
10584  library_names_spec='${libname}${shared_ext}'
10585  dynamic_linker="$host_os ld.so"
10586  shlibpath_var=LIBRARY_PATH
10587  ;;
10588
10589bsdi[45]*)
10590  version_type=linux
10591  need_version=no
10592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593  soname_spec='${libname}${release}${shared_ext}$major'
10594  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10595  shlibpath_var=LD_LIBRARY_PATH
10596  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10597  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10598  # the default ld.so.conf also contains /usr/contrib/lib and
10599  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10600  # libtool to hard-code these into programs
10601  ;;
10602
10603cygwin* | mingw* | pw32* | cegcc*)
10604  version_type=windows
10605  shrext_cmds=".dll"
10606  need_version=no
10607  need_lib_prefix=no
10608
10609  case $GCC,$cc_basename in
10610  yes,*)
10611    # gcc
10612    library_names_spec='$libname.dll.a'
10613    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10614    postinstall_cmds='base_file=`basename \${file}`~
10615      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10616      dldir=$destdir/`dirname \$dlpath`~
10617      test -d \$dldir || mkdir -p \$dldir~
10618      $install_prog $dir/$dlname \$dldir/$dlname~
10619      chmod a+x \$dldir/$dlname~
10620      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10621        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10622      fi'
10623    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10624      dlpath=$dir/\$dldll~
10625       $RM \$dlpath'
10626    shlibpath_overrides_runpath=yes
10627
10628    case $host_os in
10629    cygwin*)
10630      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10631      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10632
10633      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10634      ;;
10635    mingw* | cegcc*)
10636      # MinGW DLLs use traditional 'lib' prefix
10637      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10638      ;;
10639    pw32*)
10640      # pw32 DLLs use 'pw' prefix rather than 'lib'
10641      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10642      ;;
10643    esac
10644    dynamic_linker='Win32 ld.exe'
10645    ;;
10646
10647  *,cl*)
10648    # Native MSVC
10649    libname_spec='$name'
10650    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10651    library_names_spec='${libname}.dll.lib'
10652
10653    case $build_os in
10654    mingw*)
10655      sys_lib_search_path_spec=
10656      lt_save_ifs=$IFS
10657      IFS=';'
10658      for lt_path in $LIB
10659      do
10660        IFS=$lt_save_ifs
10661        # Let DOS variable expansion print the short 8.3 style file name.
10662        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10663        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10664      done
10665      IFS=$lt_save_ifs
10666      # Convert to MSYS style.
10667      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10668      ;;
10669    cygwin*)
10670      # Convert to unix form, then to dos form, then back to unix form
10671      # but this time dos style (no spaces!) so that the unix form looks
10672      # like /cygdrive/c/PROGRA~1:/cygdr...
10673      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10674      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10675      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10676      ;;
10677    *)
10678      sys_lib_search_path_spec="$LIB"
10679      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10680        # It is most probably a Windows format PATH.
10681        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10682      else
10683        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10684      fi
10685      # FIXME: find the short name or the path components, as spaces are
10686      # common. (e.g. "Program Files" -> "PROGRA~1")
10687      ;;
10688    esac
10689
10690    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10691    postinstall_cmds='base_file=`basename \${file}`~
10692      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10693      dldir=$destdir/`dirname \$dlpath`~
10694      test -d \$dldir || mkdir -p \$dldir~
10695      $install_prog $dir/$dlname \$dldir/$dlname'
10696    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10697      dlpath=$dir/\$dldll~
10698       $RM \$dlpath'
10699    shlibpath_overrides_runpath=yes
10700    dynamic_linker='Win32 link.exe'
10701    ;;
10702
10703  *)
10704    # Assume MSVC wrapper
10705    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10706    dynamic_linker='Win32 ld.exe'
10707    ;;
10708  esac
10709  # FIXME: first we should search . and the directory the executable is in
10710  shlibpath_var=PATH
10711  ;;
10712
10713darwin* | rhapsody*)
10714  dynamic_linker="$host_os dyld"
10715  version_type=darwin
10716  need_lib_prefix=no
10717  need_version=no
10718  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10719  soname_spec='${libname}${release}${major}$shared_ext'
10720  shlibpath_overrides_runpath=yes
10721  shlibpath_var=DYLD_LIBRARY_PATH
10722  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10723
10724  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10725  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10726  ;;
10727
10728dgux*)
10729  version_type=linux
10730  need_lib_prefix=no
10731  need_version=no
10732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10733  soname_spec='${libname}${release}${shared_ext}$major'
10734  shlibpath_var=LD_LIBRARY_PATH
10735  ;;
10736
10737freebsd1*)
10738  dynamic_linker=no
10739  ;;
10740
10741freebsd* | dragonfly*)
10742  # DragonFly does not have aout.  When/if they implement a new
10743  # versioning mechanism, adjust this.
10744  if test -x /usr/bin/objformat; then
10745    objformat=`/usr/bin/objformat`
10746  else
10747    case $host_os in
10748    freebsd[123]*) objformat=aout ;;
10749    *) objformat=elf ;;
10750    esac
10751  fi
10752  version_type=freebsd-$objformat
10753  case $version_type in
10754    freebsd-elf*)
10755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10756      need_version=no
10757      need_lib_prefix=no
10758      ;;
10759    freebsd-*)
10760      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10761      need_version=yes
10762      ;;
10763  esac
10764  shlibpath_var=LD_LIBRARY_PATH
10765  case $host_os in
10766  freebsd2*)
10767    shlibpath_overrides_runpath=yes
10768    ;;
10769  freebsd3.[01]* | freebsdelf3.[01]*)
10770    shlibpath_overrides_runpath=yes
10771    hardcode_into_libs=yes
10772    ;;
10773  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10774  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10775    shlibpath_overrides_runpath=no
10776    hardcode_into_libs=yes
10777    ;;
10778  *) # from 4.6 on, and DragonFly
10779    shlibpath_overrides_runpath=yes
10780    hardcode_into_libs=yes
10781    ;;
10782  esac
10783  ;;
10784
10785gnu*)
10786  version_type=linux
10787  need_lib_prefix=no
10788  need_version=no
10789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10790  soname_spec='${libname}${release}${shared_ext}$major'
10791  shlibpath_var=LD_LIBRARY_PATH
10792  hardcode_into_libs=yes
10793  ;;
10794
10795haiku*)
10796  version_type=linux
10797  need_lib_prefix=no
10798  need_version=no
10799  dynamic_linker="$host_os runtime_loader"
10800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10801  soname_spec='${libname}${release}${shared_ext}$major'
10802  shlibpath_var=LIBRARY_PATH
10803  shlibpath_overrides_runpath=yes
10804  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10805  hardcode_into_libs=yes
10806  ;;
10807
10808hpux9* | hpux10* | hpux11*)
10809  # Give a soname corresponding to the major version so that dld.sl refuses to
10810  # link against other versions.
10811  version_type=sunos
10812  need_lib_prefix=no
10813  need_version=no
10814  case $host_cpu in
10815  ia64*)
10816    shrext_cmds='.so'
10817    hardcode_into_libs=yes
10818    dynamic_linker="$host_os dld.so"
10819    shlibpath_var=LD_LIBRARY_PATH
10820    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10821    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822    soname_spec='${libname}${release}${shared_ext}$major'
10823    if test "X$HPUX_IA64_MODE" = X32; then
10824      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10825    else
10826      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10827    fi
10828    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10829    ;;
10830  hppa*64*)
10831    shrext_cmds='.sl'
10832    hardcode_into_libs=yes
10833    dynamic_linker="$host_os dld.sl"
10834    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10835    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10836    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837    soname_spec='${libname}${release}${shared_ext}$major'
10838    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10839    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10840    ;;
10841  *)
10842    shrext_cmds='.sl'
10843    dynamic_linker="$host_os dld.sl"
10844    shlibpath_var=SHLIB_PATH
10845    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847    soname_spec='${libname}${release}${shared_ext}$major'
10848    ;;
10849  esac
10850  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10851  postinstall_cmds='chmod 555 $lib'
10852  # or fails outright, so override atomically:
10853  install_override_mode=555
10854  ;;
10855
10856interix[3-9]*)
10857  version_type=linux
10858  need_lib_prefix=no
10859  need_version=no
10860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10861  soname_spec='${libname}${release}${shared_ext}$major'
10862  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10863  shlibpath_var=LD_LIBRARY_PATH
10864  shlibpath_overrides_runpath=no
10865  hardcode_into_libs=yes
10866  ;;
10867
10868irix5* | irix6* | nonstopux*)
10869  case $host_os in
10870    nonstopux*) version_type=nonstopux ;;
10871    *)
10872	if test "$lt_cv_prog_gnu_ld" = yes; then
10873		version_type=linux
10874	else
10875		version_type=irix
10876	fi ;;
10877  esac
10878  need_lib_prefix=no
10879  need_version=no
10880  soname_spec='${libname}${release}${shared_ext}$major'
10881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10882  case $host_os in
10883  irix5* | nonstopux*)
10884    libsuff= shlibsuff=
10885    ;;
10886  *)
10887    case $LD in # libtool.m4 will add one of these switches to LD
10888    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10889      libsuff= shlibsuff= libmagic=32-bit;;
10890    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10891      libsuff=32 shlibsuff=N32 libmagic=N32;;
10892    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10893      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10894    *) libsuff= shlibsuff= libmagic=never-match;;
10895    esac
10896    ;;
10897  esac
10898  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10899  shlibpath_overrides_runpath=no
10900  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10901  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10902  hardcode_into_libs=yes
10903  ;;
10904
10905# No shared lib support for Linux oldld, aout, or coff.
10906linux*oldld* | linux*aout* | linux*coff*)
10907  dynamic_linker=no
10908  ;;
10909
10910# This must be Linux ELF.
10911linux* | k*bsd*-gnu | kopensolaris*-gnu)
10912  version_type=linux
10913  need_lib_prefix=no
10914  need_version=no
10915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10916  soname_spec='${libname}${release}${shared_ext}$major'
10917  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  shlibpath_overrides_runpath=no
10920
10921  # Some binutils ld are patched to set DT_RUNPATH
10922  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10923  $as_echo_n "(cached) " >&6
10924else
10925  lt_cv_shlibpath_overrides_runpath=no
10926    save_LDFLAGS=$LDFLAGS
10927    save_libdir=$libdir
10928    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10929	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10930    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931/* end confdefs.h.  */
10932
10933int
10934main ()
10935{
10936
10937  ;
10938  return 0;
10939}
10940_ACEOF
10941if ac_fn_c_try_link "$LINENO"; then :
10942  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10943  lt_cv_shlibpath_overrides_runpath=yes
10944fi
10945fi
10946rm -f core conftest.err conftest.$ac_objext \
10947    conftest$ac_exeext conftest.$ac_ext
10948    LDFLAGS=$save_LDFLAGS
10949    libdir=$save_libdir
10950
10951fi
10952
10953  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10954
10955  # This implies no fast_install, which is unacceptable.
10956  # Some rework will be needed to allow for fast_install
10957  # before this can be enabled.
10958  hardcode_into_libs=yes
10959
10960  # Add ABI-specific directories to the system library path.
10961  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10962
10963  # Append ld.so.conf contents to the search path
10964  if test -f /etc/ld.so.conf; then
10965    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' ' '`
10966    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10967
10968  fi
10969
10970  # We used to test for /lib/ld.so.1 and disable shared libraries on
10971  # powerpc, because MkLinux only supported shared libraries with the
10972  # GNU dynamic linker.  Since this was broken with cross compilers,
10973  # most powerpc-linux boxes support dynamic linking these days and
10974  # people can always --disable-shared, the test was removed, and we
10975  # assume the GNU/Linux dynamic linker is in use.
10976  dynamic_linker='GNU/Linux ld.so'
10977  ;;
10978
10979netbsd*)
10980  version_type=sunos
10981  need_lib_prefix=no
10982  need_version=no
10983  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10985    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10986    dynamic_linker='NetBSD (a.out) ld.so'
10987  else
10988    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10989    soname_spec='${libname}${release}${shared_ext}$major'
10990    dynamic_linker='NetBSD ld.elf_so'
10991  fi
10992  shlibpath_var=LD_LIBRARY_PATH
10993  shlibpath_overrides_runpath=yes
10994  hardcode_into_libs=yes
10995  ;;
10996
10997newsos6)
10998  version_type=linux
10999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000  shlibpath_var=LD_LIBRARY_PATH
11001  shlibpath_overrides_runpath=yes
11002  ;;
11003
11004*nto* | *qnx*)
11005  version_type=qnx
11006  need_lib_prefix=no
11007  need_version=no
11008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009  soname_spec='${libname}${release}${shared_ext}$major'
11010  shlibpath_var=LD_LIBRARY_PATH
11011  shlibpath_overrides_runpath=no
11012  hardcode_into_libs=yes
11013  dynamic_linker='ldqnx.so'
11014  ;;
11015
11016openbsd*)
11017  version_type=sunos
11018  sys_lib_dlsearch_path_spec="/usr/lib"
11019  need_lib_prefix=no
11020  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11021  case $host_os in
11022    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11023    *)				need_version=no  ;;
11024  esac
11025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11027  shlibpath_var=LD_LIBRARY_PATH
11028  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11029    case $host_os in
11030      openbsd2.[89] | openbsd2.[89].*)
11031	shlibpath_overrides_runpath=no
11032	;;
11033      *)
11034	shlibpath_overrides_runpath=yes
11035	;;
11036      esac
11037  else
11038    shlibpath_overrides_runpath=yes
11039  fi
11040  ;;
11041
11042os2*)
11043  libname_spec='$name'
11044  shrext_cmds=".dll"
11045  need_lib_prefix=no
11046  library_names_spec='$libname${shared_ext} $libname.a'
11047  dynamic_linker='OS/2 ld.exe'
11048  shlibpath_var=LIBPATH
11049  ;;
11050
11051osf3* | osf4* | osf5*)
11052  version_type=osf
11053  need_lib_prefix=no
11054  need_version=no
11055  soname_spec='${libname}${release}${shared_ext}$major'
11056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057  shlibpath_var=LD_LIBRARY_PATH
11058  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11059  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11060  ;;
11061
11062rdos*)
11063  dynamic_linker=no
11064  ;;
11065
11066solaris*)
11067  version_type=linux
11068  need_lib_prefix=no
11069  need_version=no
11070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071  soname_spec='${libname}${release}${shared_ext}$major'
11072  shlibpath_var=LD_LIBRARY_PATH
11073  shlibpath_overrides_runpath=yes
11074  hardcode_into_libs=yes
11075  # ldd complains unless libraries are executable
11076  postinstall_cmds='chmod +x $lib'
11077  ;;
11078
11079sunos4*)
11080  version_type=sunos
11081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11082  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11083  shlibpath_var=LD_LIBRARY_PATH
11084  shlibpath_overrides_runpath=yes
11085  if test "$with_gnu_ld" = yes; then
11086    need_lib_prefix=no
11087  fi
11088  need_version=yes
11089  ;;
11090
11091sysv4 | sysv4.3*)
11092  version_type=linux
11093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094  soname_spec='${libname}${release}${shared_ext}$major'
11095  shlibpath_var=LD_LIBRARY_PATH
11096  case $host_vendor in
11097    sni)
11098      shlibpath_overrides_runpath=no
11099      need_lib_prefix=no
11100      runpath_var=LD_RUN_PATH
11101      ;;
11102    siemens)
11103      need_lib_prefix=no
11104      ;;
11105    motorola)
11106      need_lib_prefix=no
11107      need_version=no
11108      shlibpath_overrides_runpath=no
11109      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11110      ;;
11111  esac
11112  ;;
11113
11114sysv4*MP*)
11115  if test -d /usr/nec ;then
11116    version_type=linux
11117    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11118    soname_spec='$libname${shared_ext}.$major'
11119    shlibpath_var=LD_LIBRARY_PATH
11120  fi
11121  ;;
11122
11123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11124  version_type=freebsd-elf
11125  need_lib_prefix=no
11126  need_version=no
11127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11128  soname_spec='${libname}${release}${shared_ext}$major'
11129  shlibpath_var=LD_LIBRARY_PATH
11130  shlibpath_overrides_runpath=yes
11131  hardcode_into_libs=yes
11132  if test "$with_gnu_ld" = yes; then
11133    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11134  else
11135    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11136    case $host_os in
11137      sco3.2v5*)
11138        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11139	;;
11140    esac
11141  fi
11142  sys_lib_dlsearch_path_spec='/usr/lib'
11143  ;;
11144
11145tpf*)
11146  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11147  version_type=linux
11148  need_lib_prefix=no
11149  need_version=no
11150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151  shlibpath_var=LD_LIBRARY_PATH
11152  shlibpath_overrides_runpath=no
11153  hardcode_into_libs=yes
11154  ;;
11155
11156uts4*)
11157  version_type=linux
11158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159  soname_spec='${libname}${release}${shared_ext}$major'
11160  shlibpath_var=LD_LIBRARY_PATH
11161  ;;
11162
11163*)
11164  dynamic_linker=no
11165  ;;
11166esac
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11168$as_echo "$dynamic_linker" >&6; }
11169test "$dynamic_linker" = no && can_build_shared=no
11170
11171variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11172if test "$GCC" = yes; then
11173  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11174fi
11175
11176if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11177  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11178fi
11179if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11180  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11181fi
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
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11275$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11276hardcode_action=
11277if test -n "$hardcode_libdir_flag_spec" ||
11278   test -n "$runpath_var" ||
11279   test "X$hardcode_automatic" = "Xyes" ; then
11280
11281  # We can hardcode non-existent directories.
11282  if test "$hardcode_direct" != no &&
11283     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11284     # have to relink, otherwise we might link with an installed library
11285     # when we should be linking with a yet-to-be-installed one
11286     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11287     test "$hardcode_minus_L" != no; then
11288    # Linking always hardcodes the temporary library directory.
11289    hardcode_action=relink
11290  else
11291    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11292    hardcode_action=immediate
11293  fi
11294else
11295  # We cannot hardcode anything, or else we can only hardcode existing
11296  # directories.
11297  hardcode_action=unsupported
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11300$as_echo "$hardcode_action" >&6; }
11301
11302if test "$hardcode_action" = relink ||
11303   test "$inherit_rpath" = yes; then
11304  # Fast installation is not supported
11305  enable_fast_install=no
11306elif test "$shlibpath_overrides_runpath" = yes ||
11307     test "$enable_shared" = no; then
11308  # Fast installation is not necessary
11309  enable_fast_install=needless
11310fi
11311
11312
11313
11314
11315
11316
11317  if test "x$enable_dlopen" != xyes; then
11318  enable_dlopen=unknown
11319  enable_dlopen_self=unknown
11320  enable_dlopen_self_static=unknown
11321else
11322  lt_cv_dlopen=no
11323  lt_cv_dlopen_libs=
11324
11325  case $host_os in
11326  beos*)
11327    lt_cv_dlopen="load_add_on"
11328    lt_cv_dlopen_libs=
11329    lt_cv_dlopen_self=yes
11330    ;;
11331
11332  mingw* | pw32* | cegcc*)
11333    lt_cv_dlopen="LoadLibrary"
11334    lt_cv_dlopen_libs=
11335    ;;
11336
11337  cygwin*)
11338    lt_cv_dlopen="dlopen"
11339    lt_cv_dlopen_libs=
11340    ;;
11341
11342  darwin*)
11343  # if libdl is installed we need to link against it
11344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11345$as_echo_n "checking for dlopen in -ldl... " >&6; }
11346if ${ac_cv_lib_dl_dlopen+:} false; then :
11347  $as_echo_n "(cached) " >&6
11348else
11349  ac_check_lib_save_LIBS=$LIBS
11350LIBS="-ldl  $LIBS"
11351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352/* end confdefs.h.  */
11353
11354/* Override any GCC internal prototype to avoid an error.
11355   Use char because int might match the return type of a GCC
11356   builtin and then its argument prototype would still apply.  */
11357#ifdef __cplusplus
11358extern "C"
11359#endif
11360char dlopen ();
11361int
11362main ()
11363{
11364return dlopen ();
11365  ;
11366  return 0;
11367}
11368_ACEOF
11369if ac_fn_c_try_link "$LINENO"; then :
11370  ac_cv_lib_dl_dlopen=yes
11371else
11372  ac_cv_lib_dl_dlopen=no
11373fi
11374rm -f core conftest.err conftest.$ac_objext \
11375    conftest$ac_exeext conftest.$ac_ext
11376LIBS=$ac_check_lib_save_LIBS
11377fi
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11379$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11380if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11381  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11382else
11383
11384    lt_cv_dlopen="dyld"
11385    lt_cv_dlopen_libs=
11386    lt_cv_dlopen_self=yes
11387
11388fi
11389
11390    ;;
11391
11392  *)
11393    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11394if test "x$ac_cv_func_shl_load" = xyes; then :
11395  lt_cv_dlopen="shl_load"
11396else
11397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11398$as_echo_n "checking for shl_load in -ldld... " >&6; }
11399if ${ac_cv_lib_dld_shl_load+:} false; then :
11400  $as_echo_n "(cached) " >&6
11401else
11402  ac_check_lib_save_LIBS=$LIBS
11403LIBS="-ldld  $LIBS"
11404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h.  */
11406
11407/* Override any GCC internal prototype to avoid an error.
11408   Use char because int might match the return type of a GCC
11409   builtin and then its argument prototype would still apply.  */
11410#ifdef __cplusplus
11411extern "C"
11412#endif
11413char shl_load ();
11414int
11415main ()
11416{
11417return shl_load ();
11418  ;
11419  return 0;
11420}
11421_ACEOF
11422if ac_fn_c_try_link "$LINENO"; then :
11423  ac_cv_lib_dld_shl_load=yes
11424else
11425  ac_cv_lib_dld_shl_load=no
11426fi
11427rm -f core conftest.err conftest.$ac_objext \
11428    conftest$ac_exeext conftest.$ac_ext
11429LIBS=$ac_check_lib_save_LIBS
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11432$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11433if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11434  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11435else
11436  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11437if test "x$ac_cv_func_dlopen" = xyes; then :
11438  lt_cv_dlopen="dlopen"
11439else
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11441$as_echo_n "checking for dlopen in -ldl... " >&6; }
11442if ${ac_cv_lib_dl_dlopen+:} false; then :
11443  $as_echo_n "(cached) " >&6
11444else
11445  ac_check_lib_save_LIBS=$LIBS
11446LIBS="-ldl  $LIBS"
11447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448/* end confdefs.h.  */
11449
11450/* Override any GCC internal prototype to avoid an error.
11451   Use char because int might match the return type of a GCC
11452   builtin and then its argument prototype would still apply.  */
11453#ifdef __cplusplus
11454extern "C"
11455#endif
11456char dlopen ();
11457int
11458main ()
11459{
11460return dlopen ();
11461  ;
11462  return 0;
11463}
11464_ACEOF
11465if ac_fn_c_try_link "$LINENO"; then :
11466  ac_cv_lib_dl_dlopen=yes
11467else
11468  ac_cv_lib_dl_dlopen=no
11469fi
11470rm -f core conftest.err conftest.$ac_objext \
11471    conftest$ac_exeext conftest.$ac_ext
11472LIBS=$ac_check_lib_save_LIBS
11473fi
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11475$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11476if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11477  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11478else
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11480$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11481if ${ac_cv_lib_svld_dlopen+:} false; then :
11482  $as_echo_n "(cached) " >&6
11483else
11484  ac_check_lib_save_LIBS=$LIBS
11485LIBS="-lsvld  $LIBS"
11486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487/* end confdefs.h.  */
11488
11489/* Override any GCC internal prototype to avoid an error.
11490   Use char because int might match the return type of a GCC
11491   builtin and then its argument prototype would still apply.  */
11492#ifdef __cplusplus
11493extern "C"
11494#endif
11495char dlopen ();
11496int
11497main ()
11498{
11499return dlopen ();
11500  ;
11501  return 0;
11502}
11503_ACEOF
11504if ac_fn_c_try_link "$LINENO"; then :
11505  ac_cv_lib_svld_dlopen=yes
11506else
11507  ac_cv_lib_svld_dlopen=no
11508fi
11509rm -f core conftest.err conftest.$ac_objext \
11510    conftest$ac_exeext conftest.$ac_ext
11511LIBS=$ac_check_lib_save_LIBS
11512fi
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11514$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11515if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11516  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11517else
11518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11519$as_echo_n "checking for dld_link in -ldld... " >&6; }
11520if ${ac_cv_lib_dld_dld_link+:} false; then :
11521  $as_echo_n "(cached) " >&6
11522else
11523  ac_check_lib_save_LIBS=$LIBS
11524LIBS="-ldld  $LIBS"
11525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526/* end confdefs.h.  */
11527
11528/* Override any GCC internal prototype to avoid an error.
11529   Use char because int might match the return type of a GCC
11530   builtin and then its argument prototype would still apply.  */
11531#ifdef __cplusplus
11532extern "C"
11533#endif
11534char dld_link ();
11535int
11536main ()
11537{
11538return dld_link ();
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543if ac_fn_c_try_link "$LINENO"; then :
11544  ac_cv_lib_dld_dld_link=yes
11545else
11546  ac_cv_lib_dld_dld_link=no
11547fi
11548rm -f core conftest.err conftest.$ac_objext \
11549    conftest$ac_exeext conftest.$ac_ext
11550LIBS=$ac_check_lib_save_LIBS
11551fi
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11553$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11554if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11555  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11556fi
11557
11558
11559fi
11560
11561
11562fi
11563
11564
11565fi
11566
11567
11568fi
11569
11570
11571fi
11572
11573    ;;
11574  esac
11575
11576  if test "x$lt_cv_dlopen" != xno; then
11577    enable_dlopen=yes
11578  else
11579    enable_dlopen=no
11580  fi
11581
11582  case $lt_cv_dlopen in
11583  dlopen)
11584    save_CPPFLAGS="$CPPFLAGS"
11585    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11586
11587    save_LDFLAGS="$LDFLAGS"
11588    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11589
11590    save_LIBS="$LIBS"
11591    LIBS="$lt_cv_dlopen_libs $LIBS"
11592
11593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11594$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11595if ${lt_cv_dlopen_self+:} false; then :
11596  $as_echo_n "(cached) " >&6
11597else
11598  	  if test "$cross_compiling" = yes; then :
11599  lt_cv_dlopen_self=cross
11600else
11601  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11602  lt_status=$lt_dlunknown
11603  cat > conftest.$ac_ext <<_LT_EOF
11604#line $LINENO "configure"
11605#include "confdefs.h"
11606
11607#if HAVE_DLFCN_H
11608#include <dlfcn.h>
11609#endif
11610
11611#include <stdio.h>
11612
11613#ifdef RTLD_GLOBAL
11614#  define LT_DLGLOBAL		RTLD_GLOBAL
11615#else
11616#  ifdef DL_GLOBAL
11617#    define LT_DLGLOBAL		DL_GLOBAL
11618#  else
11619#    define LT_DLGLOBAL		0
11620#  endif
11621#endif
11622
11623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11624   find out it does not work in some platform. */
11625#ifndef LT_DLLAZY_OR_NOW
11626#  ifdef RTLD_LAZY
11627#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11628#  else
11629#    ifdef DL_LAZY
11630#      define LT_DLLAZY_OR_NOW		DL_LAZY
11631#    else
11632#      ifdef RTLD_NOW
11633#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11634#      else
11635#        ifdef DL_NOW
11636#          define LT_DLLAZY_OR_NOW	DL_NOW
11637#        else
11638#          define LT_DLLAZY_OR_NOW	0
11639#        endif
11640#      endif
11641#    endif
11642#  endif
11643#endif
11644
11645/* When -fvisbility=hidden is used, assume the code has been annotated
11646   correspondingly for the symbols needed.  */
11647#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11648int fnord () __attribute__((visibility("default")));
11649#endif
11650
11651int fnord () { return 42; }
11652int main ()
11653{
11654  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11655  int status = $lt_dlunknown;
11656
11657  if (self)
11658    {
11659      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11660      else
11661        {
11662	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11663          else puts (dlerror ());
11664	}
11665      /* dlclose (self); */
11666    }
11667  else
11668    puts (dlerror ());
11669
11670  return status;
11671}
11672_LT_EOF
11673  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11674  (eval $ac_link) 2>&5
11675  ac_status=$?
11676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11678    (./conftest; exit; ) >&5 2>/dev/null
11679    lt_status=$?
11680    case x$lt_status in
11681      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11682      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11683      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11684    esac
11685  else :
11686    # compilation failed
11687    lt_cv_dlopen_self=no
11688  fi
11689fi
11690rm -fr conftest*
11691
11692
11693fi
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11695$as_echo "$lt_cv_dlopen_self" >&6; }
11696
11697    if test "x$lt_cv_dlopen_self" = xyes; then
11698      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11699      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11700$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11701if ${lt_cv_dlopen_self_static+:} false; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  	  if test "$cross_compiling" = yes; then :
11705  lt_cv_dlopen_self_static=cross
11706else
11707  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11708  lt_status=$lt_dlunknown
11709  cat > conftest.$ac_ext <<_LT_EOF
11710#line $LINENO "configure"
11711#include "confdefs.h"
11712
11713#if HAVE_DLFCN_H
11714#include <dlfcn.h>
11715#endif
11716
11717#include <stdio.h>
11718
11719#ifdef RTLD_GLOBAL
11720#  define LT_DLGLOBAL		RTLD_GLOBAL
11721#else
11722#  ifdef DL_GLOBAL
11723#    define LT_DLGLOBAL		DL_GLOBAL
11724#  else
11725#    define LT_DLGLOBAL		0
11726#  endif
11727#endif
11728
11729/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11730   find out it does not work in some platform. */
11731#ifndef LT_DLLAZY_OR_NOW
11732#  ifdef RTLD_LAZY
11733#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11734#  else
11735#    ifdef DL_LAZY
11736#      define LT_DLLAZY_OR_NOW		DL_LAZY
11737#    else
11738#      ifdef RTLD_NOW
11739#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11740#      else
11741#        ifdef DL_NOW
11742#          define LT_DLLAZY_OR_NOW	DL_NOW
11743#        else
11744#          define LT_DLLAZY_OR_NOW	0
11745#        endif
11746#      endif
11747#    endif
11748#  endif
11749#endif
11750
11751/* When -fvisbility=hidden is used, assume the code has been annotated
11752   correspondingly for the symbols needed.  */
11753#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11754int fnord () __attribute__((visibility("default")));
11755#endif
11756
11757int fnord () { return 42; }
11758int main ()
11759{
11760  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11761  int status = $lt_dlunknown;
11762
11763  if (self)
11764    {
11765      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11766      else
11767        {
11768	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11769          else puts (dlerror ());
11770	}
11771      /* dlclose (self); */
11772    }
11773  else
11774    puts (dlerror ());
11775
11776  return status;
11777}
11778_LT_EOF
11779  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11780  (eval $ac_link) 2>&5
11781  ac_status=$?
11782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11784    (./conftest; exit; ) >&5 2>/dev/null
11785    lt_status=$?
11786    case x$lt_status in
11787      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11788      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11789      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11790    esac
11791  else :
11792    # compilation failed
11793    lt_cv_dlopen_self_static=no
11794  fi
11795fi
11796rm -fr conftest*
11797
11798
11799fi
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11801$as_echo "$lt_cv_dlopen_self_static" >&6; }
11802    fi
11803
11804    CPPFLAGS="$save_CPPFLAGS"
11805    LDFLAGS="$save_LDFLAGS"
11806    LIBS="$save_LIBS"
11807    ;;
11808  esac
11809
11810  case $lt_cv_dlopen_self in
11811  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11812  *) enable_dlopen_self=unknown ;;
11813  esac
11814
11815  case $lt_cv_dlopen_self_static in
11816  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11817  *) enable_dlopen_self_static=unknown ;;
11818  esac
11819fi
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837striplib=
11838old_striplib=
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11840$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11841if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11842  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11843  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845$as_echo "yes" >&6; }
11846else
11847# FIXME - insert some real tests, host_os isn't really good enough
11848  case $host_os in
11849  darwin*)
11850    if test -n "$STRIP" ; then
11851      striplib="$STRIP -x"
11852      old_striplib="$STRIP -S"
11853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854$as_echo "yes" >&6; }
11855    else
11856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857$as_echo "no" >&6; }
11858    fi
11859    ;;
11860  *)
11861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
11863    ;;
11864  esac
11865fi
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878  # Report which library types will actually be built
11879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11880$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11882$as_echo "$can_build_shared" >&6; }
11883
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11885$as_echo_n "checking whether to build shared libraries... " >&6; }
11886  test "$can_build_shared" = "no" && enable_shared=no
11887
11888  # On AIX, shared libraries and static libraries use the same namespace, and
11889  # are all built from PIC.
11890  case $host_os in
11891  aix3*)
11892    test "$enable_shared" = yes && enable_static=no
11893    if test -n "$RANLIB"; then
11894      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11895      postinstall_cmds='$RANLIB $lib'
11896    fi
11897    ;;
11898
11899  aix[4-9]*)
11900    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11901      test "$enable_shared" = yes && enable_static=no
11902    fi
11903    ;;
11904  esac
11905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11906$as_echo "$enable_shared" >&6; }
11907
11908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11909$as_echo_n "checking whether to build static libraries... " >&6; }
11910  # Make sure either enable_shared or enable_static is yes.
11911  test "$enable_shared" = yes || enable_static=yes
11912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11913$as_echo "$enable_static" >&6; }
11914
11915
11916
11917
11918fi
11919ac_ext=c
11920ac_cpp='$CPP $CPPFLAGS'
11921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11923ac_compiler_gnu=$ac_cv_c_compiler_gnu
11924
11925CC="$lt_save_CC"
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939        ac_config_commands="$ac_config_commands libtool"
11940
11941
11942
11943
11944# Only expand once:
11945
11946
11947
11948
11949
11950 if test "$enable_libevent_regress" = "yes"; then
11951  BUILD_REGRESS_TRUE=
11952  BUILD_REGRESS_FALSE='#'
11953else
11954  BUILD_REGRESS_TRUE='#'
11955  BUILD_REGRESS_FALSE=
11956fi
11957
11958
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
11960$as_echo_n "checking for library containing inet_ntoa... " >&6; }
11961if ${ac_cv_search_inet_ntoa+:} false; then :
11962  $as_echo_n "(cached) " >&6
11963else
11964  ac_func_search_save_LIBS=$LIBS
11965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h.  */
11967
11968/* Override any GCC internal prototype to avoid an error.
11969   Use char because int might match the return type of a GCC
11970   builtin and then its argument prototype would still apply.  */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974char inet_ntoa ();
11975int
11976main ()
11977{
11978return inet_ntoa ();
11979  ;
11980  return 0;
11981}
11982_ACEOF
11983for ac_lib in '' nsl; do
11984  if test -z "$ac_lib"; then
11985    ac_res="none required"
11986  else
11987    ac_res=-l$ac_lib
11988    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11989  fi
11990  if ac_fn_c_try_link "$LINENO"; then :
11991  ac_cv_search_inet_ntoa=$ac_res
11992fi
11993rm -f core conftest.err conftest.$ac_objext \
11994    conftest$ac_exeext
11995  if ${ac_cv_search_inet_ntoa+:} false; then :
11996  break
11997fi
11998done
11999if ${ac_cv_search_inet_ntoa+:} false; then :
12000
12001else
12002  ac_cv_search_inet_ntoa=no
12003fi
12004rm conftest.$ac_ext
12005LIBS=$ac_func_search_save_LIBS
12006fi
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12008$as_echo "$ac_cv_search_inet_ntoa" >&6; }
12009ac_res=$ac_cv_search_inet_ntoa
12010if test "$ac_res" != no; then :
12011  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12012
12013fi
12014
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12016$as_echo_n "checking for library containing socket... " >&6; }
12017if ${ac_cv_search_socket+:} false; then :
12018  $as_echo_n "(cached) " >&6
12019else
12020  ac_func_search_save_LIBS=$LIBS
12021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023
12024/* Override any GCC internal prototype to avoid an error.
12025   Use char because int might match the return type of a GCC
12026   builtin and then its argument prototype would still apply.  */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030char socket ();
12031int
12032main ()
12033{
12034return socket ();
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039for ac_lib in '' socket; do
12040  if test -z "$ac_lib"; then
12041    ac_res="none required"
12042  else
12043    ac_res=-l$ac_lib
12044    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12045  fi
12046  if ac_fn_c_try_link "$LINENO"; then :
12047  ac_cv_search_socket=$ac_res
12048fi
12049rm -f core conftest.err conftest.$ac_objext \
12050    conftest$ac_exeext
12051  if ${ac_cv_search_socket+:} false; then :
12052  break
12053fi
12054done
12055if ${ac_cv_search_socket+:} false; then :
12056
12057else
12058  ac_cv_search_socket=no
12059fi
12060rm conftest.$ac_ext
12061LIBS=$ac_func_search_save_LIBS
12062fi
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12064$as_echo "$ac_cv_search_socket" >&6; }
12065ac_res=$ac_cv_search_socket
12066if test "$ac_res" != no; then :
12067  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12068
12069fi
12070
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12072$as_echo_n "checking for library containing inet_aton... " >&6; }
12073if ${ac_cv_search_inet_aton+:} false; then :
12074  $as_echo_n "(cached) " >&6
12075else
12076  ac_func_search_save_LIBS=$LIBS
12077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078/* end confdefs.h.  */
12079
12080/* Override any GCC internal prototype to avoid an error.
12081   Use char because int might match the return type of a GCC
12082   builtin and then its argument prototype would still apply.  */
12083#ifdef __cplusplus
12084extern "C"
12085#endif
12086char inet_aton ();
12087int
12088main ()
12089{
12090return inet_aton ();
12091  ;
12092  return 0;
12093}
12094_ACEOF
12095for ac_lib in '' resolv; do
12096  if test -z "$ac_lib"; then
12097    ac_res="none required"
12098  else
12099    ac_res=-l$ac_lib
12100    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12101  fi
12102  if ac_fn_c_try_link "$LINENO"; then :
12103  ac_cv_search_inet_aton=$ac_res
12104fi
12105rm -f core conftest.err conftest.$ac_objext \
12106    conftest$ac_exeext
12107  if ${ac_cv_search_inet_aton+:} false; then :
12108  break
12109fi
12110done
12111if ${ac_cv_search_inet_aton+:} false; then :
12112
12113else
12114  ac_cv_search_inet_aton=no
12115fi
12116rm conftest.$ac_ext
12117LIBS=$ac_func_search_save_LIBS
12118fi
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12120$as_echo "$ac_cv_search_inet_aton" >&6; }
12121ac_res=$ac_cv_search_inet_aton
12122if test "$ac_res" != no; then :
12123  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12124
12125fi
12126
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12128$as_echo_n "checking for library containing clock_gettime... " >&6; }
12129if ${ac_cv_search_clock_gettime+:} false; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  ac_func_search_save_LIBS=$LIBS
12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h.  */
12135
12136/* Override any GCC internal prototype to avoid an error.
12137   Use char because int might match the return type of a GCC
12138   builtin and then its argument prototype would still apply.  */
12139#ifdef __cplusplus
12140extern "C"
12141#endif
12142char clock_gettime ();
12143int
12144main ()
12145{
12146return clock_gettime ();
12147  ;
12148  return 0;
12149}
12150_ACEOF
12151for ac_lib in '' rt; do
12152  if test -z "$ac_lib"; then
12153    ac_res="none required"
12154  else
12155    ac_res=-l$ac_lib
12156    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12157  fi
12158  if ac_fn_c_try_link "$LINENO"; then :
12159  ac_cv_search_clock_gettime=$ac_res
12160fi
12161rm -f core conftest.err conftest.$ac_objext \
12162    conftest$ac_exeext
12163  if ${ac_cv_search_clock_gettime+:} false; then :
12164  break
12165fi
12166done
12167if ${ac_cv_search_clock_gettime+:} false; then :
12168
12169else
12170  ac_cv_search_clock_gettime=no
12171fi
12172rm conftest.$ac_ext
12173LIBS=$ac_func_search_save_LIBS
12174fi
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12176$as_echo "$ac_cv_search_clock_gettime" >&6; }
12177ac_res=$ac_cv_search_clock_gettime
12178if test "$ac_res" != no; then :
12179  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12180
12181fi
12182
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12184$as_echo_n "checking for library containing sendfile... " >&6; }
12185if ${ac_cv_search_sendfile+:} false; then :
12186  $as_echo_n "(cached) " >&6
12187else
12188  ac_func_search_save_LIBS=$LIBS
12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190/* end confdefs.h.  */
12191
12192/* Override any GCC internal prototype to avoid an error.
12193   Use char because int might match the return type of a GCC
12194   builtin and then its argument prototype would still apply.  */
12195#ifdef __cplusplus
12196extern "C"
12197#endif
12198char sendfile ();
12199int
12200main ()
12201{
12202return sendfile ();
12203  ;
12204  return 0;
12205}
12206_ACEOF
12207for ac_lib in '' sendfile; do
12208  if test -z "$ac_lib"; then
12209    ac_res="none required"
12210  else
12211    ac_res=-l$ac_lib
12212    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12213  fi
12214  if ac_fn_c_try_link "$LINENO"; then :
12215  ac_cv_search_sendfile=$ac_res
12216fi
12217rm -f core conftest.err conftest.$ac_objext \
12218    conftest$ac_exeext
12219  if ${ac_cv_search_sendfile+:} false; then :
12220  break
12221fi
12222done
12223if ${ac_cv_search_sendfile+:} false; then :
12224
12225else
12226  ac_cv_search_sendfile=no
12227fi
12228rm conftest.$ac_ext
12229LIBS=$ac_func_search_save_LIBS
12230fi
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12232$as_echo "$ac_cv_search_sendfile" >&6; }
12233ac_res=$ac_cv_search_sendfile
12234if test "$ac_res" != no; then :
12235  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12236
12237fi
12238
12239
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12241$as_echo_n "checking for WIN32... " >&6; }
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243/* end confdefs.h.  */
12244
12245int
12246main ()
12247{
12248
12249#ifndef WIN32
12250die horribly
12251#endif
12252
12253  ;
12254  return 0;
12255}
12256_ACEOF
12257if ac_fn_c_try_compile "$LINENO"; then :
12258  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259$as_echo "yes" >&6; }
12260else
12261  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12265
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12267$as_echo_n "checking for CYGWIN... " >&6; }
12268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h.  */
12270
12271int
12272main ()
12273{
12274
12275#ifndef __CYGWIN__
12276die horribly
12277#endif
12278
12279  ;
12280  return 0;
12281}
12282_ACEOF
12283if ac_fn_c_try_compile "$LINENO"; then :
12284  cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285$as_echo "yes" >&6; }
12286else
12287  cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289fi
12290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291
12292for ac_header in zlib.h
12293do :
12294  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12295if test "x$ac_cv_header_zlib_h" = xyes; then :
12296  cat >>confdefs.h <<_ACEOF
12297#define HAVE_ZLIB_H 1
12298_ACEOF
12299
12300fi
12301
12302done
12303
12304
12305if test "x$ac_cv_header_zlib_h" = "xyes"; then
12306save_LIBS="$LIBS"
12307LIBS=""
12308ZLIB_LIBS=""
12309have_zlib=no
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12311$as_echo_n "checking for library containing inflateEnd... " >&6; }
12312if ${ac_cv_search_inflateEnd+:} false; then :
12313  $as_echo_n "(cached) " >&6
12314else
12315  ac_func_search_save_LIBS=$LIBS
12316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317/* end confdefs.h.  */
12318
12319/* Override any GCC internal prototype to avoid an error.
12320   Use char because int might match the return type of a GCC
12321   builtin and then its argument prototype would still apply.  */
12322#ifdef __cplusplus
12323extern "C"
12324#endif
12325char inflateEnd ();
12326int
12327main ()
12328{
12329return inflateEnd ();
12330  ;
12331  return 0;
12332}
12333_ACEOF
12334for ac_lib in '' z; do
12335  if test -z "$ac_lib"; then
12336    ac_res="none required"
12337  else
12338    ac_res=-l$ac_lib
12339    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12340  fi
12341  if ac_fn_c_try_link "$LINENO"; then :
12342  ac_cv_search_inflateEnd=$ac_res
12343fi
12344rm -f core conftest.err conftest.$ac_objext \
12345    conftest$ac_exeext
12346  if ${ac_cv_search_inflateEnd+:} false; then :
12347  break
12348fi
12349done
12350if ${ac_cv_search_inflateEnd+:} false; then :
12351
12352else
12353  ac_cv_search_inflateEnd=no
12354fi
12355rm conftest.$ac_ext
12356LIBS=$ac_func_search_save_LIBS
12357fi
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12359$as_echo "$ac_cv_search_inflateEnd" >&6; }
12360ac_res=$ac_cv_search_inflateEnd
12361if test "$ac_res" != no; then :
12362  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12363  have_zlib=yes
12364	ZLIB_LIBS="$LIBS"
12365
12366$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12367
12368fi
12369
12370LIBS="$save_LIBS"
12371
12372fi
12373 if test "$have_zlib" = "yes"; then
12374  ZLIB_REGRESS_TRUE=
12375  ZLIB_REGRESS_FALSE='#'
12376else
12377  ZLIB_REGRESS_TRUE='#'
12378  ZLIB_REGRESS_FALSE=
12379fi
12380
12381
12382if test "$bwin32" = true; then
12383  EV_LIB_WS32=-lws2_32
12384  EV_LIB_GDI=-lgdi32
12385else
12386  EV_LIB_WS32=
12387  EV_LIB_GDI=
12388fi
12389
12390
12391
12392
12393for ac_header in openssl/bio.h
12394do :
12395  ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12396if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12397  cat >>confdefs.h <<_ACEOF
12398#define HAVE_OPENSSL_BIO_H 1
12399_ACEOF
12400
12401fi
12402
12403done
12404
12405
12406if test "$enable_openssl" = "yes"; then
12407save_LIBS="$LIBS"
12408LIBS=""
12409OPENSSL_LIBS=""
12410have_openssl=no
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12412$as_echo_n "checking for library containing SSL_new... " >&6; }
12413if ${ac_cv_search_SSL_new+:} false; then :
12414  $as_echo_n "(cached) " >&6
12415else
12416  ac_func_search_save_LIBS=$LIBS
12417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h.  */
12419
12420/* Override any GCC internal prototype to avoid an error.
12421   Use char because int might match the return type of a GCC
12422   builtin and then its argument prototype would still apply.  */
12423#ifdef __cplusplus
12424extern "C"
12425#endif
12426char SSL_new ();
12427int
12428main ()
12429{
12430return SSL_new ();
12431  ;
12432  return 0;
12433}
12434_ACEOF
12435for ac_lib in '' ssl; do
12436  if test -z "$ac_lib"; then
12437    ac_res="none required"
12438  else
12439    ac_res=-l$ac_lib
12440    LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12441  fi
12442  if ac_fn_c_try_link "$LINENO"; then :
12443  ac_cv_search_SSL_new=$ac_res
12444fi
12445rm -f core conftest.err conftest.$ac_objext \
12446    conftest$ac_exeext
12447  if ${ac_cv_search_SSL_new+:} false; then :
12448  break
12449fi
12450done
12451if ${ac_cv_search_SSL_new+:} false; then :
12452
12453else
12454  ac_cv_search_SSL_new=no
12455fi
12456rm conftest.$ac_ext
12457LIBS=$ac_func_search_save_LIBS
12458fi
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12460$as_echo "$ac_cv_search_SSL_new" >&6; }
12461ac_res=$ac_cv_search_SSL_new
12462if test "$ac_res" != no; then :
12463  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12464  have_openssl=yes
12465	OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12466
12467$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12468
12469else
12470  have_openssl=no
12471fi
12472
12473LIBS="$save_LIBS"
12474
12475fi
12476
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12478$as_echo_n "checking for ANSI C header files... " >&6; }
12479if ${ac_cv_header_stdc+:} false; then :
12480  $as_echo_n "(cached) " >&6
12481else
12482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483/* end confdefs.h.  */
12484#include <stdlib.h>
12485#include <stdarg.h>
12486#include <string.h>
12487#include <float.h>
12488
12489int
12490main ()
12491{
12492
12493  ;
12494  return 0;
12495}
12496_ACEOF
12497if ac_fn_c_try_compile "$LINENO"; then :
12498  ac_cv_header_stdc=yes
12499else
12500  ac_cv_header_stdc=no
12501fi
12502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503
12504if test $ac_cv_header_stdc = yes; then
12505  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507/* end confdefs.h.  */
12508#include <string.h>
12509
12510_ACEOF
12511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12512  $EGREP "memchr" >/dev/null 2>&1; then :
12513
12514else
12515  ac_cv_header_stdc=no
12516fi
12517rm -f conftest*
12518
12519fi
12520
12521if test $ac_cv_header_stdc = yes; then
12522  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524/* end confdefs.h.  */
12525#include <stdlib.h>
12526
12527_ACEOF
12528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12529  $EGREP "free" >/dev/null 2>&1; then :
12530
12531else
12532  ac_cv_header_stdc=no
12533fi
12534rm -f conftest*
12535
12536fi
12537
12538if test $ac_cv_header_stdc = yes; then
12539  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12540  if test "$cross_compiling" = yes; then :
12541  :
12542else
12543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544/* end confdefs.h.  */
12545#include <ctype.h>
12546#include <stdlib.h>
12547#if ((' ' & 0x0FF) == 0x020)
12548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12550#else
12551# define ISLOWER(c) \
12552		   (('a' <= (c) && (c) <= 'i') \
12553		     || ('j' <= (c) && (c) <= 'r') \
12554		     || ('s' <= (c) && (c) <= 'z'))
12555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12556#endif
12557
12558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12559int
12560main ()
12561{
12562  int i;
12563  for (i = 0; i < 256; i++)
12564    if (XOR (islower (i), ISLOWER (i))
12565	|| toupper (i) != TOUPPER (i))
12566      return 2;
12567  return 0;
12568}
12569_ACEOF
12570if ac_fn_c_try_run "$LINENO"; then :
12571
12572else
12573  ac_cv_header_stdc=no
12574fi
12575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12576  conftest.$ac_objext conftest.beam conftest.$ac_ext
12577fi
12578
12579fi
12580fi
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12582$as_echo "$ac_cv_header_stdc" >&6; }
12583if test $ac_cv_header_stdc = yes; then
12584
12585$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12586
12587fi
12588
12589for 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
12590do :
12591  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12592ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12594  cat >>confdefs.h <<_ACEOF
12595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12596_ACEOF
12597
12598fi
12599
12600done
12601
12602for ac_header in sys/stat.h
12603do :
12604  ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12605if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12606  cat >>confdefs.h <<_ACEOF
12607#define HAVE_SYS_STAT_H 1
12608_ACEOF
12609
12610fi
12611
12612done
12613
12614for ac_header in sys/sysctl.h
12615do :
12616  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12617#ifdef HAVE_SYS_PARAM_H
12618#include <sys/param.h>
12619#endif
12620
12621"
12622if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12623  cat >>confdefs.h <<_ACEOF
12624#define HAVE_SYS_SYSCTL_H 1
12625_ACEOF
12626
12627fi
12628
12629done
12630
12631if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12633$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12634	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635/* end confdefs.h.  */
12636
12637#include <sys/queue.h>
12638#ifdef TAILQ_FOREACH
12639 yes
12640#endif
12641
12642_ACEOF
12643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12644  $EGREP "yes" >/dev/null 2>&1; then :
12645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646$as_echo "yes" >&6; }
12647
12648$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12649
12650else
12651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
12653
12654fi
12655rm -f conftest*
12656
12657fi
12658
12659if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12661$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12662	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663/* end confdefs.h.  */
12664
12665#include <sys/time.h>
12666#ifdef timeradd
12667 yes
12668#endif
12669
12670_ACEOF
12671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12672  $EGREP "yes" >/dev/null 2>&1; then :
12673
12674$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12675
12676	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12677$as_echo "yes" >&6; }
12678else
12679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680$as_echo "no" >&6; }
12681
12682fi
12683rm -f conftest*
12684
12685fi
12686
12687if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12689$as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12690	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691/* end confdefs.h.  */
12692
12693#include <sys/time.h>
12694#ifdef timercmp
12695 yes
12696#endif
12697
12698_ACEOF
12699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12700  $EGREP "yes" >/dev/null 2>&1; then :
12701
12702$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12703
12704	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12705$as_echo "yes" >&6; }
12706else
12707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
12709
12710fi
12711rm -f conftest*
12712
12713fi
12714
12715if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12717$as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12718	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h.  */
12720
12721#include <sys/time.h>
12722#ifdef timerclear
12723 yes
12724#endif
12725
12726_ACEOF
12727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12728  $EGREP "yes" >/dev/null 2>&1; then :
12729
12730$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12731
12732	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733$as_echo "yes" >&6; }
12734else
12735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
12737
12738fi
12739rm -f conftest*
12740
12741fi
12742
12743if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12745$as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12746	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h.  */
12748
12749#include <sys/time.h>
12750#ifdef timerisset
12751 yes
12752#endif
12753
12754_ACEOF
12755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12756  $EGREP "yes" >/dev/null 2>&1; then :
12757
12758$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12759
12760	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12761$as_echo "yes" >&6; }
12762else
12763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765
12766fi
12767rm -f conftest*
12768
12769fi
12770
12771if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12772	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12773	     #include <sys/sysctl.h>
12774
12775"
12776if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12777  ac_have_decl=1
12778else
12779  ac_have_decl=0
12780fi
12781
12782cat >>confdefs.h <<_ACEOF
12783#define HAVE_DECL_CTL_KERN $ac_have_decl
12784_ACEOF
12785ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12786	     #include <sys/sysctl.h>
12787
12788"
12789if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12790  ac_have_decl=1
12791else
12792  ac_have_decl=0
12793fi
12794
12795cat >>confdefs.h <<_ACEOF
12796#define HAVE_DECL_KERN_RANDOM $ac_have_decl
12797_ACEOF
12798ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12799	     #include <sys/sysctl.h>
12800
12801"
12802if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12803  ac_have_decl=1
12804else
12805  ac_have_decl=0
12806fi
12807
12808cat >>confdefs.h <<_ACEOF
12809#define HAVE_DECL_RANDOM_UUID $ac_have_decl
12810_ACEOF
12811ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12812	     #include <sys/sysctl.h>
12813
12814"
12815if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12816  ac_have_decl=1
12817else
12818  ac_have_decl=0
12819fi
12820
12821cat >>confdefs.h <<_ACEOF
12822#define HAVE_DECL_KERN_ARND $ac_have_decl
12823_ACEOF
12824
12825fi
12826
12827 if test x$bwin32 = xtrue; then
12828  BUILD_WIN32_TRUE=
12829  BUILD_WIN32_FALSE='#'
12830else
12831  BUILD_WIN32_TRUE='#'
12832  BUILD_WIN32_FALSE=
12833fi
12834
12835 if test x$cygwin = xtrue; then
12836  BUILD_CYGWIN_TRUE=
12837  BUILD_CYGWIN_FALSE='#'
12838else
12839  BUILD_CYGWIN_TRUE='#'
12840  BUILD_CYGWIN_FALSE=
12841fi
12842
12843 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12844  BUILD_WITH_NO_UNDEFINED_TRUE=
12845  BUILD_WITH_NO_UNDEFINED_FALSE='#'
12846else
12847  BUILD_WITH_NO_UNDEFINED_TRUE='#'
12848  BUILD_WITH_NO_UNDEFINED_FALSE=
12849fi
12850
12851
12852if test x$bwin32 = xtrue; then
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12854$as_echo_n "checking for library containing getservbyname... " >&6; }
12855if ${ac_cv_search_getservbyname+:} false; then :
12856  $as_echo_n "(cached) " >&6
12857else
12858  ac_func_search_save_LIBS=$LIBS
12859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h.  */
12861
12862/* Override any GCC internal prototype to avoid an error.
12863   Use char because int might match the return type of a GCC
12864   builtin and then its argument prototype would still apply.  */
12865#ifdef __cplusplus
12866extern "C"
12867#endif
12868char getservbyname ();
12869int
12870main ()
12871{
12872return getservbyname ();
12873  ;
12874  return 0;
12875}
12876_ACEOF
12877for ac_lib in '' ws2_32; do
12878  if test -z "$ac_lib"; then
12879    ac_res="none required"
12880  else
12881    ac_res=-l$ac_lib
12882    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12883  fi
12884  if ac_fn_c_try_link "$LINENO"; then :
12885  ac_cv_search_getservbyname=$ac_res
12886fi
12887rm -f core conftest.err conftest.$ac_objext \
12888    conftest$ac_exeext
12889  if ${ac_cv_search_getservbyname+:} false; then :
12890  break
12891fi
12892done
12893if ${ac_cv_search_getservbyname+:} false; then :
12894
12895else
12896  ac_cv_search_getservbyname=no
12897fi
12898rm conftest.$ac_ext
12899LIBS=$ac_func_search_save_LIBS
12900fi
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12902$as_echo "$ac_cv_search_getservbyname" >&6; }
12903ac_res=$ac_cv_search_getservbyname
12904if test "$ac_res" != no; then :
12905  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12906
12907fi
12908
12909fi
12910
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12912$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12913if ${ac_cv_c_const+:} false; then :
12914  $as_echo_n "(cached) " >&6
12915else
12916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h.  */
12918
12919int
12920main ()
12921{
12922/* FIXME: Include the comments suggested by Paul. */
12923#ifndef __cplusplus
12924  /* Ultrix mips cc rejects this.  */
12925  typedef int charset[2];
12926  const charset cs;
12927  /* SunOS 4.1.1 cc rejects this.  */
12928  char const *const *pcpcc;
12929  char **ppc;
12930  /* NEC SVR4.0.2 mips cc rejects this.  */
12931  struct point {int x, y;};
12932  static struct point const zero = {0,0};
12933  /* AIX XL C 1.02.0.0 rejects this.
12934     It does not let you subtract one const X* pointer from another in
12935     an arm of an if-expression whose if-part is not a constant
12936     expression */
12937  const char *g = "string";
12938  pcpcc = &g + (g ? g-g : 0);
12939  /* HPUX 7.0 cc rejects these. */
12940  ++pcpcc;
12941  ppc = (char**) pcpcc;
12942  pcpcc = (char const *const *) ppc;
12943  { /* SCO 3.2v4 cc rejects this.  */
12944    char *t;
12945    char const *s = 0 ? (char *) 0 : (char const *) 0;
12946
12947    *t++ = 0;
12948    if (s) return 0;
12949  }
12950  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12951    int x[] = {25, 17};
12952    const int *foo = &x[0];
12953    ++foo;
12954  }
12955  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12956    typedef const int *iptr;
12957    iptr p = 0;
12958    ++p;
12959  }
12960  { /* AIX XL C 1.02.0.0 rejects this saying
12961       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12962    struct s { int j; const int *ap[3]; };
12963    struct s *b; b->j = 5;
12964  }
12965  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12966    const int foo = 10;
12967    if (!foo) return 0;
12968  }
12969  return !cs[0] && !zero.x;
12970#endif
12971
12972  ;
12973  return 0;
12974}
12975_ACEOF
12976if ac_fn_c_try_compile "$LINENO"; then :
12977  ac_cv_c_const=yes
12978else
12979  ac_cv_c_const=no
12980fi
12981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12982fi
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12984$as_echo "$ac_cv_c_const" >&6; }
12985if test $ac_cv_c_const = no; then
12986
12987$as_echo "#define const /**/" >>confdefs.h
12988
12989fi
12990
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12992$as_echo_n "checking for inline... " >&6; }
12993if ${ac_cv_c_inline+:} false; then :
12994  $as_echo_n "(cached) " >&6
12995else
12996  ac_cv_c_inline=no
12997for ac_kw in inline __inline__ __inline; do
12998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h.  */
13000#ifndef __cplusplus
13001typedef int foo_t;
13002static $ac_kw foo_t static_foo () {return 0; }
13003$ac_kw foo_t foo () {return 0; }
13004#endif
13005
13006_ACEOF
13007if ac_fn_c_try_compile "$LINENO"; then :
13008  ac_cv_c_inline=$ac_kw
13009fi
13010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011  test "$ac_cv_c_inline" != no && break
13012done
13013
13014fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13016$as_echo "$ac_cv_c_inline" >&6; }
13017
13018case $ac_cv_c_inline in
13019  inline | yes) ;;
13020  *)
13021    case $ac_cv_c_inline in
13022      no) ac_val=;;
13023      *) ac_val=$ac_cv_c_inline;;
13024    esac
13025    cat >>confdefs.h <<_ACEOF
13026#ifndef __cplusplus
13027#define inline $ac_val
13028#endif
13029_ACEOF
13030    ;;
13031esac
13032
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13034$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13035if ${ac_cv_header_time+:} false; then :
13036  $as_echo_n "(cached) " >&6
13037else
13038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h.  */
13040#include <sys/types.h>
13041#include <sys/time.h>
13042#include <time.h>
13043
13044int
13045main ()
13046{
13047if ((struct tm *) 0)
13048return 0;
13049  ;
13050  return 0;
13051}
13052_ACEOF
13053if ac_fn_c_try_compile "$LINENO"; then :
13054  ac_cv_header_time=yes
13055else
13056  ac_cv_header_time=no
13057fi
13058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059fi
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13061$as_echo "$ac_cv_header_time" >&6; }
13062if test $ac_cv_header_time = yes; then
13063
13064$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13065
13066fi
13067
13068
13069for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13070do :
13071  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13072ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13073if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13074  cat >>confdefs.h <<_ACEOF
13075#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13076_ACEOF
13077
13078fi
13079done
13080
13081for 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
13082do :
13083  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13085if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13086  cat >>confdefs.h <<_ACEOF
13087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13088_ACEOF
13089
13090fi
13091done
13092
13093for ac_func in umask
13094do :
13095  ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13096if test "x$ac_cv_func_umask" = xyes; then :
13097  cat >>confdefs.h <<_ACEOF
13098#define HAVE_UMASK 1
13099_ACEOF
13100
13101fi
13102done
13103
13104
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13106$as_echo_n "checking for getaddrinfo... " >&6; }
13107if ${libevent_cv_getaddrinfo+:} false; then :
13108  $as_echo_n "(cached) " >&6
13109else
13110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111/* end confdefs.h.  */
13112
13113		#ifdef HAVE_NETDB_H
13114		#include <netdb.h>
13115		#endif
13116
13117int
13118main ()
13119{
13120
13121		getaddrinfo;
13122
13123
13124  ;
13125  return 0;
13126}
13127_ACEOF
13128if ac_fn_c_try_link "$LINENO"; then :
13129  libevent_cv_getaddrinfo=yes
13130else
13131  libevent_cv_getaddrinfo=no
13132
13133fi
13134rm -f core conftest.err conftest.$ac_objext \
13135    conftest$ac_exeext conftest.$ac_ext
13136
13137fi
13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13139$as_echo "$libevent_cv_getaddrinfo" >&6; }
13140if test "$libevent_cv_getaddrinfo" = "yes" ; then
13141
13142$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13143
13144else
13145
13146for ac_func in getservbyname
13147do :
13148  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13149if test "x$ac_cv_func_getservbyname" = xyes; then :
13150  cat >>confdefs.h <<_ACEOF
13151#define HAVE_GETSERVBYNAME 1
13152_ACEOF
13153
13154fi
13155done
13156
13157# Check for gethostbyname_r in all its glorious incompatible versions.
13158#   (This is cut-and-pasted from Tor, which based its logic on
13159#   Python's configure.in.)
13160
13161
13162ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13163if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13164
13165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13166$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13167  OLD_CFLAGS=$CFLAGS
13168  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170/* end confdefs.h.  */
13171
13172#include <netdb.h>
13173
13174int
13175main ()
13176{
13177
13178    char *cp1, *cp2;
13179    struct hostent *h1, *h2;
13180    int i1, i2;
13181    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13182
13183  ;
13184  return 0;
13185}
13186_ACEOF
13187if ac_fn_c_try_compile "$LINENO"; then :
13188
13189    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13190
13191
13192$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13193
13194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13195$as_echo "6" >&6; }
13196
13197else
13198
13199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h.  */
13201
13202#include <netdb.h>
13203
13204int
13205main ()
13206{
13207
13208      char *cp1, *cp2;
13209      struct hostent *h1;
13210      int i1, i2;
13211      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13212
13213  ;
13214  return 0;
13215}
13216_ACEOF
13217if ac_fn_c_try_compile "$LINENO"; then :
13218
13219      $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13220
13221
13222$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13223
13224      { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13225$as_echo "5" >&6; }
13226
13227else
13228
13229      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230/* end confdefs.h.  */
13231
13232#include <netdb.h>
13233
13234int
13235main ()
13236{
13237
13238       char *cp1;
13239       struct hostent *h1;
13240       struct hostent_data hd;
13241       (void) gethostbyname_r(cp1,h1,&hd);
13242
13243  ;
13244  return 0;
13245}
13246_ACEOF
13247if ac_fn_c_try_compile "$LINENO"; then :
13248
13249       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13250
13251
13252$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13253
13254       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13255$as_echo "3" >&6; }
13256
13257else
13258
13259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13260$as_echo "0" >&6; }
13261
13262fi
13263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264
13265fi
13266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267
13268fi
13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 CFLAGS=$OLD_CFLAGS
13271
13272fi
13273
13274
13275fi
13276
13277# The cast to long int works around a bug in the HP C Compiler
13278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13280# This bug is HP SR number 8606223364.
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13282$as_echo_n "checking size of long... " >&6; }
13283if ${ac_cv_sizeof_long+:} false; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13287
13288else
13289  if test "$ac_cv_type_long" = yes; then
13290     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13292as_fn_error 77 "cannot compute sizeof (long)
13293See \`config.log' for more details" "$LINENO" 5; }
13294   else
13295     ac_cv_sizeof_long=0
13296   fi
13297fi
13298
13299fi
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13301$as_echo "$ac_cv_sizeof_long" >&6; }
13302
13303
13304
13305cat >>confdefs.h <<_ACEOF
13306#define SIZEOF_LONG $ac_cv_sizeof_long
13307_ACEOF
13308
13309
13310
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13312$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h.  */
13315
13316#define _GNU_SOURCE
13317#include <fcntl.h>
13318#ifdef F_SETFD
13319yes
13320#endif
13321
13322_ACEOF
13323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13324  $EGREP "yes" >/dev/null 2>&1; then :
13325
13326$as_echo "#define HAVE_SETFD 1" >>confdefs.h
13327
13328	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13329$as_echo "yes" >&6; }
13330else
13331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
13333fi
13334rm -f conftest*
13335
13336
13337needsignal=no
13338haveselect=no
13339if test x$bwin32 != xtrue; then
13340    for ac_func in select
13341do :
13342  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13343if test "x$ac_cv_func_select" = xyes; then :
13344  cat >>confdefs.h <<_ACEOF
13345#define HAVE_SELECT 1
13346_ACEOF
13347 haveselect=yes
13348fi
13349done
13350
13351    if test "x$haveselect" = "xyes" ; then
13352 	needsignal=yes
13353    fi
13354fi
13355 if test "x$haveselect" = "xyes"; then
13356  SELECT_BACKEND_TRUE=
13357  SELECT_BACKEND_FALSE='#'
13358else
13359  SELECT_BACKEND_TRUE='#'
13360  SELECT_BACKEND_FALSE=
13361fi
13362
13363
13364havepoll=no
13365for ac_func in poll
13366do :
13367  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13368if test "x$ac_cv_func_poll" = xyes; then :
13369  cat >>confdefs.h <<_ACEOF
13370#define HAVE_POLL 1
13371_ACEOF
13372 havepoll=yes
13373fi
13374done
13375
13376if test "x$havepoll" = "xyes" ; then
13377	needsignal=yes
13378fi
13379 if test "x$havepoll" = "xyes"; then
13380  POLL_BACKEND_TRUE=
13381  POLL_BACKEND_FALSE='#'
13382else
13383  POLL_BACKEND_TRUE='#'
13384  POLL_BACKEND_FALSE=
13385fi
13386
13387
13388havedevpoll=no
13389if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13390
13391$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13392
13393fi
13394 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13395  DEVPOLL_BACKEND_TRUE=
13396  DEVPOLL_BACKEND_FALSE='#'
13397else
13398  DEVPOLL_BACKEND_TRUE='#'
13399  DEVPOLL_BACKEND_FALSE=
13400fi
13401
13402
13403havekqueue=no
13404if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13405	for ac_func in kqueue
13406do :
13407  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13408if test "x$ac_cv_func_kqueue" = xyes; then :
13409  cat >>confdefs.h <<_ACEOF
13410#define HAVE_KQUEUE 1
13411_ACEOF
13412 havekqueue=yes
13413fi
13414done
13415
13416	if test "x$havekqueue" = "xyes" ; then
13417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13418$as_echo_n "checking for working kqueue... " >&6; }
13419		if test "$cross_compiling" = yes; then :
13420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421$as_echo "no" >&6; }
13422else
13423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424/* end confdefs.h.  */
13425#include <sys/types.h>
13426#include <sys/time.h>
13427#include <sys/event.h>
13428#include <stdio.h>
13429#include <unistd.h>
13430#include <fcntl.h>
13431
13432int
13433main(int argc, char **argv)
13434{
13435	int kq;
13436	int n;
13437	int fd[2];
13438	struct kevent ev;
13439	struct timespec ts;
13440	char buf[8000];
13441
13442	if (pipe(fd) == -1)
13443		exit(1);
13444	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13445		exit(1);
13446
13447	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13448		;
13449
13450        if ((kq = kqueue()) == -1)
13451		exit(1);
13452
13453	memset(&ev, 0, sizeof(ev));
13454	ev.ident = fd[1];
13455	ev.filter = EVFILT_WRITE;
13456	ev.flags = EV_ADD | EV_ENABLE;
13457	n = kevent(kq, &ev, 1, NULL, 0, NULL);
13458	if (n == -1)
13459		exit(1);
13460
13461	read(fd[0], buf, sizeof(buf));
13462
13463	ts.tv_sec = 0;
13464	ts.tv_nsec = 0;
13465	n = kevent(kq, NULL, 0, &ev, 1, &ts);
13466	if (n == -1 || n == 0)
13467		exit(1);
13468
13469	exit(0);
13470}
13471_ACEOF
13472if ac_fn_c_try_run "$LINENO"; then :
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13474$as_echo "yes" >&6; }
13475
13476$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13477
13478    havekqueue=yes
13479
13480else
13481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482$as_echo "no" >&6; }
13483fi
13484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13485  conftest.$ac_objext conftest.beam conftest.$ac_ext
13486fi
13487
13488	fi
13489fi
13490 if test "x$havekqueue" = "xyes"; then
13491  KQUEUE_BACKEND_TRUE=
13492  KQUEUE_BACKEND_FALSE='#'
13493else
13494  KQUEUE_BACKEND_TRUE='#'
13495  KQUEUE_BACKEND_FALSE=
13496fi
13497
13498
13499haveepollsyscall=no
13500haveepoll=no
13501for ac_func in epoll_ctl
13502do :
13503  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13504if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13505  cat >>confdefs.h <<_ACEOF
13506#define HAVE_EPOLL_CTL 1
13507_ACEOF
13508 haveepoll=yes
13509fi
13510done
13511
13512if test "x$haveepoll" = "xyes" ; then
13513
13514$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13515
13516	needsignal=yes
13517fi
13518if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13519	if test "x$haveepoll" = "xno" ; then
13520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13521$as_echo_n "checking for epoll system call... " >&6; }
13522		if test "$cross_compiling" = yes; then :
13523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524$as_echo "no" >&6; }
13525else
13526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h.  */
13528#include <stdint.h>
13529#include <sys/param.h>
13530#include <sys/types.h>
13531#include <sys/syscall.h>
13532#include <sys/epoll.h>
13533#include <unistd.h>
13534
13535int
13536epoll_create(int size)
13537{
13538	return (syscall(__NR_epoll_create, size));
13539}
13540
13541int
13542main(int argc, char **argv)
13543{
13544	int epfd;
13545
13546	epfd = epoll_create(256);
13547	exit (epfd == -1 ? 1 : 0);
13548}
13549_ACEOF
13550if ac_fn_c_try_run "$LINENO"; then :
13551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13552$as_echo "yes" >&6; }
13553
13554$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13555
13556    needsignal=yes
13557    have_epoll=yes
13558    case " $LIBOBJS " in
13559  *" epoll_sub.$ac_objext "* ) ;;
13560  *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13561 ;;
13562esac
13563
13564
13565else
13566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567$as_echo "no" >&6; }
13568fi
13569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13570  conftest.$ac_objext conftest.beam conftest.$ac_ext
13571fi
13572
13573	fi
13574fi
13575 if test "x$haveepoll" = "xyes"; then
13576  EPOLL_BACKEND_TRUE=
13577  EPOLL_BACKEND_FALSE='#'
13578else
13579  EPOLL_BACKEND_TRUE='#'
13580  EPOLL_BACKEND_FALSE=
13581fi
13582
13583
13584haveeventports=no
13585for ac_func in port_create
13586do :
13587  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13588if test "x$ac_cv_func_port_create" = xyes; then :
13589  cat >>confdefs.h <<_ACEOF
13590#define HAVE_PORT_CREATE 1
13591_ACEOF
13592 haveeventports=yes
13593fi
13594done
13595
13596if test "x$haveeventports" = "xyes" ; then
13597
13598$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13599
13600	needsignal=yes
13601fi
13602 if test "x$haveeventports" = "xyes"; then
13603  EVPORT_BACKEND_TRUE=
13604  EVPORT_BACKEND_FALSE='#'
13605else
13606  EVPORT_BACKEND_TRUE='#'
13607  EVPORT_BACKEND_FALSE=
13608fi
13609
13610
13611if test "x$bwin32" = "xtrue"; then
13612	needsignal=yes
13613fi
13614
13615 if test "x$needsignal" = "xyes"; then
13616  SIGNAL_SUPPORT_TRUE=
13617  SIGNAL_SUPPORT_FALSE='#'
13618else
13619  SIGNAL_SUPPORT_TRUE='#'
13620  SIGNAL_SUPPORT_FALSE=
13621fi
13622
13623
13624ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13625if test "x$ac_cv_type_pid_t" = xyes; then :
13626
13627else
13628
13629cat >>confdefs.h <<_ACEOF
13630#define pid_t int
13631_ACEOF
13632
13633fi
13634
13635ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13636if test "x$ac_cv_type_size_t" = xyes; then :
13637
13638else
13639
13640cat >>confdefs.h <<_ACEOF
13641#define size_t unsigned int
13642_ACEOF
13643
13644fi
13645
13646ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13647if test "x$ac_cv_type_ssize_t" = xyes; then :
13648
13649else
13650
13651cat >>confdefs.h <<_ACEOF
13652#define ssize_t int
13653_ACEOF
13654
13655fi
13656
13657
13658ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_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_uint64_t" = xyes; then :
13668
13669cat >>confdefs.h <<_ACEOF
13670#define HAVE_UINT64_T 1
13671_ACEOF
13672
13673
13674fi
13675ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_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_uint32_t" = xyes; then :
13685
13686cat >>confdefs.h <<_ACEOF
13687#define HAVE_UINT32_T 1
13688_ACEOF
13689
13690
13691fi
13692ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_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_uint16_t" = xyes; then :
13702
13703cat >>confdefs.h <<_ACEOF
13704#define HAVE_UINT16_T 1
13705_ACEOF
13706
13707
13708fi
13709ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13710#include <stdint.h>
13711#elif defined(HAVE_INTTYPES_H)
13712#include <inttypes.h>
13713#endif
13714#ifdef HAVE_SYS_TYPES_H
13715#include <sys/types.h>
13716#endif
13717"
13718if test "x$ac_cv_type_uint8_t" = xyes; then :
13719
13720cat >>confdefs.h <<_ACEOF
13721#define HAVE_UINT8_T 1
13722_ACEOF
13723
13724
13725fi
13726ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13727#include <stdint.h>
13728#elif defined(HAVE_INTTYPES_H)
13729#include <inttypes.h>
13730#endif
13731#ifdef HAVE_SYS_TYPES_H
13732#include <sys/types.h>
13733#endif
13734"
13735if test "x$ac_cv_type_uintptr_t" = xyes; then :
13736
13737cat >>confdefs.h <<_ACEOF
13738#define HAVE_UINTPTR_T 1
13739_ACEOF
13740
13741
13742fi
13743
13744
13745ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13746#include <sys/types.h>
13747#endif
13748#ifdef HAVE_SYS_SELECT_H
13749#include <sys/select.h>
13750#endif
13751"
13752if test "x$ac_cv_type_fd_mask" = xyes; then :
13753
13754cat >>confdefs.h <<_ACEOF
13755#define HAVE_FD_MASK 1
13756_ACEOF
13757
13758
13759fi
13760
13761
13762# The cast to long int works around a bug in the HP C Compiler
13763# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13764# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13765# This bug is HP SR number 8606223364.
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13767$as_echo_n "checking size of long long... " >&6; }
13768if ${ac_cv_sizeof_long_long+:} false; then :
13769  $as_echo_n "(cached) " >&6
13770else
13771  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13772
13773else
13774  if test "$ac_cv_type_long_long" = yes; then
13775     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13777as_fn_error 77 "cannot compute sizeof (long long)
13778See \`config.log' for more details" "$LINENO" 5; }
13779   else
13780     ac_cv_sizeof_long_long=0
13781   fi
13782fi
13783
13784fi
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13786$as_echo "$ac_cv_sizeof_long_long" >&6; }
13787
13788
13789
13790cat >>confdefs.h <<_ACEOF
13791#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13792_ACEOF
13793
13794
13795# The cast to long int works around a bug in the HP C Compiler
13796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13798# This bug is HP SR number 8606223364.
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13800$as_echo_n "checking size of long... " >&6; }
13801if ${ac_cv_sizeof_long+:} false; then :
13802  $as_echo_n "(cached) " >&6
13803else
13804  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13805
13806else
13807  if test "$ac_cv_type_long" = yes; then
13808     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13810as_fn_error 77 "cannot compute sizeof (long)
13811See \`config.log' for more details" "$LINENO" 5; }
13812   else
13813     ac_cv_sizeof_long=0
13814   fi
13815fi
13816
13817fi
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13819$as_echo "$ac_cv_sizeof_long" >&6; }
13820
13821
13822
13823cat >>confdefs.h <<_ACEOF
13824#define SIZEOF_LONG $ac_cv_sizeof_long
13825_ACEOF
13826
13827
13828# The cast to long int works around a bug in the HP C Compiler
13829# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13830# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13831# This bug is HP SR number 8606223364.
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13833$as_echo_n "checking size of int... " >&6; }
13834if ${ac_cv_sizeof_int+:} false; then :
13835  $as_echo_n "(cached) " >&6
13836else
13837  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13838
13839else
13840  if test "$ac_cv_type_int" = yes; then
13841     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13843as_fn_error 77 "cannot compute sizeof (int)
13844See \`config.log' for more details" "$LINENO" 5; }
13845   else
13846     ac_cv_sizeof_int=0
13847   fi
13848fi
13849
13850fi
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13852$as_echo "$ac_cv_sizeof_int" >&6; }
13853
13854
13855
13856cat >>confdefs.h <<_ACEOF
13857#define SIZEOF_INT $ac_cv_sizeof_int
13858_ACEOF
13859
13860
13861# The cast to long int works around a bug in the HP C Compiler
13862# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13863# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13864# This bug is HP SR number 8606223364.
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13866$as_echo_n "checking size of short... " >&6; }
13867if ${ac_cv_sizeof_short+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13871
13872else
13873  if test "$ac_cv_type_short" = yes; then
13874     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13876as_fn_error 77 "cannot compute sizeof (short)
13877See \`config.log' for more details" "$LINENO" 5; }
13878   else
13879     ac_cv_sizeof_short=0
13880   fi
13881fi
13882
13883fi
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13885$as_echo "$ac_cv_sizeof_short" >&6; }
13886
13887
13888
13889cat >>confdefs.h <<_ACEOF
13890#define SIZEOF_SHORT $ac_cv_sizeof_short
13891_ACEOF
13892
13893
13894# The cast to long int works around a bug in the HP C Compiler
13895# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13896# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13897# This bug is HP SR number 8606223364.
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13899$as_echo_n "checking size of size_t... " >&6; }
13900if ${ac_cv_sizeof_size_t+:} false; then :
13901  $as_echo_n "(cached) " >&6
13902else
13903  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
13904
13905else
13906  if test "$ac_cv_type_size_t" = yes; then
13907     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13909as_fn_error 77 "cannot compute sizeof (size_t)
13910See \`config.log' for more details" "$LINENO" 5; }
13911   else
13912     ac_cv_sizeof_size_t=0
13913   fi
13914fi
13915
13916fi
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13918$as_echo "$ac_cv_sizeof_size_t" >&6; }
13919
13920
13921
13922cat >>confdefs.h <<_ACEOF
13923#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13924_ACEOF
13925
13926
13927# The cast to long int works around a bug in the HP C Compiler
13928# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13929# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13930# This bug is HP SR number 8606223364.
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13932$as_echo_n "checking size of void *... " >&6; }
13933if ${ac_cv_sizeof_void_p+:} false; then :
13934  $as_echo_n "(cached) " >&6
13935else
13936  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13937
13938else
13939  if test "$ac_cv_type_void_p" = yes; then
13940     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13942as_fn_error 77 "cannot compute sizeof (void *)
13943See \`config.log' for more details" "$LINENO" 5; }
13944   else
13945     ac_cv_sizeof_void_p=0
13946   fi
13947fi
13948
13949fi
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13951$as_echo "$ac_cv_sizeof_void_p" >&6; }
13952
13953
13954
13955cat >>confdefs.h <<_ACEOF
13956#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13957_ACEOF
13958
13959
13960
13961ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
13962#include <sys/types.h>
13963#ifdef HAVE_NETINET_IN_H
13964#include <netinet/in.h>
13965#endif
13966#ifdef HAVE_NETINET_IN6_H
13967#include <netinet/in6.h>
13968#endif
13969#ifdef HAVE_SYS_SOCKET_H
13970#include <sys/socket.h>
13971#endif
13972#ifdef HAVE_NETDB_H
13973#include <netdb.h>
13974#endif
13975#ifdef WIN32
13976#define WIN32_WINNT 0x400
13977#define _WIN32_WINNT 0x400
13978#define WIN32_LEAN_AND_MEAN
13979#if defined(_MSC_VER) && (_MSC_VER < 1300)
13980#include <winsock.h>
13981#else
13982#include <winsock2.h>
13983#include <ws2tcpip.h>
13984#endif
13985#endif
13986
13987"
13988if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
13989
13990cat >>confdefs.h <<_ACEOF
13991#define HAVE_STRUCT_IN6_ADDR 1
13992_ACEOF
13993
13994
13995fi
13996ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
13997#include <sys/types.h>
13998#ifdef HAVE_NETINET_IN_H
13999#include <netinet/in.h>
14000#endif
14001#ifdef HAVE_NETINET_IN6_H
14002#include <netinet/in6.h>
14003#endif
14004#ifdef HAVE_SYS_SOCKET_H
14005#include <sys/socket.h>
14006#endif
14007#ifdef HAVE_NETDB_H
14008#include <netdb.h>
14009#endif
14010#ifdef WIN32
14011#define WIN32_WINNT 0x400
14012#define _WIN32_WINNT 0x400
14013#define WIN32_LEAN_AND_MEAN
14014#if defined(_MSC_VER) && (_MSC_VER < 1300)
14015#include <winsock.h>
14016#else
14017#include <winsock2.h>
14018#include <ws2tcpip.h>
14019#endif
14020#endif
14021
14022"
14023if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14024
14025cat >>confdefs.h <<_ACEOF
14026#define HAVE_STRUCT_SOCKADDR_IN6 1
14027_ACEOF
14028
14029
14030fi
14031ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14032#include <sys/types.h>
14033#ifdef HAVE_NETINET_IN_H
14034#include <netinet/in.h>
14035#endif
14036#ifdef HAVE_NETINET_IN6_H
14037#include <netinet/in6.h>
14038#endif
14039#ifdef HAVE_SYS_SOCKET_H
14040#include <sys/socket.h>
14041#endif
14042#ifdef HAVE_NETDB_H
14043#include <netdb.h>
14044#endif
14045#ifdef WIN32
14046#define WIN32_WINNT 0x400
14047#define _WIN32_WINNT 0x400
14048#define WIN32_LEAN_AND_MEAN
14049#if defined(_MSC_VER) && (_MSC_VER < 1300)
14050#include <winsock.h>
14051#else
14052#include <winsock2.h>
14053#include <ws2tcpip.h>
14054#endif
14055#endif
14056
14057"
14058if test "x$ac_cv_type_sa_family_t" = xyes; then :
14059
14060cat >>confdefs.h <<_ACEOF
14061#define HAVE_SA_FAMILY_T 1
14062_ACEOF
14063
14064
14065fi
14066ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14067#include <sys/types.h>
14068#ifdef HAVE_NETINET_IN_H
14069#include <netinet/in.h>
14070#endif
14071#ifdef HAVE_NETINET_IN6_H
14072#include <netinet/in6.h>
14073#endif
14074#ifdef HAVE_SYS_SOCKET_H
14075#include <sys/socket.h>
14076#endif
14077#ifdef HAVE_NETDB_H
14078#include <netdb.h>
14079#endif
14080#ifdef WIN32
14081#define WIN32_WINNT 0x400
14082#define _WIN32_WINNT 0x400
14083#define WIN32_LEAN_AND_MEAN
14084#if defined(_MSC_VER) && (_MSC_VER < 1300)
14085#include <winsock.h>
14086#else
14087#include <winsock2.h>
14088#include <ws2tcpip.h>
14089#endif
14090#endif
14091
14092"
14093if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14094
14095cat >>confdefs.h <<_ACEOF
14096#define HAVE_STRUCT_ADDRINFO 1
14097_ACEOF
14098
14099
14100fi
14101ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14102#include <sys/types.h>
14103#ifdef HAVE_NETINET_IN_H
14104#include <netinet/in.h>
14105#endif
14106#ifdef HAVE_NETINET_IN6_H
14107#include <netinet/in6.h>
14108#endif
14109#ifdef HAVE_SYS_SOCKET_H
14110#include <sys/socket.h>
14111#endif
14112#ifdef HAVE_NETDB_H
14113#include <netdb.h>
14114#endif
14115#ifdef WIN32
14116#define WIN32_WINNT 0x400
14117#define _WIN32_WINNT 0x400
14118#define WIN32_LEAN_AND_MEAN
14119#if defined(_MSC_VER) && (_MSC_VER < 1300)
14120#include <winsock.h>
14121#else
14122#include <winsock2.h>
14123#include <ws2tcpip.h>
14124#endif
14125#endif
14126
14127"
14128if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14129
14130cat >>confdefs.h <<_ACEOF
14131#define HAVE_STRUCT_SOCKADDR_STORAGE 1
14132_ACEOF
14133
14134
14135fi
14136
14137ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14138#ifdef HAVE_NETINET_IN_H
14139#include <netinet/in.h>
14140#endif
14141#ifdef HAVE_NETINET_IN6_H
14142#include <netinet/in6.h>
14143#endif
14144#ifdef HAVE_SYS_SOCKET_H
14145#include <sys/socket.h>
14146#endif
14147#ifdef WIN32
14148#define WIN32_WINNT 0x400
14149#define _WIN32_WINNT 0x400
14150#define WIN32_LEAN_AND_MEAN
14151#if defined(_MSC_VER) && (_MSC_VER < 1300)
14152#include <winsock.h>
14153#else
14154#include <winsock2.h>
14155#include <ws2tcpip.h>
14156#endif
14157#endif
14158
14159"
14160if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14161
14162cat >>confdefs.h <<_ACEOF
14163#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14164_ACEOF
14165
14166
14167fi
14168ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14169#ifdef HAVE_NETINET_IN_H
14170#include <netinet/in.h>
14171#endif
14172#ifdef HAVE_NETINET_IN6_H
14173#include <netinet/in6.h>
14174#endif
14175#ifdef HAVE_SYS_SOCKET_H
14176#include <sys/socket.h>
14177#endif
14178#ifdef WIN32
14179#define WIN32_WINNT 0x400
14180#define _WIN32_WINNT 0x400
14181#define WIN32_LEAN_AND_MEAN
14182#if defined(_MSC_VER) && (_MSC_VER < 1300)
14183#include <winsock.h>
14184#else
14185#include <winsock2.h>
14186#include <ws2tcpip.h>
14187#endif
14188#endif
14189
14190"
14191if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14192
14193cat >>confdefs.h <<_ACEOF
14194#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14195_ACEOF
14196
14197
14198fi
14199ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14200#ifdef HAVE_NETINET_IN_H
14201#include <netinet/in.h>
14202#endif
14203#ifdef HAVE_NETINET_IN6_H
14204#include <netinet/in6.h>
14205#endif
14206#ifdef HAVE_SYS_SOCKET_H
14207#include <sys/socket.h>
14208#endif
14209#ifdef WIN32
14210#define WIN32_WINNT 0x400
14211#define _WIN32_WINNT 0x400
14212#define WIN32_LEAN_AND_MEAN
14213#if defined(_MSC_VER) && (_MSC_VER < 1300)
14214#include <winsock.h>
14215#else
14216#include <winsock2.h>
14217#include <ws2tcpip.h>
14218#endif
14219#endif
14220
14221"
14222if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14223
14224cat >>confdefs.h <<_ACEOF
14225#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14226_ACEOF
14227
14228
14229fi
14230ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14231#ifdef HAVE_NETINET_IN_H
14232#include <netinet/in.h>
14233#endif
14234#ifdef HAVE_NETINET_IN6_H
14235#include <netinet/in6.h>
14236#endif
14237#ifdef HAVE_SYS_SOCKET_H
14238#include <sys/socket.h>
14239#endif
14240#ifdef WIN32
14241#define WIN32_WINNT 0x400
14242#define _WIN32_WINNT 0x400
14243#define WIN32_LEAN_AND_MEAN
14244#if defined(_MSC_VER) && (_MSC_VER < 1300)
14245#include <winsock.h>
14246#else
14247#include <winsock2.h>
14248#include <ws2tcpip.h>
14249#endif
14250#endif
14251
14252"
14253if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14254
14255cat >>confdefs.h <<_ACEOF
14256#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14257_ACEOF
14258
14259
14260fi
14261ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14262#ifdef HAVE_NETINET_IN_H
14263#include <netinet/in.h>
14264#endif
14265#ifdef HAVE_NETINET_IN6_H
14266#include <netinet/in6.h>
14267#endif
14268#ifdef HAVE_SYS_SOCKET_H
14269#include <sys/socket.h>
14270#endif
14271#ifdef WIN32
14272#define WIN32_WINNT 0x400
14273#define _WIN32_WINNT 0x400
14274#define WIN32_LEAN_AND_MEAN
14275#if defined(_MSC_VER) && (_MSC_VER < 1300)
14276#include <winsock.h>
14277#else
14278#include <winsock2.h>
14279#include <ws2tcpip.h>
14280#endif
14281#endif
14282
14283"
14284if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14285
14286cat >>confdefs.h <<_ACEOF
14287#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14288_ACEOF
14289
14290
14291fi
14292ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14293#ifdef HAVE_NETINET_IN_H
14294#include <netinet/in.h>
14295#endif
14296#ifdef HAVE_NETINET_IN6_H
14297#include <netinet/in6.h>
14298#endif
14299#ifdef HAVE_SYS_SOCKET_H
14300#include <sys/socket.h>
14301#endif
14302#ifdef WIN32
14303#define WIN32_WINNT 0x400
14304#define _WIN32_WINNT 0x400
14305#define WIN32_LEAN_AND_MEAN
14306#if defined(_MSC_VER) && (_MSC_VER < 1300)
14307#include <winsock.h>
14308#else
14309#include <winsock2.h>
14310#include <ws2tcpip.h>
14311#endif
14312#endif
14313
14314"
14315if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14316
14317cat >>confdefs.h <<_ACEOF
14318#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14319_ACEOF
14320
14321
14322fi
14323
14324
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14326$as_echo_n "checking for socklen_t... " >&6; }
14327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h.  */
14329
14330 #include <sys/types.h>
14331 #include <sys/socket.h>
14332int
14333main ()
14334{
14335socklen_t x;
14336  ;
14337  return 0;
14338}
14339_ACEOF
14340if ac_fn_c_try_compile "$LINENO"; then :
14341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14342$as_echo "yes" >&6; }
14343else
14344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345$as_echo "no" >&6; }
14346
14347$as_echo "#define socklen_t unsigned int" >>confdefs.h
14348
14349
14350fi
14351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14354$as_echo_n "checking whether our compiler supports __func__... " >&6; }
14355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356/* end confdefs.h.  */
14357
14358int
14359main ()
14360{
14361 const char *cp = __func__;
14362  ;
14363  return 0;
14364}
14365_ACEOF
14366if ac_fn_c_try_compile "$LINENO"; then :
14367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14368$as_echo "yes" >&6; }
14369else
14370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371$as_echo "no" >&6; }
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14373$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375/* end confdefs.h.  */
14376
14377int
14378main ()
14379{
14380 const char *cp = __FUNCTION__;
14381  ;
14382  return 0;
14383}
14384_ACEOF
14385if ac_fn_c_try_compile "$LINENO"; then :
14386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14387$as_echo "yes" >&6; }
14388
14389$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14390
14391else
14392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393$as_echo "no" >&6; }
14394
14395$as_echo "#define __func__ __FILE__" >>confdefs.h
14396
14397fi
14398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399fi
14400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401
14402
14403# check if we can compile with pthreads
14404have_pthreads=no
14405if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14406
14407
14408
14409ac_ext=c
14410ac_cpp='$CPP $CPPFLAGS'
14411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14413ac_compiler_gnu=$ac_cv_c_compiler_gnu
14414
14415acx_pthread_ok=no
14416
14417# We used to check for pthread.h first, but this fails if pthread.h
14418# requires special compiler flags (e.g. on True64 or Sequent).
14419# It gets checked for in the link test anyway.
14420
14421# First of all, check if the user has set any of the PTHREAD_LIBS,
14422# etcetera environment variables, and if threads linking works using
14423# them:
14424if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14425        save_CFLAGS="$CFLAGS"
14426        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14427        save_LIBS="$LIBS"
14428        LIBS="$PTHREAD_LIBS $LIBS"
14429        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14430$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14431        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432/* end confdefs.h.  */
14433
14434/* Override any GCC internal prototype to avoid an error.
14435   Use char because int might match the return type of a GCC
14436   builtin and then its argument prototype would still apply.  */
14437#ifdef __cplusplus
14438extern "C"
14439#endif
14440char pthread_join ();
14441int
14442main ()
14443{
14444return pthread_join ();
14445  ;
14446  return 0;
14447}
14448_ACEOF
14449if ac_fn_c_try_link "$LINENO"; then :
14450  acx_pthread_ok=yes
14451fi
14452rm -f core conftest.err conftest.$ac_objext \
14453    conftest$ac_exeext conftest.$ac_ext
14454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14455$as_echo "$acx_pthread_ok" >&6; }
14456        if test x"$acx_pthread_ok" = xno; then
14457                PTHREAD_LIBS=""
14458                PTHREAD_CFLAGS=""
14459        fi
14460        LIBS="$save_LIBS"
14461        CFLAGS="$save_CFLAGS"
14462fi
14463
14464# We must check for the threads library under a number of different
14465# names; the ordering is very important because some systems
14466# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14467# libraries is broken (non-POSIX).
14468
14469# Create a list of thread flags to try.  Items starting with a "-" are
14470# C compiler flags, and other items are library names, except for "none"
14471# which indicates that we try without any flags at all, and "pthread-config"
14472# which is a program returning the flags for the Pth emulation library.
14473
14474acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14475
14476# The ordering *is* (sometimes) important.  Some notes on the
14477# individual items follow:
14478
14479# pthreads: AIX (must check this before -lpthread)
14480# none: in case threads are in libc; should be tried before -Kthread and
14481#       other compiler flags to prevent continual compiler warnings
14482# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14483# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14484# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14485# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14486# -pthreads: Solaris/gcc
14487# -mthreads: Mingw32/gcc, Lynx/gcc
14488# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14489#      doesn't hurt to check since this sometimes defines pthreads too;
14490#      also defines -D_REENTRANT)
14491#      ... -mt is also the pthreads flag for HP/aCC
14492# pthread: Linux, etcetera
14493# --thread-safe: KAI C++
14494# pthread-config: use pthread-config program (for GNU Pth library)
14495
14496case "${host_cpu}-${host_os}" in
14497        *solaris*)
14498
14499        # On Solaris (at least, for some versions), libc contains stubbed
14500        # (non-functional) versions of the pthreads routines, so link-based
14501        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14502        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14503        # a function called by this macro, so we could check for that, but
14504        # who knows whether they'll stub that too in a future libc.)  So,
14505        # we'll just look for -pthreads and -lpthread first:
14506
14507        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14508        ;;
14509esac
14510
14511if test x"$acx_pthread_ok" = xno; then
14512for flag in $acx_pthread_flags; do
14513
14514        case $flag in
14515                none)
14516                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14517$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14518                ;;
14519
14520                -*)
14521                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14522$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14523                PTHREAD_CFLAGS="$flag"
14524                ;;
14525
14526		pthread-config)
14527		# Extract the first word of "pthread-config", so it can be a program name with args.
14528set dummy pthread-config; ac_word=$2
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530$as_echo_n "checking for $ac_word... " >&6; }
14531if ${ac_cv_prog_acx_pthread_config+:} false; then :
14532  $as_echo_n "(cached) " >&6
14533else
14534  if test -n "$acx_pthread_config"; then
14535  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14536else
14537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538for as_dir in $PATH
14539do
14540  IFS=$as_save_IFS
14541  test -z "$as_dir" && as_dir=.
14542    for ac_exec_ext in '' $ac_executable_extensions; do
14543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14544    ac_cv_prog_acx_pthread_config="yes"
14545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546    break 2
14547  fi
14548done
14549  done
14550IFS=$as_save_IFS
14551
14552  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14553fi
14554fi
14555acx_pthread_config=$ac_cv_prog_acx_pthread_config
14556if test -n "$acx_pthread_config"; then
14557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14558$as_echo "$acx_pthread_config" >&6; }
14559else
14560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561$as_echo "no" >&6; }
14562fi
14563
14564
14565		if test x"$acx_pthread_config" = xno; then continue; fi
14566		PTHREAD_CFLAGS="`pthread-config --cflags`"
14567		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14568		;;
14569
14570                *)
14571                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14572$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14573                PTHREAD_LIBS="-l$flag"
14574                ;;
14575        esac
14576
14577        save_LIBS="$LIBS"
14578        save_CFLAGS="$CFLAGS"
14579        LIBS="$PTHREAD_LIBS $LIBS"
14580        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14581
14582        # Check for various functions.  We must include pthread.h,
14583        # since some functions may be macros.  (On the Sequent, we
14584        # need a special flag -Kthread to make this header compile.)
14585        # We check for pthread_join because it is in -lpthread on IRIX
14586        # while pthread_create is in libc.  We check for pthread_attr_init
14587        # due to DEC craziness with -lpthreads.  We check for
14588        # pthread_cleanup_push because it is one of the few pthread
14589        # functions on Solaris that doesn't have a non-functional libc stub.
14590        # We try pthread_create on general principles.
14591        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592/* end confdefs.h.  */
14593#include <pthread.h>
14594int
14595main ()
14596{
14597pthread_t th; pthread_join(th, 0);
14598                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
14599                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14600  ;
14601  return 0;
14602}
14603_ACEOF
14604if ac_fn_c_try_link "$LINENO"; then :
14605  acx_pthread_ok=yes
14606fi
14607rm -f core conftest.err conftest.$ac_objext \
14608    conftest$ac_exeext conftest.$ac_ext
14609
14610        LIBS="$save_LIBS"
14611        CFLAGS="$save_CFLAGS"
14612
14613        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14614$as_echo "$acx_pthread_ok" >&6; }
14615        if test "x$acx_pthread_ok" = xyes; then
14616                break;
14617        fi
14618
14619        PTHREAD_LIBS=""
14620        PTHREAD_CFLAGS=""
14621done
14622fi
14623
14624# Various other checks:
14625if test "x$acx_pthread_ok" = xyes; then
14626        save_LIBS="$LIBS"
14627        LIBS="$PTHREAD_LIBS $LIBS"
14628        save_CFLAGS="$CFLAGS"
14629        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14630
14631        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14633$as_echo_n "checking for joinable pthread attribute... " >&6; }
14634	attr_name=unknown
14635	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14636	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637/* end confdefs.h.  */
14638#include <pthread.h>
14639int
14640main ()
14641{
14642int attr=$attr; return attr;
14643  ;
14644  return 0;
14645}
14646_ACEOF
14647if ac_fn_c_try_link "$LINENO"; then :
14648  attr_name=$attr; break
14649fi
14650rm -f core conftest.err conftest.$ac_objext \
14651    conftest$ac_exeext conftest.$ac_ext
14652	done
14653        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14654$as_echo "$attr_name" >&6; }
14655        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14656
14657cat >>confdefs.h <<_ACEOF
14658#define PTHREAD_CREATE_JOINABLE $attr_name
14659_ACEOF
14660
14661        fi
14662
14663        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14664$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14665        flag=no
14666        case "${host_cpu}-${host_os}" in
14667            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14668            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14669        esac
14670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14671$as_echo "${flag}" >&6; }
14672        if test "x$flag" != xno; then
14673            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14674        fi
14675
14676        LIBS="$save_LIBS"
14677        CFLAGS="$save_CFLAGS"
14678
14679        # More AIX lossage: must compile with xlc_r or cc_r
14680	if test x"$GCC" != xyes; then
14681          for ac_prog in xlc_r cc_r
14682do
14683  # Extract the first word of "$ac_prog", so it can be a program name with args.
14684set dummy $ac_prog; ac_word=$2
14685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14686$as_echo_n "checking for $ac_word... " >&6; }
14687if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14688  $as_echo_n "(cached) " >&6
14689else
14690  if test -n "$PTHREAD_CC"; then
14691  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14692else
14693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14694for as_dir in $PATH
14695do
14696  IFS=$as_save_IFS
14697  test -z "$as_dir" && as_dir=.
14698    for ac_exec_ext in '' $ac_executable_extensions; do
14699  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14700    ac_cv_prog_PTHREAD_CC="$ac_prog"
14701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14702    break 2
14703  fi
14704done
14705  done
14706IFS=$as_save_IFS
14707
14708fi
14709fi
14710PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14711if test -n "$PTHREAD_CC"; then
14712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14713$as_echo "$PTHREAD_CC" >&6; }
14714else
14715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14716$as_echo "no" >&6; }
14717fi
14718
14719
14720  test -n "$PTHREAD_CC" && break
14721done
14722test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14723
14724        else
14725          PTHREAD_CC=$CC
14726	fi
14727else
14728        PTHREAD_CC="$CC"
14729fi
14730
14731
14732
14733
14734
14735# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14736if test x"$acx_pthread_ok" = xyes; then
14737
14738
14739$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14740
14741	have_pthreads=yes
14742        :
14743else
14744        acx_pthread_ok=no
14745
14746fi
14747ac_ext=c
14748ac_cpp='$CPP $CPPFLAGS'
14749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14751ac_compiler_gnu=$ac_cv_c_compiler_gnu
14752
14753
14754  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14755  # The cast to long int works around a bug in the HP C Compiler
14756# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14757# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14758# This bug is HP SR number 8606223364.
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14760$as_echo_n "checking size of pthread_t... " >&6; }
14761if ${ac_cv_sizeof_pthread_t+:} false; then :
14762  $as_echo_n "(cached) " >&6
14763else
14764  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
14765      #include <pthread.h>
14766
14767"; then :
14768
14769else
14770  if test "$ac_cv_type_pthread_t" = yes; then
14771     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14773as_fn_error 77 "cannot compute sizeof (pthread_t)
14774See \`config.log' for more details" "$LINENO" 5; }
14775   else
14776     ac_cv_sizeof_pthread_t=0
14777   fi
14778fi
14779
14780fi
14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14782$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14783
14784
14785
14786cat >>confdefs.h <<_ACEOF
14787#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14788_ACEOF
14789
14790
14791fi
14792 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14793  PTHREADS_TRUE=
14794  PTHREADS_FALSE='#'
14795else
14796  PTHREADS_TRUE='#'
14797  PTHREADS_FALSE=
14798fi
14799
14800
14801# check if we should compile locking into the library
14802if test x$enable_thread_support = xno; then
14803
14804$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14805
14806fi
14807
14808# check if we should hard-code the mm functions.
14809if test x$enable_malloc_replacement = xno; then
14810
14811$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14812
14813fi
14814
14815# check if we should hard-code debugging out
14816if test x$enable_debug_mode = xno; then
14817
14818$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14819
14820fi
14821
14822# check if we have and should use openssl
14823 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14824  OPENSSL_TRUE=
14825  OPENSSL_FALSE='#'
14826else
14827  OPENSSL_TRUE='#'
14828  OPENSSL_FALSE=
14829fi
14830
14831
14832# Add some more warnings which we use in development but not in the
14833# released versions.  (Some relevant gcc versions can't handle these.)
14834if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14835
14836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837/* end confdefs.h.  */
14838
14839int
14840main ()
14841{
14842
14843#if !defined(__GNUC__) || (__GNUC__ < 4)
14844#error
14845#endif
14846  ;
14847  return 0;
14848}
14849_ACEOF
14850if ac_fn_c_try_compile "$LINENO"; then :
14851  have_gcc4=yes
14852else
14853  have_gcc4=no
14854fi
14855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856
14857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858/* end confdefs.h.  */
14859
14860int
14861main ()
14862{
14863
14864#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14865#error
14866#endif
14867  ;
14868  return 0;
14869}
14870_ACEOF
14871if ac_fn_c_try_compile "$LINENO"; then :
14872  have_gcc42=yes
14873else
14874  have_gcc42=no
14875fi
14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877
14878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879/* end confdefs.h.  */
14880
14881int
14882main ()
14883{
14884
14885#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14886#error
14887#endif
14888  ;
14889  return 0;
14890}
14891_ACEOF
14892if ac_fn_c_try_compile "$LINENO"; then :
14893  have_gcc45=yes
14894else
14895  have_gcc45=no
14896fi
14897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898
14899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900/* end confdefs.h.  */
14901
14902int
14903main ()
14904{
14905
14906#if !defined(__clang__)
14907#error
14908#endif
14909  ;
14910  return 0;
14911}
14912_ACEOF
14913if ac_fn_c_try_compile "$LINENO"; then :
14914  have_clang=yes
14915else
14916  have_clang=no
14917fi
14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919
14920  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"
14921  CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14922
14923  if test x$have_gcc4 = xyes ; then
14924    # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14925    CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14926    #CFLAGS="$CFLAGS -Wold-style-definition"
14927  fi
14928
14929  if test x$have_gcc42 = xyes ; then
14930    # These warnings break gcc 4.0.2 and work on gcc 4.2
14931    CFLAGS="$CFLAGS -Waddress"
14932  fi
14933
14934  if test x$have_gcc42 = xyes && test x$have_clang = xno; then
14935    # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14936    CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
14937  fi
14938
14939  if test x$have_gcc45 = xyes ; then
14940    # These warnings work on gcc 4.5
14941    CFLAGS="$CFLAGS -Wlogical-op"
14942  fi
14943
14944  if test x$have_clang = xyes; then
14945    # Disable the unused-function warnings, because these trigger
14946    # for minheap-internal.h related code.
14947    CFLAGS="$CFLAGS -Wno-unused-function"
14948  fi
14949
14950##This will break the world on some 64-bit architectures
14951# CFLAGS="$CFLAGS -Winline"
14952
14953fi
14954
14955LIBEVENT_GC_SECTIONS=
14956if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
14957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
14958$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
14959if ${libevent_cv_gc_sections_runs+:} false; then :
14960  $as_echo_n "(cached) " >&6
14961else
14962
14963	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
14964	    CFLAGS="$CFLAGS -Wl,--gc-sections"
14965	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h.  */
14967
14968			#include <stdlib.h>
14969			#include <stdio.h>
14970
14971int
14972main ()
14973{
14974
14975			FILE *	fpC;
14976			char	buf[32];
14977			size_t	cch;
14978			int	read_success_once;
14979
14980			fpC = fopen("conftest.c", "r");
14981			if (NULL == fpC)
14982				exit(1);
14983			do {
14984				cch = fread(buf, sizeof(buf), 1, fpC);
14985				read_success_once |= (0 != cch);
14986			} while (0 != cch);
14987			if (!read_success_once)
14988				exit(2);
14989			if (!feof(fpC))
14990				exit(3);
14991			if (0 != fclose(fpC))
14992				exit(4);
14993
14994			exit(EXIT_SUCCESS);
14995
14996
14997  ;
14998  return 0;
14999}
15000_ACEOF
15001if ac_fn_c_try_link "$LINENO"; then :
15002
15003                                                            		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15004			libevent_cv_gc_sections_runs=no
15005		    else
15006			libevent_cv_gc_sections_runs=no
15007			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15008		    fi
15009
15010else
15011  libevent_cv_gc_sections_runs=no
15012
15013fi
15014rm -f core conftest.err conftest.$ac_objext \
15015    conftest$ac_exeext conftest.$ac_ext
15016	    CFLAGS="$origCFLAGS"
15017	    { origCFLAGS=; unset origCFLAGS;}
15018
15019
15020fi
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15022$as_echo "$libevent_cv_gc_sections_runs" >&6; }
15023    case "$libevent_cv_gc_sections_runs" in
15024     yes)
15025	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15026	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15027	;;
15028    esac
15029fi
15030
15031
15032 if test "$enable_libevent_install" = "yes"; then
15033  INSTALL_LIBEVENT_TRUE=
15034  INSTALL_LIBEVENT_FALSE='#'
15035else
15036  INSTALL_LIBEVENT_TRUE='#'
15037  INSTALL_LIBEVENT_FALSE=
15038fi
15039
15040
15041ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15042
15043ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15044
15045cat >confcache <<\_ACEOF
15046# This file is a shell script that caches the results of configure
15047# tests run on this system so they can be shared between configure
15048# scripts and configure runs, see configure's option --config-cache.
15049# It is not useful on other systems.  If it contains results you don't
15050# want to keep, you may remove or edit it.
15051#
15052# config.status only pays attention to the cache file if you give it
15053# the --recheck option to rerun configure.
15054#
15055# `ac_cv_env_foo' variables (set or unset) will be overridden when
15056# loading this file, other *unset* `ac_cv_foo' will be assigned the
15057# following values.
15058
15059_ACEOF
15060
15061# The following way of writing the cache mishandles newlines in values,
15062# but we know of no workaround that is simple, portable, and efficient.
15063# So, we kill variables containing newlines.
15064# Ultrix sh set writes to stderr and can't be redirected directly,
15065# and sets the high bit in the cache file unless we assign to the vars.
15066(
15067  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15068    eval ac_val=\$$ac_var
15069    case $ac_val in #(
15070    *${as_nl}*)
15071      case $ac_var in #(
15072      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15074      esac
15075      case $ac_var in #(
15076      _ | IFS | as_nl) ;; #(
15077      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15078      *) { eval $ac_var=; unset $ac_var;} ;;
15079      esac ;;
15080    esac
15081  done
15082
15083  (set) 2>&1 |
15084    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15085    *${as_nl}ac_space=\ *)
15086      # `set' does not quote correctly, so add quotes: double-quote
15087      # substitution turns \\\\ into \\, and sed turns \\ into \.
15088      sed -n \
15089	"s/'/'\\\\''/g;
15090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15091      ;; #(
15092    *)
15093      # `set' quotes correctly as required by POSIX, so do not add quotes.
15094      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15095      ;;
15096    esac |
15097    sort
15098) |
15099  sed '
15100     /^ac_cv_env_/b end
15101     t clear
15102     :clear
15103     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15104     t end
15105     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15106     :end' >>confcache
15107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15108  if test -w "$cache_file"; then
15109    if test "x$cache_file" != "x/dev/null"; then
15110      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15111$as_echo "$as_me: updating cache $cache_file" >&6;}
15112      if test ! -f "$cache_file" || test -h "$cache_file"; then
15113	cat confcache >"$cache_file"
15114      else
15115        case $cache_file in #(
15116        */* | ?:*)
15117	  mv -f confcache "$cache_file"$$ &&
15118	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15119        *)
15120	  mv -f confcache "$cache_file" ;;
15121	esac
15122      fi
15123    fi
15124  else
15125    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15126$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15127  fi
15128fi
15129rm -f confcache
15130
15131test "x$prefix" = xNONE && prefix=$ac_default_prefix
15132# Let make expand exec_prefix.
15133test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15134
15135DEFS=-DHAVE_CONFIG_H
15136
15137ac_libobjs=
15138ac_ltlibobjs=
15139U=
15140for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15141  # 1. Remove the extension, and $U if already installed.
15142  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15143  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15144  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15145  #    will be set to the directory where LIBOBJS objects are built.
15146  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15147  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15148done
15149LIBOBJS=$ac_libobjs
15150
15151LTLIBOBJS=$ac_ltlibobjs
15152
15153
15154 if test -n "$EXEEXT"; then
15155  am__EXEEXT_TRUE=
15156  am__EXEEXT_FALSE='#'
15157else
15158  am__EXEEXT_TRUE='#'
15159  am__EXEEXT_FALSE=
15160fi
15161
15162if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15163  as_fn_error $? "conditional \"AMDEP\" was never defined.
15164Usually this means the macro was only invoked conditionally." "$LINENO" 5
15165fi
15166if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15167  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15168Usually this means the macro was only invoked conditionally." "$LINENO" 5
15169fi
15170if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15171  as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15172Usually this means the macro was only invoked conditionally." "$LINENO" 5
15173fi
15174if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15175  as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15176Usually this means the macro was only invoked conditionally." "$LINENO" 5
15177fi
15178if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15179  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15180Usually this means the macro was only invoked conditionally." "$LINENO" 5
15181fi
15182if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15183  as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15184Usually this means the macro was only invoked conditionally." "$LINENO" 5
15185fi
15186if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15187  as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15188Usually this means the macro was only invoked conditionally." "$LINENO" 5
15189fi
15190if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15191  as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15192Usually this means the macro was only invoked conditionally." "$LINENO" 5
15193fi
15194if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15195  as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15196Usually this means the macro was only invoked conditionally." "$LINENO" 5
15197fi
15198if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15199  as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15200Usually this means the macro was only invoked conditionally." "$LINENO" 5
15201fi
15202if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15203  as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15204Usually this means the macro was only invoked conditionally." "$LINENO" 5
15205fi
15206if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15207  as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15208Usually this means the macro was only invoked conditionally." "$LINENO" 5
15209fi
15210if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15211  as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15212Usually this means the macro was only invoked conditionally." "$LINENO" 5
15213fi
15214if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15215  as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15216Usually this means the macro was only invoked conditionally." "$LINENO" 5
15217fi
15218if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15219  as_fn_error $? "conditional \"PTHREADS\" was never defined.
15220Usually this means the macro was only invoked conditionally." "$LINENO" 5
15221fi
15222if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15223  as_fn_error $? "conditional \"OPENSSL\" was never defined.
15224Usually this means the macro was only invoked conditionally." "$LINENO" 5
15225fi
15226if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15227  as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15228Usually this means the macro was only invoked conditionally." "$LINENO" 5
15229fi
15230
15231: "${CONFIG_STATUS=./config.status}"
15232ac_write_fail=0
15233ac_clean_files_save=$ac_clean_files
15234ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15236$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15237as_write_fail=0
15238cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15239#! $SHELL
15240# Generated by $as_me.
15241# Run this file to recreate the current configuration.
15242# Compiler output produced by configure, useful for debugging
15243# configure, is in config.log if it exists.
15244
15245debug=false
15246ac_cs_recheck=false
15247ac_cs_silent=false
15248
15249SHELL=\${CONFIG_SHELL-$SHELL}
15250export SHELL
15251_ASEOF
15252cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15253## -------------------- ##
15254## M4sh Initialization. ##
15255## -------------------- ##
15256
15257# Be more Bourne compatible
15258DUALCASE=1; export DUALCASE # for MKS sh
15259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15260  emulate sh
15261  NULLCMD=:
15262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15263  # is contrary to our usage.  Disable this feature.
15264  alias -g '${1+"$@"}'='"$@"'
15265  setopt NO_GLOB_SUBST
15266else
15267  case `(set -o) 2>/dev/null` in #(
15268  *posix*) :
15269    set -o posix ;; #(
15270  *) :
15271     ;;
15272esac
15273fi
15274
15275
15276as_nl='
15277'
15278export as_nl
15279# Printing a long string crashes Solaris 7 /usr/bin/printf.
15280as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15281as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15282as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15283# Prefer a ksh shell builtin over an external printf program on Solaris,
15284# but without wasting forks for bash or zsh.
15285if test -z "$BASH_VERSION$ZSH_VERSION" \
15286    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15287  as_echo='print -r --'
15288  as_echo_n='print -rn --'
15289elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15290  as_echo='printf %s\n'
15291  as_echo_n='printf %s'
15292else
15293  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15294    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15295    as_echo_n='/usr/ucb/echo -n'
15296  else
15297    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15298    as_echo_n_body='eval
15299      arg=$1;
15300      case $arg in #(
15301      *"$as_nl"*)
15302	expr "X$arg" : "X\\(.*\\)$as_nl";
15303	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15304      esac;
15305      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15306    '
15307    export as_echo_n_body
15308    as_echo_n='sh -c $as_echo_n_body as_echo'
15309  fi
15310  export as_echo_body
15311  as_echo='sh -c $as_echo_body as_echo'
15312fi
15313
15314# The user is always right.
15315if test "${PATH_SEPARATOR+set}" != set; then
15316  PATH_SEPARATOR=:
15317  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15318    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15319      PATH_SEPARATOR=';'
15320  }
15321fi
15322
15323
15324# IFS
15325# We need space, tab and new line, in precisely that order.  Quoting is
15326# there to prevent editors from complaining about space-tab.
15327# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15328# splitting by setting IFS to empty value.)
15329IFS=" ""	$as_nl"
15330
15331# Find who we are.  Look in the path if we contain no directory separator.
15332as_myself=
15333case $0 in #((
15334  *[\\/]* ) as_myself=$0 ;;
15335  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15336for as_dir in $PATH
15337do
15338  IFS=$as_save_IFS
15339  test -z "$as_dir" && as_dir=.
15340    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15341  done
15342IFS=$as_save_IFS
15343
15344     ;;
15345esac
15346# We did not find ourselves, most probably we were run as `sh COMMAND'
15347# in which case we are not to be found in the path.
15348if test "x$as_myself" = x; then
15349  as_myself=$0
15350fi
15351if test ! -f "$as_myself"; then
15352  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15353  exit 1
15354fi
15355
15356# Unset variables that we do not need and which cause bugs (e.g. in
15357# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15358# suppresses any "Segmentation fault" message there.  '((' could
15359# trigger a bug in pdksh 5.2.14.
15360for as_var in BASH_ENV ENV MAIL MAILPATH
15361do eval test x\${$as_var+set} = xset \
15362  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15363done
15364PS1='$ '
15365PS2='> '
15366PS4='+ '
15367
15368# NLS nuisances.
15369LC_ALL=C
15370export LC_ALL
15371LANGUAGE=C
15372export LANGUAGE
15373
15374# CDPATH.
15375(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15376
15377
15378# as_fn_error STATUS ERROR [LINENO LOG_FD]
15379# ----------------------------------------
15380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15382# script with STATUS, using 1 if that was 0.
15383as_fn_error ()
15384{
15385  as_status=$1; test $as_status -eq 0 && as_status=1
15386  if test "$4"; then
15387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15389  fi
15390  $as_echo "$as_me: error: $2" >&2
15391  as_fn_exit $as_status
15392} # as_fn_error
15393
15394
15395# as_fn_set_status STATUS
15396# -----------------------
15397# Set $? to STATUS, without forking.
15398as_fn_set_status ()
15399{
15400  return $1
15401} # as_fn_set_status
15402
15403# as_fn_exit STATUS
15404# -----------------
15405# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15406as_fn_exit ()
15407{
15408  set +e
15409  as_fn_set_status $1
15410  exit $1
15411} # as_fn_exit
15412
15413# as_fn_unset VAR
15414# ---------------
15415# Portably unset VAR.
15416as_fn_unset ()
15417{
15418  { eval $1=; unset $1;}
15419}
15420as_unset=as_fn_unset
15421# as_fn_append VAR VALUE
15422# ----------------------
15423# Append the text in VALUE to the end of the definition contained in VAR. Take
15424# advantage of any shell optimizations that allow amortized linear growth over
15425# repeated appends, instead of the typical quadratic growth present in naive
15426# implementations.
15427if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15428  eval 'as_fn_append ()
15429  {
15430    eval $1+=\$2
15431  }'
15432else
15433  as_fn_append ()
15434  {
15435    eval $1=\$$1\$2
15436  }
15437fi # as_fn_append
15438
15439# as_fn_arith ARG...
15440# ------------------
15441# Perform arithmetic evaluation on the ARGs, and store the result in the
15442# global $as_val. Take advantage of shells that can avoid forks. The arguments
15443# must be portable across $(()) and expr.
15444if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15445  eval 'as_fn_arith ()
15446  {
15447    as_val=$(( $* ))
15448  }'
15449else
15450  as_fn_arith ()
15451  {
15452    as_val=`expr "$@" || test $? -eq 1`
15453  }
15454fi # as_fn_arith
15455
15456
15457if expr a : '\(a\)' >/dev/null 2>&1 &&
15458   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15459  as_expr=expr
15460else
15461  as_expr=false
15462fi
15463
15464if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15465  as_basename=basename
15466else
15467  as_basename=false
15468fi
15469
15470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15471  as_dirname=dirname
15472else
15473  as_dirname=false
15474fi
15475
15476as_me=`$as_basename -- "$0" ||
15477$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15478	 X"$0" : 'X\(//\)$' \| \
15479	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15480$as_echo X/"$0" |
15481    sed '/^.*\/\([^/][^/]*\)\/*$/{
15482	    s//\1/
15483	    q
15484	  }
15485	  /^X\/\(\/\/\)$/{
15486	    s//\1/
15487	    q
15488	  }
15489	  /^X\/\(\/\).*/{
15490	    s//\1/
15491	    q
15492	  }
15493	  s/.*/./; q'`
15494
15495# Avoid depending upon Character Ranges.
15496as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15497as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15498as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15499as_cr_digits='0123456789'
15500as_cr_alnum=$as_cr_Letters$as_cr_digits
15501
15502ECHO_C= ECHO_N= ECHO_T=
15503case `echo -n x` in #(((((
15504-n*)
15505  case `echo 'xy\c'` in
15506  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15507  xy)  ECHO_C='\c';;
15508  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15509       ECHO_T='	';;
15510  esac;;
15511*)
15512  ECHO_N='-n';;
15513esac
15514
15515rm -f conf$$ conf$$.exe conf$$.file
15516if test -d conf$$.dir; then
15517  rm -f conf$$.dir/conf$$.file
15518else
15519  rm -f conf$$.dir
15520  mkdir conf$$.dir 2>/dev/null
15521fi
15522if (echo >conf$$.file) 2>/dev/null; then
15523  if ln -s conf$$.file conf$$ 2>/dev/null; then
15524    as_ln_s='ln -s'
15525    # ... but there are two gotchas:
15526    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15527    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15528    # In both cases, we have to default to `cp -p'.
15529    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15530      as_ln_s='cp -p'
15531  elif ln conf$$.file conf$$ 2>/dev/null; then
15532    as_ln_s=ln
15533  else
15534    as_ln_s='cp -p'
15535  fi
15536else
15537  as_ln_s='cp -p'
15538fi
15539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15540rmdir conf$$.dir 2>/dev/null
15541
15542
15543# as_fn_mkdir_p
15544# -------------
15545# Create "$as_dir" as a directory, including parents if necessary.
15546as_fn_mkdir_p ()
15547{
15548
15549  case $as_dir in #(
15550  -*) as_dir=./$as_dir;;
15551  esac
15552  test -d "$as_dir" || eval $as_mkdir_p || {
15553    as_dirs=
15554    while :; do
15555      case $as_dir in #(
15556      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15557      *) as_qdir=$as_dir;;
15558      esac
15559      as_dirs="'$as_qdir' $as_dirs"
15560      as_dir=`$as_dirname -- "$as_dir" ||
15561$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15562	 X"$as_dir" : 'X\(//\)[^/]' \| \
15563	 X"$as_dir" : 'X\(//\)$' \| \
15564	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15565$as_echo X"$as_dir" |
15566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15567	    s//\1/
15568	    q
15569	  }
15570	  /^X\(\/\/\)[^/].*/{
15571	    s//\1/
15572	    q
15573	  }
15574	  /^X\(\/\/\)$/{
15575	    s//\1/
15576	    q
15577	  }
15578	  /^X\(\/\).*/{
15579	    s//\1/
15580	    q
15581	  }
15582	  s/.*/./; q'`
15583      test -d "$as_dir" && break
15584    done
15585    test -z "$as_dirs" || eval "mkdir $as_dirs"
15586  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15587
15588
15589} # as_fn_mkdir_p
15590if mkdir -p . 2>/dev/null; then
15591  as_mkdir_p='mkdir -p "$as_dir"'
15592else
15593  test -d ./-p && rmdir ./-p
15594  as_mkdir_p=false
15595fi
15596
15597if test -x / >/dev/null 2>&1; then
15598  as_test_x='test -x'
15599else
15600  if ls -dL / >/dev/null 2>&1; then
15601    as_ls_L_option=L
15602  else
15603    as_ls_L_option=
15604  fi
15605  as_test_x='
15606    eval sh -c '\''
15607      if test -d "$1"; then
15608	test -d "$1/.";
15609      else
15610	case $1 in #(
15611	-*)set "./$1";;
15612	esac;
15613	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15614	???[sx]*):;;*)false;;esac;fi
15615    '\'' sh
15616  '
15617fi
15618as_executable_p=$as_test_x
15619
15620# Sed expression to map a string onto a valid CPP name.
15621as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15622
15623# Sed expression to map a string onto a valid variable name.
15624as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15625
15626
15627exec 6>&1
15628## ----------------------------------- ##
15629## Main body of $CONFIG_STATUS script. ##
15630## ----------------------------------- ##
15631_ASEOF
15632test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15633
15634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15635# Save the log message, to keep $0 and so on meaningful, and to
15636# report actual input values of CONFIG_FILES etc. instead of their
15637# values after options handling.
15638ac_log="
15639This file was extended by $as_me, which was
15640generated by GNU Autoconf 2.68.  Invocation command line was
15641
15642  CONFIG_FILES    = $CONFIG_FILES
15643  CONFIG_HEADERS  = $CONFIG_HEADERS
15644  CONFIG_LINKS    = $CONFIG_LINKS
15645  CONFIG_COMMANDS = $CONFIG_COMMANDS
15646  $ $0 $@
15647
15648on `(hostname || uname -n) 2>/dev/null | sed 1q`
15649"
15650
15651_ACEOF
15652
15653case $ac_config_files in *"
15654"*) set x $ac_config_files; shift; ac_config_files=$*;;
15655esac
15656
15657case $ac_config_headers in *"
15658"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15659esac
15660
15661
15662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15663# Files that config.status was made for.
15664config_files="$ac_config_files"
15665config_headers="$ac_config_headers"
15666config_commands="$ac_config_commands"
15667
15668_ACEOF
15669
15670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671ac_cs_usage="\
15672\`$as_me' instantiates files and other configuration actions
15673from templates according to the current configuration.  Unless the files
15674and actions are specified as TAGs, all are instantiated by default.
15675
15676Usage: $0 [OPTION]... [TAG]...
15677
15678  -h, --help       print this help, then exit
15679  -V, --version    print version number and configuration settings, then exit
15680      --config     print configuration, then exit
15681  -q, --quiet, --silent
15682                   do not print progress messages
15683  -d, --debug      don't remove temporary files
15684      --recheck    update $as_me by reconfiguring in the same conditions
15685      --file=FILE[:TEMPLATE]
15686                   instantiate the configuration file FILE
15687      --header=FILE[:TEMPLATE]
15688                   instantiate the configuration header FILE
15689
15690Configuration files:
15691$config_files
15692
15693Configuration headers:
15694$config_headers
15695
15696Configuration commands:
15697$config_commands
15698
15699Report bugs to the package provider."
15700
15701_ACEOF
15702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15704ac_cs_version="\\
15705config.status
15706configured by $0, generated by GNU Autoconf 2.68,
15707  with options \\"\$ac_cs_config\\"
15708
15709Copyright (C) 2010 Free Software Foundation, Inc.
15710This config.status script is free software; the Free Software Foundation
15711gives unlimited permission to copy, distribute and modify it."
15712
15713ac_pwd='$ac_pwd'
15714srcdir='$srcdir'
15715INSTALL='$INSTALL'
15716MKDIR_P='$MKDIR_P'
15717AWK='$AWK'
15718test -n "\$AWK" || AWK=awk
15719_ACEOF
15720
15721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15722# The default lists apply if the user does not specify any file.
15723ac_need_defaults=:
15724while test $# != 0
15725do
15726  case $1 in
15727  --*=?*)
15728    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15729    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15730    ac_shift=:
15731    ;;
15732  --*=)
15733    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15734    ac_optarg=
15735    ac_shift=:
15736    ;;
15737  *)
15738    ac_option=$1
15739    ac_optarg=$2
15740    ac_shift=shift
15741    ;;
15742  esac
15743
15744  case $ac_option in
15745  # Handling of the options.
15746  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15747    ac_cs_recheck=: ;;
15748  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15749    $as_echo "$ac_cs_version"; exit ;;
15750  --config | --confi | --conf | --con | --co | --c )
15751    $as_echo "$ac_cs_config"; exit ;;
15752  --debug | --debu | --deb | --de | --d | -d )
15753    debug=: ;;
15754  --file | --fil | --fi | --f )
15755    $ac_shift
15756    case $ac_optarg in
15757    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15758    '') as_fn_error $? "missing file argument" ;;
15759    esac
15760    as_fn_append CONFIG_FILES " '$ac_optarg'"
15761    ac_need_defaults=false;;
15762  --header | --heade | --head | --hea )
15763    $ac_shift
15764    case $ac_optarg in
15765    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15766    esac
15767    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15768    ac_need_defaults=false;;
15769  --he | --h)
15770    # Conflict between --help and --header
15771    as_fn_error $? "ambiguous option: \`$1'
15772Try \`$0 --help' for more information.";;
15773  --help | --hel | -h )
15774    $as_echo "$ac_cs_usage"; exit ;;
15775  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15776  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15777    ac_cs_silent=: ;;
15778
15779  # This is an error.
15780  -*) as_fn_error $? "unrecognized option: \`$1'
15781Try \`$0 --help' for more information." ;;
15782
15783  *) as_fn_append ac_config_targets " $1"
15784     ac_need_defaults=false ;;
15785
15786  esac
15787  shift
15788done
15789
15790ac_configure_extra_args=
15791
15792if $ac_cs_silent; then
15793  exec 6>/dev/null
15794  ac_configure_extra_args="$ac_configure_extra_args --silent"
15795fi
15796
15797_ACEOF
15798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799if \$ac_cs_recheck; then
15800  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15801  shift
15802  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15803  CONFIG_SHELL='$SHELL'
15804  export CONFIG_SHELL
15805  exec "\$@"
15806fi
15807
15808_ACEOF
15809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810exec 5>>config.log
15811{
15812  echo
15813  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15814## Running $as_me. ##
15815_ASBOX
15816  $as_echo "$ac_log"
15817} >&5
15818
15819_ACEOF
15820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15821#
15822# INIT-COMMANDS
15823#
15824AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15825
15826
15827# The HP-UX ksh and POSIX shell print the target directory to stdout
15828# if CDPATH is set.
15829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15830
15831sed_quote_subst='$sed_quote_subst'
15832double_quote_subst='$double_quote_subst'
15833delay_variable_subst='$delay_variable_subst'
15834macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15835macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15836enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15837enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15838pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15839enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15840SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15841ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15842host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15843host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15844host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15845build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15846build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15847build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15848SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15849Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15850GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15851EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15852FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15853LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15854NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15855LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15856max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15857ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15858exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15859lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15860lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15861lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15862lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15863lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15864reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15865reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15866OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15867deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15868file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15869file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15870want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15871DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15872sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15873AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15874AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15875archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15876STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15877RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15878old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15879old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15880old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15881lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15882CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15883CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15884compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15885GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15886lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15887lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15888lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15889lt_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"`'
15890nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15891lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15892objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15893MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15894lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15895lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15896lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15897lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15898lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15899need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15900MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15901DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15902NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15903LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15904OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15905OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15906libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15907shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15908extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15909archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15910enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15911export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15912whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15913compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15914old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15915old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15916archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15917archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15918module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15919module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15920with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15921allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15922no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15923hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15924hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15925hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15926hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15927hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15928hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15929hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15930hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15931inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15932link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15933always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15934export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15935exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15936include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15937prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15938postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15939file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15940variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15941need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15942need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15943version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15944runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15945shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15946shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15947libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15948library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15949soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15950install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15951postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15952postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15953finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15954finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15955hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15956sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15957sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15958hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15959enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15960enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15961enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15962old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15963striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15964
15965LTCC='$LTCC'
15966LTCFLAGS='$LTCFLAGS'
15967compiler='$compiler_DEFAULT'
15968
15969# A function that is used when there is no print builtin or printf.
15970func_fallback_echo ()
15971{
15972  eval 'cat <<_LTECHO_EOF
15973\$1
15974_LTECHO_EOF'
15975}
15976
15977# Quote evaled strings.
15978for var in SHELL \
15979ECHO \
15980SED \
15981GREP \
15982EGREP \
15983FGREP \
15984LD \
15985NM \
15986LN_S \
15987lt_SP2NL \
15988lt_NL2SP \
15989reload_flag \
15990OBJDUMP \
15991deplibs_check_method \
15992file_magic_cmd \
15993file_magic_glob \
15994want_nocaseglob \
15995DLLTOOL \
15996sharedlib_from_linklib_cmd \
15997AR \
15998AR_FLAGS \
15999archiver_list_spec \
16000STRIP \
16001RANLIB \
16002CC \
16003CFLAGS \
16004compiler \
16005lt_cv_sys_global_symbol_pipe \
16006lt_cv_sys_global_symbol_to_cdecl \
16007lt_cv_sys_global_symbol_to_c_name_address \
16008lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16009nm_file_list_spec \
16010lt_prog_compiler_no_builtin_flag \
16011lt_prog_compiler_pic \
16012lt_prog_compiler_wl \
16013lt_prog_compiler_static \
16014lt_cv_prog_compiler_c_o \
16015need_locks \
16016MANIFEST_TOOL \
16017DSYMUTIL \
16018NMEDIT \
16019LIPO \
16020OTOOL \
16021OTOOL64 \
16022shrext_cmds \
16023export_dynamic_flag_spec \
16024whole_archive_flag_spec \
16025compiler_needs_object \
16026with_gnu_ld \
16027allow_undefined_flag \
16028no_undefined_flag \
16029hardcode_libdir_flag_spec \
16030hardcode_libdir_flag_spec_ld \
16031hardcode_libdir_separator \
16032exclude_expsyms \
16033include_expsyms \
16034file_list_spec \
16035variables_saved_for_relink \
16036libname_spec \
16037library_names_spec \
16038soname_spec \
16039install_override_mode \
16040finish_eval \
16041old_striplib \
16042striplib; do
16043    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16044    *[\\\\\\\`\\"\\\$]*)
16045      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16046      ;;
16047    *)
16048      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16049      ;;
16050    esac
16051done
16052
16053# Double-quote double-evaled strings.
16054for var in reload_cmds \
16055old_postinstall_cmds \
16056old_postuninstall_cmds \
16057old_archive_cmds \
16058extract_expsyms_cmds \
16059old_archive_from_new_cmds \
16060old_archive_from_expsyms_cmds \
16061archive_cmds \
16062archive_expsym_cmds \
16063module_cmds \
16064module_expsym_cmds \
16065export_symbols_cmds \
16066prelink_cmds \
16067postlink_cmds \
16068postinstall_cmds \
16069postuninstall_cmds \
16070finish_cmds \
16071sys_lib_search_path_spec \
16072sys_lib_dlsearch_path_spec; do
16073    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16074    *[\\\\\\\`\\"\\\$]*)
16075      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16076      ;;
16077    *)
16078      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16079      ;;
16080    esac
16081done
16082
16083ac_aux_dir='$ac_aux_dir'
16084xsi_shell='$xsi_shell'
16085lt_shell_append='$lt_shell_append'
16086
16087# See if we are running on zsh, and set the options which allow our
16088# commands through without removal of \ escapes INIT.
16089if test -n "\${ZSH_VERSION+set}" ; then
16090   setopt NO_GLOB_SUBST
16091fi
16092
16093
16094    PACKAGE='$PACKAGE'
16095    VERSION='$VERSION'
16096    TIMESTAMP='$TIMESTAMP'
16097    RM='$RM'
16098    ofile='$ofile'
16099
16100
16101
16102
16103_ACEOF
16104
16105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106
16107# Handling of arguments.
16108for ac_config_target in $ac_config_targets
16109do
16110  case $ac_config_target in
16111    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16112    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16113    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16114    "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16115    "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16116    "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16117    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16118    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16119    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16120    "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16121
16122  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16123  esac
16124done
16125
16126
16127# If the user did not use the arguments to specify the items to instantiate,
16128# then the envvar interface is used.  Set only those that are not.
16129# We use the long form for the default assignment because of an extremely
16130# bizarre bug on SunOS 4.1.3.
16131if $ac_need_defaults; then
16132  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16133  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16134  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16135fi
16136
16137# Have a temporary directory for convenience.  Make it in the build tree
16138# simply because there is no reason against having it here, and in addition,
16139# creating and moving files from /tmp can sometimes cause problems.
16140# Hook for its removal unless debugging.
16141# Note that there is a small window in which the directory will not be cleaned:
16142# after its creation but before its name has been assigned to `$tmp'.
16143$debug ||
16144{
16145  tmp= ac_tmp=
16146  trap 'exit_status=$?
16147  : "${ac_tmp:=$tmp}"
16148  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16149' 0
16150  trap 'as_fn_exit 1' 1 2 13 15
16151}
16152# Create a (secure) tmp directory for tmp files.
16153
16154{
16155  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16156  test -d "$tmp"
16157}  ||
16158{
16159  tmp=./conf$$-$RANDOM
16160  (umask 077 && mkdir "$tmp")
16161} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16162ac_tmp=$tmp
16163
16164# Set up the scripts for CONFIG_FILES section.
16165# No need to generate them if there are no CONFIG_FILES.
16166# This happens for instance with `./config.status config.h'.
16167if test -n "$CONFIG_FILES"; then
16168
16169
16170ac_cr=`echo X | tr X '\015'`
16171# On cygwin, bash can eat \r inside `` if the user requested igncr.
16172# But we know of no other shell where ac_cr would be empty at this
16173# point, so we can use a bashism as a fallback.
16174if test "x$ac_cr" = x; then
16175  eval ac_cr=\$\'\\r\'
16176fi
16177ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16178if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16179  ac_cs_awk_cr='\\r'
16180else
16181  ac_cs_awk_cr=$ac_cr
16182fi
16183
16184echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16185_ACEOF
16186
16187
16188{
16189  echo "cat >conf$$subs.awk <<_ACEOF" &&
16190  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16191  echo "_ACEOF"
16192} >conf$$subs.sh ||
16193  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16194ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16195ac_delim='%!_!# '
16196for ac_last_try in false false false false false :; do
16197  . ./conf$$subs.sh ||
16198    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16199
16200  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16201  if test $ac_delim_n = $ac_delim_num; then
16202    break
16203  elif $ac_last_try; then
16204    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16205  else
16206    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16207  fi
16208done
16209rm -f conf$$subs.sh
16210
16211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16213_ACEOF
16214sed -n '
16215h
16216s/^/S["/; s/!.*/"]=/
16217p
16218g
16219s/^[^!]*!//
16220:repl
16221t repl
16222s/'"$ac_delim"'$//
16223t delim
16224:nl
16225h
16226s/\(.\{148\}\)..*/\1/
16227t more1
16228s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16229p
16230n
16231b repl
16232:more1
16233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16234p
16235g
16236s/.\{148\}//
16237t nl
16238:delim
16239h
16240s/\(.\{148\}\)..*/\1/
16241t more2
16242s/["\\]/\\&/g; s/^/"/; s/$/"/
16243p
16244b
16245:more2
16246s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16247p
16248g
16249s/.\{148\}//
16250t delim
16251' <conf$$subs.awk | sed '
16252/^[^""]/{
16253  N
16254  s/\n//
16255}
16256' >>$CONFIG_STATUS || ac_write_fail=1
16257rm -f conf$$subs.awk
16258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16259_ACAWK
16260cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16261  for (key in S) S_is_set[key] = 1
16262  FS = ""
16263
16264}
16265{
16266  line = $ 0
16267  nfields = split(line, field, "@")
16268  substed = 0
16269  len = length(field[1])
16270  for (i = 2; i < nfields; i++) {
16271    key = field[i]
16272    keylen = length(key)
16273    if (S_is_set[key]) {
16274      value = S[key]
16275      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16276      len += length(value) + length(field[++i])
16277      substed = 1
16278    } else
16279      len += 1 + keylen
16280  }
16281
16282  print line
16283}
16284
16285_ACAWK
16286_ACEOF
16287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16288if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16289  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16290else
16291  cat
16292fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16293  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16294_ACEOF
16295
16296# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16297# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16298# trailing colons and then remove the whole line if VPATH becomes empty
16299# (actually we leave an empty line to preserve line numbers).
16300if test "x$srcdir" = x.; then
16301  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16302h
16303s///
16304s/^/:/
16305s/[	 ]*$/:/
16306s/:\$(srcdir):/:/g
16307s/:\${srcdir}:/:/g
16308s/:@srcdir@:/:/g
16309s/^:*//
16310s/:*$//
16311x
16312s/\(=[	 ]*\).*/\1/
16313G
16314s/\n//
16315s/^[^=]*=[	 ]*$//
16316}'
16317fi
16318
16319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320fi # test -n "$CONFIG_FILES"
16321
16322# Set up the scripts for CONFIG_HEADERS section.
16323# No need to generate them if there are no CONFIG_HEADERS.
16324# This happens for instance with `./config.status Makefile'.
16325if test -n "$CONFIG_HEADERS"; then
16326cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16327BEGIN {
16328_ACEOF
16329
16330# Transform confdefs.h into an awk script `defines.awk', embedded as
16331# here-document in config.status, that substitutes the proper values into
16332# config.h.in to produce config.h.
16333
16334# Create a delimiter string that does not exist in confdefs.h, to ease
16335# handling of long lines.
16336ac_delim='%!_!# '
16337for ac_last_try in false false :; do
16338  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16339  if test -z "$ac_tt"; then
16340    break
16341  elif $ac_last_try; then
16342    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16343  else
16344    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16345  fi
16346done
16347
16348# For the awk script, D is an array of macro values keyed by name,
16349# likewise P contains macro parameters if any.  Preserve backslash
16350# newline sequences.
16351
16352ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16353sed -n '
16354s/.\{148\}/&'"$ac_delim"'/g
16355t rset
16356:rset
16357s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16358t def
16359d
16360:def
16361s/\\$//
16362t bsnl
16363s/["\\]/\\&/g
16364s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16365D["\1"]=" \3"/p
16366s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16367d
16368:bsnl
16369s/["\\]/\\&/g
16370s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16371D["\1"]=" \3\\\\\\n"\\/p
16372t cont
16373s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16374t cont
16375d
16376:cont
16377n
16378s/.\{148\}/&'"$ac_delim"'/g
16379t clear
16380:clear
16381s/\\$//
16382t bsnlc
16383s/["\\]/\\&/g; s/^/"/; s/$/"/p
16384d
16385:bsnlc
16386s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16387b cont
16388' <confdefs.h | sed '
16389s/'"$ac_delim"'/"\\\
16390"/g' >>$CONFIG_STATUS || ac_write_fail=1
16391
16392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16393  for (key in D) D_is_set[key] = 1
16394  FS = ""
16395}
16396/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16397  line = \$ 0
16398  split(line, arg, " ")
16399  if (arg[1] == "#") {
16400    defundef = arg[2]
16401    mac1 = arg[3]
16402  } else {
16403    defundef = substr(arg[1], 2)
16404    mac1 = arg[2]
16405  }
16406  split(mac1, mac2, "(") #)
16407  macro = mac2[1]
16408  prefix = substr(line, 1, index(line, defundef) - 1)
16409  if (D_is_set[macro]) {
16410    # Preserve the white space surrounding the "#".
16411    print prefix "define", macro P[macro] D[macro]
16412    next
16413  } else {
16414    # Replace #undef with comments.  This is necessary, for example,
16415    # in the case of _POSIX_SOURCE, which is predefined and required
16416    # on some systems where configure will not decide to define it.
16417    if (defundef == "undef") {
16418      print "/*", prefix defundef, macro, "*/"
16419      next
16420    }
16421  }
16422}
16423{ print }
16424_ACAWK
16425_ACEOF
16426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16427  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16428fi # test -n "$CONFIG_HEADERS"
16429
16430
16431eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16432shift
16433for ac_tag
16434do
16435  case $ac_tag in
16436  :[FHLC]) ac_mode=$ac_tag; continue;;
16437  esac
16438  case $ac_mode$ac_tag in
16439  :[FHL]*:*);;
16440  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16441  :[FH]-) ac_tag=-:-;;
16442  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16443  esac
16444  ac_save_IFS=$IFS
16445  IFS=:
16446  set x $ac_tag
16447  IFS=$ac_save_IFS
16448  shift
16449  ac_file=$1
16450  shift
16451
16452  case $ac_mode in
16453  :L) ac_source=$1;;
16454  :[FH])
16455    ac_file_inputs=
16456    for ac_f
16457    do
16458      case $ac_f in
16459      -) ac_f="$ac_tmp/stdin";;
16460      *) # Look for the file first in the build tree, then in the source tree
16461	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16462	 # because $ac_f cannot contain `:'.
16463	 test -f "$ac_f" ||
16464	   case $ac_f in
16465	   [\\/$]*) false;;
16466	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16467	   esac ||
16468	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16469      esac
16470      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16471      as_fn_append ac_file_inputs " '$ac_f'"
16472    done
16473
16474    # Let's still pretend it is `configure' which instantiates (i.e., don't
16475    # use $as_me), people would be surprised to read:
16476    #    /* config.h.  Generated by config.status.  */
16477    configure_input='Generated from '`
16478	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16479	`' by configure.'
16480    if test x"$ac_file" != x-; then
16481      configure_input="$ac_file.  $configure_input"
16482      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16483$as_echo "$as_me: creating $ac_file" >&6;}
16484    fi
16485    # Neutralize special characters interpreted by sed in replacement strings.
16486    case $configure_input in #(
16487    *\&* | *\|* | *\\* )
16488       ac_sed_conf_input=`$as_echo "$configure_input" |
16489       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16490    *) ac_sed_conf_input=$configure_input;;
16491    esac
16492
16493    case $ac_tag in
16494    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16495      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16496    esac
16497    ;;
16498  esac
16499
16500  ac_dir=`$as_dirname -- "$ac_file" ||
16501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16502	 X"$ac_file" : 'X\(//\)[^/]' \| \
16503	 X"$ac_file" : 'X\(//\)$' \| \
16504	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16505$as_echo X"$ac_file" |
16506    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16507	    s//\1/
16508	    q
16509	  }
16510	  /^X\(\/\/\)[^/].*/{
16511	    s//\1/
16512	    q
16513	  }
16514	  /^X\(\/\/\)$/{
16515	    s//\1/
16516	    q
16517	  }
16518	  /^X\(\/\).*/{
16519	    s//\1/
16520	    q
16521	  }
16522	  s/.*/./; q'`
16523  as_dir="$ac_dir"; as_fn_mkdir_p
16524  ac_builddir=.
16525
16526case "$ac_dir" in
16527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16528*)
16529  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16530  # A ".." for each directory in $ac_dir_suffix.
16531  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16532  case $ac_top_builddir_sub in
16533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16535  esac ;;
16536esac
16537ac_abs_top_builddir=$ac_pwd
16538ac_abs_builddir=$ac_pwd$ac_dir_suffix
16539# for backward compatibility:
16540ac_top_builddir=$ac_top_build_prefix
16541
16542case $srcdir in
16543  .)  # We are building in place.
16544    ac_srcdir=.
16545    ac_top_srcdir=$ac_top_builddir_sub
16546    ac_abs_top_srcdir=$ac_pwd ;;
16547  [\\/]* | ?:[\\/]* )  # Absolute name.
16548    ac_srcdir=$srcdir$ac_dir_suffix;
16549    ac_top_srcdir=$srcdir
16550    ac_abs_top_srcdir=$srcdir ;;
16551  *) # Relative name.
16552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16553    ac_top_srcdir=$ac_top_build_prefix$srcdir
16554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16555esac
16556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16557
16558
16559  case $ac_mode in
16560  :F)
16561  #
16562  # CONFIG_FILE
16563  #
16564
16565  case $INSTALL in
16566  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16567  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16568  esac
16569  ac_MKDIR_P=$MKDIR_P
16570  case $MKDIR_P in
16571  [\\/$]* | ?:[\\/]* ) ;;
16572  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16573  esac
16574_ACEOF
16575
16576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577# If the template does not know about datarootdir, expand it.
16578# FIXME: This hack should be removed a few years after 2.60.
16579ac_datarootdir_hack=; ac_datarootdir_seen=
16580ac_sed_dataroot='
16581/datarootdir/ {
16582  p
16583  q
16584}
16585/@datadir@/p
16586/@docdir@/p
16587/@infodir@/p
16588/@localedir@/p
16589/@mandir@/p'
16590case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16591*datarootdir*) ac_datarootdir_seen=yes;;
16592*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16593  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16594$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16595_ACEOF
16596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16597  ac_datarootdir_hack='
16598  s&@datadir@&$datadir&g
16599  s&@docdir@&$docdir&g
16600  s&@infodir@&$infodir&g
16601  s&@localedir@&$localedir&g
16602  s&@mandir@&$mandir&g
16603  s&\\\${datarootdir}&$datarootdir&g' ;;
16604esac
16605_ACEOF
16606
16607# Neutralize VPATH when `$srcdir' = `.'.
16608# Shell code in configure.ac might set extrasub.
16609# FIXME: do we really want to maintain this feature?
16610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16611ac_sed_extra="$ac_vpsub
16612$extrasub
16613_ACEOF
16614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615:t
16616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16617s|@configure_input@|$ac_sed_conf_input|;t t
16618s&@top_builddir@&$ac_top_builddir_sub&;t t
16619s&@top_build_prefix@&$ac_top_build_prefix&;t t
16620s&@srcdir@&$ac_srcdir&;t t
16621s&@abs_srcdir@&$ac_abs_srcdir&;t t
16622s&@top_srcdir@&$ac_top_srcdir&;t t
16623s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16624s&@builddir@&$ac_builddir&;t t
16625s&@abs_builddir@&$ac_abs_builddir&;t t
16626s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16627s&@INSTALL@&$ac_INSTALL&;t t
16628s&@MKDIR_P@&$ac_MKDIR_P&;t t
16629$ac_datarootdir_hack
16630"
16631eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16632  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16633
16634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16635  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16636  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16637      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16638  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16639which seems to be undefined.  Please make sure it is defined" >&5
16640$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16641which seems to be undefined.  Please make sure it is defined" >&2;}
16642
16643  rm -f "$ac_tmp/stdin"
16644  case $ac_file in
16645  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16646  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16647  esac \
16648  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16649 ;;
16650  :H)
16651  #
16652  # CONFIG_HEADER
16653  #
16654  if test x"$ac_file" != x-; then
16655    {
16656      $as_echo "/* $configure_input  */" \
16657      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16658    } >"$ac_tmp/config.h" \
16659      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16660    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16661      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16662$as_echo "$as_me: $ac_file is unchanged" >&6;}
16663    else
16664      rm -f "$ac_file"
16665      mv "$ac_tmp/config.h" "$ac_file" \
16666	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16667    fi
16668  else
16669    $as_echo "/* $configure_input  */" \
16670      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16671      || as_fn_error $? "could not create -" "$LINENO" 5
16672  fi
16673# Compute "$ac_file"'s index in $config_headers.
16674_am_arg="$ac_file"
16675_am_stamp_count=1
16676for _am_header in $config_headers :; do
16677  case $_am_header in
16678    $_am_arg | $_am_arg:* )
16679      break ;;
16680    * )
16681      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16682  esac
16683done
16684echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16685$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16686	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16687	 X"$_am_arg" : 'X\(//\)$' \| \
16688	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16689$as_echo X"$_am_arg" |
16690    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16691	    s//\1/
16692	    q
16693	  }
16694	  /^X\(\/\/\)[^/].*/{
16695	    s//\1/
16696	    q
16697	  }
16698	  /^X\(\/\/\)$/{
16699	    s//\1/
16700	    q
16701	  }
16702	  /^X\(\/\).*/{
16703	    s//\1/
16704	    q
16705	  }
16706	  s/.*/./; q'`/stamp-h$_am_stamp_count
16707 ;;
16708
16709  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16710$as_echo "$as_me: executing $ac_file commands" >&6;}
16711 ;;
16712  esac
16713
16714
16715  case $ac_file$ac_mode in
16716    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16717  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16718  # are listed without --file.  Let's play safe and only enable the eval
16719  # if we detect the quoting.
16720  case $CONFIG_FILES in
16721  *\'*) eval set x "$CONFIG_FILES" ;;
16722  *)   set x $CONFIG_FILES ;;
16723  esac
16724  shift
16725  for mf
16726  do
16727    # Strip MF so we end up with the name of the file.
16728    mf=`echo "$mf" | sed -e 's/:.*$//'`
16729    # Check whether this is an Automake generated Makefile or not.
16730    # We used to match only the files named `Makefile.in', but
16731    # some people rename them; so instead we look at the file content.
16732    # Grep'ing the first line is not enough: some people post-process
16733    # each Makefile.in and add a new line on top of each file to say so.
16734    # Grep'ing the whole file is not good either: AIX grep has a line
16735    # limit of 2048, but all sed's we know have understand at least 4000.
16736    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16737      dirpart=`$as_dirname -- "$mf" ||
16738$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16739	 X"$mf" : 'X\(//\)[^/]' \| \
16740	 X"$mf" : 'X\(//\)$' \| \
16741	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16742$as_echo X"$mf" |
16743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16744	    s//\1/
16745	    q
16746	  }
16747	  /^X\(\/\/\)[^/].*/{
16748	    s//\1/
16749	    q
16750	  }
16751	  /^X\(\/\/\)$/{
16752	    s//\1/
16753	    q
16754	  }
16755	  /^X\(\/\).*/{
16756	    s//\1/
16757	    q
16758	  }
16759	  s/.*/./; q'`
16760    else
16761      continue
16762    fi
16763    # Extract the definition of DEPDIR, am__include, and am__quote
16764    # from the Makefile without running `make'.
16765    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16766    test -z "$DEPDIR" && continue
16767    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16768    test -z "am__include" && continue
16769    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16770    # When using ansi2knr, U may be empty or an underscore; expand it
16771    U=`sed -n 's/^U = //p' < "$mf"`
16772    # Find all dependency output files, they are included files with
16773    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16774    # simplest approach to changing $(DEPDIR) to its actual value in the
16775    # expansion.
16776    for file in `sed -n "
16777      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16778	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16779      # Make sure the directory exists.
16780      test -f "$dirpart/$file" && continue
16781      fdir=`$as_dirname -- "$file" ||
16782$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16783	 X"$file" : 'X\(//\)[^/]' \| \
16784	 X"$file" : 'X\(//\)$' \| \
16785	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16786$as_echo X"$file" |
16787    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16788	    s//\1/
16789	    q
16790	  }
16791	  /^X\(\/\/\)[^/].*/{
16792	    s//\1/
16793	    q
16794	  }
16795	  /^X\(\/\/\)$/{
16796	    s//\1/
16797	    q
16798	  }
16799	  /^X\(\/\).*/{
16800	    s//\1/
16801	    q
16802	  }
16803	  s/.*/./; q'`
16804      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16805      # echo "creating $dirpart/$file"
16806      echo '# dummy' > "$dirpart/$file"
16807    done
16808  done
16809}
16810 ;;
16811    "libtool":C)
16812
16813    # See if we are running on zsh, and set the options which allow our
16814    # commands through without removal of \ escapes.
16815    if test -n "${ZSH_VERSION+set}" ; then
16816      setopt NO_GLOB_SUBST
16817    fi
16818
16819    cfgfile="${ofile}T"
16820    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16821    $RM "$cfgfile"
16822
16823    cat <<_LT_EOF >> "$cfgfile"
16824#! $SHELL
16825
16826# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16827# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16828# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16829# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16830#
16831#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16832#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16833#                 Inc.
16834#   Written by Gordon Matzigkeit, 1996
16835#
16836#   This file is part of GNU Libtool.
16837#
16838# GNU Libtool is free software; you can redistribute it and/or
16839# modify it under the terms of the GNU General Public License as
16840# published by the Free Software Foundation; either version 2 of
16841# the License, or (at your option) any later version.
16842#
16843# As a special exception to the GNU General Public License,
16844# if you distribute this file as part of a program or library that
16845# is built using GNU Libtool, you may include this file under the
16846# same distribution terms that you use for the rest of that program.
16847#
16848# GNU Libtool is distributed in the hope that it will be useful,
16849# but WITHOUT ANY WARRANTY; without even the implied warranty of
16850# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16851# GNU General Public License for more details.
16852#
16853# You should have received a copy of the GNU General Public License
16854# along with GNU Libtool; see the file COPYING.  If not, a copy
16855# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16856# obtained by writing to the Free Software Foundation, Inc.,
16857# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16858
16859
16860# The names of the tagged configurations supported by this script.
16861available_tags=""
16862
16863# ### BEGIN LIBTOOL CONFIG
16864
16865# Which release of libtool.m4 was used?
16866macro_version=$macro_version
16867macro_revision=$macro_revision
16868
16869# Whether or not to build shared libraries.
16870build_libtool_libs=$enable_shared
16871
16872# Whether or not to build static libraries.
16873build_old_libs=$enable_static
16874
16875# What type of objects to build.
16876pic_mode=$pic_mode
16877
16878# Whether or not to optimize for fast installation.
16879fast_install=$enable_fast_install
16880
16881# Shell to use when invoking shell scripts.
16882SHELL=$lt_SHELL
16883
16884# An echo program that protects backslashes.
16885ECHO=$lt_ECHO
16886
16887# The host system.
16888host_alias=$host_alias
16889host=$host
16890host_os=$host_os
16891
16892# The build system.
16893build_alias=$build_alias
16894build=$build
16895build_os=$build_os
16896
16897# A sed program that does not truncate output.
16898SED=$lt_SED
16899
16900# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16901Xsed="\$SED -e 1s/^X//"
16902
16903# A grep program that handles long lines.
16904GREP=$lt_GREP
16905
16906# An ERE matcher.
16907EGREP=$lt_EGREP
16908
16909# A literal string matcher.
16910FGREP=$lt_FGREP
16911
16912# A BSD- or MS-compatible name lister.
16913NM=$lt_NM
16914
16915# Whether we need soft or hard links.
16916LN_S=$lt_LN_S
16917
16918# What is the maximum length of a command?
16919max_cmd_len=$max_cmd_len
16920
16921# Object file suffix (normally "o").
16922objext=$ac_objext
16923
16924# Executable file suffix (normally "").
16925exeext=$exeext
16926
16927# whether the shell understands "unset".
16928lt_unset=$lt_unset
16929
16930# turn spaces into newlines.
16931SP2NL=$lt_lt_SP2NL
16932
16933# turn newlines into spaces.
16934NL2SP=$lt_lt_NL2SP
16935
16936# convert \$build file names to \$host format.
16937to_host_file_cmd=$lt_cv_to_host_file_cmd
16938
16939# convert \$build files to toolchain format.
16940to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16941
16942# An object symbol dumper.
16943OBJDUMP=$lt_OBJDUMP
16944
16945# Method to check whether dependent libraries are shared objects.
16946deplibs_check_method=$lt_deplibs_check_method
16947
16948# Command to use when deplibs_check_method = "file_magic".
16949file_magic_cmd=$lt_file_magic_cmd
16950
16951# How to find potential files when deplibs_check_method = "file_magic".
16952file_magic_glob=$lt_file_magic_glob
16953
16954# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16955want_nocaseglob=$lt_want_nocaseglob
16956
16957# DLL creation program.
16958DLLTOOL=$lt_DLLTOOL
16959
16960# Command to associate shared and link libraries.
16961sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16962
16963# The archiver.
16964AR=$lt_AR
16965
16966# Flags to create an archive.
16967AR_FLAGS=$lt_AR_FLAGS
16968
16969# How to feed a file listing to the archiver.
16970archiver_list_spec=$lt_archiver_list_spec
16971
16972# A symbol stripping program.
16973STRIP=$lt_STRIP
16974
16975# Commands used to install an old-style archive.
16976RANLIB=$lt_RANLIB
16977old_postinstall_cmds=$lt_old_postinstall_cmds
16978old_postuninstall_cmds=$lt_old_postuninstall_cmds
16979
16980# Whether to use a lock for old archive extraction.
16981lock_old_archive_extraction=$lock_old_archive_extraction
16982
16983# A C compiler.
16984LTCC=$lt_CC
16985
16986# LTCC compiler flags.
16987LTCFLAGS=$lt_CFLAGS
16988
16989# Take the output of nm and produce a listing of raw symbols and C names.
16990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16991
16992# Transform the output of nm in a proper C declaration.
16993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16994
16995# Transform the output of nm in a C name address pair.
16996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16997
16998# Transform the output of nm in a C name address pair when lib prefix is needed.
16999global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17000
17001# Specify filename containing input files for \$NM.
17002nm_file_list_spec=$lt_nm_file_list_spec
17003
17004# The root where to search for dependent libraries,and in which our libraries should be installed.
17005lt_sysroot=$lt_sysroot
17006
17007# The name of the directory that contains temporary libtool files.
17008objdir=$objdir
17009
17010# Used to examine libraries when file_magic_cmd begins with "file".
17011MAGIC_CMD=$MAGIC_CMD
17012
17013# Must we lock files when doing compilation?
17014need_locks=$lt_need_locks
17015
17016# Manifest tool.
17017MANIFEST_TOOL=$lt_MANIFEST_TOOL
17018
17019# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17020DSYMUTIL=$lt_DSYMUTIL
17021
17022# Tool to change global to local symbols on Mac OS X.
17023NMEDIT=$lt_NMEDIT
17024
17025# Tool to manipulate fat objects and archives on Mac OS X.
17026LIPO=$lt_LIPO
17027
17028# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17029OTOOL=$lt_OTOOL
17030
17031# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17032OTOOL64=$lt_OTOOL64
17033
17034# Old archive suffix (normally "a").
17035libext=$libext
17036
17037# Shared library suffix (normally ".so").
17038shrext_cmds=$lt_shrext_cmds
17039
17040# The commands to extract the exported symbol list from a shared archive.
17041extract_expsyms_cmds=$lt_extract_expsyms_cmds
17042
17043# Variables whose values should be saved in libtool wrapper scripts and
17044# restored at link time.
17045variables_saved_for_relink=$lt_variables_saved_for_relink
17046
17047# Do we need the "lib" prefix for modules?
17048need_lib_prefix=$need_lib_prefix
17049
17050# Do we need a version for libraries?
17051need_version=$need_version
17052
17053# Library versioning type.
17054version_type=$version_type
17055
17056# Shared library runtime path variable.
17057runpath_var=$runpath_var
17058
17059# Shared library path variable.
17060shlibpath_var=$shlibpath_var
17061
17062# Is shlibpath searched before the hard-coded library search path?
17063shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17064
17065# Format of library name prefix.
17066libname_spec=$lt_libname_spec
17067
17068# List of archive names.  First name is the real one, the rest are links.
17069# The last name is the one that the linker finds with -lNAME
17070library_names_spec=$lt_library_names_spec
17071
17072# The coded name of the library, if different from the real name.
17073soname_spec=$lt_soname_spec
17074
17075# Permission mode override for installation of shared libraries.
17076install_override_mode=$lt_install_override_mode
17077
17078# Command to use after installation of a shared archive.
17079postinstall_cmds=$lt_postinstall_cmds
17080
17081# Command to use after uninstallation of a shared archive.
17082postuninstall_cmds=$lt_postuninstall_cmds
17083
17084# Commands used to finish a libtool library installation in a directory.
17085finish_cmds=$lt_finish_cmds
17086
17087# As "finish_cmds", except a single script fragment to be evaled but
17088# not shown.
17089finish_eval=$lt_finish_eval
17090
17091# Whether we should hardcode library paths into libraries.
17092hardcode_into_libs=$hardcode_into_libs
17093
17094# Compile-time system search path for libraries.
17095sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17096
17097# Run-time system search path for libraries.
17098sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17099
17100# Whether dlopen is supported.
17101dlopen_support=$enable_dlopen
17102
17103# Whether dlopen of programs is supported.
17104dlopen_self=$enable_dlopen_self
17105
17106# Whether dlopen of statically linked programs is supported.
17107dlopen_self_static=$enable_dlopen_self_static
17108
17109# Commands to strip libraries.
17110old_striplib=$lt_old_striplib
17111striplib=$lt_striplib
17112
17113
17114# The linker used to build libraries.
17115LD=$lt_LD
17116
17117# How to create reloadable object files.
17118reload_flag=$lt_reload_flag
17119reload_cmds=$lt_reload_cmds
17120
17121# Commands used to build an old-style archive.
17122old_archive_cmds=$lt_old_archive_cmds
17123
17124# A language specific compiler.
17125CC=$lt_compiler
17126
17127# Is the compiler the GNU compiler?
17128with_gcc=$GCC
17129
17130# Compiler flag to turn off builtin functions.
17131no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17132
17133# Additional compiler flags for building library objects.
17134pic_flag=$lt_lt_prog_compiler_pic
17135
17136# How to pass a linker flag through the compiler.
17137wl=$lt_lt_prog_compiler_wl
17138
17139# Compiler flag to prevent dynamic linking.
17140link_static_flag=$lt_lt_prog_compiler_static
17141
17142# Does compiler simultaneously support -c and -o options?
17143compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17144
17145# Whether or not to add -lc for building shared libraries.
17146build_libtool_need_lc=$archive_cmds_need_lc
17147
17148# Whether or not to disallow shared libs when runtime libs are static.
17149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17150
17151# Compiler flag to allow reflexive dlopens.
17152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17153
17154# Compiler flag to generate shared objects directly from archives.
17155whole_archive_flag_spec=$lt_whole_archive_flag_spec
17156
17157# Whether the compiler copes with passing no objects directly.
17158compiler_needs_object=$lt_compiler_needs_object
17159
17160# Create an old-style archive from a shared archive.
17161old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17162
17163# Create a temporary old-style archive to link instead of a shared archive.
17164old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17165
17166# Commands used to build a shared archive.
17167archive_cmds=$lt_archive_cmds
17168archive_expsym_cmds=$lt_archive_expsym_cmds
17169
17170# Commands used to build a loadable module if different from building
17171# a shared archive.
17172module_cmds=$lt_module_cmds
17173module_expsym_cmds=$lt_module_expsym_cmds
17174
17175# Whether we are building with GNU ld or not.
17176with_gnu_ld=$lt_with_gnu_ld
17177
17178# Flag that allows shared libraries with undefined symbols to be built.
17179allow_undefined_flag=$lt_allow_undefined_flag
17180
17181# Flag that enforces no undefined symbols.
17182no_undefined_flag=$lt_no_undefined_flag
17183
17184# Flag to hardcode \$libdir into a binary during linking.
17185# This must work even if \$libdir does not exist
17186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17187
17188# If ld is used when linking, flag to hardcode \$libdir into a binary
17189# during linking.  This must work even if \$libdir does not exist.
17190hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17191
17192# Whether we need a single "-rpath" flag with a separated argument.
17193hardcode_libdir_separator=$lt_hardcode_libdir_separator
17194
17195# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17196# DIR into the resulting binary.
17197hardcode_direct=$hardcode_direct
17198
17199# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17200# DIR into the resulting binary and the resulting library dependency is
17201# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17202# library is relocated.
17203hardcode_direct_absolute=$hardcode_direct_absolute
17204
17205# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17206# into the resulting binary.
17207hardcode_minus_L=$hardcode_minus_L
17208
17209# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17210# into the resulting binary.
17211hardcode_shlibpath_var=$hardcode_shlibpath_var
17212
17213# Set to "yes" if building a shared library automatically hardcodes DIR
17214# into the library and all subsequent libraries and executables linked
17215# against it.
17216hardcode_automatic=$hardcode_automatic
17217
17218# Set to yes if linker adds runtime paths of dependent libraries
17219# to runtime path list.
17220inherit_rpath=$inherit_rpath
17221
17222# Whether libtool must link a program against all its dependency libraries.
17223link_all_deplibs=$link_all_deplibs
17224
17225# Set to "yes" if exported symbols are required.
17226always_export_symbols=$always_export_symbols
17227
17228# The commands to list exported symbols.
17229export_symbols_cmds=$lt_export_symbols_cmds
17230
17231# Symbols that should not be listed in the preloaded symbols.
17232exclude_expsyms=$lt_exclude_expsyms
17233
17234# Symbols that must always be exported.
17235include_expsyms=$lt_include_expsyms
17236
17237# Commands necessary for linking programs (against libraries) with templates.
17238prelink_cmds=$lt_prelink_cmds
17239
17240# Commands necessary for finishing linking programs.
17241postlink_cmds=$lt_postlink_cmds
17242
17243# Specify filename containing input files.
17244file_list_spec=$lt_file_list_spec
17245
17246# How to hardcode a shared library path into an executable.
17247hardcode_action=$hardcode_action
17248
17249# ### END LIBTOOL CONFIG
17250
17251_LT_EOF
17252
17253  case $host_os in
17254  aix3*)
17255    cat <<\_LT_EOF >> "$cfgfile"
17256# AIX sometimes has problems with the GCC collect2 program.  For some
17257# reason, if we set the COLLECT_NAMES environment variable, the problems
17258# vanish in a puff of smoke.
17259if test "X${COLLECT_NAMES+set}" != Xset; then
17260  COLLECT_NAMES=
17261  export COLLECT_NAMES
17262fi
17263_LT_EOF
17264    ;;
17265  esac
17266
17267
17268ltmain="$ac_aux_dir/ltmain.sh"
17269
17270
17271  # We use sed instead of cat because bash on DJGPP gets confused if
17272  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17273  # text mode, it properly converts lines to CR/LF.  This bash problem
17274  # is reportedly fixed, but why not run on old versions too?
17275  sed '$q' "$ltmain" >> "$cfgfile" \
17276     || (rm -f "$cfgfile"; exit 1)
17277
17278  if test x"$xsi_shell" = xyes; then
17279  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17280func_dirname ()\
17281{\
17282\    case ${1} in\
17283\      */*) func_dirname_result="${1%/*}${2}" ;;\
17284\      *  ) func_dirname_result="${3}" ;;\
17285\    esac\
17286} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17287  && mv -f "$cfgfile.tmp" "$cfgfile" \
17288    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17289test 0 -eq $? || _lt_function_replace_fail=:
17290
17291
17292  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17293func_basename ()\
17294{\
17295\    func_basename_result="${1##*/}"\
17296} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17297  && mv -f "$cfgfile.tmp" "$cfgfile" \
17298    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17299test 0 -eq $? || _lt_function_replace_fail=:
17300
17301
17302  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17303func_dirname_and_basename ()\
17304{\
17305\    case ${1} in\
17306\      */*) func_dirname_result="${1%/*}${2}" ;;\
17307\      *  ) func_dirname_result="${3}" ;;\
17308\    esac\
17309\    func_basename_result="${1##*/}"\
17310} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17311  && mv -f "$cfgfile.tmp" "$cfgfile" \
17312    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17313test 0 -eq $? || _lt_function_replace_fail=:
17314
17315
17316  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17317func_stripname ()\
17318{\
17319\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17320\    # positional parameters, so assign one to ordinary parameter first.\
17321\    func_stripname_result=${3}\
17322\    func_stripname_result=${func_stripname_result#"${1}"}\
17323\    func_stripname_result=${func_stripname_result%"${2}"}\
17324} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17325  && mv -f "$cfgfile.tmp" "$cfgfile" \
17326    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17327test 0 -eq $? || _lt_function_replace_fail=:
17328
17329
17330  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17331func_split_long_opt ()\
17332{\
17333\    func_split_long_opt_name=${1%%=*}\
17334\    func_split_long_opt_arg=${1#*=}\
17335} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17336  && mv -f "$cfgfile.tmp" "$cfgfile" \
17337    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17338test 0 -eq $? || _lt_function_replace_fail=:
17339
17340
17341  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17342func_split_short_opt ()\
17343{\
17344\    func_split_short_opt_arg=${1#??}\
17345\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17346} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17347  && mv -f "$cfgfile.tmp" "$cfgfile" \
17348    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17349test 0 -eq $? || _lt_function_replace_fail=:
17350
17351
17352  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17353func_lo2o ()\
17354{\
17355\    case ${1} in\
17356\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17357\      *)    func_lo2o_result=${1} ;;\
17358\    esac\
17359} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17360  && mv -f "$cfgfile.tmp" "$cfgfile" \
17361    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17362test 0 -eq $? || _lt_function_replace_fail=:
17363
17364
17365  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17366func_xform ()\
17367{\
17368    func_xform_result=${1%.*}.lo\
17369} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17370  && mv -f "$cfgfile.tmp" "$cfgfile" \
17371    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17372test 0 -eq $? || _lt_function_replace_fail=:
17373
17374
17375  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17376func_arith ()\
17377{\
17378    func_arith_result=$(( $* ))\
17379} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17380  && mv -f "$cfgfile.tmp" "$cfgfile" \
17381    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17382test 0 -eq $? || _lt_function_replace_fail=:
17383
17384
17385  sed -e '/^func_len ()$/,/^} # func_len /c\
17386func_len ()\
17387{\
17388    func_len_result=${#1}\
17389} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17390  && mv -f "$cfgfile.tmp" "$cfgfile" \
17391    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17392test 0 -eq $? || _lt_function_replace_fail=:
17393
17394fi
17395
17396if test x"$lt_shell_append" = xyes; then
17397  sed -e '/^func_append ()$/,/^} # func_append /c\
17398func_append ()\
17399{\
17400    eval "${1}+=\\${2}"\
17401} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17402  && mv -f "$cfgfile.tmp" "$cfgfile" \
17403    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17404test 0 -eq $? || _lt_function_replace_fail=:
17405
17406
17407  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17408func_append_quoted ()\
17409{\
17410\    func_quote_for_eval "${2}"\
17411\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17412} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17413  && mv -f "$cfgfile.tmp" "$cfgfile" \
17414    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17415test 0 -eq $? || _lt_function_replace_fail=:
17416
17417
17418  # Save a `func_append' function call where possible by direct use of '+='
17419  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17420    && mv -f "$cfgfile.tmp" "$cfgfile" \
17421      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17422  test 0 -eq $? || _lt_function_replace_fail=:
17423else
17424  # Save a `func_append' function call even when '+=' is not available
17425  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17426    && mv -f "$cfgfile.tmp" "$cfgfile" \
17427      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17428  test 0 -eq $? || _lt_function_replace_fail=:
17429fi
17430
17431if test x"$_lt_function_replace_fail" = x":"; then
17432  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17433$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17434fi
17435
17436
17437   mv -f "$cfgfile" "$ofile" ||
17438    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17439  chmod +x "$ofile"
17440
17441 ;;
17442
17443  esac
17444done # for ac_tag
17445
17446
17447as_fn_exit 0
17448_ACEOF
17449ac_clean_files=$ac_clean_files_save
17450
17451test $ac_write_fail = 0 ||
17452  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17453
17454
17455# configure is writing to config.log, and then calls config.status.
17456# config.status does its own redirection, appending to config.log.
17457# Unfortunately, on DOS this fails, as config.log is still kept open
17458# by configure, so config.status won't be able to write to it; its
17459# output is simply discarded.  So we exec the FD to /dev/null,
17460# effectively closing config.log, so it can be properly (re)opened and
17461# appended to by config.status.  When coming back to configure, we
17462# need to make the FD available again.
17463if test "$no_create" != yes; then
17464  ac_cs_success=:
17465  ac_config_status_args=
17466  test "$silent" = yes &&
17467    ac_config_status_args="$ac_config_status_args --quiet"
17468  exec 5>/dev/null
17469  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17470  exec 5>>config.log
17471  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17472  # would make configure fail if this is the last instruction.
17473  $ac_cs_success || as_fn_exit 1
17474fi
17475if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17476  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17477$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17478fi
17479
17480