1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for OpenVPN 2.5.6.
4#
5# Report bugs to <openvpn-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and openvpn-users@lists.sourceforge.net
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='OpenVPN'
592PACKAGE_TARNAME='openvpn'
593PACKAGE_VERSION='2.5.6'
594PACKAGE_STRING='OpenVPN 2.5.6'
595PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="src/openvpn/syshead.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639TEST_CFLAGS
640TEST_LDFLAGS
641ENABLE_UNITTESTS
642ENABLE_UNITTESTS_FALSE
643ENABLE_UNITTESTS_TRUE
644CMOCKA_LIBS
645CMOCKA_CFLAGS
646tmpfilesdir
647systemdunitdir
648sampledir
649plugindir
650OPENSSL_ENGINE_FALSE
651OPENSSL_ENGINE_TRUE
652HAVE_LD_WRAP_SUPPORT_FALSE
653HAVE_LD_WRAP_SUPPORT_TRUE
654ENABLE_PLUGIN_DOWN_ROOT_FALSE
655ENABLE_PLUGIN_DOWN_ROOT_TRUE
656ENABLE_PLUGIN_AUTH_PAM_FALSE
657ENABLE_PLUGIN_AUTH_PAM_TRUE
658GIT_CHECKOUT_FALSE
659GIT_CHECKOUT_TRUE
660WIN32_FALSE
661WIN32_TRUE
662PLUGIN_AUTH_PAM_LIBS
663PLUGIN_AUTH_PAM_CFLAGS
664OPTIONAL_PKCS11_HELPER_LIBS
665OPTIONAL_PKCS11_HELPER_CFLAGS
666OPTIONAL_SYSTEMD_LIBS
667OPTIONAL_LZ4_LIBS
668OPTIONAL_LZ4_CFLAGS
669OPTIONAL_LZO_LIBS
670OPTIONAL_LZO_CFLAGS
671OPTIONAL_CRYPTO_LIBS
672OPTIONAL_CRYPTO_CFLAGS
673OPTIONAL_SELINUX_LIBS
674OPTIONAL_DL_LIBS
675TAP_WIN_MIN_MINOR
676TAP_WIN_MIN_MAJOR
677TAP_WIN_COMPONENT_ID
678OPTIONAL_INOTIFY_LIBS
679OPTIONAL_INOTIFY_CFLAGS
680P11KIT_LIBS
681P11KIT_CFLAGS
682HAVE_SITNL_FALSE
683HAVE_SITNL_TRUE
684libsystemd_LIBS
685libsystemd_CFLAGS
686ENABLE_SYSTEMD_FALSE
687ENABLE_SYSTEMD_TRUE
688LZ4_LIBS
689LZ4_CFLAGS
690LZO_LIBS
691LZO_CFLAGS
692MBEDTLS_LIBS
693MBEDTLS_CFLAGS
694OPENSSL_LIBS
695OPENSSL_CFLAGS
696PKCS11_HELPER_LIBS
697PKCS11_HELPER_CFLAGS
698LIBPAM_LIBS
699LIBPAM_CFLAGS
700SELINUX_LIBS
701TAP_CFLAGS
702SOCKETS_LIBS
703DL_LIBS
704RC
705LT_SYS_LIBRARY_PATH
706OTOOL64
707OTOOL
708LIPO
709NMEDIT
710DSYMUTIL
711MANIFEST_TOOL
712RANLIB
713ac_ct_AR
714AR
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
720LIBTOOL
721OBJDUMP
722DLLTOOL
723AS
724HAVE_PYDOCUTILS_FALSE
725HAVE_PYDOCUTILS_TRUE
726RST2HTML
727RST2MAN
728TMPFILES_DIR
729SYSTEMD_UNIT_DIR
730SYSTEMD_ASK_PASSWORD
731GIT
732NETSTAT
733IPROUTE
734ROUTE
735IFCONFIG
736SED
737LN_S
738PKG_CONFIG_LIBDIR
739PKG_CONFIG_PATH
740PKG_CONFIG
741TARGET_LINUX_FALSE
742TARGET_LINUX_TRUE
743PLUGINDIR
744EGREP
745GREP
746CPP
747am__fastdepCC_FALSE
748am__fastdepCC_TRUE
749CCDEPMODE
750am__nodep
751AMDEPBACKSLASH
752AMDEP_FALSE
753AMDEP_TRUE
754am__include
755DEPDIR
756OBJEXT
757EXEEXT
758ac_ct_CC
759CPPFLAGS
760LDFLAGS
761CFLAGS
762CC
763host_os
764host_vendor
765host_cpu
766host
767build_os
768build_vendor
769build_cpu
770build
771AM_BACKSLASH
772AM_DEFAULT_VERBOSITY
773AM_DEFAULT_V
774AM_V
775am__untar
776am__tar
777AMTAR
778am__leading_dot
779SET_MAKE
780AWK
781mkdir_p
782MKDIR_P
783INSTALL_STRIP_PROGRAM
784STRIP
785install_sh
786MAKEINFO
787AUTOHEADER
788AUTOMAKE
789AUTOCONF
790ACLOCAL
791VERSION
792PACKAGE
793CYGPATH_W
794am__isrc
795INSTALL_DATA
796INSTALL_SCRIPT
797INSTALL_PROGRAM
798OPENVPN_VERSION_PATCH
799OPENVPN_VERSION_MINOR
800OPENVPN_VERSION_MAJOR
801target_alias
802host_alias
803build_alias
804LIBS
805ECHO_T
806ECHO_N
807ECHO_C
808DEFS
809mandir
810localedir
811libdir
812psdir
813pdfdir
814dvidir
815htmldir
816infodir
817docdir
818oldincludedir
819includedir
820runstatedir
821localstatedir
822sharedstatedir
823sysconfdir
824datadir
825datarootdir
826libexecdir
827sbindir
828bindir
829program_transform_name
830prefix
831exec_prefix
832PACKAGE_URL
833PACKAGE_BUGREPORT
834PACKAGE_STRING
835PACKAGE_VERSION
836PACKAGE_TARNAME
837PACKAGE_NAME
838PATH_SEPARATOR
839SHELL
840am__quote'
841ac_subst_files=''
842ac_user_opts='
843enable_option_checking
844enable_silent_rules
845enable_dependency_tracking
846enable_lzo
847enable_lz4
848enable_comp_stub
849enable_ofb_cfb
850enable_x509_alt_username
851enable_plugins
852enable_management
853enable_pkcs11
854enable_fragment
855enable_multihome
856enable_port_share
857enable_debug
858enable_small
859enable_iproute2
860enable_def_auth
861enable_pf
862enable_plugin_auth_pam
863enable_plugin_down_root
864enable_pam_dlopen
865enable_strict
866enable_pedantic
867enable_werror
868enable_strict_options
869enable_selinux
870enable_systemd
871enable_async_push
872with_special_build
873with_mem_check
874with_crypto_library
875enable_shared
876enable_static
877with_pic
878enable_fast_install
879with_aix_soname
880with_gnu_ld
881with_sysroot
882enable_libtool_lock
883enable_unit_tests
884'
885      ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP
894PLUGINDIR
895PKG_CONFIG
896PKG_CONFIG_PATH
897PKG_CONFIG_LIBDIR
898IFCONFIG
899ROUTE
900IPROUTE
901NETSTAT
902GIT
903SYSTEMD_ASK_PASSWORD
904SYSTEMD_UNIT_DIR
905TMPFILES_DIR
906RST2MAN
907RST2HTML
908LT_SYS_LIBRARY_PATH
909TAP_CFLAGS
910LIBPAM_CFLAGS
911LIBPAM_LIBS
912PKCS11_HELPER_CFLAGS
913PKCS11_HELPER_LIBS
914OPENSSL_CFLAGS
915OPENSSL_LIBS
916MBEDTLS_CFLAGS
917MBEDTLS_LIBS
918LZO_CFLAGS
919LZO_LIBS
920LZ4_CFLAGS
921LZ4_LIBS
922libsystemd_CFLAGS
923libsystemd_LIBS
924P11KIT_CFLAGS
925P11KIT_LIBS
926OPTIONAL_INOTIFY_CFLAGS
927OPTIONAL_INOTIFY_LIBS
928CMOCKA_CFLAGS
929CMOCKA_LIBS'
930
931
932# Initialize some variables set by options.
933ac_init_help=
934ac_init_version=false
935ac_unrecognized_opts=
936ac_unrecognized_sep=
937# The variables have the same names as the options, with
938# dashes changed to underlines.
939cache_file=/dev/null
940exec_prefix=NONE
941no_create=
942no_recursion=
943prefix=NONE
944program_prefix=NONE
945program_suffix=NONE
946program_transform_name=s,x,x,
947silent=
948site=
949srcdir=
950verbose=
951x_includes=NONE
952x_libraries=NONE
953
954# Installation directory options.
955# These are left unexpanded so users can "make install exec_prefix=/foo"
956# and all the variables that are supposed to be based on exec_prefix
957# by default will actually change.
958# Use braces instead of parens because sh, perl, etc. also accept them.
959# (The list follows the same order as the GNU Coding Standards.)
960bindir='${exec_prefix}/bin'
961sbindir='${exec_prefix}/sbin'
962libexecdir='${exec_prefix}/libexec'
963datarootdir='${prefix}/share'
964datadir='${datarootdir}'
965sysconfdir='${prefix}/etc'
966sharedstatedir='${prefix}/com'
967localstatedir='${prefix}/var'
968runstatedir='${localstatedir}/run'
969includedir='${prefix}/include'
970oldincludedir='/usr/include'
971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
980
981ac_prev=
982ac_dashdash=
983for ac_option
984do
985  # If the previous option needs an argument, assign it.
986  if test -n "$ac_prev"; then
987    eval $ac_prev=\$ac_option
988    ac_prev=
989    continue
990  fi
991
992  case $ac_option in
993  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994  *=)   ac_optarg= ;;
995  *)    ac_optarg=yes ;;
996  esac
997
998  # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000  case $ac_dashdash$ac_option in
1001  --)
1002    ac_dashdash=yes ;;
1003
1004  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005    ac_prev=bindir ;;
1006  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007    bindir=$ac_optarg ;;
1008
1009  -build | --build | --buil | --bui | --bu)
1010    ac_prev=build_alias ;;
1011  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012    build_alias=$ac_optarg ;;
1013
1014  -cache-file | --cache-file | --cache-fil | --cache-fi \
1015  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016    ac_prev=cache_file ;;
1017  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019    cache_file=$ac_optarg ;;
1020
1021  --config-cache | -C)
1022    cache_file=config.cache ;;
1023
1024  -datadir | --datadir | --datadi | --datad)
1025    ac_prev=datadir ;;
1026  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027    datadir=$ac_optarg ;;
1028
1029  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030  | --dataroo | --dataro | --datar)
1031    ac_prev=datarootdir ;;
1032  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034    datarootdir=$ac_optarg ;;
1035
1036  -disable-* | --disable-*)
1037    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040      as_fn_error $? "invalid feature name: $ac_useropt"
1041    ac_useropt_orig=$ac_useropt
1042    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043    case $ac_user_opts in
1044      *"
1045"enable_$ac_useropt"
1046"*) ;;
1047      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048	 ac_unrecognized_sep=', ';;
1049    esac
1050    eval enable_$ac_useropt=no ;;
1051
1052  -docdir | --docdir | --docdi | --doc | --do)
1053    ac_prev=docdir ;;
1054  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055    docdir=$ac_optarg ;;
1056
1057  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058    ac_prev=dvidir ;;
1059  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060    dvidir=$ac_optarg ;;
1061
1062  -enable-* | --enable-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error $? "invalid feature name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -runstatedir | --runstatedir | --runstatedi | --runstated \
1222  | --runstate | --runstat | --runsta | --runst | --runs \
1223  | --run | --ru | --r)
1224    ac_prev=runstatedir ;;
1225  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1226  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1227  | --run=* | --ru=* | --r=*)
1228    runstatedir=$ac_optarg ;;
1229
1230  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231    ac_prev=sbindir ;;
1232  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233  | --sbi=* | --sb=*)
1234    sbindir=$ac_optarg ;;
1235
1236  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238  | --sharedst | --shareds | --shared | --share | --shar \
1239  | --sha | --sh)
1240    ac_prev=sharedstatedir ;;
1241  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244  | --sha=* | --sh=*)
1245    sharedstatedir=$ac_optarg ;;
1246
1247  -site | --site | --sit)
1248    ac_prev=site ;;
1249  -site=* | --site=* | --sit=*)
1250    site=$ac_optarg ;;
1251
1252  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253    ac_prev=srcdir ;;
1254  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255    srcdir=$ac_optarg ;;
1256
1257  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258  | --syscon | --sysco | --sysc | --sys | --sy)
1259    ac_prev=sysconfdir ;;
1260  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262    sysconfdir=$ac_optarg ;;
1263
1264  -target | --target | --targe | --targ | --tar | --ta | --t)
1265    ac_prev=target_alias ;;
1266  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267    target_alias=$ac_optarg ;;
1268
1269  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270    verbose=yes ;;
1271
1272  -version | --version | --versio | --versi | --vers | -V)
1273    ac_init_version=: ;;
1274
1275  -with-* | --with-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      as_fn_error $? "invalid package name: $ac_useropt"
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=\$ac_optarg ;;
1290
1291  -without-* | --without-*)
1292    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295      as_fn_error $? "invalid package name: $ac_useropt"
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=no ;;
1306
1307  --x)
1308    # Obsolete; use --with-x.
1309    with_x=yes ;;
1310
1311  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312  | --x-incl | --x-inc | --x-in | --x-i)
1313    ac_prev=x_includes ;;
1314  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316    x_includes=$ac_optarg ;;
1317
1318  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320    ac_prev=x_libraries ;;
1321  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323    x_libraries=$ac_optarg ;;
1324
1325  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326Try \`$0 --help' for more information"
1327    ;;
1328
1329  *=*)
1330    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331    # Reject names that are not valid shell variable names.
1332    case $ac_envvar in #(
1333      '' | [0-9]* | *[!_$as_cr_alnum]* )
1334      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335    esac
1336    eval $ac_envvar=\$ac_optarg
1337    export $ac_envvar ;;
1338
1339  *)
1340    # FIXME: should be removed in autoconf 3.0.
1341    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1345    ;;
1346
1347  esac
1348done
1349
1350if test -n "$ac_prev"; then
1351  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352  as_fn_error $? "missing argument to $ac_option"
1353fi
1354
1355if test -n "$ac_unrecognized_opts"; then
1356  case $enable_option_checking in
1357    no) ;;
1358    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360  esac
1361fi
1362
1363# Check all directory arguments for consistency.
1364for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365		datadir sysconfdir sharedstatedir localstatedir includedir \
1366		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367		libdir localedir mandir runstatedir
1368do
1369  eval ac_val=\$$ac_var
1370  # Remove trailing slashes.
1371  case $ac_val in
1372    */ )
1373      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374      eval $ac_var=\$ac_val;;
1375  esac
1376  # Be sure to have absolute directory names.
1377  case $ac_val in
1378    [\\/$]* | ?:[\\/]* )  continue;;
1379    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380  esac
1381  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1382done
1383
1384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
1386# FIXME: To remove some day.
1387build=$build_alias
1388host=$host_alias
1389target=$target_alias
1390
1391# FIXME: To remove some day.
1392if test "x$host_alias" != x; then
1393  if test "x$build_alias" = x; then
1394    cross_compiling=maybe
1395  elif test "x$build_alias" != "x$host_alias"; then
1396    cross_compiling=yes
1397  fi
1398fi
1399
1400ac_tool_prefix=
1401test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403test "$silent" = yes && exec 6>/dev/null
1404
1405
1406ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407ac_ls_di=`ls -di .` &&
1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409  as_fn_error $? "working directory cannot be determined"
1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411  as_fn_error $? "pwd does not report name of working directory"
1412
1413
1414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416  ac_srcdir_defaulted=yes
1417  # Try the directory containing this script, then the parent directory.
1418  ac_confdir=`$as_dirname -- "$as_myself" ||
1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420	 X"$as_myself" : 'X\(//\)[^/]' \| \
1421	 X"$as_myself" : 'X\(//\)$' \| \
1422	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423$as_echo X"$as_myself" |
1424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425	    s//\1/
1426	    q
1427	  }
1428	  /^X\(\/\/\)[^/].*/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\).*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  s/.*/./; q'`
1441  srcdir=$ac_confdir
1442  if test ! -r "$srcdir/$ac_unique_file"; then
1443    srcdir=..
1444  fi
1445else
1446  ac_srcdir_defaulted=no
1447fi
1448if test ! -r "$srcdir/$ac_unique_file"; then
1449  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451fi
1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453ac_abs_confdir=`(
1454	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455	pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458  srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468  eval ac_env_${ac_var}_value=\$${ac_var}
1469  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
1472
1473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477  # Omit some internal or obsolete options to make the list less imposing.
1478  # This message is too long to be a string in the A/UX 3.1 sh.
1479  cat <<_ACEOF
1480\`configure' configures OpenVPN 2.5.6 to adapt to many kinds of systems.
1481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490  -h, --help              display this help and exit
1491      --help=short        display options specific to this package
1492      --help=recursive    display the short help of all the included packages
1493  -V, --version           display version information and exit
1494  -q, --quiet, --silent   do not print \`checking ...' messages
1495      --cache-file=FILE   cache test results in FILE [disabled]
1496  -C, --config-cache      alias for \`--cache-file=config.cache'
1497  -n, --no-create         do not create output files
1498      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500Installation directories:
1501  --prefix=PREFIX         install architecture-independent files in PREFIX
1502                          [$ac_default_prefix]
1503  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                          [PREFIX]
1505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
1514  --bindir=DIR            user executables [EPREFIX/bin]
1515  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516  --libexecdir=DIR        program executables [EPREFIX/libexec]
1517  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1521  --libdir=DIR            object code libraries [EPREFIX/lib]
1522  --includedir=DIR        C header files [PREFIX/include]
1523  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526  --infodir=DIR           info documentation [DATAROOTDIR/info]
1527  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528  --mandir=DIR            man documentation [DATAROOTDIR/man]
1529  --docdir=DIR            documentation root [DATAROOTDIR/doc/openvpn]
1530  --htmldir=DIR           html documentation [DOCDIR]
1531  --dvidir=DIR            dvi documentation [DOCDIR]
1532  --pdfdir=DIR            pdf documentation [DOCDIR]
1533  --psdir=DIR             ps documentation [DOCDIR]
1534_ACEOF
1535
1536  cat <<\_ACEOF
1537
1538Program names:
1539  --program-prefix=PREFIX            prepend PREFIX to installed program names
1540  --program-suffix=SUFFIX            append SUFFIX to installed program names
1541  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543System types:
1544  --build=BUILD     configure for building on BUILD [guessed]
1545  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546_ACEOF
1547fi
1548
1549if test -n "$ac_init_help"; then
1550  case $ac_init_help in
1551     short | recursive ) echo "Configuration of OpenVPN 2.5.6:";;
1552   esac
1553  cat <<\_ACEOF
1554
1555Optional Features:
1556  --disable-option-checking  ignore unrecognized --enable/--with options
1557  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559  --enable-silent-rules   less verbose build output (undo: "make V=1")
1560  --disable-silent-rules  verbose build output (undo: "make V=0")
1561  --enable-dependency-tracking
1562                          do not reject slow dependency extractors
1563  --disable-dependency-tracking
1564                          speeds up one-time build
1565  --disable-lzo           disable LZO compression support [default=yes]
1566  --disable-lz4           Disable LZ4 compression support
1567  --enable-comp-stub      Don't compile compression support but still allow limited interoperability with compression-enabled peers
1568  --disable-ofb-cfb       disable support for OFB and CFB cipher modes
1569                          [default=yes]
1570  --enable-x509-alt-username
1571                          enable the --x509-username-field feature
1572                          [default=no]
1573  --disable-plugins       disable plug-in support [default=yes]
1574  --disable-management    disable management server support [default=yes]
1575  --enable-pkcs11         enable pkcs11 support [default=no]
1576  --disable-fragment      disable internal fragmentation support (--fragment)
1577                          [default=yes]
1578  --disable-multihome     disable multi-homed UDP server support (--multihome)
1579                          [default=yes]
1580  --disable-port-share    disable TCP server port-share support (--port-share)
1581                          [default=yes]
1582  --disable-debug         disable debugging support (disable gremlin and verb
1583                          7+ messages) [default=yes]
1584  --enable-small          enable smaller executable size (disable OCC, usage
1585                          message, and verb 4 parm list) [default=no]
1586  --enable-iproute2       enable support for iproute2 [default=no]
1587  --disable-def-auth      disable deferred authentication [default=yes]
1588  --disable-pf            disable internal packet filter [default=yes]
1589  --disable-plugin-auth-pam
1590                          disable auth-pam plugin [default=platform specific]
1591  --disable-plugin-down-root
1592                          disable down-root plugin [default=platform specific]
1593  --enable-pam-dlopen     dlopen libpam [default=no]
1594  --enable-strict         enable strict compiler warnings (debugging option)
1595                          [default=no]
1596  --enable-pedantic       enable pedantic compiler warnings, will not generate
1597                          a working executable (debugging option) [default=no]
1598  --enable-werror         promote compiler warnings to errors, will cause
1599                          builds to fail if the compiler issues warnings
1600                          (debugging option) [default=no]
1601  --enable-strict-options enable strict options check between peers (debugging
1602                          option) [default=no]
1603  --enable-selinux        enable SELinux support [default=no]
1604  --enable-systemd        enable systemd support [default=no]
1605  --enable-async-push     enable async-push support for plugins providing
1606                          deferred authentication [default=no]
1607  --enable-shared[=PKGS]  build shared libraries [default=yes]
1608  --enable-static[=PKGS]  build static libraries [default=yes]
1609  --enable-fast-install[=PKGS]
1610                          optimize for fast installation [default=yes]
1611  --disable-libtool-lock  avoid locking (might break parallel builds)
1612  --disable-unit-tests    Disables building and running the unit tests suite
1613
1614Optional Packages:
1615  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1616  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1617  --with-special-build=STRING
1618                          specify special build string
1619  --with-mem-check=TYPE   build with debug memory checking,
1620                          TYPE=no|dmalloc|valgrind|ssl [default=no]
1621  --with-crypto-library=library
1622                          build with the given crypto library,
1623                          TYPE=openssl|mbedtls [default=openssl]
1624  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1625                          both]
1626  --with-aix-soname=aix|svr4|both
1627                          shared library versioning (aka "SONAME") variant to
1628                          provide on AIX, [default=aix].
1629  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1630  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1631                          compiler's sysroot if not specified).
1632
1633Some influential environment variables:
1634  CC          C compiler command
1635  CFLAGS      C compiler flags
1636  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1637              nonstandard directory <lib dir>
1638  LIBS        libraries to pass to the linker, e.g. -l<library>
1639  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1640              you have headers in a nonstandard directory <include dir>
1641  CPP         C preprocessor
1642  PLUGINDIR   Path of plug-in directory [default=LIBDIR/openvpn/plugins]
1643  PKG_CONFIG  path to pkg-config utility
1644  PKG_CONFIG_PATH
1645              directories to add to pkg-config's search path
1646  PKG_CONFIG_LIBDIR
1647              path overriding pkg-config's built-in search path
1648  IFCONFIG    full path to ipconfig utility
1649  ROUTE       full path to route utility
1650  IPROUTE     full path to ip utility
1651  NETSTAT     path to netstat utility
1652  GIT         path to git utility
1653  SYSTEMD_ASK_PASSWORD
1654              path to systemd-ask-password utility
1655  SYSTEMD_UNIT_DIR
1656              Path of systemd unit directory [default=LIBDIR/systemd/system]
1657  TMPFILES_DIR
1658              Path of tmpfiles directory [default=LIBDIR/tmpfiles.d]
1659  RST2MAN     path to rst2man utility
1660  RST2HTML    path to rst2html utility
1661  LT_SYS_LIBRARY_PATH
1662              User-defined run-time library search path.
1663  TAP_CFLAGS  C compiler flags for tap
1664  LIBPAM_CFLAGS
1665              C compiler flags for libpam
1666  LIBPAM_LIBS linker flags for libpam
1667  PKCS11_HELPER_CFLAGS
1668              C compiler flags for PKCS11_HELPER, overriding pkg-config
1669  PKCS11_HELPER_LIBS
1670              linker flags for PKCS11_HELPER, overriding pkg-config
1671  OPENSSL_CFLAGS
1672              C compiler flags for OpenSSL
1673  OPENSSL_LIBS
1674              linker flags for OpenSSL
1675  MBEDTLS_CFLAGS
1676              C compiler flags for mbedtls
1677  MBEDTLS_LIBS
1678              linker flags for mbedtls
1679  LZO_CFLAGS  C compiler flags for lzo
1680  LZO_LIBS    linker flags for lzo
1681  LZ4_CFLAGS  C compiler flags for lz4
1682  LZ4_LIBS    linker flags for lz4
1683  libsystemd_CFLAGS
1684              C compiler flags for libsystemd, overriding pkg-config
1685  libsystemd_LIBS
1686              linker flags for libsystemd, overriding pkg-config
1687  P11KIT_CFLAGS
1688              C compiler flags for P11KIT, overriding pkg-config
1689  P11KIT_LIBS linker flags for P11KIT, overriding pkg-config
1690  OPTIONAL_INOTIFY_CFLAGS
1691              C compiler flags for OPTIONAL_INOTIFY, overriding pkg-config
1692  OPTIONAL_INOTIFY_LIBS
1693              linker flags for OPTIONAL_INOTIFY, overriding pkg-config
1694  CMOCKA_CFLAGS
1695              C compiler flags for CMOCKA, overriding pkg-config
1696  CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
1697
1698Use these variables to override the choices made by `configure' or to help
1699it to find libraries and programs with nonstandard names/locations.
1700
1701Report bugs to <openvpn-users@lists.sourceforge.net>.
1702_ACEOF
1703ac_status=$?
1704fi
1705
1706if test "$ac_init_help" = "recursive"; then
1707  # If there are subdirs, report their specific --help.
1708  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709    test -d "$ac_dir" ||
1710      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711      continue
1712    ac_builddir=.
1713
1714case "$ac_dir" in
1715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716*)
1717  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718  # A ".." for each directory in $ac_dir_suffix.
1719  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720  case $ac_top_builddir_sub in
1721  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723  esac ;;
1724esac
1725ac_abs_top_builddir=$ac_pwd
1726ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727# for backward compatibility:
1728ac_top_builddir=$ac_top_build_prefix
1729
1730case $srcdir in
1731  .)  # We are building in place.
1732    ac_srcdir=.
1733    ac_top_srcdir=$ac_top_builddir_sub
1734    ac_abs_top_srcdir=$ac_pwd ;;
1735  [\\/]* | ?:[\\/]* )  # Absolute name.
1736    ac_srcdir=$srcdir$ac_dir_suffix;
1737    ac_top_srcdir=$srcdir
1738    ac_abs_top_srcdir=$srcdir ;;
1739  *) # Relative name.
1740    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741    ac_top_srcdir=$ac_top_build_prefix$srcdir
1742    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743esac
1744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745
1746    cd "$ac_dir" || { ac_status=$?; continue; }
1747    # Check for guested configure.
1748    if test -f "$ac_srcdir/configure.gnu"; then
1749      echo &&
1750      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751    elif test -f "$ac_srcdir/configure"; then
1752      echo &&
1753      $SHELL "$ac_srcdir/configure" --help=recursive
1754    else
1755      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756    fi || ac_status=$?
1757    cd "$ac_pwd" || { ac_status=$?; break; }
1758  done
1759fi
1760
1761test -n "$ac_init_help" && exit $ac_status
1762if $ac_init_version; then
1763  cat <<\_ACEOF
1764OpenVPN configure 2.5.6
1765generated by GNU Autoconf 2.69
1766
1767Copyright (C) 2012 Free Software Foundation, Inc.
1768This configure script is free software; the Free Software Foundation
1769gives unlimited permission to copy, distribute and modify it.
1770_ACEOF
1771  exit
1772fi
1773
1774## ------------------------ ##
1775## Autoconf initialization. ##
1776## ------------------------ ##
1777
1778# ac_fn_c_try_compile LINENO
1779# --------------------------
1780# Try to compile conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_compile ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  rm -f conftest.$ac_objext
1785  if { { ac_try="$ac_compile"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_compile") 2>conftest.err
1793  ac_status=$?
1794  if test -s conftest.err; then
1795    grep -v '^ *+' conftest.err >conftest.er1
1796    cat conftest.er1 >&5
1797    mv -f conftest.er1 conftest.err
1798  fi
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; } && {
1801	 test -z "$ac_c_werror_flag" ||
1802	 test ! -s conftest.err
1803       } && test -s conftest.$ac_objext; then :
1804  ac_retval=0
1805else
1806  $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809	ac_retval=1
1810fi
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812  as_fn_set_status $ac_retval
1813
1814} # ac_fn_c_try_compile
1815
1816# ac_fn_c_try_cpp LINENO
1817# ----------------------
1818# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1819ac_fn_c_try_cpp ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  if { { ac_try="$ac_cpp conftest.$ac_ext"
1823case "(($ac_try" in
1824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825  *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1830  ac_status=$?
1831  if test -s conftest.err; then
1832    grep -v '^ *+' conftest.err >conftest.er1
1833    cat conftest.er1 >&5
1834    mv -f conftest.er1 conftest.err
1835  fi
1836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837  test $ac_status = 0; } > conftest.i && {
1838	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1839	 test ! -s conftest.err
1840       }; then :
1841  ac_retval=0
1842else
1843  $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846    ac_retval=1
1847fi
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_cpp
1852
1853# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1854# -------------------------------------------------------
1855# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1856# the include files in INCLUDES and setting the cache variable VAR
1857# accordingly.
1858ac_fn_c_check_header_mongrel ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  if eval \${$3+:} false; then :
1862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if eval \${$3+:} false; then :
1865  $as_echo_n "(cached) " >&6
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870else
1871  # Is the header compilable?
1872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1873$as_echo_n "checking $2 usability... " >&6; }
1874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$4
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  ac_header_compiler=yes
1881else
1882  ac_header_compiler=no
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1886$as_echo "$ac_header_compiler" >&6; }
1887
1888# Is the header present?
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1890$as_echo_n "checking $2 presence... " >&6; }
1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893#include <$2>
1894_ACEOF
1895if ac_fn_c_try_cpp "$LINENO"; then :
1896  ac_header_preproc=yes
1897else
1898  ac_header_preproc=no
1899fi
1900rm -f conftest.err conftest.i conftest.$ac_ext
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1902$as_echo "$ac_header_preproc" >&6; }
1903
1904# So?  What about this header?
1905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1906  yes:no: )
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1908$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911    ;;
1912  no:yes:* )
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1914$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1916$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1918$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1920$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923( $as_echo "## -------------------------------------------------- ##
1924## Report this to openvpn-users@lists.sourceforge.net ##
1925## -------------------------------------------------- ##"
1926     ) | sed "s/^/$as_me: WARNING:     /" >&2
1927    ;;
1928esac
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933else
1934  eval "$3=\$ac_header_compiler"
1935fi
1936eval ac_res=\$$3
1937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939fi
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_c_check_header_mongrel
1943
1944# ac_fn_c_try_run LINENO
1945# ----------------------
1946# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1947# that executables *can* be run.
1948ac_fn_c_try_run ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  if { { ac_try="$ac_link"
1952case "(($ac_try" in
1953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954  *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958  (eval "$ac_link") 2>&5
1959  ac_status=$?
1960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962  { { case "(($ac_try" in
1963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964  *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968  (eval "$ac_try") 2>&5
1969  ac_status=$?
1970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971  test $ac_status = 0; }; }; then :
1972  ac_retval=0
1973else
1974  $as_echo "$as_me: program exited with status $ac_status" >&5
1975       $as_echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978       ac_retval=$ac_status
1979fi
1980  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982  as_fn_set_status $ac_retval
1983
1984} # ac_fn_c_try_run
1985
1986# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1987# -------------------------------------------------------
1988# Tests whether HEADER exists and can be compiled using the include files in
1989# INCLUDES, setting the cache variable VAR accordingly.
1990ac_fn_c_check_header_compile ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if eval \${$3+:} false; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$4
2001#include <$2>
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004  eval "$3=yes"
2005else
2006  eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_c_check_header_compile
2016
2017# ac_fn_c_try_link LINENO
2018# -----------------------
2019# Try to link conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_c_try_link ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  rm -f conftest.$ac_objext conftest$ac_exeext
2024  if { { ac_try="$ac_link"
2025case "(($ac_try" in
2026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027  *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031  (eval "$ac_link") 2>conftest.err
2032  ac_status=$?
2033  if test -s conftest.err; then
2034    grep -v '^ *+' conftest.err >conftest.er1
2035    cat conftest.er1 >&5
2036    mv -f conftest.er1 conftest.err
2037  fi
2038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039  test $ac_status = 0; } && {
2040	 test -z "$ac_c_werror_flag" ||
2041	 test ! -s conftest.err
2042       } && test -s conftest$ac_exeext && {
2043	 test "$cross_compiling" = yes ||
2044	 test -x conftest$ac_exeext
2045       }; then :
2046  ac_retval=0
2047else
2048  $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051	ac_retval=1
2052fi
2053  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055  # interfere with the next link command; also delete a directory that is
2056  # left behind by Apple's compiler.  We do this before executing the actions.
2057  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059  as_fn_set_status $ac_retval
2060
2061} # ac_fn_c_try_link
2062
2063# ac_fn_c_check_func LINENO FUNC VAR
2064# ----------------------------------
2065# Tests whether FUNC exists, setting the cache variable VAR accordingly
2066ac_fn_c_check_func ()
2067{
2068  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if eval \${$3+:} false; then :
2072  $as_echo_n "(cached) " >&6
2073else
2074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h.  */
2076/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2077   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2078#define $2 innocuous_$2
2079
2080/* System header to define __stub macros and hopefully few prototypes,
2081    which can conflict with char $2 (); below.
2082    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2083    <limits.h> exists even on freestanding compilers.  */
2084
2085#ifdef __STDC__
2086# include <limits.h>
2087#else
2088# include <assert.h>
2089#endif
2090
2091#undef $2
2092
2093/* Override any GCC internal prototype to avoid an error.
2094   Use char because int might match the return type of a GCC
2095   builtin and then its argument prototype would still apply.  */
2096#ifdef __cplusplus
2097extern "C"
2098#endif
2099char $2 ();
2100/* The GNU C library defines this for functions which it implements
2101    to always fail with ENOSYS.  Some functions are actually named
2102    something starting with __ and the normal name is an alias.  */
2103#if defined __stub_$2 || defined __stub___$2
2104choke me
2105#endif
2106
2107int
2108main ()
2109{
2110return $2 ();
2111  ;
2112  return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_link "$LINENO"; then :
2116  eval "$3=yes"
2117else
2118  eval "$3=no"
2119fi
2120rm -f core conftest.err conftest.$ac_objext \
2121    conftest$ac_exeext conftest.$ac_ext
2122fi
2123eval ac_res=\$$3
2124	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125$as_echo "$ac_res" >&6; }
2126  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128} # ac_fn_c_check_func
2129
2130# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131# -------------------------------------------
2132# Tests whether TYPE exists after having included INCLUDES, setting cache
2133# variable VAR accordingly.
2134ac_fn_c_check_type ()
2135{
2136  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138$as_echo_n "checking for $2... " >&6; }
2139if eval \${$3+:} false; then :
2140  $as_echo_n "(cached) " >&6
2141else
2142  eval "$3=no"
2143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$4
2146int
2147main ()
2148{
2149if (sizeof ($2))
2150	 return 0;
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$4
2159int
2160main ()
2161{
2162if (sizeof (($2)))
2163	    return 0;
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169
2170else
2171  eval "$3=yes"
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176fi
2177eval ac_res=\$$3
2178	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182} # ac_fn_c_check_type
2183
2184# ac_fn_c_find_intX_t LINENO BITS VAR
2185# -----------------------------------
2186# Finds a signed integer type with width BITS, setting cache variable VAR
2187# accordingly.
2188ac_fn_c_find_intX_t ()
2189{
2190  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2192$as_echo_n "checking for int$2_t... " >&6; }
2193if eval \${$3+:} false; then :
2194  $as_echo_n "(cached) " >&6
2195else
2196  eval "$3=no"
2197     # Order is important - never check a type that is potentially smaller
2198     # than half of the expected target width.
2199     for ac_type in int$2_t 'int' 'long int' \
2200	 'long long int' 'short int' 'signed char'; do
2201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202/* end confdefs.h.  */
2203$ac_includes_default
2204	     enum { N = $2 / 2 - 1 };
2205int
2206main ()
2207{
2208static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2209test_array [0] = 0;
2210return test_array [0];
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h.  */
2219$ac_includes_default
2220	        enum { N = $2 / 2 - 1 };
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2225		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2226test_array [0] = 0;
2227return test_array [0];
2228
2229  ;
2230  return 0;
2231}
2232_ACEOF
2233if ac_fn_c_try_compile "$LINENO"; then :
2234
2235else
2236  case $ac_type in #(
2237  int$2_t) :
2238    eval "$3=yes" ;; #(
2239  *) :
2240    eval "$3=\$ac_type" ;;
2241esac
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246       if eval test \"x\$"$3"\" = x"no"; then :
2247
2248else
2249  break
2250fi
2251     done
2252fi
2253eval ac_res=\$$3
2254	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
2256  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257
2258} # ac_fn_c_find_intX_t
2259
2260# ac_fn_c_find_uintX_t LINENO BITS VAR
2261# ------------------------------------
2262# Finds an unsigned integer type with width BITS, setting cache variable VAR
2263# accordingly.
2264ac_fn_c_find_uintX_t ()
2265{
2266  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2268$as_echo_n "checking for uint$2_t... " >&6; }
2269if eval \${$3+:} false; then :
2270  $as_echo_n "(cached) " >&6
2271else
2272  eval "$3=no"
2273     # Order is important - never check a type that is potentially smaller
2274     # than half of the expected target width.
2275     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2276	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2277       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h.  */
2279$ac_includes_default
2280int
2281main ()
2282{
2283static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2284test_array [0] = 0;
2285return test_array [0];
2286
2287  ;
2288  return 0;
2289}
2290_ACEOF
2291if ac_fn_c_try_compile "$LINENO"; then :
2292  case $ac_type in #(
2293  uint$2_t) :
2294    eval "$3=yes" ;; #(
2295  *) :
2296    eval "$3=\$ac_type" ;;
2297esac
2298fi
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300       if eval test \"x\$"$3"\" = x"no"; then :
2301
2302else
2303  break
2304fi
2305     done
2306fi
2307eval ac_res=\$$3
2308	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309$as_echo "$ac_res" >&6; }
2310  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312} # ac_fn_c_find_uintX_t
2313
2314# ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2315# --------------------------------------------------------------
2316# Tries to find the compile-time value of EXPR in a program that includes
2317# INCLUDES, setting VAR accordingly. Returns whether the value could be
2318# computed
2319ac_fn_c_compute_int ()
2320{
2321  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322  if test "$cross_compiling" = yes; then
2323    # Depending upon the size, compute the lo and hi bounds.
2324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h.  */
2326$4
2327int
2328main ()
2329{
2330static int test_array [1 - 2 * !(($2) >= 0)];
2331test_array [0] = 0;
2332return test_array [0];
2333
2334  ;
2335  return 0;
2336}
2337_ACEOF
2338if ac_fn_c_try_compile "$LINENO"; then :
2339  ac_lo=0 ac_mid=0
2340  while :; do
2341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342/* end confdefs.h.  */
2343$4
2344int
2345main ()
2346{
2347static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2348test_array [0] = 0;
2349return test_array [0];
2350
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355if ac_fn_c_try_compile "$LINENO"; then :
2356  ac_hi=$ac_mid; break
2357else
2358  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2359			if test $ac_lo -le $ac_mid; then
2360			  ac_lo= ac_hi=
2361			  break
2362			fi
2363			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2364fi
2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366  done
2367else
2368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369/* end confdefs.h.  */
2370$4
2371int
2372main ()
2373{
2374static int test_array [1 - 2 * !(($2) < 0)];
2375test_array [0] = 0;
2376return test_array [0];
2377
2378  ;
2379  return 0;
2380}
2381_ACEOF
2382if ac_fn_c_try_compile "$LINENO"; then :
2383  ac_hi=-1 ac_mid=-1
2384  while :; do
2385    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386/* end confdefs.h.  */
2387$4
2388int
2389main ()
2390{
2391static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2392test_array [0] = 0;
2393return test_array [0];
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399if ac_fn_c_try_compile "$LINENO"; then :
2400  ac_lo=$ac_mid; break
2401else
2402  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2403			if test $ac_mid -le $ac_hi; then
2404			  ac_lo= ac_hi=
2405			  break
2406			fi
2407			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2408fi
2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410  done
2411else
2412  ac_lo= ac_hi=
2413fi
2414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415fi
2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417# Binary search between lo and hi bounds.
2418while test "x$ac_lo" != "x$ac_hi"; do
2419  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421/* end confdefs.h.  */
2422$4
2423int
2424main ()
2425{
2426static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2427test_array [0] = 0;
2428return test_array [0];
2429
2430  ;
2431  return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_compile "$LINENO"; then :
2435  ac_hi=$ac_mid
2436else
2437  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2438fi
2439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440done
2441case $ac_lo in #((
2442?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2443'') ac_retval=1 ;;
2444esac
2445  else
2446    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447/* end confdefs.h.  */
2448$4
2449static long int longval () { return $2; }
2450static unsigned long int ulongval () { return $2; }
2451#include <stdio.h>
2452#include <stdlib.h>
2453int
2454main ()
2455{
2456
2457  FILE *f = fopen ("conftest.val", "w");
2458  if (! f)
2459    return 1;
2460  if (($2) < 0)
2461    {
2462      long int i = longval ();
2463      if (i != ($2))
2464	return 1;
2465      fprintf (f, "%ld", i);
2466    }
2467  else
2468    {
2469      unsigned long int i = ulongval ();
2470      if (i != ($2))
2471	return 1;
2472      fprintf (f, "%lu", i);
2473    }
2474  /* Do not output a trailing newline, as this causes \r\n confusion
2475     on some platforms.  */
2476  return ferror (f) || fclose (f) != 0;
2477
2478  ;
2479  return 0;
2480}
2481_ACEOF
2482if ac_fn_c_try_run "$LINENO"; then :
2483  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2484else
2485  ac_retval=1
2486fi
2487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2488  conftest.$ac_objext conftest.beam conftest.$ac_ext
2489rm -f conftest.val
2490
2491  fi
2492  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493  as_fn_set_status $ac_retval
2494
2495} # ac_fn_c_compute_int
2496
2497# ac_fn_c_check_member LINENO AGGR MEMBER ax_cv_socklen_t_equiv INCLUDES
2498# ----------------------------------------------------------------------
2499# Tries to find if the field MEMBER exists in type AGGR, after including
2500# INCLUDES, setting cache variable VAR accordingly.
2501ac_fn_c_check_member ()
2502{
2503  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2505$as_echo_n "checking for $2.$3... " >&6; }
2506if eval \${$4+:} false; then :
2507  $as_echo_n "(cached) " >&6
2508else
2509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510/* end confdefs.h.  */
2511$5
2512int
2513main ()
2514{
2515static $2 ac_aggr;
2516if (ac_aggr.$3)
2517return 0;
2518  ;
2519  return 0;
2520}
2521_ACEOF
2522if ac_fn_c_try_compile "$LINENO"; then :
2523  eval "$4=yes"
2524else
2525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526/* end confdefs.h.  */
2527$5
2528int
2529main ()
2530{
2531static $2 ac_aggr;
2532if (sizeof ac_aggr.$3)
2533return 0;
2534  ;
2535  return 0;
2536}
2537_ACEOF
2538if ac_fn_c_try_compile "$LINENO"; then :
2539  eval "$4=yes"
2540else
2541  eval "$4=no"
2542fi
2543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544fi
2545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546fi
2547eval ac_res=\$$4
2548	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549$as_echo "$ac_res" >&6; }
2550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551
2552} # ac_fn_c_check_member
2553
2554# ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2555# ---------------------------------------------------------------
2556# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2557# accordingly.
2558ac_fn_c_check_decl ()
2559{
2560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561  as_decl_name=`echo $2|sed 's/ *(.*//'`
2562  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2564$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2565if eval \${$3+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569/* end confdefs.h.  */
2570$4
2571int
2572main ()
2573{
2574#ifndef $as_decl_name
2575#ifdef __cplusplus
2576  (void) $as_decl_use;
2577#else
2578  (void) $as_decl_name;
2579#endif
2580#endif
2581
2582  ;
2583  return 0;
2584}
2585_ACEOF
2586if ac_fn_c_try_compile "$LINENO"; then :
2587  eval "$3=yes"
2588else
2589  eval "$3=no"
2590fi
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592fi
2593eval ac_res=\$$3
2594	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595$as_echo "$ac_res" >&6; }
2596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597
2598} # ac_fn_c_check_decl
2599cat >config.log <<_ACEOF
2600This file contains any messages produced by compilers while
2601running configure, to aid debugging if configure makes a mistake.
2602
2603It was created by OpenVPN $as_me 2.5.6, which was
2604generated by GNU Autoconf 2.69.  Invocation command line was
2605
2606  $ $0 $@
2607
2608_ACEOF
2609exec 5>>config.log
2610{
2611cat <<_ASUNAME
2612## --------- ##
2613## Platform. ##
2614## --------- ##
2615
2616hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2617uname -m = `(uname -m) 2>/dev/null || echo unknown`
2618uname -r = `(uname -r) 2>/dev/null || echo unknown`
2619uname -s = `(uname -s) 2>/dev/null || echo unknown`
2620uname -v = `(uname -v) 2>/dev/null || echo unknown`
2621
2622/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2623/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2624
2625/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2626/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2627/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2628/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2629/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2630/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2631/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2632
2633_ASUNAME
2634
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640    $as_echo "PATH: $as_dir"
2641  done
2642IFS=$as_save_IFS
2643
2644} >&5
2645
2646cat >&5 <<_ACEOF
2647
2648
2649## ----------- ##
2650## Core tests. ##
2651## ----------- ##
2652
2653_ACEOF
2654
2655
2656# Keep a trace of the command line.
2657# Strip out --no-create and --no-recursion so they do not pile up.
2658# Strip out --silent because we don't want to record it for future runs.
2659# Also quote any args containing shell meta-characters.
2660# Make two passes to allow for proper duplicate-argument suppression.
2661ac_configure_args=
2662ac_configure_args0=
2663ac_configure_args1=
2664ac_must_keep_next=false
2665for ac_pass in 1 2
2666do
2667  for ac_arg
2668  do
2669    case $ac_arg in
2670    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2671    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2672    | -silent | --silent | --silen | --sile | --sil)
2673      continue ;;
2674    *\'*)
2675      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2676    esac
2677    case $ac_pass in
2678    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2679    2)
2680      as_fn_append ac_configure_args1 " '$ac_arg'"
2681      if test $ac_must_keep_next = true; then
2682	ac_must_keep_next=false # Got value, back to normal.
2683      else
2684	case $ac_arg in
2685	  *=* | --config-cache | -C | -disable-* | --disable-* \
2686	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2687	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2688	  | -with-* | --with-* | -without-* | --without-* | --x)
2689	    case "$ac_configure_args0 " in
2690	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2691	    esac
2692	    ;;
2693	  -* ) ac_must_keep_next=true ;;
2694	esac
2695      fi
2696      as_fn_append ac_configure_args " '$ac_arg'"
2697      ;;
2698    esac
2699  done
2700done
2701{ ac_configure_args0=; unset ac_configure_args0;}
2702{ ac_configure_args1=; unset ac_configure_args1;}
2703
2704# When interrupted or exit'd, cleanup temporary files, and complete
2705# config.log.  We remove comments because anyway the quotes in there
2706# would cause problems or look ugly.
2707# WARNING: Use '\'' to represent an apostrophe within the trap.
2708# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2709trap 'exit_status=$?
2710  # Save into config.log some information that might help in debugging.
2711  {
2712    echo
2713
2714    $as_echo "## ---------------- ##
2715## Cache variables. ##
2716## ---------------- ##"
2717    echo
2718    # The following way of writing the cache mishandles newlines in values,
2719(
2720  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2721    eval ac_val=\$$ac_var
2722    case $ac_val in #(
2723    *${as_nl}*)
2724      case $ac_var in #(
2725      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2726$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2727      esac
2728      case $ac_var in #(
2729      _ | IFS | as_nl) ;; #(
2730      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2731      *) { eval $ac_var=; unset $ac_var;} ;;
2732      esac ;;
2733    esac
2734  done
2735  (set) 2>&1 |
2736    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2737    *${as_nl}ac_space=\ *)
2738      sed -n \
2739	"s/'\''/'\''\\\\'\'''\''/g;
2740	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2741      ;; #(
2742    *)
2743      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2744      ;;
2745    esac |
2746    sort
2747)
2748    echo
2749
2750    $as_echo "## ----------------- ##
2751## Output variables. ##
2752## ----------------- ##"
2753    echo
2754    for ac_var in $ac_subst_vars
2755    do
2756      eval ac_val=\$$ac_var
2757      case $ac_val in
2758      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2759      esac
2760      $as_echo "$ac_var='\''$ac_val'\''"
2761    done | sort
2762    echo
2763
2764    if test -n "$ac_subst_files"; then
2765      $as_echo "## ------------------- ##
2766## File substitutions. ##
2767## ------------------- ##"
2768      echo
2769      for ac_var in $ac_subst_files
2770      do
2771	eval ac_val=\$$ac_var
2772	case $ac_val in
2773	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774	esac
2775	$as_echo "$ac_var='\''$ac_val'\''"
2776      done | sort
2777      echo
2778    fi
2779
2780    if test -s confdefs.h; then
2781      $as_echo "## ----------- ##
2782## confdefs.h. ##
2783## ----------- ##"
2784      echo
2785      cat confdefs.h
2786      echo
2787    fi
2788    test "$ac_signal" != 0 &&
2789      $as_echo "$as_me: caught signal $ac_signal"
2790    $as_echo "$as_me: exit $exit_status"
2791  } >&5
2792  rm -f core *.core core.conftest.* &&
2793    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2794    exit $exit_status
2795' 0
2796for ac_signal in 1 2 13 15; do
2797  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2798done
2799ac_signal=0
2800
2801# confdefs.h avoids OS command line length limits that DEFS can exceed.
2802rm -f -r conftest* confdefs.h
2803
2804$as_echo "/* confdefs.h */" > confdefs.h
2805
2806# Predefined preprocessor variables.
2807
2808cat >>confdefs.h <<_ACEOF
2809#define PACKAGE_NAME "$PACKAGE_NAME"
2810_ACEOF
2811
2812cat >>confdefs.h <<_ACEOF
2813#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2814_ACEOF
2815
2816cat >>confdefs.h <<_ACEOF
2817#define PACKAGE_VERSION "$PACKAGE_VERSION"
2818_ACEOF
2819
2820cat >>confdefs.h <<_ACEOF
2821#define PACKAGE_STRING "$PACKAGE_STRING"
2822_ACEOF
2823
2824cat >>confdefs.h <<_ACEOF
2825#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2826_ACEOF
2827
2828cat >>confdefs.h <<_ACEOF
2829#define PACKAGE_URL "$PACKAGE_URL"
2830_ACEOF
2831
2832
2833# Let the site file select an alternate cache file if it wants to.
2834# Prefer an explicitly selected file to automatically selected ones.
2835ac_site_file1=NONE
2836ac_site_file2=NONE
2837if test -n "$CONFIG_SITE"; then
2838  # We do not want a PATH search for config.site.
2839  case $CONFIG_SITE in #((
2840    -*)  ac_site_file1=./$CONFIG_SITE;;
2841    */*) ac_site_file1=$CONFIG_SITE;;
2842    *)   ac_site_file1=./$CONFIG_SITE;;
2843  esac
2844elif test "x$prefix" != xNONE; then
2845  ac_site_file1=$prefix/share/config.site
2846  ac_site_file2=$prefix/etc/config.site
2847else
2848  ac_site_file1=$ac_default_prefix/share/config.site
2849  ac_site_file2=$ac_default_prefix/etc/config.site
2850fi
2851for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2852do
2853  test "x$ac_site_file" = xNONE && continue
2854  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2855    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2856$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2857    sed 's/^/| /' "$ac_site_file" >&5
2858    . "$ac_site_file" \
2859      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861as_fn_error $? "failed to load site script $ac_site_file
2862See \`config.log' for more details" "$LINENO" 5; }
2863  fi
2864done
2865
2866if test -r "$cache_file"; then
2867  # Some versions of bash will fail to source /dev/null (special files
2868  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2869  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2870    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2871$as_echo "$as_me: loading cache $cache_file" >&6;}
2872    case $cache_file in
2873      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2874      *)                      . "./$cache_file";;
2875    esac
2876  fi
2877else
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2879$as_echo "$as_me: creating cache $cache_file" >&6;}
2880  >$cache_file
2881fi
2882
2883# Check that the precious variables saved in the cache have kept the same
2884# value.
2885ac_cache_corrupted=false
2886for ac_var in $ac_precious_vars; do
2887  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2888  eval ac_new_set=\$ac_env_${ac_var}_set
2889  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2890  eval ac_new_val=\$ac_env_${ac_var}_value
2891  case $ac_old_set,$ac_new_set in
2892    set,)
2893      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2894$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2895      ac_cache_corrupted=: ;;
2896    ,set)
2897      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2898$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2899      ac_cache_corrupted=: ;;
2900    ,);;
2901    *)
2902      if test "x$ac_old_val" != "x$ac_new_val"; then
2903	# differences in whitespace do not lead to failure.
2904	ac_old_val_w=`echo x $ac_old_val`
2905	ac_new_val_w=`echo x $ac_new_val`
2906	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2907	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2908$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2909	  ac_cache_corrupted=:
2910	else
2911	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2912$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2913	  eval $ac_var=\$ac_old_val
2914	fi
2915	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2916$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2917	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2918$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2919      fi;;
2920  esac
2921  # Pass precious variables to config.status.
2922  if test "$ac_new_set" = set; then
2923    case $ac_new_val in
2924    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2925    *) ac_arg=$ac_var=$ac_new_val ;;
2926    esac
2927    case " $ac_configure_args " in
2928      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2929      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2930    esac
2931  fi
2932done
2933if $ac_cache_corrupted; then
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2937$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2938  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2939fi
2940## -------------------- ##
2941## Main body of script. ##
2942## -------------------- ##
2943
2944ac_ext=c
2945ac_cpp='$CPP $CPPFLAGS'
2946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949
2950
2951
2952
2953
2954
2955
2956
2957if test -z "${docdir}"; then
2958	docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2959
2960fi
2961if test -z "${htmldir}"; then
2962	htmldir="\$(docdir)"
2963
2964fi
2965
2966
2967$as_echo "#define OPENVPN_VERSION_RESOURCE 2,5,6,0" >>confdefs.h
2968
2969OPENVPN_VERSION_MAJOR=2
2970
2971OPENVPN_VERSION_MINOR=5
2972
2973OPENVPN_VERSION_PATCH=.6
2974
2975
2976$as_echo "#define OPENVPN_VERSION_MAJOR 2" >>confdefs.h
2977
2978
2979$as_echo "#define OPENVPN_VERSION_MINOR 5" >>confdefs.h
2980
2981
2982$as_echo "#define OPENVPN_VERSION_PATCH \".6\"" >>confdefs.h
2983
2984
2985ac_aux_dir=
2986for ac_dir in . "$srcdir"/.; do
2987  if test -f "$ac_dir/install-sh"; then
2988    ac_aux_dir=$ac_dir
2989    ac_install_sh="$ac_aux_dir/install-sh -c"
2990    break
2991  elif test -f "$ac_dir/install.sh"; then
2992    ac_aux_dir=$ac_dir
2993    ac_install_sh="$ac_aux_dir/install.sh -c"
2994    break
2995  elif test -f "$ac_dir/shtool"; then
2996    ac_aux_dir=$ac_dir
2997    ac_install_sh="$ac_aux_dir/shtool install -c"
2998    break
2999  fi
3000done
3001if test -z "$ac_aux_dir"; then
3002  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
3003fi
3004
3005# These three variables are undocumented and unsupported,
3006# and are intended to be withdrawn in a future Autoconf release.
3007# They can cause serious problems if a builder's source tree is in a directory
3008# whose full name contains unusual characters.
3009ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3010ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3011ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3012
3013
3014ac_config_headers="$ac_config_headers config.h include/openvpn-plugin.h"
3015
3016
3017
3018
3019
3020# This foreign option prevents autoreconf from overriding our COPYING and
3021# INSTALL targets:
3022am__api_version='1.16'
3023
3024# Find a good install program.  We prefer a C program (faster),
3025# so one script is as good as another.  But avoid the broken or
3026# incompatible versions:
3027# SysV /etc/install, /usr/sbin/install
3028# SunOS /usr/etc/install
3029# IRIX /sbin/install
3030# AIX /bin/install
3031# AmigaOS /C/install, which installs bootblocks on floppy discs
3032# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3033# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3034# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3035# OS/2's system install, which has a completely different semantic
3036# ./install, which can be erroneously created by make from ./install.sh.
3037# Reject install programs that cannot install multiple files.
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3039$as_echo_n "checking for a BSD-compatible install... " >&6; }
3040if test -z "$INSTALL"; then
3041if ${ac_cv_path_install+:} false; then :
3042  $as_echo_n "(cached) " >&6
3043else
3044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    # Account for people who put trailing slashes in PATH elements.
3050case $as_dir/ in #((
3051  ./ | .// | /[cC]/* | \
3052  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3053  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3054  /usr/ucb/* ) ;;
3055  *)
3056    # OSF1 and SCO ODT 3.0 have their own names for install.
3057    # Don't use installbsd from OSF since it installs stuff as root
3058    # by default.
3059    for ac_prog in ginstall scoinst install; do
3060      for ac_exec_ext in '' $ac_executable_extensions; do
3061	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3062	  if test $ac_prog = install &&
3063	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3064	    # AIX install.  It has an incompatible calling convention.
3065	    :
3066	  elif test $ac_prog = install &&
3067	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3068	    # program-specific install script used by HP pwplus--don't use.
3069	    :
3070	  else
3071	    rm -rf conftest.one conftest.two conftest.dir
3072	    echo one > conftest.one
3073	    echo two > conftest.two
3074	    mkdir conftest.dir
3075	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3076	      test -s conftest.one && test -s conftest.two &&
3077	      test -s conftest.dir/conftest.one &&
3078	      test -s conftest.dir/conftest.two
3079	    then
3080	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3081	      break 3
3082	    fi
3083	  fi
3084	fi
3085      done
3086    done
3087    ;;
3088esac
3089
3090  done
3091IFS=$as_save_IFS
3092
3093rm -rf conftest.one conftest.two conftest.dir
3094
3095fi
3096  if test "${ac_cv_path_install+set}" = set; then
3097    INSTALL=$ac_cv_path_install
3098  else
3099    # As a last resort, use the slow shell script.  Don't cache a
3100    # value for INSTALL within a source directory, because that will
3101    # break other packages using the cache if that directory is
3102    # removed, or if the value is a relative name.
3103    INSTALL=$ac_install_sh
3104  fi
3105fi
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3107$as_echo "$INSTALL" >&6; }
3108
3109# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3110# It thinks the first close brace ends the variable substitution.
3111test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3112
3113test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3114
3115test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3116
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3118$as_echo_n "checking whether build environment is sane... " >&6; }
3119# Reject unsafe characters in $srcdir or the absolute working directory
3120# name.  Accept space and tab only in the latter.
3121am_lf='
3122'
3123case `pwd` in
3124  *[\\\"\#\$\&\'\`$am_lf]*)
3125    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3126esac
3127case $srcdir in
3128  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3129    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3130esac
3131
3132# Do 'set' in a subshell so we don't clobber the current shell's
3133# arguments.  Must try -L first in case configure is actually a
3134# symlink; some systems play weird games with the mod time of symlinks
3135# (eg FreeBSD returns the mod time of the symlink's containing
3136# directory).
3137if (
3138   am_has_slept=no
3139   for am_try in 1 2; do
3140     echo "timestamp, slept: $am_has_slept" > conftest.file
3141     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3142     if test "$*" = "X"; then
3143	# -L didn't work.
3144	set X `ls -t "$srcdir/configure" conftest.file`
3145     fi
3146     if test "$*" != "X $srcdir/configure conftest.file" \
3147	&& test "$*" != "X conftest.file $srcdir/configure"; then
3148
3149	# If neither matched, then we have a broken ls.  This can happen
3150	# if, for instance, CONFIG_SHELL is bash and it inherits a
3151	# broken ls alias from the environment.  This has actually
3152	# happened.  Such a system could not be considered "sane".
3153	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3154  alias in your environment" "$LINENO" 5
3155     fi
3156     if test "$2" = conftest.file || test $am_try -eq 2; then
3157       break
3158     fi
3159     # Just in case.
3160     sleep 1
3161     am_has_slept=yes
3162   done
3163   test "$2" = conftest.file
3164   )
3165then
3166   # Ok.
3167   :
3168else
3169   as_fn_error $? "newly created file is older than distributed files!
3170Check your system clock" "$LINENO" 5
3171fi
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173$as_echo "yes" >&6; }
3174# If we didn't sleep, we still need to ensure time stamps of config.status and
3175# generated files are strictly newer.
3176am_sleep_pid=
3177if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3178  ( sleep 1 ) &
3179  am_sleep_pid=$!
3180fi
3181
3182rm -f conftest.file
3183
3184test "$program_prefix" != NONE &&
3185  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3186# Use a double $ so make ignores it.
3187test "$program_suffix" != NONE &&
3188  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3189# Double any \ or $.
3190# By default was `s,x,x', remove it if useless.
3191ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3192program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3193
3194# Expand $ac_aux_dir to an absolute path.
3195am_aux_dir=`cd "$ac_aux_dir" && pwd`
3196
3197if test x"${MISSING+set}" != xset; then
3198  case $am_aux_dir in
3199  *\ * | *\	*)
3200    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3201  *)
3202    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3203  esac
3204fi
3205# Use eval to expand $SHELL
3206if eval "$MISSING --is-lightweight"; then
3207  am_missing_run="$MISSING "
3208else
3209  am_missing_run=
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3211$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3212fi
3213
3214if test x"${install_sh+set}" != xset; then
3215  case $am_aux_dir in
3216  *\ * | *\	*)
3217    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3218  *)
3219    install_sh="\${SHELL} $am_aux_dir/install-sh"
3220  esac
3221fi
3222
3223# Installed binaries are usually stripped using 'strip' when the user
3224# run "make install-strip".  However 'strip' might not be the right
3225# tool to use in cross-compilation environments, therefore Automake
3226# will honor the 'STRIP' environment variable to overrule this program.
3227if test "$cross_compiling" != no; then
3228  if test -n "$ac_tool_prefix"; then
3229  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3230set dummy ${ac_tool_prefix}strip; ac_word=$2
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232$as_echo_n "checking for $ac_word... " >&6; }
3233if ${ac_cv_prog_STRIP+:} false; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  if test -n "$STRIP"; then
3237  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244    for ac_exec_ext in '' $ac_executable_extensions; do
3245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248    break 2
3249  fi
3250done
3251  done
3252IFS=$as_save_IFS
3253
3254fi
3255fi
3256STRIP=$ac_cv_prog_STRIP
3257if test -n "$STRIP"; then
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3259$as_echo "$STRIP" >&6; }
3260else
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263fi
3264
3265
3266fi
3267if test -z "$ac_cv_prog_STRIP"; then
3268  ac_ct_STRIP=$STRIP
3269  # Extract the first word of "strip", so it can be a program name with args.
3270set dummy strip; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
3273if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3274  $as_echo_n "(cached) " >&6
3275else
3276  if test -n "$ac_ct_STRIP"; then
3277  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286    ac_cv_prog_ac_ct_STRIP="strip"
3287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291  done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3297if test -n "$ac_ct_STRIP"; then
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3299$as_echo "$ac_ct_STRIP" >&6; }
3300else
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305  if test "x$ac_ct_STRIP" = x; then
3306    STRIP=":"
3307  else
3308    case $cross_compiling:$ac_tool_warned in
3309yes:)
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3312ac_tool_warned=yes ;;
3313esac
3314    STRIP=$ac_ct_STRIP
3315  fi
3316else
3317  STRIP="$ac_cv_prog_STRIP"
3318fi
3319
3320fi
3321INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3322
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3324$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3325if test -z "$MKDIR_P"; then
3326  if ${ac_cv_path_mkdir+:} false; then :
3327  $as_echo_n "(cached) " >&6
3328else
3329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334    for ac_prog in mkdir gmkdir; do
3335	 for ac_exec_ext in '' $ac_executable_extensions; do
3336	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3337	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3338	     'mkdir (GNU coreutils) '* | \
3339	     'mkdir (coreutils) '* | \
3340	     'mkdir (fileutils) '4.1*)
3341	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3342	       break 3;;
3343	   esac
3344	 done
3345       done
3346  done
3347IFS=$as_save_IFS
3348
3349fi
3350
3351  test -d ./--version && rmdir ./--version
3352  if test "${ac_cv_path_mkdir+set}" = set; then
3353    MKDIR_P="$ac_cv_path_mkdir -p"
3354  else
3355    # As a last resort, use the slow shell script.  Don't cache a
3356    # value for MKDIR_P within a source directory, because that will
3357    # break other packages using the cache if that directory is
3358    # removed, or if the value is a relative name.
3359    MKDIR_P="$ac_install_sh -d"
3360  fi
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3363$as_echo "$MKDIR_P" >&6; }
3364
3365for ac_prog in gawk mawk nawk awk
3366do
3367  # Extract the first word of "$ac_prog", so it can be a program name with args.
3368set dummy $ac_prog; ac_word=$2
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370$as_echo_n "checking for $ac_word... " >&6; }
3371if ${ac_cv_prog_AWK+:} false; then :
3372  $as_echo_n "(cached) " >&6
3373else
3374  if test -n "$AWK"; then
3375  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  test -z "$as_dir" && as_dir=.
3382    for ac_exec_ext in '' $ac_executable_extensions; do
3383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384    ac_cv_prog_AWK="$ac_prog"
3385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386    break 2
3387  fi
3388done
3389  done
3390IFS=$as_save_IFS
3391
3392fi
3393fi
3394AWK=$ac_cv_prog_AWK
3395if test -n "$AWK"; then
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3397$as_echo "$AWK" >&6; }
3398else
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400$as_echo "no" >&6; }
3401fi
3402
3403
3404  test -n "$AWK" && break
3405done
3406
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3408$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3409set x ${MAKE-make}
3410ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3411if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3412  $as_echo_n "(cached) " >&6
3413else
3414  cat >conftest.make <<\_ACEOF
3415SHELL = /bin/sh
3416all:
3417	@echo '@@@%%%=$(MAKE)=@@@%%%'
3418_ACEOF
3419# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3420case `${MAKE-make} -f conftest.make 2>/dev/null` in
3421  *@@@%%%=?*=@@@%%%*)
3422    eval ac_cv_prog_make_${ac_make}_set=yes;;
3423  *)
3424    eval ac_cv_prog_make_${ac_make}_set=no;;
3425esac
3426rm -f conftest.make
3427fi
3428if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430$as_echo "yes" >&6; }
3431  SET_MAKE=
3432else
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434$as_echo "no" >&6; }
3435  SET_MAKE="MAKE=${MAKE-make}"
3436fi
3437
3438rm -rf .tst 2>/dev/null
3439mkdir .tst 2>/dev/null
3440if test -d .tst; then
3441  am__leading_dot=.
3442else
3443  am__leading_dot=_
3444fi
3445rmdir .tst 2>/dev/null
3446
3447# Check whether --enable-silent-rules was given.
3448if test "${enable_silent_rules+set}" = set; then :
3449  enableval=$enable_silent_rules;
3450fi
3451
3452case $enable_silent_rules in # (((
3453  yes) AM_DEFAULT_VERBOSITY=0;;
3454   no) AM_DEFAULT_VERBOSITY=1;;
3455    *) AM_DEFAULT_VERBOSITY=1;;
3456esac
3457am_make=${MAKE-make}
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3459$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3460if ${am_cv_make_support_nested_variables+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  if $as_echo 'TRUE=$(BAR$(V))
3464BAR0=false
3465BAR1=true
3466V=1
3467am__doit:
3468	@$(TRUE)
3469.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3470  am_cv_make_support_nested_variables=yes
3471else
3472  am_cv_make_support_nested_variables=no
3473fi
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3476$as_echo "$am_cv_make_support_nested_variables" >&6; }
3477if test $am_cv_make_support_nested_variables = yes; then
3478    AM_V='$(V)'
3479  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3480else
3481  AM_V=$AM_DEFAULT_VERBOSITY
3482  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3483fi
3484AM_BACKSLASH='\'
3485
3486if test "`cd $srcdir && pwd`" != "`pwd`"; then
3487  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3488  # is not polluted with repeated "-I."
3489  am__isrc=' -I$(srcdir)'
3490  # test to see if srcdir already configured
3491  if test -f $srcdir/config.status; then
3492    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3493  fi
3494fi
3495
3496# test whether we have cygpath
3497if test -z "$CYGPATH_W"; then
3498  if (cygpath --version) >/dev/null 2>/dev/null; then
3499    CYGPATH_W='cygpath -w'
3500  else
3501    CYGPATH_W=echo
3502  fi
3503fi
3504
3505
3506# Define the identity of the package.
3507 PACKAGE='openvpn'
3508 VERSION='2.5.6'
3509
3510
3511cat >>confdefs.h <<_ACEOF
3512#define PACKAGE "$PACKAGE"
3513_ACEOF
3514
3515
3516cat >>confdefs.h <<_ACEOF
3517#define VERSION "$VERSION"
3518_ACEOF
3519
3520# Some tools Automake needs.
3521
3522ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3523
3524
3525AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3526
3527
3528AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3529
3530
3531AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3532
3533
3534MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3535
3536# For better backward compatibility.  To be removed once Automake 1.9.x
3537# dies out for good.  For more background, see:
3538# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3539# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3540mkdir_p='$(MKDIR_P)'
3541
3542# We need awk for the "check" target (and possibly the TAP driver).  The
3543# system "awk" is bad on some platforms.
3544# Always define AMTAR for backward compatibility.  Yes, it's still used
3545# in the wild :-(  We should find a proper way to deprecate it ...
3546AMTAR='$${TAR-tar}'
3547
3548
3549# We'll loop over all known methods to create a tar archive until one works.
3550_am_tools='gnutar  pax cpio none'
3551
3552am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3553
3554
3555
3556
3557
3558
3559# POSIX will say in a future version that running "rm -f" with no argument
3560# is OK; and we want to be able to make that assumption in our Makefile
3561# recipes.  So use an aggressive probe to check that the usage we want is
3562# actually supported "in the wild" to an acceptable degree.
3563# See automake bug#10828.
3564# To make any issue more visible, cause the running configure to be aborted
3565# by default if the 'rm' program in use doesn't match our expectations; the
3566# user can still override this though.
3567if rm -f && rm -fr && rm -rf; then : OK; else
3568  cat >&2 <<'END'
3569Oops!
3570
3571Your 'rm' program seems unable to run without file operands specified
3572on the command line, even when the '-f' option is present.  This is contrary
3573to the behaviour of most rm programs out there, and not conforming with
3574the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3575
3576Please tell bug-automake@gnu.org about your system, including the value
3577of your $PATH and any error possibly output before this message.  This
3578can help us improve future automake versions.
3579
3580END
3581  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3582    echo 'Configuration will proceed anyway, since you have set the' >&2
3583    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3584    echo >&2
3585  else
3586    cat >&2 <<'END'
3587Aborting the configuration process, to ensure you take notice of the issue.
3588
3589You can download and install GNU coreutils to get an 'rm' implementation
3590that behaves properly: <https://www.gnu.org/software/coreutils/>.
3591
3592If you want to complete the configuration process using your problematic
3593'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3594to "yes", and re-run configure.
3595
3596END
3597    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3598  fi
3599fi
3600 # Make sure we can run config.sub.
3601$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3602  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3605$as_echo_n "checking build system type... " >&6; }
3606if ${ac_cv_build+:} false; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  ac_build_alias=$build_alias
3610test "x$ac_build_alias" = x &&
3611  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3612test "x$ac_build_alias" = x &&
3613  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3614ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3615  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3616
3617fi
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3619$as_echo "$ac_cv_build" >&6; }
3620case $ac_cv_build in
3621*-*-*) ;;
3622*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3623esac
3624build=$ac_cv_build
3625ac_save_IFS=$IFS; IFS='-'
3626set x $ac_cv_build
3627shift
3628build_cpu=$1
3629build_vendor=$2
3630shift; shift
3631# Remember, the first character of IFS is used to create $*,
3632# except with old shells:
3633build_os=$*
3634IFS=$ac_save_IFS
3635case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3636
3637
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3639$as_echo_n "checking host system type... " >&6; }
3640if ${ac_cv_host+:} false; then :
3641  $as_echo_n "(cached) " >&6
3642else
3643  if test "x$host_alias" = x; then
3644  ac_cv_host=$ac_cv_build
3645else
3646  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3647    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3648fi
3649
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3652$as_echo "$ac_cv_host" >&6; }
3653case $ac_cv_host in
3654*-*-*) ;;
3655*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3656esac
3657host=$ac_cv_host
3658ac_save_IFS=$IFS; IFS='-'
3659set x $ac_cv_host
3660shift
3661host_cpu=$1
3662host_vendor=$2
3663shift; shift
3664# Remember, the first character of IFS is used to create $*,
3665# except with old shells:
3666host_os=$*
3667IFS=$ac_save_IFS
3668case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3669
3670
3671DEPDIR="${am__leading_dot}deps"
3672
3673ac_config_commands="$ac_config_commands depfiles"
3674
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3676$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3677cat > confinc.mk << 'END'
3678am__doit:
3679	@echo this is the am__doit target >confinc.out
3680.PHONY: am__doit
3681END
3682am__include="#"
3683am__quote=
3684# BSD make does it like this.
3685echo '.include "confinc.mk" # ignored' > confmf.BSD
3686# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3687echo 'include confinc.mk # ignored' > confmf.GNU
3688_am_result=no
3689for s in GNU BSD; do
3690  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3691   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }
3695  case $?:`cat confinc.out 2>/dev/null` in #(
3696  '0:this is the am__doit target') :
3697    case $s in #(
3698  BSD) :
3699    am__include='.include' am__quote='"' ;; #(
3700  *) :
3701    am__include='include' am__quote='' ;;
3702esac ;; #(
3703  *) :
3704     ;;
3705esac
3706  if test "$am__include" != "#"; then
3707    _am_result="yes ($s style)"
3708    break
3709  fi
3710done
3711rm -f confinc.* confmf.*
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3713$as_echo "${_am_result}" >&6; }
3714
3715# Check whether --enable-dependency-tracking was given.
3716if test "${enable_dependency_tracking+set}" = set; then :
3717  enableval=$enable_dependency_tracking;
3718fi
3719
3720if test "x$enable_dependency_tracking" != xno; then
3721  am_depcomp="$ac_aux_dir/depcomp"
3722  AMDEPBACKSLASH='\'
3723  am__nodep='_no'
3724fi
3725 if test "x$enable_dependency_tracking" != xno; then
3726  AMDEP_TRUE=
3727  AMDEP_FALSE='#'
3728else
3729  AMDEP_TRUE='#'
3730  AMDEP_FALSE=
3731fi
3732
3733
3734ac_ext=c
3735ac_cpp='$CPP $CPPFLAGS'
3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739if test -n "$ac_tool_prefix"; then
3740  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743$as_echo_n "checking for $ac_word... " >&6; }
3744if ${ac_cv_prog_CC+:} false; then :
3745  $as_echo_n "(cached) " >&6
3746else
3747  if test -n "$CC"; then
3748  ac_cv_prog_CC="$CC" # Let the user override the test.
3749else
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753  IFS=$as_save_IFS
3754  test -z "$as_dir" && as_dir=.
3755    for ac_exec_ext in '' $ac_executable_extensions; do
3756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759    break 2
3760  fi
3761done
3762  done
3763IFS=$as_save_IFS
3764
3765fi
3766fi
3767CC=$ac_cv_prog_CC
3768if test -n "$CC"; then
3769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770$as_echo "$CC" >&6; }
3771else
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773$as_echo "no" >&6; }
3774fi
3775
3776
3777fi
3778if test -z "$ac_cv_prog_CC"; then
3779  ac_ct_CC=$CC
3780  # Extract the first word of "gcc", so it can be a program name with args.
3781set dummy gcc; ac_word=$2
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783$as_echo_n "checking for $ac_word... " >&6; }
3784if ${ac_cv_prog_ac_ct_CC+:} false; then :
3785  $as_echo_n "(cached) " >&6
3786else
3787  if test -n "$ac_ct_CC"; then
3788  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789else
3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH
3792do
3793  IFS=$as_save_IFS
3794  test -z "$as_dir" && as_dir=.
3795    for ac_exec_ext in '' $ac_executable_extensions; do
3796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797    ac_cv_prog_ac_ct_CC="gcc"
3798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799    break 2
3800  fi
3801done
3802  done
3803IFS=$as_save_IFS
3804
3805fi
3806fi
3807ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808if test -n "$ac_ct_CC"; then
3809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810$as_echo "$ac_ct_CC" >&6; }
3811else
3812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813$as_echo "no" >&6; }
3814fi
3815
3816  if test "x$ac_ct_CC" = x; then
3817    CC=""
3818  else
3819    case $cross_compiling:$ac_tool_warned in
3820yes:)
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823ac_tool_warned=yes ;;
3824esac
3825    CC=$ac_ct_CC
3826  fi
3827else
3828  CC="$ac_cv_prog_CC"
3829fi
3830
3831if test -z "$CC"; then
3832          if test -n "$ac_tool_prefix"; then
3833    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834set dummy ${ac_tool_prefix}cc; ac_word=$2
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836$as_echo_n "checking for $ac_word... " >&6; }
3837if ${ac_cv_prog_CC+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  if test -n "$CC"; then
3841  ac_cv_prog_CC="$CC" # Let the user override the test.
3842else
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846  IFS=$as_save_IFS
3847  test -z "$as_dir" && as_dir=.
3848    for ac_exec_ext in '' $ac_executable_extensions; do
3849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850    ac_cv_prog_CC="${ac_tool_prefix}cc"
3851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852    break 2
3853  fi
3854done
3855  done
3856IFS=$as_save_IFS
3857
3858fi
3859fi
3860CC=$ac_cv_prog_CC
3861if test -n "$CC"; then
3862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863$as_echo "$CC" >&6; }
3864else
3865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866$as_echo "no" >&6; }
3867fi
3868
3869
3870  fi
3871fi
3872if test -z "$CC"; then
3873  # Extract the first word of "cc", so it can be a program name with args.
3874set dummy cc; ac_word=$2
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876$as_echo_n "checking for $ac_word... " >&6; }
3877if ${ac_cv_prog_CC+:} false; then :
3878  $as_echo_n "(cached) " >&6
3879else
3880  if test -n "$CC"; then
3881  ac_cv_prog_CC="$CC" # Let the user override the test.
3882else
3883  ac_prog_rejected=no
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887  IFS=$as_save_IFS
3888  test -z "$as_dir" && as_dir=.
3889    for ac_exec_ext in '' $ac_executable_extensions; do
3890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892       ac_prog_rejected=yes
3893       continue
3894     fi
3895    ac_cv_prog_CC="cc"
3896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897    break 2
3898  fi
3899done
3900  done
3901IFS=$as_save_IFS
3902
3903if test $ac_prog_rejected = yes; then
3904  # We found a bogon in the path, so make sure we never use it.
3905  set dummy $ac_cv_prog_CC
3906  shift
3907  if test $# != 0; then
3908    # We chose a different compiler from the bogus one.
3909    # However, it has the same basename, so the bogon will be chosen
3910    # first if we set CC to just the basename; use the full file name.
3911    shift
3912    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3913  fi
3914fi
3915fi
3916fi
3917CC=$ac_cv_prog_CC
3918if test -n "$CC"; then
3919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920$as_echo "$CC" >&6; }
3921else
3922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924fi
3925
3926
3927fi
3928if test -z "$CC"; then
3929  if test -n "$ac_tool_prefix"; then
3930  for ac_prog in cl.exe
3931  do
3932    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935$as_echo_n "checking for $ac_word... " >&6; }
3936if ${ac_cv_prog_CC+:} false; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  if test -n "$CC"; then
3940  ac_cv_prog_CC="$CC" # Let the user override the test.
3941else
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945  IFS=$as_save_IFS
3946  test -z "$as_dir" && as_dir=.
3947    for ac_exec_ext in '' $ac_executable_extensions; do
3948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951    break 2
3952  fi
3953done
3954  done
3955IFS=$as_save_IFS
3956
3957fi
3958fi
3959CC=$ac_cv_prog_CC
3960if test -n "$CC"; then
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962$as_echo "$CC" >&6; }
3963else
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
3966fi
3967
3968
3969    test -n "$CC" && break
3970  done
3971fi
3972if test -z "$CC"; then
3973  ac_ct_CC=$CC
3974  for ac_prog in cl.exe
3975do
3976  # Extract the first word of "$ac_prog", so it can be a program name with args.
3977set dummy $ac_prog; ac_word=$2
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
3980if ${ac_cv_prog_ac_ct_CC+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  if test -n "$ac_ct_CC"; then
3984  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991    for ac_exec_ext in '' $ac_executable_extensions; do
3992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993    ac_cv_prog_ac_ct_CC="$ac_prog"
3994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995    break 2
3996  fi
3997done
3998  done
3999IFS=$as_save_IFS
4000
4001fi
4002fi
4003ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004if test -n "$ac_ct_CC"; then
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006$as_echo "$ac_ct_CC" >&6; }
4007else
4008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
4010fi
4011
4012
4013  test -n "$ac_ct_CC" && break
4014done
4015
4016  if test "x$ac_ct_CC" = x; then
4017    CC=""
4018  else
4019    case $cross_compiling:$ac_tool_warned in
4020yes:)
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023ac_tool_warned=yes ;;
4024esac
4025    CC=$ac_ct_CC
4026  fi
4027fi
4028
4029fi
4030
4031
4032test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034as_fn_error $? "no acceptable C compiler found in \$PATH
4035See \`config.log' for more details" "$LINENO" 5; }
4036
4037# Provide some information about the compiler.
4038$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4039set X $ac_compile
4040ac_compiler=$2
4041for ac_option in --version -v -V -qversion; do
4042  { { ac_try="$ac_compiler $ac_option >&5"
4043case "(($ac_try" in
4044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045  *) ac_try_echo=$ac_try;;
4046esac
4047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048$as_echo "$ac_try_echo"; } >&5
4049  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050  ac_status=$?
4051  if test -s conftest.err; then
4052    sed '10a\
4053... rest of stderr output deleted ...
4054         10q' conftest.err >conftest.er1
4055    cat conftest.er1 >&5
4056  fi
4057  rm -f conftest.er1 conftest.err
4058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059  test $ac_status = 0; }
4060done
4061
4062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h.  */
4064
4065int
4066main ()
4067{
4068
4069  ;
4070  return 0;
4071}
4072_ACEOF
4073ac_clean_files_save=$ac_clean_files
4074ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4075# Try to create an executable without -o first, disregard a.out.
4076# It will help us diagnose broken compilers, and finding out an intuition
4077# of exeext.
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4079$as_echo_n "checking whether the C compiler works... " >&6; }
4080ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4081
4082# The possible output files:
4083ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4084
4085ac_rmfiles=
4086for ac_file in $ac_files
4087do
4088  case $ac_file in
4089    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4091  esac
4092done
4093rm -f $ac_rmfiles
4094
4095if { { ac_try="$ac_link_default"
4096case "(($ac_try" in
4097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098  *) ac_try_echo=$ac_try;;
4099esac
4100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101$as_echo "$ac_try_echo"; } >&5
4102  (eval "$ac_link_default") 2>&5
4103  ac_status=$?
4104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105  test $ac_status = 0; }; then :
4106  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4109# so that the user can short-circuit this test for compilers unknown to
4110# Autoconf.
4111for ac_file in $ac_files ''
4112do
4113  test -f "$ac_file" || continue
4114  case $ac_file in
4115    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4116	;;
4117    [ab].out )
4118	# We found the default executable, but exeext='' is most
4119	# certainly right.
4120	break;;
4121    *.* )
4122	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4123	then :; else
4124	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125	fi
4126	# We set ac_cv_exeext here because the later test for it is not
4127	# safe: cross compilers may not add the suffix if given an `-o'
4128	# argument, so we may need to know it at that point already.
4129	# Even if this section looks crufty: it has the advantage of
4130	# actually working.
4131	break;;
4132    * )
4133	break;;
4134  esac
4135done
4136test "$ac_cv_exeext" = no && ac_cv_exeext=
4137
4138else
4139  ac_file=''
4140fi
4141if test -z "$ac_file"; then :
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143$as_echo "no" >&6; }
4144$as_echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149as_fn_error 77 "C compiler cannot create executables
4150See \`config.log' for more details" "$LINENO" 5; }
4151else
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4153$as_echo "yes" >&6; }
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4156$as_echo_n "checking for C compiler default output file name... " >&6; }
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4158$as_echo "$ac_file" >&6; }
4159ac_exeext=$ac_cv_exeext
4160
4161rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4162ac_clean_files=$ac_clean_files_save
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4164$as_echo_n "checking for suffix of executables... " >&6; }
4165if { { ac_try="$ac_link"
4166case "(($ac_try" in
4167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168  *) ac_try_echo=$ac_try;;
4169esac
4170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171$as_echo "$ac_try_echo"; } >&5
4172  (eval "$ac_link") 2>&5
4173  ac_status=$?
4174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175  test $ac_status = 0; }; then :
4176  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4177# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4178# work properly (i.e., refer to `conftest.exe'), while it won't with
4179# `rm'.
4180for ac_file in conftest.exe conftest conftest.*; do
4181  test -f "$ac_file" || continue
4182  case $ac_file in
4183    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4184    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4185	  break;;
4186    * ) break;;
4187  esac
4188done
4189else
4190  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4193See \`config.log' for more details" "$LINENO" 5; }
4194fi
4195rm -f conftest conftest$ac_cv_exeext
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4197$as_echo "$ac_cv_exeext" >&6; }
4198
4199rm -f conftest.$ac_ext
4200EXEEXT=$ac_cv_exeext
4201ac_exeext=$EXEEXT
4202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204#include <stdio.h>
4205int
4206main ()
4207{
4208FILE *f = fopen ("conftest.out", "w");
4209 return ferror (f) || fclose (f) != 0;
4210
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215ac_clean_files="$ac_clean_files conftest.out"
4216# Check that the compiler produces executables we can run.  If not, either
4217# the compiler is broken, or we cross compile.
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4219$as_echo_n "checking whether we are cross compiling... " >&6; }
4220if test "$cross_compiling" != yes; then
4221  { { ac_try="$ac_link"
4222case "(($ac_try" in
4223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224  *) ac_try_echo=$ac_try;;
4225esac
4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227$as_echo "$ac_try_echo"; } >&5
4228  (eval "$ac_link") 2>&5
4229  ac_status=$?
4230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231  test $ac_status = 0; }
4232  if { ac_try='./conftest$ac_cv_exeext'
4233  { { case "(($ac_try" in
4234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235  *) ac_try_echo=$ac_try;;
4236esac
4237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238$as_echo "$ac_try_echo"; } >&5
4239  (eval "$ac_try") 2>&5
4240  ac_status=$?
4241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242  test $ac_status = 0; }; }; then
4243    cross_compiling=no
4244  else
4245    if test "$cross_compiling" = maybe; then
4246	cross_compiling=yes
4247    else
4248	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4250as_fn_error $? "cannot run C compiled programs.
4251If you meant to cross compile, use \`--host'.
4252See \`config.log' for more details" "$LINENO" 5; }
4253    fi
4254  fi
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4257$as_echo "$cross_compiling" >&6; }
4258
4259rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4260ac_clean_files=$ac_clean_files_save
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4262$as_echo_n "checking for suffix of object files... " >&6; }
4263if ${ac_cv_objext+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267/* end confdefs.h.  */
4268
4269int
4270main ()
4271{
4272
4273  ;
4274  return 0;
4275}
4276_ACEOF
4277rm -f conftest.o conftest.obj
4278if { { ac_try="$ac_compile"
4279case "(($ac_try" in
4280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281  *) ac_try_echo=$ac_try;;
4282esac
4283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284$as_echo "$ac_try_echo"; } >&5
4285  (eval "$ac_compile") 2>&5
4286  ac_status=$?
4287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288  test $ac_status = 0; }; then :
4289  for ac_file in conftest.o conftest.obj conftest.*; do
4290  test -f "$ac_file" || continue;
4291  case $ac_file in
4292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4293    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4294       break;;
4295  esac
4296done
4297else
4298  $as_echo "$as_me: failed program was:" >&5
4299sed 's/^/| /' conftest.$ac_ext >&5
4300
4301{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303as_fn_error $? "cannot compute suffix of object files: cannot compile
4304See \`config.log' for more details" "$LINENO" 5; }
4305fi
4306rm -f conftest.$ac_cv_objext conftest.$ac_ext
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4309$as_echo "$ac_cv_objext" >&6; }
4310OBJEXT=$ac_cv_objext
4311ac_objext=$OBJEXT
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4313$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4314if ${ac_cv_c_compiler_gnu+:} false; then :
4315  $as_echo_n "(cached) " >&6
4316else
4317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319
4320int
4321main ()
4322{
4323#ifndef __GNUC__
4324       choke me
4325#endif
4326
4327  ;
4328  return 0;
4329}
4330_ACEOF
4331if ac_fn_c_try_compile "$LINENO"; then :
4332  ac_compiler_gnu=yes
4333else
4334  ac_compiler_gnu=no
4335fi
4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337ac_cv_c_compiler_gnu=$ac_compiler_gnu
4338
4339fi
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4341$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4342if test $ac_compiler_gnu = yes; then
4343  GCC=yes
4344else
4345  GCC=
4346fi
4347ac_test_CFLAGS=${CFLAGS+set}
4348ac_save_CFLAGS=$CFLAGS
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4350$as_echo_n "checking whether $CC accepts -g... " >&6; }
4351if ${ac_cv_prog_cc_g+:} false; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354  ac_save_c_werror_flag=$ac_c_werror_flag
4355   ac_c_werror_flag=yes
4356   ac_cv_prog_cc_g=no
4357   CFLAGS="-g"
4358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h.  */
4360
4361int
4362main ()
4363{
4364
4365  ;
4366  return 0;
4367}
4368_ACEOF
4369if ac_fn_c_try_compile "$LINENO"; then :
4370  ac_cv_prog_cc_g=yes
4371else
4372  CFLAGS=""
4373      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375
4376int
4377main ()
4378{
4379
4380  ;
4381  return 0;
4382}
4383_ACEOF
4384if ac_fn_c_try_compile "$LINENO"; then :
4385
4386else
4387  ac_c_werror_flag=$ac_save_c_werror_flag
4388	 CFLAGS="-g"
4389	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391
4392int
4393main ()
4394{
4395
4396  ;
4397  return 0;
4398}
4399_ACEOF
4400if ac_fn_c_try_compile "$LINENO"; then :
4401  ac_cv_prog_cc_g=yes
4402fi
4403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404fi
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406fi
4407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408   ac_c_werror_flag=$ac_save_c_werror_flag
4409fi
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4411$as_echo "$ac_cv_prog_cc_g" >&6; }
4412if test "$ac_test_CFLAGS" = set; then
4413  CFLAGS=$ac_save_CFLAGS
4414elif test $ac_cv_prog_cc_g = yes; then
4415  if test "$GCC" = yes; then
4416    CFLAGS="-g -O2"
4417  else
4418    CFLAGS="-g"
4419  fi
4420else
4421  if test "$GCC" = yes; then
4422    CFLAGS="-O2"
4423  else
4424    CFLAGS=
4425  fi
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4428$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4429if ${ac_cv_prog_cc_c89+:} false; then :
4430  $as_echo_n "(cached) " >&6
4431else
4432  ac_cv_prog_cc_c89=no
4433ac_save_CC=$CC
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436#include <stdarg.h>
4437#include <stdio.h>
4438struct stat;
4439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4440struct buf { int x; };
4441FILE * (*rcsopen) (struct buf *, struct stat *, int);
4442static char *e (p, i)
4443     char **p;
4444     int i;
4445{
4446  return p[i];
4447}
4448static char *f (char * (*g) (char **, int), char **p, ...)
4449{
4450  char *s;
4451  va_list v;
4452  va_start (v,p);
4453  s = g (p, va_arg (v,int));
4454  va_end (v);
4455  return s;
4456}
4457
4458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4459   function prototypes and stuff, but not '\xHH' hex character constants.
4460   These don't provoke an error unfortunately, instead are silently treated
4461   as 'x'.  The following induces an error, until -std is added to get
4462   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4463   array size at least.  It's necessary to write '\x00'==0 to get something
4464   that's true only with -std.  */
4465int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4466
4467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4468   inside strings and character constants.  */
4469#define FOO(x) 'x'
4470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4471
4472int test (int i, double x);
4473struct s1 {int (*f) (int a);};
4474struct s2 {int (*f) (double a);};
4475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4476int argc;
4477char **argv;
4478int
4479main ()
4480{
4481return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4482  ;
4483  return 0;
4484}
4485_ACEOF
4486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4487	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4488do
4489  CC="$ac_save_CC $ac_arg"
4490  if ac_fn_c_try_compile "$LINENO"; then :
4491  ac_cv_prog_cc_c89=$ac_arg
4492fi
4493rm -f core conftest.err conftest.$ac_objext
4494  test "x$ac_cv_prog_cc_c89" != "xno" && break
4495done
4496rm -f conftest.$ac_ext
4497CC=$ac_save_CC
4498
4499fi
4500# AC_CACHE_VAL
4501case "x$ac_cv_prog_cc_c89" in
4502  x)
4503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4504$as_echo "none needed" >&6; } ;;
4505  xno)
4506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4507$as_echo "unsupported" >&6; } ;;
4508  *)
4509    CC="$CC $ac_cv_prog_cc_c89"
4510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4511$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4512esac
4513if test "x$ac_cv_prog_cc_c89" != xno; then :
4514
4515fi
4516
4517ac_ext=c
4518ac_cpp='$CPP $CPPFLAGS'
4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523ac_ext=c
4524ac_cpp='$CPP $CPPFLAGS'
4525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4529$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4530if ${am_cv_prog_cc_c_o+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535
4536int
4537main ()
4538{
4539
4540  ;
4541  return 0;
4542}
4543_ACEOF
4544  # Make sure it works both with $CC and with simple cc.
4545  # Following AC_PROG_CC_C_O, we do the test twice because some
4546  # compilers refuse to overwrite an existing .o file with -o,
4547  # though they will create one.
4548  am_cv_prog_cc_c_o=yes
4549  for am_i in 1 2; do
4550    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4551   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); } \
4555         && test -f conftest2.$ac_objext; then
4556      : OK
4557    else
4558      am_cv_prog_cc_c_o=no
4559      break
4560    fi
4561  done
4562  rm -f core conftest*
4563  unset am_i
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4566$as_echo "$am_cv_prog_cc_c_o" >&6; }
4567if test "$am_cv_prog_cc_c_o" != yes; then
4568   # Losing compiler, so override with the script.
4569   # FIXME: It is wrong to rewrite CC.
4570   # But if we don't then we get into trouble of one sort or another.
4571   # A longer-term fix would be to have automake use am__CC in this case,
4572   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4573   CC="$am_aux_dir/compile $CC"
4574fi
4575ac_ext=c
4576ac_cpp='$CPP $CPPFLAGS'
4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581
4582depcc="$CC"   am_compiler_list=
4583
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585$as_echo_n "checking dependency style of $depcc... " >&6; }
4586if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4587  $as_echo_n "(cached) " >&6
4588else
4589  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4590  # We make a subdir and do the tests there.  Otherwise we can end up
4591  # making bogus files that we don't know about and never remove.  For
4592  # instance it was reported that on HP-UX the gcc test will end up
4593  # making a dummy file named 'D' -- because '-MD' means "put the output
4594  # in D".
4595  rm -rf conftest.dir
4596  mkdir conftest.dir
4597  # Copy depcomp to subdir because otherwise we won't find it if we're
4598  # using a relative directory.
4599  cp "$am_depcomp" conftest.dir
4600  cd conftest.dir
4601  # We will build objects and dependencies in a subdirectory because
4602  # it helps to detect inapplicable dependency modes.  For instance
4603  # both Tru64's cc and ICC support -MD to output dependencies as a
4604  # side effect of compilation, but ICC will put the dependencies in
4605  # the current directory while Tru64 will put them in the object
4606  # directory.
4607  mkdir sub
4608
4609  am_cv_CC_dependencies_compiler_type=none
4610  if test "$am_compiler_list" = ""; then
4611     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4612  fi
4613  am__universal=false
4614  case " $depcc " in #(
4615     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4616     esac
4617
4618  for depmode in $am_compiler_list; do
4619    # Setup a source with many dependencies, because some compilers
4620    # like to wrap large dependency lists on column 80 (with \), and
4621    # we should not choose a depcomp mode which is confused by this.
4622    #
4623    # We need to recreate these files for each test, as the compiler may
4624    # overwrite some of them when testing with obscure command lines.
4625    # This happens at least with the AIX C compiler.
4626    : > sub/conftest.c
4627    for i in 1 2 3 4 5 6; do
4628      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4630      # Solaris 10 /bin/sh.
4631      echo '/* dummy */' > sub/conftst$i.h
4632    done
4633    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4634
4635    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4636    # mode.  It turns out that the SunPro C++ compiler does not properly
4637    # handle '-M -o', and we need to detect this.  Also, some Intel
4638    # versions had trouble with output in subdirs.
4639    am__obj=sub/conftest.${OBJEXT-o}
4640    am__minus_obj="-o $am__obj"
4641    case $depmode in
4642    gcc)
4643      # This depmode causes a compiler race in universal mode.
4644      test "$am__universal" = false || continue
4645      ;;
4646    nosideeffect)
4647      # After this tag, mechanisms are not by side-effect, so they'll
4648      # only be used when explicitly requested.
4649      if test "x$enable_dependency_tracking" = xyes; then
4650	continue
4651      else
4652	break
4653      fi
4654      ;;
4655    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4656      # This compiler won't grok '-c -o', but also, the minuso test has
4657      # not run yet.  These depmodes are late enough in the game, and
4658      # so weak that their functioning should not be impacted.
4659      am__obj=conftest.${OBJEXT-o}
4660      am__minus_obj=
4661      ;;
4662    none) break ;;
4663    esac
4664    if depmode=$depmode \
4665       source=sub/conftest.c object=$am__obj \
4666       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4667       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4668         >/dev/null 2>conftest.err &&
4669       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4670       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4671       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4672       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4673      # icc doesn't choke on unknown options, it will just issue warnings
4674      # or remarks (even with -Werror).  So we grep stderr for any message
4675      # that says an option was ignored or not supported.
4676      # When given -MP, icc 7.0 and 7.1 complain thusly:
4677      #   icc: Command line warning: ignoring option '-M'; no argument required
4678      # The diagnosis changed in icc 8.0:
4679      #   icc: Command line remark: option '-MP' not supported
4680      if (grep 'ignoring option' conftest.err ||
4681          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4682        am_cv_CC_dependencies_compiler_type=$depmode
4683        break
4684      fi
4685    fi
4686  done
4687
4688  cd ..
4689  rm -rf conftest.dir
4690else
4691  am_cv_CC_dependencies_compiler_type=none
4692fi
4693
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4696$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4698
4699 if
4700  test "x$enable_dependency_tracking" != xno \
4701  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4702  am__fastdepCC_TRUE=
4703  am__fastdepCC_FALSE='#'
4704else
4705  am__fastdepCC_TRUE='#'
4706  am__fastdepCC_FALSE=
4707fi
4708
4709
4710
4711ac_ext=c
4712ac_cpp='$CPP $CPPFLAGS'
4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4717$as_echo_n "checking how to run the C preprocessor... " >&6; }
4718# On Suns, sometimes $CPP names a directory.
4719if test -n "$CPP" && test -d "$CPP"; then
4720  CPP=
4721fi
4722if test -z "$CPP"; then
4723  if ${ac_cv_prog_CPP+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725else
4726      # Double quotes because CPP needs to be expanded
4727    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4728    do
4729      ac_preproc_ok=false
4730for ac_c_preproc_warn_flag in '' yes
4731do
4732  # Use a header file that comes with gcc, so configuring glibc
4733  # with a fresh cross-compiler works.
4734  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4735  # <limits.h> exists even on freestanding compilers.
4736  # On the NeXT, cc -E runs the code through the compiler's parser,
4737  # not just through cpp. "Syntax error" is here to catch this case.
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740#ifdef __STDC__
4741# include <limits.h>
4742#else
4743# include <assert.h>
4744#endif
4745		     Syntax error
4746_ACEOF
4747if ac_fn_c_try_cpp "$LINENO"; then :
4748
4749else
4750  # Broken: fails on valid input.
4751continue
4752fi
4753rm -f conftest.err conftest.i conftest.$ac_ext
4754
4755  # OK, works on sane cases.  Now check whether nonexistent headers
4756  # can be detected and how.
4757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759#include <ac_nonexistent.h>
4760_ACEOF
4761if ac_fn_c_try_cpp "$LINENO"; then :
4762  # Broken: success on invalid input.
4763continue
4764else
4765  # Passes both tests.
4766ac_preproc_ok=:
4767break
4768fi
4769rm -f conftest.err conftest.i conftest.$ac_ext
4770
4771done
4772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4773rm -f conftest.i conftest.err conftest.$ac_ext
4774if $ac_preproc_ok; then :
4775  break
4776fi
4777
4778    done
4779    ac_cv_prog_CPP=$CPP
4780
4781fi
4782  CPP=$ac_cv_prog_CPP
4783else
4784  ac_cv_prog_CPP=$CPP
4785fi
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4787$as_echo "$CPP" >&6; }
4788ac_preproc_ok=false
4789for ac_c_preproc_warn_flag in '' yes
4790do
4791  # Use a header file that comes with gcc, so configuring glibc
4792  # with a fresh cross-compiler works.
4793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794  # <limits.h> exists even on freestanding compilers.
4795  # On the NeXT, cc -E runs the code through the compiler's parser,
4796  # not just through cpp. "Syntax error" is here to catch this case.
4797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799#ifdef __STDC__
4800# include <limits.h>
4801#else
4802# include <assert.h>
4803#endif
4804		     Syntax error
4805_ACEOF
4806if ac_fn_c_try_cpp "$LINENO"; then :
4807
4808else
4809  # Broken: fails on valid input.
4810continue
4811fi
4812rm -f conftest.err conftest.i conftest.$ac_ext
4813
4814  # OK, works on sane cases.  Now check whether nonexistent headers
4815  # can be detected and how.
4816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h.  */
4818#include <ac_nonexistent.h>
4819_ACEOF
4820if ac_fn_c_try_cpp "$LINENO"; then :
4821  # Broken: success on invalid input.
4822continue
4823else
4824  # Passes both tests.
4825ac_preproc_ok=:
4826break
4827fi
4828rm -f conftest.err conftest.i conftest.$ac_ext
4829
4830done
4831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832rm -f conftest.i conftest.err conftest.$ac_ext
4833if $ac_preproc_ok; then :
4834
4835else
4836  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4839See \`config.log' for more details" "$LINENO" 5; }
4840fi
4841
4842ac_ext=c
4843ac_cpp='$CPP $CPPFLAGS'
4844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4850$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4851if ${ac_cv_path_GREP+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  if test -z "$GREP"; then
4855  ac_path_GREP_found=false
4856  # Loop through the user's path and test for each of PROGNAME-LIST
4857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862    for ac_prog in grep ggrep; do
4863    for ac_exec_ext in '' $ac_executable_extensions; do
4864      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4865      as_fn_executable_p "$ac_path_GREP" || continue
4866# Check for GNU ac_path_GREP and select it if it is found.
4867  # Check for GNU $ac_path_GREP
4868case `"$ac_path_GREP" --version 2>&1` in
4869*GNU*)
4870  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4871*)
4872  ac_count=0
4873  $as_echo_n 0123456789 >"conftest.in"
4874  while :
4875  do
4876    cat "conftest.in" "conftest.in" >"conftest.tmp"
4877    mv "conftest.tmp" "conftest.in"
4878    cp "conftest.in" "conftest.nl"
4879    $as_echo 'GREP' >> "conftest.nl"
4880    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4882    as_fn_arith $ac_count + 1 && ac_count=$as_val
4883    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4884      # Best one so far, save it but keep looking for a better one
4885      ac_cv_path_GREP="$ac_path_GREP"
4886      ac_path_GREP_max=$ac_count
4887    fi
4888    # 10*(2^10) chars as input seems more than enough
4889    test $ac_count -gt 10 && break
4890  done
4891  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892esac
4893
4894      $ac_path_GREP_found && break 3
4895    done
4896  done
4897  done
4898IFS=$as_save_IFS
4899  if test -z "$ac_cv_path_GREP"; then
4900    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901  fi
4902else
4903  ac_cv_path_GREP=$GREP
4904fi
4905
4906fi
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4908$as_echo "$ac_cv_path_GREP" >&6; }
4909 GREP="$ac_cv_path_GREP"
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4913$as_echo_n "checking for egrep... " >&6; }
4914if ${ac_cv_path_EGREP+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4918   then ac_cv_path_EGREP="$GREP -E"
4919   else
4920     if test -z "$EGREP"; then
4921  ac_path_EGREP_found=false
4922  # Loop through the user's path and test for each of PROGNAME-LIST
4923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_prog in egrep; do
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4931      as_fn_executable_p "$ac_path_EGREP" || continue
4932# Check for GNU ac_path_EGREP and select it if it is found.
4933  # Check for GNU $ac_path_EGREP
4934case `"$ac_path_EGREP" --version 2>&1` in
4935*GNU*)
4936  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4937*)
4938  ac_count=0
4939  $as_echo_n 0123456789 >"conftest.in"
4940  while :
4941  do
4942    cat "conftest.in" "conftest.in" >"conftest.tmp"
4943    mv "conftest.tmp" "conftest.in"
4944    cp "conftest.in" "conftest.nl"
4945    $as_echo 'EGREP' >> "conftest.nl"
4946    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948    as_fn_arith $ac_count + 1 && ac_count=$as_val
4949    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4950      # Best one so far, save it but keep looking for a better one
4951      ac_cv_path_EGREP="$ac_path_EGREP"
4952      ac_path_EGREP_max=$ac_count
4953    fi
4954    # 10*(2^10) chars as input seems more than enough
4955    test $ac_count -gt 10 && break
4956  done
4957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
4960      $ac_path_EGREP_found && break 3
4961    done
4962  done
4963  done
4964IFS=$as_save_IFS
4965  if test -z "$ac_cv_path_EGREP"; then
4966    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967  fi
4968else
4969  ac_cv_path_EGREP=$EGREP
4970fi
4971
4972   fi
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4975$as_echo "$ac_cv_path_EGREP" >&6; }
4976 EGREP="$ac_cv_path_EGREP"
4977
4978
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4980$as_echo_n "checking for ANSI C header files... " >&6; }
4981if ${ac_cv_header_stdc+:} false; then :
4982  $as_echo_n "(cached) " >&6
4983else
4984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h.  */
4986#include <stdlib.h>
4987#include <stdarg.h>
4988#include <string.h>
4989#include <float.h>
4990
4991int
4992main ()
4993{
4994
4995  ;
4996  return 0;
4997}
4998_ACEOF
4999if ac_fn_c_try_compile "$LINENO"; then :
5000  ac_cv_header_stdc=yes
5001else
5002  ac_cv_header_stdc=no
5003fi
5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005
5006if test $ac_cv_header_stdc = yes; then
5007  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h.  */
5010#include <string.h>
5011
5012_ACEOF
5013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014  $EGREP "memchr" >/dev/null 2>&1; then :
5015
5016else
5017  ac_cv_header_stdc=no
5018fi
5019rm -f conftest*
5020
5021fi
5022
5023if test $ac_cv_header_stdc = yes; then
5024  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h.  */
5027#include <stdlib.h>
5028
5029_ACEOF
5030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031  $EGREP "free" >/dev/null 2>&1; then :
5032
5033else
5034  ac_cv_header_stdc=no
5035fi
5036rm -f conftest*
5037
5038fi
5039
5040if test $ac_cv_header_stdc = yes; then
5041  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5042  if test "$cross_compiling" = yes; then :
5043  :
5044else
5045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047#include <ctype.h>
5048#include <stdlib.h>
5049#if ((' ' & 0x0FF) == 0x020)
5050# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5051# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5052#else
5053# define ISLOWER(c) \
5054		   (('a' <= (c) && (c) <= 'i') \
5055		     || ('j' <= (c) && (c) <= 'r') \
5056		     || ('s' <= (c) && (c) <= 'z'))
5057# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5058#endif
5059
5060#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5061int
5062main ()
5063{
5064  int i;
5065  for (i = 0; i < 256; i++)
5066    if (XOR (islower (i), ISLOWER (i))
5067	|| toupper (i) != TOUPPER (i))
5068      return 2;
5069  return 0;
5070}
5071_ACEOF
5072if ac_fn_c_try_run "$LINENO"; then :
5073
5074else
5075  ac_cv_header_stdc=no
5076fi
5077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5078  conftest.$ac_objext conftest.beam conftest.$ac_ext
5079fi
5080
5081fi
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5084$as_echo "$ac_cv_header_stdc" >&6; }
5085if test $ac_cv_header_stdc = yes; then
5086
5087$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5088
5089fi
5090
5091# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093		  inttypes.h stdint.h unistd.h
5094do :
5095  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5097"
5098if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5099  cat >>confdefs.h <<_ACEOF
5100#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101_ACEOF
5102
5103fi
5104
5105done
5106
5107
5108
5109  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5110if test "x$ac_cv_header_minix_config_h" = xyes; then :
5111  MINIX=yes
5112else
5113  MINIX=
5114fi
5115
5116
5117  if test "$MINIX" = yes; then
5118
5119$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5120
5121
5122$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5123
5124
5125$as_echo "#define _MINIX 1" >>confdefs.h
5126
5127  fi
5128
5129
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5131$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5132if ${ac_cv_safe_to_define___extensions__+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137
5138#         define __EXTENSIONS__ 1
5139          $ac_includes_default
5140int
5141main ()
5142{
5143
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148if ac_fn_c_try_compile "$LINENO"; then :
5149  ac_cv_safe_to_define___extensions__=yes
5150else
5151  ac_cv_safe_to_define___extensions__=no
5152fi
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154fi
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5156$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5157  test $ac_cv_safe_to_define___extensions__ = yes &&
5158    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5159
5160  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5161
5162  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5163
5164  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5165
5166  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5167
5168
5169
5170# Check whether --enable-lzo was given.
5171if test "${enable_lzo+set}" = set; then :
5172  enableval=$enable_lzo;
5173else
5174  enable_lzo="yes"
5175
5176fi
5177
5178
5179# Check whether --enable-lz4 was given.
5180if test "${enable_lz4+set}" = set; then :
5181  enableval=$enable_lz4; enable_lz4="$enableval"
5182else
5183  enable_lz4="yes"
5184
5185fi
5186
5187
5188# Check whether --enable-comp-stub was given.
5189if test "${enable_comp_stub+set}" = set; then :
5190  enableval=$enable_comp_stub; enable_comp_stub="$enableval"
5191else
5192  enable_comp_stub="no"
5193
5194fi
5195
5196
5197# Check whether --enable-ofb-cfb was given.
5198if test "${enable_ofb_cfb+set}" = set; then :
5199  enableval=$enable_ofb_cfb;
5200else
5201  enable_crypto_ofb_cfb="yes"
5202
5203fi
5204
5205
5206# Check whether --enable-x509-alt-username was given.
5207if test "${enable_x509_alt_username+set}" = set; then :
5208  enableval=$enable_x509_alt_username;
5209else
5210  enable_x509_alt_username="no"
5211
5212fi
5213
5214
5215# Check whether --enable-plugins was given.
5216if test "${enable_plugins+set}" = set; then :
5217  enableval=$enable_plugins;
5218else
5219  enable_plugins="yes"
5220
5221fi
5222
5223
5224# Check whether --enable-management was given.
5225if test "${enable_management+set}" = set; then :
5226  enableval=$enable_management;
5227else
5228  enable_management="yes"
5229
5230fi
5231
5232
5233# Check whether --enable-pkcs11 was given.
5234if test "${enable_pkcs11+set}" = set; then :
5235  enableval=$enable_pkcs11;
5236else
5237  enable_pkcs11="no"
5238
5239fi
5240
5241
5242# Check whether --enable-fragment was given.
5243if test "${enable_fragment+set}" = set; then :
5244  enableval=$enable_fragment;
5245else
5246  enable_fragment="yes"
5247
5248fi
5249
5250
5251# Check whether --enable-multihome was given.
5252if test "${enable_multihome+set}" = set; then :
5253  enableval=$enable_multihome;
5254else
5255  enable_multihome="yes"
5256
5257fi
5258
5259
5260# Check whether --enable-port-share was given.
5261if test "${enable_port_share+set}" = set; then :
5262  enableval=$enable_port_share;
5263else
5264  enable_port_share="yes"
5265
5266fi
5267
5268
5269# Check whether --enable-debug was given.
5270if test "${enable_debug+set}" = set; then :
5271  enableval=$enable_debug;
5272else
5273  enable_debug="yes"
5274
5275fi
5276
5277
5278# Check whether --enable-small was given.
5279if test "${enable_small+set}" = set; then :
5280  enableval=$enable_small;
5281else
5282  enable_small="no"
5283
5284fi
5285
5286
5287# Check whether --enable-iproute2 was given.
5288if test "${enable_iproute2+set}" = set; then :
5289  enableval=$enable_iproute2;
5290else
5291  enable_iproute2="no"
5292
5293fi
5294
5295
5296# Check whether --enable-def-auth was given.
5297if test "${enable_def_auth+set}" = set; then :
5298  enableval=$enable_def_auth;
5299else
5300  enable_def_auth="yes"
5301
5302fi
5303
5304
5305# Check whether --enable-pf was given.
5306if test "${enable_pf+set}" = set; then :
5307  enableval=$enable_pf;
5308else
5309  enable_pf="yes"
5310
5311fi
5312
5313
5314# Check whether --enable-plugin-auth-pam was given.
5315if test "${enable_plugin_auth_pam+set}" = set; then :
5316  enableval=$enable_plugin_auth_pam;
5317else
5318
5319		case "$host" in
5320			*-*-openbsd*) enable_plugin_auth_pam="no";;
5321			*-mingw*) enable_plugin_auth_pam="no";;
5322			*) enable_plugin_auth_pam="yes";;
5323		esac
5324
5325
5326fi
5327
5328
5329# Check whether --enable-plugin-down-root was given.
5330if test "${enable_plugin_down_root+set}" = set; then :
5331  enableval=$enable_plugin_down_root;
5332else
5333
5334		case "$host" in
5335			*-mingw*) enable_plugin_down_root="no";;
5336			*) enable_plugin_down_root="yes";;
5337		esac
5338
5339
5340fi
5341
5342
5343# Check whether --enable-pam-dlopen was given.
5344if test "${enable_pam_dlopen+set}" = set; then :
5345  enableval=$enable_pam_dlopen;
5346else
5347  enable_pam_dlopen="no"
5348
5349fi
5350
5351
5352# Check whether --enable-strict was given.
5353if test "${enable_strict+set}" = set; then :
5354  enableval=$enable_strict;
5355else
5356  enable_strict="no"
5357
5358fi
5359
5360
5361# Check whether --enable-pedantic was given.
5362if test "${enable_pedantic+set}" = set; then :
5363  enableval=$enable_pedantic;
5364else
5365  enable_pedantic="no"
5366
5367fi
5368
5369
5370# Check whether --enable-werror was given.
5371if test "${enable_werror+set}" = set; then :
5372  enableval=$enable_werror;
5373else
5374  enable_werror="no"
5375
5376fi
5377
5378
5379# Check whether --enable-strict-options was given.
5380if test "${enable_strict_options+set}" = set; then :
5381  enableval=$enable_strict_options;
5382else
5383  enable_strict_options="no"
5384
5385fi
5386
5387
5388# Check whether --enable-selinux was given.
5389if test "${enable_selinux+set}" = set; then :
5390  enableval=$enable_selinux;
5391else
5392  enable_selinux="no"
5393
5394fi
5395
5396
5397# Check whether --enable-systemd was given.
5398if test "${enable_systemd+set}" = set; then :
5399  enableval=$enable_systemd;
5400else
5401  enable_systemd="no"
5402
5403fi
5404
5405
5406# Check whether --enable-async-push was given.
5407if test "${enable_async_push+set}" = set; then :
5408  enableval=$enable_async_push;
5409else
5410  enable_async_push="no"
5411
5412fi
5413
5414
5415
5416# Check whether --with-special-build was given.
5417if test "${with_special_build+set}" = set; then :
5418  withval=$with_special_build; test -n "${withval}" &&
5419cat >>confdefs.h <<_ACEOF
5420#define CONFIGURE_SPECIAL_BUILD "${withval}"
5421_ACEOF
5422
5423
5424fi
5425
5426
5427
5428# Check whether --with-mem-check was given.
5429if test "${with_mem_check+set}" = set; then :
5430  withval=$with_mem_check;
5431		case "${withval}" in
5432			dmalloc|valgrind|ssl|no) ;;
5433			*) as_fn_error $? "bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5434		esac
5435
5436else
5437  with_mem_check="no"
5438
5439fi
5440
5441
5442
5443# Check whether --with-crypto-library was given.
5444if test "${with_crypto_library+set}" = set; then :
5445  withval=$with_crypto_library;
5446		case "${withval}" in
5447			openssl|mbedtls) ;;
5448			*) as_fn_error $? "bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5449		esac
5450
5451else
5452  with_crypto_library="openssl"
5453
5454fi
5455
5456
5457
5458if test -n "${PLUGINDIR}"; then
5459	plugindir="${PLUGINDIR}"
5460else
5461	plugindir="\${libdir}/openvpn/plugins"
5462fi
5463
5464
5465cat >>confdefs.h <<_ACEOF
5466#define TARGET_ALIAS "${host}"
5467_ACEOF
5468
5469 if false; then
5470  TARGET_LINUX_TRUE=
5471  TARGET_LINUX_FALSE='#'
5472else
5473  TARGET_LINUX_TRUE='#'
5474  TARGET_LINUX_FALSE=
5475fi
5476
5477case "$host" in
5478	*-*-linux*)
5479
5480$as_echo "#define TARGET_LINUX 1" >>confdefs.h
5481
5482		 if true; then
5483  TARGET_LINUX_TRUE=
5484  TARGET_LINUX_FALSE='#'
5485else
5486  TARGET_LINUX_TRUE='#'
5487  TARGET_LINUX_FALSE=
5488fi
5489
5490
5491cat >>confdefs.h <<_ACEOF
5492#define TARGET_PREFIX "L"
5493_ACEOF
5494
5495		have_sitnl="yes"
5496		;;
5497	*-*-solaris*)
5498
5499$as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5500
5501
5502cat >>confdefs.h <<_ACEOF
5503#define TARGET_PREFIX "S"
5504_ACEOF
5505
5506		CPPFLAGS="$CPPFLAGS -D_XPG4_2"
5507		test -x /bin/bash && SHELL="/bin/bash"
5508		;;
5509	*-*-openbsd*)
5510
5511$as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5512
5513
5514cat >>confdefs.h <<_ACEOF
5515#define TARGET_PREFIX "O"
5516_ACEOF
5517
5518		;;
5519	*-*-freebsd*)
5520
5521$as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5522
5523
5524cat >>confdefs.h <<_ACEOF
5525#define TARGET_PREFIX "F"
5526_ACEOF
5527
5528		;;
5529	*-*-netbsd*)
5530
5531$as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5532
5533
5534cat >>confdefs.h <<_ACEOF
5535#define TARGET_PREFIX "N"
5536_ACEOF
5537
5538		;;
5539	*-*-darwin*)
5540
5541$as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5542
5543
5544cat >>confdefs.h <<_ACEOF
5545#define TARGET_PREFIX "M"
5546_ACEOF
5547
5548		have_tap_header="yes"
5549		ac_cv_type_struct_in_pktinfo=no
5550		;;
5551	*-mingw*)
5552
5553$as_echo "#define TARGET_WIN32 1" >>confdefs.h
5554
5555
5556cat >>confdefs.h <<_ACEOF
5557#define TARGET_PREFIX "W"
5558_ACEOF
5559
5560		CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5561		CPPFLAGS="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_VISTA -D_WIN32_WINNT=_WIN32_WINNT_VISTA"
5562		WIN32=yes
5563		;;
5564	*-*-dragonfly*)
5565
5566$as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5567
5568
5569cat >>confdefs.h <<_ACEOF
5570#define TARGET_PREFIX "D"
5571_ACEOF
5572
5573		;;
5574	*-aix*)
5575
5576$as_echo "#define TARGET_AIX 1" >>confdefs.h
5577
5578
5579cat >>confdefs.h <<_ACEOF
5580#define TARGET_PREFIX "A"
5581_ACEOF
5582
5583		ROUTE="/usr/sbin/route"
5584		have_tap_header="yes"
5585		ac_cv_header_net_if_h="no"	# exists, but breaks things
5586		;;
5587	*)
5588
5589cat >>confdefs.h <<_ACEOF
5590#define TARGET_PREFIX "X"
5591_ACEOF
5592
5593		have_tap_header="yes"
5594		;;
5595esac
5596
5597
5598
5599
5600
5601
5602
5603
5604if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5605	if test -n "$ac_tool_prefix"; then
5606  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5607set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if ${ac_cv_path_PKG_CONFIG+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  case $PKG_CONFIG in
5614  [\\/]* | ?:[\\/]*)
5615  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5616  ;;
5617  *)
5618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  test -z "$as_dir" && as_dir=.
5623    for ac_exec_ext in '' $ac_executable_extensions; do
5624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627    break 2
5628  fi
5629done
5630  done
5631IFS=$as_save_IFS
5632
5633  ;;
5634esac
5635fi
5636PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5637if test -n "$PKG_CONFIG"; then
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5639$as_echo "$PKG_CONFIG" >&6; }
5640else
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642$as_echo "no" >&6; }
5643fi
5644
5645
5646fi
5647if test -z "$ac_cv_path_PKG_CONFIG"; then
5648  ac_pt_PKG_CONFIG=$PKG_CONFIG
5649  # Extract the first word of "pkg-config", so it can be a program name with args.
5650set dummy pkg-config; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  case $ac_pt_PKG_CONFIG in
5657  [\\/]* | ?:[\\/]*)
5658  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5659  ;;
5660  *)
5661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664  IFS=$as_save_IFS
5665  test -z "$as_dir" && as_dir=.
5666    for ac_exec_ext in '' $ac_executable_extensions; do
5667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670    break 2
5671  fi
5672done
5673  done
5674IFS=$as_save_IFS
5675
5676  ;;
5677esac
5678fi
5679ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5680if test -n "$ac_pt_PKG_CONFIG"; then
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5682$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5683else
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }
5686fi
5687
5688  if test "x$ac_pt_PKG_CONFIG" = x; then
5689    PKG_CONFIG=""
5690  else
5691    case $cross_compiling:$ac_tool_warned in
5692yes:)
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695ac_tool_warned=yes ;;
5696esac
5697    PKG_CONFIG=$ac_pt_PKG_CONFIG
5698  fi
5699else
5700  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5701fi
5702
5703fi
5704if test -n "$PKG_CONFIG"; then
5705	_pkg_min_version=0.9.0
5706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5707$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5708	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710$as_echo "yes" >&6; }
5711	else
5712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714		PKG_CONFIG=""
5715	fi
5716fi
5717ac_ext=c
5718ac_cpp='$CPP $CPPFLAGS'
5719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5723$as_echo_n "checking how to run the C preprocessor... " >&6; }
5724# On Suns, sometimes $CPP names a directory.
5725if test -n "$CPP" && test -d "$CPP"; then
5726  CPP=
5727fi
5728if test -z "$CPP"; then
5729  if ${ac_cv_prog_CPP+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732      # Double quotes because CPP needs to be expanded
5733    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5734    do
5735      ac_preproc_ok=false
5736for ac_c_preproc_warn_flag in '' yes
5737do
5738  # Use a header file that comes with gcc, so configuring glibc
5739  # with a fresh cross-compiler works.
5740  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5741  # <limits.h> exists even on freestanding compilers.
5742  # On the NeXT, cc -E runs the code through the compiler's parser,
5743  # not just through cpp. "Syntax error" is here to catch this case.
5744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h.  */
5746#ifdef __STDC__
5747# include <limits.h>
5748#else
5749# include <assert.h>
5750#endif
5751		     Syntax error
5752_ACEOF
5753if ac_fn_c_try_cpp "$LINENO"; then :
5754
5755else
5756  # Broken: fails on valid input.
5757continue
5758fi
5759rm -f conftest.err conftest.i conftest.$ac_ext
5760
5761  # OK, works on sane cases.  Now check whether nonexistent headers
5762  # can be detected and how.
5763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h.  */
5765#include <ac_nonexistent.h>
5766_ACEOF
5767if ac_fn_c_try_cpp "$LINENO"; then :
5768  # Broken: success on invalid input.
5769continue
5770else
5771  # Passes both tests.
5772ac_preproc_ok=:
5773break
5774fi
5775rm -f conftest.err conftest.i conftest.$ac_ext
5776
5777done
5778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779rm -f conftest.i conftest.err conftest.$ac_ext
5780if $ac_preproc_ok; then :
5781  break
5782fi
5783
5784    done
5785    ac_cv_prog_CPP=$CPP
5786
5787fi
5788  CPP=$ac_cv_prog_CPP
5789else
5790  ac_cv_prog_CPP=$CPP
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5793$as_echo "$CPP" >&6; }
5794ac_preproc_ok=false
5795for ac_c_preproc_warn_flag in '' yes
5796do
5797  # Use a header file that comes with gcc, so configuring glibc
5798  # with a fresh cross-compiler works.
5799  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800  # <limits.h> exists even on freestanding compilers.
5801  # On the NeXT, cc -E runs the code through the compiler's parser,
5802  # not just through cpp. "Syntax error" is here to catch this case.
5803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h.  */
5805#ifdef __STDC__
5806# include <limits.h>
5807#else
5808# include <assert.h>
5809#endif
5810		     Syntax error
5811_ACEOF
5812if ac_fn_c_try_cpp "$LINENO"; then :
5813
5814else
5815  # Broken: fails on valid input.
5816continue
5817fi
5818rm -f conftest.err conftest.i conftest.$ac_ext
5819
5820  # OK, works on sane cases.  Now check whether nonexistent headers
5821  # can be detected and how.
5822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824#include <ac_nonexistent.h>
5825_ACEOF
5826if ac_fn_c_try_cpp "$LINENO"; then :
5827  # Broken: success on invalid input.
5828continue
5829else
5830  # Passes both tests.
5831ac_preproc_ok=:
5832break
5833fi
5834rm -f conftest.err conftest.i conftest.$ac_ext
5835
5836done
5837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838rm -f conftest.i conftest.err conftest.$ac_ext
5839if $ac_preproc_ok; then :
5840
5841else
5842  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5845See \`config.log' for more details" "$LINENO" 5; }
5846fi
5847
5848ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5856$as_echo_n "checking whether ln -s works... " >&6; }
5857LN_S=$as_ln_s
5858if test "$LN_S" = "ln -s"; then
5859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5860$as_echo "yes" >&6; }
5861else
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5863$as_echo "no, using $LN_S" >&6; }
5864fi
5865
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5867$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5868if ${ac_cv_path_SED+:} false; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5872     for ac_i in 1 2 3 4 5 6 7; do
5873       ac_script="$ac_script$as_nl$ac_script"
5874     done
5875     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5876     { ac_script=; unset ac_script;}
5877     if test -z "$SED"; then
5878  ac_path_SED_found=false
5879  # Loop through the user's path and test for each of PROGNAME-LIST
5880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885    for ac_prog in sed gsed; do
5886    for ac_exec_ext in '' $ac_executable_extensions; do
5887      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5888      as_fn_executable_p "$ac_path_SED" || continue
5889# Check for GNU ac_path_SED and select it if it is found.
5890  # Check for GNU $ac_path_SED
5891case `"$ac_path_SED" --version 2>&1` in
5892*GNU*)
5893  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5894*)
5895  ac_count=0
5896  $as_echo_n 0123456789 >"conftest.in"
5897  while :
5898  do
5899    cat "conftest.in" "conftest.in" >"conftest.tmp"
5900    mv "conftest.tmp" "conftest.in"
5901    cp "conftest.in" "conftest.nl"
5902    $as_echo '' >> "conftest.nl"
5903    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905    as_fn_arith $ac_count + 1 && ac_count=$as_val
5906    if test $ac_count -gt ${ac_path_SED_max-0}; then
5907      # Best one so far, save it but keep looking for a better one
5908      ac_cv_path_SED="$ac_path_SED"
5909      ac_path_SED_max=$ac_count
5910    fi
5911    # 10*(2^10) chars as input seems more than enough
5912    test $ac_count -gt 10 && break
5913  done
5914  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5915esac
5916
5917      $ac_path_SED_found && break 3
5918    done
5919  done
5920  done
5921IFS=$as_save_IFS
5922  if test -z "$ac_cv_path_SED"; then
5923    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5924  fi
5925else
5926  ac_cv_path_SED=$SED
5927fi
5928
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5931$as_echo "$ac_cv_path_SED" >&6; }
5932 SED="$ac_cv_path_SED"
5933  rm -f conftest.sed
5934
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5936$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5937set x ${MAKE-make}
5938ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5939if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  cat >conftest.make <<\_ACEOF
5943SHELL = /bin/sh
5944all:
5945	@echo '@@@%%%=$(MAKE)=@@@%%%'
5946_ACEOF
5947# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5948case `${MAKE-make} -f conftest.make 2>/dev/null` in
5949  *@@@%%%=?*=@@@%%%*)
5950    eval ac_cv_prog_make_${ac_make}_set=yes;;
5951  *)
5952    eval ac_cv_prog_make_${ac_make}_set=no;;
5953esac
5954rm -f conftest.make
5955fi
5956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5958$as_echo "yes" >&6; }
5959  SET_MAKE=
5960else
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963  SET_MAKE="MAKE=${MAKE-make}"
5964fi
5965
5966
5967
5968
5969
5970 # tests
5971
5972
5973
5974
5975for ac_prog in ifconfig
5976do
5977  # Extract the first word of "$ac_prog", so it can be a program name with args.
5978set dummy $ac_prog; ac_word=$2
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980$as_echo_n "checking for $ac_word... " >&6; }
5981if ${ac_cv_path_IFCONFIG+:} false; then :
5982  $as_echo_n "(cached) " >&6
5983else
5984  case $IFCONFIG in
5985  [\\/]* | ?:[\\/]*)
5986  ac_cv_path_IFCONFIG="$IFCONFIG" # Let the user override the test with a path.
5987  ;;
5988  *)
5989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5991for as_dir in $as_dummy
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_exec_ext in '' $ac_executable_extensions; do
5996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997    ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
5998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002  done
6003IFS=$as_save_IFS
6004
6005  ;;
6006esac
6007fi
6008IFCONFIG=$ac_cv_path_IFCONFIG
6009if test -n "$IFCONFIG"; then
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
6011$as_echo "$IFCONFIG" >&6; }
6012else
6013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015fi
6016
6017
6018  test -n "$IFCONFIG" && break
6019done
6020
6021for ac_prog in route
6022do
6023  # Extract the first word of "$ac_prog", so it can be a program name with args.
6024set dummy $ac_prog; ac_word=$2
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026$as_echo_n "checking for $ac_word... " >&6; }
6027if ${ac_cv_path_ROUTE+:} false; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  case $ROUTE in
6031  [\\/]* | ?:[\\/]*)
6032  ac_cv_path_ROUTE="$ROUTE" # Let the user override the test with a path.
6033  ;;
6034  *)
6035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
6037for as_dir in $as_dummy
6038do
6039  IFS=$as_save_IFS
6040  test -z "$as_dir" && as_dir=.
6041    for ac_exec_ext in '' $ac_executable_extensions; do
6042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043    ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
6044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045    break 2
6046  fi
6047done
6048  done
6049IFS=$as_save_IFS
6050
6051  ;;
6052esac
6053fi
6054ROUTE=$ac_cv_path_ROUTE
6055if test -n "$ROUTE"; then
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
6057$as_echo "$ROUTE" >&6; }
6058else
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060$as_echo "no" >&6; }
6061fi
6062
6063
6064  test -n "$ROUTE" && break
6065done
6066
6067for ac_prog in ip
6068do
6069  # Extract the first word of "$ac_prog", so it can be a program name with args.
6070set dummy $ac_prog; ac_word=$2
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072$as_echo_n "checking for $ac_word... " >&6; }
6073if ${ac_cv_path_IPROUTE+:} false; then :
6074  $as_echo_n "(cached) " >&6
6075else
6076  case $IPROUTE in
6077  [\\/]* | ?:[\\/]*)
6078  ac_cv_path_IPROUTE="$IPROUTE" # Let the user override the test with a path.
6079  ;;
6080  *)
6081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
6083for as_dir in $as_dummy
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089    ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097  ;;
6098esac
6099fi
6100IPROUTE=$ac_cv_path_IPROUTE
6101if test -n "$IPROUTE"; then
6102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
6103$as_echo "$IPROUTE" >&6; }
6104else
6105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106$as_echo "no" >&6; }
6107fi
6108
6109
6110  test -n "$IPROUTE" && break
6111done
6112
6113for ac_prog in systemd-ask-password
6114do
6115  # Extract the first word of "$ac_prog", so it can be a program name with args.
6116set dummy $ac_prog; ac_word=$2
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118$as_echo_n "checking for $ac_word... " >&6; }
6119if ${ac_cv_path_SYSTEMD_ASK_PASSWORD+:} false; then :
6120  $as_echo_n "(cached) " >&6
6121else
6122  case $SYSTEMD_ASK_PASSWORD in
6123  [\\/]* | ?:[\\/]*)
6124  ac_cv_path_SYSTEMD_ASK_PASSWORD="$SYSTEMD_ASK_PASSWORD" # Let the user override the test with a path.
6125  ;;
6126  *)
6127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
6129for as_dir in $as_dummy
6130do
6131  IFS=$as_save_IFS
6132  test -z "$as_dir" && as_dir=.
6133    for ac_exec_ext in '' $ac_executable_extensions; do
6134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135    ac_cv_path_SYSTEMD_ASK_PASSWORD="$as_dir/$ac_word$ac_exec_ext"
6136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137    break 2
6138  fi
6139done
6140  done
6141IFS=$as_save_IFS
6142
6143  ;;
6144esac
6145fi
6146SYSTEMD_ASK_PASSWORD=$ac_cv_path_SYSTEMD_ASK_PASSWORD
6147if test -n "$SYSTEMD_ASK_PASSWORD"; then
6148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_ASK_PASSWORD" >&5
6149$as_echo "$SYSTEMD_ASK_PASSWORD" >&6; }
6150else
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152$as_echo "no" >&6; }
6153fi
6154
6155
6156  test -n "$SYSTEMD_ASK_PASSWORD" && break
6157done
6158
6159for ac_prog in netstat
6160do
6161  # Extract the first word of "$ac_prog", so it can be a program name with args.
6162set dummy $ac_prog; ac_word=$2
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164$as_echo_n "checking for $ac_word... " >&6; }
6165if ${ac_cv_prog_NETSTAT+:} false; then :
6166  $as_echo_n "(cached) " >&6
6167else
6168  if test -n "$NETSTAT"; then
6169  ac_cv_prog_NETSTAT="$NETSTAT" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
6173for as_dir in $as_dummy
6174do
6175  IFS=$as_save_IFS
6176  test -z "$as_dir" && as_dir=.
6177    for ac_exec_ext in '' $ac_executable_extensions; do
6178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179    ac_cv_prog_NETSTAT="$ac_prog"
6180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181    break 2
6182  fi
6183done
6184  done
6185IFS=$as_save_IFS
6186
6187fi
6188fi
6189NETSTAT=$ac_cv_prog_NETSTAT
6190if test -n "$NETSTAT"; then
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
6192$as_echo "$NETSTAT" >&6; }
6193else
6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195$as_echo "no" >&6; }
6196fi
6197
6198
6199  test -n "$NETSTAT" && break
6200done
6201test -n "$NETSTAT" || NETSTAT="netstat"
6202 # tests
6203for ac_prog in git
6204do
6205  # Extract the first word of "$ac_prog", so it can be a program name with args.
6206set dummy $ac_prog; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if ${ac_cv_prog_GIT+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  if test -n "$GIT"; then
6213  ac_cv_prog_GIT="$GIT" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218  IFS=$as_save_IFS
6219  test -z "$as_dir" && as_dir=.
6220    for ac_exec_ext in '' $ac_executable_extensions; do
6221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222    ac_cv_prog_GIT="$ac_prog"
6223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224    break 2
6225  fi
6226done
6227  done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232GIT=$ac_cv_prog_GIT
6233if test -n "$GIT"; then
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6235$as_echo "$GIT" >&6; }
6236else
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242  test -n "$GIT" && break
6243done
6244 # optional
6245
6246cat >>confdefs.h <<_ACEOF
6247#define IFCONFIG_PATH "$IFCONFIG"
6248_ACEOF
6249
6250
6251cat >>confdefs.h <<_ACEOF
6252#define IPROUTE_PATH "$IPROUTE"
6253_ACEOF
6254
6255
6256cat >>confdefs.h <<_ACEOF
6257#define ROUTE_PATH "$ROUTE"
6258_ACEOF
6259
6260
6261cat >>confdefs.h <<_ACEOF
6262#define SYSTEMD_ASK_PASSWORD_PATH "$SYSTEMD_ASK_PASSWORD"
6263_ACEOF
6264
6265
6266#
6267#  man page generation - based on python-docutils
6268#
6269
6270
6271for ac_prog in rst2man rst2man.py
6272do
6273  # Extract the first word of "$ac_prog", so it can be a program name with args.
6274set dummy $ac_prog; ac_word=$2
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276$as_echo_n "checking for $ac_word... " >&6; }
6277if ${ac_cv_prog_RST2MAN+:} false; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  if test -n "$RST2MAN"; then
6281  ac_cv_prog_RST2MAN="$RST2MAN" # Let the user override the test.
6282else
6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286  IFS=$as_save_IFS
6287  test -z "$as_dir" && as_dir=.
6288    for ac_exec_ext in '' $ac_executable_extensions; do
6289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290    ac_cv_prog_RST2MAN="$ac_prog"
6291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295  done
6296IFS=$as_save_IFS
6297
6298fi
6299fi
6300RST2MAN=$ac_cv_prog_RST2MAN
6301if test -n "$RST2MAN"; then
6302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5
6303$as_echo "$RST2MAN" >&6; }
6304else
6305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306$as_echo "no" >&6; }
6307fi
6308
6309
6310  test -n "$RST2MAN" && break
6311done
6312
6313for ac_prog in rst2html rst2html.py
6314do
6315  # Extract the first word of "$ac_prog", so it can be a program name with args.
6316set dummy $ac_prog; ac_word=$2
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318$as_echo_n "checking for $ac_word... " >&6; }
6319if ${ac_cv_prog_RST2HTML+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  if test -n "$RST2HTML"; then
6323  ac_cv_prog_RST2HTML="$RST2HTML" # Let the user override the test.
6324else
6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326for as_dir in $PATH
6327do
6328  IFS=$as_save_IFS
6329  test -z "$as_dir" && as_dir=.
6330    for ac_exec_ext in '' $ac_executable_extensions; do
6331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332    ac_cv_prog_RST2HTML="$ac_prog"
6333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334    break 2
6335  fi
6336done
6337  done
6338IFS=$as_save_IFS
6339
6340fi
6341fi
6342RST2HTML=$ac_cv_prog_RST2HTML
6343if test -n "$RST2HTML"; then
6344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
6345$as_echo "$RST2HTML" >&6; }
6346else
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }
6349fi
6350
6351
6352  test -n "$RST2HTML" && break
6353done
6354
6355 if test "${RST2MAN}" -a "${RST2HTML}"; then
6356  HAVE_PYDOCUTILS_TRUE=
6357  HAVE_PYDOCUTILS_FALSE='#'
6358else
6359  HAVE_PYDOCUTILS_TRUE='#'
6360  HAVE_PYDOCUTILS_FALSE=
6361fi
6362
6363
6364# Set -std=c99 unless user already specified a -std=
6365case "${CFLAGS}" in
6366  *-std=*) ;;
6367  *)       CFLAGS="${CFLAGS} -std=c99" ;;
6368esac
6369
6370#
6371# Libtool
6372#
6373
6374		case `pwd` in
6375  *\ * | *\	*)
6376    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6377$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6378esac
6379
6380
6381
6382macro_version='2.4.6'
6383macro_revision='2.4.6'
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397ltmain=$ac_aux_dir/ltmain.sh
6398
6399# Backslashify metacharacters that are still active within
6400# double-quoted strings.
6401sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6402
6403# Same as above, but do not quote variable references.
6404double_quote_subst='s/\(["`\\]\)/\\\1/g'
6405
6406# Sed substitution to delay expansion of an escaped shell variable in a
6407# double_quote_subst'ed string.
6408delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6409
6410# Sed substitution to delay expansion of an escaped single quote.
6411delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6412
6413# Sed substitution to avoid accidental globbing in evaled expressions
6414no_glob_subst='s/\*/\\\*/g'
6415
6416ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6417ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6418ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6419
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6421$as_echo_n "checking how to print strings... " >&6; }
6422# Test print first, because it will be a builtin if present.
6423if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6424   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6425  ECHO='print -r --'
6426elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6427  ECHO='printf %s\n'
6428else
6429  # Use this function as a fallback that always works.
6430  func_fallback_echo ()
6431  {
6432    eval 'cat <<_LTECHO_EOF
6433$1
6434_LTECHO_EOF'
6435  }
6436  ECHO='func_fallback_echo'
6437fi
6438
6439# func_echo_all arg...
6440# Invoke $ECHO with all args, space-separated.
6441func_echo_all ()
6442{
6443    $ECHO ""
6444}
6445
6446case $ECHO in
6447  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6448$as_echo "printf" >&6; } ;;
6449  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6450$as_echo "print -r" >&6; } ;;
6451  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6452$as_echo "cat" >&6; } ;;
6453esac
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6469$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6470if ${ac_cv_path_SED+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6474     for ac_i in 1 2 3 4 5 6 7; do
6475       ac_script="$ac_script$as_nl$ac_script"
6476     done
6477     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6478     { ac_script=; unset ac_script;}
6479     if test -z "$SED"; then
6480  ac_path_SED_found=false
6481  # Loop through the user's path and test for each of PROGNAME-LIST
6482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485  IFS=$as_save_IFS
6486  test -z "$as_dir" && as_dir=.
6487    for ac_prog in sed gsed; do
6488    for ac_exec_ext in '' $ac_executable_extensions; do
6489      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6490      as_fn_executable_p "$ac_path_SED" || continue
6491# Check for GNU ac_path_SED and select it if it is found.
6492  # Check for GNU $ac_path_SED
6493case `"$ac_path_SED" --version 2>&1` in
6494*GNU*)
6495  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6496*)
6497  ac_count=0
6498  $as_echo_n 0123456789 >"conftest.in"
6499  while :
6500  do
6501    cat "conftest.in" "conftest.in" >"conftest.tmp"
6502    mv "conftest.tmp" "conftest.in"
6503    cp "conftest.in" "conftest.nl"
6504    $as_echo '' >> "conftest.nl"
6505    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6506    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6507    as_fn_arith $ac_count + 1 && ac_count=$as_val
6508    if test $ac_count -gt ${ac_path_SED_max-0}; then
6509      # Best one so far, save it but keep looking for a better one
6510      ac_cv_path_SED="$ac_path_SED"
6511      ac_path_SED_max=$ac_count
6512    fi
6513    # 10*(2^10) chars as input seems more than enough
6514    test $ac_count -gt 10 && break
6515  done
6516  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6517esac
6518
6519      $ac_path_SED_found && break 3
6520    done
6521  done
6522  done
6523IFS=$as_save_IFS
6524  if test -z "$ac_cv_path_SED"; then
6525    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6526  fi
6527else
6528  ac_cv_path_SED=$SED
6529fi
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6533$as_echo "$ac_cv_path_SED" >&6; }
6534 SED="$ac_cv_path_SED"
6535  rm -f conftest.sed
6536
6537test -z "$SED" && SED=sed
6538Xsed="$SED -e 1s/^X//"
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6551$as_echo_n "checking for fgrep... " >&6; }
6552if ${ac_cv_path_FGREP+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6556   then ac_cv_path_FGREP="$GREP -F"
6557   else
6558     if test -z "$FGREP"; then
6559  ac_path_FGREP_found=false
6560  # Loop through the user's path and test for each of PROGNAME-LIST
6561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6563do
6564  IFS=$as_save_IFS
6565  test -z "$as_dir" && as_dir=.
6566    for ac_prog in fgrep; do
6567    for ac_exec_ext in '' $ac_executable_extensions; do
6568      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6569      as_fn_executable_p "$ac_path_FGREP" || continue
6570# Check for GNU ac_path_FGREP and select it if it is found.
6571  # Check for GNU $ac_path_FGREP
6572case `"$ac_path_FGREP" --version 2>&1` in
6573*GNU*)
6574  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6575*)
6576  ac_count=0
6577  $as_echo_n 0123456789 >"conftest.in"
6578  while :
6579  do
6580    cat "conftest.in" "conftest.in" >"conftest.tmp"
6581    mv "conftest.tmp" "conftest.in"
6582    cp "conftest.in" "conftest.nl"
6583    $as_echo 'FGREP' >> "conftest.nl"
6584    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6585    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6586    as_fn_arith $ac_count + 1 && ac_count=$as_val
6587    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6588      # Best one so far, save it but keep looking for a better one
6589      ac_cv_path_FGREP="$ac_path_FGREP"
6590      ac_path_FGREP_max=$ac_count
6591    fi
6592    # 10*(2^10) chars as input seems more than enough
6593    test $ac_count -gt 10 && break
6594  done
6595  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6596esac
6597
6598      $ac_path_FGREP_found && break 3
6599    done
6600  done
6601  done
6602IFS=$as_save_IFS
6603  if test -z "$ac_cv_path_FGREP"; then
6604    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6605  fi
6606else
6607  ac_cv_path_FGREP=$FGREP
6608fi
6609
6610   fi
6611fi
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6613$as_echo "$ac_cv_path_FGREP" >&6; }
6614 FGREP="$ac_cv_path_FGREP"
6615
6616
6617test -z "$GREP" && GREP=grep
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637# Check whether --with-gnu-ld was given.
6638if test "${with_gnu_ld+set}" = set; then :
6639  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6640else
6641  with_gnu_ld=no
6642fi
6643
6644ac_prog=ld
6645if test yes = "$GCC"; then
6646  # Check if gcc -print-prog-name=ld gives a path.
6647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6648$as_echo_n "checking for ld used by $CC... " >&6; }
6649  case $host in
6650  *-*-mingw*)
6651    # gcc leaves a trailing carriage return, which upsets mingw
6652    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6653  *)
6654    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6655  esac
6656  case $ac_prog in
6657    # Accept absolute paths.
6658    [\\/]* | ?:[\\/]*)
6659      re_direlt='/[^/][^/]*/\.\./'
6660      # Canonicalize the pathname of ld
6661      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6662      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6663	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6664      done
6665      test -z "$LD" && LD=$ac_prog
6666      ;;
6667  "")
6668    # If it fails, then pretend we aren't using GCC.
6669    ac_prog=ld
6670    ;;
6671  *)
6672    # If it is relative, then search for the first ld in PATH.
6673    with_gnu_ld=unknown
6674    ;;
6675  esac
6676elif test yes = "$with_gnu_ld"; then
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6678$as_echo_n "checking for GNU ld... " >&6; }
6679else
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6681$as_echo_n "checking for non-GNU ld... " >&6; }
6682fi
6683if ${lt_cv_path_LD+:} false; then :
6684  $as_echo_n "(cached) " >&6
6685else
6686  if test -z "$LD"; then
6687  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6688  for ac_dir in $PATH; do
6689    IFS=$lt_save_ifs
6690    test -z "$ac_dir" && ac_dir=.
6691    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6692      lt_cv_path_LD=$ac_dir/$ac_prog
6693      # Check to see if the program is GNU ld.  I'd rather use --version,
6694      # but apparently some variants of GNU ld only accept -v.
6695      # Break only if it was the GNU/non-GNU ld that we prefer.
6696      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6697      *GNU* | *'with BFD'*)
6698	test no != "$with_gnu_ld" && break
6699	;;
6700      *)
6701	test yes != "$with_gnu_ld" && break
6702	;;
6703      esac
6704    fi
6705  done
6706  IFS=$lt_save_ifs
6707else
6708  lt_cv_path_LD=$LD # Let the user override the test with a path.
6709fi
6710fi
6711
6712LD=$lt_cv_path_LD
6713if test -n "$LD"; then
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6715$as_echo "$LD" >&6; }
6716else
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6722$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6723if ${lt_cv_prog_gnu_ld+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6727case `$LD -v 2>&1 </dev/null` in
6728*GNU* | *'with BFD'*)
6729  lt_cv_prog_gnu_ld=yes
6730  ;;
6731*)
6732  lt_cv_prog_gnu_ld=no
6733  ;;
6734esac
6735fi
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6737$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6738with_gnu_ld=$lt_cv_prog_gnu_ld
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6749$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6750if ${lt_cv_path_NM+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  if test -n "$NM"; then
6754  # Let the user override the test.
6755  lt_cv_path_NM=$NM
6756else
6757  lt_nm_to_check=${ac_tool_prefix}nm
6758  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6759    lt_nm_to_check="$lt_nm_to_check nm"
6760  fi
6761  for lt_tmp_nm in $lt_nm_to_check; do
6762    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6763    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6764      IFS=$lt_save_ifs
6765      test -z "$ac_dir" && ac_dir=.
6766      tmp_nm=$ac_dir/$lt_tmp_nm
6767      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6768	# Check to see if the nm accepts a BSD-compat flag.
6769	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6770	#   nm: unknown option "B" ignored
6771	# Tru64's nm complains that /dev/null is an invalid object file
6772	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6773	case $build_os in
6774	mingw*) lt_bad_file=conftest.nm/nofile ;;
6775	*) lt_bad_file=/dev/null ;;
6776	esac
6777	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6778	*$lt_bad_file* | *'Invalid file or object type'*)
6779	  lt_cv_path_NM="$tmp_nm -B"
6780	  break 2
6781	  ;;
6782	*)
6783	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6784	  */dev/null*)
6785	    lt_cv_path_NM="$tmp_nm -p"
6786	    break 2
6787	    ;;
6788	  *)
6789	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6790	    continue # so that we can try to find one that supports BSD flags
6791	    ;;
6792	  esac
6793	  ;;
6794	esac
6795      fi
6796    done
6797    IFS=$lt_save_ifs
6798  done
6799  : ${lt_cv_path_NM=no}
6800fi
6801fi
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6803$as_echo "$lt_cv_path_NM" >&6; }
6804if test no != "$lt_cv_path_NM"; then
6805  NM=$lt_cv_path_NM
6806else
6807  # Didn't find any BSD compatible name lister, look for dumpbin.
6808  if test -n "$DUMPBIN"; then :
6809    # Let the user override the test.
6810  else
6811    if test -n "$ac_tool_prefix"; then
6812  for ac_prog in dumpbin "link -dump"
6813  do
6814    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6815set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if ${ac_cv_prog_DUMPBIN+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$DUMPBIN"; then
6822  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841DUMPBIN=$ac_cv_prog_DUMPBIN
6842if test -n "$DUMPBIN"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6844$as_echo "$DUMPBIN" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850
6851    test -n "$DUMPBIN" && break
6852  done
6853fi
6854if test -z "$DUMPBIN"; then
6855  ac_ct_DUMPBIN=$DUMPBIN
6856  for ac_prog in dumpbin "link -dump"
6857do
6858  # Extract the first word of "$ac_prog", so it can be a program name with args.
6859set dummy $ac_prog; ac_word=$2
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861$as_echo_n "checking for $ac_word... " >&6; }
6862if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  if test -n "$ac_ct_DUMPBIN"; then
6866  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6867else
6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871  IFS=$as_save_IFS
6872  test -z "$as_dir" && as_dir=.
6873    for ac_exec_ext in '' $ac_executable_extensions; do
6874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877    break 2
6878  fi
6879done
6880  done
6881IFS=$as_save_IFS
6882
6883fi
6884fi
6885ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6886if test -n "$ac_ct_DUMPBIN"; then
6887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6888$as_echo "$ac_ct_DUMPBIN" >&6; }
6889else
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891$as_echo "no" >&6; }
6892fi
6893
6894
6895  test -n "$ac_ct_DUMPBIN" && break
6896done
6897
6898  if test "x$ac_ct_DUMPBIN" = x; then
6899    DUMPBIN=":"
6900  else
6901    case $cross_compiling:$ac_tool_warned in
6902yes:)
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907    DUMPBIN=$ac_ct_DUMPBIN
6908  fi
6909fi
6910
6911    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6912    *COFF*)
6913      DUMPBIN="$DUMPBIN -symbols -headers"
6914      ;;
6915    *)
6916      DUMPBIN=:
6917      ;;
6918    esac
6919  fi
6920
6921  if test : != "$DUMPBIN"; then
6922    NM=$DUMPBIN
6923  fi
6924fi
6925test -z "$NM" && NM=nm
6926
6927
6928
6929
6930
6931
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6933$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6934if ${lt_cv_nm_interface+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  lt_cv_nm_interface="BSD nm"
6938  echo "int some_variable = 0;" > conftest.$ac_ext
6939  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6940  (eval "$ac_compile" 2>conftest.err)
6941  cat conftest.err >&5
6942  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6943  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6944  cat conftest.err >&5
6945  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6946  cat conftest.out >&5
6947  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6948    lt_cv_nm_interface="MS dumpbin"
6949  fi
6950  rm -f conftest*
6951fi
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6953$as_echo "$lt_cv_nm_interface" >&6; }
6954
6955# find the maximum length of command line arguments
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6957$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6958if ${lt_cv_sys_max_cmd_len+:} false; then :
6959  $as_echo_n "(cached) " >&6
6960else
6961    i=0
6962  teststring=ABCD
6963
6964  case $build_os in
6965  msdosdjgpp*)
6966    # On DJGPP, this test can blow up pretty badly due to problems in libc
6967    # (any single argument exceeding 2000 bytes causes a buffer overrun
6968    # during glob expansion).  Even if it were fixed, the result of this
6969    # check would be larger than it should be.
6970    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6971    ;;
6972
6973  gnu*)
6974    # Under GNU Hurd, this test is not required because there is
6975    # no limit to the length of command line arguments.
6976    # Libtool will interpret -1 as no limit whatsoever
6977    lt_cv_sys_max_cmd_len=-1;
6978    ;;
6979
6980  cygwin* | mingw* | cegcc*)
6981    # On Win9x/ME, this test blows up -- it succeeds, but takes
6982    # about 5 minutes as the teststring grows exponentially.
6983    # Worse, since 9x/ME are not pre-emptively multitasking,
6984    # you end up with a "frozen" computer, even though with patience
6985    # the test eventually succeeds (with a max line length of 256k).
6986    # Instead, let's just punt: use the minimum linelength reported by
6987    # all of the supported platforms: 8192 (on NT/2K/XP).
6988    lt_cv_sys_max_cmd_len=8192;
6989    ;;
6990
6991  mint*)
6992    # On MiNT this can take a long time and run out of memory.
6993    lt_cv_sys_max_cmd_len=8192;
6994    ;;
6995
6996  amigaos*)
6997    # On AmigaOS with pdksh, this test takes hours, literally.
6998    # So we just punt and use a minimum line length of 8192.
6999    lt_cv_sys_max_cmd_len=8192;
7000    ;;
7001
7002  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7003    # This has been around since 386BSD, at least.  Likely further.
7004    if test -x /sbin/sysctl; then
7005      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7006    elif test -x /usr/sbin/sysctl; then
7007      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7008    else
7009      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7010    fi
7011    # And add a safety zone
7012    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7013    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7014    ;;
7015
7016  interix*)
7017    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7018    lt_cv_sys_max_cmd_len=196608
7019    ;;
7020
7021  os2*)
7022    # The test takes a long time on OS/2.
7023    lt_cv_sys_max_cmd_len=8192
7024    ;;
7025
7026  osf*)
7027    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7028    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7029    # nice to cause kernel panics so lets avoid the loop below.
7030    # First set a reasonable default.
7031    lt_cv_sys_max_cmd_len=16384
7032    #
7033    if test -x /sbin/sysconfig; then
7034      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7035        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7036      esac
7037    fi
7038    ;;
7039  sco3.2v5*)
7040    lt_cv_sys_max_cmd_len=102400
7041    ;;
7042  sysv5* | sco5v6* | sysv4.2uw2*)
7043    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7044    if test -n "$kargmax"; then
7045      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7046    else
7047      lt_cv_sys_max_cmd_len=32768
7048    fi
7049    ;;
7050  *)
7051    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7052    if test -n "$lt_cv_sys_max_cmd_len" && \
7053       test undefined != "$lt_cv_sys_max_cmd_len"; then
7054      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7055      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7056    else
7057      # Make teststring a little bigger before we do anything with it.
7058      # a 1K string should be a reasonable start.
7059      for i in 1 2 3 4 5 6 7 8; do
7060        teststring=$teststring$teststring
7061      done
7062      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7063      # If test is not a shell built-in, we'll probably end up computing a
7064      # maximum length that is only half of the actual maximum length, but
7065      # we can't tell.
7066      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7067	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7068	      test 17 != "$i" # 1/2 MB should be enough
7069      do
7070        i=`expr $i + 1`
7071        teststring=$teststring$teststring
7072      done
7073      # Only check the string length outside the loop.
7074      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7075      teststring=
7076      # Add a significant safety factor because C++ compilers can tack on
7077      # massive amounts of additional arguments before passing them to the
7078      # linker.  It appears as though 1/2 is a usable value.
7079      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7080    fi
7081    ;;
7082  esac
7083
7084fi
7085
7086if test -n "$lt_cv_sys_max_cmd_len"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7088$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7091$as_echo "none" >&6; }
7092fi
7093max_cmd_len=$lt_cv_sys_max_cmd_len
7094
7095
7096
7097
7098
7099
7100: ${CP="cp -f"}
7101: ${MV="mv -f"}
7102: ${RM="rm -f"}
7103
7104if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7105  lt_unset=unset
7106else
7107  lt_unset=false
7108fi
7109
7110
7111
7112
7113
7114# test EBCDIC or ASCII
7115case `echo X|tr X '\101'` in
7116 A) # ASCII based system
7117    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7118  lt_SP2NL='tr \040 \012'
7119  lt_NL2SP='tr \015\012 \040\040'
7120  ;;
7121 *) # EBCDIC based system
7122  lt_SP2NL='tr \100 \n'
7123  lt_NL2SP='tr \r\n \100\100'
7124  ;;
7125esac
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7136$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7137if ${lt_cv_to_host_file_cmd+:} false; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140  case $host in
7141  *-*-mingw* )
7142    case $build in
7143      *-*-mingw* ) # actually msys
7144        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7145        ;;
7146      *-*-cygwin* )
7147        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7148        ;;
7149      * ) # otherwise, assume *nix
7150        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7151        ;;
7152    esac
7153    ;;
7154  *-*-cygwin* )
7155    case $build in
7156      *-*-mingw* ) # actually msys
7157        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7158        ;;
7159      *-*-cygwin* )
7160        lt_cv_to_host_file_cmd=func_convert_file_noop
7161        ;;
7162      * ) # otherwise, assume *nix
7163        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7164        ;;
7165    esac
7166    ;;
7167  * ) # unhandled hosts (and "normal" native builds)
7168    lt_cv_to_host_file_cmd=func_convert_file_noop
7169    ;;
7170esac
7171
7172fi
7173
7174to_host_file_cmd=$lt_cv_to_host_file_cmd
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7176$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7177
7178
7179
7180
7181
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7183$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7184if ${lt_cv_to_tool_file_cmd+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  #assume ordinary cross tools, or native build.
7188lt_cv_to_tool_file_cmd=func_convert_file_noop
7189case $host in
7190  *-*-mingw* )
7191    case $build in
7192      *-*-mingw* ) # actually msys
7193        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7194        ;;
7195    esac
7196    ;;
7197esac
7198
7199fi
7200
7201to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7203$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7204
7205
7206
7207
7208
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7210$as_echo_n "checking for $LD option to reload object files... " >&6; }
7211if ${lt_cv_ld_reload_flag+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  lt_cv_ld_reload_flag='-r'
7215fi
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7217$as_echo "$lt_cv_ld_reload_flag" >&6; }
7218reload_flag=$lt_cv_ld_reload_flag
7219case $reload_flag in
7220"" | " "*) ;;
7221*) reload_flag=" $reload_flag" ;;
7222esac
7223reload_cmds='$LD$reload_flag -o $output$reload_objs'
7224case $host_os in
7225  cygwin* | mingw* | pw32* | cegcc*)
7226    if test yes != "$GCC"; then
7227      reload_cmds=false
7228    fi
7229    ;;
7230  darwin*)
7231    if test yes = "$GCC"; then
7232      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7233    else
7234      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7235    fi
7236    ;;
7237esac
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247if test -n "$ac_tool_prefix"; then
7248  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7249set dummy ${ac_tool_prefix}objdump; ac_word=$2
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251$as_echo_n "checking for $ac_word... " >&6; }
7252if ${ac_cv_prog_OBJDUMP+:} false; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255  if test -n "$OBJDUMP"; then
7256  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261  IFS=$as_save_IFS
7262  test -z "$as_dir" && as_dir=.
7263    for ac_exec_ext in '' $ac_executable_extensions; do
7264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267    break 2
7268  fi
7269done
7270  done
7271IFS=$as_save_IFS
7272
7273fi
7274fi
7275OBJDUMP=$ac_cv_prog_OBJDUMP
7276if test -n "$OBJDUMP"; then
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7278$as_echo "$OBJDUMP" >&6; }
7279else
7280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284
7285fi
7286if test -z "$ac_cv_prog_OBJDUMP"; then
7287  ac_ct_OBJDUMP=$OBJDUMP
7288  # Extract the first word of "objdump", so it can be a program name with args.
7289set dummy objdump; ac_word=$2
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291$as_echo_n "checking for $ac_word... " >&6; }
7292if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7293  $as_echo_n "(cached) " >&6
7294else
7295  if test -n "$ac_ct_OBJDUMP"; then
7296  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301  IFS=$as_save_IFS
7302  test -z "$as_dir" && as_dir=.
7303    for ac_exec_ext in '' $ac_executable_extensions; do
7304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307    break 2
7308  fi
7309done
7310  done
7311IFS=$as_save_IFS
7312
7313fi
7314fi
7315ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7316if test -n "$ac_ct_OBJDUMP"; then
7317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7318$as_echo "$ac_ct_OBJDUMP" >&6; }
7319else
7320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322fi
7323
7324  if test "x$ac_ct_OBJDUMP" = x; then
7325    OBJDUMP="false"
7326  else
7327    case $cross_compiling:$ac_tool_warned in
7328yes:)
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331ac_tool_warned=yes ;;
7332esac
7333    OBJDUMP=$ac_ct_OBJDUMP
7334  fi
7335else
7336  OBJDUMP="$ac_cv_prog_OBJDUMP"
7337fi
7338
7339test -z "$OBJDUMP" && OBJDUMP=objdump
7340
7341
7342
7343
7344
7345
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7347$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7348if ${lt_cv_deplibs_check_method+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  lt_cv_file_magic_cmd='$MAGIC_CMD'
7352lt_cv_file_magic_test_file=
7353lt_cv_deplibs_check_method='unknown'
7354# Need to set the preceding variable on all platforms that support
7355# interlibrary dependencies.
7356# 'none' -- dependencies not supported.
7357# 'unknown' -- same as none, but documents that we really don't know.
7358# 'pass_all' -- all dependencies passed with no checks.
7359# 'test_compile' -- check by making test program.
7360# 'file_magic [[regex]]' -- check by looking for files in library path
7361# that responds to the $file_magic_cmd with a given extended regex.
7362# If you have 'file' or equivalent on your system and you're not sure
7363# whether 'pass_all' will *always* work, you probably want this one.
7364
7365case $host_os in
7366aix[4-9]*)
7367  lt_cv_deplibs_check_method=pass_all
7368  ;;
7369
7370beos*)
7371  lt_cv_deplibs_check_method=pass_all
7372  ;;
7373
7374bsdi[45]*)
7375  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7376  lt_cv_file_magic_cmd='/usr/bin/file -L'
7377  lt_cv_file_magic_test_file=/shlib/libc.so
7378  ;;
7379
7380cygwin*)
7381  # func_win32_libid is a shell function defined in ltmain.sh
7382  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7383  lt_cv_file_magic_cmd='func_win32_libid'
7384  ;;
7385
7386mingw* | pw32*)
7387  # Base MSYS/MinGW do not provide the 'file' command needed by
7388  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7389  # unless we find 'file', for example because we are cross-compiling.
7390  if ( file / ) >/dev/null 2>&1; then
7391    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7392    lt_cv_file_magic_cmd='func_win32_libid'
7393  else
7394    # Keep this pattern in sync with the one in func_win32_libid.
7395    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7396    lt_cv_file_magic_cmd='$OBJDUMP -f'
7397  fi
7398  ;;
7399
7400cegcc*)
7401  # use the weaker test based on 'objdump'. See mingw*.
7402  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7403  lt_cv_file_magic_cmd='$OBJDUMP -f'
7404  ;;
7405
7406darwin* | rhapsody*)
7407  lt_cv_deplibs_check_method=pass_all
7408  ;;
7409
7410freebsd* | dragonfly*)
7411  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7412    case $host_cpu in
7413    i*86 )
7414      # Not sure whether the presence of OpenBSD here was a mistake.
7415      # Let's accept both of them until this is cleared up.
7416      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7417      lt_cv_file_magic_cmd=/usr/bin/file
7418      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7419      ;;
7420    esac
7421  else
7422    lt_cv_deplibs_check_method=pass_all
7423  fi
7424  ;;
7425
7426haiku*)
7427  lt_cv_deplibs_check_method=pass_all
7428  ;;
7429
7430hpux10.20* | hpux11*)
7431  lt_cv_file_magic_cmd=/usr/bin/file
7432  case $host_cpu in
7433  ia64*)
7434    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7435    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7436    ;;
7437  hppa*64*)
7438    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]'
7439    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7440    ;;
7441  *)
7442    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7443    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7444    ;;
7445  esac
7446  ;;
7447
7448interix[3-9]*)
7449  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7450  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7451  ;;
7452
7453irix5* | irix6* | nonstopux*)
7454  case $LD in
7455  *-32|*"-32 ") libmagic=32-bit;;
7456  *-n32|*"-n32 ") libmagic=N32;;
7457  *-64|*"-64 ") libmagic=64-bit;;
7458  *) libmagic=never-match;;
7459  esac
7460  lt_cv_deplibs_check_method=pass_all
7461  ;;
7462
7463# This must be glibc/ELF.
7464linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7465  lt_cv_deplibs_check_method=pass_all
7466  ;;
7467
7468netbsd*)
7469  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7470    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7471  else
7472    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7473  fi
7474  ;;
7475
7476newos6*)
7477  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7478  lt_cv_file_magic_cmd=/usr/bin/file
7479  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7480  ;;
7481
7482*nto* | *qnx*)
7483  lt_cv_deplibs_check_method=pass_all
7484  ;;
7485
7486openbsd* | bitrig*)
7487  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7488    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7489  else
7490    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7491  fi
7492  ;;
7493
7494osf3* | osf4* | osf5*)
7495  lt_cv_deplibs_check_method=pass_all
7496  ;;
7497
7498rdos*)
7499  lt_cv_deplibs_check_method=pass_all
7500  ;;
7501
7502solaris*)
7503  lt_cv_deplibs_check_method=pass_all
7504  ;;
7505
7506sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7507  lt_cv_deplibs_check_method=pass_all
7508  ;;
7509
7510sysv4 | sysv4.3*)
7511  case $host_vendor in
7512  motorola)
7513    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]'
7514    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7515    ;;
7516  ncr)
7517    lt_cv_deplibs_check_method=pass_all
7518    ;;
7519  sequent)
7520    lt_cv_file_magic_cmd='/bin/file'
7521    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7522    ;;
7523  sni)
7524    lt_cv_file_magic_cmd='/bin/file'
7525    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7526    lt_cv_file_magic_test_file=/lib/libc.so
7527    ;;
7528  siemens)
7529    lt_cv_deplibs_check_method=pass_all
7530    ;;
7531  pc)
7532    lt_cv_deplibs_check_method=pass_all
7533    ;;
7534  esac
7535  ;;
7536
7537tpf*)
7538  lt_cv_deplibs_check_method=pass_all
7539  ;;
7540os2*)
7541  lt_cv_deplibs_check_method=pass_all
7542  ;;
7543esac
7544
7545fi
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7547$as_echo "$lt_cv_deplibs_check_method" >&6; }
7548
7549file_magic_glob=
7550want_nocaseglob=no
7551if test "$build" = "$host"; then
7552  case $host_os in
7553  mingw* | pw32*)
7554    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7555      want_nocaseglob=yes
7556    else
7557      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7558    fi
7559    ;;
7560  esac
7561fi
7562
7563file_magic_cmd=$lt_cv_file_magic_cmd
7564deplibs_check_method=$lt_cv_deplibs_check_method
7565test -z "$deplibs_check_method" && deplibs_check_method=unknown
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588if test -n "$ac_tool_prefix"; then
7589  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7590set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if ${ac_cv_prog_DLLTOOL+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  if test -n "$DLLTOOL"; then
7597  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602  IFS=$as_save_IFS
7603  test -z "$as_dir" && as_dir=.
7604    for ac_exec_ext in '' $ac_executable_extensions; do
7605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608    break 2
7609  fi
7610done
7611  done
7612IFS=$as_save_IFS
7613
7614fi
7615fi
7616DLLTOOL=$ac_cv_prog_DLLTOOL
7617if test -n "$DLLTOOL"; then
7618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7619$as_echo "$DLLTOOL" >&6; }
7620else
7621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623fi
7624
7625
7626fi
7627if test -z "$ac_cv_prog_DLLTOOL"; then
7628  ac_ct_DLLTOOL=$DLLTOOL
7629  # Extract the first word of "dlltool", so it can be a program name with args.
7630set dummy dlltool; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$ac_ct_DLLTOOL"; then
7637  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7657if test -n "$ac_ct_DLLTOOL"; then
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7659$as_echo "$ac_ct_DLLTOOL" >&6; }
7660else
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
7664
7665  if test "x$ac_ct_DLLTOOL" = x; then
7666    DLLTOOL="false"
7667  else
7668    case $cross_compiling:$ac_tool_warned in
7669yes:)
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672ac_tool_warned=yes ;;
7673esac
7674    DLLTOOL=$ac_ct_DLLTOOL
7675  fi
7676else
7677  DLLTOOL="$ac_cv_prog_DLLTOOL"
7678fi
7679
7680test -z "$DLLTOOL" && DLLTOOL=dlltool
7681
7682
7683
7684
7685
7686
7687
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7689$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7690if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  lt_cv_sharedlib_from_linklib_cmd='unknown'
7694
7695case $host_os in
7696cygwin* | mingw* | pw32* | cegcc*)
7697  # two different shell functions defined in ltmain.sh;
7698  # decide which one to use based on capabilities of $DLLTOOL
7699  case `$DLLTOOL --help 2>&1` in
7700  *--identify-strict*)
7701    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7702    ;;
7703  *)
7704    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7705    ;;
7706  esac
7707  ;;
7708*)
7709  # fallback: assume linklib IS sharedlib
7710  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7711  ;;
7712esac
7713
7714fi
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7716$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7717sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7718test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7719
7720
7721
7722
7723
7724
7725
7726if test -n "$ac_tool_prefix"; then
7727  for ac_prog in ar
7728  do
7729    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7730set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_AR+:} false; then :
7734  $as_echo_n "(cached) " >&6
7735else
7736  if test -n "$AR"; then
7737  ac_cv_prog_AR="$AR" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742  IFS=$as_save_IFS
7743  test -z "$as_dir" && as_dir=.
7744    for ac_exec_ext in '' $ac_executable_extensions; do
7745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748    break 2
7749  fi
7750done
7751  done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756AR=$ac_cv_prog_AR
7757if test -n "$AR"; then
7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7759$as_echo "$AR" >&6; }
7760else
7761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
7764
7765
7766    test -n "$AR" && break
7767  done
7768fi
7769if test -z "$AR"; then
7770  ac_ct_AR=$AR
7771  for ac_prog in ar
7772do
7773  # Extract the first word of "$ac_prog", so it can be a program name with args.
7774set dummy $ac_prog; ac_word=$2
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if ${ac_cv_prog_ac_ct_AR+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  if test -n "$ac_ct_AR"; then
7781  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7782else
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786  IFS=$as_save_IFS
7787  test -z "$as_dir" && as_dir=.
7788    for ac_exec_ext in '' $ac_executable_extensions; do
7789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790    ac_cv_prog_ac_ct_AR="$ac_prog"
7791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792    break 2
7793  fi
7794done
7795  done
7796IFS=$as_save_IFS
7797
7798fi
7799fi
7800ac_ct_AR=$ac_cv_prog_ac_ct_AR
7801if test -n "$ac_ct_AR"; then
7802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7803$as_echo "$ac_ct_AR" >&6; }
7804else
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809
7810  test -n "$ac_ct_AR" && break
7811done
7812
7813  if test "x$ac_ct_AR" = x; then
7814    AR="false"
7815  else
7816    case $cross_compiling:$ac_tool_warned in
7817yes:)
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820ac_tool_warned=yes ;;
7821esac
7822    AR=$ac_ct_AR
7823  fi
7824fi
7825
7826: ${AR=ar}
7827: ${AR_FLAGS=cru}
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7840$as_echo_n "checking for archiver @FILE support... " >&6; }
7841if ${lt_cv_ar_at_file+:} false; then :
7842  $as_echo_n "(cached) " >&6
7843else
7844  lt_cv_ar_at_file=no
7845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846/* end confdefs.h.  */
7847
7848int
7849main ()
7850{
7851
7852  ;
7853  return 0;
7854}
7855_ACEOF
7856if ac_fn_c_try_compile "$LINENO"; then :
7857  echo conftest.$ac_objext > conftest.lst
7858      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7859      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7860  (eval $lt_ar_try) 2>&5
7861  ac_status=$?
7862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7863  test $ac_status = 0; }
7864      if test 0 -eq "$ac_status"; then
7865	# Ensure the archiver fails upon bogus file names.
7866	rm -f conftest.$ac_objext libconftest.a
7867	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7868  (eval $lt_ar_try) 2>&5
7869  ac_status=$?
7870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871  test $ac_status = 0; }
7872	if test 0 -ne "$ac_status"; then
7873          lt_cv_ar_at_file=@
7874        fi
7875      fi
7876      rm -f conftest.* libconftest.a
7877
7878fi
7879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7883$as_echo "$lt_cv_ar_at_file" >&6; }
7884
7885if test no = "$lt_cv_ar_at_file"; then
7886  archiver_list_spec=
7887else
7888  archiver_list_spec=$lt_cv_ar_at_file
7889fi
7890
7891
7892
7893
7894
7895
7896
7897if test -n "$ac_tool_prefix"; then
7898  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7899set dummy ${ac_tool_prefix}strip; ac_word=$2
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
7902if ${ac_cv_prog_STRIP+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  if test -n "$STRIP"; then
7906  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911  IFS=$as_save_IFS
7912  test -z "$as_dir" && as_dir=.
7913    for ac_exec_ext in '' $ac_executable_extensions; do
7914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917    break 2
7918  fi
7919done
7920  done
7921IFS=$as_save_IFS
7922
7923fi
7924fi
7925STRIP=$ac_cv_prog_STRIP
7926if test -n "$STRIP"; then
7927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7928$as_echo "$STRIP" >&6; }
7929else
7930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
7933
7934
7935fi
7936if test -z "$ac_cv_prog_STRIP"; then
7937  ac_ct_STRIP=$STRIP
7938  # Extract the first word of "strip", so it can be a program name with args.
7939set dummy strip; ac_word=$2
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941$as_echo_n "checking for $ac_word... " >&6; }
7942if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7943  $as_echo_n "(cached) " >&6
7944else
7945  if test -n "$ac_ct_STRIP"; then
7946  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7947else
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951  IFS=$as_save_IFS
7952  test -z "$as_dir" && as_dir=.
7953    for ac_exec_ext in '' $ac_executable_extensions; do
7954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955    ac_cv_prog_ac_ct_STRIP="strip"
7956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957    break 2
7958  fi
7959done
7960  done
7961IFS=$as_save_IFS
7962
7963fi
7964fi
7965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7966if test -n "$ac_ct_STRIP"; then
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7968$as_echo "$ac_ct_STRIP" >&6; }
7969else
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
7972fi
7973
7974  if test "x$ac_ct_STRIP" = x; then
7975    STRIP=":"
7976  else
7977    case $cross_compiling:$ac_tool_warned in
7978yes:)
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981ac_tool_warned=yes ;;
7982esac
7983    STRIP=$ac_ct_STRIP
7984  fi
7985else
7986  STRIP="$ac_cv_prog_STRIP"
7987fi
7988
7989test -z "$STRIP" && STRIP=:
7990
7991
7992
7993
7994
7995
7996if test -n "$ac_tool_prefix"; then
7997  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7998set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000$as_echo_n "checking for $ac_word... " >&6; }
8001if ${ac_cv_prog_RANLIB+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  if test -n "$RANLIB"; then
8005  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8006else
8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010  IFS=$as_save_IFS
8011  test -z "$as_dir" && as_dir=.
8012    for ac_exec_ext in '' $ac_executable_extensions; do
8013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016    break 2
8017  fi
8018done
8019  done
8020IFS=$as_save_IFS
8021
8022fi
8023fi
8024RANLIB=$ac_cv_prog_RANLIB
8025if test -n "$RANLIB"; then
8026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8027$as_echo "$RANLIB" >&6; }
8028else
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030$as_echo "no" >&6; }
8031fi
8032
8033
8034fi
8035if test -z "$ac_cv_prog_RANLIB"; then
8036  ac_ct_RANLIB=$RANLIB
8037  # Extract the first word of "ranlib", so it can be a program name with args.
8038set dummy ranlib; ac_word=$2
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8042  $as_echo_n "(cached) " >&6
8043else
8044  if test -n "$ac_ct_RANLIB"; then
8045  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050  IFS=$as_save_IFS
8051  test -z "$as_dir" && as_dir=.
8052    for ac_exec_ext in '' $ac_executable_extensions; do
8053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054    ac_cv_prog_ac_ct_RANLIB="ranlib"
8055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056    break 2
8057  fi
8058done
8059  done
8060IFS=$as_save_IFS
8061
8062fi
8063fi
8064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8065if test -n "$ac_ct_RANLIB"; then
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8067$as_echo "$ac_ct_RANLIB" >&6; }
8068else
8069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071fi
8072
8073  if test "x$ac_ct_RANLIB" = x; then
8074    RANLIB=":"
8075  else
8076    case $cross_compiling:$ac_tool_warned in
8077yes:)
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080ac_tool_warned=yes ;;
8081esac
8082    RANLIB=$ac_ct_RANLIB
8083  fi
8084else
8085  RANLIB="$ac_cv_prog_RANLIB"
8086fi
8087
8088test -z "$RANLIB" && RANLIB=:
8089
8090
8091
8092
8093
8094
8095# Determine commands to create old-style static archives.
8096old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8097old_postinstall_cmds='chmod 644 $oldlib'
8098old_postuninstall_cmds=
8099
8100if test -n "$RANLIB"; then
8101  case $host_os in
8102  bitrig* | openbsd*)
8103    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8104    ;;
8105  *)
8106    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8107    ;;
8108  esac
8109  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8110fi
8111
8112case $host_os in
8113  darwin*)
8114    lock_old_archive_extraction=yes ;;
8115  *)
8116    lock_old_archive_extraction=no ;;
8117esac
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157# If no C compiler was specified, use CC.
8158LTCC=${LTCC-"$CC"}
8159
8160# If no C compiler flags were specified, use CFLAGS.
8161LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8162
8163# Allow CC to be a program name with arguments.
8164compiler=$CC
8165
8166
8167# Check for command to grab the raw symbol name followed by C symbol from nm.
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8169$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8170if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173
8174# These are sane defaults that work on at least a few old systems.
8175# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8176
8177# Character class describing NM global symbol codes.
8178symcode='[BCDEGRST]'
8179
8180# Regexp to match symbols that can be accessed directly from C.
8181sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8182
8183# Define system-specific variables.
8184case $host_os in
8185aix*)
8186  symcode='[BCDT]'
8187  ;;
8188cygwin* | mingw* | pw32* | cegcc*)
8189  symcode='[ABCDGISTW]'
8190  ;;
8191hpux*)
8192  if test ia64 = "$host_cpu"; then
8193    symcode='[ABCDEGRST]'
8194  fi
8195  ;;
8196irix* | nonstopux*)
8197  symcode='[BCDEGRST]'
8198  ;;
8199osf*)
8200  symcode='[BCDEGQRST]'
8201  ;;
8202solaris*)
8203  symcode='[BDRT]'
8204  ;;
8205sco3.2v5*)
8206  symcode='[DT]'
8207  ;;
8208sysv4.2uw2*)
8209  symcode='[DT]'
8210  ;;
8211sysv5* | sco5v6* | unixware* | OpenUNIX*)
8212  symcode='[ABDT]'
8213  ;;
8214sysv4)
8215  symcode='[DFNSTU]'
8216  ;;
8217esac
8218
8219# If we're using GNU nm, then use its standard symbol codes.
8220case `$NM -V 2>&1` in
8221*GNU* | *'with BFD'*)
8222  symcode='[ABCDGIRSTW]' ;;
8223esac
8224
8225if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8226  # Gets list of data symbols to import.
8227  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8228  # Adjust the below global symbol transforms to fixup imported variables.
8229  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8230  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8231  lt_c_name_lib_hook="\
8232  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8233  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8234else
8235  # Disable hooks by default.
8236  lt_cv_sys_global_symbol_to_import=
8237  lt_cdecl_hook=
8238  lt_c_name_hook=
8239  lt_c_name_lib_hook=
8240fi
8241
8242# Transform an extracted symbol line into a proper C declaration.
8243# Some systems (esp. on ia64) link data and code symbols differently,
8244# so use this general approach.
8245lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8246$lt_cdecl_hook\
8247" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8248" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8249
8250# Transform an extracted symbol line into symbol name and symbol address
8251lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8252$lt_c_name_hook\
8253" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8254" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8255
8256# Transform an extracted symbol line into symbol name with lib prefix and
8257# symbol address.
8258lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8259$lt_c_name_lib_hook\
8260" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8261" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8262" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8263
8264# Handle CRLF in mingw tool chain
8265opt_cr=
8266case $build_os in
8267mingw*)
8268  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8269  ;;
8270esac
8271
8272# Try without a prefix underscore, then with it.
8273for ac_symprfx in "" "_"; do
8274
8275  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8276  symxfrm="\\1 $ac_symprfx\\2 \\2"
8277
8278  # Write the raw and C identifiers.
8279  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8280    # Fake it for dumpbin and say T for any non-static function,
8281    # D for any global variable and I for any imported variable.
8282    # Also find C++ and __fastcall symbols from MSVC++,
8283    # which start with @ or ?.
8284    lt_cv_sys_global_symbol_pipe="$AWK '"\
8285"     {last_section=section; section=\$ 3};"\
8286"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8287"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8288"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8289"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8290"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8291"     \$ 0!~/External *\|/{next};"\
8292"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8293"     {if(hide[section]) next};"\
8294"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8295"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8296"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8297"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8298"     ' prfx=^$ac_symprfx"
8299  else
8300    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8301  fi
8302  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8303
8304  # Check to see that the pipe works correctly.
8305  pipe_works=no
8306
8307  rm -f conftest*
8308  cat > conftest.$ac_ext <<_LT_EOF
8309#ifdef __cplusplus
8310extern "C" {
8311#endif
8312char nm_test_var;
8313void nm_test_func(void);
8314void nm_test_func(void){}
8315#ifdef __cplusplus
8316}
8317#endif
8318int main(){nm_test_var='a';nm_test_func();return(0);}
8319_LT_EOF
8320
8321  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8322  (eval $ac_compile) 2>&5
8323  ac_status=$?
8324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8325  test $ac_status = 0; }; then
8326    # Now try to grab the symbols.
8327    nlist=conftest.nm
8328    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8329  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8330  ac_status=$?
8331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332  test $ac_status = 0; } && test -s "$nlist"; then
8333      # Try sorting and uniquifying the output.
8334      if sort "$nlist" | uniq > "$nlist"T; then
8335	mv -f "$nlist"T "$nlist"
8336      else
8337	rm -f "$nlist"T
8338      fi
8339
8340      # Make sure that we snagged all the symbols we need.
8341      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8342	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8343	  cat <<_LT_EOF > conftest.$ac_ext
8344/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8345#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8346/* DATA imports from DLLs on WIN32 can't be const, because runtime
8347   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8348# define LT_DLSYM_CONST
8349#elif defined __osf__
8350/* This system does not cope well with relocations in const data.  */
8351# define LT_DLSYM_CONST
8352#else
8353# define LT_DLSYM_CONST const
8354#endif
8355
8356#ifdef __cplusplus
8357extern "C" {
8358#endif
8359
8360_LT_EOF
8361	  # Now generate the symbol file.
8362	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8363
8364	  cat <<_LT_EOF >> conftest.$ac_ext
8365
8366/* The mapping between symbol names and symbols.  */
8367LT_DLSYM_CONST struct {
8368  const char *name;
8369  void       *address;
8370}
8371lt__PROGRAM__LTX_preloaded_symbols[] =
8372{
8373  { "@PROGRAM@", (void *) 0 },
8374_LT_EOF
8375	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8376	  cat <<\_LT_EOF >> conftest.$ac_ext
8377  {0, (void *) 0}
8378};
8379
8380/* This works around a problem in FreeBSD linker */
8381#ifdef FREEBSD_WORKAROUND
8382static const void *lt_preloaded_setup() {
8383  return lt__PROGRAM__LTX_preloaded_symbols;
8384}
8385#endif
8386
8387#ifdef __cplusplus
8388}
8389#endif
8390_LT_EOF
8391	  # Now try linking the two files.
8392	  mv conftest.$ac_objext conftstm.$ac_objext
8393	  lt_globsym_save_LIBS=$LIBS
8394	  lt_globsym_save_CFLAGS=$CFLAGS
8395	  LIBS=conftstm.$ac_objext
8396	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8397	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8398  (eval $ac_link) 2>&5
8399  ac_status=$?
8400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8401  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8402	    pipe_works=yes
8403	  fi
8404	  LIBS=$lt_globsym_save_LIBS
8405	  CFLAGS=$lt_globsym_save_CFLAGS
8406	else
8407	  echo "cannot find nm_test_func in $nlist" >&5
8408	fi
8409      else
8410	echo "cannot find nm_test_var in $nlist" >&5
8411      fi
8412    else
8413      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8414    fi
8415  else
8416    echo "$progname: failed program was:" >&5
8417    cat conftest.$ac_ext >&5
8418  fi
8419  rm -rf conftest* conftst*
8420
8421  # Do not use the global_symbol_pipe unless it works.
8422  if test yes = "$pipe_works"; then
8423    break
8424  else
8425    lt_cv_sys_global_symbol_pipe=
8426  fi
8427done
8428
8429fi
8430
8431if test -z "$lt_cv_sys_global_symbol_pipe"; then
8432  lt_cv_sys_global_symbol_to_cdecl=
8433fi
8434if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8436$as_echo "failed" >&6; }
8437else
8438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8439$as_echo "ok" >&6; }
8440fi
8441
8442# Response file support.
8443if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8444  nm_file_list_spec='@'
8445elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8446  nm_file_list_spec='@'
8447fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8486$as_echo_n "checking for sysroot... " >&6; }
8487
8488# Check whether --with-sysroot was given.
8489if test "${with_sysroot+set}" = set; then :
8490  withval=$with_sysroot;
8491else
8492  with_sysroot=no
8493fi
8494
8495
8496lt_sysroot=
8497case $with_sysroot in #(
8498 yes)
8499   if test yes = "$GCC"; then
8500     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8501   fi
8502   ;; #(
8503 /*)
8504   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8505   ;; #(
8506 no|'')
8507   ;; #(
8508 *)
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8510$as_echo "$with_sysroot" >&6; }
8511   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8512   ;;
8513esac
8514
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8516$as_echo "${lt_sysroot:-no}" >&6; }
8517
8518
8519
8520
8521
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8523$as_echo_n "checking for a working dd... " >&6; }
8524if ${ac_cv_path_lt_DD+:} false; then :
8525  $as_echo_n "(cached) " >&6
8526else
8527  printf 0123456789abcdef0123456789abcdef >conftest.i
8528cat conftest.i conftest.i >conftest2.i
8529: ${lt_DD:=$DD}
8530if test -z "$lt_DD"; then
8531  ac_path_lt_DD_found=false
8532  # Loop through the user's path and test for each of PROGNAME-LIST
8533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536  IFS=$as_save_IFS
8537  test -z "$as_dir" && as_dir=.
8538    for ac_prog in dd; do
8539    for ac_exec_ext in '' $ac_executable_extensions; do
8540      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8541      as_fn_executable_p "$ac_path_lt_DD" || continue
8542if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8543  cmp -s conftest.i conftest.out \
8544  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8545fi
8546      $ac_path_lt_DD_found && break 3
8547    done
8548  done
8549  done
8550IFS=$as_save_IFS
8551  if test -z "$ac_cv_path_lt_DD"; then
8552    :
8553  fi
8554else
8555  ac_cv_path_lt_DD=$lt_DD
8556fi
8557
8558rm -f conftest.i conftest2.i conftest.out
8559fi
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8561$as_echo "$ac_cv_path_lt_DD" >&6; }
8562
8563
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8565$as_echo_n "checking how to truncate binary pipes... " >&6; }
8566if ${lt_cv_truncate_bin+:} false; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569  printf 0123456789abcdef0123456789abcdef >conftest.i
8570cat conftest.i conftest.i >conftest2.i
8571lt_cv_truncate_bin=
8572if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8573  cmp -s conftest.i conftest.out \
8574  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8575fi
8576rm -f conftest.i conftest2.i conftest.out
8577test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8580$as_echo "$lt_cv_truncate_bin" >&6; }
8581
8582
8583
8584
8585
8586
8587
8588# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8589func_cc_basename ()
8590{
8591    for cc_temp in $*""; do
8592      case $cc_temp in
8593        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8594        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8595        \-*) ;;
8596        *) break;;
8597      esac
8598    done
8599    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8600}
8601
8602# Check whether --enable-libtool-lock was given.
8603if test "${enable_libtool_lock+set}" = set; then :
8604  enableval=$enable_libtool_lock;
8605fi
8606
8607test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8608
8609# Some flags need to be propagated to the compiler or linker for good
8610# libtool support.
8611case $host in
8612ia64-*-hpux*)
8613  # Find out what ABI is being produced by ac_compile, and set mode
8614  # options accordingly.
8615  echo 'int i;' > conftest.$ac_ext
8616  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8617  (eval $ac_compile) 2>&5
8618  ac_status=$?
8619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8620  test $ac_status = 0; }; then
8621    case `/usr/bin/file conftest.$ac_objext` in
8622      *ELF-32*)
8623	HPUX_IA64_MODE=32
8624	;;
8625      *ELF-64*)
8626	HPUX_IA64_MODE=64
8627	;;
8628    esac
8629  fi
8630  rm -rf conftest*
8631  ;;
8632*-*-irix6*)
8633  # Find out what ABI is being produced by ac_compile, and set linker
8634  # options accordingly.
8635  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8636  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8637  (eval $ac_compile) 2>&5
8638  ac_status=$?
8639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8640  test $ac_status = 0; }; then
8641    if test yes = "$lt_cv_prog_gnu_ld"; then
8642      case `/usr/bin/file conftest.$ac_objext` in
8643	*32-bit*)
8644	  LD="${LD-ld} -melf32bsmip"
8645	  ;;
8646	*N32*)
8647	  LD="${LD-ld} -melf32bmipn32"
8648	  ;;
8649	*64-bit*)
8650	  LD="${LD-ld} -melf64bmip"
8651	;;
8652      esac
8653    else
8654      case `/usr/bin/file conftest.$ac_objext` in
8655	*32-bit*)
8656	  LD="${LD-ld} -32"
8657	  ;;
8658	*N32*)
8659	  LD="${LD-ld} -n32"
8660	  ;;
8661	*64-bit*)
8662	  LD="${LD-ld} -64"
8663	  ;;
8664      esac
8665    fi
8666  fi
8667  rm -rf conftest*
8668  ;;
8669
8670mips64*-*linux*)
8671  # Find out what ABI is being produced by ac_compile, and set linker
8672  # options accordingly.
8673  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8674  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8675  (eval $ac_compile) 2>&5
8676  ac_status=$?
8677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8678  test $ac_status = 0; }; then
8679    emul=elf
8680    case `/usr/bin/file conftest.$ac_objext` in
8681      *32-bit*)
8682	emul="${emul}32"
8683	;;
8684      *64-bit*)
8685	emul="${emul}64"
8686	;;
8687    esac
8688    case `/usr/bin/file conftest.$ac_objext` in
8689      *MSB*)
8690	emul="${emul}btsmip"
8691	;;
8692      *LSB*)
8693	emul="${emul}ltsmip"
8694	;;
8695    esac
8696    case `/usr/bin/file conftest.$ac_objext` in
8697      *N32*)
8698	emul="${emul}n32"
8699	;;
8700    esac
8701    LD="${LD-ld} -m $emul"
8702  fi
8703  rm -rf conftest*
8704  ;;
8705
8706x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8707s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8708  # Find out what ABI is being produced by ac_compile, and set linker
8709  # options accordingly.  Note that the listed cases only cover the
8710  # situations where additional linker options are needed (such as when
8711  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8712  # vice versa); the common cases where no linker options are needed do
8713  # not appear in the list.
8714  echo 'int i;' > conftest.$ac_ext
8715  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8716  (eval $ac_compile) 2>&5
8717  ac_status=$?
8718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8719  test $ac_status = 0; }; then
8720    case `/usr/bin/file conftest.o` in
8721      *32-bit*)
8722	case $host in
8723	  x86_64-*kfreebsd*-gnu)
8724	    LD="${LD-ld} -m elf_i386_fbsd"
8725	    ;;
8726	  x86_64-*linux*)
8727	    case `/usr/bin/file conftest.o` in
8728	      *x86-64*)
8729		LD="${LD-ld} -m elf32_x86_64"
8730		;;
8731	      *)
8732		LD="${LD-ld} -m elf_i386"
8733		;;
8734	    esac
8735	    ;;
8736	  powerpc64le-*linux*)
8737	    LD="${LD-ld} -m elf32lppclinux"
8738	    ;;
8739	  powerpc64-*linux*)
8740	    LD="${LD-ld} -m elf32ppclinux"
8741	    ;;
8742	  s390x-*linux*)
8743	    LD="${LD-ld} -m elf_s390"
8744	    ;;
8745	  sparc64-*linux*)
8746	    LD="${LD-ld} -m elf32_sparc"
8747	    ;;
8748	esac
8749	;;
8750      *64-bit*)
8751	case $host in
8752	  x86_64-*kfreebsd*-gnu)
8753	    LD="${LD-ld} -m elf_x86_64_fbsd"
8754	    ;;
8755	  x86_64-*linux*)
8756	    LD="${LD-ld} -m elf_x86_64"
8757	    ;;
8758	  powerpcle-*linux*)
8759	    LD="${LD-ld} -m elf64lppc"
8760	    ;;
8761	  powerpc-*linux*)
8762	    LD="${LD-ld} -m elf64ppc"
8763	    ;;
8764	  s390*-*linux*|s390*-*tpf*)
8765	    LD="${LD-ld} -m elf64_s390"
8766	    ;;
8767	  sparc*-*linux*)
8768	    LD="${LD-ld} -m elf64_sparc"
8769	    ;;
8770	esac
8771	;;
8772    esac
8773  fi
8774  rm -rf conftest*
8775  ;;
8776
8777*-*-sco3.2v5*)
8778  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8779  SAVE_CFLAGS=$CFLAGS
8780  CFLAGS="$CFLAGS -belf"
8781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8782$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8783if ${lt_cv_cc_needs_belf+:} false; then :
8784  $as_echo_n "(cached) " >&6
8785else
8786  ac_ext=c
8787ac_cpp='$CPP $CPPFLAGS'
8788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8790ac_compiler_gnu=$ac_cv_c_compiler_gnu
8791
8792     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794
8795int
8796main ()
8797{
8798
8799  ;
8800  return 0;
8801}
8802_ACEOF
8803if ac_fn_c_try_link "$LINENO"; then :
8804  lt_cv_cc_needs_belf=yes
8805else
8806  lt_cv_cc_needs_belf=no
8807fi
8808rm -f core conftest.err conftest.$ac_objext \
8809    conftest$ac_exeext conftest.$ac_ext
8810     ac_ext=c
8811ac_cpp='$CPP $CPPFLAGS'
8812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814ac_compiler_gnu=$ac_cv_c_compiler_gnu
8815
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8818$as_echo "$lt_cv_cc_needs_belf" >&6; }
8819  if test yes != "$lt_cv_cc_needs_belf"; then
8820    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8821    CFLAGS=$SAVE_CFLAGS
8822  fi
8823  ;;
8824*-*solaris*)
8825  # Find out what ABI is being produced by ac_compile, and set linker
8826  # options accordingly.
8827  echo 'int i;' > conftest.$ac_ext
8828  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8829  (eval $ac_compile) 2>&5
8830  ac_status=$?
8831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8832  test $ac_status = 0; }; then
8833    case `/usr/bin/file conftest.o` in
8834    *64-bit*)
8835      case $lt_cv_prog_gnu_ld in
8836      yes*)
8837        case $host in
8838        i?86-*-solaris*|x86_64-*-solaris*)
8839          LD="${LD-ld} -m elf_x86_64"
8840          ;;
8841        sparc*-*-solaris*)
8842          LD="${LD-ld} -m elf64_sparc"
8843          ;;
8844        esac
8845        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8846        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8847          LD=${LD-ld}_sol2
8848        fi
8849        ;;
8850      *)
8851	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8852	  LD="${LD-ld} -64"
8853	fi
8854	;;
8855      esac
8856      ;;
8857    esac
8858  fi
8859  rm -rf conftest*
8860  ;;
8861esac
8862
8863need_locks=$enable_libtool_lock
8864
8865if test -n "$ac_tool_prefix"; then
8866  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8867set dummy ${ac_tool_prefix}mt; ac_word=$2
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869$as_echo_n "checking for $ac_word... " >&6; }
8870if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  if test -n "$MANIFEST_TOOL"; then
8874  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8875else
8876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877for as_dir in $PATH
8878do
8879  IFS=$as_save_IFS
8880  test -z "$as_dir" && as_dir=.
8881    for ac_exec_ext in '' $ac_executable_extensions; do
8882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885    break 2
8886  fi
8887done
8888  done
8889IFS=$as_save_IFS
8890
8891fi
8892fi
8893MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8894if test -n "$MANIFEST_TOOL"; then
8895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8896$as_echo "$MANIFEST_TOOL" >&6; }
8897else
8898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899$as_echo "no" >&6; }
8900fi
8901
8902
8903fi
8904if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8905  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8906  # Extract the first word of "mt", so it can be a program name with args.
8907set dummy mt; ac_word=$2
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909$as_echo_n "checking for $ac_word... " >&6; }
8910if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  if test -n "$ac_ct_MANIFEST_TOOL"; then
8914  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8915else
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919  IFS=$as_save_IFS
8920  test -z "$as_dir" && as_dir=.
8921    for ac_exec_ext in '' $ac_executable_extensions; do
8922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925    break 2
8926  fi
8927done
8928  done
8929IFS=$as_save_IFS
8930
8931fi
8932fi
8933ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8934if test -n "$ac_ct_MANIFEST_TOOL"; then
8935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8936$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8937else
8938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939$as_echo "no" >&6; }
8940fi
8941
8942  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8943    MANIFEST_TOOL=":"
8944  else
8945    case $cross_compiling:$ac_tool_warned in
8946yes:)
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8949ac_tool_warned=yes ;;
8950esac
8951    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8952  fi
8953else
8954  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8955fi
8956
8957test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8959$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8960if ${lt_cv_path_mainfest_tool+:} false; then :
8961  $as_echo_n "(cached) " >&6
8962else
8963  lt_cv_path_mainfest_tool=no
8964  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8965  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8966  cat conftest.err >&5
8967  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8968    lt_cv_path_mainfest_tool=yes
8969  fi
8970  rm -f conftest*
8971fi
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8973$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8974if test yes != "$lt_cv_path_mainfest_tool"; then
8975  MANIFEST_TOOL=:
8976fi
8977
8978
8979
8980
8981
8982
8983  case $host_os in
8984    rhapsody* | darwin*)
8985    if test -n "$ac_tool_prefix"; then
8986  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8987set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989$as_echo_n "checking for $ac_word... " >&6; }
8990if ${ac_cv_prog_DSYMUTIL+:} false; then :
8991  $as_echo_n "(cached) " >&6
8992else
8993  if test -n "$DSYMUTIL"; then
8994  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8995else
8996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997for as_dir in $PATH
8998do
8999  IFS=$as_save_IFS
9000  test -z "$as_dir" && as_dir=.
9001    for ac_exec_ext in '' $ac_executable_extensions; do
9002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005    break 2
9006  fi
9007done
9008  done
9009IFS=$as_save_IFS
9010
9011fi
9012fi
9013DSYMUTIL=$ac_cv_prog_DSYMUTIL
9014if test -n "$DSYMUTIL"; then
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9016$as_echo "$DSYMUTIL" >&6; }
9017else
9018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019$as_echo "no" >&6; }
9020fi
9021
9022
9023fi
9024if test -z "$ac_cv_prog_DSYMUTIL"; then
9025  ac_ct_DSYMUTIL=$DSYMUTIL
9026  # Extract the first word of "dsymutil", so it can be a program name with args.
9027set dummy dsymutil; ac_word=$2
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029$as_echo_n "checking for $ac_word... " >&6; }
9030if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  if test -n "$ac_ct_DSYMUTIL"; then
9034  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9035else
9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039  IFS=$as_save_IFS
9040  test -z "$as_dir" && as_dir=.
9041    for ac_exec_ext in '' $ac_executable_extensions; do
9042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9043    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045    break 2
9046  fi
9047done
9048  done
9049IFS=$as_save_IFS
9050
9051fi
9052fi
9053ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9054if test -n "$ac_ct_DSYMUTIL"; then
9055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9056$as_echo "$ac_ct_DSYMUTIL" >&6; }
9057else
9058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059$as_echo "no" >&6; }
9060fi
9061
9062  if test "x$ac_ct_DSYMUTIL" = x; then
9063    DSYMUTIL=":"
9064  else
9065    case $cross_compiling:$ac_tool_warned in
9066yes:)
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9069ac_tool_warned=yes ;;
9070esac
9071    DSYMUTIL=$ac_ct_DSYMUTIL
9072  fi
9073else
9074  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9075fi
9076
9077    if test -n "$ac_tool_prefix"; then
9078  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9079set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081$as_echo_n "checking for $ac_word... " >&6; }
9082if ${ac_cv_prog_NMEDIT+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  if test -n "$NMEDIT"; then
9086  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9087else
9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091  IFS=$as_save_IFS
9092  test -z "$as_dir" && as_dir=.
9093    for ac_exec_ext in '' $ac_executable_extensions; do
9094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097    break 2
9098  fi
9099done
9100  done
9101IFS=$as_save_IFS
9102
9103fi
9104fi
9105NMEDIT=$ac_cv_prog_NMEDIT
9106if test -n "$NMEDIT"; then
9107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9108$as_echo "$NMEDIT" >&6; }
9109else
9110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111$as_echo "no" >&6; }
9112fi
9113
9114
9115fi
9116if test -z "$ac_cv_prog_NMEDIT"; then
9117  ac_ct_NMEDIT=$NMEDIT
9118  # Extract the first word of "nmedit", so it can be a program name with args.
9119set dummy nmedit; ac_word=$2
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121$as_echo_n "checking for $ac_word... " >&6; }
9122if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9123  $as_echo_n "(cached) " >&6
9124else
9125  if test -n "$ac_ct_NMEDIT"; then
9126  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9127else
9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131  IFS=$as_save_IFS
9132  test -z "$as_dir" && as_dir=.
9133    for ac_exec_ext in '' $ac_executable_extensions; do
9134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137    break 2
9138  fi
9139done
9140  done
9141IFS=$as_save_IFS
9142
9143fi
9144fi
9145ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9146if test -n "$ac_ct_NMEDIT"; then
9147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9148$as_echo "$ac_ct_NMEDIT" >&6; }
9149else
9150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151$as_echo "no" >&6; }
9152fi
9153
9154  if test "x$ac_ct_NMEDIT" = x; then
9155    NMEDIT=":"
9156  else
9157    case $cross_compiling:$ac_tool_warned in
9158yes:)
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9161ac_tool_warned=yes ;;
9162esac
9163    NMEDIT=$ac_ct_NMEDIT
9164  fi
9165else
9166  NMEDIT="$ac_cv_prog_NMEDIT"
9167fi
9168
9169    if test -n "$ac_tool_prefix"; then
9170  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9171set dummy ${ac_tool_prefix}lipo; ac_word=$2
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173$as_echo_n "checking for $ac_word... " >&6; }
9174if ${ac_cv_prog_LIPO+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  if test -n "$LIPO"; then
9178  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9179else
9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181for as_dir in $PATH
9182do
9183  IFS=$as_save_IFS
9184  test -z "$as_dir" && as_dir=.
9185    for ac_exec_ext in '' $ac_executable_extensions; do
9186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9187    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189    break 2
9190  fi
9191done
9192  done
9193IFS=$as_save_IFS
9194
9195fi
9196fi
9197LIPO=$ac_cv_prog_LIPO
9198if test -n "$LIPO"; then
9199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9200$as_echo "$LIPO" >&6; }
9201else
9202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
9204fi
9205
9206
9207fi
9208if test -z "$ac_cv_prog_LIPO"; then
9209  ac_ct_LIPO=$LIPO
9210  # Extract the first word of "lipo", so it can be a program name with args.
9211set dummy lipo; ac_word=$2
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
9214if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9215  $as_echo_n "(cached) " >&6
9216else
9217  if test -n "$ac_ct_LIPO"; then
9218  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9219else
9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223  IFS=$as_save_IFS
9224  test -z "$as_dir" && as_dir=.
9225    for ac_exec_ext in '' $ac_executable_extensions; do
9226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227    ac_cv_prog_ac_ct_LIPO="lipo"
9228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229    break 2
9230  fi
9231done
9232  done
9233IFS=$as_save_IFS
9234
9235fi
9236fi
9237ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9238if test -n "$ac_ct_LIPO"; then
9239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9240$as_echo "$ac_ct_LIPO" >&6; }
9241else
9242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243$as_echo "no" >&6; }
9244fi
9245
9246  if test "x$ac_ct_LIPO" = x; then
9247    LIPO=":"
9248  else
9249    case $cross_compiling:$ac_tool_warned in
9250yes:)
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9253ac_tool_warned=yes ;;
9254esac
9255    LIPO=$ac_ct_LIPO
9256  fi
9257else
9258  LIPO="$ac_cv_prog_LIPO"
9259fi
9260
9261    if test -n "$ac_tool_prefix"; then
9262  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9263set dummy ${ac_tool_prefix}otool; ac_word=$2
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265$as_echo_n "checking for $ac_word... " >&6; }
9266if ${ac_cv_prog_OTOOL+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  if test -n "$OTOOL"; then
9270  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9271else
9272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273for as_dir in $PATH
9274do
9275  IFS=$as_save_IFS
9276  test -z "$as_dir" && as_dir=.
9277    for ac_exec_ext in '' $ac_executable_extensions; do
9278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9279    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281    break 2
9282  fi
9283done
9284  done
9285IFS=$as_save_IFS
9286
9287fi
9288fi
9289OTOOL=$ac_cv_prog_OTOOL
9290if test -n "$OTOOL"; then
9291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9292$as_echo "$OTOOL" >&6; }
9293else
9294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295$as_echo "no" >&6; }
9296fi
9297
9298
9299fi
9300if test -z "$ac_cv_prog_OTOOL"; then
9301  ac_ct_OTOOL=$OTOOL
9302  # Extract the first word of "otool", so it can be a program name with args.
9303set dummy otool; ac_word=$2
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305$as_echo_n "checking for $ac_word... " >&6; }
9306if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  if test -n "$ac_ct_OTOOL"; then
9310  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9311else
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315  IFS=$as_save_IFS
9316  test -z "$as_dir" && as_dir=.
9317    for ac_exec_ext in '' $ac_executable_extensions; do
9318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9319    ac_cv_prog_ac_ct_OTOOL="otool"
9320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321    break 2
9322  fi
9323done
9324  done
9325IFS=$as_save_IFS
9326
9327fi
9328fi
9329ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9330if test -n "$ac_ct_OTOOL"; then
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9332$as_echo "$ac_ct_OTOOL" >&6; }
9333else
9334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335$as_echo "no" >&6; }
9336fi
9337
9338  if test "x$ac_ct_OTOOL" = x; then
9339    OTOOL=":"
9340  else
9341    case $cross_compiling:$ac_tool_warned in
9342yes:)
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9345ac_tool_warned=yes ;;
9346esac
9347    OTOOL=$ac_ct_OTOOL
9348  fi
9349else
9350  OTOOL="$ac_cv_prog_OTOOL"
9351fi
9352
9353    if test -n "$ac_tool_prefix"; then
9354  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9355set dummy ${ac_tool_prefix}otool64; ac_word=$2
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357$as_echo_n "checking for $ac_word... " >&6; }
9358if ${ac_cv_prog_OTOOL64+:} false; then :
9359  $as_echo_n "(cached) " >&6
9360else
9361  if test -n "$OTOOL64"; then
9362  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9363else
9364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365for as_dir in $PATH
9366do
9367  IFS=$as_save_IFS
9368  test -z "$as_dir" && as_dir=.
9369    for ac_exec_ext in '' $ac_executable_extensions; do
9370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9371    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373    break 2
9374  fi
9375done
9376  done
9377IFS=$as_save_IFS
9378
9379fi
9380fi
9381OTOOL64=$ac_cv_prog_OTOOL64
9382if test -n "$OTOOL64"; then
9383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9384$as_echo "$OTOOL64" >&6; }
9385else
9386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387$as_echo "no" >&6; }
9388fi
9389
9390
9391fi
9392if test -z "$ac_cv_prog_OTOOL64"; then
9393  ac_ct_OTOOL64=$OTOOL64
9394  # Extract the first word of "otool64", so it can be a program name with args.
9395set dummy otool64; ac_word=$2
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397$as_echo_n "checking for $ac_word... " >&6; }
9398if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9399  $as_echo_n "(cached) " >&6
9400else
9401  if test -n "$ac_ct_OTOOL64"; then
9402  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9403else
9404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405for as_dir in $PATH
9406do
9407  IFS=$as_save_IFS
9408  test -z "$as_dir" && as_dir=.
9409    for ac_exec_ext in '' $ac_executable_extensions; do
9410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9411    ac_cv_prog_ac_ct_OTOOL64="otool64"
9412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413    break 2
9414  fi
9415done
9416  done
9417IFS=$as_save_IFS
9418
9419fi
9420fi
9421ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9422if test -n "$ac_ct_OTOOL64"; then
9423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9424$as_echo "$ac_ct_OTOOL64" >&6; }
9425else
9426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427$as_echo "no" >&6; }
9428fi
9429
9430  if test "x$ac_ct_OTOOL64" = x; then
9431    OTOOL64=":"
9432  else
9433    case $cross_compiling:$ac_tool_warned in
9434yes:)
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9437ac_tool_warned=yes ;;
9438esac
9439    OTOOL64=$ac_ct_OTOOL64
9440  fi
9441else
9442  OTOOL64="$ac_cv_prog_OTOOL64"
9443fi
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9472$as_echo_n "checking for -single_module linker flag... " >&6; }
9473if ${lt_cv_apple_cc_single_mod+:} false; then :
9474  $as_echo_n "(cached) " >&6
9475else
9476  lt_cv_apple_cc_single_mod=no
9477      if test -z "$LT_MULTI_MODULE"; then
9478	# By default we will add the -single_module flag. You can override
9479	# by either setting the environment variable LT_MULTI_MODULE
9480	# non-empty at configure time, or by adding -multi_module to the
9481	# link flags.
9482	rm -rf libconftest.dylib*
9483	echo "int foo(void){return 1;}" > conftest.c
9484	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9485-dynamiclib -Wl,-single_module conftest.c" >&5
9486	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9487	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9488        _lt_result=$?
9489	# If there is a non-empty error log, and "single_module"
9490	# appears in it, assume the flag caused a linker warning
9491        if test -s conftest.err && $GREP single_module conftest.err; then
9492	  cat conftest.err >&5
9493	# Otherwise, if the output was created with a 0 exit code from
9494	# the compiler, it worked.
9495	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9496	  lt_cv_apple_cc_single_mod=yes
9497	else
9498	  cat conftest.err >&5
9499	fi
9500	rm -rf libconftest.dylib*
9501	rm -f conftest.*
9502      fi
9503fi
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9505$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9506
9507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9508$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9509if ${lt_cv_ld_exported_symbols_list+:} false; then :
9510  $as_echo_n "(cached) " >&6
9511else
9512  lt_cv_ld_exported_symbols_list=no
9513      save_LDFLAGS=$LDFLAGS
9514      echo "_main" > conftest.sym
9515      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9516      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517/* end confdefs.h.  */
9518
9519int
9520main ()
9521{
9522
9523  ;
9524  return 0;
9525}
9526_ACEOF
9527if ac_fn_c_try_link "$LINENO"; then :
9528  lt_cv_ld_exported_symbols_list=yes
9529else
9530  lt_cv_ld_exported_symbols_list=no
9531fi
9532rm -f core conftest.err conftest.$ac_objext \
9533    conftest$ac_exeext conftest.$ac_ext
9534	LDFLAGS=$save_LDFLAGS
9535
9536fi
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9538$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9539
9540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9541$as_echo_n "checking for -force_load linker flag... " >&6; }
9542if ${lt_cv_ld_force_load+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  lt_cv_ld_force_load=no
9546      cat > conftest.c << _LT_EOF
9547int forced_loaded() { return 2;}
9548_LT_EOF
9549      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9550      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9551      echo "$AR cru libconftest.a conftest.o" >&5
9552      $AR cru libconftest.a conftest.o 2>&5
9553      echo "$RANLIB libconftest.a" >&5
9554      $RANLIB libconftest.a 2>&5
9555      cat > conftest.c << _LT_EOF
9556int main() { return 0;}
9557_LT_EOF
9558      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9559      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9560      _lt_result=$?
9561      if test -s conftest.err && $GREP force_load conftest.err; then
9562	cat conftest.err >&5
9563      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9564	lt_cv_ld_force_load=yes
9565      else
9566	cat conftest.err >&5
9567      fi
9568        rm -f conftest.err libconftest.a conftest conftest.c
9569        rm -rf conftest.dSYM
9570
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9573$as_echo "$lt_cv_ld_force_load" >&6; }
9574    case $host_os in
9575    rhapsody* | darwin1.[012])
9576      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9577    darwin1.*)
9578      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9579    darwin*) # darwin 5.x on
9580      # if running on 10.5 or later, the deployment target defaults
9581      # to the OS version, if on x86, and 10.4, the deployment
9582      # target defaults to 10.4. Don't you love it?
9583      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9584	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9585	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9586	10.[012][,.]*)
9587	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9588	10.*)
9589	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9590      esac
9591    ;;
9592  esac
9593    if test yes = "$lt_cv_apple_cc_single_mod"; then
9594      _lt_dar_single_mod='$single_module'
9595    fi
9596    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9597      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9598    else
9599      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9600    fi
9601    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9602      _lt_dsymutil='~$DSYMUTIL $lib || :'
9603    else
9604      _lt_dsymutil=
9605    fi
9606    ;;
9607  esac
9608
9609# func_munge_path_list VARIABLE PATH
9610# -----------------------------------
9611# VARIABLE is name of variable containing _space_ separated list of
9612# directories to be munged by the contents of PATH, which is string
9613# having a format:
9614# "DIR[:DIR]:"
9615#       string "DIR[ DIR]" will be prepended to VARIABLE
9616# ":DIR[:DIR]"
9617#       string "DIR[ DIR]" will be appended to VARIABLE
9618# "DIRP[:DIRP]::[DIRA:]DIRA"
9619#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9620#       "DIRA[ DIRA]" will be appended to VARIABLE
9621# "DIR[:DIR]"
9622#       VARIABLE will be replaced by "DIR[ DIR]"
9623func_munge_path_list ()
9624{
9625    case x$2 in
9626    x)
9627        ;;
9628    *:)
9629        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9630        ;;
9631    x:*)
9632        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9633        ;;
9634    *::*)
9635        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9636        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9637        ;;
9638    *)
9639        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9640        ;;
9641    esac
9642}
9643
9644for ac_header in dlfcn.h
9645do :
9646  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9647"
9648if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9649  cat >>confdefs.h <<_ACEOF
9650#define HAVE_DLFCN_H 1
9651_ACEOF
9652
9653fi
9654
9655done
9656
9657
9658
9659
9660
9661# Set options
9662enable_win32_dll=yes
9663
9664case $host in
9665*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9666  if test -n "$ac_tool_prefix"; then
9667  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9668set dummy ${ac_tool_prefix}as; ac_word=$2
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670$as_echo_n "checking for $ac_word... " >&6; }
9671if ${ac_cv_prog_AS+:} false; then :
9672  $as_echo_n "(cached) " >&6
9673else
9674  if test -n "$AS"; then
9675  ac_cv_prog_AS="$AS" # Let the user override the test.
9676else
9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678for as_dir in $PATH
9679do
9680  IFS=$as_save_IFS
9681  test -z "$as_dir" && as_dir=.
9682    for ac_exec_ext in '' $ac_executable_extensions; do
9683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684    ac_cv_prog_AS="${ac_tool_prefix}as"
9685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686    break 2
9687  fi
9688done
9689  done
9690IFS=$as_save_IFS
9691
9692fi
9693fi
9694AS=$ac_cv_prog_AS
9695if test -n "$AS"; then
9696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9697$as_echo "$AS" >&6; }
9698else
9699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700$as_echo "no" >&6; }
9701fi
9702
9703
9704fi
9705if test -z "$ac_cv_prog_AS"; then
9706  ac_ct_AS=$AS
9707  # Extract the first word of "as", so it can be a program name with args.
9708set dummy as; ac_word=$2
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710$as_echo_n "checking for $ac_word... " >&6; }
9711if ${ac_cv_prog_ac_ct_AS+:} false; then :
9712  $as_echo_n "(cached) " >&6
9713else
9714  if test -n "$ac_ct_AS"; then
9715  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9716else
9717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718for as_dir in $PATH
9719do
9720  IFS=$as_save_IFS
9721  test -z "$as_dir" && as_dir=.
9722    for ac_exec_ext in '' $ac_executable_extensions; do
9723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724    ac_cv_prog_ac_ct_AS="as"
9725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726    break 2
9727  fi
9728done
9729  done
9730IFS=$as_save_IFS
9731
9732fi
9733fi
9734ac_ct_AS=$ac_cv_prog_ac_ct_AS
9735if test -n "$ac_ct_AS"; then
9736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9737$as_echo "$ac_ct_AS" >&6; }
9738else
9739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740$as_echo "no" >&6; }
9741fi
9742
9743  if test "x$ac_ct_AS" = x; then
9744    AS="false"
9745  else
9746    case $cross_compiling:$ac_tool_warned in
9747yes:)
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9750ac_tool_warned=yes ;;
9751esac
9752    AS=$ac_ct_AS
9753  fi
9754else
9755  AS="$ac_cv_prog_AS"
9756fi
9757
9758  if test -n "$ac_tool_prefix"; then
9759  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9760set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762$as_echo_n "checking for $ac_word... " >&6; }
9763if ${ac_cv_prog_DLLTOOL+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  if test -n "$DLLTOOL"; then
9767  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9768else
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772  IFS=$as_save_IFS
9773  test -z "$as_dir" && as_dir=.
9774    for ac_exec_ext in '' $ac_executable_extensions; do
9775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778    break 2
9779  fi
9780done
9781  done
9782IFS=$as_save_IFS
9783
9784fi
9785fi
9786DLLTOOL=$ac_cv_prog_DLLTOOL
9787if test -n "$DLLTOOL"; then
9788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9789$as_echo "$DLLTOOL" >&6; }
9790else
9791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792$as_echo "no" >&6; }
9793fi
9794
9795
9796fi
9797if test -z "$ac_cv_prog_DLLTOOL"; then
9798  ac_ct_DLLTOOL=$DLLTOOL
9799  # Extract the first word of "dlltool", so it can be a program name with args.
9800set dummy dlltool; ac_word=$2
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9802$as_echo_n "checking for $ac_word... " >&6; }
9803if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9804  $as_echo_n "(cached) " >&6
9805else
9806  if test -n "$ac_ct_DLLTOOL"; then
9807  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9808else
9809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810for as_dir in $PATH
9811do
9812  IFS=$as_save_IFS
9813  test -z "$as_dir" && as_dir=.
9814    for ac_exec_ext in '' $ac_executable_extensions; do
9815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9816    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9818    break 2
9819  fi
9820done
9821  done
9822IFS=$as_save_IFS
9823
9824fi
9825fi
9826ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9827if test -n "$ac_ct_DLLTOOL"; then
9828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9829$as_echo "$ac_ct_DLLTOOL" >&6; }
9830else
9831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832$as_echo "no" >&6; }
9833fi
9834
9835  if test "x$ac_ct_DLLTOOL" = x; then
9836    DLLTOOL="false"
9837  else
9838    case $cross_compiling:$ac_tool_warned in
9839yes:)
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9842ac_tool_warned=yes ;;
9843esac
9844    DLLTOOL=$ac_ct_DLLTOOL
9845  fi
9846else
9847  DLLTOOL="$ac_cv_prog_DLLTOOL"
9848fi
9849
9850  if test -n "$ac_tool_prefix"; then
9851  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9852set dummy ${ac_tool_prefix}objdump; ac_word=$2
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854$as_echo_n "checking for $ac_word... " >&6; }
9855if ${ac_cv_prog_OBJDUMP+:} false; then :
9856  $as_echo_n "(cached) " >&6
9857else
9858  if test -n "$OBJDUMP"; then
9859  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9860else
9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862for as_dir in $PATH
9863do
9864  IFS=$as_save_IFS
9865  test -z "$as_dir" && as_dir=.
9866    for ac_exec_ext in '' $ac_executable_extensions; do
9867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870    break 2
9871  fi
9872done
9873  done
9874IFS=$as_save_IFS
9875
9876fi
9877fi
9878OBJDUMP=$ac_cv_prog_OBJDUMP
9879if test -n "$OBJDUMP"; then
9880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9881$as_echo "$OBJDUMP" >&6; }
9882else
9883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884$as_echo "no" >&6; }
9885fi
9886
9887
9888fi
9889if test -z "$ac_cv_prog_OBJDUMP"; then
9890  ac_ct_OBJDUMP=$OBJDUMP
9891  # Extract the first word of "objdump", so it can be a program name with args.
9892set dummy objdump; ac_word=$2
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894$as_echo_n "checking for $ac_word... " >&6; }
9895if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9896  $as_echo_n "(cached) " >&6
9897else
9898  if test -n "$ac_ct_OBJDUMP"; then
9899  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9900else
9901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902for as_dir in $PATH
9903do
9904  IFS=$as_save_IFS
9905  test -z "$as_dir" && as_dir=.
9906    for ac_exec_ext in '' $ac_executable_extensions; do
9907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910    break 2
9911  fi
9912done
9913  done
9914IFS=$as_save_IFS
9915
9916fi
9917fi
9918ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9919if test -n "$ac_ct_OBJDUMP"; then
9920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9921$as_echo "$ac_ct_OBJDUMP" >&6; }
9922else
9923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924$as_echo "no" >&6; }
9925fi
9926
9927  if test "x$ac_ct_OBJDUMP" = x; then
9928    OBJDUMP="false"
9929  else
9930    case $cross_compiling:$ac_tool_warned in
9931yes:)
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9934ac_tool_warned=yes ;;
9935esac
9936    OBJDUMP=$ac_ct_OBJDUMP
9937  fi
9938else
9939  OBJDUMP="$ac_cv_prog_OBJDUMP"
9940fi
9941
9942  ;;
9943esac
9944
9945test -z "$AS" && AS=as
9946
9947
9948
9949
9950
9951test -z "$DLLTOOL" && DLLTOOL=dlltool
9952
9953
9954
9955
9956
9957test -z "$OBJDUMP" && OBJDUMP=objdump
9958
9959
9960
9961
9962
9963
9964
9965        enable_dlopen=no
9966
9967
9968
9969            # Check whether --enable-shared was given.
9970if test "${enable_shared+set}" = set; then :
9971  enableval=$enable_shared; p=${PACKAGE-default}
9972    case $enableval in
9973    yes) enable_shared=yes ;;
9974    no) enable_shared=no ;;
9975    *)
9976      enable_shared=no
9977      # Look at the argument we got.  We use all the common list separators.
9978      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9979      for pkg in $enableval; do
9980	IFS=$lt_save_ifs
9981	if test "X$pkg" = "X$p"; then
9982	  enable_shared=yes
9983	fi
9984      done
9985      IFS=$lt_save_ifs
9986      ;;
9987    esac
9988else
9989  enable_shared=yes
9990fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000  # Check whether --enable-static was given.
10001if test "${enable_static+set}" = set; then :
10002  enableval=$enable_static; p=${PACKAGE-default}
10003    case $enableval in
10004    yes) enable_static=yes ;;
10005    no) enable_static=no ;;
10006    *)
10007     enable_static=no
10008      # Look at the argument we got.  We use all the common list separators.
10009      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10010      for pkg in $enableval; do
10011	IFS=$lt_save_ifs
10012	if test "X$pkg" = "X$p"; then
10013	  enable_static=yes
10014	fi
10015      done
10016      IFS=$lt_save_ifs
10017      ;;
10018    esac
10019else
10020  enable_static=yes
10021fi
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032# Check whether --with-pic was given.
10033if test "${with_pic+set}" = set; then :
10034  withval=$with_pic; lt_p=${PACKAGE-default}
10035    case $withval in
10036    yes|no) pic_mode=$withval ;;
10037    *)
10038      pic_mode=default
10039      # Look at the argument we got.  We use all the common list separators.
10040      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10041      for lt_pkg in $withval; do
10042	IFS=$lt_save_ifs
10043	if test "X$lt_pkg" = "X$lt_p"; then
10044	  pic_mode=yes
10045	fi
10046      done
10047      IFS=$lt_save_ifs
10048      ;;
10049    esac
10050else
10051  pic_mode=default
10052fi
10053
10054
10055
10056
10057
10058
10059
10060
10061  # Check whether --enable-fast-install was given.
10062if test "${enable_fast_install+set}" = set; then :
10063  enableval=$enable_fast_install; p=${PACKAGE-default}
10064    case $enableval in
10065    yes) enable_fast_install=yes ;;
10066    no) enable_fast_install=no ;;
10067    *)
10068      enable_fast_install=no
10069      # Look at the argument we got.  We use all the common list separators.
10070      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10071      for pkg in $enableval; do
10072	IFS=$lt_save_ifs
10073	if test "X$pkg" = "X$p"; then
10074	  enable_fast_install=yes
10075	fi
10076      done
10077      IFS=$lt_save_ifs
10078      ;;
10079    esac
10080else
10081  enable_fast_install=yes
10082fi
10083
10084
10085
10086
10087
10088
10089
10090
10091  shared_archive_member_spec=
10092case $host,$enable_shared in
10093power*-*-aix[5-9]*,yes)
10094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10095$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10096
10097# Check whether --with-aix-soname was given.
10098if test "${with_aix_soname+set}" = set; then :
10099  withval=$with_aix_soname; case $withval in
10100    aix|svr4|both)
10101      ;;
10102    *)
10103      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10104      ;;
10105    esac
10106    lt_cv_with_aix_soname=$with_aix_soname
10107else
10108  if ${lt_cv_with_aix_soname+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  lt_cv_with_aix_soname=aix
10112fi
10113
10114    with_aix_soname=$lt_cv_with_aix_soname
10115fi
10116
10117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10118$as_echo "$with_aix_soname" >&6; }
10119  if test aix != "$with_aix_soname"; then
10120    # For the AIX way of multilib, we name the shared archive member
10121    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10122    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10123    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10124    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10125    if test 64 = "${OBJECT_MODE-32}"; then
10126      shared_archive_member_spec=shr_64
10127    else
10128      shared_archive_member_spec=shr
10129    fi
10130  fi
10131  ;;
10132*)
10133  with_aix_soname=aix
10134  ;;
10135esac
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146# This can be used to rebuild libtool when needed
10147LIBTOOL_DEPS=$ltmain
10148
10149# Always use our own libtool.
10150LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181test -z "$LN_S" && LN_S="ln -s"
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196if test -n "${ZSH_VERSION+set}"; then
10197   setopt NO_GLOB_SUBST
10198fi
10199
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10201$as_echo_n "checking for objdir... " >&6; }
10202if ${lt_cv_objdir+:} false; then :
10203  $as_echo_n "(cached) " >&6
10204else
10205  rm -f .libs 2>/dev/null
10206mkdir .libs 2>/dev/null
10207if test -d .libs; then
10208  lt_cv_objdir=.libs
10209else
10210  # MS-DOS does not allow filenames that begin with a dot.
10211  lt_cv_objdir=_libs
10212fi
10213rmdir .libs 2>/dev/null
10214fi
10215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10216$as_echo "$lt_cv_objdir" >&6; }
10217objdir=$lt_cv_objdir
10218
10219
10220
10221
10222
10223cat >>confdefs.h <<_ACEOF
10224#define LT_OBJDIR "$lt_cv_objdir/"
10225_ACEOF
10226
10227
10228
10229
10230case $host_os in
10231aix3*)
10232  # AIX sometimes has problems with the GCC collect2 program.  For some
10233  # reason, if we set the COLLECT_NAMES environment variable, the problems
10234  # vanish in a puff of smoke.
10235  if test set != "${COLLECT_NAMES+set}"; then
10236    COLLECT_NAMES=
10237    export COLLECT_NAMES
10238  fi
10239  ;;
10240esac
10241
10242# Global variables:
10243ofile=libtool
10244can_build_shared=yes
10245
10246# All known linkers require a '.a' archive for static linking (except MSVC,
10247# which needs '.lib').
10248libext=a
10249
10250with_gnu_ld=$lt_cv_prog_gnu_ld
10251
10252old_CC=$CC
10253old_CFLAGS=$CFLAGS
10254
10255# Set sane defaults for various variables
10256test -z "$CC" && CC=cc
10257test -z "$LTCC" && LTCC=$CC
10258test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10259test -z "$LD" && LD=ld
10260test -z "$ac_objext" && ac_objext=o
10261
10262func_cc_basename $compiler
10263cc_basename=$func_cc_basename_result
10264
10265
10266# Only perform the check for file, if the check method requires it
10267test -z "$MAGIC_CMD" && MAGIC_CMD=file
10268case $deplibs_check_method in
10269file_magic*)
10270  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10272$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10273if ${lt_cv_path_MAGIC_CMD+:} false; then :
10274  $as_echo_n "(cached) " >&6
10275else
10276  case $MAGIC_CMD in
10277[\\/*] |  ?:[\\/]*)
10278  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10279  ;;
10280*)
10281  lt_save_MAGIC_CMD=$MAGIC_CMD
10282  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10283  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10284  for ac_dir in $ac_dummy; do
10285    IFS=$lt_save_ifs
10286    test -z "$ac_dir" && ac_dir=.
10287    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10288      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10289      if test -n "$file_magic_test_file"; then
10290	case $deplibs_check_method in
10291	"file_magic "*)
10292	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10293	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10294	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10295	    $EGREP "$file_magic_regex" > /dev/null; then
10296	    :
10297	  else
10298	    cat <<_LT_EOF 1>&2
10299
10300*** Warning: the command libtool uses to detect shared libraries,
10301*** $file_magic_cmd, produces output that libtool cannot recognize.
10302*** The result is that libtool may fail to recognize shared libraries
10303*** as such.  This will affect the creation of libtool libraries that
10304*** depend on shared libraries, but programs linked with such libtool
10305*** libraries will work regardless of this problem.  Nevertheless, you
10306*** may want to report the problem to your system manager and/or to
10307*** bug-libtool@gnu.org
10308
10309_LT_EOF
10310	  fi ;;
10311	esac
10312      fi
10313      break
10314    fi
10315  done
10316  IFS=$lt_save_ifs
10317  MAGIC_CMD=$lt_save_MAGIC_CMD
10318  ;;
10319esac
10320fi
10321
10322MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10323if test -n "$MAGIC_CMD"; then
10324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10325$as_echo "$MAGIC_CMD" >&6; }
10326else
10327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328$as_echo "no" >&6; }
10329fi
10330
10331
10332
10333
10334
10335if test -z "$lt_cv_path_MAGIC_CMD"; then
10336  if test -n "$ac_tool_prefix"; then
10337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10338$as_echo_n "checking for file... " >&6; }
10339if ${lt_cv_path_MAGIC_CMD+:} false; then :
10340  $as_echo_n "(cached) " >&6
10341else
10342  case $MAGIC_CMD in
10343[\\/*] |  ?:[\\/]*)
10344  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10345  ;;
10346*)
10347  lt_save_MAGIC_CMD=$MAGIC_CMD
10348  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10349  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10350  for ac_dir in $ac_dummy; do
10351    IFS=$lt_save_ifs
10352    test -z "$ac_dir" && ac_dir=.
10353    if test -f "$ac_dir/file"; then
10354      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10355      if test -n "$file_magic_test_file"; then
10356	case $deplibs_check_method in
10357	"file_magic "*)
10358	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10359	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10360	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10361	    $EGREP "$file_magic_regex" > /dev/null; then
10362	    :
10363	  else
10364	    cat <<_LT_EOF 1>&2
10365
10366*** Warning: the command libtool uses to detect shared libraries,
10367*** $file_magic_cmd, produces output that libtool cannot recognize.
10368*** The result is that libtool may fail to recognize shared libraries
10369*** as such.  This will affect the creation of libtool libraries that
10370*** depend on shared libraries, but programs linked with such libtool
10371*** libraries will work regardless of this problem.  Nevertheless, you
10372*** may want to report the problem to your system manager and/or to
10373*** bug-libtool@gnu.org
10374
10375_LT_EOF
10376	  fi ;;
10377	esac
10378      fi
10379      break
10380    fi
10381  done
10382  IFS=$lt_save_ifs
10383  MAGIC_CMD=$lt_save_MAGIC_CMD
10384  ;;
10385esac
10386fi
10387
10388MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10389if test -n "$MAGIC_CMD"; then
10390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10391$as_echo "$MAGIC_CMD" >&6; }
10392else
10393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394$as_echo "no" >&6; }
10395fi
10396
10397
10398  else
10399    MAGIC_CMD=:
10400  fi
10401fi
10402
10403  fi
10404  ;;
10405esac
10406
10407# Use C for the default configuration in the libtool script
10408
10409lt_save_CC=$CC
10410ac_ext=c
10411ac_cpp='$CPP $CPPFLAGS'
10412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10414ac_compiler_gnu=$ac_cv_c_compiler_gnu
10415
10416
10417# Source file extension for C test sources.
10418ac_ext=c
10419
10420# Object file extension for compiled C test sources.
10421objext=o
10422objext=$objext
10423
10424# Code to be used in simple compile tests
10425lt_simple_compile_test_code="int some_variable = 0;"
10426
10427# Code to be used in simple link tests
10428lt_simple_link_test_code='int main(){return(0);}'
10429
10430
10431
10432
10433
10434
10435
10436# If no C compiler was specified, use CC.
10437LTCC=${LTCC-"$CC"}
10438
10439# If no C compiler flags were specified, use CFLAGS.
10440LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10441
10442# Allow CC to be a program name with arguments.
10443compiler=$CC
10444
10445# Save the default compiler, since it gets overwritten when the other
10446# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10447compiler_DEFAULT=$CC
10448
10449# save warnings/boilerplate of simple test code
10450ac_outfile=conftest.$ac_objext
10451echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10452eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10453_lt_compiler_boilerplate=`cat conftest.err`
10454$RM conftest*
10455
10456ac_outfile=conftest.$ac_objext
10457echo "$lt_simple_link_test_code" >conftest.$ac_ext
10458eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10459_lt_linker_boilerplate=`cat conftest.err`
10460$RM -r conftest*
10461
10462
10463## CAVEAT EMPTOR:
10464## There is no encapsulation within the following macros, do not change
10465## the running order or otherwise move them around unless you know exactly
10466## what you are doing...
10467if test -n "$compiler"; then
10468
10469lt_prog_compiler_no_builtin_flag=
10470
10471if test yes = "$GCC"; then
10472  case $cc_basename in
10473  nvcc*)
10474    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10475  *)
10476    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10477  esac
10478
10479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10480$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10481if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  lt_cv_prog_compiler_rtti_exceptions=no
10485   ac_outfile=conftest.$ac_objext
10486   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10487   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10488   # Insert the option either (1) after the last *FLAGS variable, or
10489   # (2) before a word containing "conftest.", or (3) at the end.
10490   # Note that $ac_compile itself does not contain backslashes and begins
10491   # with a dollar sign (not a hyphen), so the echo should work correctly.
10492   # The option is referenced via a variable to avoid confusing sed.
10493   lt_compile=`echo "$ac_compile" | $SED \
10494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10496   -e 's:$: $lt_compiler_flag:'`
10497   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10498   (eval "$lt_compile" 2>conftest.err)
10499   ac_status=$?
10500   cat conftest.err >&5
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   if (exit $ac_status) && test -s "$ac_outfile"; then
10503     # The compiler can only warn and ignore the option if not recognized
10504     # So say no if there are warnings other than the usual output.
10505     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10506     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10507     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10508       lt_cv_prog_compiler_rtti_exceptions=yes
10509     fi
10510   fi
10511   $RM conftest*
10512
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10515$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10516
10517if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10518    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10519else
10520    :
10521fi
10522
10523fi
10524
10525
10526
10527
10528
10529
10530  lt_prog_compiler_wl=
10531lt_prog_compiler_pic=
10532lt_prog_compiler_static=
10533
10534
10535  if test yes = "$GCC"; then
10536    lt_prog_compiler_wl='-Wl,'
10537    lt_prog_compiler_static='-static'
10538
10539    case $host_os in
10540      aix*)
10541      # All AIX code is PIC.
10542      if test ia64 = "$host_cpu"; then
10543	# AIX 5 now supports IA64 processor
10544	lt_prog_compiler_static='-Bstatic'
10545      fi
10546      lt_prog_compiler_pic='-fPIC'
10547      ;;
10548
10549    amigaos*)
10550      case $host_cpu in
10551      powerpc)
10552            # see comment about AmigaOS4 .so support
10553            lt_prog_compiler_pic='-fPIC'
10554        ;;
10555      m68k)
10556            # FIXME: we need at least 68020 code to build shared libraries, but
10557            # adding the '-m68020' flag to GCC prevents building anything better,
10558            # like '-m68040'.
10559            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10560        ;;
10561      esac
10562      ;;
10563
10564    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10565      # PIC is the default for these OSes.
10566      ;;
10567
10568    mingw* | cygwin* | pw32* | os2* | cegcc*)
10569      # This hack is so that the source file can tell whether it is being
10570      # built for inclusion in a dll (and should export symbols for example).
10571      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10572      # (--disable-auto-import) libraries
10573      lt_prog_compiler_pic='-DDLL_EXPORT'
10574      case $host_os in
10575      os2*)
10576	lt_prog_compiler_static='$wl-static'
10577	;;
10578      esac
10579      ;;
10580
10581    darwin* | rhapsody*)
10582      # PIC is the default on this platform
10583      # Common symbols not allowed in MH_DYLIB files
10584      lt_prog_compiler_pic='-fno-common'
10585      ;;
10586
10587    haiku*)
10588      # PIC is the default for Haiku.
10589      # The "-static" flag exists, but is broken.
10590      lt_prog_compiler_static=
10591      ;;
10592
10593    hpux*)
10594      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10595      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10596      # sets the default TLS model and affects inlining.
10597      case $host_cpu in
10598      hppa*64*)
10599	# +Z the default
10600	;;
10601      *)
10602	lt_prog_compiler_pic='-fPIC'
10603	;;
10604      esac
10605      ;;
10606
10607    interix[3-9]*)
10608      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10609      # Instead, we relocate shared libraries at runtime.
10610      ;;
10611
10612    msdosdjgpp*)
10613      # Just because we use GCC doesn't mean we suddenly get shared libraries
10614      # on systems that don't support them.
10615      lt_prog_compiler_can_build_shared=no
10616      enable_shared=no
10617      ;;
10618
10619    *nto* | *qnx*)
10620      # QNX uses GNU C++, but need to define -shared option too, otherwise
10621      # it will coredump.
10622      lt_prog_compiler_pic='-fPIC -shared'
10623      ;;
10624
10625    sysv4*MP*)
10626      if test -d /usr/nec; then
10627	lt_prog_compiler_pic=-Kconform_pic
10628      fi
10629      ;;
10630
10631    *)
10632      lt_prog_compiler_pic='-fPIC'
10633      ;;
10634    esac
10635
10636    case $cc_basename in
10637    nvcc*) # Cuda Compiler Driver 2.2
10638      lt_prog_compiler_wl='-Xlinker '
10639      if test -n "$lt_prog_compiler_pic"; then
10640        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10641      fi
10642      ;;
10643    esac
10644  else
10645    # PORTME Check for flag to pass linker flags through the system compiler.
10646    case $host_os in
10647    aix*)
10648      lt_prog_compiler_wl='-Wl,'
10649      if test ia64 = "$host_cpu"; then
10650	# AIX 5 now supports IA64 processor
10651	lt_prog_compiler_static='-Bstatic'
10652      else
10653	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10654      fi
10655      ;;
10656
10657    darwin* | rhapsody*)
10658      # PIC is the default on this platform
10659      # Common symbols not allowed in MH_DYLIB files
10660      lt_prog_compiler_pic='-fno-common'
10661      case $cc_basename in
10662      nagfor*)
10663        # NAG Fortran compiler
10664        lt_prog_compiler_wl='-Wl,-Wl,,'
10665        lt_prog_compiler_pic='-PIC'
10666        lt_prog_compiler_static='-Bstatic'
10667        ;;
10668      esac
10669      ;;
10670
10671    mingw* | cygwin* | pw32* | os2* | cegcc*)
10672      # This hack is so that the source file can tell whether it is being
10673      # built for inclusion in a dll (and should export symbols for example).
10674      lt_prog_compiler_pic='-DDLL_EXPORT'
10675      case $host_os in
10676      os2*)
10677	lt_prog_compiler_static='$wl-static'
10678	;;
10679      esac
10680      ;;
10681
10682    hpux9* | hpux10* | hpux11*)
10683      lt_prog_compiler_wl='-Wl,'
10684      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10685      # not for PA HP-UX.
10686      case $host_cpu in
10687      hppa*64*|ia64*)
10688	# +Z the default
10689	;;
10690      *)
10691	lt_prog_compiler_pic='+Z'
10692	;;
10693      esac
10694      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10695      lt_prog_compiler_static='$wl-a ${wl}archive'
10696      ;;
10697
10698    irix5* | irix6* | nonstopux*)
10699      lt_prog_compiler_wl='-Wl,'
10700      # PIC (with -KPIC) is the default.
10701      lt_prog_compiler_static='-non_shared'
10702      ;;
10703
10704    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10705      case $cc_basename in
10706      # old Intel for x86_64, which still supported -KPIC.
10707      ecc*)
10708	lt_prog_compiler_wl='-Wl,'
10709	lt_prog_compiler_pic='-KPIC'
10710	lt_prog_compiler_static='-static'
10711        ;;
10712      # icc used to be incompatible with GCC.
10713      # ICC 10 doesn't accept -KPIC any more.
10714      icc* | ifort*)
10715	lt_prog_compiler_wl='-Wl,'
10716	lt_prog_compiler_pic='-fPIC'
10717	lt_prog_compiler_static='-static'
10718        ;;
10719      # Lahey Fortran 8.1.
10720      lf95*)
10721	lt_prog_compiler_wl='-Wl,'
10722	lt_prog_compiler_pic='--shared'
10723	lt_prog_compiler_static='--static'
10724	;;
10725      nagfor*)
10726	# NAG Fortran compiler
10727	lt_prog_compiler_wl='-Wl,-Wl,,'
10728	lt_prog_compiler_pic='-PIC'
10729	lt_prog_compiler_static='-Bstatic'
10730	;;
10731      tcc*)
10732	# Fabrice Bellard et al's Tiny C Compiler
10733	lt_prog_compiler_wl='-Wl,'
10734	lt_prog_compiler_pic='-fPIC'
10735	lt_prog_compiler_static='-static'
10736	;;
10737      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10738        # Portland Group compilers (*not* the Pentium gcc compiler,
10739	# which looks to be a dead project)
10740	lt_prog_compiler_wl='-Wl,'
10741	lt_prog_compiler_pic='-fpic'
10742	lt_prog_compiler_static='-Bstatic'
10743        ;;
10744      ccc*)
10745        lt_prog_compiler_wl='-Wl,'
10746        # All Alpha code is PIC.
10747        lt_prog_compiler_static='-non_shared'
10748        ;;
10749      xl* | bgxl* | bgf* | mpixl*)
10750	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10751	lt_prog_compiler_wl='-Wl,'
10752	lt_prog_compiler_pic='-qpic'
10753	lt_prog_compiler_static='-qstaticlink'
10754	;;
10755      *)
10756	case `$CC -V 2>&1 | sed 5q` in
10757	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10758	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10759	  lt_prog_compiler_pic='-KPIC'
10760	  lt_prog_compiler_static='-Bstatic'
10761	  lt_prog_compiler_wl=''
10762	  ;;
10763	*Sun\ F* | *Sun*Fortran*)
10764	  lt_prog_compiler_pic='-KPIC'
10765	  lt_prog_compiler_static='-Bstatic'
10766	  lt_prog_compiler_wl='-Qoption ld '
10767	  ;;
10768	*Sun\ C*)
10769	  # Sun C 5.9
10770	  lt_prog_compiler_pic='-KPIC'
10771	  lt_prog_compiler_static='-Bstatic'
10772	  lt_prog_compiler_wl='-Wl,'
10773	  ;;
10774        *Intel*\ [CF]*Compiler*)
10775	  lt_prog_compiler_wl='-Wl,'
10776	  lt_prog_compiler_pic='-fPIC'
10777	  lt_prog_compiler_static='-static'
10778	  ;;
10779	*Portland\ Group*)
10780	  lt_prog_compiler_wl='-Wl,'
10781	  lt_prog_compiler_pic='-fpic'
10782	  lt_prog_compiler_static='-Bstatic'
10783	  ;;
10784	esac
10785	;;
10786      esac
10787      ;;
10788
10789    newsos6)
10790      lt_prog_compiler_pic='-KPIC'
10791      lt_prog_compiler_static='-Bstatic'
10792      ;;
10793
10794    *nto* | *qnx*)
10795      # QNX uses GNU C++, but need to define -shared option too, otherwise
10796      # it will coredump.
10797      lt_prog_compiler_pic='-fPIC -shared'
10798      ;;
10799
10800    osf3* | osf4* | osf5*)
10801      lt_prog_compiler_wl='-Wl,'
10802      # All OSF/1 code is PIC.
10803      lt_prog_compiler_static='-non_shared'
10804      ;;
10805
10806    rdos*)
10807      lt_prog_compiler_static='-non_shared'
10808      ;;
10809
10810    solaris*)
10811      lt_prog_compiler_pic='-KPIC'
10812      lt_prog_compiler_static='-Bstatic'
10813      case $cc_basename in
10814      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10815	lt_prog_compiler_wl='-Qoption ld ';;
10816      *)
10817	lt_prog_compiler_wl='-Wl,';;
10818      esac
10819      ;;
10820
10821    sunos4*)
10822      lt_prog_compiler_wl='-Qoption ld '
10823      lt_prog_compiler_pic='-PIC'
10824      lt_prog_compiler_static='-Bstatic'
10825      ;;
10826
10827    sysv4 | sysv4.2uw2* | sysv4.3*)
10828      lt_prog_compiler_wl='-Wl,'
10829      lt_prog_compiler_pic='-KPIC'
10830      lt_prog_compiler_static='-Bstatic'
10831      ;;
10832
10833    sysv4*MP*)
10834      if test -d /usr/nec; then
10835	lt_prog_compiler_pic='-Kconform_pic'
10836	lt_prog_compiler_static='-Bstatic'
10837      fi
10838      ;;
10839
10840    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10841      lt_prog_compiler_wl='-Wl,'
10842      lt_prog_compiler_pic='-KPIC'
10843      lt_prog_compiler_static='-Bstatic'
10844      ;;
10845
10846    unicos*)
10847      lt_prog_compiler_wl='-Wl,'
10848      lt_prog_compiler_can_build_shared=no
10849      ;;
10850
10851    uts4*)
10852      lt_prog_compiler_pic='-pic'
10853      lt_prog_compiler_static='-Bstatic'
10854      ;;
10855
10856    *)
10857      lt_prog_compiler_can_build_shared=no
10858      ;;
10859    esac
10860  fi
10861
10862case $host_os in
10863  # For platforms that do not support PIC, -DPIC is meaningless:
10864  *djgpp*)
10865    lt_prog_compiler_pic=
10866    ;;
10867  *)
10868    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10869    ;;
10870esac
10871
10872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10873$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10874if ${lt_cv_prog_compiler_pic+:} false; then :
10875  $as_echo_n "(cached) " >&6
10876else
10877  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10878fi
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10880$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10881lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10882
10883#
10884# Check to make sure the PIC flag actually works.
10885#
10886if test -n "$lt_prog_compiler_pic"; then
10887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10888$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10889if ${lt_cv_prog_compiler_pic_works+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  lt_cv_prog_compiler_pic_works=no
10893   ac_outfile=conftest.$ac_objext
10894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10895   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10896   # Insert the option either (1) after the last *FLAGS variable, or
10897   # (2) before a word containing "conftest.", or (3) at the end.
10898   # Note that $ac_compile itself does not contain backslashes and begins
10899   # with a dollar sign (not a hyphen), so the echo should work correctly.
10900   # The option is referenced via a variable to avoid confusing sed.
10901   lt_compile=`echo "$ac_compile" | $SED \
10902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10904   -e 's:$: $lt_compiler_flag:'`
10905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10906   (eval "$lt_compile" 2>conftest.err)
10907   ac_status=$?
10908   cat conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   if (exit $ac_status) && test -s "$ac_outfile"; then
10911     # The compiler can only warn and ignore the option if not recognized
10912     # So say no if there are warnings other than the usual output.
10913     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10914     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10915     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10916       lt_cv_prog_compiler_pic_works=yes
10917     fi
10918   fi
10919   $RM conftest*
10920
10921fi
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10923$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10924
10925if test yes = "$lt_cv_prog_compiler_pic_works"; then
10926    case $lt_prog_compiler_pic in
10927     "" | " "*) ;;
10928     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10929     esac
10930else
10931    lt_prog_compiler_pic=
10932     lt_prog_compiler_can_build_shared=no
10933fi
10934
10935fi
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947#
10948# Check to make sure the static flag actually works.
10949#
10950wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10952$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10953if ${lt_cv_prog_compiler_static_works+:} false; then :
10954  $as_echo_n "(cached) " >&6
10955else
10956  lt_cv_prog_compiler_static_works=no
10957   save_LDFLAGS=$LDFLAGS
10958   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10959   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10960   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10961     # The linker can only warn and ignore the option if not recognized
10962     # So say no if there are warnings
10963     if test -s conftest.err; then
10964       # Append any errors to the config.log.
10965       cat conftest.err 1>&5
10966       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10967       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10968       if diff conftest.exp conftest.er2 >/dev/null; then
10969         lt_cv_prog_compiler_static_works=yes
10970       fi
10971     else
10972       lt_cv_prog_compiler_static_works=yes
10973     fi
10974   fi
10975   $RM -r conftest*
10976   LDFLAGS=$save_LDFLAGS
10977
10978fi
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10980$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10981
10982if test yes = "$lt_cv_prog_compiler_static_works"; then
10983    :
10984else
10985    lt_prog_compiler_static=
10986fi
10987
10988
10989
10990
10991
10992
10993
10994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10995$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10996if ${lt_cv_prog_compiler_c_o+:} false; then :
10997  $as_echo_n "(cached) " >&6
10998else
10999  lt_cv_prog_compiler_c_o=no
11000   $RM -r conftest 2>/dev/null
11001   mkdir conftest
11002   cd conftest
11003   mkdir out
11004   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11005
11006   lt_compiler_flag="-o out/conftest2.$ac_objext"
11007   # Insert the option either (1) after the last *FLAGS variable, or
11008   # (2) before a word containing "conftest.", or (3) at the end.
11009   # Note that $ac_compile itself does not contain backslashes and begins
11010   # with a dollar sign (not a hyphen), so the echo should work correctly.
11011   lt_compile=`echo "$ac_compile" | $SED \
11012   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11014   -e 's:$: $lt_compiler_flag:'`
11015   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11016   (eval "$lt_compile" 2>out/conftest.err)
11017   ac_status=$?
11018   cat out/conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11021   then
11022     # The compiler can only warn and ignore the option if not recognized
11023     # So say no if there are warnings
11024     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11025     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11026     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11027       lt_cv_prog_compiler_c_o=yes
11028     fi
11029   fi
11030   chmod u+w . 2>&5
11031   $RM conftest*
11032   # SGI C++ compiler will create directory out/ii_files/ for
11033   # template instantiation
11034   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11035   $RM out/* && rmdir out
11036   cd ..
11037   $RM -r conftest
11038   $RM conftest*
11039
11040fi
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11042$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11043
11044
11045
11046
11047
11048
11049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11050$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11051if ${lt_cv_prog_compiler_c_o+:} false; then :
11052  $as_echo_n "(cached) " >&6
11053else
11054  lt_cv_prog_compiler_c_o=no
11055   $RM -r conftest 2>/dev/null
11056   mkdir conftest
11057   cd conftest
11058   mkdir out
11059   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11060
11061   lt_compiler_flag="-o out/conftest2.$ac_objext"
11062   # Insert the option either (1) after the last *FLAGS variable, or
11063   # (2) before a word containing "conftest.", or (3) at the end.
11064   # Note that $ac_compile itself does not contain backslashes and begins
11065   # with a dollar sign (not a hyphen), so the echo should work correctly.
11066   lt_compile=`echo "$ac_compile" | $SED \
11067   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11068   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11069   -e 's:$: $lt_compiler_flag:'`
11070   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11071   (eval "$lt_compile" 2>out/conftest.err)
11072   ac_status=$?
11073   cat out/conftest.err >&5
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11076   then
11077     # The compiler can only warn and ignore the option if not recognized
11078     # So say no if there are warnings
11079     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11080     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11081     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11082       lt_cv_prog_compiler_c_o=yes
11083     fi
11084   fi
11085   chmod u+w . 2>&5
11086   $RM conftest*
11087   # SGI C++ compiler will create directory out/ii_files/ for
11088   # template instantiation
11089   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11090   $RM out/* && rmdir out
11091   cd ..
11092   $RM -r conftest
11093   $RM conftest*
11094
11095fi
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11097$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11098
11099
11100
11101
11102hard_links=nottested
11103if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11104  # do not overwrite the value of need_locks provided by the user
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11106$as_echo_n "checking if we can lock with hard links... " >&6; }
11107  hard_links=yes
11108  $RM conftest*
11109  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11110  touch conftest.a
11111  ln conftest.a conftest.b 2>&5 || hard_links=no
11112  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11114$as_echo "$hard_links" >&6; }
11115  if test no = "$hard_links"; then
11116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11117$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11118    need_locks=warn
11119  fi
11120else
11121  need_locks=no
11122fi
11123
11124
11125
11126
11127
11128
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11130$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11131
11132  runpath_var=
11133  allow_undefined_flag=
11134  always_export_symbols=no
11135  archive_cmds=
11136  archive_expsym_cmds=
11137  compiler_needs_object=no
11138  enable_shared_with_static_runtimes=no
11139  export_dynamic_flag_spec=
11140  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11141  hardcode_automatic=no
11142  hardcode_direct=no
11143  hardcode_direct_absolute=no
11144  hardcode_libdir_flag_spec=
11145  hardcode_libdir_separator=
11146  hardcode_minus_L=no
11147  hardcode_shlibpath_var=unsupported
11148  inherit_rpath=no
11149  link_all_deplibs=unknown
11150  module_cmds=
11151  module_expsym_cmds=
11152  old_archive_from_new_cmds=
11153  old_archive_from_expsyms_cmds=
11154  thread_safe_flag_spec=
11155  whole_archive_flag_spec=
11156  # include_expsyms should be a list of space-separated symbols to be *always*
11157  # included in the symbol list
11158  include_expsyms=
11159  # exclude_expsyms can be an extended regexp of symbols to exclude
11160  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11161  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11162  # as well as any symbol that contains 'd'.
11163  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11164  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11165  # platforms (ab)use it in PIC code, but their linkers get confused if
11166  # the symbol is explicitly referenced.  Since portable code cannot
11167  # rely on this symbol name, it's probably fine to never include it in
11168  # preloaded symbol tables.
11169  # Exclude shared library initialization/finalization symbols.
11170  extract_expsyms_cmds=
11171
11172  case $host_os in
11173  cygwin* | mingw* | pw32* | cegcc*)
11174    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11175    # When not using gcc, we currently assume that we are using
11176    # Microsoft Visual C++.
11177    if test yes != "$GCC"; then
11178      with_gnu_ld=no
11179    fi
11180    ;;
11181  interix*)
11182    # we just hope/assume this is gcc and not c89 (= MSVC++)
11183    with_gnu_ld=yes
11184    ;;
11185  openbsd* | bitrig*)
11186    with_gnu_ld=no
11187    ;;
11188  esac
11189
11190  ld_shlibs=yes
11191
11192  # On some targets, GNU ld is compatible enough with the native linker
11193  # that we're better off using the native interface for both.
11194  lt_use_gnu_ld_interface=no
11195  if test yes = "$with_gnu_ld"; then
11196    case $host_os in
11197      aix*)
11198	# The AIX port of GNU ld has always aspired to compatibility
11199	# with the native linker.  However, as the warning in the GNU ld
11200	# block says, versions before 2.19.5* couldn't really create working
11201	# shared libraries, regardless of the interface used.
11202	case `$LD -v 2>&1` in
11203	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11204	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11205	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11206	  *)
11207	    lt_use_gnu_ld_interface=yes
11208	    ;;
11209	esac
11210	;;
11211      *)
11212	lt_use_gnu_ld_interface=yes
11213	;;
11214    esac
11215  fi
11216
11217  if test yes = "$lt_use_gnu_ld_interface"; then
11218    # If archive_cmds runs LD, not CC, wlarc should be empty
11219    wlarc='$wl'
11220
11221    # Set some defaults for GNU ld with shared library support. These
11222    # are reset later if shared libraries are not supported. Putting them
11223    # here allows them to be overridden if necessary.
11224    runpath_var=LD_RUN_PATH
11225    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11226    export_dynamic_flag_spec='$wl--export-dynamic'
11227    # ancient GNU ld didn't support --whole-archive et. al.
11228    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11229      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11230    else
11231      whole_archive_flag_spec=
11232    fi
11233    supports_anon_versioning=no
11234    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11235      *GNU\ gold*) supports_anon_versioning=yes ;;
11236      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11237      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11238      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11239      *\ 2.11.*) ;; # other 2.11 versions
11240      *) supports_anon_versioning=yes ;;
11241    esac
11242
11243    # See if GNU ld supports shared libraries.
11244    case $host_os in
11245    aix[3-9]*)
11246      # On AIX/PPC, the GNU linker is very broken
11247      if test ia64 != "$host_cpu"; then
11248	ld_shlibs=no
11249	cat <<_LT_EOF 1>&2
11250
11251*** Warning: the GNU linker, at least up to release 2.19, is reported
11252*** to be unable to reliably create shared libraries on AIX.
11253*** Therefore, libtool is disabling shared libraries support.  If you
11254*** really care for shared libraries, you may want to install binutils
11255*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11256*** You will then need to restart the configuration process.
11257
11258_LT_EOF
11259      fi
11260      ;;
11261
11262    amigaos*)
11263      case $host_cpu in
11264      powerpc)
11265            # see comment about AmigaOS4 .so support
11266            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11267            archive_expsym_cmds=''
11268        ;;
11269      m68k)
11270            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)'
11271            hardcode_libdir_flag_spec='-L$libdir'
11272            hardcode_minus_L=yes
11273        ;;
11274      esac
11275      ;;
11276
11277    beos*)
11278      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11279	allow_undefined_flag=unsupported
11280	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11281	# support --undefined.  This deserves some investigation.  FIXME
11282	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11283      else
11284	ld_shlibs=no
11285      fi
11286      ;;
11287
11288    cygwin* | mingw* | pw32* | cegcc*)
11289      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11290      # as there is no search path for DLLs.
11291      hardcode_libdir_flag_spec='-L$libdir'
11292      export_dynamic_flag_spec='$wl--export-all-symbols'
11293      allow_undefined_flag=unsupported
11294      always_export_symbols=no
11295      enable_shared_with_static_runtimes=yes
11296      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'
11297      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11298
11299      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11300        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11301	# If the export-symbols file already is a .def file, use it as
11302	# is; otherwise, prepend EXPORTS...
11303	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11304          cp $export_symbols $output_objdir/$soname.def;
11305        else
11306          echo EXPORTS > $output_objdir/$soname.def;
11307          cat $export_symbols >> $output_objdir/$soname.def;
11308        fi~
11309        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11310      else
11311	ld_shlibs=no
11312      fi
11313      ;;
11314
11315    haiku*)
11316      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11317      link_all_deplibs=yes
11318      ;;
11319
11320    os2*)
11321      hardcode_libdir_flag_spec='-L$libdir'
11322      hardcode_minus_L=yes
11323      allow_undefined_flag=unsupported
11324      shrext_cmds=.dll
11325      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11326	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11327	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11328	$ECHO EXPORTS >> $output_objdir/$libname.def~
11329	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11330	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11331	emximp -o $lib $output_objdir/$libname.def'
11332      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11333	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11334	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11335	$ECHO EXPORTS >> $output_objdir/$libname.def~
11336	prefix_cmds="$SED"~
11337	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11338	  prefix_cmds="$prefix_cmds -e 1d";
11339	fi~
11340	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11341	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11342	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11343	emximp -o $lib $output_objdir/$libname.def'
11344      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11345      enable_shared_with_static_runtimes=yes
11346      ;;
11347
11348    interix[3-9]*)
11349      hardcode_direct=no
11350      hardcode_shlibpath_var=no
11351      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11352      export_dynamic_flag_spec='$wl-E'
11353      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11354      # Instead, shared libraries are loaded at an image base (0x10000000 by
11355      # default) and relocated if they conflict, which is a slow very memory
11356      # consuming and fragmenting process.  To avoid this, we pick a random,
11357      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11358      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11359      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11360      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'
11361      ;;
11362
11363    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11364      tmp_diet=no
11365      if test linux-dietlibc = "$host_os"; then
11366	case $cc_basename in
11367	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11368	esac
11369      fi
11370      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11371	 && test no = "$tmp_diet"
11372      then
11373	tmp_addflag=' $pic_flag'
11374	tmp_sharedflag='-shared'
11375	case $cc_basename,$host_cpu in
11376        pgcc*)				# Portland Group C compiler
11377	  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'
11378	  tmp_addflag=' $pic_flag'
11379	  ;;
11380	pgf77* | pgf90* | pgf95* | pgfortran*)
11381					# Portland Group f77 and f90 compilers
11382	  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'
11383	  tmp_addflag=' $pic_flag -Mnomain' ;;
11384	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11385	  tmp_addflag=' -i_dynamic' ;;
11386	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11387	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11388	ifc* | ifort*)			# Intel Fortran compiler
11389	  tmp_addflag=' -nofor_main' ;;
11390	lf95*)				# Lahey Fortran 8.1
11391	  whole_archive_flag_spec=
11392	  tmp_sharedflag='--shared' ;;
11393        nagfor*)                        # NAGFOR 5.3
11394          tmp_sharedflag='-Wl,-shared' ;;
11395	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11396	  tmp_sharedflag='-qmkshrobj'
11397	  tmp_addflag= ;;
11398	nvcc*)	# Cuda Compiler Driver 2.2
11399	  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'
11400	  compiler_needs_object=yes
11401	  ;;
11402	esac
11403	case `$CC -V 2>&1 | sed 5q` in
11404	*Sun\ C*)			# Sun C 5.9
11405	  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'
11406	  compiler_needs_object=yes
11407	  tmp_sharedflag='-G' ;;
11408	*Sun\ F*)			# Sun Fortran 8.3
11409	  tmp_sharedflag='-G' ;;
11410	esac
11411	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11412
11413        if test yes = "$supports_anon_versioning"; then
11414          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11415            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11416            echo "local: *; };" >> $output_objdir/$libname.ver~
11417            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11418        fi
11419
11420	case $cc_basename in
11421	tcc*)
11422	  export_dynamic_flag_spec='-rdynamic'
11423	  ;;
11424	xlf* | bgf* | bgxlf* | mpixlf*)
11425	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11426	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11427	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11428	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11429	  if test yes = "$supports_anon_versioning"; then
11430	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11431              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11432              echo "local: *; };" >> $output_objdir/$libname.ver~
11433              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11434	  fi
11435	  ;;
11436	esac
11437      else
11438        ld_shlibs=no
11439      fi
11440      ;;
11441
11442    netbsd*)
11443      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11444	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11445	wlarc=
11446      else
11447	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11448	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11449      fi
11450      ;;
11451
11452    solaris*)
11453      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11454	ld_shlibs=no
11455	cat <<_LT_EOF 1>&2
11456
11457*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11458*** create shared libraries on Solaris systems.  Therefore, libtool
11459*** is disabling shared libraries support.  We urge you to upgrade GNU
11460*** binutils to release 2.9.1 or newer.  Another option is to modify
11461*** your PATH or compiler configuration so that the native linker is
11462*** used, and then restart.
11463
11464_LT_EOF
11465      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11466	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11467	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11468      else
11469	ld_shlibs=no
11470      fi
11471      ;;
11472
11473    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11474      case `$LD -v 2>&1` in
11475        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11476	ld_shlibs=no
11477	cat <<_LT_EOF 1>&2
11478
11479*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11480*** reliably create shared libraries on SCO systems.  Therefore, libtool
11481*** is disabling shared libraries support.  We urge you to upgrade GNU
11482*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11483*** your PATH or compiler configuration so that the native linker is
11484*** used, and then restart.
11485
11486_LT_EOF
11487	;;
11488	*)
11489	  # For security reasons, it is highly recommended that you always
11490	  # use absolute paths for naming shared libraries, and exclude the
11491	  # DT_RUNPATH tag from executables and libraries.  But doing so
11492	  # requires that you compile everything twice, which is a pain.
11493	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11494	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11495	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11496	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11497	  else
11498	    ld_shlibs=no
11499	  fi
11500	;;
11501      esac
11502      ;;
11503
11504    sunos4*)
11505      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11506      wlarc=
11507      hardcode_direct=yes
11508      hardcode_shlibpath_var=no
11509      ;;
11510
11511    *)
11512      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11513	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11514	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11515      else
11516	ld_shlibs=no
11517      fi
11518      ;;
11519    esac
11520
11521    if test no = "$ld_shlibs"; then
11522      runpath_var=
11523      hardcode_libdir_flag_spec=
11524      export_dynamic_flag_spec=
11525      whole_archive_flag_spec=
11526    fi
11527  else
11528    # PORTME fill in a description of your system's linker (not GNU ld)
11529    case $host_os in
11530    aix3*)
11531      allow_undefined_flag=unsupported
11532      always_export_symbols=yes
11533      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'
11534      # Note: this linker hardcodes the directories in LIBPATH if there
11535      # are no directories specified by -L.
11536      hardcode_minus_L=yes
11537      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11538	# Neither direct hardcoding nor static linking is supported with a
11539	# broken collect2.
11540	hardcode_direct=unsupported
11541      fi
11542      ;;
11543
11544    aix[4-9]*)
11545      if test ia64 = "$host_cpu"; then
11546	# On IA64, the linker does run time linking by default, so we don't
11547	# have to do anything special.
11548	aix_use_runtimelinking=no
11549	exp_sym_flag='-Bexport'
11550	no_entry_flag=
11551      else
11552	# If we're using GNU nm, then we don't want the "-C" option.
11553	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11554	# Without the "-l" option, or with the "-B" option, AIX nm treats
11555	# weak defined symbols like other global defined symbols, whereas
11556	# GNU nm marks them as "W".
11557	# While the 'weak' keyword is ignored in the Export File, we need
11558	# it in the Import File for the 'aix-soname' feature, so we have
11559	# to replace the "-B" option with "-P" for AIX nm.
11560	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11561	  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'
11562	else
11563	  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 == "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'
11564	fi
11565	aix_use_runtimelinking=no
11566
11567	# Test if we are trying to use run time linking or normal
11568	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11569	# have runtime linking enabled, and use it for executables.
11570	# For shared libraries, we enable/disable runtime linking
11571	# depending on the kind of the shared library created -
11572	# when "with_aix_soname,aix_use_runtimelinking" is:
11573	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11574	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11575	#            lib.a           static archive
11576	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11577	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11578	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11579	#            lib.a(lib.so.V) shared, rtl:no
11580	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11581	#            lib.a           static archive
11582	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11583	  for ld_flag in $LDFLAGS; do
11584	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11585	    aix_use_runtimelinking=yes
11586	    break
11587	  fi
11588	  done
11589	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11590	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11591	    # so we don't have lib.a shared libs to link our executables.
11592	    # We have to force runtime linking in this case.
11593	    aix_use_runtimelinking=yes
11594	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11595	  fi
11596	  ;;
11597	esac
11598
11599	exp_sym_flag='-bexport'
11600	no_entry_flag='-bnoentry'
11601      fi
11602
11603      # When large executables or shared objects are built, AIX ld can
11604      # have problems creating the table of contents.  If linking a library
11605      # or program results in "error TOC overflow" add -mminimal-toc to
11606      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11607      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11608
11609      archive_cmds=''
11610      hardcode_direct=yes
11611      hardcode_direct_absolute=yes
11612      hardcode_libdir_separator=':'
11613      link_all_deplibs=yes
11614      file_list_spec='$wl-f,'
11615      case $with_aix_soname,$aix_use_runtimelinking in
11616      aix,*) ;; # traditional, no import file
11617      svr4,* | *,yes) # use import file
11618	# The Import File defines what to hardcode.
11619	hardcode_direct=no
11620	hardcode_direct_absolute=no
11621	;;
11622      esac
11623
11624      if test yes = "$GCC"; then
11625	case $host_os in aix4.[012]|aix4.[012].*)
11626	# We only want to do this on AIX 4.2 and lower, the check
11627	# below for broken collect2 doesn't work under 4.3+
11628	  collect2name=`$CC -print-prog-name=collect2`
11629	  if test -f "$collect2name" &&
11630	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11631	  then
11632	  # We have reworked collect2
11633	  :
11634	  else
11635	  # We have old collect2
11636	  hardcode_direct=unsupported
11637	  # It fails to find uninstalled libraries when the uninstalled
11638	  # path is not listed in the libpath.  Setting hardcode_minus_L
11639	  # to unsupported forces relinking
11640	  hardcode_minus_L=yes
11641	  hardcode_libdir_flag_spec='-L$libdir'
11642	  hardcode_libdir_separator=
11643	  fi
11644	  ;;
11645	esac
11646	shared_flag='-shared'
11647	if test yes = "$aix_use_runtimelinking"; then
11648	  shared_flag="$shared_flag "'$wl-G'
11649	fi
11650	# Need to ensure runtime linking is disabled for the traditional
11651	# shared library, or the linker may eventually find shared libraries
11652	# /with/ Import File - we do not want to mix them.
11653	shared_flag_aix='-shared'
11654	shared_flag_svr4='-shared $wl-G'
11655      else
11656	# not using gcc
11657	if test ia64 = "$host_cpu"; then
11658	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11659	# chokes on -Wl,-G. The following line is correct:
11660	  shared_flag='-G'
11661	else
11662	  if test yes = "$aix_use_runtimelinking"; then
11663	    shared_flag='$wl-G'
11664	  else
11665	    shared_flag='$wl-bM:SRE'
11666	  fi
11667	  shared_flag_aix='$wl-bM:SRE'
11668	  shared_flag_svr4='$wl-G'
11669	fi
11670      fi
11671
11672      export_dynamic_flag_spec='$wl-bexpall'
11673      # It seems that -bexpall does not export symbols beginning with
11674      # underscore (_), so it is better to generate a list of symbols to export.
11675      always_export_symbols=yes
11676      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11677	# Warning - without using the other runtime loading flags (-brtl),
11678	# -berok will link without error, but may produce a broken library.
11679	allow_undefined_flag='-berok'
11680        # Determine the default libpath from the value encoded in an
11681        # empty executable.
11682        if test set = "${lt_cv_aix_libpath+set}"; then
11683  aix_libpath=$lt_cv_aix_libpath
11684else
11685  if ${lt_cv_aix_libpath_+:} false; then :
11686  $as_echo_n "(cached) " >&6
11687else
11688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689/* end confdefs.h.  */
11690
11691int
11692main ()
11693{
11694
11695  ;
11696  return 0;
11697}
11698_ACEOF
11699if ac_fn_c_try_link "$LINENO"; then :
11700
11701  lt_aix_libpath_sed='
11702      /Import File Strings/,/^$/ {
11703	  /^0/ {
11704	      s/^0  *\([^ ]*\) *$/\1/
11705	      p
11706	  }
11707      }'
11708  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11709  # Check for a 64-bit object if we didn't find anything.
11710  if test -z "$lt_cv_aix_libpath_"; then
11711    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11712  fi
11713fi
11714rm -f core conftest.err conftest.$ac_objext \
11715    conftest$ac_exeext conftest.$ac_ext
11716  if test -z "$lt_cv_aix_libpath_"; then
11717    lt_cv_aix_libpath_=/usr/lib:/lib
11718  fi
11719
11720fi
11721
11722  aix_libpath=$lt_cv_aix_libpath_
11723fi
11724
11725        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11726        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
11727      else
11728	if test ia64 = "$host_cpu"; then
11729	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11730	  allow_undefined_flag="-z nodefs"
11731	  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"
11732	else
11733	 # Determine the default libpath from the value encoded in an
11734	 # empty executable.
11735	 if test set = "${lt_cv_aix_libpath+set}"; then
11736  aix_libpath=$lt_cv_aix_libpath
11737else
11738  if ${lt_cv_aix_libpath_+:} false; then :
11739  $as_echo_n "(cached) " >&6
11740else
11741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742/* end confdefs.h.  */
11743
11744int
11745main ()
11746{
11747
11748  ;
11749  return 0;
11750}
11751_ACEOF
11752if ac_fn_c_try_link "$LINENO"; then :
11753
11754  lt_aix_libpath_sed='
11755      /Import File Strings/,/^$/ {
11756	  /^0/ {
11757	      s/^0  *\([^ ]*\) *$/\1/
11758	      p
11759	  }
11760      }'
11761  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11762  # Check for a 64-bit object if we didn't find anything.
11763  if test -z "$lt_cv_aix_libpath_"; then
11764    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11765  fi
11766fi
11767rm -f core conftest.err conftest.$ac_objext \
11768    conftest$ac_exeext conftest.$ac_ext
11769  if test -z "$lt_cv_aix_libpath_"; then
11770    lt_cv_aix_libpath_=/usr/lib:/lib
11771  fi
11772
11773fi
11774
11775  aix_libpath=$lt_cv_aix_libpath_
11776fi
11777
11778	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11779	  # Warning - without using the other run time loading flags,
11780	  # -berok will link without error, but may produce a broken library.
11781	  no_undefined_flag=' $wl-bernotok'
11782	  allow_undefined_flag=' $wl-berok'
11783	  if test yes = "$with_gnu_ld"; then
11784	    # We only use this code for GNU lds that support --whole-archive.
11785	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11786	  else
11787	    # Exported symbols can be pulled into shared objects from archives
11788	    whole_archive_flag_spec='$convenience'
11789	  fi
11790	  archive_cmds_need_lc=yes
11791	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11792	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11793	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11794	  if test svr4 != "$with_aix_soname"; then
11795	    # This is similar to how AIX traditionally builds its shared libraries.
11796	    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'
11797	  fi
11798	  if test aix != "$with_aix_soname"; then
11799	    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'
11800	  else
11801	    # used by -dlpreopen to get the symbols
11802	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11803	  fi
11804	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11805	fi
11806      fi
11807      ;;
11808
11809    amigaos*)
11810      case $host_cpu in
11811      powerpc)
11812            # see comment about AmigaOS4 .so support
11813            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11814            archive_expsym_cmds=''
11815        ;;
11816      m68k)
11817            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)'
11818            hardcode_libdir_flag_spec='-L$libdir'
11819            hardcode_minus_L=yes
11820        ;;
11821      esac
11822      ;;
11823
11824    bsdi[45]*)
11825      export_dynamic_flag_spec=-rdynamic
11826      ;;
11827
11828    cygwin* | mingw* | pw32* | cegcc*)
11829      # When not using gcc, we currently assume that we are using
11830      # Microsoft Visual C++.
11831      # hardcode_libdir_flag_spec is actually meaningless, as there is
11832      # no search path for DLLs.
11833      case $cc_basename in
11834      cl*)
11835	# Native MSVC
11836	hardcode_libdir_flag_spec=' '
11837	allow_undefined_flag=unsupported
11838	always_export_symbols=yes
11839	file_list_spec='@'
11840	# Tell ltmain to make .lib files, not .a files.
11841	libext=lib
11842	# Tell ltmain to make .dll files, not .so files.
11843	shrext_cmds=.dll
11844	# FIXME: Setting linknames here is a bad hack.
11845	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11846	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11847            cp "$export_symbols" "$output_objdir/$soname.def";
11848            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11849          else
11850            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11851          fi~
11852          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11853          linknames='
11854	# The linker will not automatically build a static lib if we build a DLL.
11855	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11856	enable_shared_with_static_runtimes=yes
11857	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11858	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11859	# Don't use ranlib
11860	old_postinstall_cmds='chmod 644 $oldlib'
11861	postlink_cmds='lt_outputfile="@OUTPUT@"~
11862          lt_tool_outputfile="@TOOL_OUTPUT@"~
11863          case $lt_outputfile in
11864            *.exe|*.EXE) ;;
11865            *)
11866              lt_outputfile=$lt_outputfile.exe
11867              lt_tool_outputfile=$lt_tool_outputfile.exe
11868              ;;
11869          esac~
11870          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11871            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11872            $RM "$lt_outputfile.manifest";
11873          fi'
11874	;;
11875      *)
11876	# Assume MSVC wrapper
11877	hardcode_libdir_flag_spec=' '
11878	allow_undefined_flag=unsupported
11879	# Tell ltmain to make .lib files, not .a files.
11880	libext=lib
11881	# Tell ltmain to make .dll files, not .so files.
11882	shrext_cmds=.dll
11883	# FIXME: Setting linknames here is a bad hack.
11884	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11885	# The linker will automatically build a .lib file if we build a DLL.
11886	old_archive_from_new_cmds='true'
11887	# FIXME: Should let the user specify the lib program.
11888	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11889	enable_shared_with_static_runtimes=yes
11890	;;
11891      esac
11892      ;;
11893
11894    darwin* | rhapsody*)
11895
11896
11897  archive_cmds_need_lc=no
11898  hardcode_direct=no
11899  hardcode_automatic=yes
11900  hardcode_shlibpath_var=unsupported
11901  if test yes = "$lt_cv_ld_force_load"; then
11902    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\"`'
11903
11904  else
11905    whole_archive_flag_spec=''
11906  fi
11907  link_all_deplibs=yes
11908  allow_undefined_flag=$_lt_dar_allow_undefined
11909  case $cc_basename in
11910     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11911     *) _lt_dar_can_shared=$GCC ;;
11912  esac
11913  if test yes = "$_lt_dar_can_shared"; then
11914    output_verbose_link_cmd=func_echo_all
11915    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11916    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11917    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"
11918    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"
11919
11920  else
11921  ld_shlibs=no
11922  fi
11923
11924      ;;
11925
11926    dgux*)
11927      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11928      hardcode_libdir_flag_spec='-L$libdir'
11929      hardcode_shlibpath_var=no
11930      ;;
11931
11932    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11933    # support.  Future versions do this automatically, but an explicit c++rt0.o
11934    # does not break anything, and helps significantly (at the cost of a little
11935    # extra space).
11936    freebsd2.2*)
11937      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11938      hardcode_libdir_flag_spec='-R$libdir'
11939      hardcode_direct=yes
11940      hardcode_shlibpath_var=no
11941      ;;
11942
11943    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11944    freebsd2.*)
11945      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11946      hardcode_direct=yes
11947      hardcode_minus_L=yes
11948      hardcode_shlibpath_var=no
11949      ;;
11950
11951    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11952    freebsd* | dragonfly*)
11953      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11954      hardcode_libdir_flag_spec='-R$libdir'
11955      hardcode_direct=yes
11956      hardcode_shlibpath_var=no
11957      ;;
11958
11959    hpux9*)
11960      if test yes = "$GCC"; then
11961	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'
11962      else
11963	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'
11964      fi
11965      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11966      hardcode_libdir_separator=:
11967      hardcode_direct=yes
11968
11969      # hardcode_minus_L: Not really in the search PATH,
11970      # but as the default location of the library.
11971      hardcode_minus_L=yes
11972      export_dynamic_flag_spec='$wl-E'
11973      ;;
11974
11975    hpux10*)
11976      if test yes,no = "$GCC,$with_gnu_ld"; then
11977	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11978      else
11979	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11980      fi
11981      if test no = "$with_gnu_ld"; then
11982	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11983	hardcode_libdir_separator=:
11984	hardcode_direct=yes
11985	hardcode_direct_absolute=yes
11986	export_dynamic_flag_spec='$wl-E'
11987	# hardcode_minus_L: Not really in the search PATH,
11988	# but as the default location of the library.
11989	hardcode_minus_L=yes
11990      fi
11991      ;;
11992
11993    hpux11*)
11994      if test yes,no = "$GCC,$with_gnu_ld"; then
11995	case $host_cpu in
11996	hppa*64*)
11997	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11998	  ;;
11999	ia64*)
12000	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12001	  ;;
12002	*)
12003	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12004	  ;;
12005	esac
12006      else
12007	case $host_cpu in
12008	hppa*64*)
12009	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12010	  ;;
12011	ia64*)
12012	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12013	  ;;
12014	*)
12015
12016	  # Older versions of the 11.00 compiler do not understand -b yet
12017	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12018	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12019$as_echo_n "checking if $CC understands -b... " >&6; }
12020if ${lt_cv_prog_compiler__b+:} false; then :
12021  $as_echo_n "(cached) " >&6
12022else
12023  lt_cv_prog_compiler__b=no
12024   save_LDFLAGS=$LDFLAGS
12025   LDFLAGS="$LDFLAGS -b"
12026   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12027   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12028     # The linker can only warn and ignore the option if not recognized
12029     # So say no if there are warnings
12030     if test -s conftest.err; then
12031       # Append any errors to the config.log.
12032       cat conftest.err 1>&5
12033       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12034       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12035       if diff conftest.exp conftest.er2 >/dev/null; then
12036         lt_cv_prog_compiler__b=yes
12037       fi
12038     else
12039       lt_cv_prog_compiler__b=yes
12040     fi
12041   fi
12042   $RM -r conftest*
12043   LDFLAGS=$save_LDFLAGS
12044
12045fi
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12047$as_echo "$lt_cv_prog_compiler__b" >&6; }
12048
12049if test yes = "$lt_cv_prog_compiler__b"; then
12050    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12051else
12052    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12053fi
12054
12055	  ;;
12056	esac
12057      fi
12058      if test no = "$with_gnu_ld"; then
12059	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12060	hardcode_libdir_separator=:
12061
12062	case $host_cpu in
12063	hppa*64*|ia64*)
12064	  hardcode_direct=no
12065	  hardcode_shlibpath_var=no
12066	  ;;
12067	*)
12068	  hardcode_direct=yes
12069	  hardcode_direct_absolute=yes
12070	  export_dynamic_flag_spec='$wl-E'
12071
12072	  # hardcode_minus_L: Not really in the search PATH,
12073	  # but as the default location of the library.
12074	  hardcode_minus_L=yes
12075	  ;;
12076	esac
12077      fi
12078      ;;
12079
12080    irix5* | irix6* | nonstopux*)
12081      if test yes = "$GCC"; then
12082	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'
12083	# Try to use the -exported_symbol ld option, if it does not
12084	# work, assume that -exports_file does not work either and
12085	# implicitly export all symbols.
12086	# This should be the same for all languages, so no per-tag cache variable.
12087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12088$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12089if ${lt_cv_irix_exported_symbol+:} false; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092  save_LDFLAGS=$LDFLAGS
12093	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12094	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h.  */
12096int foo (void) { return 0; }
12097_ACEOF
12098if ac_fn_c_try_link "$LINENO"; then :
12099  lt_cv_irix_exported_symbol=yes
12100else
12101  lt_cv_irix_exported_symbol=no
12102fi
12103rm -f core conftest.err conftest.$ac_objext \
12104    conftest$ac_exeext conftest.$ac_ext
12105           LDFLAGS=$save_LDFLAGS
12106fi
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12108$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12109	if test yes = "$lt_cv_irix_exported_symbol"; then
12110          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'
12111	fi
12112      else
12113	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'
12114	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'
12115      fi
12116      archive_cmds_need_lc='no'
12117      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12118      hardcode_libdir_separator=:
12119      inherit_rpath=yes
12120      link_all_deplibs=yes
12121      ;;
12122
12123    linux*)
12124      case $cc_basename in
12125      tcc*)
12126	# Fabrice Bellard et al's Tiny C Compiler
12127	ld_shlibs=yes
12128	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12129	;;
12130      esac
12131      ;;
12132
12133    netbsd*)
12134      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12135	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12136      else
12137	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12138      fi
12139      hardcode_libdir_flag_spec='-R$libdir'
12140      hardcode_direct=yes
12141      hardcode_shlibpath_var=no
12142      ;;
12143
12144    newsos6)
12145      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12146      hardcode_direct=yes
12147      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12148      hardcode_libdir_separator=:
12149      hardcode_shlibpath_var=no
12150      ;;
12151
12152    *nto* | *qnx*)
12153      ;;
12154
12155    openbsd* | bitrig*)
12156      if test -f /usr/libexec/ld.so; then
12157	hardcode_direct=yes
12158	hardcode_shlibpath_var=no
12159	hardcode_direct_absolute=yes
12160	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12161	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12162	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12163	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12164	  export_dynamic_flag_spec='$wl-E'
12165	else
12166	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12167	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12168	fi
12169      else
12170	ld_shlibs=no
12171      fi
12172      ;;
12173
12174    os2*)
12175      hardcode_libdir_flag_spec='-L$libdir'
12176      hardcode_minus_L=yes
12177      allow_undefined_flag=unsupported
12178      shrext_cmds=.dll
12179      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12180	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12181	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12182	$ECHO EXPORTS >> $output_objdir/$libname.def~
12183	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12184	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12185	emximp -o $lib $output_objdir/$libname.def'
12186      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12187	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12188	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12189	$ECHO EXPORTS >> $output_objdir/$libname.def~
12190	prefix_cmds="$SED"~
12191	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12192	  prefix_cmds="$prefix_cmds -e 1d";
12193	fi~
12194	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12195	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12196	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12197	emximp -o $lib $output_objdir/$libname.def'
12198      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12199      enable_shared_with_static_runtimes=yes
12200      ;;
12201
12202    osf3*)
12203      if test yes = "$GCC"; then
12204	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12205	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'
12206      else
12207	allow_undefined_flag=' -expect_unresolved \*'
12208	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'
12209      fi
12210      archive_cmds_need_lc='no'
12211      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12212      hardcode_libdir_separator=:
12213      ;;
12214
12215    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12216      if test yes = "$GCC"; then
12217	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12218	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'
12219	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12220      else
12221	allow_undefined_flag=' -expect_unresolved \*'
12222	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'
12223	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~
12224          $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'
12225
12226	# Both c and cxx compiler support -rpath directly
12227	hardcode_libdir_flag_spec='-rpath $libdir'
12228      fi
12229      archive_cmds_need_lc='no'
12230      hardcode_libdir_separator=:
12231      ;;
12232
12233    solaris*)
12234      no_undefined_flag=' -z defs'
12235      if test yes = "$GCC"; then
12236	wlarc='$wl'
12237	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12238	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12239          $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'
12240      else
12241	case `$CC -V 2>&1` in
12242	*"Compilers 5.0"*)
12243	  wlarc=''
12244	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12245	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12246            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12247	  ;;
12248	*)
12249	  wlarc='$wl'
12250	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12251	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12252            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12253	  ;;
12254	esac
12255      fi
12256      hardcode_libdir_flag_spec='-R$libdir'
12257      hardcode_shlibpath_var=no
12258      case $host_os in
12259      solaris2.[0-5] | solaris2.[0-5].*) ;;
12260      *)
12261	# The compiler driver will combine and reorder linker options,
12262	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12263	# but is careful enough not to reorder.
12264	# Supported since Solaris 2.6 (maybe 2.5.1?)
12265	if test yes = "$GCC"; then
12266	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12267	else
12268	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12269	fi
12270	;;
12271      esac
12272      link_all_deplibs=yes
12273      ;;
12274
12275    sunos4*)
12276      if test sequent = "$host_vendor"; then
12277	# Use $CC to link under sequent, because it throws in some extra .o
12278	# files that make .init and .fini sections work.
12279	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12280      else
12281	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12282      fi
12283      hardcode_libdir_flag_spec='-L$libdir'
12284      hardcode_direct=yes
12285      hardcode_minus_L=yes
12286      hardcode_shlibpath_var=no
12287      ;;
12288
12289    sysv4)
12290      case $host_vendor in
12291	sni)
12292	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12293	  hardcode_direct=yes # is this really true???
12294	;;
12295	siemens)
12296	  ## LD is ld it makes a PLAMLIB
12297	  ## CC just makes a GrossModule.
12298	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12299	  reload_cmds='$CC -r -o $output$reload_objs'
12300	  hardcode_direct=no
12301        ;;
12302	motorola)
12303	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12305	;;
12306      esac
12307      runpath_var='LD_RUN_PATH'
12308      hardcode_shlibpath_var=no
12309      ;;
12310
12311    sysv4.3*)
12312      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313      hardcode_shlibpath_var=no
12314      export_dynamic_flag_spec='-Bexport'
12315      ;;
12316
12317    sysv4*MP*)
12318      if test -d /usr/nec; then
12319	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320	hardcode_shlibpath_var=no
12321	runpath_var=LD_RUN_PATH
12322	hardcode_runpath_var=yes
12323	ld_shlibs=yes
12324      fi
12325      ;;
12326
12327    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12328      no_undefined_flag='$wl-z,text'
12329      archive_cmds_need_lc=no
12330      hardcode_shlibpath_var=no
12331      runpath_var='LD_RUN_PATH'
12332
12333      if test yes = "$GCC"; then
12334	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336      else
12337	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339      fi
12340      ;;
12341
12342    sysv5* | sco3.2v5* | sco5v6*)
12343      # Note: We CANNOT use -z defs as we might desire, because we do not
12344      # link with -lc, and that would cause any symbols used from libc to
12345      # always be unresolved, which means just about no library would
12346      # ever link correctly.  If we're not using GNU ld we use -z text
12347      # though, which does catch some bad symbols but isn't as heavy-handed
12348      # as -z defs.
12349      no_undefined_flag='$wl-z,text'
12350      allow_undefined_flag='$wl-z,nodefs'
12351      archive_cmds_need_lc=no
12352      hardcode_shlibpath_var=no
12353      hardcode_libdir_flag_spec='$wl-R,$libdir'
12354      hardcode_libdir_separator=':'
12355      link_all_deplibs=yes
12356      export_dynamic_flag_spec='$wl-Bexport'
12357      runpath_var='LD_RUN_PATH'
12358
12359      if test yes = "$GCC"; then
12360	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362      else
12363	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365      fi
12366      ;;
12367
12368    uts4*)
12369      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370      hardcode_libdir_flag_spec='-L$libdir'
12371      hardcode_shlibpath_var=no
12372      ;;
12373
12374    *)
12375      ld_shlibs=no
12376      ;;
12377    esac
12378
12379    if test sni = "$host_vendor"; then
12380      case $host in
12381      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12382	export_dynamic_flag_spec='$wl-Blargedynsym'
12383	;;
12384      esac
12385    fi
12386  fi
12387
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12389$as_echo "$ld_shlibs" >&6; }
12390test no = "$ld_shlibs" && can_build_shared=no
12391
12392with_gnu_ld=$with_gnu_ld
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408#
12409# Do we need to explicitly link libc?
12410#
12411case "x$archive_cmds_need_lc" in
12412x|xyes)
12413  # Assume -lc should be added
12414  archive_cmds_need_lc=yes
12415
12416  if test yes,yes = "$GCC,$enable_shared"; then
12417    case $archive_cmds in
12418    *'~'*)
12419      # FIXME: we may have to deal with multi-command sequences.
12420      ;;
12421    '$CC '*)
12422      # Test whether the compiler implicitly links with -lc since on some
12423      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12424      # to ld, don't add -lc before -lgcc.
12425      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12426$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12427if ${lt_cv_archive_cmds_need_lc+:} false; then :
12428  $as_echo_n "(cached) " >&6
12429else
12430  $RM conftest*
12431	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12432
12433	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12434  (eval $ac_compile) 2>&5
12435  ac_status=$?
12436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437  test $ac_status = 0; } 2>conftest.err; then
12438	  soname=conftest
12439	  lib=conftest
12440	  libobjs=conftest.$ac_objext
12441	  deplibs=
12442	  wl=$lt_prog_compiler_wl
12443	  pic_flag=$lt_prog_compiler_pic
12444	  compiler_flags=-v
12445	  linker_flags=-v
12446	  verstring=
12447	  output_objdir=.
12448	  libname=conftest
12449	  lt_save_allow_undefined_flag=$allow_undefined_flag
12450	  allow_undefined_flag=
12451	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12452  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12453  ac_status=$?
12454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455  test $ac_status = 0; }
12456	  then
12457	    lt_cv_archive_cmds_need_lc=no
12458	  else
12459	    lt_cv_archive_cmds_need_lc=yes
12460	  fi
12461	  allow_undefined_flag=$lt_save_allow_undefined_flag
12462	else
12463	  cat conftest.err 1>&5
12464	fi
12465	$RM conftest*
12466
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12469$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12470      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12471      ;;
12472    esac
12473  fi
12474  ;;
12475esac
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12629$as_echo_n "checking dynamic linker characteristics... " >&6; }
12630
12631if test yes = "$GCC"; then
12632  case $host_os in
12633    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12634    *) lt_awk_arg='/^libraries:/' ;;
12635  esac
12636  case $host_os in
12637    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12638    *) lt_sed_strip_eq='s|=/|/|g' ;;
12639  esac
12640  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12641  case $lt_search_path_spec in
12642  *\;*)
12643    # if the path contains ";" then we assume it to be the separator
12644    # otherwise default to the standard path separator (i.e. ":") - it is
12645    # assumed that no part of a normal pathname contains ";" but that should
12646    # okay in the real world where ";" in dirpaths is itself problematic.
12647    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12648    ;;
12649  *)
12650    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12651    ;;
12652  esac
12653  # Ok, now we have the path, separated by spaces, we can step through it
12654  # and add multilib dir if necessary...
12655  lt_tmp_lt_search_path_spec=
12656  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12657  # ...but if some path component already ends with the multilib dir we assume
12658  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12659  case "$lt_multi_os_dir; $lt_search_path_spec " in
12660  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12661    lt_multi_os_dir=
12662    ;;
12663  esac
12664  for lt_sys_path in $lt_search_path_spec; do
12665    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12666      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12667    elif test -n "$lt_multi_os_dir"; then
12668      test -d "$lt_sys_path" && \
12669	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12670    fi
12671  done
12672  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12673BEGIN {RS = " "; FS = "/|\n";} {
12674  lt_foo = "";
12675  lt_count = 0;
12676  for (lt_i = NF; lt_i > 0; lt_i--) {
12677    if ($lt_i != "" && $lt_i != ".") {
12678      if ($lt_i == "..") {
12679        lt_count++;
12680      } else {
12681        if (lt_count == 0) {
12682          lt_foo = "/" $lt_i lt_foo;
12683        } else {
12684          lt_count--;
12685        }
12686      }
12687    }
12688  }
12689  if (lt_foo != "") { lt_freq[lt_foo]++; }
12690  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12691}'`
12692  # AWK program above erroneously prepends '/' to C:/dos/paths
12693  # for these hosts.
12694  case $host_os in
12695    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12696      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12697  esac
12698  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12699else
12700  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12701fi
12702library_names_spec=
12703libname_spec='lib$name'
12704soname_spec=
12705shrext_cmds=.so
12706postinstall_cmds=
12707postuninstall_cmds=
12708finish_cmds=
12709finish_eval=
12710shlibpath_var=
12711shlibpath_overrides_runpath=unknown
12712version_type=none
12713dynamic_linker="$host_os ld.so"
12714sys_lib_dlsearch_path_spec="/lib /usr/lib"
12715need_lib_prefix=unknown
12716hardcode_into_libs=no
12717
12718# when you set need_version to no, make sure it does not cause -set_version
12719# flags to be left without arguments
12720need_version=unknown
12721
12722
12723
12724case $host_os in
12725aix3*)
12726  version_type=linux # correct to gnu/linux during the next big refactor
12727  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12728  shlibpath_var=LIBPATH
12729
12730  # AIX 3 has no versioning support, so we append a major version to the name.
12731  soname_spec='$libname$release$shared_ext$major'
12732  ;;
12733
12734aix[4-9]*)
12735  version_type=linux # correct to gnu/linux during the next big refactor
12736  need_lib_prefix=no
12737  need_version=no
12738  hardcode_into_libs=yes
12739  if test ia64 = "$host_cpu"; then
12740    # AIX 5 supports IA64
12741    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12742    shlibpath_var=LD_LIBRARY_PATH
12743  else
12744    # With GCC up to 2.95.x, collect2 would create an import file
12745    # for dependence libraries.  The import file would start with
12746    # the line '#! .'.  This would cause the generated library to
12747    # depend on '.', always an invalid library.  This was fixed in
12748    # development snapshots of GCC prior to 3.0.
12749    case $host_os in
12750      aix4 | aix4.[01] | aix4.[01].*)
12751      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12752	   echo ' yes '
12753	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12754	:
12755      else
12756	can_build_shared=no
12757      fi
12758      ;;
12759    esac
12760    # Using Import Files as archive members, it is possible to support
12761    # filename-based versioning of shared library archives on AIX. While
12762    # this would work for both with and without runtime linking, it will
12763    # prevent static linking of such archives. So we do filename-based
12764    # shared library versioning with .so extension only, which is used
12765    # when both runtime linking and shared linking is enabled.
12766    # Unfortunately, runtime linking may impact performance, so we do
12767    # not want this to be the default eventually. Also, we use the
12768    # versioned .so libs for executables only if there is the -brtl
12769    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12770    # To allow for filename-based versioning support, we need to create
12771    # libNAME.so.V as an archive file, containing:
12772    # *) an Import File, referring to the versioned filename of the
12773    #    archive as well as the shared archive member, telling the
12774    #    bitwidth (32 or 64) of that shared object, and providing the
12775    #    list of exported symbols of that shared object, eventually
12776    #    decorated with the 'weak' keyword
12777    # *) the shared object with the F_LOADONLY flag set, to really avoid
12778    #    it being seen by the linker.
12779    # At run time we better use the real file rather than another symlink,
12780    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12781
12782    case $with_aix_soname,$aix_use_runtimelinking in
12783    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12784    # soname into executable. Probably we can add versioning support to
12785    # collect2, so additional links can be useful in future.
12786    aix,yes) # traditional libtool
12787      dynamic_linker='AIX unversionable lib.so'
12788      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12789      # instead of lib<name>.a to let people know that these are not
12790      # typical AIX shared libraries.
12791      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12792      ;;
12793    aix,no) # traditional AIX only
12794      dynamic_linker='AIX lib.a(lib.so.V)'
12795      # We preserve .a as extension for shared libraries through AIX4.2
12796      # and later when we are not doing run time linking.
12797      library_names_spec='$libname$release.a $libname.a'
12798      soname_spec='$libname$release$shared_ext$major'
12799      ;;
12800    svr4,*) # full svr4 only
12801      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12802      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12803      # We do not specify a path in Import Files, so LIBPATH fires.
12804      shlibpath_overrides_runpath=yes
12805      ;;
12806    *,yes) # both, prefer svr4
12807      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12808      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12809      # unpreferred sharedlib libNAME.a needs extra handling
12810      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"'
12811      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"'
12812      # We do not specify a path in Import Files, so LIBPATH fires.
12813      shlibpath_overrides_runpath=yes
12814      ;;
12815    *,no) # both, prefer aix
12816      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12817      library_names_spec='$libname$release.a $libname.a'
12818      soname_spec='$libname$release$shared_ext$major'
12819      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12820      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)'
12821      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"'
12822      ;;
12823    esac
12824    shlibpath_var=LIBPATH
12825  fi
12826  ;;
12827
12828amigaos*)
12829  case $host_cpu in
12830  powerpc)
12831    # Since July 2007 AmigaOS4 officially supports .so libraries.
12832    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12833    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12834    ;;
12835  m68k)
12836    library_names_spec='$libname.ixlibrary $libname.a'
12837    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12838    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'
12839    ;;
12840  esac
12841  ;;
12842
12843beos*)
12844  library_names_spec='$libname$shared_ext'
12845  dynamic_linker="$host_os ld.so"
12846  shlibpath_var=LIBRARY_PATH
12847  ;;
12848
12849bsdi[45]*)
12850  version_type=linux # correct to gnu/linux during the next big refactor
12851  need_version=no
12852  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12853  soname_spec='$libname$release$shared_ext$major'
12854  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12855  shlibpath_var=LD_LIBRARY_PATH
12856  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12857  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12858  # the default ld.so.conf also contains /usr/contrib/lib and
12859  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12860  # libtool to hard-code these into programs
12861  ;;
12862
12863cygwin* | mingw* | pw32* | cegcc*)
12864  version_type=windows
12865  shrext_cmds=.dll
12866  need_version=no
12867  need_lib_prefix=no
12868
12869  case $GCC,$cc_basename in
12870  yes,*)
12871    # gcc
12872    library_names_spec='$libname.dll.a'
12873    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12874    postinstall_cmds='base_file=`basename \$file`~
12875      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12876      dldir=$destdir/`dirname \$dlpath`~
12877      test -d \$dldir || mkdir -p \$dldir~
12878      $install_prog $dir/$dlname \$dldir/$dlname~
12879      chmod a+x \$dldir/$dlname~
12880      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12881        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12882      fi'
12883    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12884      dlpath=$dir/\$dldll~
12885       $RM \$dlpath'
12886    shlibpath_overrides_runpath=yes
12887
12888    case $host_os in
12889    cygwin*)
12890      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12891      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12892
12893      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12894      ;;
12895    mingw* | cegcc*)
12896      # MinGW DLLs use traditional 'lib' prefix
12897      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12898      ;;
12899    pw32*)
12900      # pw32 DLLs use 'pw' prefix rather than 'lib'
12901      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12902      ;;
12903    esac
12904    dynamic_linker='Win32 ld.exe'
12905    ;;
12906
12907  *,cl*)
12908    # Native MSVC
12909    libname_spec='$name'
12910    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12911    library_names_spec='$libname.dll.lib'
12912
12913    case $build_os in
12914    mingw*)
12915      sys_lib_search_path_spec=
12916      lt_save_ifs=$IFS
12917      IFS=';'
12918      for lt_path in $LIB
12919      do
12920        IFS=$lt_save_ifs
12921        # Let DOS variable expansion print the short 8.3 style file name.
12922        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12923        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12924      done
12925      IFS=$lt_save_ifs
12926      # Convert to MSYS style.
12927      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12928      ;;
12929    cygwin*)
12930      # Convert to unix form, then to dos form, then back to unix form
12931      # but this time dos style (no spaces!) so that the unix form looks
12932      # like /cygdrive/c/PROGRA~1:/cygdr...
12933      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12934      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12935      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12936      ;;
12937    *)
12938      sys_lib_search_path_spec=$LIB
12939      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12940        # It is most probably a Windows format PATH.
12941        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12942      else
12943        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12944      fi
12945      # FIXME: find the short name or the path components, as spaces are
12946      # common. (e.g. "Program Files" -> "PROGRA~1")
12947      ;;
12948    esac
12949
12950    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12951    postinstall_cmds='base_file=`basename \$file`~
12952      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12953      dldir=$destdir/`dirname \$dlpath`~
12954      test -d \$dldir || mkdir -p \$dldir~
12955      $install_prog $dir/$dlname \$dldir/$dlname'
12956    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12957      dlpath=$dir/\$dldll~
12958       $RM \$dlpath'
12959    shlibpath_overrides_runpath=yes
12960    dynamic_linker='Win32 link.exe'
12961    ;;
12962
12963  *)
12964    # Assume MSVC wrapper
12965    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12966    dynamic_linker='Win32 ld.exe'
12967    ;;
12968  esac
12969  # FIXME: first we should search . and the directory the executable is in
12970  shlibpath_var=PATH
12971  ;;
12972
12973darwin* | rhapsody*)
12974  dynamic_linker="$host_os dyld"
12975  version_type=darwin
12976  need_lib_prefix=no
12977  need_version=no
12978  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12979  soname_spec='$libname$release$major$shared_ext'
12980  shlibpath_overrides_runpath=yes
12981  shlibpath_var=DYLD_LIBRARY_PATH
12982  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12983
12984  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12985  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12986  ;;
12987
12988dgux*)
12989  version_type=linux # correct to gnu/linux during the next big refactor
12990  need_lib_prefix=no
12991  need_version=no
12992  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12993  soname_spec='$libname$release$shared_ext$major'
12994  shlibpath_var=LD_LIBRARY_PATH
12995  ;;
12996
12997freebsd* | dragonfly*)
12998  # DragonFly does not have aout.  When/if they implement a new
12999  # versioning mechanism, adjust this.
13000  if test -x /usr/bin/objformat; then
13001    objformat=`/usr/bin/objformat`
13002  else
13003    case $host_os in
13004    freebsd[23].*) objformat=aout ;;
13005    *) objformat=elf ;;
13006    esac
13007  fi
13008  version_type=freebsd-$objformat
13009  case $version_type in
13010    freebsd-elf*)
13011      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13012      soname_spec='$libname$release$shared_ext$major'
13013      need_version=no
13014      need_lib_prefix=no
13015      ;;
13016    freebsd-*)
13017      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13018      need_version=yes
13019      ;;
13020  esac
13021  shlibpath_var=LD_LIBRARY_PATH
13022  case $host_os in
13023  freebsd2.*)
13024    shlibpath_overrides_runpath=yes
13025    ;;
13026  freebsd3.[01]* | freebsdelf3.[01]*)
13027    shlibpath_overrides_runpath=yes
13028    hardcode_into_libs=yes
13029    ;;
13030  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13031  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13032    shlibpath_overrides_runpath=no
13033    hardcode_into_libs=yes
13034    ;;
13035  *) # from 4.6 on, and DragonFly
13036    shlibpath_overrides_runpath=yes
13037    hardcode_into_libs=yes
13038    ;;
13039  esac
13040  ;;
13041
13042haiku*)
13043  version_type=linux # correct to gnu/linux during the next big refactor
13044  need_lib_prefix=no
13045  need_version=no
13046  dynamic_linker="$host_os runtime_loader"
13047  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13048  soname_spec='$libname$release$shared_ext$major'
13049  shlibpath_var=LIBRARY_PATH
13050  shlibpath_overrides_runpath=no
13051  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13052  hardcode_into_libs=yes
13053  ;;
13054
13055hpux9* | hpux10* | hpux11*)
13056  # Give a soname corresponding to the major version so that dld.sl refuses to
13057  # link against other versions.
13058  version_type=sunos
13059  need_lib_prefix=no
13060  need_version=no
13061  case $host_cpu in
13062  ia64*)
13063    shrext_cmds='.so'
13064    hardcode_into_libs=yes
13065    dynamic_linker="$host_os dld.so"
13066    shlibpath_var=LD_LIBRARY_PATH
13067    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13068    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13069    soname_spec='$libname$release$shared_ext$major'
13070    if test 32 = "$HPUX_IA64_MODE"; then
13071      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13072      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13073    else
13074      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13075      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13076    fi
13077    ;;
13078  hppa*64*)
13079    shrext_cmds='.sl'
13080    hardcode_into_libs=yes
13081    dynamic_linker="$host_os dld.sl"
13082    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13083    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13084    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13085    soname_spec='$libname$release$shared_ext$major'
13086    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13087    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13088    ;;
13089  *)
13090    shrext_cmds='.sl'
13091    dynamic_linker="$host_os dld.sl"
13092    shlibpath_var=SHLIB_PATH
13093    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13094    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13095    soname_spec='$libname$release$shared_ext$major'
13096    ;;
13097  esac
13098  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13099  postinstall_cmds='chmod 555 $lib'
13100  # or fails outright, so override atomically:
13101  install_override_mode=555
13102  ;;
13103
13104interix[3-9]*)
13105  version_type=linux # correct to gnu/linux during the next big refactor
13106  need_lib_prefix=no
13107  need_version=no
13108  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13109  soname_spec='$libname$release$shared_ext$major'
13110  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13111  shlibpath_var=LD_LIBRARY_PATH
13112  shlibpath_overrides_runpath=no
13113  hardcode_into_libs=yes
13114  ;;
13115
13116irix5* | irix6* | nonstopux*)
13117  case $host_os in
13118    nonstopux*) version_type=nonstopux ;;
13119    *)
13120	if test yes = "$lt_cv_prog_gnu_ld"; then
13121		version_type=linux # correct to gnu/linux during the next big refactor
13122	else
13123		version_type=irix
13124	fi ;;
13125  esac
13126  need_lib_prefix=no
13127  need_version=no
13128  soname_spec='$libname$release$shared_ext$major'
13129  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13130  case $host_os in
13131  irix5* | nonstopux*)
13132    libsuff= shlibsuff=
13133    ;;
13134  *)
13135    case $LD in # libtool.m4 will add one of these switches to LD
13136    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13137      libsuff= shlibsuff= libmagic=32-bit;;
13138    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13139      libsuff=32 shlibsuff=N32 libmagic=N32;;
13140    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13141      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13142    *) libsuff= shlibsuff= libmagic=never-match;;
13143    esac
13144    ;;
13145  esac
13146  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13147  shlibpath_overrides_runpath=no
13148  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13149  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13150  hardcode_into_libs=yes
13151  ;;
13152
13153# No shared lib support for Linux oldld, aout, or coff.
13154linux*oldld* | linux*aout* | linux*coff*)
13155  dynamic_linker=no
13156  ;;
13157
13158linux*android*)
13159  version_type=none # Android doesn't support versioned libraries.
13160  need_lib_prefix=no
13161  need_version=no
13162  library_names_spec='$libname$release$shared_ext'
13163  soname_spec='$libname$release$shared_ext'
13164  finish_cmds=
13165  shlibpath_var=LD_LIBRARY_PATH
13166  shlibpath_overrides_runpath=yes
13167
13168  # This implies no fast_install, which is unacceptable.
13169  # Some rework will be needed to allow for fast_install
13170  # before this can be enabled.
13171  hardcode_into_libs=yes
13172
13173  dynamic_linker='Android linker'
13174  # Don't embed -rpath directories since the linker doesn't support them.
13175  hardcode_libdir_flag_spec='-L$libdir'
13176  ;;
13177
13178# This must be glibc/ELF.
13179linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13180  version_type=linux # correct to gnu/linux during the next big refactor
13181  need_lib_prefix=no
13182  need_version=no
13183  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13184  soname_spec='$libname$release$shared_ext$major'
13185  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13186  shlibpath_var=LD_LIBRARY_PATH
13187  shlibpath_overrides_runpath=no
13188
13189  # Some binutils ld are patched to set DT_RUNPATH
13190  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13191  $as_echo_n "(cached) " >&6
13192else
13193  lt_cv_shlibpath_overrides_runpath=no
13194    save_LDFLAGS=$LDFLAGS
13195    save_libdir=$libdir
13196    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13197	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13198    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199/* end confdefs.h.  */
13200
13201int
13202main ()
13203{
13204
13205  ;
13206  return 0;
13207}
13208_ACEOF
13209if ac_fn_c_try_link "$LINENO"; then :
13210  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13211  lt_cv_shlibpath_overrides_runpath=yes
13212fi
13213fi
13214rm -f core conftest.err conftest.$ac_objext \
13215    conftest$ac_exeext conftest.$ac_ext
13216    LDFLAGS=$save_LDFLAGS
13217    libdir=$save_libdir
13218
13219fi
13220
13221  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13222
13223  # This implies no fast_install, which is unacceptable.
13224  # Some rework will be needed to allow for fast_install
13225  # before this can be enabled.
13226  hardcode_into_libs=yes
13227
13228  # Add ABI-specific directories to the system library path.
13229  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13230
13231  # Ideally, we could use ldconfig to report *all* directores which are
13232  # searched for libraries, however this is still not possible.  Aside from not
13233  # being certain /sbin/ldconfig is available, command
13234  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13235  # even though it is searched at run-time.  Try to do the best guess by
13236  # appending ld.so.conf contents (and includes) to the search path.
13237  if test -f /etc/ld.so.conf; then
13238    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' ' '`
13239    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13240  fi
13241
13242  # We used to test for /lib/ld.so.1 and disable shared libraries on
13243  # powerpc, because MkLinux only supported shared libraries with the
13244  # GNU dynamic linker.  Since this was broken with cross compilers,
13245  # most powerpc-linux boxes support dynamic linking these days and
13246  # people can always --disable-shared, the test was removed, and we
13247  # assume the GNU/Linux dynamic linker is in use.
13248  dynamic_linker='GNU/Linux ld.so'
13249  ;;
13250
13251netbsd*)
13252  version_type=sunos
13253  need_lib_prefix=no
13254  need_version=no
13255  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13256    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13257    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13258    dynamic_linker='NetBSD (a.out) ld.so'
13259  else
13260    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13261    soname_spec='$libname$release$shared_ext$major'
13262    dynamic_linker='NetBSD ld.elf_so'
13263  fi
13264  shlibpath_var=LD_LIBRARY_PATH
13265  shlibpath_overrides_runpath=yes
13266  hardcode_into_libs=yes
13267  ;;
13268
13269newsos6)
13270  version_type=linux # correct to gnu/linux during the next big refactor
13271  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13272  shlibpath_var=LD_LIBRARY_PATH
13273  shlibpath_overrides_runpath=yes
13274  ;;
13275
13276*nto* | *qnx*)
13277  version_type=qnx
13278  need_lib_prefix=no
13279  need_version=no
13280  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13281  soname_spec='$libname$release$shared_ext$major'
13282  shlibpath_var=LD_LIBRARY_PATH
13283  shlibpath_overrides_runpath=no
13284  hardcode_into_libs=yes
13285  dynamic_linker='ldqnx.so'
13286  ;;
13287
13288openbsd* | bitrig*)
13289  version_type=sunos
13290  sys_lib_dlsearch_path_spec=/usr/lib
13291  need_lib_prefix=no
13292  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13293    need_version=no
13294  else
13295    need_version=yes
13296  fi
13297  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13299  shlibpath_var=LD_LIBRARY_PATH
13300  shlibpath_overrides_runpath=yes
13301  ;;
13302
13303os2*)
13304  libname_spec='$name'
13305  version_type=windows
13306  shrext_cmds=.dll
13307  need_version=no
13308  need_lib_prefix=no
13309  # OS/2 can only load a DLL with a base name of 8 characters or less.
13310  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13311    v=$($ECHO $release$versuffix | tr -d .-);
13312    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13313    $ECHO $n$v`$shared_ext'
13314  library_names_spec='${libname}_dll.$libext'
13315  dynamic_linker='OS/2 ld.exe'
13316  shlibpath_var=BEGINLIBPATH
13317  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13318  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13319  postinstall_cmds='base_file=`basename \$file`~
13320    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13321    dldir=$destdir/`dirname \$dlpath`~
13322    test -d \$dldir || mkdir -p \$dldir~
13323    $install_prog $dir/$dlname \$dldir/$dlname~
13324    chmod a+x \$dldir/$dlname~
13325    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13326      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13327    fi'
13328  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13329    dlpath=$dir/\$dldll~
13330    $RM \$dlpath'
13331  ;;
13332
13333osf3* | osf4* | osf5*)
13334  version_type=osf
13335  need_lib_prefix=no
13336  need_version=no
13337  soname_spec='$libname$release$shared_ext$major'
13338  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13339  shlibpath_var=LD_LIBRARY_PATH
13340  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13341  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13342  ;;
13343
13344rdos*)
13345  dynamic_linker=no
13346  ;;
13347
13348solaris*)
13349  version_type=linux # correct to gnu/linux during the next big refactor
13350  need_lib_prefix=no
13351  need_version=no
13352  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13353  soname_spec='$libname$release$shared_ext$major'
13354  shlibpath_var=LD_LIBRARY_PATH
13355  shlibpath_overrides_runpath=yes
13356  hardcode_into_libs=yes
13357  # ldd complains unless libraries are executable
13358  postinstall_cmds='chmod +x $lib'
13359  ;;
13360
13361sunos4*)
13362  version_type=sunos
13363  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13364  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13365  shlibpath_var=LD_LIBRARY_PATH
13366  shlibpath_overrides_runpath=yes
13367  if test yes = "$with_gnu_ld"; then
13368    need_lib_prefix=no
13369  fi
13370  need_version=yes
13371  ;;
13372
13373sysv4 | sysv4.3*)
13374  version_type=linux # correct to gnu/linux during the next big refactor
13375  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13376  soname_spec='$libname$release$shared_ext$major'
13377  shlibpath_var=LD_LIBRARY_PATH
13378  case $host_vendor in
13379    sni)
13380      shlibpath_overrides_runpath=no
13381      need_lib_prefix=no
13382      runpath_var=LD_RUN_PATH
13383      ;;
13384    siemens)
13385      need_lib_prefix=no
13386      ;;
13387    motorola)
13388      need_lib_prefix=no
13389      need_version=no
13390      shlibpath_overrides_runpath=no
13391      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13392      ;;
13393  esac
13394  ;;
13395
13396sysv4*MP*)
13397  if test -d /usr/nec; then
13398    version_type=linux # correct to gnu/linux during the next big refactor
13399    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13400    soname_spec='$libname$shared_ext.$major'
13401    shlibpath_var=LD_LIBRARY_PATH
13402  fi
13403  ;;
13404
13405sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13406  version_type=sco
13407  need_lib_prefix=no
13408  need_version=no
13409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13410  soname_spec='$libname$release$shared_ext$major'
13411  shlibpath_var=LD_LIBRARY_PATH
13412  shlibpath_overrides_runpath=yes
13413  hardcode_into_libs=yes
13414  if test yes = "$with_gnu_ld"; then
13415    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13416  else
13417    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13418    case $host_os in
13419      sco3.2v5*)
13420        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13421	;;
13422    esac
13423  fi
13424  sys_lib_dlsearch_path_spec='/usr/lib'
13425  ;;
13426
13427tpf*)
13428  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13429  version_type=linux # correct to gnu/linux during the next big refactor
13430  need_lib_prefix=no
13431  need_version=no
13432  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13433  shlibpath_var=LD_LIBRARY_PATH
13434  shlibpath_overrides_runpath=no
13435  hardcode_into_libs=yes
13436  ;;
13437
13438uts4*)
13439  version_type=linux # correct to gnu/linux during the next big refactor
13440  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13441  soname_spec='$libname$release$shared_ext$major'
13442  shlibpath_var=LD_LIBRARY_PATH
13443  ;;
13444
13445*)
13446  dynamic_linker=no
13447  ;;
13448esac
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13450$as_echo "$dynamic_linker" >&6; }
13451test no = "$dynamic_linker" && can_build_shared=no
13452
13453variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13454if test yes = "$GCC"; then
13455  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13456fi
13457
13458if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13459  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13460fi
13461
13462if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13463  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13464fi
13465
13466# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13467configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13468
13469# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13470func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13471
13472# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13473configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13572$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13573hardcode_action=
13574if test -n "$hardcode_libdir_flag_spec" ||
13575   test -n "$runpath_var" ||
13576   test yes = "$hardcode_automatic"; then
13577
13578  # We can hardcode non-existent directories.
13579  if test no != "$hardcode_direct" &&
13580     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13581     # have to relink, otherwise we might link with an installed library
13582     # when we should be linking with a yet-to-be-installed one
13583     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13584     test no != "$hardcode_minus_L"; then
13585    # Linking always hardcodes the temporary library directory.
13586    hardcode_action=relink
13587  else
13588    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13589    hardcode_action=immediate
13590  fi
13591else
13592  # We cannot hardcode anything, or else we can only hardcode existing
13593  # directories.
13594  hardcode_action=unsupported
13595fi
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13597$as_echo "$hardcode_action" >&6; }
13598
13599if test relink = "$hardcode_action" ||
13600   test yes = "$inherit_rpath"; then
13601  # Fast installation is not supported
13602  enable_fast_install=no
13603elif test yes = "$shlibpath_overrides_runpath" ||
13604     test no = "$enable_shared"; then
13605  # Fast installation is not necessary
13606  enable_fast_install=needless
13607fi
13608
13609
13610
13611
13612
13613
13614  if test yes != "$enable_dlopen"; then
13615  enable_dlopen=unknown
13616  enable_dlopen_self=unknown
13617  enable_dlopen_self_static=unknown
13618else
13619  lt_cv_dlopen=no
13620  lt_cv_dlopen_libs=
13621
13622  case $host_os in
13623  beos*)
13624    lt_cv_dlopen=load_add_on
13625    lt_cv_dlopen_libs=
13626    lt_cv_dlopen_self=yes
13627    ;;
13628
13629  mingw* | pw32* | cegcc*)
13630    lt_cv_dlopen=LoadLibrary
13631    lt_cv_dlopen_libs=
13632    ;;
13633
13634  cygwin*)
13635    lt_cv_dlopen=dlopen
13636    lt_cv_dlopen_libs=
13637    ;;
13638
13639  darwin*)
13640    # if libdl is installed we need to link against it
13641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13642$as_echo_n "checking for dlopen in -ldl... " >&6; }
13643if ${ac_cv_lib_dl_dlopen+:} false; then :
13644  $as_echo_n "(cached) " >&6
13645else
13646  ac_check_lib_save_LIBS=$LIBS
13647LIBS="-ldl  $LIBS"
13648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h.  */
13650
13651/* Override any GCC internal prototype to avoid an error.
13652   Use char because int might match the return type of a GCC
13653   builtin and then its argument prototype would still apply.  */
13654#ifdef __cplusplus
13655extern "C"
13656#endif
13657char dlopen ();
13658int
13659main ()
13660{
13661return dlopen ();
13662  ;
13663  return 0;
13664}
13665_ACEOF
13666if ac_fn_c_try_link "$LINENO"; then :
13667  ac_cv_lib_dl_dlopen=yes
13668else
13669  ac_cv_lib_dl_dlopen=no
13670fi
13671rm -f core conftest.err conftest.$ac_objext \
13672    conftest$ac_exeext conftest.$ac_ext
13673LIBS=$ac_check_lib_save_LIBS
13674fi
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13676$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13677if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13678  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13679else
13680
13681    lt_cv_dlopen=dyld
13682    lt_cv_dlopen_libs=
13683    lt_cv_dlopen_self=yes
13684
13685fi
13686
13687    ;;
13688
13689  tpf*)
13690    # Don't try to run any link tests for TPF.  We know it's impossible
13691    # because TPF is a cross-compiler, and we know how we open DSOs.
13692    lt_cv_dlopen=dlopen
13693    lt_cv_dlopen_libs=
13694    lt_cv_dlopen_self=no
13695    ;;
13696
13697  *)
13698    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13699if test "x$ac_cv_func_shl_load" = xyes; then :
13700  lt_cv_dlopen=shl_load
13701else
13702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13703$as_echo_n "checking for shl_load in -ldld... " >&6; }
13704if ${ac_cv_lib_dld_shl_load+:} false; then :
13705  $as_echo_n "(cached) " >&6
13706else
13707  ac_check_lib_save_LIBS=$LIBS
13708LIBS="-ldld  $LIBS"
13709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710/* end confdefs.h.  */
13711
13712/* Override any GCC internal prototype to avoid an error.
13713   Use char because int might match the return type of a GCC
13714   builtin and then its argument prototype would still apply.  */
13715#ifdef __cplusplus
13716extern "C"
13717#endif
13718char shl_load ();
13719int
13720main ()
13721{
13722return shl_load ();
13723  ;
13724  return 0;
13725}
13726_ACEOF
13727if ac_fn_c_try_link "$LINENO"; then :
13728  ac_cv_lib_dld_shl_load=yes
13729else
13730  ac_cv_lib_dld_shl_load=no
13731fi
13732rm -f core conftest.err conftest.$ac_objext \
13733    conftest$ac_exeext conftest.$ac_ext
13734LIBS=$ac_check_lib_save_LIBS
13735fi
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13737$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13738if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13739  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13740else
13741  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13742if test "x$ac_cv_func_dlopen" = xyes; then :
13743  lt_cv_dlopen=dlopen
13744else
13745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13746$as_echo_n "checking for dlopen in -ldl... " >&6; }
13747if ${ac_cv_lib_dl_dlopen+:} false; then :
13748  $as_echo_n "(cached) " >&6
13749else
13750  ac_check_lib_save_LIBS=$LIBS
13751LIBS="-ldl  $LIBS"
13752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753/* end confdefs.h.  */
13754
13755/* Override any GCC internal prototype to avoid an error.
13756   Use char because int might match the return type of a GCC
13757   builtin and then its argument prototype would still apply.  */
13758#ifdef __cplusplus
13759extern "C"
13760#endif
13761char dlopen ();
13762int
13763main ()
13764{
13765return dlopen ();
13766  ;
13767  return 0;
13768}
13769_ACEOF
13770if ac_fn_c_try_link "$LINENO"; then :
13771  ac_cv_lib_dl_dlopen=yes
13772else
13773  ac_cv_lib_dl_dlopen=no
13774fi
13775rm -f core conftest.err conftest.$ac_objext \
13776    conftest$ac_exeext conftest.$ac_ext
13777LIBS=$ac_check_lib_save_LIBS
13778fi
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13780$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13781if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13782  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13783else
13784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13785$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13786if ${ac_cv_lib_svld_dlopen+:} false; then :
13787  $as_echo_n "(cached) " >&6
13788else
13789  ac_check_lib_save_LIBS=$LIBS
13790LIBS="-lsvld  $LIBS"
13791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792/* end confdefs.h.  */
13793
13794/* Override any GCC internal prototype to avoid an error.
13795   Use char because int might match the return type of a GCC
13796   builtin and then its argument prototype would still apply.  */
13797#ifdef __cplusplus
13798extern "C"
13799#endif
13800char dlopen ();
13801int
13802main ()
13803{
13804return dlopen ();
13805  ;
13806  return 0;
13807}
13808_ACEOF
13809if ac_fn_c_try_link "$LINENO"; then :
13810  ac_cv_lib_svld_dlopen=yes
13811else
13812  ac_cv_lib_svld_dlopen=no
13813fi
13814rm -f core conftest.err conftest.$ac_objext \
13815    conftest$ac_exeext conftest.$ac_ext
13816LIBS=$ac_check_lib_save_LIBS
13817fi
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13819$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13820if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13821  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13822else
13823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13824$as_echo_n "checking for dld_link in -ldld... " >&6; }
13825if ${ac_cv_lib_dld_dld_link+:} false; then :
13826  $as_echo_n "(cached) " >&6
13827else
13828  ac_check_lib_save_LIBS=$LIBS
13829LIBS="-ldld  $LIBS"
13830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832
13833/* Override any GCC internal prototype to avoid an error.
13834   Use char because int might match the return type of a GCC
13835   builtin and then its argument prototype would still apply.  */
13836#ifdef __cplusplus
13837extern "C"
13838#endif
13839char dld_link ();
13840int
13841main ()
13842{
13843return dld_link ();
13844  ;
13845  return 0;
13846}
13847_ACEOF
13848if ac_fn_c_try_link "$LINENO"; then :
13849  ac_cv_lib_dld_dld_link=yes
13850else
13851  ac_cv_lib_dld_dld_link=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext \
13854    conftest$ac_exeext conftest.$ac_ext
13855LIBS=$ac_check_lib_save_LIBS
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13858$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13859if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13860  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13861fi
13862
13863
13864fi
13865
13866
13867fi
13868
13869
13870fi
13871
13872
13873fi
13874
13875
13876fi
13877
13878    ;;
13879  esac
13880
13881  if test no = "$lt_cv_dlopen"; then
13882    enable_dlopen=no
13883  else
13884    enable_dlopen=yes
13885  fi
13886
13887  case $lt_cv_dlopen in
13888  dlopen)
13889    save_CPPFLAGS=$CPPFLAGS
13890    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13891
13892    save_LDFLAGS=$LDFLAGS
13893    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13894
13895    save_LIBS=$LIBS
13896    LIBS="$lt_cv_dlopen_libs $LIBS"
13897
13898    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13899$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13900if ${lt_cv_dlopen_self+:} false; then :
13901  $as_echo_n "(cached) " >&6
13902else
13903  	  if test yes = "$cross_compiling"; then :
13904  lt_cv_dlopen_self=cross
13905else
13906  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13907  lt_status=$lt_dlunknown
13908  cat > conftest.$ac_ext <<_LT_EOF
13909#line $LINENO "configure"
13910#include "confdefs.h"
13911
13912#if HAVE_DLFCN_H
13913#include <dlfcn.h>
13914#endif
13915
13916#include <stdio.h>
13917
13918#ifdef RTLD_GLOBAL
13919#  define LT_DLGLOBAL		RTLD_GLOBAL
13920#else
13921#  ifdef DL_GLOBAL
13922#    define LT_DLGLOBAL		DL_GLOBAL
13923#  else
13924#    define LT_DLGLOBAL		0
13925#  endif
13926#endif
13927
13928/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13929   find out it does not work in some platform. */
13930#ifndef LT_DLLAZY_OR_NOW
13931#  ifdef RTLD_LAZY
13932#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13933#  else
13934#    ifdef DL_LAZY
13935#      define LT_DLLAZY_OR_NOW		DL_LAZY
13936#    else
13937#      ifdef RTLD_NOW
13938#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13939#      else
13940#        ifdef DL_NOW
13941#          define LT_DLLAZY_OR_NOW	DL_NOW
13942#        else
13943#          define LT_DLLAZY_OR_NOW	0
13944#        endif
13945#      endif
13946#    endif
13947#  endif
13948#endif
13949
13950/* When -fvisibility=hidden is used, assume the code has been annotated
13951   correspondingly for the symbols needed.  */
13952#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13953int fnord () __attribute__((visibility("default")));
13954#endif
13955
13956int fnord () { return 42; }
13957int main ()
13958{
13959  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13960  int status = $lt_dlunknown;
13961
13962  if (self)
13963    {
13964      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13965      else
13966        {
13967	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13968          else puts (dlerror ());
13969	}
13970      /* dlclose (self); */
13971    }
13972  else
13973    puts (dlerror ());
13974
13975  return status;
13976}
13977_LT_EOF
13978  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13979  (eval $ac_link) 2>&5
13980  ac_status=$?
13981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13982  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13983    (./conftest; exit; ) >&5 2>/dev/null
13984    lt_status=$?
13985    case x$lt_status in
13986      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13987      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13988      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13989    esac
13990  else :
13991    # compilation failed
13992    lt_cv_dlopen_self=no
13993  fi
13994fi
13995rm -fr conftest*
13996
13997
13998fi
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14000$as_echo "$lt_cv_dlopen_self" >&6; }
14001
14002    if test yes = "$lt_cv_dlopen_self"; then
14003      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14004      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14005$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14006if ${lt_cv_dlopen_self_static+:} false; then :
14007  $as_echo_n "(cached) " >&6
14008else
14009  	  if test yes = "$cross_compiling"; then :
14010  lt_cv_dlopen_self_static=cross
14011else
14012  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14013  lt_status=$lt_dlunknown
14014  cat > conftest.$ac_ext <<_LT_EOF
14015#line $LINENO "configure"
14016#include "confdefs.h"
14017
14018#if HAVE_DLFCN_H
14019#include <dlfcn.h>
14020#endif
14021
14022#include <stdio.h>
14023
14024#ifdef RTLD_GLOBAL
14025#  define LT_DLGLOBAL		RTLD_GLOBAL
14026#else
14027#  ifdef DL_GLOBAL
14028#    define LT_DLGLOBAL		DL_GLOBAL
14029#  else
14030#    define LT_DLGLOBAL		0
14031#  endif
14032#endif
14033
14034/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14035   find out it does not work in some platform. */
14036#ifndef LT_DLLAZY_OR_NOW
14037#  ifdef RTLD_LAZY
14038#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14039#  else
14040#    ifdef DL_LAZY
14041#      define LT_DLLAZY_OR_NOW		DL_LAZY
14042#    else
14043#      ifdef RTLD_NOW
14044#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14045#      else
14046#        ifdef DL_NOW
14047#          define LT_DLLAZY_OR_NOW	DL_NOW
14048#        else
14049#          define LT_DLLAZY_OR_NOW	0
14050#        endif
14051#      endif
14052#    endif
14053#  endif
14054#endif
14055
14056/* When -fvisibility=hidden is used, assume the code has been annotated
14057   correspondingly for the symbols needed.  */
14058#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14059int fnord () __attribute__((visibility("default")));
14060#endif
14061
14062int fnord () { return 42; }
14063int main ()
14064{
14065  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14066  int status = $lt_dlunknown;
14067
14068  if (self)
14069    {
14070      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14071      else
14072        {
14073	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14074          else puts (dlerror ());
14075	}
14076      /* dlclose (self); */
14077    }
14078  else
14079    puts (dlerror ());
14080
14081  return status;
14082}
14083_LT_EOF
14084  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14085  (eval $ac_link) 2>&5
14086  ac_status=$?
14087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14089    (./conftest; exit; ) >&5 2>/dev/null
14090    lt_status=$?
14091    case x$lt_status in
14092      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14093      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14094      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14095    esac
14096  else :
14097    # compilation failed
14098    lt_cv_dlopen_self_static=no
14099  fi
14100fi
14101rm -fr conftest*
14102
14103
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14106$as_echo "$lt_cv_dlopen_self_static" >&6; }
14107    fi
14108
14109    CPPFLAGS=$save_CPPFLAGS
14110    LDFLAGS=$save_LDFLAGS
14111    LIBS=$save_LIBS
14112    ;;
14113  esac
14114
14115  case $lt_cv_dlopen_self in
14116  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14117  *) enable_dlopen_self=unknown ;;
14118  esac
14119
14120  case $lt_cv_dlopen_self_static in
14121  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14122  *) enable_dlopen_self_static=unknown ;;
14123  esac
14124fi
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142striplib=
14143old_striplib=
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14145$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14146if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14147  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14148  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14150$as_echo "yes" >&6; }
14151else
14152# FIXME - insert some real tests, host_os isn't really good enough
14153  case $host_os in
14154  darwin*)
14155    if test -n "$STRIP"; then
14156      striplib="$STRIP -x"
14157      old_striplib="$STRIP -S"
14158      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14159$as_echo "yes" >&6; }
14160    else
14161      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162$as_echo "no" >&6; }
14163    fi
14164    ;;
14165  *)
14166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167$as_echo "no" >&6; }
14168    ;;
14169  esac
14170fi
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183  # Report what library types will actually be built
14184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14185$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14187$as_echo "$can_build_shared" >&6; }
14188
14189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14190$as_echo_n "checking whether to build shared libraries... " >&6; }
14191  test no = "$can_build_shared" && enable_shared=no
14192
14193  # On AIX, shared libraries and static libraries use the same namespace, and
14194  # are all built from PIC.
14195  case $host_os in
14196  aix3*)
14197    test yes = "$enable_shared" && enable_static=no
14198    if test -n "$RANLIB"; then
14199      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14200      postinstall_cmds='$RANLIB $lib'
14201    fi
14202    ;;
14203
14204  aix[4-9]*)
14205    if test ia64 != "$host_cpu"; then
14206      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14207      yes,aix,yes) ;;			# shared object as lib.so file only
14208      yes,svr4,*) ;;			# shared object as lib.so archive member only
14209      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14210      esac
14211    fi
14212    ;;
14213  esac
14214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14215$as_echo "$enable_shared" >&6; }
14216
14217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14218$as_echo_n "checking whether to build static libraries... " >&6; }
14219  # Make sure either enable_shared or enable_static is yes.
14220  test yes = "$enable_shared" || enable_static=yes
14221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14222$as_echo "$enable_static" >&6; }
14223
14224
14225
14226
14227fi
14228ac_ext=c
14229ac_cpp='$CPP $CPPFLAGS'
14230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14232ac_compiler_gnu=$ac_cv_c_compiler_gnu
14233
14234CC=$lt_save_CC
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250        ac_config_commands="$ac_config_commands libtool"
14251
14252
14253
14254
14255# Only expand once:
14256
14257
14258		if test -n "$ac_tool_prefix"; then
14259  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14260set dummy ${ac_tool_prefix}windres; ac_word=$2
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14262$as_echo_n "checking for $ac_word... " >&6; }
14263if ${ac_cv_prog_RC+:} false; then :
14264  $as_echo_n "(cached) " >&6
14265else
14266  if test -n "$RC"; then
14267  ac_cv_prog_RC="$RC" # Let the user override the test.
14268else
14269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270for as_dir in $PATH
14271do
14272  IFS=$as_save_IFS
14273  test -z "$as_dir" && as_dir=.
14274    for ac_exec_ext in '' $ac_executable_extensions; do
14275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14276    ac_cv_prog_RC="${ac_tool_prefix}windres"
14277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14278    break 2
14279  fi
14280done
14281  done
14282IFS=$as_save_IFS
14283
14284fi
14285fi
14286RC=$ac_cv_prog_RC
14287if test -n "$RC"; then
14288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14289$as_echo "$RC" >&6; }
14290else
14291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292$as_echo "no" >&6; }
14293fi
14294
14295
14296fi
14297if test -z "$ac_cv_prog_RC"; then
14298  ac_ct_RC=$RC
14299  # Extract the first word of "windres", so it can be a program name with args.
14300set dummy windres; ac_word=$2
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14302$as_echo_n "checking for $ac_word... " >&6; }
14303if ${ac_cv_prog_ac_ct_RC+:} false; then :
14304  $as_echo_n "(cached) " >&6
14305else
14306  if test -n "$ac_ct_RC"; then
14307  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14308else
14309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310for as_dir in $PATH
14311do
14312  IFS=$as_save_IFS
14313  test -z "$as_dir" && as_dir=.
14314    for ac_exec_ext in '' $ac_executable_extensions; do
14315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14316    ac_cv_prog_ac_ct_RC="windres"
14317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14318    break 2
14319  fi
14320done
14321  done
14322IFS=$as_save_IFS
14323
14324fi
14325fi
14326ac_ct_RC=$ac_cv_prog_ac_ct_RC
14327if test -n "$ac_ct_RC"; then
14328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14329$as_echo "$ac_ct_RC" >&6; }
14330else
14331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332$as_echo "no" >&6; }
14333fi
14334
14335  if test "x$ac_ct_RC" = x; then
14336    RC=""
14337  else
14338    case $cross_compiling:$ac_tool_warned in
14339yes:)
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14342ac_tool_warned=yes ;;
14343esac
14344    RC=$ac_ct_RC
14345  fi
14346else
14347  RC="$ac_cv_prog_RC"
14348fi
14349
14350
14351
14352
14353# Source file extension for RC test sources.
14354ac_ext=rc
14355
14356# Object file extension for compiled RC test sources.
14357objext=o
14358objext_RC=$objext
14359
14360# Code to be used in simple compile tests
14361lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14362
14363# Code to be used in simple link tests
14364lt_simple_link_test_code=$lt_simple_compile_test_code
14365
14366# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14367
14368
14369
14370
14371
14372
14373# If no C compiler was specified, use CC.
14374LTCC=${LTCC-"$CC"}
14375
14376# If no C compiler flags were specified, use CFLAGS.
14377LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14378
14379# Allow CC to be a program name with arguments.
14380compiler=$CC
14381
14382
14383# save warnings/boilerplate of simple test code
14384ac_outfile=conftest.$ac_objext
14385echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14386eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14387_lt_compiler_boilerplate=`cat conftest.err`
14388$RM conftest*
14389
14390ac_outfile=conftest.$ac_objext
14391echo "$lt_simple_link_test_code" >conftest.$ac_ext
14392eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14393_lt_linker_boilerplate=`cat conftest.err`
14394$RM -r conftest*
14395
14396
14397# Allow CC to be a program name with arguments.
14398lt_save_CC=$CC
14399lt_save_CFLAGS=$CFLAGS
14400lt_save_GCC=$GCC
14401GCC=
14402CC=${RC-"windres"}
14403CFLAGS=
14404compiler=$CC
14405compiler_RC=$CC
14406func_cc_basename $compiler
14407cc_basename=$func_cc_basename_result
14408
14409lt_cv_prog_compiler_c_o_RC=yes
14410
14411if test -n "$compiler"; then
14412  :
14413
14414
14415
14416fi
14417
14418GCC=$lt_save_GCC
14419ac_ext=c
14420ac_cpp='$CPP $CPPFLAGS'
14421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14423ac_compiler_gnu=$ac_cv_c_compiler_gnu
14424
14425CC=$lt_save_CC
14426CFLAGS=$lt_save_CFLAGS
14427
14428
14429
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14431$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14432if ${ac_cv_c_const+:} false; then :
14433  $as_echo_n "(cached) " >&6
14434else
14435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436/* end confdefs.h.  */
14437
14438int
14439main ()
14440{
14441
14442#ifndef __cplusplus
14443  /* Ultrix mips cc rejects this sort of thing.  */
14444  typedef int charset[2];
14445  const charset cs = { 0, 0 };
14446  /* SunOS 4.1.1 cc rejects this.  */
14447  char const *const *pcpcc;
14448  char **ppc;
14449  /* NEC SVR4.0.2 mips cc rejects this.  */
14450  struct point {int x, y;};
14451  static struct point const zero = {0,0};
14452  /* AIX XL C 1.02.0.0 rejects this.
14453     It does not let you subtract one const X* pointer from another in
14454     an arm of an if-expression whose if-part is not a constant
14455     expression */
14456  const char *g = "string";
14457  pcpcc = &g + (g ? g-g : 0);
14458  /* HPUX 7.0 cc rejects these. */
14459  ++pcpcc;
14460  ppc = (char**) pcpcc;
14461  pcpcc = (char const *const *) ppc;
14462  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14463    char tx;
14464    char *t = &tx;
14465    char const *s = 0 ? (char *) 0 : (char const *) 0;
14466
14467    *t++ = 0;
14468    if (s) return 0;
14469  }
14470  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14471    int x[] = {25, 17};
14472    const int *foo = &x[0];
14473    ++foo;
14474  }
14475  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14476    typedef const int *iptr;
14477    iptr p = 0;
14478    ++p;
14479  }
14480  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14481       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14482    struct s { int j; const int *ap[3]; } bx;
14483    struct s *b = &bx; b->j = 5;
14484  }
14485  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14486    const int foo = 10;
14487    if (!foo) return 0;
14488  }
14489  return !cs[0] && !zero.x;
14490#endif
14491
14492  ;
14493  return 0;
14494}
14495_ACEOF
14496if ac_fn_c_try_compile "$LINENO"; then :
14497  ac_cv_c_const=yes
14498else
14499  ac_cv_c_const=no
14500fi
14501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502fi
14503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14504$as_echo "$ac_cv_c_const" >&6; }
14505if test $ac_cv_c_const = no; then
14506
14507$as_echo "#define const /**/" >>confdefs.h
14508
14509fi
14510
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14512$as_echo_n "checking for inline... " >&6; }
14513if ${ac_cv_c_inline+:} false; then :
14514  $as_echo_n "(cached) " >&6
14515else
14516  ac_cv_c_inline=no
14517for ac_kw in inline __inline__ __inline; do
14518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519/* end confdefs.h.  */
14520#ifndef __cplusplus
14521typedef int foo_t;
14522static $ac_kw foo_t static_foo () {return 0; }
14523$ac_kw foo_t foo () {return 0; }
14524#endif
14525
14526_ACEOF
14527if ac_fn_c_try_compile "$LINENO"; then :
14528  ac_cv_c_inline=$ac_kw
14529fi
14530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14531  test "$ac_cv_c_inline" != no && break
14532done
14533
14534fi
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14536$as_echo "$ac_cv_c_inline" >&6; }
14537
14538case $ac_cv_c_inline in
14539  inline | yes) ;;
14540  *)
14541    case $ac_cv_c_inline in
14542      no) ac_val=;;
14543      *) ac_val=$ac_cv_c_inline;;
14544    esac
14545    cat >>confdefs.h <<_ACEOF
14546#ifndef __cplusplus
14547#define inline $ac_val
14548#endif
14549_ACEOF
14550    ;;
14551esac
14552
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14554$as_echo_n "checking for working volatile... " >&6; }
14555if ${ac_cv_c_volatile+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559/* end confdefs.h.  */
14560
14561int
14562main ()
14563{
14564
14565volatile int x;
14566int * volatile y = (int *) 0;
14567return !x && !y;
14568  ;
14569  return 0;
14570}
14571_ACEOF
14572if ac_fn_c_try_compile "$LINENO"; then :
14573  ac_cv_c_volatile=yes
14574else
14575  ac_cv_c_volatile=no
14576fi
14577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578fi
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14580$as_echo "$ac_cv_c_volatile" >&6; }
14581if test $ac_cv_c_volatile = no; then
14582
14583$as_echo "#define volatile /**/" >>confdefs.h
14584
14585fi
14586
14587ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14588if test "x$ac_cv_type_off_t" = xyes; then :
14589
14590else
14591
14592cat >>confdefs.h <<_ACEOF
14593#define off_t long int
14594_ACEOF
14595
14596fi
14597
14598ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14599if test "x$ac_cv_type_pid_t" = xyes; then :
14600
14601else
14602
14603cat >>confdefs.h <<_ACEOF
14604#define pid_t int
14605_ACEOF
14606
14607fi
14608
14609ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14610if test "x$ac_cv_type_size_t" = xyes; then :
14611
14612else
14613
14614cat >>confdefs.h <<_ACEOF
14615#define size_t unsigned int
14616_ACEOF
14617
14618fi
14619
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14621$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14622if ${ac_cv_type_uid_t+:} false; then :
14623  $as_echo_n "(cached) " >&6
14624else
14625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626/* end confdefs.h.  */
14627#include <sys/types.h>
14628
14629_ACEOF
14630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14631  $EGREP "uid_t" >/dev/null 2>&1; then :
14632  ac_cv_type_uid_t=yes
14633else
14634  ac_cv_type_uid_t=no
14635fi
14636rm -f conftest*
14637
14638fi
14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14640$as_echo "$ac_cv_type_uid_t" >&6; }
14641if test $ac_cv_type_uid_t = no; then
14642
14643$as_echo "#define uid_t int" >>confdefs.h
14644
14645
14646$as_echo "#define gid_t int" >>confdefs.h
14647
14648fi
14649
14650ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
14651case $ac_cv_c_int8_t in #(
14652  no|yes) ;; #(
14653  *)
14654
14655cat >>confdefs.h <<_ACEOF
14656#define int8_t $ac_cv_c_int8_t
14657_ACEOF
14658;;
14659esac
14660
14661ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
14662case $ac_cv_c_int16_t in #(
14663  no|yes) ;; #(
14664  *)
14665
14666cat >>confdefs.h <<_ACEOF
14667#define int16_t $ac_cv_c_int16_t
14668_ACEOF
14669;;
14670esac
14671
14672ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14673case $ac_cv_c_int32_t in #(
14674  no|yes) ;; #(
14675  *)
14676
14677cat >>confdefs.h <<_ACEOF
14678#define int32_t $ac_cv_c_int32_t
14679_ACEOF
14680;;
14681esac
14682
14683ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14684case $ac_cv_c_int64_t in #(
14685  no|yes) ;; #(
14686  *)
14687
14688cat >>confdefs.h <<_ACEOF
14689#define int64_t $ac_cv_c_int64_t
14690_ACEOF
14691;;
14692esac
14693
14694ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14695case $ac_cv_c_uint8_t in #(
14696  no|yes) ;; #(
14697  *)
14698
14699$as_echo "#define _UINT8_T 1" >>confdefs.h
14700
14701
14702cat >>confdefs.h <<_ACEOF
14703#define uint8_t $ac_cv_c_uint8_t
14704_ACEOF
14705;;
14706  esac
14707
14708ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14709case $ac_cv_c_uint16_t in #(
14710  no|yes) ;; #(
14711  *)
14712
14713
14714cat >>confdefs.h <<_ACEOF
14715#define uint16_t $ac_cv_c_uint16_t
14716_ACEOF
14717;;
14718  esac
14719
14720ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14721case $ac_cv_c_uint32_t in #(
14722  no|yes) ;; #(
14723  *)
14724
14725$as_echo "#define _UINT32_T 1" >>confdefs.h
14726
14727
14728cat >>confdefs.h <<_ACEOF
14729#define uint32_t $ac_cv_c_uint32_t
14730_ACEOF
14731;;
14732  esac
14733
14734ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14735case $ac_cv_c_uint64_t in #(
14736  no|yes) ;; #(
14737  *)
14738
14739$as_echo "#define _UINT64_T 1" >>confdefs.h
14740
14741
14742cat >>confdefs.h <<_ACEOF
14743#define uint64_t $ac_cv_c_uint64_t
14744_ACEOF
14745;;
14746  esac
14747
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14749$as_echo_n "checking return type of signal handlers... " >&6; }
14750if ${ac_cv_type_signal+:} false; then :
14751  $as_echo_n "(cached) " >&6
14752else
14753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754/* end confdefs.h.  */
14755#include <sys/types.h>
14756#include <signal.h>
14757
14758int
14759main ()
14760{
14761return *(signal (0, 0)) (0) == 1;
14762  ;
14763  return 0;
14764}
14765_ACEOF
14766if ac_fn_c_try_compile "$LINENO"; then :
14767  ac_cv_type_signal=int
14768else
14769  ac_cv_type_signal=void
14770fi
14771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14772fi
14773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14774$as_echo "$ac_cv_type_signal" >&6; }
14775
14776cat >>confdefs.h <<_ACEOF
14777#define RETSIGTYPE $ac_cv_type_signal
14778_ACEOF
14779
14780
14781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
14782$as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
14783if ${ax_cv_cpp_vararg_macro_iso+:} false; then :
14784  $as_echo_n "(cached) " >&6
14785else
14786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787/* end confdefs.h.  */
14788
14789#define macro(a, ...) func(a, __VA_ARGS__)
14790int func(int a, int b, int c);
14791
14792int
14793main ()
14794{
14795
14796int i = macro(1, 2, 3);
14797
14798
14799  ;
14800  return 0;
14801}
14802_ACEOF
14803if ac_fn_c_try_compile "$LINENO"; then :
14804  ax_cv_cpp_vararg_macro_iso=yes
14805else
14806  ax_cv_cpp_vararg_macro_iso=no
14807
14808fi
14809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810
14811fi
14812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
14813$as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
14814	if test "x$ax_cv_cpp_vararg_macro_iso" = xyes; then :
14815
14816$as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
14817
14818
14819fi
14820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
14821$as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
14822if ${ax_cv_cpp_vararg_macro_gcc+:} false; then :
14823  $as_echo_n "(cached) " >&6
14824else
14825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826/* end confdefs.h.  */
14827
14828#define macro(a, b...) func(a, b)
14829int func(int a, int b, int c);
14830
14831int
14832main ()
14833{
14834
14835int i = macro(1, 2, 3);
14836
14837
14838  ;
14839  return 0;
14840}
14841_ACEOF
14842if ac_fn_c_try_compile "$LINENO"; then :
14843  ax_cv_cpp_vararg_macro_gcc=yes
14844else
14845  ax_cv_cpp_vararg_macro_gcc=no
14846
14847fi
14848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849
14850fi
14851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
14852$as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
14853	if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes; then :
14854
14855$as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
14856
14857
14858fi
14859
14860	ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14861#include <sys/types.h>
14862#ifdef _WIN32
14863#include <ws2tcpip.h>
14864#else
14865#include <sys/socket.h>
14866#endif
14867
14868
14869"
14870if test "x$ac_cv_type_socklen_t" = xyes; then :
14871
14872else
14873
14874						{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14875$as_echo_n "checking for socklen_t equivalent... " >&6; }
14876if ${ax_cv_socklen_t_equiv+:} false; then :
14877  $as_echo_n "(cached) " >&6
14878else
14879
14880					#AS_CASE is not supported on <autoconf-2.60
14881					case "${host}" in
14882					*-mingw*) ax_cv_socklen_t_equiv=int ;;
14883					*)
14884						# Systems have either "struct sockaddr *" or
14885						# "void *" as the second argument to getpeername
14886						for arg2 in "struct sockaddr" void; do
14887							for t in int size_t unsigned long "unsigned long"; do
14888								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889/* end confdefs.h.  */
14890
14891#include <sys/types.h>
14892#include <sys/socket.h>
14893int getpeername (int, $arg2 *, $t *);
14894
14895int
14896main ()
14897{
14898
14899$t len;
14900getpeername(0,0,&len);
14901
14902
14903  ;
14904  return 0;
14905}
14906_ACEOF
14907if ac_fn_c_try_compile "$LINENO"; then :
14908  ax_cv_socklen_t_equiv="$t"; break
14909
14910fi
14911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912							done
14913							test -n "$ax_cv_socklen_t_equiv" && break
14914						done
14915						;;
14916					esac
14917
14918				if ${ax_cv_socklen_t_equiv:+false} :; then :
14919  as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14920else
14921
14922cat >>confdefs.h <<_ACEOF
14923#define socklen_t $ax_cv_socklen_t_equiv
14924_ACEOF
14925
14926
14927fi
14928
14929fi
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14931$as_echo "$ax_cv_socklen_t_equiv" >&6; }
14932
14933fi
14934
14935
14936
14937		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14938$as_echo_n "checking for C compiler empty array size... " >&6; }
14939if ${ax_cv_c_empty_array+:} false; then :
14940  $as_echo_n "(cached) " >&6
14941else
14942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h.  */
14944
14945int
14946main ()
14947{
14948
14949struct { int foo; int bar[0]; } mystruct;
14950
14951
14952  ;
14953  return 0;
14954}
14955_ACEOF
14956if ac_fn_c_try_compile "$LINENO"; then :
14957  ax_cv_c_empty_array=0
14958else
14959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961
14962int
14963main ()
14964{
14965
14966struct { int foo; int bar[]; } mystruct;
14967
14968
14969  ;
14970  return 0;
14971}
14972_ACEOF
14973if ac_fn_c_try_compile "$LINENO"; then :
14974  ax_cv_c_empty_array=
14975else
14976  as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
14977
14978fi
14979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14980
14981fi
14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983
14984fi
14985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14986$as_echo "$ax_cv_c_empty_array" >&6; }
14987cat >>confdefs.h <<_ACEOF
14988#define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14989_ACEOF
14990
14991# The cast to long int works around a bug in the HP C Compiler
14992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14994# This bug is HP SR number 8606223364.
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14996$as_echo_n "checking size of unsigned int... " >&6; }
14997if ${ac_cv_sizeof_unsigned_int+:} false; then :
14998  $as_echo_n "(cached) " >&6
14999else
15000  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
15001
15002else
15003  if test "$ac_cv_type_unsigned_int" = yes; then
15004     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15006as_fn_error 77 "cannot compute sizeof (unsigned int)
15007See \`config.log' for more details" "$LINENO" 5; }
15008   else
15009     ac_cv_sizeof_unsigned_int=0
15010   fi
15011fi
15012
15013fi
15014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15015$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
15016
15017
15018
15019cat >>confdefs.h <<_ACEOF
15020#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
15021_ACEOF
15022
15023
15024# The cast to long int works around a bug in the HP C Compiler
15025# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15026# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15027# This bug is HP SR number 8606223364.
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15029$as_echo_n "checking size of unsigned long... " >&6; }
15030if ${ac_cv_sizeof_unsigned_long+:} false; then :
15031  $as_echo_n "(cached) " >&6
15032else
15033  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
15034
15035else
15036  if test "$ac_cv_type_unsigned_long" = yes; then
15037     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15039as_fn_error 77 "cannot compute sizeof (unsigned long)
15040See \`config.log' for more details" "$LINENO" 5; }
15041   else
15042     ac_cv_sizeof_unsigned_long=0
15043   fi
15044fi
15045
15046fi
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15048$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
15049
15050
15051
15052cat >>confdefs.h <<_ACEOF
15053#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
15054_ACEOF
15055
15056
15057for ac_header in  \
15058	stdio.h stdarg.h limits.h \
15059	time.h errno.h fcntl.h io.h direct.h \
15060	ctype.h sys/types.h sys/socket.h \
15061	signal.h unistd.h dlfcn.h \
15062	netinet/in.h netinet/in_systm.h \
15063	netinet/tcp.h arpa/inet.h netdb.h \
15064	windows.h winsock2.h ws2tcpip.h \
15065	versionhelpers.h \
15066
15067do :
15068  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15069ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15070if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15071  cat >>confdefs.h <<_ACEOF
15072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15073_ACEOF
15074
15075fi
15076
15077done
15078
15079for ac_header in  \
15080	sys/time.h sys/ioctl.h sys/stat.h \
15081	sys/mman.h sys/file.h sys/wait.h \
15082	unistd.h signal.h libgen.h stropts.h \
15083	syslog.h pwd.h grp.h \
15084	sys/sockio.h sys/uio.h linux/sockios.h \
15085	linux/types.h linux/errqueue.h poll.h sys/epoll.h err.h \
15086
15087do :
15088  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15089ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15091  cat >>confdefs.h <<_ACEOF
15092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15093_ACEOF
15094
15095fi
15096
15097done
15098
15099
15100SOCKET_INCLUDES="
15101#ifdef HAVE_STDLIB_H
15102#include <stdlib.h>
15103#endif
15104#ifdef HAVE_SYS_TYPES_H
15105#include <sys/types.h>
15106#endif
15107#ifdef HAVE_SYS_SOCKET_H
15108#include <sys/socket.h>
15109#endif
15110#ifdef HAVE_NET_IF_H
15111#include <net/if.h>
15112#endif
15113#ifdef HAVE_NETINET_IN_H
15114#include <netinet/in.h>
15115#endif
15116#ifdef HAVE_WINDOWS_H
15117#include <windows.h>
15118#endif
15119#ifdef HAVE_WINSOCK2_H
15120#include <winsock2.h>
15121#endif
15122#ifdef HAVE_WS2TCPIP_H
15123#include <ws2tcpip.h>
15124#endif
15125#ifdef HAVE_NETINET_IN_SYSTM_H
15126#include <netinet/in_systm.h>
15127#endif
15128#ifdef HAVE_NETINET_IP_H
15129#include <netinet/ip.h>
15130#endif
15131"
15132
15133for ac_header in net/if.h netinet/ip.h resolv.h sys/un.h net/if_utun.h sys/kern_control.h
15134do :
15135  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15136ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
15137
15138"
15139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15140  cat >>confdefs.h <<_ACEOF
15141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15142_ACEOF
15143
15144fi
15145
15146done
15147
15148
15149ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
15150
15151"
15152if test "x$ac_cv_type_in_addr_t" = xyes; then :
15153
15154cat >>confdefs.h <<_ACEOF
15155#define HAVE_IN_ADDR_T 1
15156_ACEOF
15157
15158
15159else
15160
15161$as_echo "#define in_addr_t uint32_t" >>confdefs.h
15162
15163fi
15164
15165ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "${SOCKET_INCLUDES}
15166
15167"
15168if test "x$ac_cv_type_in_port_t" = xyes; then :
15169
15170cat >>confdefs.h <<_ACEOF
15171#define HAVE_IN_PORT_T 1
15172_ACEOF
15173
15174
15175else
15176
15177$as_echo "#define in_port_t uint16_t" >>confdefs.h
15178
15179fi
15180
15181ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
15182
15183"
15184if test "x$ac_cv_type_struct_iphdr" = xyes; then :
15185
15186$as_echo "#define HAVE_IPHDR 1" >>confdefs.h
15187
15188fi
15189
15190ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
15191
15192"
15193if test "x$ac_cv_type_struct_msghdr" = xyes; then :
15194
15195$as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
15196
15197fi
15198
15199ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
15200
15201"
15202if test "x$ac_cv_type_struct_cmsghdr" = xyes; then :
15203
15204$as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
15205
15206fi
15207
15208ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
15209
15210"
15211if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
15212
15213$as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
15214
15215fi
15216
15217ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "${SOCKET_INCLUDES}
15218
15219"
15220if test "x$ac_cv_type_sa_family_t" = xyes; then :
15221
15222$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
15223
15224fi
15225
15226ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "${SOCKET_INCLUDES}
15227
15228"
15229if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
15230
15231$as_echo "#define HAVE_IPI_SPEC_DST 1" >>confdefs.h
15232
15233fi
15234
15235ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
15236
15237"
15238if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15239
15240else
15241  as_fn_error $? "struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
15242fi
15243
15244ac_fn_c_check_decl "$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
15245
15246"
15247if test "x$ac_cv_have_decl_SO_MARK" = xyes; then :
15248  ac_have_decl=1
15249else
15250  ac_have_decl=0
15251fi
15252
15253cat >>confdefs.h <<_ACEOF
15254#define HAVE_DECL_SO_MARK $ac_have_decl
15255_ACEOF
15256
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking anonymous union support..." >&5
15258$as_echo "$as_me: checking anonymous union support..." >&6;}
15259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260/* end confdefs.h.  */
15261
15262			struct mystruct {
15263			  union {
15264			    int m1;
15265			    char m2;
15266			  };
15267			};
15268
15269int
15270main ()
15271{
15272
15273			struct mystruct s;
15274			s.m1 = 1; s.m2 = 2;
15275
15276
15277  ;
15278  return 0;
15279}
15280_ACEOF
15281if ac_fn_c_try_compile "$LINENO"; then :
15282
15283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15284$as_echo "yes" >&6; }
15285
15286$as_echo "#define HAVE_ANONYMOUS_UNION_SUPPORT /**/" >>confdefs.h
15287
15288
15289else
15290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15291$as_echo "no" >&6; }
15292
15293fi
15294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15295
15296saved_LDFLAGS="$LDFLAGS"
15297LDFLAGS="$LDFLAGS -Wl,--wrap=exit"
15298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker supports --wrap" >&5
15299$as_echo_n "checking linker supports --wrap... " >&6; }
15300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301/* end confdefs.h.  */
15302
15303			void exit(int);
15304			void __real_exit(int);
15305			void __wrap_exit(int i) {
15306				__real_exit(i);
15307			}
15308
15309int
15310main ()
15311{
15312
15313			exit(0);
15314
15315
15316  ;
15317  return 0;
15318}
15319_ACEOF
15320if ac_fn_c_try_link "$LINENO"; then :
15321
15322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15323$as_echo "yes" >&6; }
15324		have_ld_wrap_support=yes
15325
15326else
15327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15328$as_echo "no" >&6; }
15329fi
15330rm -f core conftest.err conftest.$ac_objext \
15331    conftest$ac_exeext conftest.$ac_ext
15332LDFLAGS="$saved_LDFLAGS"
15333
15334ac_fn_c_check_decl "$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
15335		#ifdef HAVE_SIGNAL_H
15336		#include <signal.h>
15337		#endif
15338
15339
15340"
15341if test "x$ac_cv_have_decl_SIGHUP" = xyes; then :
15342  ac_have_decl=1
15343else
15344  ac_have_decl=0
15345fi
15346
15347cat >>confdefs.h <<_ACEOF
15348#define HAVE_DECL_SIGHUP $ac_have_decl
15349_ACEOF
15350if test $ac_have_decl = 1; then :
15351
15352else
15353
15354$as_echo "#define SIGHUP 1" >>confdefs.h
15355
15356fi
15357
15358ac_fn_c_check_decl "$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
15359		#ifdef HAVE_SIGNAL_H
15360		#include <signal.h>
15361		#endif
15362
15363
15364"
15365if test "x$ac_cv_have_decl_SIGINT" = xyes; then :
15366  ac_have_decl=1
15367else
15368  ac_have_decl=0
15369fi
15370
15371cat >>confdefs.h <<_ACEOF
15372#define HAVE_DECL_SIGINT $ac_have_decl
15373_ACEOF
15374if test $ac_have_decl = 1; then :
15375
15376else
15377
15378$as_echo "#define SIGINT 2" >>confdefs.h
15379
15380fi
15381
15382ac_fn_c_check_decl "$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
15383		#ifdef HAVE_SIGNAL_H
15384		#include <signal.h>
15385		#endif
15386
15387
15388"
15389if test "x$ac_cv_have_decl_SIGUSR1" = xyes; then :
15390  ac_have_decl=1
15391else
15392  ac_have_decl=0
15393fi
15394
15395cat >>confdefs.h <<_ACEOF
15396#define HAVE_DECL_SIGUSR1 $ac_have_decl
15397_ACEOF
15398if test $ac_have_decl = 1; then :
15399
15400else
15401
15402$as_echo "#define SIGUSR1 10" >>confdefs.h
15403
15404fi
15405
15406ac_fn_c_check_decl "$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
15407		#ifdef HAVE_SIGNAL_H
15408		#include <signal.h>
15409		#endif
15410
15411
15412"
15413if test "x$ac_cv_have_decl_SIGUSR2" = xyes; then :
15414  ac_have_decl=1
15415else
15416  ac_have_decl=0
15417fi
15418
15419cat >>confdefs.h <<_ACEOF
15420#define HAVE_DECL_SIGUSR2 $ac_have_decl
15421_ACEOF
15422if test $ac_have_decl = 1; then :
15423
15424else
15425
15426$as_echo "#define SIGUSR2 12" >>confdefs.h
15427
15428fi
15429
15430ac_fn_c_check_decl "$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
15431		#ifdef HAVE_SIGNAL_H
15432		#include <signal.h>
15433		#endif
15434
15435
15436"
15437if test "x$ac_cv_have_decl_SIGTERM" = xyes; then :
15438  ac_have_decl=1
15439else
15440  ac_have_decl=0
15441fi
15442
15443cat >>confdefs.h <<_ACEOF
15444#define HAVE_DECL_SIGTERM $ac_have_decl
15445_ACEOF
15446if test $ac_have_decl = 1; then :
15447
15448else
15449
15450$as_echo "#define SIGTERM 15" >>confdefs.h
15451
15452fi
15453
15454
15455for ac_header in vfork.h
15456do :
15457  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15458if test "x$ac_cv_header_vfork_h" = xyes; then :
15459  cat >>confdefs.h <<_ACEOF
15460#define HAVE_VFORK_H 1
15461_ACEOF
15462
15463fi
15464
15465done
15466
15467for ac_func in fork vfork
15468do :
15469  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15470ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15471if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15472  cat >>confdefs.h <<_ACEOF
15473#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15474_ACEOF
15475
15476fi
15477done
15478
15479if test "x$ac_cv_func_fork" = xyes; then
15480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15481$as_echo_n "checking for working fork... " >&6; }
15482if ${ac_cv_func_fork_works+:} false; then :
15483  $as_echo_n "(cached) " >&6
15484else
15485  if test "$cross_compiling" = yes; then :
15486  ac_cv_func_fork_works=cross
15487else
15488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489/* end confdefs.h.  */
15490$ac_includes_default
15491int
15492main ()
15493{
15494
15495	  /* By Ruediger Kuhlmann. */
15496	  return fork () < 0;
15497
15498  ;
15499  return 0;
15500}
15501_ACEOF
15502if ac_fn_c_try_run "$LINENO"; then :
15503  ac_cv_func_fork_works=yes
15504else
15505  ac_cv_func_fork_works=no
15506fi
15507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15508  conftest.$ac_objext conftest.beam conftest.$ac_ext
15509fi
15510
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15513$as_echo "$ac_cv_func_fork_works" >&6; }
15514
15515else
15516  ac_cv_func_fork_works=$ac_cv_func_fork
15517fi
15518if test "x$ac_cv_func_fork_works" = xcross; then
15519  case $host in
15520    *-*-amigaos* | *-*-msdosdjgpp*)
15521      # Override, as these systems have only a dummy fork() stub
15522      ac_cv_func_fork_works=no
15523      ;;
15524    *)
15525      ac_cv_func_fork_works=yes
15526      ;;
15527  esac
15528  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15529$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15530fi
15531ac_cv_func_vfork_works=$ac_cv_func_vfork
15532if test "x$ac_cv_func_vfork" = xyes; then
15533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15534$as_echo_n "checking for working vfork... " >&6; }
15535if ${ac_cv_func_vfork_works+:} false; then :
15536  $as_echo_n "(cached) " >&6
15537else
15538  if test "$cross_compiling" = yes; then :
15539  ac_cv_func_vfork_works=cross
15540else
15541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542/* end confdefs.h.  */
15543/* Thanks to Paul Eggert for this test.  */
15544$ac_includes_default
15545#include <sys/wait.h>
15546#ifdef HAVE_VFORK_H
15547# include <vfork.h>
15548#endif
15549/* On some sparc systems, changes by the child to local and incoming
15550   argument registers are propagated back to the parent.  The compiler
15551   is told about this with #include <vfork.h>, but some compilers
15552   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15553   static variable whose address is put into a register that is
15554   clobbered by the vfork.  */
15555static void
15556#ifdef __cplusplus
15557sparc_address_test (int arg)
15558# else
15559sparc_address_test (arg) int arg;
15560#endif
15561{
15562  static pid_t child;
15563  if (!child) {
15564    child = vfork ();
15565    if (child < 0) {
15566      perror ("vfork");
15567      _exit(2);
15568    }
15569    if (!child) {
15570      arg = getpid();
15571      write(-1, "", 0);
15572      _exit (arg);
15573    }
15574  }
15575}
15576
15577int
15578main ()
15579{
15580  pid_t parent = getpid ();
15581  pid_t child;
15582
15583  sparc_address_test (0);
15584
15585  child = vfork ();
15586
15587  if (child == 0) {
15588    /* Here is another test for sparc vfork register problems.  This
15589       test uses lots of local variables, at least as many local
15590       variables as main has allocated so far including compiler
15591       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15592       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15593       reuse the register of parent for one of the local variables,
15594       since it will think that parent can't possibly be used any more
15595       in this routine.  Assigning to the local variable will thus
15596       munge parent in the parent process.  */
15597    pid_t
15598      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15599      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15600    /* Convince the compiler that p..p7 are live; otherwise, it might
15601       use the same hardware register for all 8 local variables.  */
15602    if (p != p1 || p != p2 || p != p3 || p != p4
15603	|| p != p5 || p != p6 || p != p7)
15604      _exit(1);
15605
15606    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15607       from child file descriptors.  If the child closes a descriptor
15608       before it execs or exits, this munges the parent's descriptor
15609       as well.  Test for this by closing stdout in the child.  */
15610    _exit(close(fileno(stdout)) != 0);
15611  } else {
15612    int status;
15613    struct stat st;
15614
15615    while (wait(&status) != child)
15616      ;
15617    return (
15618	 /* Was there some problem with vforking?  */
15619	 child < 0
15620
15621	 /* Did the child fail?  (This shouldn't happen.)  */
15622	 || status
15623
15624	 /* Did the vfork/compiler bug occur?  */
15625	 || parent != getpid()
15626
15627	 /* Did the file descriptor bug occur?  */
15628	 || fstat(fileno(stdout), &st) != 0
15629	 );
15630  }
15631}
15632_ACEOF
15633if ac_fn_c_try_run "$LINENO"; then :
15634  ac_cv_func_vfork_works=yes
15635else
15636  ac_cv_func_vfork_works=no
15637fi
15638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15639  conftest.$ac_objext conftest.beam conftest.$ac_ext
15640fi
15641
15642fi
15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15644$as_echo "$ac_cv_func_vfork_works" >&6; }
15645
15646fi;
15647if test "x$ac_cv_func_fork_works" = xcross; then
15648  ac_cv_func_vfork_works=$ac_cv_func_vfork
15649  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15650$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15651fi
15652
15653if test "x$ac_cv_func_vfork_works" = xyes; then
15654
15655$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15656
15657else
15658
15659$as_echo "#define vfork fork" >>confdefs.h
15660
15661fi
15662if test "x$ac_cv_func_fork_works" = xyes; then
15663
15664$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15665
15666fi
15667
15668
15669for ac_func in  \
15670	daemon chroot getpwnam setuid nice system getpid dup dup2 \
15671	getpass syslog openlog mlockall getgrnam setgid \
15672	setgroups stat flock readv writev time gettimeofday \
15673	ctime memset vsnprintf strdup \
15674	setsid chdir putenv getpeername unlink \
15675	chsize ftruncate execve getpeereid umask basename dirname access \
15676	epoll_create strsep \
15677
15678do :
15679  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15680ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15681if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15682  cat >>confdefs.h <<_ACEOF
15683#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15684_ACEOF
15685
15686fi
15687done
15688
15689
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15691$as_echo_n "checking for dlopen in -ldl... " >&6; }
15692if ${ac_cv_lib_dl_dlopen+:} false; then :
15693  $as_echo_n "(cached) " >&6
15694else
15695  ac_check_lib_save_LIBS=$LIBS
15696LIBS="-ldl  $LIBS"
15697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698/* end confdefs.h.  */
15699
15700/* Override any GCC internal prototype to avoid an error.
15701   Use char because int might match the return type of a GCC
15702   builtin and then its argument prototype would still apply.  */
15703#ifdef __cplusplus
15704extern "C"
15705#endif
15706char dlopen ();
15707int
15708main ()
15709{
15710return dlopen ();
15711  ;
15712  return 0;
15713}
15714_ACEOF
15715if ac_fn_c_try_link "$LINENO"; then :
15716  ac_cv_lib_dl_dlopen=yes
15717else
15718  ac_cv_lib_dl_dlopen=no
15719fi
15720rm -f core conftest.err conftest.$ac_objext \
15721    conftest$ac_exeext conftest.$ac_ext
15722LIBS=$ac_check_lib_save_LIBS
15723fi
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15725$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15726if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15727  DL_LIBS="-ldl"
15728
15729fi
15730
15731
15732
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
15734$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
15735if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
15736  $as_echo_n "(cached) " >&6
15737else
15738  ac_check_lib_save_LIBS=$LIBS
15739LIBS="-lnsl  $LIBS"
15740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15741/* end confdefs.h.  */
15742
15743/* Override any GCC internal prototype to avoid an error.
15744   Use char because int might match the return type of a GCC
15745   builtin and then its argument prototype would still apply.  */
15746#ifdef __cplusplus
15747extern "C"
15748#endif
15749char inet_ntoa ();
15750int
15751main ()
15752{
15753return inet_ntoa ();
15754  ;
15755  return 0;
15756}
15757_ACEOF
15758if ac_fn_c_try_link "$LINENO"; then :
15759  ac_cv_lib_nsl_inet_ntoa=yes
15760else
15761  ac_cv_lib_nsl_inet_ntoa=no
15762fi
15763rm -f core conftest.err conftest.$ac_objext \
15764    conftest$ac_exeext conftest.$ac_ext
15765LIBS=$ac_check_lib_save_LIBS
15766fi
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
15768$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
15769if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
15770  SOCKETS_LIBS="${SOCKETS_LIBS} -lnsl"
15771
15772fi
15773
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15775$as_echo_n "checking for socket in -lsocket... " >&6; }
15776if ${ac_cv_lib_socket_socket+:} false; then :
15777  $as_echo_n "(cached) " >&6
15778else
15779  ac_check_lib_save_LIBS=$LIBS
15780LIBS="-lsocket  $LIBS"
15781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782/* end confdefs.h.  */
15783
15784/* Override any GCC internal prototype to avoid an error.
15785   Use char because int might match the return type of a GCC
15786   builtin and then its argument prototype would still apply.  */
15787#ifdef __cplusplus
15788extern "C"
15789#endif
15790char socket ();
15791int
15792main ()
15793{
15794return socket ();
15795  ;
15796  return 0;
15797}
15798_ACEOF
15799if ac_fn_c_try_link "$LINENO"; then :
15800  ac_cv_lib_socket_socket=yes
15801else
15802  ac_cv_lib_socket_socket=no
15803fi
15804rm -f core conftest.err conftest.$ac_objext \
15805    conftest$ac_exeext conftest.$ac_ext
15806LIBS=$ac_check_lib_save_LIBS
15807fi
15808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15809$as_echo "$ac_cv_lib_socket_socket" >&6; }
15810if test "x$ac_cv_lib_socket_socket" = xyes; then :
15811  SOCKETS_LIBS="${SOCKETS_LIBS} -lsocket"
15812
15813fi
15814
15815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
15816$as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
15817if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
15818  $as_echo_n "(cached) " >&6
15819else
15820  ac_check_lib_save_LIBS=$LIBS
15821LIBS="-lresolv  $LIBS"
15822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h.  */
15824
15825/* Override any GCC internal prototype to avoid an error.
15826   Use char because int might match the return type of a GCC
15827   builtin and then its argument prototype would still apply.  */
15828#ifdef __cplusplus
15829extern "C"
15830#endif
15831char gethostbyname ();
15832int
15833main ()
15834{
15835return gethostbyname ();
15836  ;
15837  return 0;
15838}
15839_ACEOF
15840if ac_fn_c_try_link "$LINENO"; then :
15841  ac_cv_lib_resolv_gethostbyname=yes
15842else
15843  ac_cv_lib_resolv_gethostbyname=no
15844fi
15845rm -f core conftest.err conftest.$ac_objext \
15846    conftest$ac_exeext conftest.$ac_ext
15847LIBS=$ac_check_lib_save_LIBS
15848fi
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
15850$as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
15851if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
15852  SOCKETS_LIBS="${SOCKETS_LIBS} -lresolv"
15853
15854fi
15855
15856
15857
15858old_LIBS="${LIBS}"
15859LIBS="${LIBS} ${SOCKETS_LIBS}"
15860for ac_func in sendmsg recvmsg
15861do :
15862  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15863ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15864if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15865  cat >>confdefs.h <<_ACEOF
15866#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15867_ACEOF
15868
15869fi
15870done
15871
15872# Windows use stdcall for winsock so we cannot auto detect these
15873
15874
15875if test "${WIN32}" = "yes"; then
15876# normal autoconf function checking does not find inet_ntop/inet_pton
15877# because they need to include the actual header file and link ws2_32.dll
15878	LIBS="${LIBS} -lws2_32"
15879	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW inet_ntop()/inet_pton()" >&5
15880$as_echo_n "checking for MinGW inet_ntop()/inet_pton()... " >&6; }
15881	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h.  */
15883
15884#include <ws2tcpip.h>
15885
15886int
15887main ()
15888{
15889
15890int r = (int) inet_ntop (0, NULL, NULL, 0);
15891    r += inet_pton(AF_INET, NULL, NULL);
15892return r;
15893
15894
15895  ;
15896  return 0;
15897}
15898_ACEOF
15899if ac_fn_c_try_link "$LINENO"; then :
15900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
15901$as_echo "OK" >&6; }
15902
15903$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
15904
15905
15906$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
15907
15908
15909else
15910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15911$as_echo "not found" >&6; }
15912
15913fi
15914rm -f core conftest.err conftest.$ac_objext \
15915    conftest$ac_exeext conftest.$ac_ext
15916
15917
15918$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15919
15920
15921
15922$as_echo "#define HAVE_RECV 1" >>confdefs.h
15923
15924
15925
15926$as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
15927
15928
15929
15930$as_echo "#define HAVE_SEND 1" >>confdefs.h
15931
15932
15933
15934$as_echo "#define HAVE_SENDTO 1" >>confdefs.h
15935
15936
15937
15938$as_echo "#define HAVE_LISTEN 1" >>confdefs.h
15939
15940
15941
15942$as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
15943
15944
15945
15946$as_echo "#define HAVE_CONNECT 1" >>confdefs.h
15947
15948
15949
15950$as_echo "#define HAVE_BIND 1" >>confdefs.h
15951
15952
15953
15954$as_echo "#define HAVE_SELECT 1" >>confdefs.h
15955
15956
15957
15958$as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
15959
15960
15961
15962$as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
15963
15964
15965
15966$as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
15967
15968
15969
15970$as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
15971
15972
15973
15974$as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
15975
15976
15977
15978$as_echo "#define HAVE_POLL 1" >>confdefs.h
15979
15980
15981else
15982	for ac_func in inet_ntop inet_pton
15983do :
15984  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15985ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15986if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15987  cat >>confdefs.h <<_ACEOF
15988#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15989_ACEOF
15990
15991fi
15992done
15993
15994	for ac_func in socket recv recvfrom send sendto listen accept connect bind select gethostbyname inet_ntoa
15995do :
15996  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15997ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15998if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15999  cat >>confdefs.h <<_ACEOF
16000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16001_ACEOF
16002
16003else
16004  as_fn_error $? "Required library function not found" "$LINENO" 5
16005
16006fi
16007done
16008
16009	for ac_func in setsockopt getsockopt getsockname poll
16010do :
16011  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16012ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16013if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16014  cat >>confdefs.h <<_ACEOF
16015#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16016_ACEOF
16017
16018fi
16019done
16020
16021fi
16022LIBS="${old_LIBS}"
16023
16024# we assume res_init() always exist, but need to find out *where*...
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
16026$as_echo_n "checking for library containing __res_init... " >&6; }
16027if ${ac_cv_search___res_init+:} false; then :
16028  $as_echo_n "(cached) " >&6
16029else
16030  ac_func_search_save_LIBS=$LIBS
16031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032/* end confdefs.h.  */
16033
16034/* Override any GCC internal prototype to avoid an error.
16035   Use char because int might match the return type of a GCC
16036   builtin and then its argument prototype would still apply.  */
16037#ifdef __cplusplus
16038extern "C"
16039#endif
16040char __res_init ();
16041int
16042main ()
16043{
16044return __res_init ();
16045  ;
16046  return 0;
16047}
16048_ACEOF
16049for ac_lib in '' resolv bind; do
16050  if test -z "$ac_lib"; then
16051    ac_res="none required"
16052  else
16053    ac_res=-l$ac_lib
16054    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16055  fi
16056  if ac_fn_c_try_link "$LINENO"; then :
16057  ac_cv_search___res_init=$ac_res
16058fi
16059rm -f core conftest.err conftest.$ac_objext \
16060    conftest$ac_exeext
16061  if ${ac_cv_search___res_init+:} false; then :
16062  break
16063fi
16064done
16065if ${ac_cv_search___res_init+:} false; then :
16066
16067else
16068  ac_cv_search___res_init=no
16069fi
16070rm conftest.$ac_ext
16071LIBS=$ac_func_search_save_LIBS
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
16074$as_echo "$ac_cv_search___res_init" >&6; }
16075ac_res=$ac_cv_search___res_init
16076if test "$ac_res" != no; then :
16077  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16078
16079else
16080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
16081$as_echo_n "checking for library containing res_9_init... " >&6; }
16082if ${ac_cv_search_res_9_init+:} false; then :
16083  $as_echo_n "(cached) " >&6
16084else
16085  ac_func_search_save_LIBS=$LIBS
16086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087/* end confdefs.h.  */
16088
16089/* Override any GCC internal prototype to avoid an error.
16090   Use char because int might match the return type of a GCC
16091   builtin and then its argument prototype would still apply.  */
16092#ifdef __cplusplus
16093extern "C"
16094#endif
16095char res_9_init ();
16096int
16097main ()
16098{
16099return res_9_init ();
16100  ;
16101  return 0;
16102}
16103_ACEOF
16104for ac_lib in '' resolv bind; do
16105  if test -z "$ac_lib"; then
16106    ac_res="none required"
16107  else
16108    ac_res=-l$ac_lib
16109    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16110  fi
16111  if ac_fn_c_try_link "$LINENO"; then :
16112  ac_cv_search_res_9_init=$ac_res
16113fi
16114rm -f core conftest.err conftest.$ac_objext \
16115    conftest$ac_exeext
16116  if ${ac_cv_search_res_9_init+:} false; then :
16117  break
16118fi
16119done
16120if ${ac_cv_search_res_9_init+:} false; then :
16121
16122else
16123  ac_cv_search_res_9_init=no
16124fi
16125rm conftest.$ac_ext
16126LIBS=$ac_func_search_save_LIBS
16127fi
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
16129$as_echo "$ac_cv_search_res_9_init" >&6; }
16130ac_res=$ac_cv_search_res_9_init
16131if test "$ac_res" != no; then :
16132  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16133
16134else
16135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
16136$as_echo_n "checking for library containing res_init... " >&6; }
16137if ${ac_cv_search_res_init+:} false; then :
16138  $as_echo_n "(cached) " >&6
16139else
16140  ac_func_search_save_LIBS=$LIBS
16141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142/* end confdefs.h.  */
16143
16144/* Override any GCC internal prototype to avoid an error.
16145   Use char because int might match the return type of a GCC
16146   builtin and then its argument prototype would still apply.  */
16147#ifdef __cplusplus
16148extern "C"
16149#endif
16150char res_init ();
16151int
16152main ()
16153{
16154return res_init ();
16155  ;
16156  return 0;
16157}
16158_ACEOF
16159for ac_lib in '' resolv bind; do
16160  if test -z "$ac_lib"; then
16161    ac_res="none required"
16162  else
16163    ac_res=-l$ac_lib
16164    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16165  fi
16166  if ac_fn_c_try_link "$LINENO"; then :
16167  ac_cv_search_res_init=$ac_res
16168fi
16169rm -f core conftest.err conftest.$ac_objext \
16170    conftest$ac_exeext
16171  if ${ac_cv_search_res_init+:} false; then :
16172  break
16173fi
16174done
16175if ${ac_cv_search_res_init+:} false; then :
16176
16177else
16178  ac_cv_search_res_init=no
16179fi
16180rm conftest.$ac_ext
16181LIBS=$ac_func_search_save_LIBS
16182fi
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
16184$as_echo "$ac_cv_search_res_init" >&6; }
16185ac_res=$ac_cv_search_res_init
16186if test "$ac_res" != no; then :
16187  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16188
16189fi
16190
16191fi
16192
16193fi
16194
16195
16196
16197old_CFLAGS="${CFLAGS}"
16198CFLAGS="${CFLAGS} ${TAP_CFLAGS}"
16199for ac_header in  \
16200		net/if_tun.h net/tun/if_tun.h \
16201		linux/if_tun.h \
16202		tap-windows.h \
16203
16204do :
16205  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16206ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16207if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16208  cat >>confdefs.h <<_ACEOF
16209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16210_ACEOF
16211 have_tap_header="yes"
16212
16213fi
16214
16215done
16216
16217ac_fn_c_check_decl "$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
16218		#ifdef HAVE_LINUX_IF_TUN_H
16219		#include <linux/if_tun.h>
16220		#endif
16221
16222
16223"
16224if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes; then :
16225  ac_have_decl=1
16226else
16227  ac_have_decl=0
16228fi
16229
16230cat >>confdefs.h <<_ACEOF
16231#define HAVE_DECL_TUNSETPERSIST $ac_have_decl
16232_ACEOF
16233if test $ac_have_decl = 1; then :
16234
16235$as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
16236
16237fi
16238
16239CFLAGS="${old_CFLAGS}"
16240test "${have_tap_header}" = "yes" || as_fn_error $? "no tap header could be found" "$LINENO" 5
16241
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
16243$as_echo_n "checking for setcon in -lselinux... " >&6; }
16244if ${ac_cv_lib_selinux_setcon+:} false; then :
16245  $as_echo_n "(cached) " >&6
16246else
16247  ac_check_lib_save_LIBS=$LIBS
16248LIBS="-lselinux  $LIBS"
16249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250/* end confdefs.h.  */
16251
16252/* Override any GCC internal prototype to avoid an error.
16253   Use char because int might match the return type of a GCC
16254   builtin and then its argument prototype would still apply.  */
16255#ifdef __cplusplus
16256extern "C"
16257#endif
16258char setcon ();
16259int
16260main ()
16261{
16262return setcon ();
16263  ;
16264  return 0;
16265}
16266_ACEOF
16267if ac_fn_c_try_link "$LINENO"; then :
16268  ac_cv_lib_selinux_setcon=yes
16269else
16270  ac_cv_lib_selinux_setcon=no
16271fi
16272rm -f core conftest.err conftest.$ac_objext \
16273    conftest$ac_exeext conftest.$ac_ext
16274LIBS=$ac_check_lib_save_LIBS
16275fi
16276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
16277$as_echo "$ac_cv_lib_selinux_setcon" >&6; }
16278if test "x$ac_cv_lib_selinux_setcon" = xyes; then :
16279  SELINUX_LIBS="-lselinux"
16280
16281fi
16282
16283
16284
16285
16286
16287if test -z "${LIBPAM_LIBS}"; then
16288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
16289$as_echo_n "checking for pam_start in -lpam... " >&6; }
16290if ${ac_cv_lib_pam_pam_start+:} false; then :
16291  $as_echo_n "(cached) " >&6
16292else
16293  ac_check_lib_save_LIBS=$LIBS
16294LIBS="-lpam  $LIBS"
16295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296/* end confdefs.h.  */
16297
16298/* Override any GCC internal prototype to avoid an error.
16299   Use char because int might match the return type of a GCC
16300   builtin and then its argument prototype would still apply.  */
16301#ifdef __cplusplus
16302extern "C"
16303#endif
16304char pam_start ();
16305int
16306main ()
16307{
16308return pam_start ();
16309  ;
16310  return 0;
16311}
16312_ACEOF
16313if ac_fn_c_try_link "$LINENO"; then :
16314  ac_cv_lib_pam_pam_start=yes
16315else
16316  ac_cv_lib_pam_pam_start=no
16317fi
16318rm -f core conftest.err conftest.$ac_objext \
16319    conftest$ac_exeext conftest.$ac_ext
16320LIBS=$ac_check_lib_save_LIBS
16321fi
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
16323$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
16324if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
16325  LIBPAM_LIBS="-lpam"
16326
16327fi
16328
16329fi
16330
16331case "${with_mem_check}" in
16332	valgrind)
16333		for ac_header in valgrind/memcheck.h
16334do :
16335  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
16336if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
16337  cat >>confdefs.h <<_ACEOF
16338#define HAVE_VALGRIND_MEMCHECK_H 1
16339_ACEOF
16340
16341				CFLAGS="${CFLAGS} -g -fno-inline"
16342
16343$as_echo "#define USE_VALGRIND 1" >>confdefs.h
16344
16345
16346else
16347  as_fn_error $? "valgrind headers not found." "$LINENO" 5
16348
16349fi
16350
16351done
16352
16353		;;
16354	dmalloc)
16355		for ac_header in dmalloc.h
16356do :
16357  ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
16358if test "x$ac_cv_header_dmalloc_h" = xyes; then :
16359  cat >>confdefs.h <<_ACEOF
16360#define HAVE_DMALLOC_H 1
16361_ACEOF
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
16363$as_echo_n "checking for malloc in -ldmalloc... " >&6; }
16364if ${ac_cv_lib_dmalloc_malloc+:} false; then :
16365  $as_echo_n "(cached) " >&6
16366else
16367  ac_check_lib_save_LIBS=$LIBS
16368LIBS="-ldmalloc  $LIBS"
16369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370/* end confdefs.h.  */
16371
16372/* Override any GCC internal prototype to avoid an error.
16373   Use char because int might match the return type of a GCC
16374   builtin and then its argument prototype would still apply.  */
16375#ifdef __cplusplus
16376extern "C"
16377#endif
16378char malloc ();
16379int
16380main ()
16381{
16382return malloc ();
16383  ;
16384  return 0;
16385}
16386_ACEOF
16387if ac_fn_c_try_link "$LINENO"; then :
16388  ac_cv_lib_dmalloc_malloc=yes
16389else
16390  ac_cv_lib_dmalloc_malloc=no
16391fi
16392rm -f core conftest.err conftest.$ac_objext \
16393    conftest$ac_exeext conftest.$ac_ext
16394LIBS=$ac_check_lib_save_LIBS
16395fi
16396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
16397$as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
16398if test "x$ac_cv_lib_dmalloc_malloc" = xyes; then :
16399
16400					LIBS="${LIBS} -ldmalloc"
16401
16402$as_echo "#define DMALLOC 1" >>confdefs.h
16403
16404
16405else
16406  as_fn_error $? "dmalloc library not found." "$LINENO" 5
16407
16408fi
16409
16410else
16411  as_fn_error $? "dmalloc headers not found." "$LINENO" 5
16412
16413fi
16414
16415done
16416
16417		;;
16418	ssl)
16419		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
16420$as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
16421if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false; then :
16422  $as_echo_n "(cached) " >&6
16423else
16424  ac_check_lib_save_LIBS=$LIBS
16425LIBS="-lssl  $LIBS"
16426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427/* end confdefs.h.  */
16428
16429/* Override any GCC internal prototype to avoid an error.
16430   Use char because int might match the return type of a GCC
16431   builtin and then its argument prototype would still apply.  */
16432#ifdef __cplusplus
16433extern "C"
16434#endif
16435char CRYPTO_mem_ctrl ();
16436int
16437main ()
16438{
16439return CRYPTO_mem_ctrl ();
16440  ;
16441  return 0;
16442}
16443_ACEOF
16444if ac_fn_c_try_link "$LINENO"; then :
16445  ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
16446else
16447  ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
16448fi
16449rm -f core conftest.err conftest.$ac_objext \
16450    conftest$ac_exeext conftest.$ac_ext
16451LIBS=$ac_check_lib_save_LIBS
16452fi
16453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
16454$as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
16455if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes; then :
16456
16457
16458$as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
16459
16460				{ $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
16461$as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
16462
16463else
16464  as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
16465
16466fi
16467
16468		;;
16469esac
16470
16471
16472pkg_failed=no
16473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
16474$as_echo_n "checking for PKCS11_HELPER... " >&6; }
16475
16476if test -n "$PKCS11_HELPER_CFLAGS"; then
16477    pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
16478 elif test -n "$PKG_CONFIG"; then
16479    if test -n "$PKG_CONFIG" && \
16480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
16481  ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
16482  ac_status=$?
16483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16484  test $ac_status = 0; }; then
16485  pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
16486		      test "x$?" != "x0" && pkg_failed=yes
16487else
16488  pkg_failed=yes
16489fi
16490 else
16491    pkg_failed=untried
16492fi
16493if test -n "$PKCS11_HELPER_LIBS"; then
16494    pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
16495 elif test -n "$PKG_CONFIG"; then
16496    if test -n "$PKG_CONFIG" && \
16497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
16498  ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
16499  ac_status=$?
16500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16501  test $ac_status = 0; }; then
16502  pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
16503		      test "x$?" != "x0" && pkg_failed=yes
16504else
16505  pkg_failed=yes
16506fi
16507 else
16508    pkg_failed=untried
16509fi
16510
16511
16512
16513if test $pkg_failed = yes; then
16514   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16515$as_echo "no" >&6; }
16516
16517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16518        _pkg_short_errors_supported=yes
16519else
16520        _pkg_short_errors_supported=no
16521fi
16522        if test $_pkg_short_errors_supported = yes; then
16523	        PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
16524        else
16525	        PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
16526        fi
16527	# Put the nasty error message in config.log where it belongs
16528	echo "$PKCS11_HELPER_PKG_ERRORS" >&5
16529
16530
16531
16532elif test $pkg_failed = untried; then
16533     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534$as_echo "no" >&6; }
16535
16536
16537else
16538	PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
16539	PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
16540        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16541$as_echo "yes" >&6; }
16542	have_pkcs11_helper="yes"
16543fi
16544
16545if test "${with_crypto_library}" = "openssl"; then
16546
16547
16548
16549	if test -z "${OPENSSL_CFLAGS}" -a -z "${OPENSSL_LIBS}"; then
16550		# if the user did not explicitly specify flags, try to autodetect
16551
16552pkg_failed=no
16553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
16554$as_echo_n "checking for OPENSSL... " >&6; }
16555
16556if test -n "$OPENSSL_CFLAGS"; then
16557    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16558 elif test -n "$PKG_CONFIG"; then
16559    if test -n "$PKG_CONFIG" && \
16560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5
16561  ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5
16562  ac_status=$?
16563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16564  test $ac_status = 0; }; then
16565  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.2" 2>/dev/null`
16566		      test "x$?" != "x0" && pkg_failed=yes
16567else
16568  pkg_failed=yes
16569fi
16570 else
16571    pkg_failed=untried
16572fi
16573if test -n "$OPENSSL_LIBS"; then
16574    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16575 elif test -n "$PKG_CONFIG"; then
16576    if test -n "$PKG_CONFIG" && \
16577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.2\""; } >&5
16578  ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.2") 2>&5
16579  ac_status=$?
16580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581  test $ac_status = 0; }; then
16582  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.2" 2>/dev/null`
16583		      test "x$?" != "x0" && pkg_failed=yes
16584else
16585  pkg_failed=yes
16586fi
16587 else
16588    pkg_failed=untried
16589fi
16590
16591
16592
16593if test $pkg_failed = yes; then
16594   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595$as_echo "no" >&6; }
16596
16597if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16598        _pkg_short_errors_supported=yes
16599else
16600        _pkg_short_errors_supported=no
16601fi
16602        if test $_pkg_short_errors_supported = yes; then
16603	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.2" 2>&1`
16604        else
16605	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.2" 2>&1`
16606        fi
16607	# Put the nasty error message in config.log where it belongs
16608	echo "$OPENSSL_PKG_ERRORS" >&5
16609
16610	 # If this fails, we will do another test next
16611
16612elif test $pkg_failed = untried; then
16613     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614$as_echo "no" >&6; }
16615	 # If this fails, we will do another test next
16616
16617else
16618	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16619	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16621$as_echo "yes" >&6; }
16622	have_openssl="yes"
16623fi
16624		OPENSSL_LIBS=${OPENSSL_LIBS:--lssl -lcrypto}
16625	fi
16626
16627	saved_CFLAGS="${CFLAGS}"
16628	saved_LIBS="${LIBS}"
16629	CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
16630	LIBS="${LIBS} ${OPENSSL_LIBS}"
16631
16632	# If pkgconfig check failed or OPENSSL_CFLAGS/OPENSSL_LIBS env vars
16633	# are used, check the version directly in the OpenSSL include file
16634	if test "${have_openssl}" != "yes"; then
16635		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking additionally if OpenSSL is available and version >= 1.0.2" >&5
16636$as_echo_n "checking additionally if OpenSSL is available and version >= 1.0.2... " >&6; }
16637		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638/* end confdefs.h.  */
16639
16640#include <openssl/opensslv.h>
16641
16642int
16643main ()
16644{
16645
16646/*	     Version encoding: MNNFFPPS - see opensslv.h for details */
16647#if OPENSSL_VERSION_NUMBER < 0x10002000L
16648#error OpenSSL too old
16649#endif
16650
16651
16652  ;
16653  return 0;
16654}
16655_ACEOF
16656if ac_fn_c_try_compile "$LINENO"; then :
16657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16658$as_echo "ok" >&6; }
16659else
16660  as_fn_error $? "OpenSSL version too old" "$LINENO" 5
16661
16662fi
16663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664	fi
16665
16666	for ac_func in SSL_CTX_new EVP_CIPHER_CTX_set_key_length
16667do :
16668  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16669ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16670if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16671  cat >>confdefs.h <<_ACEOF
16672#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16673_ACEOF
16674
16675else
16676  as_fn_error $? "openssl check failed" "$LINENO" 5
16677
16678fi
16679done
16680
16681
16682	have_openssl_engine="yes"
16683	for ac_func in  \
16684			ENGINE_load_builtin_engines \
16685			ENGINE_register_all_complete \
16686			ENGINE_cleanup \
16687
16688do :
16689  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16691if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16692  cat >>confdefs.h <<_ACEOF
16693#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16694_ACEOF
16695
16696else
16697  have_openssl_engine="no"; break
16698
16699fi
16700done
16701
16702	if test "${have_openssl_engine}" = "no"; then
16703		ac_fn_c_check_decl "$LINENO" "ENGINE_cleanup" "ac_cv_have_decl_ENGINE_cleanup" "
16704				#include <openssl/engine.h>
16705
16706
16707"
16708if test "x$ac_cv_have_decl_ENGINE_cleanup" = xyes; then :
16709  have_openssl_engine="yes"
16710fi
16711
16712	fi
16713	if test "${have_openssl_engine}" = "yes"; then
16714
16715$as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
16716
16717	fi
16718
16719	ac_fn_c_check_func "$LINENO" "EVP_aes_256_gcm" "ac_cv_func_EVP_aes_256_gcm"
16720if test "x$ac_cv_func_EVP_aes_256_gcm" = xyes; then :
16721
16722else
16723  as_fn_error $? "OpenSSL check for AES-256-GCM support failed" "$LINENO" 5
16724
16725fi
16726
16727
16728	# All supported OpenSSL version (>= 1.0.2)
16729	# have this feature
16730	have_export_keying_material="yes"
16731
16732	for ac_func in  \
16733			HMAC_CTX_new \
16734			HMAC_CTX_free \
16735			HMAC_CTX_reset \
16736			EVP_MD_CTX_new \
16737			EVP_MD_CTX_free \
16738			EVP_MD_CTX_reset \
16739			EVP_CIPHER_CTX_reset \
16740			OpenSSL_version \
16741			SSL_CTX_get_default_passwd_cb \
16742			SSL_CTX_get_default_passwd_cb_userdata \
16743			SSL_CTX_set1_groups \
16744			SSL_CTX_set_security_level \
16745			X509_get0_notBefore \
16746			X509_get0_notAfter \
16747			X509_get0_pubkey \
16748			X509_STORE_get0_objects \
16749			X509_OBJECT_free \
16750			X509_OBJECT_get_type \
16751			EVP_PKEY_get0_RSA \
16752			EVP_PKEY_get0_DSA \
16753			EVP_PKEY_get0_EC_KEY \
16754			RSA_set_flags \
16755			RSA_bits \
16756			RSA_get0_key \
16757			RSA_set0_key \
16758			DSA_get0_pqg \
16759			DSA_bits \
16760			RSA_meth_new \
16761			RSA_meth_free \
16762			RSA_meth_set_pub_enc \
16763			RSA_meth_set_pub_dec \
16764			RSA_meth_set_priv_enc \
16765			RSA_meth_set_priv_dec \
16766			RSA_meth_set_init \
16767			RSA_meth_set_sign \
16768			RSA_meth_set_finish \
16769			RSA_meth_set0_app_data \
16770			RSA_meth_get0_app_data \
16771			EC_GROUP_order_bits
16772
16773
16774do :
16775  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16776ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16777if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16778  cat >>confdefs.h <<_ACEOF
16779#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16780_ACEOF
16781
16782fi
16783done
16784
16785
16786	CFLAGS="${saved_CFLAGS}"
16787	LIBS="${saved_LIBS}"
16788
16789
16790$as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
16791
16792	CRYPTO_CFLAGS="${OPENSSL_CFLAGS}"
16793	CRYPTO_LIBS="${OPENSSL_LIBS}"
16794elif test "${with_crypto_library}" = "mbedtls"; then
16795
16796
16797
16798	saved_CFLAGS="${CFLAGS}"
16799	saved_LIBS="${LIBS}"
16800
16801	if test -z "${MBEDTLS_CFLAGS}" -a -z "${MBEDTLS_LIBS}"; then
16802		# if the user did not explicitly specify flags, try to autodetect
16803		LIBS="${LIBS} -lmbedtls -lmbedx509 -lmbedcrypto"
16804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
16805$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
16806if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
16807  $as_echo_n "(cached) " >&6
16808else
16809  ac_check_lib_save_LIBS=$LIBS
16810LIBS="-lmbedtls ${PKCS11_HELPER_LIBS}
16811		 $LIBS"
16812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813/* end confdefs.h.  */
16814
16815/* Override any GCC internal prototype to avoid an error.
16816   Use char because int might match the return type of a GCC
16817   builtin and then its argument prototype would still apply.  */
16818#ifdef __cplusplus
16819extern "C"
16820#endif
16821char mbedtls_ssl_init ();
16822int
16823main ()
16824{
16825return mbedtls_ssl_init ();
16826  ;
16827  return 0;
16828}
16829_ACEOF
16830if ac_fn_c_try_link "$LINENO"; then :
16831  ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
16832else
16833  ac_cv_lib_mbedtls_mbedtls_ssl_init=no
16834fi
16835rm -f core conftest.err conftest.$ac_objext \
16836    conftest$ac_exeext conftest.$ac_ext
16837LIBS=$ac_check_lib_save_LIBS
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
16840$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
16841if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
16842  MBEDTLS_LIBS="-lmbedtls -lmbedx509 -lmbedcrypto"
16843else
16844  as_fn_error $? "Could not find mbed TLS." "$LINENO" 5
16845fi
16846
16847	fi
16848
16849	CFLAGS="${MBEDTLS_CFLAGS} ${PKCS11_HELPER_CFLAGS} ${CFLAGS}"
16850	LIBS="${MBEDTLS_LIBS} ${PKCS11_HELPER_LIBS} ${LIBS}"
16851
16852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mbedtls version" >&5
16853$as_echo_n "checking mbedtls version... " >&6; }
16854	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h.  */
16856
16857#include <mbedtls/version.h>
16858
16859int
16860main ()
16861{
16862
16863#if MBEDTLS_VERSION_NUMBER < 0x02000000 || MBEDTLS_VERSION_NUMBER >= 0x03000000
16864#error invalid version
16865#endif
16866
16867
16868  ;
16869  return 0;
16870}
16871_ACEOF
16872if ac_fn_c_try_compile "$LINENO"; then :
16873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16874$as_echo "ok" >&6; }
16875else
16876  as_fn_error $? "mbed TLS 2.y.z required" "$LINENO" 5
16877
16878fi
16879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880
16881	for ac_func in  \
16882			mbedtls_cipher_write_tag \
16883			mbedtls_cipher_check_tag \
16884
16885do :
16886  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16887ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16888if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16889  cat >>confdefs.h <<_ACEOF
16890#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16891_ACEOF
16892
16893else
16894  as_fn_error $? "mbed TLS check for AEAD support failed" "$LINENO" 5
16895
16896fi
16897done
16898
16899
16900	have_export_keying_material="yes"
16901	ac_fn_c_check_func "$LINENO" "mbedtls_ssl_conf_export_keys_ext_cb" "ac_cv_func_mbedtls_ssl_conf_export_keys_ext_cb"
16902if test "x$ac_cv_func_mbedtls_ssl_conf_export_keys_ext_cb" = xyes; then :
16903
16904else
16905  have_export_keying_material="no"
16906
16907fi
16908
16909
16910	CFLAGS="${saved_CFLAGS}"
16911	LIBS="${saved_LIBS}"
16912
16913$as_echo "#define ENABLE_CRYPTO_MBEDTLS 1" >>confdefs.h
16914
16915	CRYPTO_CFLAGS="${MBEDTLS_CFLAGS}"
16916	CRYPTO_LIBS="${MBEDTLS_LIBS}"
16917else
16918	as_fn_error $? "Invalid crypto library: ${with_crypto_library}" "$LINENO" 5
16919fi
16920
16921
16922
16923have_lzo="yes"
16924if test -z "${LZO_LIBS}"; then
16925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
16926$as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
16927if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false; then :
16928  $as_echo_n "(cached) " >&6
16929else
16930  ac_check_lib_save_LIBS=$LIBS
16931LIBS="-llzo2  $LIBS"
16932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933/* end confdefs.h.  */
16934
16935/* Override any GCC internal prototype to avoid an error.
16936   Use char because int might match the return type of a GCC
16937   builtin and then its argument prototype would still apply.  */
16938#ifdef __cplusplus
16939extern "C"
16940#endif
16941char lzo1x_1_15_compress ();
16942int
16943main ()
16944{
16945return lzo1x_1_15_compress ();
16946  ;
16947  return 0;
16948}
16949_ACEOF
16950if ac_fn_c_try_link "$LINENO"; then :
16951  ac_cv_lib_lzo2_lzo1x_1_15_compress=yes
16952else
16953  ac_cv_lib_lzo2_lzo1x_1_15_compress=no
16954fi
16955rm -f core conftest.err conftest.$ac_objext \
16956    conftest$ac_exeext conftest.$ac_ext
16957LIBS=$ac_check_lib_save_LIBS
16958fi
16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
16960$as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
16961if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes; then :
16962  LZO_LIBS="-llzo2"
16963else
16964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
16965$as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
16966if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false; then :
16967  $as_echo_n "(cached) " >&6
16968else
16969  ac_check_lib_save_LIBS=$LIBS
16970LIBS="-llzo  $LIBS"
16971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972/* end confdefs.h.  */
16973
16974/* Override any GCC internal prototype to avoid an error.
16975   Use char because int might match the return type of a GCC
16976   builtin and then its argument prototype would still apply.  */
16977#ifdef __cplusplus
16978extern "C"
16979#endif
16980char lzo1x_1_15_compress ();
16981int
16982main ()
16983{
16984return lzo1x_1_15_compress ();
16985  ;
16986  return 0;
16987}
16988_ACEOF
16989if ac_fn_c_try_link "$LINENO"; then :
16990  ac_cv_lib_lzo_lzo1x_1_15_compress=yes
16991else
16992  ac_cv_lib_lzo_lzo1x_1_15_compress=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext \
16995    conftest$ac_exeext conftest.$ac_ext
16996LIBS=$ac_check_lib_save_LIBS
16997fi
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
16999$as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
17000if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes; then :
17001  LZO_LIBS="-llzo"
17002else
17003  have_lzo="no"
17004
17005fi
17006
17007
17008fi
17009
17010fi
17011if test "${have_lzo}" = "yes"; then
17012	saved_CFLAGS="${CFLAGS}"
17013	CFLAGS="${CFLAGS} ${LZO_CFLAGS}"
17014	for ac_header in lzo/lzoutil.h
17015do :
17016  ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
17017if test "x$ac_cv_header_lzo_lzoutil_h" = xyes; then :
17018  cat >>confdefs.h <<_ACEOF
17019#define HAVE_LZO_LZOUTIL_H 1
17020_ACEOF
17021
17022else
17023  for ac_header in lzoutil.h
17024do :
17025  ac_fn_c_check_header_mongrel "$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
17026if test "x$ac_cv_header_lzoutil_h" = xyes; then :
17027  cat >>confdefs.h <<_ACEOF
17028#define HAVE_LZOUTIL_H 1
17029_ACEOF
17030
17031else
17032  as_fn_error $? "lzoutil.h is missing" "$LINENO" 5
17033
17034fi
17035
17036done
17037
17038
17039fi
17040
17041done
17042
17043	for ac_header in lzo/lzo1x.h
17044do :
17045  ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
17046if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
17047  cat >>confdefs.h <<_ACEOF
17048#define HAVE_LZO_LZO1X_H 1
17049_ACEOF
17050
17051else
17052  for ac_header in lzo1x.h
17053do :
17054  ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
17055if test "x$ac_cv_header_lzo1x_h" = xyes; then :
17056  cat >>confdefs.h <<_ACEOF
17057#define HAVE_LZO1X_H 1
17058_ACEOF
17059
17060else
17061  as_fn_error $? "lzo1x.h is missing" "$LINENO" 5
17062
17063fi
17064
17065done
17066
17067
17068fi
17069
17070done
17071
17072	CFLAGS="${saved_CFLAGS}"
17073fi
17074
17075
17076
17077
17078if test "$enable_lz4" = "yes" && test "$enable_comp_stub" = "no"; then
17079    if test -z "${LZ4_CFLAGS}" -a -z "${LZ4_LIBS}"; then
17080	# if the user did not explicitly specify flags, try to autodetect
17081
17082pkg_failed=no
17083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5
17084$as_echo_n "checking for LZ4... " >&6; }
17085
17086if test -n "$LZ4_CFLAGS"; then
17087    pkg_cv_LZ4_CFLAGS="$LZ4_CFLAGS"
17088 elif test -n "$PKG_CONFIG"; then
17089    if test -n "$PKG_CONFIG" && \
17090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4 >= 1.7.1 liblz4 < 100\""; } >&5
17091  ($PKG_CONFIG --exists --print-errors "liblz4 >= 1.7.1 liblz4 < 100") 2>&5
17092  ac_status=$?
17093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17094  test $ac_status = 0; }; then
17095  pkg_cv_LZ4_CFLAGS=`$PKG_CONFIG --cflags "liblz4 >= 1.7.1 liblz4 < 100" 2>/dev/null`
17096		      test "x$?" != "x0" && pkg_failed=yes
17097else
17098  pkg_failed=yes
17099fi
17100 else
17101    pkg_failed=untried
17102fi
17103if test -n "$LZ4_LIBS"; then
17104    pkg_cv_LZ4_LIBS="$LZ4_LIBS"
17105 elif test -n "$PKG_CONFIG"; then
17106    if test -n "$PKG_CONFIG" && \
17107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4 >= 1.7.1 liblz4 < 100\""; } >&5
17108  ($PKG_CONFIG --exists --print-errors "liblz4 >= 1.7.1 liblz4 < 100") 2>&5
17109  ac_status=$?
17110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17111  test $ac_status = 0; }; then
17112  pkg_cv_LZ4_LIBS=`$PKG_CONFIG --libs "liblz4 >= 1.7.1 liblz4 < 100" 2>/dev/null`
17113		      test "x$?" != "x0" && pkg_failed=yes
17114else
17115  pkg_failed=yes
17116fi
17117 else
17118    pkg_failed=untried
17119fi
17120
17121
17122
17123if test $pkg_failed = yes; then
17124   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125$as_echo "no" >&6; }
17126
17127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17128        _pkg_short_errors_supported=yes
17129else
17130        _pkg_short_errors_supported=no
17131fi
17132        if test $_pkg_short_errors_supported = yes; then
17133	        LZ4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4 >= 1.7.1 liblz4 < 100" 2>&1`
17134        else
17135	        LZ4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4 >= 1.7.1 liblz4 < 100" 2>&1`
17136        fi
17137	# Put the nasty error message in config.log where it belongs
17138	echo "$LZ4_PKG_ERRORS" >&5
17139
17140	LZ4_LIBS="-llz4" # If this fails, we will do another test next.
17141					     # We also add set LZ4_LIBS otherwise the
17142					     # linker will not know about the lz4 library
17143
17144elif test $pkg_failed = untried; then
17145     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17146$as_echo "no" >&6; }
17147	LZ4_LIBS="-llz4" # If this fails, we will do another test next.
17148					     # We also add set LZ4_LIBS otherwise the
17149					     # linker will not know about the lz4 library
17150
17151else
17152	LZ4_CFLAGS=$pkg_cv_LZ4_CFLAGS
17153	LZ4_LIBS=$pkg_cv_LZ4_LIBS
17154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17155$as_echo "yes" >&6; }
17156	have_lz4="yes"
17157fi
17158    fi
17159
17160    saved_CFLAGS="${CFLAGS}"
17161    saved_LIBS="${LIBS}"
17162    CFLAGS="${CFLAGS} ${LZ4_CFLAGS}"
17163    LIBS="${LIBS} ${LZ4_LIBS}"
17164
17165    # If pkgconfig check failed or LZ4_CFLAGS/LZ4_LIBS env vars
17166    # are used, check the version directly in the LZ4 include file
17167    if test "${have_lz4}" != "yes"; then
17168	for ac_header in lz4.h
17169do :
17170  ac_fn_c_check_header_mongrel "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
17171if test "x$ac_cv_header_lz4_h" = xyes; then :
17172  cat >>confdefs.h <<_ACEOF
17173#define HAVE_LZ4_H 1
17174_ACEOF
17175 have_lz4h="yes"
17176fi
17177
17178done
17179
17180
17181	if test "${have_lz4h}" = "yes" ; then
17182	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking additionally if system LZ4 version >= 1.7.1" >&5
17183$as_echo_n "checking additionally if system LZ4 version >= 1.7.1... " >&6; }
17184	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185/* end confdefs.h.  */
17186
17187#include <lz4.h>
17188
17189int
17190main ()
17191{
17192
17193/* Version encoding: MMNNPP (Major miNor Patch) - see lz4.h for details */
17194#if LZ4_VERSION_NUMBER < 10701L
17195#error LZ4 is too old
17196#endif
17197
17198
17199  ;
17200  return 0;
17201}
17202_ACEOF
17203if ac_fn_c_try_compile "$LINENO"; then :
17204
17205		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17206$as_echo "ok" >&6; }
17207		    have_lz4="yes"
17208
17209else
17210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: system LZ4 library is too old" >&5
17211$as_echo "system LZ4 library is too old" >&6; }
17212
17213fi
17214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215	fi
17216    fi
17217
17218    # Double check we have a few needed functions
17219    if test "${have_lz4}" = "yes" ; then
17220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
17221$as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
17222if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
17223  $as_echo_n "(cached) " >&6
17224else
17225  ac_check_lib_save_LIBS=$LIBS
17226LIBS="-llz4  $LIBS"
17227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228/* end confdefs.h.  */
17229
17230/* Override any GCC internal prototype to avoid an error.
17231   Use char because int might match the return type of a GCC
17232   builtin and then its argument prototype would still apply.  */
17233#ifdef __cplusplus
17234extern "C"
17235#endif
17236char LZ4_compress_default ();
17237int
17238main ()
17239{
17240return LZ4_compress_default ();
17241  ;
17242  return 0;
17243}
17244_ACEOF
17245if ac_fn_c_try_link "$LINENO"; then :
17246  ac_cv_lib_lz4_LZ4_compress_default=yes
17247else
17248  ac_cv_lib_lz4_LZ4_compress_default=no
17249fi
17250rm -f core conftest.err conftest.$ac_objext \
17251    conftest$ac_exeext conftest.$ac_ext
17252LIBS=$ac_check_lib_save_LIBS
17253fi
17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
17255$as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
17256if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
17257  cat >>confdefs.h <<_ACEOF
17258#define HAVE_LIBLZ4 1
17259_ACEOF
17260
17261  LIBS="-llz4 $LIBS"
17262
17263else
17264  have_lz4="no"
17265fi
17266
17267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_decompress_safe in -llz4" >&5
17268$as_echo_n "checking for LZ4_decompress_safe in -llz4... " >&6; }
17269if ${ac_cv_lib_lz4_LZ4_decompress_safe+:} false; then :
17270  $as_echo_n "(cached) " >&6
17271else
17272  ac_check_lib_save_LIBS=$LIBS
17273LIBS="-llz4  $LIBS"
17274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275/* end confdefs.h.  */
17276
17277/* Override any GCC internal prototype to avoid an error.
17278   Use char because int might match the return type of a GCC
17279   builtin and then its argument prototype would still apply.  */
17280#ifdef __cplusplus
17281extern "C"
17282#endif
17283char LZ4_decompress_safe ();
17284int
17285main ()
17286{
17287return LZ4_decompress_safe ();
17288  ;
17289  return 0;
17290}
17291_ACEOF
17292if ac_fn_c_try_link "$LINENO"; then :
17293  ac_cv_lib_lz4_LZ4_decompress_safe=yes
17294else
17295  ac_cv_lib_lz4_LZ4_decompress_safe=no
17296fi
17297rm -f core conftest.err conftest.$ac_objext \
17298    conftest$ac_exeext conftest.$ac_ext
17299LIBS=$ac_check_lib_save_LIBS
17300fi
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_decompress_safe" >&5
17302$as_echo "$ac_cv_lib_lz4_LZ4_decompress_safe" >&6; }
17303if test "x$ac_cv_lib_lz4_LZ4_decompress_safe" = xyes; then :
17304  cat >>confdefs.h <<_ACEOF
17305#define HAVE_LIBLZ4 1
17306_ACEOF
17307
17308  LIBS="-llz4 $LIBS"
17309
17310else
17311  have_lz4="no"
17312fi
17313
17314    fi
17315
17316    if test "${have_lz4}" != "yes" ; then
17317	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 		usable LZ4 library or header not found, using version in src/compat/compat-lz4.*" >&5
17318$as_echo "		usable LZ4 library or header not found, using version in src/compat/compat-lz4.*" >&6; }
17319
17320$as_echo "#define NEED_COMPAT_LZ4 1" >>confdefs.h
17321
17322	LZ4_LIBS=""
17323    fi
17324    OPTIONAL_LZ4_CFLAGS="${LZ4_CFLAGS}"
17325    OPTIONAL_LZ4_LIBS="${LZ4_LIBS}"
17326
17327$as_echo "#define ENABLE_LZ4 1" >>confdefs.h
17328
17329    CFLAGS="${saved_CFLAGS}"
17330    LIBS="${saved_LIBS}"
17331fi
17332
17333
17334 if test "${enable_systemd}" = "yes"; then
17335  ENABLE_SYSTEMD_TRUE=
17336  ENABLE_SYSTEMD_FALSE='#'
17337else
17338  ENABLE_SYSTEMD_TRUE='#'
17339  ENABLE_SYSTEMD_FALSE=
17340fi
17341
17342if test "$enable_systemd" = "yes" ; then
17343
17344pkg_failed=no
17345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
17346$as_echo_n "checking for libsystemd... " >&6; }
17347
17348if test -n "$libsystemd_CFLAGS"; then
17349    pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
17350 elif test -n "$PKG_CONFIG"; then
17351    if test -n "$PKG_CONFIG" && \
17352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
17353  ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
17354  ac_status=$?
17355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356  test $ac_status = 0; }; then
17357  pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "systemd libsystemd" 2>/dev/null`
17358		      test "x$?" != "x0" && pkg_failed=yes
17359else
17360  pkg_failed=yes
17361fi
17362 else
17363    pkg_failed=untried
17364fi
17365if test -n "$libsystemd_LIBS"; then
17366    pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
17367 elif test -n "$PKG_CONFIG"; then
17368    if test -n "$PKG_CONFIG" && \
17369    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd libsystemd\""; } >&5
17370  ($PKG_CONFIG --exists --print-errors "systemd libsystemd") 2>&5
17371  ac_status=$?
17372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17373  test $ac_status = 0; }; then
17374  pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "systemd libsystemd" 2>/dev/null`
17375		      test "x$?" != "x0" && pkg_failed=yes
17376else
17377  pkg_failed=yes
17378fi
17379 else
17380    pkg_failed=untried
17381fi
17382
17383
17384
17385if test $pkg_failed = yes; then
17386   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387$as_echo "no" >&6; }
17388
17389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17390        _pkg_short_errors_supported=yes
17391else
17392        _pkg_short_errors_supported=no
17393fi
17394        if test $_pkg_short_errors_supported = yes; then
17395	        libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd libsystemd" 2>&1`
17396        else
17397	        libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd libsystemd" 2>&1`
17398        fi
17399	# Put the nasty error message in config.log where it belongs
17400	echo "$libsystemd_PKG_ERRORS" >&5
17401
17402
17403pkg_failed=no
17404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
17405$as_echo_n "checking for libsystemd... " >&6; }
17406
17407if test -n "$libsystemd_CFLAGS"; then
17408    pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
17409 elif test -n "$PKG_CONFIG"; then
17410    if test -n "$PKG_CONFIG" && \
17411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17412  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17413  ac_status=$?
17414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17415  test $ac_status = 0; }; then
17416  pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
17417		      test "x$?" != "x0" && pkg_failed=yes
17418else
17419  pkg_failed=yes
17420fi
17421 else
17422    pkg_failed=untried
17423fi
17424if test -n "$libsystemd_LIBS"; then
17425    pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
17426 elif test -n "$PKG_CONFIG"; then
17427    if test -n "$PKG_CONFIG" && \
17428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17429  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17430  ac_status=$?
17431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17432  test $ac_status = 0; }; then
17433  pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
17434		      test "x$?" != "x0" && pkg_failed=yes
17435else
17436  pkg_failed=yes
17437fi
17438 else
17439    pkg_failed=untried
17440fi
17441
17442
17443
17444if test $pkg_failed = yes; then
17445   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17446$as_echo "no" >&6; }
17447
17448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17449        _pkg_short_errors_supported=yes
17450else
17451        _pkg_short_errors_supported=no
17452fi
17453        if test $_pkg_short_errors_supported = yes; then
17454	        libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17455        else
17456	        libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17457        fi
17458	# Put the nasty error message in config.log where it belongs
17459	echo "$libsystemd_PKG_ERRORS" >&5
17460
17461	as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
17462
17463$libsystemd_PKG_ERRORS
17464
17465Consider adjusting the PKG_CONFIG_PATH environment variable if you
17466installed software in a non-standard prefix.
17467
17468Alternatively, you may set the environment variables libsystemd_CFLAGS
17469and libsystemd_LIBS to avoid the need to call pkg-config.
17470See the pkg-config man page for more details." "$LINENO" 5
17471elif test $pkg_failed = untried; then
17472     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17473$as_echo "no" >&6; }
17474	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17476as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17477is in your PATH or set the PKG_CONFIG environment variable to the full
17478path to pkg-config.
17479
17480Alternatively, you may set the environment variables libsystemd_CFLAGS
17481and libsystemd_LIBS to avoid the need to call pkg-config.
17482See the pkg-config man page for more details.
17483
17484To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17485See \`config.log' for more details" "$LINENO" 5; }
17486else
17487	libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
17488	libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
17489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17490$as_echo "yes" >&6; }
17491
17492fi
17493
17494elif test $pkg_failed = untried; then
17495     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496$as_echo "no" >&6; }
17497
17498pkg_failed=no
17499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
17500$as_echo_n "checking for libsystemd... " >&6; }
17501
17502if test -n "$libsystemd_CFLAGS"; then
17503    pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
17504 elif test -n "$PKG_CONFIG"; then
17505    if test -n "$PKG_CONFIG" && \
17506    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17507  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17508  ac_status=$?
17509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17510  test $ac_status = 0; }; then
17511  pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
17512		      test "x$?" != "x0" && pkg_failed=yes
17513else
17514  pkg_failed=yes
17515fi
17516 else
17517    pkg_failed=untried
17518fi
17519if test -n "$libsystemd_LIBS"; then
17520    pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
17521 elif test -n "$PKG_CONFIG"; then
17522    if test -n "$PKG_CONFIG" && \
17523    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17524  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17525  ac_status=$?
17526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17527  test $ac_status = 0; }; then
17528  pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
17529		      test "x$?" != "x0" && pkg_failed=yes
17530else
17531  pkg_failed=yes
17532fi
17533 else
17534    pkg_failed=untried
17535fi
17536
17537
17538
17539if test $pkg_failed = yes; then
17540   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541$as_echo "no" >&6; }
17542
17543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17544        _pkg_short_errors_supported=yes
17545else
17546        _pkg_short_errors_supported=no
17547fi
17548        if test $_pkg_short_errors_supported = yes; then
17549	        libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17550        else
17551	        libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17552        fi
17553	# Put the nasty error message in config.log where it belongs
17554	echo "$libsystemd_PKG_ERRORS" >&5
17555
17556	as_fn_error $? "Package requirements (libsystemd-daemon) were not met:
17557
17558$libsystemd_PKG_ERRORS
17559
17560Consider adjusting the PKG_CONFIG_PATH environment variable if you
17561installed software in a non-standard prefix.
17562
17563Alternatively, you may set the environment variables libsystemd_CFLAGS
17564and libsystemd_LIBS to avoid the need to call pkg-config.
17565See the pkg-config man page for more details." "$LINENO" 5
17566elif test $pkg_failed = untried; then
17567     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568$as_echo "no" >&6; }
17569	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17571as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17572is in your PATH or set the PKG_CONFIG environment variable to the full
17573path to pkg-config.
17574
17575Alternatively, you may set the environment variables libsystemd_CFLAGS
17576and libsystemd_LIBS to avoid the need to call pkg-config.
17577See the pkg-config man page for more details.
17578
17579To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17580See \`config.log' for more details" "$LINENO" 5; }
17581else
17582	libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
17583	libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
17584        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17585$as_echo "yes" >&6; }
17586
17587fi
17588
17589else
17590	libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
17591	libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
17592        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17593$as_echo "yes" >&6; }
17594
17595fi
17596
17597    if test -n "$PKG_CONFIG" && \
17598    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd > 216\""; } >&5
17599  ($PKG_CONFIG --exists --print-errors "libsystemd > 216") 2>&5
17600  ac_status=$?
17601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17602  test $ac_status = 0; }; then
17603
17604$as_echo "#define SYSTEMD_NEWER_THAN_216 1" >>confdefs.h
17605
17606
17607fi
17608
17609    for ac_header in systemd/sd-daemon.h
17610do :
17611  ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
17612if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
17613  cat >>confdefs.h <<_ACEOF
17614#define HAVE_SYSTEMD_SD_DAEMON_H 1
17615_ACEOF
17616
17617else
17618
17619	   as_fn_error $? "systemd development headers not found." "$LINENO" 5
17620
17621fi
17622
17623done
17624
17625
17626    saved_LIBS="${LIBS}"
17627    LIBS="${LIBS} ${libsystemd_LIBS}"
17628    for ac_func in sd_booted
17629do :
17630  ac_fn_c_check_func "$LINENO" "sd_booted" "ac_cv_func_sd_booted"
17631if test "x$ac_cv_func_sd_booted" = xyes; then :
17632  cat >>confdefs.h <<_ACEOF
17633#define HAVE_SD_BOOTED 1
17634_ACEOF
17635
17636else
17637  as_fn_error $? "systemd library is missing sd_booted()" "$LINENO" 5
17638fi
17639done
17640
17641    OPTIONAL_SYSTEMD_LIBS="${libsystemd_LIBS}"
17642
17643$as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
17644
17645    LIBS="${saved_LIBS}"
17646
17647    if test -n "${SYSTEMD_UNIT_DIR}"; then
17648        systemdunitdir="${SYSTEMD_UNIT_DIR}"
17649    else
17650        systemdunitdir="\${libdir}/systemd/system"
17651    fi
17652
17653    if test -n "${TMPFILES_DIR}"; then
17654        tmpfilesdir="${TMPFILES_DIR}"
17655    else
17656        tmpfilesdir="\${libdir}/tmpfiles.d"
17657    fi
17658fi
17659
17660
17661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
17662$as_echo_n "checking git checkout... " >&6; }
17663GIT_CHECKOUT="no"
17664if test -n "${GIT}" -a -d "${srcdir}/.git"; then
17665
17666$as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
17667
17668	GIT_CHECKOUT="yes"
17669fi
17670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
17671$as_echo "${GIT_CHECKOUT}" >&6; }
17672
17673if test -n "${SP_PLATFORM_WINDOWS}"; then
17674
17675cat >>confdefs.h <<_ACEOF
17676#define PATH_SEPARATOR '\\\\'
17677_ACEOF
17678 #"
17679
17680cat >>confdefs.h <<_ACEOF
17681#define PATH_SEPARATOR_STR "\\\\"
17682_ACEOF
17683 #"
17684else
17685
17686cat >>confdefs.h <<_ACEOF
17687#define PATH_SEPARATOR '/'
17688_ACEOF
17689
17690
17691cat >>confdefs.h <<_ACEOF
17692#define PATH_SEPARATOR_STR "/"
17693_ACEOF
17694
17695fi
17696
17697if test "${enable_x509_alt_username}" = "yes"; then
17698	if test "${with_crypto_library}" = "mbedtls" ; then
17699		as_fn_error $? "mbed TLS does not support the --x509-username-field feature" "$LINENO" 5
17700	fi
17701
17702
17703$as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
17704
17705fi
17706
17707test "${ac_cv_header_sys_uio_h}" = "yes" &&
17708$as_echo "#define HAVE_IOVEC 1" >>confdefs.h
17709
17710test "${enable_management}" = "yes" &&
17711$as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
17712
17713test "${enable_multihome}" = "yes" &&
17714$as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
17715
17716test "${enable_debug}" = "yes" &&
17717$as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
17718
17719test "${enable_small}" = "yes" &&
17720$as_echo "#define ENABLE_SMALL 1" >>confdefs.h
17721
17722test "${enable_fragment}" = "yes" &&
17723$as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
17724
17725test "${enable_port_share}" = "yes" &&
17726$as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
17727
17728test "${enable_def_auth}" = "yes" &&
17729$as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
17730
17731test "${enable_pf}" = "yes" &&
17732$as_echo "#define ENABLE_PF 1" >>confdefs.h
17733
17734test "${enable_strict_options}" = "yes" &&
17735$as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
17736
17737
17738test "${enable_crypto_ofb_cfb}" = "yes" &&
17739$as_echo "#define ENABLE_OFB_CFB_MODE 1" >>confdefs.h
17740
17741if test "${have_export_keying_material}" = "yes"; then
17742
17743$as_echo "#define HAVE_EXPORT_KEYING_MATERIAL 1" >>confdefs.h
17744
17745fi
17746OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CFLAGS}"
17747OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_LIBS}"
17748
17749if test "${enable_plugins}" = "yes"; then
17750	OPTIONAL_DL_LIBS="${DL_LIBS}"
17751
17752$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
17753
17754else
17755	enable_plugin_auth_pam="no"
17756	enable_plugin_down_root="no"
17757fi
17758
17759 if false; then
17760  HAVE_SITNL_TRUE=
17761  HAVE_SITNL_FALSE='#'
17762else
17763  HAVE_SITNL_TRUE='#'
17764  HAVE_SITNL_FALSE=
17765fi
17766
17767
17768if test "${enable_iproute2}" = "yes"; then
17769	test -z "${IPROUTE}" && as_fn_error $? "ip utility is required but missing" "$LINENO" 5
17770
17771$as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
17772
17773else if test "${have_sitnl}" = "yes"; then
17774
17775$as_echo "#define ENABLE_SITNL 1" >>confdefs.h
17776
17777	 if true; then
17778  HAVE_SITNL_TRUE=
17779  HAVE_SITNL_FALSE='#'
17780else
17781  HAVE_SITNL_TRUE='#'
17782  HAVE_SITNL_FALSE=
17783fi
17784
17785else if test "${WIN32}" != "yes" -a "${have_sitnl}" != "yes"; then
17786	test -z "${ROUTE}" && as_fn_error $? "route utility is required but missing" "$LINENO" 5
17787	test -z "${IFCONFIG}" && as_fn_error $? "ifconfig utility is required but missing" "$LINENO" 5
17788fi
17789fi
17790fi
17791
17792if test "${enable_selinux}" = "yes"; then
17793	test -z "${SELINUX_LIBS}" && as_fn_error $? "libselinux required but missing" "$LINENO" 5
17794	OPTIONAL_SELINUX_LIBS="${SELINUX_LIBS}"
17795
17796$as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
17797
17798fi
17799
17800if test "${enable_lzo}" = "yes"; then
17801	test "${have_lzo}" != "yes" && as_fn_error $? "lzo enabled but missing" "$LINENO" 5
17802	OPTIONAL_LZO_CFLAGS="${LZO_CFLAGS}"
17803	OPTIONAL_LZO_LIBS="${LZO_LIBS}"
17804
17805$as_echo "#define ENABLE_LZO 1" >>confdefs.h
17806
17807fi
17808if test "${enable_comp_stub}" = "yes"; then
17809	test "${enable_lzo}" = "yes" && as_fn_error $? "Cannot have both comp stub and lzo enabled (use --disable-lzo)" "$LINENO" 5
17810	test "${enable_lz4}" = "yes" && as_fn_error $? "Cannot have both comp stub and LZ4 enabled (use --disable-lz4)" "$LINENO" 5
17811
17812$as_echo "#define ENABLE_COMP_STUB 1" >>confdefs.h
17813
17814fi
17815
17816if test "${enable_pkcs11}" = "yes"; then
17817	test "${have_pkcs11_helper}" != "yes" && as_fn_error $? "PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
17818	OPTIONAL_PKCS11_HELPER_CFLAGS="${PKCS11_HELPER_CFLAGS}"
17819	OPTIONAL_PKCS11_HELPER_LIBS="${PKCS11_HELPER_LIBS}"
17820
17821$as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
17822
17823
17824pkg_failed=no
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11KIT" >&5
17826$as_echo_n "checking for P11KIT... " >&6; }
17827
17828if test -n "$P11KIT_CFLAGS"; then
17829    pkg_cv_P11KIT_CFLAGS="$P11KIT_CFLAGS"
17830 elif test -n "$PKG_CONFIG"; then
17831    if test -n "$PKG_CONFIG" && \
17832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
17833  ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
17834  ac_status=$?
17835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836  test $ac_status = 0; }; then
17837  pkg_cv_P11KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1" 2>/dev/null`
17838		      test "x$?" != "x0" && pkg_failed=yes
17839else
17840  pkg_failed=yes
17841fi
17842 else
17843    pkg_failed=untried
17844fi
17845if test -n "$P11KIT_LIBS"; then
17846    pkg_cv_P11KIT_LIBS="$P11KIT_LIBS"
17847 elif test -n "$PKG_CONFIG"; then
17848    if test -n "$PKG_CONFIG" && \
17849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1\""; } >&5
17850  ($PKG_CONFIG --exists --print-errors "p11-kit-1") 2>&5
17851  ac_status=$?
17852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17853  test $ac_status = 0; }; then
17854  pkg_cv_P11KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1" 2>/dev/null`
17855		      test "x$?" != "x0" && pkg_failed=yes
17856else
17857  pkg_failed=yes
17858fi
17859 else
17860    pkg_failed=untried
17861fi
17862
17863
17864
17865if test $pkg_failed = yes; then
17866   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867$as_echo "no" >&6; }
17868
17869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17870        _pkg_short_errors_supported=yes
17871else
17872        _pkg_short_errors_supported=no
17873fi
17874        if test $_pkg_short_errors_supported = yes; then
17875	        P11KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "p11-kit-1" 2>&1`
17876        else
17877	        P11KIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "p11-kit-1" 2>&1`
17878        fi
17879	# Put the nasty error message in config.log where it belongs
17880	echo "$P11KIT_PKG_ERRORS" >&5
17881
17882
17883
17884elif test $pkg_failed = untried; then
17885     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17886$as_echo "no" >&6; }
17887
17888
17889else
17890	P11KIT_CFLAGS=$pkg_cv_P11KIT_CFLAGS
17891	P11KIT_LIBS=$pkg_cv_P11KIT_LIBS
17892        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17893$as_echo "yes" >&6; }
17894	proxy_module="`$PKG_CONFIG --variable=proxy_module p11-kit-1`"
17895
17896cat >>confdefs.h <<_ACEOF
17897#define DEFAULT_PKCS11_MODULE "${proxy_module}"
17898_ACEOF
17899
17900fi
17901fi
17902
17903# When testing a compiler option, we add -Werror to force
17904# an error when the option is unsupported. This is not
17905# required for gcc, but some compilers such as clang needs it.
17906
17907
17908
17909    old_cflags="$CFLAGS"
17910    CFLAGS="-Wno-stringop-truncation -Werror $CFLAGS"
17911    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wno-stringop-truncation" >&5
17912$as_echo_n "checking whether the compiler accepts -Wno-stringop-truncation... " >&6; }
17913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914/* end confdefs.h.  */
17915
17916int
17917main ()
17918{
17919
17920  ;
17921  return 0;
17922}
17923_ACEOF
17924if ac_fn_c_try_compile "$LINENO"; then :
17925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17926$as_echo "yes" >&6; }; CFLAGS="-Wno-stringop-truncation $old_cflags"
17927else
17928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17929$as_echo "no" >&6; }; CFLAGS="$old_cflags"
17930fi
17931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17932
17933
17934    old_cflags="$CFLAGS"
17935    CFLAGS="-Wall -Werror $CFLAGS"
17936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wall" >&5
17937$as_echo_n "checking whether the compiler accepts -Wall... " >&6; }
17938    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939/* end confdefs.h.  */
17940
17941int
17942main ()
17943{
17944
17945  ;
17946  return 0;
17947}
17948_ACEOF
17949if ac_fn_c_try_compile "$LINENO"; then :
17950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17951$as_echo "yes" >&6; }; CFLAGS="-Wall $old_cflags"
17952else
17953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17954$as_echo "no" >&6; }; CFLAGS="$old_cflags"
17955fi
17956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957
17958
17959if test "${enable_pedantic}" = "yes"; then
17960	enable_strict="yes"
17961	CFLAGS="${CFLAGS} -pedantic"
17962
17963$as_echo "#define PEDANTIC 1" >>confdefs.h
17964
17965fi
17966if test "${enable_strict}" = "yes"; then
17967	CFLAGS="${CFLAGS} -Wsign-compare -Wuninitialized"
17968fi
17969if test "${enable_werror}" = "yes"; then
17970	CFLAGS="${CFLAGS} -Werror"
17971fi
17972
17973if test "${enable_plugin_auth_pam}" = "yes"; then
17974	PLUGIN_AUTH_PAM_CFLAGS="${LIBPAM_CFLAGS}"
17975	if test "${enable_pam_dlopen}" = "yes"; then
17976
17977$as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
17978
17979		PLUGIN_AUTH_PAM_LIBS="${DL_LIBS}"
17980	else
17981		test -z "${LIBPAM_LIBS}" && as_fn_error $? "libpam required but missing" "$LINENO" 5
17982		PLUGIN_AUTH_PAM_LIBS="${LIBPAM_LIBS}"
17983	fi
17984fi
17985
17986if test "${enable_async_push}" = "yes"; then
17987	case "$host" in
17988		*-*-freebsd*)
17989
17990pkg_failed=no
17991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPTIONAL_INOTIFY" >&5
17992$as_echo_n "checking for OPTIONAL_INOTIFY... " >&6; }
17993
17994if test -n "$OPTIONAL_INOTIFY_CFLAGS"; then
17995    pkg_cv_OPTIONAL_INOTIFY_CFLAGS="$OPTIONAL_INOTIFY_CFLAGS"
17996 elif test -n "$PKG_CONFIG"; then
17997    if test -n "$PKG_CONFIG" && \
17998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libinotify\""; } >&5
17999  ($PKG_CONFIG --exists --print-errors "libinotify") 2>&5
18000  ac_status=$?
18001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002  test $ac_status = 0; }; then
18003  pkg_cv_OPTIONAL_INOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libinotify" 2>/dev/null`
18004		      test "x$?" != "x0" && pkg_failed=yes
18005else
18006  pkg_failed=yes
18007fi
18008 else
18009    pkg_failed=untried
18010fi
18011if test -n "$OPTIONAL_INOTIFY_LIBS"; then
18012    pkg_cv_OPTIONAL_INOTIFY_LIBS="$OPTIONAL_INOTIFY_LIBS"
18013 elif test -n "$PKG_CONFIG"; then
18014    if test -n "$PKG_CONFIG" && \
18015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libinotify\""; } >&5
18016  ($PKG_CONFIG --exists --print-errors "libinotify") 2>&5
18017  ac_status=$?
18018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18019  test $ac_status = 0; }; then
18020  pkg_cv_OPTIONAL_INOTIFY_LIBS=`$PKG_CONFIG --libs "libinotify" 2>/dev/null`
18021		      test "x$?" != "x0" && pkg_failed=yes
18022else
18023  pkg_failed=yes
18024fi
18025 else
18026    pkg_failed=untried
18027fi
18028
18029
18030
18031if test $pkg_failed = yes; then
18032   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18033$as_echo "no" >&6; }
18034
18035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18036        _pkg_short_errors_supported=yes
18037else
18038        _pkg_short_errors_supported=no
18039fi
18040        if test $_pkg_short_errors_supported = yes; then
18041	        OPTIONAL_INOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libinotify" 2>&1`
18042        else
18043	        OPTIONAL_INOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libinotify" 2>&1`
18044        fi
18045	# Put the nasty error message in config.log where it belongs
18046	echo "$OPTIONAL_INOTIFY_PKG_ERRORS" >&5
18047
18048	as_fn_error $? "Package requirements (libinotify) were not met:
18049
18050$OPTIONAL_INOTIFY_PKG_ERRORS
18051
18052Consider adjusting the PKG_CONFIG_PATH environment variable if you
18053installed software in a non-standard prefix.
18054
18055Alternatively, you may set the environment variables OPTIONAL_INOTIFY_CFLAGS
18056and OPTIONAL_INOTIFY_LIBS to avoid the need to call pkg-config.
18057See the pkg-config man page for more details." "$LINENO" 5
18058elif test $pkg_failed = untried; then
18059     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060$as_echo "no" >&6; }
18061	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18063as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18064is in your PATH or set the PKG_CONFIG environment variable to the full
18065path to pkg-config.
18066
18067Alternatively, you may set the environment variables OPTIONAL_INOTIFY_CFLAGS
18068and OPTIONAL_INOTIFY_LIBS to avoid the need to call pkg-config.
18069See the pkg-config man page for more details.
18070
18071To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18072See \`config.log' for more details" "$LINENO" 5; }
18073else
18074	OPTIONAL_INOTIFY_CFLAGS=$pkg_cv_OPTIONAL_INOTIFY_CFLAGS
18075	OPTIONAL_INOTIFY_LIBS=$pkg_cv_OPTIONAL_INOTIFY_LIBS
18076        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18077$as_echo "yes" >&6; }
18078
18079					$as_echo "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
18080
18081
18082$as_echo "#define ENABLE_ASYNC_PUSH 1" >>confdefs.h
18083
18084
18085
18086fi
18087		;;
18088		*)
18089			for ac_header in sys/inotify.h
18090do :
18091  ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
18092if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
18093  cat >>confdefs.h <<_ACEOF
18094#define HAVE_SYS_INOTIFY_H 1
18095_ACEOF
18096
18097$as_echo "#define ENABLE_ASYNC_PUSH 1" >>confdefs.h
18098
18099else
18100  as_fn_error $? "inotify.h not found." "$LINENO" 5
18101
18102fi
18103
18104done
18105
18106		;;
18107	esac
18108fi
18109
18110CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
18111
18112cat >>confdefs.h <<_ACEOF
18113#define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
18114_ACEOF
18115
18116
18117TAP_WIN_COMPONENT_ID="tap0901"
18118TAP_WIN_MIN_MAJOR="9"
18119TAP_WIN_MIN_MINOR="9"
18120
18121cat >>confdefs.h <<_ACEOF
18122#define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
18123_ACEOF
18124
18125
18126cat >>confdefs.h <<_ACEOF
18127#define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
18128_ACEOF
18129
18130
18131cat >>confdefs.h <<_ACEOF
18132#define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
18133_ACEOF
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156 if test "${WIN32}" = "yes"; then
18157  WIN32_TRUE=
18158  WIN32_FALSE='#'
18159else
18160  WIN32_TRUE='#'
18161  WIN32_FALSE=
18162fi
18163
18164 if test "${GIT_CHECKOUT}" = "yes"; then
18165  GIT_CHECKOUT_TRUE=
18166  GIT_CHECKOUT_FALSE='#'
18167else
18168  GIT_CHECKOUT_TRUE='#'
18169  GIT_CHECKOUT_FALSE=
18170fi
18171
18172 if test "${enable_plugin_auth_pam}" = "yes"; then
18173  ENABLE_PLUGIN_AUTH_PAM_TRUE=
18174  ENABLE_PLUGIN_AUTH_PAM_FALSE='#'
18175else
18176  ENABLE_PLUGIN_AUTH_PAM_TRUE='#'
18177  ENABLE_PLUGIN_AUTH_PAM_FALSE=
18178fi
18179
18180 if test "${enable_plugin_down_root}" = "yes"; then
18181  ENABLE_PLUGIN_DOWN_ROOT_TRUE=
18182  ENABLE_PLUGIN_DOWN_ROOT_FALSE='#'
18183else
18184  ENABLE_PLUGIN_DOWN_ROOT_TRUE='#'
18185  ENABLE_PLUGIN_DOWN_ROOT_FALSE=
18186fi
18187
18188 if test "${have_ld_wrap_support}" = "yes"; then
18189  HAVE_LD_WRAP_SUPPORT_TRUE=
18190  HAVE_LD_WRAP_SUPPORT_FALSE='#'
18191else
18192  HAVE_LD_WRAP_SUPPORT_TRUE='#'
18193  HAVE_LD_WRAP_SUPPORT_FALSE=
18194fi
18195
18196 if test "${have_openssl_engine}" = "yes"; then
18197  OPENSSL_ENGINE_TRUE=
18198  OPENSSL_ENGINE_FALSE='#'
18199else
18200  OPENSSL_ENGINE_TRUE='#'
18201  OPENSSL_ENGINE_FALSE=
18202fi
18203
18204
18205sampledir="\$(docdir)/sample"
18206
18207
18208
18209
18210
18211
18212# Check whether --enable-unit-tests was given.
18213if test "${enable_unit_tests+set}" = set; then :
18214  enableval=$enable_unit_tests;
18215else
18216  enable_unit_tests="yes"
18217
18218fi
18219
18220
18221# Check if cmocka is available - needed for unit testing
18222
18223pkg_failed=no
18224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMOCKA" >&5
18225$as_echo_n "checking for CMOCKA... " >&6; }
18226
18227if test -n "$CMOCKA_CFLAGS"; then
18228    pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
18229 elif test -n "$PKG_CONFIG"; then
18230    if test -n "$PKG_CONFIG" && \
18231    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka\""; } >&5
18232  ($PKG_CONFIG --exists --print-errors "cmocka") 2>&5
18233  ac_status=$?
18234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18235  test $ac_status = 0; }; then
18236  pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka" 2>/dev/null`
18237		      test "x$?" != "x0" && pkg_failed=yes
18238else
18239  pkg_failed=yes
18240fi
18241 else
18242    pkg_failed=untried
18243fi
18244if test -n "$CMOCKA_LIBS"; then
18245    pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
18246 elif test -n "$PKG_CONFIG"; then
18247    if test -n "$PKG_CONFIG" && \
18248    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka\""; } >&5
18249  ($PKG_CONFIG --exists --print-errors "cmocka") 2>&5
18250  ac_status=$?
18251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18252  test $ac_status = 0; }; then
18253  pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka" 2>/dev/null`
18254		      test "x$?" != "x0" && pkg_failed=yes
18255else
18256  pkg_failed=yes
18257fi
18258 else
18259    pkg_failed=untried
18260fi
18261
18262
18263
18264if test $pkg_failed = yes; then
18265   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18266$as_echo "no" >&6; }
18267
18268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18269        _pkg_short_errors_supported=yes
18270else
18271        _pkg_short_errors_supported=no
18272fi
18273        if test $_pkg_short_errors_supported = yes; then
18274	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka" 2>&1`
18275        else
18276	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka" 2>&1`
18277        fi
18278	# Put the nasty error message in config.log where it belongs
18279	echo "$CMOCKA_PKG_ERRORS" >&5
18280
18281	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cmocka.pc not found on the system.  Unit tests disabled" >&5
18282$as_echo "$as_me: WARNING: cmocka.pc not found on the system.  Unit tests disabled" >&2;}
18283
18284elif test $pkg_failed = untried; then
18285     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18286$as_echo "no" >&6; }
18287	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cmocka.pc not found on the system.  Unit tests disabled" >&5
18288$as_echo "$as_me: WARNING: cmocka.pc not found on the system.  Unit tests disabled" >&2;}
18289
18290else
18291	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
18292	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
18293        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18294$as_echo "yes" >&6; }
18295	have_cmocka="yes"
18296fi
18297 if test "${enable_unit_tests}" = "yes" -a "${have_cmocka}" = "yes" ; then
18298  ENABLE_UNITTESTS_TRUE=
18299  ENABLE_UNITTESTS_FALSE='#'
18300else
18301  ENABLE_UNITTESTS_TRUE='#'
18302  ENABLE_UNITTESTS_FALSE=
18303fi
18304
18305
18306
18307TEST_LDFLAGS="${OPTIONAL_CRYPTO_LIBS} ${OPTIONAL_PKCS11_HELPER_LIBS}"
18308TEST_LDFLAGS="${TEST_LDFLAGS} ${OPTIONAL_LZO_LIBS} ${CMOCKA_LIBS}"
18309TEST_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${OPTIONAL_PKCS11_HELPER_CFLAGS}"
18310TEST_CFLAGS="${TEST_CFLAGS} ${OPTIONAL_LZO_CFLAGS}"
18311TEST_CFLAGS="${TEST_CFLAGS} -I\$(top_srcdir)/include ${CMOCKA_CFLAGS}"
18312
18313
18314
18315
18316ac_config_files="$ac_config_files version.sh Makefile build/Makefile build/msvc/Makefile build/msvc/msvc-generate/Makefile distro/Makefile distro/systemd/Makefile doc/Makefile doc/doxygen/Makefile doc/doxygen/openvpn.doxyfile include/Makefile sample/sample-plugins/Makefile src/Makefile src/compat/Makefile src/openvpn/Makefile src/openvpnmsica/Makefile src/openvpnserv/Makefile src/plugins/Makefile src/plugins/auth-pam/Makefile src/plugins/down-root/Makefile src/tapctl/Makefile tests/Makefile tests/unit_tests/Makefile tests/unit_tests/example_test/Makefile tests/unit_tests/openvpn/Makefile tests/unit_tests/plugins/Makefile tests/unit_tests/plugins/auth-pam/Makefile tests/unit_tests/engine-key/Makefile sample/Makefile"
18317
18318ac_config_files="$ac_config_files tests/t_client.sh"
18319
18320cat >confcache <<\_ACEOF
18321# This file is a shell script that caches the results of configure
18322# tests run on this system so they can be shared between configure
18323# scripts and configure runs, see configure's option --config-cache.
18324# It is not useful on other systems.  If it contains results you don't
18325# want to keep, you may remove or edit it.
18326#
18327# config.status only pays attention to the cache file if you give it
18328# the --recheck option to rerun configure.
18329#
18330# `ac_cv_env_foo' variables (set or unset) will be overridden when
18331# loading this file, other *unset* `ac_cv_foo' will be assigned the
18332# following values.
18333
18334_ACEOF
18335
18336# The following way of writing the cache mishandles newlines in values,
18337# but we know of no workaround that is simple, portable, and efficient.
18338# So, we kill variables containing newlines.
18339# Ultrix sh set writes to stderr and can't be redirected directly,
18340# and sets the high bit in the cache file unless we assign to the vars.
18341(
18342  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18343    eval ac_val=\$$ac_var
18344    case $ac_val in #(
18345    *${as_nl}*)
18346      case $ac_var in #(
18347      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18348$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18349      esac
18350      case $ac_var in #(
18351      _ | IFS | as_nl) ;; #(
18352      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18353      *) { eval $ac_var=; unset $ac_var;} ;;
18354      esac ;;
18355    esac
18356  done
18357
18358  (set) 2>&1 |
18359    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18360    *${as_nl}ac_space=\ *)
18361      # `set' does not quote correctly, so add quotes: double-quote
18362      # substitution turns \\\\ into \\, and sed turns \\ into \.
18363      sed -n \
18364	"s/'/'\\\\''/g;
18365	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18366      ;; #(
18367    *)
18368      # `set' quotes correctly as required by POSIX, so do not add quotes.
18369      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18370      ;;
18371    esac |
18372    sort
18373) |
18374  sed '
18375     /^ac_cv_env_/b end
18376     t clear
18377     :clear
18378     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18379     t end
18380     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18381     :end' >>confcache
18382if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18383  if test -w "$cache_file"; then
18384    if test "x$cache_file" != "x/dev/null"; then
18385      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18386$as_echo "$as_me: updating cache $cache_file" >&6;}
18387      if test ! -f "$cache_file" || test -h "$cache_file"; then
18388	cat confcache >"$cache_file"
18389      else
18390        case $cache_file in #(
18391        */* | ?:*)
18392	  mv -f confcache "$cache_file"$$ &&
18393	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18394        *)
18395	  mv -f confcache "$cache_file" ;;
18396	esac
18397      fi
18398    fi
18399  else
18400    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18401$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18402  fi
18403fi
18404rm -f confcache
18405
18406test "x$prefix" = xNONE && prefix=$ac_default_prefix
18407# Let make expand exec_prefix.
18408test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18409
18410DEFS=-DHAVE_CONFIG_H
18411
18412ac_libobjs=
18413ac_ltlibobjs=
18414U=
18415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18416  # 1. Remove the extension, and $U if already installed.
18417  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18418  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18419  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18420  #    will be set to the directory where LIBOBJS objects are built.
18421  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18422  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18423done
18424LIBOBJS=$ac_libobjs
18425
18426LTLIBOBJS=$ac_ltlibobjs
18427
18428
18429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18430$as_echo_n "checking that generated files are newer than configure... " >&6; }
18431   if test -n "$am_sleep_pid"; then
18432     # Hide warnings about reused PIDs.
18433     wait $am_sleep_pid 2>/dev/null
18434   fi
18435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18436$as_echo "done" >&6; }
18437 if test -n "$EXEEXT"; then
18438  am__EXEEXT_TRUE=
18439  am__EXEEXT_FALSE='#'
18440else
18441  am__EXEEXT_TRUE='#'
18442  am__EXEEXT_FALSE=
18443fi
18444
18445if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18446  as_fn_error $? "conditional \"AMDEP\" was never defined.
18447Usually this means the macro was only invoked conditionally." "$LINENO" 5
18448fi
18449if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18450  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18451Usually this means the macro was only invoked conditionally." "$LINENO" 5
18452fi
18453if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then
18454  as_fn_error $? "conditional \"TARGET_LINUX\" was never defined.
18455Usually this means the macro was only invoked conditionally." "$LINENO" 5
18456fi
18457if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then
18458  as_fn_error $? "conditional \"TARGET_LINUX\" was never defined.
18459Usually this means the macro was only invoked conditionally." "$LINENO" 5
18460fi
18461if test -z "${HAVE_PYDOCUTILS_TRUE}" && test -z "${HAVE_PYDOCUTILS_FALSE}"; then
18462  as_fn_error $? "conditional \"HAVE_PYDOCUTILS\" was never defined.
18463Usually this means the macro was only invoked conditionally." "$LINENO" 5
18464fi
18465if test -z "${ENABLE_SYSTEMD_TRUE}" && test -z "${ENABLE_SYSTEMD_FALSE}"; then
18466  as_fn_error $? "conditional \"ENABLE_SYSTEMD\" was never defined.
18467Usually this means the macro was only invoked conditionally." "$LINENO" 5
18468fi
18469if test -z "${HAVE_SITNL_TRUE}" && test -z "${HAVE_SITNL_FALSE}"; then
18470  as_fn_error $? "conditional \"HAVE_SITNL\" was never defined.
18471Usually this means the macro was only invoked conditionally." "$LINENO" 5
18472fi
18473if test -z "${HAVE_SITNL_TRUE}" && test -z "${HAVE_SITNL_FALSE}"; then
18474  as_fn_error $? "conditional \"HAVE_SITNL\" was never defined.
18475Usually this means the macro was only invoked conditionally." "$LINENO" 5
18476fi
18477if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
18478  as_fn_error $? "conditional \"WIN32\" was never defined.
18479Usually this means the macro was only invoked conditionally." "$LINENO" 5
18480fi
18481if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
18482  as_fn_error $? "conditional \"GIT_CHECKOUT\" was never defined.
18483Usually this means the macro was only invoked conditionally." "$LINENO" 5
18484fi
18485if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
18486  as_fn_error $? "conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
18487Usually this means the macro was only invoked conditionally." "$LINENO" 5
18488fi
18489if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
18490  as_fn_error $? "conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
18491Usually this means the macro was only invoked conditionally." "$LINENO" 5
18492fi
18493if test -z "${HAVE_LD_WRAP_SUPPORT_TRUE}" && test -z "${HAVE_LD_WRAP_SUPPORT_FALSE}"; then
18494  as_fn_error $? "conditional \"HAVE_LD_WRAP_SUPPORT\" was never defined.
18495Usually this means the macro was only invoked conditionally." "$LINENO" 5
18496fi
18497if test -z "${OPENSSL_ENGINE_TRUE}" && test -z "${OPENSSL_ENGINE_FALSE}"; then
18498  as_fn_error $? "conditional \"OPENSSL_ENGINE\" was never defined.
18499Usually this means the macro was only invoked conditionally." "$LINENO" 5
18500fi
18501if test -z "${ENABLE_UNITTESTS_TRUE}" && test -z "${ENABLE_UNITTESTS_FALSE}"; then
18502  as_fn_error $? "conditional \"ENABLE_UNITTESTS\" was never defined.
18503Usually this means the macro was only invoked conditionally." "$LINENO" 5
18504fi
18505
18506: "${CONFIG_STATUS=./config.status}"
18507ac_write_fail=0
18508ac_clean_files_save=$ac_clean_files
18509ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18510{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18511$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18512as_write_fail=0
18513cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18514#! $SHELL
18515# Generated by $as_me.
18516# Run this file to recreate the current configuration.
18517# Compiler output produced by configure, useful for debugging
18518# configure, is in config.log if it exists.
18519
18520debug=false
18521ac_cs_recheck=false
18522ac_cs_silent=false
18523
18524SHELL=\${CONFIG_SHELL-$SHELL}
18525export SHELL
18526_ASEOF
18527cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18528## -------------------- ##
18529## M4sh Initialization. ##
18530## -------------------- ##
18531
18532# Be more Bourne compatible
18533DUALCASE=1; export DUALCASE # for MKS sh
18534if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18535  emulate sh
18536  NULLCMD=:
18537  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18538  # is contrary to our usage.  Disable this feature.
18539  alias -g '${1+"$@"}'='"$@"'
18540  setopt NO_GLOB_SUBST
18541else
18542  case `(set -o) 2>/dev/null` in #(
18543  *posix*) :
18544    set -o posix ;; #(
18545  *) :
18546     ;;
18547esac
18548fi
18549
18550
18551as_nl='
18552'
18553export as_nl
18554# Printing a long string crashes Solaris 7 /usr/bin/printf.
18555as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18556as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18557as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18558# Prefer a ksh shell builtin over an external printf program on Solaris,
18559# but without wasting forks for bash or zsh.
18560if test -z "$BASH_VERSION$ZSH_VERSION" \
18561    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18562  as_echo='print -r --'
18563  as_echo_n='print -rn --'
18564elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18565  as_echo='printf %s\n'
18566  as_echo_n='printf %s'
18567else
18568  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18569    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18570    as_echo_n='/usr/ucb/echo -n'
18571  else
18572    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18573    as_echo_n_body='eval
18574      arg=$1;
18575      case $arg in #(
18576      *"$as_nl"*)
18577	expr "X$arg" : "X\\(.*\\)$as_nl";
18578	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18579      esac;
18580      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18581    '
18582    export as_echo_n_body
18583    as_echo_n='sh -c $as_echo_n_body as_echo'
18584  fi
18585  export as_echo_body
18586  as_echo='sh -c $as_echo_body as_echo'
18587fi
18588
18589# The user is always right.
18590if test "${PATH_SEPARATOR+set}" != set; then
18591  PATH_SEPARATOR=:
18592  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18593    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18594      PATH_SEPARATOR=';'
18595  }
18596fi
18597
18598
18599# IFS
18600# We need space, tab and new line, in precisely that order.  Quoting is
18601# there to prevent editors from complaining about space-tab.
18602# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18603# splitting by setting IFS to empty value.)
18604IFS=" ""	$as_nl"
18605
18606# Find who we are.  Look in the path if we contain no directory separator.
18607as_myself=
18608case $0 in #((
18609  *[\\/]* ) as_myself=$0 ;;
18610  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18611for as_dir in $PATH
18612do
18613  IFS=$as_save_IFS
18614  test -z "$as_dir" && as_dir=.
18615    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18616  done
18617IFS=$as_save_IFS
18618
18619     ;;
18620esac
18621# We did not find ourselves, most probably we were run as `sh COMMAND'
18622# in which case we are not to be found in the path.
18623if test "x$as_myself" = x; then
18624  as_myself=$0
18625fi
18626if test ! -f "$as_myself"; then
18627  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18628  exit 1
18629fi
18630
18631# Unset variables that we do not need and which cause bugs (e.g. in
18632# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18633# suppresses any "Segmentation fault" message there.  '((' could
18634# trigger a bug in pdksh 5.2.14.
18635for as_var in BASH_ENV ENV MAIL MAILPATH
18636do eval test x\${$as_var+set} = xset \
18637  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18638done
18639PS1='$ '
18640PS2='> '
18641PS4='+ '
18642
18643# NLS nuisances.
18644LC_ALL=C
18645export LC_ALL
18646LANGUAGE=C
18647export LANGUAGE
18648
18649# CDPATH.
18650(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18651
18652
18653# as_fn_error STATUS ERROR [LINENO LOG_FD]
18654# ----------------------------------------
18655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18657# script with STATUS, using 1 if that was 0.
18658as_fn_error ()
18659{
18660  as_status=$1; test $as_status -eq 0 && as_status=1
18661  if test "$4"; then
18662    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18663    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18664  fi
18665  $as_echo "$as_me: error: $2" >&2
18666  as_fn_exit $as_status
18667} # as_fn_error
18668
18669
18670# as_fn_set_status STATUS
18671# -----------------------
18672# Set $? to STATUS, without forking.
18673as_fn_set_status ()
18674{
18675  return $1
18676} # as_fn_set_status
18677
18678# as_fn_exit STATUS
18679# -----------------
18680# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18681as_fn_exit ()
18682{
18683  set +e
18684  as_fn_set_status $1
18685  exit $1
18686} # as_fn_exit
18687
18688# as_fn_unset ax_cv_socklen_t_equiv
18689# ---------------------------------
18690# Portably unset VAR.
18691as_fn_unset ()
18692{
18693  { eval $1=; unset $1;}
18694}
18695as_unset=as_fn_unset
18696# as_fn_append ax_cv_socklen_t_equiv VALUE
18697# ----------------------------------------
18698# Append the text in VALUE to the end of the definition contained in VAR. Take
18699# advantage of any shell optimizations that allow amortized linear growth over
18700# repeated appends, instead of the typical quadratic growth present in naive
18701# implementations.
18702if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18703  eval 'as_fn_append ()
18704  {
18705    eval $1+=\$2
18706  }'
18707else
18708  as_fn_append ()
18709  {
18710    eval $1=\$$1\$2
18711  }
18712fi # as_fn_append
18713
18714# as_fn_arith ARG...
18715# ------------------
18716# Perform arithmetic evaluation on the ARGs, and store the result in the
18717# global $as_val. Take advantage of shells that can avoid forks. The arguments
18718# must be portable across $(()) and expr.
18719if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18720  eval 'as_fn_arith ()
18721  {
18722    as_val=$(( $* ))
18723  }'
18724else
18725  as_fn_arith ()
18726  {
18727    as_val=`expr "$@" || test $? -eq 1`
18728  }
18729fi # as_fn_arith
18730
18731
18732if expr a : '\(a\)' >/dev/null 2>&1 &&
18733   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18734  as_expr=expr
18735else
18736  as_expr=false
18737fi
18738
18739if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18740  as_basename=basename
18741else
18742  as_basename=false
18743fi
18744
18745if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18746  as_dirname=dirname
18747else
18748  as_dirname=false
18749fi
18750
18751as_me=`$as_basename -- "$0" ||
18752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18753	 X"$0" : 'X\(//\)$' \| \
18754	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18755$as_echo X/"$0" |
18756    sed '/^.*\/\([^/][^/]*\)\/*$/{
18757	    s//\1/
18758	    q
18759	  }
18760	  /^X\/\(\/\/\)$/{
18761	    s//\1/
18762	    q
18763	  }
18764	  /^X\/\(\/\).*/{
18765	    s//\1/
18766	    q
18767	  }
18768	  s/.*/./; q'`
18769
18770# Avoid depending upon Character Ranges.
18771as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18772as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18773as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18774as_cr_digits='0123456789'
18775as_cr_alnum=$as_cr_Letters$as_cr_digits
18776
18777ECHO_C= ECHO_N= ECHO_T=
18778case `echo -n x` in #(((((
18779-n*)
18780  case `echo 'xy\c'` in
18781  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18782  xy)  ECHO_C='\c';;
18783  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18784       ECHO_T='	';;
18785  esac;;
18786*)
18787  ECHO_N='-n';;
18788esac
18789
18790rm -f conf$$ conf$$.exe conf$$.file
18791if test -d conf$$.dir; then
18792  rm -f conf$$.dir/conf$$.file
18793else
18794  rm -f conf$$.dir
18795  mkdir conf$$.dir 2>/dev/null
18796fi
18797if (echo >conf$$.file) 2>/dev/null; then
18798  if ln -s conf$$.file conf$$ 2>/dev/null; then
18799    as_ln_s='ln -s'
18800    # ... but there are two gotchas:
18801    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18802    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18803    # In both cases, we have to default to `cp -pR'.
18804    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18805      as_ln_s='cp -pR'
18806  elif ln conf$$.file conf$$ 2>/dev/null; then
18807    as_ln_s=ln
18808  else
18809    as_ln_s='cp -pR'
18810  fi
18811else
18812  as_ln_s='cp -pR'
18813fi
18814rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18815rmdir conf$$.dir 2>/dev/null
18816
18817
18818# as_fn_mkdir_p
18819# -------------
18820# Create "$as_dir" as a directory, including parents if necessary.
18821as_fn_mkdir_p ()
18822{
18823
18824  case $as_dir in #(
18825  -*) as_dir=./$as_dir;;
18826  esac
18827  test -d "$as_dir" || eval $as_mkdir_p || {
18828    as_dirs=
18829    while :; do
18830      case $as_dir in #(
18831      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18832      *) as_qdir=$as_dir;;
18833      esac
18834      as_dirs="'$as_qdir' $as_dirs"
18835      as_dir=`$as_dirname -- "$as_dir" ||
18836$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837	 X"$as_dir" : 'X\(//\)[^/]' \| \
18838	 X"$as_dir" : 'X\(//\)$' \| \
18839	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18840$as_echo X"$as_dir" |
18841    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18842	    s//\1/
18843	    q
18844	  }
18845	  /^X\(\/\/\)[^/].*/{
18846	    s//\1/
18847	    q
18848	  }
18849	  /^X\(\/\/\)$/{
18850	    s//\1/
18851	    q
18852	  }
18853	  /^X\(\/\).*/{
18854	    s//\1/
18855	    q
18856	  }
18857	  s/.*/./; q'`
18858      test -d "$as_dir" && break
18859    done
18860    test -z "$as_dirs" || eval "mkdir $as_dirs"
18861  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18862
18863
18864} # as_fn_mkdir_p
18865if mkdir -p . 2>/dev/null; then
18866  as_mkdir_p='mkdir -p "$as_dir"'
18867else
18868  test -d ./-p && rmdir ./-p
18869  as_mkdir_p=false
18870fi
18871
18872
18873# as_fn_executable_p FILE
18874# -----------------------
18875# Test if FILE is an executable regular file.
18876as_fn_executable_p ()
18877{
18878  test -f "$1" && test -x "$1"
18879} # as_fn_executable_p
18880as_test_x='test -x'
18881as_executable_p=as_fn_executable_p
18882
18883# Sed expression to map a string onto a valid CPP name.
18884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18885
18886# Sed expression to map a string onto a valid variable name.
18887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18888
18889
18890exec 6>&1
18891## ----------------------------------- ##
18892## Main body of $CONFIG_STATUS script. ##
18893## ----------------------------------- ##
18894_ASEOF
18895test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18896
18897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18898# Save the log message, to keep $0 and so on meaningful, and to
18899# report actual input values of CONFIG_FILES etc. instead of their
18900# values after options handling.
18901ac_log="
18902This file was extended by OpenVPN $as_me 2.5.6, which was
18903generated by GNU Autoconf 2.69.  Invocation command line was
18904
18905  CONFIG_FILES    = $CONFIG_FILES
18906  CONFIG_HEADERS  = $CONFIG_HEADERS
18907  CONFIG_LINKS    = $CONFIG_LINKS
18908  CONFIG_COMMANDS = $CONFIG_COMMANDS
18909  $ $0 $@
18910
18911on `(hostname || uname -n) 2>/dev/null | sed 1q`
18912"
18913
18914_ACEOF
18915
18916case $ac_config_files in *"
18917"*) set x $ac_config_files; shift; ac_config_files=$*;;
18918esac
18919
18920case $ac_config_headers in *"
18921"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18922esac
18923
18924
18925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18926# Files that config.status was made for.
18927config_files="$ac_config_files"
18928config_headers="$ac_config_headers"
18929config_commands="$ac_config_commands"
18930
18931_ACEOF
18932
18933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18934ac_cs_usage="\
18935\`$as_me' instantiates files and other configuration actions
18936from templates according to the current configuration.  Unless the files
18937and actions are specified as TAGs, all are instantiated by default.
18938
18939Usage: $0 [OPTION]... [TAG]...
18940
18941  -h, --help       print this help, then exit
18942  -V, --version    print version number and configuration settings, then exit
18943      --config     print configuration, then exit
18944  -q, --quiet, --silent
18945                   do not print progress messages
18946  -d, --debug      don't remove temporary files
18947      --recheck    update $as_me by reconfiguring in the same conditions
18948      --file=FILE[:TEMPLATE]
18949                   instantiate the configuration file FILE
18950      --header=FILE[:TEMPLATE]
18951                   instantiate the configuration header FILE
18952
18953Configuration files:
18954$config_files
18955
18956Configuration headers:
18957$config_headers
18958
18959Configuration commands:
18960$config_commands
18961
18962Report bugs to <openvpn-users@lists.sourceforge.net>."
18963
18964_ACEOF
18965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18966ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18967ac_cs_version="\\
18968OpenVPN config.status 2.5.6
18969configured by $0, generated by GNU Autoconf 2.69,
18970  with options \\"\$ac_cs_config\\"
18971
18972Copyright (C) 2012 Free Software Foundation, Inc.
18973This config.status script is free software; the Free Software Foundation
18974gives unlimited permission to copy, distribute and modify it."
18975
18976ac_pwd='$ac_pwd'
18977srcdir='$srcdir'
18978INSTALL='$INSTALL'
18979MKDIR_P='$MKDIR_P'
18980AWK='$AWK'
18981test -n "\$AWK" || AWK=awk
18982_ACEOF
18983
18984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18985# The default lists apply if the user does not specify any file.
18986ac_need_defaults=:
18987while test $# != 0
18988do
18989  case $1 in
18990  --*=?*)
18991    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18992    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18993    ac_shift=:
18994    ;;
18995  --*=)
18996    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18997    ac_optarg=
18998    ac_shift=:
18999    ;;
19000  *)
19001    ac_option=$1
19002    ac_optarg=$2
19003    ac_shift=shift
19004    ;;
19005  esac
19006
19007  case $ac_option in
19008  # Handling of the options.
19009  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19010    ac_cs_recheck=: ;;
19011  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19012    $as_echo "$ac_cs_version"; exit ;;
19013  --config | --confi | --conf | --con | --co | --c )
19014    $as_echo "$ac_cs_config"; exit ;;
19015  --debug | --debu | --deb | --de | --d | -d )
19016    debug=: ;;
19017  --file | --fil | --fi | --f )
19018    $ac_shift
19019    case $ac_optarg in
19020    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19021    '') as_fn_error $? "missing file argument" ;;
19022    esac
19023    as_fn_append CONFIG_FILES " '$ac_optarg'"
19024    ac_need_defaults=false;;
19025  --header | --heade | --head | --hea )
19026    $ac_shift
19027    case $ac_optarg in
19028    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19029    esac
19030    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19031    ac_need_defaults=false;;
19032  --he | --h)
19033    # Conflict between --help and --header
19034    as_fn_error $? "ambiguous option: \`$1'
19035Try \`$0 --help' for more information.";;
19036  --help | --hel | -h )
19037    $as_echo "$ac_cs_usage"; exit ;;
19038  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19039  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19040    ac_cs_silent=: ;;
19041
19042  # This is an error.
19043  -*) as_fn_error $? "unrecognized option: \`$1'
19044Try \`$0 --help' for more information." ;;
19045
19046  *) as_fn_append ac_config_targets " $1"
19047     ac_need_defaults=false ;;
19048
19049  esac
19050  shift
19051done
19052
19053ac_configure_extra_args=
19054
19055if $ac_cs_silent; then
19056  exec 6>/dev/null
19057  ac_configure_extra_args="$ac_configure_extra_args --silent"
19058fi
19059
19060_ACEOF
19061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062if \$ac_cs_recheck; then
19063  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19064  shift
19065  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19066  CONFIG_SHELL='$SHELL'
19067  export CONFIG_SHELL
19068  exec "\$@"
19069fi
19070
19071_ACEOF
19072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19073exec 5>>config.log
19074{
19075  echo
19076  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19077## Running $as_me. ##
19078_ASBOX
19079  $as_echo "$ac_log"
19080} >&5
19081
19082_ACEOF
19083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19084#
19085# INIT-COMMANDS
19086#
19087AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19088
19089
19090# The HP-UX ksh and POSIX shell print the target directory to stdout
19091# if CDPATH is set.
19092(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19093
19094sed_quote_subst='$sed_quote_subst'
19095double_quote_subst='$double_quote_subst'
19096delay_variable_subst='$delay_variable_subst'
19097macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19098macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19099AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19100DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19101OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19102enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19103enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19104pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19105enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19106shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19107SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19108ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19109PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19110host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19111host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19112host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19113build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19114build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19115build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19116SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19117Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19118GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19119EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19120FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19121LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19122NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19123LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19124max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19125ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19126exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19127lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19128lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19129lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19130lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19131lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19132reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19133reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19134deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19135file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19136file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19137want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19138sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19139AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19140AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19141archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19142STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19143RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19144old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19145old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19146old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19147lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19148CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19149CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19150compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19151GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19152lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19153lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19154lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19155lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19156lt_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"`'
19157lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19158nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19159lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19160lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19161objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19162MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19163lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19164lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19165lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19166lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19167lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19168need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19169MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19170DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19171NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19172LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19173OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19174OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19175libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19176shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19177extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19178archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19179enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19180export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19181whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19182compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19183old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19184old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19185archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19186archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19187module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19188module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19189with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19190allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19191no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19192hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19193hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19194hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19195hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19196hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19197hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19198hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19199inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19200link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19201always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19202export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19203exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19204include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19205prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19206postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19207file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19208variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19209need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19210need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19211version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19212runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19213shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19214shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19215libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19216library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19217soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19218install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19219postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19220postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19221finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19222finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19223hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19224sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19225configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19226configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19227hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19228enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19229enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19230enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19231old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19232striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19233LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
19234reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
19235reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
19236old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19237compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
19238GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
19239lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
19240lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
19241lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
19242lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
19243lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
19244archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
19245enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
19246export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19247whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19248compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
19249old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
19250old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
19251archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19252archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19253module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
19254module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19255with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
19256allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19257no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19258hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19259hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
19260hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
19261hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
19262hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
19263hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
19264hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
19265inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
19266link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
19267always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
19268export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
19269exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19270include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19271prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19272postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19273file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
19274hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
19275
19276LTCC='$LTCC'
19277LTCFLAGS='$LTCFLAGS'
19278compiler='$compiler_DEFAULT'
19279
19280# A function that is used when there is no print builtin or printf.
19281func_fallback_echo ()
19282{
19283  eval 'cat <<_LTECHO_EOF
19284\$1
19285_LTECHO_EOF'
19286}
19287
19288# Quote evaled strings.
19289for var in AS \
19290DLLTOOL \
19291OBJDUMP \
19292SHELL \
19293ECHO \
19294PATH_SEPARATOR \
19295SED \
19296GREP \
19297EGREP \
19298FGREP \
19299LD \
19300NM \
19301LN_S \
19302lt_SP2NL \
19303lt_NL2SP \
19304reload_flag \
19305deplibs_check_method \
19306file_magic_cmd \
19307file_magic_glob \
19308want_nocaseglob \
19309sharedlib_from_linklib_cmd \
19310AR \
19311AR_FLAGS \
19312archiver_list_spec \
19313STRIP \
19314RANLIB \
19315CC \
19316CFLAGS \
19317compiler \
19318lt_cv_sys_global_symbol_pipe \
19319lt_cv_sys_global_symbol_to_cdecl \
19320lt_cv_sys_global_symbol_to_import \
19321lt_cv_sys_global_symbol_to_c_name_address \
19322lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19323lt_cv_nm_interface \
19324nm_file_list_spec \
19325lt_cv_truncate_bin \
19326lt_prog_compiler_no_builtin_flag \
19327lt_prog_compiler_pic \
19328lt_prog_compiler_wl \
19329lt_prog_compiler_static \
19330lt_cv_prog_compiler_c_o \
19331need_locks \
19332MANIFEST_TOOL \
19333DSYMUTIL \
19334NMEDIT \
19335LIPO \
19336OTOOL \
19337OTOOL64 \
19338shrext_cmds \
19339export_dynamic_flag_spec \
19340whole_archive_flag_spec \
19341compiler_needs_object \
19342with_gnu_ld \
19343allow_undefined_flag \
19344no_undefined_flag \
19345hardcode_libdir_flag_spec \
19346hardcode_libdir_separator \
19347exclude_expsyms \
19348include_expsyms \
19349file_list_spec \
19350variables_saved_for_relink \
19351libname_spec \
19352library_names_spec \
19353soname_spec \
19354install_override_mode \
19355finish_eval \
19356old_striplib \
19357striplib \
19358LD_RC \
19359reload_flag_RC \
19360compiler_RC \
19361lt_prog_compiler_no_builtin_flag_RC \
19362lt_prog_compiler_pic_RC \
19363lt_prog_compiler_wl_RC \
19364lt_prog_compiler_static_RC \
19365lt_cv_prog_compiler_c_o_RC \
19366export_dynamic_flag_spec_RC \
19367whole_archive_flag_spec_RC \
19368compiler_needs_object_RC \
19369with_gnu_ld_RC \
19370allow_undefined_flag_RC \
19371no_undefined_flag_RC \
19372hardcode_libdir_flag_spec_RC \
19373hardcode_libdir_separator_RC \
19374exclude_expsyms_RC \
19375include_expsyms_RC \
19376file_list_spec_RC; do
19377    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19378    *[\\\\\\\`\\"\\\$]*)
19379      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19380      ;;
19381    *)
19382      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19383      ;;
19384    esac
19385done
19386
19387# Double-quote double-evaled strings.
19388for var in reload_cmds \
19389old_postinstall_cmds \
19390old_postuninstall_cmds \
19391old_archive_cmds \
19392extract_expsyms_cmds \
19393old_archive_from_new_cmds \
19394old_archive_from_expsyms_cmds \
19395archive_cmds \
19396archive_expsym_cmds \
19397module_cmds \
19398module_expsym_cmds \
19399export_symbols_cmds \
19400prelink_cmds \
19401postlink_cmds \
19402postinstall_cmds \
19403postuninstall_cmds \
19404finish_cmds \
19405sys_lib_search_path_spec \
19406configure_time_dlsearch_path \
19407configure_time_lt_sys_library_path \
19408reload_cmds_RC \
19409old_archive_cmds_RC \
19410old_archive_from_new_cmds_RC \
19411old_archive_from_expsyms_cmds_RC \
19412archive_cmds_RC \
19413archive_expsym_cmds_RC \
19414module_cmds_RC \
19415module_expsym_cmds_RC \
19416export_symbols_cmds_RC \
19417prelink_cmds_RC \
19418postlink_cmds_RC; do
19419    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19420    *[\\\\\\\`\\"\\\$]*)
19421      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19422      ;;
19423    *)
19424      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19425      ;;
19426    esac
19427done
19428
19429ac_aux_dir='$ac_aux_dir'
19430
19431# See if we are running on zsh, and set the options that allow our
19432# commands through without removal of \ escapes INIT.
19433if test -n "\${ZSH_VERSION+set}"; then
19434   setopt NO_GLOB_SUBST
19435fi
19436
19437
19438    PACKAGE='$PACKAGE'
19439    VERSION='$VERSION'
19440    RM='$RM'
19441    ofile='$ofile'
19442
19443
19444
19445
19446
19447
19448_ACEOF
19449
19450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19451
19452# Handling of arguments.
19453for ac_config_target in $ac_config_targets
19454do
19455  case $ac_config_target in
19456    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19457    "include/openvpn-plugin.h") CONFIG_HEADERS="$CONFIG_HEADERS include/openvpn-plugin.h" ;;
19458    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19459    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19460    "version.sh") CONFIG_FILES="$CONFIG_FILES version.sh" ;;
19461    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19462    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
19463    "build/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/Makefile" ;;
19464    "build/msvc/msvc-generate/Makefile") CONFIG_FILES="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
19465    "distro/Makefile") CONFIG_FILES="$CONFIG_FILES distro/Makefile" ;;
19466    "distro/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES distro/systemd/Makefile" ;;
19467    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19468    "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
19469    "doc/doxygen/openvpn.doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/openvpn.doxyfile" ;;
19470    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19471    "sample/sample-plugins/Makefile") CONFIG_FILES="$CONFIG_FILES sample/sample-plugins/Makefile" ;;
19472    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19473    "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
19474    "src/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpn/Makefile" ;;
19475    "src/openvpnmsica/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnmsica/Makefile" ;;
19476    "src/openvpnserv/Makefile") CONFIG_FILES="$CONFIG_FILES src/openvpnserv/Makefile" ;;
19477    "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
19478    "src/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
19479    "src/plugins/down-root/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
19480    "src/tapctl/Makefile") CONFIG_FILES="$CONFIG_FILES src/tapctl/Makefile" ;;
19481    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19482    "tests/unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit_tests/Makefile" ;;
19483    "tests/unit_tests/example_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit_tests/example_test/Makefile" ;;
19484    "tests/unit_tests/openvpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit_tests/openvpn/Makefile" ;;
19485    "tests/unit_tests/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit_tests/plugins/Makefile" ;;
19486    "tests/unit_tests/plugins/auth-pam/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit_tests/plugins/auth-pam/Makefile" ;;
19487    "tests/unit_tests/engine-key/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit_tests/engine-key/Makefile" ;;
19488    "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
19489    "tests/t_client.sh") CONFIG_FILES="$CONFIG_FILES tests/t_client.sh" ;;
19490
19491  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19492  esac
19493done
19494
19495
19496# If the user did not use the arguments to specify the items to instantiate,
19497# then the envvar interface is used.  Set only those that are not.
19498# We use the long form for the default assignment because of an extremely
19499# bizarre bug on SunOS 4.1.3.
19500if $ac_need_defaults; then
19501  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19502  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19503  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19504fi
19505
19506# Have a temporary directory for convenience.  Make it in the build tree
19507# simply because there is no reason against having it here, and in addition,
19508# creating and moving files from /tmp can sometimes cause problems.
19509# Hook for its removal unless debugging.
19510# Note that there is a small window in which the directory will not be cleaned:
19511# after its creation but before its name has been assigned to `$tmp'.
19512$debug ||
19513{
19514  tmp= ac_tmp=
19515  trap 'exit_status=$?
19516  : "${ac_tmp:=$tmp}"
19517  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19518' 0
19519  trap 'as_fn_exit 1' 1 2 13 15
19520}
19521# Create a (secure) tmp directory for tmp files.
19522
19523{
19524  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19525  test -d "$tmp"
19526}  ||
19527{
19528  tmp=./conf$$-$RANDOM
19529  (umask 077 && mkdir "$tmp")
19530} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19531ac_tmp=$tmp
19532
19533# Set up the scripts for CONFIG_FILES section.
19534# No need to generate them if there are no CONFIG_FILES.
19535# This happens for instance with `./config.status config.h'.
19536if test -n "$CONFIG_FILES"; then
19537
19538
19539ac_cr=`echo X | tr X '\015'`
19540# On cygwin, bash can eat \r inside `` if the user requested igncr.
19541# But we know of no other shell where ac_cr would be empty at this
19542# point, so we can use a bashism as a fallback.
19543if test "x$ac_cr" = x; then
19544  eval ac_cr=\$\'\\r\'
19545fi
19546ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19547if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19548  ac_cs_awk_cr='\\r'
19549else
19550  ac_cs_awk_cr=$ac_cr
19551fi
19552
19553echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19554_ACEOF
19555
19556
19557{
19558  echo "cat >conf$$subs.awk <<_ACEOF" &&
19559  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19560  echo "_ACEOF"
19561} >conf$$subs.sh ||
19562  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19563ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19564ac_delim='%!_!# '
19565for ac_last_try in false false false false false :; do
19566  . ./conf$$subs.sh ||
19567    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19568
19569  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19570  if test $ac_delim_n = $ac_delim_num; then
19571    break
19572  elif $ac_last_try; then
19573    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19574  else
19575    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19576  fi
19577done
19578rm -f conf$$subs.sh
19579
19580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19581cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19582_ACEOF
19583sed -n '
19584h
19585s/^/S["/; s/!.*/"]=/
19586p
19587g
19588s/^[^!]*!//
19589:repl
19590t repl
19591s/'"$ac_delim"'$//
19592t delim
19593:nl
19594h
19595s/\(.\{148\}\)..*/\1/
19596t more1
19597s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19598p
19599n
19600b repl
19601:more1
19602s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19603p
19604g
19605s/.\{148\}//
19606t nl
19607:delim
19608h
19609s/\(.\{148\}\)..*/\1/
19610t more2
19611s/["\\]/\\&/g; s/^/"/; s/$/"/
19612p
19613b
19614:more2
19615s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19616p
19617g
19618s/.\{148\}//
19619t delim
19620' <conf$$subs.awk | sed '
19621/^[^""]/{
19622  N
19623  s/\n//
19624}
19625' >>$CONFIG_STATUS || ac_write_fail=1
19626rm -f conf$$subs.awk
19627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19628_ACAWK
19629cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19630  for (key in S) S_is_set[key] = 1
19631  FS = ""
19632
19633}
19634{
19635  line = $ 0
19636  nfields = split(line, field, "@")
19637  substed = 0
19638  len = length(field[1])
19639  for (i = 2; i < nfields; i++) {
19640    key = field[i]
19641    keylen = length(key)
19642    if (S_is_set[key]) {
19643      value = S[key]
19644      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19645      len += length(value) + length(field[++i])
19646      substed = 1
19647    } else
19648      len += 1 + keylen
19649  }
19650
19651  print line
19652}
19653
19654_ACAWK
19655_ACEOF
19656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19657if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19658  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19659else
19660  cat
19661fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19662  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19663_ACEOF
19664
19665# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19666# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19667# trailing colons and then remove the whole line if VPATH becomes empty
19668# (actually we leave an empty line to preserve line numbers).
19669if test "x$srcdir" = x.; then
19670  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19671h
19672s///
19673s/^/:/
19674s/[	 ]*$/:/
19675s/:\$(srcdir):/:/g
19676s/:\${srcdir}:/:/g
19677s/:@srcdir@:/:/g
19678s/^:*//
19679s/:*$//
19680x
19681s/\(=[	 ]*\).*/\1/
19682G
19683s/\n//
19684s/^[^=]*=[	 ]*$//
19685}'
19686fi
19687
19688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19689fi # test -n "$CONFIG_FILES"
19690
19691# Set up the scripts for CONFIG_HEADERS section.
19692# No need to generate them if there are no CONFIG_HEADERS.
19693# This happens for instance with `./config.status Makefile'.
19694if test -n "$CONFIG_HEADERS"; then
19695cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19696BEGIN {
19697_ACEOF
19698
19699# Transform confdefs.h into an awk script `defines.awk', embedded as
19700# here-document in config.status, that substitutes the proper values into
19701# config.h.in to produce config.h.
19702
19703# Create a delimiter string that does not exist in confdefs.h, to ease
19704# handling of long lines.
19705ac_delim='%!_!# '
19706for ac_last_try in false false :; do
19707  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19708  if test -z "$ac_tt"; then
19709    break
19710  elif $ac_last_try; then
19711    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19712  else
19713    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19714  fi
19715done
19716
19717# For the awk script, D is an array of macro values keyed by name,
19718# likewise P contains macro parameters if any.  Preserve backslash
19719# newline sequences.
19720
19721ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19722sed -n '
19723s/.\{148\}/&'"$ac_delim"'/g
19724t rset
19725:rset
19726s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19727t def
19728d
19729:def
19730s/\\$//
19731t bsnl
19732s/["\\]/\\&/g
19733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19734D["\1"]=" \3"/p
19735s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19736d
19737:bsnl
19738s/["\\]/\\&/g
19739s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19740D["\1"]=" \3\\\\\\n"\\/p
19741t cont
19742s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19743t cont
19744d
19745:cont
19746n
19747s/.\{148\}/&'"$ac_delim"'/g
19748t clear
19749:clear
19750s/\\$//
19751t bsnlc
19752s/["\\]/\\&/g; s/^/"/; s/$/"/p
19753d
19754:bsnlc
19755s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19756b cont
19757' <confdefs.h | sed '
19758s/'"$ac_delim"'/"\\\
19759"/g' >>$CONFIG_STATUS || ac_write_fail=1
19760
19761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19762  for (key in D) D_is_set[key] = 1
19763  FS = ""
19764}
19765/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19766  line = \$ 0
19767  split(line, arg, " ")
19768  if (arg[1] == "#") {
19769    defundef = arg[2]
19770    mac1 = arg[3]
19771  } else {
19772    defundef = substr(arg[1], 2)
19773    mac1 = arg[2]
19774  }
19775  split(mac1, mac2, "(") #)
19776  macro = mac2[1]
19777  prefix = substr(line, 1, index(line, defundef) - 1)
19778  if (D_is_set[macro]) {
19779    # Preserve the white space surrounding the "#".
19780    print prefix "define", macro P[macro] D[macro]
19781    next
19782  } else {
19783    # Replace #undef with comments.  This is necessary, for example,
19784    # in the case of _POSIX_SOURCE, which is predefined and required
19785    # on some systems where configure will not decide to define it.
19786    if (defundef == "undef") {
19787      print "/*", prefix defundef, macro, "*/"
19788      next
19789    }
19790  }
19791}
19792{ print }
19793_ACAWK
19794_ACEOF
19795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19796  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19797fi # test -n "$CONFIG_HEADERS"
19798
19799
19800eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19801shift
19802for ac_tag
19803do
19804  case $ac_tag in
19805  :[FHLC]) ac_mode=$ac_tag; continue;;
19806  esac
19807  case $ac_mode$ac_tag in
19808  :[FHL]*:*);;
19809  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19810  :[FH]-) ac_tag=-:-;;
19811  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19812  esac
19813  ac_save_IFS=$IFS
19814  IFS=:
19815  set x $ac_tag
19816  IFS=$ac_save_IFS
19817  shift
19818  ac_file=$1
19819  shift
19820
19821  case $ac_mode in
19822  :L) ac_source=$1;;
19823  :[FH])
19824    ac_file_inputs=
19825    for ac_f
19826    do
19827      case $ac_f in
19828      -) ac_f="$ac_tmp/stdin";;
19829      *) # Look for the file first in the build tree, then in the source tree
19830	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19831	 # because $ac_f cannot contain `:'.
19832	 test -f "$ac_f" ||
19833	   case $ac_f in
19834	   [\\/$]*) false;;
19835	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19836	   esac ||
19837	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19838      esac
19839      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19840      as_fn_append ac_file_inputs " '$ac_f'"
19841    done
19842
19843    # Let's still pretend it is `configure' which instantiates (i.e., don't
19844    # use $as_me), people would be surprised to read:
19845    #    /* config.h.  Generated by config.status.  */
19846    configure_input='Generated from '`
19847	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19848	`' by configure.'
19849    if test x"$ac_file" != x-; then
19850      configure_input="$ac_file.  $configure_input"
19851      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19852$as_echo "$as_me: creating $ac_file" >&6;}
19853    fi
19854    # Neutralize special characters interpreted by sed in replacement strings.
19855    case $configure_input in #(
19856    *\&* | *\|* | *\\* )
19857       ac_sed_conf_input=`$as_echo "$configure_input" |
19858       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19859    *) ac_sed_conf_input=$configure_input;;
19860    esac
19861
19862    case $ac_tag in
19863    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19864      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19865    esac
19866    ;;
19867  esac
19868
19869  ac_dir=`$as_dirname -- "$ac_file" ||
19870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19871	 X"$ac_file" : 'X\(//\)[^/]' \| \
19872	 X"$ac_file" : 'X\(//\)$' \| \
19873	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19874$as_echo X"$ac_file" |
19875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19876	    s//\1/
19877	    q
19878	  }
19879	  /^X\(\/\/\)[^/].*/{
19880	    s//\1/
19881	    q
19882	  }
19883	  /^X\(\/\/\)$/{
19884	    s//\1/
19885	    q
19886	  }
19887	  /^X\(\/\).*/{
19888	    s//\1/
19889	    q
19890	  }
19891	  s/.*/./; q'`
19892  as_dir="$ac_dir"; as_fn_mkdir_p
19893  ac_builddir=.
19894
19895case "$ac_dir" in
19896.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19897*)
19898  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19899  # A ".." for each directory in $ac_dir_suffix.
19900  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19901  case $ac_top_builddir_sub in
19902  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19903  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19904  esac ;;
19905esac
19906ac_abs_top_builddir=$ac_pwd
19907ac_abs_builddir=$ac_pwd$ac_dir_suffix
19908# for backward compatibility:
19909ac_top_builddir=$ac_top_build_prefix
19910
19911case $srcdir in
19912  .)  # We are building in place.
19913    ac_srcdir=.
19914    ac_top_srcdir=$ac_top_builddir_sub
19915    ac_abs_top_srcdir=$ac_pwd ;;
19916  [\\/]* | ?:[\\/]* )  # Absolute name.
19917    ac_srcdir=$srcdir$ac_dir_suffix;
19918    ac_top_srcdir=$srcdir
19919    ac_abs_top_srcdir=$srcdir ;;
19920  *) # Relative name.
19921    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19922    ac_top_srcdir=$ac_top_build_prefix$srcdir
19923    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19924esac
19925ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19926
19927
19928  case $ac_mode in
19929  :F)
19930  #
19931  # CONFIG_FILE
19932  #
19933
19934  case $INSTALL in
19935  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19936  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19937  esac
19938  ac_MKDIR_P=$MKDIR_P
19939  case $MKDIR_P in
19940  [\\/$]* | ?:[\\/]* ) ;;
19941  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19942  esac
19943_ACEOF
19944
19945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19946# If the template does not know about datarootdir, expand it.
19947# FIXME: This hack should be removed a few years after 2.60.
19948ac_datarootdir_hack=; ac_datarootdir_seen=
19949ac_sed_dataroot='
19950/datarootdir/ {
19951  p
19952  q
19953}
19954/@datadir@/p
19955/@docdir@/p
19956/@infodir@/p
19957/@localedir@/p
19958/@mandir@/p'
19959case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19960*datarootdir*) ac_datarootdir_seen=yes;;
19961*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19962  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19963$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19964_ACEOF
19965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19966  ac_datarootdir_hack='
19967  s&@datadir@&$datadir&g
19968  s&@docdir@&$docdir&g
19969  s&@infodir@&$infodir&g
19970  s&@localedir@&$localedir&g
19971  s&@mandir@&$mandir&g
19972  s&\\\${datarootdir}&$datarootdir&g' ;;
19973esac
19974_ACEOF
19975
19976# Neutralize VPATH when `$srcdir' = `.'.
19977# Shell code in configure.ac might set extrasub.
19978# FIXME: do we really want to maintain this feature?
19979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19980ac_sed_extra="$ac_vpsub
19981$extrasub
19982_ACEOF
19983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19984:t
19985/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19986s|@configure_input@|$ac_sed_conf_input|;t t
19987s&@top_builddir@&$ac_top_builddir_sub&;t t
19988s&@top_build_prefix@&$ac_top_build_prefix&;t t
19989s&@srcdir@&$ac_srcdir&;t t
19990s&@abs_srcdir@&$ac_abs_srcdir&;t t
19991s&@top_srcdir@&$ac_top_srcdir&;t t
19992s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19993s&@builddir@&$ac_builddir&;t t
19994s&@abs_builddir@&$ac_abs_builddir&;t t
19995s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19996s&@INSTALL@&$ac_INSTALL&;t t
19997s&@MKDIR_P@&$ac_MKDIR_P&;t t
19998$ac_datarootdir_hack
19999"
20000eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20001  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20002
20003test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20004  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20005  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20006      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20007  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20008which seems to be undefined.  Please make sure it is defined" >&5
20009$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20010which seems to be undefined.  Please make sure it is defined" >&2;}
20011
20012  rm -f "$ac_tmp/stdin"
20013  case $ac_file in
20014  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20015  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20016  esac \
20017  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20018 ;;
20019  :H)
20020  #
20021  # CONFIG_HEADER
20022  #
20023  if test x"$ac_file" != x-; then
20024    {
20025      $as_echo "/* $configure_input  */" \
20026      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20027    } >"$ac_tmp/config.h" \
20028      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20029    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20030      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20031$as_echo "$as_me: $ac_file is unchanged" >&6;}
20032    else
20033      rm -f "$ac_file"
20034      mv "$ac_tmp/config.h" "$ac_file" \
20035	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20036    fi
20037  else
20038    $as_echo "/* $configure_input  */" \
20039      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20040      || as_fn_error $? "could not create -" "$LINENO" 5
20041  fi
20042# Compute "$ac_file"'s index in $config_headers.
20043_am_arg="$ac_file"
20044_am_stamp_count=1
20045for _am_header in $config_headers :; do
20046  case $_am_header in
20047    $_am_arg | $_am_arg:* )
20048      break ;;
20049    * )
20050      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20051  esac
20052done
20053echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20054$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20055	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20056	 X"$_am_arg" : 'X\(//\)$' \| \
20057	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20058$as_echo X"$_am_arg" |
20059    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20060	    s//\1/
20061	    q
20062	  }
20063	  /^X\(\/\/\)[^/].*/{
20064	    s//\1/
20065	    q
20066	  }
20067	  /^X\(\/\/\)$/{
20068	    s//\1/
20069	    q
20070	  }
20071	  /^X\(\/\).*/{
20072	    s//\1/
20073	    q
20074	  }
20075	  s/.*/./; q'`/stamp-h$_am_stamp_count
20076 ;;
20077
20078  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20079$as_echo "$as_me: executing $ac_file commands" >&6;}
20080 ;;
20081  esac
20082
20083
20084  case $ac_file$ac_mode in
20085    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20086  # Older Autoconf quotes --file arguments for eval, but not when files
20087  # are listed without --file.  Let's play safe and only enable the eval
20088  # if we detect the quoting.
20089  # TODO: see whether this extra hack can be removed once we start
20090  # requiring Autoconf 2.70 or later.
20091  case $CONFIG_FILES in #(
20092  *\'*) :
20093    eval set x "$CONFIG_FILES" ;; #(
20094  *) :
20095    set x $CONFIG_FILES ;; #(
20096  *) :
20097     ;;
20098esac
20099  shift
20100  # Used to flag and report bootstrapping failures.
20101  am_rc=0
20102  for am_mf
20103  do
20104    # Strip MF so we end up with the name of the file.
20105    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20106    # Check whether this is an Automake generated Makefile which includes
20107    # dependency-tracking related rules and includes.
20108    # Grep'ing the whole file directly is not great: AIX grep has a line
20109    # limit of 2048, but all sed's we know have understand at least 4000.
20110    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20111      || continue
20112    am_dirpart=`$as_dirname -- "$am_mf" ||
20113$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20114	 X"$am_mf" : 'X\(//\)[^/]' \| \
20115	 X"$am_mf" : 'X\(//\)$' \| \
20116	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20117$as_echo X"$am_mf" |
20118    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20119	    s//\1/
20120	    q
20121	  }
20122	  /^X\(\/\/\)[^/].*/{
20123	    s//\1/
20124	    q
20125	  }
20126	  /^X\(\/\/\)$/{
20127	    s//\1/
20128	    q
20129	  }
20130	  /^X\(\/\).*/{
20131	    s//\1/
20132	    q
20133	  }
20134	  s/.*/./; q'`
20135    am_filepart=`$as_basename -- "$am_mf" ||
20136$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20137	 X"$am_mf" : 'X\(//\)$' \| \
20138	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20139$as_echo X/"$am_mf" |
20140    sed '/^.*\/\([^/][^/]*\)\/*$/{
20141	    s//\1/
20142	    q
20143	  }
20144	  /^X\/\(\/\/\)$/{
20145	    s//\1/
20146	    q
20147	  }
20148	  /^X\/\(\/\).*/{
20149	    s//\1/
20150	    q
20151	  }
20152	  s/.*/./; q'`
20153    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20154      && sed -e '/# am--include-marker/d' "$am_filepart" \
20155        | $MAKE -f - am--depfiles" >&5
20156   (cd "$am_dirpart" \
20157      && sed -e '/# am--include-marker/d' "$am_filepart" \
20158        | $MAKE -f - am--depfiles) >&5 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); } || am_rc=$?
20162  done
20163  if test $am_rc -ne 0; then
20164    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20166as_fn_error $? "Something went wrong bootstrapping makefile fragments
20167    for automatic dependency tracking.  If GNU make was not used, consider
20168    re-running the configure script with MAKE=\"gmake\" (or whatever is
20169    necessary).  You can also try re-running configure with the
20170    '--disable-dependency-tracking' option to at least be able to build
20171    the package (albeit without support for automatic dependency tracking).
20172See \`config.log' for more details" "$LINENO" 5; }
20173  fi
20174  { am_dirpart=; unset am_dirpart;}
20175  { am_filepart=; unset am_filepart;}
20176  { am_mf=; unset am_mf;}
20177  { am_rc=; unset am_rc;}
20178  rm -f conftest-deps.mk
20179}
20180 ;;
20181    "libtool":C)
20182
20183    # See if we are running on zsh, and set the options that allow our
20184    # commands through without removal of \ escapes.
20185    if test -n "${ZSH_VERSION+set}"; then
20186      setopt NO_GLOB_SUBST
20187    fi
20188
20189    cfgfile=${ofile}T
20190    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20191    $RM "$cfgfile"
20192
20193    cat <<_LT_EOF >> "$cfgfile"
20194#! $SHELL
20195# Generated automatically by $as_me ($PACKAGE) $VERSION
20196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20197# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20198
20199# Provide generalized library-building support services.
20200# Written by Gordon Matzigkeit, 1996
20201
20202# Copyright (C) 2014 Free Software Foundation, Inc.
20203# This is free software; see the source for copying conditions.  There is NO
20204# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20205
20206# GNU Libtool is free software; you can redistribute it and/or modify
20207# it under the terms of the GNU General Public License as published by
20208# the Free Software Foundation; either version 2 of of the License, or
20209# (at your option) any later version.
20210#
20211# As a special exception to the GNU General Public License, if you
20212# distribute this file as part of a program or library that is built
20213# using GNU Libtool, you may include this file under the  same
20214# distribution terms that you use for the rest of that program.
20215#
20216# GNU Libtool is distributed in the hope that it will be useful, but
20217# WITHOUT ANY WARRANTY; without even the implied warranty of
20218# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20219# GNU General Public License for more details.
20220#
20221# You should have received a copy of the GNU General Public License
20222# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20223
20224
20225# The names of the tagged configurations supported by this script.
20226available_tags='RC '
20227
20228# Configured defaults for sys_lib_dlsearch_path munging.
20229: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20230
20231# ### BEGIN LIBTOOL CONFIG
20232
20233# Which release of libtool.m4 was used?
20234macro_version=$macro_version
20235macro_revision=$macro_revision
20236
20237# Assembler program.
20238AS=$lt_AS
20239
20240# DLL creation program.
20241DLLTOOL=$lt_DLLTOOL
20242
20243# Object dumper program.
20244OBJDUMP=$lt_OBJDUMP
20245
20246# Whether or not to build shared libraries.
20247build_libtool_libs=$enable_shared
20248
20249# Whether or not to build static libraries.
20250build_old_libs=$enable_static
20251
20252# What type of objects to build.
20253pic_mode=$pic_mode
20254
20255# Whether or not to optimize for fast installation.
20256fast_install=$enable_fast_install
20257
20258# Shared archive member basename,for filename based shared library versioning on AIX.
20259shared_archive_member_spec=$shared_archive_member_spec
20260
20261# Shell to use when invoking shell scripts.
20262SHELL=$lt_SHELL
20263
20264# An echo program that protects backslashes.
20265ECHO=$lt_ECHO
20266
20267# The PATH separator for the build system.
20268PATH_SEPARATOR=$lt_PATH_SEPARATOR
20269
20270# The host system.
20271host_alias=$host_alias
20272host=$host
20273host_os=$host_os
20274
20275# The build system.
20276build_alias=$build_alias
20277build=$build
20278build_os=$build_os
20279
20280# A sed program that does not truncate output.
20281SED=$lt_SED
20282
20283# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20284Xsed="\$SED -e 1s/^X//"
20285
20286# A grep program that handles long lines.
20287GREP=$lt_GREP
20288
20289# An ERE matcher.
20290EGREP=$lt_EGREP
20291
20292# A literal string matcher.
20293FGREP=$lt_FGREP
20294
20295# A BSD- or MS-compatible name lister.
20296NM=$lt_NM
20297
20298# Whether we need soft or hard links.
20299LN_S=$lt_LN_S
20300
20301# What is the maximum length of a command?
20302max_cmd_len=$max_cmd_len
20303
20304# Object file suffix (normally "o").
20305objext=$ac_objext
20306
20307# Executable file suffix (normally "").
20308exeext=$exeext
20309
20310# whether the shell understands "unset".
20311lt_unset=$lt_unset
20312
20313# turn spaces into newlines.
20314SP2NL=$lt_lt_SP2NL
20315
20316# turn newlines into spaces.
20317NL2SP=$lt_lt_NL2SP
20318
20319# convert \$build file names to \$host format.
20320to_host_file_cmd=$lt_cv_to_host_file_cmd
20321
20322# convert \$build files to toolchain format.
20323to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20324
20325# Method to check whether dependent libraries are shared objects.
20326deplibs_check_method=$lt_deplibs_check_method
20327
20328# Command to use when deplibs_check_method = "file_magic".
20329file_magic_cmd=$lt_file_magic_cmd
20330
20331# How to find potential files when deplibs_check_method = "file_magic".
20332file_magic_glob=$lt_file_magic_glob
20333
20334# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20335want_nocaseglob=$lt_want_nocaseglob
20336
20337# Command to associate shared and link libraries.
20338sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20339
20340# The archiver.
20341AR=$lt_AR
20342
20343# Flags to create an archive.
20344AR_FLAGS=$lt_AR_FLAGS
20345
20346# How to feed a file listing to the archiver.
20347archiver_list_spec=$lt_archiver_list_spec
20348
20349# A symbol stripping program.
20350STRIP=$lt_STRIP
20351
20352# Commands used to install an old-style archive.
20353RANLIB=$lt_RANLIB
20354old_postinstall_cmds=$lt_old_postinstall_cmds
20355old_postuninstall_cmds=$lt_old_postuninstall_cmds
20356
20357# Whether to use a lock for old archive extraction.
20358lock_old_archive_extraction=$lock_old_archive_extraction
20359
20360# A C compiler.
20361LTCC=$lt_CC
20362
20363# LTCC compiler flags.
20364LTCFLAGS=$lt_CFLAGS
20365
20366# Take the output of nm and produce a listing of raw symbols and C names.
20367global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20368
20369# Transform the output of nm in a proper C declaration.
20370global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20371
20372# Transform the output of nm into a list of symbols to manually relocate.
20373global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20374
20375# Transform the output of nm in a C name address pair.
20376global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20377
20378# Transform the output of nm in a C name address pair when lib prefix is needed.
20379global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20380
20381# The name lister interface.
20382nm_interface=$lt_lt_cv_nm_interface
20383
20384# Specify filename containing input files for \$NM.
20385nm_file_list_spec=$lt_nm_file_list_spec
20386
20387# The root where to search for dependent libraries,and where our libraries should be installed.
20388lt_sysroot=$lt_sysroot
20389
20390# Command to truncate a binary pipe.
20391lt_truncate_bin=$lt_lt_cv_truncate_bin
20392
20393# The name of the directory that contains temporary libtool files.
20394objdir=$objdir
20395
20396# Used to examine libraries when file_magic_cmd begins with "file".
20397MAGIC_CMD=$MAGIC_CMD
20398
20399# Must we lock files when doing compilation?
20400need_locks=$lt_need_locks
20401
20402# Manifest tool.
20403MANIFEST_TOOL=$lt_MANIFEST_TOOL
20404
20405# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20406DSYMUTIL=$lt_DSYMUTIL
20407
20408# Tool to change global to local symbols on Mac OS X.
20409NMEDIT=$lt_NMEDIT
20410
20411# Tool to manipulate fat objects and archives on Mac OS X.
20412LIPO=$lt_LIPO
20413
20414# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20415OTOOL=$lt_OTOOL
20416
20417# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20418OTOOL64=$lt_OTOOL64
20419
20420# Old archive suffix (normally "a").
20421libext=$libext
20422
20423# Shared library suffix (normally ".so").
20424shrext_cmds=$lt_shrext_cmds
20425
20426# The commands to extract the exported symbol list from a shared archive.
20427extract_expsyms_cmds=$lt_extract_expsyms_cmds
20428
20429# Variables whose values should be saved in libtool wrapper scripts and
20430# restored at link time.
20431variables_saved_for_relink=$lt_variables_saved_for_relink
20432
20433# Do we need the "lib" prefix for modules?
20434need_lib_prefix=$need_lib_prefix
20435
20436# Do we need a version for libraries?
20437need_version=$need_version
20438
20439# Library versioning type.
20440version_type=$version_type
20441
20442# Shared library runtime path variable.
20443runpath_var=$runpath_var
20444
20445# Shared library path variable.
20446shlibpath_var=$shlibpath_var
20447
20448# Is shlibpath searched before the hard-coded library search path?
20449shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20450
20451# Format of library name prefix.
20452libname_spec=$lt_libname_spec
20453
20454# List of archive names.  First name is the real one, the rest are links.
20455# The last name is the one that the linker finds with -lNAME
20456library_names_spec=$lt_library_names_spec
20457
20458# The coded name of the library, if different from the real name.
20459soname_spec=$lt_soname_spec
20460
20461# Permission mode override for installation of shared libraries.
20462install_override_mode=$lt_install_override_mode
20463
20464# Command to use after installation of a shared archive.
20465postinstall_cmds=$lt_postinstall_cmds
20466
20467# Command to use after uninstallation of a shared archive.
20468postuninstall_cmds=$lt_postuninstall_cmds
20469
20470# Commands used to finish a libtool library installation in a directory.
20471finish_cmds=$lt_finish_cmds
20472
20473# As "finish_cmds", except a single script fragment to be evaled but
20474# not shown.
20475finish_eval=$lt_finish_eval
20476
20477# Whether we should hardcode library paths into libraries.
20478hardcode_into_libs=$hardcode_into_libs
20479
20480# Compile-time system search path for libraries.
20481sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20482
20483# Detected run-time system search path for libraries.
20484sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20485
20486# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20487configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20488
20489# Whether dlopen is supported.
20490dlopen_support=$enable_dlopen
20491
20492# Whether dlopen of programs is supported.
20493dlopen_self=$enable_dlopen_self
20494
20495# Whether dlopen of statically linked programs is supported.
20496dlopen_self_static=$enable_dlopen_self_static
20497
20498# Commands to strip libraries.
20499old_striplib=$lt_old_striplib
20500striplib=$lt_striplib
20501
20502
20503# The linker used to build libraries.
20504LD=$lt_LD
20505
20506# How to create reloadable object files.
20507reload_flag=$lt_reload_flag
20508reload_cmds=$lt_reload_cmds
20509
20510# Commands used to build an old-style archive.
20511old_archive_cmds=$lt_old_archive_cmds
20512
20513# A language specific compiler.
20514CC=$lt_compiler
20515
20516# Is the compiler the GNU compiler?
20517with_gcc=$GCC
20518
20519# Compiler flag to turn off builtin functions.
20520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20521
20522# Additional compiler flags for building library objects.
20523pic_flag=$lt_lt_prog_compiler_pic
20524
20525# How to pass a linker flag through the compiler.
20526wl=$lt_lt_prog_compiler_wl
20527
20528# Compiler flag to prevent dynamic linking.
20529link_static_flag=$lt_lt_prog_compiler_static
20530
20531# Does compiler simultaneously support -c and -o options?
20532compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20533
20534# Whether or not to add -lc for building shared libraries.
20535build_libtool_need_lc=$archive_cmds_need_lc
20536
20537# Whether or not to disallow shared libs when runtime libs are static.
20538allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20539
20540# Compiler flag to allow reflexive dlopens.
20541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20542
20543# Compiler flag to generate shared objects directly from archives.
20544whole_archive_flag_spec=$lt_whole_archive_flag_spec
20545
20546# Whether the compiler copes with passing no objects directly.
20547compiler_needs_object=$lt_compiler_needs_object
20548
20549# Create an old-style archive from a shared archive.
20550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20551
20552# Create a temporary old-style archive to link instead of a shared archive.
20553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20554
20555# Commands used to build a shared archive.
20556archive_cmds=$lt_archive_cmds
20557archive_expsym_cmds=$lt_archive_expsym_cmds
20558
20559# Commands used to build a loadable module if different from building
20560# a shared archive.
20561module_cmds=$lt_module_cmds
20562module_expsym_cmds=$lt_module_expsym_cmds
20563
20564# Whether we are building with GNU ld or not.
20565with_gnu_ld=$lt_with_gnu_ld
20566
20567# Flag that allows shared libraries with undefined symbols to be built.
20568allow_undefined_flag=$lt_allow_undefined_flag
20569
20570# Flag that enforces no undefined symbols.
20571no_undefined_flag=$lt_no_undefined_flag
20572
20573# Flag to hardcode \$libdir into a binary during linking.
20574# This must work even if \$libdir does not exist
20575hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20576
20577# Whether we need a single "-rpath" flag with a separated argument.
20578hardcode_libdir_separator=$lt_hardcode_libdir_separator
20579
20580# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20581# DIR into the resulting binary.
20582hardcode_direct=$hardcode_direct
20583
20584# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20585# DIR into the resulting binary and the resulting library dependency is
20586# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20587# library is relocated.
20588hardcode_direct_absolute=$hardcode_direct_absolute
20589
20590# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20591# into the resulting binary.
20592hardcode_minus_L=$hardcode_minus_L
20593
20594# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20595# into the resulting binary.
20596hardcode_shlibpath_var=$hardcode_shlibpath_var
20597
20598# Set to "yes" if building a shared library automatically hardcodes DIR
20599# into the library and all subsequent libraries and executables linked
20600# against it.
20601hardcode_automatic=$hardcode_automatic
20602
20603# Set to yes if linker adds runtime paths of dependent libraries
20604# to runtime path list.
20605inherit_rpath=$inherit_rpath
20606
20607# Whether libtool must link a program against all its dependency libraries.
20608link_all_deplibs=$link_all_deplibs
20609
20610# Set to "yes" if exported symbols are required.
20611always_export_symbols=$always_export_symbols
20612
20613# The commands to list exported symbols.
20614export_symbols_cmds=$lt_export_symbols_cmds
20615
20616# Symbols that should not be listed in the preloaded symbols.
20617exclude_expsyms=$lt_exclude_expsyms
20618
20619# Symbols that must always be exported.
20620include_expsyms=$lt_include_expsyms
20621
20622# Commands necessary for linking programs (against libraries) with templates.
20623prelink_cmds=$lt_prelink_cmds
20624
20625# Commands necessary for finishing linking programs.
20626postlink_cmds=$lt_postlink_cmds
20627
20628# Specify filename containing input files.
20629file_list_spec=$lt_file_list_spec
20630
20631# How to hardcode a shared library path into an executable.
20632hardcode_action=$hardcode_action
20633
20634# ### END LIBTOOL CONFIG
20635
20636_LT_EOF
20637
20638    cat <<'_LT_EOF' >> "$cfgfile"
20639
20640# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20641
20642# func_munge_path_list VARIABLE PATH
20643# -----------------------------------
20644# VARIABLE is name of variable containing _space_ separated list of
20645# directories to be munged by the contents of PATH, which is string
20646# having a format:
20647# "DIR[:DIR]:"
20648#       string "DIR[ DIR]" will be prepended to VARIABLE
20649# ":DIR[:DIR]"
20650#       string "DIR[ DIR]" will be appended to VARIABLE
20651# "DIRP[:DIRP]::[DIRA:]DIRA"
20652#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20653#       "DIRA[ DIRA]" will be appended to VARIABLE
20654# "DIR[:DIR]"
20655#       VARIABLE will be replaced by "DIR[ DIR]"
20656func_munge_path_list ()
20657{
20658    case x$2 in
20659    x)
20660        ;;
20661    *:)
20662        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20663        ;;
20664    x:*)
20665        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20666        ;;
20667    *::*)
20668        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20669        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20670        ;;
20671    *)
20672        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20673        ;;
20674    esac
20675}
20676
20677
20678# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20679func_cc_basename ()
20680{
20681    for cc_temp in $*""; do
20682      case $cc_temp in
20683        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20684        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20685        \-*) ;;
20686        *) break;;
20687      esac
20688    done
20689    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20690}
20691
20692
20693# ### END FUNCTIONS SHARED WITH CONFIGURE
20694
20695_LT_EOF
20696
20697  case $host_os in
20698  aix3*)
20699    cat <<\_LT_EOF >> "$cfgfile"
20700# AIX sometimes has problems with the GCC collect2 program.  For some
20701# reason, if we set the COLLECT_NAMES environment variable, the problems
20702# vanish in a puff of smoke.
20703if test set != "${COLLECT_NAMES+set}"; then
20704  COLLECT_NAMES=
20705  export COLLECT_NAMES
20706fi
20707_LT_EOF
20708    ;;
20709  esac
20710
20711
20712ltmain=$ac_aux_dir/ltmain.sh
20713
20714
20715  # We use sed instead of cat because bash on DJGPP gets confused if
20716  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20717  # text mode, it properly converts lines to CR/LF.  This bash problem
20718  # is reportedly fixed, but why not run on old versions too?
20719  sed '$q' "$ltmain" >> "$cfgfile" \
20720     || (rm -f "$cfgfile"; exit 1)
20721
20722   mv -f "$cfgfile" "$ofile" ||
20723    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20724  chmod +x "$ofile"
20725
20726
20727    cat <<_LT_EOF >> "$ofile"
20728
20729# ### BEGIN LIBTOOL TAG CONFIG: RC
20730
20731# The linker used to build libraries.
20732LD=$lt_LD_RC
20733
20734# How to create reloadable object files.
20735reload_flag=$lt_reload_flag_RC
20736reload_cmds=$lt_reload_cmds_RC
20737
20738# Commands used to build an old-style archive.
20739old_archive_cmds=$lt_old_archive_cmds_RC
20740
20741# A language specific compiler.
20742CC=$lt_compiler_RC
20743
20744# Is the compiler the GNU compiler?
20745with_gcc=$GCC_RC
20746
20747# Compiler flag to turn off builtin functions.
20748no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20749
20750# Additional compiler flags for building library objects.
20751pic_flag=$lt_lt_prog_compiler_pic_RC
20752
20753# How to pass a linker flag through the compiler.
20754wl=$lt_lt_prog_compiler_wl_RC
20755
20756# Compiler flag to prevent dynamic linking.
20757link_static_flag=$lt_lt_prog_compiler_static_RC
20758
20759# Does compiler simultaneously support -c and -o options?
20760compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20761
20762# Whether or not to add -lc for building shared libraries.
20763build_libtool_need_lc=$archive_cmds_need_lc_RC
20764
20765# Whether or not to disallow shared libs when runtime libs are static.
20766allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20767
20768# Compiler flag to allow reflexive dlopens.
20769export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20770
20771# Compiler flag to generate shared objects directly from archives.
20772whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20773
20774# Whether the compiler copes with passing no objects directly.
20775compiler_needs_object=$lt_compiler_needs_object_RC
20776
20777# Create an old-style archive from a shared archive.
20778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20779
20780# Create a temporary old-style archive to link instead of a shared archive.
20781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20782
20783# Commands used to build a shared archive.
20784archive_cmds=$lt_archive_cmds_RC
20785archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20786
20787# Commands used to build a loadable module if different from building
20788# a shared archive.
20789module_cmds=$lt_module_cmds_RC
20790module_expsym_cmds=$lt_module_expsym_cmds_RC
20791
20792# Whether we are building with GNU ld or not.
20793with_gnu_ld=$lt_with_gnu_ld_RC
20794
20795# Flag that allows shared libraries with undefined symbols to be built.
20796allow_undefined_flag=$lt_allow_undefined_flag_RC
20797
20798# Flag that enforces no undefined symbols.
20799no_undefined_flag=$lt_no_undefined_flag_RC
20800
20801# Flag to hardcode \$libdir into a binary during linking.
20802# This must work even if \$libdir does not exist
20803hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20804
20805# Whether we need a single "-rpath" flag with a separated argument.
20806hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20807
20808# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20809# DIR into the resulting binary.
20810hardcode_direct=$hardcode_direct_RC
20811
20812# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20813# DIR into the resulting binary and the resulting library dependency is
20814# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20815# library is relocated.
20816hardcode_direct_absolute=$hardcode_direct_absolute_RC
20817
20818# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20819# into the resulting binary.
20820hardcode_minus_L=$hardcode_minus_L_RC
20821
20822# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20823# into the resulting binary.
20824hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20825
20826# Set to "yes" if building a shared library automatically hardcodes DIR
20827# into the library and all subsequent libraries and executables linked
20828# against it.
20829hardcode_automatic=$hardcode_automatic_RC
20830
20831# Set to yes if linker adds runtime paths of dependent libraries
20832# to runtime path list.
20833inherit_rpath=$inherit_rpath_RC
20834
20835# Whether libtool must link a program against all its dependency libraries.
20836link_all_deplibs=$link_all_deplibs_RC
20837
20838# Set to "yes" if exported symbols are required.
20839always_export_symbols=$always_export_symbols_RC
20840
20841# The commands to list exported symbols.
20842export_symbols_cmds=$lt_export_symbols_cmds_RC
20843
20844# Symbols that should not be listed in the preloaded symbols.
20845exclude_expsyms=$lt_exclude_expsyms_RC
20846
20847# Symbols that must always be exported.
20848include_expsyms=$lt_include_expsyms_RC
20849
20850# Commands necessary for linking programs (against libraries) with templates.
20851prelink_cmds=$lt_prelink_cmds_RC
20852
20853# Commands necessary for finishing linking programs.
20854postlink_cmds=$lt_postlink_cmds_RC
20855
20856# Specify filename containing input files.
20857file_list_spec=$lt_file_list_spec_RC
20858
20859# How to hardcode a shared library path into an executable.
20860hardcode_action=$hardcode_action_RC
20861
20862# ### END LIBTOOL TAG CONFIG: RC
20863_LT_EOF
20864
20865 ;;
20866    "tests/t_client.sh":F) chmod +x tests/t_client.sh ;;
20867
20868  esac
20869done # for ac_tag
20870
20871
20872as_fn_exit 0
20873_ACEOF
20874ac_clean_files=$ac_clean_files_save
20875
20876test $ac_write_fail = 0 ||
20877  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20878
20879
20880# configure is writing to config.log, and then calls config.status.
20881# config.status does its own redirection, appending to config.log.
20882# Unfortunately, on DOS this fails, as config.log is still kept open
20883# by configure, so config.status won't be able to write to it; its
20884# output is simply discarded.  So we exec the FD to /dev/null,
20885# effectively closing config.log, so it can be properly (re)opened and
20886# appended to by config.status.  When coming back to configure, we
20887# need to make the FD available again.
20888if test "$no_create" != yes; then
20889  ac_cs_success=:
20890  ac_config_status_args=
20891  test "$silent" = yes &&
20892    ac_config_status_args="$ac_config_status_args --quiet"
20893  exec 5>/dev/null
20894  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20895  exec 5>>config.log
20896  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20897  # would make configure fail if this is the last instruction.
20898  $ac_cs_success || as_fn_exit 1
20899fi
20900if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20901  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20902$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20903fi
20904
20905