• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libevent 2.1.12-stable.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='libevent'
589PACKAGE_TARNAME='libevent'
590PACKAGE_VERSION='2.1.12-stable'
591PACKAGE_STRING='libevent 2.1.12-stable'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="event.c"
596ac_default_prefix=/usr/local
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636ENABLE_DOXYGEN_MAN_FALSE
637ENABLE_DOXYGEN_MAN_TRUE
638ENABLE_DOXYGEN_FALSE
639ENABLE_DOXYGEN_TRUE
640DX_RULES
641PAPER_SIZE
642DOXYGEN_PAPER_SIZE
643GENERATE_LATEX
644DX_PDFLATEX
645DX_FLAG_pdf
646DX_EGREP
647DX_DVIPS
648DX_MAKEINDEX
649DX_LATEX
650DX_FLAG_ps
651DX_FLAG_html
652GENERATE_CHI
653DX_FLAG_chi
654GENERATE_HTMLHELP
655GENERATE_HTML
656HHC_PATH
657DX_HHC
658DX_FLAG_chm
659GENERATE_XML
660DX_FLAG_xml
661GENERATE_RTF
662DX_FLAG_rtf
663GENERATE_MAN
664DX_FLAG_man
665DOT_PATH
666HAVE_DOT
667DX_DOT
668DX_FLAG_dot
669PERL_PATH
670DX_PERL
671DX_DOXYGEN
672DX_FLAG_doc
673PROJECT
674SRCDIR
675DX_ENV
676DX_DOCDIR
677DX_CONFIG
678DX_PROJECT
679INSTALL_LIBEVENT_FALSE
680INSTALL_LIBEVENT_TRUE
681LIBEVENT_GC_SECTIONS
682PTHREADS_FALSE
683PTHREADS_TRUE
684THREADS_FALSE
685THREADS_TRUE
686PTHREAD_CFLAGS
687PTHREAD_LIBS
688PTHREAD_CC
689acx_pthread_config
690SIGNAL_SUPPORT_FALSE
691SIGNAL_SUPPORT_TRUE
692EVPORT_BACKEND_FALSE
693EVPORT_BACKEND_TRUE
694EPOLL_BACKEND_FALSE
695EPOLL_BACKEND_TRUE
696LIBOBJS
697KQUEUE_BACKEND_FALSE
698KQUEUE_BACKEND_TRUE
699DEVPOLL_BACKEND_FALSE
700DEVPOLL_BACKEND_TRUE
701POLL_BACKEND_FALSE
702POLL_BACKEND_TRUE
703SELECT_BACKEND_FALSE
704SELECT_BACKEND_TRUE
705STRLCPY_IMPL_FALSE
706STRLCPY_IMPL_TRUE
707BUILD_WITH_NO_UNDEFINED_FALSE
708BUILD_WITH_NO_UNDEFINED_TRUE
709BUILD_MIDIPIX_FALSE
710BUILD_MIDIPIX_TRUE
711BUILD_CYGWIN_FALSE
712BUILD_CYGWIN_TRUE
713BUILD_WIN32_FALSE
714BUILD_WIN32_TRUE
715OPENSSL_FALSE
716OPENSSL_TRUE
717OPENSSL_LIBS
718OPENSSL_INCS
719PKG_CONFIG
720OPENSSL_LIBADD
721EV_LIB_GDI
722EV_LIB_WS32
723ZLIB_REGRESS_FALSE
724ZLIB_REGRESS_TRUE
725ZLIB_LIBS
726BUILD_REGRESS_FALSE
727BUILD_REGRESS_TRUE
728BUILD_SAMPLES_FALSE
729BUILD_SAMPLES_TRUE
730LIBTOOL_DEPS
731LT_SYS_LIBRARY_PATH
732OTOOL64
733OTOOL
734LIPO
735NMEDIT
736DSYMUTIL
737MANIFEST_TOOL
738RANLIB
739ac_ct_AR
740AR
741DLLTOOL
742OBJDUMP
743NM
744ac_ct_DUMPBIN
745DUMPBIN
746LD
747FGREP
748LIBTOOL
749SED
750LN_S
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759EGREP
760GREP
761CPP
762am__fastdepCC_FALSE
763am__fastdepCC_TRUE
764CCDEPMODE
765am__nodep
766AMDEPBACKSLASH
767AMDEP_FALSE
768AMDEP_TRUE
769am__include
770DEPDIR
771OBJEXT
772EXEEXT
773ac_ct_CC
774CPPFLAGS
775LDFLAGS
776CFLAGS
777CC
778AM_BACKSLASH
779AM_DEFAULT_VERBOSITY
780AM_DEFAULT_V
781AM_V
782am__untar
783am__tar
784AMTAR
785am__leading_dot
786SET_MAKE
787AWK
788mkdir_p
789MKDIR_P
790INSTALL_STRIP_PROGRAM
791STRIP
792install_sh
793MAKEINFO
794AUTOHEADER
795AUTOMAKE
796AUTOCONF
797ACLOCAL
798VERSION
799PACKAGE
800CYGPATH_W
801am__isrc
802INSTALL_DATA
803INSTALL_SCRIPT
804INSTALL_PROGRAM
805target_alias
806host_alias
807build_alias
808LIBS
809ECHO_T
810ECHO_N
811ECHO_C
812DEFS
813mandir
814localedir
815libdir
816psdir
817pdfdir
818dvidir
819htmldir
820infodir
821docdir
822oldincludedir
823includedir
824localstatedir
825sharedstatedir
826sysconfdir
827datadir
828datarootdir
829libexecdir
830sbindir
831bindir
832program_transform_name
833prefix
834exec_prefix
835PACKAGE_URL
836PACKAGE_BUGREPORT
837PACKAGE_STRING
838PACKAGE_VERSION
839PACKAGE_TARNAME
840PACKAGE_NAME
841PATH_SEPARATOR
842SHELL
843am__quote'
844ac_subst_files=''
845ac_user_opts='
846enable_option_checking
847enable_silent_rules
848enable_dependency_tracking
849enable_gcc_warnings
850enable_gcc_hardening
851enable_thread_support
852enable_malloc_replacement
853enable_openssl
854enable_debug_mode
855enable_libevent_install
856enable_libevent_regress
857enable_samples
858enable_function_sections
859enable_verbose_debug
860enable_clock_gettime
861enable_shared
862enable_static
863with_pic
864enable_fast_install
865with_aix_soname
866with_gnu_ld
867with_sysroot
868enable_libtool_lock
869enable_largefile
870enable_doxygen_doc
871enable_doxygen_dot
872enable_doxygen_man
873enable_doxygen_rtf
874enable_doxygen_xml
875enable_doxygen_chm
876enable_doxygen_chi
877enable_doxygen_html
878enable_doxygen_ps
879enable_doxygen_pdf
880'
881      ac_precious_vars='build_alias
882host_alias
883target_alias
884CC
885CFLAGS
886LDFLAGS
887LIBS
888CPPFLAGS
889CPP
890LT_SYS_LIBRARY_PATH
891DOXYGEN_PAPER_SIZE'
892
893
894# Initialize some variables set by options.
895ac_init_help=
896ac_init_version=false
897ac_unrecognized_opts=
898ac_unrecognized_sep=
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
921# (The list follows the same order as the GNU Coding Standards.)
922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
930includedir='${prefix}/include'
931oldincludedir='/usr/include'
932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
941
942ac_prev=
943ac_dashdash=
944for ac_option
945do
946  # If the previous option needs an argument, assign it.
947  if test -n "$ac_prev"; then
948    eval $ac_prev=\$ac_option
949    ac_prev=
950    continue
951  fi
952
953  case $ac_option in
954  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955  *=)   ac_optarg= ;;
956  *)    ac_optarg=yes ;;
957  esac
958
959  # Accept the important Cygnus configure options, so we can diagnose typos.
960
961  case $ac_dashdash$ac_option in
962  --)
963    ac_dashdash=yes ;;
964
965  -bindir | --bindir | --bindi | --bind | --bin | --bi)
966    ac_prev=bindir ;;
967  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968    bindir=$ac_optarg ;;
969
970  -build | --build | --buil | --bui | --bu)
971    ac_prev=build_alias ;;
972  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973    build_alias=$ac_optarg ;;
974
975  -cache-file | --cache-file | --cache-fil | --cache-fi \
976  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977    ac_prev=cache_file ;;
978  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980    cache_file=$ac_optarg ;;
981
982  --config-cache | -C)
983    cache_file=config.cache ;;
984
985  -datadir | --datadir | --datadi | --datad)
986    ac_prev=datadir ;;
987  -datadir=* | --datadir=* | --datadi=* | --datad=*)
988    datadir=$ac_optarg ;;
989
990  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991  | --dataroo | --dataro | --datar)
992    ac_prev=datarootdir ;;
993  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995    datarootdir=$ac_optarg ;;
996
997  -disable-* | --disable-*)
998    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999    # Reject names that are not valid shell variable names.
1000    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001      as_fn_error $? "invalid feature name: $ac_useropt"
1002    ac_useropt_orig=$ac_useropt
1003    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004    case $ac_user_opts in
1005      *"
1006"enable_$ac_useropt"
1007"*) ;;
1008      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009	 ac_unrecognized_sep=', ';;
1010    esac
1011    eval enable_$ac_useropt=no ;;
1012
1013  -docdir | --docdir | --docdi | --doc | --do)
1014    ac_prev=docdir ;;
1015  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016    docdir=$ac_optarg ;;
1017
1018  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019    ac_prev=dvidir ;;
1020  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021    dvidir=$ac_optarg ;;
1022
1023  -enable-* | --enable-*)
1024    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025    # Reject names that are not valid shell variable names.
1026    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027      as_fn_error $? "invalid feature name: $ac_useropt"
1028    ac_useropt_orig=$ac_useropt
1029    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030    case $ac_user_opts in
1031      *"
1032"enable_$ac_useropt"
1033"*) ;;
1034      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035	 ac_unrecognized_sep=', ';;
1036    esac
1037    eval enable_$ac_useropt=\$ac_optarg ;;
1038
1039  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041  | --exec | --exe | --ex)
1042    ac_prev=exec_prefix ;;
1043  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045  | --exec=* | --exe=* | --ex=*)
1046    exec_prefix=$ac_optarg ;;
1047
1048  -gas | --gas | --ga | --g)
1049    # Obsolete; use --with-gas.
1050    with_gas=yes ;;
1051
1052  -help | --help | --hel | --he | -h)
1053    ac_init_help=long ;;
1054  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055    ac_init_help=recursive ;;
1056  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057    ac_init_help=short ;;
1058
1059  -host | --host | --hos | --ho)
1060    ac_prev=host_alias ;;
1061  -host=* | --host=* | --hos=* | --ho=*)
1062    host_alias=$ac_optarg ;;
1063
1064  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065    ac_prev=htmldir ;;
1066  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067  | --ht=*)
1068    htmldir=$ac_optarg ;;
1069
1070  -includedir | --includedir | --includedi | --included | --include \
1071  | --includ | --inclu | --incl | --inc)
1072    ac_prev=includedir ;;
1073  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074  | --includ=* | --inclu=* | --incl=* | --inc=*)
1075    includedir=$ac_optarg ;;
1076
1077  -infodir | --infodir | --infodi | --infod | --info | --inf)
1078    ac_prev=infodir ;;
1079  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080    infodir=$ac_optarg ;;
1081
1082  -libdir | --libdir | --libdi | --libd)
1083    ac_prev=libdir ;;
1084  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085    libdir=$ac_optarg ;;
1086
1087  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088  | --libexe | --libex | --libe)
1089    ac_prev=libexecdir ;;
1090  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091  | --libexe=* | --libex=* | --libe=*)
1092    libexecdir=$ac_optarg ;;
1093
1094  -localedir | --localedir | --localedi | --localed | --locale)
1095    ac_prev=localedir ;;
1096  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097    localedir=$ac_optarg ;;
1098
1099  -localstatedir | --localstatedir | --localstatedi | --localstated \
1100  | --localstate | --localstat | --localsta | --localst | --locals)
1101    ac_prev=localstatedir ;;
1102  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104    localstatedir=$ac_optarg ;;
1105
1106  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107    ac_prev=mandir ;;
1108  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109    mandir=$ac_optarg ;;
1110
1111  -nfp | --nfp | --nf)
1112    # Obsolete; use --without-fp.
1113    with_fp=no ;;
1114
1115  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116  | --no-cr | --no-c | -n)
1117    no_create=yes ;;
1118
1119  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121    no_recursion=yes ;;
1122
1123  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125  | --oldin | --oldi | --old | --ol | --o)
1126    ac_prev=oldincludedir ;;
1127  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130    oldincludedir=$ac_optarg ;;
1131
1132  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133    ac_prev=prefix ;;
1134  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135    prefix=$ac_optarg ;;
1136
1137  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138  | --program-pre | --program-pr | --program-p)
1139    ac_prev=program_prefix ;;
1140  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142    program_prefix=$ac_optarg ;;
1143
1144  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145  | --program-suf | --program-su | --program-s)
1146    ac_prev=program_suffix ;;
1147  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149    program_suffix=$ac_optarg ;;
1150
1151  -program-transform-name | --program-transform-name \
1152  | --program-transform-nam | --program-transform-na \
1153  | --program-transform-n | --program-transform- \
1154  | --program-transform | --program-transfor \
1155  | --program-transfo | --program-transf \
1156  | --program-trans | --program-tran \
1157  | --progr-tra | --program-tr | --program-t)
1158    ac_prev=program_transform_name ;;
1159  -program-transform-name=* | --program-transform-name=* \
1160  | --program-transform-nam=* | --program-transform-na=* \
1161  | --program-transform-n=* | --program-transform-=* \
1162  | --program-transform=* | --program-transfor=* \
1163  | --program-transfo=* | --program-transf=* \
1164  | --program-trans=* | --program-tran=* \
1165  | --progr-tra=* | --program-tr=* | --program-t=*)
1166    program_transform_name=$ac_optarg ;;
1167
1168  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169    ac_prev=pdfdir ;;
1170  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171    pdfdir=$ac_optarg ;;
1172
1173  -psdir | --psdir | --psdi | --psd | --ps)
1174    ac_prev=psdir ;;
1175  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176    psdir=$ac_optarg ;;
1177
1178  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179  | -silent | --silent | --silen | --sile | --sil)
1180    silent=yes ;;
1181
1182  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183    ac_prev=sbindir ;;
1184  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185  | --sbi=* | --sb=*)
1186    sbindir=$ac_optarg ;;
1187
1188  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190  | --sharedst | --shareds | --shared | --share | --shar \
1191  | --sha | --sh)
1192    ac_prev=sharedstatedir ;;
1193  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196  | --sha=* | --sh=*)
1197    sharedstatedir=$ac_optarg ;;
1198
1199  -site | --site | --sit)
1200    ac_prev=site ;;
1201  -site=* | --site=* | --sit=*)
1202    site=$ac_optarg ;;
1203
1204  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205    ac_prev=srcdir ;;
1206  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207    srcdir=$ac_optarg ;;
1208
1209  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210  | --syscon | --sysco | --sysc | --sys | --sy)
1211    ac_prev=sysconfdir ;;
1212  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214    sysconfdir=$ac_optarg ;;
1215
1216  -target | --target | --targe | --targ | --tar | --ta | --t)
1217    ac_prev=target_alias ;;
1218  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219    target_alias=$ac_optarg ;;
1220
1221  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222    verbose=yes ;;
1223
1224  -version | --version | --versio | --versi | --vers | -V)
1225    ac_init_version=: ;;
1226
1227  -with-* | --with-*)
1228    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231      as_fn_error $? "invalid package name: $ac_useropt"
1232    ac_useropt_orig=$ac_useropt
1233    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234    case $ac_user_opts in
1235      *"
1236"with_$ac_useropt"
1237"*) ;;
1238      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239	 ac_unrecognized_sep=', ';;
1240    esac
1241    eval with_$ac_useropt=\$ac_optarg ;;
1242
1243  -without-* | --without-*)
1244    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245    # Reject names that are not valid shell variable names.
1246    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247      as_fn_error $? "invalid package name: $ac_useropt"
1248    ac_useropt_orig=$ac_useropt
1249    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250    case $ac_user_opts in
1251      *"
1252"with_$ac_useropt"
1253"*) ;;
1254      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255	 ac_unrecognized_sep=', ';;
1256    esac
1257    eval with_$ac_useropt=no ;;
1258
1259  --x)
1260    # Obsolete; use --with-x.
1261    with_x=yes ;;
1262
1263  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264  | --x-incl | --x-inc | --x-in | --x-i)
1265    ac_prev=x_includes ;;
1266  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268    x_includes=$ac_optarg ;;
1269
1270  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272    ac_prev=x_libraries ;;
1273  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275    x_libraries=$ac_optarg ;;
1276
1277  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278Try \`$0 --help' for more information"
1279    ;;
1280
1281  *=*)
1282    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283    # Reject names that are not valid shell variable names.
1284    case $ac_envvar in #(
1285      '' | [0-9]* | *[!_$as_cr_alnum]* )
1286      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287    esac
1288    eval $ac_envvar=\$ac_optarg
1289    export $ac_envvar ;;
1290
1291  *)
1292    # FIXME: should be removed in autoconf 3.0.
1293    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297    ;;
1298
1299  esac
1300done
1301
1302if test -n "$ac_prev"; then
1303  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304  as_fn_error $? "missing argument to $ac_option"
1305fi
1306
1307if test -n "$ac_unrecognized_opts"; then
1308  case $enable_option_checking in
1309    no) ;;
1310    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312  esac
1313fi
1314
1315# Check all directory arguments for consistency.
1316for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317		datadir sysconfdir sharedstatedir localstatedir includedir \
1318		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319		libdir localedir mandir
1320do
1321  eval ac_val=\$$ac_var
1322  # Remove trailing slashes.
1323  case $ac_val in
1324    */ )
1325      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326      eval $ac_var=\$ac_val;;
1327  esac
1328  # Be sure to have absolute directory names.
1329  case $ac_val in
1330    [\\/$]* | ?:[\\/]* )  continue;;
1331    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332  esac
1333  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1334done
1335
1336# There might be people who depend on the old broken behavior: `$host'
1337# used to hold the argument of --host etc.
1338# FIXME: To remove some day.
1339build=$build_alias
1340host=$host_alias
1341target=$target_alias
1342
1343# FIXME: To remove some day.
1344if test "x$host_alias" != x; then
1345  if test "x$build_alias" = x; then
1346    cross_compiling=maybe
1347  elif test "x$build_alias" != "x$host_alias"; then
1348    cross_compiling=yes
1349  fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
1356
1357
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361  as_fn_error $? "working directory cannot be determined"
1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363  as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368  ac_srcdir_defaulted=yes
1369  # Try the directory containing this script, then the parent directory.
1370  ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372	 X"$as_myself" : 'X\(//\)[^/]' \| \
1373	 X"$as_myself" : 'X\(//\)$' \| \
1374	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)[^/].*/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\/\)$/{
1385	    s//\1/
1386	    q
1387	  }
1388	  /^X\(\/\).*/{
1389	    s//\1/
1390	    q
1391	  }
1392	  s/.*/./; q'`
1393  srcdir=$ac_confdir
1394  if test ! -r "$srcdir/$ac_unique_file"; then
1395    srcdir=..
1396  fi
1397else
1398  ac_srcdir_defaulted=no
1399fi
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403fi
1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405ac_abs_confdir=`(
1406	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407	pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410  srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
1418for ac_var in $ac_precious_vars; do
1419  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_env_${ac_var}_value=\$${ac_var}
1421  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429  # Omit some internal or obsolete options to make the list less imposing.
1430  # This message is too long to be a string in the A/UX 3.1 sh.
1431  cat <<_ACEOF
1432\`configure' configures libevent 2.1.12-stable to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442  -h, --help              display this help and exit
1443      --help=short        display options specific to this package
1444      --help=recursive    display the short help of all the included packages
1445  -V, --version           display version information and exit
1446  -q, --quiet, --silent   do not print \`checking ...' messages
1447      --cache-file=FILE   cache test results in FILE [disabled]
1448  -C, --config-cache      alias for \`--cache-file=config.cache'
1449  -n, --no-create         do not create output files
1450      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452Installation directories:
1453  --prefix=PREFIX         install architecture-independent files in PREFIX
1454                          [$ac_default_prefix]
1455  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                          [PREFIX]
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
1466  --bindir=DIR            user executables [EPREFIX/bin]
1467  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468  --libexecdir=DIR        program executables [EPREFIX/libexec]
1469  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1470  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472  --libdir=DIR            object code libraries [EPREFIX/lib]
1473  --includedir=DIR        C header files [PREFIX/include]
1474  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477  --infodir=DIR           info documentation [DATAROOTDIR/info]
1478  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479  --mandir=DIR            man documentation [DATAROOTDIR/man]
1480  --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
1481  --htmldir=DIR           html documentation [DOCDIR]
1482  --dvidir=DIR            dvi documentation [DOCDIR]
1483  --pdfdir=DIR            pdf documentation [DOCDIR]
1484  --psdir=DIR             ps documentation [DOCDIR]
1485_ACEOF
1486
1487  cat <<\_ACEOF
1488
1489Program names:
1490  --program-prefix=PREFIX            prepend PREFIX to installed program names
1491  --program-suffix=SUFFIX            append SUFFIX to installed program names
1492  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494System types:
1495  --build=BUILD     configure for building on BUILD [guessed]
1496  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497_ACEOF
1498fi
1499
1500if test -n "$ac_init_help"; then
1501  case $ac_init_help in
1502     short | recursive ) echo "Configuration of libevent 2.1.12-stable:";;
1503   esac
1504  cat <<\_ACEOF
1505
1506Optional Features:
1507  --disable-option-checking  ignore unrecognized --enable/--with options
1508  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510  --enable-silent-rules   less verbose build output (undo: "make V=1")
1511  --disable-silent-rules  verbose build output (undo: "make V=0")
1512  --enable-dependency-tracking
1513                          do not reject slow dependency extractors
1514  --disable-dependency-tracking
1515                          speeds up one-time build
1516  --disable-gcc-warnings  disable verbose warnings with GCC
1517  --enable-gcc-hardening  enable compiler security checks
1518  --disable-thread-support
1519                          disable support for threading
1520  --disable-malloc-replacement
1521                          disable support for replacing the memory mgt
1522                          functions
1523  --disable-openssl       disable support for openssl encryption
1524  --disable-debug-mode    disable support for running in debug mode
1525  --disable-libevent-install, disable installation of libevent
1526
1527  --disable-libevent-regress, skip regress in make check
1528
1529  --disable-samples, skip building of sample programs
1530
1531  --enable-function-sections, make static library allow smaller binaries with --gc-sections
1532
1533  --enable-verbose-debug, verbose debug logging
1534
1535  --disable-clock-gettime do not use clock_gettime even if it is available
1536  --enable-shared[=PKGS]  build shared libraries [default=yes]
1537  --enable-static[=PKGS]  build static libraries [default=yes]
1538  --enable-fast-install[=PKGS]
1539                          optimize for fast installation [default=yes]
1540  --disable-libtool-lock  avoid locking (might break parallel builds)
1541  --disable-largefile     omit support for large files
1542  --enable-doxygen-doc    generate any doxygen documentation
1543  --enable-doxygen-dot    generate graphics for doxygen documentation
1544  --enable-doxygen-man    generate doxygen manual pages
1545  --enable-doxygen-rtf    generate doxygen RTF documentation
1546  --enable-doxygen-xml    generate doxygen XML documentation
1547  --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1548  --enable-doxygen-chi    generate doxygen separate compressed HTML help index
1549                          file
1550  --disable-doxygen-html  don't generate doxygen plain HTML documentation
1551  --enable-doxygen-ps     generate doxygen PostScript documentation
1552  --enable-doxygen-pdf    generate doxygen PDF documentation
1553
1554Optional Packages:
1555  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1558                          both]
1559  --with-aix-soname=aix|svr4|both
1560                          shared library versioning (aka "SONAME") variant to
1561                          provide on AIX, [default=aix].
1562  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1564                          compiler's sysroot if not specified).
1565
1566Some influential environment variables:
1567  CC          C compiler command
1568  CFLAGS      C compiler flags
1569  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570              nonstandard directory <lib dir>
1571  LIBS        libraries to pass to the linker, e.g. -l<library>
1572  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573              you have headers in a nonstandard directory <include dir>
1574  CPP         C preprocessor
1575  LT_SYS_LIBRARY_PATH
1576              User-defined run-time library search path.
1577  DOXYGEN_PAPER_SIZE
1578              a4wide (default), a4, letter, legal or executive
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to the package provider.
1584_ACEOF
1585ac_status=$?
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589  # If there are subdirs, report their specific --help.
1590  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591    test -d "$ac_dir" ||
1592      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593      continue
1594    ac_builddir=.
1595
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600  # A ".." for each directory in $ac_dir_suffix.
1601  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602  case $ac_top_builddir_sub in
1603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605  esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
1611
1612case $srcdir in
1613  .)  # We are building in place.
1614    ac_srcdir=.
1615    ac_top_srcdir=$ac_top_builddir_sub
1616    ac_abs_top_srcdir=$ac_pwd ;;
1617  [\\/]* | ?:[\\/]* )  # Absolute name.
1618    ac_srcdir=$srcdir$ac_dir_suffix;
1619    ac_top_srcdir=$srcdir
1620    ac_abs_top_srcdir=$srcdir ;;
1621  *) # Relative name.
1622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623    ac_top_srcdir=$ac_top_build_prefix$srcdir
1624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625esac
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628    cd "$ac_dir" || { ac_status=$?; continue; }
1629    # Check for guested configure.
1630    if test -f "$ac_srcdir/configure.gnu"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633    elif test -f "$ac_srcdir/configure"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure" --help=recursive
1636    else
1637      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638    fi || ac_status=$?
1639    cd "$ac_pwd" || { ac_status=$?; break; }
1640  done
1641fi
1642
1643test -n "$ac_init_help" && exit $ac_status
1644if $ac_init_version; then
1645  cat <<\_ACEOF
1646libevent configure 2.1.12-stable
1647generated by GNU Autoconf 2.69
1648
1649Copyright (C) 2012 Free Software Foundation, Inc.
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
1653  exit
1654fi
1655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext
1667  if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_compile") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest.$ac_objext; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691	ac_retval=1
1692fi
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_cpp LINENO
1699# ----------------------
1700# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_cpp ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  if { { ac_try="$ac_cpp conftest.$ac_ext"
1705case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712  ac_status=$?
1713  if test -s conftest.err; then
1714    grep -v '^ *+' conftest.err >conftest.er1
1715    cat conftest.er1 >&5
1716    mv -f conftest.er1 conftest.err
1717  fi
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } > conftest.i && {
1720	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721	 test ! -s conftest.err
1722       }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728    ac_retval=1
1729fi
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_cpp
1734
1735# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1738# the include files in INCLUDES and setting the cache variable VAR
1739# accordingly.
1740ac_fn_c_check_header_mongrel ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  if eval \${$3+:} false; then :
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval \${$3+:} false; then :
1747  $as_echo_n "(cached) " >&6
1748fi
1749eval ac_res=\$$3
1750	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751$as_echo "$ac_res" >&6; }
1752else
1753  # Is the header compilable?
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1755$as_echo_n "checking $2 usability... " >&6; }
1756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762  ac_header_compiler=yes
1763else
1764  ac_header_compiler=no
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1768$as_echo "$ac_header_compiler" >&6; }
1769
1770# Is the header present?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1772$as_echo_n "checking $2 presence... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h.  */
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_cpp "$LINENO"; then :
1778  ac_header_preproc=yes
1779else
1780  ac_header_preproc=no
1781fi
1782rm -f conftest.err conftest.i conftest.$ac_ext
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1784$as_echo "$ac_header_preproc" >&6; }
1785
1786# So?  What about this header?
1787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1788  yes:no: )
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793    ;;
1794  no:yes:* )
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1798$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1802$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805    ;;
1806esac
1807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808$as_echo_n "checking for $2... " >&6; }
1809if eval \${$3+:} false; then :
1810  $as_echo_n "(cached) " >&6
1811else
1812  eval "$3=\$ac_header_compiler"
1813fi
1814eval ac_res=\$$3
1815	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817fi
1818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820} # ac_fn_c_check_header_mongrel
1821
1822# ac_fn_c_try_run LINENO
1823# ----------------------
1824# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825# that executables *can* be run.
1826ac_fn_c_try_run ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  if { { ac_try="$ac_link"
1830case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_link") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840  { { case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_try") 2>&5
1847  ac_status=$?
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; }; }; then :
1850  ac_retval=0
1851else
1852  $as_echo "$as_me: program exited with status $ac_status" >&5
1853       $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856       ac_retval=$ac_status
1857fi
1858  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860  as_fn_set_status $ac_retval
1861
1862} # ac_fn_c_try_run
1863
1864# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865# -------------------------------------------------------
1866# Tests whether HEADER exists and can be compiled using the include files in
1867# INCLUDES, setting the cache variable VAR accordingly.
1868ac_fn_c_check_header_compile ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h.  */
1878$4
1879#include <$2>
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"; then :
1882  eval "$3=yes"
1883else
1884  eval "$3=no"
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887fi
1888eval ac_res=\$$3
1889	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890$as_echo "$ac_res" >&6; }
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_header_compile
1894
1895# ac_fn_c_try_link LINENO
1896# -----------------------
1897# Try to link conftest.$ac_ext, and return whether this succeeded.
1898ac_fn_c_try_link ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  rm -f conftest.$ac_objext conftest$ac_exeext
1902  if { { ac_try="$ac_link"
1903case "(($ac_try" in
1904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905  *) ac_try_echo=$ac_try;;
1906esac
1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908$as_echo "$ac_try_echo"; } >&5
1909  (eval "$ac_link") 2>conftest.err
1910  ac_status=$?
1911  if test -s conftest.err; then
1912    grep -v '^ *+' conftest.err >conftest.er1
1913    cat conftest.er1 >&5
1914    mv -f conftest.er1 conftest.err
1915  fi
1916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917  test $ac_status = 0; } && {
1918	 test -z "$ac_c_werror_flag" ||
1919	 test ! -s conftest.err
1920       } && test -s conftest$ac_exeext && {
1921	 test "$cross_compiling" = yes ||
1922	 test -x conftest$ac_exeext
1923       }; then :
1924  ac_retval=0
1925else
1926  $as_echo "$as_me: failed program was:" >&5
1927sed 's/^/| /' conftest.$ac_ext >&5
1928
1929	ac_retval=1
1930fi
1931  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933  # interfere with the next link command; also delete a directory that is
1934  # left behind by Apple's compiler.  We do this before executing the actions.
1935  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937  as_fn_set_status $ac_retval
1938
1939} # ac_fn_c_try_link
1940
1941# ac_fn_c_check_func LINENO FUNC VAR
1942# ----------------------------------
1943# Tests whether FUNC exists, setting the cache variable VAR accordingly
1944ac_fn_c_check_func ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
1949if eval \${$3+:} false; then :
1950  $as_echo_n "(cached) " >&6
1951else
1952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h.  */
1954/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1956#define $2 innocuous_$2
1957
1958/* System header to define __stub macros and hopefully few prototypes,
1959    which can conflict with char $2 (); below.
1960    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961    <limits.h> exists even on freestanding compilers.  */
1962
1963#ifdef __STDC__
1964# include <limits.h>
1965#else
1966# include <assert.h>
1967#endif
1968
1969#undef $2
1970
1971/* Override any GCC internal prototype to avoid an error.
1972   Use char because int might match the return type of a GCC
1973   builtin and then its argument prototype would still apply.  */
1974#ifdef __cplusplus
1975extern "C"
1976#endif
1977char $2 ();
1978/* The GNU C library defines this for functions which it implements
1979    to always fail with ENOSYS.  Some functions are actually named
1980    something starting with __ and the normal name is an alias.  */
1981#if defined __stub_$2 || defined __stub___$2
1982choke me
1983#endif
1984
1985int
1986main ()
1987{
1988return $2 ();
1989  ;
1990  return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_link "$LINENO"; then :
1994  eval "$3=yes"
1995else
1996  eval "$3=no"
1997fi
1998rm -f core conftest.err conftest.$ac_objext \
1999    conftest$ac_exeext conftest.$ac_ext
2000fi
2001eval ac_res=\$$3
2002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_c_check_func
2007
2008# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2009# ---------------------------------------------
2010# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2011# accordingly.
2012ac_fn_c_check_decl ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  as_decl_name=`echo $2|sed 's/ *(.*//'`
2016  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2018$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2019if eval \${$3+:} false; then :
2020  $as_echo_n "(cached) " >&6
2021else
2022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025int
2026main ()
2027{
2028#ifndef $as_decl_name
2029#ifdef __cplusplus
2030  (void) $as_decl_use;
2031#else
2032  (void) $as_decl_name;
2033#endif
2034#endif
2035
2036  ;
2037  return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041  eval "$3=yes"
2042else
2043  eval "$3=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047eval ac_res=\$$3
2048	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052} # ac_fn_c_check_decl
2053
2054# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055# -------------------------------------------
2056# Tests whether TYPE exists after having included INCLUDES, setting cache
2057# variable VAR accordingly.
2058ac_fn_c_check_type ()
2059{
2060  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062$as_echo_n "checking for $2... " >&6; }
2063if eval \${$3+:} false; then :
2064  $as_echo_n "(cached) " >&6
2065else
2066  eval "$3=no"
2067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h.  */
2069$4
2070int
2071main ()
2072{
2073if (sizeof ($2))
2074	 return 0;
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083int
2084main ()
2085{
2086if (sizeof (($2)))
2087	    return 0;
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093
2094else
2095  eval "$3=yes"
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101eval ac_res=\$$3
2102	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106} # ac_fn_c_check_type
2107
2108# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109# --------------------------------------------
2110# Tries to find the compile-time value of EXPR in a program that includes
2111# INCLUDES, setting VAR accordingly. Returns whether the value could be
2112# computed
2113ac_fn_c_compute_int ()
2114{
2115  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116  if test "$cross_compiling" = yes; then
2117    # Depending upon the size, compute the lo and hi bounds.
2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h.  */
2120$4
2121int
2122main ()
2123{
2124static int test_array [1 - 2 * !(($2) >= 0)];
2125test_array [0] = 0;
2126return test_array [0];
2127
2128  ;
2129  return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133  ac_lo=0 ac_mid=0
2134  while :; do
2135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142test_array [0] = 0;
2143return test_array [0];
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150  ac_hi=$ac_mid; break
2151else
2152  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153			if test $ac_lo -le $ac_mid; then
2154			  ac_lo= ac_hi=
2155			  break
2156			fi
2157			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160  done
2161else
2162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h.  */
2164$4
2165int
2166main ()
2167{
2168static int test_array [1 - 2 * !(($2) < 0)];
2169test_array [0] = 0;
2170return test_array [0];
2171
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177  ac_hi=-1 ac_mid=-1
2178  while :; do
2179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h.  */
2181$4
2182int
2183main ()
2184{
2185static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186test_array [0] = 0;
2187return test_array [0];
2188
2189  ;
2190  return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194  ac_lo=$ac_mid; break
2195else
2196  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197			if test $ac_mid -le $ac_hi; then
2198			  ac_lo= ac_hi=
2199			  break
2200			fi
2201			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204  done
2205else
2206  ac_lo= ac_hi=
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211# Binary search between lo and hi bounds.
2212while test "x$ac_lo" != "x$ac_hi"; do
2213  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h.  */
2216$4
2217int
2218main ()
2219{
2220static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221test_array [0] = 0;
2222return test_array [0];
2223
2224  ;
2225  return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229  ac_hi=$ac_mid
2230else
2231  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234done
2235case $ac_lo in #((
2236?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237'') ac_retval=1 ;;
2238esac
2239  else
2240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241/* end confdefs.h.  */
2242$4
2243static long int longval () { return $2; }
2244static unsigned long int ulongval () { return $2; }
2245#include <stdio.h>
2246#include <stdlib.h>
2247int
2248main ()
2249{
2250
2251  FILE *f = fopen ("conftest.val", "w");
2252  if (! f)
2253    return 1;
2254  if (($2) < 0)
2255    {
2256      long int i = longval ();
2257      if (i != ($2))
2258	return 1;
2259      fprintf (f, "%ld", i);
2260    }
2261  else
2262    {
2263      unsigned long int i = ulongval ();
2264      if (i != ($2))
2265	return 1;
2266      fprintf (f, "%lu", i);
2267    }
2268  /* Do not output a trailing newline, as this causes \r\n confusion
2269     on some platforms.  */
2270  return ferror (f) || fclose (f) != 0;
2271
2272  ;
2273  return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_run "$LINENO"; then :
2277  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278else
2279  ac_retval=1
2280fi
2281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282  conftest.$ac_objext conftest.beam conftest.$ac_ext
2283rm -f conftest.val
2284
2285  fi
2286  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287  as_fn_set_status $ac_retval
2288
2289} # ac_fn_c_compute_int
2290
2291# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2292# ----------------------------------------------------
2293# Tries to find if the field MEMBER exists in type AGGR, after including
2294# INCLUDES, setting cache variable VAR accordingly.
2295ac_fn_c_check_member ()
2296{
2297  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2299$as_echo_n "checking for $2.$3... " >&6; }
2300if eval \${$4+:} false; then :
2301  $as_echo_n "(cached) " >&6
2302else
2303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h.  */
2305$5
2306int
2307main ()
2308{
2309static $2 ac_aggr;
2310if (ac_aggr.$3)
2311return 0;
2312  ;
2313  return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317  eval "$4=yes"
2318else
2319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320/* end confdefs.h.  */
2321$5
2322int
2323main ()
2324{
2325static $2 ac_aggr;
2326if (sizeof ac_aggr.$3)
2327return 0;
2328  ;
2329  return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333  eval "$4=yes"
2334else
2335  eval "$4=no"
2336fi
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338fi
2339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340fi
2341eval ac_res=\$$4
2342	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343$as_echo "$ac_res" >&6; }
2344  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345
2346} # ac_fn_c_check_member
2347cat >config.log <<_ACEOF
2348This file contains any messages produced by compilers while
2349running configure, to aid debugging if configure makes a mistake.
2350
2351It was created by libevent $as_me 2.1.12-stable, which was
2352generated by GNU Autoconf 2.69.  Invocation command line was
2353
2354  $ $0 $@
2355
2356_ACEOF
2357exec 5>>config.log
2358{
2359cat <<_ASUNAME
2360## --------- ##
2361## Platform. ##
2362## --------- ##
2363
2364hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369
2370/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2372
2373/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2374/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2375/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2377/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2378/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2379/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2380
2381_ASUNAME
2382
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386  IFS=$as_save_IFS
2387  test -z "$as_dir" && as_dir=.
2388    $as_echo "PATH: $as_dir"
2389  done
2390IFS=$as_save_IFS
2391
2392} >&5
2393
2394cat >&5 <<_ACEOF
2395
2396
2397## ----------- ##
2398## Core tests. ##
2399## ----------- ##
2400
2401_ACEOF
2402
2403
2404# Keep a trace of the command line.
2405# Strip out --no-create and --no-recursion so they do not pile up.
2406# Strip out --silent because we don't want to record it for future runs.
2407# Also quote any args containing shell meta-characters.
2408# Make two passes to allow for proper duplicate-argument suppression.
2409ac_configure_args=
2410ac_configure_args0=
2411ac_configure_args1=
2412ac_must_keep_next=false
2413for ac_pass in 1 2
2414do
2415  for ac_arg
2416  do
2417    case $ac_arg in
2418    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420    | -silent | --silent | --silen | --sile | --sil)
2421      continue ;;
2422    *\'*)
2423      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424    esac
2425    case $ac_pass in
2426    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427    2)
2428      as_fn_append ac_configure_args1 " '$ac_arg'"
2429      if test $ac_must_keep_next = true; then
2430	ac_must_keep_next=false # Got value, back to normal.
2431      else
2432	case $ac_arg in
2433	  *=* | --config-cache | -C | -disable-* | --disable-* \
2434	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436	  | -with-* | --with-* | -without-* | --without-* | --x)
2437	    case "$ac_configure_args0 " in
2438	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439	    esac
2440	    ;;
2441	  -* ) ac_must_keep_next=true ;;
2442	esac
2443      fi
2444      as_fn_append ac_configure_args " '$ac_arg'"
2445      ;;
2446    esac
2447  done
2448done
2449{ ac_configure_args0=; unset ac_configure_args0;}
2450{ ac_configure_args1=; unset ac_configure_args1;}
2451
2452# When interrupted or exit'd, cleanup temporary files, and complete
2453# config.log.  We remove comments because anyway the quotes in there
2454# would cause problems or look ugly.
2455# WARNING: Use '\'' to represent an apostrophe within the trap.
2456# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457trap 'exit_status=$?
2458  # Save into config.log some information that might help in debugging.
2459  {
2460    echo
2461
2462    $as_echo "## ---------------- ##
2463## Cache variables. ##
2464## ---------------- ##"
2465    echo
2466    # The following way of writing the cache mishandles newlines in values,
2467(
2468  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469    eval ac_val=\$$ac_var
2470    case $ac_val in #(
2471    *${as_nl}*)
2472      case $ac_var in #(
2473      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475      esac
2476      case $ac_var in #(
2477      _ | IFS | as_nl) ;; #(
2478      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479      *) { eval $ac_var=; unset $ac_var;} ;;
2480      esac ;;
2481    esac
2482  done
2483  (set) 2>&1 |
2484    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485    *${as_nl}ac_space=\ *)
2486      sed -n \
2487	"s/'\''/'\''\\\\'\'''\''/g;
2488	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489      ;; #(
2490    *)
2491      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492      ;;
2493    esac |
2494    sort
2495)
2496    echo
2497
2498    $as_echo "## ----------------- ##
2499## Output variables. ##
2500## ----------------- ##"
2501    echo
2502    for ac_var in $ac_subst_vars
2503    do
2504      eval ac_val=\$$ac_var
2505      case $ac_val in
2506      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507      esac
2508      $as_echo "$ac_var='\''$ac_val'\''"
2509    done | sort
2510    echo
2511
2512    if test -n "$ac_subst_files"; then
2513      $as_echo "## ------------------- ##
2514## File substitutions. ##
2515## ------------------- ##"
2516      echo
2517      for ac_var in $ac_subst_files
2518      do
2519	eval ac_val=\$$ac_var
2520	case $ac_val in
2521	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522	esac
2523	$as_echo "$ac_var='\''$ac_val'\''"
2524      done | sort
2525      echo
2526    fi
2527
2528    if test -s confdefs.h; then
2529      $as_echo "## ----------- ##
2530## confdefs.h. ##
2531## ----------- ##"
2532      echo
2533      cat confdefs.h
2534      echo
2535    fi
2536    test "$ac_signal" != 0 &&
2537      $as_echo "$as_me: caught signal $ac_signal"
2538    $as_echo "$as_me: exit $exit_status"
2539  } >&5
2540  rm -f core *.core core.conftest.* &&
2541    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542    exit $exit_status
2543' 0
2544for ac_signal in 1 2 13 15; do
2545  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546done
2547ac_signal=0
2548
2549# confdefs.h avoids OS command line length limits that DEFS can exceed.
2550rm -f -r conftest* confdefs.h
2551
2552$as_echo "/* confdefs.h */" > confdefs.h
2553
2554# Predefined preprocessor variables.
2555
2556cat >>confdefs.h <<_ACEOF
2557#define PACKAGE_NAME "$PACKAGE_NAME"
2558_ACEOF
2559
2560cat >>confdefs.h <<_ACEOF
2561#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562_ACEOF
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_VERSION "$PACKAGE_VERSION"
2566_ACEOF
2567
2568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_STRING "$PACKAGE_STRING"
2570_ACEOF
2571
2572cat >>confdefs.h <<_ACEOF
2573#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574_ACEOF
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_URL "$PACKAGE_URL"
2578_ACEOF
2579
2580
2581# Let the site file select an alternate cache file if it wants to.
2582# Prefer an explicitly selected file to automatically selected ones.
2583ac_site_file1=NONE
2584ac_site_file2=NONE
2585if test -n "$CONFIG_SITE"; then
2586  # We do not want a PATH search for config.site.
2587  case $CONFIG_SITE in #((
2588    -*)  ac_site_file1=./$CONFIG_SITE;;
2589    */*) ac_site_file1=$CONFIG_SITE;;
2590    *)   ac_site_file1=./$CONFIG_SITE;;
2591  esac
2592elif test "x$prefix" != xNONE; then
2593  ac_site_file1=$prefix/share/config.site
2594  ac_site_file2=$prefix/etc/config.site
2595else
2596  ac_site_file1=$ac_default_prefix/share/config.site
2597  ac_site_file2=$ac_default_prefix/etc/config.site
2598fi
2599for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600do
2601  test "x$ac_site_file" = xNONE && continue
2602  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605    sed 's/^/| /' "$ac_site_file" >&5
2606    . "$ac_site_file" \
2607      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609as_fn_error $? "failed to load site script $ac_site_file
2610See \`config.log' for more details" "$LINENO" 5; }
2611  fi
2612done
2613
2614if test -r "$cache_file"; then
2615  # Some versions of bash will fail to source /dev/null (special files
2616  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2617  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619$as_echo "$as_me: loading cache $cache_file" >&6;}
2620    case $cache_file in
2621      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622      *)                      . "./$cache_file";;
2623    esac
2624  fi
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627$as_echo "$as_me: creating cache $cache_file" >&6;}
2628  >$cache_file
2629fi
2630
2631# Check that the precious variables saved in the cache have kept the same
2632# value.
2633ac_cache_corrupted=false
2634for ac_var in $ac_precious_vars; do
2635  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636  eval ac_new_set=\$ac_env_${ac_var}_set
2637  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638  eval ac_new_val=\$ac_env_${ac_var}_value
2639  case $ac_old_set,$ac_new_set in
2640    set,)
2641      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643      ac_cache_corrupted=: ;;
2644    ,set)
2645      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647      ac_cache_corrupted=: ;;
2648    ,);;
2649    *)
2650      if test "x$ac_old_val" != "x$ac_new_val"; then
2651	# differences in whitespace do not lead to failure.
2652	ac_old_val_w=`echo x $ac_old_val`
2653	ac_new_val_w=`echo x $ac_new_val`
2654	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657	  ac_cache_corrupted=:
2658	else
2659	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661	  eval $ac_var=\$ac_old_val
2662	fi
2663	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2664$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2665	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2666$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2667      fi;;
2668  esac
2669  # Pass precious variables to config.status.
2670  if test "$ac_new_set" = set; then
2671    case $ac_new_val in
2672    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673    *) ac_arg=$ac_var=$ac_new_val ;;
2674    esac
2675    case " $ac_configure_args " in
2676      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2677      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2678    esac
2679  fi
2680done
2681if $ac_cache_corrupted; then
2682  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2687fi
2688## -------------------- ##
2689## Main body of script. ##
2690## -------------------- ##
2691
2692ac_ext=c
2693ac_cpp='$CPP $CPPFLAGS'
2694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697
2698
2699
2700
2701
2702
2703ac_aux_dir=
2704for ac_dir in build-aux "$srcdir"/build-aux; do
2705  if test -f "$ac_dir/install-sh"; then
2706    ac_aux_dir=$ac_dir
2707    ac_install_sh="$ac_aux_dir/install-sh -c"
2708    break
2709  elif test -f "$ac_dir/install.sh"; then
2710    ac_aux_dir=$ac_dir
2711    ac_install_sh="$ac_aux_dir/install.sh -c"
2712    break
2713  elif test -f "$ac_dir/shtool"; then
2714    ac_aux_dir=$ac_dir
2715    ac_install_sh="$ac_aux_dir/shtool install -c"
2716    break
2717  fi
2718done
2719if test -z "$ac_aux_dir"; then
2720  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2721fi
2722
2723# These three variables are undocumented and unsupported,
2724# and are intended to be withdrawn in a future Autoconf release.
2725# They can cause serious problems if a builder's source tree is in a directory
2726# whose full name contains unusual characters.
2727ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2728ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2729ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2730
2731
2732am__api_version='1.16'
2733
2734# Find a good install program.  We prefer a C program (faster),
2735# so one script is as good as another.  But avoid the broken or
2736# incompatible versions:
2737# SysV /etc/install, /usr/sbin/install
2738# SunOS /usr/etc/install
2739# IRIX /sbin/install
2740# AIX /bin/install
2741# AmigaOS /C/install, which installs bootblocks on floppy discs
2742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2745# OS/2's system install, which has a completely different semantic
2746# ./install, which can be erroneously created by make from ./install.sh.
2747# Reject install programs that cannot install multiple files.
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2749$as_echo_n "checking for a BSD-compatible install... " >&6; }
2750if test -z "$INSTALL"; then
2751if ${ac_cv_path_install+:} false; then :
2752  $as_echo_n "(cached) " >&6
2753else
2754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757  IFS=$as_save_IFS
2758  test -z "$as_dir" && as_dir=.
2759    # Account for people who put trailing slashes in PATH elements.
2760case $as_dir/ in #((
2761  ./ | .// | /[cC]/* | \
2762  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2763  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2764  /usr/ucb/* ) ;;
2765  *)
2766    # OSF1 and SCO ODT 3.0 have their own names for install.
2767    # Don't use installbsd from OSF since it installs stuff as root
2768    # by default.
2769    for ac_prog in ginstall scoinst install; do
2770      for ac_exec_ext in '' $ac_executable_extensions; do
2771	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2772	  if test $ac_prog = install &&
2773	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2774	    # AIX install.  It has an incompatible calling convention.
2775	    :
2776	  elif test $ac_prog = install &&
2777	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778	    # program-specific install script used by HP pwplus--don't use.
2779	    :
2780	  else
2781	    rm -rf conftest.one conftest.two conftest.dir
2782	    echo one > conftest.one
2783	    echo two > conftest.two
2784	    mkdir conftest.dir
2785	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2786	      test -s conftest.one && test -s conftest.two &&
2787	      test -s conftest.dir/conftest.one &&
2788	      test -s conftest.dir/conftest.two
2789	    then
2790	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2791	      break 3
2792	    fi
2793	  fi
2794	fi
2795      done
2796    done
2797    ;;
2798esac
2799
2800  done
2801IFS=$as_save_IFS
2802
2803rm -rf conftest.one conftest.two conftest.dir
2804
2805fi
2806  if test "${ac_cv_path_install+set}" = set; then
2807    INSTALL=$ac_cv_path_install
2808  else
2809    # As a last resort, use the slow shell script.  Don't cache a
2810    # value for INSTALL within a source directory, because that will
2811    # break other packages using the cache if that directory is
2812    # removed, or if the value is a relative name.
2813    INSTALL=$ac_install_sh
2814  fi
2815fi
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2817$as_echo "$INSTALL" >&6; }
2818
2819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2820# It thinks the first close brace ends the variable substitution.
2821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2822
2823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2824
2825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2826
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2828$as_echo_n "checking whether build environment is sane... " >&6; }
2829# Reject unsafe characters in $srcdir or the absolute working directory
2830# name.  Accept space and tab only in the latter.
2831am_lf='
2832'
2833case `pwd` in
2834  *[\\\"\#\$\&\'\`$am_lf]*)
2835    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2836esac
2837case $srcdir in
2838  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2839    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2840esac
2841
2842# Do 'set' in a subshell so we don't clobber the current shell's
2843# arguments.  Must try -L first in case configure is actually a
2844# symlink; some systems play weird games with the mod time of symlinks
2845# (eg FreeBSD returns the mod time of the symlink's containing
2846# directory).
2847if (
2848   am_has_slept=no
2849   for am_try in 1 2; do
2850     echo "timestamp, slept: $am_has_slept" > conftest.file
2851     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2852     if test "$*" = "X"; then
2853	# -L didn't work.
2854	set X `ls -t "$srcdir/configure" conftest.file`
2855     fi
2856     if test "$*" != "X $srcdir/configure conftest.file" \
2857	&& test "$*" != "X conftest.file $srcdir/configure"; then
2858
2859	# If neither matched, then we have a broken ls.  This can happen
2860	# if, for instance, CONFIG_SHELL is bash and it inherits a
2861	# broken ls alias from the environment.  This has actually
2862	# happened.  Such a system could not be considered "sane".
2863	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2864  alias in your environment" "$LINENO" 5
2865     fi
2866     if test "$2" = conftest.file || test $am_try -eq 2; then
2867       break
2868     fi
2869     # Just in case.
2870     sleep 1
2871     am_has_slept=yes
2872   done
2873   test "$2" = conftest.file
2874   )
2875then
2876   # Ok.
2877   :
2878else
2879   as_fn_error $? "newly created file is older than distributed files!
2880Check your system clock" "$LINENO" 5
2881fi
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883$as_echo "yes" >&6; }
2884# If we didn't sleep, we still need to ensure time stamps of config.status and
2885# generated files are strictly newer.
2886am_sleep_pid=
2887if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2888  ( sleep 1 ) &
2889  am_sleep_pid=$!
2890fi
2891
2892rm -f conftest.file
2893
2894test "$program_prefix" != NONE &&
2895  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2896# Use a double $ so make ignores it.
2897test "$program_suffix" != NONE &&
2898  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2899# Double any \ or $.
2900# By default was `s,x,x', remove it if useless.
2901ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2902program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2903
2904# Expand $ac_aux_dir to an absolute path.
2905am_aux_dir=`cd "$ac_aux_dir" && pwd`
2906
2907if test x"${MISSING+set}" != xset; then
2908  case $am_aux_dir in
2909  *\ * | *\	*)
2910    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2911  *)
2912    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2913  esac
2914fi
2915# Use eval to expand $SHELL
2916if eval "$MISSING --is-lightweight"; then
2917  am_missing_run="$MISSING "
2918else
2919  am_missing_run=
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2921$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2922fi
2923
2924if test x"${install_sh+set}" != xset; then
2925  case $am_aux_dir in
2926  *\ * | *\	*)
2927    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2928  *)
2929    install_sh="\${SHELL} $am_aux_dir/install-sh"
2930  esac
2931fi
2932
2933# Installed binaries are usually stripped using 'strip' when the user
2934# run "make install-strip".  However 'strip' might not be the right
2935# tool to use in cross-compilation environments, therefore Automake
2936# will honor the 'STRIP' environment variable to overrule this program.
2937if test "$cross_compiling" != no; then
2938  if test -n "$ac_tool_prefix"; then
2939  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2940set dummy ${ac_tool_prefix}strip; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if ${ac_cv_prog_STRIP+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$STRIP"; then
2947  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966STRIP=$ac_cv_prog_STRIP
2967if test -n "$STRIP"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2969$as_echo "$STRIP" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976fi
2977if test -z "$ac_cv_prog_STRIP"; then
2978  ac_ct_STRIP=$STRIP
2979  # Extract the first word of "strip", so it can be a program name with args.
2980set dummy strip; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test -n "$ac_ct_STRIP"; then
2987  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996    ac_cv_prog_ac_ct_STRIP="strip"
2997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3007if test -n "$ac_ct_STRIP"; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3009$as_echo "$ac_ct_STRIP" >&6; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015  if test "x$ac_ct_STRIP" = x; then
3016    STRIP=":"
3017  else
3018    case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024    STRIP=$ac_ct_STRIP
3025  fi
3026else
3027  STRIP="$ac_cv_prog_STRIP"
3028fi
3029
3030fi
3031INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3032
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3034$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3035if test -z "$MKDIR_P"; then
3036  if ${ac_cv_path_mkdir+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3041do
3042  IFS=$as_save_IFS
3043  test -z "$as_dir" && as_dir=.
3044    for ac_prog in mkdir gmkdir; do
3045	 for ac_exec_ext in '' $ac_executable_extensions; do
3046	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3047	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3048	     'mkdir (GNU coreutils) '* | \
3049	     'mkdir (coreutils) '* | \
3050	     'mkdir (fileutils) '4.1*)
3051	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3052	       break 3;;
3053	   esac
3054	 done
3055       done
3056  done
3057IFS=$as_save_IFS
3058
3059fi
3060
3061  test -d ./--version && rmdir ./--version
3062  if test "${ac_cv_path_mkdir+set}" = set; then
3063    MKDIR_P="$ac_cv_path_mkdir -p"
3064  else
3065    # As a last resort, use the slow shell script.  Don't cache a
3066    # value for MKDIR_P within a source directory, because that will
3067    # break other packages using the cache if that directory is
3068    # removed, or if the value is a relative name.
3069    MKDIR_P="$ac_install_sh -d"
3070  fi
3071fi
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3073$as_echo "$MKDIR_P" >&6; }
3074
3075for ac_prog in gawk mawk nawk awk
3076do
3077  # Extract the first word of "$ac_prog", so it can be a program name with args.
3078set dummy $ac_prog; ac_word=$2
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if ${ac_cv_prog_AWK+:} false; then :
3082  $as_echo_n "(cached) " >&6
3083else
3084  if test -n "$AWK"; then
3085  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090  IFS=$as_save_IFS
3091  test -z "$as_dir" && as_dir=.
3092    for ac_exec_ext in '' $ac_executable_extensions; do
3093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094    ac_cv_prog_AWK="$ac_prog"
3095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099  done
3100IFS=$as_save_IFS
3101
3102fi
3103fi
3104AWK=$ac_cv_prog_AWK
3105if test -n "$AWK"; then
3106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3107$as_echo "$AWK" >&6; }
3108else
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110$as_echo "no" >&6; }
3111fi
3112
3113
3114  test -n "$AWK" && break
3115done
3116
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3118$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3119set x ${MAKE-make}
3120ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3121if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  cat >conftest.make <<\_ACEOF
3125SHELL = /bin/sh
3126all:
3127	@echo '@@@%%%=$(MAKE)=@@@%%%'
3128_ACEOF
3129# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3130case `${MAKE-make} -f conftest.make 2>/dev/null` in
3131  *@@@%%%=?*=@@@%%%*)
3132    eval ac_cv_prog_make_${ac_make}_set=yes;;
3133  *)
3134    eval ac_cv_prog_make_${ac_make}_set=no;;
3135esac
3136rm -f conftest.make
3137fi
3138if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140$as_echo "yes" >&6; }
3141  SET_MAKE=
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145  SET_MAKE="MAKE=${MAKE-make}"
3146fi
3147
3148rm -rf .tst 2>/dev/null
3149mkdir .tst 2>/dev/null
3150if test -d .tst; then
3151  am__leading_dot=.
3152else
3153  am__leading_dot=_
3154fi
3155rmdir .tst 2>/dev/null
3156
3157# Check whether --enable-silent-rules was given.
3158if test "${enable_silent_rules+set}" = set; then :
3159  enableval=$enable_silent_rules;
3160fi
3161
3162case $enable_silent_rules in # (((
3163  yes) AM_DEFAULT_VERBOSITY=0;;
3164   no) AM_DEFAULT_VERBOSITY=1;;
3165    *) AM_DEFAULT_VERBOSITY=1;;
3166esac
3167am_make=${MAKE-make}
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3169$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3170if ${am_cv_make_support_nested_variables+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  if $as_echo 'TRUE=$(BAR$(V))
3174BAR0=false
3175BAR1=true
3176V=1
3177am__doit:
3178	@$(TRUE)
3179.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3180  am_cv_make_support_nested_variables=yes
3181else
3182  am_cv_make_support_nested_variables=no
3183fi
3184fi
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3186$as_echo "$am_cv_make_support_nested_variables" >&6; }
3187if test $am_cv_make_support_nested_variables = yes; then
3188    AM_V='$(V)'
3189  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3190else
3191  AM_V=$AM_DEFAULT_VERBOSITY
3192  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3193fi
3194AM_BACKSLASH='\'
3195
3196if test "`cd $srcdir && pwd`" != "`pwd`"; then
3197  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3198  # is not polluted with repeated "-I."
3199  am__isrc=' -I$(srcdir)'
3200  # test to see if srcdir already configured
3201  if test -f $srcdir/config.status; then
3202    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3203  fi
3204fi
3205
3206# test whether we have cygpath
3207if test -z "$CYGPATH_W"; then
3208  if (cygpath --version) >/dev/null 2>/dev/null; then
3209    CYGPATH_W='cygpath -w'
3210  else
3211    CYGPATH_W=echo
3212  fi
3213fi
3214
3215
3216# Define the identity of the package.
3217 PACKAGE='libevent'
3218 VERSION='2.1.12-stable'
3219
3220
3221cat >>confdefs.h <<_ACEOF
3222#define PACKAGE "$PACKAGE"
3223_ACEOF
3224
3225
3226cat >>confdefs.h <<_ACEOF
3227#define VERSION "$VERSION"
3228_ACEOF
3229
3230# Some tools Automake needs.
3231
3232ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3233
3234
3235AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3236
3237
3238AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3239
3240
3241AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3242
3243
3244MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3245
3246# For better backward compatibility.  To be removed once Automake 1.9.x
3247# dies out for good.  For more background, see:
3248# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3249# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3250mkdir_p='$(MKDIR_P)'
3251
3252# We need awk for the "check" target (and possibly the TAP driver).  The
3253# system "awk" is bad on some platforms.
3254# Always define AMTAR for backward compatibility.  Yes, it's still used
3255# in the wild :-(  We should find a proper way to deprecate it ...
3256AMTAR='$${TAR-tar}'
3257
3258
3259# We'll loop over all known methods to create a tar archive until one works.
3260_am_tools='gnutar  pax cpio none'
3261
3262am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3263
3264
3265
3266
3267
3268
3269# POSIX will say in a future version that running "rm -f" with no argument
3270# is OK; and we want to be able to make that assumption in our Makefile
3271# recipes.  So use an aggressive probe to check that the usage we want is
3272# actually supported "in the wild" to an acceptable degree.
3273# See automake bug#10828.
3274# To make any issue more visible, cause the running configure to be aborted
3275# by default if the 'rm' program in use doesn't match our expectations; the
3276# user can still override this though.
3277if rm -f && rm -fr && rm -rf; then : OK; else
3278  cat >&2 <<'END'
3279Oops!
3280
3281Your 'rm' program seems unable to run without file operands specified
3282on the command line, even when the '-f' option is present.  This is contrary
3283to the behaviour of most rm programs out there, and not conforming with
3284the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3285
3286Please tell bug-automake@gnu.org about your system, including the value
3287of your $PATH and any error possibly output before this message.  This
3288can help us improve future automake versions.
3289
3290END
3291  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3292    echo 'Configuration will proceed anyway, since you have set the' >&2
3293    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3294    echo >&2
3295  else
3296    cat >&2 <<'END'
3297Aborting the configuration process, to ensure you take notice of the issue.
3298
3299You can download and install GNU coreutils to get an 'rm' implementation
3300that behaves properly: <https://www.gnu.org/software/coreutils/>.
3301
3302If you want to complete the configuration process using your problematic
3303'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3304to "yes", and re-run configure.
3305
3306END
3307    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3308  fi
3309fi
3310
3311# Check whether --enable-silent-rules was given.
3312if test "${enable_silent_rules+set}" = set; then :
3313  enableval=$enable_silent_rules;
3314fi
3315
3316case $enable_silent_rules in # (((
3317  yes) AM_DEFAULT_VERBOSITY=0;;
3318   no) AM_DEFAULT_VERBOSITY=1;;
3319    *) AM_DEFAULT_VERBOSITY=0;;
3320esac
3321am_make=${MAKE-make}
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3323$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3324if ${am_cv_make_support_nested_variables+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  if $as_echo 'TRUE=$(BAR$(V))
3328BAR0=false
3329BAR1=true
3330V=1
3331am__doit:
3332	@$(TRUE)
3333.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3334  am_cv_make_support_nested_variables=yes
3335else
3336  am_cv_make_support_nested_variables=no
3337fi
3338fi
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3340$as_echo "$am_cv_make_support_nested_variables" >&6; }
3341if test $am_cv_make_support_nested_variables = yes; then
3342    AM_V='$(V)'
3343  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3344else
3345  AM_V=$AM_DEFAULT_VERBOSITY
3346  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3347fi
3348AM_BACKSLASH='\'
3349
3350ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3351
3352
3353$as_echo "#define NUMERIC_VERSION 0x02010c00" >>confdefs.h
3354
3355
3356
3357
3358DEPDIR="${am__leading_dot}deps"
3359
3360ac_config_commands="$ac_config_commands depfiles"
3361
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3363$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3364cat > confinc.mk << 'END'
3365am__doit:
3366	@echo this is the am__doit target >confinc.out
3367.PHONY: am__doit
3368END
3369am__include="#"
3370am__quote=
3371# BSD make does it like this.
3372echo '.include "confinc.mk" # ignored' > confmf.BSD
3373# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3374echo 'include confinc.mk # ignored' > confmf.GNU
3375_am_result=no
3376for s in GNU BSD; do
3377  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3378   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }
3382  case $?:`cat confinc.out 2>/dev/null` in #(
3383  '0:this is the am__doit target') :
3384    case $s in #(
3385  BSD) :
3386    am__include='.include' am__quote='"' ;; #(
3387  *) :
3388    am__include='include' am__quote='' ;;
3389esac ;; #(
3390  *) :
3391     ;;
3392esac
3393  if test "$am__include" != "#"; then
3394    _am_result="yes ($s style)"
3395    break
3396  fi
3397done
3398rm -f confinc.* confmf.*
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3400$as_echo "${_am_result}" >&6; }
3401
3402# Check whether --enable-dependency-tracking was given.
3403if test "${enable_dependency_tracking+set}" = set; then :
3404  enableval=$enable_dependency_tracking;
3405fi
3406
3407if test "x$enable_dependency_tracking" != xno; then
3408  am_depcomp="$ac_aux_dir/depcomp"
3409  AMDEPBACKSLASH='\'
3410  am__nodep='_no'
3411fi
3412 if test "x$enable_dependency_tracking" != xno; then
3413  AMDEP_TRUE=
3414  AMDEP_FALSE='#'
3415else
3416  AMDEP_TRUE='#'
3417  AMDEP_FALSE=
3418fi
3419
3420
3421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426if test -n "$ac_tool_prefix"; then
3427  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3428set dummy ${ac_tool_prefix}gcc; ac_word=$2
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430$as_echo_n "checking for $ac_word... " >&6; }
3431if ${ac_cv_prog_CC+:} false; then :
3432  $as_echo_n "(cached) " >&6
3433else
3434  if test -n "$CC"; then
3435  ac_cv_prog_CC="$CC" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440  IFS=$as_save_IFS
3441  test -z "$as_dir" && as_dir=.
3442    for ac_exec_ext in '' $ac_executable_extensions; do
3443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446    break 2
3447  fi
3448done
3449  done
3450IFS=$as_save_IFS
3451
3452fi
3453fi
3454CC=$ac_cv_prog_CC
3455if test -n "$CC"; then
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457$as_echo "$CC" >&6; }
3458else
3459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460$as_echo "no" >&6; }
3461fi
3462
3463
3464fi
3465if test -z "$ac_cv_prog_CC"; then
3466  ac_ct_CC=$CC
3467  # Extract the first word of "gcc", so it can be a program name with args.
3468set dummy gcc; ac_word=$2
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470$as_echo_n "checking for $ac_word... " >&6; }
3471if ${ac_cv_prog_ac_ct_CC+:} false; then :
3472  $as_echo_n "(cached) " >&6
3473else
3474  if test -n "$ac_ct_CC"; then
3475  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480  IFS=$as_save_IFS
3481  test -z "$as_dir" && as_dir=.
3482    for ac_exec_ext in '' $ac_executable_extensions; do
3483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484    ac_cv_prog_ac_ct_CC="gcc"
3485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486    break 2
3487  fi
3488done
3489  done
3490IFS=$as_save_IFS
3491
3492fi
3493fi
3494ac_ct_CC=$ac_cv_prog_ac_ct_CC
3495if test -n "$ac_ct_CC"; then
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3497$as_echo "$ac_ct_CC" >&6; }
3498else
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500$as_echo "no" >&6; }
3501fi
3502
3503  if test "x$ac_ct_CC" = x; then
3504    CC=""
3505  else
3506    case $cross_compiling:$ac_tool_warned in
3507yes:)
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510ac_tool_warned=yes ;;
3511esac
3512    CC=$ac_ct_CC
3513  fi
3514else
3515  CC="$ac_cv_prog_CC"
3516fi
3517
3518if test -z "$CC"; then
3519          if test -n "$ac_tool_prefix"; then
3520    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3521set dummy ${ac_tool_prefix}cc; ac_word=$2
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523$as_echo_n "checking for $ac_word... " >&6; }
3524if ${ac_cv_prog_CC+:} false; then :
3525  $as_echo_n "(cached) " >&6
3526else
3527  if test -n "$CC"; then
3528  ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  test -z "$as_dir" && as_dir=.
3535    for ac_exec_ext in '' $ac_executable_extensions; do
3536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537    ac_cv_prog_CC="${ac_tool_prefix}cc"
3538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539    break 2
3540  fi
3541done
3542  done
3543IFS=$as_save_IFS
3544
3545fi
3546fi
3547CC=$ac_cv_prog_CC
3548if test -n "$CC"; then
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550$as_echo "$CC" >&6; }
3551else
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553$as_echo "no" >&6; }
3554fi
3555
3556
3557  fi
3558fi
3559if test -z "$CC"; then
3560  # Extract the first word of "cc", so it can be a program name with args.
3561set dummy cc; ac_word=$2
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563$as_echo_n "checking for $ac_word... " >&6; }
3564if ${ac_cv_prog_CC+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  if test -n "$CC"; then
3568  ac_cv_prog_CC="$CC" # Let the user override the test.
3569else
3570  ac_prog_rejected=no
3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH
3573do
3574  IFS=$as_save_IFS
3575  test -z "$as_dir" && as_dir=.
3576    for ac_exec_ext in '' $ac_executable_extensions; do
3577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3579       ac_prog_rejected=yes
3580       continue
3581     fi
3582    ac_cv_prog_CC="cc"
3583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584    break 2
3585  fi
3586done
3587  done
3588IFS=$as_save_IFS
3589
3590if test $ac_prog_rejected = yes; then
3591  # We found a bogon in the path, so make sure we never use it.
3592  set dummy $ac_cv_prog_CC
3593  shift
3594  if test $# != 0; then
3595    # We chose a different compiler from the bogus one.
3596    # However, it has the same basename, so the bogon will be chosen
3597    # first if we set CC to just the basename; use the full file name.
3598    shift
3599    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3600  fi
3601fi
3602fi
3603fi
3604CC=$ac_cv_prog_CC
3605if test -n "$CC"; then
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607$as_echo "$CC" >&6; }
3608else
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
3611fi
3612
3613
3614fi
3615if test -z "$CC"; then
3616  if test -n "$ac_tool_prefix"; then
3617  for ac_prog in cl.exe
3618  do
3619    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622$as_echo_n "checking for $ac_word... " >&6; }
3623if ${ac_cv_prog_CC+:} false; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  if test -n "$CC"; then
3627  ac_cv_prog_CC="$CC" # Let the user override the test.
3628else
3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH
3631do
3632  IFS=$as_save_IFS
3633  test -z "$as_dir" && as_dir=.
3634    for ac_exec_ext in '' $ac_executable_extensions; do
3635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638    break 2
3639  fi
3640done
3641  done
3642IFS=$as_save_IFS
3643
3644fi
3645fi
3646CC=$ac_cv_prog_CC
3647if test -n "$CC"; then
3648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649$as_echo "$CC" >&6; }
3650else
3651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652$as_echo "no" >&6; }
3653fi
3654
3655
3656    test -n "$CC" && break
3657  done
3658fi
3659if test -z "$CC"; then
3660  ac_ct_CC=$CC
3661  for ac_prog in cl.exe
3662do
3663  # Extract the first word of "$ac_prog", so it can be a program name with args.
3664set dummy $ac_prog; ac_word=$2
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666$as_echo_n "checking for $ac_word... " >&6; }
3667if ${ac_cv_prog_ac_ct_CC+:} false; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  if test -n "$ac_ct_CC"; then
3671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  test -z "$as_dir" && as_dir=.
3678    for ac_exec_ext in '' $ac_executable_extensions; do
3679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680    ac_cv_prog_ac_ct_CC="$ac_prog"
3681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682    break 2
3683  fi
3684done
3685  done
3686IFS=$as_save_IFS
3687
3688fi
3689fi
3690ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691if test -n "$ac_ct_CC"; then
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693$as_echo "$ac_ct_CC" >&6; }
3694else
3695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696$as_echo "no" >&6; }
3697fi
3698
3699
3700  test -n "$ac_ct_CC" && break
3701done
3702
3703  if test "x$ac_ct_CC" = x; then
3704    CC=""
3705  else
3706    case $cross_compiling:$ac_tool_warned in
3707yes:)
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710ac_tool_warned=yes ;;
3711esac
3712    CC=$ac_ct_CC
3713  fi
3714fi
3715
3716fi
3717
3718
3719test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721as_fn_error $? "no acceptable C compiler found in \$PATH
3722See \`config.log' for more details" "$LINENO" 5; }
3723
3724# Provide some information about the compiler.
3725$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3726set X $ac_compile
3727ac_compiler=$2
3728for ac_option in --version -v -V -qversion; do
3729  { { ac_try="$ac_compiler $ac_option >&5"
3730case "(($ac_try" in
3731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732  *) ac_try_echo=$ac_try;;
3733esac
3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735$as_echo "$ac_try_echo"; } >&5
3736  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3737  ac_status=$?
3738  if test -s conftest.err; then
3739    sed '10a\
3740... rest of stderr output deleted ...
3741         10q' conftest.err >conftest.er1
3742    cat conftest.er1 >&5
3743  fi
3744  rm -f conftest.er1 conftest.err
3745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746  test $ac_status = 0; }
3747done
3748
3749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751
3752int
3753main ()
3754{
3755
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760ac_clean_files_save=$ac_clean_files
3761ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3762# Try to create an executable without -o first, disregard a.out.
3763# It will help us diagnose broken compilers, and finding out an intuition
3764# of exeext.
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3766$as_echo_n "checking whether the C compiler works... " >&6; }
3767ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3768
3769# The possible output files:
3770ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3771
3772ac_rmfiles=
3773for ac_file in $ac_files
3774do
3775  case $ac_file in
3776    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3777    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3778  esac
3779done
3780rm -f $ac_rmfiles
3781
3782if { { ac_try="$ac_link_default"
3783case "(($ac_try" in
3784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785  *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789  (eval "$ac_link_default") 2>&5
3790  ac_status=$?
3791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792  test $ac_status = 0; }; then :
3793  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3794# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3795# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3796# so that the user can short-circuit this test for compilers unknown to
3797# Autoconf.
3798for ac_file in $ac_files ''
3799do
3800  test -f "$ac_file" || continue
3801  case $ac_file in
3802    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3803	;;
3804    [ab].out )
3805	# We found the default executable, but exeext='' is most
3806	# certainly right.
3807	break;;
3808    *.* )
3809	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3810	then :; else
3811	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812	fi
3813	# We set ac_cv_exeext here because the later test for it is not
3814	# safe: cross compilers may not add the suffix if given an `-o'
3815	# argument, so we may need to know it at that point already.
3816	# Even if this section looks crufty: it has the advantage of
3817	# actually working.
3818	break;;
3819    * )
3820	break;;
3821  esac
3822done
3823test "$ac_cv_exeext" = no && ac_cv_exeext=
3824
3825else
3826  ac_file=''
3827fi
3828if test -z "$ac_file"; then :
3829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831$as_echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836as_fn_error 77 "C compiler cannot create executables
3837See \`config.log' for more details" "$LINENO" 5; }
3838else
3839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3840$as_echo "yes" >&6; }
3841fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3843$as_echo_n "checking for C compiler default output file name... " >&6; }
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3845$as_echo "$ac_file" >&6; }
3846ac_exeext=$ac_cv_exeext
3847
3848rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3849ac_clean_files=$ac_clean_files_save
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3851$as_echo_n "checking for suffix of executables... " >&6; }
3852if { { ac_try="$ac_link"
3853case "(($ac_try" in
3854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855  *) ac_try_echo=$ac_try;;
3856esac
3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858$as_echo "$ac_try_echo"; } >&5
3859  (eval "$ac_link") 2>&5
3860  ac_status=$?
3861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862  test $ac_status = 0; }; then :
3863  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3864# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3865# work properly (i.e., refer to `conftest.exe'), while it won't with
3866# `rm'.
3867for ac_file in conftest.exe conftest conftest.*; do
3868  test -f "$ac_file" || continue
3869  case $ac_file in
3870    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3871    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3872	  break;;
3873    * ) break;;
3874  esac
3875done
3876else
3877  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3880See \`config.log' for more details" "$LINENO" 5; }
3881fi
3882rm -f conftest conftest$ac_cv_exeext
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3884$as_echo "$ac_cv_exeext" >&6; }
3885
3886rm -f conftest.$ac_ext
3887EXEEXT=$ac_cv_exeext
3888ac_exeext=$EXEEXT
3889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891#include <stdio.h>
3892int
3893main ()
3894{
3895FILE *f = fopen ("conftest.out", "w");
3896 return ferror (f) || fclose (f) != 0;
3897
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902ac_clean_files="$ac_clean_files conftest.out"
3903# Check that the compiler produces executables we can run.  If not, either
3904# the compiler is broken, or we cross compile.
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906$as_echo_n "checking whether we are cross compiling... " >&6; }
3907if test "$cross_compiling" != yes; then
3908  { { ac_try="$ac_link"
3909case "(($ac_try" in
3910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911  *) ac_try_echo=$ac_try;;
3912esac
3913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914$as_echo "$ac_try_echo"; } >&5
3915  (eval "$ac_link") 2>&5
3916  ac_status=$?
3917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918  test $ac_status = 0; }
3919  if { ac_try='./conftest$ac_cv_exeext'
3920  { { case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925$as_echo "$ac_try_echo"; } >&5
3926  (eval "$ac_try") 2>&5
3927  ac_status=$?
3928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929  test $ac_status = 0; }; }; then
3930    cross_compiling=no
3931  else
3932    if test "$cross_compiling" = maybe; then
3933	cross_compiling=yes
3934    else
3935	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937as_fn_error $? "cannot run C compiled programs.
3938If you meant to cross compile, use \`--host'.
3939See \`config.log' for more details" "$LINENO" 5; }
3940    fi
3941  fi
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944$as_echo "$cross_compiling" >&6; }
3945
3946rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3947ac_clean_files=$ac_clean_files_save
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949$as_echo_n "checking for suffix of object files... " >&6; }
3950if ${ac_cv_objext+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955
3956int
3957main ()
3958{
3959
3960  ;
3961  return 0;
3962}
3963_ACEOF
3964rm -f conftest.o conftest.obj
3965if { { ac_try="$ac_compile"
3966case "(($ac_try" in
3967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968  *) ac_try_echo=$ac_try;;
3969esac
3970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971$as_echo "$ac_try_echo"; } >&5
3972  (eval "$ac_compile") 2>&5
3973  ac_status=$?
3974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975  test $ac_status = 0; }; then :
3976  for ac_file in conftest.o conftest.obj conftest.*; do
3977  test -f "$ac_file" || continue;
3978  case $ac_file in
3979    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3981       break;;
3982  esac
3983done
3984else
3985  $as_echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990as_fn_error $? "cannot compute suffix of object files: cannot compile
3991See \`config.log' for more details" "$LINENO" 5; }
3992fi
3993rm -f conftest.$ac_cv_objext conftest.$ac_ext
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996$as_echo "$ac_cv_objext" >&6; }
3997OBJEXT=$ac_cv_objext
3998ac_objext=$OBJEXT
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001if ${ac_cv_c_compiler_gnu+:} false; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006
4007int
4008main ()
4009{
4010#ifndef __GNUC__
4011       choke me
4012#endif
4013
4014  ;
4015  return 0;
4016}
4017_ACEOF
4018if ac_fn_c_try_compile "$LINENO"; then :
4019  ac_compiler_gnu=yes
4020else
4021  ac_compiler_gnu=no
4022fi
4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025
4026fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029if test $ac_compiler_gnu = yes; then
4030  GCC=yes
4031else
4032  GCC=
4033fi
4034ac_test_CFLAGS=${CFLAGS+set}
4035ac_save_CFLAGS=$CFLAGS
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037$as_echo_n "checking whether $CC accepts -g... " >&6; }
4038if ${ac_cv_prog_cc_g+:} false; then :
4039  $as_echo_n "(cached) " >&6
4040else
4041  ac_save_c_werror_flag=$ac_c_werror_flag
4042   ac_c_werror_flag=yes
4043   ac_cv_prog_cc_g=no
4044   CFLAGS="-g"
4045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056if ac_fn_c_try_compile "$LINENO"; then :
4057  ac_cv_prog_cc_g=yes
4058else
4059  CFLAGS=""
4060      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h.  */
4062
4063int
4064main ()
4065{
4066
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071if ac_fn_c_try_compile "$LINENO"; then :
4072
4073else
4074  ac_c_werror_flag=$ac_save_c_werror_flag
4075	 CFLAGS="-g"
4076	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h.  */
4078
4079int
4080main ()
4081{
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087if ac_fn_c_try_compile "$LINENO"; then :
4088  ac_cv_prog_cc_g=yes
4089fi
4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093fi
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095   ac_c_werror_flag=$ac_save_c_werror_flag
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098$as_echo "$ac_cv_prog_cc_g" >&6; }
4099if test "$ac_test_CFLAGS" = set; then
4100  CFLAGS=$ac_save_CFLAGS
4101elif test $ac_cv_prog_cc_g = yes; then
4102  if test "$GCC" = yes; then
4103    CFLAGS="-g -O2"
4104  else
4105    CFLAGS="-g"
4106  fi
4107else
4108  if test "$GCC" = yes; then
4109    CFLAGS="-O2"
4110  else
4111    CFLAGS=
4112  fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116if ${ac_cv_prog_cc_c89+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119  ac_cv_prog_cc_c89=no
4120ac_save_CC=$CC
4121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <stdarg.h>
4124#include <stdio.h>
4125struct stat;
4126/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4127struct buf { int x; };
4128FILE * (*rcsopen) (struct buf *, struct stat *, int);
4129static char *e (p, i)
4130     char **p;
4131     int i;
4132{
4133  return p[i];
4134}
4135static char *f (char * (*g) (char **, int), char **p, ...)
4136{
4137  char *s;
4138  va_list v;
4139  va_start (v,p);
4140  s = g (p, va_arg (v,int));
4141  va_end (v);
4142  return s;
4143}
4144
4145/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4146   function prototypes and stuff, but not '\xHH' hex character constants.
4147   These don't provoke an error unfortunately, instead are silently treated
4148   as 'x'.  The following induces an error, until -std is added to get
4149   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4150   array size at least.  It's necessary to write '\x00'==0 to get something
4151   that's true only with -std.  */
4152int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153
4154/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4155   inside strings and character constants.  */
4156#define FOO(x) 'x'
4157int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158
4159int test (int i, double x);
4160struct s1 {int (*f) (int a);};
4161struct s2 {int (*f) (double a);};
4162int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4163int argc;
4164char **argv;
4165int
4166main ()
4167{
4168return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4169  ;
4170  return 0;
4171}
4172_ACEOF
4173for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4174	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175do
4176  CC="$ac_save_CC $ac_arg"
4177  if ac_fn_c_try_compile "$LINENO"; then :
4178  ac_cv_prog_cc_c89=$ac_arg
4179fi
4180rm -f core conftest.err conftest.$ac_objext
4181  test "x$ac_cv_prog_cc_c89" != "xno" && break
4182done
4183rm -f conftest.$ac_ext
4184CC=$ac_save_CC
4185
4186fi
4187# AC_CACHE_VAL
4188case "x$ac_cv_prog_cc_c89" in
4189  x)
4190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4191$as_echo "none needed" >&6; } ;;
4192  xno)
4193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4194$as_echo "unsupported" >&6; } ;;
4195  *)
4196    CC="$CC $ac_cv_prog_cc_c89"
4197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4198$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4199esac
4200if test "x$ac_cv_prog_cc_c89" != xno; then :
4201
4202fi
4203
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4216$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4217if ${am_cv_prog_cc_c_o+:} false; then :
4218  $as_echo_n "(cached) " >&6
4219else
4220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222
4223int
4224main ()
4225{
4226
4227  ;
4228  return 0;
4229}
4230_ACEOF
4231  # Make sure it works both with $CC and with simple cc.
4232  # Following AC_PROG_CC_C_O, we do the test twice because some
4233  # compilers refuse to overwrite an existing .o file with -o,
4234  # though they will create one.
4235  am_cv_prog_cc_c_o=yes
4236  for am_i in 1 2; do
4237    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4238   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); } \
4242         && test -f conftest2.$ac_objext; then
4243      : OK
4244    else
4245      am_cv_prog_cc_c_o=no
4246      break
4247    fi
4248  done
4249  rm -f core conftest*
4250  unset am_i
4251fi
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4253$as_echo "$am_cv_prog_cc_c_o" >&6; }
4254if test "$am_cv_prog_cc_c_o" != yes; then
4255   # Losing compiler, so override with the script.
4256   # FIXME: It is wrong to rewrite CC.
4257   # But if we don't then we get into trouble of one sort or another.
4258   # A longer-term fix would be to have automake use am__CC in this case,
4259   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4260   CC="$am_aux_dir/compile $CC"
4261fi
4262ac_ext=c
4263ac_cpp='$CPP $CPPFLAGS'
4264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268
4269depcc="$CC"   am_compiler_list=
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4272$as_echo_n "checking dependency style of $depcc... " >&6; }
4273if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4277  # We make a subdir and do the tests there.  Otherwise we can end up
4278  # making bogus files that we don't know about and never remove.  For
4279  # instance it was reported that on HP-UX the gcc test will end up
4280  # making a dummy file named 'D' -- because '-MD' means "put the output
4281  # in D".
4282  rm -rf conftest.dir
4283  mkdir conftest.dir
4284  # Copy depcomp to subdir because otherwise we won't find it if we're
4285  # using a relative directory.
4286  cp "$am_depcomp" conftest.dir
4287  cd conftest.dir
4288  # We will build objects and dependencies in a subdirectory because
4289  # it helps to detect inapplicable dependency modes.  For instance
4290  # both Tru64's cc and ICC support -MD to output dependencies as a
4291  # side effect of compilation, but ICC will put the dependencies in
4292  # the current directory while Tru64 will put them in the object
4293  # directory.
4294  mkdir sub
4295
4296  am_cv_CC_dependencies_compiler_type=none
4297  if test "$am_compiler_list" = ""; then
4298     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4299  fi
4300  am__universal=false
4301  case " $depcc " in #(
4302     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4303     esac
4304
4305  for depmode in $am_compiler_list; do
4306    # Setup a source with many dependencies, because some compilers
4307    # like to wrap large dependency lists on column 80 (with \), and
4308    # we should not choose a depcomp mode which is confused by this.
4309    #
4310    # We need to recreate these files for each test, as the compiler may
4311    # overwrite some of them when testing with obscure command lines.
4312    # This happens at least with the AIX C compiler.
4313    : > sub/conftest.c
4314    for i in 1 2 3 4 5 6; do
4315      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4316      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4317      # Solaris 10 /bin/sh.
4318      echo '/* dummy */' > sub/conftst$i.h
4319    done
4320    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4321
4322    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4323    # mode.  It turns out that the SunPro C++ compiler does not properly
4324    # handle '-M -o', and we need to detect this.  Also, some Intel
4325    # versions had trouble with output in subdirs.
4326    am__obj=sub/conftest.${OBJEXT-o}
4327    am__minus_obj="-o $am__obj"
4328    case $depmode in
4329    gcc)
4330      # This depmode causes a compiler race in universal mode.
4331      test "$am__universal" = false || continue
4332      ;;
4333    nosideeffect)
4334      # After this tag, mechanisms are not by side-effect, so they'll
4335      # only be used when explicitly requested.
4336      if test "x$enable_dependency_tracking" = xyes; then
4337	continue
4338      else
4339	break
4340      fi
4341      ;;
4342    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4343      # This compiler won't grok '-c -o', but also, the minuso test has
4344      # not run yet.  These depmodes are late enough in the game, and
4345      # so weak that their functioning should not be impacted.
4346      am__obj=conftest.${OBJEXT-o}
4347      am__minus_obj=
4348      ;;
4349    none) break ;;
4350    esac
4351    if depmode=$depmode \
4352       source=sub/conftest.c object=$am__obj \
4353       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4354       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4355         >/dev/null 2>conftest.err &&
4356       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4357       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4358       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4359       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4360      # icc doesn't choke on unknown options, it will just issue warnings
4361      # or remarks (even with -Werror).  So we grep stderr for any message
4362      # that says an option was ignored or not supported.
4363      # When given -MP, icc 7.0 and 7.1 complain thusly:
4364      #   icc: Command line warning: ignoring option '-M'; no argument required
4365      # The diagnosis changed in icc 8.0:
4366      #   icc: Command line remark: option '-MP' not supported
4367      if (grep 'ignoring option' conftest.err ||
4368          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4369        am_cv_CC_dependencies_compiler_type=$depmode
4370        break
4371      fi
4372    fi
4373  done
4374
4375  cd ..
4376  rm -rf conftest.dir
4377else
4378  am_cv_CC_dependencies_compiler_type=none
4379fi
4380
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4383$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4384CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4385
4386 if
4387  test "x$enable_dependency_tracking" != xno \
4388  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4389  am__fastdepCC_TRUE=
4390  am__fastdepCC_FALSE='#'
4391else
4392  am__fastdepCC_TRUE='#'
4393  am__fastdepCC_FALSE=
4394fi
4395
4396
4397
4398ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4404$as_echo_n "checking how to run the C preprocessor... " >&6; }
4405# On Suns, sometimes $CPP names a directory.
4406if test -n "$CPP" && test -d "$CPP"; then
4407  CPP=
4408fi
4409if test -z "$CPP"; then
4410  if ${ac_cv_prog_CPP+:} false; then :
4411  $as_echo_n "(cached) " >&6
4412else
4413      # Double quotes because CPP needs to be expanded
4414    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4415    do
4416      ac_preproc_ok=false
4417for ac_c_preproc_warn_flag in '' yes
4418do
4419  # Use a header file that comes with gcc, so configuring glibc
4420  # with a fresh cross-compiler works.
4421  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422  # <limits.h> exists even on freestanding compilers.
4423  # On the NeXT, cc -E runs the code through the compiler's parser,
4424  # not just through cpp. "Syntax error" is here to catch this case.
4425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426/* end confdefs.h.  */
4427#ifdef __STDC__
4428# include <limits.h>
4429#else
4430# include <assert.h>
4431#endif
4432		     Syntax error
4433_ACEOF
4434if ac_fn_c_try_cpp "$LINENO"; then :
4435
4436else
4437  # Broken: fails on valid input.
4438continue
4439fi
4440rm -f conftest.err conftest.i conftest.$ac_ext
4441
4442  # OK, works on sane cases.  Now check whether nonexistent headers
4443  # can be detected and how.
4444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h.  */
4446#include <ac_nonexistent.h>
4447_ACEOF
4448if ac_fn_c_try_cpp "$LINENO"; then :
4449  # Broken: success on invalid input.
4450continue
4451else
4452  # Passes both tests.
4453ac_preproc_ok=:
4454break
4455fi
4456rm -f conftest.err conftest.i conftest.$ac_ext
4457
4458done
4459# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460rm -f conftest.i conftest.err conftest.$ac_ext
4461if $ac_preproc_ok; then :
4462  break
4463fi
4464
4465    done
4466    ac_cv_prog_CPP=$CPP
4467
4468fi
4469  CPP=$ac_cv_prog_CPP
4470else
4471  ac_cv_prog_CPP=$CPP
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4474$as_echo "$CPP" >&6; }
4475ac_preproc_ok=false
4476for ac_c_preproc_warn_flag in '' yes
4477do
4478  # Use a header file that comes with gcc, so configuring glibc
4479  # with a fresh cross-compiler works.
4480  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481  # <limits.h> exists even on freestanding compilers.
4482  # On the NeXT, cc -E runs the code through the compiler's parser,
4483  # not just through cpp. "Syntax error" is here to catch this case.
4484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h.  */
4486#ifdef __STDC__
4487# include <limits.h>
4488#else
4489# include <assert.h>
4490#endif
4491		     Syntax error
4492_ACEOF
4493if ac_fn_c_try_cpp "$LINENO"; then :
4494
4495else
4496  # Broken: fails on valid input.
4497continue
4498fi
4499rm -f conftest.err conftest.i conftest.$ac_ext
4500
4501  # OK, works on sane cases.  Now check whether nonexistent headers
4502  # can be detected and how.
4503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h.  */
4505#include <ac_nonexistent.h>
4506_ACEOF
4507if ac_fn_c_try_cpp "$LINENO"; then :
4508  # Broken: success on invalid input.
4509continue
4510else
4511  # Passes both tests.
4512ac_preproc_ok=:
4513break
4514fi
4515rm -f conftest.err conftest.i conftest.$ac_ext
4516
4517done
4518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519rm -f conftest.i conftest.err conftest.$ac_ext
4520if $ac_preproc_ok; then :
4521
4522else
4523  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4525as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4526See \`config.log' for more details" "$LINENO" 5; }
4527fi
4528
4529ac_ext=c
4530ac_cpp='$CPP $CPPFLAGS'
4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538if ${ac_cv_path_GREP+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541  if test -z "$GREP"; then
4542  ac_path_GREP_found=false
4543  # Loop through the user's path and test for each of PROGNAME-LIST
4544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546do
4547  IFS=$as_save_IFS
4548  test -z "$as_dir" && as_dir=.
4549    for ac_prog in grep ggrep; do
4550    for ac_exec_ext in '' $ac_executable_extensions; do
4551      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552      as_fn_executable_p "$ac_path_GREP" || continue
4553# Check for GNU ac_path_GREP and select it if it is found.
4554  # Check for GNU $ac_path_GREP
4555case `"$ac_path_GREP" --version 2>&1` in
4556*GNU*)
4557  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4558*)
4559  ac_count=0
4560  $as_echo_n 0123456789 >"conftest.in"
4561  while :
4562  do
4563    cat "conftest.in" "conftest.in" >"conftest.tmp"
4564    mv "conftest.tmp" "conftest.in"
4565    cp "conftest.in" "conftest.nl"
4566    $as_echo 'GREP' >> "conftest.nl"
4567    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569    as_fn_arith $ac_count + 1 && ac_count=$as_val
4570    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571      # Best one so far, save it but keep looking for a better one
4572      ac_cv_path_GREP="$ac_path_GREP"
4573      ac_path_GREP_max=$ac_count
4574    fi
4575    # 10*(2^10) chars as input seems more than enough
4576    test $ac_count -gt 10 && break
4577  done
4578  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579esac
4580
4581      $ac_path_GREP_found && break 3
4582    done
4583  done
4584  done
4585IFS=$as_save_IFS
4586  if test -z "$ac_cv_path_GREP"; then
4587    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588  fi
4589else
4590  ac_cv_path_GREP=$GREP
4591fi
4592
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595$as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4597
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600$as_echo_n "checking for egrep... " >&6; }
4601if ${ac_cv_path_EGREP+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605   then ac_cv_path_EGREP="$GREP -E"
4606   else
4607     if test -z "$EGREP"; then
4608  ac_path_EGREP_found=false
4609  # Loop through the user's path and test for each of PROGNAME-LIST
4610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612do
4613  IFS=$as_save_IFS
4614  test -z "$as_dir" && as_dir=.
4615    for ac_prog in egrep; do
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618      as_fn_executable_p "$ac_path_EGREP" || continue
4619# Check for GNU ac_path_EGREP and select it if it is found.
4620  # Check for GNU $ac_path_EGREP
4621case `"$ac_path_EGREP" --version 2>&1` in
4622*GNU*)
4623  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4624*)
4625  ac_count=0
4626  $as_echo_n 0123456789 >"conftest.in"
4627  while :
4628  do
4629    cat "conftest.in" "conftest.in" >"conftest.tmp"
4630    mv "conftest.tmp" "conftest.in"
4631    cp "conftest.in" "conftest.nl"
4632    $as_echo 'EGREP' >> "conftest.nl"
4633    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635    as_fn_arith $ac_count + 1 && ac_count=$as_val
4636    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637      # Best one so far, save it but keep looking for a better one
4638      ac_cv_path_EGREP="$ac_path_EGREP"
4639      ac_path_EGREP_max=$ac_count
4640    fi
4641    # 10*(2^10) chars as input seems more than enough
4642    test $ac_count -gt 10 && break
4643  done
4644  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645esac
4646
4647      $ac_path_EGREP_found && break 3
4648    done
4649  done
4650  done
4651IFS=$as_save_IFS
4652  if test -z "$ac_cv_path_EGREP"; then
4653    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654  fi
4655else
4656  ac_cv_path_EGREP=$EGREP
4657fi
4658
4659   fi
4660fi
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662$as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4664
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4667$as_echo_n "checking for ANSI C header files... " >&6; }
4668if ${ac_cv_header_stdc+:} false; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h.  */
4673#include <stdlib.h>
4674#include <stdarg.h>
4675#include <string.h>
4676#include <float.h>
4677
4678int
4679main ()
4680{
4681
4682  ;
4683  return 0;
4684}
4685_ACEOF
4686if ac_fn_c_try_compile "$LINENO"; then :
4687  ac_cv_header_stdc=yes
4688else
4689  ac_cv_header_stdc=no
4690fi
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692
4693if test $ac_cv_header_stdc = yes; then
4694  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697#include <string.h>
4698
4699_ACEOF
4700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701  $EGREP "memchr" >/dev/null 2>&1; then :
4702
4703else
4704  ac_cv_header_stdc=no
4705fi
4706rm -f conftest*
4707
4708fi
4709
4710if test $ac_cv_header_stdc = yes; then
4711  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713/* end confdefs.h.  */
4714#include <stdlib.h>
4715
4716_ACEOF
4717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718  $EGREP "free" >/dev/null 2>&1; then :
4719
4720else
4721  ac_cv_header_stdc=no
4722fi
4723rm -f conftest*
4724
4725fi
4726
4727if test $ac_cv_header_stdc = yes; then
4728  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4729  if test "$cross_compiling" = yes; then :
4730  :
4731else
4732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h.  */
4734#include <ctype.h>
4735#include <stdlib.h>
4736#if ((' ' & 0x0FF) == 0x020)
4737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4739#else
4740# define ISLOWER(c) \
4741		   (('a' <= (c) && (c) <= 'i') \
4742		     || ('j' <= (c) && (c) <= 'r') \
4743		     || ('s' <= (c) && (c) <= 'z'))
4744# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4745#endif
4746
4747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4748int
4749main ()
4750{
4751  int i;
4752  for (i = 0; i < 256; i++)
4753    if (XOR (islower (i), ISLOWER (i))
4754	|| toupper (i) != TOUPPER (i))
4755      return 2;
4756  return 0;
4757}
4758_ACEOF
4759if ac_fn_c_try_run "$LINENO"; then :
4760
4761else
4762  ac_cv_header_stdc=no
4763fi
4764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4765  conftest.$ac_objext conftest.beam conftest.$ac_ext
4766fi
4767
4768fi
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4771$as_echo "$ac_cv_header_stdc" >&6; }
4772if test $ac_cv_header_stdc = yes; then
4773
4774$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4775
4776fi
4777
4778# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4779for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4780		  inttypes.h stdint.h unistd.h
4781do :
4782  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4783ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4784"
4785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4786  cat >>confdefs.h <<_ACEOF
4787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788_ACEOF
4789
4790fi
4791
4792done
4793
4794
4795
4796  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4797if test "x$ac_cv_header_minix_config_h" = xyes; then :
4798  MINIX=yes
4799else
4800  MINIX=
4801fi
4802
4803
4804  if test "$MINIX" = yes; then
4805
4806$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4807
4808
4809$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4810
4811
4812$as_echo "#define _MINIX 1" >>confdefs.h
4813
4814  fi
4815
4816
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4818$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4819if ${ac_cv_safe_to_define___extensions__+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823/* end confdefs.h.  */
4824
4825#         define __EXTENSIONS__ 1
4826          $ac_includes_default
4827int
4828main ()
4829{
4830
4831  ;
4832  return 0;
4833}
4834_ACEOF
4835if ac_fn_c_try_compile "$LINENO"; then :
4836  ac_cv_safe_to_define___extensions__=yes
4837else
4838  ac_cv_safe_to_define___extensions__=no
4839fi
4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4843$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4844  test $ac_cv_safe_to_define___extensions__ = yes &&
4845    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4846
4847  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4848
4849  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4850
4851  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4852
4853  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4854
4855
4856
4857# Make sure we can run config.sub.
4858$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4859  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4862$as_echo_n "checking build system type... " >&6; }
4863if ${ac_cv_build+:} false; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866  ac_build_alias=$build_alias
4867test "x$ac_build_alias" = x &&
4868  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4869test "x$ac_build_alias" = x &&
4870  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4871ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4872  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4873
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4876$as_echo "$ac_cv_build" >&6; }
4877case $ac_cv_build in
4878*-*-*) ;;
4879*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4880esac
4881build=$ac_cv_build
4882ac_save_IFS=$IFS; IFS='-'
4883set x $ac_cv_build
4884shift
4885build_cpu=$1
4886build_vendor=$2
4887shift; shift
4888# Remember, the first character of IFS is used to create $*,
4889# except with old shells:
4890build_os=$*
4891IFS=$ac_save_IFS
4892case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4896$as_echo_n "checking host system type... " >&6; }
4897if ${ac_cv_host+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  if test "x$host_alias" = x; then
4901  ac_cv_host=$ac_cv_build
4902else
4903  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4904    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4905fi
4906
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4909$as_echo "$ac_cv_host" >&6; }
4910case $ac_cv_host in
4911*-*-*) ;;
4912*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4913esac
4914host=$ac_cv_host
4915ac_save_IFS=$IFS; IFS='-'
4916set x $ac_cv_host
4917shift
4918host_cpu=$1
4919host_vendor=$2
4920shift; shift
4921# Remember, the first character of IFS is used to create $*,
4922# except with old shells:
4923host_os=$*
4924IFS=$ac_save_IFS
4925case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4926
4927
4928
4929#case "$host_os" in
4930#
4931# osf5*)
4932#    CFLAGS="$CFLAGS -D_OSF_SOURCE"
4933#    ;;
4934#esac
4935
4936
4937
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4939$as_echo_n "checking whether ln -s works... " >&6; }
4940LN_S=$as_ln_s
4941if test "$LN_S" = "ln -s"; then
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4943$as_echo "yes" >&6; }
4944else
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4946$as_echo "no, using $LN_S" >&6; }
4947fi
4948
4949# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4950
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4952$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4953if ${ac_cv_path_SED+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4957     for ac_i in 1 2 3 4 5 6 7; do
4958       ac_script="$ac_script$as_nl$ac_script"
4959     done
4960     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4961     { ac_script=; unset ac_script;}
4962     if test -z "$SED"; then
4963  ac_path_SED_found=false
4964  # Loop through the user's path and test for each of PROGNAME-LIST
4965  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970    for ac_prog in sed gsed; do
4971    for ac_exec_ext in '' $ac_executable_extensions; do
4972      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4973      as_fn_executable_p "$ac_path_SED" || continue
4974# Check for GNU ac_path_SED and select it if it is found.
4975  # Check for GNU $ac_path_SED
4976case `"$ac_path_SED" --version 2>&1` in
4977*GNU*)
4978  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4979*)
4980  ac_count=0
4981  $as_echo_n 0123456789 >"conftest.in"
4982  while :
4983  do
4984    cat "conftest.in" "conftest.in" >"conftest.tmp"
4985    mv "conftest.tmp" "conftest.in"
4986    cp "conftest.in" "conftest.nl"
4987    $as_echo '' >> "conftest.nl"
4988    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4989    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4990    as_fn_arith $ac_count + 1 && ac_count=$as_val
4991    if test $ac_count -gt ${ac_path_SED_max-0}; then
4992      # Best one so far, save it but keep looking for a better one
4993      ac_cv_path_SED="$ac_path_SED"
4994      ac_path_SED_max=$ac_count
4995    fi
4996    # 10*(2^10) chars as input seems more than enough
4997    test $ac_count -gt 10 && break
4998  done
4999  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5000esac
5001
5002      $ac_path_SED_found && break 3
5003    done
5004  done
5005  done
5006IFS=$as_save_IFS
5007  if test -z "$ac_cv_path_SED"; then
5008    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5009  fi
5010else
5011  ac_cv_path_SED=$SED
5012fi
5013
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5016$as_echo "$ac_cv_path_SED" >&6; }
5017 SED="$ac_cv_path_SED"
5018  rm -f conftest.sed
5019
5020
5021if test $ac_cv_c_compiler_gnu = yes; then
5022    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5023$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5024if ${ac_cv_prog_gcc_traditional+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027    ac_pattern="Autoconf.*'x'"
5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030#include <sgtty.h>
5031Autoconf TIOCGETP
5032_ACEOF
5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5035  ac_cv_prog_gcc_traditional=yes
5036else
5037  ac_cv_prog_gcc_traditional=no
5038fi
5039rm -f conftest*
5040
5041
5042  if test $ac_cv_prog_gcc_traditional = no; then
5043    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045#include <termio.h>
5046Autoconf TCGETA
5047_ACEOF
5048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5050  ac_cv_prog_gcc_traditional=yes
5051fi
5052rm -f conftest*
5053
5054  fi
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5057$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5058  if test $ac_cv_prog_gcc_traditional = yes; then
5059    CC="$CC -traditional"
5060  fi
5061fi
5062
5063
5064# We need to test for at least gcc 2.95 here, because older versions don't
5065# have -fno-strict-aliasing
5066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h.  */
5068
5069int
5070main ()
5071{
5072
5073#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5074#error
5075#endif
5076  ;
5077  return 0;
5078}
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"; then :
5081  have_gcc295=yes
5082else
5083  have_gcc295=no
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086
5087if test "$GCC" = "yes" ; then
5088        # Enable many gcc warnings by default...
5089        CFLAGS="$CFLAGS -Wall"
5090	# And disable the strict-aliasing optimization, since it breaks
5091	# our sockaddr-handling code in strange ways.
5092	if test x$have_gcc295 = xyes; then
5093		CFLAGS="$CFLAGS -fno-strict-aliasing"
5094	fi
5095fi
5096
5097# OS X Lion started deprecating the system openssl. Let's just disable
5098# all deprecation warnings on OS X; but do so only for gcc...
5099if test "$GCC" = "yes" ; then
5100	case "$host_os" in
5101	 darwin*)
5102	    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5103	    ;;
5104	esac
5105fi
5106
5107# Check whether --enable-gcc-warnings was given.
5108if test "${enable_gcc_warnings+set}" = set; then :
5109  enableval=$enable_gcc_warnings;
5110fi
5111
5112
5113# Check whether --enable-gcc-hardening was given.
5114if test "${enable_gcc_hardening+set}" = set; then :
5115  enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5116    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5117    CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5118    CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5119fi
5120fi
5121
5122
5123# Check whether --enable-thread-support was given.
5124if test "${enable_thread_support+set}" = set; then :
5125  enableval=$enable_thread_support;
5126else
5127  enable_thread_support=yes
5128fi
5129
5130# Check whether --enable-malloc-replacement was given.
5131if test "${enable_malloc_replacement+set}" = set; then :
5132  enableval=$enable_malloc_replacement;
5133else
5134  enable_malloc_replacement=yes
5135fi
5136
5137# Check whether --enable-openssl was given.
5138if test "${enable_openssl+set}" = set; then :
5139  enableval=$enable_openssl;
5140else
5141  enable_openssl=yes
5142fi
5143
5144# Check whether --enable-debug-mode was given.
5145if test "${enable_debug_mode+set}" = set; then :
5146  enableval=$enable_debug_mode;
5147else
5148  enable_debug_mode=yes
5149fi
5150
5151# Check whether --enable-libevent-install was given.
5152if test "${enable_libevent_install+set}" = set; then :
5153  enableval=$enable_libevent_install;
5154else
5155  enable_libevent_install=yes
5156fi
5157
5158# Check whether --enable-libevent-regress was given.
5159if test "${enable_libevent_regress+set}" = set; then :
5160  enableval=$enable_libevent_regress;
5161else
5162  enable_libevent_regress=yes
5163fi
5164
5165# Check whether --enable-samples was given.
5166if test "${enable_samples+set}" = set; then :
5167  enableval=$enable_samples;
5168else
5169  enable_samples=yes
5170fi
5171
5172# Check whether --enable-function-sections was given.
5173if test "${enable_function_sections+set}" = set; then :
5174  enableval=$enable_function_sections;
5175else
5176  enable_function_sections=no
5177fi
5178
5179# Check whether --enable-verbose-debug was given.
5180if test "${enable_verbose_debug+set}" = set; then :
5181  enableval=$enable_verbose_debug;
5182else
5183  enable_verbose_debug=no
5184fi
5185
5186# Check whether --enable-clock-gettime was given.
5187if test "${enable_clock_gettime+set}" = set; then :
5188  enableval=$enable_clock_gettime;
5189else
5190  enable_clock_gettime=yes
5191fi
5192
5193
5194
5195
5196case `pwd` in
5197  *\ * | *\	*)
5198    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5199$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5200esac
5201
5202
5203
5204macro_version='2.4.6.42-b88ce-dirty'
5205macro_revision='2.4.6.42'
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219ltmain=$ac_aux_dir/ltmain.sh
5220
5221# Backslashify metacharacters that are still active within
5222# double-quoted strings.
5223sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5224
5225# Same as above, but do not quote variable references.
5226double_quote_subst='s/\(["`\\]\)/\\\1/g'
5227
5228# Sed substitution to delay expansion of an escaped shell variable in a
5229# double_quote_subst'ed string.
5230delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5231
5232# Sed substitution to delay expansion of an escaped single quote.
5233delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5234
5235# Sed substitution to avoid accidental globbing in evaled expressions
5236no_glob_subst='s/\*/\\\*/g'
5237
5238ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5239ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5240ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5241
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5243$as_echo_n "checking how to print strings... " >&6; }
5244# Test print first, because it will be a builtin if present.
5245if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5246   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5247  ECHO='print -r --'
5248elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5249  ECHO='printf %s\n'
5250else
5251  # Use this function as a fallback that always works.
5252  func_fallback_echo ()
5253  {
5254    eval 'cat <<_LTECHO_EOF
5255$1
5256_LTECHO_EOF'
5257  }
5258  ECHO='func_fallback_echo'
5259fi
5260
5261# func_echo_all arg...
5262# Invoke $ECHO with all args, space-separated.
5263func_echo_all ()
5264{
5265    $ECHO ""
5266}
5267
5268case $ECHO in
5269  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5270$as_echo "printf" >&6; } ;;
5271  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5272$as_echo "print -r" >&6; } ;;
5273  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5274$as_echo "cat" >&6; } ;;
5275esac
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5291$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5292if ${ac_cv_path_SED+:} false; then :
5293  $as_echo_n "(cached) " >&6
5294else
5295            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5296     for ac_i in 1 2 3 4 5 6 7; do
5297       ac_script="$ac_script$as_nl$ac_script"
5298     done
5299     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5300     { ac_script=; unset ac_script;}
5301     if test -z "$SED"; then
5302  ac_path_SED_found=false
5303  # Loop through the user's path and test for each of PROGNAME-LIST
5304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307  IFS=$as_save_IFS
5308  test -z "$as_dir" && as_dir=.
5309    for ac_prog in sed gsed; do
5310    for ac_exec_ext in '' $ac_executable_extensions; do
5311      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5312      as_fn_executable_p "$ac_path_SED" || continue
5313# Check for GNU ac_path_SED and select it if it is found.
5314  # Check for GNU $ac_path_SED
5315case `"$ac_path_SED" --version 2>&1` in
5316*GNU*)
5317  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5318*)
5319  ac_count=0
5320  $as_echo_n 0123456789 >"conftest.in"
5321  while :
5322  do
5323    cat "conftest.in" "conftest.in" >"conftest.tmp"
5324    mv "conftest.tmp" "conftest.in"
5325    cp "conftest.in" "conftest.nl"
5326    $as_echo '' >> "conftest.nl"
5327    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5328    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5329    as_fn_arith $ac_count + 1 && ac_count=$as_val
5330    if test $ac_count -gt ${ac_path_SED_max-0}; then
5331      # Best one so far, save it but keep looking for a better one
5332      ac_cv_path_SED="$ac_path_SED"
5333      ac_path_SED_max=$ac_count
5334    fi
5335    # 10*(2^10) chars as input seems more than enough
5336    test $ac_count -gt 10 && break
5337  done
5338  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5339esac
5340
5341      $ac_path_SED_found && break 3
5342    done
5343  done
5344  done
5345IFS=$as_save_IFS
5346  if test -z "$ac_cv_path_SED"; then
5347    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5348  fi
5349else
5350  ac_cv_path_SED=$SED
5351fi
5352
5353fi
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5355$as_echo "$ac_cv_path_SED" >&6; }
5356 SED="$ac_cv_path_SED"
5357  rm -f conftest.sed
5358
5359test -z "$SED" && SED=sed
5360Xsed="$SED -e 1s/^X//"
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5373$as_echo_n "checking for fgrep... " >&6; }
5374if ${ac_cv_path_FGREP+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5378   then ac_cv_path_FGREP="$GREP -F"
5379   else
5380     if test -z "$FGREP"; then
5381  ac_path_FGREP_found=false
5382  # Loop through the user's path and test for each of PROGNAME-LIST
5383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388    for ac_prog in fgrep; do
5389    for ac_exec_ext in '' $ac_executable_extensions; do
5390      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5391      as_fn_executable_p "$ac_path_FGREP" || continue
5392# Check for GNU ac_path_FGREP and select it if it is found.
5393  # Check for GNU $ac_path_FGREP
5394case `"$ac_path_FGREP" --version 2>&1` in
5395*GNU*)
5396  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5397*)
5398  ac_count=0
5399  $as_echo_n 0123456789 >"conftest.in"
5400  while :
5401  do
5402    cat "conftest.in" "conftest.in" >"conftest.tmp"
5403    mv "conftest.tmp" "conftest.in"
5404    cp "conftest.in" "conftest.nl"
5405    $as_echo 'FGREP' >> "conftest.nl"
5406    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408    as_fn_arith $ac_count + 1 && ac_count=$as_val
5409    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5410      # Best one so far, save it but keep looking for a better one
5411      ac_cv_path_FGREP="$ac_path_FGREP"
5412      ac_path_FGREP_max=$ac_count
5413    fi
5414    # 10*(2^10) chars as input seems more than enough
5415    test $ac_count -gt 10 && break
5416  done
5417  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418esac
5419
5420      $ac_path_FGREP_found && break 3
5421    done
5422  done
5423  done
5424IFS=$as_save_IFS
5425  if test -z "$ac_cv_path_FGREP"; then
5426    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427  fi
5428else
5429  ac_cv_path_FGREP=$FGREP
5430fi
5431
5432   fi
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5435$as_echo "$ac_cv_path_FGREP" >&6; }
5436 FGREP="$ac_cv_path_FGREP"
5437
5438
5439test -z "$GREP" && GREP=grep
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459# Check whether --with-gnu-ld was given.
5460if test "${with_gnu_ld+set}" = set; then :
5461  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5462else
5463  with_gnu_ld=no
5464fi
5465
5466ac_prog=ld
5467if test yes = "$GCC"; then
5468  # Check if gcc -print-prog-name=ld gives a path.
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5470$as_echo_n "checking for ld used by $CC... " >&6; }
5471  case $host in
5472  *-*-mingw*)
5473    # gcc leaves a trailing carriage return, which upsets mingw
5474    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5475  *)
5476    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5477  esac
5478  case $ac_prog in
5479    # Accept absolute paths.
5480    [\\/]* | ?:[\\/]*)
5481      re_direlt='/[^/][^/]*/\.\./'
5482      # Canonicalize the pathname of ld
5483      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5484      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5485	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5486      done
5487      test -z "$LD" && LD=$ac_prog
5488      ;;
5489  "")
5490    # If it fails, then pretend we aren't using GCC.
5491    ac_prog=ld
5492    ;;
5493  *)
5494    # If it is relative, then search for the first ld in PATH.
5495    with_gnu_ld=unknown
5496    ;;
5497  esac
5498elif test yes = "$with_gnu_ld"; then
5499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5500$as_echo_n "checking for GNU ld... " >&6; }
5501else
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5503$as_echo_n "checking for non-GNU ld... " >&6; }
5504fi
5505if ${lt_cv_path_LD+:} false; then :
5506  $as_echo_n "(cached) " >&6
5507else
5508  if test -z "$LD"; then
5509  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5510  for ac_dir in $PATH; do
5511    IFS=$lt_save_ifs
5512    test -z "$ac_dir" && ac_dir=.
5513    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5514      lt_cv_path_LD=$ac_dir/$ac_prog
5515      # Check to see if the program is GNU ld.  I'd rather use --version,
5516      # but apparently some variants of GNU ld only accept -v.
5517      # Break only if it was the GNU/non-GNU ld that we prefer.
5518      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5519      *GNU* | *'with BFD'*)
5520	test no != "$with_gnu_ld" && break
5521	;;
5522      *)
5523	test yes != "$with_gnu_ld" && break
5524	;;
5525      esac
5526    fi
5527  done
5528  IFS=$lt_save_ifs
5529else
5530  lt_cv_path_LD=$LD # Let the user override the test with a path.
5531fi
5532fi
5533
5534LD=$lt_cv_path_LD
5535if test -n "$LD"; then
5536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5537$as_echo "$LD" >&6; }
5538else
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540$as_echo "no" >&6; }
5541fi
5542test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5544$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5545if ${lt_cv_prog_gnu_ld+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5549case `$LD -v 2>&1 </dev/null` in
5550*GNU* | *'with BFD'*)
5551  lt_cv_prog_gnu_ld=yes
5552  ;;
5553*)
5554  lt_cv_prog_gnu_ld=no
5555  ;;
5556esac
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5559$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5560with_gnu_ld=$lt_cv_prog_gnu_ld
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5571$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5572if ${lt_cv_path_NM+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if test -n "$NM"; then
5576  # Let the user override the test.
5577  lt_cv_path_NM=$NM
5578else
5579  lt_nm_to_check=${ac_tool_prefix}nm
5580  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5581    lt_nm_to_check="$lt_nm_to_check nm"
5582  fi
5583  for lt_tmp_nm in $lt_nm_to_check; do
5584    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5585    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5586      IFS=$lt_save_ifs
5587      test -z "$ac_dir" && ac_dir=.
5588      tmp_nm=$ac_dir/$lt_tmp_nm
5589      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5590	# Check to see if the nm accepts a BSD-compat flag.
5591	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5592	#   nm: unknown option "B" ignored
5593	# Tru64's nm complains that /dev/null is an invalid object file
5594	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5595	case $build_os in
5596	mingw*) lt_bad_file=conftest.nm/nofile ;;
5597	*) lt_bad_file=/dev/null ;;
5598	esac
5599	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5600	*$lt_bad_file* | *'Invalid file or object type'*)
5601	  lt_cv_path_NM="$tmp_nm -B"
5602	  break 2
5603	  ;;
5604	*)
5605	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5606	  */dev/null*)
5607	    lt_cv_path_NM="$tmp_nm -p"
5608	    break 2
5609	    ;;
5610	  *)
5611	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5612	    continue # so that we can try to find one that supports BSD flags
5613	    ;;
5614	  esac
5615	  ;;
5616	esac
5617      fi
5618    done
5619    IFS=$lt_save_ifs
5620  done
5621  : ${lt_cv_path_NM=no}
5622fi
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5625$as_echo "$lt_cv_path_NM" >&6; }
5626if test no != "$lt_cv_path_NM"; then
5627  NM=$lt_cv_path_NM
5628else
5629  # Didn't find any BSD compatible name lister, look for dumpbin.
5630  if test -n "$DUMPBIN"; then :
5631    # Let the user override the test.
5632  else
5633    if test -n "$ac_tool_prefix"; then
5634  for ac_prog in dumpbin "link -dump"
5635  do
5636    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639$as_echo_n "checking for $ac_word... " >&6; }
5640if ${ac_cv_prog_DUMPBIN+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  if test -n "$DUMPBIN"; then
5644  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651    for ac_exec_ext in '' $ac_executable_extensions; do
5652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658  done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663DUMPBIN=$ac_cv_prog_DUMPBIN
5664if test -n "$DUMPBIN"; then
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5666$as_echo "$DUMPBIN" >&6; }
5667else
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670fi
5671
5672
5673    test -n "$DUMPBIN" && break
5674  done
5675fi
5676if test -z "$DUMPBIN"; then
5677  ac_ct_DUMPBIN=$DUMPBIN
5678  for ac_prog in dumpbin "link -dump"
5679do
5680  # Extract the first word of "$ac_prog", so it can be a program name with args.
5681set dummy $ac_prog; ac_word=$2
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683$as_echo_n "checking for $ac_word... " >&6; }
5684if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  if test -n "$ac_ct_DUMPBIN"; then
5688  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693  IFS=$as_save_IFS
5694  test -z "$as_dir" && as_dir=.
5695    for ac_exec_ext in '' $ac_executable_extensions; do
5696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699    break 2
5700  fi
5701done
5702  done
5703IFS=$as_save_IFS
5704
5705fi
5706fi
5707ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5708if test -n "$ac_ct_DUMPBIN"; then
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5710$as_echo "$ac_ct_DUMPBIN" >&6; }
5711else
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714fi
5715
5716
5717  test -n "$ac_ct_DUMPBIN" && break
5718done
5719
5720  if test "x$ac_ct_DUMPBIN" = x; then
5721    DUMPBIN=":"
5722  else
5723    case $cross_compiling:$ac_tool_warned in
5724yes:)
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727ac_tool_warned=yes ;;
5728esac
5729    DUMPBIN=$ac_ct_DUMPBIN
5730  fi
5731fi
5732
5733    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5734    *COFF*)
5735      DUMPBIN="$DUMPBIN -symbols -headers"
5736      ;;
5737    *)
5738      DUMPBIN=:
5739      ;;
5740    esac
5741  fi
5742
5743  if test : != "$DUMPBIN"; then
5744    NM=$DUMPBIN
5745  fi
5746fi
5747test -z "$NM" && NM=nm
5748
5749
5750
5751
5752
5753
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5755$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5756if ${lt_cv_nm_interface+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  lt_cv_nm_interface="BSD nm"
5760  echo "int some_variable = 0;" > conftest.$ac_ext
5761  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5762  (eval "$ac_compile" 2>conftest.err)
5763  cat conftest.err >&5
5764  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5765  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5766  cat conftest.err >&5
5767  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5768  cat conftest.out >&5
5769  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5770    lt_cv_nm_interface="MS dumpbin"
5771  fi
5772  rm -f conftest*
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5775$as_echo "$lt_cv_nm_interface" >&6; }
5776
5777# find the maximum length of command line arguments
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5779$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5780if ${lt_cv_sys_max_cmd_len+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783    i=0
5784  teststring=ABCD
5785
5786  case $build_os in
5787  msdosdjgpp*)
5788    # On DJGPP, this test can blow up pretty badly due to problems in libc
5789    # (any single argument exceeding 2000 bytes causes a buffer overrun
5790    # during glob expansion).  Even if it were fixed, the result of this
5791    # check would be larger than it should be.
5792    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5793    ;;
5794
5795  gnu*)
5796    # Under GNU Hurd, this test is not required because there is
5797    # no limit to the length of command line arguments.
5798    # Libtool will interpret -1 as no limit whatsoever
5799    lt_cv_sys_max_cmd_len=-1;
5800    ;;
5801
5802  cygwin* | mingw* | cegcc*)
5803    # On Win9x/ME, this test blows up -- it succeeds, but takes
5804    # about 5 minutes as the teststring grows exponentially.
5805    # Worse, since 9x/ME are not pre-emptively multitasking,
5806    # you end up with a "frozen" computer, even though with patience
5807    # the test eventually succeeds (with a max line length of 256k).
5808    # Instead, let's just punt: use the minimum linelength reported by
5809    # all of the supported platforms: 8192 (on NT/2K/XP).
5810    lt_cv_sys_max_cmd_len=8192;
5811    ;;
5812
5813  mint*)
5814    # On MiNT this can take a long time and run out of memory.
5815    lt_cv_sys_max_cmd_len=8192;
5816    ;;
5817
5818  amigaos*)
5819    # On AmigaOS with pdksh, this test takes hours, literally.
5820    # So we just punt and use a minimum line length of 8192.
5821    lt_cv_sys_max_cmd_len=8192;
5822    ;;
5823
5824  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5825    # This has been around since 386BSD, at least.  Likely further.
5826    if test -x /sbin/sysctl; then
5827      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5828    elif test -x /usr/sbin/sysctl; then
5829      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5830    else
5831      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5832    fi
5833    # And add a safety zone
5834    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5835    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5836    ;;
5837
5838  interix*)
5839    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5840    lt_cv_sys_max_cmd_len=196608
5841    ;;
5842
5843  os2*)
5844    # The test takes a long time on OS/2.
5845    lt_cv_sys_max_cmd_len=8192
5846    ;;
5847
5848  osf*)
5849    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5850    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5851    # nice to cause kernel panics so lets avoid the loop below.
5852    # First set a reasonable default.
5853    lt_cv_sys_max_cmd_len=16384
5854    #
5855    if test -x /sbin/sysconfig; then
5856      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5857        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5858      esac
5859    fi
5860    ;;
5861  sco3.2v5*)
5862    lt_cv_sys_max_cmd_len=102400
5863    ;;
5864  sysv5* | sco5v6* | sysv4.2uw2*)
5865    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5866    if test -n "$kargmax"; then
5867      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5868    else
5869      lt_cv_sys_max_cmd_len=32768
5870    fi
5871    ;;
5872  *)
5873    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5874    if test -n "$lt_cv_sys_max_cmd_len" && \
5875       test undefined != "$lt_cv_sys_max_cmd_len"; then
5876      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5877      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5878    else
5879      # Make teststring a little bigger before we do anything with it.
5880      # a 1K string should be a reasonable start.
5881      for i in 1 2 3 4 5 6 7 8; do
5882        teststring=$teststring$teststring
5883      done
5884      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5885      # If test is not a shell built-in, we'll probably end up computing a
5886      # maximum length that is only half of the actual maximum length, but
5887      # we can't tell.
5888      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5889	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5890	      test 17 != "$i" # 1/2 MB should be enough
5891      do
5892        i=`expr $i + 1`
5893        teststring=$teststring$teststring
5894      done
5895      # Only check the string length outside the loop.
5896      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5897      teststring=
5898      # Add a significant safety factor because C++ compilers can tack on
5899      # massive amounts of additional arguments before passing them to the
5900      # linker.  It appears as though 1/2 is a usable value.
5901      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5902    fi
5903    ;;
5904  esac
5905
5906fi
5907
5908if test -n "$lt_cv_sys_max_cmd_len"; then
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5910$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5911else
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5913$as_echo "none" >&6; }
5914fi
5915max_cmd_len=$lt_cv_sys_max_cmd_len
5916
5917
5918
5919
5920
5921
5922: ${CP="cp -f"}
5923: ${MV="mv -f"}
5924: ${RM="rm -f"}
5925
5926if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5927  lt_unset=unset
5928else
5929  lt_unset=false
5930fi
5931
5932
5933
5934
5935
5936# test EBCDIC or ASCII
5937case `echo X|tr X '\101'` in
5938 A) # ASCII based system
5939    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5940  lt_SP2NL='tr \040 \012'
5941  lt_NL2SP='tr \015\012 \040\040'
5942  ;;
5943 *) # EBCDIC based system
5944  lt_SP2NL='tr \100 \n'
5945  lt_NL2SP='tr \r\n \100\100'
5946  ;;
5947esac
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5958$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5959if ${lt_cv_to_host_file_cmd+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  case $host in
5963  *-*-mingw* )
5964    case $build in
5965      *-*-mingw* ) # actually msys
5966        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5967        ;;
5968      *-*-cygwin* )
5969        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5970        ;;
5971      * ) # otherwise, assume *nix
5972        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5973        ;;
5974    esac
5975    ;;
5976  *-*-cygwin* )
5977    case $build in
5978      *-*-mingw* ) # actually msys
5979        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5980        ;;
5981      *-*-cygwin* )
5982        lt_cv_to_host_file_cmd=func_convert_file_noop
5983        ;;
5984      * ) # otherwise, assume *nix
5985        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5986        ;;
5987    esac
5988    ;;
5989  * ) # unhandled hosts (and "normal" native builds)
5990    lt_cv_to_host_file_cmd=func_convert_file_noop
5991    ;;
5992esac
5993
5994fi
5995
5996to_host_file_cmd=$lt_cv_to_host_file_cmd
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5998$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5999
6000
6001
6002
6003
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6005$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6006if ${lt_cv_to_tool_file_cmd+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  #assume ordinary cross tools, or native build.
6010lt_cv_to_tool_file_cmd=func_convert_file_noop
6011case $host in
6012  *-*-mingw* )
6013    case $build in
6014      *-*-mingw* ) # actually msys
6015        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6016        ;;
6017    esac
6018    ;;
6019esac
6020
6021fi
6022
6023to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6025$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6026
6027
6028
6029
6030
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6032$as_echo_n "checking for $LD option to reload object files... " >&6; }
6033if ${lt_cv_ld_reload_flag+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  lt_cv_ld_reload_flag='-r'
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6039$as_echo "$lt_cv_ld_reload_flag" >&6; }
6040reload_flag=$lt_cv_ld_reload_flag
6041case $reload_flag in
6042"" | " "*) ;;
6043*) reload_flag=" $reload_flag" ;;
6044esac
6045reload_cmds='$LD$reload_flag -o $output$reload_objs'
6046case $host_os in
6047  cygwin* | mingw* | pw32* | cegcc*)
6048    if test yes != "$GCC"; then
6049      reload_cmds=false
6050    fi
6051    ;;
6052  darwin*)
6053    if test yes = "$GCC"; then
6054      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6055    else
6056      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6057    fi
6058    ;;
6059esac
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069if test -n "$ac_tool_prefix"; then
6070  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6071set dummy ${ac_tool_prefix}objdump; ac_word=$2
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073$as_echo_n "checking for $ac_word... " >&6; }
6074if ${ac_cv_prog_OBJDUMP+:} false; then :
6075  $as_echo_n "(cached) " >&6
6076else
6077  if test -n "$OBJDUMP"; then
6078  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083  IFS=$as_save_IFS
6084  test -z "$as_dir" && as_dir=.
6085    for ac_exec_ext in '' $ac_executable_extensions; do
6086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089    break 2
6090  fi
6091done
6092  done
6093IFS=$as_save_IFS
6094
6095fi
6096fi
6097OBJDUMP=$ac_cv_prog_OBJDUMP
6098if test -n "$OBJDUMP"; then
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6100$as_echo "$OBJDUMP" >&6; }
6101else
6102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103$as_echo "no" >&6; }
6104fi
6105
6106
6107fi
6108if test -z "$ac_cv_prog_OBJDUMP"; then
6109  ac_ct_OBJDUMP=$OBJDUMP
6110  # Extract the first word of "objdump", so it can be a program name with args.
6111set dummy objdump; ac_word=$2
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113$as_echo_n "checking for $ac_word... " >&6; }
6114if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6115  $as_echo_n "(cached) " >&6
6116else
6117  if test -n "$ac_ct_OBJDUMP"; then
6118  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  test -z "$as_dir" && as_dir=.
6125    for ac_exec_ext in '' $ac_executable_extensions; do
6126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129    break 2
6130  fi
6131done
6132  done
6133IFS=$as_save_IFS
6134
6135fi
6136fi
6137ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6138if test -n "$ac_ct_OBJDUMP"; then
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6140$as_echo "$ac_ct_OBJDUMP" >&6; }
6141else
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143$as_echo "no" >&6; }
6144fi
6145
6146  if test "x$ac_ct_OBJDUMP" = x; then
6147    OBJDUMP="false"
6148  else
6149    case $cross_compiling:$ac_tool_warned in
6150yes:)
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153ac_tool_warned=yes ;;
6154esac
6155    OBJDUMP=$ac_ct_OBJDUMP
6156  fi
6157else
6158  OBJDUMP="$ac_cv_prog_OBJDUMP"
6159fi
6160
6161test -z "$OBJDUMP" && OBJDUMP=objdump
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6172$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6173if ${lt_cv_deplibs_check_method+:} false; then :
6174  $as_echo_n "(cached) " >&6
6175else
6176  lt_cv_file_magic_cmd='$MAGIC_CMD'
6177lt_cv_file_magic_test_file=
6178lt_cv_deplibs_check_method='unknown'
6179# Need to set the preceding variable on all platforms that support
6180# interlibrary dependencies.
6181# 'none' -- dependencies not supported.
6182# 'unknown' -- same as none, but documents that we really don't know.
6183# 'pass_all' -- all dependencies passed with no checks.
6184# 'test_compile' -- check by making test program.
6185# 'file_magic [[regex]]' -- check by looking for files in library path
6186# that responds to the $file_magic_cmd with a given extended regex.
6187# If you have 'file' or equivalent on your system and you're not sure
6188# whether 'pass_all' will *always* work, you probably want this one.
6189
6190case $host_os in
6191aix[4-9]*)
6192  lt_cv_deplibs_check_method=pass_all
6193  ;;
6194
6195beos*)
6196  lt_cv_deplibs_check_method=pass_all
6197  ;;
6198
6199bsdi[45]*)
6200  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6201  lt_cv_file_magic_cmd='/usr/bin/file -L'
6202  lt_cv_file_magic_test_file=/shlib/libc.so
6203  ;;
6204
6205cygwin*)
6206  # func_win32_libid is a shell function defined in ltmain.sh
6207  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6208  lt_cv_file_magic_cmd='func_win32_libid'
6209  ;;
6210
6211mingw* | pw32*)
6212  # Base MSYS/MinGW do not provide the 'file' command needed by
6213  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6214  # unless we find 'file', for example because we are cross-compiling.
6215  if ( file / ) >/dev/null 2>&1; then
6216    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6217    lt_cv_file_magic_cmd='func_win32_libid'
6218  else
6219    # Keep this pattern in sync with the one in func_win32_libid.
6220    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6221    lt_cv_file_magic_cmd='$OBJDUMP -f'
6222  fi
6223  ;;
6224
6225cegcc*)
6226  # use the weaker test based on 'objdump'. See mingw*.
6227  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6228  lt_cv_file_magic_cmd='$OBJDUMP -f'
6229  ;;
6230
6231darwin* | rhapsody*)
6232  lt_cv_deplibs_check_method=pass_all
6233  ;;
6234
6235freebsd* | dragonfly*)
6236  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6237    case $host_cpu in
6238    i*86 )
6239      # Not sure whether the presence of OpenBSD here was a mistake.
6240      # Let's accept both of them until this is cleared up.
6241      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6242      lt_cv_file_magic_cmd=/usr/bin/file
6243      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6244      ;;
6245    esac
6246  else
6247    lt_cv_deplibs_check_method=pass_all
6248  fi
6249  ;;
6250
6251haiku*)
6252  lt_cv_deplibs_check_method=pass_all
6253  ;;
6254
6255hpux10.20* | hpux11*)
6256  lt_cv_file_magic_cmd=/usr/bin/file
6257  case $host_cpu in
6258  ia64*)
6259    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6260    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6261    ;;
6262  hppa*64*)
6263    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]'
6264    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6265    ;;
6266  *)
6267    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6268    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6269    ;;
6270  esac
6271  ;;
6272
6273interix[3-9]*)
6274  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6275  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6276  ;;
6277
6278irix5* | irix6* | nonstopux*)
6279  case $LD in
6280  *-32|*"-32 ") libmagic=32-bit;;
6281  *-n32|*"-n32 ") libmagic=N32;;
6282  *-64|*"-64 ") libmagic=64-bit;;
6283  *) libmagic=never-match;;
6284  esac
6285  lt_cv_deplibs_check_method=pass_all
6286  ;;
6287
6288# This must be glibc/ELF.
6289linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6290  lt_cv_deplibs_check_method=pass_all
6291  ;;
6292
6293netbsd*)
6294  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6295    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6296  else
6297    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6298  fi
6299  ;;
6300
6301newos6*)
6302  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6303  lt_cv_file_magic_cmd=/usr/bin/file
6304  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6305  ;;
6306
6307*nto* | *qnx*)
6308  lt_cv_deplibs_check_method=pass_all
6309  ;;
6310
6311openbsd* | bitrig*)
6312  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6313    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6314  else
6315    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6316  fi
6317  ;;
6318
6319osf3* | osf4* | osf5*)
6320  lt_cv_deplibs_check_method=pass_all
6321  ;;
6322
6323rdos*)
6324  lt_cv_deplibs_check_method=pass_all
6325  ;;
6326
6327solaris*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330
6331sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6332  lt_cv_deplibs_check_method=pass_all
6333  ;;
6334
6335sysv4 | sysv4.3*)
6336  case $host_vendor in
6337  motorola)
6338    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]'
6339    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6340    ;;
6341  ncr)
6342    lt_cv_deplibs_check_method=pass_all
6343    ;;
6344  sequent)
6345    lt_cv_file_magic_cmd='/bin/file'
6346    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6347    ;;
6348  sni)
6349    lt_cv_file_magic_cmd='/bin/file'
6350    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6351    lt_cv_file_magic_test_file=/lib/libc.so
6352    ;;
6353  siemens)
6354    lt_cv_deplibs_check_method=pass_all
6355    ;;
6356  pc)
6357    lt_cv_deplibs_check_method=pass_all
6358    ;;
6359  esac
6360  ;;
6361
6362tpf*)
6363  lt_cv_deplibs_check_method=pass_all
6364  ;;
6365os2*)
6366  lt_cv_deplibs_check_method=pass_all
6367  ;;
6368esac
6369
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6372$as_echo "$lt_cv_deplibs_check_method" >&6; }
6373
6374file_magic_glob=
6375want_nocaseglob=no
6376if test "$build" = "$host"; then
6377  case $host_os in
6378  mingw* | pw32*)
6379    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6380      want_nocaseglob=yes
6381    else
6382      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6383    fi
6384    ;;
6385  esac
6386fi
6387
6388file_magic_cmd=$lt_cv_file_magic_cmd
6389deplibs_check_method=$lt_cv_deplibs_check_method
6390test -z "$deplibs_check_method" && deplibs_check_method=unknown
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413if test -n "$ac_tool_prefix"; then
6414  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6415set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417$as_echo_n "checking for $ac_word... " >&6; }
6418if ${ac_cv_prog_DLLTOOL+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  if test -n "$DLLTOOL"; then
6422  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429    for ac_exec_ext in '' $ac_executable_extensions; do
6430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436  done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441DLLTOOL=$ac_cv_prog_DLLTOOL
6442if test -n "$DLLTOOL"; then
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6444$as_echo "$DLLTOOL" >&6; }
6445else
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450
6451fi
6452if test -z "$ac_cv_prog_DLLTOOL"; then
6453  ac_ct_DLLTOOL=$DLLTOOL
6454  # Extract the first word of "dlltool", so it can be a program name with args.
6455set dummy dlltool; ac_word=$2
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457$as_echo_n "checking for $ac_word... " >&6; }
6458if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6459  $as_echo_n "(cached) " >&6
6460else
6461  if test -n "$ac_ct_DLLTOOL"; then
6462  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467  IFS=$as_save_IFS
6468  test -z "$as_dir" && as_dir=.
6469    for ac_exec_ext in '' $ac_executable_extensions; do
6470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473    break 2
6474  fi
6475done
6476  done
6477IFS=$as_save_IFS
6478
6479fi
6480fi
6481ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6482if test -n "$ac_ct_DLLTOOL"; then
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6484$as_echo "$ac_ct_DLLTOOL" >&6; }
6485else
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487$as_echo "no" >&6; }
6488fi
6489
6490  if test "x$ac_ct_DLLTOOL" = x; then
6491    DLLTOOL="false"
6492  else
6493    case $cross_compiling:$ac_tool_warned in
6494yes:)
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497ac_tool_warned=yes ;;
6498esac
6499    DLLTOOL=$ac_ct_DLLTOOL
6500  fi
6501else
6502  DLLTOOL="$ac_cv_prog_DLLTOOL"
6503fi
6504
6505test -z "$DLLTOOL" && DLLTOOL=dlltool
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6517$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6518if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521  lt_cv_sharedlib_from_linklib_cmd='unknown'
6522
6523case $host_os in
6524cygwin* | mingw* | pw32* | cegcc*)
6525  # two different shell functions defined in ltmain.sh;
6526  # decide which one to use based on capabilities of $DLLTOOL
6527  case `$DLLTOOL --help 2>&1` in
6528  *--identify-strict*)
6529    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6530    ;;
6531  *)
6532    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6533    ;;
6534  esac
6535  ;;
6536*)
6537  # fallback: assume linklib IS sharedlib
6538  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6539  ;;
6540esac
6541
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6544$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6545sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6546test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6547
6548
6549
6550
6551
6552
6553
6554if test -n "$ac_tool_prefix"; then
6555  for ac_prog in ar
6556  do
6557    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if ${ac_cv_prog_AR+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -n "$AR"; then
6565  ac_cv_prog_AR="$AR" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572    for ac_exec_ext in '' $ac_executable_extensions; do
6573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579  done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584AR=$ac_cv_prog_AR
6585if test -n "$AR"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6587$as_echo "$AR" >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593
6594    test -n "$AR" && break
6595  done
6596fi
6597if test -z "$AR"; then
6598  ac_ct_AR=$AR
6599  for ac_prog in ar
6600do
6601  # Extract the first word of "$ac_prog", so it can be a program name with args.
6602set dummy $ac_prog; ac_word=$2
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if ${ac_cv_prog_ac_ct_AR+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  if test -n "$ac_ct_AR"; then
6609  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616    for ac_exec_ext in '' $ac_executable_extensions; do
6617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618    ac_cv_prog_ac_ct_AR="$ac_prog"
6619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623  done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_AR=$ac_cv_prog_ac_ct_AR
6629if test -n "$ac_ct_AR"; then
6630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6631$as_echo "$ac_ct_AR" >&6; }
6632else
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
6636
6637
6638  test -n "$ac_ct_AR" && break
6639done
6640
6641  if test "x$ac_ct_AR" = x; then
6642    AR="false"
6643  else
6644    case $cross_compiling:$ac_tool_warned in
6645yes:)
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648ac_tool_warned=yes ;;
6649esac
6650    AR=$ac_ct_AR
6651  fi
6652fi
6653
6654: ${AR=ar}
6655
6656
6657
6658
6659
6660
6661# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6662# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6663# higher priority because thats what people were doing historically (setting
6664# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6665# variable obsoleted/removed.
6666
6667test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6668lt_ar_flags=$AR_FLAGS
6669
6670
6671
6672
6673
6674
6675# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6676# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6677
6678
6679
6680
6681
6682
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6684$as_echo_n "checking for archiver @FILE support... " >&6; }
6685if ${lt_cv_ar_at_file+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  lt_cv_ar_at_file=no
6689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h.  */
6691
6692int
6693main ()
6694{
6695
6696  ;
6697  return 0;
6698}
6699_ACEOF
6700if ac_fn_c_try_compile "$LINENO"; then :
6701  echo conftest.$ac_objext > conftest.lst
6702      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6703      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6704  (eval $lt_ar_try) 2>&5
6705  ac_status=$?
6706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707  test $ac_status = 0; }
6708      if test 0 -eq "$ac_status"; then
6709	# Ensure the archiver fails upon bogus file names.
6710	rm -f conftest.$ac_objext libconftest.a
6711	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6712  (eval $lt_ar_try) 2>&5
6713  ac_status=$?
6714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715  test $ac_status = 0; }
6716	if test 0 -ne "$ac_status"; then
6717          lt_cv_ar_at_file=@
6718        fi
6719      fi
6720      rm -f conftest.* libconftest.a
6721
6722fi
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724
6725fi
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6727$as_echo "$lt_cv_ar_at_file" >&6; }
6728
6729if test no = "$lt_cv_ar_at_file"; then
6730  archiver_list_spec=
6731else
6732  archiver_list_spec=$lt_cv_ar_at_file
6733fi
6734
6735
6736
6737
6738
6739
6740
6741if test -n "$ac_tool_prefix"; then
6742  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6743set dummy ${ac_tool_prefix}strip; ac_word=$2
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745$as_echo_n "checking for $ac_word... " >&6; }
6746if ${ac_cv_prog_STRIP+:} false; then :
6747  $as_echo_n "(cached) " >&6
6748else
6749  if test -n "$STRIP"; then
6750  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6751else
6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755  IFS=$as_save_IFS
6756  test -z "$as_dir" && as_dir=.
6757    for ac_exec_ext in '' $ac_executable_extensions; do
6758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761    break 2
6762  fi
6763done
6764  done
6765IFS=$as_save_IFS
6766
6767fi
6768fi
6769STRIP=$ac_cv_prog_STRIP
6770if test -n "$STRIP"; then
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6772$as_echo "$STRIP" >&6; }
6773else
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775$as_echo "no" >&6; }
6776fi
6777
6778
6779fi
6780if test -z "$ac_cv_prog_STRIP"; then
6781  ac_ct_STRIP=$STRIP
6782  # Extract the first word of "strip", so it can be a program name with args.
6783set dummy strip; ac_word=$2
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785$as_echo_n "checking for $ac_word... " >&6; }
6786if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  if test -n "$ac_ct_STRIP"; then
6790  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795  IFS=$as_save_IFS
6796  test -z "$as_dir" && as_dir=.
6797    for ac_exec_ext in '' $ac_executable_extensions; do
6798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799    ac_cv_prog_ac_ct_STRIP="strip"
6800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801    break 2
6802  fi
6803done
6804  done
6805IFS=$as_save_IFS
6806
6807fi
6808fi
6809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6810if test -n "$ac_ct_STRIP"; then
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6812$as_echo "$ac_ct_STRIP" >&6; }
6813else
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
6816fi
6817
6818  if test "x$ac_ct_STRIP" = x; then
6819    STRIP=":"
6820  else
6821    case $cross_compiling:$ac_tool_warned in
6822yes:)
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825ac_tool_warned=yes ;;
6826esac
6827    STRIP=$ac_ct_STRIP
6828  fi
6829else
6830  STRIP="$ac_cv_prog_STRIP"
6831fi
6832
6833test -z "$STRIP" && STRIP=:
6834
6835
6836
6837
6838
6839
6840if test -n "$ac_tool_prefix"; then
6841  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6842set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_RANLIB+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$RANLIB"; then
6849  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868RANLIB=$ac_cv_prog_RANLIB
6869if test -n "$RANLIB"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6871$as_echo "$RANLIB" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877
6878fi
6879if test -z "$ac_cv_prog_RANLIB"; then
6880  ac_ct_RANLIB=$RANLIB
6881  # Extract the first word of "ranlib", so it can be a program name with args.
6882set dummy ranlib; ac_word=$2
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  if test -n "$ac_ct_RANLIB"; then
6889  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896    for ac_exec_ext in '' $ac_executable_extensions; do
6897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898    ac_cv_prog_ac_ct_RANLIB="ranlib"
6899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903  done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6909if test -n "$ac_ct_RANLIB"; then
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6911$as_echo "$ac_ct_RANLIB" >&6; }
6912else
6913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917  if test "x$ac_ct_RANLIB" = x; then
6918    RANLIB=":"
6919  else
6920    case $cross_compiling:$ac_tool_warned in
6921yes:)
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924ac_tool_warned=yes ;;
6925esac
6926    RANLIB=$ac_ct_RANLIB
6927  fi
6928else
6929  RANLIB="$ac_cv_prog_RANLIB"
6930fi
6931
6932test -z "$RANLIB" && RANLIB=:
6933
6934
6935
6936
6937
6938
6939# Determine commands to create old-style static archives.
6940old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6941old_postinstall_cmds='chmod 644 $oldlib'
6942old_postuninstall_cmds=
6943
6944if test -n "$RANLIB"; then
6945  case $host_os in
6946  bitrig* | openbsd*)
6947    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6948    ;;
6949  *)
6950    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6951    ;;
6952  esac
6953  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6954fi
6955
6956case $host_os in
6957  darwin*)
6958    lock_old_archive_extraction=yes ;;
6959  *)
6960    lock_old_archive_extraction=no ;;
6961esac
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001# If no C compiler was specified, use CC.
7002LTCC=${LTCC-"$CC"}
7003
7004# If no C compiler flags were specified, use CFLAGS.
7005LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7006
7007# Allow CC to be a program name with arguments.
7008compiler=$CC
7009
7010
7011# Check for command to grab the raw symbol name followed by C symbol from nm.
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7013$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7014if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017
7018# These are sane defaults that work on at least a few old systems.
7019# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7020
7021# Character class describing NM global symbol codes.
7022symcode='[BCDEGRST]'
7023
7024# Regexp to match symbols that can be accessed directly from C.
7025sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7026
7027# Define system-specific variables.
7028case $host_os in
7029aix*)
7030  symcode='[BCDT]'
7031  ;;
7032cygwin* | mingw* | pw32* | cegcc*)
7033  symcode='[ABCDGISTW]'
7034  ;;
7035hpux*)
7036  if test ia64 = "$host_cpu"; then
7037    symcode='[ABCDEGRST]'
7038  fi
7039  ;;
7040irix* | nonstopux*)
7041  symcode='[BCDEGRST]'
7042  ;;
7043osf*)
7044  symcode='[BCDEGQRST]'
7045  ;;
7046solaris*)
7047  symcode='[BDRT]'
7048  ;;
7049sco3.2v5*)
7050  symcode='[DT]'
7051  ;;
7052sysv4.2uw2*)
7053  symcode='[DT]'
7054  ;;
7055sysv5* | sco5v6* | unixware* | OpenUNIX*)
7056  symcode='[ABDT]'
7057  ;;
7058sysv4)
7059  symcode='[DFNSTU]'
7060  ;;
7061esac
7062
7063# If we're using GNU nm, then use its standard symbol codes.
7064case `$NM -V 2>&1` in
7065*GNU* | *'with BFD'*)
7066  symcode='[ABCDGIRSTW]' ;;
7067esac
7068
7069if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7070  # Gets list of data symbols to import.
7071  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7072  # Adjust the below global symbol transforms to fixup imported variables.
7073  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7074  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7075  lt_c_name_lib_hook="\
7076  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7077  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7078else
7079  # Disable hooks by default.
7080  lt_cv_sys_global_symbol_to_import=
7081  lt_cdecl_hook=
7082  lt_c_name_hook=
7083  lt_c_name_lib_hook=
7084fi
7085
7086# Transform an extracted symbol line into a proper C declaration.
7087# Some systems (esp. on ia64) link data and code symbols differently,
7088# so use this general approach.
7089lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7090$lt_cdecl_hook\
7091" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7092" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7093
7094# Transform an extracted symbol line into symbol name and symbol address
7095lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7096$lt_c_name_hook\
7097" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7098" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7099
7100# Transform an extracted symbol line into symbol name with lib prefix and
7101# symbol address.
7102lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7103$lt_c_name_lib_hook\
7104" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7105" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7106" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7107
7108# Handle CRLF in mingw tool chain
7109opt_cr=
7110case $build_os in
7111mingw*)
7112  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7113  ;;
7114esac
7115
7116# Try without a prefix underscore, then with it.
7117for ac_symprfx in "" "_"; do
7118
7119  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7120  symxfrm="\\1 $ac_symprfx\\2 \\2"
7121
7122  # Write the raw and C identifiers.
7123  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7124    # Fake it for dumpbin and say T for any non-static function,
7125    # D for any global variable and I for any imported variable.
7126    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7127    # which start with @ or ?.
7128    lt_cv_sys_global_symbol_pipe="$AWK '"\
7129"     {last_section=section; section=\$ 3};"\
7130"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7131"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7132"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7133"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7134"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7135"     \$ 0!~/External *\|/{next};"\
7136"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7137"     {if(hide[section]) next};"\
7138"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7139"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7140"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7141"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7142"     ' prfx=^$ac_symprfx"
7143  else
7144    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7145  fi
7146  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7147
7148  # Check to see that the pipe works correctly.
7149  pipe_works=no
7150
7151  rm -f conftest*
7152  cat > conftest.$ac_ext <<_LT_EOF
7153#ifdef __cplusplus
7154extern "C" {
7155#endif
7156char nm_test_var;
7157void nm_test_func(void);
7158void nm_test_func(void){}
7159#ifdef __cplusplus
7160}
7161#endif
7162int main(){nm_test_var='a';nm_test_func();return(0);}
7163_LT_EOF
7164
7165  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166  (eval $ac_compile) 2>&5
7167  ac_status=$?
7168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169  test $ac_status = 0; }; then
7170    # Now try to grab the symbols.
7171    nlist=conftest.nm
7172    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7173  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7174  ac_status=$?
7175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7176  test $ac_status = 0; } && test -s "$nlist"; then
7177      # Try sorting and uniquifying the output.
7178      if sort "$nlist" | uniq > "$nlist"T; then
7179	mv -f "$nlist"T "$nlist"
7180      else
7181	rm -f "$nlist"T
7182      fi
7183
7184      # Make sure that we snagged all the symbols we need.
7185      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7186	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7187	  cat <<_LT_EOF > conftest.$ac_ext
7188/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7189#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7190/* DATA imports from DLLs on WIN32 can't be const, because runtime
7191   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7192# define LT_DLSYM_CONST
7193#elif defined __osf__
7194/* This system does not cope well with relocations in const data.  */
7195# define LT_DLSYM_CONST
7196#else
7197# define LT_DLSYM_CONST const
7198#endif
7199
7200#ifdef __cplusplus
7201extern "C" {
7202#endif
7203
7204_LT_EOF
7205	  # Now generate the symbol file.
7206	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7207
7208	  cat <<_LT_EOF >> conftest.$ac_ext
7209
7210/* The mapping between symbol names and symbols.  */
7211LT_DLSYM_CONST struct {
7212  const char *name;
7213  void       *address;
7214}
7215lt__PROGRAM__LTX_preloaded_symbols[] =
7216{
7217  { "@PROGRAM@", (void *) 0 },
7218_LT_EOF
7219	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7220	  cat <<\_LT_EOF >> conftest.$ac_ext
7221  {0, (void *) 0}
7222};
7223
7224/* This works around a problem in FreeBSD linker */
7225#ifdef FREEBSD_WORKAROUND
7226static const void *lt_preloaded_setup() {
7227  return lt__PROGRAM__LTX_preloaded_symbols;
7228}
7229#endif
7230
7231#ifdef __cplusplus
7232}
7233#endif
7234_LT_EOF
7235	  # Now try linking the two files.
7236	  mv conftest.$ac_objext conftstm.$ac_objext
7237	  lt_globsym_save_LIBS=$LIBS
7238	  lt_globsym_save_CFLAGS=$CFLAGS
7239	  LIBS=conftstm.$ac_objext
7240	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7241	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7242  (eval $ac_link) 2>&5
7243  ac_status=$?
7244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7246	    pipe_works=yes
7247	  fi
7248	  LIBS=$lt_globsym_save_LIBS
7249	  CFLAGS=$lt_globsym_save_CFLAGS
7250	else
7251	  echo "cannot find nm_test_func in $nlist" >&5
7252	fi
7253      else
7254	echo "cannot find nm_test_var in $nlist" >&5
7255      fi
7256    else
7257      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7258    fi
7259  else
7260    echo "$progname: failed program was:" >&5
7261    cat conftest.$ac_ext >&5
7262  fi
7263  rm -rf conftest* conftst*
7264
7265  # Do not use the global_symbol_pipe unless it works.
7266  if test yes = "$pipe_works"; then
7267    break
7268  else
7269    lt_cv_sys_global_symbol_pipe=
7270  fi
7271done
7272
7273fi
7274
7275if test -z "$lt_cv_sys_global_symbol_pipe"; then
7276  lt_cv_sys_global_symbol_to_cdecl=
7277fi
7278if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7280$as_echo "failed" >&6; }
7281else
7282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7283$as_echo "ok" >&6; }
7284fi
7285
7286# Response file support.
7287if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7288  nm_file_list_spec='@'
7289elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7290  nm_file_list_spec='@'
7291fi
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7330$as_echo_n "checking for sysroot... " >&6; }
7331
7332# Check whether --with-sysroot was given.
7333if test "${with_sysroot+set}" = set; then :
7334  withval=$with_sysroot;
7335else
7336  with_sysroot=no
7337fi
7338
7339
7340lt_sysroot=
7341case $with_sysroot in #(
7342 yes)
7343   if test yes = "$GCC"; then
7344     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7345   fi
7346   ;; #(
7347 /*)
7348   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7349   ;; #(
7350 no|'')
7351   ;; #(
7352 *)
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7354$as_echo "$with_sysroot" >&6; }
7355   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7356   ;;
7357esac
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7360$as_echo "${lt_sysroot:-no}" >&6; }
7361
7362
7363
7364
7365
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7367$as_echo_n "checking for a working dd... " >&6; }
7368if ${ac_cv_path_lt_DD+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  printf 0123456789abcdef0123456789abcdef >conftest.i
7372cat conftest.i conftest.i >conftest2.i
7373: ${lt_DD:=$DD}
7374if test -z "$lt_DD"; then
7375  ac_path_lt_DD_found=false
7376  # Loop through the user's path and test for each of PROGNAME-LIST
7377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380  IFS=$as_save_IFS
7381  test -z "$as_dir" && as_dir=.
7382    for ac_prog in dd; do
7383    for ac_exec_ext in '' $ac_executable_extensions; do
7384      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7385      as_fn_executable_p "$ac_path_lt_DD" || continue
7386if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7387  cmp -s conftest.i conftest.out \
7388  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7389fi
7390      $ac_path_lt_DD_found && break 3
7391    done
7392  done
7393  done
7394IFS=$as_save_IFS
7395  if test -z "$ac_cv_path_lt_DD"; then
7396    :
7397  fi
7398else
7399  ac_cv_path_lt_DD=$lt_DD
7400fi
7401
7402rm -f conftest.i conftest2.i conftest.out
7403fi
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7405$as_echo "$ac_cv_path_lt_DD" >&6; }
7406
7407
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7409$as_echo_n "checking how to truncate binary pipes... " >&6; }
7410if ${lt_cv_truncate_bin+:} false; then :
7411  $as_echo_n "(cached) " >&6
7412else
7413  printf 0123456789abcdef0123456789abcdef >conftest.i
7414cat conftest.i conftest.i >conftest2.i
7415lt_cv_truncate_bin=
7416if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7417  cmp -s conftest.i conftest.out \
7418  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7419fi
7420rm -f conftest.i conftest2.i conftest.out
7421test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7422fi
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7424$as_echo "$lt_cv_truncate_bin" >&6; }
7425
7426
7427
7428
7429
7430
7431
7432# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7433func_cc_basename ()
7434{
7435    for cc_temp in $*""; do
7436      case $cc_temp in
7437        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7438        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7439        \-*) ;;
7440        *) break;;
7441      esac
7442    done
7443    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7444}
7445
7446# Check whether --enable-libtool-lock was given.
7447if test "${enable_libtool_lock+set}" = set; then :
7448  enableval=$enable_libtool_lock;
7449fi
7450
7451test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7452
7453# Some flags need to be propagated to the compiler or linker for good
7454# libtool support.
7455case $host in
7456ia64-*-hpux*)
7457  # Find out what ABI is being produced by ac_compile, and set mode
7458  # options accordingly.
7459  echo 'int i;' > conftest.$ac_ext
7460  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461  (eval $ac_compile) 2>&5
7462  ac_status=$?
7463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464  test $ac_status = 0; }; then
7465    case `/usr/bin/file conftest.$ac_objext` in
7466      *ELF-32*)
7467	HPUX_IA64_MODE=32
7468	;;
7469      *ELF-64*)
7470	HPUX_IA64_MODE=64
7471	;;
7472    esac
7473  fi
7474  rm -rf conftest*
7475  ;;
7476*-*-irix6*)
7477  # Find out what ABI is being produced by ac_compile, and set linker
7478  # options accordingly.
7479  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7480  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7481  (eval $ac_compile) 2>&5
7482  ac_status=$?
7483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7484  test $ac_status = 0; }; then
7485    if test yes = "$lt_cv_prog_gnu_ld"; then
7486      case `/usr/bin/file conftest.$ac_objext` in
7487	*32-bit*)
7488	  LD="${LD-ld} -melf32bsmip"
7489	  ;;
7490	*N32*)
7491	  LD="${LD-ld} -melf32bmipn32"
7492	  ;;
7493	*64-bit*)
7494	  LD="${LD-ld} -melf64bmip"
7495	;;
7496      esac
7497    else
7498      case `/usr/bin/file conftest.$ac_objext` in
7499	*32-bit*)
7500	  LD="${LD-ld} -32"
7501	  ;;
7502	*N32*)
7503	  LD="${LD-ld} -n32"
7504	  ;;
7505	*64-bit*)
7506	  LD="${LD-ld} -64"
7507	  ;;
7508      esac
7509    fi
7510  fi
7511  rm -rf conftest*
7512  ;;
7513
7514mips64*-*linux*)
7515  # Find out what ABI is being produced by ac_compile, and set linker
7516  # options accordingly.
7517  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7518  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7519  (eval $ac_compile) 2>&5
7520  ac_status=$?
7521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522  test $ac_status = 0; }; then
7523    emul=elf
7524    case `/usr/bin/file conftest.$ac_objext` in
7525      *32-bit*)
7526	emul="${emul}32"
7527	;;
7528      *64-bit*)
7529	emul="${emul}64"
7530	;;
7531    esac
7532    case `/usr/bin/file conftest.$ac_objext` in
7533      *MSB*)
7534	emul="${emul}btsmip"
7535	;;
7536      *LSB*)
7537	emul="${emul}ltsmip"
7538	;;
7539    esac
7540    case `/usr/bin/file conftest.$ac_objext` in
7541      *N32*)
7542	emul="${emul}n32"
7543	;;
7544    esac
7545    LD="${LD-ld} -m $emul"
7546  fi
7547  rm -rf conftest*
7548  ;;
7549
7550x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7551s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7552  # Find out what ABI is being produced by ac_compile, and set linker
7553  # options accordingly.  Note that the listed cases only cover the
7554  # situations where additional linker options are needed (such as when
7555  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7556  # vice versa); the common cases where no linker options are needed do
7557  # not appear in the list.
7558  echo 'int i;' > conftest.$ac_ext
7559  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560  (eval $ac_compile) 2>&5
7561  ac_status=$?
7562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563  test $ac_status = 0; }; then
7564    case `/usr/bin/file conftest.o` in
7565      *32-bit*)
7566	case $host in
7567	  x86_64-*kfreebsd*-gnu)
7568	    LD="${LD-ld} -m elf_i386_fbsd"
7569	    ;;
7570	  x86_64-*linux*)
7571	    case `/usr/bin/file conftest.o` in
7572	      *x86-64*)
7573		LD="${LD-ld} -m elf32_x86_64"
7574		;;
7575	      *)
7576		LD="${LD-ld} -m elf_i386"
7577		;;
7578	    esac
7579	    ;;
7580	  powerpc64le-*linux*)
7581	    LD="${LD-ld} -m elf32lppclinux"
7582	    ;;
7583	  powerpc64-*linux*)
7584	    LD="${LD-ld} -m elf32ppclinux"
7585	    ;;
7586	  s390x-*linux*)
7587	    LD="${LD-ld} -m elf_s390"
7588	    ;;
7589	  sparc64-*linux*)
7590	    LD="${LD-ld} -m elf32_sparc"
7591	    ;;
7592	esac
7593	;;
7594      *64-bit*)
7595	case $host in
7596	  x86_64-*kfreebsd*-gnu)
7597	    LD="${LD-ld} -m elf_x86_64_fbsd"
7598	    ;;
7599	  x86_64-*linux*)
7600	    LD="${LD-ld} -m elf_x86_64"
7601	    ;;
7602	  powerpcle-*linux*)
7603	    LD="${LD-ld} -m elf64lppc"
7604	    ;;
7605	  powerpc-*linux*)
7606	    LD="${LD-ld} -m elf64ppc"
7607	    ;;
7608	  s390*-*linux*|s390*-*tpf*)
7609	    LD="${LD-ld} -m elf64_s390"
7610	    ;;
7611	  sparc*-*linux*)
7612	    LD="${LD-ld} -m elf64_sparc"
7613	    ;;
7614	esac
7615	;;
7616    esac
7617  fi
7618  rm -rf conftest*
7619  ;;
7620
7621*-*-sco3.2v5*)
7622  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7623  SAVE_CFLAGS=$CFLAGS
7624  CFLAGS="$CFLAGS -belf"
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7626$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7627if ${lt_cv_cc_needs_belf+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  ac_ext=c
7631ac_cpp='$CPP $CPPFLAGS'
7632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h.  */
7638
7639int
7640main ()
7641{
7642
7643  ;
7644  return 0;
7645}
7646_ACEOF
7647if ac_fn_c_try_link "$LINENO"; then :
7648  lt_cv_cc_needs_belf=yes
7649else
7650  lt_cv_cc_needs_belf=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext \
7653    conftest$ac_exeext conftest.$ac_ext
7654     ac_ext=c
7655ac_cpp='$CPP $CPPFLAGS'
7656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7662$as_echo "$lt_cv_cc_needs_belf" >&6; }
7663  if test yes != "$lt_cv_cc_needs_belf"; then
7664    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7665    CFLAGS=$SAVE_CFLAGS
7666  fi
7667  ;;
7668*-*solaris*)
7669  # Find out what ABI is being produced by ac_compile, and set linker
7670  # options accordingly.
7671  echo 'int i;' > conftest.$ac_ext
7672  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7673  (eval $ac_compile) 2>&5
7674  ac_status=$?
7675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676  test $ac_status = 0; }; then
7677    case `/usr/bin/file conftest.o` in
7678    *64-bit*)
7679      case $lt_cv_prog_gnu_ld in
7680      yes*)
7681        case $host in
7682        i?86-*-solaris*|x86_64-*-solaris*)
7683          LD="${LD-ld} -m elf_x86_64"
7684          ;;
7685        sparc*-*-solaris*)
7686          LD="${LD-ld} -m elf64_sparc"
7687          ;;
7688        esac
7689        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7690        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7691          LD=${LD-ld}_sol2
7692        fi
7693        ;;
7694      *)
7695	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7696	  LD="${LD-ld} -64"
7697	fi
7698	;;
7699      esac
7700      ;;
7701    esac
7702  fi
7703  rm -rf conftest*
7704  ;;
7705esac
7706
7707need_locks=$enable_libtool_lock
7708
7709if test -n "$ac_tool_prefix"; then
7710  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7711set dummy ${ac_tool_prefix}mt; ac_word=$2
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713$as_echo_n "checking for $ac_word... " >&6; }
7714if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  if test -n "$MANIFEST_TOOL"; then
7718  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725    for ac_exec_ext in '' $ac_executable_extensions; do
7726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732  done
7733IFS=$as_save_IFS
7734
7735fi
7736fi
7737MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7738if test -n "$MANIFEST_TOOL"; then
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7740$as_echo "$MANIFEST_TOOL" >&6; }
7741else
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746
7747fi
7748if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7749  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7750  # Extract the first word of "mt", so it can be a program name with args.
7751set dummy mt; ac_word=$2
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753$as_echo_n "checking for $ac_word... " >&6; }
7754if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  if test -n "$ac_ct_MANIFEST_TOOL"; then
7758  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763  IFS=$as_save_IFS
7764  test -z "$as_dir" && as_dir=.
7765    for ac_exec_ext in '' $ac_executable_extensions; do
7766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769    break 2
7770  fi
7771done
7772  done
7773IFS=$as_save_IFS
7774
7775fi
7776fi
7777ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7778if test -n "$ac_ct_MANIFEST_TOOL"; then
7779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7780$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7781else
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783$as_echo "no" >&6; }
7784fi
7785
7786  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7787    MANIFEST_TOOL=":"
7788  else
7789    case $cross_compiling:$ac_tool_warned in
7790yes:)
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7793ac_tool_warned=yes ;;
7794esac
7795    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7796  fi
7797else
7798  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7799fi
7800
7801test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7803$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7804if ${lt_cv_path_mainfest_tool+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  lt_cv_path_mainfest_tool=no
7808  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7809  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7810  cat conftest.err >&5
7811  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7812    lt_cv_path_mainfest_tool=yes
7813  fi
7814  rm -f conftest*
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7817$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7818if test yes != "$lt_cv_path_mainfest_tool"; then
7819  MANIFEST_TOOL=:
7820fi
7821
7822
7823
7824
7825
7826
7827  case $host_os in
7828    rhapsody* | darwin*)
7829    if test -n "$ac_tool_prefix"; then
7830  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7831set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833$as_echo_n "checking for $ac_word... " >&6; }
7834if ${ac_cv_prog_DSYMUTIL+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  if test -n "$DSYMUTIL"; then
7838  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7839else
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843  IFS=$as_save_IFS
7844  test -z "$as_dir" && as_dir=.
7845    for ac_exec_ext in '' $ac_executable_extensions; do
7846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849    break 2
7850  fi
7851done
7852  done
7853IFS=$as_save_IFS
7854
7855fi
7856fi
7857DSYMUTIL=$ac_cv_prog_DSYMUTIL
7858if test -n "$DSYMUTIL"; then
7859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7860$as_echo "$DSYMUTIL" >&6; }
7861else
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863$as_echo "no" >&6; }
7864fi
7865
7866
7867fi
7868if test -z "$ac_cv_prog_DSYMUTIL"; then
7869  ac_ct_DSYMUTIL=$DSYMUTIL
7870  # Extract the first word of "dsymutil", so it can be a program name with args.
7871set dummy dsymutil; ac_word=$2
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873$as_echo_n "checking for $ac_word... " >&6; }
7874if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7875  $as_echo_n "(cached) " >&6
7876else
7877  if test -n "$ac_ct_DSYMUTIL"; then
7878  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7879else
7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $PATH
7882do
7883  IFS=$as_save_IFS
7884  test -z "$as_dir" && as_dir=.
7885    for ac_exec_ext in '' $ac_executable_extensions; do
7886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889    break 2
7890  fi
7891done
7892  done
7893IFS=$as_save_IFS
7894
7895fi
7896fi
7897ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7898if test -n "$ac_ct_DSYMUTIL"; then
7899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7900$as_echo "$ac_ct_DSYMUTIL" >&6; }
7901else
7902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903$as_echo "no" >&6; }
7904fi
7905
7906  if test "x$ac_ct_DSYMUTIL" = x; then
7907    DSYMUTIL=":"
7908  else
7909    case $cross_compiling:$ac_tool_warned in
7910yes:)
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7913ac_tool_warned=yes ;;
7914esac
7915    DSYMUTIL=$ac_ct_DSYMUTIL
7916  fi
7917else
7918  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7919fi
7920
7921    if test -n "$ac_tool_prefix"; then
7922  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7923set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925$as_echo_n "checking for $ac_word... " >&6; }
7926if ${ac_cv_prog_NMEDIT+:} false; then :
7927  $as_echo_n "(cached) " >&6
7928else
7929  if test -n "$NMEDIT"; then
7930  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7931else
7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933for as_dir in $PATH
7934do
7935  IFS=$as_save_IFS
7936  test -z "$as_dir" && as_dir=.
7937    for ac_exec_ext in '' $ac_executable_extensions; do
7938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941    break 2
7942  fi
7943done
7944  done
7945IFS=$as_save_IFS
7946
7947fi
7948fi
7949NMEDIT=$ac_cv_prog_NMEDIT
7950if test -n "$NMEDIT"; then
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7952$as_echo "$NMEDIT" >&6; }
7953else
7954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955$as_echo "no" >&6; }
7956fi
7957
7958
7959fi
7960if test -z "$ac_cv_prog_NMEDIT"; then
7961  ac_ct_NMEDIT=$NMEDIT
7962  # Extract the first word of "nmedit", so it can be a program name with args.
7963set dummy nmedit; ac_word=$2
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965$as_echo_n "checking for $ac_word... " >&6; }
7966if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  if test -n "$ac_ct_NMEDIT"; then
7970  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7971else
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975  IFS=$as_save_IFS
7976  test -z "$as_dir" && as_dir=.
7977    for ac_exec_ext in '' $ac_executable_extensions; do
7978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981    break 2
7982  fi
7983done
7984  done
7985IFS=$as_save_IFS
7986
7987fi
7988fi
7989ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7990if test -n "$ac_ct_NMEDIT"; then
7991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7992$as_echo "$ac_ct_NMEDIT" >&6; }
7993else
7994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996fi
7997
7998  if test "x$ac_ct_NMEDIT" = x; then
7999    NMEDIT=":"
8000  else
8001    case $cross_compiling:$ac_tool_warned in
8002yes:)
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005ac_tool_warned=yes ;;
8006esac
8007    NMEDIT=$ac_ct_NMEDIT
8008  fi
8009else
8010  NMEDIT="$ac_cv_prog_NMEDIT"
8011fi
8012
8013    if test -n "$ac_tool_prefix"; then
8014  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8015set dummy ${ac_tool_prefix}lipo; ac_word=$2
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017$as_echo_n "checking for $ac_word... " >&6; }
8018if ${ac_cv_prog_LIPO+:} false; then :
8019  $as_echo_n "(cached) " >&6
8020else
8021  if test -n "$LIPO"; then
8022  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8023else
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027  IFS=$as_save_IFS
8028  test -z "$as_dir" && as_dir=.
8029    for ac_exec_ext in '' $ac_executable_extensions; do
8030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033    break 2
8034  fi
8035done
8036  done
8037IFS=$as_save_IFS
8038
8039fi
8040fi
8041LIPO=$ac_cv_prog_LIPO
8042if test -n "$LIPO"; then
8043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8044$as_echo "$LIPO" >&6; }
8045else
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047$as_echo "no" >&6; }
8048fi
8049
8050
8051fi
8052if test -z "$ac_cv_prog_LIPO"; then
8053  ac_ct_LIPO=$LIPO
8054  # Extract the first word of "lipo", so it can be a program name with args.
8055set dummy lipo; ac_word=$2
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
8058if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8059  $as_echo_n "(cached) " >&6
8060else
8061  if test -n "$ac_ct_LIPO"; then
8062  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067  IFS=$as_save_IFS
8068  test -z "$as_dir" && as_dir=.
8069    for ac_exec_ext in '' $ac_executable_extensions; do
8070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071    ac_cv_prog_ac_ct_LIPO="lipo"
8072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073    break 2
8074  fi
8075done
8076  done
8077IFS=$as_save_IFS
8078
8079fi
8080fi
8081ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8082if test -n "$ac_ct_LIPO"; then
8083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8084$as_echo "$ac_ct_LIPO" >&6; }
8085else
8086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
8088fi
8089
8090  if test "x$ac_ct_LIPO" = x; then
8091    LIPO=":"
8092  else
8093    case $cross_compiling:$ac_tool_warned in
8094yes:)
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097ac_tool_warned=yes ;;
8098esac
8099    LIPO=$ac_ct_LIPO
8100  fi
8101else
8102  LIPO="$ac_cv_prog_LIPO"
8103fi
8104
8105    if test -n "$ac_tool_prefix"; then
8106  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8107set dummy ${ac_tool_prefix}otool; ac_word=$2
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109$as_echo_n "checking for $ac_word... " >&6; }
8110if ${ac_cv_prog_OTOOL+:} false; then :
8111  $as_echo_n "(cached) " >&6
8112else
8113  if test -n "$OTOOL"; then
8114  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8115else
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
8118do
8119  IFS=$as_save_IFS
8120  test -z "$as_dir" && as_dir=.
8121    for ac_exec_ext in '' $ac_executable_extensions; do
8122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125    break 2
8126  fi
8127done
8128  done
8129IFS=$as_save_IFS
8130
8131fi
8132fi
8133OTOOL=$ac_cv_prog_OTOOL
8134if test -n "$OTOOL"; then
8135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8136$as_echo "$OTOOL" >&6; }
8137else
8138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
8140fi
8141
8142
8143fi
8144if test -z "$ac_cv_prog_OTOOL"; then
8145  ac_ct_OTOOL=$OTOOL
8146  # Extract the first word of "otool", so it can be a program name with args.
8147set dummy otool; ac_word=$2
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149$as_echo_n "checking for $ac_word... " >&6; }
8150if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153  if test -n "$ac_ct_OTOOL"; then
8154  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8155else
8156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157for as_dir in $PATH
8158do
8159  IFS=$as_save_IFS
8160  test -z "$as_dir" && as_dir=.
8161    for ac_exec_ext in '' $ac_executable_extensions; do
8162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163    ac_cv_prog_ac_ct_OTOOL="otool"
8164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165    break 2
8166  fi
8167done
8168  done
8169IFS=$as_save_IFS
8170
8171fi
8172fi
8173ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8174if test -n "$ac_ct_OTOOL"; then
8175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8176$as_echo "$ac_ct_OTOOL" >&6; }
8177else
8178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179$as_echo "no" >&6; }
8180fi
8181
8182  if test "x$ac_ct_OTOOL" = x; then
8183    OTOOL=":"
8184  else
8185    case $cross_compiling:$ac_tool_warned in
8186yes:)
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189ac_tool_warned=yes ;;
8190esac
8191    OTOOL=$ac_ct_OTOOL
8192  fi
8193else
8194  OTOOL="$ac_cv_prog_OTOOL"
8195fi
8196
8197    if test -n "$ac_tool_prefix"; then
8198  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8199set dummy ${ac_tool_prefix}otool64; ac_word=$2
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
8202if ${ac_cv_prog_OTOOL64+:} false; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205  if test -n "$OTOOL64"; then
8206  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211  IFS=$as_save_IFS
8212  test -z "$as_dir" && as_dir=.
8213    for ac_exec_ext in '' $ac_executable_extensions; do
8214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217    break 2
8218  fi
8219done
8220  done
8221IFS=$as_save_IFS
8222
8223fi
8224fi
8225OTOOL64=$ac_cv_prog_OTOOL64
8226if test -n "$OTOOL64"; then
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8228$as_echo "$OTOOL64" >&6; }
8229else
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
8232fi
8233
8234
8235fi
8236if test -z "$ac_cv_prog_OTOOL64"; then
8237  ac_ct_OTOOL64=$OTOOL64
8238  # Extract the first word of "otool64", so it can be a program name with args.
8239set dummy otool64; ac_word=$2
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241$as_echo_n "checking for $ac_word... " >&6; }
8242if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  if test -n "$ac_ct_OTOOL64"; then
8246  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8247else
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251  IFS=$as_save_IFS
8252  test -z "$as_dir" && as_dir=.
8253    for ac_exec_ext in '' $ac_executable_extensions; do
8254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255    ac_cv_prog_ac_ct_OTOOL64="otool64"
8256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257    break 2
8258  fi
8259done
8260  done
8261IFS=$as_save_IFS
8262
8263fi
8264fi
8265ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8266if test -n "$ac_ct_OTOOL64"; then
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8268$as_echo "$ac_ct_OTOOL64" >&6; }
8269else
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273
8274  if test "x$ac_ct_OTOOL64" = x; then
8275    OTOOL64=":"
8276  else
8277    case $cross_compiling:$ac_tool_warned in
8278yes:)
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8281ac_tool_warned=yes ;;
8282esac
8283    OTOOL64=$ac_ct_OTOOL64
8284  fi
8285else
8286  OTOOL64="$ac_cv_prog_OTOOL64"
8287fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8316$as_echo_n "checking for -single_module linker flag... " >&6; }
8317if ${lt_cv_apple_cc_single_mod+:} false; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320  lt_cv_apple_cc_single_mod=no
8321      if test -z "$LT_MULTI_MODULE"; then
8322	# By default we will add the -single_module flag. You can override
8323	# by either setting the environment variable LT_MULTI_MODULE
8324	# non-empty at configure time, or by adding -multi_module to the
8325	# link flags.
8326	rm -rf libconftest.dylib*
8327	echo "int foo(void){return 1;}" > conftest.c
8328	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8329-dynamiclib -Wl,-single_module conftest.c" >&5
8330	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8331	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8332        _lt_result=$?
8333	# If there is a non-empty error log, and "single_module"
8334	# appears in it, assume the flag caused a linker warning
8335        if test -s conftest.err && $GREP single_module conftest.err; then
8336	  cat conftest.err >&5
8337	# Otherwise, if the output was created with a 0 exit code from
8338	# the compiler, it worked.
8339	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8340	  lt_cv_apple_cc_single_mod=yes
8341	else
8342	  cat conftest.err >&5
8343	fi
8344	rm -rf libconftest.dylib*
8345	rm -f conftest.*
8346      fi
8347fi
8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8349$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8350
8351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8352$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8353if ${lt_cv_ld_exported_symbols_list+:} false; then :
8354  $as_echo_n "(cached) " >&6
8355else
8356  lt_cv_ld_exported_symbols_list=no
8357      save_LDFLAGS=$LDFLAGS
8358      echo "_main" > conftest.sym
8359      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8360      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h.  */
8362
8363int
8364main ()
8365{
8366
8367  ;
8368  return 0;
8369}
8370_ACEOF
8371if ac_fn_c_try_link "$LINENO"; then :
8372  lt_cv_ld_exported_symbols_list=yes
8373else
8374  lt_cv_ld_exported_symbols_list=no
8375fi
8376rm -f core conftest.err conftest.$ac_objext \
8377    conftest$ac_exeext conftest.$ac_ext
8378	LDFLAGS=$save_LDFLAGS
8379
8380fi
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8382$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8383
8384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8385$as_echo_n "checking for -force_load linker flag... " >&6; }
8386if ${lt_cv_ld_force_load+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  lt_cv_ld_force_load=no
8390      cat > conftest.c << _LT_EOF
8391int forced_loaded() { return 2;}
8392_LT_EOF
8393      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8394      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8395      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8396      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8397      echo "$RANLIB libconftest.a" >&5
8398      $RANLIB libconftest.a 2>&5
8399      cat > conftest.c << _LT_EOF
8400int main() { return 0;}
8401_LT_EOF
8402      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8403      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8404      _lt_result=$?
8405      if test -s conftest.err && $GREP force_load conftest.err; then
8406	cat conftest.err >&5
8407      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8408	lt_cv_ld_force_load=yes
8409      else
8410	cat conftest.err >&5
8411      fi
8412        rm -f conftest.err libconftest.a conftest conftest.c
8413        rm -rf conftest.dSYM
8414
8415fi
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8417$as_echo "$lt_cv_ld_force_load" >&6; }
8418    case $host_os in
8419    rhapsody* | darwin1.[012])
8420      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8421    darwin1.*)
8422      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8423    darwin*) # darwin 5.x on
8424      # if running on 10.5 or later, the deployment target defaults
8425      # to the OS version, if on x86, and 10.4, the deployment
8426      # target defaults to 10.4. Don't you love it?
8427      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8428	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8429	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8430	10.[012][,.]*)
8431	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8432	10.*)
8433	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8434      esac
8435    ;;
8436  esac
8437    if test yes = "$lt_cv_apple_cc_single_mod"; then
8438      _lt_dar_single_mod='$single_module'
8439    fi
8440    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8441      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8442    else
8443      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8444    fi
8445    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8446      _lt_dsymutil='~$DSYMUTIL $lib || :'
8447    else
8448      _lt_dsymutil=
8449    fi
8450    ;;
8451  esac
8452
8453# func_munge_path_list VARIABLE PATH
8454# -----------------------------------
8455# VARIABLE is name of variable containing _space_ separated list of
8456# directories to be munged by the contents of PATH, which is string
8457# having a format:
8458# "DIR[:DIR]:"
8459#       string "DIR[ DIR]" will be prepended to VARIABLE
8460# ":DIR[:DIR]"
8461#       string "DIR[ DIR]" will be appended to VARIABLE
8462# "DIRP[:DIRP]::[DIRA:]DIRA"
8463#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8464#       "DIRA[ DIRA]" will be appended to VARIABLE
8465# "DIR[:DIR]"
8466#       VARIABLE will be replaced by "DIR[ DIR]"
8467func_munge_path_list ()
8468{
8469    case x$2 in
8470    x)
8471        ;;
8472    *:)
8473        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8474        ;;
8475    x:*)
8476        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8477        ;;
8478    *::*)
8479        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8480        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8481        ;;
8482    *)
8483        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8484        ;;
8485    esac
8486}
8487
8488for ac_header in dlfcn.h
8489do :
8490  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8491"
8492if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8493  cat >>confdefs.h <<_ACEOF
8494#define HAVE_DLFCN_H 1
8495_ACEOF
8496
8497fi
8498
8499done
8500
8501
8502
8503
8504
8505# Set options
8506
8507
8508
8509        enable_dlopen=no
8510
8511
8512  enable_win32_dll=no
8513
8514
8515            # Check whether --enable-shared was given.
8516if test "${enable_shared+set}" = set; then :
8517  enableval=$enable_shared; p=${PACKAGE-default}
8518    case $enableval in
8519    yes) enable_shared=yes ;;
8520    no) enable_shared=no ;;
8521    *)
8522      enable_shared=no
8523      # Look at the argument we got.  We use all the common list separators.
8524      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8525      for pkg in $enableval; do
8526	IFS=$lt_save_ifs
8527	if test "X$pkg" = "X$p"; then
8528	  enable_shared=yes
8529	fi
8530      done
8531      IFS=$lt_save_ifs
8532      ;;
8533    esac
8534else
8535  enable_shared=yes
8536fi
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546  # Check whether --enable-static was given.
8547if test "${enable_static+set}" = set; then :
8548  enableval=$enable_static; p=${PACKAGE-default}
8549    case $enableval in
8550    yes) enable_static=yes ;;
8551    no) enable_static=no ;;
8552    *)
8553     enable_static=no
8554      # Look at the argument we got.  We use all the common list separators.
8555      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8556      for pkg in $enableval; do
8557	IFS=$lt_save_ifs
8558	if test "X$pkg" = "X$p"; then
8559	  enable_static=yes
8560	fi
8561      done
8562      IFS=$lt_save_ifs
8563      ;;
8564    esac
8565else
8566  enable_static=yes
8567fi
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578# Check whether --with-pic was given.
8579if test "${with_pic+set}" = set; then :
8580  withval=$with_pic; lt_p=${PACKAGE-default}
8581    case $withval in
8582    yes|no) pic_mode=$withval ;;
8583    *)
8584      pic_mode=default
8585      # Look at the argument we got.  We use all the common list separators.
8586      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8587      for lt_pkg in $withval; do
8588	IFS=$lt_save_ifs
8589	if test "X$lt_pkg" = "X$lt_p"; then
8590	  pic_mode=yes
8591	fi
8592      done
8593      IFS=$lt_save_ifs
8594      ;;
8595    esac
8596else
8597  pic_mode=default
8598fi
8599
8600
8601
8602
8603
8604
8605
8606
8607  # Check whether --enable-fast-install was given.
8608if test "${enable_fast_install+set}" = set; then :
8609  enableval=$enable_fast_install; p=${PACKAGE-default}
8610    case $enableval in
8611    yes) enable_fast_install=yes ;;
8612    no) enable_fast_install=no ;;
8613    *)
8614      enable_fast_install=no
8615      # Look at the argument we got.  We use all the common list separators.
8616      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8617      for pkg in $enableval; do
8618	IFS=$lt_save_ifs
8619	if test "X$pkg" = "X$p"; then
8620	  enable_fast_install=yes
8621	fi
8622      done
8623      IFS=$lt_save_ifs
8624      ;;
8625    esac
8626else
8627  enable_fast_install=yes
8628fi
8629
8630
8631
8632
8633
8634
8635
8636
8637  shared_archive_member_spec=
8638case $host,$enable_shared in
8639power*-*-aix[5-9]*,yes)
8640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8641$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8642
8643# Check whether --with-aix-soname was given.
8644if test "${with_aix_soname+set}" = set; then :
8645  withval=$with_aix_soname; case $withval in
8646    aix|svr4|both)
8647      ;;
8648    *)
8649      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8650      ;;
8651    esac
8652    lt_cv_with_aix_soname=$with_aix_soname
8653else
8654  if ${lt_cv_with_aix_soname+:} false; then :
8655  $as_echo_n "(cached) " >&6
8656else
8657  lt_cv_with_aix_soname=aix
8658fi
8659
8660    with_aix_soname=$lt_cv_with_aix_soname
8661fi
8662
8663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8664$as_echo "$with_aix_soname" >&6; }
8665  if test aix != "$with_aix_soname"; then
8666    # For the AIX way of multilib, we name the shared archive member
8667    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8668    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8669    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8670    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8671    if test 64 = "${OBJECT_MODE-32}"; then
8672      shared_archive_member_spec=shr_64
8673    else
8674      shared_archive_member_spec=shr
8675    fi
8676  fi
8677  ;;
8678*)
8679  with_aix_soname=aix
8680  ;;
8681esac
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692# This can be used to rebuild libtool when needed
8693LIBTOOL_DEPS=$ltmain
8694
8695# Always use our own libtool.
8696LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727test -z "$LN_S" && LN_S="ln -s"
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742if test -n "${ZSH_VERSION+set}"; then
8743   setopt NO_GLOB_SUBST
8744fi
8745
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8747$as_echo_n "checking for objdir... " >&6; }
8748if ${lt_cv_objdir+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  rm -f .libs 2>/dev/null
8752mkdir .libs 2>/dev/null
8753if test -d .libs; then
8754  lt_cv_objdir=.libs
8755else
8756  # MS-DOS does not allow filenames that begin with a dot.
8757  lt_cv_objdir=_libs
8758fi
8759rmdir .libs 2>/dev/null
8760fi
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8762$as_echo "$lt_cv_objdir" >&6; }
8763objdir=$lt_cv_objdir
8764
8765
8766
8767
8768
8769cat >>confdefs.h <<_ACEOF
8770#define LT_OBJDIR "$lt_cv_objdir/"
8771_ACEOF
8772
8773
8774
8775
8776case $host_os in
8777aix3*)
8778  # AIX sometimes has problems with the GCC collect2 program.  For some
8779  # reason, if we set the COLLECT_NAMES environment variable, the problems
8780  # vanish in a puff of smoke.
8781  if test set != "${COLLECT_NAMES+set}"; then
8782    COLLECT_NAMES=
8783    export COLLECT_NAMES
8784  fi
8785  ;;
8786esac
8787
8788# Global variables:
8789ofile=libtool
8790can_build_shared=yes
8791
8792# All known linkers require a '.a' archive for static linking (except MSVC and
8793# ICC, which need '.lib').
8794libext=a
8795
8796with_gnu_ld=$lt_cv_prog_gnu_ld
8797
8798old_CC=$CC
8799old_CFLAGS=$CFLAGS
8800
8801# Set sane defaults for various variables
8802test -z "$CC" && CC=cc
8803test -z "$LTCC" && LTCC=$CC
8804test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8805test -z "$LD" && LD=ld
8806test -z "$ac_objext" && ac_objext=o
8807
8808func_cc_basename $compiler
8809cc_basename=$func_cc_basename_result
8810
8811
8812# Only perform the check for file, if the check method requires it
8813test -z "$MAGIC_CMD" && MAGIC_CMD=file
8814case $deplibs_check_method in
8815file_magic*)
8816  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8817    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8818$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8819if ${lt_cv_path_MAGIC_CMD+:} false; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  case $MAGIC_CMD in
8823[\\/*] |  ?:[\\/]*)
8824  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8825  ;;
8826*)
8827  lt_save_MAGIC_CMD=$MAGIC_CMD
8828  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8829  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8830  for ac_dir in $ac_dummy; do
8831    IFS=$lt_save_ifs
8832    test -z "$ac_dir" && ac_dir=.
8833    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8834      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8835      if test -n "$file_magic_test_file"; then
8836	case $deplibs_check_method in
8837	"file_magic "*)
8838	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8839	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8840	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8841	    $EGREP "$file_magic_regex" > /dev/null; then
8842	    :
8843	  else
8844	    cat <<_LT_EOF 1>&2
8845
8846*** Warning: the command libtool uses to detect shared libraries,
8847*** $file_magic_cmd, produces output that libtool cannot recognize.
8848*** The result is that libtool may fail to recognize shared libraries
8849*** as such.  This will affect the creation of libtool libraries that
8850*** depend on shared libraries, but programs linked with such libtool
8851*** libraries will work regardless of this problem.  Nevertheless, you
8852*** may want to report the problem to your system manager and/or to
8853*** bug-libtool@gnu.org
8854
8855_LT_EOF
8856	  fi ;;
8857	esac
8858      fi
8859      break
8860    fi
8861  done
8862  IFS=$lt_save_ifs
8863  MAGIC_CMD=$lt_save_MAGIC_CMD
8864  ;;
8865esac
8866fi
8867
8868MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8869if test -n "$MAGIC_CMD"; then
8870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8871$as_echo "$MAGIC_CMD" >&6; }
8872else
8873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874$as_echo "no" >&6; }
8875fi
8876
8877
8878
8879
8880
8881if test -z "$lt_cv_path_MAGIC_CMD"; then
8882  if test -n "$ac_tool_prefix"; then
8883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8884$as_echo_n "checking for file... " >&6; }
8885if ${lt_cv_path_MAGIC_CMD+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  case $MAGIC_CMD in
8889[\\/*] |  ?:[\\/]*)
8890  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8891  ;;
8892*)
8893  lt_save_MAGIC_CMD=$MAGIC_CMD
8894  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8895  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8896  for ac_dir in $ac_dummy; do
8897    IFS=$lt_save_ifs
8898    test -z "$ac_dir" && ac_dir=.
8899    if test -f "$ac_dir/file"; then
8900      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8901      if test -n "$file_magic_test_file"; then
8902	case $deplibs_check_method in
8903	"file_magic "*)
8904	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8905	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8906	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8907	    $EGREP "$file_magic_regex" > /dev/null; then
8908	    :
8909	  else
8910	    cat <<_LT_EOF 1>&2
8911
8912*** Warning: the command libtool uses to detect shared libraries,
8913*** $file_magic_cmd, produces output that libtool cannot recognize.
8914*** The result is that libtool may fail to recognize shared libraries
8915*** as such.  This will affect the creation of libtool libraries that
8916*** depend on shared libraries, but programs linked with such libtool
8917*** libraries will work regardless of this problem.  Nevertheless, you
8918*** may want to report the problem to your system manager and/or to
8919*** bug-libtool@gnu.org
8920
8921_LT_EOF
8922	  fi ;;
8923	esac
8924      fi
8925      break
8926    fi
8927  done
8928  IFS=$lt_save_ifs
8929  MAGIC_CMD=$lt_save_MAGIC_CMD
8930  ;;
8931esac
8932fi
8933
8934MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8935if test -n "$MAGIC_CMD"; then
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8937$as_echo "$MAGIC_CMD" >&6; }
8938else
8939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940$as_echo "no" >&6; }
8941fi
8942
8943
8944  else
8945    MAGIC_CMD=:
8946  fi
8947fi
8948
8949  fi
8950  ;;
8951esac
8952
8953# Use C for the default configuration in the libtool script
8954
8955lt_save_CC=$CC
8956ac_ext=c
8957ac_cpp='$CPP $CPPFLAGS'
8958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
8962
8963# Source file extension for C test sources.
8964ac_ext=c
8965
8966# Object file extension for compiled C test sources.
8967objext=o
8968objext=$objext
8969
8970# Code to be used in simple compile tests
8971lt_simple_compile_test_code="int some_variable = 0;"
8972
8973# Code to be used in simple link tests
8974lt_simple_link_test_code='int main(){return(0);}'
8975
8976
8977
8978
8979
8980
8981
8982# If no C compiler was specified, use CC.
8983LTCC=${LTCC-"$CC"}
8984
8985# If no C compiler flags were specified, use CFLAGS.
8986LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8987
8988# Allow CC to be a program name with arguments.
8989compiler=$CC
8990
8991# Save the default compiler, since it gets overwritten when the other
8992# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8993compiler_DEFAULT=$CC
8994
8995# save warnings/boilerplate of simple test code
8996ac_outfile=conftest.$ac_objext
8997echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8999_lt_compiler_boilerplate=`cat conftest.err`
9000$RM conftest*
9001
9002ac_outfile=conftest.$ac_objext
9003echo "$lt_simple_link_test_code" >conftest.$ac_ext
9004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9005_lt_linker_boilerplate=`cat conftest.err`
9006$RM -r conftest*
9007
9008
9009## CAVEAT EMPTOR:
9010## There is no encapsulation within the following macros, do not change
9011## the running order or otherwise move them around unless you know exactly
9012## what you are doing...
9013if test -n "$compiler"; then
9014
9015lt_prog_compiler_no_builtin_flag=
9016
9017if test yes = "$GCC"; then
9018  case $cc_basename in
9019  nvcc*)
9020    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9021  *)
9022    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9023  esac
9024
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9026$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9027if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9028  $as_echo_n "(cached) " >&6
9029else
9030  lt_cv_prog_compiler_rtti_exceptions=no
9031   ac_outfile=conftest.$ac_objext
9032   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9033   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9034   # Insert the option either (1) after the last *FLAGS variable, or
9035   # (2) before a word containing "conftest.", or (3) at the end.
9036   # Note that $ac_compile itself does not contain backslashes and begins
9037   # with a dollar sign (not a hyphen), so the echo should work correctly.
9038   # The option is referenced via a variable to avoid confusing sed.
9039   lt_compile=`echo "$ac_compile" | $SED \
9040   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9042   -e 's:$: $lt_compiler_flag:'`
9043   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9044   (eval "$lt_compile" 2>conftest.err)
9045   ac_status=$?
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   if (exit $ac_status) && test -s "$ac_outfile"; then
9049     # The compiler can only warn and ignore the option if not recognized
9050     # So say no if there are warnings other than the usual output.
9051     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9052     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9053     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9054       lt_cv_prog_compiler_rtti_exceptions=yes
9055     fi
9056   fi
9057   $RM conftest*
9058
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9061$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9062
9063if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9064    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9065else
9066    :
9067fi
9068
9069fi
9070
9071
9072
9073
9074
9075
9076  lt_prog_compiler_wl=
9077lt_prog_compiler_pic=
9078lt_prog_compiler_static=
9079
9080
9081  if test yes = "$GCC"; then
9082    lt_prog_compiler_wl='-Wl,'
9083    lt_prog_compiler_static='-static'
9084
9085    case $host_os in
9086      aix*)
9087      # All AIX code is PIC.
9088      if test ia64 = "$host_cpu"; then
9089	# AIX 5 now supports IA64 processor
9090	lt_prog_compiler_static='-Bstatic'
9091      fi
9092      lt_prog_compiler_pic='-fPIC'
9093      ;;
9094
9095    amigaos*)
9096      case $host_cpu in
9097      powerpc)
9098            # see comment about AmigaOS4 .so support
9099            lt_prog_compiler_pic='-fPIC'
9100        ;;
9101      m68k)
9102            # FIXME: we need at least 68020 code to build shared libraries, but
9103            # adding the '-m68020' flag to GCC prevents building anything better,
9104            # like '-m68040'.
9105            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9106        ;;
9107      esac
9108      ;;
9109
9110    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9111      # PIC is the default for these OSes.
9112      ;;
9113
9114    mingw* | cygwin* | pw32* | os2* | cegcc*)
9115      # This hack is so that the source file can tell whether it is being
9116      # built for inclusion in a dll (and should export symbols for example).
9117      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9118      # (--disable-auto-import) libraries
9119      lt_prog_compiler_pic='-DDLL_EXPORT'
9120      case $host_os in
9121      os2*)
9122	lt_prog_compiler_static='$wl-static'
9123	;;
9124      esac
9125      ;;
9126
9127    darwin* | rhapsody*)
9128      # PIC is the default on this platform
9129      # Common symbols not allowed in MH_DYLIB files
9130      lt_prog_compiler_pic='-fno-common'
9131      ;;
9132
9133    haiku*)
9134      # PIC is the default for Haiku.
9135      # The "-static" flag exists, but is broken.
9136      lt_prog_compiler_static=
9137      ;;
9138
9139    hpux*)
9140      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9141      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9142      # sets the default TLS model and affects inlining.
9143      case $host_cpu in
9144      hppa*64*)
9145	# +Z the default
9146	;;
9147      *)
9148	lt_prog_compiler_pic='-fPIC'
9149	;;
9150      esac
9151      ;;
9152
9153    interix[3-9]*)
9154      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9155      # Instead, we relocate shared libraries at runtime.
9156      ;;
9157
9158    msdosdjgpp*)
9159      # Just because we use GCC doesn't mean we suddenly get shared libraries
9160      # on systems that don't support them.
9161      lt_prog_compiler_can_build_shared=no
9162      enable_shared=no
9163      ;;
9164
9165    *nto* | *qnx*)
9166      # QNX uses GNU C++, but need to define -shared option too, otherwise
9167      # it will coredump.
9168      lt_prog_compiler_pic='-fPIC -shared'
9169      ;;
9170
9171    sysv4*MP*)
9172      if test -d /usr/nec; then
9173	lt_prog_compiler_pic=-Kconform_pic
9174      fi
9175      ;;
9176
9177    *)
9178      lt_prog_compiler_pic='-fPIC'
9179      ;;
9180    esac
9181
9182    case $cc_basename in
9183    nvcc*) # Cuda Compiler Driver 2.2
9184      lt_prog_compiler_wl='-Xlinker '
9185      if test -n "$lt_prog_compiler_pic"; then
9186        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9187      fi
9188      ;;
9189    esac
9190  else
9191    # PORTME Check for flag to pass linker flags through the system compiler.
9192    case $host_os in
9193    aix*)
9194      lt_prog_compiler_wl='-Wl,'
9195      if test ia64 = "$host_cpu"; then
9196	# AIX 5 now supports IA64 processor
9197	lt_prog_compiler_static='-Bstatic'
9198      else
9199	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9200      fi
9201      ;;
9202
9203    darwin* | rhapsody*)
9204      # PIC is the default on this platform
9205      # Common symbols not allowed in MH_DYLIB files
9206      lt_prog_compiler_pic='-fno-common'
9207      case $cc_basename in
9208      nagfor*)
9209        # NAG Fortran compiler
9210        lt_prog_compiler_wl='-Wl,-Wl,,'
9211        lt_prog_compiler_pic='-PIC'
9212        lt_prog_compiler_static='-Bstatic'
9213        ;;
9214      esac
9215      ;;
9216
9217    mingw* | cygwin* | pw32* | os2* | cegcc*)
9218      # This hack is so that the source file can tell whether it is being
9219      # built for inclusion in a dll (and should export symbols for example).
9220      lt_prog_compiler_pic='-DDLL_EXPORT'
9221      case $host_os in
9222      os2*)
9223	lt_prog_compiler_static='$wl-static'
9224	;;
9225      esac
9226      ;;
9227
9228    hpux9* | hpux10* | hpux11*)
9229      lt_prog_compiler_wl='-Wl,'
9230      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9231      # not for PA HP-UX.
9232      case $host_cpu in
9233      hppa*64*|ia64*)
9234	# +Z the default
9235	;;
9236      *)
9237	lt_prog_compiler_pic='+Z'
9238	;;
9239      esac
9240      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9241      lt_prog_compiler_static='$wl-a ${wl}archive'
9242      ;;
9243
9244    irix5* | irix6* | nonstopux*)
9245      lt_prog_compiler_wl='-Wl,'
9246      # PIC (with -KPIC) is the default.
9247      lt_prog_compiler_static='-non_shared'
9248      ;;
9249
9250    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9251      case $cc_basename in
9252      # old Intel for x86_64, which still supported -KPIC.
9253      ecc*)
9254	lt_prog_compiler_wl='-Wl,'
9255	lt_prog_compiler_pic='-KPIC'
9256	lt_prog_compiler_static='-static'
9257        ;;
9258      # icc used to be incompatible with GCC.
9259      # ICC 10 doesn't accept -KPIC any more.
9260      icc* | ifort*)
9261	lt_prog_compiler_wl='-Wl,'
9262	lt_prog_compiler_pic='-fPIC'
9263	lt_prog_compiler_static='-static'
9264        ;;
9265      # Lahey Fortran 8.1.
9266      lf95*)
9267	lt_prog_compiler_wl='-Wl,'
9268	lt_prog_compiler_pic='--shared'
9269	lt_prog_compiler_static='--static'
9270	;;
9271      nagfor*)
9272	# NAG Fortran compiler
9273	lt_prog_compiler_wl='-Wl,-Wl,,'
9274	lt_prog_compiler_pic='-PIC'
9275	lt_prog_compiler_static='-Bstatic'
9276	;;
9277      tcc*)
9278	# Fabrice Bellard et al's Tiny C Compiler
9279	lt_prog_compiler_wl='-Wl,'
9280	lt_prog_compiler_pic='-fPIC'
9281	lt_prog_compiler_static='-static'
9282	;;
9283      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9284        # Portland Group compilers (*not* the Pentium gcc compiler,
9285	# which looks to be a dead project)
9286	lt_prog_compiler_wl='-Wl,'
9287	lt_prog_compiler_pic='-fpic'
9288	lt_prog_compiler_static='-Bstatic'
9289        ;;
9290      ccc*)
9291        lt_prog_compiler_wl='-Wl,'
9292        # All Alpha code is PIC.
9293        lt_prog_compiler_static='-non_shared'
9294        ;;
9295      xl* | bgxl* | bgf* | mpixl*)
9296	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9297	lt_prog_compiler_wl='-Wl,'
9298	lt_prog_compiler_pic='-qpic'
9299	lt_prog_compiler_static='-qstaticlink'
9300	;;
9301      *)
9302	case `$CC -V 2>&1 | sed 5q` in
9303	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9304	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9305	  lt_prog_compiler_pic='-KPIC'
9306	  lt_prog_compiler_static='-Bstatic'
9307	  lt_prog_compiler_wl=''
9308	  ;;
9309	*Sun\ F* | *Sun*Fortran*)
9310	  lt_prog_compiler_pic='-KPIC'
9311	  lt_prog_compiler_static='-Bstatic'
9312	  lt_prog_compiler_wl='-Qoption ld '
9313	  ;;
9314	*Sun\ C*)
9315	  # Sun C 5.9
9316	  lt_prog_compiler_pic='-KPIC'
9317	  lt_prog_compiler_static='-Bstatic'
9318	  lt_prog_compiler_wl='-Wl,'
9319	  ;;
9320        *Intel*\ [CF]*Compiler*)
9321	  lt_prog_compiler_wl='-Wl,'
9322	  lt_prog_compiler_pic='-fPIC'
9323	  lt_prog_compiler_static='-static'
9324	  ;;
9325	*Portland\ Group*)
9326	  lt_prog_compiler_wl='-Wl,'
9327	  lt_prog_compiler_pic='-fpic'
9328	  lt_prog_compiler_static='-Bstatic'
9329	  ;;
9330	esac
9331	;;
9332      esac
9333      ;;
9334
9335    newsos6)
9336      lt_prog_compiler_pic='-KPIC'
9337      lt_prog_compiler_static='-Bstatic'
9338      ;;
9339
9340    *nto* | *qnx*)
9341      # QNX uses GNU C++, but need to define -shared option too, otherwise
9342      # it will coredump.
9343      lt_prog_compiler_pic='-fPIC -shared'
9344      ;;
9345
9346    osf3* | osf4* | osf5*)
9347      lt_prog_compiler_wl='-Wl,'
9348      # All OSF/1 code is PIC.
9349      lt_prog_compiler_static='-non_shared'
9350      ;;
9351
9352    rdos*)
9353      lt_prog_compiler_static='-non_shared'
9354      ;;
9355
9356    solaris*)
9357      lt_prog_compiler_pic='-KPIC'
9358      lt_prog_compiler_static='-Bstatic'
9359      case $cc_basename in
9360      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9361	lt_prog_compiler_wl='-Qoption ld ';;
9362      *)
9363	lt_prog_compiler_wl='-Wl,';;
9364      esac
9365      ;;
9366
9367    sunos4*)
9368      lt_prog_compiler_wl='-Qoption ld '
9369      lt_prog_compiler_pic='-PIC'
9370      lt_prog_compiler_static='-Bstatic'
9371      ;;
9372
9373    sysv4 | sysv4.2uw2* | sysv4.3*)
9374      lt_prog_compiler_wl='-Wl,'
9375      lt_prog_compiler_pic='-KPIC'
9376      lt_prog_compiler_static='-Bstatic'
9377      ;;
9378
9379    sysv4*MP*)
9380      if test -d /usr/nec; then
9381	lt_prog_compiler_pic='-Kconform_pic'
9382	lt_prog_compiler_static='-Bstatic'
9383      fi
9384      ;;
9385
9386    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9387      lt_prog_compiler_wl='-Wl,'
9388      lt_prog_compiler_pic='-KPIC'
9389      lt_prog_compiler_static='-Bstatic'
9390      ;;
9391
9392    unicos*)
9393      lt_prog_compiler_wl='-Wl,'
9394      lt_prog_compiler_can_build_shared=no
9395      ;;
9396
9397    uts4*)
9398      lt_prog_compiler_pic='-pic'
9399      lt_prog_compiler_static='-Bstatic'
9400      ;;
9401
9402    *)
9403      lt_prog_compiler_can_build_shared=no
9404      ;;
9405    esac
9406  fi
9407
9408case $host_os in
9409  # For platforms that do not support PIC, -DPIC is meaningless:
9410  *djgpp*)
9411    lt_prog_compiler_pic=
9412    ;;
9413  *)
9414    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9415    ;;
9416esac
9417
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9419$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9420if ${lt_cv_prog_compiler_pic+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9424fi
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9426$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9427lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9428
9429#
9430# Check to make sure the PIC flag actually works.
9431#
9432if test -n "$lt_prog_compiler_pic"; then
9433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9434$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9435if ${lt_cv_prog_compiler_pic_works+:} false; then :
9436  $as_echo_n "(cached) " >&6
9437else
9438  lt_cv_prog_compiler_pic_works=no
9439   ac_outfile=conftest.$ac_objext
9440   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9441   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9442   # Insert the option either (1) after the last *FLAGS variable, or
9443   # (2) before a word containing "conftest.", or (3) at the end.
9444   # Note that $ac_compile itself does not contain backslashes and begins
9445   # with a dollar sign (not a hyphen), so the echo should work correctly.
9446   # The option is referenced via a variable to avoid confusing sed.
9447   lt_compile=`echo "$ac_compile" | $SED \
9448   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9449   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9450   -e 's:$: $lt_compiler_flag:'`
9451   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9452   (eval "$lt_compile" 2>conftest.err)
9453   ac_status=$?
9454   cat conftest.err >&5
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   if (exit $ac_status) && test -s "$ac_outfile"; then
9457     # The compiler can only warn and ignore the option if not recognized
9458     # So say no if there are warnings other than the usual output.
9459     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9460     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9461     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9462       lt_cv_prog_compiler_pic_works=yes
9463     fi
9464   fi
9465   $RM conftest*
9466
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9469$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9470
9471if test yes = "$lt_cv_prog_compiler_pic_works"; then
9472    case $lt_prog_compiler_pic in
9473     "" | " "*) ;;
9474     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9475     esac
9476else
9477    lt_prog_compiler_pic=
9478     lt_prog_compiler_can_build_shared=no
9479fi
9480
9481fi
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493#
9494# Check to make sure the static flag actually works.
9495#
9496wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9498$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9499if ${lt_cv_prog_compiler_static_works+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  lt_cv_prog_compiler_static_works=no
9503   save_LDFLAGS=$LDFLAGS
9504   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9505   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9506   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9507     # The linker can only warn and ignore the option if not recognized
9508     # So say no if there are warnings
9509     if test -s conftest.err; then
9510       # Append any errors to the config.log.
9511       cat conftest.err 1>&5
9512       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9513       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9514       if diff conftest.exp conftest.er2 >/dev/null; then
9515         lt_cv_prog_compiler_static_works=yes
9516       fi
9517     else
9518       lt_cv_prog_compiler_static_works=yes
9519     fi
9520   fi
9521   $RM -r conftest*
9522   LDFLAGS=$save_LDFLAGS
9523
9524fi
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9526$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9527
9528if test yes = "$lt_cv_prog_compiler_static_works"; then
9529    :
9530else
9531    lt_prog_compiler_static=
9532fi
9533
9534
9535
9536
9537
9538
9539
9540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9541$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9542if ${lt_cv_prog_compiler_c_o+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  lt_cv_prog_compiler_c_o=no
9546   $RM -r conftest 2>/dev/null
9547   mkdir conftest
9548   cd conftest
9549   mkdir out
9550   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9551
9552   lt_compiler_flag="-o out/conftest2.$ac_objext"
9553   # Insert the option either (1) after the last *FLAGS variable, or
9554   # (2) before a word containing "conftest.", or (3) at the end.
9555   # Note that $ac_compile itself does not contain backslashes and begins
9556   # with a dollar sign (not a hyphen), so the echo should work correctly.
9557   lt_compile=`echo "$ac_compile" | $SED \
9558   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9559   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9560   -e 's:$: $lt_compiler_flag:'`
9561   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9562   (eval "$lt_compile" 2>out/conftest.err)
9563   ac_status=$?
9564   cat out/conftest.err >&5
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9567   then
9568     # The compiler can only warn and ignore the option if not recognized
9569     # So say no if there are warnings
9570     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9571     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9572     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9573       lt_cv_prog_compiler_c_o=yes
9574     fi
9575   fi
9576   chmod u+w . 2>&5
9577   $RM conftest*
9578   # SGI C++ compiler will create directory out/ii_files/ for
9579   # template instantiation
9580   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9581   $RM out/* && rmdir out
9582   cd ..
9583   $RM -r conftest
9584   $RM conftest*
9585
9586fi
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9588$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9589
9590
9591
9592
9593
9594
9595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9596$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9597if ${lt_cv_prog_compiler_c_o+:} false; then :
9598  $as_echo_n "(cached) " >&6
9599else
9600  lt_cv_prog_compiler_c_o=no
9601   $RM -r conftest 2>/dev/null
9602   mkdir conftest
9603   cd conftest
9604   mkdir out
9605   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9606
9607   lt_compiler_flag="-o out/conftest2.$ac_objext"
9608   # Insert the option either (1) after the last *FLAGS variable, or
9609   # (2) before a word containing "conftest.", or (3) at the end.
9610   # Note that $ac_compile itself does not contain backslashes and begins
9611   # with a dollar sign (not a hyphen), so the echo should work correctly.
9612   lt_compile=`echo "$ac_compile" | $SED \
9613   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9614   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9615   -e 's:$: $lt_compiler_flag:'`
9616   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9617   (eval "$lt_compile" 2>out/conftest.err)
9618   ac_status=$?
9619   cat out/conftest.err >&5
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9622   then
9623     # The compiler can only warn and ignore the option if not recognized
9624     # So say no if there are warnings
9625     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9626     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9627     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9628       lt_cv_prog_compiler_c_o=yes
9629     fi
9630   fi
9631   chmod u+w . 2>&5
9632   $RM conftest*
9633   # SGI C++ compiler will create directory out/ii_files/ for
9634   # template instantiation
9635   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9636   $RM out/* && rmdir out
9637   cd ..
9638   $RM -r conftest
9639   $RM conftest*
9640
9641fi
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9643$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9644
9645
9646
9647
9648hard_links=nottested
9649if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9650  # do not overwrite the value of need_locks provided by the user
9651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9652$as_echo_n "checking if we can lock with hard links... " >&6; }
9653  hard_links=yes
9654  $RM conftest*
9655  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9656  touch conftest.a
9657  ln conftest.a conftest.b 2>&5 || hard_links=no
9658  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9660$as_echo "$hard_links" >&6; }
9661  if test no = "$hard_links"; then
9662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9663$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9664    need_locks=warn
9665  fi
9666else
9667  need_locks=no
9668fi
9669
9670
9671
9672
9673
9674
9675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9676$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9677
9678  runpath_var=
9679  allow_undefined_flag=
9680  always_export_symbols=no
9681  archive_cmds=
9682  archive_expsym_cmds=
9683  compiler_needs_object=no
9684  enable_shared_with_static_runtimes=no
9685  export_dynamic_flag_spec=
9686  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9687  hardcode_automatic=no
9688  hardcode_direct=no
9689  hardcode_direct_absolute=no
9690  hardcode_libdir_flag_spec=
9691  hardcode_libdir_separator=
9692  hardcode_minus_L=no
9693  hardcode_shlibpath_var=unsupported
9694  inherit_rpath=no
9695  link_all_deplibs=unknown
9696  module_cmds=
9697  module_expsym_cmds=
9698  old_archive_from_new_cmds=
9699  old_archive_from_expsyms_cmds=
9700  thread_safe_flag_spec=
9701  whole_archive_flag_spec=
9702  # include_expsyms should be a list of space-separated symbols to be *always*
9703  # included in the symbol list
9704  include_expsyms=
9705  # exclude_expsyms can be an extended regexp of symbols to exclude
9706  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9707  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9708  # as well as any symbol that contains 'd'.
9709  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9710  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9711  # platforms (ab)use it in PIC code, but their linkers get confused if
9712  # the symbol is explicitly referenced.  Since portable code cannot
9713  # rely on this symbol name, it's probably fine to never include it in
9714  # preloaded symbol tables.
9715  # Exclude shared library initialization/finalization symbols.
9716  extract_expsyms_cmds=
9717
9718  case $host_os in
9719  cygwin* | mingw* | pw32* | cegcc*)
9720    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9721    # When not using gcc, we currently assume that we are using
9722    # Microsoft Visual C++ or Intel C++ Compiler.
9723    if test yes != "$GCC"; then
9724      with_gnu_ld=no
9725    fi
9726    ;;
9727  interix*)
9728    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9729    with_gnu_ld=yes
9730    ;;
9731  openbsd* | bitrig*)
9732    with_gnu_ld=no
9733    ;;
9734  esac
9735
9736  ld_shlibs=yes
9737
9738  # On some targets, GNU ld is compatible enough with the native linker
9739  # that we're better off using the native interface for both.
9740  lt_use_gnu_ld_interface=no
9741  if test yes = "$with_gnu_ld"; then
9742    case $host_os in
9743      aix*)
9744	# The AIX port of GNU ld has always aspired to compatibility
9745	# with the native linker.  However, as the warning in the GNU ld
9746	# block says, versions before 2.19.5* couldn't really create working
9747	# shared libraries, regardless of the interface used.
9748	case `$LD -v 2>&1` in
9749	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9750	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9751	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9752	  *)
9753	    lt_use_gnu_ld_interface=yes
9754	    ;;
9755	esac
9756	;;
9757      *)
9758	lt_use_gnu_ld_interface=yes
9759	;;
9760    esac
9761  fi
9762
9763  if test yes = "$lt_use_gnu_ld_interface"; then
9764    # If archive_cmds runs LD, not CC, wlarc should be empty
9765    wlarc='$wl'
9766
9767    # Set some defaults for GNU ld with shared library support. These
9768    # are reset later if shared libraries are not supported. Putting them
9769    # here allows them to be overridden if necessary.
9770    runpath_var=LD_RUN_PATH
9771    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9772    export_dynamic_flag_spec='$wl--export-dynamic'
9773    # ancient GNU ld didn't support --whole-archive et. al.
9774    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9775      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9776    else
9777      whole_archive_flag_spec=
9778    fi
9779    supports_anon_versioning=no
9780    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9781      *GNU\ gold*) supports_anon_versioning=yes ;;
9782      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9783      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9784      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9785      *\ 2.11.*) ;; # other 2.11 versions
9786      *) supports_anon_versioning=yes ;;
9787    esac
9788
9789    # See if GNU ld supports shared libraries.
9790    case $host_os in
9791    aix[3-9]*)
9792      # On AIX/PPC, the GNU linker is very broken
9793      if test ia64 != "$host_cpu"; then
9794	ld_shlibs=no
9795	cat <<_LT_EOF 1>&2
9796
9797*** Warning: the GNU linker, at least up to release 2.19, is reported
9798*** to be unable to reliably create shared libraries on AIX.
9799*** Therefore, libtool is disabling shared libraries support.  If you
9800*** really care for shared libraries, you may want to install binutils
9801*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9802*** You will then need to restart the configuration process.
9803
9804_LT_EOF
9805      fi
9806      ;;
9807
9808    amigaos*)
9809      case $host_cpu in
9810      powerpc)
9811            # see comment about AmigaOS4 .so support
9812            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9813            archive_expsym_cmds=''
9814        ;;
9815      m68k)
9816            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)'
9817            hardcode_libdir_flag_spec='-L$libdir'
9818            hardcode_minus_L=yes
9819        ;;
9820      esac
9821      ;;
9822
9823    beos*)
9824      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9825	allow_undefined_flag=unsupported
9826	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9827	# support --undefined.  This deserves some investigation.  FIXME
9828	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9829      else
9830	ld_shlibs=no
9831      fi
9832      ;;
9833
9834    cygwin* | mingw* | pw32* | cegcc*)
9835      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9836      # as there is no search path for DLLs.
9837      hardcode_libdir_flag_spec='-L$libdir'
9838      export_dynamic_flag_spec='$wl--export-all-symbols'
9839      allow_undefined_flag=unsupported
9840      always_export_symbols=no
9841      enable_shared_with_static_runtimes=yes
9842      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'
9843      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9844
9845      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9846        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9847	# If the export-symbols file already is a .def file, use it as
9848	# is; otherwise, prepend EXPORTS...
9849	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9850          cp $export_symbols $output_objdir/$soname.def;
9851        else
9852          echo EXPORTS > $output_objdir/$soname.def;
9853          cat $export_symbols >> $output_objdir/$soname.def;
9854        fi~
9855        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9856      else
9857	ld_shlibs=no
9858      fi
9859      ;;
9860
9861    haiku*)
9862      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9863      link_all_deplibs=yes
9864      ;;
9865
9866    os2*)
9867      hardcode_libdir_flag_spec='-L$libdir'
9868      hardcode_minus_L=yes
9869      allow_undefined_flag=unsupported
9870      shrext_cmds=.dll
9871      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9872	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9873	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9874	$ECHO EXPORTS >> $output_objdir/$libname.def~
9875	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9876	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9877	emximp -o $lib $output_objdir/$libname.def'
9878      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9879	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9880	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9881	$ECHO EXPORTS >> $output_objdir/$libname.def~
9882	prefix_cmds="$SED"~
9883	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9884	  prefix_cmds="$prefix_cmds -e 1d";
9885	fi~
9886	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9887	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9888	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9889	emximp -o $lib $output_objdir/$libname.def'
9890      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9891      enable_shared_with_static_runtimes=yes
9892      file_list_spec='@'
9893      ;;
9894
9895    interix[3-9]*)
9896      hardcode_direct=no
9897      hardcode_shlibpath_var=no
9898      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9899      export_dynamic_flag_spec='$wl-E'
9900      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9901      # Instead, shared libraries are loaded at an image base (0x10000000 by
9902      # default) and relocated if they conflict, which is a slow very memory
9903      # consuming and fragmenting process.  To avoid this, we pick a random,
9904      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9905      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9906      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9907      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'
9908      ;;
9909
9910    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9911      tmp_diet=no
9912      if test linux-dietlibc = "$host_os"; then
9913	case $cc_basename in
9914	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9915	esac
9916      fi
9917      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9918	 && test no = "$tmp_diet"
9919      then
9920	tmp_addflag=' $pic_flag'
9921	tmp_sharedflag='-shared'
9922	case $cc_basename,$host_cpu in
9923        pgcc*)				# Portland Group C compiler
9924	  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'
9925	  tmp_addflag=' $pic_flag'
9926	  ;;
9927	pgf77* | pgf90* | pgf95* | pgfortran*)
9928					# Portland Group f77 and f90 compilers
9929	  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'
9930	  tmp_addflag=' $pic_flag -Mnomain' ;;
9931	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9932	  tmp_addflag=' -i_dynamic' ;;
9933	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9934	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9935	ifc* | ifort*)			# Intel Fortran compiler
9936	  tmp_addflag=' -nofor_main' ;;
9937	lf95*)				# Lahey Fortran 8.1
9938	  whole_archive_flag_spec=
9939	  tmp_sharedflag='--shared' ;;
9940        nagfor*)                        # NAGFOR 5.3
9941          tmp_sharedflag='-Wl,-shared' ;;
9942	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9943	  tmp_sharedflag='-qmkshrobj'
9944	  tmp_addflag= ;;
9945	nvcc*)	# Cuda Compiler Driver 2.2
9946	  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'
9947	  compiler_needs_object=yes
9948	  ;;
9949	esac
9950	case `$CC -V 2>&1 | sed 5q` in
9951	*Sun\ C*)			# Sun C 5.9
9952	  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'
9953	  compiler_needs_object=yes
9954	  tmp_sharedflag='-G' ;;
9955	*Sun\ F*)			# Sun Fortran 8.3
9956	  tmp_sharedflag='-G' ;;
9957	esac
9958	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9959
9960        if test yes = "$supports_anon_versioning"; then
9961          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9962            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9963            echo "local: *; };" >> $output_objdir/$libname.ver~
9964            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9965        fi
9966
9967	case $cc_basename in
9968	tcc*)
9969	  export_dynamic_flag_spec='-rdynamic'
9970	  ;;
9971	xlf* | bgf* | bgxlf* | mpixlf*)
9972	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9973	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9974	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9975	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9976	  if test yes = "$supports_anon_versioning"; then
9977	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9978              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9979              echo "local: *; };" >> $output_objdir/$libname.ver~
9980              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9981	  fi
9982	  ;;
9983	esac
9984      else
9985        ld_shlibs=no
9986      fi
9987      ;;
9988
9989    netbsd*)
9990      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9991	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9992	wlarc=
9993      else
9994	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9995	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9996      fi
9997      ;;
9998
9999    solaris*)
10000      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10001	ld_shlibs=no
10002	cat <<_LT_EOF 1>&2
10003
10004*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10005*** create shared libraries on Solaris systems.  Therefore, libtool
10006*** is disabling shared libraries support.  We urge you to upgrade GNU
10007*** binutils to release 2.9.1 or newer.  Another option is to modify
10008*** your PATH or compiler configuration so that the native linker is
10009*** used, and then restart.
10010
10011_LT_EOF
10012      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10013	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10014	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10015      else
10016	ld_shlibs=no
10017      fi
10018      ;;
10019
10020    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10021      case `$LD -v 2>&1` in
10022        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10023	ld_shlibs=no
10024	cat <<_LT_EOF 1>&2
10025
10026*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10027*** reliably create shared libraries on SCO systems.  Therefore, libtool
10028*** is disabling shared libraries support.  We urge you to upgrade GNU
10029*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10030*** your PATH or compiler configuration so that the native linker is
10031*** used, and then restart.
10032
10033_LT_EOF
10034	;;
10035	*)
10036	  # For security reasons, it is highly recommended that you always
10037	  # use absolute paths for naming shared libraries, and exclude the
10038	  # DT_RUNPATH tag from executables and libraries.  But doing so
10039	  # requires that you compile everything twice, which is a pain.
10040	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10041	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10042	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10043	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10044	  else
10045	    ld_shlibs=no
10046	  fi
10047	;;
10048      esac
10049      ;;
10050
10051    sunos4*)
10052      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10053      wlarc=
10054      hardcode_direct=yes
10055      hardcode_shlibpath_var=no
10056      ;;
10057
10058    *)
10059      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10060	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10061	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10062      else
10063	ld_shlibs=no
10064      fi
10065      ;;
10066    esac
10067
10068    if test no = "$ld_shlibs"; then
10069      runpath_var=
10070      hardcode_libdir_flag_spec=
10071      export_dynamic_flag_spec=
10072      whole_archive_flag_spec=
10073    fi
10074  else
10075    # PORTME fill in a description of your system's linker (not GNU ld)
10076    case $host_os in
10077    aix3*)
10078      allow_undefined_flag=unsupported
10079      always_export_symbols=yes
10080      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'
10081      # Note: this linker hardcodes the directories in LIBPATH if there
10082      # are no directories specified by -L.
10083      hardcode_minus_L=yes
10084      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10085	# Neither direct hardcoding nor static linking is supported with a
10086	# broken collect2.
10087	hardcode_direct=unsupported
10088      fi
10089      ;;
10090
10091    aix[4-9]*)
10092      if test ia64 = "$host_cpu"; then
10093	# On IA64, the linker does run time linking by default, so we don't
10094	# have to do anything special.
10095	aix_use_runtimelinking=no
10096	exp_sym_flag='-Bexport'
10097	no_entry_flag=
10098      else
10099	# If we're using GNU nm, then we don't want the "-C" option.
10100	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10101	# Without the "-l" option, or with the "-B" option, AIX nm treats
10102	# weak defined symbols like other global defined symbols, whereas
10103	# GNU nm marks them as "W".
10104	# While the 'weak' keyword is ignored in the Export File, we need
10105	# it in the Import File for the 'aix-soname' feature, so we have
10106	# to replace the "-B" option with "-P" for AIX nm.
10107	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10108	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10109	else
10110	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10111	fi
10112	aix_use_runtimelinking=no
10113
10114	# Test if we are trying to use run time linking or normal
10115	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10116	# have runtime linking enabled, and use it for executables.
10117	# For shared libraries, we enable/disable runtime linking
10118	# depending on the kind of the shared library created -
10119	# when "with_aix_soname,aix_use_runtimelinking" is:
10120	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10121	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10122	#            lib.a           static archive
10123	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10124	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10125	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10126	#            lib.a(lib.so.V) shared, rtl:no
10127	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10128	#            lib.a           static archive
10129	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10130	  for ld_flag in $LDFLAGS; do
10131	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10132	    aix_use_runtimelinking=yes
10133	    break
10134	  fi
10135	  done
10136	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10137	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10138	    # so we don't have lib.a shared libs to link our executables.
10139	    # We have to force runtime linking in this case.
10140	    aix_use_runtimelinking=yes
10141	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10142	  fi
10143	  ;;
10144	esac
10145
10146	exp_sym_flag='-bexport'
10147	no_entry_flag='-bnoentry'
10148      fi
10149
10150      # When large executables or shared objects are built, AIX ld can
10151      # have problems creating the table of contents.  If linking a library
10152      # or program results in "error TOC overflow" add -mminimal-toc to
10153      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10154      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10155
10156      archive_cmds=''
10157      hardcode_direct=yes
10158      hardcode_direct_absolute=yes
10159      hardcode_libdir_separator=':'
10160      link_all_deplibs=yes
10161      file_list_spec='$wl-f,'
10162      case $with_aix_soname,$aix_use_runtimelinking in
10163      aix,*) ;; # traditional, no import file
10164      svr4,* | *,yes) # use import file
10165	# The Import File defines what to hardcode.
10166	hardcode_direct=no
10167	hardcode_direct_absolute=no
10168	;;
10169      esac
10170
10171      if test yes = "$GCC"; then
10172	case $host_os in aix4.[012]|aix4.[012].*)
10173	# We only want to do this on AIX 4.2 and lower, the check
10174	# below for broken collect2 doesn't work under 4.3+
10175	  collect2name=`$CC -print-prog-name=collect2`
10176	  if test -f "$collect2name" &&
10177	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10178	  then
10179	  # We have reworked collect2
10180	  :
10181	  else
10182	  # We have old collect2
10183	  hardcode_direct=unsupported
10184	  # It fails to find uninstalled libraries when the uninstalled
10185	  # path is not listed in the libpath.  Setting hardcode_minus_L
10186	  # to unsupported forces relinking
10187	  hardcode_minus_L=yes
10188	  hardcode_libdir_flag_spec='-L$libdir'
10189	  hardcode_libdir_separator=
10190	  fi
10191	  ;;
10192	esac
10193	shared_flag='-shared'
10194	if test yes = "$aix_use_runtimelinking"; then
10195	  shared_flag="$shared_flag "'$wl-G'
10196	fi
10197	# Need to ensure runtime linking is disabled for the traditional
10198	# shared library, or the linker may eventually find shared libraries
10199	# /with/ Import File - we do not want to mix them.
10200	shared_flag_aix='-shared'
10201	shared_flag_svr4='-shared $wl-G'
10202      else
10203	# not using gcc
10204	if test ia64 = "$host_cpu"; then
10205	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10206	# chokes on -Wl,-G. The following line is correct:
10207	  shared_flag='-G'
10208	else
10209	  if test yes = "$aix_use_runtimelinking"; then
10210	    shared_flag='$wl-G'
10211	  else
10212	    shared_flag='$wl-bM:SRE'
10213	  fi
10214	  shared_flag_aix='$wl-bM:SRE'
10215	  shared_flag_svr4='$wl-G'
10216	fi
10217      fi
10218
10219      export_dynamic_flag_spec='$wl-bexpall'
10220      # It seems that -bexpall does not export symbols beginning with
10221      # underscore (_), so it is better to generate a list of symbols to export.
10222      always_export_symbols=yes
10223      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10224	# Warning - without using the other runtime loading flags (-brtl),
10225	# -berok will link without error, but may produce a broken library.
10226	allow_undefined_flag='-berok'
10227        # Determine the default libpath from the value encoded in an
10228        # empty executable.
10229        if test set = "${lt_cv_aix_libpath+set}"; then
10230  aix_libpath=$lt_cv_aix_libpath
10231else
10232  if ${lt_cv_aix_libpath_+:} false; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236/* end confdefs.h.  */
10237
10238int
10239main ()
10240{
10241
10242  ;
10243  return 0;
10244}
10245_ACEOF
10246if ac_fn_c_try_link "$LINENO"; then :
10247
10248  lt_aix_libpath_sed='
10249      /Import File Strings/,/^$/ {
10250	  /^0/ {
10251	      s/^0  *\([^ ]*\) *$/\1/
10252	      p
10253	  }
10254      }'
10255  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10256  # Check for a 64-bit object if we didn't find anything.
10257  if test -z "$lt_cv_aix_libpath_"; then
10258    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10259  fi
10260fi
10261rm -f core conftest.err conftest.$ac_objext \
10262    conftest$ac_exeext conftest.$ac_ext
10263  if test -z "$lt_cv_aix_libpath_"; then
10264    lt_cv_aix_libpath_=/usr/lib:/lib
10265  fi
10266
10267fi
10268
10269  aix_libpath=$lt_cv_aix_libpath_
10270fi
10271
10272        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10273        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10274      else
10275	if test ia64 = "$host_cpu"; then
10276	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10277	  allow_undefined_flag="-z nodefs"
10278	  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"
10279	else
10280	 # Determine the default libpath from the value encoded in an
10281	 # empty executable.
10282	 if test set = "${lt_cv_aix_libpath+set}"; then
10283  aix_libpath=$lt_cv_aix_libpath
10284else
10285  if ${lt_cv_aix_libpath_+:} false; then :
10286  $as_echo_n "(cached) " >&6
10287else
10288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h.  */
10290
10291int
10292main ()
10293{
10294
10295  ;
10296  return 0;
10297}
10298_ACEOF
10299if ac_fn_c_try_link "$LINENO"; then :
10300
10301  lt_aix_libpath_sed='
10302      /Import File Strings/,/^$/ {
10303	  /^0/ {
10304	      s/^0  *\([^ ]*\) *$/\1/
10305	      p
10306	  }
10307      }'
10308  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10309  # Check for a 64-bit object if we didn't find anything.
10310  if test -z "$lt_cv_aix_libpath_"; then
10311    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10312  fi
10313fi
10314rm -f core conftest.err conftest.$ac_objext \
10315    conftest$ac_exeext conftest.$ac_ext
10316  if test -z "$lt_cv_aix_libpath_"; then
10317    lt_cv_aix_libpath_=/usr/lib:/lib
10318  fi
10319
10320fi
10321
10322  aix_libpath=$lt_cv_aix_libpath_
10323fi
10324
10325	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10326	  # Warning - without using the other run time loading flags,
10327	  # -berok will link without error, but may produce a broken library.
10328	  no_undefined_flag=' $wl-bernotok'
10329	  allow_undefined_flag=' $wl-berok'
10330	  if test yes = "$with_gnu_ld"; then
10331	    # We only use this code for GNU lds that support --whole-archive.
10332	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10333	  else
10334	    # Exported symbols can be pulled into shared objects from archives
10335	    whole_archive_flag_spec='$convenience'
10336	  fi
10337	  archive_cmds_need_lc=yes
10338	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10339	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10340	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10341	  if test svr4 != "$with_aix_soname"; then
10342	    # This is similar to how AIX traditionally builds its shared libraries.
10343	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10344	  fi
10345	  if test aix != "$with_aix_soname"; then
10346	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10347	  else
10348	    # used by -dlpreopen to get the symbols
10349	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10350	  fi
10351	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10352	fi
10353      fi
10354      ;;
10355
10356    amigaos*)
10357      case $host_cpu in
10358      powerpc)
10359            # see comment about AmigaOS4 .so support
10360            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10361            archive_expsym_cmds=''
10362        ;;
10363      m68k)
10364            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)'
10365            hardcode_libdir_flag_spec='-L$libdir'
10366            hardcode_minus_L=yes
10367        ;;
10368      esac
10369      ;;
10370
10371    bsdi[45]*)
10372      export_dynamic_flag_spec=-rdynamic
10373      ;;
10374
10375    cygwin* | mingw* | pw32* | cegcc*)
10376      # When not using gcc, we currently assume that we are using
10377      # Microsoft Visual C++ or Intel C++ Compiler.
10378      # hardcode_libdir_flag_spec is actually meaningless, as there is
10379      # no search path for DLLs.
10380      case $cc_basename in
10381      cl* | icl*)
10382	# Native MSVC or ICC
10383	hardcode_libdir_flag_spec=' '
10384	allow_undefined_flag=unsupported
10385	always_export_symbols=yes
10386	file_list_spec='@'
10387	# Tell ltmain to make .lib files, not .a files.
10388	libext=lib
10389	# Tell ltmain to make .dll files, not .so files.
10390	shrext_cmds=.dll
10391	# FIXME: Setting linknames here is a bad hack.
10392	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10393	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10394            cp "$export_symbols" "$output_objdir/$soname.def";
10395            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10396          else
10397            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10398          fi~
10399          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10400          linknames='
10401	# The linker will not automatically build a static lib if we build a DLL.
10402	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10403	enable_shared_with_static_runtimes=yes
10404	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10405	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10406	# Don't use ranlib
10407	old_postinstall_cmds='chmod 644 $oldlib'
10408	postlink_cmds='lt_outputfile="@OUTPUT@"~
10409          lt_tool_outputfile="@TOOL_OUTPUT@"~
10410          case $lt_outputfile in
10411            *.exe|*.EXE) ;;
10412            *)
10413              lt_outputfile=$lt_outputfile.exe
10414              lt_tool_outputfile=$lt_tool_outputfile.exe
10415              ;;
10416          esac~
10417          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10418            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10419            $RM "$lt_outputfile.manifest";
10420          fi'
10421	;;
10422      *)
10423	# Assume MSVC and ICC wrapper
10424	hardcode_libdir_flag_spec=' '
10425	allow_undefined_flag=unsupported
10426	# Tell ltmain to make .lib files, not .a files.
10427	libext=lib
10428	# Tell ltmain to make .dll files, not .so files.
10429	shrext_cmds=.dll
10430	# FIXME: Setting linknames here is a bad hack.
10431	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10432	# The linker will automatically build a .lib file if we build a DLL.
10433	old_archive_from_new_cmds='true'
10434	# FIXME: Should let the user specify the lib program.
10435	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10436	enable_shared_with_static_runtimes=yes
10437	;;
10438      esac
10439      ;;
10440
10441    darwin* | rhapsody*)
10442
10443
10444  archive_cmds_need_lc=no
10445  hardcode_direct=no
10446  hardcode_automatic=yes
10447  hardcode_shlibpath_var=unsupported
10448  if test yes = "$lt_cv_ld_force_load"; then
10449    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\"`'
10450
10451  else
10452    whole_archive_flag_spec=''
10453  fi
10454  link_all_deplibs=yes
10455  allow_undefined_flag=$_lt_dar_allow_undefined
10456  case $cc_basename in
10457     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10458     *) _lt_dar_can_shared=$GCC ;;
10459  esac
10460  if test yes = "$_lt_dar_can_shared"; then
10461    output_verbose_link_cmd=func_echo_all
10462    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10463    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10464    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"
10465    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"
10466
10467  else
10468  ld_shlibs=no
10469  fi
10470
10471      ;;
10472
10473    dgux*)
10474      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475      hardcode_libdir_flag_spec='-L$libdir'
10476      hardcode_shlibpath_var=no
10477      ;;
10478
10479    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10480    # support.  Future versions do this automatically, but an explicit c++rt0.o
10481    # does not break anything, and helps significantly (at the cost of a little
10482    # extra space).
10483    freebsd2.2*)
10484      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10485      hardcode_libdir_flag_spec='-R$libdir'
10486      hardcode_direct=yes
10487      hardcode_shlibpath_var=no
10488      ;;
10489
10490    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10491    freebsd2.*)
10492      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10493      hardcode_direct=yes
10494      hardcode_minus_L=yes
10495      hardcode_shlibpath_var=no
10496      ;;
10497
10498    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10499    freebsd* | dragonfly*)
10500      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10501      hardcode_libdir_flag_spec='-R$libdir'
10502      hardcode_direct=yes
10503      hardcode_shlibpath_var=no
10504      ;;
10505
10506    hpux9*)
10507      if test yes = "$GCC"; then
10508	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10509      else
10510	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10511      fi
10512      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10513      hardcode_libdir_separator=:
10514      hardcode_direct=yes
10515
10516      # hardcode_minus_L: Not really in the search PATH,
10517      # but as the default location of the library.
10518      hardcode_minus_L=yes
10519      export_dynamic_flag_spec='$wl-E'
10520      ;;
10521
10522    hpux10*)
10523      if test yes,no = "$GCC,$with_gnu_ld"; then
10524	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10525      else
10526	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10527      fi
10528      if test no = "$with_gnu_ld"; then
10529	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10530	hardcode_libdir_separator=:
10531	hardcode_direct=yes
10532	hardcode_direct_absolute=yes
10533	export_dynamic_flag_spec='$wl-E'
10534	# hardcode_minus_L: Not really in the search PATH,
10535	# but as the default location of the library.
10536	hardcode_minus_L=yes
10537      fi
10538      ;;
10539
10540    hpux11*)
10541      if test yes,no = "$GCC,$with_gnu_ld"; then
10542	case $host_cpu in
10543	hppa*64*)
10544	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10545	  ;;
10546	ia64*)
10547	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10548	  ;;
10549	*)
10550	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10551	  ;;
10552	esac
10553      else
10554	case $host_cpu in
10555	hppa*64*)
10556	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10557	  ;;
10558	ia64*)
10559	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10560	  ;;
10561	*)
10562
10563	  # Older versions of the 11.00 compiler do not understand -b yet
10564	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10565	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10566$as_echo_n "checking if $CC understands -b... " >&6; }
10567if ${lt_cv_prog_compiler__b+:} false; then :
10568  $as_echo_n "(cached) " >&6
10569else
10570  lt_cv_prog_compiler__b=no
10571   save_LDFLAGS=$LDFLAGS
10572   LDFLAGS="$LDFLAGS -b"
10573   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10574   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10575     # The linker can only warn and ignore the option if not recognized
10576     # So say no if there are warnings
10577     if test -s conftest.err; then
10578       # Append any errors to the config.log.
10579       cat conftest.err 1>&5
10580       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10581       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10582       if diff conftest.exp conftest.er2 >/dev/null; then
10583         lt_cv_prog_compiler__b=yes
10584       fi
10585     else
10586       lt_cv_prog_compiler__b=yes
10587     fi
10588   fi
10589   $RM -r conftest*
10590   LDFLAGS=$save_LDFLAGS
10591
10592fi
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10594$as_echo "$lt_cv_prog_compiler__b" >&6; }
10595
10596if test yes = "$lt_cv_prog_compiler__b"; then
10597    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10598else
10599    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10600fi
10601
10602	  ;;
10603	esac
10604      fi
10605      if test no = "$with_gnu_ld"; then
10606	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10607	hardcode_libdir_separator=:
10608
10609	case $host_cpu in
10610	hppa*64*|ia64*)
10611	  hardcode_direct=no
10612	  hardcode_shlibpath_var=no
10613	  ;;
10614	*)
10615	  hardcode_direct=yes
10616	  hardcode_direct_absolute=yes
10617	  export_dynamic_flag_spec='$wl-E'
10618
10619	  # hardcode_minus_L: Not really in the search PATH,
10620	  # but as the default location of the library.
10621	  hardcode_minus_L=yes
10622	  ;;
10623	esac
10624      fi
10625      ;;
10626
10627    irix5* | irix6* | nonstopux*)
10628      if test yes = "$GCC"; then
10629	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'
10630	# Try to use the -exported_symbol ld option, if it does not
10631	# work, assume that -exports_file does not work either and
10632	# implicitly export all symbols.
10633	# This should be the same for all languages, so no per-tag cache variable.
10634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10635$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10636if ${lt_cv_irix_exported_symbol+:} false; then :
10637  $as_echo_n "(cached) " >&6
10638else
10639  save_LDFLAGS=$LDFLAGS
10640	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10641	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642/* end confdefs.h.  */
10643int foo (void) { return 0; }
10644_ACEOF
10645if ac_fn_c_try_link "$LINENO"; then :
10646  lt_cv_irix_exported_symbol=yes
10647else
10648  lt_cv_irix_exported_symbol=no
10649fi
10650rm -f core conftest.err conftest.$ac_objext \
10651    conftest$ac_exeext conftest.$ac_ext
10652           LDFLAGS=$save_LDFLAGS
10653fi
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10655$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10656	if test yes = "$lt_cv_irix_exported_symbol"; then
10657          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'
10658	fi
10659      else
10660	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'
10661	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'
10662      fi
10663      archive_cmds_need_lc='no'
10664      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10665      hardcode_libdir_separator=:
10666      inherit_rpath=yes
10667      link_all_deplibs=yes
10668      ;;
10669
10670    linux*)
10671      case $cc_basename in
10672      tcc*)
10673	# Fabrice Bellard et al's Tiny C Compiler
10674	ld_shlibs=yes
10675	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10676	;;
10677      esac
10678      ;;
10679
10680    netbsd*)
10681      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10682	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10683      else
10684	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10685      fi
10686      hardcode_libdir_flag_spec='-R$libdir'
10687      hardcode_direct=yes
10688      hardcode_shlibpath_var=no
10689      ;;
10690
10691    newsos6)
10692      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693      hardcode_direct=yes
10694      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10695      hardcode_libdir_separator=:
10696      hardcode_shlibpath_var=no
10697      ;;
10698
10699    *nto* | *qnx*)
10700      ;;
10701
10702    openbsd* | bitrig*)
10703      if test -f /usr/libexec/ld.so; then
10704	hardcode_direct=yes
10705	hardcode_shlibpath_var=no
10706	hardcode_direct_absolute=yes
10707	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10708	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10709	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10710	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10711	  export_dynamic_flag_spec='$wl-E'
10712	else
10713	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10714	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10715	fi
10716      else
10717	ld_shlibs=no
10718      fi
10719      ;;
10720
10721    os2*)
10722      hardcode_libdir_flag_spec='-L$libdir'
10723      hardcode_minus_L=yes
10724      allow_undefined_flag=unsupported
10725      shrext_cmds=.dll
10726      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10727	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10728	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10729	$ECHO EXPORTS >> $output_objdir/$libname.def~
10730	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10731	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10732	emximp -o $lib $output_objdir/$libname.def'
10733      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10734	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10735	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10736	$ECHO EXPORTS >> $output_objdir/$libname.def~
10737	prefix_cmds="$SED"~
10738	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10739	  prefix_cmds="$prefix_cmds -e 1d";
10740	fi~
10741	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10742	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10743	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10744	emximp -o $lib $output_objdir/$libname.def'
10745      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10746      enable_shared_with_static_runtimes=yes
10747      file_list_spec='@'
10748      ;;
10749
10750    osf3*)
10751      if test yes = "$GCC"; then
10752	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10753	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'
10754      else
10755	allow_undefined_flag=' -expect_unresolved \*'
10756	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'
10757      fi
10758      archive_cmds_need_lc='no'
10759      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10760      hardcode_libdir_separator=:
10761      ;;
10762
10763    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10764      if test yes = "$GCC"; then
10765	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10766	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'
10767	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10768      else
10769	allow_undefined_flag=' -expect_unresolved \*'
10770	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'
10771	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~
10772          $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'
10773
10774	# Both c and cxx compiler support -rpath directly
10775	hardcode_libdir_flag_spec='-rpath $libdir'
10776      fi
10777      archive_cmds_need_lc='no'
10778      hardcode_libdir_separator=:
10779      ;;
10780
10781    solaris*)
10782      no_undefined_flag=' -z defs'
10783      if test yes = "$GCC"; then
10784	wlarc='$wl'
10785	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10786	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10787          $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'
10788      else
10789	case `$CC -V 2>&1` in
10790	*"Compilers 5.0"*)
10791	  wlarc=''
10792	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10793	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10794            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10795	  ;;
10796	*)
10797	  wlarc='$wl'
10798	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10799	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10800            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10801	  ;;
10802	esac
10803      fi
10804      hardcode_libdir_flag_spec='-R$libdir'
10805      hardcode_shlibpath_var=no
10806      case $host_os in
10807      solaris2.[0-5] | solaris2.[0-5].*) ;;
10808      *)
10809	# The compiler driver will combine and reorder linker options,
10810	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10811	# but is careful enough not to reorder.
10812	# Supported since Solaris 2.6 (maybe 2.5.1?)
10813	if test yes = "$GCC"; then
10814	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10815	else
10816	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10817	fi
10818	;;
10819      esac
10820      link_all_deplibs=yes
10821      ;;
10822
10823    sunos4*)
10824      if test sequent = "$host_vendor"; then
10825	# Use $CC to link under sequent, because it throws in some extra .o
10826	# files that make .init and .fini sections work.
10827	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10828      else
10829	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10830      fi
10831      hardcode_libdir_flag_spec='-L$libdir'
10832      hardcode_direct=yes
10833      hardcode_minus_L=yes
10834      hardcode_shlibpath_var=no
10835      ;;
10836
10837    sysv4)
10838      case $host_vendor in
10839	sni)
10840	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841	  hardcode_direct=yes # is this really true???
10842	;;
10843	siemens)
10844	  ## LD is ld it makes a PLAMLIB
10845	  ## CC just makes a GrossModule.
10846	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10847	  reload_cmds='$CC -r -o $output$reload_objs'
10848	  hardcode_direct=no
10849        ;;
10850	motorola)
10851	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10852	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10853	;;
10854      esac
10855      runpath_var='LD_RUN_PATH'
10856      hardcode_shlibpath_var=no
10857      ;;
10858
10859    sysv4.3*)
10860      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861      hardcode_shlibpath_var=no
10862      export_dynamic_flag_spec='-Bexport'
10863      ;;
10864
10865    sysv4*MP*)
10866      if test -d /usr/nec; then
10867	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868	hardcode_shlibpath_var=no
10869	runpath_var=LD_RUN_PATH
10870	hardcode_runpath_var=yes
10871	ld_shlibs=yes
10872      fi
10873      ;;
10874
10875    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10876      no_undefined_flag='$wl-z,text'
10877      archive_cmds_need_lc=no
10878      hardcode_shlibpath_var=no
10879      runpath_var='LD_RUN_PATH'
10880
10881      if test yes = "$GCC"; then
10882	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884      else
10885	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887      fi
10888      ;;
10889
10890    sysv5* | sco3.2v5* | sco5v6*)
10891      # Note: We CANNOT use -z defs as we might desire, because we do not
10892      # link with -lc, and that would cause any symbols used from libc to
10893      # always be unresolved, which means just about no library would
10894      # ever link correctly.  If we're not using GNU ld we use -z text
10895      # though, which does catch some bad symbols but isn't as heavy-handed
10896      # as -z defs.
10897      no_undefined_flag='$wl-z,text'
10898      allow_undefined_flag='$wl-z,nodefs'
10899      archive_cmds_need_lc=no
10900      hardcode_shlibpath_var=no
10901      hardcode_libdir_flag_spec='$wl-R,$libdir'
10902      hardcode_libdir_separator=':'
10903      link_all_deplibs=yes
10904      export_dynamic_flag_spec='$wl-Bexport'
10905      runpath_var='LD_RUN_PATH'
10906
10907      if test yes = "$GCC"; then
10908	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10909	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10910      else
10911	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10913      fi
10914      ;;
10915
10916    uts4*)
10917      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918      hardcode_libdir_flag_spec='-L$libdir'
10919      hardcode_shlibpath_var=no
10920      ;;
10921
10922    *)
10923      ld_shlibs=no
10924      ;;
10925    esac
10926
10927    if test sni = "$host_vendor"; then
10928      case $host in
10929      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10930	export_dynamic_flag_spec='$wl-Blargedynsym'
10931	;;
10932      esac
10933    fi
10934  fi
10935
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10937$as_echo "$ld_shlibs" >&6; }
10938test no = "$ld_shlibs" && can_build_shared=no
10939
10940with_gnu_ld=$with_gnu_ld
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956#
10957# Do we need to explicitly link libc?
10958#
10959case "x$archive_cmds_need_lc" in
10960x|xyes)
10961  # Assume -lc should be added
10962  archive_cmds_need_lc=yes
10963
10964  if test yes,yes = "$GCC,$enable_shared"; then
10965    case $archive_cmds in
10966    *'~'*)
10967      # FIXME: we may have to deal with multi-command sequences.
10968      ;;
10969    '$CC '*)
10970      # Test whether the compiler implicitly links with -lc since on some
10971      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10972      # to ld, don't add -lc before -lgcc.
10973      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10974$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10975if ${lt_cv_archive_cmds_need_lc+:} false; then :
10976  $as_echo_n "(cached) " >&6
10977else
10978  $RM conftest*
10979	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10980
10981	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10982  (eval $ac_compile) 2>&5
10983  ac_status=$?
10984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10985  test $ac_status = 0; } 2>conftest.err; then
10986	  soname=conftest
10987	  lib=conftest
10988	  libobjs=conftest.$ac_objext
10989	  deplibs=
10990	  wl=$lt_prog_compiler_wl
10991	  pic_flag=$lt_prog_compiler_pic
10992	  compiler_flags=-v
10993	  linker_flags=-v
10994	  verstring=
10995	  output_objdir=.
10996	  libname=conftest
10997	  lt_save_allow_undefined_flag=$allow_undefined_flag
10998	  allow_undefined_flag=
10999	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11000  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11001  ac_status=$?
11002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11003  test $ac_status = 0; }
11004	  then
11005	    lt_cv_archive_cmds_need_lc=no
11006	  else
11007	    lt_cv_archive_cmds_need_lc=yes
11008	  fi
11009	  allow_undefined_flag=$lt_save_allow_undefined_flag
11010	else
11011	  cat conftest.err 1>&5
11012	fi
11013	$RM conftest*
11014
11015fi
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11017$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11018      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11019      ;;
11020    esac
11021  fi
11022  ;;
11023esac
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11177$as_echo_n "checking dynamic linker characteristics... " >&6; }
11178
11179if test yes = "$GCC"; then
11180  case $host_os in
11181    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11182    *) lt_awk_arg='/^libraries:/' ;;
11183  esac
11184  case $host_os in
11185    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11186    *) lt_sed_strip_eq='s|=/|/|g' ;;
11187  esac
11188  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11189  case $lt_search_path_spec in
11190  *\;*)
11191    # if the path contains ";" then we assume it to be the separator
11192    # otherwise default to the standard path separator (i.e. ":") - it is
11193    # assumed that no part of a normal pathname contains ";" but that should
11194    # okay in the real world where ";" in dirpaths is itself problematic.
11195    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11196    ;;
11197  *)
11198    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11199    ;;
11200  esac
11201  # Ok, now we have the path, separated by spaces, we can step through it
11202  # and add multilib dir if necessary...
11203  lt_tmp_lt_search_path_spec=
11204  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11205  # ...but if some path component already ends with the multilib dir we assume
11206  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11207  case "$lt_multi_os_dir; $lt_search_path_spec " in
11208  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11209    lt_multi_os_dir=
11210    ;;
11211  esac
11212  for lt_sys_path in $lt_search_path_spec; do
11213    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11214      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11215    elif test -n "$lt_multi_os_dir"; then
11216      test -d "$lt_sys_path" && \
11217	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11218    fi
11219  done
11220  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11221BEGIN {RS = " "; FS = "/|\n";} {
11222  lt_foo = "";
11223  lt_count = 0;
11224  for (lt_i = NF; lt_i > 0; lt_i--) {
11225    if ($lt_i != "" && $lt_i != ".") {
11226      if ($lt_i == "..") {
11227        lt_count++;
11228      } else {
11229        if (lt_count == 0) {
11230          lt_foo = "/" $lt_i lt_foo;
11231        } else {
11232          lt_count--;
11233        }
11234      }
11235    }
11236  }
11237  if (lt_foo != "") { lt_freq[lt_foo]++; }
11238  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11239}'`
11240  # AWK program above erroneously prepends '/' to C:/dos/paths
11241  # for these hosts.
11242  case $host_os in
11243    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11244      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11245  esac
11246  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11247else
11248  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11249fi
11250library_names_spec=
11251libname_spec='lib$name'
11252soname_spec=
11253shrext_cmds=.so
11254postinstall_cmds=
11255postuninstall_cmds=
11256finish_cmds=
11257finish_eval=
11258shlibpath_var=
11259shlibpath_overrides_runpath=unknown
11260version_type=none
11261dynamic_linker="$host_os ld.so"
11262sys_lib_dlsearch_path_spec="/lib /usr/lib"
11263need_lib_prefix=unknown
11264hardcode_into_libs=no
11265
11266# when you set need_version to no, make sure it does not cause -set_version
11267# flags to be left without arguments
11268need_version=unknown
11269
11270
11271
11272case $host_os in
11273aix3*)
11274  version_type=linux # correct to gnu/linux during the next big refactor
11275  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11276  shlibpath_var=LIBPATH
11277
11278  # AIX 3 has no versioning support, so we append a major version to the name.
11279  soname_spec='$libname$release$shared_ext$major'
11280  ;;
11281
11282aix[4-9]*)
11283  version_type=linux # correct to gnu/linux during the next big refactor
11284  need_lib_prefix=no
11285  need_version=no
11286  hardcode_into_libs=yes
11287  if test ia64 = "$host_cpu"; then
11288    # AIX 5 supports IA64
11289    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11290    shlibpath_var=LD_LIBRARY_PATH
11291  else
11292    # With GCC up to 2.95.x, collect2 would create an import file
11293    # for dependence libraries.  The import file would start with
11294    # the line '#! .'.  This would cause the generated library to
11295    # depend on '.', always an invalid library.  This was fixed in
11296    # development snapshots of GCC prior to 3.0.
11297    case $host_os in
11298      aix4 | aix4.[01] | aix4.[01].*)
11299      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11300	   echo ' yes '
11301	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11302	:
11303      else
11304	can_build_shared=no
11305      fi
11306      ;;
11307    esac
11308    # Using Import Files as archive members, it is possible to support
11309    # filename-based versioning of shared library archives on AIX. While
11310    # this would work for both with and without runtime linking, it will
11311    # prevent static linking of such archives. So we do filename-based
11312    # shared library versioning with .so extension only, which is used
11313    # when both runtime linking and shared linking is enabled.
11314    # Unfortunately, runtime linking may impact performance, so we do
11315    # not want this to be the default eventually. Also, we use the
11316    # versioned .so libs for executables only if there is the -brtl
11317    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11318    # To allow for filename-based versioning support, we need to create
11319    # libNAME.so.V as an archive file, containing:
11320    # *) an Import File, referring to the versioned filename of the
11321    #    archive as well as the shared archive member, telling the
11322    #    bitwidth (32 or 64) of that shared object, and providing the
11323    #    list of exported symbols of that shared object, eventually
11324    #    decorated with the 'weak' keyword
11325    # *) the shared object with the F_LOADONLY flag set, to really avoid
11326    #    it being seen by the linker.
11327    # At run time we better use the real file rather than another symlink,
11328    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11329
11330    case $with_aix_soname,$aix_use_runtimelinking in
11331    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11332    # soname into executable. Probably we can add versioning support to
11333    # collect2, so additional links can be useful in future.
11334    aix,yes) # traditional libtool
11335      dynamic_linker='AIX unversionable lib.so'
11336      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11337      # instead of lib<name>.a to let people know that these are not
11338      # typical AIX shared libraries.
11339      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340      ;;
11341    aix,no) # traditional AIX only
11342      dynamic_linker='AIX lib.a(lib.so.V)'
11343      # We preserve .a as extension for shared libraries through AIX4.2
11344      # and later when we are not doing run time linking.
11345      library_names_spec='$libname$release.a $libname.a'
11346      soname_spec='$libname$release$shared_ext$major'
11347      ;;
11348    svr4,*) # full svr4 only
11349      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11350      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11351      # We do not specify a path in Import Files, so LIBPATH fires.
11352      shlibpath_overrides_runpath=yes
11353      ;;
11354    *,yes) # both, prefer svr4
11355      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11356      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11357      # unpreferred sharedlib libNAME.a needs extra handling
11358      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11359      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11360      # We do not specify a path in Import Files, so LIBPATH fires.
11361      shlibpath_overrides_runpath=yes
11362      ;;
11363    *,no) # both, prefer aix
11364      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11365      library_names_spec='$libname$release.a $libname.a'
11366      soname_spec='$libname$release$shared_ext$major'
11367      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11368      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11369      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11370      ;;
11371    esac
11372    shlibpath_var=LIBPATH
11373  fi
11374  ;;
11375
11376amigaos*)
11377  case $host_cpu in
11378  powerpc)
11379    # Since July 2007 AmigaOS4 officially supports .so libraries.
11380    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11381    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382    ;;
11383  m68k)
11384    library_names_spec='$libname.ixlibrary $libname.a'
11385    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11386    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11387    ;;
11388  esac
11389  ;;
11390
11391beos*)
11392  library_names_spec='$libname$shared_ext'
11393  dynamic_linker="$host_os ld.so"
11394  shlibpath_var=LIBRARY_PATH
11395  ;;
11396
11397bsdi[45]*)
11398  version_type=linux # correct to gnu/linux during the next big refactor
11399  need_version=no
11400  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401  soname_spec='$libname$release$shared_ext$major'
11402  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11403  shlibpath_var=LD_LIBRARY_PATH
11404  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11405  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11406  # the default ld.so.conf also contains /usr/contrib/lib and
11407  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11408  # libtool to hard-code these into programs
11409  ;;
11410
11411cygwin* | mingw* | pw32* | cegcc*)
11412  version_type=windows
11413  shrext_cmds=.dll
11414  need_version=no
11415  need_lib_prefix=no
11416
11417  case $GCC,$cc_basename in
11418  yes,*)
11419    # gcc
11420    library_names_spec='$libname.dll.a'
11421    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11422    postinstall_cmds='base_file=`basename \$file`~
11423      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11424      dldir=$destdir/`dirname \$dlpath`~
11425      test -d \$dldir || mkdir -p \$dldir~
11426      $install_prog $dir/$dlname \$dldir/$dlname~
11427      chmod a+x \$dldir/$dlname~
11428      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11429        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11430      fi'
11431    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11432      dlpath=$dir/\$dldll~
11433       $RM \$dlpath'
11434    shlibpath_overrides_runpath=yes
11435
11436    case $host_os in
11437    cygwin*)
11438      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11439      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11440
11441      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11442      ;;
11443    mingw* | cegcc*)
11444      # MinGW DLLs use traditional 'lib' prefix
11445      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11446      ;;
11447    pw32*)
11448      # pw32 DLLs use 'pw' prefix rather than 'lib'
11449      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11450      ;;
11451    esac
11452    dynamic_linker='Win32 ld.exe'
11453    ;;
11454
11455  *,cl* | *,icl*)
11456    # Native MSVC or ICC
11457    libname_spec='$name'
11458    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11459    library_names_spec='$libname.dll.lib'
11460
11461    case $build_os in
11462    mingw*)
11463      sys_lib_search_path_spec=
11464      lt_save_ifs=$IFS
11465      IFS=';'
11466      for lt_path in $LIB
11467      do
11468        IFS=$lt_save_ifs
11469        # Let DOS variable expansion print the short 8.3 style file name.
11470        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11471        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11472      done
11473      IFS=$lt_save_ifs
11474      # Convert to MSYS style.
11475      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11476      ;;
11477    cygwin*)
11478      # Convert to unix form, then to dos form, then back to unix form
11479      # but this time dos style (no spaces!) so that the unix form looks
11480      # like /cygdrive/c/PROGRA~1:/cygdr...
11481      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11482      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11483      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11484      ;;
11485    *)
11486      sys_lib_search_path_spec=$LIB
11487      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11488        # It is most probably a Windows format PATH.
11489        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11490      else
11491        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11492      fi
11493      # FIXME: find the short name or the path components, as spaces are
11494      # common. (e.g. "Program Files" -> "PROGRA~1")
11495      ;;
11496    esac
11497
11498    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11499    postinstall_cmds='base_file=`basename \$file`~
11500      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11501      dldir=$destdir/`dirname \$dlpath`~
11502      test -d \$dldir || mkdir -p \$dldir~
11503      $install_prog $dir/$dlname \$dldir/$dlname'
11504    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11505      dlpath=$dir/\$dldll~
11506       $RM \$dlpath'
11507    shlibpath_overrides_runpath=yes
11508    dynamic_linker='Win32 link.exe'
11509    ;;
11510
11511  *)
11512    # Assume MSVC and ICC wrapper
11513    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11514    dynamic_linker='Win32 ld.exe'
11515    ;;
11516  esac
11517  # FIXME: first we should search . and the directory the executable is in
11518  shlibpath_var=PATH
11519  ;;
11520
11521darwin* | rhapsody*)
11522  dynamic_linker="$host_os dyld"
11523  version_type=darwin
11524  need_lib_prefix=no
11525  need_version=no
11526  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11527  soname_spec='$libname$release$major$shared_ext'
11528  shlibpath_overrides_runpath=yes
11529  shlibpath_var=DYLD_LIBRARY_PATH
11530  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11531
11532  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11534  ;;
11535
11536dgux*)
11537  version_type=linux # correct to gnu/linux during the next big refactor
11538  need_lib_prefix=no
11539  need_version=no
11540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541  soname_spec='$libname$release$shared_ext$major'
11542  shlibpath_var=LD_LIBRARY_PATH
11543  ;;
11544
11545freebsd* | dragonfly*)
11546  # DragonFly does not have aout.  When/if they implement a new
11547  # versioning mechanism, adjust this.
11548  if test -x /usr/bin/objformat; then
11549    objformat=`/usr/bin/objformat`
11550  else
11551    case $host_os in
11552    freebsd[23].*) objformat=aout ;;
11553    *) objformat=elf ;;
11554    esac
11555  fi
11556  version_type=freebsd-$objformat
11557  case $version_type in
11558    freebsd-elf*)
11559      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11560      soname_spec='$libname$release$shared_ext$major'
11561      need_version=no
11562      need_lib_prefix=no
11563      ;;
11564    freebsd-*)
11565      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11566      need_version=yes
11567      ;;
11568  esac
11569  shlibpath_var=LD_LIBRARY_PATH
11570  case $host_os in
11571  freebsd2.*)
11572    shlibpath_overrides_runpath=yes
11573    ;;
11574  freebsd3.[01]* | freebsdelf3.[01]*)
11575    shlibpath_overrides_runpath=yes
11576    hardcode_into_libs=yes
11577    ;;
11578  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11579  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11580    shlibpath_overrides_runpath=no
11581    hardcode_into_libs=yes
11582    ;;
11583  *) # from 4.6 on, and DragonFly
11584    shlibpath_overrides_runpath=yes
11585    hardcode_into_libs=yes
11586    ;;
11587  esac
11588  ;;
11589
11590haiku*)
11591  version_type=linux # correct to gnu/linux during the next big refactor
11592  need_lib_prefix=no
11593  need_version=no
11594  dynamic_linker="$host_os runtime_loader"
11595  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11596  soname_spec='$libname$release$shared_ext$major'
11597  shlibpath_var=LIBRARY_PATH
11598  shlibpath_overrides_runpath=no
11599  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11600  hardcode_into_libs=yes
11601  ;;
11602
11603hpux9* | hpux10* | hpux11*)
11604  # Give a soname corresponding to the major version so that dld.sl refuses to
11605  # link against other versions.
11606  version_type=sunos
11607  need_lib_prefix=no
11608  need_version=no
11609  case $host_cpu in
11610  ia64*)
11611    shrext_cmds='.so'
11612    hardcode_into_libs=yes
11613    dynamic_linker="$host_os dld.so"
11614    shlibpath_var=LD_LIBRARY_PATH
11615    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617    soname_spec='$libname$release$shared_ext$major'
11618    if test 32 = "$HPUX_IA64_MODE"; then
11619      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11621    else
11622      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11623      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11624    fi
11625    ;;
11626  hppa*64*)
11627    shrext_cmds='.sl'
11628    hardcode_into_libs=yes
11629    dynamic_linker="$host_os dld.sl"
11630    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11631    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11632    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11633    soname_spec='$libname$release$shared_ext$major'
11634    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11635    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11636    ;;
11637  *)
11638    shrext_cmds='.sl'
11639    dynamic_linker="$host_os dld.sl"
11640    shlibpath_var=SHLIB_PATH
11641    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11642    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643    soname_spec='$libname$release$shared_ext$major'
11644    ;;
11645  esac
11646  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11647  postinstall_cmds='chmod 555 $lib'
11648  # or fails outright, so override atomically:
11649  install_override_mode=555
11650  ;;
11651
11652interix[3-9]*)
11653  version_type=linux # correct to gnu/linux during the next big refactor
11654  need_lib_prefix=no
11655  need_version=no
11656  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11657  soname_spec='$libname$release$shared_ext$major'
11658  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11659  shlibpath_var=LD_LIBRARY_PATH
11660  shlibpath_overrides_runpath=no
11661  hardcode_into_libs=yes
11662  ;;
11663
11664irix5* | irix6* | nonstopux*)
11665  case $host_os in
11666    nonstopux*) version_type=nonstopux ;;
11667    *)
11668	if test yes = "$lt_cv_prog_gnu_ld"; then
11669		version_type=linux # correct to gnu/linux during the next big refactor
11670	else
11671		version_type=irix
11672	fi ;;
11673  esac
11674  need_lib_prefix=no
11675  need_version=no
11676  soname_spec='$libname$release$shared_ext$major'
11677  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11678  case $host_os in
11679  irix5* | nonstopux*)
11680    libsuff= shlibsuff=
11681    ;;
11682  *)
11683    case $LD in # libtool.m4 will add one of these switches to LD
11684    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11685      libsuff= shlibsuff= libmagic=32-bit;;
11686    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11687      libsuff=32 shlibsuff=N32 libmagic=N32;;
11688    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11689      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11690    *) libsuff= shlibsuff= libmagic=never-match;;
11691    esac
11692    ;;
11693  esac
11694  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11695  shlibpath_overrides_runpath=no
11696  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11697  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11698  hardcode_into_libs=yes
11699  ;;
11700
11701# No shared lib support for Linux oldld, aout, or coff.
11702linux*oldld* | linux*aout* | linux*coff*)
11703  dynamic_linker=no
11704  ;;
11705
11706linux*android*)
11707  version_type=none # Android doesn't support versioned libraries.
11708  need_lib_prefix=no
11709  need_version=no
11710  library_names_spec='$libname$release$shared_ext'
11711  soname_spec='$libname$release$shared_ext'
11712  finish_cmds=
11713  shlibpath_var=LD_LIBRARY_PATH
11714  shlibpath_overrides_runpath=yes
11715
11716  # This implies no fast_install, which is unacceptable.
11717  # Some rework will be needed to allow for fast_install
11718  # before this can be enabled.
11719  hardcode_into_libs=yes
11720
11721  dynamic_linker='Android linker'
11722  # Don't embed -rpath directories since the linker doesn't support them.
11723  hardcode_libdir_flag_spec='-L$libdir'
11724  ;;
11725
11726# This must be glibc/ELF.
11727linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11728  version_type=linux # correct to gnu/linux during the next big refactor
11729  need_lib_prefix=no
11730  need_version=no
11731  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732  soname_spec='$libname$release$shared_ext$major'
11733  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11734  shlibpath_var=LD_LIBRARY_PATH
11735  shlibpath_overrides_runpath=no
11736
11737  # Some binutils ld are patched to set DT_RUNPATH
11738  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  lt_cv_shlibpath_overrides_runpath=no
11742    save_LDFLAGS=$LDFLAGS
11743    save_libdir=$libdir
11744    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11745	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747/* end confdefs.h.  */
11748
11749int
11750main ()
11751{
11752
11753  ;
11754  return 0;
11755}
11756_ACEOF
11757if ac_fn_c_try_link "$LINENO"; then :
11758  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11759  lt_cv_shlibpath_overrides_runpath=yes
11760fi
11761fi
11762rm -f core conftest.err conftest.$ac_objext \
11763    conftest$ac_exeext conftest.$ac_ext
11764    LDFLAGS=$save_LDFLAGS
11765    libdir=$save_libdir
11766
11767fi
11768
11769  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11770
11771  # This implies no fast_install, which is unacceptable.
11772  # Some rework will be needed to allow for fast_install
11773  # before this can be enabled.
11774  hardcode_into_libs=yes
11775
11776  # Ideally, we could use ldconfig to report *all* directores which are
11777  # searched for libraries, however this is still not possible.  Aside from not
11778  # being certain /sbin/ldconfig is available, command
11779  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11780  # even though it is searched at run-time.  Try to do the best guess by
11781  # appending ld.so.conf contents (and includes) to the search path.
11782  if test -f /etc/ld.so.conf; then
11783    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' ' '`
11784    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11785  fi
11786
11787  # We used to test for /lib/ld.so.1 and disable shared libraries on
11788  # powerpc, because MkLinux only supported shared libraries with the
11789  # GNU dynamic linker.  Since this was broken with cross compilers,
11790  # most powerpc-linux boxes support dynamic linking these days and
11791  # people can always --disable-shared, the test was removed, and we
11792  # assume the GNU/Linux dynamic linker is in use.
11793  dynamic_linker='GNU/Linux ld.so'
11794  ;;
11795
11796netbsd*)
11797  version_type=sunos
11798  need_lib_prefix=no
11799  need_version=no
11800  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11801    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11802    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11803    dynamic_linker='NetBSD (a.out) ld.so'
11804  else
11805    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11806    soname_spec='$libname$release$shared_ext$major'
11807    dynamic_linker='NetBSD ld.elf_so'
11808  fi
11809  shlibpath_var=LD_LIBRARY_PATH
11810  shlibpath_overrides_runpath=yes
11811  hardcode_into_libs=yes
11812  ;;
11813
11814newsos6)
11815  version_type=linux # correct to gnu/linux during the next big refactor
11816  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11817  shlibpath_var=LD_LIBRARY_PATH
11818  shlibpath_overrides_runpath=yes
11819  ;;
11820
11821*nto* | *qnx*)
11822  version_type=qnx
11823  need_lib_prefix=no
11824  need_version=no
11825  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11826  soname_spec='$libname$release$shared_ext$major'
11827  shlibpath_var=LD_LIBRARY_PATH
11828  shlibpath_overrides_runpath=no
11829  hardcode_into_libs=yes
11830  dynamic_linker='ldqnx.so'
11831  ;;
11832
11833openbsd* | bitrig*)
11834  version_type=sunos
11835  sys_lib_dlsearch_path_spec=/usr/lib
11836  need_lib_prefix=no
11837  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11838    need_version=no
11839  else
11840    need_version=yes
11841  fi
11842  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11844  shlibpath_var=LD_LIBRARY_PATH
11845  shlibpath_overrides_runpath=yes
11846  ;;
11847
11848os2*)
11849  libname_spec='$name'
11850  version_type=windows
11851  shrext_cmds=.dll
11852  need_version=no
11853  need_lib_prefix=no
11854  # OS/2 can only load a DLL with a base name of 8 characters or less.
11855  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11856    v=$($ECHO $release$versuffix | tr -d .-);
11857    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11858    $ECHO $n$v`$shared_ext'
11859  library_names_spec='${libname}_dll.$libext'
11860  dynamic_linker='OS/2 ld.exe'
11861  shlibpath_var=BEGINLIBPATH
11862  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11863  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11864  postinstall_cmds='base_file=`basename \$file`~
11865    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11866    dldir=$destdir/`dirname \$dlpath`~
11867    test -d \$dldir || mkdir -p \$dldir~
11868    $install_prog $dir/$dlname \$dldir/$dlname~
11869    chmod a+x \$dldir/$dlname~
11870    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11871      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11872    fi'
11873  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11874    dlpath=$dir/\$dldll~
11875    $RM \$dlpath'
11876  ;;
11877
11878osf3* | osf4* | osf5*)
11879  version_type=osf
11880  need_lib_prefix=no
11881  need_version=no
11882  soname_spec='$libname$release$shared_ext$major'
11883  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11884  shlibpath_var=LD_LIBRARY_PATH
11885  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11886  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11887  ;;
11888
11889rdos*)
11890  dynamic_linker=no
11891  ;;
11892
11893solaris*)
11894  version_type=linux # correct to gnu/linux during the next big refactor
11895  need_lib_prefix=no
11896  need_version=no
11897  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11898  soname_spec='$libname$release$shared_ext$major'
11899  shlibpath_var=LD_LIBRARY_PATH
11900  shlibpath_overrides_runpath=yes
11901  hardcode_into_libs=yes
11902  # ldd complains unless libraries are executable
11903  postinstall_cmds='chmod +x $lib'
11904  ;;
11905
11906sunos4*)
11907  version_type=sunos
11908  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11909  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11910  shlibpath_var=LD_LIBRARY_PATH
11911  shlibpath_overrides_runpath=yes
11912  if test yes = "$with_gnu_ld"; then
11913    need_lib_prefix=no
11914  fi
11915  need_version=yes
11916  ;;
11917
11918sysv4 | sysv4.3*)
11919  version_type=linux # correct to gnu/linux during the next big refactor
11920  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11921  soname_spec='$libname$release$shared_ext$major'
11922  shlibpath_var=LD_LIBRARY_PATH
11923  case $host_vendor in
11924    sni)
11925      shlibpath_overrides_runpath=no
11926      need_lib_prefix=no
11927      runpath_var=LD_RUN_PATH
11928      ;;
11929    siemens)
11930      need_lib_prefix=no
11931      ;;
11932    motorola)
11933      need_lib_prefix=no
11934      need_version=no
11935      shlibpath_overrides_runpath=no
11936      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11937      ;;
11938  esac
11939  ;;
11940
11941sysv4*MP*)
11942  if test -d /usr/nec; then
11943    version_type=linux # correct to gnu/linux during the next big refactor
11944    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11945    soname_spec='$libname$shared_ext.$major'
11946    shlibpath_var=LD_LIBRARY_PATH
11947  fi
11948  ;;
11949
11950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11951  version_type=sco
11952  need_lib_prefix=no
11953  need_version=no
11954  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11955  soname_spec='$libname$release$shared_ext$major'
11956  shlibpath_var=LD_LIBRARY_PATH
11957  shlibpath_overrides_runpath=yes
11958  hardcode_into_libs=yes
11959  if test yes = "$with_gnu_ld"; then
11960    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11961  else
11962    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11963    case $host_os in
11964      sco3.2v5*)
11965        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11966	;;
11967    esac
11968  fi
11969  sys_lib_dlsearch_path_spec='/usr/lib'
11970  ;;
11971
11972tpf*)
11973  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11974  version_type=linux # correct to gnu/linux during the next big refactor
11975  need_lib_prefix=no
11976  need_version=no
11977  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978  shlibpath_var=LD_LIBRARY_PATH
11979  shlibpath_overrides_runpath=no
11980  hardcode_into_libs=yes
11981  ;;
11982
11983uts4*)
11984  version_type=linux # correct to gnu/linux during the next big refactor
11985  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986  soname_spec='$libname$release$shared_ext$major'
11987  shlibpath_var=LD_LIBRARY_PATH
11988  ;;
11989
11990*)
11991  dynamic_linker=no
11992  ;;
11993esac
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11995$as_echo "$dynamic_linker" >&6; }
11996test no = "$dynamic_linker" && can_build_shared=no
11997
11998variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11999if test yes = "$GCC"; then
12000  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12001fi
12002
12003if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12004  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12005fi
12006
12007if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12008  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12009fi
12010
12011# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12012configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12013
12014# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12015func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12016
12017# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12018configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12117$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12118hardcode_action=
12119if test -n "$hardcode_libdir_flag_spec" ||
12120   test -n "$runpath_var" ||
12121   test yes = "$hardcode_automatic"; then
12122
12123  # We can hardcode non-existent directories.
12124  if test no != "$hardcode_direct" &&
12125     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12126     # have to relink, otherwise we might link with an installed library
12127     # when we should be linking with a yet-to-be-installed one
12128     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12129     test no != "$hardcode_minus_L"; then
12130    # Linking always hardcodes the temporary library directory.
12131    hardcode_action=relink
12132  else
12133    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12134    hardcode_action=immediate
12135  fi
12136else
12137  # We cannot hardcode anything, or else we can only hardcode existing
12138  # directories.
12139  hardcode_action=unsupported
12140fi
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12142$as_echo "$hardcode_action" >&6; }
12143
12144if test relink = "$hardcode_action" ||
12145   test yes = "$inherit_rpath"; then
12146  # Fast installation is not supported
12147  enable_fast_install=no
12148elif test yes = "$shlibpath_overrides_runpath" ||
12149     test no = "$enable_shared"; then
12150  # Fast installation is not necessary
12151  enable_fast_install=needless
12152fi
12153
12154
12155
12156
12157
12158
12159  if test yes != "$enable_dlopen"; then
12160  enable_dlopen=unknown
12161  enable_dlopen_self=unknown
12162  enable_dlopen_self_static=unknown
12163else
12164  lt_cv_dlopen=no
12165  lt_cv_dlopen_libs=
12166
12167  case $host_os in
12168  beos*)
12169    lt_cv_dlopen=load_add_on
12170    lt_cv_dlopen_libs=
12171    lt_cv_dlopen_self=yes
12172    ;;
12173
12174  mingw* | pw32* | cegcc*)
12175    lt_cv_dlopen=LoadLibrary
12176    lt_cv_dlopen_libs=
12177    ;;
12178
12179  cygwin*)
12180    lt_cv_dlopen=dlopen
12181    lt_cv_dlopen_libs=
12182    ;;
12183
12184  darwin*)
12185    # if libdl is installed we need to link against it
12186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12187$as_echo_n "checking for dlopen in -ldl... " >&6; }
12188if ${ac_cv_lib_dl_dlopen+:} false; then :
12189  $as_echo_n "(cached) " >&6
12190else
12191  ac_check_lib_save_LIBS=$LIBS
12192LIBS="-ldl  $LIBS"
12193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194/* end confdefs.h.  */
12195
12196/* Override any GCC internal prototype to avoid an error.
12197   Use char because int might match the return type of a GCC
12198   builtin and then its argument prototype would still apply.  */
12199#ifdef __cplusplus
12200extern "C"
12201#endif
12202char dlopen ();
12203int
12204main ()
12205{
12206return dlopen ();
12207  ;
12208  return 0;
12209}
12210_ACEOF
12211if ac_fn_c_try_link "$LINENO"; then :
12212  ac_cv_lib_dl_dlopen=yes
12213else
12214  ac_cv_lib_dl_dlopen=no
12215fi
12216rm -f core conftest.err conftest.$ac_objext \
12217    conftest$ac_exeext conftest.$ac_ext
12218LIBS=$ac_check_lib_save_LIBS
12219fi
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12221$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12222if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12223  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12224else
12225
12226    lt_cv_dlopen=dyld
12227    lt_cv_dlopen_libs=
12228    lt_cv_dlopen_self=yes
12229
12230fi
12231
12232    ;;
12233
12234  tpf*)
12235    # Don't try to run any link tests for TPF.  We know it's impossible
12236    # because TPF is a cross-compiler, and we know how we open DSOs.
12237    lt_cv_dlopen=dlopen
12238    lt_cv_dlopen_libs=
12239    lt_cv_dlopen_self=no
12240    ;;
12241
12242  *)
12243    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12244if test "x$ac_cv_func_shl_load" = xyes; then :
12245  lt_cv_dlopen=shl_load
12246else
12247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12248$as_echo_n "checking for shl_load in -ldld... " >&6; }
12249if ${ac_cv_lib_dld_shl_load+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  ac_check_lib_save_LIBS=$LIBS
12253LIBS="-ldld  $LIBS"
12254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255/* end confdefs.h.  */
12256
12257/* Override any GCC internal prototype to avoid an error.
12258   Use char because int might match the return type of a GCC
12259   builtin and then its argument prototype would still apply.  */
12260#ifdef __cplusplus
12261extern "C"
12262#endif
12263char shl_load ();
12264int
12265main ()
12266{
12267return shl_load ();
12268  ;
12269  return 0;
12270}
12271_ACEOF
12272if ac_fn_c_try_link "$LINENO"; then :
12273  ac_cv_lib_dld_shl_load=yes
12274else
12275  ac_cv_lib_dld_shl_load=no
12276fi
12277rm -f core conftest.err conftest.$ac_objext \
12278    conftest$ac_exeext conftest.$ac_ext
12279LIBS=$ac_check_lib_save_LIBS
12280fi
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12282$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12283if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12284  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12285else
12286  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12287if test "x$ac_cv_func_dlopen" = xyes; then :
12288  lt_cv_dlopen=dlopen
12289else
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12291$as_echo_n "checking for dlopen in -ldl... " >&6; }
12292if ${ac_cv_lib_dl_dlopen+:} false; then :
12293  $as_echo_n "(cached) " >&6
12294else
12295  ac_check_lib_save_LIBS=$LIBS
12296LIBS="-ldl  $LIBS"
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h.  */
12299
12300/* Override any GCC internal prototype to avoid an error.
12301   Use char because int might match the return type of a GCC
12302   builtin and then its argument prototype would still apply.  */
12303#ifdef __cplusplus
12304extern "C"
12305#endif
12306char dlopen ();
12307int
12308main ()
12309{
12310return dlopen ();
12311  ;
12312  return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_link "$LINENO"; then :
12316  ac_cv_lib_dl_dlopen=yes
12317else
12318  ac_cv_lib_dl_dlopen=no
12319fi
12320rm -f core conftest.err conftest.$ac_objext \
12321    conftest$ac_exeext conftest.$ac_ext
12322LIBS=$ac_check_lib_save_LIBS
12323fi
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12325$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12326if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12327  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12328else
12329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12330$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12331if ${ac_cv_lib_svld_dlopen+:} false; then :
12332  $as_echo_n "(cached) " >&6
12333else
12334  ac_check_lib_save_LIBS=$LIBS
12335LIBS="-lsvld  $LIBS"
12336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337/* end confdefs.h.  */
12338
12339/* Override any GCC internal prototype to avoid an error.
12340   Use char because int might match the return type of a GCC
12341   builtin and then its argument prototype would still apply.  */
12342#ifdef __cplusplus
12343extern "C"
12344#endif
12345char dlopen ();
12346int
12347main ()
12348{
12349return dlopen ();
12350  ;
12351  return 0;
12352}
12353_ACEOF
12354if ac_fn_c_try_link "$LINENO"; then :
12355  ac_cv_lib_svld_dlopen=yes
12356else
12357  ac_cv_lib_svld_dlopen=no
12358fi
12359rm -f core conftest.err conftest.$ac_objext \
12360    conftest$ac_exeext conftest.$ac_ext
12361LIBS=$ac_check_lib_save_LIBS
12362fi
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12364$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12365if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12366  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12367else
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12369$as_echo_n "checking for dld_link in -ldld... " >&6; }
12370if ${ac_cv_lib_dld_dld_link+:} false; then :
12371  $as_echo_n "(cached) " >&6
12372else
12373  ac_check_lib_save_LIBS=$LIBS
12374LIBS="-ldld  $LIBS"
12375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h.  */
12377
12378/* Override any GCC internal prototype to avoid an error.
12379   Use char because int might match the return type of a GCC
12380   builtin and then its argument prototype would still apply.  */
12381#ifdef __cplusplus
12382extern "C"
12383#endif
12384char dld_link ();
12385int
12386main ()
12387{
12388return dld_link ();
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_link "$LINENO"; then :
12394  ac_cv_lib_dld_dld_link=yes
12395else
12396  ac_cv_lib_dld_dld_link=no
12397fi
12398rm -f core conftest.err conftest.$ac_objext \
12399    conftest$ac_exeext conftest.$ac_ext
12400LIBS=$ac_check_lib_save_LIBS
12401fi
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12403$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12404if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12405  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12406fi
12407
12408
12409fi
12410
12411
12412fi
12413
12414
12415fi
12416
12417
12418fi
12419
12420
12421fi
12422
12423    ;;
12424  esac
12425
12426  if test no = "$lt_cv_dlopen"; then
12427    enable_dlopen=no
12428  else
12429    enable_dlopen=yes
12430  fi
12431
12432  case $lt_cv_dlopen in
12433  dlopen)
12434    save_CPPFLAGS=$CPPFLAGS
12435    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12436
12437    save_LDFLAGS=$LDFLAGS
12438    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12439
12440    save_LIBS=$LIBS
12441    LIBS="$lt_cv_dlopen_libs $LIBS"
12442
12443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12444$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12445if ${lt_cv_dlopen_self+:} false; then :
12446  $as_echo_n "(cached) " >&6
12447else
12448  	  if test yes = "$cross_compiling"; then :
12449  lt_cv_dlopen_self=cross
12450else
12451  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12452  lt_status=$lt_dlunknown
12453  cat > conftest.$ac_ext <<_LT_EOF
12454#line $LINENO "configure"
12455#include "confdefs.h"
12456
12457#if HAVE_DLFCN_H
12458#include <dlfcn.h>
12459#endif
12460
12461#include <stdio.h>
12462
12463#ifdef RTLD_GLOBAL
12464#  define LT_DLGLOBAL		RTLD_GLOBAL
12465#else
12466#  ifdef DL_GLOBAL
12467#    define LT_DLGLOBAL		DL_GLOBAL
12468#  else
12469#    define LT_DLGLOBAL		0
12470#  endif
12471#endif
12472
12473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12474   find out it does not work in some platform. */
12475#ifndef LT_DLLAZY_OR_NOW
12476#  ifdef RTLD_LAZY
12477#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12478#  else
12479#    ifdef DL_LAZY
12480#      define LT_DLLAZY_OR_NOW		DL_LAZY
12481#    else
12482#      ifdef RTLD_NOW
12483#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12484#      else
12485#        ifdef DL_NOW
12486#          define LT_DLLAZY_OR_NOW	DL_NOW
12487#        else
12488#          define LT_DLLAZY_OR_NOW	0
12489#        endif
12490#      endif
12491#    endif
12492#  endif
12493#endif
12494
12495/* When -fvisibility=hidden is used, assume the code has been annotated
12496   correspondingly for the symbols needed.  */
12497#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12498int fnord () __attribute__((visibility("default")));
12499#endif
12500
12501int fnord () { return 42; }
12502int main ()
12503{
12504  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12505  int status = $lt_dlunknown;
12506
12507  if (self)
12508    {
12509      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12510      else
12511        {
12512	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12513          else puts (dlerror ());
12514	}
12515      /* dlclose (self); */
12516    }
12517  else
12518    puts (dlerror ());
12519
12520  return status;
12521}
12522_LT_EOF
12523  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12524  (eval $ac_link) 2>&5
12525  ac_status=$?
12526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12527  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12528    (./conftest; exit; ) >&5 2>/dev/null
12529    lt_status=$?
12530    case x$lt_status in
12531      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12532      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12533      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12534    esac
12535  else :
12536    # compilation failed
12537    lt_cv_dlopen_self=no
12538  fi
12539fi
12540rm -fr conftest*
12541
12542
12543fi
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12545$as_echo "$lt_cv_dlopen_self" >&6; }
12546
12547    if test yes = "$lt_cv_dlopen_self"; then
12548      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12549      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12550$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12551if ${lt_cv_dlopen_self_static+:} false; then :
12552  $as_echo_n "(cached) " >&6
12553else
12554  	  if test yes = "$cross_compiling"; then :
12555  lt_cv_dlopen_self_static=cross
12556else
12557  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12558  lt_status=$lt_dlunknown
12559  cat > conftest.$ac_ext <<_LT_EOF
12560#line $LINENO "configure"
12561#include "confdefs.h"
12562
12563#if HAVE_DLFCN_H
12564#include <dlfcn.h>
12565#endif
12566
12567#include <stdio.h>
12568
12569#ifdef RTLD_GLOBAL
12570#  define LT_DLGLOBAL		RTLD_GLOBAL
12571#else
12572#  ifdef DL_GLOBAL
12573#    define LT_DLGLOBAL		DL_GLOBAL
12574#  else
12575#    define LT_DLGLOBAL		0
12576#  endif
12577#endif
12578
12579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12580   find out it does not work in some platform. */
12581#ifndef LT_DLLAZY_OR_NOW
12582#  ifdef RTLD_LAZY
12583#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12584#  else
12585#    ifdef DL_LAZY
12586#      define LT_DLLAZY_OR_NOW		DL_LAZY
12587#    else
12588#      ifdef RTLD_NOW
12589#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12590#      else
12591#        ifdef DL_NOW
12592#          define LT_DLLAZY_OR_NOW	DL_NOW
12593#        else
12594#          define LT_DLLAZY_OR_NOW	0
12595#        endif
12596#      endif
12597#    endif
12598#  endif
12599#endif
12600
12601/* When -fvisibility=hidden is used, assume the code has been annotated
12602   correspondingly for the symbols needed.  */
12603#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12604int fnord () __attribute__((visibility("default")));
12605#endif
12606
12607int fnord () { return 42; }
12608int main ()
12609{
12610  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12611  int status = $lt_dlunknown;
12612
12613  if (self)
12614    {
12615      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12616      else
12617        {
12618	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12619          else puts (dlerror ());
12620	}
12621      /* dlclose (self); */
12622    }
12623  else
12624    puts (dlerror ());
12625
12626  return status;
12627}
12628_LT_EOF
12629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12630  (eval $ac_link) 2>&5
12631  ac_status=$?
12632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12634    (./conftest; exit; ) >&5 2>/dev/null
12635    lt_status=$?
12636    case x$lt_status in
12637      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12638      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12639      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12640    esac
12641  else :
12642    # compilation failed
12643    lt_cv_dlopen_self_static=no
12644  fi
12645fi
12646rm -fr conftest*
12647
12648
12649fi
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12651$as_echo "$lt_cv_dlopen_self_static" >&6; }
12652    fi
12653
12654    CPPFLAGS=$save_CPPFLAGS
12655    LDFLAGS=$save_LDFLAGS
12656    LIBS=$save_LIBS
12657    ;;
12658  esac
12659
12660  case $lt_cv_dlopen_self in
12661  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12662  *) enable_dlopen_self=unknown ;;
12663  esac
12664
12665  case $lt_cv_dlopen_self_static in
12666  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12667  *) enable_dlopen_self_static=unknown ;;
12668  esac
12669fi
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687striplib=
12688old_striplib=
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12690$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12691if test -z "$STRIP"; then
12692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693$as_echo "no" >&6; }
12694else
12695  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12696    old_striplib="$STRIP --strip-debug"
12697    striplib="$STRIP --strip-unneeded"
12698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12699$as_echo "yes" >&6; }
12700  else
12701    case $host_os in
12702    darwin*)
12703      # FIXME - insert some real tests, host_os isn't really good enough
12704      striplib="$STRIP -x"
12705      old_striplib="$STRIP -S"
12706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12707$as_echo "yes" >&6; }
12708      ;;
12709    freebsd*)
12710      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12711        old_striplib="$STRIP --strip-debug"
12712        striplib="$STRIP --strip-unneeded"
12713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12714$as_echo "yes" >&6; }
12715      else
12716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717$as_echo "no" >&6; }
12718      fi
12719      ;;
12720    *)
12721      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722$as_echo "no" >&6; }
12723      ;;
12724    esac
12725  fi
12726fi
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739  # Report what library types will actually be built
12740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12741$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12743$as_echo "$can_build_shared" >&6; }
12744
12745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12746$as_echo_n "checking whether to build shared libraries... " >&6; }
12747  test no = "$can_build_shared" && enable_shared=no
12748
12749  # On AIX, shared libraries and static libraries use the same namespace, and
12750  # are all built from PIC.
12751  case $host_os in
12752  aix3*)
12753    test yes = "$enable_shared" && enable_static=no
12754    if test -n "$RANLIB"; then
12755      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12756      postinstall_cmds='$RANLIB $lib'
12757    fi
12758    ;;
12759
12760  aix[4-9]*)
12761    if test ia64 != "$host_cpu"; then
12762      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12763      yes,aix,yes) ;;			# shared object as lib.so file only
12764      yes,svr4,*) ;;			# shared object as lib.so archive member only
12765      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12766      esac
12767    fi
12768    ;;
12769  esac
12770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12771$as_echo "$enable_shared" >&6; }
12772
12773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12774$as_echo_n "checking whether to build static libraries... " >&6; }
12775  # Make sure either enable_shared or enable_static is yes.
12776  test yes = "$enable_shared" || enable_static=yes
12777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12778$as_echo "$enable_static" >&6; }
12779
12780
12781
12782
12783fi
12784ac_ext=c
12785ac_cpp='$CPP $CPPFLAGS'
12786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788ac_compiler_gnu=$ac_cv_c_compiler_gnu
12789
12790CC=$lt_save_CC
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806        ac_config_commands="$ac_config_commands libtool"
12807
12808
12809
12810
12811# Only expand once:
12812
12813
12814
12815
12816
12817 if test "$enable_samples" = "yes"; then
12818  BUILD_SAMPLES_TRUE=
12819  BUILD_SAMPLES_FALSE='#'
12820else
12821  BUILD_SAMPLES_TRUE='#'
12822  BUILD_SAMPLES_FALSE=
12823fi
12824
12825 if test "$enable_libevent_regress" = "yes"; then
12826  BUILD_REGRESS_TRUE=
12827  BUILD_REGRESS_FALSE='#'
12828else
12829  BUILD_REGRESS_TRUE='#'
12830  BUILD_REGRESS_FALSE=
12831fi
12832
12833
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12835$as_echo_n "checking for library containing inet_ntoa... " >&6; }
12836if ${ac_cv_search_inet_ntoa+:} false; then :
12837  $as_echo_n "(cached) " >&6
12838else
12839  ac_func_search_save_LIBS=$LIBS
12840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841/* end confdefs.h.  */
12842
12843/* Override any GCC internal prototype to avoid an error.
12844   Use char because int might match the return type of a GCC
12845   builtin and then its argument prototype would still apply.  */
12846#ifdef __cplusplus
12847extern "C"
12848#endif
12849char inet_ntoa ();
12850int
12851main ()
12852{
12853return inet_ntoa ();
12854  ;
12855  return 0;
12856}
12857_ACEOF
12858for ac_lib in '' nsl; do
12859  if test -z "$ac_lib"; then
12860    ac_res="none required"
12861  else
12862    ac_res=-l$ac_lib
12863    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12864  fi
12865  if ac_fn_c_try_link "$LINENO"; then :
12866  ac_cv_search_inet_ntoa=$ac_res
12867fi
12868rm -f core conftest.err conftest.$ac_objext \
12869    conftest$ac_exeext
12870  if ${ac_cv_search_inet_ntoa+:} false; then :
12871  break
12872fi
12873done
12874if ${ac_cv_search_inet_ntoa+:} false; then :
12875
12876else
12877  ac_cv_search_inet_ntoa=no
12878fi
12879rm conftest.$ac_ext
12880LIBS=$ac_func_search_save_LIBS
12881fi
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12883$as_echo "$ac_cv_search_inet_ntoa" >&6; }
12884ac_res=$ac_cv_search_inet_ntoa
12885if test "$ac_res" != no; then :
12886  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12887
12888fi
12889
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12891$as_echo_n "checking for library containing socket... " >&6; }
12892if ${ac_cv_search_socket+:} false; then :
12893  $as_echo_n "(cached) " >&6
12894else
12895  ac_func_search_save_LIBS=$LIBS
12896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897/* end confdefs.h.  */
12898
12899/* Override any GCC internal prototype to avoid an error.
12900   Use char because int might match the return type of a GCC
12901   builtin and then its argument prototype would still apply.  */
12902#ifdef __cplusplus
12903extern "C"
12904#endif
12905char socket ();
12906int
12907main ()
12908{
12909return socket ();
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914for ac_lib in '' socket; do
12915  if test -z "$ac_lib"; then
12916    ac_res="none required"
12917  else
12918    ac_res=-l$ac_lib
12919    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12920  fi
12921  if ac_fn_c_try_link "$LINENO"; then :
12922  ac_cv_search_socket=$ac_res
12923fi
12924rm -f core conftest.err conftest.$ac_objext \
12925    conftest$ac_exeext
12926  if ${ac_cv_search_socket+:} false; then :
12927  break
12928fi
12929done
12930if ${ac_cv_search_socket+:} false; then :
12931
12932else
12933  ac_cv_search_socket=no
12934fi
12935rm conftest.$ac_ext
12936LIBS=$ac_func_search_save_LIBS
12937fi
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12939$as_echo "$ac_cv_search_socket" >&6; }
12940ac_res=$ac_cv_search_socket
12941if test "$ac_res" != no; then :
12942  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943
12944fi
12945
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12947$as_echo_n "checking for library containing inet_aton... " >&6; }
12948if ${ac_cv_search_inet_aton+:} false; then :
12949  $as_echo_n "(cached) " >&6
12950else
12951  ac_func_search_save_LIBS=$LIBS
12952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h.  */
12954
12955/* Override any GCC internal prototype to avoid an error.
12956   Use char because int might match the return type of a GCC
12957   builtin and then its argument prototype would still apply.  */
12958#ifdef __cplusplus
12959extern "C"
12960#endif
12961char inet_aton ();
12962int
12963main ()
12964{
12965return inet_aton ();
12966  ;
12967  return 0;
12968}
12969_ACEOF
12970for ac_lib in '' resolv; do
12971  if test -z "$ac_lib"; then
12972    ac_res="none required"
12973  else
12974    ac_res=-l$ac_lib
12975    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12976  fi
12977  if ac_fn_c_try_link "$LINENO"; then :
12978  ac_cv_search_inet_aton=$ac_res
12979fi
12980rm -f core conftest.err conftest.$ac_objext \
12981    conftest$ac_exeext
12982  if ${ac_cv_search_inet_aton+:} false; then :
12983  break
12984fi
12985done
12986if ${ac_cv_search_inet_aton+:} false; then :
12987
12988else
12989  ac_cv_search_inet_aton=no
12990fi
12991rm conftest.$ac_ext
12992LIBS=$ac_func_search_save_LIBS
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12995$as_echo "$ac_cv_search_inet_aton" >&6; }
12996ac_res=$ac_cv_search_inet_aton
12997if test "$ac_res" != no; then :
12998  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12999
13000fi
13001
13002if test "x$enable_clock_gettime" = "xyes"; then
13003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13004$as_echo_n "checking for library containing clock_gettime... " >&6; }
13005if ${ac_cv_search_clock_gettime+:} false; then :
13006  $as_echo_n "(cached) " >&6
13007else
13008  ac_func_search_save_LIBS=$LIBS
13009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010/* end confdefs.h.  */
13011
13012/* Override any GCC internal prototype to avoid an error.
13013   Use char because int might match the return type of a GCC
13014   builtin and then its argument prototype would still apply.  */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018char clock_gettime ();
13019int
13020main ()
13021{
13022return clock_gettime ();
13023  ;
13024  return 0;
13025}
13026_ACEOF
13027for ac_lib in '' rt; do
13028  if test -z "$ac_lib"; then
13029    ac_res="none required"
13030  else
13031    ac_res=-l$ac_lib
13032    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13033  fi
13034  if ac_fn_c_try_link "$LINENO"; then :
13035  ac_cv_search_clock_gettime=$ac_res
13036fi
13037rm -f core conftest.err conftest.$ac_objext \
13038    conftest$ac_exeext
13039  if ${ac_cv_search_clock_gettime+:} false; then :
13040  break
13041fi
13042done
13043if ${ac_cv_search_clock_gettime+:} false; then :
13044
13045else
13046  ac_cv_search_clock_gettime=no
13047fi
13048rm conftest.$ac_ext
13049LIBS=$ac_func_search_save_LIBS
13050fi
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13052$as_echo "$ac_cv_search_clock_gettime" >&6; }
13053ac_res=$ac_cv_search_clock_gettime
13054if test "$ac_res" != no; then :
13055  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13056
13057fi
13058
13059  for ac_func in clock_gettime
13060do :
13061  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13062if test "x$ac_cv_func_clock_gettime" = xyes; then :
13063  cat >>confdefs.h <<_ACEOF
13064#define HAVE_CLOCK_GETTIME 1
13065_ACEOF
13066
13067fi
13068done
13069
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
13072$as_echo_n "checking for library containing sendfile... " >&6; }
13073if ${ac_cv_search_sendfile+:} false; then :
13074  $as_echo_n "(cached) " >&6
13075else
13076  ac_func_search_save_LIBS=$LIBS
13077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078/* end confdefs.h.  */
13079
13080/* Override any GCC internal prototype to avoid an error.
13081   Use char because int might match the return type of a GCC
13082   builtin and then its argument prototype would still apply.  */
13083#ifdef __cplusplus
13084extern "C"
13085#endif
13086char sendfile ();
13087int
13088main ()
13089{
13090return sendfile ();
13091  ;
13092  return 0;
13093}
13094_ACEOF
13095for ac_lib in '' sendfile; do
13096  if test -z "$ac_lib"; then
13097    ac_res="none required"
13098  else
13099    ac_res=-l$ac_lib
13100    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13101  fi
13102  if ac_fn_c_try_link "$LINENO"; then :
13103  ac_cv_search_sendfile=$ac_res
13104fi
13105rm -f core conftest.err conftest.$ac_objext \
13106    conftest$ac_exeext
13107  if ${ac_cv_search_sendfile+:} false; then :
13108  break
13109fi
13110done
13111if ${ac_cv_search_sendfile+:} false; then :
13112
13113else
13114  ac_cv_search_sendfile=no
13115fi
13116rm conftest.$ac_ext
13117LIBS=$ac_func_search_save_LIBS
13118fi
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
13120$as_echo "$ac_cv_search_sendfile" >&6; }
13121ac_res=$ac_cv_search_sendfile
13122if test "$ac_res" != no; then :
13123  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13124
13125fi
13126
13127
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
13129$as_echo_n "checking for WIN32... " >&6; }
13130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131/* end confdefs.h.  */
13132
13133int
13134main ()
13135{
13136
13137#ifndef _WIN32
13138die horribly
13139#endif
13140
13141
13142  ;
13143  return 0;
13144}
13145_ACEOF
13146if ac_fn_c_try_compile "$LINENO"; then :
13147  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148$as_echo "yes" >&6; }
13149else
13150  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152
13153fi
13154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5
13157$as_echo_n "checking for MIDIPIX... " >&6; }
13158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160
13161int
13162main ()
13163{
13164
13165#ifndef __midipix__
13166die horribly
13167#endif
13168
13169
13170  ;
13171  return 0;
13172}
13173_ACEOF
13174if ac_fn_c_try_compile "$LINENO"; then :
13175  midipix=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176$as_echo "yes" >&6; }
13177else
13178  midipix=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179$as_echo "no" >&6; }
13180
13181fi
13182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
13185$as_echo_n "checking for CYGWIN... " >&6; }
13186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187/* end confdefs.h.  */
13188
13189int
13190main ()
13191{
13192
13193#ifndef __CYGWIN__
13194die horribly
13195#endif
13196
13197
13198  ;
13199  return 0;
13200}
13201_ACEOF
13202if ac_fn_c_try_compile "$LINENO"; then :
13203  cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13204$as_echo "yes" >&6; }
13205else
13206  cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207$as_echo "no" >&6; }
13208
13209fi
13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211
13212for ac_header in zlib.h
13213do :
13214  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13215if test "x$ac_cv_header_zlib_h" = xyes; then :
13216  cat >>confdefs.h <<_ACEOF
13217#define HAVE_ZLIB_H 1
13218_ACEOF
13219
13220fi
13221
13222done
13223
13224
13225if test "x$ac_cv_header_zlib_h" = "xyes"; then
13226save_LIBS="$LIBS"
13227LIBS=""
13228ZLIB_LIBS=""
13229have_zlib=no
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13231$as_echo_n "checking for library containing inflateEnd... " >&6; }
13232if ${ac_cv_search_inflateEnd+:} false; then :
13233  $as_echo_n "(cached) " >&6
13234else
13235  ac_func_search_save_LIBS=$LIBS
13236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238
13239/* Override any GCC internal prototype to avoid an error.
13240   Use char because int might match the return type of a GCC
13241   builtin and then its argument prototype would still apply.  */
13242#ifdef __cplusplus
13243extern "C"
13244#endif
13245char inflateEnd ();
13246int
13247main ()
13248{
13249return inflateEnd ();
13250  ;
13251  return 0;
13252}
13253_ACEOF
13254for ac_lib in '' z; do
13255  if test -z "$ac_lib"; then
13256    ac_res="none required"
13257  else
13258    ac_res=-l$ac_lib
13259    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13260  fi
13261  if ac_fn_c_try_link "$LINENO"; then :
13262  ac_cv_search_inflateEnd=$ac_res
13263fi
13264rm -f core conftest.err conftest.$ac_objext \
13265    conftest$ac_exeext
13266  if ${ac_cv_search_inflateEnd+:} false; then :
13267  break
13268fi
13269done
13270if ${ac_cv_search_inflateEnd+:} false; then :
13271
13272else
13273  ac_cv_search_inflateEnd=no
13274fi
13275rm conftest.$ac_ext
13276LIBS=$ac_func_search_save_LIBS
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13279$as_echo "$ac_cv_search_inflateEnd" >&6; }
13280ac_res=$ac_cv_search_inflateEnd
13281if test "$ac_res" != no; then :
13282  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13283  have_zlib=yes
13284	ZLIB_LIBS="$LIBS"
13285
13286$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13287
13288fi
13289
13290LIBS="$save_LIBS"
13291
13292fi
13293 if test "$have_zlib" = "yes"; then
13294  ZLIB_REGRESS_TRUE=
13295  ZLIB_REGRESS_FALSE='#'
13296else
13297  ZLIB_REGRESS_TRUE='#'
13298  ZLIB_REGRESS_FALSE=
13299fi
13300
13301
13302if test "$bwin32" = true; then
13303  EV_LIB_WS32=-lws2_32
13304  EV_LIB_GDI=-lgdi32
13305else
13306  EV_LIB_WS32=
13307  EV_LIB_GDI=
13308fi
13309
13310
13311
13312
13313# Check whether --enable-largefile was given.
13314if test "${enable_largefile+set}" = set; then :
13315  enableval=$enable_largefile;
13316fi
13317
13318if test "$enable_largefile" != no; then
13319
13320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13321$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13322if ${ac_cv_sys_largefile_CC+:} false; then :
13323  $as_echo_n "(cached) " >&6
13324else
13325  ac_cv_sys_largefile_CC=no
13326     if test "$GCC" != yes; then
13327       ac_save_CC=$CC
13328       while :; do
13329	 # IRIX 6.2 and later do not support large files by default,
13330	 # so use the C compiler's -n32 option if that helps.
13331	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332/* end confdefs.h.  */
13333#include <sys/types.h>
13334 /* Check that off_t can represent 2**63 - 1 correctly.
13335    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13336    since some C++ compilers masquerading as C compilers
13337    incorrectly reject 9223372036854775807.  */
13338#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13339  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13340		       && LARGE_OFF_T % 2147483647 == 1)
13341		      ? 1 : -1];
13342int
13343main ()
13344{
13345
13346  ;
13347  return 0;
13348}
13349_ACEOF
13350	 if ac_fn_c_try_compile "$LINENO"; then :
13351  break
13352fi
13353rm -f core conftest.err conftest.$ac_objext
13354	 CC="$CC -n32"
13355	 if ac_fn_c_try_compile "$LINENO"; then :
13356  ac_cv_sys_largefile_CC=' -n32'; break
13357fi
13358rm -f core conftest.err conftest.$ac_objext
13359	 break
13360       done
13361       CC=$ac_save_CC
13362       rm -f conftest.$ac_ext
13363    fi
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13366$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13367  if test "$ac_cv_sys_largefile_CC" != no; then
13368    CC=$CC$ac_cv_sys_largefile_CC
13369  fi
13370
13371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13372$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13373if ${ac_cv_sys_file_offset_bits+:} false; then :
13374  $as_echo_n "(cached) " >&6
13375else
13376  while :; do
13377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h.  */
13379#include <sys/types.h>
13380 /* Check that off_t can represent 2**63 - 1 correctly.
13381    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13382    since some C++ compilers masquerading as C compilers
13383    incorrectly reject 9223372036854775807.  */
13384#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13385  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13386		       && LARGE_OFF_T % 2147483647 == 1)
13387		      ? 1 : -1];
13388int
13389main ()
13390{
13391
13392  ;
13393  return 0;
13394}
13395_ACEOF
13396if ac_fn_c_try_compile "$LINENO"; then :
13397  ac_cv_sys_file_offset_bits=no; break
13398fi
13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401/* end confdefs.h.  */
13402#define _FILE_OFFSET_BITS 64
13403#include <sys/types.h>
13404 /* Check that off_t can represent 2**63 - 1 correctly.
13405    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13406    since some C++ compilers masquerading as C compilers
13407    incorrectly reject 9223372036854775807.  */
13408#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13409  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13410		       && LARGE_OFF_T % 2147483647 == 1)
13411		      ? 1 : -1];
13412int
13413main ()
13414{
13415
13416  ;
13417  return 0;
13418}
13419_ACEOF
13420if ac_fn_c_try_compile "$LINENO"; then :
13421  ac_cv_sys_file_offset_bits=64; break
13422fi
13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424  ac_cv_sys_file_offset_bits=unknown
13425  break
13426done
13427fi
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13429$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13430case $ac_cv_sys_file_offset_bits in #(
13431  no | unknown) ;;
13432  *)
13433cat >>confdefs.h <<_ACEOF
13434#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13435_ACEOF
13436;;
13437esac
13438rm -rf conftest*
13439  if test $ac_cv_sys_file_offset_bits = unknown; then
13440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13441$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13442if ${ac_cv_sys_large_files+:} false; then :
13443  $as_echo_n "(cached) " >&6
13444else
13445  while :; do
13446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h.  */
13448#include <sys/types.h>
13449 /* Check that off_t can represent 2**63 - 1 correctly.
13450    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13451    since some C++ compilers masquerading as C compilers
13452    incorrectly reject 9223372036854775807.  */
13453#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13454  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13455		       && LARGE_OFF_T % 2147483647 == 1)
13456		      ? 1 : -1];
13457int
13458main ()
13459{
13460
13461  ;
13462  return 0;
13463}
13464_ACEOF
13465if ac_fn_c_try_compile "$LINENO"; then :
13466  ac_cv_sys_large_files=no; break
13467fi
13468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470/* end confdefs.h.  */
13471#define _LARGE_FILES 1
13472#include <sys/types.h>
13473 /* Check that off_t can represent 2**63 - 1 correctly.
13474    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13475    since some C++ compilers masquerading as C compilers
13476    incorrectly reject 9223372036854775807.  */
13477#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13478  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13479		       && LARGE_OFF_T % 2147483647 == 1)
13480		      ? 1 : -1];
13481int
13482main ()
13483{
13484
13485  ;
13486  return 0;
13487}
13488_ACEOF
13489if ac_fn_c_try_compile "$LINENO"; then :
13490  ac_cv_sys_large_files=1; break
13491fi
13492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493  ac_cv_sys_large_files=unknown
13494  break
13495done
13496fi
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13498$as_echo "$ac_cv_sys_large_files" >&6; }
13499case $ac_cv_sys_large_files in #(
13500  no | unknown) ;;
13501  *)
13502cat >>confdefs.h <<_ACEOF
13503#define _LARGE_FILES $ac_cv_sys_large_files
13504_ACEOF
13505;;
13506esac
13507rm -rf conftest*
13508  fi
13509
13510
13511fi
13512
13513
13514
13515
13516ntp_pkgconfig_min_version='0.15.0'
13517if test -n "$ac_tool_prefix"; then
13518  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13519set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521$as_echo_n "checking for $ac_word... " >&6; }
13522if ${ac_cv_path_PKG_CONFIG+:} false; then :
13523  $as_echo_n "(cached) " >&6
13524else
13525  case $PKG_CONFIG in
13526  [\\/]* | ?:[\\/]*)
13527  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13528  ;;
13529  *)
13530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533  IFS=$as_save_IFS
13534  test -z "$as_dir" && as_dir=.
13535    for ac_exec_ext in '' $ac_executable_extensions; do
13536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539    break 2
13540  fi
13541done
13542  done
13543IFS=$as_save_IFS
13544
13545  ;;
13546esac
13547fi
13548PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13549if test -n "$PKG_CONFIG"; then
13550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13551$as_echo "$PKG_CONFIG" >&6; }
13552else
13553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554$as_echo "no" >&6; }
13555fi
13556
13557
13558fi
13559if test -z "$ac_cv_path_PKG_CONFIG"; then
13560  ac_pt_PKG_CONFIG=$PKG_CONFIG
13561  # Extract the first word of "pkg-config", so it can be a program name with args.
13562set dummy pkg-config; ac_word=$2
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564$as_echo_n "checking for $ac_word... " >&6; }
13565if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13566  $as_echo_n "(cached) " >&6
13567else
13568  case $ac_pt_PKG_CONFIG in
13569  [\\/]* | ?:[\\/]*)
13570  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13571  ;;
13572  *)
13573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576  IFS=$as_save_IFS
13577  test -z "$as_dir" && as_dir=.
13578    for ac_exec_ext in '' $ac_executable_extensions; do
13579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582    break 2
13583  fi
13584done
13585  done
13586IFS=$as_save_IFS
13587
13588  ;;
13589esac
13590fi
13591ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13592if test -n "$ac_pt_PKG_CONFIG"; then
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13594$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13595else
13596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597$as_echo "no" >&6; }
13598fi
13599
13600  if test "x$ac_pt_PKG_CONFIG" = x; then
13601    PKG_CONFIG=""
13602  else
13603    case $cross_compiling:$ac_tool_warned in
13604yes:)
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13607ac_tool_warned=yes ;;
13608esac
13609    PKG_CONFIG=$ac_pt_PKG_CONFIG
13610  fi
13611else
13612  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13613fi
13614
13615{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
13616{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
13617
13618case "$PKG_CONFIG" in
13619 /*)
13620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
13621$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
13622    if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
13623	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13624$as_echo "yes" >&6; }
13625    else
13626	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627$as_echo "no" >&6; }
13628	PKG_CONFIG=""
13629    fi
13630    ;;
13631esac
13632
13633
13634
13635
13636case "$enable_openssl" in
13637 yes)
13638    have_openssl=no
13639    case "$PKG_CONFIG" in
13640     '')
13641	;;
13642     *)
13643	OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
13644	case "$OPENSSL_LIBS" in
13645	 '') ;;
13646	 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13647	    have_openssl=yes
13648	    ;;
13649	esac
13650	OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
13651	;;
13652    esac
13653    case "$have_openssl" in
13654     yes) ;;
13655     *)
13656	save_LIBS="$LIBS"
13657	LIBS=""
13658	OPENSSL_LIBS=""
13659	for lib in crypto eay32; do
13660		# clear cache
13661		unset ac_cv_search_SSL_new
13662		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
13663$as_echo_n "checking for library containing SSL_new... " >&6; }
13664if ${ac_cv_search_SSL_new+:} false; then :
13665  $as_echo_n "(cached) " >&6
13666else
13667  ac_func_search_save_LIBS=$LIBS
13668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669/* end confdefs.h.  */
13670
13671/* Override any GCC internal prototype to avoid an error.
13672   Use char because int might match the return type of a GCC
13673   builtin and then its argument prototype would still apply.  */
13674#ifdef __cplusplus
13675extern "C"
13676#endif
13677char SSL_new ();
13678int
13679main ()
13680{
13681return SSL_new ();
13682  ;
13683  return 0;
13684}
13685_ACEOF
13686for ac_lib in '' ssl ssl32; do
13687  if test -z "$ac_lib"; then
13688    ac_res="none required"
13689  else
13690    ac_res=-l$ac_lib
13691    LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
13692  fi
13693  if ac_fn_c_try_link "$LINENO"; then :
13694  ac_cv_search_SSL_new=$ac_res
13695fi
13696rm -f core conftest.err conftest.$ac_objext \
13697    conftest$ac_exeext
13698  if ${ac_cv_search_SSL_new+:} false; then :
13699  break
13700fi
13701done
13702if ${ac_cv_search_SSL_new+:} false; then :
13703
13704else
13705  ac_cv_search_SSL_new=no
13706fi
13707rm conftest.$ac_ext
13708LIBS=$ac_func_search_save_LIBS
13709fi
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13711$as_echo "$ac_cv_search_SSL_new" >&6; }
13712ac_res=$ac_cv_search_SSL_new
13713if test "$ac_res" != no; then :
13714  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13715  have_openssl=yes
13716		    OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13717else
13718  have_openssl=no
13719fi
13720
13721		LIBS="$save_LIBS"
13722		test "$have_openssl" = "yes" && break
13723	done
13724	;;
13725    esac
13726    CPPFLAGS_SAVE=$CPPFLAGS
13727    CPPFLAGS="$CPPFLAGS $OPENSSL_INCS"
13728    for ac_header in openssl/ssl.h
13729do :
13730  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13731if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
13732  cat >>confdefs.h <<_ACEOF
13733#define HAVE_OPENSSL_SSL_H 1
13734_ACEOF
13735
13736else
13737  have_openssl=no
13738fi
13739
13740done
13741
13742    CPPFLAGS=$CPPFLAGS_SAVE
13743
13744
13745    case "$have_openssl" in
13746     yes)
13747$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13748 ;;
13749     *) as_fn_error $? "openssl is a must but can not be found. You should add the \
13750directory containing \`openssl.pc' to the \`PKG_CONFIG_PATH' environment variable, \
13751or set \`CFLAGS' and \`LDFLAGS' directly for openssl, or use \`--disable-openssl' \
13752to disable support for openssl encryption" "$LINENO" 5
13753	;;
13754    esac
13755    ;;
13756esac
13757
13758# check if we have and should use openssl
13759 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
13760  OPENSSL_TRUE=
13761  OPENSSL_FALSE='#'
13762else
13763  OPENSSL_TRUE='#'
13764  OPENSSL_FALSE=
13765fi
13766
13767
13768
13769for ac_header in  \
13770  arpa/inet.h \
13771  fcntl.h \
13772  ifaddrs.h \
13773  mach/mach_time.h \
13774  mach/mach.h \
13775  netdb.h \
13776  netinet/in.h \
13777  netinet/in6.h \
13778  netinet/tcp.h \
13779  sys/un.h \
13780  poll.h \
13781  port.h \
13782  stdarg.h \
13783  stddef.h \
13784  sys/devpoll.h \
13785  sys/epoll.h \
13786  sys/event.h \
13787  sys/eventfd.h \
13788  sys/ioctl.h \
13789  sys/mman.h \
13790  sys/param.h \
13791  sys/queue.h \
13792  sys/resource.h \
13793  sys/select.h \
13794  sys/sendfile.h \
13795  sys/socket.h \
13796  sys/stat.h \
13797  sys/time.h \
13798  sys/timerfd.h \
13799  sys/uio.h \
13800  sys/wait.h \
13801  sys/random.h \
13802  errno.h \
13803  afunix.h \
13804
13805do :
13806  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13809  cat >>confdefs.h <<_ACEOF
13810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13811_ACEOF
13812
13813fi
13814
13815done
13816
13817
13818case "${host_os}" in
13819    linux*) ;;
13820    *)
13821        for ac_header in sys/sysctl.h
13822do :
13823  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13824        #ifdef HAVE_SYS_PARAM_H
13825        #include <sys/param.h>
13826        #endif
13827
13828"
13829if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13830  cat >>confdefs.h <<_ACEOF
13831#define HAVE_SYS_SYSCTL_H 1
13832_ACEOF
13833
13834fi
13835
13836done
13837
13838esac
13839
13840if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13842$as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13843	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844/* end confdefs.h.  */
13845
13846#include <sys/queue.h>
13847#ifdef TAILQ_FOREACH
13848 yes
13849#endif
13850
13851_ACEOF
13852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13853  $EGREP "yes" >/dev/null 2>&1; then :
13854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855$as_echo "yes" >&6; }
13856
13857$as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13858
13859else
13860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861$as_echo "no" >&6; }
13862
13863fi
13864rm -f conftest*
13865
13866fi
13867
13868if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13870$as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13871	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873
13874#include <sys/time.h>
13875#ifdef timeradd
13876 yes
13877#endif
13878
13879_ACEOF
13880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881  $EGREP "yes" >/dev/null 2>&1; then :
13882
13883$as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13884
13885	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13886$as_echo "yes" >&6; }
13887else
13888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889$as_echo "no" >&6; }
13890
13891fi
13892rm -f conftest*
13893
13894fi
13895
13896if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13898$as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13899	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900/* end confdefs.h.  */
13901
13902#include <sys/time.h>
13903#ifdef timercmp
13904 yes
13905#endif
13906
13907_ACEOF
13908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13909  $EGREP "yes" >/dev/null 2>&1; then :
13910
13911$as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13912
13913	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13914$as_echo "yes" >&6; }
13915else
13916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917$as_echo "no" >&6; }
13918
13919fi
13920rm -f conftest*
13921
13922fi
13923
13924if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13926$as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13927	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928/* end confdefs.h.  */
13929
13930#include <sys/time.h>
13931#ifdef timerclear
13932 yes
13933#endif
13934
13935_ACEOF
13936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13937  $EGREP "yes" >/dev/null 2>&1; then :
13938
13939$as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13940
13941	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13942$as_echo "yes" >&6; }
13943else
13944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945$as_echo "no" >&6; }
13946
13947fi
13948rm -f conftest*
13949
13950fi
13951
13952if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13954$as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13955	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h.  */
13957
13958#include <sys/time.h>
13959#ifdef timerisset
13960 yes
13961#endif
13962
13963_ACEOF
13964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965  $EGREP "yes" >/dev/null 2>&1; then :
13966
13967$as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13968
13969	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13970$as_echo "yes" >&6; }
13971else
13972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973$as_echo "no" >&6; }
13974
13975fi
13976rm -f conftest*
13977
13978fi
13979
13980if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13981	ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13982	     #include <sys/sysctl.h>
13983
13984"
13985if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13986  ac_have_decl=1
13987else
13988  ac_have_decl=0
13989fi
13990
13991cat >>confdefs.h <<_ACEOF
13992#define HAVE_DECL_CTL_KERN $ac_have_decl
13993_ACEOF
13994ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13995	     #include <sys/sysctl.h>
13996
13997"
13998if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13999  ac_have_decl=1
14000else
14001  ac_have_decl=0
14002fi
14003
14004cat >>confdefs.h <<_ACEOF
14005#define HAVE_DECL_KERN_ARND $ac_have_decl
14006_ACEOF
14007
14008fi
14009
14010 if test x$bwin32 = xtrue; then
14011  BUILD_WIN32_TRUE=
14012  BUILD_WIN32_FALSE='#'
14013else
14014  BUILD_WIN32_TRUE='#'
14015  BUILD_WIN32_FALSE=
14016fi
14017
14018 if test x$cygwin = xtrue; then
14019  BUILD_CYGWIN_TRUE=
14020  BUILD_CYGWIN_FALSE='#'
14021else
14022  BUILD_CYGWIN_TRUE='#'
14023  BUILD_CYGWIN_FALSE=
14024fi
14025
14026 if test x$midipix = xtrue; then
14027  BUILD_MIDIPIX_TRUE=
14028  BUILD_MIDIPIX_FALSE='#'
14029else
14030  BUILD_MIDIPIX_TRUE='#'
14031  BUILD_MIDIPIX_FALSE=
14032fi
14033
14034 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then
14035  BUILD_WITH_NO_UNDEFINED_TRUE=
14036  BUILD_WITH_NO_UNDEFINED_FALSE='#'
14037else
14038  BUILD_WITH_NO_UNDEFINED_TRUE='#'
14039  BUILD_WITH_NO_UNDEFINED_FALSE=
14040fi
14041
14042
14043if test x$bwin32 = xtrue; then
14044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
14045$as_echo_n "checking for main in -lws2_32... " >&6; }
14046if ${ac_cv_lib_ws2_32_main+:} false; then :
14047  $as_echo_n "(cached) " >&6
14048else
14049  ac_check_lib_save_LIBS=$LIBS
14050LIBS="-lws2_32  $LIBS"
14051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052/* end confdefs.h.  */
14053
14054
14055int
14056main ()
14057{
14058return main ();
14059  ;
14060  return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_link "$LINENO"; then :
14064  ac_cv_lib_ws2_32_main=yes
14065else
14066  ac_cv_lib_ws2_32_main=no
14067fi
14068rm -f core conftest.err conftest.$ac_objext \
14069    conftest$ac_exeext conftest.$ac_ext
14070LIBS=$ac_check_lib_save_LIBS
14071fi
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
14073$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
14074if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
14075  cat >>confdefs.h <<_ACEOF
14076#define HAVE_LIBWS2_32 1
14077_ACEOF
14078
14079  LIBS="-lws2_32 $LIBS"
14080
14081fi
14082ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
14083
14084fi
14085
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14087$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14088if ${ac_cv_c_const+:} false; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093
14094int
14095main ()
14096{
14097
14098#ifndef __cplusplus
14099  /* Ultrix mips cc rejects this sort of thing.  */
14100  typedef int charset[2];
14101  const charset cs = { 0, 0 };
14102  /* SunOS 4.1.1 cc rejects this.  */
14103  char const *const *pcpcc;
14104  char **ppc;
14105  /* NEC SVR4.0.2 mips cc rejects this.  */
14106  struct point {int x, y;};
14107  static struct point const zero = {0,0};
14108  /* AIX XL C 1.02.0.0 rejects this.
14109     It does not let you subtract one const X* pointer from another in
14110     an arm of an if-expression whose if-part is not a constant
14111     expression */
14112  const char *g = "string";
14113  pcpcc = &g + (g ? g-g : 0);
14114  /* HPUX 7.0 cc rejects these. */
14115  ++pcpcc;
14116  ppc = (char**) pcpcc;
14117  pcpcc = (char const *const *) ppc;
14118  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14119    char tx;
14120    char *t = &tx;
14121    char const *s = 0 ? (char *) 0 : (char const *) 0;
14122
14123    *t++ = 0;
14124    if (s) return 0;
14125  }
14126  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14127    int x[] = {25, 17};
14128    const int *foo = &x[0];
14129    ++foo;
14130  }
14131  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14132    typedef const int *iptr;
14133    iptr p = 0;
14134    ++p;
14135  }
14136  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14137       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14138    struct s { int j; const int *ap[3]; } bx;
14139    struct s *b = &bx; b->j = 5;
14140  }
14141  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14142    const int foo = 10;
14143    if (!foo) return 0;
14144  }
14145  return !cs[0] && !zero.x;
14146#endif
14147
14148  ;
14149  return 0;
14150}
14151_ACEOF
14152if ac_fn_c_try_compile "$LINENO"; then :
14153  ac_cv_c_const=yes
14154else
14155  ac_cv_c_const=no
14156fi
14157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158fi
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14160$as_echo "$ac_cv_c_const" >&6; }
14161if test $ac_cv_c_const = no; then
14162
14163$as_echo "#define const /**/" >>confdefs.h
14164
14165fi
14166
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14168$as_echo_n "checking for inline... " >&6; }
14169if ${ac_cv_c_inline+:} false; then :
14170  $as_echo_n "(cached) " >&6
14171else
14172  ac_cv_c_inline=no
14173for ac_kw in inline __inline__ __inline; do
14174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175/* end confdefs.h.  */
14176#ifndef __cplusplus
14177typedef int foo_t;
14178static $ac_kw foo_t static_foo () {return 0; }
14179$ac_kw foo_t foo () {return 0; }
14180#endif
14181
14182_ACEOF
14183if ac_fn_c_try_compile "$LINENO"; then :
14184  ac_cv_c_inline=$ac_kw
14185fi
14186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187  test "$ac_cv_c_inline" != no && break
14188done
14189
14190fi
14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14192$as_echo "$ac_cv_c_inline" >&6; }
14193
14194case $ac_cv_c_inline in
14195  inline | yes) ;;
14196  *)
14197    case $ac_cv_c_inline in
14198      no) ac_val=;;
14199      *) ac_val=$ac_cv_c_inline;;
14200    esac
14201    cat >>confdefs.h <<_ACEOF
14202#ifndef __cplusplus
14203#define inline $ac_val
14204#endif
14205_ACEOF
14206    ;;
14207esac
14208
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14210$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14211if ${ac_cv_header_time+:} false; then :
14212  $as_echo_n "(cached) " >&6
14213else
14214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215/* end confdefs.h.  */
14216#include <sys/types.h>
14217#include <sys/time.h>
14218#include <time.h>
14219
14220int
14221main ()
14222{
14223if ((struct tm *) 0)
14224return 0;
14225  ;
14226  return 0;
14227}
14228_ACEOF
14229if ac_fn_c_try_compile "$LINENO"; then :
14230  ac_cv_header_time=yes
14231else
14232  ac_cv_header_time=no
14233fi
14234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235fi
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14237$as_echo "$ac_cv_header_time" >&6; }
14238if test $ac_cv_header_time = yes; then
14239
14240$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14241
14242fi
14243
14244
14245for ac_func in  \
14246  accept4 \
14247  arc4random \
14248  arc4random_buf \
14249  arc4random_addrandom \
14250  eventfd \
14251  epoll_create1 \
14252  fcntl \
14253  getegid \
14254  geteuid \
14255  getifaddrs \
14256  gettimeofday \
14257  issetugid \
14258  mach_absolute_time \
14259  mmap \
14260  nanosleep \
14261  pipe \
14262  pipe2 \
14263  putenv \
14264  sendfile \
14265  setenv \
14266  setrlimit \
14267  sigaction \
14268  signal \
14269  splice \
14270  strlcpy \
14271  strsep \
14272  strtok_r \
14273  strtoll \
14274  sysctl \
14275  timerfd_create \
14276  umask \
14277  unsetenv \
14278  usleep \
14279  vasprintf \
14280  getrandom \
14281
14282do :
14283  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14285if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14286  cat >>confdefs.h <<_ACEOF
14287#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14288_ACEOF
14289
14290fi
14291done
14292
14293
14294if test x$bwin32 = xtrue; then :
14295  for ac_func in _gmtime64_s
14296do :
14297  ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
14298if test "x$ac_cv_func__gmtime64_s" = xyes; then :
14299  cat >>confdefs.h <<_ACEOF
14300#define HAVE__GMTIME64_S 1
14301_ACEOF
14302
14303else
14304  for ac_func in _gmtime64
14305do :
14306  ac_fn_c_check_func "$LINENO" "_gmtime64" "ac_cv_func__gmtime64"
14307if test "x$ac_cv_func__gmtime64" = xyes; then :
14308  cat >>confdefs.h <<_ACEOF
14309#define HAVE__GMTIME64 1
14310_ACEOF
14311
14312fi
14313done
14314
14315fi
14316done
14317
14318
14319fi
14320
14321 if test x"$ac_cv_func_strlcpy" = xno; then
14322  STRLCPY_IMPL_TRUE=
14323  STRLCPY_IMPL_FALSE='#'
14324else
14325  STRLCPY_IMPL_TRUE='#'
14326  STRLCPY_IMPL_FALSE=
14327fi
14328
14329
14330
14331
14332if test x$bwin32 = xtrue; then :
14333  	if test "x#ifdef _WIN32
14334    #include <winsock2.h>
14335    #include <ws2tcpip.h>
14336    #endif" = "x"; then :
14337  as_fn_error $? "header not privided" "$LINENO" 5
14338fi
14339				if test "x#ifdef _WIN32
14340    #include <winsock2.h>
14341    #include <ws2tcpip.h>
14342    #endif" = "x"; then :
14343  as_fn_error $? "header not privided" "$LINENO" 5
14344fi
14345
14346	ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14347    #include <winsock2.h>
14348    #include <ws2tcpip.h>
14349    #endif
14350"
14351if test "x$ac_cv_have_decl_decl" = xyes; then :
14352
14353$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
14354
14355fi
14356
14357					if test "x#ifdef _WIN32
14358    #include <winsock2.h>
14359    #include <ws2tcpip.h>
14360    #endif" = "x"; then :
14361  as_fn_error $? "header not privided" "$LINENO" 5
14362fi
14363
14364	ac_fn_c_check_decl "$LINENO" "getprotobynumber" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14365    #include <winsock2.h>
14366    #include <ws2tcpip.h>
14367    #endif
14368"
14369if test "x$ac_cv_have_decl_decl" = xyes; then :
14370
14371$as_echo "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h
14372
14373fi
14374
14375					if test "x#ifdef _WIN32
14376    #include <winsock2.h>
14377    #include <ws2tcpip.h>
14378    #endif" = "x"; then :
14379  as_fn_error $? "header not privided" "$LINENO" 5
14380fi
14381
14382	ac_fn_c_check_decl "$LINENO" "getservbyname" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14383    #include <winsock2.h>
14384    #include <ws2tcpip.h>
14385    #endif
14386"
14387if test "x$ac_cv_have_decl_decl" = xyes; then :
14388
14389$as_echo "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
14390
14391fi
14392
14393					if test "x#ifdef _WIN32
14394    #include <winsock2.h>
14395    #include <ws2tcpip.h>
14396    #endif" = "x"; then :
14397  as_fn_error $? "header not privided" "$LINENO" 5
14398fi
14399
14400	ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14401    #include <winsock2.h>
14402    #include <ws2tcpip.h>
14403    #endif
14404"
14405if test "x$ac_cv_have_decl_decl" = xyes; then :
14406
14407$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
14408
14409fi
14410
14411					if test "x#ifdef _WIN32
14412    #include <winsock2.h>
14413    #include <ws2tcpip.h>
14414    #endif" = "x"; then :
14415  as_fn_error $? "header not privided" "$LINENO" 5
14416fi
14417
14418	ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14419    #include <winsock2.h>
14420    #include <ws2tcpip.h>
14421    #endif
14422"
14423if test "x$ac_cv_have_decl_decl" = xyes; then :
14424
14425$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
14426
14427fi
14428
14429					if test "x#ifdef _WIN32
14430    #include <winsock2.h>
14431    #include <ws2tcpip.h>
14432    #endif" = "x"; then :
14433  as_fn_error $? "header not privided" "$LINENO" 5
14434fi
14435
14436	ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_decl" "		#ifdef _WIN32
14437    #include <winsock2.h>
14438    #include <ws2tcpip.h>
14439    #endif
14440"
14441if test "x$ac_cv_have_decl_decl" = xyes; then :
14442
14443$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14444
14445fi
14446
14447
14448
14449else
14450  for ac_func in getnameinfo getprotobynumber getservbyname inet_ntop inet_pton
14451do :
14452  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14453ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14454if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14455  cat >>confdefs.h <<_ACEOF
14456#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14457_ACEOF
14458
14459fi
14460done
14461
14462
14463fi
14464
14465
14466
14467if test x$bwin32 = xfalse; then :
14468
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
14470$as_echo_n "checking for getaddrinfo... " >&6; }
14471if ${libevent_cv_getaddrinfo+:} false; then :
14472  $as_echo_n "(cached) " >&6
14473else
14474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h.  */
14476
14477		#ifdef HAVE_NETDB_H
14478		#include <netdb.h>
14479		#endif
14480
14481int
14482main ()
14483{
14484
14485		getaddrinfo;
14486
14487
14488  ;
14489  return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_link "$LINENO"; then :
14493  libevent_cv_getaddrinfo=yes
14494else
14495  libevent_cv_getaddrinfo=no
14496
14497fi
14498rm -f core conftest.err conftest.$ac_objext \
14499    conftest$ac_exeext conftest.$ac_ext
14500
14501fi
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
14503$as_echo "$libevent_cv_getaddrinfo" >&6; }
14504if test "$libevent_cv_getaddrinfo" = "yes" ; then
14505
14506$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14507
14508else
14509
14510# Check for gethostbyname_r in all its glorious incompatible versions.
14511#   (This is cut-and-pasted from Tor, which based its logic on
14512#   Python's configure.in.)
14513
14514
14515ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
14516if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
14517
14518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
14519$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
14520  OLD_CFLAGS=$CFLAGS
14521  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h.  */
14524
14525#include <netdb.h>
14526
14527int
14528main ()
14529{
14530
14531    char *cp1, *cp2;
14532    struct hostent *h1, *h2;
14533    int i1, i2;
14534    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
14535
14536  ;
14537  return 0;
14538}
14539_ACEOF
14540if ac_fn_c_try_compile "$LINENO"; then :
14541
14542    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14543
14544
14545$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
14546
14547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
14548$as_echo "6" >&6; }
14549
14550else
14551
14552    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553/* end confdefs.h.  */
14554
14555#include <netdb.h>
14556
14557int
14558main ()
14559{
14560
14561      char *cp1, *cp2;
14562      struct hostent *h1;
14563      int i1, i2;
14564      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
14565
14566  ;
14567  return 0;
14568}
14569_ACEOF
14570if ac_fn_c_try_compile "$LINENO"; then :
14571
14572      $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14573
14574
14575$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
14576
14577      { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
14578$as_echo "5" >&6; }
14579
14580else
14581
14582      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583/* end confdefs.h.  */
14584
14585#include <netdb.h>
14586
14587int
14588main ()
14589{
14590
14591       char *cp1;
14592       struct hostent *h1;
14593       struct hostent_data hd;
14594       (void) gethostbyname_r(cp1,h1,&hd);
14595
14596  ;
14597  return 0;
14598}
14599_ACEOF
14600if ac_fn_c_try_compile "$LINENO"; then :
14601
14602       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14603
14604
14605$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14606
14607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
14608$as_echo "3" >&6; }
14609
14610else
14611
14612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
14613$as_echo "0" >&6; }
14614
14615fi
14616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617
14618fi
14619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620
14621fi
14622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 CFLAGS=$OLD_CFLAGS
14624
14625fi
14626
14627
14628fi
14629
14630fi
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
14632$as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
14633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634/* end confdefs.h.  */
14635
14636#define _GNU_SOURCE 1
14637#include <fcntl.h>
14638#ifdef F_SETFD
14639yes
14640#endif
14641
14642_ACEOF
14643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14644  $EGREP "yes" >/dev/null 2>&1; then :
14645
14646$as_echo "#define HAVE_SETFD 1" >>confdefs.h
14647
14648	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649$as_echo "yes" >&6; }
14650else
14651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14652$as_echo "no" >&6; }
14653fi
14654rm -f conftest*
14655
14656
14657needsignal=no
14658haveselect=no
14659if test x$bwin32 != xtrue; then
14660    for ac_func in select
14661do :
14662  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14663if test "x$ac_cv_func_select" = xyes; then :
14664  cat >>confdefs.h <<_ACEOF
14665#define HAVE_SELECT 1
14666_ACEOF
14667 haveselect=yes
14668fi
14669done
14670
14671    if test "x$haveselect" = "xyes" ; then
14672 	needsignal=yes
14673    fi
14674fi
14675 if test "x$haveselect" = "xyes"; then
14676  SELECT_BACKEND_TRUE=
14677  SELECT_BACKEND_FALSE='#'
14678else
14679  SELECT_BACKEND_TRUE='#'
14680  SELECT_BACKEND_FALSE=
14681fi
14682
14683
14684havepoll=no
14685for ac_func in poll
14686do :
14687  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14688if test "x$ac_cv_func_poll" = xyes; then :
14689  cat >>confdefs.h <<_ACEOF
14690#define HAVE_POLL 1
14691_ACEOF
14692 havepoll=yes
14693fi
14694done
14695
14696if test "x$havepoll" = "xyes" ; then
14697	needsignal=yes
14698fi
14699 if test "x$havepoll" = "xyes"; then
14700  POLL_BACKEND_TRUE=
14701  POLL_BACKEND_FALSE='#'
14702else
14703  POLL_BACKEND_TRUE='#'
14704  POLL_BACKEND_FALSE=
14705fi
14706
14707
14708havedevpoll=no
14709if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14710
14711$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14712
14713fi
14714 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14715  DEVPOLL_BACKEND_TRUE=
14716  DEVPOLL_BACKEND_FALSE='#'
14717else
14718  DEVPOLL_BACKEND_TRUE='#'
14719  DEVPOLL_BACKEND_FALSE=
14720fi
14721
14722
14723havekqueue=no
14724if test "x$ac_cv_header_sys_event_h" = "xyes"; then
14725	for ac_func in kqueue
14726do :
14727  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14728if test "x$ac_cv_func_kqueue" = xyes; then :
14729  cat >>confdefs.h <<_ACEOF
14730#define HAVE_KQUEUE 1
14731_ACEOF
14732 havekqueue=yes
14733fi
14734done
14735
14736	if test "x$havekqueue" = "xyes" ; then
14737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
14738$as_echo_n "checking for working kqueue... " >&6; }
14739		if test "$cross_compiling" = yes; then :
14740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741$as_echo "no" >&6; }
14742
14743else
14744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745/* end confdefs.h.  */
14746
14747#ifdef HAVE_STDLIB_H
14748#include <stdlib.h>
14749#endif
14750#ifdef HAVE_STRING_H
14751#include <string.h>
14752#endif
14753#include <sys/types.h>
14754#include <sys/time.h>
14755#include <sys/event.h>
14756#include <stdio.h>
14757#include <unistd.h>
14758#include <fcntl.h>
14759
14760int
14761main ()
14762{
14763
14764	int kq;
14765	int n;
14766	int fd[2];
14767	struct kevent ev;
14768	struct timespec ts;
14769	char buf[80000];
14770
14771	if (pipe(fd) == -1)
14772  		return 1;
14773	if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
14774		return 1;
14775
14776	while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
14777		;
14778
14779	if ((kq = kqueue()) == -1)
14780		return 1;
14781
14782	memset(&ev, 0, sizeof(ev));
14783	ev.ident = fd[1];
14784	ev.filter = EVFILT_WRITE;
14785	ev.flags = EV_ADD | EV_ENABLE;
14786	n = kevent(kq, &ev, 1, NULL, 0, NULL);
14787	if (n == -1)
14788		return 1;
14789
14790	read(fd[0], buf, sizeof(buf));
14791
14792	ts.tv_sec = 0;
14793	ts.tv_nsec = 0;
14794	n = kevent(kq, NULL, 0, &ev, 1, &ts);
14795	if (n == -1 || n == 0)
14796		return 1;
14797
14798	return 0;
14799
14800
14801  ;
14802  return 0;
14803}
14804_ACEOF
14805if ac_fn_c_try_run "$LINENO"; then :
14806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14807$as_echo "yes" >&6; }
14808
14809$as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
14810
14811      havekqueue=yes
14812
14813else
14814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14815$as_echo "no" >&6; }
14816fi
14817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14818  conftest.$ac_objext conftest.beam conftest.$ac_ext
14819fi
14820
14821	fi
14822fi
14823 if test "x$havekqueue" = "xyes"; then
14824  KQUEUE_BACKEND_TRUE=
14825  KQUEUE_BACKEND_FALSE='#'
14826else
14827  KQUEUE_BACKEND_TRUE='#'
14828  KQUEUE_BACKEND_FALSE=
14829fi
14830
14831
14832haveepollsyscall=no
14833haveepoll=no
14834for ac_func in epoll_ctl
14835do :
14836  ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
14837if test "x$ac_cv_func_epoll_ctl" = xyes; then :
14838  cat >>confdefs.h <<_ACEOF
14839#define HAVE_EPOLL_CTL 1
14840_ACEOF
14841 haveepoll=yes
14842fi
14843done
14844
14845if test "x$haveepoll" = "xyes" ; then
14846
14847$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14848
14849	needsignal=yes
14850fi
14851if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
14852	if test "x$haveepoll" = "xno" ; then
14853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14854$as_echo_n "checking for epoll system call... " >&6; }
14855		if test "$cross_compiling" = yes; then :
14856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857$as_echo "no" >&6; }
14858
14859else
14860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861/* end confdefs.h.  */
14862
14863#include <stdint.h>
14864#include <sys/param.h>
14865#include <sys/types.h>
14866#include <sys/syscall.h>
14867#include <sys/epoll.h>
14868#include <unistd.h>
14869
14870int
14871epoll_create(int size)
14872{
14873	return (syscall(__NR_epoll_create, size));
14874}
14875
14876int
14877main ()
14878{
14879
14880	int epfd;
14881
14882	epfd = epoll_create(256);
14883	return (epfd == -1 ? 1 : 0);
14884
14885
14886  ;
14887  return 0;
14888}
14889_ACEOF
14890if ac_fn_c_try_run "$LINENO"; then :
14891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14892$as_echo "yes" >&6; }
14893
14894$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14895
14896      needsignal=yes
14897      have_epoll=yes
14898      case " $LIBOBJS " in
14899  *" epoll_sub.$ac_objext "* ) ;;
14900  *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
14901 ;;
14902esac
14903
14904
14905else
14906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907$as_echo "no" >&6; }
14908fi
14909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14910  conftest.$ac_objext conftest.beam conftest.$ac_ext
14911fi
14912
14913	fi
14914fi
14915 if test "x$haveepoll" = "xyes"; then
14916  EPOLL_BACKEND_TRUE=
14917  EPOLL_BACKEND_FALSE='#'
14918else
14919  EPOLL_BACKEND_TRUE='#'
14920  EPOLL_BACKEND_FALSE=
14921fi
14922
14923
14924haveeventports=no
14925for ac_func in port_create
14926do :
14927  ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14928if test "x$ac_cv_func_port_create" = xyes; then :
14929  cat >>confdefs.h <<_ACEOF
14930#define HAVE_PORT_CREATE 1
14931_ACEOF
14932 haveeventports=yes
14933fi
14934done
14935
14936if test "x$haveeventports" = "xyes" ; then
14937
14938$as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
14939
14940	needsignal=yes
14941fi
14942 if test "x$haveeventports" = "xyes"; then
14943  EVPORT_BACKEND_TRUE=
14944  EVPORT_BACKEND_FALSE='#'
14945else
14946  EVPORT_BACKEND_TRUE='#'
14947  EVPORT_BACKEND_FALSE=
14948fi
14949
14950
14951if test "x$bwin32" = "xtrue"; then
14952	needsignal=yes
14953fi
14954
14955 if test "x$needsignal" = "xyes"; then
14956  SIGNAL_SUPPORT_TRUE=
14957  SIGNAL_SUPPORT_FALSE='#'
14958else
14959  SIGNAL_SUPPORT_TRUE='#'
14960  SIGNAL_SUPPORT_FALSE=
14961fi
14962
14963
14964ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14965if test "x$ac_cv_type_pid_t" = xyes; then :
14966
14967else
14968
14969cat >>confdefs.h <<_ACEOF
14970#define pid_t int
14971_ACEOF
14972
14973fi
14974
14975ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14976if test "x$ac_cv_type_size_t" = xyes; then :
14977
14978else
14979
14980cat >>confdefs.h <<_ACEOF
14981#define size_t unsigned int
14982_ACEOF
14983
14984fi
14985
14986ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14987if test "x$ac_cv_type_ssize_t" = xyes; then :
14988
14989else
14990
14991cat >>confdefs.h <<_ACEOF
14992#define ssize_t int
14993_ACEOF
14994
14995fi
14996
14997
14998ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14999#include <stdint.h>
15000#elif defined(HAVE_INTTYPES_H)
15001#include <inttypes.h>
15002#endif
15003#ifdef HAVE_SYS_TYPES_H
15004#include <sys/types.h>
15005#endif
15006"
15007if test "x$ac_cv_type_uint64_t" = xyes; then :
15008
15009cat >>confdefs.h <<_ACEOF
15010#define HAVE_UINT64_T 1
15011_ACEOF
15012
15013
15014fi
15015ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
15016#include <stdint.h>
15017#elif defined(HAVE_INTTYPES_H)
15018#include <inttypes.h>
15019#endif
15020#ifdef HAVE_SYS_TYPES_H
15021#include <sys/types.h>
15022#endif
15023"
15024if test "x$ac_cv_type_uint32_t" = xyes; then :
15025
15026cat >>confdefs.h <<_ACEOF
15027#define HAVE_UINT32_T 1
15028_ACEOF
15029
15030
15031fi
15032ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
15033#include <stdint.h>
15034#elif defined(HAVE_INTTYPES_H)
15035#include <inttypes.h>
15036#endif
15037#ifdef HAVE_SYS_TYPES_H
15038#include <sys/types.h>
15039#endif
15040"
15041if test "x$ac_cv_type_uint16_t" = xyes; then :
15042
15043cat >>confdefs.h <<_ACEOF
15044#define HAVE_UINT16_T 1
15045_ACEOF
15046
15047
15048fi
15049ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
15050#include <stdint.h>
15051#elif defined(HAVE_INTTYPES_H)
15052#include <inttypes.h>
15053#endif
15054#ifdef HAVE_SYS_TYPES_H
15055#include <sys/types.h>
15056#endif
15057"
15058if test "x$ac_cv_type_uint8_t" = xyes; then :
15059
15060cat >>confdefs.h <<_ACEOF
15061#define HAVE_UINT8_T 1
15062_ACEOF
15063
15064
15065fi
15066ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
15067#include <stdint.h>
15068#elif defined(HAVE_INTTYPES_H)
15069#include <inttypes.h>
15070#endif
15071#ifdef HAVE_SYS_TYPES_H
15072#include <sys/types.h>
15073#endif
15074"
15075if test "x$ac_cv_type_uintptr_t" = xyes; then :
15076
15077cat >>confdefs.h <<_ACEOF
15078#define HAVE_UINTPTR_T 1
15079_ACEOF
15080
15081
15082fi
15083
15084
15085ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
15086#include <sys/types.h>
15087#endif
15088#ifdef HAVE_SYS_SELECT_H
15089#include <sys/select.h>
15090#endif
15091"
15092if test "x$ac_cv_type_fd_mask" = xyes; then :
15093
15094cat >>confdefs.h <<_ACEOF
15095#define HAVE_FD_MASK 1
15096_ACEOF
15097
15098
15099fi
15100
15101
15102# The cast to long int works around a bug in the HP C Compiler
15103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15105# This bug is HP SR number 8606223364.
15106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15107$as_echo_n "checking size of long long... " >&6; }
15108if ${ac_cv_sizeof_long_long+:} false; then :
15109  $as_echo_n "(cached) " >&6
15110else
15111  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
15112
15113else
15114  if test "$ac_cv_type_long_long" = yes; then
15115     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15117as_fn_error 77 "cannot compute sizeof (long long)
15118See \`config.log' for more details" "$LINENO" 5; }
15119   else
15120     ac_cv_sizeof_long_long=0
15121   fi
15122fi
15123
15124fi
15125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15126$as_echo "$ac_cv_sizeof_long_long" >&6; }
15127
15128
15129
15130cat >>confdefs.h <<_ACEOF
15131#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15132_ACEOF
15133
15134
15135# The cast to long int works around a bug in the HP C Compiler
15136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15138# This bug is HP SR number 8606223364.
15139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15140$as_echo_n "checking size of long... " >&6; }
15141if ${ac_cv_sizeof_long+:} false; then :
15142  $as_echo_n "(cached) " >&6
15143else
15144  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15145
15146else
15147  if test "$ac_cv_type_long" = yes; then
15148     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15150as_fn_error 77 "cannot compute sizeof (long)
15151See \`config.log' for more details" "$LINENO" 5; }
15152   else
15153     ac_cv_sizeof_long=0
15154   fi
15155fi
15156
15157fi
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15159$as_echo "$ac_cv_sizeof_long" >&6; }
15160
15161
15162
15163cat >>confdefs.h <<_ACEOF
15164#define SIZEOF_LONG $ac_cv_sizeof_long
15165_ACEOF
15166
15167
15168# The cast to long int works around a bug in the HP C Compiler
15169# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15170# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15171# This bug is HP SR number 8606223364.
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15173$as_echo_n "checking size of int... " >&6; }
15174if ${ac_cv_sizeof_int+:} false; then :
15175  $as_echo_n "(cached) " >&6
15176else
15177  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15178
15179else
15180  if test "$ac_cv_type_int" = yes; then
15181     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15183as_fn_error 77 "cannot compute sizeof (int)
15184See \`config.log' for more details" "$LINENO" 5; }
15185   else
15186     ac_cv_sizeof_int=0
15187   fi
15188fi
15189
15190fi
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15192$as_echo "$ac_cv_sizeof_int" >&6; }
15193
15194
15195
15196cat >>confdefs.h <<_ACEOF
15197#define SIZEOF_INT $ac_cv_sizeof_int
15198_ACEOF
15199
15200
15201# The cast to long int works around a bug in the HP C Compiler
15202# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15203# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15204# This bug is HP SR number 8606223364.
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15206$as_echo_n "checking size of short... " >&6; }
15207if ${ac_cv_sizeof_short+:} false; then :
15208  $as_echo_n "(cached) " >&6
15209else
15210  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15211
15212else
15213  if test "$ac_cv_type_short" = yes; then
15214     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15216as_fn_error 77 "cannot compute sizeof (short)
15217See \`config.log' for more details" "$LINENO" 5; }
15218   else
15219     ac_cv_sizeof_short=0
15220   fi
15221fi
15222
15223fi
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15225$as_echo "$ac_cv_sizeof_short" >&6; }
15226
15227
15228
15229cat >>confdefs.h <<_ACEOF
15230#define SIZEOF_SHORT $ac_cv_sizeof_short
15231_ACEOF
15232
15233
15234# The cast to long int works around a bug in the HP C Compiler
15235# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15236# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15237# This bug is HP SR number 8606223364.
15238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15239$as_echo_n "checking size of size_t... " >&6; }
15240if ${ac_cv_sizeof_size_t+:} false; then :
15241  $as_echo_n "(cached) " >&6
15242else
15243  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15244
15245else
15246  if test "$ac_cv_type_size_t" = yes; then
15247     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15249as_fn_error 77 "cannot compute sizeof (size_t)
15250See \`config.log' for more details" "$LINENO" 5; }
15251   else
15252     ac_cv_sizeof_size_t=0
15253   fi
15254fi
15255
15256fi
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15258$as_echo "$ac_cv_sizeof_size_t" >&6; }
15259
15260
15261
15262cat >>confdefs.h <<_ACEOF
15263#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15264_ACEOF
15265
15266
15267# The cast to long int works around a bug in the HP C Compiler
15268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15270# This bug is HP SR number 8606223364.
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15272$as_echo_n "checking size of void *... " >&6; }
15273if ${ac_cv_sizeof_void_p+:} false; then :
15274  $as_echo_n "(cached) " >&6
15275else
15276  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15277
15278else
15279  if test "$ac_cv_type_void_p" = yes; then
15280     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15282as_fn_error 77 "cannot compute sizeof (void *)
15283See \`config.log' for more details" "$LINENO" 5; }
15284   else
15285     ac_cv_sizeof_void_p=0
15286   fi
15287fi
15288
15289fi
15290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15291$as_echo "$ac_cv_sizeof_void_p" >&6; }
15292
15293
15294
15295cat >>confdefs.h <<_ACEOF
15296#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15297_ACEOF
15298
15299
15300# The cast to long int works around a bug in the HP C Compiler
15301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15303# This bug is HP SR number 8606223364.
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15305$as_echo_n "checking size of off_t... " >&6; }
15306if ${ac_cv_sizeof_off_t+:} false; then :
15307  $as_echo_n "(cached) " >&6
15308else
15309  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
15310
15311else
15312  if test "$ac_cv_type_off_t" = yes; then
15313     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15315as_fn_error 77 "cannot compute sizeof (off_t)
15316See \`config.log' for more details" "$LINENO" 5; }
15317   else
15318     ac_cv_sizeof_off_t=0
15319   fi
15320fi
15321
15322fi
15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15324$as_echo "$ac_cv_sizeof_off_t" >&6; }
15325
15326
15327
15328cat >>confdefs.h <<_ACEOF
15329#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15330_ACEOF
15331
15332
15333# The cast to long int works around a bug in the HP C Compiler
15334# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15335# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15336# This bug is HP SR number 8606223364.
15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15338$as_echo_n "checking size of time_t... " >&6; }
15339if ${ac_cv_sizeof_time_t+:} false; then :
15340  $as_echo_n "(cached) " >&6
15341else
15342  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
15343
15344else
15345  if test "$ac_cv_type_time_t" = yes; then
15346     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15348as_fn_error 77 "cannot compute sizeof (time_t)
15349See \`config.log' for more details" "$LINENO" 5; }
15350   else
15351     ac_cv_sizeof_time_t=0
15352   fi
15353fi
15354
15355fi
15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15357$as_echo "$ac_cv_sizeof_time_t" >&6; }
15358
15359
15360
15361cat >>confdefs.h <<_ACEOF
15362#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15363_ACEOF
15364
15365
15366
15367ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1
15368#include <sys/types.h>
15369#ifdef HAVE_NETINET_IN_H
15370#include <netinet/in.h>
15371#endif
15372#ifdef HAVE_NETINET_IN6_H
15373#include <netinet/in6.h>
15374#endif
15375#ifdef HAVE_SYS_UN_H
15376#include <sys/un.h>
15377#endif
15378#ifdef HAVE_SYS_SOCKET_H
15379#include <sys/socket.h>
15380#endif
15381#ifdef HAVE_NETDB_H
15382#include <netdb.h>
15383#endif
15384#ifdef _WIN32
15385#define WIN32_WINNT 0x400
15386#define _WIN32_WINNT 0x400
15387#define WIN32_LEAN_AND_MEAN
15388#if defined(_MSC_VER) && (_MSC_VER < 1300)
15389#include <winsock.h>
15390#else
15391#include <winsock2.h>
15392#include <ws2tcpip.h>
15393#endif
15394#endif
15395
15396"
15397if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15398
15399cat >>confdefs.h <<_ACEOF
15400#define HAVE_STRUCT_IN6_ADDR 1
15401_ACEOF
15402
15403
15404fi
15405ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1
15406#include <sys/types.h>
15407#ifdef HAVE_NETINET_IN_H
15408#include <netinet/in.h>
15409#endif
15410#ifdef HAVE_NETINET_IN6_H
15411#include <netinet/in6.h>
15412#endif
15413#ifdef HAVE_SYS_UN_H
15414#include <sys/un.h>
15415#endif
15416#ifdef HAVE_SYS_SOCKET_H
15417#include <sys/socket.h>
15418#endif
15419#ifdef HAVE_NETDB_H
15420#include <netdb.h>
15421#endif
15422#ifdef _WIN32
15423#define WIN32_WINNT 0x400
15424#define _WIN32_WINNT 0x400
15425#define WIN32_LEAN_AND_MEAN
15426#if defined(_MSC_VER) && (_MSC_VER < 1300)
15427#include <winsock.h>
15428#else
15429#include <winsock2.h>
15430#include <ws2tcpip.h>
15431#endif
15432#endif
15433
15434"
15435if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15436
15437cat >>confdefs.h <<_ACEOF
15438#define HAVE_STRUCT_SOCKADDR_IN6 1
15439_ACEOF
15440
15441
15442fi
15443ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1
15444#include <sys/types.h>
15445#ifdef HAVE_NETINET_IN_H
15446#include <netinet/in.h>
15447#endif
15448#ifdef HAVE_NETINET_IN6_H
15449#include <netinet/in6.h>
15450#endif
15451#ifdef HAVE_SYS_UN_H
15452#include <sys/un.h>
15453#endif
15454#ifdef HAVE_SYS_SOCKET_H
15455#include <sys/socket.h>
15456#endif
15457#ifdef HAVE_NETDB_H
15458#include <netdb.h>
15459#endif
15460#ifdef _WIN32
15461#define WIN32_WINNT 0x400
15462#define _WIN32_WINNT 0x400
15463#define WIN32_LEAN_AND_MEAN
15464#if defined(_MSC_VER) && (_MSC_VER < 1300)
15465#include <winsock.h>
15466#else
15467#include <winsock2.h>
15468#include <ws2tcpip.h>
15469#endif
15470#endif
15471
15472"
15473if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
15474
15475cat >>confdefs.h <<_ACEOF
15476#define HAVE_STRUCT_SOCKADDR_UN 1
15477_ACEOF
15478
15479
15480fi
15481ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1
15482#include <sys/types.h>
15483#ifdef HAVE_NETINET_IN_H
15484#include <netinet/in.h>
15485#endif
15486#ifdef HAVE_NETINET_IN6_H
15487#include <netinet/in6.h>
15488#endif
15489#ifdef HAVE_SYS_UN_H
15490#include <sys/un.h>
15491#endif
15492#ifdef HAVE_SYS_SOCKET_H
15493#include <sys/socket.h>
15494#endif
15495#ifdef HAVE_NETDB_H
15496#include <netdb.h>
15497#endif
15498#ifdef _WIN32
15499#define WIN32_WINNT 0x400
15500#define _WIN32_WINNT 0x400
15501#define WIN32_LEAN_AND_MEAN
15502#if defined(_MSC_VER) && (_MSC_VER < 1300)
15503#include <winsock.h>
15504#else
15505#include <winsock2.h>
15506#include <ws2tcpip.h>
15507#endif
15508#endif
15509
15510"
15511if test "x$ac_cv_type_sa_family_t" = xyes; then :
15512
15513cat >>confdefs.h <<_ACEOF
15514#define HAVE_SA_FAMILY_T 1
15515_ACEOF
15516
15517
15518fi
15519ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1
15520#include <sys/types.h>
15521#ifdef HAVE_NETINET_IN_H
15522#include <netinet/in.h>
15523#endif
15524#ifdef HAVE_NETINET_IN6_H
15525#include <netinet/in6.h>
15526#endif
15527#ifdef HAVE_SYS_UN_H
15528#include <sys/un.h>
15529#endif
15530#ifdef HAVE_SYS_SOCKET_H
15531#include <sys/socket.h>
15532#endif
15533#ifdef HAVE_NETDB_H
15534#include <netdb.h>
15535#endif
15536#ifdef _WIN32
15537#define WIN32_WINNT 0x400
15538#define _WIN32_WINNT 0x400
15539#define WIN32_LEAN_AND_MEAN
15540#if defined(_MSC_VER) && (_MSC_VER < 1300)
15541#include <winsock.h>
15542#else
15543#include <winsock2.h>
15544#include <ws2tcpip.h>
15545#endif
15546#endif
15547
15548"
15549if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
15550
15551cat >>confdefs.h <<_ACEOF
15552#define HAVE_STRUCT_ADDRINFO 1
15553_ACEOF
15554
15555
15556fi
15557ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1
15558#include <sys/types.h>
15559#ifdef HAVE_NETINET_IN_H
15560#include <netinet/in.h>
15561#endif
15562#ifdef HAVE_NETINET_IN6_H
15563#include <netinet/in6.h>
15564#endif
15565#ifdef HAVE_SYS_UN_H
15566#include <sys/un.h>
15567#endif
15568#ifdef HAVE_SYS_SOCKET_H
15569#include <sys/socket.h>
15570#endif
15571#ifdef HAVE_NETDB_H
15572#include <netdb.h>
15573#endif
15574#ifdef _WIN32
15575#define WIN32_WINNT 0x400
15576#define _WIN32_WINNT 0x400
15577#define WIN32_LEAN_AND_MEAN
15578#if defined(_MSC_VER) && (_MSC_VER < 1300)
15579#include <winsock.h>
15580#else
15581#include <winsock2.h>
15582#include <ws2tcpip.h>
15583#endif
15584#endif
15585
15586"
15587if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
15588
15589cat >>confdefs.h <<_ACEOF
15590#define HAVE_STRUCT_SOCKADDR_STORAGE 1
15591_ACEOF
15592
15593
15594fi
15595
15596ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
15597#ifdef HAVE_NETINET_IN_H
15598#include <netinet/in.h>
15599#endif
15600#ifdef HAVE_NETINET_IN6_H
15601#include <netinet/in6.h>
15602#endif
15603#ifdef HAVE_SYS_SOCKET_H
15604#include <sys/socket.h>
15605#endif
15606#ifdef _WIN32
15607#define WIN32_WINNT 0x400
15608#define _WIN32_WINNT 0x400
15609#define WIN32_LEAN_AND_MEAN
15610#if defined(_MSC_VER) && (_MSC_VER < 1300)
15611#include <winsock.h>
15612#else
15613#include <winsock2.h>
15614#include <ws2tcpip.h>
15615#endif
15616#endif
15617
15618"
15619if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
15620
15621cat >>confdefs.h <<_ACEOF
15622#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
15623_ACEOF
15624
15625
15626fi
15627ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
15628#ifdef HAVE_NETINET_IN_H
15629#include <netinet/in.h>
15630#endif
15631#ifdef HAVE_NETINET_IN6_H
15632#include <netinet/in6.h>
15633#endif
15634#ifdef HAVE_SYS_SOCKET_H
15635#include <sys/socket.h>
15636#endif
15637#ifdef _WIN32
15638#define WIN32_WINNT 0x400
15639#define _WIN32_WINNT 0x400
15640#define WIN32_LEAN_AND_MEAN
15641#if defined(_MSC_VER) && (_MSC_VER < 1300)
15642#include <winsock.h>
15643#else
15644#include <winsock2.h>
15645#include <ws2tcpip.h>
15646#endif
15647#endif
15648
15649"
15650if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
15651
15652cat >>confdefs.h <<_ACEOF
15653#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
15654_ACEOF
15655
15656
15657fi
15658ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
15659#ifdef HAVE_NETINET_IN_H
15660#include <netinet/in.h>
15661#endif
15662#ifdef HAVE_NETINET_IN6_H
15663#include <netinet/in6.h>
15664#endif
15665#ifdef HAVE_SYS_SOCKET_H
15666#include <sys/socket.h>
15667#endif
15668#ifdef _WIN32
15669#define WIN32_WINNT 0x400
15670#define _WIN32_WINNT 0x400
15671#define WIN32_LEAN_AND_MEAN
15672#if defined(_MSC_VER) && (_MSC_VER < 1300)
15673#include <winsock.h>
15674#else
15675#include <winsock2.h>
15676#include <ws2tcpip.h>
15677#endif
15678#endif
15679
15680"
15681if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
15682
15683cat >>confdefs.h <<_ACEOF
15684#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
15685_ACEOF
15686
15687
15688fi
15689ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
15690#ifdef HAVE_NETINET_IN_H
15691#include <netinet/in.h>
15692#endif
15693#ifdef HAVE_NETINET_IN6_H
15694#include <netinet/in6.h>
15695#endif
15696#ifdef HAVE_SYS_SOCKET_H
15697#include <sys/socket.h>
15698#endif
15699#ifdef _WIN32
15700#define WIN32_WINNT 0x400
15701#define _WIN32_WINNT 0x400
15702#define WIN32_LEAN_AND_MEAN
15703#if defined(_MSC_VER) && (_MSC_VER < 1300)
15704#include <winsock.h>
15705#else
15706#include <winsock2.h>
15707#include <ws2tcpip.h>
15708#endif
15709#endif
15710
15711"
15712if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
15713
15714cat >>confdefs.h <<_ACEOF
15715#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
15716_ACEOF
15717
15718
15719fi
15720ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
15721#ifdef HAVE_NETINET_IN_H
15722#include <netinet/in.h>
15723#endif
15724#ifdef HAVE_NETINET_IN6_H
15725#include <netinet/in6.h>
15726#endif
15727#ifdef HAVE_SYS_SOCKET_H
15728#include <sys/socket.h>
15729#endif
15730#ifdef _WIN32
15731#define WIN32_WINNT 0x400
15732#define _WIN32_WINNT 0x400
15733#define WIN32_LEAN_AND_MEAN
15734#if defined(_MSC_VER) && (_MSC_VER < 1300)
15735#include <winsock.h>
15736#else
15737#include <winsock2.h>
15738#include <ws2tcpip.h>
15739#endif
15740#endif
15741
15742"
15743if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15744
15745cat >>confdefs.h <<_ACEOF
15746#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15747_ACEOF
15748
15749
15750fi
15751ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
15752#ifdef HAVE_NETINET_IN_H
15753#include <netinet/in.h>
15754#endif
15755#ifdef HAVE_NETINET_IN6_H
15756#include <netinet/in6.h>
15757#endif
15758#ifdef HAVE_SYS_SOCKET_H
15759#include <sys/socket.h>
15760#endif
15761#ifdef _WIN32
15762#define WIN32_WINNT 0x400
15763#define _WIN32_WINNT 0x400
15764#define WIN32_LEAN_AND_MEAN
15765#if defined(_MSC_VER) && (_MSC_VER < 1300)
15766#include <winsock.h>
15767#else
15768#include <winsock2.h>
15769#include <ws2tcpip.h>
15770#endif
15771#endif
15772
15773"
15774if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15775
15776cat >>confdefs.h <<_ACEOF
15777#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15778_ACEOF
15779
15780
15781fi
15782
15783
15784ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" "
15785#ifdef HAVE_SYS_SOCKET_H
15786#include <sys/socket.h>
15787#endif
15788#ifdef _WIN32
15789#include <winsock2.h>
15790#endif
15791
15792"
15793if test "x$ac_cv_type_struct_linger" = xyes; then :
15794
15795cat >>confdefs.h <<_ACEOF
15796#define HAVE_STRUCT_LINGER 1
15797_ACEOF
15798
15799
15800fi
15801
15802
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15804$as_echo_n "checking for socklen_t... " >&6; }
15805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806/* end confdefs.h.  */
15807
15808 #include <sys/types.h>
15809 #ifdef _WIN32
15810 #include <ws2tcpip.h>
15811 #else
15812 #include <sys/socket.h>
15813 #endif
15814
15815int
15816main ()
15817{
15818socklen_t x;
15819
15820  ;
15821  return 0;
15822}
15823_ACEOF
15824if ac_fn_c_try_compile "$LINENO"; then :
15825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15826$as_echo "yes" >&6; }
15827else
15828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829$as_echo "no" >&6; }
15830
15831$as_echo "#define socklen_t unsigned int" >>confdefs.h
15832
15833
15834fi
15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836
15837# __func__/__FUNCTION__ is not a macros in general
15838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
15839$as_echo_n "checking whether our compiler supports __func__... " >&6; }
15840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841/* end confdefs.h.  */
15842
15843int
15844main ()
15845{
15846 const char *cp = __func__;
15847
15848  ;
15849  return 0;
15850}
15851_ACEOF
15852if ac_fn_c_try_compile "$LINENO"; then :
15853
15854$as_echo "#define HAVE___func__ 1" >>confdefs.h
15855
15856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15857$as_echo "yes" >&6; }
15858
15859else
15860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861$as_echo "no" >&6; }
15862
15863fi
15864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
15866$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
15867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868/* end confdefs.h.  */
15869
15870int
15871main ()
15872{
15873 const char *cp = __FUNCTION__;
15874
15875  ;
15876  return 0;
15877}
15878_ACEOF
15879if ac_fn_c_try_compile "$LINENO"; then :
15880
15881$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
15882
15883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15884$as_echo "yes" >&6; }
15885
15886else
15887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15888$as_echo "no" >&6; }
15889
15890fi
15891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892
15893# check if we can compile with pthreads
15894have_pthreads=no
15895if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
15896
15897
15898
15899ac_ext=c
15900ac_cpp='$CPP $CPPFLAGS'
15901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15903ac_compiler_gnu=$ac_cv_c_compiler_gnu
15904
15905acx_pthread_ok=no
15906
15907# We used to check for pthread.h first, but this fails if pthread.h
15908# requires special compiler flags (e.g. on True64 or Sequent).
15909# It gets checked for in the link test anyway.
15910
15911# First of all, check if the user has set any of the PTHREAD_LIBS,
15912# etcetera environment variables, and if threads linking works using
15913# them:
15914if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15915        save_CFLAGS="$CFLAGS"
15916        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15917        save_LIBS="$LIBS"
15918        LIBS="$PTHREAD_LIBS $LIBS"
15919        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15920$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15921        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922/* end confdefs.h.  */
15923
15924/* Override any GCC internal prototype to avoid an error.
15925   Use char because int might match the return type of a GCC
15926   builtin and then its argument prototype would still apply.  */
15927#ifdef __cplusplus
15928extern "C"
15929#endif
15930char pthread_join ();
15931int
15932main ()
15933{
15934return pthread_join ();
15935  ;
15936  return 0;
15937}
15938_ACEOF
15939if ac_fn_c_try_link "$LINENO"; then :
15940  acx_pthread_ok=yes
15941fi
15942rm -f core conftest.err conftest.$ac_objext \
15943    conftest$ac_exeext conftest.$ac_ext
15944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15945$as_echo "$acx_pthread_ok" >&6; }
15946        if test x"$acx_pthread_ok" = xno; then
15947                PTHREAD_LIBS=""
15948                PTHREAD_CFLAGS=""
15949        fi
15950        LIBS="$save_LIBS"
15951        CFLAGS="$save_CFLAGS"
15952fi
15953
15954# We must check for the threads library under a number of different
15955# names; the ordering is very important because some systems
15956# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15957# libraries is broken (non-POSIX).
15958
15959# Create a list of thread flags to try.  Items starting with a "-" are
15960# C compiler flags, and other items are library names, except for "none"
15961# which indicates that we try without any flags at all, and "pthread-config"
15962# which is a program returning the flags for the Pth emulation library.
15963
15964acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15965
15966# The ordering *is* (sometimes) important.  Some notes on the
15967# individual items follow:
15968
15969# pthreads: AIX (must check this before -lpthread)
15970# none: in case threads are in libc; should be tried before -Kthread and
15971#       other compiler flags to prevent continual compiler warnings
15972# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15973# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15974# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15975# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15976# -pthreads: Solaris/gcc
15977# -mthreads: Mingw32/gcc, Lynx/gcc
15978# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15979#      doesn't hurt to check since this sometimes defines pthreads too;
15980#      also defines -D_REENTRANT)
15981#      ... -mt is also the pthreads flag for HP/aCC
15982# pthread: Linux, etcetera
15983# --thread-safe: KAI C++
15984# pthread-config: use pthread-config program (for GNU Pth library)
15985
15986case "${host_cpu}-${host_os}" in
15987        *solaris*)
15988
15989        # On Solaris (at least, for some versions), libc contains stubbed
15990        # (non-functional) versions of the pthreads routines, so link-based
15991        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15992        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15993        # a function called by this macro, so we could check for that, but
15994        # who knows whether they'll stub that too in a future libc.)  So,
15995        # we'll just look for -pthreads and -lpthread first:
15996
15997        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15998        ;;
15999esac
16000
16001if test x"$acx_pthread_ok" = xno; then
16002for flag in $acx_pthread_flags; do
16003
16004        case $flag in
16005                none)
16006                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16007$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16008                ;;
16009
16010                -*)
16011                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16012$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16013                PTHREAD_CFLAGS="$flag"
16014                ;;
16015
16016		pthread-config)
16017		# Extract the first word of "pthread-config", so it can be a program name with args.
16018set dummy pthread-config; ac_word=$2
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16020$as_echo_n "checking for $ac_word... " >&6; }
16021if ${ac_cv_prog_acx_pthread_config+:} false; then :
16022  $as_echo_n "(cached) " >&6
16023else
16024  if test -n "$acx_pthread_config"; then
16025  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16026else
16027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16028for as_dir in $PATH
16029do
16030  IFS=$as_save_IFS
16031  test -z "$as_dir" && as_dir=.
16032    for ac_exec_ext in '' $ac_executable_extensions; do
16033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16034    ac_cv_prog_acx_pthread_config="yes"
16035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16036    break 2
16037  fi
16038done
16039  done
16040IFS=$as_save_IFS
16041
16042  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16043fi
16044fi
16045acx_pthread_config=$ac_cv_prog_acx_pthread_config
16046if test -n "$acx_pthread_config"; then
16047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16048$as_echo "$acx_pthread_config" >&6; }
16049else
16050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051$as_echo "no" >&6; }
16052fi
16053
16054
16055		if test x"$acx_pthread_config" = xno; then continue; fi
16056		PTHREAD_CFLAGS="`pthread-config --cflags`"
16057		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16058		;;
16059
16060                *)
16061                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16062$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16063                PTHREAD_LIBS="-l$flag"
16064                ;;
16065        esac
16066
16067        save_LIBS="$LIBS"
16068        save_CFLAGS="$CFLAGS"
16069        LIBS="$PTHREAD_LIBS $LIBS"
16070        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16071
16072        # Check for various functions.  We must include pthread.h,
16073        # since some functions may be macros.  (On the Sequent, we
16074        # need a special flag -Kthread to make this header compile.)
16075        # We check for pthread_join because it is in -lpthread on IRIX
16076        # while pthread_create is in libc.  We check for pthread_attr_init
16077        # due to DEC craziness with -lpthreads.  We check for
16078        # pthread_cleanup_push because it is one of the few pthread
16079        # functions on Solaris that doesn't have a non-functional libc stub.
16080        # We try pthread_create on general principles.
16081        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082/* end confdefs.h.  */
16083#include <pthread.h>
16084int
16085main ()
16086{
16087pthread_t th; pthread_join(th, 0);
16088                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
16089                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16090  ;
16091  return 0;
16092}
16093_ACEOF
16094if ac_fn_c_try_link "$LINENO"; then :
16095  acx_pthread_ok=yes
16096fi
16097rm -f core conftest.err conftest.$ac_objext \
16098    conftest$ac_exeext conftest.$ac_ext
16099
16100        LIBS="$save_LIBS"
16101        CFLAGS="$save_CFLAGS"
16102
16103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16104$as_echo "$acx_pthread_ok" >&6; }
16105        if test "x$acx_pthread_ok" = xyes; then
16106                break;
16107        fi
16108
16109        PTHREAD_LIBS=""
16110        PTHREAD_CFLAGS=""
16111done
16112fi
16113
16114# Various other checks:
16115if test "x$acx_pthread_ok" = xyes; then
16116        save_LIBS="$LIBS"
16117        LIBS="$PTHREAD_LIBS $LIBS"
16118        save_CFLAGS="$CFLAGS"
16119        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16120
16121        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16123$as_echo_n "checking for joinable pthread attribute... " >&6; }
16124	attr_name=unknown
16125	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16126	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127/* end confdefs.h.  */
16128#include <pthread.h>
16129int
16130main ()
16131{
16132int attr=$attr; return attr;
16133  ;
16134  return 0;
16135}
16136_ACEOF
16137if ac_fn_c_try_link "$LINENO"; then :
16138  attr_name=$attr; break
16139fi
16140rm -f core conftest.err conftest.$ac_objext \
16141    conftest$ac_exeext conftest.$ac_ext
16142	done
16143        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16144$as_echo "$attr_name" >&6; }
16145        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16146
16147cat >>confdefs.h <<_ACEOF
16148#define PTHREAD_CREATE_JOINABLE $attr_name
16149_ACEOF
16150
16151        fi
16152
16153        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16154$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16155        flag=no
16156        case "${host_cpu}-${host_os}" in
16157            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16158            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16159        esac
16160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16161$as_echo "${flag}" >&6; }
16162        if test "x$flag" != xno; then
16163            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16164        fi
16165
16166        LIBS="$save_LIBS"
16167        CFLAGS="$save_CFLAGS"
16168
16169        # More AIX lossage: must compile with xlc_r or cc_r
16170	if test x"$GCC" != xyes; then
16171          for ac_prog in xlc_r cc_r
16172do
16173  # Extract the first word of "$ac_prog", so it can be a program name with args.
16174set dummy $ac_prog; ac_word=$2
16175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16176$as_echo_n "checking for $ac_word... " >&6; }
16177if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16178  $as_echo_n "(cached) " >&6
16179else
16180  if test -n "$PTHREAD_CC"; then
16181  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16182else
16183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16184for as_dir in $PATH
16185do
16186  IFS=$as_save_IFS
16187  test -z "$as_dir" && as_dir=.
16188    for ac_exec_ext in '' $ac_executable_extensions; do
16189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16190    ac_cv_prog_PTHREAD_CC="$ac_prog"
16191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16192    break 2
16193  fi
16194done
16195  done
16196IFS=$as_save_IFS
16197
16198fi
16199fi
16200PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16201if test -n "$PTHREAD_CC"; then
16202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16203$as_echo "$PTHREAD_CC" >&6; }
16204else
16205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206$as_echo "no" >&6; }
16207fi
16208
16209
16210  test -n "$PTHREAD_CC" && break
16211done
16212test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16213
16214        else
16215          PTHREAD_CC=$CC
16216	fi
16217else
16218        PTHREAD_CC="$CC"
16219fi
16220
16221
16222
16223
16224
16225# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16226if test x"$acx_pthread_ok" = xyes; then
16227
16228
16229$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
16230
16231	have_pthreads=yes
16232        :
16233else
16234        acx_pthread_ok=no
16235
16236fi
16237ac_ext=c
16238ac_cpp='$CPP $CPPFLAGS'
16239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241ac_compiler_gnu=$ac_cv_c_compiler_gnu
16242
16243
16244  CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16245  # The cast to long int works around a bug in the HP C Compiler
16246# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16247# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16248# This bug is HP SR number 8606223364.
16249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
16250$as_echo_n "checking size of pthread_t... " >&6; }
16251if ${ac_cv_sizeof_pthread_t+:} false; then :
16252  $as_echo_n "(cached) " >&6
16253else
16254  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
16255      #include <pthread.h>
16256
16257"; then :
16258
16259else
16260  if test "$ac_cv_type_pthread_t" = yes; then
16261     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16263as_fn_error 77 "cannot compute sizeof (pthread_t)
16264See \`config.log' for more details" "$LINENO" 5; }
16265   else
16266     ac_cv_sizeof_pthread_t=0
16267   fi
16268fi
16269
16270fi
16271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
16272$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
16273
16274
16275
16276cat >>confdefs.h <<_ACEOF
16277#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
16278_ACEOF
16279
16280
16281fi
16282 if test "$enable_thread_support" != "no"; then
16283  THREADS_TRUE=
16284  THREADS_FALSE='#'
16285else
16286  THREADS_TRUE='#'
16287  THREADS_FALSE=
16288fi
16289
16290 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
16291  PTHREADS_TRUE=
16292  PTHREADS_FALSE='#'
16293else
16294  PTHREADS_TRUE='#'
16295  PTHREADS_FALSE=
16296fi
16297
16298
16299# check if we should compile locking into the library
16300if test x$enable_thread_support = xno; then
16301
16302$as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
16303
16304fi
16305
16306# check if we should hard-code the mm functions.
16307if test x$enable_malloc_replacement = xno; then
16308
16309$as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
16310
16311fi
16312
16313# check if we should hard-code debugging out
16314if test x$enable_debug_mode = xno; then
16315
16316$as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
16317
16318fi
16319
16320# check if we should enable verbose debugging
16321if test x$enable_verbose_debug = xyes; then
16322	CFLAGS="$CFLAGS -DUSE_DEBUG"
16323fi
16324
16325# check if we have and should use openssl
16326 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
16327  OPENSSL_TRUE=
16328  OPENSSL_FALSE='#'
16329else
16330  OPENSSL_TRUE='#'
16331  OPENSSL_FALSE=
16332fi
16333
16334
16335# Add some more warnings which we use in development but not in the
16336# released versions.  (Some relevant gcc versions can't handle these.)
16337if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
16338
16339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h.  */
16341
16342int
16343main ()
16344{
16345
16346#if !defined(__GNUC__) || (__GNUC__ < 4)
16347#error
16348#endif
16349  ;
16350  return 0;
16351}
16352_ACEOF
16353if ac_fn_c_try_compile "$LINENO"; then :
16354  have_gcc4=yes
16355else
16356  have_gcc4=no
16357fi
16358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359
16360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361/* end confdefs.h.  */
16362
16363int
16364main ()
16365{
16366
16367#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
16368#error
16369#endif
16370  ;
16371  return 0;
16372}
16373_ACEOF
16374if ac_fn_c_try_compile "$LINENO"; then :
16375  have_gcc42=yes
16376else
16377  have_gcc42=no
16378fi
16379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380
16381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h.  */
16383
16384int
16385main ()
16386{
16387
16388#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
16389#error
16390#endif
16391  ;
16392  return 0;
16393}
16394_ACEOF
16395if ac_fn_c_try_compile "$LINENO"; then :
16396  have_gcc45=yes
16397else
16398  have_gcc45=no
16399fi
16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401
16402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403/* end confdefs.h.  */
16404
16405int
16406main ()
16407{
16408
16409#if !defined(__clang__)
16410#error
16411#endif
16412  ;
16413  return 0;
16414}
16415_ACEOF
16416if ac_fn_c_try_compile "$LINENO"; then :
16417  have_clang=yes
16418else
16419  have_clang=no
16420fi
16421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16422
16423  # -W is the same as -Wextra
16424  CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast"
16425  if test x$enable_gcc_warnings = xyes; then
16426    CFLAGS="$CFLAGS -Werror"
16427  fi
16428
16429  CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
16430
16431  if test x$have_gcc4 = xyes ; then
16432    # These warnings break gcc 3.3.5 and work on gcc 4.0.2
16433    CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
16434    #CFLAGS="$CFLAGS -Wold-style-definition"
16435  fi
16436
16437  if test x$have_gcc42 = xyes ; then
16438    # These warnings break gcc 4.0.2 and work on gcc 4.2
16439    CFLAGS="$CFLAGS -Waddress"
16440  fi
16441
16442  if test x$have_gcc42 = xyes && test x$have_clang = xno; then
16443    # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
16444    CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
16445  fi
16446
16447  if test x$have_gcc45 = xyes ; then
16448    # These warnings work on gcc 4.5
16449    CFLAGS="$CFLAGS -Wlogical-op"
16450  fi
16451
16452  if test x$have_clang = xyes; then
16453    # Disable the unused-function warnings, because these trigger
16454    # for minheap-internal.h related code.
16455    CFLAGS="$CFLAGS -Wno-unused-function"
16456
16457    # clang on macosx emits warnings for each directory specified which
16458    # isn't "used" generating a lot of build noise (typically 3 warnings
16459    # per file
16460    case "$host_os" in
16461        darwin*)
16462            CFLAGS="$CFLAGS -Qunused-arguments"
16463        ;;
16464    esac
16465  fi
16466
16467##This will break the world on some 64-bit architectures
16468# CFLAGS="$CFLAGS -Winline"
16469
16470fi
16471
16472LIBEVENT_GC_SECTIONS=
16473if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
16474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
16475$as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
16476if ${libevent_cv_gc_sections_runs+:} false; then :
16477  $as_echo_n "(cached) " >&6
16478else
16479
16480	    	    	    	    	    	    	    	    	    	    	    origCFLAGS="$CFLAGS"
16481	    CFLAGS="$CFLAGS -Wl,--gc-sections"
16482	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h.  */
16484
16485			#include <stdlib.h>
16486			#include <stdio.h>
16487
16488int
16489main ()
16490{
16491
16492			FILE *	fpC;
16493			char	buf[32];
16494			size_t	cch;
16495			int	read_success_once;
16496
16497			fpC = fopen("conftest.c", "r");
16498			if (NULL == fpC)
16499				exit(1);
16500			do {
16501				cch = fread(buf, sizeof(buf), 1, fpC);
16502				read_success_once |= (0 != cch);
16503			} while (0 != cch);
16504			if (!read_success_once)
16505				exit(2);
16506			if (!feof(fpC))
16507				exit(3);
16508			if (0 != fclose(fpC))
16509				exit(4);
16510
16511			exit(EXIT_SUCCESS);
16512
16513
16514  ;
16515  return 0;
16516}
16517_ACEOF
16518if ac_fn_c_try_link "$LINENO"; then :
16519
16520                                                            		    if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
16521			libevent_cv_gc_sections_runs=no
16522		    else
16523			libevent_cv_gc_sections_runs=no
16524			./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
16525		    fi
16526
16527else
16528  libevent_cv_gc_sections_runs=no
16529
16530fi
16531rm -f core conftest.err conftest.$ac_objext \
16532    conftest$ac_exeext conftest.$ac_ext
16533	    CFLAGS="$origCFLAGS"
16534	    { origCFLAGS=; unset origCFLAGS;}
16535
16536
16537fi
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
16539$as_echo "$libevent_cv_gc_sections_runs" >&6; }
16540    case "$libevent_cv_gc_sections_runs" in
16541     yes)
16542	CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
16543	LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
16544	;;
16545    esac
16546fi
16547
16548
16549 if test "$enable_libevent_install" = "yes"; then
16550  INSTALL_LIBEVENT_TRUE=
16551  INSTALL_LIBEVENT_FALSE='#'
16552else
16553  INSTALL_LIBEVENT_TRUE='#'
16554  INSTALL_LIBEVENT_FALSE=
16555fi
16556
16557
16558# Doxygen support
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569# Files:
16570DX_PROJECT=libevent
16571
16572DX_CONFIG='${top_srcdir}/Doxyfile'
16573
16574DX_DOCDIR='doxygen'
16575
16576
16577# Environment variables used inside doxygen.cfg:
16578DX_ENV="$DX_ENV SRCDIR='$srcdir'"
16579SRCDIR=$srcdir
16580
16581DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
16582PROJECT=$DX_PROJECT
16583
16584DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
16585
16586
16587# Doxygen itself:
16588
16589
16590
16591    # Check whether --enable-doxygen-doc was given.
16592if test "${enable_doxygen_doc+set}" = set; then :
16593  enableval=$enable_doxygen_doc;
16594case "$enableval" in
16595#(
16596y|Y|yes|Yes|YES)
16597    DX_FLAG_doc=1
16598
16599
16600;; #(
16601n|N|no|No|NO)
16602    DX_FLAG_doc=0
16603
16604;; #(
16605*)
16606    as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16607;;
16608esac
16609
16610else
16611
16612DX_FLAG_doc=0
16613
16614
16615
16616fi
16617
16618if test "$DX_FLAG_doc" = 1; then
16619
16620if test -n "$ac_tool_prefix"; then
16621  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
16622set dummy ${ac_tool_prefix}doxygen; ac_word=$2
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16624$as_echo_n "checking for $ac_word... " >&6; }
16625if ${ac_cv_path_DX_DOXYGEN+:} false; then :
16626  $as_echo_n "(cached) " >&6
16627else
16628  case $DX_DOXYGEN in
16629  [\\/]* | ?:[\\/]*)
16630  ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
16631  ;;
16632  *)
16633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634for as_dir in $PATH
16635do
16636  IFS=$as_save_IFS
16637  test -z "$as_dir" && as_dir=.
16638    for ac_exec_ext in '' $ac_executable_extensions; do
16639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16640    ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16642    break 2
16643  fi
16644done
16645  done
16646IFS=$as_save_IFS
16647
16648  ;;
16649esac
16650fi
16651DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
16652if test -n "$DX_DOXYGEN"; then
16653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
16654$as_echo "$DX_DOXYGEN" >&6; }
16655else
16656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657$as_echo "no" >&6; }
16658fi
16659
16660
16661fi
16662if test -z "$ac_cv_path_DX_DOXYGEN"; then
16663  ac_pt_DX_DOXYGEN=$DX_DOXYGEN
16664  # Extract the first word of "doxygen", so it can be a program name with args.
16665set dummy doxygen; ac_word=$2
16666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667$as_echo_n "checking for $ac_word... " >&6; }
16668if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
16669  $as_echo_n "(cached) " >&6
16670else
16671  case $ac_pt_DX_DOXYGEN in
16672  [\\/]* | ?:[\\/]*)
16673  ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
16674  ;;
16675  *)
16676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16677for as_dir in $PATH
16678do
16679  IFS=$as_save_IFS
16680  test -z "$as_dir" && as_dir=.
16681    for ac_exec_ext in '' $ac_executable_extensions; do
16682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16683    ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16685    break 2
16686  fi
16687done
16688  done
16689IFS=$as_save_IFS
16690
16691  ;;
16692esac
16693fi
16694ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
16695if test -n "$ac_pt_DX_DOXYGEN"; then
16696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
16697$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
16698else
16699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700$as_echo "no" >&6; }
16701fi
16702
16703  if test "x$ac_pt_DX_DOXYGEN" = x; then
16704    DX_DOXYGEN=""
16705  else
16706    case $cross_compiling:$ac_tool_warned in
16707yes:)
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16710ac_tool_warned=yes ;;
16711esac
16712    DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16713  fi
16714else
16715  DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16716fi
16717
16718if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16719    if test "xdoxygen" = "xdoxygen"; then
16720        as_fn_error $? "doxygen not found - will not generate any doxygen documentation" "$LINENO" 5
16721    else
16722        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16723$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16724    fi
16725    DX_FLAG_doc=0
16726
16727fi
16728
16729
16730if test -n "$ac_tool_prefix"; then
16731  # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16732set dummy ${ac_tool_prefix}perl; ac_word=$2
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734$as_echo_n "checking for $ac_word... " >&6; }
16735if ${ac_cv_path_DX_PERL+:} false; then :
16736  $as_echo_n "(cached) " >&6
16737else
16738  case $DX_PERL in
16739  [\\/]* | ?:[\\/]*)
16740  ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16741  ;;
16742  *)
16743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16744for as_dir in $PATH
16745do
16746  IFS=$as_save_IFS
16747  test -z "$as_dir" && as_dir=.
16748    for ac_exec_ext in '' $ac_executable_extensions; do
16749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16750    ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16752    break 2
16753  fi
16754done
16755  done
16756IFS=$as_save_IFS
16757
16758  ;;
16759esac
16760fi
16761DX_PERL=$ac_cv_path_DX_PERL
16762if test -n "$DX_PERL"; then
16763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16764$as_echo "$DX_PERL" >&6; }
16765else
16766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767$as_echo "no" >&6; }
16768fi
16769
16770
16771fi
16772if test -z "$ac_cv_path_DX_PERL"; then
16773  ac_pt_DX_PERL=$DX_PERL
16774  # Extract the first word of "perl", so it can be a program name with args.
16775set dummy perl; ac_word=$2
16776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16777$as_echo_n "checking for $ac_word... " >&6; }
16778if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16779  $as_echo_n "(cached) " >&6
16780else
16781  case $ac_pt_DX_PERL in
16782  [\\/]* | ?:[\\/]*)
16783  ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16784  ;;
16785  *)
16786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16787for as_dir in $PATH
16788do
16789  IFS=$as_save_IFS
16790  test -z "$as_dir" && as_dir=.
16791    for ac_exec_ext in '' $ac_executable_extensions; do
16792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16793    ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16795    break 2
16796  fi
16797done
16798  done
16799IFS=$as_save_IFS
16800
16801  ;;
16802esac
16803fi
16804ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16805if test -n "$ac_pt_DX_PERL"; then
16806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16807$as_echo "$ac_pt_DX_PERL" >&6; }
16808else
16809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810$as_echo "no" >&6; }
16811fi
16812
16813  if test "x$ac_pt_DX_PERL" = x; then
16814    DX_PERL=""
16815  else
16816    case $cross_compiling:$ac_tool_warned in
16817yes:)
16818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16820ac_tool_warned=yes ;;
16821esac
16822    DX_PERL=$ac_pt_DX_PERL
16823  fi
16824else
16825  DX_PERL="$ac_cv_path_DX_PERL"
16826fi
16827
16828if test "$DX_FLAG_doc$DX_PERL" = 1; then
16829    if test "xperl" = "xdoxygen"; then
16830        as_fn_error $? "perl not found - will not generate any doxygen documentation" "$LINENO" 5
16831    else
16832        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16833$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16834    fi
16835    DX_FLAG_doc=0
16836
16837fi
16838
16839    :
16840fi
16841if test "$DX_FLAG_doc" = 1; then
16842    DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16843PERL_PATH=$DX_PERL
16844
16845    :
16846else
16847
16848    :
16849fi
16850
16851
16852# Dot for graphics:
16853
16854
16855
16856    # Check whether --enable-doxygen-dot was given.
16857if test "${enable_doxygen_dot+set}" = set; then :
16858  enableval=$enable_doxygen_dot;
16859case "$enableval" in
16860#(
16861y|Y|yes|Yes|YES)
16862    DX_FLAG_dot=1
16863
16864
16865test "$DX_FLAG_doc" = "1" \
16866|| as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5
16867
16868;; #(
16869n|N|no|No|NO)
16870    DX_FLAG_dot=0
16871
16872;; #(
16873*)
16874    as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16875;;
16876esac
16877
16878else
16879
16880DX_FLAG_dot=0
16881
16882
16883test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
16884
16885
16886
16887fi
16888
16889if test "$DX_FLAG_dot" = 1; then
16890
16891if test -n "$ac_tool_prefix"; then
16892  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
16893set dummy ${ac_tool_prefix}dot; ac_word=$2
16894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16895$as_echo_n "checking for $ac_word... " >&6; }
16896if ${ac_cv_path_DX_DOT+:} false; then :
16897  $as_echo_n "(cached) " >&6
16898else
16899  case $DX_DOT in
16900  [\\/]* | ?:[\\/]*)
16901  ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
16902  ;;
16903  *)
16904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16905for as_dir in $PATH
16906do
16907  IFS=$as_save_IFS
16908  test -z "$as_dir" && as_dir=.
16909    for ac_exec_ext in '' $ac_executable_extensions; do
16910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16911    ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16913    break 2
16914  fi
16915done
16916  done
16917IFS=$as_save_IFS
16918
16919  ;;
16920esac
16921fi
16922DX_DOT=$ac_cv_path_DX_DOT
16923if test -n "$DX_DOT"; then
16924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
16925$as_echo "$DX_DOT" >&6; }
16926else
16927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928$as_echo "no" >&6; }
16929fi
16930
16931
16932fi
16933if test -z "$ac_cv_path_DX_DOT"; then
16934  ac_pt_DX_DOT=$DX_DOT
16935  # Extract the first word of "dot", so it can be a program name with args.
16936set dummy dot; ac_word=$2
16937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16938$as_echo_n "checking for $ac_word... " >&6; }
16939if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
16940  $as_echo_n "(cached) " >&6
16941else
16942  case $ac_pt_DX_DOT in
16943  [\\/]* | ?:[\\/]*)
16944  ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
16945  ;;
16946  *)
16947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948for as_dir in $PATH
16949do
16950  IFS=$as_save_IFS
16951  test -z "$as_dir" && as_dir=.
16952    for ac_exec_ext in '' $ac_executable_extensions; do
16953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16954    ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16956    break 2
16957  fi
16958done
16959  done
16960IFS=$as_save_IFS
16961
16962  ;;
16963esac
16964fi
16965ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
16966if test -n "$ac_pt_DX_DOT"; then
16967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
16968$as_echo "$ac_pt_DX_DOT" >&6; }
16969else
16970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971$as_echo "no" >&6; }
16972fi
16973
16974  if test "x$ac_pt_DX_DOT" = x; then
16975    DX_DOT=""
16976  else
16977    case $cross_compiling:$ac_tool_warned in
16978yes:)
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16981ac_tool_warned=yes ;;
16982esac
16983    DX_DOT=$ac_pt_DX_DOT
16984  fi
16985else
16986  DX_DOT="$ac_cv_path_DX_DOT"
16987fi
16988
16989if test "$DX_FLAG_dot$DX_DOT" = 1; then
16990    if test "xdot" = "xdoxygen"; then
16991        as_fn_error $? "dot not found - will not generate graphics for doxygen documentation" "$LINENO" 5
16992    else
16993        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
16994$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
16995    fi
16996    DX_FLAG_dot=0
16997
16998fi
16999
17000    :
17001fi
17002if test "$DX_FLAG_dot" = 1; then
17003    DX_ENV="$DX_ENV HAVE_DOT='YES'"
17004HAVE_DOT=YES
17005
17006             DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
17007DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`
17008
17009    :
17010else
17011    DX_ENV="$DX_ENV HAVE_DOT='NO'"
17012HAVE_DOT=NO
17013
17014    :
17015fi
17016
17017
17018# Man pages generation:
17019
17020
17021
17022    # Check whether --enable-doxygen-man was given.
17023if test "${enable_doxygen_man+set}" = set; then :
17024  enableval=$enable_doxygen_man;
17025case "$enableval" in
17026#(
17027y|Y|yes|Yes|YES)
17028    DX_FLAG_man=1
17029
17030
17031test "$DX_FLAG_doc" = "1" \
17032|| as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5
17033
17034;; #(
17035n|N|no|No|NO)
17036    DX_FLAG_man=0
17037
17038;; #(
17039*)
17040    as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
17041;;
17042esac
17043
17044else
17045
17046DX_FLAG_man=0
17047
17048
17049test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
17050
17051
17052
17053fi
17054
17055if test "$DX_FLAG_man" = 1; then
17056
17057    :
17058fi
17059if test "$DX_FLAG_man" = 1; then
17060    DX_ENV="$DX_ENV GENERATE_MAN='YES'"
17061GENERATE_MAN=YES
17062
17063    :
17064else
17065    DX_ENV="$DX_ENV GENERATE_MAN='NO'"
17066GENERATE_MAN=NO
17067
17068    :
17069fi
17070
17071
17072# RTF file generation:
17073
17074
17075
17076    # Check whether --enable-doxygen-rtf was given.
17077if test "${enable_doxygen_rtf+set}" = set; then :
17078  enableval=$enable_doxygen_rtf;
17079case "$enableval" in
17080#(
17081y|Y|yes|Yes|YES)
17082    DX_FLAG_rtf=1
17083
17084
17085test "$DX_FLAG_doc" = "1" \
17086|| as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5
17087
17088;; #(
17089n|N|no|No|NO)
17090    DX_FLAG_rtf=0
17091
17092;; #(
17093*)
17094    as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
17095;;
17096esac
17097
17098else
17099
17100DX_FLAG_rtf=0
17101
17102
17103test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
17104
17105
17106
17107fi
17108
17109if test "$DX_FLAG_rtf" = 1; then
17110
17111    :
17112fi
17113if test "$DX_FLAG_rtf" = 1; then
17114    DX_ENV="$DX_ENV GENERATE_RTF='YES'"
17115GENERATE_RTF=YES
17116
17117    :
17118else
17119    DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17120GENERATE_RTF=NO
17121
17122    :
17123fi
17124
17125
17126# XML file generation:
17127
17128
17129
17130    # Check whether --enable-doxygen-xml was given.
17131if test "${enable_doxygen_xml+set}" = set; then :
17132  enableval=$enable_doxygen_xml;
17133case "$enableval" in
17134#(
17135y|Y|yes|Yes|YES)
17136    DX_FLAG_xml=1
17137
17138
17139test "$DX_FLAG_doc" = "1" \
17140|| as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5
17141
17142;; #(
17143n|N|no|No|NO)
17144    DX_FLAG_xml=0
17145
17146;; #(
17147*)
17148    as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17149;;
17150esac
17151
17152else
17153
17154DX_FLAG_xml=0
17155
17156
17157test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17158
17159
17160
17161fi
17162
17163if test "$DX_FLAG_xml" = 1; then
17164
17165    :
17166fi
17167if test "$DX_FLAG_xml" = 1; then
17168    DX_ENV="$DX_ENV GENERATE_XML='YES'"
17169GENERATE_XML=YES
17170
17171    :
17172else
17173    DX_ENV="$DX_ENV GENERATE_XML='NO'"
17174GENERATE_XML=NO
17175
17176    :
17177fi
17178
17179
17180# (Compressed) HTML help generation:
17181
17182
17183
17184    # Check whether --enable-doxygen-chm was given.
17185if test "${enable_doxygen_chm+set}" = set; then :
17186  enableval=$enable_doxygen_chm;
17187case "$enableval" in
17188#(
17189y|Y|yes|Yes|YES)
17190    DX_FLAG_chm=1
17191
17192
17193test "$DX_FLAG_doc" = "1" \
17194|| as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5
17195
17196;; #(
17197n|N|no|No|NO)
17198    DX_FLAG_chm=0
17199
17200;; #(
17201*)
17202    as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17203;;
17204esac
17205
17206else
17207
17208DX_FLAG_chm=0
17209
17210
17211test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17212
17213
17214
17215fi
17216
17217if test "$DX_FLAG_chm" = 1; then
17218
17219if test -n "$ac_tool_prefix"; then
17220  # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17221set dummy ${ac_tool_prefix}hhc; ac_word=$2
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17223$as_echo_n "checking for $ac_word... " >&6; }
17224if ${ac_cv_path_DX_HHC+:} false; then :
17225  $as_echo_n "(cached) " >&6
17226else
17227  case $DX_HHC in
17228  [\\/]* | ?:[\\/]*)
17229  ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17230  ;;
17231  *)
17232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17233for as_dir in $PATH
17234do
17235  IFS=$as_save_IFS
17236  test -z "$as_dir" && as_dir=.
17237    for ac_exec_ext in '' $ac_executable_extensions; do
17238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17239    ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17241    break 2
17242  fi
17243done
17244  done
17245IFS=$as_save_IFS
17246
17247  ;;
17248esac
17249fi
17250DX_HHC=$ac_cv_path_DX_HHC
17251if test -n "$DX_HHC"; then
17252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17253$as_echo "$DX_HHC" >&6; }
17254else
17255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17256$as_echo "no" >&6; }
17257fi
17258
17259
17260fi
17261if test -z "$ac_cv_path_DX_HHC"; then
17262  ac_pt_DX_HHC=$DX_HHC
17263  # Extract the first word of "hhc", so it can be a program name with args.
17264set dummy hhc; ac_word=$2
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17266$as_echo_n "checking for $ac_word... " >&6; }
17267if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17268  $as_echo_n "(cached) " >&6
17269else
17270  case $ac_pt_DX_HHC in
17271  [\\/]* | ?:[\\/]*)
17272  ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17273  ;;
17274  *)
17275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17276for as_dir in $PATH
17277do
17278  IFS=$as_save_IFS
17279  test -z "$as_dir" && as_dir=.
17280    for ac_exec_ext in '' $ac_executable_extensions; do
17281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17282    ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17284    break 2
17285  fi
17286done
17287  done
17288IFS=$as_save_IFS
17289
17290  ;;
17291esac
17292fi
17293ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17294if test -n "$ac_pt_DX_HHC"; then
17295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17296$as_echo "$ac_pt_DX_HHC" >&6; }
17297else
17298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17299$as_echo "no" >&6; }
17300fi
17301
17302  if test "x$ac_pt_DX_HHC" = x; then
17303    DX_HHC=""
17304  else
17305    case $cross_compiling:$ac_tool_warned in
17306yes:)
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17309ac_tool_warned=yes ;;
17310esac
17311    DX_HHC=$ac_pt_DX_HHC
17312  fi
17313else
17314  DX_HHC="$ac_cv_path_DX_HHC"
17315fi
17316
17317if test "$DX_FLAG_chm$DX_HHC" = 1; then
17318    if test "xhhc" = "xdoxygen"; then
17319        as_fn_error $? "hhc not found - will not generate doxygen compressed HTML help documentation" "$LINENO" 5
17320    else
17321        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17322$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17323    fi
17324    DX_FLAG_chm=0
17325
17326fi
17327
17328    :
17329fi
17330if test "$DX_FLAG_chm" = 1; then
17331    DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17332HHC_PATH=$DX_HHC
17333
17334             DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17335GENERATE_HTML=YES
17336
17337             DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17338GENERATE_HTMLHELP=YES
17339
17340    :
17341else
17342    DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17343GENERATE_HTMLHELP=NO
17344
17345    :
17346fi
17347
17348
17349# Separate CHI file generation.
17350
17351
17352
17353    # Check whether --enable-doxygen-chi was given.
17354if test "${enable_doxygen_chi+set}" = set; then :
17355  enableval=$enable_doxygen_chi;
17356case "$enableval" in
17357#(
17358y|Y|yes|Yes|YES)
17359    DX_FLAG_chi=1
17360
17361
17362test "$DX_FLAG_chm" = "1" \
17363|| as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5
17364
17365;; #(
17366n|N|no|No|NO)
17367    DX_FLAG_chi=0
17368
17369;; #(
17370*)
17371    as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17372;;
17373esac
17374
17375else
17376
17377DX_FLAG_chi=0
17378
17379
17380test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17381
17382
17383
17384fi
17385
17386if test "$DX_FLAG_chi" = 1; then
17387
17388    :
17389fi
17390if test "$DX_FLAG_chi" = 1; then
17391    DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17392GENERATE_CHI=YES
17393
17394    :
17395else
17396    DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17397GENERATE_CHI=NO
17398
17399    :
17400fi
17401
17402
17403# Plain HTML pages generation:
17404
17405
17406
17407    # Check whether --enable-doxygen-html was given.
17408if test "${enable_doxygen_html+set}" = set; then :
17409  enableval=$enable_doxygen_html;
17410case "$enableval" in
17411#(
17412y|Y|yes|Yes|YES)
17413    DX_FLAG_html=1
17414
17415
17416test "$DX_FLAG_doc" = "1" \
17417|| as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5
17418
17419test "$DX_FLAG_chm" = "0" \
17420|| as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5
17421
17422;; #(
17423n|N|no|No|NO)
17424    DX_FLAG_html=0
17425
17426;; #(
17427*)
17428    as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17429;;
17430esac
17431
17432else
17433
17434DX_FLAG_html=1
17435
17436
17437test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17438
17439
17440test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17441
17442
17443
17444fi
17445
17446if test "$DX_FLAG_html" = 1; then
17447
17448    :
17449fi
17450if test "$DX_FLAG_html" = 1; then
17451    DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17452GENERATE_HTML=YES
17453
17454    :
17455else
17456    test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17457GENERATE_HTML=NO
17458
17459    :
17460fi
17461
17462
17463# PostScript file generation:
17464
17465
17466
17467    # Check whether --enable-doxygen-ps was given.
17468if test "${enable_doxygen_ps+set}" = set; then :
17469  enableval=$enable_doxygen_ps;
17470case "$enableval" in
17471#(
17472y|Y|yes|Yes|YES)
17473    DX_FLAG_ps=1
17474
17475
17476test "$DX_FLAG_doc" = "1" \
17477|| as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5
17478
17479;; #(
17480n|N|no|No|NO)
17481    DX_FLAG_ps=0
17482
17483;; #(
17484*)
17485    as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17486;;
17487esac
17488
17489else
17490
17491DX_FLAG_ps=0
17492
17493
17494test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17495
17496
17497
17498fi
17499
17500if test "$DX_FLAG_ps" = 1; then
17501
17502if test -n "$ac_tool_prefix"; then
17503  # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17504set dummy ${ac_tool_prefix}latex; ac_word=$2
17505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17506$as_echo_n "checking for $ac_word... " >&6; }
17507if ${ac_cv_path_DX_LATEX+:} false; then :
17508  $as_echo_n "(cached) " >&6
17509else
17510  case $DX_LATEX in
17511  [\\/]* | ?:[\\/]*)
17512  ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
17513  ;;
17514  *)
17515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17516for as_dir in $PATH
17517do
17518  IFS=$as_save_IFS
17519  test -z "$as_dir" && as_dir=.
17520    for ac_exec_ext in '' $ac_executable_extensions; do
17521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17522    ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17524    break 2
17525  fi
17526done
17527  done
17528IFS=$as_save_IFS
17529
17530  ;;
17531esac
17532fi
17533DX_LATEX=$ac_cv_path_DX_LATEX
17534if test -n "$DX_LATEX"; then
17535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
17536$as_echo "$DX_LATEX" >&6; }
17537else
17538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539$as_echo "no" >&6; }
17540fi
17541
17542
17543fi
17544if test -z "$ac_cv_path_DX_LATEX"; then
17545  ac_pt_DX_LATEX=$DX_LATEX
17546  # Extract the first word of "latex", so it can be a program name with args.
17547set dummy latex; ac_word=$2
17548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17549$as_echo_n "checking for $ac_word... " >&6; }
17550if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
17551  $as_echo_n "(cached) " >&6
17552else
17553  case $ac_pt_DX_LATEX in
17554  [\\/]* | ?:[\\/]*)
17555  ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
17556  ;;
17557  *)
17558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17559for as_dir in $PATH
17560do
17561  IFS=$as_save_IFS
17562  test -z "$as_dir" && as_dir=.
17563    for ac_exec_ext in '' $ac_executable_extensions; do
17564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17565    ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17567    break 2
17568  fi
17569done
17570  done
17571IFS=$as_save_IFS
17572
17573  ;;
17574esac
17575fi
17576ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
17577if test -n "$ac_pt_DX_LATEX"; then
17578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
17579$as_echo "$ac_pt_DX_LATEX" >&6; }
17580else
17581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582$as_echo "no" >&6; }
17583fi
17584
17585  if test "x$ac_pt_DX_LATEX" = x; then
17586    DX_LATEX=""
17587  else
17588    case $cross_compiling:$ac_tool_warned in
17589yes:)
17590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17592ac_tool_warned=yes ;;
17593esac
17594    DX_LATEX=$ac_pt_DX_LATEX
17595  fi
17596else
17597  DX_LATEX="$ac_cv_path_DX_LATEX"
17598fi
17599
17600if test "$DX_FLAG_ps$DX_LATEX" = 1; then
17601    if test "xlatex" = "xdoxygen"; then
17602        as_fn_error $? "latex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17603    else
17604        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
17605$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
17606    fi
17607    DX_FLAG_ps=0
17608
17609fi
17610
17611
17612if test -n "$ac_tool_prefix"; then
17613  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17614set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17616$as_echo_n "checking for $ac_word... " >&6; }
17617if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17618  $as_echo_n "(cached) " >&6
17619else
17620  case $DX_MAKEINDEX in
17621  [\\/]* | ?:[\\/]*)
17622  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17623  ;;
17624  *)
17625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17626for as_dir in $PATH
17627do
17628  IFS=$as_save_IFS
17629  test -z "$as_dir" && as_dir=.
17630    for ac_exec_ext in '' $ac_executable_extensions; do
17631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17632    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17634    break 2
17635  fi
17636done
17637  done
17638IFS=$as_save_IFS
17639
17640  ;;
17641esac
17642fi
17643DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17644if test -n "$DX_MAKEINDEX"; then
17645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17646$as_echo "$DX_MAKEINDEX" >&6; }
17647else
17648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17649$as_echo "no" >&6; }
17650fi
17651
17652
17653fi
17654if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17655  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17656  # Extract the first word of "makeindex", so it can be a program name with args.
17657set dummy makeindex; ac_word=$2
17658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17659$as_echo_n "checking for $ac_word... " >&6; }
17660if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17661  $as_echo_n "(cached) " >&6
17662else
17663  case $ac_pt_DX_MAKEINDEX in
17664  [\\/]* | ?:[\\/]*)
17665  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17666  ;;
17667  *)
17668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17669for as_dir in $PATH
17670do
17671  IFS=$as_save_IFS
17672  test -z "$as_dir" && as_dir=.
17673    for ac_exec_ext in '' $ac_executable_extensions; do
17674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17675    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17677    break 2
17678  fi
17679done
17680  done
17681IFS=$as_save_IFS
17682
17683  ;;
17684esac
17685fi
17686ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17687if test -n "$ac_pt_DX_MAKEINDEX"; then
17688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17689$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17690else
17691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17692$as_echo "no" >&6; }
17693fi
17694
17695  if test "x$ac_pt_DX_MAKEINDEX" = x; then
17696    DX_MAKEINDEX=""
17697  else
17698    case $cross_compiling:$ac_tool_warned in
17699yes:)
17700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17702ac_tool_warned=yes ;;
17703esac
17704    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17705  fi
17706else
17707  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17708fi
17709
17710if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17711    if test "xmakeindex" = "xdoxygen"; then
17712        as_fn_error $? "makeindex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17713    else
17714        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17715$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17716    fi
17717    DX_FLAG_ps=0
17718
17719fi
17720
17721
17722if test -n "$ac_tool_prefix"; then
17723  # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17724set dummy ${ac_tool_prefix}dvips; ac_word=$2
17725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17726$as_echo_n "checking for $ac_word... " >&6; }
17727if ${ac_cv_path_DX_DVIPS+:} false; then :
17728  $as_echo_n "(cached) " >&6
17729else
17730  case $DX_DVIPS in
17731  [\\/]* | ?:[\\/]*)
17732  ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17733  ;;
17734  *)
17735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17736for as_dir in $PATH
17737do
17738  IFS=$as_save_IFS
17739  test -z "$as_dir" && as_dir=.
17740    for ac_exec_ext in '' $ac_executable_extensions; do
17741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17742    ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17744    break 2
17745  fi
17746done
17747  done
17748IFS=$as_save_IFS
17749
17750  ;;
17751esac
17752fi
17753DX_DVIPS=$ac_cv_path_DX_DVIPS
17754if test -n "$DX_DVIPS"; then
17755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17756$as_echo "$DX_DVIPS" >&6; }
17757else
17758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17759$as_echo "no" >&6; }
17760fi
17761
17762
17763fi
17764if test -z "$ac_cv_path_DX_DVIPS"; then
17765  ac_pt_DX_DVIPS=$DX_DVIPS
17766  # Extract the first word of "dvips", so it can be a program name with args.
17767set dummy dvips; ac_word=$2
17768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17769$as_echo_n "checking for $ac_word... " >&6; }
17770if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17771  $as_echo_n "(cached) " >&6
17772else
17773  case $ac_pt_DX_DVIPS in
17774  [\\/]* | ?:[\\/]*)
17775  ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17776  ;;
17777  *)
17778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17779for as_dir in $PATH
17780do
17781  IFS=$as_save_IFS
17782  test -z "$as_dir" && as_dir=.
17783    for ac_exec_ext in '' $ac_executable_extensions; do
17784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17785    ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17787    break 2
17788  fi
17789done
17790  done
17791IFS=$as_save_IFS
17792
17793  ;;
17794esac
17795fi
17796ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17797if test -n "$ac_pt_DX_DVIPS"; then
17798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17799$as_echo "$ac_pt_DX_DVIPS" >&6; }
17800else
17801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17802$as_echo "no" >&6; }
17803fi
17804
17805  if test "x$ac_pt_DX_DVIPS" = x; then
17806    DX_DVIPS=""
17807  else
17808    case $cross_compiling:$ac_tool_warned in
17809yes:)
17810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17812ac_tool_warned=yes ;;
17813esac
17814    DX_DVIPS=$ac_pt_DX_DVIPS
17815  fi
17816else
17817  DX_DVIPS="$ac_cv_path_DX_DVIPS"
17818fi
17819
17820if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17821    if test "xdvips" = "xdoxygen"; then
17822        as_fn_error $? "dvips not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17823    else
17824        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17825$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17826    fi
17827    DX_FLAG_ps=0
17828
17829fi
17830
17831
17832if test -n "$ac_tool_prefix"; then
17833  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17834set dummy ${ac_tool_prefix}egrep; ac_word=$2
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17836$as_echo_n "checking for $ac_word... " >&6; }
17837if ${ac_cv_path_DX_EGREP+:} false; then :
17838  $as_echo_n "(cached) " >&6
17839else
17840  case $DX_EGREP in
17841  [\\/]* | ?:[\\/]*)
17842  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17843  ;;
17844  *)
17845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17846for as_dir in $PATH
17847do
17848  IFS=$as_save_IFS
17849  test -z "$as_dir" && as_dir=.
17850    for ac_exec_ext in '' $ac_executable_extensions; do
17851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17852    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17854    break 2
17855  fi
17856done
17857  done
17858IFS=$as_save_IFS
17859
17860  ;;
17861esac
17862fi
17863DX_EGREP=$ac_cv_path_DX_EGREP
17864if test -n "$DX_EGREP"; then
17865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17866$as_echo "$DX_EGREP" >&6; }
17867else
17868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17869$as_echo "no" >&6; }
17870fi
17871
17872
17873fi
17874if test -z "$ac_cv_path_DX_EGREP"; then
17875  ac_pt_DX_EGREP=$DX_EGREP
17876  # Extract the first word of "egrep", so it can be a program name with args.
17877set dummy egrep; ac_word=$2
17878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17879$as_echo_n "checking for $ac_word... " >&6; }
17880if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17881  $as_echo_n "(cached) " >&6
17882else
17883  case $ac_pt_DX_EGREP in
17884  [\\/]* | ?:[\\/]*)
17885  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17886  ;;
17887  *)
17888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17889for as_dir in $PATH
17890do
17891  IFS=$as_save_IFS
17892  test -z "$as_dir" && as_dir=.
17893    for ac_exec_ext in '' $ac_executable_extensions; do
17894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17895    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17897    break 2
17898  fi
17899done
17900  done
17901IFS=$as_save_IFS
17902
17903  ;;
17904esac
17905fi
17906ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17907if test -n "$ac_pt_DX_EGREP"; then
17908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17909$as_echo "$ac_pt_DX_EGREP" >&6; }
17910else
17911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912$as_echo "no" >&6; }
17913fi
17914
17915  if test "x$ac_pt_DX_EGREP" = x; then
17916    DX_EGREP=""
17917  else
17918    case $cross_compiling:$ac_tool_warned in
17919yes:)
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17922ac_tool_warned=yes ;;
17923esac
17924    DX_EGREP=$ac_pt_DX_EGREP
17925  fi
17926else
17927  DX_EGREP="$ac_cv_path_DX_EGREP"
17928fi
17929
17930if test "$DX_FLAG_ps$DX_EGREP" = 1; then
17931    if test "xegrep" = "xdoxygen"; then
17932        as_fn_error $? "egrep not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17933    else
17934        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
17935$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
17936    fi
17937    DX_FLAG_ps=0
17938
17939fi
17940
17941    :
17942fi
17943if test "$DX_FLAG_ps" = 1; then
17944
17945    :
17946else
17947
17948    :
17949fi
17950
17951
17952# PDF file generation:
17953
17954
17955
17956    # Check whether --enable-doxygen-pdf was given.
17957if test "${enable_doxygen_pdf+set}" = set; then :
17958  enableval=$enable_doxygen_pdf;
17959case "$enableval" in
17960#(
17961y|Y|yes|Yes|YES)
17962    DX_FLAG_pdf=1
17963
17964
17965test "$DX_FLAG_doc" = "1" \
17966|| as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5
17967
17968;; #(
17969n|N|no|No|NO)
17970    DX_FLAG_pdf=0
17971
17972;; #(
17973*)
17974    as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17975;;
17976esac
17977
17978else
17979
17980DX_FLAG_pdf=0
17981
17982
17983test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17984
17985
17986
17987fi
17988
17989if test "$DX_FLAG_pdf" = 1; then
17990
17991if test -n "$ac_tool_prefix"; then
17992  # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17993set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17995$as_echo_n "checking for $ac_word... " >&6; }
17996if ${ac_cv_path_DX_PDFLATEX+:} false; then :
17997  $as_echo_n "(cached) " >&6
17998else
17999  case $DX_PDFLATEX in
18000  [\\/]* | ?:[\\/]*)
18001  ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
18002  ;;
18003  *)
18004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18005for as_dir in $PATH
18006do
18007  IFS=$as_save_IFS
18008  test -z "$as_dir" && as_dir=.
18009    for ac_exec_ext in '' $ac_executable_extensions; do
18010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18011    ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18013    break 2
18014  fi
18015done
18016  done
18017IFS=$as_save_IFS
18018
18019  ;;
18020esac
18021fi
18022DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
18023if test -n "$DX_PDFLATEX"; then
18024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
18025$as_echo "$DX_PDFLATEX" >&6; }
18026else
18027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18028$as_echo "no" >&6; }
18029fi
18030
18031
18032fi
18033if test -z "$ac_cv_path_DX_PDFLATEX"; then
18034  ac_pt_DX_PDFLATEX=$DX_PDFLATEX
18035  # Extract the first word of "pdflatex", so it can be a program name with args.
18036set dummy pdflatex; ac_word=$2
18037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18038$as_echo_n "checking for $ac_word... " >&6; }
18039if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
18040  $as_echo_n "(cached) " >&6
18041else
18042  case $ac_pt_DX_PDFLATEX in
18043  [\\/]* | ?:[\\/]*)
18044  ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
18045  ;;
18046  *)
18047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18048for as_dir in $PATH
18049do
18050  IFS=$as_save_IFS
18051  test -z "$as_dir" && as_dir=.
18052    for ac_exec_ext in '' $ac_executable_extensions; do
18053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18054    ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18056    break 2
18057  fi
18058done
18059  done
18060IFS=$as_save_IFS
18061
18062  ;;
18063esac
18064fi
18065ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
18066if test -n "$ac_pt_DX_PDFLATEX"; then
18067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
18068$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
18069else
18070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18071$as_echo "no" >&6; }
18072fi
18073
18074  if test "x$ac_pt_DX_PDFLATEX" = x; then
18075    DX_PDFLATEX=""
18076  else
18077    case $cross_compiling:$ac_tool_warned in
18078yes:)
18079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18081ac_tool_warned=yes ;;
18082esac
18083    DX_PDFLATEX=$ac_pt_DX_PDFLATEX
18084  fi
18085else
18086  DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
18087fi
18088
18089if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
18090    if test "xpdflatex" = "xdoxygen"; then
18091        as_fn_error $? "pdflatex not found - will not generate doxygen PDF documentation" "$LINENO" 5
18092    else
18093        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
18094$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
18095    fi
18096    DX_FLAG_pdf=0
18097
18098fi
18099
18100
18101if test -n "$ac_tool_prefix"; then
18102  # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18103set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18105$as_echo_n "checking for $ac_word... " >&6; }
18106if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18107  $as_echo_n "(cached) " >&6
18108else
18109  case $DX_MAKEINDEX in
18110  [\\/]* | ?:[\\/]*)
18111  ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18112  ;;
18113  *)
18114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115for as_dir in $PATH
18116do
18117  IFS=$as_save_IFS
18118  test -z "$as_dir" && as_dir=.
18119    for ac_exec_ext in '' $ac_executable_extensions; do
18120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18121    ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18123    break 2
18124  fi
18125done
18126  done
18127IFS=$as_save_IFS
18128
18129  ;;
18130esac
18131fi
18132DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18133if test -n "$DX_MAKEINDEX"; then
18134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18135$as_echo "$DX_MAKEINDEX" >&6; }
18136else
18137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138$as_echo "no" >&6; }
18139fi
18140
18141
18142fi
18143if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18144  ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18145  # Extract the first word of "makeindex", so it can be a program name with args.
18146set dummy makeindex; ac_word=$2
18147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18148$as_echo_n "checking for $ac_word... " >&6; }
18149if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18150  $as_echo_n "(cached) " >&6
18151else
18152  case $ac_pt_DX_MAKEINDEX in
18153  [\\/]* | ?:[\\/]*)
18154  ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18155  ;;
18156  *)
18157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158for as_dir in $PATH
18159do
18160  IFS=$as_save_IFS
18161  test -z "$as_dir" && as_dir=.
18162    for ac_exec_ext in '' $ac_executable_extensions; do
18163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164    ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18166    break 2
18167  fi
18168done
18169  done
18170IFS=$as_save_IFS
18171
18172  ;;
18173esac
18174fi
18175ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18176if test -n "$ac_pt_DX_MAKEINDEX"; then
18177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18178$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18179else
18180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18181$as_echo "no" >&6; }
18182fi
18183
18184  if test "x$ac_pt_DX_MAKEINDEX" = x; then
18185    DX_MAKEINDEX=""
18186  else
18187    case $cross_compiling:$ac_tool_warned in
18188yes:)
18189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18191ac_tool_warned=yes ;;
18192esac
18193    DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18194  fi
18195else
18196  DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18197fi
18198
18199if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18200    if test "xmakeindex" = "xdoxygen"; then
18201        as_fn_error $? "makeindex not found - will not generate doxygen PDF documentation" "$LINENO" 5
18202    else
18203        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18204$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18205    fi
18206    DX_FLAG_pdf=0
18207
18208fi
18209
18210
18211if test -n "$ac_tool_prefix"; then
18212  # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18213set dummy ${ac_tool_prefix}egrep; ac_word=$2
18214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18215$as_echo_n "checking for $ac_word... " >&6; }
18216if ${ac_cv_path_DX_EGREP+:} false; then :
18217  $as_echo_n "(cached) " >&6
18218else
18219  case $DX_EGREP in
18220  [\\/]* | ?:[\\/]*)
18221  ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18222  ;;
18223  *)
18224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18225for as_dir in $PATH
18226do
18227  IFS=$as_save_IFS
18228  test -z "$as_dir" && as_dir=.
18229    for ac_exec_ext in '' $ac_executable_extensions; do
18230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18231    ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18233    break 2
18234  fi
18235done
18236  done
18237IFS=$as_save_IFS
18238
18239  ;;
18240esac
18241fi
18242DX_EGREP=$ac_cv_path_DX_EGREP
18243if test -n "$DX_EGREP"; then
18244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18245$as_echo "$DX_EGREP" >&6; }
18246else
18247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18248$as_echo "no" >&6; }
18249fi
18250
18251
18252fi
18253if test -z "$ac_cv_path_DX_EGREP"; then
18254  ac_pt_DX_EGREP=$DX_EGREP
18255  # Extract the first word of "egrep", so it can be a program name with args.
18256set dummy egrep; ac_word=$2
18257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18258$as_echo_n "checking for $ac_word... " >&6; }
18259if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18260  $as_echo_n "(cached) " >&6
18261else
18262  case $ac_pt_DX_EGREP in
18263  [\\/]* | ?:[\\/]*)
18264  ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18265  ;;
18266  *)
18267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18268for as_dir in $PATH
18269do
18270  IFS=$as_save_IFS
18271  test -z "$as_dir" && as_dir=.
18272    for ac_exec_ext in '' $ac_executable_extensions; do
18273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18274    ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18276    break 2
18277  fi
18278done
18279  done
18280IFS=$as_save_IFS
18281
18282  ;;
18283esac
18284fi
18285ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18286if test -n "$ac_pt_DX_EGREP"; then
18287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18288$as_echo "$ac_pt_DX_EGREP" >&6; }
18289else
18290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291$as_echo "no" >&6; }
18292fi
18293
18294  if test "x$ac_pt_DX_EGREP" = x; then
18295    DX_EGREP=""
18296  else
18297    case $cross_compiling:$ac_tool_warned in
18298yes:)
18299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18301ac_tool_warned=yes ;;
18302esac
18303    DX_EGREP=$ac_pt_DX_EGREP
18304  fi
18305else
18306  DX_EGREP="$ac_cv_path_DX_EGREP"
18307fi
18308
18309if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18310    if test "xegrep" = "xdoxygen"; then
18311        as_fn_error $? "egrep not found - will not generate doxygen PDF documentation" "$LINENO" 5
18312    else
18313        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18314$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18315    fi
18316    DX_FLAG_pdf=0
18317
18318fi
18319
18320    :
18321fi
18322if test "$DX_FLAG_pdf" = 1; then
18323
18324    :
18325else
18326
18327    :
18328fi
18329
18330
18331# LaTeX generation for PS and/or PDF:
18332if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18333    DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18334GENERATE_LATEX=YES
18335
18336else
18337    DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18338GENERATE_LATEX=NO
18339
18340fi
18341
18342# Paper size for PS and/or PDF:
18343
18344case "$DOXYGEN_PAPER_SIZE" in
18345#(
18346"")
18347    DOXYGEN_PAPER_SIZE=""
18348
18349;; #(
18350a4wide|a4|letter|legal|executive)
18351    DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18352PAPER_SIZE=$DOXYGEN_PAPER_SIZE
18353
18354;; #(
18355*)
18356    as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18357;;
18358esac
18359
18360# Rules:
18361if test $DX_FLAG_html -eq 1; then :
18362  DX_SNIPPET_html="## ------------------------------- ##
18363## Rules specific for HTML output. ##
18364## ------------------------------- ##
18365
18366DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\
18367                \$(DX_DOCDIR)/html
18368
18369"
18370else
18371  DX_SNIPPET_html=""
18372fi
18373if test $DX_FLAG_chi -eq 1; then :
18374  DX_SNIPPET_chi="
18375DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\
18376               \$(DX_DOCDIR)/\$(PACKAGE).chi"
18377else
18378  DX_SNIPPET_chi=""
18379fi
18380if test $DX_FLAG_chm -eq 1; then :
18381  DX_SNIPPET_chm="## ------------------------------ ##
18382## Rules specific for CHM output. ##
18383## ------------------------------ ##
18384
18385DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\
18386               \$(DX_DOCDIR)/chm\
18387${DX_SNIPPET_chi}
18388
18389"
18390else
18391  DX_SNIPPET_chm=""
18392fi
18393if test $DX_FLAG_man -eq 1; then :
18394  DX_SNIPPET_man="## ------------------------------ ##
18395## Rules specific for MAN output. ##
18396## ------------------------------ ##
18397
18398DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\
18399               \$(DX_DOCDIR)/man
18400
18401"
18402else
18403  DX_SNIPPET_man=""
18404fi
18405if test $DX_FLAG_rtf -eq 1; then :
18406  DX_SNIPPET_rtf="## ------------------------------ ##
18407## Rules specific for RTF output. ##
18408## ------------------------------ ##
18409
18410DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\
18411               \$(DX_DOCDIR)/rtf
18412
18413"
18414else
18415  DX_SNIPPET_rtf=""
18416fi
18417if test $DX_FLAG_xml -eq 1; then :
18418  DX_SNIPPET_xml="## ------------------------------ ##
18419## Rules specific for XML output. ##
18420## ------------------------------ ##
18421
18422DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\
18423               \$(DX_DOCDIR)/xml
18424
18425"
18426else
18427  DX_SNIPPET_xml=""
18428fi
18429if test $DX_FLAG_ps -eq 1; then :
18430  DX_SNIPPET_ps="## ----------------------------- ##
18431## Rules specific for PS output. ##
18432## ----------------------------- ##
18433
18434DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\
18435              \$(DX_DOCDIR)/\$(PACKAGE).ps
18436
18437DX_PS_GOAL = doxygen-ps
18438
18439doxygen-ps: \$(DX_CLEAN_PS)
18440
18441\$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag
18442	\$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
18443	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
18444	\$(DX_LATEX) refman.tex; \\
18445	\$(DX_MAKEINDEX) refman.idx; \\
18446	\$(DX_LATEX) refman.tex; \\
18447	countdown=5; \\
18448	while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
18449	                  refman.log > /dev/null 2>&1 \\
18450	   && test \$\$countdown -gt 0; do \\
18451	    \$(DX_LATEX) refman.tex; \\
18452            countdown=\`expr \$\$countdown - 1\`; \\
18453	done; \\
18454	\$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi
18455
18456"
18457else
18458  DX_SNIPPET_ps=""
18459fi
18460if test $DX_FLAG_pdf -eq 1; then :
18461  DX_SNIPPET_pdf="## ------------------------------ ##
18462## Rules specific for PDF output. ##
18463## ------------------------------ ##
18464
18465DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\
18466               \$(DX_DOCDIR)/\$(PACKAGE).pdf
18467
18468DX_PDF_GOAL = doxygen-pdf
18469
18470doxygen-pdf: \$(DX_CLEAN_PDF)
18471
18472\$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag
18473	\$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
18474	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
18475	\$(DX_PDFLATEX) refman.tex; \\
18476	\$(DX_MAKEINDEX) refman.idx; \\
18477	\$(DX_PDFLATEX) refman.tex; \\
18478	countdown=5; \\
18479	while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
18480	                  refman.log > /dev/null 2>&1 \\
18481	   && test \$\$countdown -gt 0; do \\
18482	    \$(DX_PDFLATEX) refman.tex; \\
18483	    countdown=\`expr \$\$countdown - 1\`; \\
18484	done; \\
18485	mv refman.pdf ../\$(PACKAGE).pdf
18486
18487"
18488else
18489  DX_SNIPPET_pdf=""
18490fi
18491if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1; then :
18492  DX_SNIPPET_latex="## ------------------------------------------------- ##
18493## Rules specific for LaTeX (shared for PS and PDF). ##
18494## ------------------------------------------------- ##
18495
18496DX_V_LATEX = \$(_DX_v_LATEX_\$(V))
18497_DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY))
18498_DX_v_LATEX_0 = @echo \"  LATEX \" \$@;
18499
18500DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\
18501                 \$(DX_DOCDIR)/latex
18502
18503"
18504else
18505  DX_SNIPPET_latex=""
18506fi
18507
18508if test $DX_FLAG_doc -eq 1; then :
18509  DX_SNIPPET_doc="## --------------------------------- ##
18510## Format-independent Doxygen rules. ##
18511## --------------------------------- ##
18512
18513${DX_SNIPPET_html}\
18514${DX_SNIPPET_chm}\
18515${DX_SNIPPET_man}\
18516${DX_SNIPPET_rtf}\
18517${DX_SNIPPET_xml}\
18518${DX_SNIPPET_ps}\
18519${DX_SNIPPET_pdf}\
18520${DX_SNIPPET_latex}\
18521DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V))
18522_DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY))
18523_DX_v_DXGEN_0 = @echo \"  DXGEN \" \$<;
18524
18525.PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18526
18527.INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18528
18529doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag
18530
18531doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18532
18533\$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS)
18534	\$(A""M_V_at)rm -rf \$(DX_DOCDIR)
18535	\$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG)
18536	\$(A""M_V_at)echo Timestamp >\$@
18537
18538DX_CLEANFILES = \\
18539	\$(DX_DOCDIR)/doxygen_sqlite3.db \\
18540	\$(DX_DOCDIR)/\$(PACKAGE).tag \\
18541	-r \\
18542	\$(DX_CLEAN_HTML) \\
18543	\$(DX_CLEAN_CHM) \\
18544	\$(DX_CLEAN_CHI) \\
18545	\$(DX_CLEAN_MAN) \\
18546	\$(DX_CLEAN_RTF) \\
18547	\$(DX_CLEAN_XML) \\
18548	\$(DX_CLEAN_PS) \\
18549	\$(DX_CLEAN_PDF) \\
18550	\$(DX_CLEAN_LATEX)
18551DX_INSTALL_DOCS = \\
18552	\$(DX_CLEAN_HTML) \\
18553	\$(DX_CLEAN_CHM) \\
18554	\$(DX_CLEAN_CHI) \\
18555	\$(DX_CLEAN_RTF) \\
18556	\$(DX_CLEAN_XML) \\
18557	\$(DX_CLEAN_PS) \\
18558	\$(DX_CLEAN_PDF) \\
18559	\$(DX_CLEAN_LATEX)
18560    "
18561else
18562  DX_SNIPPET_doc=""
18563fi
18564DX_RULES="${DX_SNIPPET_doc}"
18565
18566
18567#For debugging:
18568#echo DX_FLAG_doc=$DX_FLAG_doc
18569#echo DX_FLAG_dot=$DX_FLAG_dot
18570#echo DX_FLAG_man=$DX_FLAG_man
18571#echo DX_FLAG_html=$DX_FLAG_html
18572#echo DX_FLAG_chm=$DX_FLAG_chm
18573#echo DX_FLAG_chi=$DX_FLAG_chi
18574#echo DX_FLAG_rtf=$DX_FLAG_rtf
18575#echo DX_FLAG_xml=$DX_FLAG_xml
18576#echo DX_FLAG_pdf=$DX_FLAG_pdf
18577#echo DX_FLAG_ps=$DX_FLAG_ps
18578#echo DX_ENV=$DX_ENV
18579
18580
18581 if test "$DX_FLAG_doc" = "1"; then
18582  ENABLE_DOXYGEN_TRUE=
18583  ENABLE_DOXYGEN_FALSE='#'
18584else
18585  ENABLE_DOXYGEN_TRUE='#'
18586  ENABLE_DOXYGEN_FALSE=
18587fi
18588
18589 if test "$DX_FLAG_man" = "1"; then
18590  ENABLE_DOXYGEN_MAN_TRUE=
18591  ENABLE_DOXYGEN_MAN_FALSE='#'
18592else
18593  ENABLE_DOXYGEN_MAN_TRUE='#'
18594  ENABLE_DOXYGEN_MAN_FALSE=
18595fi
18596
18597
18598ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc"
18599
18600ac_config_files="$ac_config_files Makefile"
18601
18602cat >confcache <<\_ACEOF
18603# This file is a shell script that caches the results of configure
18604# tests run on this system so they can be shared between configure
18605# scripts and configure runs, see configure's option --config-cache.
18606# It is not useful on other systems.  If it contains results you don't
18607# want to keep, you may remove or edit it.
18608#
18609# config.status only pays attention to the cache file if you give it
18610# the --recheck option to rerun configure.
18611#
18612# `ac_cv_env_foo' variables (set or unset) will be overridden when
18613# loading this file, other *unset* `ac_cv_foo' will be assigned the
18614# following values.
18615
18616_ACEOF
18617
18618# The following way of writing the cache mishandles newlines in values,
18619# but we know of no workaround that is simple, portable, and efficient.
18620# So, we kill variables containing newlines.
18621# Ultrix sh set writes to stderr and can't be redirected directly,
18622# and sets the high bit in the cache file unless we assign to the vars.
18623(
18624  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18625    eval ac_val=\$$ac_var
18626    case $ac_val in #(
18627    *${as_nl}*)
18628      case $ac_var in #(
18629      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18630$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18631      esac
18632      case $ac_var in #(
18633      _ | IFS | as_nl) ;; #(
18634      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18635      *) { eval $ac_var=; unset $ac_var;} ;;
18636      esac ;;
18637    esac
18638  done
18639
18640  (set) 2>&1 |
18641    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18642    *${as_nl}ac_space=\ *)
18643      # `set' does not quote correctly, so add quotes: double-quote
18644      # substitution turns \\\\ into \\, and sed turns \\ into \.
18645      sed -n \
18646	"s/'/'\\\\''/g;
18647	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18648      ;; #(
18649    *)
18650      # `set' quotes correctly as required by POSIX, so do not add quotes.
18651      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18652      ;;
18653    esac |
18654    sort
18655) |
18656  sed '
18657     /^ac_cv_env_/b end
18658     t clear
18659     :clear
18660     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18661     t end
18662     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18663     :end' >>confcache
18664if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18665  if test -w "$cache_file"; then
18666    if test "x$cache_file" != "x/dev/null"; then
18667      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18668$as_echo "$as_me: updating cache $cache_file" >&6;}
18669      if test ! -f "$cache_file" || test -h "$cache_file"; then
18670	cat confcache >"$cache_file"
18671      else
18672        case $cache_file in #(
18673        */* | ?:*)
18674	  mv -f confcache "$cache_file"$$ &&
18675	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18676        *)
18677	  mv -f confcache "$cache_file" ;;
18678	esac
18679      fi
18680    fi
18681  else
18682    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18683$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18684  fi
18685fi
18686rm -f confcache
18687
18688test "x$prefix" = xNONE && prefix=$ac_default_prefix
18689# Let make expand exec_prefix.
18690test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18691
18692DEFS=-DHAVE_CONFIG_H
18693
18694ac_libobjs=
18695ac_ltlibobjs=
18696U=
18697for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18698  # 1. Remove the extension, and $U if already installed.
18699  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18700  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18701  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18702  #    will be set to the directory where LIBOBJS objects are built.
18703  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18704  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18705done
18706LIBOBJS=$ac_libobjs
18707
18708LTLIBOBJS=$ac_ltlibobjs
18709
18710
18711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18712$as_echo_n "checking that generated files are newer than configure... " >&6; }
18713   if test -n "$am_sleep_pid"; then
18714     # Hide warnings about reused PIDs.
18715     wait $am_sleep_pid 2>/dev/null
18716   fi
18717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18718$as_echo "done" >&6; }
18719 if test -n "$EXEEXT"; then
18720  am__EXEEXT_TRUE=
18721  am__EXEEXT_FALSE='#'
18722else
18723  am__EXEEXT_TRUE='#'
18724  am__EXEEXT_FALSE=
18725fi
18726
18727if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18728  as_fn_error $? "conditional \"AMDEP\" was never defined.
18729Usually this means the macro was only invoked conditionally." "$LINENO" 5
18730fi
18731if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18732  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18733Usually this means the macro was only invoked conditionally." "$LINENO" 5
18734fi
18735if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
18736  as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
18737Usually this means the macro was only invoked conditionally." "$LINENO" 5
18738fi
18739if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
18740  as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
18741Usually this means the macro was only invoked conditionally." "$LINENO" 5
18742fi
18743if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
18744  as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
18745Usually this means the macro was only invoked conditionally." "$LINENO" 5
18746fi
18747if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
18748  as_fn_error $? "conditional \"OPENSSL\" was never defined.
18749Usually this means the macro was only invoked conditionally." "$LINENO" 5
18750fi
18751if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
18752  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
18753Usually this means the macro was only invoked conditionally." "$LINENO" 5
18754fi
18755if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
18756  as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
18757Usually this means the macro was only invoked conditionally." "$LINENO" 5
18758fi
18759if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then
18760  as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined.
18761Usually this means the macro was only invoked conditionally." "$LINENO" 5
18762fi
18763if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
18764  as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
18765Usually this means the macro was only invoked conditionally." "$LINENO" 5
18766fi
18767if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
18768  as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
18769Usually this means the macro was only invoked conditionally." "$LINENO" 5
18770fi
18771if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
18772  as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
18773Usually this means the macro was only invoked conditionally." "$LINENO" 5
18774fi
18775if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
18776  as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
18777Usually this means the macro was only invoked conditionally." "$LINENO" 5
18778fi
18779if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
18780  as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
18781Usually this means the macro was only invoked conditionally." "$LINENO" 5
18782fi
18783if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
18784  as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
18785Usually this means the macro was only invoked conditionally." "$LINENO" 5
18786fi
18787if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
18788  as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
18789Usually this means the macro was only invoked conditionally." "$LINENO" 5
18790fi
18791if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
18792  as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
18793Usually this means the macro was only invoked conditionally." "$LINENO" 5
18794fi
18795if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
18796  as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
18797Usually this means the macro was only invoked conditionally." "$LINENO" 5
18798fi
18799if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
18800  as_fn_error $? "conditional \"THREADS\" was never defined.
18801Usually this means the macro was only invoked conditionally." "$LINENO" 5
18802fi
18803if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
18804  as_fn_error $? "conditional \"PTHREADS\" was never defined.
18805Usually this means the macro was only invoked conditionally." "$LINENO" 5
18806fi
18807if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
18808  as_fn_error $? "conditional \"OPENSSL\" was never defined.
18809Usually this means the macro was only invoked conditionally." "$LINENO" 5
18810fi
18811if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
18812  as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
18813Usually this means the macro was only invoked conditionally." "$LINENO" 5
18814fi
18815if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
18816  as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
18817Usually this means the macro was only invoked conditionally." "$LINENO" 5
18818fi
18819if test -z "${ENABLE_DOXYGEN_MAN_TRUE}" && test -z "${ENABLE_DOXYGEN_MAN_FALSE}"; then
18820  as_fn_error $? "conditional \"ENABLE_DOXYGEN_MAN\" was never defined.
18821Usually this means the macro was only invoked conditionally." "$LINENO" 5
18822fi
18823
18824: "${CONFIG_STATUS=./config.status}"
18825ac_write_fail=0
18826ac_clean_files_save=$ac_clean_files
18827ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18828{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18829$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18830as_write_fail=0
18831cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18832#! $SHELL
18833# Generated by $as_me.
18834# Run this file to recreate the current configuration.
18835# Compiler output produced by configure, useful for debugging
18836# configure, is in config.log if it exists.
18837
18838debug=false
18839ac_cs_recheck=false
18840ac_cs_silent=false
18841
18842SHELL=\${CONFIG_SHELL-$SHELL}
18843export SHELL
18844_ASEOF
18845cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18846## -------------------- ##
18847## M4sh Initialization. ##
18848## -------------------- ##
18849
18850# Be more Bourne compatible
18851DUALCASE=1; export DUALCASE # for MKS sh
18852if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18853  emulate sh
18854  NULLCMD=:
18855  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18856  # is contrary to our usage.  Disable this feature.
18857  alias -g '${1+"$@"}'='"$@"'
18858  setopt NO_GLOB_SUBST
18859else
18860  case `(set -o) 2>/dev/null` in #(
18861  *posix*) :
18862    set -o posix ;; #(
18863  *) :
18864     ;;
18865esac
18866fi
18867
18868
18869as_nl='
18870'
18871export as_nl
18872# Printing a long string crashes Solaris 7 /usr/bin/printf.
18873as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18874as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18875as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18876# Prefer a ksh shell builtin over an external printf program on Solaris,
18877# but without wasting forks for bash or zsh.
18878if test -z "$BASH_VERSION$ZSH_VERSION" \
18879    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18880  as_echo='print -r --'
18881  as_echo_n='print -rn --'
18882elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18883  as_echo='printf %s\n'
18884  as_echo_n='printf %s'
18885else
18886  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18887    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18888    as_echo_n='/usr/ucb/echo -n'
18889  else
18890    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18891    as_echo_n_body='eval
18892      arg=$1;
18893      case $arg in #(
18894      *"$as_nl"*)
18895	expr "X$arg" : "X\\(.*\\)$as_nl";
18896	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18897      esac;
18898      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18899    '
18900    export as_echo_n_body
18901    as_echo_n='sh -c $as_echo_n_body as_echo'
18902  fi
18903  export as_echo_body
18904  as_echo='sh -c $as_echo_body as_echo'
18905fi
18906
18907# The user is always right.
18908if test "${PATH_SEPARATOR+set}" != set; then
18909  PATH_SEPARATOR=:
18910  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18911    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18912      PATH_SEPARATOR=';'
18913  }
18914fi
18915
18916
18917# IFS
18918# We need space, tab and new line, in precisely that order.  Quoting is
18919# there to prevent editors from complaining about space-tab.
18920# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18921# splitting by setting IFS to empty value.)
18922IFS=" ""	$as_nl"
18923
18924# Find who we are.  Look in the path if we contain no directory separator.
18925as_myself=
18926case $0 in #((
18927  *[\\/]* ) as_myself=$0 ;;
18928  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18929for as_dir in $PATH
18930do
18931  IFS=$as_save_IFS
18932  test -z "$as_dir" && as_dir=.
18933    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18934  done
18935IFS=$as_save_IFS
18936
18937     ;;
18938esac
18939# We did not find ourselves, most probably we were run as `sh COMMAND'
18940# in which case we are not to be found in the path.
18941if test "x$as_myself" = x; then
18942  as_myself=$0
18943fi
18944if test ! -f "$as_myself"; then
18945  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18946  exit 1
18947fi
18948
18949# Unset variables that we do not need and which cause bugs (e.g. in
18950# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18951# suppresses any "Segmentation fault" message there.  '((' could
18952# trigger a bug in pdksh 5.2.14.
18953for as_var in BASH_ENV ENV MAIL MAILPATH
18954do eval test x\${$as_var+set} = xset \
18955  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18956done
18957PS1='$ '
18958PS2='> '
18959PS4='+ '
18960
18961# NLS nuisances.
18962LC_ALL=C
18963export LC_ALL
18964LANGUAGE=C
18965export LANGUAGE
18966
18967# CDPATH.
18968(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18969
18970
18971# as_fn_error STATUS ERROR [LINENO LOG_FD]
18972# ----------------------------------------
18973# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18974# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18975# script with STATUS, using 1 if that was 0.
18976as_fn_error ()
18977{
18978  as_status=$1; test $as_status -eq 0 && as_status=1
18979  if test "$4"; then
18980    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18981    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18982  fi
18983  $as_echo "$as_me: error: $2" >&2
18984  as_fn_exit $as_status
18985} # as_fn_error
18986
18987
18988# as_fn_set_status STATUS
18989# -----------------------
18990# Set $? to STATUS, without forking.
18991as_fn_set_status ()
18992{
18993  return $1
18994} # as_fn_set_status
18995
18996# as_fn_exit STATUS
18997# -----------------
18998# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18999as_fn_exit ()
19000{
19001  set +e
19002  as_fn_set_status $1
19003  exit $1
19004} # as_fn_exit
19005
19006# as_fn_unset VAR
19007# ---------------
19008# Portably unset VAR.
19009as_fn_unset ()
19010{
19011  { eval $1=; unset $1;}
19012}
19013as_unset=as_fn_unset
19014# as_fn_append VAR VALUE
19015# ----------------------
19016# Append the text in VALUE to the end of the definition contained in VAR. Take
19017# advantage of any shell optimizations that allow amortized linear growth over
19018# repeated appends, instead of the typical quadratic growth present in naive
19019# implementations.
19020if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19021  eval 'as_fn_append ()
19022  {
19023    eval $1+=\$2
19024  }'
19025else
19026  as_fn_append ()
19027  {
19028    eval $1=\$$1\$2
19029  }
19030fi # as_fn_append
19031
19032# as_fn_arith ARG...
19033# ------------------
19034# Perform arithmetic evaluation on the ARGs, and store the result in the
19035# global $as_val. Take advantage of shells that can avoid forks. The arguments
19036# must be portable across $(()) and expr.
19037if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19038  eval 'as_fn_arith ()
19039  {
19040    as_val=$(( $* ))
19041  }'
19042else
19043  as_fn_arith ()
19044  {
19045    as_val=`expr "$@" || test $? -eq 1`
19046  }
19047fi # as_fn_arith
19048
19049
19050if expr a : '\(a\)' >/dev/null 2>&1 &&
19051   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19052  as_expr=expr
19053else
19054  as_expr=false
19055fi
19056
19057if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19058  as_basename=basename
19059else
19060  as_basename=false
19061fi
19062
19063if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19064  as_dirname=dirname
19065else
19066  as_dirname=false
19067fi
19068
19069as_me=`$as_basename -- "$0" ||
19070$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19071	 X"$0" : 'X\(//\)$' \| \
19072	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19073$as_echo X/"$0" |
19074    sed '/^.*\/\([^/][^/]*\)\/*$/{
19075	    s//\1/
19076	    q
19077	  }
19078	  /^X\/\(\/\/\)$/{
19079	    s//\1/
19080	    q
19081	  }
19082	  /^X\/\(\/\).*/{
19083	    s//\1/
19084	    q
19085	  }
19086	  s/.*/./; q'`
19087
19088# Avoid depending upon Character Ranges.
19089as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19090as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19091as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19092as_cr_digits='0123456789'
19093as_cr_alnum=$as_cr_Letters$as_cr_digits
19094
19095ECHO_C= ECHO_N= ECHO_T=
19096case `echo -n x` in #(((((
19097-n*)
19098  case `echo 'xy\c'` in
19099  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19100  xy)  ECHO_C='\c';;
19101  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19102       ECHO_T='	';;
19103  esac;;
19104*)
19105  ECHO_N='-n';;
19106esac
19107
19108rm -f conf$$ conf$$.exe conf$$.file
19109if test -d conf$$.dir; then
19110  rm -f conf$$.dir/conf$$.file
19111else
19112  rm -f conf$$.dir
19113  mkdir conf$$.dir 2>/dev/null
19114fi
19115if (echo >conf$$.file) 2>/dev/null; then
19116  if ln -s conf$$.file conf$$ 2>/dev/null; then
19117    as_ln_s='ln -s'
19118    # ... but there are two gotchas:
19119    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19120    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19121    # In both cases, we have to default to `cp -pR'.
19122    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19123      as_ln_s='cp -pR'
19124  elif ln conf$$.file conf$$ 2>/dev/null; then
19125    as_ln_s=ln
19126  else
19127    as_ln_s='cp -pR'
19128  fi
19129else
19130  as_ln_s='cp -pR'
19131fi
19132rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19133rmdir conf$$.dir 2>/dev/null
19134
19135
19136# as_fn_mkdir_p
19137# -------------
19138# Create "$as_dir" as a directory, including parents if necessary.
19139as_fn_mkdir_p ()
19140{
19141
19142  case $as_dir in #(
19143  -*) as_dir=./$as_dir;;
19144  esac
19145  test -d "$as_dir" || eval $as_mkdir_p || {
19146    as_dirs=
19147    while :; do
19148      case $as_dir in #(
19149      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19150      *) as_qdir=$as_dir;;
19151      esac
19152      as_dirs="'$as_qdir' $as_dirs"
19153      as_dir=`$as_dirname -- "$as_dir" ||
19154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19155	 X"$as_dir" : 'X\(//\)[^/]' \| \
19156	 X"$as_dir" : 'X\(//\)$' \| \
19157	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19158$as_echo X"$as_dir" |
19159    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19160	    s//\1/
19161	    q
19162	  }
19163	  /^X\(\/\/\)[^/].*/{
19164	    s//\1/
19165	    q
19166	  }
19167	  /^X\(\/\/\)$/{
19168	    s//\1/
19169	    q
19170	  }
19171	  /^X\(\/\).*/{
19172	    s//\1/
19173	    q
19174	  }
19175	  s/.*/./; q'`
19176      test -d "$as_dir" && break
19177    done
19178    test -z "$as_dirs" || eval "mkdir $as_dirs"
19179  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19180
19181
19182} # as_fn_mkdir_p
19183if mkdir -p . 2>/dev/null; then
19184  as_mkdir_p='mkdir -p "$as_dir"'
19185else
19186  test -d ./-p && rmdir ./-p
19187  as_mkdir_p=false
19188fi
19189
19190
19191# as_fn_executable_p FILE
19192# -----------------------
19193# Test if FILE is an executable regular file.
19194as_fn_executable_p ()
19195{
19196  test -f "$1" && test -x "$1"
19197} # as_fn_executable_p
19198as_test_x='test -x'
19199as_executable_p=as_fn_executable_p
19200
19201# Sed expression to map a string onto a valid CPP name.
19202as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19203
19204# Sed expression to map a string onto a valid variable name.
19205as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19206
19207
19208exec 6>&1
19209## ----------------------------------- ##
19210## Main body of $CONFIG_STATUS script. ##
19211## ----------------------------------- ##
19212_ASEOF
19213test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19214
19215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19216# Save the log message, to keep $0 and so on meaningful, and to
19217# report actual input values of CONFIG_FILES etc. instead of their
19218# values after options handling.
19219ac_log="
19220This file was extended by libevent $as_me 2.1.12-stable, which was
19221generated by GNU Autoconf 2.69.  Invocation command line was
19222
19223  CONFIG_FILES    = $CONFIG_FILES
19224  CONFIG_HEADERS  = $CONFIG_HEADERS
19225  CONFIG_LINKS    = $CONFIG_LINKS
19226  CONFIG_COMMANDS = $CONFIG_COMMANDS
19227  $ $0 $@
19228
19229on `(hostname || uname -n) 2>/dev/null | sed 1q`
19230"
19231
19232_ACEOF
19233
19234case $ac_config_files in *"
19235"*) set x $ac_config_files; shift; ac_config_files=$*;;
19236esac
19237
19238case $ac_config_headers in *"
19239"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19240esac
19241
19242
19243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244# Files that config.status was made for.
19245config_files="$ac_config_files"
19246config_headers="$ac_config_headers"
19247config_commands="$ac_config_commands"
19248
19249_ACEOF
19250
19251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19252ac_cs_usage="\
19253\`$as_me' instantiates files and other configuration actions
19254from templates according to the current configuration.  Unless the files
19255and actions are specified as TAGs, all are instantiated by default.
19256
19257Usage: $0 [OPTION]... [TAG]...
19258
19259  -h, --help       print this help, then exit
19260  -V, --version    print version number and configuration settings, then exit
19261      --config     print configuration, then exit
19262  -q, --quiet, --silent
19263                   do not print progress messages
19264  -d, --debug      don't remove temporary files
19265      --recheck    update $as_me by reconfiguring in the same conditions
19266      --file=FILE[:TEMPLATE]
19267                   instantiate the configuration file FILE
19268      --header=FILE[:TEMPLATE]
19269                   instantiate the configuration header FILE
19270
19271Configuration files:
19272$config_files
19273
19274Configuration headers:
19275$config_headers
19276
19277Configuration commands:
19278$config_commands
19279
19280Report bugs to the package provider."
19281
19282_ACEOF
19283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19284ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19285ac_cs_version="\\
19286libevent config.status 2.1.12-stable
19287configured by $0, generated by GNU Autoconf 2.69,
19288  with options \\"\$ac_cs_config\\"
19289
19290Copyright (C) 2012 Free Software Foundation, Inc.
19291This config.status script is free software; the Free Software Foundation
19292gives unlimited permission to copy, distribute and modify it."
19293
19294ac_pwd='$ac_pwd'
19295srcdir='$srcdir'
19296INSTALL='$INSTALL'
19297MKDIR_P='$MKDIR_P'
19298AWK='$AWK'
19299test -n "\$AWK" || AWK=awk
19300_ACEOF
19301
19302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19303# The default lists apply if the user does not specify any file.
19304ac_need_defaults=:
19305while test $# != 0
19306do
19307  case $1 in
19308  --*=?*)
19309    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19310    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19311    ac_shift=:
19312    ;;
19313  --*=)
19314    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19315    ac_optarg=
19316    ac_shift=:
19317    ;;
19318  *)
19319    ac_option=$1
19320    ac_optarg=$2
19321    ac_shift=shift
19322    ;;
19323  esac
19324
19325  case $ac_option in
19326  # Handling of the options.
19327  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19328    ac_cs_recheck=: ;;
19329  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19330    $as_echo "$ac_cs_version"; exit ;;
19331  --config | --confi | --conf | --con | --co | --c )
19332    $as_echo "$ac_cs_config"; exit ;;
19333  --debug | --debu | --deb | --de | --d | -d )
19334    debug=: ;;
19335  --file | --fil | --fi | --f )
19336    $ac_shift
19337    case $ac_optarg in
19338    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19339    '') as_fn_error $? "missing file argument" ;;
19340    esac
19341    as_fn_append CONFIG_FILES " '$ac_optarg'"
19342    ac_need_defaults=false;;
19343  --header | --heade | --head | --hea )
19344    $ac_shift
19345    case $ac_optarg in
19346    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19347    esac
19348    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19349    ac_need_defaults=false;;
19350  --he | --h)
19351    # Conflict between --help and --header
19352    as_fn_error $? "ambiguous option: \`$1'
19353Try \`$0 --help' for more information.";;
19354  --help | --hel | -h )
19355    $as_echo "$ac_cs_usage"; exit ;;
19356  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19357  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19358    ac_cs_silent=: ;;
19359
19360  # This is an error.
19361  -*) as_fn_error $? "unrecognized option: \`$1'
19362Try \`$0 --help' for more information." ;;
19363
19364  *) as_fn_append ac_config_targets " $1"
19365     ac_need_defaults=false ;;
19366
19367  esac
19368  shift
19369done
19370
19371ac_configure_extra_args=
19372
19373if $ac_cs_silent; then
19374  exec 6>/dev/null
19375  ac_configure_extra_args="$ac_configure_extra_args --silent"
19376fi
19377
19378_ACEOF
19379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380if \$ac_cs_recheck; then
19381  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19382  shift
19383  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19384  CONFIG_SHELL='$SHELL'
19385  export CONFIG_SHELL
19386  exec "\$@"
19387fi
19388
19389_ACEOF
19390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19391exec 5>>config.log
19392{
19393  echo
19394  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19395## Running $as_me. ##
19396_ASBOX
19397  $as_echo "$ac_log"
19398} >&5
19399
19400_ACEOF
19401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19402#
19403# INIT-COMMANDS
19404#
19405AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19406
19407
19408# The HP-UX ksh and POSIX shell print the target directory to stdout
19409# if CDPATH is set.
19410(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19411
19412sed_quote_subst='$sed_quote_subst'
19413double_quote_subst='$double_quote_subst'
19414delay_variable_subst='$delay_variable_subst'
19415macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19416macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19417enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19418enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19419pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19420enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19421shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19422SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19423ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19424PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19425host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19426host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19427host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19428build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19429build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19430build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19431SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19432Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19433GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19434EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19435FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19436LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19437NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19438LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19439max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19440ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19441exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19442lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19443lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19444lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19445lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19446lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19447reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19448reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19449OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19450deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19451file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19452file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19453want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19454DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19455sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19456AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19457lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19458AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19459archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19460STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19461RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19462old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19463old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19464old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19465lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19466CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19467CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19468compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19469GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19470lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19471lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19472lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19473lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19474lt_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"`'
19475lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19476nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19477lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19478lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19479objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19480MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19481lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19482lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19483lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19484lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19485lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19486need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19487MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19488DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19489NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19490LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19491OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19492OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19493libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19494shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19495extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19496archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19497enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19498export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19499whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19500compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19501old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19502old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19503archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19504archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19505module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19506module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19507with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19508allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19509no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19510hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19511hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19512hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19513hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19514hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19515hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19516hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19517inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19518link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19519always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19520export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19521exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19522include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19523prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19524postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19525file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19526variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19527need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19528need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19529version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19530runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19531shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19532shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19533libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19534library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19535soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19536install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19537postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19538postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19539finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19540finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19541hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19542sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19543configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19544configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19545hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19546enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19547enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19548enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19549old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19550striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19551
19552LTCC='$LTCC'
19553LTCFLAGS='$LTCFLAGS'
19554compiler='$compiler_DEFAULT'
19555
19556# A function that is used when there is no print builtin or printf.
19557func_fallback_echo ()
19558{
19559  eval 'cat <<_LTECHO_EOF
19560\$1
19561_LTECHO_EOF'
19562}
19563
19564# Quote evaled strings.
19565for var in SHELL \
19566ECHO \
19567PATH_SEPARATOR \
19568SED \
19569GREP \
19570EGREP \
19571FGREP \
19572LD \
19573NM \
19574LN_S \
19575lt_SP2NL \
19576lt_NL2SP \
19577reload_flag \
19578OBJDUMP \
19579deplibs_check_method \
19580file_magic_cmd \
19581file_magic_glob \
19582want_nocaseglob \
19583DLLTOOL \
19584sharedlib_from_linklib_cmd \
19585AR \
19586archiver_list_spec \
19587STRIP \
19588RANLIB \
19589CC \
19590CFLAGS \
19591compiler \
19592lt_cv_sys_global_symbol_pipe \
19593lt_cv_sys_global_symbol_to_cdecl \
19594lt_cv_sys_global_symbol_to_import \
19595lt_cv_sys_global_symbol_to_c_name_address \
19596lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19597lt_cv_nm_interface \
19598nm_file_list_spec \
19599lt_cv_truncate_bin \
19600lt_prog_compiler_no_builtin_flag \
19601lt_prog_compiler_pic \
19602lt_prog_compiler_wl \
19603lt_prog_compiler_static \
19604lt_cv_prog_compiler_c_o \
19605need_locks \
19606MANIFEST_TOOL \
19607DSYMUTIL \
19608NMEDIT \
19609LIPO \
19610OTOOL \
19611OTOOL64 \
19612shrext_cmds \
19613export_dynamic_flag_spec \
19614whole_archive_flag_spec \
19615compiler_needs_object \
19616with_gnu_ld \
19617allow_undefined_flag \
19618no_undefined_flag \
19619hardcode_libdir_flag_spec \
19620hardcode_libdir_separator \
19621exclude_expsyms \
19622include_expsyms \
19623file_list_spec \
19624variables_saved_for_relink \
19625libname_spec \
19626library_names_spec \
19627soname_spec \
19628install_override_mode \
19629finish_eval \
19630old_striplib \
19631striplib; do
19632    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19633    *[\\\\\\\`\\"\\\$]*)
19634      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19635      ;;
19636    *)
19637      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19638      ;;
19639    esac
19640done
19641
19642# Double-quote double-evaled strings.
19643for var in reload_cmds \
19644old_postinstall_cmds \
19645old_postuninstall_cmds \
19646old_archive_cmds \
19647extract_expsyms_cmds \
19648old_archive_from_new_cmds \
19649old_archive_from_expsyms_cmds \
19650archive_cmds \
19651archive_expsym_cmds \
19652module_cmds \
19653module_expsym_cmds \
19654export_symbols_cmds \
19655prelink_cmds \
19656postlink_cmds \
19657postinstall_cmds \
19658postuninstall_cmds \
19659finish_cmds \
19660sys_lib_search_path_spec \
19661configure_time_dlsearch_path \
19662configure_time_lt_sys_library_path; do
19663    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19664    *[\\\\\\\`\\"\\\$]*)
19665      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19666      ;;
19667    *)
19668      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19669      ;;
19670    esac
19671done
19672
19673ac_aux_dir='$ac_aux_dir'
19674
19675# See if we are running on zsh, and set the options that allow our
19676# commands through without removal of \ escapes INIT.
19677if test -n "\${ZSH_VERSION+set}"; then
19678   setopt NO_GLOB_SUBST
19679fi
19680
19681
19682    PACKAGE='$PACKAGE'
19683    VERSION='$VERSION'
19684    RM='$RM'
19685    ofile='$ofile'
19686
19687
19688
19689
19690_ACEOF
19691
19692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19693
19694# Handling of arguments.
19695for ac_config_target in $ac_config_targets
19696do
19697  case $ac_config_target in
19698    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19699    "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
19700    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19701    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19702    "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
19703    "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
19704    "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
19705    "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;;
19706    "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;;
19707    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19708
19709  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19710  esac
19711done
19712
19713
19714# If the user did not use the arguments to specify the items to instantiate,
19715# then the envvar interface is used.  Set only those that are not.
19716# We use the long form for the default assignment because of an extremely
19717# bizarre bug on SunOS 4.1.3.
19718if $ac_need_defaults; then
19719  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19720  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19721  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19722fi
19723
19724# Have a temporary directory for convenience.  Make it in the build tree
19725# simply because there is no reason against having it here, and in addition,
19726# creating and moving files from /tmp can sometimes cause problems.
19727# Hook for its removal unless debugging.
19728# Note that there is a small window in which the directory will not be cleaned:
19729# after its creation but before its name has been assigned to `$tmp'.
19730$debug ||
19731{
19732  tmp= ac_tmp=
19733  trap 'exit_status=$?
19734  : "${ac_tmp:=$tmp}"
19735  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19736' 0
19737  trap 'as_fn_exit 1' 1 2 13 15
19738}
19739# Create a (secure) tmp directory for tmp files.
19740
19741{
19742  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19743  test -d "$tmp"
19744}  ||
19745{
19746  tmp=./conf$$-$RANDOM
19747  (umask 077 && mkdir "$tmp")
19748} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19749ac_tmp=$tmp
19750
19751# Set up the scripts for CONFIG_FILES section.
19752# No need to generate them if there are no CONFIG_FILES.
19753# This happens for instance with `./config.status config.h'.
19754if test -n "$CONFIG_FILES"; then
19755
19756
19757ac_cr=`echo X | tr X '\015'`
19758# On cygwin, bash can eat \r inside `` if the user requested igncr.
19759# But we know of no other shell where ac_cr would be empty at this
19760# point, so we can use a bashism as a fallback.
19761if test "x$ac_cr" = x; then
19762  eval ac_cr=\$\'\\r\'
19763fi
19764ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19765if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19766  ac_cs_awk_cr='\\r'
19767else
19768  ac_cs_awk_cr=$ac_cr
19769fi
19770
19771echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19772_ACEOF
19773
19774
19775{
19776  echo "cat >conf$$subs.awk <<_ACEOF" &&
19777  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19778  echo "_ACEOF"
19779} >conf$$subs.sh ||
19780  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19781ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19782ac_delim='%!_!# '
19783for ac_last_try in false false false false false :; do
19784  . ./conf$$subs.sh ||
19785    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19786
19787  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19788  if test $ac_delim_n = $ac_delim_num; then
19789    break
19790  elif $ac_last_try; then
19791    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19792  else
19793    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19794  fi
19795done
19796rm -f conf$$subs.sh
19797
19798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19799cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19800_ACEOF
19801sed -n '
19802h
19803s/^/S["/; s/!.*/"]=/
19804p
19805g
19806s/^[^!]*!//
19807:repl
19808t repl
19809s/'"$ac_delim"'$//
19810t delim
19811:nl
19812h
19813s/\(.\{148\}\)..*/\1/
19814t more1
19815s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19816p
19817n
19818b repl
19819:more1
19820s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19821p
19822g
19823s/.\{148\}//
19824t nl
19825:delim
19826h
19827s/\(.\{148\}\)..*/\1/
19828t more2
19829s/["\\]/\\&/g; s/^/"/; s/$/"/
19830p
19831b
19832:more2
19833s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19834p
19835g
19836s/.\{148\}//
19837t delim
19838' <conf$$subs.awk | sed '
19839/^[^""]/{
19840  N
19841  s/\n//
19842}
19843' >>$CONFIG_STATUS || ac_write_fail=1
19844rm -f conf$$subs.awk
19845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19846_ACAWK
19847cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19848  for (key in S) S_is_set[key] = 1
19849  FS = ""
19850
19851}
19852{
19853  line = $ 0
19854  nfields = split(line, field, "@")
19855  substed = 0
19856  len = length(field[1])
19857  for (i = 2; i < nfields; i++) {
19858    key = field[i]
19859    keylen = length(key)
19860    if (S_is_set[key]) {
19861      value = S[key]
19862      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19863      len += length(value) + length(field[++i])
19864      substed = 1
19865    } else
19866      len += 1 + keylen
19867  }
19868
19869  print line
19870}
19871
19872_ACAWK
19873_ACEOF
19874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19875if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19876  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19877else
19878  cat
19879fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19880  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19881_ACEOF
19882
19883# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19884# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19885# trailing colons and then remove the whole line if VPATH becomes empty
19886# (actually we leave an empty line to preserve line numbers).
19887if test "x$srcdir" = x.; then
19888  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19889h
19890s///
19891s/^/:/
19892s/[	 ]*$/:/
19893s/:\$(srcdir):/:/g
19894s/:\${srcdir}:/:/g
19895s/:@srcdir@:/:/g
19896s/^:*//
19897s/:*$//
19898x
19899s/\(=[	 ]*\).*/\1/
19900G
19901s/\n//
19902s/^[^=]*=[	 ]*$//
19903}'
19904fi
19905
19906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19907fi # test -n "$CONFIG_FILES"
19908
19909# Set up the scripts for CONFIG_HEADERS section.
19910# No need to generate them if there are no CONFIG_HEADERS.
19911# This happens for instance with `./config.status Makefile'.
19912if test -n "$CONFIG_HEADERS"; then
19913cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19914BEGIN {
19915_ACEOF
19916
19917# Transform confdefs.h into an awk script `defines.awk', embedded as
19918# here-document in config.status, that substitutes the proper values into
19919# config.h.in to produce config.h.
19920
19921# Create a delimiter string that does not exist in confdefs.h, to ease
19922# handling of long lines.
19923ac_delim='%!_!# '
19924for ac_last_try in false false :; do
19925  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19926  if test -z "$ac_tt"; then
19927    break
19928  elif $ac_last_try; then
19929    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19930  else
19931    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19932  fi
19933done
19934
19935# For the awk script, D is an array of macro values keyed by name,
19936# likewise P contains macro parameters if any.  Preserve backslash
19937# newline sequences.
19938
19939ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19940sed -n '
19941s/.\{148\}/&'"$ac_delim"'/g
19942t rset
19943:rset
19944s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19945t def
19946d
19947:def
19948s/\\$//
19949t bsnl
19950s/["\\]/\\&/g
19951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19952D["\1"]=" \3"/p
19953s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19954d
19955:bsnl
19956s/["\\]/\\&/g
19957s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19958D["\1"]=" \3\\\\\\n"\\/p
19959t cont
19960s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19961t cont
19962d
19963:cont
19964n
19965s/.\{148\}/&'"$ac_delim"'/g
19966t clear
19967:clear
19968s/\\$//
19969t bsnlc
19970s/["\\]/\\&/g; s/^/"/; s/$/"/p
19971d
19972:bsnlc
19973s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19974b cont
19975' <confdefs.h | sed '
19976s/'"$ac_delim"'/"\\\
19977"/g' >>$CONFIG_STATUS || ac_write_fail=1
19978
19979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19980  for (key in D) D_is_set[key] = 1
19981  FS = ""
19982}
19983/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19984  line = \$ 0
19985  split(line, arg, " ")
19986  if (arg[1] == "#") {
19987    defundef = arg[2]
19988    mac1 = arg[3]
19989  } else {
19990    defundef = substr(arg[1], 2)
19991    mac1 = arg[2]
19992  }
19993  split(mac1, mac2, "(") #)
19994  macro = mac2[1]
19995  prefix = substr(line, 1, index(line, defundef) - 1)
19996  if (D_is_set[macro]) {
19997    # Preserve the white space surrounding the "#".
19998    print prefix "define", macro P[macro] D[macro]
19999    next
20000  } else {
20001    # Replace #undef with comments.  This is necessary, for example,
20002    # in the case of _POSIX_SOURCE, which is predefined and required
20003    # on some systems where configure will not decide to define it.
20004    if (defundef == "undef") {
20005      print "/*", prefix defundef, macro, "*/"
20006      next
20007    }
20008  }
20009}
20010{ print }
20011_ACAWK
20012_ACEOF
20013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20014  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20015fi # test -n "$CONFIG_HEADERS"
20016
20017
20018eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20019shift
20020for ac_tag
20021do
20022  case $ac_tag in
20023  :[FHLC]) ac_mode=$ac_tag; continue;;
20024  esac
20025  case $ac_mode$ac_tag in
20026  :[FHL]*:*);;
20027  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20028  :[FH]-) ac_tag=-:-;;
20029  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20030  esac
20031  ac_save_IFS=$IFS
20032  IFS=:
20033  set x $ac_tag
20034  IFS=$ac_save_IFS
20035  shift
20036  ac_file=$1
20037  shift
20038
20039  case $ac_mode in
20040  :L) ac_source=$1;;
20041  :[FH])
20042    ac_file_inputs=
20043    for ac_f
20044    do
20045      case $ac_f in
20046      -) ac_f="$ac_tmp/stdin";;
20047      *) # Look for the file first in the build tree, then in the source tree
20048	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20049	 # because $ac_f cannot contain `:'.
20050	 test -f "$ac_f" ||
20051	   case $ac_f in
20052	   [\\/$]*) false;;
20053	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20054	   esac ||
20055	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20056      esac
20057      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20058      as_fn_append ac_file_inputs " '$ac_f'"
20059    done
20060
20061    # Let's still pretend it is `configure' which instantiates (i.e., don't
20062    # use $as_me), people would be surprised to read:
20063    #    /* config.h.  Generated by config.status.  */
20064    configure_input='Generated from '`
20065	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20066	`' by configure.'
20067    if test x"$ac_file" != x-; then
20068      configure_input="$ac_file.  $configure_input"
20069      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20070$as_echo "$as_me: creating $ac_file" >&6;}
20071    fi
20072    # Neutralize special characters interpreted by sed in replacement strings.
20073    case $configure_input in #(
20074    *\&* | *\|* | *\\* )
20075       ac_sed_conf_input=`$as_echo "$configure_input" |
20076       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20077    *) ac_sed_conf_input=$configure_input;;
20078    esac
20079
20080    case $ac_tag in
20081    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20082      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20083    esac
20084    ;;
20085  esac
20086
20087  ac_dir=`$as_dirname -- "$ac_file" ||
20088$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20089	 X"$ac_file" : 'X\(//\)[^/]' \| \
20090	 X"$ac_file" : 'X\(//\)$' \| \
20091	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20092$as_echo X"$ac_file" |
20093    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20094	    s//\1/
20095	    q
20096	  }
20097	  /^X\(\/\/\)[^/].*/{
20098	    s//\1/
20099	    q
20100	  }
20101	  /^X\(\/\/\)$/{
20102	    s//\1/
20103	    q
20104	  }
20105	  /^X\(\/\).*/{
20106	    s//\1/
20107	    q
20108	  }
20109	  s/.*/./; q'`
20110  as_dir="$ac_dir"; as_fn_mkdir_p
20111  ac_builddir=.
20112
20113case "$ac_dir" in
20114.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20115*)
20116  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20117  # A ".." for each directory in $ac_dir_suffix.
20118  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20119  case $ac_top_builddir_sub in
20120  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20121  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20122  esac ;;
20123esac
20124ac_abs_top_builddir=$ac_pwd
20125ac_abs_builddir=$ac_pwd$ac_dir_suffix
20126# for backward compatibility:
20127ac_top_builddir=$ac_top_build_prefix
20128
20129case $srcdir in
20130  .)  # We are building in place.
20131    ac_srcdir=.
20132    ac_top_srcdir=$ac_top_builddir_sub
20133    ac_abs_top_srcdir=$ac_pwd ;;
20134  [\\/]* | ?:[\\/]* )  # Absolute name.
20135    ac_srcdir=$srcdir$ac_dir_suffix;
20136    ac_top_srcdir=$srcdir
20137    ac_abs_top_srcdir=$srcdir ;;
20138  *) # Relative name.
20139    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20140    ac_top_srcdir=$ac_top_build_prefix$srcdir
20141    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20142esac
20143ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20144
20145
20146  case $ac_mode in
20147  :F)
20148  #
20149  # CONFIG_FILE
20150  #
20151
20152  case $INSTALL in
20153  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20154  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20155  esac
20156  ac_MKDIR_P=$MKDIR_P
20157  case $MKDIR_P in
20158  [\\/$]* | ?:[\\/]* ) ;;
20159  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20160  esac
20161_ACEOF
20162
20163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20164# If the template does not know about datarootdir, expand it.
20165# FIXME: This hack should be removed a few years after 2.60.
20166ac_datarootdir_hack=; ac_datarootdir_seen=
20167ac_sed_dataroot='
20168/datarootdir/ {
20169  p
20170  q
20171}
20172/@datadir@/p
20173/@docdir@/p
20174/@infodir@/p
20175/@localedir@/p
20176/@mandir@/p'
20177case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20178*datarootdir*) ac_datarootdir_seen=yes;;
20179*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20180  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20181$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20182_ACEOF
20183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20184  ac_datarootdir_hack='
20185  s&@datadir@&$datadir&g
20186  s&@docdir@&$docdir&g
20187  s&@infodir@&$infodir&g
20188  s&@localedir@&$localedir&g
20189  s&@mandir@&$mandir&g
20190  s&\\\${datarootdir}&$datarootdir&g' ;;
20191esac
20192_ACEOF
20193
20194# Neutralize VPATH when `$srcdir' = `.'.
20195# Shell code in configure.ac might set extrasub.
20196# FIXME: do we really want to maintain this feature?
20197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20198ac_sed_extra="$ac_vpsub
20199$extrasub
20200_ACEOF
20201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20202:t
20203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20204s|@configure_input@|$ac_sed_conf_input|;t t
20205s&@top_builddir@&$ac_top_builddir_sub&;t t
20206s&@top_build_prefix@&$ac_top_build_prefix&;t t
20207s&@srcdir@&$ac_srcdir&;t t
20208s&@abs_srcdir@&$ac_abs_srcdir&;t t
20209s&@top_srcdir@&$ac_top_srcdir&;t t
20210s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20211s&@builddir@&$ac_builddir&;t t
20212s&@abs_builddir@&$ac_abs_builddir&;t t
20213s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20214s&@INSTALL@&$ac_INSTALL&;t t
20215s&@MKDIR_P@&$ac_MKDIR_P&;t t
20216$ac_datarootdir_hack
20217"
20218eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20219  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20220
20221test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20222  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20223  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20224      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20225  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20226which seems to be undefined.  Please make sure it is defined" >&5
20227$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20228which seems to be undefined.  Please make sure it is defined" >&2;}
20229
20230  rm -f "$ac_tmp/stdin"
20231  case $ac_file in
20232  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20233  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20234  esac \
20235  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20236 ;;
20237  :H)
20238  #
20239  # CONFIG_HEADER
20240  #
20241  if test x"$ac_file" != x-; then
20242    {
20243      $as_echo "/* $configure_input  */" \
20244      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20245    } >"$ac_tmp/config.h" \
20246      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20247    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20248      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20249$as_echo "$as_me: $ac_file is unchanged" >&6;}
20250    else
20251      rm -f "$ac_file"
20252      mv "$ac_tmp/config.h" "$ac_file" \
20253	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20254    fi
20255  else
20256    $as_echo "/* $configure_input  */" \
20257      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20258      || as_fn_error $? "could not create -" "$LINENO" 5
20259  fi
20260# Compute "$ac_file"'s index in $config_headers.
20261_am_arg="$ac_file"
20262_am_stamp_count=1
20263for _am_header in $config_headers :; do
20264  case $_am_header in
20265    $_am_arg | $_am_arg:* )
20266      break ;;
20267    * )
20268      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20269  esac
20270done
20271echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20272$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20273	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20274	 X"$_am_arg" : 'X\(//\)$' \| \
20275	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20276$as_echo X"$_am_arg" |
20277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20278	    s//\1/
20279	    q
20280	  }
20281	  /^X\(\/\/\)[^/].*/{
20282	    s//\1/
20283	    q
20284	  }
20285	  /^X\(\/\/\)$/{
20286	    s//\1/
20287	    q
20288	  }
20289	  /^X\(\/\).*/{
20290	    s//\1/
20291	    q
20292	  }
20293	  s/.*/./; q'`/stamp-h$_am_stamp_count
20294 ;;
20295
20296  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20297$as_echo "$as_me: executing $ac_file commands" >&6;}
20298 ;;
20299  esac
20300
20301
20302  case $ac_file$ac_mode in
20303    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20304  # Older Autoconf quotes --file arguments for eval, but not when files
20305  # are listed without --file.  Let's play safe and only enable the eval
20306  # if we detect the quoting.
20307  # TODO: see whether this extra hack can be removed once we start
20308  # requiring Autoconf 2.70 or later.
20309  case $CONFIG_FILES in #(
20310  *\'*) :
20311    eval set x "$CONFIG_FILES" ;; #(
20312  *) :
20313    set x $CONFIG_FILES ;; #(
20314  *) :
20315     ;;
20316esac
20317  shift
20318  # Used to flag and report bootstrapping failures.
20319  am_rc=0
20320  for am_mf
20321  do
20322    # Strip MF so we end up with the name of the file.
20323    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20324    # Check whether this is an Automake generated Makefile which includes
20325    # dependency-tracking related rules and includes.
20326    # Grep'ing the whole file directly is not great: AIX grep has a line
20327    # limit of 2048, but all sed's we know have understand at least 4000.
20328    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20329      || continue
20330    am_dirpart=`$as_dirname -- "$am_mf" ||
20331$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20332	 X"$am_mf" : 'X\(//\)[^/]' \| \
20333	 X"$am_mf" : 'X\(//\)$' \| \
20334	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20335$as_echo X"$am_mf" |
20336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20337	    s//\1/
20338	    q
20339	  }
20340	  /^X\(\/\/\)[^/].*/{
20341	    s//\1/
20342	    q
20343	  }
20344	  /^X\(\/\/\)$/{
20345	    s//\1/
20346	    q
20347	  }
20348	  /^X\(\/\).*/{
20349	    s//\1/
20350	    q
20351	  }
20352	  s/.*/./; q'`
20353    am_filepart=`$as_basename -- "$am_mf" ||
20354$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20355	 X"$am_mf" : 'X\(//\)$' \| \
20356	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20357$as_echo X/"$am_mf" |
20358    sed '/^.*\/\([^/][^/]*\)\/*$/{
20359	    s//\1/
20360	    q
20361	  }
20362	  /^X\/\(\/\/\)$/{
20363	    s//\1/
20364	    q
20365	  }
20366	  /^X\/\(\/\).*/{
20367	    s//\1/
20368	    q
20369	  }
20370	  s/.*/./; q'`
20371    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20372      && sed -e '/# am--include-marker/d' "$am_filepart" \
20373        | $MAKE -f - am--depfiles" >&5
20374   (cd "$am_dirpart" \
20375      && sed -e '/# am--include-marker/d' "$am_filepart" \
20376        | $MAKE -f - am--depfiles) >&5 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); } || am_rc=$?
20380  done
20381  if test $am_rc -ne 0; then
20382    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20384as_fn_error $? "Something went wrong bootstrapping makefile fragments
20385    for automatic dependency tracking.  If GNU make was not used, consider
20386    re-running the configure script with MAKE=\"gmake\" (or whatever is
20387    necessary).  You can also try re-running configure with the
20388    '--disable-dependency-tracking' option to at least be able to build
20389    the package (albeit without support for automatic dependency tracking).
20390See \`config.log' for more details" "$LINENO" 5; }
20391  fi
20392  { am_dirpart=; unset am_dirpart;}
20393  { am_filepart=; unset am_filepart;}
20394  { am_mf=; unset am_mf;}
20395  { am_rc=; unset am_rc;}
20396  rm -f conftest-deps.mk
20397}
20398 ;;
20399    "libtool":C)
20400
20401    # See if we are running on zsh, and set the options that allow our
20402    # commands through without removal of \ escapes.
20403    if test -n "${ZSH_VERSION+set}"; then
20404      setopt NO_GLOB_SUBST
20405    fi
20406
20407    cfgfile=${ofile}T
20408    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20409    $RM "$cfgfile"
20410
20411    cat <<_LT_EOF >> "$cfgfile"
20412#! $SHELL
20413# Generated automatically by $as_me ($PACKAGE) $VERSION
20414# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20415
20416# Provide generalized library-building support services.
20417# Written by Gordon Matzigkeit, 1996
20418
20419# Copyright (C) 2014 Free Software Foundation, Inc.
20420# This is free software; see the source for copying conditions.  There is NO
20421# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20422
20423# GNU Libtool is free software; you can redistribute it and/or modify
20424# it under the terms of the GNU General Public License as published by
20425# the Free Software Foundation; either version 2 of of the License, or
20426# (at your option) any later version.
20427#
20428# As a special exception to the GNU General Public License, if you
20429# distribute this file as part of a program or library that is built
20430# using GNU Libtool, you may include this file under the  same
20431# distribution terms that you use for the rest of that program.
20432#
20433# GNU Libtool is distributed in the hope that it will be useful, but
20434# WITHOUT ANY WARRANTY; without even the implied warranty of
20435# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20436# GNU General Public License for more details.
20437#
20438# You should have received a copy of the GNU General Public License
20439# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20440
20441
20442# The names of the tagged configurations supported by this script.
20443available_tags=''
20444
20445# Configured defaults for sys_lib_dlsearch_path munging.
20446: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20447
20448# ### BEGIN LIBTOOL CONFIG
20449
20450# Which release of libtool.m4 was used?
20451macro_version=$macro_version
20452macro_revision=$macro_revision
20453
20454# Whether or not to build shared libraries.
20455build_libtool_libs=$enable_shared
20456
20457# Whether or not to build static libraries.
20458build_old_libs=$enable_static
20459
20460# What type of objects to build.
20461pic_mode=$pic_mode
20462
20463# Whether or not to optimize for fast installation.
20464fast_install=$enable_fast_install
20465
20466# Shared archive member basename,for filename based shared library versioning on AIX.
20467shared_archive_member_spec=$shared_archive_member_spec
20468
20469# Shell to use when invoking shell scripts.
20470SHELL=$lt_SHELL
20471
20472# An echo program that protects backslashes.
20473ECHO=$lt_ECHO
20474
20475# The PATH separator for the build system.
20476PATH_SEPARATOR=$lt_PATH_SEPARATOR
20477
20478# The host system.
20479host_alias=$host_alias
20480host=$host
20481host_os=$host_os
20482
20483# The build system.
20484build_alias=$build_alias
20485build=$build
20486build_os=$build_os
20487
20488# A sed program that does not truncate output.
20489SED=$lt_SED
20490
20491# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20492Xsed="\$SED -e 1s/^X//"
20493
20494# A grep program that handles long lines.
20495GREP=$lt_GREP
20496
20497# An ERE matcher.
20498EGREP=$lt_EGREP
20499
20500# A literal string matcher.
20501FGREP=$lt_FGREP
20502
20503# A BSD- or MS-compatible name lister.
20504NM=$lt_NM
20505
20506# Whether we need soft or hard links.
20507LN_S=$lt_LN_S
20508
20509# What is the maximum length of a command?
20510max_cmd_len=$max_cmd_len
20511
20512# Object file suffix (normally "o").
20513objext=$ac_objext
20514
20515# Executable file suffix (normally "").
20516exeext=$exeext
20517
20518# whether the shell understands "unset".
20519lt_unset=$lt_unset
20520
20521# turn spaces into newlines.
20522SP2NL=$lt_lt_SP2NL
20523
20524# turn newlines into spaces.
20525NL2SP=$lt_lt_NL2SP
20526
20527# convert \$build file names to \$host format.
20528to_host_file_cmd=$lt_cv_to_host_file_cmd
20529
20530# convert \$build files to toolchain format.
20531to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20532
20533# An object symbol dumper.
20534OBJDUMP=$lt_OBJDUMP
20535
20536# Method to check whether dependent libraries are shared objects.
20537deplibs_check_method=$lt_deplibs_check_method
20538
20539# Command to use when deplibs_check_method = "file_magic".
20540file_magic_cmd=$lt_file_magic_cmd
20541
20542# How to find potential files when deplibs_check_method = "file_magic".
20543file_magic_glob=$lt_file_magic_glob
20544
20545# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20546want_nocaseglob=$lt_want_nocaseglob
20547
20548# DLL creation program.
20549DLLTOOL=$lt_DLLTOOL
20550
20551# Command to associate shared and link libraries.
20552sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20553
20554# The archiver.
20555AR=$lt_AR
20556
20557# Flags to create an archive (by configure).
20558lt_ar_flags=$lt_ar_flags
20559
20560# Flags to create an archive.
20561AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20562
20563# How to feed a file listing to the archiver.
20564archiver_list_spec=$lt_archiver_list_spec
20565
20566# A symbol stripping program.
20567STRIP=$lt_STRIP
20568
20569# Commands used to install an old-style archive.
20570RANLIB=$lt_RANLIB
20571old_postinstall_cmds=$lt_old_postinstall_cmds
20572old_postuninstall_cmds=$lt_old_postuninstall_cmds
20573
20574# Whether to use a lock for old archive extraction.
20575lock_old_archive_extraction=$lock_old_archive_extraction
20576
20577# A C compiler.
20578LTCC=$lt_CC
20579
20580# LTCC compiler flags.
20581LTCFLAGS=$lt_CFLAGS
20582
20583# Take the output of nm and produce a listing of raw symbols and C names.
20584global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20585
20586# Transform the output of nm in a proper C declaration.
20587global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20588
20589# Transform the output of nm into a list of symbols to manually relocate.
20590global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20591
20592# Transform the output of nm in a C name address pair.
20593global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20594
20595# Transform the output of nm in a C name address pair when lib prefix is needed.
20596global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20597
20598# The name lister interface.
20599nm_interface=$lt_lt_cv_nm_interface
20600
20601# Specify filename containing input files for \$NM.
20602nm_file_list_spec=$lt_nm_file_list_spec
20603
20604# The root where to search for dependent libraries,and where our libraries should be installed.
20605lt_sysroot=$lt_sysroot
20606
20607# Command to truncate a binary pipe.
20608lt_truncate_bin=$lt_lt_cv_truncate_bin
20609
20610# The name of the directory that contains temporary libtool files.
20611objdir=$objdir
20612
20613# Used to examine libraries when file_magic_cmd begins with "file".
20614MAGIC_CMD=$MAGIC_CMD
20615
20616# Must we lock files when doing compilation?
20617need_locks=$lt_need_locks
20618
20619# Manifest tool.
20620MANIFEST_TOOL=$lt_MANIFEST_TOOL
20621
20622# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20623DSYMUTIL=$lt_DSYMUTIL
20624
20625# Tool to change global to local symbols on Mac OS X.
20626NMEDIT=$lt_NMEDIT
20627
20628# Tool to manipulate fat objects and archives on Mac OS X.
20629LIPO=$lt_LIPO
20630
20631# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20632OTOOL=$lt_OTOOL
20633
20634# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20635OTOOL64=$lt_OTOOL64
20636
20637# Old archive suffix (normally "a").
20638libext=$libext
20639
20640# Shared library suffix (normally ".so").
20641shrext_cmds=$lt_shrext_cmds
20642
20643# The commands to extract the exported symbol list from a shared archive.
20644extract_expsyms_cmds=$lt_extract_expsyms_cmds
20645
20646# Variables whose values should be saved in libtool wrapper scripts and
20647# restored at link time.
20648variables_saved_for_relink=$lt_variables_saved_for_relink
20649
20650# Do we need the "lib" prefix for modules?
20651need_lib_prefix=$need_lib_prefix
20652
20653# Do we need a version for libraries?
20654need_version=$need_version
20655
20656# Library versioning type.
20657version_type=$version_type
20658
20659# Shared library runtime path variable.
20660runpath_var=$runpath_var
20661
20662# Shared library path variable.
20663shlibpath_var=$shlibpath_var
20664
20665# Is shlibpath searched before the hard-coded library search path?
20666shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20667
20668# Format of library name prefix.
20669libname_spec=$lt_libname_spec
20670
20671# List of archive names.  First name is the real one, the rest are links.
20672# The last name is the one that the linker finds with -lNAME
20673library_names_spec=$lt_library_names_spec
20674
20675# The coded name of the library, if different from the real name.
20676soname_spec=$lt_soname_spec
20677
20678# Permission mode override for installation of shared libraries.
20679install_override_mode=$lt_install_override_mode
20680
20681# Command to use after installation of a shared archive.
20682postinstall_cmds=$lt_postinstall_cmds
20683
20684# Command to use after uninstallation of a shared archive.
20685postuninstall_cmds=$lt_postuninstall_cmds
20686
20687# Commands used to finish a libtool library installation in a directory.
20688finish_cmds=$lt_finish_cmds
20689
20690# As "finish_cmds", except a single script fragment to be evaled but
20691# not shown.
20692finish_eval=$lt_finish_eval
20693
20694# Whether we should hardcode library paths into libraries.
20695hardcode_into_libs=$hardcode_into_libs
20696
20697# Compile-time system search path for libraries.
20698sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20699
20700# Detected run-time system search path for libraries.
20701sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20702
20703# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20704configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20705
20706# Whether dlopen is supported.
20707dlopen_support=$enable_dlopen
20708
20709# Whether dlopen of programs is supported.
20710dlopen_self=$enable_dlopen_self
20711
20712# Whether dlopen of statically linked programs is supported.
20713dlopen_self_static=$enable_dlopen_self_static
20714
20715# Commands to strip libraries.
20716old_striplib=$lt_old_striplib
20717striplib=$lt_striplib
20718
20719
20720# The linker used to build libraries.
20721LD=$lt_LD
20722
20723# How to create reloadable object files.
20724reload_flag=$lt_reload_flag
20725reload_cmds=$lt_reload_cmds
20726
20727# Commands used to build an old-style archive.
20728old_archive_cmds=$lt_old_archive_cmds
20729
20730# A language specific compiler.
20731CC=$lt_compiler
20732
20733# Is the compiler the GNU compiler?
20734with_gcc=$GCC
20735
20736# Compiler flag to turn off builtin functions.
20737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20738
20739# Additional compiler flags for building library objects.
20740pic_flag=$lt_lt_prog_compiler_pic
20741
20742# How to pass a linker flag through the compiler.
20743wl=$lt_lt_prog_compiler_wl
20744
20745# Compiler flag to prevent dynamic linking.
20746link_static_flag=$lt_lt_prog_compiler_static
20747
20748# Does compiler simultaneously support -c and -o options?
20749compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20750
20751# Whether or not to add -lc for building shared libraries.
20752build_libtool_need_lc=$archive_cmds_need_lc
20753
20754# Whether or not to disallow shared libs when runtime libs are static.
20755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20756
20757# Compiler flag to allow reflexive dlopens.
20758export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20759
20760# Compiler flag to generate shared objects directly from archives.
20761whole_archive_flag_spec=$lt_whole_archive_flag_spec
20762
20763# Whether the compiler copes with passing no objects directly.
20764compiler_needs_object=$lt_compiler_needs_object
20765
20766# Create an old-style archive from a shared archive.
20767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20768
20769# Create a temporary old-style archive to link instead of a shared archive.
20770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20771
20772# Commands used to build a shared archive.
20773archive_cmds=$lt_archive_cmds
20774archive_expsym_cmds=$lt_archive_expsym_cmds
20775
20776# Commands used to build a loadable module if different from building
20777# a shared archive.
20778module_cmds=$lt_module_cmds
20779module_expsym_cmds=$lt_module_expsym_cmds
20780
20781# Whether we are building with GNU ld or not.
20782with_gnu_ld=$lt_with_gnu_ld
20783
20784# Flag that allows shared libraries with undefined symbols to be built.
20785allow_undefined_flag=$lt_allow_undefined_flag
20786
20787# Flag that enforces no undefined symbols.
20788no_undefined_flag=$lt_no_undefined_flag
20789
20790# Flag to hardcode \$libdir into a binary during linking.
20791# This must work even if \$libdir does not exist
20792hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20793
20794# Whether we need a single "-rpath" flag with a separated argument.
20795hardcode_libdir_separator=$lt_hardcode_libdir_separator
20796
20797# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20798# DIR into the resulting binary.
20799hardcode_direct=$hardcode_direct
20800
20801# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20802# DIR into the resulting binary and the resulting library dependency is
20803# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20804# library is relocated.
20805hardcode_direct_absolute=$hardcode_direct_absolute
20806
20807# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20808# into the resulting binary.
20809hardcode_minus_L=$hardcode_minus_L
20810
20811# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20812# into the resulting binary.
20813hardcode_shlibpath_var=$hardcode_shlibpath_var
20814
20815# Set to "yes" if building a shared library automatically hardcodes DIR
20816# into the library and all subsequent libraries and executables linked
20817# against it.
20818hardcode_automatic=$hardcode_automatic
20819
20820# Set to yes if linker adds runtime paths of dependent libraries
20821# to runtime path list.
20822inherit_rpath=$inherit_rpath
20823
20824# Whether libtool must link a program against all its dependency libraries.
20825link_all_deplibs=$link_all_deplibs
20826
20827# Set to "yes" if exported symbols are required.
20828always_export_symbols=$always_export_symbols
20829
20830# The commands to list exported symbols.
20831export_symbols_cmds=$lt_export_symbols_cmds
20832
20833# Symbols that should not be listed in the preloaded symbols.
20834exclude_expsyms=$lt_exclude_expsyms
20835
20836# Symbols that must always be exported.
20837include_expsyms=$lt_include_expsyms
20838
20839# Commands necessary for linking programs (against libraries) with templates.
20840prelink_cmds=$lt_prelink_cmds
20841
20842# Commands necessary for finishing linking programs.
20843postlink_cmds=$lt_postlink_cmds
20844
20845# Specify filename containing input files.
20846file_list_spec=$lt_file_list_spec
20847
20848# How to hardcode a shared library path into an executable.
20849hardcode_action=$hardcode_action
20850
20851# ### END LIBTOOL CONFIG
20852
20853_LT_EOF
20854
20855    cat <<'_LT_EOF' >> "$cfgfile"
20856
20857# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20858
20859# func_munge_path_list VARIABLE PATH
20860# -----------------------------------
20861# VARIABLE is name of variable containing _space_ separated list of
20862# directories to be munged by the contents of PATH, which is string
20863# having a format:
20864# "DIR[:DIR]:"
20865#       string "DIR[ DIR]" will be prepended to VARIABLE
20866# ":DIR[:DIR]"
20867#       string "DIR[ DIR]" will be appended to VARIABLE
20868# "DIRP[:DIRP]::[DIRA:]DIRA"
20869#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20870#       "DIRA[ DIRA]" will be appended to VARIABLE
20871# "DIR[:DIR]"
20872#       VARIABLE will be replaced by "DIR[ DIR]"
20873func_munge_path_list ()
20874{
20875    case x$2 in
20876    x)
20877        ;;
20878    *:)
20879        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20880        ;;
20881    x:*)
20882        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20883        ;;
20884    *::*)
20885        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20886        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20887        ;;
20888    *)
20889        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20890        ;;
20891    esac
20892}
20893
20894
20895# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20896func_cc_basename ()
20897{
20898    for cc_temp in $*""; do
20899      case $cc_temp in
20900        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20901        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20902        \-*) ;;
20903        *) break;;
20904      esac
20905    done
20906    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20907}
20908
20909
20910# ### END FUNCTIONS SHARED WITH CONFIGURE
20911
20912_LT_EOF
20913
20914  case $host_os in
20915  aix3*)
20916    cat <<\_LT_EOF >> "$cfgfile"
20917# AIX sometimes has problems with the GCC collect2 program.  For some
20918# reason, if we set the COLLECT_NAMES environment variable, the problems
20919# vanish in a puff of smoke.
20920if test set != "${COLLECT_NAMES+set}"; then
20921  COLLECT_NAMES=
20922  export COLLECT_NAMES
20923fi
20924_LT_EOF
20925    ;;
20926  esac
20927
20928
20929ltmain=$ac_aux_dir/ltmain.sh
20930
20931
20932  # We use sed instead of cat because bash on DJGPP gets confused if
20933  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20934  # text mode, it properly converts lines to CR/LF.  This bash problem
20935  # is reportedly fixed, but why not run on old versions too?
20936  sed '$q' "$ltmain" >> "$cfgfile" \
20937     || (rm -f "$cfgfile"; exit 1)
20938
20939   mv -f "$cfgfile" "$ofile" ||
20940    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20941  chmod +x "$ofile"
20942
20943 ;;
20944
20945  esac
20946done # for ac_tag
20947
20948
20949as_fn_exit 0
20950_ACEOF
20951ac_clean_files=$ac_clean_files_save
20952
20953test $ac_write_fail = 0 ||
20954  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20955
20956
20957# configure is writing to config.log, and then calls config.status.
20958# config.status does its own redirection, appending to config.log.
20959# Unfortunately, on DOS this fails, as config.log is still kept open
20960# by configure, so config.status won't be able to write to it; its
20961# output is simply discarded.  So we exec the FD to /dev/null,
20962# effectively closing config.log, so it can be properly (re)opened and
20963# appended to by config.status.  When coming back to configure, we
20964# need to make the FD available again.
20965if test "$no_create" != yes; then
20966  ac_cs_success=:
20967  ac_config_status_args=
20968  test "$silent" = yes &&
20969    ac_config_status_args="$ac_config_status_args --quiet"
20970  exec 5>/dev/null
20971  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20972  exec 5>>config.log
20973  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20974  # would make configure fail if this is the last instruction.
20975  $ac_cs_success || as_fn_exit 1
20976fi
20977if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20978  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20979$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20980fi
20981
20982