xref: /iperf/configure (revision f7817145)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for iperf 3.6+.
4#
5# Report bugs to <https://github.com/esnet/iperf>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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 [email protected] and
278$0: https://github.com/esnet/iperf about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do 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='iperf'
592PACKAGE_TARNAME='iperf'
593PACKAGE_VERSION='3.6+'
594PACKAGE_STRING='iperf 3.6+'
595PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
596PACKAGE_URL='https://software.es.net/iperf/'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638OPENSSL_LDFLAGS
639OPENSSL_LIBS
640OPENSSL_INCLUDES
641PKG_CONFIG
642ENABLE_PROFILING_FALSE
643ENABLE_PROFILING_TRUE
644CPP
645LT_SYS_LIBRARY_PATH
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652ac_ct_AR
653AR
654DLLTOOL
655OBJDUMP
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661EGREP
662GREP
663SED
664LIBTOOL
665LN_S
666RANLIB
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670am__nodep
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691MAINT
692MAINTAINER_MODE_FALSE
693MAINTAINER_MODE_TRUE
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740runstatedir
741localstatedir
742sharedstatedir
743sysconfdir
744datadir
745datarootdir
746libexecdir
747sbindir
748bindir
749program_transform_name
750prefix
751exec_prefix
752PACKAGE_URL
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL
760am__quote'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_silent_rules
765enable_maintainer_mode
766enable_dependency_tracking
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771with_aix_soname
772with_gnu_ld
773with_sysroot
774enable_libtool_lock
775enable_profiling
776with_openssl
777'
778      ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786LT_SYS_LIBRARY_PATH
787CPP'
788
789
790# Initialize some variables set by options.
791ac_init_help=
792ac_init_version=false
793ac_unrecognized_opts=
794ac_unrecognized_sep=
795# The variables have the same names as the options, with
796# dashes changed to underlines.
797cache_file=/dev/null
798exec_prefix=NONE
799no_create=
800no_recursion=
801prefix=NONE
802program_prefix=NONE
803program_suffix=NONE
804program_transform_name=s,x,x,
805silent=
806site=
807srcdir=
808verbose=
809x_includes=NONE
810x_libraries=NONE
811
812# Installation directory options.
813# These are left unexpanded so users can "make install exec_prefix=/foo"
814# and all the variables that are supposed to be based on exec_prefix
815# by default will actually change.
816# Use braces instead of parens because sh, perl, etc. also accept them.
817# (The list follows the same order as the GNU Coding Standards.)
818bindir='${exec_prefix}/bin'
819sbindir='${exec_prefix}/sbin'
820libexecdir='${exec_prefix}/libexec'
821datarootdir='${prefix}/share'
822datadir='${datarootdir}'
823sysconfdir='${prefix}/etc'
824sharedstatedir='${prefix}/com'
825localstatedir='${prefix}/var'
826runstatedir='${localstatedir}/run'
827includedir='${prefix}/include'
828oldincludedir='/usr/include'
829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
838
839ac_prev=
840ac_dashdash=
841for ac_option
842do
843  # If the previous option needs an argument, assign it.
844  if test -n "$ac_prev"; then
845    eval $ac_prev=\$ac_option
846    ac_prev=
847    continue
848  fi
849
850  case $ac_option in
851  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852  *=)   ac_optarg= ;;
853  *)    ac_optarg=yes ;;
854  esac
855
856  # Accept the important Cygnus configure options, so we can diagnose typos.
857
858  case $ac_dashdash$ac_option in
859  --)
860    ac_dashdash=yes ;;
861
862  -bindir | --bindir | --bindi | --bind | --bin | --bi)
863    ac_prev=bindir ;;
864  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865    bindir=$ac_optarg ;;
866
867  -build | --build | --buil | --bui | --bu)
868    ac_prev=build_alias ;;
869  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870    build_alias=$ac_optarg ;;
871
872  -cache-file | --cache-file | --cache-fil | --cache-fi \
873  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874    ac_prev=cache_file ;;
875  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877    cache_file=$ac_optarg ;;
878
879  --config-cache | -C)
880    cache_file=config.cache ;;
881
882  -datadir | --datadir | --datadi | --datad)
883    ac_prev=datadir ;;
884  -datadir=* | --datadir=* | --datadi=* | --datad=*)
885    datadir=$ac_optarg ;;
886
887  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888  | --dataroo | --dataro | --datar)
889    ac_prev=datarootdir ;;
890  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892    datarootdir=$ac_optarg ;;
893
894  -disable-* | --disable-*)
895    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896    # Reject names that are not valid shell variable names.
897    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898      as_fn_error $? "invalid feature name: $ac_useropt"
899    ac_useropt_orig=$ac_useropt
900    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901    case $ac_user_opts in
902      *"
903"enable_$ac_useropt"
904"*) ;;
905      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906	 ac_unrecognized_sep=', ';;
907    esac
908    eval enable_$ac_useropt=no ;;
909
910  -docdir | --docdir | --docdi | --doc | --do)
911    ac_prev=docdir ;;
912  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913    docdir=$ac_optarg ;;
914
915  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916    ac_prev=dvidir ;;
917  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918    dvidir=$ac_optarg ;;
919
920  -enable-* | --enable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      as_fn_error $? "invalid feature name: $ac_useropt"
925    ac_useropt_orig=$ac_useropt
926    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927    case $ac_user_opts in
928      *"
929"enable_$ac_useropt"
930"*) ;;
931      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932	 ac_unrecognized_sep=', ';;
933    esac
934    eval enable_$ac_useropt=\$ac_optarg ;;
935
936  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938  | --exec | --exe | --ex)
939    ac_prev=exec_prefix ;;
940  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942  | --exec=* | --exe=* | --ex=*)
943    exec_prefix=$ac_optarg ;;
944
945  -gas | --gas | --ga | --g)
946    # Obsolete; use --with-gas.
947    with_gas=yes ;;
948
949  -help | --help | --hel | --he | -h)
950    ac_init_help=long ;;
951  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952    ac_init_help=recursive ;;
953  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954    ac_init_help=short ;;
955
956  -host | --host | --hos | --ho)
957    ac_prev=host_alias ;;
958  -host=* | --host=* | --hos=* | --ho=*)
959    host_alias=$ac_optarg ;;
960
961  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962    ac_prev=htmldir ;;
963  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964  | --ht=*)
965    htmldir=$ac_optarg ;;
966
967  -includedir | --includedir | --includedi | --included | --include \
968  | --includ | --inclu | --incl | --inc)
969    ac_prev=includedir ;;
970  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971  | --includ=* | --inclu=* | --incl=* | --inc=*)
972    includedir=$ac_optarg ;;
973
974  -infodir | --infodir | --infodi | --infod | --info | --inf)
975    ac_prev=infodir ;;
976  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977    infodir=$ac_optarg ;;
978
979  -libdir | --libdir | --libdi | --libd)
980    ac_prev=libdir ;;
981  -libdir=* | --libdir=* | --libdi=* | --libd=*)
982    libdir=$ac_optarg ;;
983
984  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985  | --libexe | --libex | --libe)
986    ac_prev=libexecdir ;;
987  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988  | --libexe=* | --libex=* | --libe=*)
989    libexecdir=$ac_optarg ;;
990
991  -localedir | --localedir | --localedi | --localed | --locale)
992    ac_prev=localedir ;;
993  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994    localedir=$ac_optarg ;;
995
996  -localstatedir | --localstatedir | --localstatedi | --localstated \
997  | --localstate | --localstat | --localsta | --localst | --locals)
998    ac_prev=localstatedir ;;
999  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001    localstatedir=$ac_optarg ;;
1002
1003  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004    ac_prev=mandir ;;
1005  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006    mandir=$ac_optarg ;;
1007
1008  -nfp | --nfp | --nf)
1009    # Obsolete; use --without-fp.
1010    with_fp=no ;;
1011
1012  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013  | --no-cr | --no-c | -n)
1014    no_create=yes ;;
1015
1016  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018    no_recursion=yes ;;
1019
1020  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022  | --oldin | --oldi | --old | --ol | --o)
1023    ac_prev=oldincludedir ;;
1024  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027    oldincludedir=$ac_optarg ;;
1028
1029  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030    ac_prev=prefix ;;
1031  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032    prefix=$ac_optarg ;;
1033
1034  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035  | --program-pre | --program-pr | --program-p)
1036    ac_prev=program_prefix ;;
1037  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039    program_prefix=$ac_optarg ;;
1040
1041  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042  | --program-suf | --program-su | --program-s)
1043    ac_prev=program_suffix ;;
1044  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046    program_suffix=$ac_optarg ;;
1047
1048  -program-transform-name | --program-transform-name \
1049  | --program-transform-nam | --program-transform-na \
1050  | --program-transform-n | --program-transform- \
1051  | --program-transform | --program-transfor \
1052  | --program-transfo | --program-transf \
1053  | --program-trans | --program-tran \
1054  | --progr-tra | --program-tr | --program-t)
1055    ac_prev=program_transform_name ;;
1056  -program-transform-name=* | --program-transform-name=* \
1057  | --program-transform-nam=* | --program-transform-na=* \
1058  | --program-transform-n=* | --program-transform-=* \
1059  | --program-transform=* | --program-transfor=* \
1060  | --program-transfo=* | --program-transf=* \
1061  | --program-trans=* | --program-tran=* \
1062  | --progr-tra=* | --program-tr=* | --program-t=*)
1063    program_transform_name=$ac_optarg ;;
1064
1065  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066    ac_prev=pdfdir ;;
1067  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068    pdfdir=$ac_optarg ;;
1069
1070  -psdir | --psdir | --psdi | --psd | --ps)
1071    ac_prev=psdir ;;
1072  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073    psdir=$ac_optarg ;;
1074
1075  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076  | -silent | --silent | --silen | --sile | --sil)
1077    silent=yes ;;
1078
1079  -runstatedir | --runstatedir | --runstatedi | --runstated \
1080  | --runstate | --runstat | --runsta | --runst | --runs \
1081  | --run | --ru | --r)
1082    ac_prev=runstatedir ;;
1083  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1084  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1085  | --run=* | --ru=* | --r=*)
1086    runstatedir=$ac_optarg ;;
1087
1088  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089    ac_prev=sbindir ;;
1090  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091  | --sbi=* | --sb=*)
1092    sbindir=$ac_optarg ;;
1093
1094  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096  | --sharedst | --shareds | --shared | --share | --shar \
1097  | --sha | --sh)
1098    ac_prev=sharedstatedir ;;
1099  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102  | --sha=* | --sh=*)
1103    sharedstatedir=$ac_optarg ;;
1104
1105  -site | --site | --sit)
1106    ac_prev=site ;;
1107  -site=* | --site=* | --sit=*)
1108    site=$ac_optarg ;;
1109
1110  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111    ac_prev=srcdir ;;
1112  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113    srcdir=$ac_optarg ;;
1114
1115  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116  | --syscon | --sysco | --sysc | --sys | --sy)
1117    ac_prev=sysconfdir ;;
1118  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120    sysconfdir=$ac_optarg ;;
1121
1122  -target | --target | --targe | --targ | --tar | --ta | --t)
1123    ac_prev=target_alias ;;
1124  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125    target_alias=$ac_optarg ;;
1126
1127  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128    verbose=yes ;;
1129
1130  -version | --version | --versio | --versi | --vers | -V)
1131    ac_init_version=: ;;
1132
1133  -with-* | --with-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=\$ac_optarg ;;
1148
1149  -without-* | --without-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=no ;;
1164
1165  --x)
1166    # Obsolete; use --with-x.
1167    with_x=yes ;;
1168
1169  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170  | --x-incl | --x-inc | --x-in | --x-i)
1171    ac_prev=x_includes ;;
1172  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174    x_includes=$ac_optarg ;;
1175
1176  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178    ac_prev=x_libraries ;;
1179  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181    x_libraries=$ac_optarg ;;
1182
1183  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184Try \`$0 --help' for more information"
1185    ;;
1186
1187  *=*)
1188    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189    # Reject names that are not valid shell variable names.
1190    case $ac_envvar in #(
1191      '' | [0-9]* | *[!_$as_cr_alnum]* )
1192      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193    esac
1194    eval $ac_envvar=\$ac_optarg
1195    export $ac_envvar ;;
1196
1197  *)
1198    # FIXME: should be removed in autoconf 3.0.
1199    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203    ;;
1204
1205  esac
1206done
1207
1208if test -n "$ac_prev"; then
1209  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210  as_fn_error $? "missing argument to $ac_option"
1211fi
1212
1213if test -n "$ac_unrecognized_opts"; then
1214  case $enable_option_checking in
1215    no) ;;
1216    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218  esac
1219fi
1220
1221# Check all directory arguments for consistency.
1222for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223		datadir sysconfdir sharedstatedir localstatedir includedir \
1224		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225		libdir localedir mandir runstatedir
1226do
1227  eval ac_val=\$$ac_var
1228  # Remove trailing slashes.
1229  case $ac_val in
1230    */ )
1231      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232      eval $ac_var=\$ac_val;;
1233  esac
1234  # Be sure to have absolute directory names.
1235  case $ac_val in
1236    [\\/$]* | ?:[\\/]* )  continue;;
1237    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238  esac
1239  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240done
1241
1242# There might be people who depend on the old broken behavior: `$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251  if test "x$build_alias" = x; then
1252    cross_compiling=maybe
1253  elif test "x$build_alias" != "x$host_alias"; then
1254    cross_compiling=yes
1255  fi
1256fi
1257
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
1262
1263
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267  as_fn_error $? "working directory cannot be determined"
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269  as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274  ac_srcdir_defaulted=yes
1275  # Try the directory containing this script, then the parent directory.
1276  ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278	 X"$as_myself" : 'X\(//\)[^/]' \| \
1279	 X"$as_myself" : 'X\(//\)$' \| \
1280	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281$as_echo X"$as_myself" |
1282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)[^/].*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\).*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  s/.*/./; q'`
1299  srcdir=$ac_confdir
1300  if test ! -r "$srcdir/$ac_unique_file"; then
1301    srcdir=..
1302  fi
1303else
1304  ac_srcdir_defaulted=no
1305fi
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313	pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316  srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_env_${ac_var}_value=\$${ac_var}
1327  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
1330
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335  # Omit some internal or obsolete options to make the list less imposing.
1336  # This message is too long to be a string in the A/UX 3.1 sh.
1337  cat <<_ACEOF
1338\`configure' configures iperf 3.6+ to adapt to many kinds of systems.
1339
1340Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE.  See below for descriptions of some of the useful variables.
1344
1345Defaults for the options are specified in brackets.
1346
1347Configuration:
1348  -h, --help              display this help and exit
1349      --help=short        display options specific to this package
1350      --help=recursive    display the short help of all the included packages
1351  -V, --version           display version information and exit
1352  -q, --quiet, --silent   do not print \`checking ...' messages
1353      --cache-file=FILE   cache test results in FILE [disabled]
1354  -C, --config-cache      alias for \`--cache-file=config.cache'
1355  -n, --no-create         do not create output files
1356      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1357
1358Installation directories:
1359  --prefix=PREFIX         install architecture-independent files in PREFIX
1360                          [$ac_default_prefix]
1361  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1362                          [PREFIX]
1363
1364By default, \`make install' will install all the files in
1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1366an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367for instance \`--prefix=\$HOME'.
1368
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
1372  --bindir=DIR            user executables [EPREFIX/bin]
1373  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1374  --libexecdir=DIR        program executables [EPREFIX/libexec]
1375  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1379  --libdir=DIR            object code libraries [EPREFIX/lib]
1380  --includedir=DIR        C header files [PREFIX/include]
1381  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1382  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1383  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1384  --infodir=DIR           info documentation [DATAROOTDIR/info]
1385  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1386  --mandir=DIR            man documentation [DATAROOTDIR/man]
1387  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1388  --htmldir=DIR           html documentation [DOCDIR]
1389  --dvidir=DIR            dvi documentation [DOCDIR]
1390  --pdfdir=DIR            pdf documentation [DOCDIR]
1391  --psdir=DIR             ps documentation [DOCDIR]
1392_ACEOF
1393
1394  cat <<\_ACEOF
1395
1396Program names:
1397  --program-prefix=PREFIX            prepend PREFIX to installed program names
1398  --program-suffix=SUFFIX            append SUFFIX to installed program names
1399  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1400
1401System types:
1402  --build=BUILD     configure for building on BUILD [guessed]
1403  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1404_ACEOF
1405fi
1406
1407if test -n "$ac_init_help"; then
1408  case $ac_init_help in
1409     short | recursive ) echo "Configuration of iperf 3.6+:";;
1410   esac
1411  cat <<\_ACEOF
1412
1413Optional Features:
1414  --disable-option-checking  ignore unrecognized --enable/--with options
1415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417  --enable-silent-rules   less verbose build output (undo: "make V=1")
1418  --disable-silent-rules  verbose build output (undo: "make V=0")
1419  --enable-maintainer-mode
1420                          enable make rules and dependencies not useful (and
1421                          sometimes confusing) to the casual installer
1422  --enable-dependency-tracking
1423                          do not reject slow dependency extractors
1424  --disable-dependency-tracking
1425                          speeds up one-time build
1426  --enable-shared[=PKGS]  build shared libraries [default=yes]
1427  --enable-static[=PKGS]  build static libraries [default=yes]
1428  --enable-fast-install[=PKGS]
1429                          optimize for fast installation [default=yes]
1430  --disable-libtool-lock  avoid locking (might break parallel builds)
1431  --disable-profiling     Disable iperf profiling binary
1432
1433Optional Packages:
1434  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1435  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1436  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1437                          both]
1438  --with-aix-soname=aix|svr4|both
1439                          shared library versioning (aka "SONAME") variant to
1440                          provide on AIX, [default=aix].
1441  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1443                          compiler's sysroot if not specified).
1444  --with-openssl=DIR      root of the OpenSSL directory
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  LT_SYS_LIBRARY_PATH
1455              User-defined run-time library search path.
1456  CPP         C preprocessor
1457
1458Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
1461Report bugs to <https://github.com/esnet/iperf>.
1462iperf home page: <https://software.es.net/iperf/>.
1463_ACEOF
1464ac_status=$?
1465fi
1466
1467if test "$ac_init_help" = "recursive"; then
1468  # If there are subdirs, report their specific --help.
1469  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470    test -d "$ac_dir" ||
1471      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472      continue
1473    ac_builddir=.
1474
1475case "$ac_dir" in
1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477*)
1478  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479  # A ".." for each directory in $ac_dir_suffix.
1480  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481  case $ac_top_builddir_sub in
1482  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484  esac ;;
1485esac
1486ac_abs_top_builddir=$ac_pwd
1487ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488# for backward compatibility:
1489ac_top_builddir=$ac_top_build_prefix
1490
1491case $srcdir in
1492  .)  # We are building in place.
1493    ac_srcdir=.
1494    ac_top_srcdir=$ac_top_builddir_sub
1495    ac_abs_top_srcdir=$ac_pwd ;;
1496  [\\/]* | ?:[\\/]* )  # Absolute name.
1497    ac_srcdir=$srcdir$ac_dir_suffix;
1498    ac_top_srcdir=$srcdir
1499    ac_abs_top_srcdir=$srcdir ;;
1500  *) # Relative name.
1501    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502    ac_top_srcdir=$ac_top_build_prefix$srcdir
1503    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504esac
1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507    cd "$ac_dir" || { ac_status=$?; continue; }
1508    # Check for guested configure.
1509    if test -f "$ac_srcdir/configure.gnu"; then
1510      echo &&
1511      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512    elif test -f "$ac_srcdir/configure"; then
1513      echo &&
1514      $SHELL "$ac_srcdir/configure" --help=recursive
1515    else
1516      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517    fi || ac_status=$?
1518    cd "$ac_pwd" || { ac_status=$?; break; }
1519  done
1520fi
1521
1522test -n "$ac_init_help" && exit $ac_status
1523if $ac_init_version; then
1524  cat <<\_ACEOF
1525iperf configure 3.6+
1526generated by GNU Autoconf 2.69
1527
1528Copyright (C) 2012 Free Software Foundation, Inc.
1529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
1531_ACEOF
1532  exit
1533fi
1534
1535## ------------------------ ##
1536## Autoconf initialization. ##
1537## ------------------------ ##
1538
1539# ac_fn_c_try_compile LINENO
1540# --------------------------
1541# Try to compile conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_c_try_compile ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  rm -f conftest.$ac_objext
1546  if { { ac_try="$ac_compile"
1547case "(($ac_try" in
1548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549  *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552$as_echo "$ac_try_echo"; } >&5
1553  (eval "$ac_compile") 2>conftest.err
1554  ac_status=$?
1555  if test -s conftest.err; then
1556    grep -v '^ *+' conftest.err >conftest.er1
1557    cat conftest.er1 >&5
1558    mv -f conftest.er1 conftest.err
1559  fi
1560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561  test $ac_status = 0; } && {
1562	 test -z "$ac_c_werror_flag" ||
1563	 test ! -s conftest.err
1564       } && test -s conftest.$ac_objext; then :
1565  ac_retval=0
1566else
1567  $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
1569
1570	ac_retval=1
1571fi
1572  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573  as_fn_set_status $ac_retval
1574
1575} # ac_fn_c_try_compile
1576
1577# ac_fn_c_try_link LINENO
1578# -----------------------
1579# Try to link conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_c_try_link ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  rm -f conftest.$ac_objext conftest$ac_exeext
1584  if { { ac_try="$ac_link"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_link") 2>conftest.err
1592  ac_status=$?
1593  if test -s conftest.err; then
1594    grep -v '^ *+' conftest.err >conftest.er1
1595    cat conftest.er1 >&5
1596    mv -f conftest.er1 conftest.err
1597  fi
1598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599  test $ac_status = 0; } && {
1600	 test -z "$ac_c_werror_flag" ||
1601	 test ! -s conftest.err
1602       } && test -s conftest$ac_exeext && {
1603	 test "$cross_compiling" = yes ||
1604	 test -x conftest$ac_exeext
1605       }; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611	ac_retval=1
1612fi
1613  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615  # interfere with the next link command; also delete a directory that is
1616  # left behind by Apple's compiler.  We do this before executing the actions.
1617  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619  as_fn_set_status $ac_retval
1620
1621} # ac_fn_c_try_link
1622
1623# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624# -------------------------------------------------------
1625# Tests whether HEADER exists and can be compiled using the include files in
1626# INCLUDES, setting the cache variable VAR accordingly.
1627ac_fn_c_check_header_compile ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631$as_echo_n "checking for $2... " >&6; }
1632if eval \${$3+:} false; then :
1633  $as_echo_n "(cached) " >&6
1634else
1635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636/* end confdefs.h.  */
1637$4
1638#include <$2>
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
1641  eval "$3=yes"
1642else
1643  eval "$3=no"
1644fi
1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646fi
1647eval ac_res=\$$3
1648	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652} # ac_fn_c_check_header_compile
1653
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668  ac_status=$?
1669  if test -s conftest.err; then
1670    grep -v '^ *+' conftest.err >conftest.er1
1671    cat conftest.er1 >&5
1672    mv -f conftest.er1 conftest.err
1673  fi
1674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675  test $ac_status = 0; } > conftest.i && {
1676	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677	 test ! -s conftest.err
1678       }; then :
1679  ac_retval=0
1680else
1681  $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684    ac_retval=1
1685fi
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687  as_fn_set_status $ac_retval
1688
1689} # ac_fn_c_try_cpp
1690
1691# ac_fn_c_try_run LINENO
1692# ----------------------
1693# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694# that executables *can* be run.
1695ac_fn_c_try_run ()
1696{
1697  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698  if { { ac_try="$ac_link"
1699case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_link") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709  { { case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_try") 2>&5
1716  ac_status=$?
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; }; }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: program exited with status $ac_status" >&5
1722       $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725       ac_retval=$ac_status
1726fi
1727  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729  as_fn_set_status $ac_retval
1730
1731} # ac_fn_c_try_run
1732
1733# ac_fn_c_check_func LINENO FUNC VAR
1734# ----------------------------------
1735# Tests whether FUNC exists, setting the cache variable VAR accordingly
1736ac_fn_c_check_func ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if eval \${$3+:} false; then :
1742  $as_echo_n "(cached) " >&6
1743else
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1748#define $2 innocuous_$2
1749
1750/* System header to define __stub macros and hopefully few prototypes,
1751    which can conflict with char $2 (); below.
1752    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753    <limits.h> exists even on freestanding compilers.  */
1754
1755#ifdef __STDC__
1756# include <limits.h>
1757#else
1758# include <assert.h>
1759#endif
1760
1761#undef $2
1762
1763/* Override any GCC internal prototype to avoid an error.
1764   Use char because int might match the return type of a GCC
1765   builtin and then its argument prototype would still apply.  */
1766#ifdef __cplusplus
1767extern "C"
1768#endif
1769char $2 ();
1770/* The GNU C library defines this for functions which it implements
1771    to always fail with ENOSYS.  Some functions are actually named
1772    something starting with __ and the normal name is an alias.  */
1773#if defined __stub_$2 || defined __stub___$2
1774choke me
1775#endif
1776
1777int
1778main ()
1779{
1780return $2 ();
1781  ;
1782  return 0;
1783}
1784_ACEOF
1785if ac_fn_c_try_link "$LINENO"; then :
1786  eval "$3=yes"
1787else
1788  eval "$3=no"
1789fi
1790rm -f core conftest.err conftest.$ac_objext \
1791    conftest$ac_exeext conftest.$ac_ext
1792fi
1793eval ac_res=\$$3
1794	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798} # ac_fn_c_check_func
1799
1800# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801# -------------------------------------------------------
1802# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803# the include files in INCLUDES and setting the cache variable VAR
1804# accordingly.
1805ac_fn_c_check_header_mongrel ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if eval \${$3+:} false; then :
1809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if eval \${$3+:} false; then :
1812  $as_echo_n "(cached) " >&6
1813fi
1814eval ac_res=\$$3
1815	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817else
1818  # Is the header compilable?
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820$as_echo_n "checking $2 usability... " >&6; }
1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$4
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"; then :
1827  ac_header_compiler=yes
1828else
1829  ac_header_compiler=no
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833$as_echo "$ac_header_compiler" >&6; }
1834
1835# Is the header present?
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837$as_echo_n "checking $2 presence... " >&6; }
1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h.  */
1840#include <$2>
1841_ACEOF
1842if ac_fn_c_try_cpp "$LINENO"; then :
1843  ac_header_preproc=yes
1844else
1845  ac_header_preproc=no
1846fi
1847rm -f conftest.err conftest.i conftest.$ac_ext
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849$as_echo "$ac_header_preproc" >&6; }
1850
1851# So?  What about this header?
1852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853  yes:no: )
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858    ;;
1859  no:yes:* )
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1863$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1867$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870( $as_echo "## --------------------------------------------- ##
1871## Report this to https://github.com/esnet/iperf ##
1872## --------------------------------------------- ##"
1873     ) | sed "s/^/$as_me: WARNING:     /" >&2
1874    ;;
1875esac
1876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879  $as_echo_n "(cached) " >&6
1880else
1881  eval "$3=\$ac_header_compiler"
1882fi
1883eval ac_res=\$$3
1884	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886fi
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_mongrel
1890cat >config.log <<_ACEOF
1891This file contains any messages produced by compilers while
1892running configure, to aid debugging if configure makes a mistake.
1893
1894It was created by iperf $as_me 3.6+, which was
1895generated by GNU Autoconf 2.69.  Invocation command line was
1896
1897  $ $0 $@
1898
1899_ACEOF
1900exec 5>>config.log
1901{
1902cat <<_ASUNAME
1903## --------- ##
1904## Platform. ##
1905## --------- ##
1906
1907hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1915
1916/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1917/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1918/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1920/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1921/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1922/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1923
1924_ASUNAME
1925
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929  IFS=$as_save_IFS
1930  test -z "$as_dir" && as_dir=.
1931    $as_echo "PATH: $as_dir"
1932  done
1933IFS=$as_save_IFS
1934
1935} >&5
1936
1937cat >&5 <<_ACEOF
1938
1939
1940## ----------- ##
1941## Core tests. ##
1942## ----------- ##
1943
1944_ACEOF
1945
1946
1947# Keep a trace of the command line.
1948# Strip out --no-create and --no-recursion so they do not pile up.
1949# Strip out --silent because we don't want to record it for future runs.
1950# Also quote any args containing shell meta-characters.
1951# Make two passes to allow for proper duplicate-argument suppression.
1952ac_configure_args=
1953ac_configure_args0=
1954ac_configure_args1=
1955ac_must_keep_next=false
1956for ac_pass in 1 2
1957do
1958  for ac_arg
1959  do
1960    case $ac_arg in
1961    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963    | -silent | --silent | --silen | --sile | --sil)
1964      continue ;;
1965    *\'*)
1966      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967    esac
1968    case $ac_pass in
1969    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970    2)
1971      as_fn_append ac_configure_args1 " '$ac_arg'"
1972      if test $ac_must_keep_next = true; then
1973	ac_must_keep_next=false # Got value, back to normal.
1974      else
1975	case $ac_arg in
1976	  *=* | --config-cache | -C | -disable-* | --disable-* \
1977	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979	  | -with-* | --with-* | -without-* | --without-* | --x)
1980	    case "$ac_configure_args0 " in
1981	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982	    esac
1983	    ;;
1984	  -* ) ac_must_keep_next=true ;;
1985	esac
1986      fi
1987      as_fn_append ac_configure_args " '$ac_arg'"
1988      ;;
1989    esac
1990  done
1991done
1992{ ac_configure_args0=; unset ac_configure_args0;}
1993{ ac_configure_args1=; unset ac_configure_args1;}
1994
1995# When interrupted or exit'd, cleanup temporary files, and complete
1996# config.log.  We remove comments because anyway the quotes in there
1997# would cause problems or look ugly.
1998# WARNING: Use '\'' to represent an apostrophe within the trap.
1999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000trap 'exit_status=$?
2001  # Save into config.log some information that might help in debugging.
2002  {
2003    echo
2004
2005    $as_echo "## ---------------- ##
2006## Cache variables. ##
2007## ---------------- ##"
2008    echo
2009    # The following way of writing the cache mishandles newlines in values,
2010(
2011  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2012    eval ac_val=\$$ac_var
2013    case $ac_val in #(
2014    *${as_nl}*)
2015      case $ac_var in #(
2016      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018      esac
2019      case $ac_var in #(
2020      _ | IFS | as_nl) ;; #(
2021      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2022      *) { eval $ac_var=; unset $ac_var;} ;;
2023      esac ;;
2024    esac
2025  done
2026  (set) 2>&1 |
2027    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2028    *${as_nl}ac_space=\ *)
2029      sed -n \
2030	"s/'\''/'\''\\\\'\'''\''/g;
2031	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032      ;; #(
2033    *)
2034      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035      ;;
2036    esac |
2037    sort
2038)
2039    echo
2040
2041    $as_echo "## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##"
2044    echo
2045    for ac_var in $ac_subst_vars
2046    do
2047      eval ac_val=\$$ac_var
2048      case $ac_val in
2049      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050      esac
2051      $as_echo "$ac_var='\''$ac_val'\''"
2052    done | sort
2053    echo
2054
2055    if test -n "$ac_subst_files"; then
2056      $as_echo "## ------------------- ##
2057## File substitutions. ##
2058## ------------------- ##"
2059      echo
2060      for ac_var in $ac_subst_files
2061      do
2062	eval ac_val=\$$ac_var
2063	case $ac_val in
2064	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065	esac
2066	$as_echo "$ac_var='\''$ac_val'\''"
2067      done | sort
2068      echo
2069    fi
2070
2071    if test -s confdefs.h; then
2072      $as_echo "## ----------- ##
2073## confdefs.h. ##
2074## ----------- ##"
2075      echo
2076      cat confdefs.h
2077      echo
2078    fi
2079    test "$ac_signal" != 0 &&
2080      $as_echo "$as_me: caught signal $ac_signal"
2081    $as_echo "$as_me: exit $exit_status"
2082  } >&5
2083  rm -f core *.core core.conftest.* &&
2084    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085    exit $exit_status
2086' 0
2087for ac_signal in 1 2 13 15; do
2088  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089done
2090ac_signal=0
2091
2092# confdefs.h avoids OS command line length limits that DEFS can exceed.
2093rm -f -r conftest* confdefs.h
2094
2095$as_echo "/* confdefs.h */" > confdefs.h
2096
2097# Predefined preprocessor variables.
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_NAME "$PACKAGE_NAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_VERSION "$PACKAGE_VERSION"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_STRING "$PACKAGE_STRING"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117_ACEOF
2118
2119cat >>confdefs.h <<_ACEOF
2120#define PACKAGE_URL "$PACKAGE_URL"
2121_ACEOF
2122
2123
2124# Let the site file select an alternate cache file if it wants to.
2125# Prefer an explicitly selected file to automatically selected ones.
2126ac_site_file1=NONE
2127ac_site_file2=NONE
2128if test -n "$CONFIG_SITE"; then
2129  # We do not want a PATH search for config.site.
2130  case $CONFIG_SITE in #((
2131    -*)  ac_site_file1=./$CONFIG_SITE;;
2132    */*) ac_site_file1=$CONFIG_SITE;;
2133    *)   ac_site_file1=./$CONFIG_SITE;;
2134  esac
2135elif test "x$prefix" != xNONE; then
2136  ac_site_file1=$prefix/share/config.site
2137  ac_site_file2=$prefix/etc/config.site
2138else
2139  ac_site_file1=$ac_default_prefix/share/config.site
2140  ac_site_file2=$ac_default_prefix/etc/config.site
2141fi
2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144  test "x$ac_site_file" = xNONE && continue
2145  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2146    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148    sed 's/^/| /' "$ac_site_file" >&5
2149    . "$ac_site_file" \
2150      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152as_fn_error $? "failed to load site script $ac_site_file
2153See \`config.log' for more details" "$LINENO" 5; }
2154  fi
2155done
2156
2157if test -r "$cache_file"; then
2158  # Some versions of bash will fail to source /dev/null (special files
2159  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2160  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162$as_echo "$as_me: loading cache $cache_file" >&6;}
2163    case $cache_file in
2164      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165      *)                      . "./$cache_file";;
2166    esac
2167  fi
2168else
2169  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170$as_echo "$as_me: creating cache $cache_file" >&6;}
2171  >$cache_file
2172fi
2173
2174# Check that the precious variables saved in the cache have kept the same
2175# value.
2176ac_cache_corrupted=false
2177for ac_var in $ac_precious_vars; do
2178  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179  eval ac_new_set=\$ac_env_${ac_var}_set
2180  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181  eval ac_new_val=\$ac_env_${ac_var}_value
2182  case $ac_old_set,$ac_new_set in
2183    set,)
2184      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186      ac_cache_corrupted=: ;;
2187    ,set)
2188      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190      ac_cache_corrupted=: ;;
2191    ,);;
2192    *)
2193      if test "x$ac_old_val" != "x$ac_new_val"; then
2194	# differences in whitespace do not lead to failure.
2195	ac_old_val_w=`echo x $ac_old_val`
2196	ac_new_val_w=`echo x $ac_new_val`
2197	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200	  ac_cache_corrupted=:
2201	else
2202	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204	  eval $ac_var=\$ac_old_val
2205	fi
2206	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2207$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2208	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2209$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2210      fi;;
2211  esac
2212  # Pass precious variables to config.status.
2213  if test "$ac_new_set" = set; then
2214    case $ac_new_val in
2215    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216    *) ac_arg=$ac_var=$ac_new_val ;;
2217    esac
2218    case " $ac_configure_args " in
2219      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2220      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221    esac
2222  fi
2223done
2224if $ac_cache_corrupted; then
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230fi
2231## -------------------- ##
2232## Main body of script. ##
2233## -------------------- ##
2234
2235ac_ext=c
2236ac_cpp='$CPP $CPPFLAGS'
2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242# ===========================================================================
2243#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2244# ===========================================================================
2245#
2246# SYNOPSIS
2247#
2248#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2249#
2250# DESCRIPTION
2251#
2252#   Look for OpenSSL in a number of default spots, or in a user-selected
2253#   spot (via --with-openssl).  Sets
2254#
2255#     OPENSSL_INCLUDES to the include directives required
2256#     OPENSSL_LIBS to the -l directives required
2257#     OPENSSL_LDFLAGS to the -L or -R flags required
2258#
2259#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2260#
2261#   This macro sets OPENSSL_INCLUDES such that source files should use the
2262#   openssl/ directory in include directives:
2263#
2264#     #include <openssl/hmac.h>
2265#
2266# LICENSE
2267#
2268#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2269#   Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]>
2270#
2271#   Copying and distribution of this file, with or without modification, are
2272#   permitted in any medium without royalty provided the copyright notice
2273#   and this notice are preserved. This file is offered as-is, without any
2274#   warranty.
2275
2276#serial 10
2277
2278# This is what autoupdate's m4 run will expand.  It fires
2279# the warning (with _au_warn_XXX), outputs it into the
2280# updated configure.ac (with AC_DIAGNOSE), and then outputs
2281# the replacement expansion.
2282
2283
2284# This is an auxiliary macro that is also run when
2285# autoupdate runs m4.  It simply calls m4_warning, but
2286# we need a wrapper so that each warning is emitted only
2287# once.  We break the quoting in m4_warning's argument in
2288# order to expand this macro's arguments, not AU_DEFUN's.
2289
2290
2291# Finally, this is the expansion that is picked up by
2292# autoconf.  It tells the user to run autoupdate, and
2293# then outputs the replacement expansion.  We do not care
2294# about autoupdate's warning because that contains
2295# information on what to do *after* running autoupdate.
2296
2297
2298
2299ac_ext=c
2300ac_cpp='$CPP $CPPFLAGS'
2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306# Specify where the auxiliary files created by configure should go. The config
2307# directory is picked so that they don't clutter up more useful directories.
2308ac_aux_dir=
2309for ac_dir in config "$srcdir"/config; do
2310  if test -f "$ac_dir/install-sh"; then
2311    ac_aux_dir=$ac_dir
2312    ac_install_sh="$ac_aux_dir/install-sh -c"
2313    break
2314  elif test -f "$ac_dir/install.sh"; then
2315    ac_aux_dir=$ac_dir
2316    ac_install_sh="$ac_aux_dir/install.sh -c"
2317    break
2318  elif test -f "$ac_dir/shtool"; then
2319    ac_aux_dir=$ac_dir
2320    ac_install_sh="$ac_aux_dir/shtool install -c"
2321    break
2322  fi
2323done
2324if test -z "$ac_aux_dir"; then
2325  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2326fi
2327
2328# These three variables are undocumented and unsupported,
2329# and are intended to be withdrawn in a future Autoconf release.
2330# They can cause serious problems if a builder's source tree is in a directory
2331# whose full name contains unusual characters.
2332ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2333ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2334ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2335
2336
2337
2338
2339# Initialize the automake system
2340am__api_version='1.16'
2341
2342# Find a good install program.  We prefer a C program (faster),
2343# so one script is as good as another.  But avoid the broken or
2344# incompatible versions:
2345# SysV /etc/install, /usr/sbin/install
2346# SunOS /usr/etc/install
2347# IRIX /sbin/install
2348# AIX /bin/install
2349# AmigaOS /C/install, which installs bootblocks on floppy discs
2350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2353# OS/2's system install, which has a completely different semantic
2354# ./install, which can be erroneously created by make from ./install.sh.
2355# Reject install programs that cannot install multiple files.
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2357$as_echo_n "checking for a BSD-compatible install... " >&6; }
2358if test -z "$INSTALL"; then
2359if ${ac_cv_path_install+:} false; then :
2360  $as_echo_n "(cached) " >&6
2361else
2362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365  IFS=$as_save_IFS
2366  test -z "$as_dir" && as_dir=.
2367    # Account for people who put trailing slashes in PATH elements.
2368case $as_dir/ in #((
2369  ./ | .// | /[cC]/* | \
2370  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2371  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2372  /usr/ucb/* ) ;;
2373  *)
2374    # OSF1 and SCO ODT 3.0 have their own names for install.
2375    # Don't use installbsd from OSF since it installs stuff as root
2376    # by default.
2377    for ac_prog in ginstall scoinst install; do
2378      for ac_exec_ext in '' $ac_executable_extensions; do
2379	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2380	  if test $ac_prog = install &&
2381	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382	    # AIX install.  It has an incompatible calling convention.
2383	    :
2384	  elif test $ac_prog = install &&
2385	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386	    # program-specific install script used by HP pwplus--don't use.
2387	    :
2388	  else
2389	    rm -rf conftest.one conftest.two conftest.dir
2390	    echo one > conftest.one
2391	    echo two > conftest.two
2392	    mkdir conftest.dir
2393	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2394	      test -s conftest.one && test -s conftest.two &&
2395	      test -s conftest.dir/conftest.one &&
2396	      test -s conftest.dir/conftest.two
2397	    then
2398	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2399	      break 3
2400	    fi
2401	  fi
2402	fi
2403      done
2404    done
2405    ;;
2406esac
2407
2408  done
2409IFS=$as_save_IFS
2410
2411rm -rf conftest.one conftest.two conftest.dir
2412
2413fi
2414  if test "${ac_cv_path_install+set}" = set; then
2415    INSTALL=$ac_cv_path_install
2416  else
2417    # As a last resort, use the slow shell script.  Don't cache a
2418    # value for INSTALL within a source directory, because that will
2419    # break other packages using the cache if that directory is
2420    # removed, or if the value is a relative name.
2421    INSTALL=$ac_install_sh
2422  fi
2423fi
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2425$as_echo "$INSTALL" >&6; }
2426
2427# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428# It thinks the first close brace ends the variable substitution.
2429test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2430
2431test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2432
2433test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2434
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2436$as_echo_n "checking whether build environment is sane... " >&6; }
2437# Reject unsafe characters in $srcdir or the absolute working directory
2438# name.  Accept space and tab only in the latter.
2439am_lf='
2440'
2441case `pwd` in
2442  *[\\\"\#\$\&\'\`$am_lf]*)
2443    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2444esac
2445case $srcdir in
2446  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2447    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2448esac
2449
2450# Do 'set' in a subshell so we don't clobber the current shell's
2451# arguments.  Must try -L first in case configure is actually a
2452# symlink; some systems play weird games with the mod time of symlinks
2453# (eg FreeBSD returns the mod time of the symlink's containing
2454# directory).
2455if (
2456   am_has_slept=no
2457   for am_try in 1 2; do
2458     echo "timestamp, slept: $am_has_slept" > conftest.file
2459     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2460     if test "$*" = "X"; then
2461	# -L didn't work.
2462	set X `ls -t "$srcdir/configure" conftest.file`
2463     fi
2464     if test "$*" != "X $srcdir/configure conftest.file" \
2465	&& test "$*" != "X conftest.file $srcdir/configure"; then
2466
2467	# If neither matched, then we have a broken ls.  This can happen
2468	# if, for instance, CONFIG_SHELL is bash and it inherits a
2469	# broken ls alias from the environment.  This has actually
2470	# happened.  Such a system could not be considered "sane".
2471	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2472  alias in your environment" "$LINENO" 5
2473     fi
2474     if test "$2" = conftest.file || test $am_try -eq 2; then
2475       break
2476     fi
2477     # Just in case.
2478     sleep 1
2479     am_has_slept=yes
2480   done
2481   test "$2" = conftest.file
2482   )
2483then
2484   # Ok.
2485   :
2486else
2487   as_fn_error $? "newly created file is older than distributed files!
2488Check your system clock" "$LINENO" 5
2489fi
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2491$as_echo "yes" >&6; }
2492# If we didn't sleep, we still need to ensure time stamps of config.status and
2493# generated files are strictly newer.
2494am_sleep_pid=
2495if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2496  ( sleep 1 ) &
2497  am_sleep_pid=$!
2498fi
2499
2500rm -f conftest.file
2501
2502test "$program_prefix" != NONE &&
2503  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2504# Use a double $ so make ignores it.
2505test "$program_suffix" != NONE &&
2506  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2507# Double any \ or $.
2508# By default was `s,x,x', remove it if useless.
2509ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2510program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2511
2512# Expand $ac_aux_dir to an absolute path.
2513am_aux_dir=`cd "$ac_aux_dir" && pwd`
2514
2515if test x"${MISSING+set}" != xset; then
2516  case $am_aux_dir in
2517  *\ * | *\	*)
2518    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2519  *)
2520    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2521  esac
2522fi
2523# Use eval to expand $SHELL
2524if eval "$MISSING --is-lightweight"; then
2525  am_missing_run="$MISSING "
2526else
2527  am_missing_run=
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2529$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2530fi
2531
2532if test x"${install_sh+set}" != xset; then
2533  case $am_aux_dir in
2534  *\ * | *\	*)
2535    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2536  *)
2537    install_sh="\${SHELL} $am_aux_dir/install-sh"
2538  esac
2539fi
2540
2541# Installed binaries are usually stripped using 'strip' when the user
2542# run "make install-strip".  However 'strip' might not be the right
2543# tool to use in cross-compilation environments, therefore Automake
2544# will honor the 'STRIP' environment variable to overrule this program.
2545if test "$cross_compiling" != no; then
2546  if test -n "$ac_tool_prefix"; then
2547  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2548set dummy ${ac_tool_prefix}strip; ac_word=$2
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if ${ac_cv_prog_STRIP+:} false; then :
2552  $as_echo_n "(cached) " >&6
2553else
2554  if test -n "$STRIP"; then
2555  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562    for ac_exec_ext in '' $ac_executable_extensions; do
2563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566    break 2
2567  fi
2568done
2569  done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574STRIP=$ac_cv_prog_STRIP
2575if test -n "$STRIP"; then
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2577$as_echo "$STRIP" >&6; }
2578else
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580$as_echo "no" >&6; }
2581fi
2582
2583
2584fi
2585if test -z "$ac_cv_prog_STRIP"; then
2586  ac_ct_STRIP=$STRIP
2587  # Extract the first word of "strip", so it can be a program name with args.
2588set dummy strip; ac_word=$2
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2592  $as_echo_n "(cached) " >&6
2593else
2594  if test -n "$ac_ct_STRIP"; then
2595  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600  IFS=$as_save_IFS
2601  test -z "$as_dir" && as_dir=.
2602    for ac_exec_ext in '' $ac_executable_extensions; do
2603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604    ac_cv_prog_ac_ct_STRIP="strip"
2605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606    break 2
2607  fi
2608done
2609  done
2610IFS=$as_save_IFS
2611
2612fi
2613fi
2614ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2615if test -n "$ac_ct_STRIP"; then
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2617$as_echo "$ac_ct_STRIP" >&6; }
2618else
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621fi
2622
2623  if test "x$ac_ct_STRIP" = x; then
2624    STRIP=":"
2625  else
2626    case $cross_compiling:$ac_tool_warned in
2627yes:)
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630ac_tool_warned=yes ;;
2631esac
2632    STRIP=$ac_ct_STRIP
2633  fi
2634else
2635  STRIP="$ac_cv_prog_STRIP"
2636fi
2637
2638fi
2639INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2640
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2642$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2643if test -z "$MKDIR_P"; then
2644  if ${ac_cv_path_mkdir+:} false; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2649do
2650  IFS=$as_save_IFS
2651  test -z "$as_dir" && as_dir=.
2652    for ac_prog in mkdir gmkdir; do
2653	 for ac_exec_ext in '' $ac_executable_extensions; do
2654	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2655	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2656	     'mkdir (GNU coreutils) '* | \
2657	     'mkdir (coreutils) '* | \
2658	     'mkdir (fileutils) '4.1*)
2659	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2660	       break 3;;
2661	   esac
2662	 done
2663       done
2664  done
2665IFS=$as_save_IFS
2666
2667fi
2668
2669  test -d ./--version && rmdir ./--version
2670  if test "${ac_cv_path_mkdir+set}" = set; then
2671    MKDIR_P="$ac_cv_path_mkdir -p"
2672  else
2673    # As a last resort, use the slow shell script.  Don't cache a
2674    # value for MKDIR_P within a source directory, because that will
2675    # break other packages using the cache if that directory is
2676    # removed, or if the value is a relative name.
2677    MKDIR_P="$ac_install_sh -d"
2678  fi
2679fi
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2681$as_echo "$MKDIR_P" >&6; }
2682
2683for ac_prog in gawk mawk nawk awk
2684do
2685  # Extract the first word of "$ac_prog", so it can be a program name with args.
2686set dummy $ac_prog; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_AWK+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$AWK"; then
2693  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_exec_ext in '' $ac_executable_extensions; do
2701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702    ac_cv_prog_AWK="$ac_prog"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712AWK=$ac_cv_prog_AWK
2713if test -n "$AWK"; then
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2715$as_echo "$AWK" >&6; }
2716else
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722  test -n "$AWK" && break
2723done
2724
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2726$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2727set x ${MAKE-make}
2728ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2729if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  cat >conftest.make <<\_ACEOF
2733SHELL = /bin/sh
2734all:
2735	@echo '@@@%%%=$(MAKE)=@@@%%%'
2736_ACEOF
2737# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2738case `${MAKE-make} -f conftest.make 2>/dev/null` in
2739  *@@@%%%=?*=@@@%%%*)
2740    eval ac_cv_prog_make_${ac_make}_set=yes;;
2741  *)
2742    eval ac_cv_prog_make_${ac_make}_set=no;;
2743esac
2744rm -f conftest.make
2745fi
2746if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2748$as_echo "yes" >&6; }
2749  SET_MAKE=
2750else
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752$as_echo "no" >&6; }
2753  SET_MAKE="MAKE=${MAKE-make}"
2754fi
2755
2756rm -rf .tst 2>/dev/null
2757mkdir .tst 2>/dev/null
2758if test -d .tst; then
2759  am__leading_dot=.
2760else
2761  am__leading_dot=_
2762fi
2763rmdir .tst 2>/dev/null
2764
2765# Check whether --enable-silent-rules was given.
2766if test "${enable_silent_rules+set}" = set; then :
2767  enableval=$enable_silent_rules;
2768fi
2769
2770case $enable_silent_rules in # (((
2771  yes) AM_DEFAULT_VERBOSITY=0;;
2772   no) AM_DEFAULT_VERBOSITY=1;;
2773    *) AM_DEFAULT_VERBOSITY=1;;
2774esac
2775am_make=${MAKE-make}
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2777$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2778if ${am_cv_make_support_nested_variables+:} false; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  if $as_echo 'TRUE=$(BAR$(V))
2782BAR0=false
2783BAR1=true
2784V=1
2785am__doit:
2786	@$(TRUE)
2787.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2788  am_cv_make_support_nested_variables=yes
2789else
2790  am_cv_make_support_nested_variables=no
2791fi
2792fi
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2794$as_echo "$am_cv_make_support_nested_variables" >&6; }
2795if test $am_cv_make_support_nested_variables = yes; then
2796    AM_V='$(V)'
2797  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2798else
2799  AM_V=$AM_DEFAULT_VERBOSITY
2800  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2801fi
2802AM_BACKSLASH='\'
2803
2804if test "`cd $srcdir && pwd`" != "`pwd`"; then
2805  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2806  # is not polluted with repeated "-I."
2807  am__isrc=' -I$(srcdir)'
2808  # test to see if srcdir already configured
2809  if test -f $srcdir/config.status; then
2810    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2811  fi
2812fi
2813
2814# test whether we have cygpath
2815if test -z "$CYGPATH_W"; then
2816  if (cygpath --version) >/dev/null 2>/dev/null; then
2817    CYGPATH_W='cygpath -w'
2818  else
2819    CYGPATH_W=echo
2820  fi
2821fi
2822
2823
2824# Define the identity of the package.
2825 PACKAGE='iperf'
2826 VERSION='3.6+'
2827
2828
2829cat >>confdefs.h <<_ACEOF
2830#define PACKAGE "$PACKAGE"
2831_ACEOF
2832
2833
2834cat >>confdefs.h <<_ACEOF
2835#define VERSION "$VERSION"
2836_ACEOF
2837
2838# Some tools Automake needs.
2839
2840ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2841
2842
2843AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2844
2845
2846AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2847
2848
2849AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2850
2851
2852MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2853
2854# For better backward compatibility.  To be removed once Automake 1.9.x
2855# dies out for good.  For more background, see:
2856# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2857# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2858mkdir_p='$(MKDIR_P)'
2859
2860# We need awk for the "check" target (and possibly the TAP driver).  The
2861# system "awk" is bad on some platforms.
2862# Always define AMTAR for backward compatibility.  Yes, it's still used
2863# in the wild :-(  We should find a proper way to deprecate it ...
2864AMTAR='$${TAR-tar}'
2865
2866
2867# We'll loop over all known methods to create a tar archive until one works.
2868_am_tools='gnutar  pax cpio none'
2869
2870am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2871
2872
2873
2874
2875
2876
2877# POSIX will say in a future version that running "rm -f" with no argument
2878# is OK; and we want to be able to make that assumption in our Makefile
2879# recipes.  So use an aggressive probe to check that the usage we want is
2880# actually supported "in the wild" to an acceptable degree.
2881# See automake bug#10828.
2882# To make any issue more visible, cause the running configure to be aborted
2883# by default if the 'rm' program in use doesn't match our expectations; the
2884# user can still override this though.
2885if rm -f && rm -fr && rm -rf; then : OK; else
2886  cat >&2 <<'END'
2887Oops!
2888
2889Your 'rm' program seems unable to run without file operands specified
2890on the command line, even when the '-f' option is present.  This is contrary
2891to the behaviour of most rm programs out there, and not conforming with
2892the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2893
2894Please tell bug-automake@gnu.org about your system, including the value
2895of your $PATH and any error possibly output before this message.  This
2896can help us improve future automake versions.
2897
2898END
2899  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2900    echo 'Configuration will proceed anyway, since you have set the' >&2
2901    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2902    echo >&2
2903  else
2904    cat >&2 <<'END'
2905Aborting the configuration process, to ensure you take notice of the issue.
2906
2907You can download and install GNU coreutils to get an 'rm' implementation
2908that behaves properly: <https://www.gnu.org/software/coreutils/>.
2909
2910If you want to complete the configuration process using your problematic
2911'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2912to "yes", and re-run configure.
2913
2914END
2915    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2916  fi
2917fi
2918
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2921$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2922    # Check whether --enable-maintainer-mode was given.
2923if test "${enable_maintainer_mode+set}" = set; then :
2924  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2925else
2926  USE_MAINTAINER_MODE=no
2927fi
2928
2929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2930$as_echo "$USE_MAINTAINER_MODE" >&6; }
2931   if test $USE_MAINTAINER_MODE = yes; then
2932  MAINTAINER_MODE_TRUE=
2933  MAINTAINER_MODE_FALSE='#'
2934else
2935  MAINTAINER_MODE_TRUE='#'
2936  MAINTAINER_MODE_FALSE=
2937fi
2938
2939  MAINT=$MAINTAINER_MODE_TRUE
2940
2941
2942ac_config_headers="$ac_config_headers src/iperf_config.h"
2943
2944
2945# Make sure we can run config.sub.
2946$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2947  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2948
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2950$as_echo_n "checking build system type... " >&6; }
2951if ${ac_cv_build+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  ac_build_alias=$build_alias
2955test "x$ac_build_alias" = x &&
2956  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2957test "x$ac_build_alias" = x &&
2958  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2959ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2960  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2961
2962fi
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2964$as_echo "$ac_cv_build" >&6; }
2965case $ac_cv_build in
2966*-*-*) ;;
2967*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2968esac
2969build=$ac_cv_build
2970ac_save_IFS=$IFS; IFS='-'
2971set x $ac_cv_build
2972shift
2973build_cpu=$1
2974build_vendor=$2
2975shift; shift
2976# Remember, the first character of IFS is used to create $*,
2977# except with old shells:
2978build_os=$*
2979IFS=$ac_save_IFS
2980case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2981
2982
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2984$as_echo_n "checking host system type... " >&6; }
2985if ${ac_cv_host+:} false; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  if test "x$host_alias" = x; then
2989  ac_cv_host=$ac_cv_build
2990else
2991  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2992    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2993fi
2994
2995fi
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2997$as_echo "$ac_cv_host" >&6; }
2998case $ac_cv_host in
2999*-*-*) ;;
3000*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3001esac
3002host=$ac_cv_host
3003ac_save_IFS=$IFS; IFS='-'
3004set x $ac_cv_host
3005shift
3006host_cpu=$1
3007host_vendor=$2
3008shift; shift
3009# Remember, the first character of IFS is used to create $*,
3010# except with old shells:
3011host_os=$*
3012IFS=$ac_save_IFS
3013case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3014
3015
3016
3017# Checks for tools: c compiler, ranlib (used for creating static libraries),
3018# symlinks and libtool
3019ac_ext=c
3020ac_cpp='$CPP $CPPFLAGS'
3021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024if test -n "$ac_tool_prefix"; then
3025  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026set dummy ${ac_tool_prefix}gcc; ac_word=$2
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028$as_echo_n "checking for $ac_word... " >&6; }
3029if ${ac_cv_prog_CC+:} false; then :
3030  $as_echo_n "(cached) " >&6
3031else
3032  if test -n "$CC"; then
3033  ac_cv_prog_CC="$CC" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038  IFS=$as_save_IFS
3039  test -z "$as_dir" && as_dir=.
3040    for ac_exec_ext in '' $ac_executable_extensions; do
3041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044    break 2
3045  fi
3046done
3047  done
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052CC=$ac_cv_prog_CC
3053if test -n "$CC"; then
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055$as_echo "$CC" >&6; }
3056else
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062fi
3063if test -z "$ac_cv_prog_CC"; then
3064  ac_ct_CC=$CC
3065  # Extract the first word of "gcc", so it can be a program name with args.
3066set dummy gcc; ac_word=$2
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068$as_echo_n "checking for $ac_word... " >&6; }
3069if ${ac_cv_prog_ac_ct_CC+:} false; then :
3070  $as_echo_n "(cached) " >&6
3071else
3072  if test -n "$ac_ct_CC"; then
3073  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078  IFS=$as_save_IFS
3079  test -z "$as_dir" && as_dir=.
3080    for ac_exec_ext in '' $ac_executable_extensions; do
3081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082    ac_cv_prog_ac_ct_CC="gcc"
3083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087  done
3088IFS=$as_save_IFS
3089
3090fi
3091fi
3092ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093if test -n "$ac_ct_CC"; then
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3095$as_echo "$ac_ct_CC" >&6; }
3096else
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098$as_echo "no" >&6; }
3099fi
3100
3101  if test "x$ac_ct_CC" = x; then
3102    CC=""
3103  else
3104    case $cross_compiling:$ac_tool_warned in
3105yes:)
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108ac_tool_warned=yes ;;
3109esac
3110    CC=$ac_ct_CC
3111  fi
3112else
3113  CC="$ac_cv_prog_CC"
3114fi
3115
3116if test -z "$CC"; then
3117          if test -n "$ac_tool_prefix"; then
3118    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119set dummy ${ac_tool_prefix}cc; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
3122if ${ac_cv_prog_CC+:} false; then :
3123  $as_echo_n "(cached) " >&6
3124else
3125  if test -n "$CC"; then
3126  ac_cv_prog_CC="$CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  test -z "$as_dir" && as_dir=.
3133    for ac_exec_ext in '' $ac_executable_extensions; do
3134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135    ac_cv_prog_CC="${ac_tool_prefix}cc"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155  fi
3156fi
3157if test -z "$CC"; then
3158  # Extract the first word of "cc", so it can be a program name with args.
3159set dummy cc; ac_word=$2
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161$as_echo_n "checking for $ac_word... " >&6; }
3162if ${ac_cv_prog_CC+:} false; then :
3163  $as_echo_n "(cached) " >&6
3164else
3165  if test -n "$CC"; then
3166  ac_cv_prog_CC="$CC" # Let the user override the test.
3167else
3168  ac_prog_rejected=no
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174    for ac_exec_ext in '' $ac_executable_extensions; do
3175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177       ac_prog_rejected=yes
3178       continue
3179     fi
3180    ac_cv_prog_CC="cc"
3181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182    break 2
3183  fi
3184done
3185  done
3186IFS=$as_save_IFS
3187
3188if test $ac_prog_rejected = yes; then
3189  # We found a bogon in the path, so make sure we never use it.
3190  set dummy $ac_cv_prog_CC
3191  shift
3192  if test $# != 0; then
3193    # We chose a different compiler from the bogus one.
3194    # However, it has the same basename, so the bogon will be chosen
3195    # first if we set CC to just the basename; use the full file name.
3196    shift
3197    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3198  fi
3199fi
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212fi
3213if test -z "$CC"; then
3214  if test -n "$ac_tool_prefix"; then
3215  for ac_prog in cl.exe
3216  do
3217    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220$as_echo_n "checking for $ac_word... " >&6; }
3221if ${ac_cv_prog_CC+:} false; then :
3222  $as_echo_n "(cached) " >&6
3223else
3224  if test -n "$CC"; then
3225  ac_cv_prog_CC="$CC" # Let the user override the test.
3226else
3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH
3229do
3230  IFS=$as_save_IFS
3231  test -z "$as_dir" && as_dir=.
3232    for ac_exec_ext in '' $ac_executable_extensions; do
3233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236    break 2
3237  fi
3238done
3239  done
3240IFS=$as_save_IFS
3241
3242fi
3243fi
3244CC=$ac_cv_prog_CC
3245if test -n "$CC"; then
3246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247$as_echo "$CC" >&6; }
3248else
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250$as_echo "no" >&6; }
3251fi
3252
3253
3254    test -n "$CC" && break
3255  done
3256fi
3257if test -z "$CC"; then
3258  ac_ct_CC=$CC
3259  for ac_prog in cl.exe
3260do
3261  # Extract the first word of "$ac_prog", so it can be a program name with args.
3262set dummy $ac_prog; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if ${ac_cv_prog_ac_ct_CC+:} false; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268  if test -n "$ac_ct_CC"; then
3269  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274  IFS=$as_save_IFS
3275  test -z "$as_dir" && as_dir=.
3276    for ac_exec_ext in '' $ac_executable_extensions; do
3277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278    ac_cv_prog_ac_ct_CC="$ac_prog"
3279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280    break 2
3281  fi
3282done
3283  done
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289if test -n "$ac_ct_CC"; then
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3291$as_echo "$ac_ct_CC" >&6; }
3292else
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298  test -n "$ac_ct_CC" && break
3299done
3300
3301  if test "x$ac_ct_CC" = x; then
3302    CC=""
3303  else
3304    case $cross_compiling:$ac_tool_warned in
3305yes:)
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308ac_tool_warned=yes ;;
3309esac
3310    CC=$ac_ct_CC
3311  fi
3312fi
3313
3314fi
3315
3316
3317test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319as_fn_error $? "no acceptable C compiler found in \$PATH
3320See \`config.log' for more details" "$LINENO" 5; }
3321
3322# Provide some information about the compiler.
3323$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3324set X $ac_compile
3325ac_compiler=$2
3326for ac_option in --version -v -V -qversion; do
3327  { { ac_try="$ac_compiler $ac_option >&5"
3328case "(($ac_try" in
3329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330  *) ac_try_echo=$ac_try;;
3331esac
3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
3334  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3335  ac_status=$?
3336  if test -s conftest.err; then
3337    sed '10a\
3338... rest of stderr output deleted ...
3339         10q' conftest.err >conftest.er1
3340    cat conftest.er1 >&5
3341  fi
3342  rm -f conftest.er1 conftest.err
3343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344  test $ac_status = 0; }
3345done
3346
3347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348/* end confdefs.h.  */
3349
3350int
3351main ()
3352{
3353
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358ac_clean_files_save=$ac_clean_files
3359ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3360# Try to create an executable without -o first, disregard a.out.
3361# It will help us diagnose broken compilers, and finding out an intuition
3362# of exeext.
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364$as_echo_n "checking whether the C compiler works... " >&6; }
3365ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3366
3367# The possible output files:
3368ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3369
3370ac_rmfiles=
3371for ac_file in $ac_files
3372do
3373  case $ac_file in
3374    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3376  esac
3377done
3378rm -f $ac_rmfiles
3379
3380if { { ac_try="$ac_link_default"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387  (eval "$ac_link_default") 2>&5
3388  ac_status=$?
3389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390  test $ac_status = 0; }; then :
3391  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3392# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3393# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3394# so that the user can short-circuit this test for compilers unknown to
3395# Autoconf.
3396for ac_file in $ac_files ''
3397do
3398  test -f "$ac_file" || continue
3399  case $ac_file in
3400    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3401	;;
3402    [ab].out )
3403	# We found the default executable, but exeext='' is most
3404	# certainly right.
3405	break;;
3406    *.* )
3407	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3408	then :; else
3409	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3410	fi
3411	# We set ac_cv_exeext here because the later test for it is not
3412	# safe: cross compilers may not add the suffix if given an `-o'
3413	# argument, so we may need to know it at that point already.
3414	# Even if this section looks crufty: it has the advantage of
3415	# actually working.
3416	break;;
3417    * )
3418	break;;
3419  esac
3420done
3421test "$ac_cv_exeext" = no && ac_cv_exeext=
3422
3423else
3424  ac_file=''
3425fi
3426if test -z "$ac_file"; then :
3427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429$as_echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434as_fn_error 77 "C compiler cannot create executables
3435See \`config.log' for more details" "$LINENO" 5; }
3436else
3437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438$as_echo "yes" >&6; }
3439fi
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3441$as_echo_n "checking for C compiler default output file name... " >&6; }
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3443$as_echo "$ac_file" >&6; }
3444ac_exeext=$ac_cv_exeext
3445
3446rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3447ac_clean_files=$ac_clean_files_save
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3449$as_echo_n "checking for suffix of executables... " >&6; }
3450if { { ac_try="$ac_link"
3451case "(($ac_try" in
3452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453  *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
3457  (eval "$ac_link") 2>&5
3458  ac_status=$?
3459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460  test $ac_status = 0; }; then :
3461  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3462# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3463# work properly (i.e., refer to `conftest.exe'), while it won't with
3464# `rm'.
3465for ac_file in conftest.exe conftest conftest.*; do
3466  test -f "$ac_file" || continue
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470	  break;;
3471    * ) break;;
3472  esac
3473done
3474else
3475  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3478See \`config.log' for more details" "$LINENO" 5; }
3479fi
3480rm -f conftest conftest$ac_cv_exeext
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3482$as_echo "$ac_cv_exeext" >&6; }
3483
3484rm -f conftest.$ac_ext
3485EXEEXT=$ac_cv_exeext
3486ac_exeext=$EXEEXT
3487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489#include <stdio.h>
3490int
3491main ()
3492{
3493FILE *f = fopen ("conftest.out", "w");
3494 return ferror (f) || fclose (f) != 0;
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500ac_clean_files="$ac_clean_files conftest.out"
3501# Check that the compiler produces executables we can run.  If not, either
3502# the compiler is broken, or we cross compile.
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3504$as_echo_n "checking whether we are cross compiling... " >&6; }
3505if test "$cross_compiling" != yes; then
3506  { { ac_try="$ac_link"
3507case "(($ac_try" in
3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509  *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513  (eval "$ac_link") 2>&5
3514  ac_status=$?
3515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516  test $ac_status = 0; }
3517  if { ac_try='./conftest$ac_cv_exeext'
3518  { { case "(($ac_try" in
3519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520  *) ac_try_echo=$ac_try;;
3521esac
3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523$as_echo "$ac_try_echo"; } >&5
3524  (eval "$ac_try") 2>&5
3525  ac_status=$?
3526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527  test $ac_status = 0; }; }; then
3528    cross_compiling=no
3529  else
3530    if test "$cross_compiling" = maybe; then
3531	cross_compiling=yes
3532    else
3533	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535as_fn_error $? "cannot run C compiled programs.
3536If you meant to cross compile, use \`--host'.
3537See \`config.log' for more details" "$LINENO" 5; }
3538    fi
3539  fi
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3542$as_echo "$cross_compiling" >&6; }
3543
3544rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3545ac_clean_files=$ac_clean_files_save
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3547$as_echo_n "checking for suffix of object files... " >&6; }
3548if ${ac_cv_objext+:} false; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553
3554int
3555main ()
3556{
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562rm -f conftest.o conftest.obj
3563if { { ac_try="$ac_compile"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570  (eval "$ac_compile") 2>&5
3571  ac_status=$?
3572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573  test $ac_status = 0; }; then :
3574  for ac_file in conftest.o conftest.obj conftest.*; do
3575  test -f "$ac_file" || continue;
3576  case $ac_file in
3577    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3578    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3579       break;;
3580  esac
3581done
3582else
3583  $as_echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588as_fn_error $? "cannot compute suffix of object files: cannot compile
3589See \`config.log' for more details" "$LINENO" 5; }
3590fi
3591rm -f conftest.$ac_cv_objext conftest.$ac_ext
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3594$as_echo "$ac_cv_objext" >&6; }
3595OBJEXT=$ac_cv_objext
3596ac_objext=$OBJEXT
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3598$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3599if ${ac_cv_c_compiler_gnu+:} false; then :
3600  $as_echo_n "(cached) " >&6
3601else
3602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604
3605int
3606main ()
3607{
3608#ifndef __GNUC__
3609       choke me
3610#endif
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616if ac_fn_c_try_compile "$LINENO"; then :
3617  ac_compiler_gnu=yes
3618else
3619  ac_compiler_gnu=no
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622ac_cv_c_compiler_gnu=$ac_compiler_gnu
3623
3624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3626$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3627if test $ac_compiler_gnu = yes; then
3628  GCC=yes
3629else
3630  GCC=
3631fi
3632ac_test_CFLAGS=${CFLAGS+set}
3633ac_save_CFLAGS=$CFLAGS
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3635$as_echo_n "checking whether $CC accepts -g... " >&6; }
3636if ${ac_cv_prog_cc_g+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  ac_save_c_werror_flag=$ac_c_werror_flag
3640   ac_c_werror_flag=yes
3641   ac_cv_prog_cc_g=no
3642   CFLAGS="-g"
3643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h.  */
3645
3646int
3647main ()
3648{
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654if ac_fn_c_try_compile "$LINENO"; then :
3655  ac_cv_prog_cc_g=yes
3656else
3657  CFLAGS=""
3658      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669if ac_fn_c_try_compile "$LINENO"; then :
3670
3671else
3672  ac_c_werror_flag=$ac_save_c_werror_flag
3673	 CFLAGS="-g"
3674	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main ()
3679{
3680
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685if ac_fn_c_try_compile "$LINENO"; then :
3686  ac_cv_prog_cc_g=yes
3687fi
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689fi
3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691fi
3692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693   ac_c_werror_flag=$ac_save_c_werror_flag
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3696$as_echo "$ac_cv_prog_cc_g" >&6; }
3697if test "$ac_test_CFLAGS" = set; then
3698  CFLAGS=$ac_save_CFLAGS
3699elif test $ac_cv_prog_cc_g = yes; then
3700  if test "$GCC" = yes; then
3701    CFLAGS="-g -O2"
3702  else
3703    CFLAGS="-g"
3704  fi
3705else
3706  if test "$GCC" = yes; then
3707    CFLAGS="-O2"
3708  else
3709    CFLAGS=
3710  fi
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3713$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3714if ${ac_cv_prog_cc_c89+:} false; then :
3715  $as_echo_n "(cached) " >&6
3716else
3717  ac_cv_prog_cc_c89=no
3718ac_save_CC=$CC
3719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721#include <stdarg.h>
3722#include <stdio.h>
3723struct stat;
3724/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3725struct buf { int x; };
3726FILE * (*rcsopen) (struct buf *, struct stat *, int);
3727static char *e (p, i)
3728     char **p;
3729     int i;
3730{
3731  return p[i];
3732}
3733static char *f (char * (*g) (char **, int), char **p, ...)
3734{
3735  char *s;
3736  va_list v;
3737  va_start (v,p);
3738  s = g (p, va_arg (v,int));
3739  va_end (v);
3740  return s;
3741}
3742
3743/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3744   function prototypes and stuff, but not '\xHH' hex character constants.
3745   These don't provoke an error unfortunately, instead are silently treated
3746   as 'x'.  The following induces an error, until -std is added to get
3747   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3748   array size at least.  It's necessary to write '\x00'==0 to get something
3749   that's true only with -std.  */
3750int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3751
3752/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3753   inside strings and character constants.  */
3754#define FOO(x) 'x'
3755int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3756
3757int test (int i, double x);
3758struct s1 {int (*f) (int a);};
3759struct s2 {int (*f) (double a);};
3760int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3761int argc;
3762char **argv;
3763int
3764main ()
3765{
3766return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3767  ;
3768  return 0;
3769}
3770_ACEOF
3771for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3772	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3773do
3774  CC="$ac_save_CC $ac_arg"
3775  if ac_fn_c_try_compile "$LINENO"; then :
3776  ac_cv_prog_cc_c89=$ac_arg
3777fi
3778rm -f core conftest.err conftest.$ac_objext
3779  test "x$ac_cv_prog_cc_c89" != "xno" && break
3780done
3781rm -f conftest.$ac_ext
3782CC=$ac_save_CC
3783
3784fi
3785# AC_CACHE_VAL
3786case "x$ac_cv_prog_cc_c89" in
3787  x)
3788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789$as_echo "none needed" >&6; } ;;
3790  xno)
3791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3792$as_echo "unsupported" >&6; } ;;
3793  *)
3794    CC="$CC $ac_cv_prog_cc_c89"
3795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3796$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3797esac
3798if test "x$ac_cv_prog_cc_c89" != xno; then :
3799
3800fi
3801
3802ac_ext=c
3803ac_cpp='$CPP $CPPFLAGS'
3804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
3808ac_ext=c
3809ac_cpp='$CPP $CPPFLAGS'
3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3814$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3815if ${am_cv_prog_cc_c_o+:} false; then :
3816  $as_echo_n "(cached) " >&6
3817else
3818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829  # Make sure it works both with $CC and with simple cc.
3830  # Following AC_PROG_CC_C_O, we do the test twice because some
3831  # compilers refuse to overwrite an existing .o file with -o,
3832  # though they will create one.
3833  am_cv_prog_cc_c_o=yes
3834  for am_i in 1 2; do
3835    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3836   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } \
3840         && test -f conftest2.$ac_objext; then
3841      : OK
3842    else
3843      am_cv_prog_cc_c_o=no
3844      break
3845    fi
3846  done
3847  rm -f core conftest*
3848  unset am_i
3849fi
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3851$as_echo "$am_cv_prog_cc_c_o" >&6; }
3852if test "$am_cv_prog_cc_c_o" != yes; then
3853   # Losing compiler, so override with the script.
3854   # FIXME: It is wrong to rewrite CC.
3855   # But if we don't then we get into trouble of one sort or another.
3856   # A longer-term fix would be to have automake use am__CC in this case,
3857   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3858   CC="$am_aux_dir/compile $CC"
3859fi
3860ac_ext=c
3861ac_cpp='$CPP $CPPFLAGS'
3862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
3866DEPDIR="${am__leading_dot}deps"
3867
3868ac_config_commands="$ac_config_commands depfiles"
3869
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3871$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3872cat > confinc.mk << 'END'
3873am__doit:
3874	@echo this is the am__doit target >confinc.out
3875.PHONY: am__doit
3876END
3877am__include="#"
3878am__quote=
3879# BSD make does it like this.
3880echo '.include "confinc.mk" # ignored' > confmf.BSD
3881# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3882echo 'include confinc.mk # ignored' > confmf.GNU
3883_am_result=no
3884for s in GNU BSD; do
3885  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3886   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3887   ac_status=$?
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); }
3890  case $?:`cat confinc.out 2>/dev/null` in #(
3891  '0:this is the am__doit target') :
3892    case $s in #(
3893  BSD) :
3894    am__include='.include' am__quote='"' ;; #(
3895  *) :
3896    am__include='include' am__quote='' ;;
3897esac ;; #(
3898  *) :
3899     ;;
3900esac
3901  if test "$am__include" != "#"; then
3902    _am_result="yes ($s style)"
3903    break
3904  fi
3905done
3906rm -f confinc.* confmf.*
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3908$as_echo "${_am_result}" >&6; }
3909
3910# Check whether --enable-dependency-tracking was given.
3911if test "${enable_dependency_tracking+set}" = set; then :
3912  enableval=$enable_dependency_tracking;
3913fi
3914
3915if test "x$enable_dependency_tracking" != xno; then
3916  am_depcomp="$ac_aux_dir/depcomp"
3917  AMDEPBACKSLASH='\'
3918  am__nodep='_no'
3919fi
3920 if test "x$enable_dependency_tracking" != xno; then
3921  AMDEP_TRUE=
3922  AMDEP_FALSE='#'
3923else
3924  AMDEP_TRUE='#'
3925  AMDEP_FALSE=
3926fi
3927
3928
3929
3930depcc="$CC"   am_compiler_list=
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3933$as_echo_n "checking dependency style of $depcc... " >&6; }
3934if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3938  # We make a subdir and do the tests there.  Otherwise we can end up
3939  # making bogus files that we don't know about and never remove.  For
3940  # instance it was reported that on HP-UX the gcc test will end up
3941  # making a dummy file named 'D' -- because '-MD' means "put the output
3942  # in D".
3943  rm -rf conftest.dir
3944  mkdir conftest.dir
3945  # Copy depcomp to subdir because otherwise we won't find it if we're
3946  # using a relative directory.
3947  cp "$am_depcomp" conftest.dir
3948  cd conftest.dir
3949  # We will build objects and dependencies in a subdirectory because
3950  # it helps to detect inapplicable dependency modes.  For instance
3951  # both Tru64's cc and ICC support -MD to output dependencies as a
3952  # side effect of compilation, but ICC will put the dependencies in
3953  # the current directory while Tru64 will put them in the object
3954  # directory.
3955  mkdir sub
3956
3957  am_cv_CC_dependencies_compiler_type=none
3958  if test "$am_compiler_list" = ""; then
3959     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3960  fi
3961  am__universal=false
3962  case " $depcc " in #(
3963     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3964     esac
3965
3966  for depmode in $am_compiler_list; do
3967    # Setup a source with many dependencies, because some compilers
3968    # like to wrap large dependency lists on column 80 (with \), and
3969    # we should not choose a depcomp mode which is confused by this.
3970    #
3971    # We need to recreate these files for each test, as the compiler may
3972    # overwrite some of them when testing with obscure command lines.
3973    # This happens at least with the AIX C compiler.
3974    : > sub/conftest.c
3975    for i in 1 2 3 4 5 6; do
3976      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3977      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3978      # Solaris 10 /bin/sh.
3979      echo '/* dummy */' > sub/conftst$i.h
3980    done
3981    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3982
3983    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3984    # mode.  It turns out that the SunPro C++ compiler does not properly
3985    # handle '-M -o', and we need to detect this.  Also, some Intel
3986    # versions had trouble with output in subdirs.
3987    am__obj=sub/conftest.${OBJEXT-o}
3988    am__minus_obj="-o $am__obj"
3989    case $depmode in
3990    gcc)
3991      # This depmode causes a compiler race in universal mode.
3992      test "$am__universal" = false || continue
3993      ;;
3994    nosideeffect)
3995      # After this tag, mechanisms are not by side-effect, so they'll
3996      # only be used when explicitly requested.
3997      if test "x$enable_dependency_tracking" = xyes; then
3998	continue
3999      else
4000	break
4001      fi
4002      ;;
4003    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4004      # This compiler won't grok '-c -o', but also, the minuso test has
4005      # not run yet.  These depmodes are late enough in the game, and
4006      # so weak that their functioning should not be impacted.
4007      am__obj=conftest.${OBJEXT-o}
4008      am__minus_obj=
4009      ;;
4010    none) break ;;
4011    esac
4012    if depmode=$depmode \
4013       source=sub/conftest.c object=$am__obj \
4014       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4016         >/dev/null 2>conftest.err &&
4017       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4018       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4019       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4020       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4021      # icc doesn't choke on unknown options, it will just issue warnings
4022      # or remarks (even with -Werror).  So we grep stderr for any message
4023      # that says an option was ignored or not supported.
4024      # When given -MP, icc 7.0 and 7.1 complain thusly:
4025      #   icc: Command line warning: ignoring option '-M'; no argument required
4026      # The diagnosis changed in icc 8.0:
4027      #   icc: Command line remark: option '-MP' not supported
4028      if (grep 'ignoring option' conftest.err ||
4029          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4030        am_cv_CC_dependencies_compiler_type=$depmode
4031        break
4032      fi
4033    fi
4034  done
4035
4036  cd ..
4037  rm -rf conftest.dir
4038else
4039  am_cv_CC_dependencies_compiler_type=none
4040fi
4041
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4044$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4045CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4046
4047 if
4048  test "x$enable_dependency_tracking" != xno \
4049  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4050  am__fastdepCC_TRUE=
4051  am__fastdepCC_FALSE='#'
4052else
4053  am__fastdepCC_TRUE='#'
4054  am__fastdepCC_FALSE=
4055fi
4056
4057
4058if test -n "$ac_tool_prefix"; then
4059  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4060set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062$as_echo_n "checking for $ac_word... " >&6; }
4063if ${ac_cv_prog_RANLIB+:} false; then :
4064  $as_echo_n "(cached) " >&6
4065else
4066  if test -n "$RANLIB"; then
4067  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4068else
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072  IFS=$as_save_IFS
4073  test -z "$as_dir" && as_dir=.
4074    for ac_exec_ext in '' $ac_executable_extensions; do
4075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078    break 2
4079  fi
4080done
4081  done
4082IFS=$as_save_IFS
4083
4084fi
4085fi
4086RANLIB=$ac_cv_prog_RANLIB
4087if test -n "$RANLIB"; then
4088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4089$as_echo "$RANLIB" >&6; }
4090else
4091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092$as_echo "no" >&6; }
4093fi
4094
4095
4096fi
4097if test -z "$ac_cv_prog_RANLIB"; then
4098  ac_ct_RANLIB=$RANLIB
4099  # Extract the first word of "ranlib", so it can be a program name with args.
4100set dummy ranlib; ac_word=$2
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102$as_echo_n "checking for $ac_word... " >&6; }
4103if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  if test -n "$ac_ct_RANLIB"; then
4107  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112  IFS=$as_save_IFS
4113  test -z "$as_dir" && as_dir=.
4114    for ac_exec_ext in '' $ac_executable_extensions; do
4115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116    ac_cv_prog_ac_ct_RANLIB="ranlib"
4117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118    break 2
4119  fi
4120done
4121  done
4122IFS=$as_save_IFS
4123
4124fi
4125fi
4126ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4127if test -n "$ac_ct_RANLIB"; then
4128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4129$as_echo "$ac_ct_RANLIB" >&6; }
4130else
4131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
4133fi
4134
4135  if test "x$ac_ct_RANLIB" = x; then
4136    RANLIB=":"
4137  else
4138    case $cross_compiling:$ac_tool_warned in
4139yes:)
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142ac_tool_warned=yes ;;
4143esac
4144    RANLIB=$ac_ct_RANLIB
4145  fi
4146else
4147  RANLIB="$ac_cv_prog_RANLIB"
4148fi
4149
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4151$as_echo_n "checking whether ln -s works... " >&6; }
4152LN_S=$as_ln_s
4153if test "$LN_S" = "ln -s"; then
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4155$as_echo "yes" >&6; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4158$as_echo "no, using $LN_S" >&6; }
4159fi
4160
4161case `pwd` in
4162  *\ * | *\	*)
4163    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4164$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4165esac
4166
4167
4168
4169macro_version='2.4.6'
4170macro_revision='2.4.6'
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184ltmain=$ac_aux_dir/ltmain.sh
4185
4186# Backslashify metacharacters that are still active within
4187# double-quoted strings.
4188sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4189
4190# Same as above, but do not quote variable references.
4191double_quote_subst='s/\(["`\\]\)/\\\1/g'
4192
4193# Sed substitution to delay expansion of an escaped shell variable in a
4194# double_quote_subst'ed string.
4195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4196
4197# Sed substitution to delay expansion of an escaped single quote.
4198delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4199
4200# Sed substitution to avoid accidental globbing in evaled expressions
4201no_glob_subst='s/\*/\\\*/g'
4202
4203ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4204ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4205ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4208$as_echo_n "checking how to print strings... " >&6; }
4209# Test print first, because it will be a builtin if present.
4210if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4211   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4212  ECHO='print -r --'
4213elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4214  ECHO='printf %s\n'
4215else
4216  # Use this function as a fallback that always works.
4217  func_fallback_echo ()
4218  {
4219    eval 'cat <<_LTECHO_EOF
4220$1
4221_LTECHO_EOF'
4222  }
4223  ECHO='func_fallback_echo'
4224fi
4225
4226# func_echo_all arg...
4227# Invoke $ECHO with all args, space-separated.
4228func_echo_all ()
4229{
4230    $ECHO ""
4231}
4232
4233case $ECHO in
4234  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4235$as_echo "printf" >&6; } ;;
4236  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4237$as_echo "print -r" >&6; } ;;
4238  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4239$as_echo "cat" >&6; } ;;
4240esac
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4256$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4257if ${ac_cv_path_SED+:} false; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4261     for ac_i in 1 2 3 4 5 6 7; do
4262       ac_script="$ac_script$as_nl$ac_script"
4263     done
4264     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4265     { ac_script=; unset ac_script;}
4266     if test -z "$SED"; then
4267  ac_path_SED_found=false
4268  # Loop through the user's path and test for each of PROGNAME-LIST
4269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272  IFS=$as_save_IFS
4273  test -z "$as_dir" && as_dir=.
4274    for ac_prog in sed gsed; do
4275    for ac_exec_ext in '' $ac_executable_extensions; do
4276      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4277      as_fn_executable_p "$ac_path_SED" || continue
4278# Check for GNU ac_path_SED and select it if it is found.
4279  # Check for GNU $ac_path_SED
4280case `"$ac_path_SED" --version 2>&1` in
4281*GNU*)
4282  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4283*)
4284  ac_count=0
4285  $as_echo_n 0123456789 >"conftest.in"
4286  while :
4287  do
4288    cat "conftest.in" "conftest.in" >"conftest.tmp"
4289    mv "conftest.tmp" "conftest.in"
4290    cp "conftest.in" "conftest.nl"
4291    $as_echo '' >> "conftest.nl"
4292    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4294    as_fn_arith $ac_count + 1 && ac_count=$as_val
4295    if test $ac_count -gt ${ac_path_SED_max-0}; then
4296      # Best one so far, save it but keep looking for a better one
4297      ac_cv_path_SED="$ac_path_SED"
4298      ac_path_SED_max=$ac_count
4299    fi
4300    # 10*(2^10) chars as input seems more than enough
4301    test $ac_count -gt 10 && break
4302  done
4303  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304esac
4305
4306      $ac_path_SED_found && break 3
4307    done
4308  done
4309  done
4310IFS=$as_save_IFS
4311  if test -z "$ac_cv_path_SED"; then
4312    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4313  fi
4314else
4315  ac_cv_path_SED=$SED
4316fi
4317
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4320$as_echo "$ac_cv_path_SED" >&6; }
4321 SED="$ac_cv_path_SED"
4322  rm -f conftest.sed
4323
4324test -z "$SED" && SED=sed
4325Xsed="$SED -e 1s/^X//"
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4338$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4339if ${ac_cv_path_GREP+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if test -z "$GREP"; then
4343  ac_path_GREP_found=false
4344  # Loop through the user's path and test for each of PROGNAME-LIST
4345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347do
4348  IFS=$as_save_IFS
4349  test -z "$as_dir" && as_dir=.
4350    for ac_prog in grep ggrep; do
4351    for ac_exec_ext in '' $ac_executable_extensions; do
4352      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4353      as_fn_executable_p "$ac_path_GREP" || continue
4354# Check for GNU ac_path_GREP and select it if it is found.
4355  # Check for GNU $ac_path_GREP
4356case `"$ac_path_GREP" --version 2>&1` in
4357*GNU*)
4358  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4359*)
4360  ac_count=0
4361  $as_echo_n 0123456789 >"conftest.in"
4362  while :
4363  do
4364    cat "conftest.in" "conftest.in" >"conftest.tmp"
4365    mv "conftest.tmp" "conftest.in"
4366    cp "conftest.in" "conftest.nl"
4367    $as_echo 'GREP' >> "conftest.nl"
4368    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370    as_fn_arith $ac_count + 1 && ac_count=$as_val
4371    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4372      # Best one so far, save it but keep looking for a better one
4373      ac_cv_path_GREP="$ac_path_GREP"
4374      ac_path_GREP_max=$ac_count
4375    fi
4376    # 10*(2^10) chars as input seems more than enough
4377    test $ac_count -gt 10 && break
4378  done
4379  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380esac
4381
4382      $ac_path_GREP_found && break 3
4383    done
4384  done
4385  done
4386IFS=$as_save_IFS
4387  if test -z "$ac_cv_path_GREP"; then
4388    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389  fi
4390else
4391  ac_cv_path_GREP=$GREP
4392fi
4393
4394fi
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4396$as_echo "$ac_cv_path_GREP" >&6; }
4397 GREP="$ac_cv_path_GREP"
4398
4399
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4401$as_echo_n "checking for egrep... " >&6; }
4402if ${ac_cv_path_EGREP+:} false; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4406   then ac_cv_path_EGREP="$GREP -E"
4407   else
4408     if test -z "$EGREP"; then
4409  ac_path_EGREP_found=false
4410  # Loop through the user's path and test for each of PROGNAME-LIST
4411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413do
4414  IFS=$as_save_IFS
4415  test -z "$as_dir" && as_dir=.
4416    for ac_prog in egrep; do
4417    for ac_exec_ext in '' $ac_executable_extensions; do
4418      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4419      as_fn_executable_p "$ac_path_EGREP" || continue
4420# Check for GNU ac_path_EGREP and select it if it is found.
4421  # Check for GNU $ac_path_EGREP
4422case `"$ac_path_EGREP" --version 2>&1` in
4423*GNU*)
4424  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4425*)
4426  ac_count=0
4427  $as_echo_n 0123456789 >"conftest.in"
4428  while :
4429  do
4430    cat "conftest.in" "conftest.in" >"conftest.tmp"
4431    mv "conftest.tmp" "conftest.in"
4432    cp "conftest.in" "conftest.nl"
4433    $as_echo 'EGREP' >> "conftest.nl"
4434    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436    as_fn_arith $ac_count + 1 && ac_count=$as_val
4437    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4438      # Best one so far, save it but keep looking for a better one
4439      ac_cv_path_EGREP="$ac_path_EGREP"
4440      ac_path_EGREP_max=$ac_count
4441    fi
4442    # 10*(2^10) chars as input seems more than enough
4443    test $ac_count -gt 10 && break
4444  done
4445  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446esac
4447
4448      $ac_path_EGREP_found && break 3
4449    done
4450  done
4451  done
4452IFS=$as_save_IFS
4453  if test -z "$ac_cv_path_EGREP"; then
4454    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4455  fi
4456else
4457  ac_cv_path_EGREP=$EGREP
4458fi
4459
4460   fi
4461fi
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4463$as_echo "$ac_cv_path_EGREP" >&6; }
4464 EGREP="$ac_cv_path_EGREP"
4465
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4468$as_echo_n "checking for fgrep... " >&6; }
4469if ${ac_cv_path_FGREP+:} false; then :
4470  $as_echo_n "(cached) " >&6
4471else
4472  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4473   then ac_cv_path_FGREP="$GREP -F"
4474   else
4475     if test -z "$FGREP"; then
4476  ac_path_FGREP_found=false
4477  # Loop through the user's path and test for each of PROGNAME-LIST
4478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4480do
4481  IFS=$as_save_IFS
4482  test -z "$as_dir" && as_dir=.
4483    for ac_prog in fgrep; do
4484    for ac_exec_ext in '' $ac_executable_extensions; do
4485      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4486      as_fn_executable_p "$ac_path_FGREP" || continue
4487# Check for GNU ac_path_FGREP and select it if it is found.
4488  # Check for GNU $ac_path_FGREP
4489case `"$ac_path_FGREP" --version 2>&1` in
4490*GNU*)
4491  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4492*)
4493  ac_count=0
4494  $as_echo_n 0123456789 >"conftest.in"
4495  while :
4496  do
4497    cat "conftest.in" "conftest.in" >"conftest.tmp"
4498    mv "conftest.tmp" "conftest.in"
4499    cp "conftest.in" "conftest.nl"
4500    $as_echo 'FGREP' >> "conftest.nl"
4501    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4502    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4503    as_fn_arith $ac_count + 1 && ac_count=$as_val
4504    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4505      # Best one so far, save it but keep looking for a better one
4506      ac_cv_path_FGREP="$ac_path_FGREP"
4507      ac_path_FGREP_max=$ac_count
4508    fi
4509    # 10*(2^10) chars as input seems more than enough
4510    test $ac_count -gt 10 && break
4511  done
4512  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4513esac
4514
4515      $ac_path_FGREP_found && break 3
4516    done
4517  done
4518  done
4519IFS=$as_save_IFS
4520  if test -z "$ac_cv_path_FGREP"; then
4521    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4522  fi
4523else
4524  ac_cv_path_FGREP=$FGREP
4525fi
4526
4527   fi
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4530$as_echo "$ac_cv_path_FGREP" >&6; }
4531 FGREP="$ac_cv_path_FGREP"
4532
4533
4534test -z "$GREP" && GREP=grep
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554# Check whether --with-gnu-ld was given.
4555if test "${with_gnu_ld+set}" = set; then :
4556  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4557else
4558  with_gnu_ld=no
4559fi
4560
4561ac_prog=ld
4562if test yes = "$GCC"; then
4563  # Check if gcc -print-prog-name=ld gives a path.
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4565$as_echo_n "checking for ld used by $CC... " >&6; }
4566  case $host in
4567  *-*-mingw*)
4568    # gcc leaves a trailing carriage return, which upsets mingw
4569    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4570  *)
4571    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4572  esac
4573  case $ac_prog in
4574    # Accept absolute paths.
4575    [\\/]* | ?:[\\/]*)
4576      re_direlt='/[^/][^/]*/\.\./'
4577      # Canonicalize the pathname of ld
4578      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4579      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4580	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4581      done
4582      test -z "$LD" && LD=$ac_prog
4583      ;;
4584  "")
4585    # If it fails, then pretend we aren't using GCC.
4586    ac_prog=ld
4587    ;;
4588  *)
4589    # If it is relative, then search for the first ld in PATH.
4590    with_gnu_ld=unknown
4591    ;;
4592  esac
4593elif test yes = "$with_gnu_ld"; then
4594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4595$as_echo_n "checking for GNU ld... " >&6; }
4596else
4597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4598$as_echo_n "checking for non-GNU ld... " >&6; }
4599fi
4600if ${lt_cv_path_LD+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  if test -z "$LD"; then
4604  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4605  for ac_dir in $PATH; do
4606    IFS=$lt_save_ifs
4607    test -z "$ac_dir" && ac_dir=.
4608    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4609      lt_cv_path_LD=$ac_dir/$ac_prog
4610      # Check to see if the program is GNU ld.  I'd rather use --version,
4611      # but apparently some variants of GNU ld only accept -v.
4612      # Break only if it was the GNU/non-GNU ld that we prefer.
4613      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4614      *GNU* | *'with BFD'*)
4615	test no != "$with_gnu_ld" && break
4616	;;
4617      *)
4618	test yes != "$with_gnu_ld" && break
4619	;;
4620      esac
4621    fi
4622  done
4623  IFS=$lt_save_ifs
4624else
4625  lt_cv_path_LD=$LD # Let the user override the test with a path.
4626fi
4627fi
4628
4629LD=$lt_cv_path_LD
4630if test -n "$LD"; then
4631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4632$as_echo "$LD" >&6; }
4633else
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4639$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4640if ${lt_cv_prog_gnu_ld+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4644case `$LD -v 2>&1 </dev/null` in
4645*GNU* | *'with BFD'*)
4646  lt_cv_prog_gnu_ld=yes
4647  ;;
4648*)
4649  lt_cv_prog_gnu_ld=no
4650  ;;
4651esac
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4654$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4655with_gnu_ld=$lt_cv_prog_gnu_ld
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4666$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4667if ${lt_cv_path_NM+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670  if test -n "$NM"; then
4671  # Let the user override the test.
4672  lt_cv_path_NM=$NM
4673else
4674  lt_nm_to_check=${ac_tool_prefix}nm
4675  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4676    lt_nm_to_check="$lt_nm_to_check nm"
4677  fi
4678  for lt_tmp_nm in $lt_nm_to_check; do
4679    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4680    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4681      IFS=$lt_save_ifs
4682      test -z "$ac_dir" && ac_dir=.
4683      tmp_nm=$ac_dir/$lt_tmp_nm
4684      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4685	# Check to see if the nm accepts a BSD-compat flag.
4686	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4687	#   nm: unknown option "B" ignored
4688	# Tru64's nm complains that /dev/null is an invalid object file
4689	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4690	case $build_os in
4691	mingw*) lt_bad_file=conftest.nm/nofile ;;
4692	*) lt_bad_file=/dev/null ;;
4693	esac
4694	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4695	*$lt_bad_file* | *'Invalid file or object type'*)
4696	  lt_cv_path_NM="$tmp_nm -B"
4697	  break 2
4698	  ;;
4699	*)
4700	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4701	  */dev/null*)
4702	    lt_cv_path_NM="$tmp_nm -p"
4703	    break 2
4704	    ;;
4705	  *)
4706	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4707	    continue # so that we can try to find one that supports BSD flags
4708	    ;;
4709	  esac
4710	  ;;
4711	esac
4712      fi
4713    done
4714    IFS=$lt_save_ifs
4715  done
4716  : ${lt_cv_path_NM=no}
4717fi
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4720$as_echo "$lt_cv_path_NM" >&6; }
4721if test no != "$lt_cv_path_NM"; then
4722  NM=$lt_cv_path_NM
4723else
4724  # Didn't find any BSD compatible name lister, look for dumpbin.
4725  if test -n "$DUMPBIN"; then :
4726    # Let the user override the test.
4727  else
4728    if test -n "$ac_tool_prefix"; then
4729  for ac_prog in dumpbin "link -dump"
4730  do
4731    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734$as_echo_n "checking for $ac_word... " >&6; }
4735if ${ac_cv_prog_DUMPBIN+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738  if test -n "$DUMPBIN"; then
4739  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744  IFS=$as_save_IFS
4745  test -z "$as_dir" && as_dir=.
4746    for ac_exec_ext in '' $ac_executable_extensions; do
4747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750    break 2
4751  fi
4752done
4753  done
4754IFS=$as_save_IFS
4755
4756fi
4757fi
4758DUMPBIN=$ac_cv_prog_DUMPBIN
4759if test -n "$DUMPBIN"; then
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4761$as_echo "$DUMPBIN" >&6; }
4762else
4763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764$as_echo "no" >&6; }
4765fi
4766
4767
4768    test -n "$DUMPBIN" && break
4769  done
4770fi
4771if test -z "$DUMPBIN"; then
4772  ac_ct_DUMPBIN=$DUMPBIN
4773  for ac_prog in dumpbin "link -dump"
4774do
4775  # Extract the first word of "$ac_prog", so it can be a program name with args.
4776set dummy $ac_prog; ac_word=$2
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778$as_echo_n "checking for $ac_word... " >&6; }
4779if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  if test -n "$ac_ct_DUMPBIN"; then
4783  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788  IFS=$as_save_IFS
4789  test -z "$as_dir" && as_dir=.
4790    for ac_exec_ext in '' $ac_executable_extensions; do
4791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797  done
4798IFS=$as_save_IFS
4799
4800fi
4801fi
4802ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4803if test -n "$ac_ct_DUMPBIN"; then
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4805$as_echo "$ac_ct_DUMPBIN" >&6; }
4806else
4807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808$as_echo "no" >&6; }
4809fi
4810
4811
4812  test -n "$ac_ct_DUMPBIN" && break
4813done
4814
4815  if test "x$ac_ct_DUMPBIN" = x; then
4816    DUMPBIN=":"
4817  else
4818    case $cross_compiling:$ac_tool_warned in
4819yes:)
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822ac_tool_warned=yes ;;
4823esac
4824    DUMPBIN=$ac_ct_DUMPBIN
4825  fi
4826fi
4827
4828    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4829    *COFF*)
4830      DUMPBIN="$DUMPBIN -symbols -headers"
4831      ;;
4832    *)
4833      DUMPBIN=:
4834      ;;
4835    esac
4836  fi
4837
4838  if test : != "$DUMPBIN"; then
4839    NM=$DUMPBIN
4840  fi
4841fi
4842test -z "$NM" && NM=nm
4843
4844
4845
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4850$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4851if ${lt_cv_nm_interface+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  lt_cv_nm_interface="BSD nm"
4855  echo "int some_variable = 0;" > conftest.$ac_ext
4856  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4857  (eval "$ac_compile" 2>conftest.err)
4858  cat conftest.err >&5
4859  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4860  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4861  cat conftest.err >&5
4862  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4863  cat conftest.out >&5
4864  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4865    lt_cv_nm_interface="MS dumpbin"
4866  fi
4867  rm -f conftest*
4868fi
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4870$as_echo "$lt_cv_nm_interface" >&6; }
4871
4872# find the maximum length of command line arguments
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4874$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4875if ${lt_cv_sys_max_cmd_len+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878    i=0
4879  teststring=ABCD
4880
4881  case $build_os in
4882  msdosdjgpp*)
4883    # On DJGPP, this test can blow up pretty badly due to problems in libc
4884    # (any single argument exceeding 2000 bytes causes a buffer overrun
4885    # during glob expansion).  Even if it were fixed, the result of this
4886    # check would be larger than it should be.
4887    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4888    ;;
4889
4890  gnu*)
4891    # Under GNU Hurd, this test is not required because there is
4892    # no limit to the length of command line arguments.
4893    # Libtool will interpret -1 as no limit whatsoever
4894    lt_cv_sys_max_cmd_len=-1;
4895    ;;
4896
4897  cygwin* | mingw* | cegcc*)
4898    # On Win9x/ME, this test blows up -- it succeeds, but takes
4899    # about 5 minutes as the teststring grows exponentially.
4900    # Worse, since 9x/ME are not pre-emptively multitasking,
4901    # you end up with a "frozen" computer, even though with patience
4902    # the test eventually succeeds (with a max line length of 256k).
4903    # Instead, let's just punt: use the minimum linelength reported by
4904    # all of the supported platforms: 8192 (on NT/2K/XP).
4905    lt_cv_sys_max_cmd_len=8192;
4906    ;;
4907
4908  mint*)
4909    # On MiNT this can take a long time and run out of memory.
4910    lt_cv_sys_max_cmd_len=8192;
4911    ;;
4912
4913  amigaos*)
4914    # On AmigaOS with pdksh, this test takes hours, literally.
4915    # So we just punt and use a minimum line length of 8192.
4916    lt_cv_sys_max_cmd_len=8192;
4917    ;;
4918
4919  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4920    # This has been around since 386BSD, at least.  Likely further.
4921    if test -x /sbin/sysctl; then
4922      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4923    elif test -x /usr/sbin/sysctl; then
4924      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4925    else
4926      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4927    fi
4928    # And add a safety zone
4929    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4930    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4931    ;;
4932
4933  interix*)
4934    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4935    lt_cv_sys_max_cmd_len=196608
4936    ;;
4937
4938  os2*)
4939    # The test takes a long time on OS/2.
4940    lt_cv_sys_max_cmd_len=8192
4941    ;;
4942
4943  osf*)
4944    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4945    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4946    # nice to cause kernel panics so lets avoid the loop below.
4947    # First set a reasonable default.
4948    lt_cv_sys_max_cmd_len=16384
4949    #
4950    if test -x /sbin/sysconfig; then
4951      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4952        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4953      esac
4954    fi
4955    ;;
4956  sco3.2v5*)
4957    lt_cv_sys_max_cmd_len=102400
4958    ;;
4959  sysv5* | sco5v6* | sysv4.2uw2*)
4960    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4961    if test -n "$kargmax"; then
4962      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4963    else
4964      lt_cv_sys_max_cmd_len=32768
4965    fi
4966    ;;
4967  *)
4968    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4969    if test -n "$lt_cv_sys_max_cmd_len" && \
4970       test undefined != "$lt_cv_sys_max_cmd_len"; then
4971      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4972      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4973    else
4974      # Make teststring a little bigger before we do anything with it.
4975      # a 1K string should be a reasonable start.
4976      for i in 1 2 3 4 5 6 7 8; do
4977        teststring=$teststring$teststring
4978      done
4979      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4980      # If test is not a shell built-in, we'll probably end up computing a
4981      # maximum length that is only half of the actual maximum length, but
4982      # we can't tell.
4983      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4984	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4985	      test 17 != "$i" # 1/2 MB should be enough
4986      do
4987        i=`expr $i + 1`
4988        teststring=$teststring$teststring
4989      done
4990      # Only check the string length outside the loop.
4991      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4992      teststring=
4993      # Add a significant safety factor because C++ compilers can tack on
4994      # massive amounts of additional arguments before passing them to the
4995      # linker.  It appears as though 1/2 is a usable value.
4996      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4997    fi
4998    ;;
4999  esac
5000
5001fi
5002
5003if test -n "$lt_cv_sys_max_cmd_len"; then
5004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5005$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5006else
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5008$as_echo "none" >&6; }
5009fi
5010max_cmd_len=$lt_cv_sys_max_cmd_len
5011
5012
5013
5014
5015
5016
5017: ${CP="cp -f"}
5018: ${MV="mv -f"}
5019: ${RM="rm -f"}
5020
5021if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5022  lt_unset=unset
5023else
5024  lt_unset=false
5025fi
5026
5027
5028
5029
5030
5031# test EBCDIC or ASCII
5032case `echo X|tr X '\101'` in
5033 A) # ASCII based system
5034    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5035  lt_SP2NL='tr \040 \012'
5036  lt_NL2SP='tr \015\012 \040\040'
5037  ;;
5038 *) # EBCDIC based system
5039  lt_SP2NL='tr \100 \n'
5040  lt_NL2SP='tr \r\n \100\100'
5041  ;;
5042esac
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5053$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5054if ${lt_cv_to_host_file_cmd+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  case $host in
5058  *-*-mingw* )
5059    case $build in
5060      *-*-mingw* ) # actually msys
5061        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5062        ;;
5063      *-*-cygwin* )
5064        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5065        ;;
5066      * ) # otherwise, assume *nix
5067        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5068        ;;
5069    esac
5070    ;;
5071  *-*-cygwin* )
5072    case $build in
5073      *-*-mingw* ) # actually msys
5074        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5075        ;;
5076      *-*-cygwin* )
5077        lt_cv_to_host_file_cmd=func_convert_file_noop
5078        ;;
5079      * ) # otherwise, assume *nix
5080        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5081        ;;
5082    esac
5083    ;;
5084  * ) # unhandled hosts (and "normal" native builds)
5085    lt_cv_to_host_file_cmd=func_convert_file_noop
5086    ;;
5087esac
5088
5089fi
5090
5091to_host_file_cmd=$lt_cv_to_host_file_cmd
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5093$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5094
5095
5096
5097
5098
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5100$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5101if ${lt_cv_to_tool_file_cmd+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  #assume ordinary cross tools, or native build.
5105lt_cv_to_tool_file_cmd=func_convert_file_noop
5106case $host in
5107  *-*-mingw* )
5108    case $build in
5109      *-*-mingw* ) # actually msys
5110        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5111        ;;
5112    esac
5113    ;;
5114esac
5115
5116fi
5117
5118to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5120$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5121
5122
5123
5124
5125
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5127$as_echo_n "checking for $LD option to reload object files... " >&6; }
5128if ${lt_cv_ld_reload_flag+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  lt_cv_ld_reload_flag='-r'
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5134$as_echo "$lt_cv_ld_reload_flag" >&6; }
5135reload_flag=$lt_cv_ld_reload_flag
5136case $reload_flag in
5137"" | " "*) ;;
5138*) reload_flag=" $reload_flag" ;;
5139esac
5140reload_cmds='$LD$reload_flag -o $output$reload_objs'
5141case $host_os in
5142  cygwin* | mingw* | pw32* | cegcc*)
5143    if test yes != "$GCC"; then
5144      reload_cmds=false
5145    fi
5146    ;;
5147  darwin*)
5148    if test yes = "$GCC"; then
5149      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5150    else
5151      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5152    fi
5153    ;;
5154esac
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164if test -n "$ac_tool_prefix"; then
5165  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5166set dummy ${ac_tool_prefix}objdump; ac_word=$2
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168$as_echo_n "checking for $ac_word... " >&6; }
5169if ${ac_cv_prog_OBJDUMP+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  if test -n "$OBJDUMP"; then
5173  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5174else
5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178  IFS=$as_save_IFS
5179  test -z "$as_dir" && as_dir=.
5180    for ac_exec_ext in '' $ac_executable_extensions; do
5181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184    break 2
5185  fi
5186done
5187  done
5188IFS=$as_save_IFS
5189
5190fi
5191fi
5192OBJDUMP=$ac_cv_prog_OBJDUMP
5193if test -n "$OBJDUMP"; then
5194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5195$as_echo "$OBJDUMP" >&6; }
5196else
5197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
5199fi
5200
5201
5202fi
5203if test -z "$ac_cv_prog_OBJDUMP"; then
5204  ac_ct_OBJDUMP=$OBJDUMP
5205  # Extract the first word of "objdump", so it can be a program name with args.
5206set dummy objdump; ac_word=$2
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208$as_echo_n "checking for $ac_word... " >&6; }
5209if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  if test -n "$ac_ct_OBJDUMP"; then
5213  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220    for ac_exec_ext in '' $ac_executable_extensions; do
5221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224    break 2
5225  fi
5226done
5227  done
5228IFS=$as_save_IFS
5229
5230fi
5231fi
5232ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5233if test -n "$ac_ct_OBJDUMP"; then
5234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5235$as_echo "$ac_ct_OBJDUMP" >&6; }
5236else
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238$as_echo "no" >&6; }
5239fi
5240
5241  if test "x$ac_ct_OBJDUMP" = x; then
5242    OBJDUMP="false"
5243  else
5244    case $cross_compiling:$ac_tool_warned in
5245yes:)
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5248ac_tool_warned=yes ;;
5249esac
5250    OBJDUMP=$ac_ct_OBJDUMP
5251  fi
5252else
5253  OBJDUMP="$ac_cv_prog_OBJDUMP"
5254fi
5255
5256test -z "$OBJDUMP" && OBJDUMP=objdump
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5267$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5268if ${lt_cv_deplibs_check_method+:} false; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  lt_cv_file_magic_cmd='$MAGIC_CMD'
5272lt_cv_file_magic_test_file=
5273lt_cv_deplibs_check_method='unknown'
5274# Need to set the preceding variable on all platforms that support
5275# interlibrary dependencies.
5276# 'none' -- dependencies not supported.
5277# 'unknown' -- same as none, but documents that we really don't know.
5278# 'pass_all' -- all dependencies passed with no checks.
5279# 'test_compile' -- check by making test program.
5280# 'file_magic [[regex]]' -- check by looking for files in library path
5281# that responds to the $file_magic_cmd with a given extended regex.
5282# If you have 'file' or equivalent on your system and you're not sure
5283# whether 'pass_all' will *always* work, you probably want this one.
5284
5285case $host_os in
5286aix[4-9]*)
5287  lt_cv_deplibs_check_method=pass_all
5288  ;;
5289
5290beos*)
5291  lt_cv_deplibs_check_method=pass_all
5292  ;;
5293
5294bsdi[45]*)
5295  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5296  lt_cv_file_magic_cmd='/usr/bin/file -L'
5297  lt_cv_file_magic_test_file=/shlib/libc.so
5298  ;;
5299
5300cygwin*)
5301  # func_win32_libid is a shell function defined in ltmain.sh
5302  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5303  lt_cv_file_magic_cmd='func_win32_libid'
5304  ;;
5305
5306mingw* | pw32*)
5307  # Base MSYS/MinGW do not provide the 'file' command needed by
5308  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5309  # unless we find 'file', for example because we are cross-compiling.
5310  if ( file / ) >/dev/null 2>&1; then
5311    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5312    lt_cv_file_magic_cmd='func_win32_libid'
5313  else
5314    # Keep this pattern in sync with the one in func_win32_libid.
5315    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5316    lt_cv_file_magic_cmd='$OBJDUMP -f'
5317  fi
5318  ;;
5319
5320cegcc*)
5321  # use the weaker test based on 'objdump'. See mingw*.
5322  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5323  lt_cv_file_magic_cmd='$OBJDUMP -f'
5324  ;;
5325
5326darwin* | rhapsody*)
5327  lt_cv_deplibs_check_method=pass_all
5328  ;;
5329
5330freebsd* | dragonfly*)
5331  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5332    case $host_cpu in
5333    i*86 )
5334      # Not sure whether the presence of OpenBSD here was a mistake.
5335      # Let's accept both of them until this is cleared up.
5336      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5337      lt_cv_file_magic_cmd=/usr/bin/file
5338      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5339      ;;
5340    esac
5341  else
5342    lt_cv_deplibs_check_method=pass_all
5343  fi
5344  ;;
5345
5346haiku*)
5347  lt_cv_deplibs_check_method=pass_all
5348  ;;
5349
5350hpux10.20* | hpux11*)
5351  lt_cv_file_magic_cmd=/usr/bin/file
5352  case $host_cpu in
5353  ia64*)
5354    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5355    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5356    ;;
5357  hppa*64*)
5358    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]'
5359    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5360    ;;
5361  *)
5362    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5363    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5364    ;;
5365  esac
5366  ;;
5367
5368interix[3-9]*)
5369  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5370  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5371  ;;
5372
5373irix5* | irix6* | nonstopux*)
5374  case $LD in
5375  *-32|*"-32 ") libmagic=32-bit;;
5376  *-n32|*"-n32 ") libmagic=N32;;
5377  *-64|*"-64 ") libmagic=64-bit;;
5378  *) libmagic=never-match;;
5379  esac
5380  lt_cv_deplibs_check_method=pass_all
5381  ;;
5382
5383# This must be glibc/ELF.
5384linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5385  lt_cv_deplibs_check_method=pass_all
5386  ;;
5387
5388netbsd*)
5389  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5390    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5391  else
5392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5393  fi
5394  ;;
5395
5396newos6*)
5397  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398  lt_cv_file_magic_cmd=/usr/bin/file
5399  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5400  ;;
5401
5402*nto* | *qnx*)
5403  lt_cv_deplibs_check_method=pass_all
5404  ;;
5405
5406openbsd* | bitrig*)
5407  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5408    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5409  else
5410    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5411  fi
5412  ;;
5413
5414osf3* | osf4* | osf5*)
5415  lt_cv_deplibs_check_method=pass_all
5416  ;;
5417
5418rdos*)
5419  lt_cv_deplibs_check_method=pass_all
5420  ;;
5421
5422solaris*)
5423  lt_cv_deplibs_check_method=pass_all
5424  ;;
5425
5426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5427  lt_cv_deplibs_check_method=pass_all
5428  ;;
5429
5430sysv4 | sysv4.3*)
5431  case $host_vendor in
5432  motorola)
5433    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]'
5434    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5435    ;;
5436  ncr)
5437    lt_cv_deplibs_check_method=pass_all
5438    ;;
5439  sequent)
5440    lt_cv_file_magic_cmd='/bin/file'
5441    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5442    ;;
5443  sni)
5444    lt_cv_file_magic_cmd='/bin/file'
5445    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5446    lt_cv_file_magic_test_file=/lib/libc.so
5447    ;;
5448  siemens)
5449    lt_cv_deplibs_check_method=pass_all
5450    ;;
5451  pc)
5452    lt_cv_deplibs_check_method=pass_all
5453    ;;
5454  esac
5455  ;;
5456
5457tpf*)
5458  lt_cv_deplibs_check_method=pass_all
5459  ;;
5460os2*)
5461  lt_cv_deplibs_check_method=pass_all
5462  ;;
5463esac
5464
5465fi
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5467$as_echo "$lt_cv_deplibs_check_method" >&6; }
5468
5469file_magic_glob=
5470want_nocaseglob=no
5471if test "$build" = "$host"; then
5472  case $host_os in
5473  mingw* | pw32*)
5474    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5475      want_nocaseglob=yes
5476    else
5477      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5478    fi
5479    ;;
5480  esac
5481fi
5482
5483file_magic_cmd=$lt_cv_file_magic_cmd
5484deplibs_check_method=$lt_cv_deplibs_check_method
5485test -z "$deplibs_check_method" && deplibs_check_method=unknown
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508if test -n "$ac_tool_prefix"; then
5509  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5510set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
5513if ${ac_cv_prog_DLLTOOL+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  if test -n "$DLLTOOL"; then
5517  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522  IFS=$as_save_IFS
5523  test -z "$as_dir" && as_dir=.
5524    for ac_exec_ext in '' $ac_executable_extensions; do
5525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528    break 2
5529  fi
5530done
5531  done
5532IFS=$as_save_IFS
5533
5534fi
5535fi
5536DLLTOOL=$ac_cv_prog_DLLTOOL
5537if test -n "$DLLTOOL"; then
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5539$as_echo "$DLLTOOL" >&6; }
5540else
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544
5545
5546fi
5547if test -z "$ac_cv_prog_DLLTOOL"; then
5548  ac_ct_DLLTOOL=$DLLTOOL
5549  # Extract the first word of "dlltool", so it can be a program name with args.
5550set dummy dlltool; ac_word=$2
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552$as_echo_n "checking for $ac_word... " >&6; }
5553if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  if test -n "$ac_ct_DLLTOOL"; then
5557  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5558else
5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562  IFS=$as_save_IFS
5563  test -z "$as_dir" && as_dir=.
5564    for ac_exec_ext in '' $ac_executable_extensions; do
5565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568    break 2
5569  fi
5570done
5571  done
5572IFS=$as_save_IFS
5573
5574fi
5575fi
5576ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5577if test -n "$ac_ct_DLLTOOL"; then
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5579$as_echo "$ac_ct_DLLTOOL" >&6; }
5580else
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584
5585  if test "x$ac_ct_DLLTOOL" = x; then
5586    DLLTOOL="false"
5587  else
5588    case $cross_compiling:$ac_tool_warned in
5589yes:)
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592ac_tool_warned=yes ;;
5593esac
5594    DLLTOOL=$ac_ct_DLLTOOL
5595  fi
5596else
5597  DLLTOOL="$ac_cv_prog_DLLTOOL"
5598fi
5599
5600test -z "$DLLTOOL" && DLLTOOL=dlltool
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5612$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5613if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  lt_cv_sharedlib_from_linklib_cmd='unknown'
5617
5618case $host_os in
5619cygwin* | mingw* | pw32* | cegcc*)
5620  # two different shell functions defined in ltmain.sh;
5621  # decide which one to use based on capabilities of $DLLTOOL
5622  case `$DLLTOOL --help 2>&1` in
5623  *--identify-strict*)
5624    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5625    ;;
5626  *)
5627    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5628    ;;
5629  esac
5630  ;;
5631*)
5632  # fallback: assume linklib IS sharedlib
5633  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5634  ;;
5635esac
5636
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5639$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5640sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5641test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5642
5643
5644
5645
5646
5647
5648
5649
5650if test -n "$ac_tool_prefix"; then
5651  for ac_prog in ar
5652  do
5653    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656$as_echo_n "checking for $ac_word... " >&6; }
5657if ${ac_cv_prog_AR+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  if test -n "$AR"; then
5661  ac_cv_prog_AR="$AR" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666  IFS=$as_save_IFS
5667  test -z "$as_dir" && as_dir=.
5668    for ac_exec_ext in '' $ac_executable_extensions; do
5669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672    break 2
5673  fi
5674done
5675  done
5676IFS=$as_save_IFS
5677
5678fi
5679fi
5680AR=$ac_cv_prog_AR
5681if test -n "$AR"; then
5682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5683$as_echo "$AR" >&6; }
5684else
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686$as_echo "no" >&6; }
5687fi
5688
5689
5690    test -n "$AR" && break
5691  done
5692fi
5693if test -z "$AR"; then
5694  ac_ct_AR=$AR
5695  for ac_prog in ar
5696do
5697  # Extract the first word of "$ac_prog", so it can be a program name with args.
5698set dummy $ac_prog; ac_word=$2
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700$as_echo_n "checking for $ac_word... " >&6; }
5701if ${ac_cv_prog_ac_ct_AR+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  if test -n "$ac_ct_AR"; then
5705  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710  IFS=$as_save_IFS
5711  test -z "$as_dir" && as_dir=.
5712    for ac_exec_ext in '' $ac_executable_extensions; do
5713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714    ac_cv_prog_ac_ct_AR="$ac_prog"
5715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716    break 2
5717  fi
5718done
5719  done
5720IFS=$as_save_IFS
5721
5722fi
5723fi
5724ac_ct_AR=$ac_cv_prog_ac_ct_AR
5725if test -n "$ac_ct_AR"; then
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5727$as_echo "$ac_ct_AR" >&6; }
5728else
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730$as_echo "no" >&6; }
5731fi
5732
5733
5734  test -n "$ac_ct_AR" && break
5735done
5736
5737  if test "x$ac_ct_AR" = x; then
5738    AR="false"
5739  else
5740    case $cross_compiling:$ac_tool_warned in
5741yes:)
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5744ac_tool_warned=yes ;;
5745esac
5746    AR=$ac_ct_AR
5747  fi
5748fi
5749
5750: ${AR=ar}
5751: ${AR_FLAGS=cru}
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5764$as_echo_n "checking for archiver @FILE support... " >&6; }
5765if ${lt_cv_ar_at_file+:} false; then :
5766  $as_echo_n "(cached) " >&6
5767else
5768  lt_cv_ar_at_file=no
5769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h.  */
5771
5772int
5773main ()
5774{
5775
5776  ;
5777  return 0;
5778}
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"; then :
5781  echo conftest.$ac_objext > conftest.lst
5782      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5783      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5784  (eval $lt_ar_try) 2>&5
5785  ac_status=$?
5786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787  test $ac_status = 0; }
5788      if test 0 -eq "$ac_status"; then
5789	# Ensure the archiver fails upon bogus file names.
5790	rm -f conftest.$ac_objext libconftest.a
5791	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5792  (eval $lt_ar_try) 2>&5
5793  ac_status=$?
5794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795  test $ac_status = 0; }
5796	if test 0 -ne "$ac_status"; then
5797          lt_cv_ar_at_file=@
5798        fi
5799      fi
5800      rm -f conftest.* libconftest.a
5801
5802fi
5803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5807$as_echo "$lt_cv_ar_at_file" >&6; }
5808
5809if test no = "$lt_cv_ar_at_file"; then
5810  archiver_list_spec=
5811else
5812  archiver_list_spec=$lt_cv_ar_at_file
5813fi
5814
5815
5816
5817
5818
5819
5820
5821if test -n "$ac_tool_prefix"; then
5822  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5823set dummy ${ac_tool_prefix}strip; ac_word=$2
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
5826if ${ac_cv_prog_STRIP+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  if test -n "$STRIP"; then
5830  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835  IFS=$as_save_IFS
5836  test -z "$as_dir" && as_dir=.
5837    for ac_exec_ext in '' $ac_executable_extensions; do
5838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841    break 2
5842  fi
5843done
5844  done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849STRIP=$ac_cv_prog_STRIP
5850if test -n "$STRIP"; then
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5852$as_echo "$STRIP" >&6; }
5853else
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859fi
5860if test -z "$ac_cv_prog_STRIP"; then
5861  ac_ct_STRIP=$STRIP
5862  # Extract the first word of "strip", so it can be a program name with args.
5863set dummy strip; ac_word=$2
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865$as_echo_n "checking for $ac_word... " >&6; }
5866if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869  if test -n "$ac_ct_STRIP"; then
5870  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875  IFS=$as_save_IFS
5876  test -z "$as_dir" && as_dir=.
5877    for ac_exec_ext in '' $ac_executable_extensions; do
5878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879    ac_cv_prog_ac_ct_STRIP="strip"
5880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881    break 2
5882  fi
5883done
5884  done
5885IFS=$as_save_IFS
5886
5887fi
5888fi
5889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5890if test -n "$ac_ct_STRIP"; then
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5892$as_echo "$ac_ct_STRIP" >&6; }
5893else
5894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895$as_echo "no" >&6; }
5896fi
5897
5898  if test "x$ac_ct_STRIP" = x; then
5899    STRIP=":"
5900  else
5901    case $cross_compiling:$ac_tool_warned in
5902yes:)
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905ac_tool_warned=yes ;;
5906esac
5907    STRIP=$ac_ct_STRIP
5908  fi
5909else
5910  STRIP="$ac_cv_prog_STRIP"
5911fi
5912
5913test -z "$STRIP" && STRIP=:
5914
5915
5916
5917
5918
5919
5920if test -n "$ac_tool_prefix"; then
5921  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5922set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
5925if ${ac_cv_prog_RANLIB+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  if test -n "$RANLIB"; then
5929  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936    for ac_exec_ext in '' $ac_executable_extensions; do
5937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940    break 2
5941  fi
5942done
5943  done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948RANLIB=$ac_cv_prog_RANLIB
5949if test -n "$RANLIB"; then
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5951$as_echo "$RANLIB" >&6; }
5952else
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957
5958fi
5959if test -z "$ac_cv_prog_RANLIB"; then
5960  ac_ct_RANLIB=$RANLIB
5961  # Extract the first word of "ranlib", so it can be a program name with args.
5962set dummy ranlib; ac_word=$2
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964$as_echo_n "checking for $ac_word... " >&6; }
5965if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  if test -n "$ac_ct_RANLIB"; then
5969  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5970else
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974  IFS=$as_save_IFS
5975  test -z "$as_dir" && as_dir=.
5976    for ac_exec_ext in '' $ac_executable_extensions; do
5977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978    ac_cv_prog_ac_ct_RANLIB="ranlib"
5979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980    break 2
5981  fi
5982done
5983  done
5984IFS=$as_save_IFS
5985
5986fi
5987fi
5988ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5989if test -n "$ac_ct_RANLIB"; then
5990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5991$as_echo "$ac_ct_RANLIB" >&6; }
5992else
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994$as_echo "no" >&6; }
5995fi
5996
5997  if test "x$ac_ct_RANLIB" = x; then
5998    RANLIB=":"
5999  else
6000    case $cross_compiling:$ac_tool_warned in
6001yes:)
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004ac_tool_warned=yes ;;
6005esac
6006    RANLIB=$ac_ct_RANLIB
6007  fi
6008else
6009  RANLIB="$ac_cv_prog_RANLIB"
6010fi
6011
6012test -z "$RANLIB" && RANLIB=:
6013
6014
6015
6016
6017
6018
6019# Determine commands to create old-style static archives.
6020old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6021old_postinstall_cmds='chmod 644 $oldlib'
6022old_postuninstall_cmds=
6023
6024if test -n "$RANLIB"; then
6025  case $host_os in
6026  bitrig* | openbsd*)
6027    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6028    ;;
6029  *)
6030    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6031    ;;
6032  esac
6033  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6034fi
6035
6036case $host_os in
6037  darwin*)
6038    lock_old_archive_extraction=yes ;;
6039  *)
6040    lock_old_archive_extraction=no ;;
6041esac
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081# If no C compiler was specified, use CC.
6082LTCC=${LTCC-"$CC"}
6083
6084# If no C compiler flags were specified, use CFLAGS.
6085LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6086
6087# Allow CC to be a program name with arguments.
6088compiler=$CC
6089
6090
6091# Check for command to grab the raw symbol name followed by C symbol from nm.
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6093$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6094if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6095  $as_echo_n "(cached) " >&6
6096else
6097
6098# These are sane defaults that work on at least a few old systems.
6099# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6100
6101# Character class describing NM global symbol codes.
6102symcode='[BCDEGRST]'
6103
6104# Regexp to match symbols that can be accessed directly from C.
6105sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6106
6107# Define system-specific variables.
6108case $host_os in
6109aix*)
6110  symcode='[BCDT]'
6111  ;;
6112cygwin* | mingw* | pw32* | cegcc*)
6113  symcode='[ABCDGISTW]'
6114  ;;
6115hpux*)
6116  if test ia64 = "$host_cpu"; then
6117    symcode='[ABCDEGRST]'
6118  fi
6119  ;;
6120irix* | nonstopux*)
6121  symcode='[BCDEGRST]'
6122  ;;
6123osf*)
6124  symcode='[BCDEGQRST]'
6125  ;;
6126solaris*)
6127  symcode='[BDRT]'
6128  ;;
6129sco3.2v5*)
6130  symcode='[DT]'
6131  ;;
6132sysv4.2uw2*)
6133  symcode='[DT]'
6134  ;;
6135sysv5* | sco5v6* | unixware* | OpenUNIX*)
6136  symcode='[ABDT]'
6137  ;;
6138sysv4)
6139  symcode='[DFNSTU]'
6140  ;;
6141esac
6142
6143# If we're using GNU nm, then use its standard symbol codes.
6144case `$NM -V 2>&1` in
6145*GNU* | *'with BFD'*)
6146  symcode='[ABCDGIRSTW]' ;;
6147esac
6148
6149if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6150  # Gets list of data symbols to import.
6151  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6152  # Adjust the below global symbol transforms to fixup imported variables.
6153  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6154  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6155  lt_c_name_lib_hook="\
6156  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6157  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6158else
6159  # Disable hooks by default.
6160  lt_cv_sys_global_symbol_to_import=
6161  lt_cdecl_hook=
6162  lt_c_name_hook=
6163  lt_c_name_lib_hook=
6164fi
6165
6166# Transform an extracted symbol line into a proper C declaration.
6167# Some systems (esp. on ia64) link data and code symbols differently,
6168# so use this general approach.
6169lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6170$lt_cdecl_hook\
6171" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6172" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6173
6174# Transform an extracted symbol line into symbol name and symbol address
6175lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6176$lt_c_name_hook\
6177" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6178" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6179
6180# Transform an extracted symbol line into symbol name with lib prefix and
6181# symbol address.
6182lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6183$lt_c_name_lib_hook\
6184" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6185" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6186" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6187
6188# Handle CRLF in mingw tool chain
6189opt_cr=
6190case $build_os in
6191mingw*)
6192  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6193  ;;
6194esac
6195
6196# Try without a prefix underscore, then with it.
6197for ac_symprfx in "" "_"; do
6198
6199  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6200  symxfrm="\\1 $ac_symprfx\\2 \\2"
6201
6202  # Write the raw and C identifiers.
6203  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6204    # Fake it for dumpbin and say T for any non-static function,
6205    # D for any global variable and I for any imported variable.
6206    # Also find C++ and __fastcall symbols from MSVC++,
6207    # which start with @ or ?.
6208    lt_cv_sys_global_symbol_pipe="$AWK '"\
6209"     {last_section=section; section=\$ 3};"\
6210"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6211"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6212"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6213"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6214"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6215"     \$ 0!~/External *\|/{next};"\
6216"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6217"     {if(hide[section]) next};"\
6218"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6219"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6220"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6221"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6222"     ' prfx=^$ac_symprfx"
6223  else
6224    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6225  fi
6226  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6227
6228  # Check to see that the pipe works correctly.
6229  pipe_works=no
6230
6231  rm -f conftest*
6232  cat > conftest.$ac_ext <<_LT_EOF
6233#ifdef __cplusplus
6234extern "C" {
6235#endif
6236char nm_test_var;
6237void nm_test_func(void);
6238void nm_test_func(void){}
6239#ifdef __cplusplus
6240}
6241#endif
6242int main(){nm_test_var='a';nm_test_func();return(0);}
6243_LT_EOF
6244
6245  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6246  (eval $ac_compile) 2>&5
6247  ac_status=$?
6248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249  test $ac_status = 0; }; then
6250    # Now try to grab the symbols.
6251    nlist=conftest.nm
6252    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6253  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6254  ac_status=$?
6255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256  test $ac_status = 0; } && test -s "$nlist"; then
6257      # Try sorting and uniquifying the output.
6258      if sort "$nlist" | uniq > "$nlist"T; then
6259	mv -f "$nlist"T "$nlist"
6260      else
6261	rm -f "$nlist"T
6262      fi
6263
6264      # Make sure that we snagged all the symbols we need.
6265      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6266	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6267	  cat <<_LT_EOF > conftest.$ac_ext
6268/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6269#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6270/* DATA imports from DLLs on WIN32 can't be const, because runtime
6271   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6272# define LT_DLSYM_CONST
6273#elif defined __osf__
6274/* This system does not cope well with relocations in const data.  */
6275# define LT_DLSYM_CONST
6276#else
6277# define LT_DLSYM_CONST const
6278#endif
6279
6280#ifdef __cplusplus
6281extern "C" {
6282#endif
6283
6284_LT_EOF
6285	  # Now generate the symbol file.
6286	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6287
6288	  cat <<_LT_EOF >> conftest.$ac_ext
6289
6290/* The mapping between symbol names and symbols.  */
6291LT_DLSYM_CONST struct {
6292  const char *name;
6293  void       *address;
6294}
6295lt__PROGRAM__LTX_preloaded_symbols[] =
6296{
6297  { "@PROGRAM@", (void *) 0 },
6298_LT_EOF
6299	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6300	  cat <<\_LT_EOF >> conftest.$ac_ext
6301  {0, (void *) 0}
6302};
6303
6304/* This works around a problem in FreeBSD linker */
6305#ifdef FREEBSD_WORKAROUND
6306static const void *lt_preloaded_setup() {
6307  return lt__PROGRAM__LTX_preloaded_symbols;
6308}
6309#endif
6310
6311#ifdef __cplusplus
6312}
6313#endif
6314_LT_EOF
6315	  # Now try linking the two files.
6316	  mv conftest.$ac_objext conftstm.$ac_objext
6317	  lt_globsym_save_LIBS=$LIBS
6318	  lt_globsym_save_CFLAGS=$CFLAGS
6319	  LIBS=conftstm.$ac_objext
6320	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6321	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6322  (eval $ac_link) 2>&5
6323  ac_status=$?
6324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6326	    pipe_works=yes
6327	  fi
6328	  LIBS=$lt_globsym_save_LIBS
6329	  CFLAGS=$lt_globsym_save_CFLAGS
6330	else
6331	  echo "cannot find nm_test_func in $nlist" >&5
6332	fi
6333      else
6334	echo "cannot find nm_test_var in $nlist" >&5
6335      fi
6336    else
6337      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6338    fi
6339  else
6340    echo "$progname: failed program was:" >&5
6341    cat conftest.$ac_ext >&5
6342  fi
6343  rm -rf conftest* conftst*
6344
6345  # Do not use the global_symbol_pipe unless it works.
6346  if test yes = "$pipe_works"; then
6347    break
6348  else
6349    lt_cv_sys_global_symbol_pipe=
6350  fi
6351done
6352
6353fi
6354
6355if test -z "$lt_cv_sys_global_symbol_pipe"; then
6356  lt_cv_sys_global_symbol_to_cdecl=
6357fi
6358if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6360$as_echo "failed" >&6; }
6361else
6362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6363$as_echo "ok" >&6; }
6364fi
6365
6366# Response file support.
6367if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6368  nm_file_list_spec='@'
6369elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6370  nm_file_list_spec='@'
6371fi
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6410$as_echo_n "checking for sysroot... " >&6; }
6411
6412# Check whether --with-sysroot was given.
6413if test "${with_sysroot+set}" = set; then :
6414  withval=$with_sysroot;
6415else
6416  with_sysroot=no
6417fi
6418
6419
6420lt_sysroot=
6421case $with_sysroot in #(
6422 yes)
6423   if test yes = "$GCC"; then
6424     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6425   fi
6426   ;; #(
6427 /*)
6428   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6429   ;; #(
6430 no|'')
6431   ;; #(
6432 *)
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6434$as_echo "$with_sysroot" >&6; }
6435   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6436   ;;
6437esac
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6440$as_echo "${lt_sysroot:-no}" >&6; }
6441
6442
6443
6444
6445
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6447$as_echo_n "checking for a working dd... " >&6; }
6448if ${ac_cv_path_lt_DD+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  printf 0123456789abcdef0123456789abcdef >conftest.i
6452cat conftest.i conftest.i >conftest2.i
6453: ${lt_DD:=$DD}
6454if test -z "$lt_DD"; then
6455  ac_path_lt_DD_found=false
6456  # Loop through the user's path and test for each of PROGNAME-LIST
6457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460  IFS=$as_save_IFS
6461  test -z "$as_dir" && as_dir=.
6462    for ac_prog in dd; do
6463    for ac_exec_ext in '' $ac_executable_extensions; do
6464      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6465      as_fn_executable_p "$ac_path_lt_DD" || continue
6466if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6467  cmp -s conftest.i conftest.out \
6468  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6469fi
6470      $ac_path_lt_DD_found && break 3
6471    done
6472  done
6473  done
6474IFS=$as_save_IFS
6475  if test -z "$ac_cv_path_lt_DD"; then
6476    :
6477  fi
6478else
6479  ac_cv_path_lt_DD=$lt_DD
6480fi
6481
6482rm -f conftest.i conftest2.i conftest.out
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6485$as_echo "$ac_cv_path_lt_DD" >&6; }
6486
6487
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6489$as_echo_n "checking how to truncate binary pipes... " >&6; }
6490if ${lt_cv_truncate_bin+:} false; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  printf 0123456789abcdef0123456789abcdef >conftest.i
6494cat conftest.i conftest.i >conftest2.i
6495lt_cv_truncate_bin=
6496if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6497  cmp -s conftest.i conftest.out \
6498  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6499fi
6500rm -f conftest.i conftest2.i conftest.out
6501test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6502fi
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6504$as_echo "$lt_cv_truncate_bin" >&6; }
6505
6506
6507
6508
6509
6510
6511
6512# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6513func_cc_basename ()
6514{
6515    for cc_temp in $*""; do
6516      case $cc_temp in
6517        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6518        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6519        \-*) ;;
6520        *) break;;
6521      esac
6522    done
6523    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6524}
6525
6526# Check whether --enable-libtool-lock was given.
6527if test "${enable_libtool_lock+set}" = set; then :
6528  enableval=$enable_libtool_lock;
6529fi
6530
6531test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6532
6533# Some flags need to be propagated to the compiler or linker for good
6534# libtool support.
6535case $host in
6536ia64-*-hpux*)
6537  # Find out what ABI is being produced by ac_compile, and set mode
6538  # options accordingly.
6539  echo 'int i;' > conftest.$ac_ext
6540  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541  (eval $ac_compile) 2>&5
6542  ac_status=$?
6543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544  test $ac_status = 0; }; then
6545    case `/usr/bin/file conftest.$ac_objext` in
6546      *ELF-32*)
6547	HPUX_IA64_MODE=32
6548	;;
6549      *ELF-64*)
6550	HPUX_IA64_MODE=64
6551	;;
6552    esac
6553  fi
6554  rm -rf conftest*
6555  ;;
6556*-*-irix6*)
6557  # Find out what ABI is being produced by ac_compile, and set linker
6558  # options accordingly.
6559  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6560  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6561  (eval $ac_compile) 2>&5
6562  ac_status=$?
6563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564  test $ac_status = 0; }; then
6565    if test yes = "$lt_cv_prog_gnu_ld"; then
6566      case `/usr/bin/file conftest.$ac_objext` in
6567	*32-bit*)
6568	  LD="${LD-ld} -melf32bsmip"
6569	  ;;
6570	*N32*)
6571	  LD="${LD-ld} -melf32bmipn32"
6572	  ;;
6573	*64-bit*)
6574	  LD="${LD-ld} -melf64bmip"
6575	;;
6576      esac
6577    else
6578      case `/usr/bin/file conftest.$ac_objext` in
6579	*32-bit*)
6580	  LD="${LD-ld} -32"
6581	  ;;
6582	*N32*)
6583	  LD="${LD-ld} -n32"
6584	  ;;
6585	*64-bit*)
6586	  LD="${LD-ld} -64"
6587	  ;;
6588      esac
6589    fi
6590  fi
6591  rm -rf conftest*
6592  ;;
6593
6594mips64*-*linux*)
6595  # Find out what ABI is being produced by ac_compile, and set linker
6596  # options accordingly.
6597  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6598  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6599  (eval $ac_compile) 2>&5
6600  ac_status=$?
6601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6602  test $ac_status = 0; }; then
6603    emul=elf
6604    case `/usr/bin/file conftest.$ac_objext` in
6605      *32-bit*)
6606	emul="${emul}32"
6607	;;
6608      *64-bit*)
6609	emul="${emul}64"
6610	;;
6611    esac
6612    case `/usr/bin/file conftest.$ac_objext` in
6613      *MSB*)
6614	emul="${emul}btsmip"
6615	;;
6616      *LSB*)
6617	emul="${emul}ltsmip"
6618	;;
6619    esac
6620    case `/usr/bin/file conftest.$ac_objext` in
6621      *N32*)
6622	emul="${emul}n32"
6623	;;
6624    esac
6625    LD="${LD-ld} -m $emul"
6626  fi
6627  rm -rf conftest*
6628  ;;
6629
6630x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6631s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6632  # Find out what ABI is being produced by ac_compile, and set linker
6633  # options accordingly.  Note that the listed cases only cover the
6634  # situations where additional linker options are needed (such as when
6635  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6636  # vice versa); the common cases where no linker options are needed do
6637  # not appear in the list.
6638  echo 'int i;' > conftest.$ac_ext
6639  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640  (eval $ac_compile) 2>&5
6641  ac_status=$?
6642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643  test $ac_status = 0; }; then
6644    case `/usr/bin/file conftest.o` in
6645      *32-bit*)
6646	case $host in
6647	  x86_64-*kfreebsd*-gnu)
6648	    LD="${LD-ld} -m elf_i386_fbsd"
6649	    ;;
6650	  x86_64-*linux*)
6651	    case `/usr/bin/file conftest.o` in
6652	      *x86-64*)
6653		LD="${LD-ld} -m elf32_x86_64"
6654		;;
6655	      *)
6656		LD="${LD-ld} -m elf_i386"
6657		;;
6658	    esac
6659	    ;;
6660	  powerpc64le-*linux*)
6661	    LD="${LD-ld} -m elf32lppclinux"
6662	    ;;
6663	  powerpc64-*linux*)
6664	    LD="${LD-ld} -m elf32ppclinux"
6665	    ;;
6666	  s390x-*linux*)
6667	    LD="${LD-ld} -m elf_s390"
6668	    ;;
6669	  sparc64-*linux*)
6670	    LD="${LD-ld} -m elf32_sparc"
6671	    ;;
6672	esac
6673	;;
6674      *64-bit*)
6675	case $host in
6676	  x86_64-*kfreebsd*-gnu)
6677	    LD="${LD-ld} -m elf_x86_64_fbsd"
6678	    ;;
6679	  x86_64-*linux*)
6680	    LD="${LD-ld} -m elf_x86_64"
6681	    ;;
6682	  powerpcle-*linux*)
6683	    LD="${LD-ld} -m elf64lppc"
6684	    ;;
6685	  powerpc-*linux*)
6686	    LD="${LD-ld} -m elf64ppc"
6687	    ;;
6688	  s390*-*linux*|s390*-*tpf*)
6689	    LD="${LD-ld} -m elf64_s390"
6690	    ;;
6691	  sparc*-*linux*)
6692	    LD="${LD-ld} -m elf64_sparc"
6693	    ;;
6694	esac
6695	;;
6696    esac
6697  fi
6698  rm -rf conftest*
6699  ;;
6700
6701*-*-sco3.2v5*)
6702  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6703  SAVE_CFLAGS=$CFLAGS
6704  CFLAGS="$CFLAGS -belf"
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6706$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6707if ${lt_cv_cc_needs_belf+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  ac_ext=c
6711ac_cpp='$CPP $CPPFLAGS'
6712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714ac_compiler_gnu=$ac_cv_c_compiler_gnu
6715
6716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h.  */
6718
6719int
6720main ()
6721{
6722
6723  ;
6724  return 0;
6725}
6726_ACEOF
6727if ac_fn_c_try_link "$LINENO"; then :
6728  lt_cv_cc_needs_belf=yes
6729else
6730  lt_cv_cc_needs_belf=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext \
6733    conftest$ac_exeext conftest.$ac_ext
6734     ac_ext=c
6735ac_cpp='$CPP $CPPFLAGS'
6736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738ac_compiler_gnu=$ac_cv_c_compiler_gnu
6739
6740fi
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6742$as_echo "$lt_cv_cc_needs_belf" >&6; }
6743  if test yes != "$lt_cv_cc_needs_belf"; then
6744    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6745    CFLAGS=$SAVE_CFLAGS
6746  fi
6747  ;;
6748*-*solaris*)
6749  # Find out what ABI is being produced by ac_compile, and set linker
6750  # options accordingly.
6751  echo 'int i;' > conftest.$ac_ext
6752  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753  (eval $ac_compile) 2>&5
6754  ac_status=$?
6755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756  test $ac_status = 0; }; then
6757    case `/usr/bin/file conftest.o` in
6758    *64-bit*)
6759      case $lt_cv_prog_gnu_ld in
6760      yes*)
6761        case $host in
6762        i?86-*-solaris*|x86_64-*-solaris*)
6763          LD="${LD-ld} -m elf_x86_64"
6764          ;;
6765        sparc*-*-solaris*)
6766          LD="${LD-ld} -m elf64_sparc"
6767          ;;
6768        esac
6769        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6770        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6771          LD=${LD-ld}_sol2
6772        fi
6773        ;;
6774      *)
6775	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6776	  LD="${LD-ld} -64"
6777	fi
6778	;;
6779      esac
6780      ;;
6781    esac
6782  fi
6783  rm -rf conftest*
6784  ;;
6785esac
6786
6787need_locks=$enable_libtool_lock
6788
6789if test -n "$ac_tool_prefix"; then
6790  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}mt; ac_word=$2
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6795  $as_echo_n "(cached) " >&6
6796else
6797  if test -n "$MANIFEST_TOOL"; then
6798  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812  done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6818if test -n "$MANIFEST_TOOL"; then
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6820$as_echo "$MANIFEST_TOOL" >&6; }
6821else
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
6824fi
6825
6826
6827fi
6828if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6829  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6830  # Extract the first word of "mt", so it can be a program name with args.
6831set dummy mt; ac_word=$2
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  if test -n "$ac_ct_MANIFEST_TOOL"; then
6838  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845    for ac_exec_ext in '' $ac_executable_extensions; do
6846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852  done
6853IFS=$as_save_IFS
6854
6855fi
6856fi
6857ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6858if test -n "$ac_ct_MANIFEST_TOOL"; then
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6860$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6861else
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6867    MANIFEST_TOOL=":"
6868  else
6869    case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6876  fi
6877else
6878  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6879fi
6880
6881test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6883$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6884if ${lt_cv_path_mainfest_tool+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  lt_cv_path_mainfest_tool=no
6888  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6889  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6890  cat conftest.err >&5
6891  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6892    lt_cv_path_mainfest_tool=yes
6893  fi
6894  rm -f conftest*
6895fi
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6897$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6898if test yes != "$lt_cv_path_mainfest_tool"; then
6899  MANIFEST_TOOL=:
6900fi
6901
6902
6903
6904
6905
6906
6907  case $host_os in
6908    rhapsody* | darwin*)
6909    if test -n "$ac_tool_prefix"; then
6910  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6911set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if ${ac_cv_prog_DSYMUTIL+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  if test -n "$DSYMUTIL"; then
6918  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932  done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937DSYMUTIL=$ac_cv_prog_DSYMUTIL
6938if test -n "$DSYMUTIL"; then
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6940$as_echo "$DSYMUTIL" >&6; }
6941else
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946
6947fi
6948if test -z "$ac_cv_prog_DSYMUTIL"; then
6949  ac_ct_DSYMUTIL=$DSYMUTIL
6950  # Extract the first word of "dsymutil", so it can be a program name with args.
6951set dummy dsymutil; ac_word=$2
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953$as_echo_n "checking for $ac_word... " >&6; }
6954if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6955  $as_echo_n "(cached) " >&6
6956else
6957  if test -n "$ac_ct_DSYMUTIL"; then
6958  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963  IFS=$as_save_IFS
6964  test -z "$as_dir" && as_dir=.
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972  done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6978if test -n "$ac_ct_DSYMUTIL"; then
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6980$as_echo "$ac_ct_DSYMUTIL" >&6; }
6981else
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983$as_echo "no" >&6; }
6984fi
6985
6986  if test "x$ac_ct_DSYMUTIL" = x; then
6987    DSYMUTIL=":"
6988  else
6989    case $cross_compiling:$ac_tool_warned in
6990yes:)
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993ac_tool_warned=yes ;;
6994esac
6995    DSYMUTIL=$ac_ct_DSYMUTIL
6996  fi
6997else
6998  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6999fi
7000
7001    if test -n "$ac_tool_prefix"; then
7002  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7003set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005$as_echo_n "checking for $ac_word... " >&6; }
7006if ${ac_cv_prog_NMEDIT+:} false; then :
7007  $as_echo_n "(cached) " >&6
7008else
7009  if test -n "$NMEDIT"; then
7010  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015  IFS=$as_save_IFS
7016  test -z "$as_dir" && as_dir=.
7017    for ac_exec_ext in '' $ac_executable_extensions; do
7018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021    break 2
7022  fi
7023done
7024  done
7025IFS=$as_save_IFS
7026
7027fi
7028fi
7029NMEDIT=$ac_cv_prog_NMEDIT
7030if test -n "$NMEDIT"; then
7031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7032$as_echo "$NMEDIT" >&6; }
7033else
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036fi
7037
7038
7039fi
7040if test -z "$ac_cv_prog_NMEDIT"; then
7041  ac_ct_NMEDIT=$NMEDIT
7042  # Extract the first word of "nmedit", so it can be a program name with args.
7043set dummy nmedit; ac_word=$2
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045$as_echo_n "checking for $ac_word... " >&6; }
7046if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  if test -n "$ac_ct_NMEDIT"; then
7050  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7051else
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055  IFS=$as_save_IFS
7056  test -z "$as_dir" && as_dir=.
7057    for ac_exec_ext in '' $ac_executable_extensions; do
7058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061    break 2
7062  fi
7063done
7064  done
7065IFS=$as_save_IFS
7066
7067fi
7068fi
7069ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7070if test -n "$ac_ct_NMEDIT"; then
7071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7072$as_echo "$ac_ct_NMEDIT" >&6; }
7073else
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075$as_echo "no" >&6; }
7076fi
7077
7078  if test "x$ac_ct_NMEDIT" = x; then
7079    NMEDIT=":"
7080  else
7081    case $cross_compiling:$ac_tool_warned in
7082yes:)
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085ac_tool_warned=yes ;;
7086esac
7087    NMEDIT=$ac_ct_NMEDIT
7088  fi
7089else
7090  NMEDIT="$ac_cv_prog_NMEDIT"
7091fi
7092
7093    if test -n "$ac_tool_prefix"; then
7094  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}lipo; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if ${ac_cv_prog_LIPO+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  if test -n "$LIPO"; then
7102  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107  IFS=$as_save_IFS
7108  test -z "$as_dir" && as_dir=.
7109    for ac_exec_ext in '' $ac_executable_extensions; do
7110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113    break 2
7114  fi
7115done
7116  done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121LIPO=$ac_cv_prog_LIPO
7122if test -n "$LIPO"; then
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7124$as_echo "$LIPO" >&6; }
7125else
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129
7130
7131fi
7132if test -z "$ac_cv_prog_LIPO"; then
7133  ac_ct_LIPO=$LIPO
7134  # Extract the first word of "lipo", so it can be a program name with args.
7135set dummy lipo; ac_word=$2
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
7138if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  if test -n "$ac_ct_LIPO"; then
7142  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147  IFS=$as_save_IFS
7148  test -z "$as_dir" && as_dir=.
7149    for ac_exec_ext in '' $ac_executable_extensions; do
7150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151    ac_cv_prog_ac_ct_LIPO="lipo"
7152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153    break 2
7154  fi
7155done
7156  done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7162if test -n "$ac_ct_LIPO"; then
7163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7164$as_echo "$ac_ct_LIPO" >&6; }
7165else
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
7168fi
7169
7170  if test "x$ac_ct_LIPO" = x; then
7171    LIPO=":"
7172  else
7173    case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177ac_tool_warned=yes ;;
7178esac
7179    LIPO=$ac_ct_LIPO
7180  fi
7181else
7182  LIPO="$ac_cv_prog_LIPO"
7183fi
7184
7185    if test -n "$ac_tool_prefix"; then
7186  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}otool; ac_word=$2
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if ${ac_cv_prog_OTOOL+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  if test -n "$OTOOL"; then
7194  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201    for ac_exec_ext in '' $ac_executable_extensions; do
7202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208  done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
7213OTOOL=$ac_cv_prog_OTOOL
7214if test -n "$OTOOL"; then
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7216$as_echo "$OTOOL" >&6; }
7217else
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222
7223fi
7224if test -z "$ac_cv_prog_OTOOL"; then
7225  ac_ct_OTOOL=$OTOOL
7226  # Extract the first word of "otool", so it can be a program name with args.
7227set dummy otool; ac_word=$2
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  if test -n "$ac_ct_OTOOL"; then
7234  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239  IFS=$as_save_IFS
7240  test -z "$as_dir" && as_dir=.
7241    for ac_exec_ext in '' $ac_executable_extensions; do
7242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243    ac_cv_prog_ac_ct_OTOOL="otool"
7244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245    break 2
7246  fi
7247done
7248  done
7249IFS=$as_save_IFS
7250
7251fi
7252fi
7253ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7254if test -n "$ac_ct_OTOOL"; then
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7256$as_echo "$ac_ct_OTOOL" >&6; }
7257else
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
7260fi
7261
7262  if test "x$ac_ct_OTOOL" = x; then
7263    OTOOL=":"
7264  else
7265    case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271    OTOOL=$ac_ct_OTOOL
7272  fi
7273else
7274  OTOOL="$ac_cv_prog_OTOOL"
7275fi
7276
7277    if test -n "$ac_tool_prefix"; then
7278  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}otool64; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_prog_OTOOL64+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  if test -n "$OTOOL64"; then
7286  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291  IFS=$as_save_IFS
7292  test -z "$as_dir" && as_dir=.
7293    for ac_exec_ext in '' $ac_executable_extensions; do
7294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297    break 2
7298  fi
7299done
7300  done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305OTOOL64=$ac_cv_prog_OTOOL64
7306if test -n "$OTOOL64"; then
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7308$as_echo "$OTOOL64" >&6; }
7309else
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_OTOOL64"; then
7317  ac_ct_OTOOL64=$OTOOL64
7318  # Extract the first word of "otool64", so it can be a program name with args.
7319set dummy otool64; ac_word=$2
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  if test -n "$ac_ct_OTOOL64"; then
7326  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333    for ac_exec_ext in '' $ac_executable_extensions; do
7334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335    ac_cv_prog_ac_ct_OTOOL64="otool64"
7336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340  done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7346if test -n "$ac_ct_OTOOL64"; then
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7348$as_echo "$ac_ct_OTOOL64" >&6; }
7349else
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354  if test "x$ac_ct_OTOOL64" = x; then
7355    OTOOL64=":"
7356  else
7357    case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363    OTOOL64=$ac_ct_OTOOL64
7364  fi
7365else
7366  OTOOL64="$ac_cv_prog_OTOOL64"
7367fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7396$as_echo_n "checking for -single_module linker flag... " >&6; }
7397if ${lt_cv_apple_cc_single_mod+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  lt_cv_apple_cc_single_mod=no
7401      if test -z "$LT_MULTI_MODULE"; then
7402	# By default we will add the -single_module flag. You can override
7403	# by either setting the environment variable LT_MULTI_MODULE
7404	# non-empty at configure time, or by adding -multi_module to the
7405	# link flags.
7406	rm -rf libconftest.dylib*
7407	echo "int foo(void){return 1;}" > conftest.c
7408	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7409-dynamiclib -Wl,-single_module conftest.c" >&5
7410	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7411	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7412        _lt_result=$?
7413	# If there is a non-empty error log, and "single_module"
7414	# appears in it, assume the flag caused a linker warning
7415        if test -s conftest.err && $GREP single_module conftest.err; then
7416	  cat conftest.err >&5
7417	# Otherwise, if the output was created with a 0 exit code from
7418	# the compiler, it worked.
7419	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7420	  lt_cv_apple_cc_single_mod=yes
7421	else
7422	  cat conftest.err >&5
7423	fi
7424	rm -rf libconftest.dylib*
7425	rm -f conftest.*
7426      fi
7427fi
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7429$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7430
7431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7432$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7433if ${lt_cv_ld_exported_symbols_list+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  lt_cv_ld_exported_symbols_list=no
7437      save_LDFLAGS=$LDFLAGS
7438      echo "_main" > conftest.sym
7439      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7440      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h.  */
7442
7443int
7444main ()
7445{
7446
7447  ;
7448  return 0;
7449}
7450_ACEOF
7451if ac_fn_c_try_link "$LINENO"; then :
7452  lt_cv_ld_exported_symbols_list=yes
7453else
7454  lt_cv_ld_exported_symbols_list=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext \
7457    conftest$ac_exeext conftest.$ac_ext
7458	LDFLAGS=$save_LDFLAGS
7459
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7462$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7463
7464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7465$as_echo_n "checking for -force_load linker flag... " >&6; }
7466if ${lt_cv_ld_force_load+:} false; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  lt_cv_ld_force_load=no
7470      cat > conftest.c << _LT_EOF
7471int forced_loaded() { return 2;}
7472_LT_EOF
7473      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7474      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7475      echo "$AR cru libconftest.a conftest.o" >&5
7476      $AR cru libconftest.a conftest.o 2>&5
7477      echo "$RANLIB libconftest.a" >&5
7478      $RANLIB libconftest.a 2>&5
7479      cat > conftest.c << _LT_EOF
7480int main() { return 0;}
7481_LT_EOF
7482      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7483      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7484      _lt_result=$?
7485      if test -s conftest.err && $GREP force_load conftest.err; then
7486	cat conftest.err >&5
7487      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7488	lt_cv_ld_force_load=yes
7489      else
7490	cat conftest.err >&5
7491      fi
7492        rm -f conftest.err libconftest.a conftest conftest.c
7493        rm -rf conftest.dSYM
7494
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7497$as_echo "$lt_cv_ld_force_load" >&6; }
7498    case $host_os in
7499    rhapsody* | darwin1.[012])
7500      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7501    darwin1.*)
7502      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7503    darwin*) # darwin 5.x on
7504      # if running on 10.5 or later, the deployment target defaults
7505      # to the OS version, if on x86, and 10.4, the deployment
7506      # target defaults to 10.4. Don't you love it?
7507      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7508	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7509	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7510	10.[012][,.]*)
7511	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7512	10.*)
7513	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7514      esac
7515    ;;
7516  esac
7517    if test yes = "$lt_cv_apple_cc_single_mod"; then
7518      _lt_dar_single_mod='$single_module'
7519    fi
7520    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7521      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7522    else
7523      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7524    fi
7525    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7526      _lt_dsymutil='~$DSYMUTIL $lib || :'
7527    else
7528      _lt_dsymutil=
7529    fi
7530    ;;
7531  esac
7532
7533# func_munge_path_list VARIABLE PATH
7534# -----------------------------------
7535# VARIABLE is name of variable containing _space_ separated list of
7536# directories to be munged by the contents of PATH, which is string
7537# having a format:
7538# "DIR[:DIR]:"
7539#       string "DIR[ DIR]" will be prepended to VARIABLE
7540# ":DIR[:DIR]"
7541#       string "DIR[ DIR]" will be appended to VARIABLE
7542# "DIRP[:DIRP]::[DIRA:]DIRA"
7543#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7544#       "DIRA[ DIRA]" will be appended to VARIABLE
7545# "DIR[:DIR]"
7546#       VARIABLE will be replaced by "DIR[ DIR]"
7547func_munge_path_list ()
7548{
7549    case x$2 in
7550    x)
7551        ;;
7552    *:)
7553        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7554        ;;
7555    x:*)
7556        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7557        ;;
7558    *::*)
7559        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7560        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7561        ;;
7562    *)
7563        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7564        ;;
7565    esac
7566}
7567
7568ac_ext=c
7569ac_cpp='$CPP $CPPFLAGS'
7570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7572ac_compiler_gnu=$ac_cv_c_compiler_gnu
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7574$as_echo_n "checking how to run the C preprocessor... " >&6; }
7575# On Suns, sometimes $CPP names a directory.
7576if test -n "$CPP" && test -d "$CPP"; then
7577  CPP=
7578fi
7579if test -z "$CPP"; then
7580  if ${ac_cv_prog_CPP+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583      # Double quotes because CPP needs to be expanded
7584    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7585    do
7586      ac_preproc_ok=false
7587for ac_c_preproc_warn_flag in '' yes
7588do
7589  # Use a header file that comes with gcc, so configuring glibc
7590  # with a fresh cross-compiler works.
7591  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7592  # <limits.h> exists even on freestanding compilers.
7593  # On the NeXT, cc -E runs the code through the compiler's parser,
7594  # not just through cpp. "Syntax error" is here to catch this case.
7595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597#ifdef __STDC__
7598# include <limits.h>
7599#else
7600# include <assert.h>
7601#endif
7602		     Syntax error
7603_ACEOF
7604if ac_fn_c_try_cpp "$LINENO"; then :
7605
7606else
7607  # Broken: fails on valid input.
7608continue
7609fi
7610rm -f conftest.err conftest.i conftest.$ac_ext
7611
7612  # OK, works on sane cases.  Now check whether nonexistent headers
7613  # can be detected and how.
7614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615/* end confdefs.h.  */
7616#include <ac_nonexistent.h>
7617_ACEOF
7618if ac_fn_c_try_cpp "$LINENO"; then :
7619  # Broken: success on invalid input.
7620continue
7621else
7622  # Passes both tests.
7623ac_preproc_ok=:
7624break
7625fi
7626rm -f conftest.err conftest.i conftest.$ac_ext
7627
7628done
7629# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7630rm -f conftest.i conftest.err conftest.$ac_ext
7631if $ac_preproc_ok; then :
7632  break
7633fi
7634
7635    done
7636    ac_cv_prog_CPP=$CPP
7637
7638fi
7639  CPP=$ac_cv_prog_CPP
7640else
7641  ac_cv_prog_CPP=$CPP
7642fi
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7644$as_echo "$CPP" >&6; }
7645ac_preproc_ok=false
7646for ac_c_preproc_warn_flag in '' yes
7647do
7648  # Use a header file that comes with gcc, so configuring glibc
7649  # with a fresh cross-compiler works.
7650  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7651  # <limits.h> exists even on freestanding compilers.
7652  # On the NeXT, cc -E runs the code through the compiler's parser,
7653  # not just through cpp. "Syntax error" is here to catch this case.
7654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656#ifdef __STDC__
7657# include <limits.h>
7658#else
7659# include <assert.h>
7660#endif
7661		     Syntax error
7662_ACEOF
7663if ac_fn_c_try_cpp "$LINENO"; then :
7664
7665else
7666  # Broken: fails on valid input.
7667continue
7668fi
7669rm -f conftest.err conftest.i conftest.$ac_ext
7670
7671  # OK, works on sane cases.  Now check whether nonexistent headers
7672  # can be detected and how.
7673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h.  */
7675#include <ac_nonexistent.h>
7676_ACEOF
7677if ac_fn_c_try_cpp "$LINENO"; then :
7678  # Broken: success on invalid input.
7679continue
7680else
7681  # Passes both tests.
7682ac_preproc_ok=:
7683break
7684fi
7685rm -f conftest.err conftest.i conftest.$ac_ext
7686
7687done
7688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7689rm -f conftest.i conftest.err conftest.$ac_ext
7690if $ac_preproc_ok; then :
7691
7692else
7693  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7695as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7696See \`config.log' for more details" "$LINENO" 5; }
7697fi
7698
7699ac_ext=c
7700ac_cpp='$CPP $CPPFLAGS'
7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704
7705
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7707$as_echo_n "checking for ANSI C header files... " >&6; }
7708if ${ac_cv_header_stdc+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h.  */
7713#include <stdlib.h>
7714#include <stdarg.h>
7715#include <string.h>
7716#include <float.h>
7717
7718int
7719main ()
7720{
7721
7722  ;
7723  return 0;
7724}
7725_ACEOF
7726if ac_fn_c_try_compile "$LINENO"; then :
7727  ac_cv_header_stdc=yes
7728else
7729  ac_cv_header_stdc=no
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732
7733if test $ac_cv_header_stdc = yes; then
7734  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737#include <string.h>
7738
7739_ACEOF
7740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741  $EGREP "memchr" >/dev/null 2>&1; then :
7742
7743else
7744  ac_cv_header_stdc=no
7745fi
7746rm -f conftest*
7747
7748fi
7749
7750if test $ac_cv_header_stdc = yes; then
7751  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754#include <stdlib.h>
7755
7756_ACEOF
7757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7758  $EGREP "free" >/dev/null 2>&1; then :
7759
7760else
7761  ac_cv_header_stdc=no
7762fi
7763rm -f conftest*
7764
7765fi
7766
7767if test $ac_cv_header_stdc = yes; then
7768  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7769  if test "$cross_compiling" = yes; then :
7770  :
7771else
7772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h.  */
7774#include <ctype.h>
7775#include <stdlib.h>
7776#if ((' ' & 0x0FF) == 0x020)
7777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7779#else
7780# define ISLOWER(c) \
7781		   (('a' <= (c) && (c) <= 'i') \
7782		     || ('j' <= (c) && (c) <= 'r') \
7783		     || ('s' <= (c) && (c) <= 'z'))
7784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7785#endif
7786
7787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7788int
7789main ()
7790{
7791  int i;
7792  for (i = 0; i < 256; i++)
7793    if (XOR (islower (i), ISLOWER (i))
7794	|| toupper (i) != TOUPPER (i))
7795      return 2;
7796  return 0;
7797}
7798_ACEOF
7799if ac_fn_c_try_run "$LINENO"; then :
7800
7801else
7802  ac_cv_header_stdc=no
7803fi
7804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7805  conftest.$ac_objext conftest.beam conftest.$ac_ext
7806fi
7807
7808fi
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7811$as_echo "$ac_cv_header_stdc" >&6; }
7812if test $ac_cv_header_stdc = yes; then
7813
7814$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7815
7816fi
7817
7818# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7819for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7820		  inttypes.h stdint.h unistd.h
7821do :
7822  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7823ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7824"
7825if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7826  cat >>confdefs.h <<_ACEOF
7827#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7828_ACEOF
7829
7830fi
7831
7832done
7833
7834
7835for ac_header in dlfcn.h
7836do :
7837  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7838"
7839if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7840  cat >>confdefs.h <<_ACEOF
7841#define HAVE_DLFCN_H 1
7842_ACEOF
7843
7844fi
7845
7846done
7847
7848
7849
7850
7851
7852# Set options
7853
7854
7855
7856        enable_dlopen=no
7857
7858
7859  enable_win32_dll=no
7860
7861
7862            # Check whether --enable-shared was given.
7863if test "${enable_shared+set}" = set; then :
7864  enableval=$enable_shared; p=${PACKAGE-default}
7865    case $enableval in
7866    yes) enable_shared=yes ;;
7867    no) enable_shared=no ;;
7868    *)
7869      enable_shared=no
7870      # Look at the argument we got.  We use all the common list separators.
7871      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7872      for pkg in $enableval; do
7873	IFS=$lt_save_ifs
7874	if test "X$pkg" = "X$p"; then
7875	  enable_shared=yes
7876	fi
7877      done
7878      IFS=$lt_save_ifs
7879      ;;
7880    esac
7881else
7882  enable_shared=yes
7883fi
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893  # Check whether --enable-static was given.
7894if test "${enable_static+set}" = set; then :
7895  enableval=$enable_static; p=${PACKAGE-default}
7896    case $enableval in
7897    yes) enable_static=yes ;;
7898    no) enable_static=no ;;
7899    *)
7900     enable_static=no
7901      # Look at the argument we got.  We use all the common list separators.
7902      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7903      for pkg in $enableval; do
7904	IFS=$lt_save_ifs
7905	if test "X$pkg" = "X$p"; then
7906	  enable_static=yes
7907	fi
7908      done
7909      IFS=$lt_save_ifs
7910      ;;
7911    esac
7912else
7913  enable_static=yes
7914fi
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925# Check whether --with-pic was given.
7926if test "${with_pic+set}" = set; then :
7927  withval=$with_pic; lt_p=${PACKAGE-default}
7928    case $withval in
7929    yes|no) pic_mode=$withval ;;
7930    *)
7931      pic_mode=default
7932      # Look at the argument we got.  We use all the common list separators.
7933      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7934      for lt_pkg in $withval; do
7935	IFS=$lt_save_ifs
7936	if test "X$lt_pkg" = "X$lt_p"; then
7937	  pic_mode=yes
7938	fi
7939      done
7940      IFS=$lt_save_ifs
7941      ;;
7942    esac
7943else
7944  pic_mode=default
7945fi
7946
7947
7948
7949
7950
7951
7952
7953
7954  # Check whether --enable-fast-install was given.
7955if test "${enable_fast_install+set}" = set; then :
7956  enableval=$enable_fast_install; p=${PACKAGE-default}
7957    case $enableval in
7958    yes) enable_fast_install=yes ;;
7959    no) enable_fast_install=no ;;
7960    *)
7961      enable_fast_install=no
7962      # Look at the argument we got.  We use all the common list separators.
7963      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7964      for pkg in $enableval; do
7965	IFS=$lt_save_ifs
7966	if test "X$pkg" = "X$p"; then
7967	  enable_fast_install=yes
7968	fi
7969      done
7970      IFS=$lt_save_ifs
7971      ;;
7972    esac
7973else
7974  enable_fast_install=yes
7975fi
7976
7977
7978
7979
7980
7981
7982
7983
7984  shared_archive_member_spec=
7985case $host,$enable_shared in
7986power*-*-aix[5-9]*,yes)
7987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7988$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7989
7990# Check whether --with-aix-soname was given.
7991if test "${with_aix_soname+set}" = set; then :
7992  withval=$with_aix_soname; case $withval in
7993    aix|svr4|both)
7994      ;;
7995    *)
7996      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7997      ;;
7998    esac
7999    lt_cv_with_aix_soname=$with_aix_soname
8000else
8001  if ${lt_cv_with_aix_soname+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  lt_cv_with_aix_soname=aix
8005fi
8006
8007    with_aix_soname=$lt_cv_with_aix_soname
8008fi
8009
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8011$as_echo "$with_aix_soname" >&6; }
8012  if test aix != "$with_aix_soname"; then
8013    # For the AIX way of multilib, we name the shared archive member
8014    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8015    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8016    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8017    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8018    if test 64 = "${OBJECT_MODE-32}"; then
8019      shared_archive_member_spec=shr_64
8020    else
8021      shared_archive_member_spec=shr
8022    fi
8023  fi
8024  ;;
8025*)
8026  with_aix_soname=aix
8027  ;;
8028esac
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039# This can be used to rebuild libtool when needed
8040LIBTOOL_DEPS=$ltmain
8041
8042# Always use our own libtool.
8043LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074test -z "$LN_S" && LN_S="ln -s"
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089if test -n "${ZSH_VERSION+set}"; then
8090   setopt NO_GLOB_SUBST
8091fi
8092
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8094$as_echo_n "checking for objdir... " >&6; }
8095if ${lt_cv_objdir+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  rm -f .libs 2>/dev/null
8099mkdir .libs 2>/dev/null
8100if test -d .libs; then
8101  lt_cv_objdir=.libs
8102else
8103  # MS-DOS does not allow filenames that begin with a dot.
8104  lt_cv_objdir=_libs
8105fi
8106rmdir .libs 2>/dev/null
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8109$as_echo "$lt_cv_objdir" >&6; }
8110objdir=$lt_cv_objdir
8111
8112
8113
8114
8115
8116cat >>confdefs.h <<_ACEOF
8117#define LT_OBJDIR "$lt_cv_objdir/"
8118_ACEOF
8119
8120
8121
8122
8123case $host_os in
8124aix3*)
8125  # AIX sometimes has problems with the GCC collect2 program.  For some
8126  # reason, if we set the COLLECT_NAMES environment variable, the problems
8127  # vanish in a puff of smoke.
8128  if test set != "${COLLECT_NAMES+set}"; then
8129    COLLECT_NAMES=
8130    export COLLECT_NAMES
8131  fi
8132  ;;
8133esac
8134
8135# Global variables:
8136ofile=libtool
8137can_build_shared=yes
8138
8139# All known linkers require a '.a' archive for static linking (except MSVC,
8140# which needs '.lib').
8141libext=a
8142
8143with_gnu_ld=$lt_cv_prog_gnu_ld
8144
8145old_CC=$CC
8146old_CFLAGS=$CFLAGS
8147
8148# Set sane defaults for various variables
8149test -z "$CC" && CC=cc
8150test -z "$LTCC" && LTCC=$CC
8151test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8152test -z "$LD" && LD=ld
8153test -z "$ac_objext" && ac_objext=o
8154
8155func_cc_basename $compiler
8156cc_basename=$func_cc_basename_result
8157
8158
8159# Only perform the check for file, if the check method requires it
8160test -z "$MAGIC_CMD" && MAGIC_CMD=file
8161case $deplibs_check_method in
8162file_magic*)
8163  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8165$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8166if ${lt_cv_path_MAGIC_CMD+:} false; then :
8167  $as_echo_n "(cached) " >&6
8168else
8169  case $MAGIC_CMD in
8170[\\/*] |  ?:[\\/]*)
8171  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8172  ;;
8173*)
8174  lt_save_MAGIC_CMD=$MAGIC_CMD
8175  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8176  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8177  for ac_dir in $ac_dummy; do
8178    IFS=$lt_save_ifs
8179    test -z "$ac_dir" && ac_dir=.
8180    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8181      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8182      if test -n "$file_magic_test_file"; then
8183	case $deplibs_check_method in
8184	"file_magic "*)
8185	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8186	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8187	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8188	    $EGREP "$file_magic_regex" > /dev/null; then
8189	    :
8190	  else
8191	    cat <<_LT_EOF 1>&2
8192
8193*** Warning: the command libtool uses to detect shared libraries,
8194*** $file_magic_cmd, produces output that libtool cannot recognize.
8195*** The result is that libtool may fail to recognize shared libraries
8196*** as such.  This will affect the creation of libtool libraries that
8197*** depend on shared libraries, but programs linked with such libtool
8198*** libraries will work regardless of this problem.  Nevertheless, you
8199*** may want to report the problem to your system manager and/or to
8200*** [email protected]
8201
8202_LT_EOF
8203	  fi ;;
8204	esac
8205      fi
8206      break
8207    fi
8208  done
8209  IFS=$lt_save_ifs
8210  MAGIC_CMD=$lt_save_MAGIC_CMD
8211  ;;
8212esac
8213fi
8214
8215MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8216if test -n "$MAGIC_CMD"; then
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8218$as_echo "$MAGIC_CMD" >&6; }
8219else
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
8222fi
8223
8224
8225
8226
8227
8228if test -z "$lt_cv_path_MAGIC_CMD"; then
8229  if test -n "$ac_tool_prefix"; then
8230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8231$as_echo_n "checking for file... " >&6; }
8232if ${lt_cv_path_MAGIC_CMD+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  case $MAGIC_CMD in
8236[\\/*] |  ?:[\\/]*)
8237  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8238  ;;
8239*)
8240  lt_save_MAGIC_CMD=$MAGIC_CMD
8241  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8242  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8243  for ac_dir in $ac_dummy; do
8244    IFS=$lt_save_ifs
8245    test -z "$ac_dir" && ac_dir=.
8246    if test -f "$ac_dir/file"; then
8247      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8248      if test -n "$file_magic_test_file"; then
8249	case $deplibs_check_method in
8250	"file_magic "*)
8251	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8252	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8253	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8254	    $EGREP "$file_magic_regex" > /dev/null; then
8255	    :
8256	  else
8257	    cat <<_LT_EOF 1>&2
8258
8259*** Warning: the command libtool uses to detect shared libraries,
8260*** $file_magic_cmd, produces output that libtool cannot recognize.
8261*** The result is that libtool may fail to recognize shared libraries
8262*** as such.  This will affect the creation of libtool libraries that
8263*** depend on shared libraries, but programs linked with such libtool
8264*** libraries will work regardless of this problem.  Nevertheless, you
8265*** may want to report the problem to your system manager and/or to
8266*** [email protected]
8267
8268_LT_EOF
8269	  fi ;;
8270	esac
8271      fi
8272      break
8273    fi
8274  done
8275  IFS=$lt_save_ifs
8276  MAGIC_CMD=$lt_save_MAGIC_CMD
8277  ;;
8278esac
8279fi
8280
8281MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8282if test -n "$MAGIC_CMD"; then
8283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8284$as_echo "$MAGIC_CMD" >&6; }
8285else
8286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
8288fi
8289
8290
8291  else
8292    MAGIC_CMD=:
8293  fi
8294fi
8295
8296  fi
8297  ;;
8298esac
8299
8300# Use C for the default configuration in the libtool script
8301
8302lt_save_CC=$CC
8303ac_ext=c
8304ac_cpp='$CPP $CPPFLAGS'
8305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307ac_compiler_gnu=$ac_cv_c_compiler_gnu
8308
8309
8310# Source file extension for C test sources.
8311ac_ext=c
8312
8313# Object file extension for compiled C test sources.
8314objext=o
8315objext=$objext
8316
8317# Code to be used in simple compile tests
8318lt_simple_compile_test_code="int some_variable = 0;"
8319
8320# Code to be used in simple link tests
8321lt_simple_link_test_code='int main(){return(0);}'
8322
8323
8324
8325
8326
8327
8328
8329# If no C compiler was specified, use CC.
8330LTCC=${LTCC-"$CC"}
8331
8332# If no C compiler flags were specified, use CFLAGS.
8333LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8334
8335# Allow CC to be a program name with arguments.
8336compiler=$CC
8337
8338# Save the default compiler, since it gets overwritten when the other
8339# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8340compiler_DEFAULT=$CC
8341
8342# save warnings/boilerplate of simple test code
8343ac_outfile=conftest.$ac_objext
8344echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8345eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8346_lt_compiler_boilerplate=`cat conftest.err`
8347$RM conftest*
8348
8349ac_outfile=conftest.$ac_objext
8350echo "$lt_simple_link_test_code" >conftest.$ac_ext
8351eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8352_lt_linker_boilerplate=`cat conftest.err`
8353$RM -r conftest*
8354
8355
8356if test -n "$compiler"; then
8357
8358lt_prog_compiler_no_builtin_flag=
8359
8360if test yes = "$GCC"; then
8361  case $cc_basename in
8362  nvcc*)
8363    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8364  *)
8365    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8366  esac
8367
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8369$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8370if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  lt_cv_prog_compiler_rtti_exceptions=no
8374   ac_outfile=conftest.$ac_objext
8375   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8377   # Insert the option either (1) after the last *FLAGS variable, or
8378   # (2) before a word containing "conftest.", or (3) at the end.
8379   # Note that $ac_compile itself does not contain backslashes and begins
8380   # with a dollar sign (not a hyphen), so the echo should work correctly.
8381   # The option is referenced via a variable to avoid confusing sed.
8382   lt_compile=`echo "$ac_compile" | $SED \
8383   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8384   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8385   -e 's:$: $lt_compiler_flag:'`
8386   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8387   (eval "$lt_compile" 2>conftest.err)
8388   ac_status=$?
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   if (exit $ac_status) && test -s "$ac_outfile"; then
8392     # The compiler can only warn and ignore the option if not recognized
8393     # So say no if there are warnings other than the usual output.
8394     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8395     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8396     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8397       lt_cv_prog_compiler_rtti_exceptions=yes
8398     fi
8399   fi
8400   $RM conftest*
8401
8402fi
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8404$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8405
8406if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8407    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8408else
8409    :
8410fi
8411
8412fi
8413
8414
8415
8416
8417
8418
8419  lt_prog_compiler_wl=
8420lt_prog_compiler_pic=
8421lt_prog_compiler_static=
8422
8423
8424  if test yes = "$GCC"; then
8425    lt_prog_compiler_wl='-Wl,'
8426    lt_prog_compiler_static='-static'
8427
8428    case $host_os in
8429      aix*)
8430      # All AIX code is PIC.
8431      if test ia64 = "$host_cpu"; then
8432	# AIX 5 now supports IA64 processor
8433	lt_prog_compiler_static='-Bstatic'
8434      fi
8435      lt_prog_compiler_pic='-fPIC'
8436      ;;
8437
8438    amigaos*)
8439      case $host_cpu in
8440      powerpc)
8441            # see comment about AmigaOS4 .so support
8442            lt_prog_compiler_pic='-fPIC'
8443        ;;
8444      m68k)
8445            # FIXME: we need at least 68020 code to build shared libraries, but
8446            # adding the '-m68020' flag to GCC prevents building anything better,
8447            # like '-m68040'.
8448            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8449        ;;
8450      esac
8451      ;;
8452
8453    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8454      # PIC is the default for these OSes.
8455      ;;
8456
8457    mingw* | cygwin* | pw32* | os2* | cegcc*)
8458      # This hack is so that the source file can tell whether it is being
8459      # built for inclusion in a dll (and should export symbols for example).
8460      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8461      # (--disable-auto-import) libraries
8462      lt_prog_compiler_pic='-DDLL_EXPORT'
8463      case $host_os in
8464      os2*)
8465	lt_prog_compiler_static='$wl-static'
8466	;;
8467      esac
8468      ;;
8469
8470    darwin* | rhapsody*)
8471      # PIC is the default on this platform
8472      # Common symbols not allowed in MH_DYLIB files
8473      lt_prog_compiler_pic='-fno-common'
8474      ;;
8475
8476    haiku*)
8477      # PIC is the default for Haiku.
8478      # The "-static" flag exists, but is broken.
8479      lt_prog_compiler_static=
8480      ;;
8481
8482    hpux*)
8483      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8484      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8485      # sets the default TLS model and affects inlining.
8486      case $host_cpu in
8487      hppa*64*)
8488	# +Z the default
8489	;;
8490      *)
8491	lt_prog_compiler_pic='-fPIC'
8492	;;
8493      esac
8494      ;;
8495
8496    interix[3-9]*)
8497      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8498      # Instead, we relocate shared libraries at runtime.
8499      ;;
8500
8501    msdosdjgpp*)
8502      # Just because we use GCC doesn't mean we suddenly get shared libraries
8503      # on systems that don't support them.
8504      lt_prog_compiler_can_build_shared=no
8505      enable_shared=no
8506      ;;
8507
8508    *nto* | *qnx*)
8509      # QNX uses GNU C++, but need to define -shared option too, otherwise
8510      # it will coredump.
8511      lt_prog_compiler_pic='-fPIC -shared'
8512      ;;
8513
8514    sysv4*MP*)
8515      if test -d /usr/nec; then
8516	lt_prog_compiler_pic=-Kconform_pic
8517      fi
8518      ;;
8519
8520    *)
8521      lt_prog_compiler_pic='-fPIC'
8522      ;;
8523    esac
8524
8525    case $cc_basename in
8526    nvcc*) # Cuda Compiler Driver 2.2
8527      lt_prog_compiler_wl='-Xlinker '
8528      if test -n "$lt_prog_compiler_pic"; then
8529        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8530      fi
8531      ;;
8532    esac
8533  else
8534    # PORTME Check for flag to pass linker flags through the system compiler.
8535    case $host_os in
8536    aix*)
8537      lt_prog_compiler_wl='-Wl,'
8538      if test ia64 = "$host_cpu"; then
8539	# AIX 5 now supports IA64 processor
8540	lt_prog_compiler_static='-Bstatic'
8541      else
8542	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8543      fi
8544      ;;
8545
8546    darwin* | rhapsody*)
8547      # PIC is the default on this platform
8548      # Common symbols not allowed in MH_DYLIB files
8549      lt_prog_compiler_pic='-fno-common'
8550      case $cc_basename in
8551      nagfor*)
8552        # NAG Fortran compiler
8553        lt_prog_compiler_wl='-Wl,-Wl,,'
8554        lt_prog_compiler_pic='-PIC'
8555        lt_prog_compiler_static='-Bstatic'
8556        ;;
8557      esac
8558      ;;
8559
8560    mingw* | cygwin* | pw32* | os2* | cegcc*)
8561      # This hack is so that the source file can tell whether it is being
8562      # built for inclusion in a dll (and should export symbols for example).
8563      lt_prog_compiler_pic='-DDLL_EXPORT'
8564      case $host_os in
8565      os2*)
8566	lt_prog_compiler_static='$wl-static'
8567	;;
8568      esac
8569      ;;
8570
8571    hpux9* | hpux10* | hpux11*)
8572      lt_prog_compiler_wl='-Wl,'
8573      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8574      # not for PA HP-UX.
8575      case $host_cpu in
8576      hppa*64*|ia64*)
8577	# +Z the default
8578	;;
8579      *)
8580	lt_prog_compiler_pic='+Z'
8581	;;
8582      esac
8583      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8584      lt_prog_compiler_static='$wl-a ${wl}archive'
8585      ;;
8586
8587    irix5* | irix6* | nonstopux*)
8588      lt_prog_compiler_wl='-Wl,'
8589      # PIC (with -KPIC) is the default.
8590      lt_prog_compiler_static='-non_shared'
8591      ;;
8592
8593    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8594      case $cc_basename in
8595      # old Intel for x86_64, which still supported -KPIC.
8596      ecc*)
8597	lt_prog_compiler_wl='-Wl,'
8598	lt_prog_compiler_pic='-KPIC'
8599	lt_prog_compiler_static='-static'
8600        ;;
8601      # icc used to be incompatible with GCC.
8602      # ICC 10 doesn't accept -KPIC any more.
8603      icc* | ifort*)
8604	lt_prog_compiler_wl='-Wl,'
8605	lt_prog_compiler_pic='-fPIC'
8606	lt_prog_compiler_static='-static'
8607        ;;
8608      # Lahey Fortran 8.1.
8609      lf95*)
8610	lt_prog_compiler_wl='-Wl,'
8611	lt_prog_compiler_pic='--shared'
8612	lt_prog_compiler_static='--static'
8613	;;
8614      nagfor*)
8615	# NAG Fortran compiler
8616	lt_prog_compiler_wl='-Wl,-Wl,,'
8617	lt_prog_compiler_pic='-PIC'
8618	lt_prog_compiler_static='-Bstatic'
8619	;;
8620      tcc*)
8621	# Fabrice Bellard et al's Tiny C Compiler
8622	lt_prog_compiler_wl='-Wl,'
8623	lt_prog_compiler_pic='-fPIC'
8624	lt_prog_compiler_static='-static'
8625	;;
8626      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8627        # Portland Group compilers (*not* the Pentium gcc compiler,
8628	# which looks to be a dead project)
8629	lt_prog_compiler_wl='-Wl,'
8630	lt_prog_compiler_pic='-fpic'
8631	lt_prog_compiler_static='-Bstatic'
8632        ;;
8633      ccc*)
8634        lt_prog_compiler_wl='-Wl,'
8635        # All Alpha code is PIC.
8636        lt_prog_compiler_static='-non_shared'
8637        ;;
8638      xl* | bgxl* | bgf* | mpixl*)
8639	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8640	lt_prog_compiler_wl='-Wl,'
8641	lt_prog_compiler_pic='-qpic'
8642	lt_prog_compiler_static='-qstaticlink'
8643	;;
8644      *)
8645	case `$CC -V 2>&1 | sed 5q` in
8646	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8647	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8648	  lt_prog_compiler_pic='-KPIC'
8649	  lt_prog_compiler_static='-Bstatic'
8650	  lt_prog_compiler_wl=''
8651	  ;;
8652	*Sun\ F* | *Sun*Fortran*)
8653	  lt_prog_compiler_pic='-KPIC'
8654	  lt_prog_compiler_static='-Bstatic'
8655	  lt_prog_compiler_wl='-Qoption ld '
8656	  ;;
8657	*Sun\ C*)
8658	  # Sun C 5.9
8659	  lt_prog_compiler_pic='-KPIC'
8660	  lt_prog_compiler_static='-Bstatic'
8661	  lt_prog_compiler_wl='-Wl,'
8662	  ;;
8663        *Intel*\ [CF]*Compiler*)
8664	  lt_prog_compiler_wl='-Wl,'
8665	  lt_prog_compiler_pic='-fPIC'
8666	  lt_prog_compiler_static='-static'
8667	  ;;
8668	*Portland\ Group*)
8669	  lt_prog_compiler_wl='-Wl,'
8670	  lt_prog_compiler_pic='-fpic'
8671	  lt_prog_compiler_static='-Bstatic'
8672	  ;;
8673	esac
8674	;;
8675      esac
8676      ;;
8677
8678    newsos6)
8679      lt_prog_compiler_pic='-KPIC'
8680      lt_prog_compiler_static='-Bstatic'
8681      ;;
8682
8683    *nto* | *qnx*)
8684      # QNX uses GNU C++, but need to define -shared option too, otherwise
8685      # it will coredump.
8686      lt_prog_compiler_pic='-fPIC -shared'
8687      ;;
8688
8689    osf3* | osf4* | osf5*)
8690      lt_prog_compiler_wl='-Wl,'
8691      # All OSF/1 code is PIC.
8692      lt_prog_compiler_static='-non_shared'
8693      ;;
8694
8695    rdos*)
8696      lt_prog_compiler_static='-non_shared'
8697      ;;
8698
8699    solaris*)
8700      lt_prog_compiler_pic='-KPIC'
8701      lt_prog_compiler_static='-Bstatic'
8702      case $cc_basename in
8703      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8704	lt_prog_compiler_wl='-Qoption ld ';;
8705      *)
8706	lt_prog_compiler_wl='-Wl,';;
8707      esac
8708      ;;
8709
8710    sunos4*)
8711      lt_prog_compiler_wl='-Qoption ld '
8712      lt_prog_compiler_pic='-PIC'
8713      lt_prog_compiler_static='-Bstatic'
8714      ;;
8715
8716    sysv4 | sysv4.2uw2* | sysv4.3*)
8717      lt_prog_compiler_wl='-Wl,'
8718      lt_prog_compiler_pic='-KPIC'
8719      lt_prog_compiler_static='-Bstatic'
8720      ;;
8721
8722    sysv4*MP*)
8723      if test -d /usr/nec; then
8724	lt_prog_compiler_pic='-Kconform_pic'
8725	lt_prog_compiler_static='-Bstatic'
8726      fi
8727      ;;
8728
8729    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8730      lt_prog_compiler_wl='-Wl,'
8731      lt_prog_compiler_pic='-KPIC'
8732      lt_prog_compiler_static='-Bstatic'
8733      ;;
8734
8735    unicos*)
8736      lt_prog_compiler_wl='-Wl,'
8737      lt_prog_compiler_can_build_shared=no
8738      ;;
8739
8740    uts4*)
8741      lt_prog_compiler_pic='-pic'
8742      lt_prog_compiler_static='-Bstatic'
8743      ;;
8744
8745    *)
8746      lt_prog_compiler_can_build_shared=no
8747      ;;
8748    esac
8749  fi
8750
8751case $host_os in
8752  # For platforms that do not support PIC, -DPIC is meaningless:
8753  *djgpp*)
8754    lt_prog_compiler_pic=
8755    ;;
8756  *)
8757    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8758    ;;
8759esac
8760
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8762$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8763if ${lt_cv_prog_compiler_pic+:} false; then :
8764  $as_echo_n "(cached) " >&6
8765else
8766  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8769$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8770lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8771
8772#
8773# Check to make sure the PIC flag actually works.
8774#
8775if test -n "$lt_prog_compiler_pic"; then
8776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8777$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8778if ${lt_cv_prog_compiler_pic_works+:} false; then :
8779  $as_echo_n "(cached) " >&6
8780else
8781  lt_cv_prog_compiler_pic_works=no
8782   ac_outfile=conftest.$ac_objext
8783   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8784   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8785   # Insert the option either (1) after the last *FLAGS variable, or
8786   # (2) before a word containing "conftest.", or (3) at the end.
8787   # Note that $ac_compile itself does not contain backslashes and begins
8788   # with a dollar sign (not a hyphen), so the echo should work correctly.
8789   # The option is referenced via a variable to avoid confusing sed.
8790   lt_compile=`echo "$ac_compile" | $SED \
8791   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8792   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8793   -e 's:$: $lt_compiler_flag:'`
8794   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8795   (eval "$lt_compile" 2>conftest.err)
8796   ac_status=$?
8797   cat conftest.err >&5
8798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   if (exit $ac_status) && test -s "$ac_outfile"; then
8800     # The compiler can only warn and ignore the option if not recognized
8801     # So say no if there are warnings other than the usual output.
8802     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8803     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8804     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8805       lt_cv_prog_compiler_pic_works=yes
8806     fi
8807   fi
8808   $RM conftest*
8809
8810fi
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8812$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8813
8814if test yes = "$lt_cv_prog_compiler_pic_works"; then
8815    case $lt_prog_compiler_pic in
8816     "" | " "*) ;;
8817     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8818     esac
8819else
8820    lt_prog_compiler_pic=
8821     lt_prog_compiler_can_build_shared=no
8822fi
8823
8824fi
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836#
8837# Check to make sure the static flag actually works.
8838#
8839wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8841$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8842if ${lt_cv_prog_compiler_static_works+:} false; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  lt_cv_prog_compiler_static_works=no
8846   save_LDFLAGS=$LDFLAGS
8847   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8848   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8849   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8850     # The linker can only warn and ignore the option if not recognized
8851     # So say no if there are warnings
8852     if test -s conftest.err; then
8853       # Append any errors to the config.log.
8854       cat conftest.err 1>&5
8855       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8856       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8857       if diff conftest.exp conftest.er2 >/dev/null; then
8858         lt_cv_prog_compiler_static_works=yes
8859       fi
8860     else
8861       lt_cv_prog_compiler_static_works=yes
8862     fi
8863   fi
8864   $RM -r conftest*
8865   LDFLAGS=$save_LDFLAGS
8866
8867fi
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8869$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8870
8871if test yes = "$lt_cv_prog_compiler_static_works"; then
8872    :
8873else
8874    lt_prog_compiler_static=
8875fi
8876
8877
8878
8879
8880
8881
8882
8883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8884$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8885if ${lt_cv_prog_compiler_c_o+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  lt_cv_prog_compiler_c_o=no
8889   $RM -r conftest 2>/dev/null
8890   mkdir conftest
8891   cd conftest
8892   mkdir out
8893   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8894
8895   lt_compiler_flag="-o out/conftest2.$ac_objext"
8896   # Insert the option either (1) after the last *FLAGS variable, or
8897   # (2) before a word containing "conftest.", or (3) at the end.
8898   # Note that $ac_compile itself does not contain backslashes and begins
8899   # with a dollar sign (not a hyphen), so the echo should work correctly.
8900   lt_compile=`echo "$ac_compile" | $SED \
8901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8903   -e 's:$: $lt_compiler_flag:'`
8904   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8905   (eval "$lt_compile" 2>out/conftest.err)
8906   ac_status=$?
8907   cat out/conftest.err >&5
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8910   then
8911     # The compiler can only warn and ignore the option if not recognized
8912     # So say no if there are warnings
8913     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8914     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8915     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8916       lt_cv_prog_compiler_c_o=yes
8917     fi
8918   fi
8919   chmod u+w . 2>&5
8920   $RM conftest*
8921   # SGI C++ compiler will create directory out/ii_files/ for
8922   # template instantiation
8923   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8924   $RM out/* && rmdir out
8925   cd ..
8926   $RM -r conftest
8927   $RM conftest*
8928
8929fi
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8931$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8932
8933
8934
8935
8936
8937
8938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8939$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8940if ${lt_cv_prog_compiler_c_o+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  lt_cv_prog_compiler_c_o=no
8944   $RM -r conftest 2>/dev/null
8945   mkdir conftest
8946   cd conftest
8947   mkdir out
8948   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
8950   lt_compiler_flag="-o out/conftest2.$ac_objext"
8951   # Insert the option either (1) after the last *FLAGS variable, or
8952   # (2) before a word containing "conftest.", or (3) at the end.
8953   # Note that $ac_compile itself does not contain backslashes and begins
8954   # with a dollar sign (not a hyphen), so the echo should work correctly.
8955   lt_compile=`echo "$ac_compile" | $SED \
8956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8958   -e 's:$: $lt_compiler_flag:'`
8959   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8960   (eval "$lt_compile" 2>out/conftest.err)
8961   ac_status=$?
8962   cat out/conftest.err >&5
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8965   then
8966     # The compiler can only warn and ignore the option if not recognized
8967     # So say no if there are warnings
8968     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8969     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8970     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8971       lt_cv_prog_compiler_c_o=yes
8972     fi
8973   fi
8974   chmod u+w . 2>&5
8975   $RM conftest*
8976   # SGI C++ compiler will create directory out/ii_files/ for
8977   # template instantiation
8978   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8979   $RM out/* && rmdir out
8980   cd ..
8981   $RM -r conftest
8982   $RM conftest*
8983
8984fi
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8986$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8987
8988
8989
8990
8991hard_links=nottested
8992if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8993  # do not overwrite the value of need_locks provided by the user
8994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8995$as_echo_n "checking if we can lock with hard links... " >&6; }
8996  hard_links=yes
8997  $RM conftest*
8998  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8999  touch conftest.a
9000  ln conftest.a conftest.b 2>&5 || hard_links=no
9001  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9003$as_echo "$hard_links" >&6; }
9004  if test no = "$hard_links"; then
9005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9006$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9007    need_locks=warn
9008  fi
9009else
9010  need_locks=no
9011fi
9012
9013
9014
9015
9016
9017
9018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9019$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9020
9021  runpath_var=
9022  allow_undefined_flag=
9023  always_export_symbols=no
9024  archive_cmds=
9025  archive_expsym_cmds=
9026  compiler_needs_object=no
9027  enable_shared_with_static_runtimes=no
9028  export_dynamic_flag_spec=
9029  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9030  hardcode_automatic=no
9031  hardcode_direct=no
9032  hardcode_direct_absolute=no
9033  hardcode_libdir_flag_spec=
9034  hardcode_libdir_separator=
9035  hardcode_minus_L=no
9036  hardcode_shlibpath_var=unsupported
9037  inherit_rpath=no
9038  link_all_deplibs=unknown
9039  module_cmds=
9040  module_expsym_cmds=
9041  old_archive_from_new_cmds=
9042  old_archive_from_expsyms_cmds=
9043  thread_safe_flag_spec=
9044  whole_archive_flag_spec=
9045  # include_expsyms should be a list of space-separated symbols to be *always*
9046  # included in the symbol list
9047  include_expsyms=
9048  # exclude_expsyms can be an extended regexp of symbols to exclude
9049  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9050  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9051  # as well as any symbol that contains 'd'.
9052  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9053  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9054  # platforms (ab)use it in PIC code, but their linkers get confused if
9055  # the symbol is explicitly referenced.  Since portable code cannot
9056  # rely on this symbol name, it's probably fine to never include it in
9057  # preloaded symbol tables.
9058  # Exclude shared library initialization/finalization symbols.
9059  extract_expsyms_cmds=
9060
9061  case $host_os in
9062  cygwin* | mingw* | pw32* | cegcc*)
9063    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9064    # When not using gcc, we currently assume that we are using
9065    # Microsoft Visual C++.
9066    if test yes != "$GCC"; then
9067      with_gnu_ld=no
9068    fi
9069    ;;
9070  interix*)
9071    # we just hope/assume this is gcc and not c89 (= MSVC++)
9072    with_gnu_ld=yes
9073    ;;
9074  openbsd* | bitrig*)
9075    with_gnu_ld=no
9076    ;;
9077  esac
9078
9079  ld_shlibs=yes
9080
9081  # On some targets, GNU ld is compatible enough with the native linker
9082  # that we're better off using the native interface for both.
9083  lt_use_gnu_ld_interface=no
9084  if test yes = "$with_gnu_ld"; then
9085    case $host_os in
9086      aix*)
9087	# The AIX port of GNU ld has always aspired to compatibility
9088	# with the native linker.  However, as the warning in the GNU ld
9089	# block says, versions before 2.19.5* couldn't really create working
9090	# shared libraries, regardless of the interface used.
9091	case `$LD -v 2>&1` in
9092	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9093	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9094	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9095	  *)
9096	    lt_use_gnu_ld_interface=yes
9097	    ;;
9098	esac
9099	;;
9100      *)
9101	lt_use_gnu_ld_interface=yes
9102	;;
9103    esac
9104  fi
9105
9106  if test yes = "$lt_use_gnu_ld_interface"; then
9107    # If archive_cmds runs LD, not CC, wlarc should be empty
9108    wlarc='$wl'
9109
9110    # Set some defaults for GNU ld with shared library support. These
9111    # are reset later if shared libraries are not supported. Putting them
9112    # here allows them to be overridden if necessary.
9113    runpath_var=LD_RUN_PATH
9114    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9115    export_dynamic_flag_spec='$wl--export-dynamic'
9116    # ancient GNU ld didn't support --whole-archive et. al.
9117    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9118      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9119    else
9120      whole_archive_flag_spec=
9121    fi
9122    supports_anon_versioning=no
9123    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9124      *GNU\ gold*) supports_anon_versioning=yes ;;
9125      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9126      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9127      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9128      *\ 2.11.*) ;; # other 2.11 versions
9129      *) supports_anon_versioning=yes ;;
9130    esac
9131
9132    # See if GNU ld supports shared libraries.
9133    case $host_os in
9134    aix[3-9]*)
9135      # On AIX/PPC, the GNU linker is very broken
9136      if test ia64 != "$host_cpu"; then
9137	ld_shlibs=no
9138	cat <<_LT_EOF 1>&2
9139
9140*** Warning: the GNU linker, at least up to release 2.19, is reported
9141*** to be unable to reliably create shared libraries on AIX.
9142*** Therefore, libtool is disabling shared libraries support.  If you
9143*** really care for shared libraries, you may want to install binutils
9144*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9145*** You will then need to restart the configuration process.
9146
9147_LT_EOF
9148      fi
9149      ;;
9150
9151    amigaos*)
9152      case $host_cpu in
9153      powerpc)
9154            # see comment about AmigaOS4 .so support
9155            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9156            archive_expsym_cmds=''
9157        ;;
9158      m68k)
9159            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)'
9160            hardcode_libdir_flag_spec='-L$libdir'
9161            hardcode_minus_L=yes
9162        ;;
9163      esac
9164      ;;
9165
9166    beos*)
9167      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168	allow_undefined_flag=unsupported
9169	# Joseph Beckenbach <[email protected]> says some releases of gcc
9170	# support --undefined.  This deserves some investigation.  FIXME
9171	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9172      else
9173	ld_shlibs=no
9174      fi
9175      ;;
9176
9177    cygwin* | mingw* | pw32* | cegcc*)
9178      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9179      # as there is no search path for DLLs.
9180      hardcode_libdir_flag_spec='-L$libdir'
9181      export_dynamic_flag_spec='$wl--export-all-symbols'
9182      allow_undefined_flag=unsupported
9183      always_export_symbols=no
9184      enable_shared_with_static_runtimes=yes
9185      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'
9186      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9187
9188      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9189        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9190	# If the export-symbols file already is a .def file, use it as
9191	# is; otherwise, prepend EXPORTS...
9192	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9193          cp $export_symbols $output_objdir/$soname.def;
9194        else
9195          echo EXPORTS > $output_objdir/$soname.def;
9196          cat $export_symbols >> $output_objdir/$soname.def;
9197        fi~
9198        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9199      else
9200	ld_shlibs=no
9201      fi
9202      ;;
9203
9204    haiku*)
9205      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9206      link_all_deplibs=yes
9207      ;;
9208
9209    os2*)
9210      hardcode_libdir_flag_spec='-L$libdir'
9211      hardcode_minus_L=yes
9212      allow_undefined_flag=unsupported
9213      shrext_cmds=.dll
9214      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9215	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9216	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9217	$ECHO EXPORTS >> $output_objdir/$libname.def~
9218	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9219	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9220	emximp -o $lib $output_objdir/$libname.def'
9221      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9222	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9223	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9224	$ECHO EXPORTS >> $output_objdir/$libname.def~
9225	prefix_cmds="$SED"~
9226	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9227	  prefix_cmds="$prefix_cmds -e 1d";
9228	fi~
9229	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9230	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9231	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9232	emximp -o $lib $output_objdir/$libname.def'
9233      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9234      enable_shared_with_static_runtimes=yes
9235      ;;
9236
9237    interix[3-9]*)
9238      hardcode_direct=no
9239      hardcode_shlibpath_var=no
9240      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9241      export_dynamic_flag_spec='$wl-E'
9242      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9243      # Instead, shared libraries are loaded at an image base (0x10000000 by
9244      # default) and relocated if they conflict, which is a slow very memory
9245      # consuming and fragmenting process.  To avoid this, we pick a random,
9246      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9247      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9248      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9249      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'
9250      ;;
9251
9252    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9253      tmp_diet=no
9254      if test linux-dietlibc = "$host_os"; then
9255	case $cc_basename in
9256	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9257	esac
9258      fi
9259      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9260	 && test no = "$tmp_diet"
9261      then
9262	tmp_addflag=' $pic_flag'
9263	tmp_sharedflag='-shared'
9264	case $cc_basename,$host_cpu in
9265        pgcc*)				# Portland Group C compiler
9266	  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'
9267	  tmp_addflag=' $pic_flag'
9268	  ;;
9269	pgf77* | pgf90* | pgf95* | pgfortran*)
9270					# Portland Group f77 and f90 compilers
9271	  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'
9272	  tmp_addflag=' $pic_flag -Mnomain' ;;
9273	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9274	  tmp_addflag=' -i_dynamic' ;;
9275	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9276	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9277	ifc* | ifort*)			# Intel Fortran compiler
9278	  tmp_addflag=' -nofor_main' ;;
9279	lf95*)				# Lahey Fortran 8.1
9280	  whole_archive_flag_spec=
9281	  tmp_sharedflag='--shared' ;;
9282        nagfor*)                        # NAGFOR 5.3
9283          tmp_sharedflag='-Wl,-shared' ;;
9284	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9285	  tmp_sharedflag='-qmkshrobj'
9286	  tmp_addflag= ;;
9287	nvcc*)	# Cuda Compiler Driver 2.2
9288	  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'
9289	  compiler_needs_object=yes
9290	  ;;
9291	esac
9292	case `$CC -V 2>&1 | sed 5q` in
9293	*Sun\ C*)			# Sun C 5.9
9294	  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'
9295	  compiler_needs_object=yes
9296	  tmp_sharedflag='-G' ;;
9297	*Sun\ F*)			# Sun Fortran 8.3
9298	  tmp_sharedflag='-G' ;;
9299	esac
9300	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9301
9302        if test yes = "$supports_anon_versioning"; then
9303          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9304            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9305            echo "local: *; };" >> $output_objdir/$libname.ver~
9306            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9307        fi
9308
9309	case $cc_basename in
9310	tcc*)
9311	  export_dynamic_flag_spec='-rdynamic'
9312	  ;;
9313	xlf* | bgf* | bgxlf* | mpixlf*)
9314	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9315	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9316	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9317	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9318	  if test yes = "$supports_anon_versioning"; then
9319	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9320              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321              echo "local: *; };" >> $output_objdir/$libname.ver~
9322              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9323	  fi
9324	  ;;
9325	esac
9326      else
9327        ld_shlibs=no
9328      fi
9329      ;;
9330
9331    netbsd*)
9332      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9333	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9334	wlarc=
9335      else
9336	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9337	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9338      fi
9339      ;;
9340
9341    solaris*)
9342      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9343	ld_shlibs=no
9344	cat <<_LT_EOF 1>&2
9345
9346*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9347*** create shared libraries on Solaris systems.  Therefore, libtool
9348*** is disabling shared libraries support.  We urge you to upgrade GNU
9349*** binutils to release 2.9.1 or newer.  Another option is to modify
9350*** your PATH or compiler configuration so that the native linker is
9351*** used, and then restart.
9352
9353_LT_EOF
9354      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9356	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9357      else
9358	ld_shlibs=no
9359      fi
9360      ;;
9361
9362    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9363      case `$LD -v 2>&1` in
9364        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9365	ld_shlibs=no
9366	cat <<_LT_EOF 1>&2
9367
9368*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9369*** reliably create shared libraries on SCO systems.  Therefore, libtool
9370*** is disabling shared libraries support.  We urge you to upgrade GNU
9371*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9372*** your PATH or compiler configuration so that the native linker is
9373*** used, and then restart.
9374
9375_LT_EOF
9376	;;
9377	*)
9378	  # For security reasons, it is highly recommended that you always
9379	  # use absolute paths for naming shared libraries, and exclude the
9380	  # DT_RUNPATH tag from executables and libraries.  But doing so
9381	  # requires that you compile everything twice, which is a pain.
9382	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9384	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9385	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9386	  else
9387	    ld_shlibs=no
9388	  fi
9389	;;
9390      esac
9391      ;;
9392
9393    sunos4*)
9394      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395      wlarc=
9396      hardcode_direct=yes
9397      hardcode_shlibpath_var=no
9398      ;;
9399
9400    *)
9401      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9402	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9403	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9404      else
9405	ld_shlibs=no
9406      fi
9407      ;;
9408    esac
9409
9410    if test no = "$ld_shlibs"; then
9411      runpath_var=
9412      hardcode_libdir_flag_spec=
9413      export_dynamic_flag_spec=
9414      whole_archive_flag_spec=
9415    fi
9416  else
9417    # PORTME fill in a description of your system's linker (not GNU ld)
9418    case $host_os in
9419    aix3*)
9420      allow_undefined_flag=unsupported
9421      always_export_symbols=yes
9422      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'
9423      # Note: this linker hardcodes the directories in LIBPATH if there
9424      # are no directories specified by -L.
9425      hardcode_minus_L=yes
9426      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9427	# Neither direct hardcoding nor static linking is supported with a
9428	# broken collect2.
9429	hardcode_direct=unsupported
9430      fi
9431      ;;
9432
9433    aix[4-9]*)
9434      if test ia64 = "$host_cpu"; then
9435	# On IA64, the linker does run time linking by default, so we don't
9436	# have to do anything special.
9437	aix_use_runtimelinking=no
9438	exp_sym_flag='-Bexport'
9439	no_entry_flag=
9440      else
9441	# If we're using GNU nm, then we don't want the "-C" option.
9442	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9443	# Without the "-l" option, or with the "-B" option, AIX nm treats
9444	# weak defined symbols like other global defined symbols, whereas
9445	# GNU nm marks them as "W".
9446	# While the 'weak' keyword is ignored in the Export File, we need
9447	# it in the Import File for the 'aix-soname' feature, so we have
9448	# to replace the "-B" option with "-P" for AIX nm.
9449	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9450	  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'
9451	else
9452	  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'
9453	fi
9454	aix_use_runtimelinking=no
9455
9456	# Test if we are trying to use run time linking or normal
9457	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9458	# have runtime linking enabled, and use it for executables.
9459	# For shared libraries, we enable/disable runtime linking
9460	# depending on the kind of the shared library created -
9461	# when "with_aix_soname,aix_use_runtimelinking" is:
9462	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9463	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9464	#            lib.a           static archive
9465	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9466	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9467	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9468	#            lib.a(lib.so.V) shared, rtl:no
9469	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9470	#            lib.a           static archive
9471	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9472	  for ld_flag in $LDFLAGS; do
9473	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9474	    aix_use_runtimelinking=yes
9475	    break
9476	  fi
9477	  done
9478	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9479	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9480	    # so we don't have lib.a shared libs to link our executables.
9481	    # We have to force runtime linking in this case.
9482	    aix_use_runtimelinking=yes
9483	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9484	  fi
9485	  ;;
9486	esac
9487
9488	exp_sym_flag='-bexport'
9489	no_entry_flag='-bnoentry'
9490      fi
9491
9492      # When large executables or shared objects are built, AIX ld can
9493      # have problems creating the table of contents.  If linking a library
9494      # or program results in "error TOC overflow" add -mminimal-toc to
9495      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9496      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9497
9498      archive_cmds=''
9499      hardcode_direct=yes
9500      hardcode_direct_absolute=yes
9501      hardcode_libdir_separator=':'
9502      link_all_deplibs=yes
9503      file_list_spec='$wl-f,'
9504      case $with_aix_soname,$aix_use_runtimelinking in
9505      aix,*) ;; # traditional, no import file
9506      svr4,* | *,yes) # use import file
9507	# The Import File defines what to hardcode.
9508	hardcode_direct=no
9509	hardcode_direct_absolute=no
9510	;;
9511      esac
9512
9513      if test yes = "$GCC"; then
9514	case $host_os in aix4.[012]|aix4.[012].*)
9515	# We only want to do this on AIX 4.2 and lower, the check
9516	# below for broken collect2 doesn't work under 4.3+
9517	  collect2name=`$CC -print-prog-name=collect2`
9518	  if test -f "$collect2name" &&
9519	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9520	  then
9521	  # We have reworked collect2
9522	  :
9523	  else
9524	  # We have old collect2
9525	  hardcode_direct=unsupported
9526	  # It fails to find uninstalled libraries when the uninstalled
9527	  # path is not listed in the libpath.  Setting hardcode_minus_L
9528	  # to unsupported forces relinking
9529	  hardcode_minus_L=yes
9530	  hardcode_libdir_flag_spec='-L$libdir'
9531	  hardcode_libdir_separator=
9532	  fi
9533	  ;;
9534	esac
9535	shared_flag='-shared'
9536	if test yes = "$aix_use_runtimelinking"; then
9537	  shared_flag="$shared_flag "'$wl-G'
9538	fi
9539	# Need to ensure runtime linking is disabled for the traditional
9540	# shared library, or the linker may eventually find shared libraries
9541	# /with/ Import File - we do not want to mix them.
9542	shared_flag_aix='-shared'
9543	shared_flag_svr4='-shared $wl-G'
9544      else
9545	# not using gcc
9546	if test ia64 = "$host_cpu"; then
9547	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9548	# chokes on -Wl,-G. The following line is correct:
9549	  shared_flag='-G'
9550	else
9551	  if test yes = "$aix_use_runtimelinking"; then
9552	    shared_flag='$wl-G'
9553	  else
9554	    shared_flag='$wl-bM:SRE'
9555	  fi
9556	  shared_flag_aix='$wl-bM:SRE'
9557	  shared_flag_svr4='$wl-G'
9558	fi
9559      fi
9560
9561      export_dynamic_flag_spec='$wl-bexpall'
9562      # It seems that -bexpall does not export symbols beginning with
9563      # underscore (_), so it is better to generate a list of symbols to export.
9564      always_export_symbols=yes
9565      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9566	# Warning - without using the other runtime loading flags (-brtl),
9567	# -berok will link without error, but may produce a broken library.
9568	allow_undefined_flag='-berok'
9569        # Determine the default libpath from the value encoded in an
9570        # empty executable.
9571        if test set = "${lt_cv_aix_libpath+set}"; then
9572  aix_libpath=$lt_cv_aix_libpath
9573else
9574  if ${lt_cv_aix_libpath_+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579
9580int
9581main ()
9582{
9583
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589
9590  lt_aix_libpath_sed='
9591      /Import File Strings/,/^$/ {
9592	  /^0/ {
9593	      s/^0  *\([^ ]*\) *$/\1/
9594	      p
9595	  }
9596      }'
9597  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9598  # Check for a 64-bit object if we didn't find anything.
9599  if test -z "$lt_cv_aix_libpath_"; then
9600    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601  fi
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604    conftest$ac_exeext conftest.$ac_ext
9605  if test -z "$lt_cv_aix_libpath_"; then
9606    lt_cv_aix_libpath_=/usr/lib:/lib
9607  fi
9608
9609fi
9610
9611  aix_libpath=$lt_cv_aix_libpath_
9612fi
9613
9614        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9615        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
9616      else
9617	if test ia64 = "$host_cpu"; then
9618	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9619	  allow_undefined_flag="-z nodefs"
9620	  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"
9621	else
9622	 # Determine the default libpath from the value encoded in an
9623	 # empty executable.
9624	 if test set = "${lt_cv_aix_libpath+set}"; then
9625  aix_libpath=$lt_cv_aix_libpath
9626else
9627  if ${lt_cv_aix_libpath_+:} false; then :
9628  $as_echo_n "(cached) " >&6
9629else
9630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631/* end confdefs.h.  */
9632
9633int
9634main ()
9635{
9636
9637  ;
9638  return 0;
9639}
9640_ACEOF
9641if ac_fn_c_try_link "$LINENO"; then :
9642
9643  lt_aix_libpath_sed='
9644      /Import File Strings/,/^$/ {
9645	  /^0/ {
9646	      s/^0  *\([^ ]*\) *$/\1/
9647	      p
9648	  }
9649      }'
9650  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651  # Check for a 64-bit object if we didn't find anything.
9652  if test -z "$lt_cv_aix_libpath_"; then
9653    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654  fi
9655fi
9656rm -f core conftest.err conftest.$ac_objext \
9657    conftest$ac_exeext conftest.$ac_ext
9658  if test -z "$lt_cv_aix_libpath_"; then
9659    lt_cv_aix_libpath_=/usr/lib:/lib
9660  fi
9661
9662fi
9663
9664  aix_libpath=$lt_cv_aix_libpath_
9665fi
9666
9667	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9668	  # Warning - without using the other run time loading flags,
9669	  # -berok will link without error, but may produce a broken library.
9670	  no_undefined_flag=' $wl-bernotok'
9671	  allow_undefined_flag=' $wl-berok'
9672	  if test yes = "$with_gnu_ld"; then
9673	    # We only use this code for GNU lds that support --whole-archive.
9674	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9675	  else
9676	    # Exported symbols can be pulled into shared objects from archives
9677	    whole_archive_flag_spec='$convenience'
9678	  fi
9679	  archive_cmds_need_lc=yes
9680	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9681	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9682	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9683	  if test svr4 != "$with_aix_soname"; then
9684	    # This is similar to how AIX traditionally builds its shared libraries.
9685	    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'
9686	  fi
9687	  if test aix != "$with_aix_soname"; then
9688	    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'
9689	  else
9690	    # used by -dlpreopen to get the symbols
9691	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9692	  fi
9693	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9694	fi
9695      fi
9696      ;;
9697
9698    amigaos*)
9699      case $host_cpu in
9700      powerpc)
9701            # see comment about AmigaOS4 .so support
9702            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9703            archive_expsym_cmds=''
9704        ;;
9705      m68k)
9706            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)'
9707            hardcode_libdir_flag_spec='-L$libdir'
9708            hardcode_minus_L=yes
9709        ;;
9710      esac
9711      ;;
9712
9713    bsdi[45]*)
9714      export_dynamic_flag_spec=-rdynamic
9715      ;;
9716
9717    cygwin* | mingw* | pw32* | cegcc*)
9718      # When not using gcc, we currently assume that we are using
9719      # Microsoft Visual C++.
9720      # hardcode_libdir_flag_spec is actually meaningless, as there is
9721      # no search path for DLLs.
9722      case $cc_basename in
9723      cl*)
9724	# Native MSVC
9725	hardcode_libdir_flag_spec=' '
9726	allow_undefined_flag=unsupported
9727	always_export_symbols=yes
9728	file_list_spec='@'
9729	# Tell ltmain to make .lib files, not .a files.
9730	libext=lib
9731	# Tell ltmain to make .dll files, not .so files.
9732	shrext_cmds=.dll
9733	# FIXME: Setting linknames here is a bad hack.
9734	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9735	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9736            cp "$export_symbols" "$output_objdir/$soname.def";
9737            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9738          else
9739            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9740          fi~
9741          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9742          linknames='
9743	# The linker will not automatically build a static lib if we build a DLL.
9744	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9745	enable_shared_with_static_runtimes=yes
9746	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9747	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9748	# Don't use ranlib
9749	old_postinstall_cmds='chmod 644 $oldlib'
9750	postlink_cmds='lt_outputfile="@OUTPUT@"~
9751          lt_tool_outputfile="@TOOL_OUTPUT@"~
9752          case $lt_outputfile in
9753            *.exe|*.EXE) ;;
9754            *)
9755              lt_outputfile=$lt_outputfile.exe
9756              lt_tool_outputfile=$lt_tool_outputfile.exe
9757              ;;
9758          esac~
9759          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9760            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9761            $RM "$lt_outputfile.manifest";
9762          fi'
9763	;;
9764      *)
9765	# Assume MSVC wrapper
9766	hardcode_libdir_flag_spec=' '
9767	allow_undefined_flag=unsupported
9768	# Tell ltmain to make .lib files, not .a files.
9769	libext=lib
9770	# Tell ltmain to make .dll files, not .so files.
9771	shrext_cmds=.dll
9772	# FIXME: Setting linknames here is a bad hack.
9773	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9774	# The linker will automatically build a .lib file if we build a DLL.
9775	old_archive_from_new_cmds='true'
9776	# FIXME: Should let the user specify the lib program.
9777	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9778	enable_shared_with_static_runtimes=yes
9779	;;
9780      esac
9781      ;;
9782
9783    darwin* | rhapsody*)
9784
9785
9786  archive_cmds_need_lc=no
9787  hardcode_direct=no
9788  hardcode_automatic=yes
9789  hardcode_shlibpath_var=unsupported
9790  if test yes = "$lt_cv_ld_force_load"; then
9791    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\"`'
9792
9793  else
9794    whole_archive_flag_spec=''
9795  fi
9796  link_all_deplibs=yes
9797  allow_undefined_flag=$_lt_dar_allow_undefined
9798  case $cc_basename in
9799     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9800     *) _lt_dar_can_shared=$GCC ;;
9801  esac
9802  if test yes = "$_lt_dar_can_shared"; then
9803    output_verbose_link_cmd=func_echo_all
9804    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9805    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9806    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"
9807    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"
9808
9809  else
9810  ld_shlibs=no
9811  fi
9812
9813      ;;
9814
9815    dgux*)
9816      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817      hardcode_libdir_flag_spec='-L$libdir'
9818      hardcode_shlibpath_var=no
9819      ;;
9820
9821    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9822    # support.  Future versions do this automatically, but an explicit c++rt0.o
9823    # does not break anything, and helps significantly (at the cost of a little
9824    # extra space).
9825    freebsd2.2*)
9826      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9827      hardcode_libdir_flag_spec='-R$libdir'
9828      hardcode_direct=yes
9829      hardcode_shlibpath_var=no
9830      ;;
9831
9832    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9833    freebsd2.*)
9834      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9835      hardcode_direct=yes
9836      hardcode_minus_L=yes
9837      hardcode_shlibpath_var=no
9838      ;;
9839
9840    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9841    freebsd* | dragonfly*)
9842      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9843      hardcode_libdir_flag_spec='-R$libdir'
9844      hardcode_direct=yes
9845      hardcode_shlibpath_var=no
9846      ;;
9847
9848    hpux9*)
9849      if test yes = "$GCC"; then
9850	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'
9851      else
9852	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'
9853      fi
9854      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9855      hardcode_libdir_separator=:
9856      hardcode_direct=yes
9857
9858      # hardcode_minus_L: Not really in the search PATH,
9859      # but as the default location of the library.
9860      hardcode_minus_L=yes
9861      export_dynamic_flag_spec='$wl-E'
9862      ;;
9863
9864    hpux10*)
9865      if test yes,no = "$GCC,$with_gnu_ld"; then
9866	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867      else
9868	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9869      fi
9870      if test no = "$with_gnu_ld"; then
9871	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9872	hardcode_libdir_separator=:
9873	hardcode_direct=yes
9874	hardcode_direct_absolute=yes
9875	export_dynamic_flag_spec='$wl-E'
9876	# hardcode_minus_L: Not really in the search PATH,
9877	# but as the default location of the library.
9878	hardcode_minus_L=yes
9879      fi
9880      ;;
9881
9882    hpux11*)
9883      if test yes,no = "$GCC,$with_gnu_ld"; then
9884	case $host_cpu in
9885	hppa*64*)
9886	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9887	  ;;
9888	ia64*)
9889	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9890	  ;;
9891	*)
9892	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893	  ;;
9894	esac
9895      else
9896	case $host_cpu in
9897	hppa*64*)
9898	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9899	  ;;
9900	ia64*)
9901	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9902	  ;;
9903	*)
9904
9905	  # Older versions of the 11.00 compiler do not understand -b yet
9906	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9907	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9908$as_echo_n "checking if $CC understands -b... " >&6; }
9909if ${lt_cv_prog_compiler__b+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  lt_cv_prog_compiler__b=no
9913   save_LDFLAGS=$LDFLAGS
9914   LDFLAGS="$LDFLAGS -b"
9915   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9916   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9917     # The linker can only warn and ignore the option if not recognized
9918     # So say no if there are warnings
9919     if test -s conftest.err; then
9920       # Append any errors to the config.log.
9921       cat conftest.err 1>&5
9922       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9923       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9924       if diff conftest.exp conftest.er2 >/dev/null; then
9925         lt_cv_prog_compiler__b=yes
9926       fi
9927     else
9928       lt_cv_prog_compiler__b=yes
9929     fi
9930   fi
9931   $RM -r conftest*
9932   LDFLAGS=$save_LDFLAGS
9933
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9936$as_echo "$lt_cv_prog_compiler__b" >&6; }
9937
9938if test yes = "$lt_cv_prog_compiler__b"; then
9939    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9940else
9941    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9942fi
9943
9944	  ;;
9945	esac
9946      fi
9947      if test no = "$with_gnu_ld"; then
9948	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9949	hardcode_libdir_separator=:
9950
9951	case $host_cpu in
9952	hppa*64*|ia64*)
9953	  hardcode_direct=no
9954	  hardcode_shlibpath_var=no
9955	  ;;
9956	*)
9957	  hardcode_direct=yes
9958	  hardcode_direct_absolute=yes
9959	  export_dynamic_flag_spec='$wl-E'
9960
9961	  # hardcode_minus_L: Not really in the search PATH,
9962	  # but as the default location of the library.
9963	  hardcode_minus_L=yes
9964	  ;;
9965	esac
9966      fi
9967      ;;
9968
9969    irix5* | irix6* | nonstopux*)
9970      if test yes = "$GCC"; then
9971	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'
9972	# Try to use the -exported_symbol ld option, if it does not
9973	# work, assume that -exports_file does not work either and
9974	# implicitly export all symbols.
9975	# This should be the same for all languages, so no per-tag cache variable.
9976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9977$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9978if ${lt_cv_irix_exported_symbol+:} false; then :
9979  $as_echo_n "(cached) " >&6
9980else
9981  save_LDFLAGS=$LDFLAGS
9982	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9983	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int foo (void) { return 0; }
9986_ACEOF
9987if ac_fn_c_try_link "$LINENO"; then :
9988  lt_cv_irix_exported_symbol=yes
9989else
9990  lt_cv_irix_exported_symbol=no
9991fi
9992rm -f core conftest.err conftest.$ac_objext \
9993    conftest$ac_exeext conftest.$ac_ext
9994           LDFLAGS=$save_LDFLAGS
9995fi
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9997$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9998	if test yes = "$lt_cv_irix_exported_symbol"; then
9999          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'
10000	fi
10001      else
10002	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'
10003	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'
10004      fi
10005      archive_cmds_need_lc='no'
10006      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10007      hardcode_libdir_separator=:
10008      inherit_rpath=yes
10009      link_all_deplibs=yes
10010      ;;
10011
10012    linux*)
10013      case $cc_basename in
10014      tcc*)
10015	# Fabrice Bellard et al's Tiny C Compiler
10016	ld_shlibs=yes
10017	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10018	;;
10019      esac
10020      ;;
10021
10022    netbsd*)
10023      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10024	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10025      else
10026	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10027      fi
10028      hardcode_libdir_flag_spec='-R$libdir'
10029      hardcode_direct=yes
10030      hardcode_shlibpath_var=no
10031      ;;
10032
10033    newsos6)
10034      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035      hardcode_direct=yes
10036      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10037      hardcode_libdir_separator=:
10038      hardcode_shlibpath_var=no
10039      ;;
10040
10041    *nto* | *qnx*)
10042      ;;
10043
10044    openbsd* | bitrig*)
10045      if test -f /usr/libexec/ld.so; then
10046	hardcode_direct=yes
10047	hardcode_shlibpath_var=no
10048	hardcode_direct_absolute=yes
10049	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10050	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10051	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10052	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10053	  export_dynamic_flag_spec='$wl-E'
10054	else
10055	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10056	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10057	fi
10058      else
10059	ld_shlibs=no
10060      fi
10061      ;;
10062
10063    os2*)
10064      hardcode_libdir_flag_spec='-L$libdir'
10065      hardcode_minus_L=yes
10066      allow_undefined_flag=unsupported
10067      shrext_cmds=.dll
10068      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10069	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10070	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10071	$ECHO EXPORTS >> $output_objdir/$libname.def~
10072	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10073	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10074	emximp -o $lib $output_objdir/$libname.def'
10075      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10076	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10077	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10078	$ECHO EXPORTS >> $output_objdir/$libname.def~
10079	prefix_cmds="$SED"~
10080	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10081	  prefix_cmds="$prefix_cmds -e 1d";
10082	fi~
10083	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10084	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10085	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10086	emximp -o $lib $output_objdir/$libname.def'
10087      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10088      enable_shared_with_static_runtimes=yes
10089      ;;
10090
10091    osf3*)
10092      if test yes = "$GCC"; then
10093	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10094	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'
10095      else
10096	allow_undefined_flag=' -expect_unresolved \*'
10097	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'
10098      fi
10099      archive_cmds_need_lc='no'
10100      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10101      hardcode_libdir_separator=:
10102      ;;
10103
10104    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10105      if test yes = "$GCC"; then
10106	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10107	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'
10108	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10109      else
10110	allow_undefined_flag=' -expect_unresolved \*'
10111	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'
10112	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~
10113          $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'
10114
10115	# Both c and cxx compiler support -rpath directly
10116	hardcode_libdir_flag_spec='-rpath $libdir'
10117      fi
10118      archive_cmds_need_lc='no'
10119      hardcode_libdir_separator=:
10120      ;;
10121
10122    solaris*)
10123      no_undefined_flag=' -z defs'
10124      if test yes = "$GCC"; then
10125	wlarc='$wl'
10126	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10127	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128          $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'
10129      else
10130	case `$CC -V 2>&1` in
10131	*"Compilers 5.0"*)
10132	  wlarc=''
10133	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10136	  ;;
10137	*)
10138	  wlarc='$wl'
10139	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10140	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10142	  ;;
10143	esac
10144      fi
10145      hardcode_libdir_flag_spec='-R$libdir'
10146      hardcode_shlibpath_var=no
10147      case $host_os in
10148      solaris2.[0-5] | solaris2.[0-5].*) ;;
10149      *)
10150	# The compiler driver will combine and reorder linker options,
10151	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10152	# but is careful enough not to reorder.
10153	# Supported since Solaris 2.6 (maybe 2.5.1?)
10154	if test yes = "$GCC"; then
10155	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10156	else
10157	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10158	fi
10159	;;
10160      esac
10161      link_all_deplibs=yes
10162      ;;
10163
10164    sunos4*)
10165      if test sequent = "$host_vendor"; then
10166	# Use $CC to link under sequent, because it throws in some extra .o
10167	# files that make .init and .fini sections work.
10168	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10169      else
10170	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10171      fi
10172      hardcode_libdir_flag_spec='-L$libdir'
10173      hardcode_direct=yes
10174      hardcode_minus_L=yes
10175      hardcode_shlibpath_var=no
10176      ;;
10177
10178    sysv4)
10179      case $host_vendor in
10180	sni)
10181	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182	  hardcode_direct=yes # is this really true???
10183	;;
10184	siemens)
10185	  ## LD is ld it makes a PLAMLIB
10186	  ## CC just makes a GrossModule.
10187	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10188	  reload_cmds='$CC -r -o $output$reload_objs'
10189	  hardcode_direct=no
10190        ;;
10191	motorola)
10192	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10194	;;
10195      esac
10196      runpath_var='LD_RUN_PATH'
10197      hardcode_shlibpath_var=no
10198      ;;
10199
10200    sysv4.3*)
10201      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202      hardcode_shlibpath_var=no
10203      export_dynamic_flag_spec='-Bexport'
10204      ;;
10205
10206    sysv4*MP*)
10207      if test -d /usr/nec; then
10208	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209	hardcode_shlibpath_var=no
10210	runpath_var=LD_RUN_PATH
10211	hardcode_runpath_var=yes
10212	ld_shlibs=yes
10213      fi
10214      ;;
10215
10216    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10217      no_undefined_flag='$wl-z,text'
10218      archive_cmds_need_lc=no
10219      hardcode_shlibpath_var=no
10220      runpath_var='LD_RUN_PATH'
10221
10222      if test yes = "$GCC"; then
10223	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10224	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10225      else
10226	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10227	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10228      fi
10229      ;;
10230
10231    sysv5* | sco3.2v5* | sco5v6*)
10232      # Note: We CANNOT use -z defs as we might desire, because we do not
10233      # link with -lc, and that would cause any symbols used from libc to
10234      # always be unresolved, which means just about no library would
10235      # ever link correctly.  If we're not using GNU ld we use -z text
10236      # though, which does catch some bad symbols but isn't as heavy-handed
10237      # as -z defs.
10238      no_undefined_flag='$wl-z,text'
10239      allow_undefined_flag='$wl-z,nodefs'
10240      archive_cmds_need_lc=no
10241      hardcode_shlibpath_var=no
10242      hardcode_libdir_flag_spec='$wl-R,$libdir'
10243      hardcode_libdir_separator=':'
10244      link_all_deplibs=yes
10245      export_dynamic_flag_spec='$wl-Bexport'
10246      runpath_var='LD_RUN_PATH'
10247
10248      if test yes = "$GCC"; then
10249	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251      else
10252	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10253	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254      fi
10255      ;;
10256
10257    uts4*)
10258      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259      hardcode_libdir_flag_spec='-L$libdir'
10260      hardcode_shlibpath_var=no
10261      ;;
10262
10263    *)
10264      ld_shlibs=no
10265      ;;
10266    esac
10267
10268    if test sni = "$host_vendor"; then
10269      case $host in
10270      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10271	export_dynamic_flag_spec='$wl-Blargedynsym'
10272	;;
10273      esac
10274    fi
10275  fi
10276
10277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10278$as_echo "$ld_shlibs" >&6; }
10279test no = "$ld_shlibs" && can_build_shared=no
10280
10281with_gnu_ld=$with_gnu_ld
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297#
10298# Do we need to explicitly link libc?
10299#
10300case "x$archive_cmds_need_lc" in
10301x|xyes)
10302  # Assume -lc should be added
10303  archive_cmds_need_lc=yes
10304
10305  if test yes,yes = "$GCC,$enable_shared"; then
10306    case $archive_cmds in
10307    *'~'*)
10308      # FIXME: we may have to deal with multi-command sequences.
10309      ;;
10310    '$CC '*)
10311      # Test whether the compiler implicitly links with -lc since on some
10312      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10313      # to ld, don't add -lc before -lgcc.
10314      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10315$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10316if ${lt_cv_archive_cmds_need_lc+:} false; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  $RM conftest*
10320	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10321
10322	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10323  (eval $ac_compile) 2>&5
10324  ac_status=$?
10325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10326  test $ac_status = 0; } 2>conftest.err; then
10327	  soname=conftest
10328	  lib=conftest
10329	  libobjs=conftest.$ac_objext
10330	  deplibs=
10331	  wl=$lt_prog_compiler_wl
10332	  pic_flag=$lt_prog_compiler_pic
10333	  compiler_flags=-v
10334	  linker_flags=-v
10335	  verstring=
10336	  output_objdir=.
10337	  libname=conftest
10338	  lt_save_allow_undefined_flag=$allow_undefined_flag
10339	  allow_undefined_flag=
10340	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10341  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10342  ac_status=$?
10343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344  test $ac_status = 0; }
10345	  then
10346	    lt_cv_archive_cmds_need_lc=no
10347	  else
10348	    lt_cv_archive_cmds_need_lc=yes
10349	  fi
10350	  allow_undefined_flag=$lt_save_allow_undefined_flag
10351	else
10352	  cat conftest.err 1>&5
10353	fi
10354	$RM conftest*
10355
10356fi
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10358$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10359      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10360      ;;
10361    esac
10362  fi
10363  ;;
10364esac
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10518$as_echo_n "checking dynamic linker characteristics... " >&6; }
10519
10520if test yes = "$GCC"; then
10521  case $host_os in
10522    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10523    *) lt_awk_arg='/^libraries:/' ;;
10524  esac
10525  case $host_os in
10526    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10527    *) lt_sed_strip_eq='s|=/|/|g' ;;
10528  esac
10529  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10530  case $lt_search_path_spec in
10531  *\;*)
10532    # if the path contains ";" then we assume it to be the separator
10533    # otherwise default to the standard path separator (i.e. ":") - it is
10534    # assumed that no part of a normal pathname contains ";" but that should
10535    # okay in the real world where ";" in dirpaths is itself problematic.
10536    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10537    ;;
10538  *)
10539    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10540    ;;
10541  esac
10542  # Ok, now we have the path, separated by spaces, we can step through it
10543  # and add multilib dir if necessary...
10544  lt_tmp_lt_search_path_spec=
10545  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10546  # ...but if some path component already ends with the multilib dir we assume
10547  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10548  case "$lt_multi_os_dir; $lt_search_path_spec " in
10549  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10550    lt_multi_os_dir=
10551    ;;
10552  esac
10553  for lt_sys_path in $lt_search_path_spec; do
10554    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10555      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10556    elif test -n "$lt_multi_os_dir"; then
10557      test -d "$lt_sys_path" && \
10558	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10559    fi
10560  done
10561  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10562BEGIN {RS = " "; FS = "/|\n";} {
10563  lt_foo = "";
10564  lt_count = 0;
10565  for (lt_i = NF; lt_i > 0; lt_i--) {
10566    if ($lt_i != "" && $lt_i != ".") {
10567      if ($lt_i == "..") {
10568        lt_count++;
10569      } else {
10570        if (lt_count == 0) {
10571          lt_foo = "/" $lt_i lt_foo;
10572        } else {
10573          lt_count--;
10574        }
10575      }
10576    }
10577  }
10578  if (lt_foo != "") { lt_freq[lt_foo]++; }
10579  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10580}'`
10581  # AWK program above erroneously prepends '/' to C:/dos/paths
10582  # for these hosts.
10583  case $host_os in
10584    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10585      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10586  esac
10587  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10588else
10589  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10590fi
10591library_names_spec=
10592libname_spec='lib$name'
10593soname_spec=
10594shrext_cmds=.so
10595postinstall_cmds=
10596postuninstall_cmds=
10597finish_cmds=
10598finish_eval=
10599shlibpath_var=
10600shlibpath_overrides_runpath=unknown
10601version_type=none
10602dynamic_linker="$host_os ld.so"
10603sys_lib_dlsearch_path_spec="/lib /usr/lib"
10604need_lib_prefix=unknown
10605hardcode_into_libs=no
10606
10607# when you set need_version to no, make sure it does not cause -set_version
10608# flags to be left without arguments
10609need_version=unknown
10610
10611
10612
10613case $host_os in
10614aix3*)
10615  version_type=linux # correct to gnu/linux during the next big refactor
10616  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10617  shlibpath_var=LIBPATH
10618
10619  # AIX 3 has no versioning support, so we append a major version to the name.
10620  soname_spec='$libname$release$shared_ext$major'
10621  ;;
10622
10623aix[4-9]*)
10624  version_type=linux # correct to gnu/linux during the next big refactor
10625  need_lib_prefix=no
10626  need_version=no
10627  hardcode_into_libs=yes
10628  if test ia64 = "$host_cpu"; then
10629    # AIX 5 supports IA64
10630    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10631    shlibpath_var=LD_LIBRARY_PATH
10632  else
10633    # With GCC up to 2.95.x, collect2 would create an import file
10634    # for dependence libraries.  The import file would start with
10635    # the line '#! .'.  This would cause the generated library to
10636    # depend on '.', always an invalid library.  This was fixed in
10637    # development snapshots of GCC prior to 3.0.
10638    case $host_os in
10639      aix4 | aix4.[01] | aix4.[01].*)
10640      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10641	   echo ' yes '
10642	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10643	:
10644      else
10645	can_build_shared=no
10646      fi
10647      ;;
10648    esac
10649    # Using Import Files as archive members, it is possible to support
10650    # filename-based versioning of shared library archives on AIX. While
10651    # this would work for both with and without runtime linking, it will
10652    # prevent static linking of such archives. So we do filename-based
10653    # shared library versioning with .so extension only, which is used
10654    # when both runtime linking and shared linking is enabled.
10655    # Unfortunately, runtime linking may impact performance, so we do
10656    # not want this to be the default eventually. Also, we use the
10657    # versioned .so libs for executables only if there is the -brtl
10658    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10659    # To allow for filename-based versioning support, we need to create
10660    # libNAME.so.V as an archive file, containing:
10661    # *) an Import File, referring to the versioned filename of the
10662    #    archive as well as the shared archive member, telling the
10663    #    bitwidth (32 or 64) of that shared object, and providing the
10664    #    list of exported symbols of that shared object, eventually
10665    #    decorated with the 'weak' keyword
10666    # *) the shared object with the F_LOADONLY flag set, to really avoid
10667    #    it being seen by the linker.
10668    # At run time we better use the real file rather than another symlink,
10669    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10670
10671    case $with_aix_soname,$aix_use_runtimelinking in
10672    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10673    # soname into executable. Probably we can add versioning support to
10674    # collect2, so additional links can be useful in future.
10675    aix,yes) # traditional libtool
10676      dynamic_linker='AIX unversionable lib.so'
10677      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10678      # instead of lib<name>.a to let people know that these are not
10679      # typical AIX shared libraries.
10680      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10681      ;;
10682    aix,no) # traditional AIX only
10683      dynamic_linker='AIX lib.a(lib.so.V)'
10684      # We preserve .a as extension for shared libraries through AIX4.2
10685      # and later when we are not doing run time linking.
10686      library_names_spec='$libname$release.a $libname.a'
10687      soname_spec='$libname$release$shared_ext$major'
10688      ;;
10689    svr4,*) # full svr4 only
10690      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10691      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10692      # We do not specify a path in Import Files, so LIBPATH fires.
10693      shlibpath_overrides_runpath=yes
10694      ;;
10695    *,yes) # both, prefer svr4
10696      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10697      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10698      # unpreferred sharedlib libNAME.a needs extra handling
10699      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"'
10700      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"'
10701      # We do not specify a path in Import Files, so LIBPATH fires.
10702      shlibpath_overrides_runpath=yes
10703      ;;
10704    *,no) # both, prefer aix
10705      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10706      library_names_spec='$libname$release.a $libname.a'
10707      soname_spec='$libname$release$shared_ext$major'
10708      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10709      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)'
10710      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"'
10711      ;;
10712    esac
10713    shlibpath_var=LIBPATH
10714  fi
10715  ;;
10716
10717amigaos*)
10718  case $host_cpu in
10719  powerpc)
10720    # Since July 2007 AmigaOS4 officially supports .so libraries.
10721    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10722    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10723    ;;
10724  m68k)
10725    library_names_spec='$libname.ixlibrary $libname.a'
10726    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10727    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'
10728    ;;
10729  esac
10730  ;;
10731
10732beos*)
10733  library_names_spec='$libname$shared_ext'
10734  dynamic_linker="$host_os ld.so"
10735  shlibpath_var=LIBRARY_PATH
10736  ;;
10737
10738bsdi[45]*)
10739  version_type=linux # correct to gnu/linux during the next big refactor
10740  need_version=no
10741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10742  soname_spec='$libname$release$shared_ext$major'
10743  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10744  shlibpath_var=LD_LIBRARY_PATH
10745  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10746  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10747  # the default ld.so.conf also contains /usr/contrib/lib and
10748  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10749  # libtool to hard-code these into programs
10750  ;;
10751
10752cygwin* | mingw* | pw32* | cegcc*)
10753  version_type=windows
10754  shrext_cmds=.dll
10755  need_version=no
10756  need_lib_prefix=no
10757
10758  case $GCC,$cc_basename in
10759  yes,*)
10760    # gcc
10761    library_names_spec='$libname.dll.a'
10762    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10763    postinstall_cmds='base_file=`basename \$file`~
10764      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10765      dldir=$destdir/`dirname \$dlpath`~
10766      test -d \$dldir || mkdir -p \$dldir~
10767      $install_prog $dir/$dlname \$dldir/$dlname~
10768      chmod a+x \$dldir/$dlname~
10769      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10770        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10771      fi'
10772    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10773      dlpath=$dir/\$dldll~
10774       $RM \$dlpath'
10775    shlibpath_overrides_runpath=yes
10776
10777    case $host_os in
10778    cygwin*)
10779      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10780      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10781
10782      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10783      ;;
10784    mingw* | cegcc*)
10785      # MinGW DLLs use traditional 'lib' prefix
10786      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10787      ;;
10788    pw32*)
10789      # pw32 DLLs use 'pw' prefix rather than 'lib'
10790      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10791      ;;
10792    esac
10793    dynamic_linker='Win32 ld.exe'
10794    ;;
10795
10796  *,cl*)
10797    # Native MSVC
10798    libname_spec='$name'
10799    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10800    library_names_spec='$libname.dll.lib'
10801
10802    case $build_os in
10803    mingw*)
10804      sys_lib_search_path_spec=
10805      lt_save_ifs=$IFS
10806      IFS=';'
10807      for lt_path in $LIB
10808      do
10809        IFS=$lt_save_ifs
10810        # Let DOS variable expansion print the short 8.3 style file name.
10811        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10812        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10813      done
10814      IFS=$lt_save_ifs
10815      # Convert to MSYS style.
10816      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10817      ;;
10818    cygwin*)
10819      # Convert to unix form, then to dos form, then back to unix form
10820      # but this time dos style (no spaces!) so that the unix form looks
10821      # like /cygdrive/c/PROGRA~1:/cygdr...
10822      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10823      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10824      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10825      ;;
10826    *)
10827      sys_lib_search_path_spec=$LIB
10828      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10829        # It is most probably a Windows format PATH.
10830        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10831      else
10832        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10833      fi
10834      # FIXME: find the short name or the path components, as spaces are
10835      # common. (e.g. "Program Files" -> "PROGRA~1")
10836      ;;
10837    esac
10838
10839    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10840    postinstall_cmds='base_file=`basename \$file`~
10841      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10842      dldir=$destdir/`dirname \$dlpath`~
10843      test -d \$dldir || mkdir -p \$dldir~
10844      $install_prog $dir/$dlname \$dldir/$dlname'
10845    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10846      dlpath=$dir/\$dldll~
10847       $RM \$dlpath'
10848    shlibpath_overrides_runpath=yes
10849    dynamic_linker='Win32 link.exe'
10850    ;;
10851
10852  *)
10853    # Assume MSVC wrapper
10854    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10855    dynamic_linker='Win32 ld.exe'
10856    ;;
10857  esac
10858  # FIXME: first we should search . and the directory the executable is in
10859  shlibpath_var=PATH
10860  ;;
10861
10862darwin* | rhapsody*)
10863  dynamic_linker="$host_os dyld"
10864  version_type=darwin
10865  need_lib_prefix=no
10866  need_version=no
10867  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10868  soname_spec='$libname$release$major$shared_ext'
10869  shlibpath_overrides_runpath=yes
10870  shlibpath_var=DYLD_LIBRARY_PATH
10871  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10872
10873  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10874  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10875  ;;
10876
10877dgux*)
10878  version_type=linux # correct to gnu/linux during the next big refactor
10879  need_lib_prefix=no
10880  need_version=no
10881  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10882  soname_spec='$libname$release$shared_ext$major'
10883  shlibpath_var=LD_LIBRARY_PATH
10884  ;;
10885
10886freebsd* | dragonfly*)
10887  # DragonFly does not have aout.  When/if they implement a new
10888  # versioning mechanism, adjust this.
10889  if test -x /usr/bin/objformat; then
10890    objformat=`/usr/bin/objformat`
10891  else
10892    case $host_os in
10893    freebsd[23].*) objformat=aout ;;
10894    *) objformat=elf ;;
10895    esac
10896  fi
10897  version_type=freebsd-$objformat
10898  case $version_type in
10899    freebsd-elf*)
10900      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901      soname_spec='$libname$release$shared_ext$major'
10902      need_version=no
10903      need_lib_prefix=no
10904      ;;
10905    freebsd-*)
10906      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10907      need_version=yes
10908      ;;
10909  esac
10910  shlibpath_var=LD_LIBRARY_PATH
10911  case $host_os in
10912  freebsd2.*)
10913    shlibpath_overrides_runpath=yes
10914    ;;
10915  freebsd3.[01]* | freebsdelf3.[01]*)
10916    shlibpath_overrides_runpath=yes
10917    hardcode_into_libs=yes
10918    ;;
10919  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10920  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10921    shlibpath_overrides_runpath=no
10922    hardcode_into_libs=yes
10923    ;;
10924  *) # from 4.6 on, and DragonFly
10925    shlibpath_overrides_runpath=yes
10926    hardcode_into_libs=yes
10927    ;;
10928  esac
10929  ;;
10930
10931haiku*)
10932  version_type=linux # correct to gnu/linux during the next big refactor
10933  need_lib_prefix=no
10934  need_version=no
10935  dynamic_linker="$host_os runtime_loader"
10936  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937  soname_spec='$libname$release$shared_ext$major'
10938  shlibpath_var=LIBRARY_PATH
10939  shlibpath_overrides_runpath=no
10940  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10941  hardcode_into_libs=yes
10942  ;;
10943
10944hpux9* | hpux10* | hpux11*)
10945  # Give a soname corresponding to the major version so that dld.sl refuses to
10946  # link against other versions.
10947  version_type=sunos
10948  need_lib_prefix=no
10949  need_version=no
10950  case $host_cpu in
10951  ia64*)
10952    shrext_cmds='.so'
10953    hardcode_into_libs=yes
10954    dynamic_linker="$host_os dld.so"
10955    shlibpath_var=LD_LIBRARY_PATH
10956    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10958    soname_spec='$libname$release$shared_ext$major'
10959    if test 32 = "$HPUX_IA64_MODE"; then
10960      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10961      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10962    else
10963      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10964      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10965    fi
10966    ;;
10967  hppa*64*)
10968    shrext_cmds='.sl'
10969    hardcode_into_libs=yes
10970    dynamic_linker="$host_os dld.sl"
10971    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10972    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10973    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10974    soname_spec='$libname$release$shared_ext$major'
10975    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10976    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10977    ;;
10978  *)
10979    shrext_cmds='.sl'
10980    dynamic_linker="$host_os dld.sl"
10981    shlibpath_var=SHLIB_PATH
10982    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10983    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10984    soname_spec='$libname$release$shared_ext$major'
10985    ;;
10986  esac
10987  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10988  postinstall_cmds='chmod 555 $lib'
10989  # or fails outright, so override atomically:
10990  install_override_mode=555
10991  ;;
10992
10993interix[3-9]*)
10994  version_type=linux # correct to gnu/linux during the next big refactor
10995  need_lib_prefix=no
10996  need_version=no
10997  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10998  soname_spec='$libname$release$shared_ext$major'
10999  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11000  shlibpath_var=LD_LIBRARY_PATH
11001  shlibpath_overrides_runpath=no
11002  hardcode_into_libs=yes
11003  ;;
11004
11005irix5* | irix6* | nonstopux*)
11006  case $host_os in
11007    nonstopux*) version_type=nonstopux ;;
11008    *)
11009	if test yes = "$lt_cv_prog_gnu_ld"; then
11010		version_type=linux # correct to gnu/linux during the next big refactor
11011	else
11012		version_type=irix
11013	fi ;;
11014  esac
11015  need_lib_prefix=no
11016  need_version=no
11017  soname_spec='$libname$release$shared_ext$major'
11018  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11019  case $host_os in
11020  irix5* | nonstopux*)
11021    libsuff= shlibsuff=
11022    ;;
11023  *)
11024    case $LD in # libtool.m4 will add one of these switches to LD
11025    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11026      libsuff= shlibsuff= libmagic=32-bit;;
11027    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11028      libsuff=32 shlibsuff=N32 libmagic=N32;;
11029    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11030      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11031    *) libsuff= shlibsuff= libmagic=never-match;;
11032    esac
11033    ;;
11034  esac
11035  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11036  shlibpath_overrides_runpath=no
11037  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11038  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11039  hardcode_into_libs=yes
11040  ;;
11041
11042# No shared lib support for Linux oldld, aout, or coff.
11043linux*oldld* | linux*aout* | linux*coff*)
11044  dynamic_linker=no
11045  ;;
11046
11047linux*android*)
11048  version_type=none # Android doesn't support versioned libraries.
11049  need_lib_prefix=no
11050  need_version=no
11051  library_names_spec='$libname$release$shared_ext'
11052  soname_spec='$libname$release$shared_ext'
11053  finish_cmds=
11054  shlibpath_var=LD_LIBRARY_PATH
11055  shlibpath_overrides_runpath=yes
11056
11057  # This implies no fast_install, which is unacceptable.
11058  # Some rework will be needed to allow for fast_install
11059  # before this can be enabled.
11060  hardcode_into_libs=yes
11061
11062  dynamic_linker='Android linker'
11063  # Don't embed -rpath directories since the linker doesn't support them.
11064  hardcode_libdir_flag_spec='-L$libdir'
11065  ;;
11066
11067# This must be glibc/ELF.
11068linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11069  version_type=linux # correct to gnu/linux during the next big refactor
11070  need_lib_prefix=no
11071  need_version=no
11072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11073  soname_spec='$libname$release$shared_ext$major'
11074  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11075  shlibpath_var=LD_LIBRARY_PATH
11076  shlibpath_overrides_runpath=no
11077
11078  # Some binutils ld are patched to set DT_RUNPATH
11079  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  lt_cv_shlibpath_overrides_runpath=no
11083    save_LDFLAGS=$LDFLAGS
11084    save_libdir=$libdir
11085    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11086	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088/* end confdefs.h.  */
11089
11090int
11091main ()
11092{
11093
11094  ;
11095  return 0;
11096}
11097_ACEOF
11098if ac_fn_c_try_link "$LINENO"; then :
11099  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11100  lt_cv_shlibpath_overrides_runpath=yes
11101fi
11102fi
11103rm -f core conftest.err conftest.$ac_objext \
11104    conftest$ac_exeext conftest.$ac_ext
11105    LDFLAGS=$save_LDFLAGS
11106    libdir=$save_libdir
11107
11108fi
11109
11110  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11111
11112  # This implies no fast_install, which is unacceptable.
11113  # Some rework will be needed to allow for fast_install
11114  # before this can be enabled.
11115  hardcode_into_libs=yes
11116
11117  # Ideally, we could use ldconfig to report *all* directores which are
11118  # searched for libraries, however this is still not possible.  Aside from not
11119  # being certain /sbin/ldconfig is available, command
11120  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11121  # even though it is searched at run-time.  Try to do the best guess by
11122  # appending ld.so.conf contents (and includes) to the search path.
11123  if test -f /etc/ld.so.conf; then
11124    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' ' '`
11125    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11126  fi
11127
11128  # We used to test for /lib/ld.so.1 and disable shared libraries on
11129  # powerpc, because MkLinux only supported shared libraries with the
11130  # GNU dynamic linker.  Since this was broken with cross compilers,
11131  # most powerpc-linux boxes support dynamic linking these days and
11132  # people can always --disable-shared, the test was removed, and we
11133  # assume the GNU/Linux dynamic linker is in use.
11134  dynamic_linker='GNU/Linux ld.so'
11135  ;;
11136
11137netbsd*)
11138  version_type=sunos
11139  need_lib_prefix=no
11140  need_version=no
11141  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11142    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11143    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11144    dynamic_linker='NetBSD (a.out) ld.so'
11145  else
11146    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147    soname_spec='$libname$release$shared_ext$major'
11148    dynamic_linker='NetBSD ld.elf_so'
11149  fi
11150  shlibpath_var=LD_LIBRARY_PATH
11151  shlibpath_overrides_runpath=yes
11152  hardcode_into_libs=yes
11153  ;;
11154
11155newsos6)
11156  version_type=linux # correct to gnu/linux during the next big refactor
11157  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158  shlibpath_var=LD_LIBRARY_PATH
11159  shlibpath_overrides_runpath=yes
11160  ;;
11161
11162*nto* | *qnx*)
11163  version_type=qnx
11164  need_lib_prefix=no
11165  need_version=no
11166  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11167  soname_spec='$libname$release$shared_ext$major'
11168  shlibpath_var=LD_LIBRARY_PATH
11169  shlibpath_overrides_runpath=no
11170  hardcode_into_libs=yes
11171  dynamic_linker='ldqnx.so'
11172  ;;
11173
11174openbsd* | bitrig*)
11175  version_type=sunos
11176  sys_lib_dlsearch_path_spec=/usr/lib
11177  need_lib_prefix=no
11178  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11179    need_version=no
11180  else
11181    need_version=yes
11182  fi
11183  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11184  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11185  shlibpath_var=LD_LIBRARY_PATH
11186  shlibpath_overrides_runpath=yes
11187  ;;
11188
11189os2*)
11190  libname_spec='$name'
11191  version_type=windows
11192  shrext_cmds=.dll
11193  need_version=no
11194  need_lib_prefix=no
11195  # OS/2 can only load a DLL with a base name of 8 characters or less.
11196  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11197    v=$($ECHO $release$versuffix | tr -d .-);
11198    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11199    $ECHO $n$v`$shared_ext'
11200  library_names_spec='${libname}_dll.$libext'
11201  dynamic_linker='OS/2 ld.exe'
11202  shlibpath_var=BEGINLIBPATH
11203  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11204  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11205  postinstall_cmds='base_file=`basename \$file`~
11206    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11207    dldir=$destdir/`dirname \$dlpath`~
11208    test -d \$dldir || mkdir -p \$dldir~
11209    $install_prog $dir/$dlname \$dldir/$dlname~
11210    chmod a+x \$dldir/$dlname~
11211    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11212      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11213    fi'
11214  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11215    dlpath=$dir/\$dldll~
11216    $RM \$dlpath'
11217  ;;
11218
11219osf3* | osf4* | osf5*)
11220  version_type=osf
11221  need_lib_prefix=no
11222  need_version=no
11223  soname_spec='$libname$release$shared_ext$major'
11224  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225  shlibpath_var=LD_LIBRARY_PATH
11226  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11227  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11228  ;;
11229
11230rdos*)
11231  dynamic_linker=no
11232  ;;
11233
11234solaris*)
11235  version_type=linux # correct to gnu/linux during the next big refactor
11236  need_lib_prefix=no
11237  need_version=no
11238  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11239  soname_spec='$libname$release$shared_ext$major'
11240  shlibpath_var=LD_LIBRARY_PATH
11241  shlibpath_overrides_runpath=yes
11242  hardcode_into_libs=yes
11243  # ldd complains unless libraries are executable
11244  postinstall_cmds='chmod +x $lib'
11245  ;;
11246
11247sunos4*)
11248  version_type=sunos
11249  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11250  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11251  shlibpath_var=LD_LIBRARY_PATH
11252  shlibpath_overrides_runpath=yes
11253  if test yes = "$with_gnu_ld"; then
11254    need_lib_prefix=no
11255  fi
11256  need_version=yes
11257  ;;
11258
11259sysv4 | sysv4.3*)
11260  version_type=linux # correct to gnu/linux during the next big refactor
11261  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262  soname_spec='$libname$release$shared_ext$major'
11263  shlibpath_var=LD_LIBRARY_PATH
11264  case $host_vendor in
11265    sni)
11266      shlibpath_overrides_runpath=no
11267      need_lib_prefix=no
11268      runpath_var=LD_RUN_PATH
11269      ;;
11270    siemens)
11271      need_lib_prefix=no
11272      ;;
11273    motorola)
11274      need_lib_prefix=no
11275      need_version=no
11276      shlibpath_overrides_runpath=no
11277      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11278      ;;
11279  esac
11280  ;;
11281
11282sysv4*MP*)
11283  if test -d /usr/nec; then
11284    version_type=linux # correct to gnu/linux during the next big refactor
11285    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11286    soname_spec='$libname$shared_ext.$major'
11287    shlibpath_var=LD_LIBRARY_PATH
11288  fi
11289  ;;
11290
11291sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11292  version_type=sco
11293  need_lib_prefix=no
11294  need_version=no
11295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11296  soname_spec='$libname$release$shared_ext$major'
11297  shlibpath_var=LD_LIBRARY_PATH
11298  shlibpath_overrides_runpath=yes
11299  hardcode_into_libs=yes
11300  if test yes = "$with_gnu_ld"; then
11301    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11302  else
11303    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11304    case $host_os in
11305      sco3.2v5*)
11306        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11307	;;
11308    esac
11309  fi
11310  sys_lib_dlsearch_path_spec='/usr/lib'
11311  ;;
11312
11313tpf*)
11314  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11315  version_type=linux # correct to gnu/linux during the next big refactor
11316  need_lib_prefix=no
11317  need_version=no
11318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11319  shlibpath_var=LD_LIBRARY_PATH
11320  shlibpath_overrides_runpath=no
11321  hardcode_into_libs=yes
11322  ;;
11323
11324uts4*)
11325  version_type=linux # correct to gnu/linux during the next big refactor
11326  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11327  soname_spec='$libname$release$shared_ext$major'
11328  shlibpath_var=LD_LIBRARY_PATH
11329  ;;
11330
11331*)
11332  dynamic_linker=no
11333  ;;
11334esac
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11336$as_echo "$dynamic_linker" >&6; }
11337test no = "$dynamic_linker" && can_build_shared=no
11338
11339variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11340if test yes = "$GCC"; then
11341  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11342fi
11343
11344if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11345  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11346fi
11347
11348if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11349  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11350fi
11351
11352# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11353configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11354
11355# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11356func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11357
11358# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11359configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11458$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11459hardcode_action=
11460if test -n "$hardcode_libdir_flag_spec" ||
11461   test -n "$runpath_var" ||
11462   test yes = "$hardcode_automatic"; then
11463
11464  # We can hardcode non-existent directories.
11465  if test no != "$hardcode_direct" &&
11466     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11467     # have to relink, otherwise we might link with an installed library
11468     # when we should be linking with a yet-to-be-installed one
11469     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11470     test no != "$hardcode_minus_L"; then
11471    # Linking always hardcodes the temporary library directory.
11472    hardcode_action=relink
11473  else
11474    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11475    hardcode_action=immediate
11476  fi
11477else
11478  # We cannot hardcode anything, or else we can only hardcode existing
11479  # directories.
11480  hardcode_action=unsupported
11481fi
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11483$as_echo "$hardcode_action" >&6; }
11484
11485if test relink = "$hardcode_action" ||
11486   test yes = "$inherit_rpath"; then
11487  # Fast installation is not supported
11488  enable_fast_install=no
11489elif test yes = "$shlibpath_overrides_runpath" ||
11490     test no = "$enable_shared"; then
11491  # Fast installation is not necessary
11492  enable_fast_install=needless
11493fi
11494
11495
11496
11497
11498
11499
11500  if test yes != "$enable_dlopen"; then
11501  enable_dlopen=unknown
11502  enable_dlopen_self=unknown
11503  enable_dlopen_self_static=unknown
11504else
11505  lt_cv_dlopen=no
11506  lt_cv_dlopen_libs=
11507
11508  case $host_os in
11509  beos*)
11510    lt_cv_dlopen=load_add_on
11511    lt_cv_dlopen_libs=
11512    lt_cv_dlopen_self=yes
11513    ;;
11514
11515  mingw* | pw32* | cegcc*)
11516    lt_cv_dlopen=LoadLibrary
11517    lt_cv_dlopen_libs=
11518    ;;
11519
11520  cygwin*)
11521    lt_cv_dlopen=dlopen
11522    lt_cv_dlopen_libs=
11523    ;;
11524
11525  darwin*)
11526    # if libdl is installed we need to link against it
11527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11528$as_echo_n "checking for dlopen in -ldl... " >&6; }
11529if ${ac_cv_lib_dl_dlopen+:} false; then :
11530  $as_echo_n "(cached) " >&6
11531else
11532  ac_check_lib_save_LIBS=$LIBS
11533LIBS="-ldl  $LIBS"
11534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h.  */
11536
11537/* Override any GCC internal prototype to avoid an error.
11538   Use char because int might match the return type of a GCC
11539   builtin and then its argument prototype would still apply.  */
11540#ifdef __cplusplus
11541extern "C"
11542#endif
11543char dlopen ();
11544int
11545main ()
11546{
11547return dlopen ();
11548  ;
11549  return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_link "$LINENO"; then :
11553  ac_cv_lib_dl_dlopen=yes
11554else
11555  ac_cv_lib_dl_dlopen=no
11556fi
11557rm -f core conftest.err conftest.$ac_objext \
11558    conftest$ac_exeext conftest.$ac_ext
11559LIBS=$ac_check_lib_save_LIBS
11560fi
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11562$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11563if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11564  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11565else
11566
11567    lt_cv_dlopen=dyld
11568    lt_cv_dlopen_libs=
11569    lt_cv_dlopen_self=yes
11570
11571fi
11572
11573    ;;
11574
11575  tpf*)
11576    # Don't try to run any link tests for TPF.  We know it's impossible
11577    # because TPF is a cross-compiler, and we know how we open DSOs.
11578    lt_cv_dlopen=dlopen
11579    lt_cv_dlopen_libs=
11580    lt_cv_dlopen_self=no
11581    ;;
11582
11583  *)
11584    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11585if test "x$ac_cv_func_shl_load" = xyes; then :
11586  lt_cv_dlopen=shl_load
11587else
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11589$as_echo_n "checking for shl_load in -ldld... " >&6; }
11590if ${ac_cv_lib_dld_shl_load+:} false; then :
11591  $as_echo_n "(cached) " >&6
11592else
11593  ac_check_lib_save_LIBS=$LIBS
11594LIBS="-ldld  $LIBS"
11595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596/* end confdefs.h.  */
11597
11598/* Override any GCC internal prototype to avoid an error.
11599   Use char because int might match the return type of a GCC
11600   builtin and then its argument prototype would still apply.  */
11601#ifdef __cplusplus
11602extern "C"
11603#endif
11604char shl_load ();
11605int
11606main ()
11607{
11608return shl_load ();
11609  ;
11610  return 0;
11611}
11612_ACEOF
11613if ac_fn_c_try_link "$LINENO"; then :
11614  ac_cv_lib_dld_shl_load=yes
11615else
11616  ac_cv_lib_dld_shl_load=no
11617fi
11618rm -f core conftest.err conftest.$ac_objext \
11619    conftest$ac_exeext conftest.$ac_ext
11620LIBS=$ac_check_lib_save_LIBS
11621fi
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11623$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11624if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11625  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11626else
11627  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11628if test "x$ac_cv_func_dlopen" = xyes; then :
11629  lt_cv_dlopen=dlopen
11630else
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11632$as_echo_n "checking for dlopen in -ldl... " >&6; }
11633if ${ac_cv_lib_dl_dlopen+:} false; then :
11634  $as_echo_n "(cached) " >&6
11635else
11636  ac_check_lib_save_LIBS=$LIBS
11637LIBS="-ldl  $LIBS"
11638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h.  */
11640
11641/* Override any GCC internal prototype to avoid an error.
11642   Use char because int might match the return type of a GCC
11643   builtin and then its argument prototype would still apply.  */
11644#ifdef __cplusplus
11645extern "C"
11646#endif
11647char dlopen ();
11648int
11649main ()
11650{
11651return dlopen ();
11652  ;
11653  return 0;
11654}
11655_ACEOF
11656if ac_fn_c_try_link "$LINENO"; then :
11657  ac_cv_lib_dl_dlopen=yes
11658else
11659  ac_cv_lib_dl_dlopen=no
11660fi
11661rm -f core conftest.err conftest.$ac_objext \
11662    conftest$ac_exeext conftest.$ac_ext
11663LIBS=$ac_check_lib_save_LIBS
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11666$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11667if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11668  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11669else
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11671$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11672if ${ac_cv_lib_svld_dlopen+:} false; then :
11673  $as_echo_n "(cached) " >&6
11674else
11675  ac_check_lib_save_LIBS=$LIBS
11676LIBS="-lsvld  $LIBS"
11677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678/* end confdefs.h.  */
11679
11680/* Override any GCC internal prototype to avoid an error.
11681   Use char because int might match the return type of a GCC
11682   builtin and then its argument prototype would still apply.  */
11683#ifdef __cplusplus
11684extern "C"
11685#endif
11686char dlopen ();
11687int
11688main ()
11689{
11690return dlopen ();
11691  ;
11692  return 0;
11693}
11694_ACEOF
11695if ac_fn_c_try_link "$LINENO"; then :
11696  ac_cv_lib_svld_dlopen=yes
11697else
11698  ac_cv_lib_svld_dlopen=no
11699fi
11700rm -f core conftest.err conftest.$ac_objext \
11701    conftest$ac_exeext conftest.$ac_ext
11702LIBS=$ac_check_lib_save_LIBS
11703fi
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11705$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11706if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11707  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11708else
11709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11710$as_echo_n "checking for dld_link in -ldld... " >&6; }
11711if ${ac_cv_lib_dld_dld_link+:} false; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  ac_check_lib_save_LIBS=$LIBS
11715LIBS="-ldld  $LIBS"
11716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717/* end confdefs.h.  */
11718
11719/* Override any GCC internal prototype to avoid an error.
11720   Use char because int might match the return type of a GCC
11721   builtin and then its argument prototype would still apply.  */
11722#ifdef __cplusplus
11723extern "C"
11724#endif
11725char dld_link ();
11726int
11727main ()
11728{
11729return dld_link ();
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734if ac_fn_c_try_link "$LINENO"; then :
11735  ac_cv_lib_dld_dld_link=yes
11736else
11737  ac_cv_lib_dld_dld_link=no
11738fi
11739rm -f core conftest.err conftest.$ac_objext \
11740    conftest$ac_exeext conftest.$ac_ext
11741LIBS=$ac_check_lib_save_LIBS
11742fi
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11744$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11745if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11746  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11747fi
11748
11749
11750fi
11751
11752
11753fi
11754
11755
11756fi
11757
11758
11759fi
11760
11761
11762fi
11763
11764    ;;
11765  esac
11766
11767  if test no = "$lt_cv_dlopen"; then
11768    enable_dlopen=no
11769  else
11770    enable_dlopen=yes
11771  fi
11772
11773  case $lt_cv_dlopen in
11774  dlopen)
11775    save_CPPFLAGS=$CPPFLAGS
11776    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11777
11778    save_LDFLAGS=$LDFLAGS
11779    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11780
11781    save_LIBS=$LIBS
11782    LIBS="$lt_cv_dlopen_libs $LIBS"
11783
11784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11785$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11786if ${lt_cv_dlopen_self+:} false; then :
11787  $as_echo_n "(cached) " >&6
11788else
11789  	  if test yes = "$cross_compiling"; then :
11790  lt_cv_dlopen_self=cross
11791else
11792  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11793  lt_status=$lt_dlunknown
11794  cat > conftest.$ac_ext <<_LT_EOF
11795#line $LINENO "configure"
11796#include "confdefs.h"
11797
11798#if HAVE_DLFCN_H
11799#include <dlfcn.h>
11800#endif
11801
11802#include <stdio.h>
11803
11804#ifdef RTLD_GLOBAL
11805#  define LT_DLGLOBAL		RTLD_GLOBAL
11806#else
11807#  ifdef DL_GLOBAL
11808#    define LT_DLGLOBAL		DL_GLOBAL
11809#  else
11810#    define LT_DLGLOBAL		0
11811#  endif
11812#endif
11813
11814/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11815   find out it does not work in some platform. */
11816#ifndef LT_DLLAZY_OR_NOW
11817#  ifdef RTLD_LAZY
11818#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11819#  else
11820#    ifdef DL_LAZY
11821#      define LT_DLLAZY_OR_NOW		DL_LAZY
11822#    else
11823#      ifdef RTLD_NOW
11824#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11825#      else
11826#        ifdef DL_NOW
11827#          define LT_DLLAZY_OR_NOW	DL_NOW
11828#        else
11829#          define LT_DLLAZY_OR_NOW	0
11830#        endif
11831#      endif
11832#    endif
11833#  endif
11834#endif
11835
11836/* When -fvisibility=hidden is used, assume the code has been annotated
11837   correspondingly for the symbols needed.  */
11838#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11839int fnord () __attribute__((visibility("default")));
11840#endif
11841
11842int fnord () { return 42; }
11843int main ()
11844{
11845  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11846  int status = $lt_dlunknown;
11847
11848  if (self)
11849    {
11850      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11851      else
11852        {
11853	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11854          else puts (dlerror ());
11855	}
11856      /* dlclose (self); */
11857    }
11858  else
11859    puts (dlerror ());
11860
11861  return status;
11862}
11863_LT_EOF
11864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11865  (eval $ac_link) 2>&5
11866  ac_status=$?
11867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11869    (./conftest; exit; ) >&5 2>/dev/null
11870    lt_status=$?
11871    case x$lt_status in
11872      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11873      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11874      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11875    esac
11876  else :
11877    # compilation failed
11878    lt_cv_dlopen_self=no
11879  fi
11880fi
11881rm -fr conftest*
11882
11883
11884fi
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11886$as_echo "$lt_cv_dlopen_self" >&6; }
11887
11888    if test yes = "$lt_cv_dlopen_self"; then
11889      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11890      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11891$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11892if ${lt_cv_dlopen_self_static+:} false; then :
11893  $as_echo_n "(cached) " >&6
11894else
11895  	  if test yes = "$cross_compiling"; then :
11896  lt_cv_dlopen_self_static=cross
11897else
11898  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11899  lt_status=$lt_dlunknown
11900  cat > conftest.$ac_ext <<_LT_EOF
11901#line $LINENO "configure"
11902#include "confdefs.h"
11903
11904#if HAVE_DLFCN_H
11905#include <dlfcn.h>
11906#endif
11907
11908#include <stdio.h>
11909
11910#ifdef RTLD_GLOBAL
11911#  define LT_DLGLOBAL		RTLD_GLOBAL
11912#else
11913#  ifdef DL_GLOBAL
11914#    define LT_DLGLOBAL		DL_GLOBAL
11915#  else
11916#    define LT_DLGLOBAL		0
11917#  endif
11918#endif
11919
11920/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11921   find out it does not work in some platform. */
11922#ifndef LT_DLLAZY_OR_NOW
11923#  ifdef RTLD_LAZY
11924#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11925#  else
11926#    ifdef DL_LAZY
11927#      define LT_DLLAZY_OR_NOW		DL_LAZY
11928#    else
11929#      ifdef RTLD_NOW
11930#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11931#      else
11932#        ifdef DL_NOW
11933#          define LT_DLLAZY_OR_NOW	DL_NOW
11934#        else
11935#          define LT_DLLAZY_OR_NOW	0
11936#        endif
11937#      endif
11938#    endif
11939#  endif
11940#endif
11941
11942/* When -fvisibility=hidden is used, assume the code has been annotated
11943   correspondingly for the symbols needed.  */
11944#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11945int fnord () __attribute__((visibility("default")));
11946#endif
11947
11948int fnord () { return 42; }
11949int main ()
11950{
11951  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11952  int status = $lt_dlunknown;
11953
11954  if (self)
11955    {
11956      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11957      else
11958        {
11959	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11960          else puts (dlerror ());
11961	}
11962      /* dlclose (self); */
11963    }
11964  else
11965    puts (dlerror ());
11966
11967  return status;
11968}
11969_LT_EOF
11970  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11971  (eval $ac_link) 2>&5
11972  ac_status=$?
11973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11974  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11975    (./conftest; exit; ) >&5 2>/dev/null
11976    lt_status=$?
11977    case x$lt_status in
11978      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11979      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11980      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11981    esac
11982  else :
11983    # compilation failed
11984    lt_cv_dlopen_self_static=no
11985  fi
11986fi
11987rm -fr conftest*
11988
11989
11990fi
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11992$as_echo "$lt_cv_dlopen_self_static" >&6; }
11993    fi
11994
11995    CPPFLAGS=$save_CPPFLAGS
11996    LDFLAGS=$save_LDFLAGS
11997    LIBS=$save_LIBS
11998    ;;
11999  esac
12000
12001  case $lt_cv_dlopen_self in
12002  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12003  *) enable_dlopen_self=unknown ;;
12004  esac
12005
12006  case $lt_cv_dlopen_self_static in
12007  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12008  *) enable_dlopen_self_static=unknown ;;
12009  esac
12010fi
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028striplib=
12029old_striplib=
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12031$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12032if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12033  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12034  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036$as_echo "yes" >&6; }
12037else
12038# FIXME - insert some real tests, host_os isn't really good enough
12039  case $host_os in
12040  darwin*)
12041    if test -n "$STRIP"; then
12042      striplib="$STRIP -x"
12043      old_striplib="$STRIP -S"
12044      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045$as_echo "yes" >&6; }
12046    else
12047      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
12049    fi
12050    ;;
12051  *)
12052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053$as_echo "no" >&6; }
12054    ;;
12055  esac
12056fi
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069  # Report what library types will actually be built
12070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12071$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12073$as_echo "$can_build_shared" >&6; }
12074
12075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12076$as_echo_n "checking whether to build shared libraries... " >&6; }
12077  test no = "$can_build_shared" && enable_shared=no
12078
12079  # On AIX, shared libraries and static libraries use the same namespace, and
12080  # are all built from PIC.
12081  case $host_os in
12082  aix3*)
12083    test yes = "$enable_shared" && enable_static=no
12084    if test -n "$RANLIB"; then
12085      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12086      postinstall_cmds='$RANLIB $lib'
12087    fi
12088    ;;
12089
12090  aix[4-9]*)
12091    if test ia64 != "$host_cpu"; then
12092      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12093      yes,aix,yes) ;;			# shared object as lib.so file only
12094      yes,svr4,*) ;;			# shared object as lib.so archive member only
12095      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12096      esac
12097    fi
12098    ;;
12099  esac
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12101$as_echo "$enable_shared" >&6; }
12102
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12104$as_echo_n "checking whether to build static libraries... " >&6; }
12105  # Make sure either enable_shared or enable_static is yes.
12106  test yes = "$enable_shared" || enable_static=yes
12107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12108$as_echo "$enable_static" >&6; }
12109
12110
12111
12112
12113fi
12114ac_ext=c
12115ac_cpp='$CPP $CPPFLAGS'
12116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118ac_compiler_gnu=$ac_cv_c_compiler_gnu
12119
12120CC=$lt_save_CC
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136        ac_config_commands="$ac_config_commands libtool"
12137
12138
12139
12140
12141# Only expand once:
12142
12143
12144
12145# Add -Wall if we are using GCC.
12146if test "x$GCC" = "xyes"; then
12147  CFLAGS="$CFLAGS -Wall"
12148fi
12149
12150# Check if profiling must be disabled
12151# Check whether --enable-profiling was given.
12152if test "${enable_profiling+set}" = set; then :
12153  enableval=$enable_profiling; :
12154else
12155  enable_profiling=yes
12156fi
12157
12158 if test x$enable_profiling = xyes; then
12159  ENABLE_PROFILING_TRUE=
12160  ENABLE_PROFILING_FALSE='#'
12161else
12162  ENABLE_PROFILING_TRUE='#'
12163  ENABLE_PROFILING_FALSE=
12164fi
12165
12166
12167# Checks for header files.
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12169$as_echo_n "checking for ANSI C header files... " >&6; }
12170if ${ac_cv_header_stdc+:} false; then :
12171  $as_echo_n "(cached) " >&6
12172else
12173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174/* end confdefs.h.  */
12175#include <stdlib.h>
12176#include <stdarg.h>
12177#include <string.h>
12178#include <float.h>
12179
12180int
12181main ()
12182{
12183
12184  ;
12185  return 0;
12186}
12187_ACEOF
12188if ac_fn_c_try_compile "$LINENO"; then :
12189  ac_cv_header_stdc=yes
12190else
12191  ac_cv_header_stdc=no
12192fi
12193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194
12195if test $ac_cv_header_stdc = yes; then
12196  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198/* end confdefs.h.  */
12199#include <string.h>
12200
12201_ACEOF
12202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12203  $EGREP "memchr" >/dev/null 2>&1; then :
12204
12205else
12206  ac_cv_header_stdc=no
12207fi
12208rm -f conftest*
12209
12210fi
12211
12212if test $ac_cv_header_stdc = yes; then
12213  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215/* end confdefs.h.  */
12216#include <stdlib.h>
12217
12218_ACEOF
12219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12220  $EGREP "free" >/dev/null 2>&1; then :
12221
12222else
12223  ac_cv_header_stdc=no
12224fi
12225rm -f conftest*
12226
12227fi
12228
12229if test $ac_cv_header_stdc = yes; then
12230  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12231  if test "$cross_compiling" = yes; then :
12232  :
12233else
12234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235/* end confdefs.h.  */
12236#include <ctype.h>
12237#include <stdlib.h>
12238#if ((' ' & 0x0FF) == 0x020)
12239# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12240# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12241#else
12242# define ISLOWER(c) \
12243		   (('a' <= (c) && (c) <= 'i') \
12244		     || ('j' <= (c) && (c) <= 'r') \
12245		     || ('s' <= (c) && (c) <= 'z'))
12246# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12247#endif
12248
12249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12250int
12251main ()
12252{
12253  int i;
12254  for (i = 0; i < 256; i++)
12255    if (XOR (islower (i), ISLOWER (i))
12256	|| toupper (i) != TOUPPER (i))
12257      return 2;
12258  return 0;
12259}
12260_ACEOF
12261if ac_fn_c_try_run "$LINENO"; then :
12262
12263else
12264  ac_cv_header_stdc=no
12265fi
12266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12267  conftest.$ac_objext conftest.beam conftest.$ac_ext
12268fi
12269
12270fi
12271fi
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12273$as_echo "$ac_cv_header_stdc" >&6; }
12274if test $ac_cv_header_stdc = yes; then
12275
12276$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12277
12278fi
12279
12280
12281# Check for systems which need -lsocket and -lnsl
12282#AX_LIB_SOCKET_NSL
12283
12284# Check for the math library (needed by cjson on some platforms)
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12286$as_echo_n "checking for library containing floor... " >&6; }
12287if ${ac_cv_search_floor+:} false; then :
12288  $as_echo_n "(cached) " >&6
12289else
12290  ac_func_search_save_LIBS=$LIBS
12291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292/* end confdefs.h.  */
12293
12294/* Override any GCC internal prototype to avoid an error.
12295   Use char because int might match the return type of a GCC
12296   builtin and then its argument prototype would still apply.  */
12297#ifdef __cplusplus
12298extern "C"
12299#endif
12300char floor ();
12301int
12302main ()
12303{
12304return floor ();
12305  ;
12306  return 0;
12307}
12308_ACEOF
12309for ac_lib in '' m; do
12310  if test -z "$ac_lib"; then
12311    ac_res="none required"
12312  else
12313    ac_res=-l$ac_lib
12314    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12315  fi
12316  if ac_fn_c_try_link "$LINENO"; then :
12317  ac_cv_search_floor=$ac_res
12318fi
12319rm -f core conftest.err conftest.$ac_objext \
12320    conftest$ac_exeext
12321  if ${ac_cv_search_floor+:} false; then :
12322  break
12323fi
12324done
12325if ${ac_cv_search_floor+:} false; then :
12326
12327else
12328  ac_cv_search_floor=no
12329fi
12330rm conftest.$ac_ext
12331LIBS=$ac_func_search_save_LIBS
12332fi
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12334$as_echo "$ac_cv_search_floor" >&6; }
12335ac_res=$ac_cv_search_floor
12336if test "$ac_res" != no; then :
12337  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12338
12339else
12340
12341echo "floor()"
12342exit 1
12343
12344fi
12345
12346
12347# On illumos we need -lsocket
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12349$as_echo_n "checking for library containing socket... " >&6; }
12350if ${ac_cv_search_socket+:} false; then :
12351  $as_echo_n "(cached) " >&6
12352else
12353  ac_func_search_save_LIBS=$LIBS
12354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355/* end confdefs.h.  */
12356
12357/* Override any GCC internal prototype to avoid an error.
12358   Use char because int might match the return type of a GCC
12359   builtin and then its argument prototype would still apply.  */
12360#ifdef __cplusplus
12361extern "C"
12362#endif
12363char socket ();
12364int
12365main ()
12366{
12367return socket ();
12368  ;
12369  return 0;
12370}
12371_ACEOF
12372for ac_lib in '' socket; do
12373  if test -z "$ac_lib"; then
12374    ac_res="none required"
12375  else
12376    ac_res=-l$ac_lib
12377    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12378  fi
12379  if ac_fn_c_try_link "$LINENO"; then :
12380  ac_cv_search_socket=$ac_res
12381fi
12382rm -f core conftest.err conftest.$ac_objext \
12383    conftest$ac_exeext
12384  if ${ac_cv_search_socket+:} false; then :
12385  break
12386fi
12387done
12388if ${ac_cv_search_socket+:} false; then :
12389
12390else
12391  ac_cv_search_socket=no
12392fi
12393rm conftest.$ac_ext
12394LIBS=$ac_func_search_save_LIBS
12395fi
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12397$as_echo "$ac_cv_search_socket" >&6; }
12398ac_res=$ac_cv_search_socket
12399if test "$ac_res" != no; then :
12400  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12401
12402else
12403
12404echo "socket()"
12405exit 1
12406
12407fi
12408
12409
12410# On illumos inet_ntop in in -lnsl
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12412$as_echo_n "checking for library containing inet_ntop... " >&6; }
12413if ${ac_cv_search_inet_ntop+:} false; then :
12414  $as_echo_n "(cached) " >&6
12415else
12416  ac_func_search_save_LIBS=$LIBS
12417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h.  */
12419
12420/* Override any GCC internal prototype to avoid an error.
12421   Use char because int might match the return type of a GCC
12422   builtin and then its argument prototype would still apply.  */
12423#ifdef __cplusplus
12424extern "C"
12425#endif
12426char inet_ntop ();
12427int
12428main ()
12429{
12430return inet_ntop ();
12431  ;
12432  return 0;
12433}
12434_ACEOF
12435for ac_lib in '' nsl; do
12436  if test -z "$ac_lib"; then
12437    ac_res="none required"
12438  else
12439    ac_res=-l$ac_lib
12440    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12441  fi
12442  if ac_fn_c_try_link "$LINENO"; then :
12443  ac_cv_search_inet_ntop=$ac_res
12444fi
12445rm -f core conftest.err conftest.$ac_objext \
12446    conftest$ac_exeext
12447  if ${ac_cv_search_inet_ntop+:} false; then :
12448  break
12449fi
12450done
12451if ${ac_cv_search_inet_ntop+:} false; then :
12452
12453else
12454  ac_cv_search_inet_ntop=no
12455fi
12456rm conftest.$ac_ext
12457LIBS=$ac_func_search_save_LIBS
12458fi
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12460$as_echo "$ac_cv_search_inet_ntop" >&6; }
12461ac_res=$ac_cv_search_inet_ntop
12462if test "$ac_res" != no; then :
12463  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12464
12465else
12466
12467echo "inet_ntop()"
12468exit 1
12469
12470fi
12471
12472
12473# Checks for typedefs, structures, and compiler characteristics.
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12475$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12476if ${ac_cv_c_const+:} false; then :
12477  $as_echo_n "(cached) " >&6
12478else
12479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481
12482int
12483main ()
12484{
12485
12486#ifndef __cplusplus
12487  /* Ultrix mips cc rejects this sort of thing.  */
12488  typedef int charset[2];
12489  const charset cs = { 0, 0 };
12490  /* SunOS 4.1.1 cc rejects this.  */
12491  char const *const *pcpcc;
12492  char **ppc;
12493  /* NEC SVR4.0.2 mips cc rejects this.  */
12494  struct point {int x, y;};
12495  static struct point const zero = {0,0};
12496  /* AIX XL C 1.02.0.0 rejects this.
12497     It does not let you subtract one const X* pointer from another in
12498     an arm of an if-expression whose if-part is not a constant
12499     expression */
12500  const char *g = "string";
12501  pcpcc = &g + (g ? g-g : 0);
12502  /* HPUX 7.0 cc rejects these. */
12503  ++pcpcc;
12504  ppc = (char**) pcpcc;
12505  pcpcc = (char const *const *) ppc;
12506  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12507    char tx;
12508    char *t = &tx;
12509    char const *s = 0 ? (char *) 0 : (char const *) 0;
12510
12511    *t++ = 0;
12512    if (s) return 0;
12513  }
12514  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12515    int x[] = {25, 17};
12516    const int *foo = &x[0];
12517    ++foo;
12518  }
12519  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12520    typedef const int *iptr;
12521    iptr p = 0;
12522    ++p;
12523  }
12524  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12525       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12526    struct s { int j; const int *ap[3]; } bx;
12527    struct s *b = &bx; b->j = 5;
12528  }
12529  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12530    const int foo = 10;
12531    if (!foo) return 0;
12532  }
12533  return !cs[0] && !zero.x;
12534#endif
12535
12536  ;
12537  return 0;
12538}
12539_ACEOF
12540if ac_fn_c_try_compile "$LINENO"; then :
12541  ac_cv_c_const=yes
12542else
12543  ac_cv_c_const=no
12544fi
12545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546fi
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12548$as_echo "$ac_cv_c_const" >&6; }
12549if test $ac_cv_c_const = no; then
12550
12551$as_echo "#define const /**/" >>confdefs.h
12552
12553fi
12554
12555
12556# Check for poll.h (it's in POSIX so everyone should have it?)
12557for ac_header in poll.h
12558do :
12559  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12560if test "x$ac_cv_header_poll_h" = xyes; then :
12561  cat >>confdefs.h <<_ACEOF
12562#define HAVE_POLL_H 1
12563_ACEOF
12564
12565fi
12566
12567done
12568
12569
12570# Check for SCTP support
12571for ac_header in sys/socket.h
12572do :
12573  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12574if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12575  cat >>confdefs.h <<_ACEOF
12576#define HAVE_SYS_SOCKET_H 1
12577_ACEOF
12578
12579fi
12580
12581done
12582
12583for ac_header in netinet/sctp.h
12584do :
12585  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12586#include <sys/socket.h>
12587#endif
12588
12589"
12590if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
12591  cat >>confdefs.h <<_ACEOF
12592#define HAVE_NETINET_SCTP_H 1
12593_ACEOF
12594
12595$as_echo "#define HAVE_SCTP 1" >>confdefs.h
12596
12597		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12598$as_echo_n "checking for library containing sctp_bindx... " >&6; }
12599if ${ac_cv_search_sctp_bindx+:} false; then :
12600  $as_echo_n "(cached) " >&6
12601else
12602  ac_func_search_save_LIBS=$LIBS
12603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h.  */
12605
12606/* Override any GCC internal prototype to avoid an error.
12607   Use char because int might match the return type of a GCC
12608   builtin and then its argument prototype would still apply.  */
12609#ifdef __cplusplus
12610extern "C"
12611#endif
12612char sctp_bindx ();
12613int
12614main ()
12615{
12616return sctp_bindx ();
12617  ;
12618  return 0;
12619}
12620_ACEOF
12621for ac_lib in '' sctp; do
12622  if test -z "$ac_lib"; then
12623    ac_res="none required"
12624  else
12625    ac_res=-l$ac_lib
12626    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12627  fi
12628  if ac_fn_c_try_link "$LINENO"; then :
12629  ac_cv_search_sctp_bindx=$ac_res
12630fi
12631rm -f core conftest.err conftest.$ac_objext \
12632    conftest$ac_exeext
12633  if ${ac_cv_search_sctp_bindx+:} false; then :
12634  break
12635fi
12636done
12637if ${ac_cv_search_sctp_bindx+:} false; then :
12638
12639else
12640  ac_cv_search_sctp_bindx=no
12641fi
12642rm conftest.$ac_ext
12643LIBS=$ac_func_search_save_LIBS
12644fi
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12646$as_echo "$ac_cv_search_sctp_bindx" >&6; }
12647ac_res=$ac_cv_search_sctp_bindx
12648if test "$ac_res" != no; then :
12649  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12650
12651fi
12652
12653
12654# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
12655# -------------------------------------------
12656# Tests whether TYPE exists after having included INCLUDES, setting cache
12657# variable VAR accordingly.
12658ac_fn_c_check_type ()
12659{
12660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
12662$as_echo_n "checking for $2... " >&6; }
12663if eval \${$3+:} false; then :
12664  $as_echo_n "(cached) " >&6
12665else
12666  eval "$3=no"
12667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h.  */
12669$4
12670int
12671main ()
12672{
12673if (sizeof ($2))
12674	 return 0;
12675  ;
12676  return 0;
12677}
12678_ACEOF
12679if ac_fn_c_try_compile "$LINENO"; then :
12680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681/* end confdefs.h.  */
12682$4
12683int
12684main ()
12685{
12686if (sizeof (($2)))
12687	    return 0;
12688  ;
12689  return 0;
12690}
12691_ACEOF
12692if ac_fn_c_try_compile "$LINENO"; then :
12693
12694else
12695  eval "$3=yes"
12696fi
12697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698fi
12699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700fi
12701eval ac_res=\$$3
12702	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12703$as_echo "$ac_res" >&6; }
12704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
12705
12706} # ac_fn_c_check_type
12707ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
12708"
12709if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
12710
12711cat >>confdefs.h <<_ACEOF
12712#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
12713_ACEOF
12714
12715
12716fi
12717
12718fi
12719
12720done
12721
12722
12723ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
12724if test "x$ac_cv_header_endian_h" = xyes; then :
12725
12726$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
12727
12728else
12729  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12730if test "x$ac_cv_header_sys_endian_h" = xyes; then :
12731
12732$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
12733
12734else
12735  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
12736$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
12737
12738fi
12739
12740
12741
12742fi
12743
12744
12745
12746if test "x$with_openssl" = "xno"; then
12747    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
12748$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
12749else
12750    # Check for OPENSSL support
12751    havs_ssl=false
12752
12753    found=false
12754
12755# Check whether --with-openssl was given.
12756if test "${with_openssl+set}" = set; then :
12757  withval=$with_openssl;
12758            case "$withval" in
12759            "" | y | ye | yes | n | no)
12760            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
12761              ;;
12762            *) ssldirs="$withval"
12763              ;;
12764            esac
12765
12766else
12767
12768            # if pkg-config is installed and openssl has installed a .pc file,
12769            # then use that information and don't search ssldirs
12770            if test -n "$ac_tool_prefix"; then
12771  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12772set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
12775if ${ac_cv_prog_PKG_CONFIG+:} false; then :
12776  $as_echo_n "(cached) " >&6
12777else
12778  if test -n "$PKG_CONFIG"; then
12779  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784  IFS=$as_save_IFS
12785  test -z "$as_dir" && as_dir=.
12786    for ac_exec_ext in '' $ac_executable_extensions; do
12787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
12789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790    break 2
12791  fi
12792done
12793  done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
12799if test -n "$PKG_CONFIG"; then
12800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12801$as_echo "$PKG_CONFIG" >&6; }
12802else
12803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807
12808fi
12809if test -z "$ac_cv_prog_PKG_CONFIG"; then
12810  ac_ct_PKG_CONFIG=$PKG_CONFIG
12811  # Extract the first word of "pkg-config", so it can be a program name with args.
12812set dummy pkg-config; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
12816  $as_echo_n "(cached) " >&6
12817else
12818  if test -n "$ac_ct_PKG_CONFIG"; then
12819  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
12820else
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824  IFS=$as_save_IFS
12825  test -z "$as_dir" && as_dir=.
12826    for ac_exec_ext in '' $ac_executable_extensions; do
12827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
12829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830    break 2
12831  fi
12832done
12833  done
12834IFS=$as_save_IFS
12835
12836fi
12837fi
12838ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
12839if test -n "$ac_ct_PKG_CONFIG"; then
12840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
12841$as_echo "$ac_ct_PKG_CONFIG" >&6; }
12842else
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
12845fi
12846
12847  if test "x$ac_ct_PKG_CONFIG" = x; then
12848    PKG_CONFIG=""
12849  else
12850    case $cross_compiling:$ac_tool_warned in
12851yes:)
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12854ac_tool_warned=yes ;;
12855esac
12856    PKG_CONFIG=$ac_ct_PKG_CONFIG
12857  fi
12858else
12859  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
12860fi
12861
12862            if test x"$PKG_CONFIG" != x""; then
12863                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
12864                if test $? = 0; then
12865                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
12866                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
12867                    found=true
12868                fi
12869            fi
12870
12871            # no such luck; use some default ssldirs
12872            if ! $found; then
12873                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
12874            fi
12875
12876
12877fi
12878
12879
12880
12881    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
12882    # an 'openssl' subdirectory
12883
12884    if ! $found; then
12885        OPENSSL_INCLUDES=
12886        for ssldir in $ssldirs; do
12887            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
12888$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
12889            if test -f "$ssldir/include/openssl/ssl.h"; then
12890                OPENSSL_INCLUDES="-I$ssldir/include"
12891                OPENSSL_LDFLAGS="-L$ssldir/lib"
12892                OPENSSL_LIBS="-lssl -lcrypto"
12893                found=true
12894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12895$as_echo "yes" >&6; }
12896                break
12897            else
12898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900            fi
12901        done
12902
12903        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
12904        # it will just work!
12905    fi
12906
12907    # try the preprocessor and linker with our new flags,
12908    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
12909
12910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
12911$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
12912    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
12913        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
12914
12915    save_LIBS="$LIBS"
12916    save_LDFLAGS="$LDFLAGS"
12917    save_CPPFLAGS="$CPPFLAGS"
12918    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12919    LIBS="$OPENSSL_LIBS $LIBS"
12920    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922/* end confdefs.h.  */
12923#include <openssl/ssl.h>
12924int
12925main ()
12926{
12927SSL_new(NULL)
12928  ;
12929  return 0;
12930}
12931_ACEOF
12932if ac_fn_c_try_link "$LINENO"; then :
12933
12934            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12935$as_echo "yes" >&6; }
12936
12937$as_echo "#define HAVE_SSL 1" >>confdefs.h
12938
12939          have_ssl=true
12940
12941else
12942
12943            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
12945             if test "x$with_openssl" != "x"; then
12946	  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12948as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
12949See \`config.log' for more details" "$LINENO" 5; }
12950	  fi
12951
12952
12953fi
12954rm -f core conftest.err conftest.$ac_objext \
12955    conftest$ac_exeext conftest.$ac_ext
12956    CPPFLAGS="$save_CPPFLAGS"
12957    LDFLAGS="$save_LDFLAGS"
12958    LIBS="$save_LIBS"
12959
12960
12961
12962
12963
12964    if $have_ssl; then
12965        LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12966        LIBS="$OPENSSL_LIBS $LIBS"
12967        CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12968    fi
12969fi
12970
12971# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
12973$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
12974if ${iperf3_cv_header_tcp_congestion+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h.  */
12979#include <netinet/tcp.h>
12980#ifdef TCP_CONGESTION
12981  yes
12982#endif
12983
12984_ACEOF
12985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12986  $EGREP "yes" >/dev/null 2>&1; then :
12987  iperf3_cv_header_tcp_congestion=yes
12988else
12989  iperf3_cv_header_tcp_congestion=no
12990fi
12991rm -f conftest*
12992
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
12995$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12996if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12997
12998$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
12999
13000fi
13001
13002# Check for IPv6 flowlabel support (believed to be Linux only)
13003# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
13004# don't use that file directly (we have our own stripped-down
13005# copy, see src/flowlabel.h for more details).
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
13007$as_echo_n "checking IPv6 flowlabel support... " >&6; }
13008if ${iperf3_cv_header_flowlabel+:} false; then :
13009  $as_echo_n "(cached) " >&6
13010else
13011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012/* end confdefs.h.  */
13013#include <sys/types.h>
13014#include <linux/in6.h>
13015#ifdef IPV6_FLOWLABEL_MGR
13016  yes
13017#endif
13018
13019_ACEOF
13020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13021  $EGREP "yes" >/dev/null 2>&1; then :
13022  iperf3_cv_header_flowlabel=yes
13023else
13024  iperf3_cv_header_flowlabel=no
13025fi
13026rm -f conftest*
13027
13028fi
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
13030$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13031if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13032
13033$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
13034
13035fi
13036
13037# Check for CPU affinity support.  FreeBSD and Linux do this differently
13038# unfortunately so we have to check separately for each of them.
13039# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13040# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13041# generic concept is available.
13042for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
13043do :
13044  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13047  cat >>confdefs.h <<_ACEOF
13048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13049_ACEOF
13050
13051$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
13052
13053fi
13054done
13055
13056
13057# Check for daemon().  Most systems have this but a few (IRIX) don't.
13058for ac_func in daemon
13059do :
13060  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13061if test "x$ac_cv_func_daemon" = xyes; then :
13062  cat >>confdefs.h <<_ACEOF
13063#define HAVE_DAEMON 1
13064_ACEOF
13065
13066fi
13067done
13068
13069
13070# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
13071# this system call, but they're all different in terms of what headers
13072# it needs and what arguments it expects.
13073for ac_func in sendfile
13074do :
13075  ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13076if test "x$ac_cv_func_sendfile" = xyes; then :
13077  cat >>confdefs.h <<_ACEOF
13078#define HAVE_SENDFILE 1
13079_ACEOF
13080
13081fi
13082done
13083
13084
13085# Check for getline support, used as a part of authenticated
13086# connections.
13087for ac_func in getline
13088do :
13089  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13090if test "x$ac_cv_func_getline" = xyes; then :
13091  cat >>confdefs.h <<_ACEOF
13092#define HAVE_GETLINE 1
13093_ACEOF
13094
13095fi
13096done
13097
13098
13099# Check for packet pacing socket option (Linux only for now).
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13101$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13102if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13103  $as_echo_n "(cached) " >&6
13104else
13105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106/* end confdefs.h.  */
13107#include <sys/socket.h>
13108#ifdef SO_MAX_PACING_RATE
13109  yes
13110#endif
13111
13112_ACEOF
13113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13114  $EGREP "yes" >/dev/null 2>&1; then :
13115  iperf3_cv_header_so_max_pacing_rate=yes
13116else
13117  iperf3_cv_header_so_max_pacing_rate=no
13118fi
13119rm -f conftest*
13120
13121fi
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13123$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13124if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13125
13126$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13127
13128fi
13129
13130# Check if we need -lrt for clock_gettime
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13132$as_echo_n "checking for library containing clock_gettime... " >&6; }
13133if ${ac_cv_search_clock_gettime+:} false; then :
13134  $as_echo_n "(cached) " >&6
13135else
13136  ac_func_search_save_LIBS=$LIBS
13137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h.  */
13139
13140/* Override any GCC internal prototype to avoid an error.
13141   Use char because int might match the return type of a GCC
13142   builtin and then its argument prototype would still apply.  */
13143#ifdef __cplusplus
13144extern "C"
13145#endif
13146char clock_gettime ();
13147int
13148main ()
13149{
13150return clock_gettime ();
13151  ;
13152  return 0;
13153}
13154_ACEOF
13155for ac_lib in '' rt posix4; do
13156  if test -z "$ac_lib"; then
13157    ac_res="none required"
13158  else
13159    ac_res=-l$ac_lib
13160    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13161  fi
13162  if ac_fn_c_try_link "$LINENO"; then :
13163  ac_cv_search_clock_gettime=$ac_res
13164fi
13165rm -f core conftest.err conftest.$ac_objext \
13166    conftest$ac_exeext
13167  if ${ac_cv_search_clock_gettime+:} false; then :
13168  break
13169fi
13170done
13171if ${ac_cv_search_clock_gettime+:} false; then :
13172
13173else
13174  ac_cv_search_clock_gettime=no
13175fi
13176rm conftest.$ac_ext
13177LIBS=$ac_func_search_save_LIBS
13178fi
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13180$as_echo "$ac_cv_search_clock_gettime" >&6; }
13181ac_res=$ac_cv_search_clock_gettime
13182if test "$ac_res" != no; then :
13183  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13184
13185fi
13186
13187# Check for clock_gettime support
13188for ac_func in clock_gettime
13189do :
13190  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13191if test "x$ac_cv_func_clock_gettime" = xyes; then :
13192  cat >>confdefs.h <<_ACEOF
13193#define HAVE_CLOCK_GETTIME 1
13194_ACEOF
13195
13196fi
13197done
13198
13199
13200ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
13201
13202cat >confcache <<\_ACEOF
13203# This file is a shell script that caches the results of configure
13204# tests run on this system so they can be shared between configure
13205# scripts and configure runs, see configure's option --config-cache.
13206# It is not useful on other systems.  If it contains results you don't
13207# want to keep, you may remove or edit it.
13208#
13209# config.status only pays attention to the cache file if you give it
13210# the --recheck option to rerun configure.
13211#
13212# `ac_cv_env_foo' variables (set or unset) will be overridden when
13213# loading this file, other *unset* `ac_cv_foo' will be assigned the
13214# following values.
13215
13216_ACEOF
13217
13218# The following way of writing the cache mishandles newlines in values,
13219# but we know of no workaround that is simple, portable, and efficient.
13220# So, we kill variables containing newlines.
13221# Ultrix sh set writes to stderr and can't be redirected directly,
13222# and sets the high bit in the cache file unless we assign to the vars.
13223(
13224  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13225    eval ac_val=\$$ac_var
13226    case $ac_val in #(
13227    *${as_nl}*)
13228      case $ac_var in #(
13229      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13230$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13231      esac
13232      case $ac_var in #(
13233      _ | IFS | as_nl) ;; #(
13234      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13235      *) { eval $ac_var=; unset $ac_var;} ;;
13236      esac ;;
13237    esac
13238  done
13239
13240  (set) 2>&1 |
13241    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13242    *${as_nl}ac_space=\ *)
13243      # `set' does not quote correctly, so add quotes: double-quote
13244      # substitution turns \\\\ into \\, and sed turns \\ into \.
13245      sed -n \
13246	"s/'/'\\\\''/g;
13247	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13248      ;; #(
13249    *)
13250      # `set' quotes correctly as required by POSIX, so do not add quotes.
13251      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13252      ;;
13253    esac |
13254    sort
13255) |
13256  sed '
13257     /^ac_cv_env_/b end
13258     t clear
13259     :clear
13260     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13261     t end
13262     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13263     :end' >>confcache
13264if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13265  if test -w "$cache_file"; then
13266    if test "x$cache_file" != "x/dev/null"; then
13267      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13268$as_echo "$as_me: updating cache $cache_file" >&6;}
13269      if test ! -f "$cache_file" || test -h "$cache_file"; then
13270	cat confcache >"$cache_file"
13271      else
13272        case $cache_file in #(
13273        */* | ?:*)
13274	  mv -f confcache "$cache_file"$$ &&
13275	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13276        *)
13277	  mv -f confcache "$cache_file" ;;
13278	esac
13279      fi
13280    fi
13281  else
13282    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13283$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13284  fi
13285fi
13286rm -f confcache
13287
13288test "x$prefix" = xNONE && prefix=$ac_default_prefix
13289# Let make expand exec_prefix.
13290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13291
13292DEFS=-DHAVE_CONFIG_H
13293
13294ac_libobjs=
13295ac_ltlibobjs=
13296for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13297  # 1. Remove the extension, and $U if already installed.
13298  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13299  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13300  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13301  #    will be set to the directory where LIBOBJS objects are built.
13302  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13303  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13304done
13305LIBOBJS=$ac_libobjs
13306
13307LTLIBOBJS=$ac_ltlibobjs
13308
13309
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13311$as_echo_n "checking that generated files are newer than configure... " >&6; }
13312   if test -n "$am_sleep_pid"; then
13313     # Hide warnings about reused PIDs.
13314     wait $am_sleep_pid 2>/dev/null
13315   fi
13316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13317$as_echo "done" >&6; }
13318 if test -n "$EXEEXT"; then
13319  am__EXEEXT_TRUE=
13320  am__EXEEXT_FALSE='#'
13321else
13322  am__EXEEXT_TRUE='#'
13323  am__EXEEXT_FALSE=
13324fi
13325
13326if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13327  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13328Usually this means the macro was only invoked conditionally." "$LINENO" 5
13329fi
13330if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13331  as_fn_error $? "conditional \"AMDEP\" was never defined.
13332Usually this means the macro was only invoked conditionally." "$LINENO" 5
13333fi
13334if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13335  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13336Usually this means the macro was only invoked conditionally." "$LINENO" 5
13337fi
13338if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
13339  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
13340Usually this means the macro was only invoked conditionally." "$LINENO" 5
13341fi
13342
13343: "${CONFIG_STATUS=./config.status}"
13344ac_write_fail=0
13345ac_clean_files_save=$ac_clean_files
13346ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13348$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13349as_write_fail=0
13350cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13351#! $SHELL
13352# Generated by $as_me.
13353# Run this file to recreate the current configuration.
13354# Compiler output produced by configure, useful for debugging
13355# configure, is in config.log if it exists.
13356
13357debug=false
13358ac_cs_recheck=false
13359ac_cs_silent=false
13360
13361SHELL=\${CONFIG_SHELL-$SHELL}
13362export SHELL
13363_ASEOF
13364cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13365## -------------------- ##
13366## M4sh Initialization. ##
13367## -------------------- ##
13368
13369# Be more Bourne compatible
13370DUALCASE=1; export DUALCASE # for MKS sh
13371if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13372  emulate sh
13373  NULLCMD=:
13374  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13375  # is contrary to our usage.  Disable this feature.
13376  alias -g '${1+"$@"}'='"$@"'
13377  setopt NO_GLOB_SUBST
13378else
13379  case `(set -o) 2>/dev/null` in #(
13380  *posix*) :
13381    set -o posix ;; #(
13382  *) :
13383     ;;
13384esac
13385fi
13386
13387
13388as_nl='
13389'
13390export as_nl
13391# Printing a long string crashes Solaris 7 /usr/bin/printf.
13392as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13393as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13394as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13395# Prefer a ksh shell builtin over an external printf program on Solaris,
13396# but without wasting forks for bash or zsh.
13397if test -z "$BASH_VERSION$ZSH_VERSION" \
13398    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13399  as_echo='print -r --'
13400  as_echo_n='print -rn --'
13401elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13402  as_echo='printf %s\n'
13403  as_echo_n='printf %s'
13404else
13405  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13406    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13407    as_echo_n='/usr/ucb/echo -n'
13408  else
13409    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13410    as_echo_n_body='eval
13411      arg=$1;
13412      case $arg in #(
13413      *"$as_nl"*)
13414	expr "X$arg" : "X\\(.*\\)$as_nl";
13415	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13416      esac;
13417      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13418    '
13419    export as_echo_n_body
13420    as_echo_n='sh -c $as_echo_n_body as_echo'
13421  fi
13422  export as_echo_body
13423  as_echo='sh -c $as_echo_body as_echo'
13424fi
13425
13426# The user is always right.
13427if test "${PATH_SEPARATOR+set}" != set; then
13428  PATH_SEPARATOR=:
13429  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13430    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13431      PATH_SEPARATOR=';'
13432  }
13433fi
13434
13435
13436# IFS
13437# We need space, tab and new line, in precisely that order.  Quoting is
13438# there to prevent editors from complaining about space-tab.
13439# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13440# splitting by setting IFS to empty value.)
13441IFS=" ""	$as_nl"
13442
13443# Find who we are.  Look in the path if we contain no directory separator.
13444as_myself=
13445case $0 in #((
13446  *[\\/]* ) as_myself=$0 ;;
13447  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448for as_dir in $PATH
13449do
13450  IFS=$as_save_IFS
13451  test -z "$as_dir" && as_dir=.
13452    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13453  done
13454IFS=$as_save_IFS
13455
13456     ;;
13457esac
13458# We did not find ourselves, most probably we were run as `sh COMMAND'
13459# in which case we are not to be found in the path.
13460if test "x$as_myself" = x; then
13461  as_myself=$0
13462fi
13463if test ! -f "$as_myself"; then
13464  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13465  exit 1
13466fi
13467
13468# Unset variables that we do not need and which cause bugs (e.g. in
13469# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13470# suppresses any "Segmentation fault" message there.  '((' could
13471# trigger a bug in pdksh 5.2.14.
13472for as_var in BASH_ENV ENV MAIL MAILPATH
13473do eval test x\${$as_var+set} = xset \
13474  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13475done
13476PS1='$ '
13477PS2='> '
13478PS4='+ '
13479
13480# NLS nuisances.
13481LC_ALL=C
13482export LC_ALL
13483LANGUAGE=C
13484export LANGUAGE
13485
13486# CDPATH.
13487(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13488
13489
13490# as_fn_error STATUS ERROR [LINENO LOG_FD]
13491# ----------------------------------------
13492# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13493# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13494# script with STATUS, using 1 if that was 0.
13495as_fn_error ()
13496{
13497  as_status=$1; test $as_status -eq 0 && as_status=1
13498  if test "$4"; then
13499    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13500    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13501  fi
13502  $as_echo "$as_me: error: $2" >&2
13503  as_fn_exit $as_status
13504} # as_fn_error
13505
13506
13507# as_fn_set_status STATUS
13508# -----------------------
13509# Set $? to STATUS, without forking.
13510as_fn_set_status ()
13511{
13512  return $1
13513} # as_fn_set_status
13514
13515# as_fn_exit STATUS
13516# -----------------
13517# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13518as_fn_exit ()
13519{
13520  set +e
13521  as_fn_set_status $1
13522  exit $1
13523} # as_fn_exit
13524
13525# as_fn_unset VAR
13526# ---------------
13527# Portably unset VAR.
13528as_fn_unset ()
13529{
13530  { eval $1=; unset $1;}
13531}
13532as_unset=as_fn_unset
13533# as_fn_append VAR VALUE
13534# ----------------------
13535# Append the text in VALUE to the end of the definition contained in VAR. Take
13536# advantage of any shell optimizations that allow amortized linear growth over
13537# repeated appends, instead of the typical quadratic growth present in naive
13538# implementations.
13539if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13540  eval 'as_fn_append ()
13541  {
13542    eval $1+=\$2
13543  }'
13544else
13545  as_fn_append ()
13546  {
13547    eval $1=\$$1\$2
13548  }
13549fi # as_fn_append
13550
13551# as_fn_arith ARG...
13552# ------------------
13553# Perform arithmetic evaluation on the ARGs, and store the result in the
13554# global $as_val. Take advantage of shells that can avoid forks. The arguments
13555# must be portable across $(()) and expr.
13556if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13557  eval 'as_fn_arith ()
13558  {
13559    as_val=$(( $* ))
13560  }'
13561else
13562  as_fn_arith ()
13563  {
13564    as_val=`expr "$@" || test $? -eq 1`
13565  }
13566fi # as_fn_arith
13567
13568
13569if expr a : '\(a\)' >/dev/null 2>&1 &&
13570   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13571  as_expr=expr
13572else
13573  as_expr=false
13574fi
13575
13576if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13577  as_basename=basename
13578else
13579  as_basename=false
13580fi
13581
13582if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13583  as_dirname=dirname
13584else
13585  as_dirname=false
13586fi
13587
13588as_me=`$as_basename -- "$0" ||
13589$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13590	 X"$0" : 'X\(//\)$' \| \
13591	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13592$as_echo X/"$0" |
13593    sed '/^.*\/\([^/][^/]*\)\/*$/{
13594	    s//\1/
13595	    q
13596	  }
13597	  /^X\/\(\/\/\)$/{
13598	    s//\1/
13599	    q
13600	  }
13601	  /^X\/\(\/\).*/{
13602	    s//\1/
13603	    q
13604	  }
13605	  s/.*/./; q'`
13606
13607# Avoid depending upon Character Ranges.
13608as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13609as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13610as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13611as_cr_digits='0123456789'
13612as_cr_alnum=$as_cr_Letters$as_cr_digits
13613
13614ECHO_C= ECHO_N= ECHO_T=
13615case `echo -n x` in #(((((
13616-n*)
13617  case `echo 'xy\c'` in
13618  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13619  xy)  ECHO_C='\c';;
13620  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13621       ECHO_T='	';;
13622  esac;;
13623*)
13624  ECHO_N='-n';;
13625esac
13626
13627rm -f conf$$ conf$$.exe conf$$.file
13628if test -d conf$$.dir; then
13629  rm -f conf$$.dir/conf$$.file
13630else
13631  rm -f conf$$.dir
13632  mkdir conf$$.dir 2>/dev/null
13633fi
13634if (echo >conf$$.file) 2>/dev/null; then
13635  if ln -s conf$$.file conf$$ 2>/dev/null; then
13636    as_ln_s='ln -s'
13637    # ... but there are two gotchas:
13638    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13639    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13640    # In both cases, we have to default to `cp -pR'.
13641    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13642      as_ln_s='cp -pR'
13643  elif ln conf$$.file conf$$ 2>/dev/null; then
13644    as_ln_s=ln
13645  else
13646    as_ln_s='cp -pR'
13647  fi
13648else
13649  as_ln_s='cp -pR'
13650fi
13651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13652rmdir conf$$.dir 2>/dev/null
13653
13654
13655# as_fn_mkdir_p
13656# -------------
13657# Create "$as_dir" as a directory, including parents if necessary.
13658as_fn_mkdir_p ()
13659{
13660
13661  case $as_dir in #(
13662  -*) as_dir=./$as_dir;;
13663  esac
13664  test -d "$as_dir" || eval $as_mkdir_p || {
13665    as_dirs=
13666    while :; do
13667      case $as_dir in #(
13668      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13669      *) as_qdir=$as_dir;;
13670      esac
13671      as_dirs="'$as_qdir' $as_dirs"
13672      as_dir=`$as_dirname -- "$as_dir" ||
13673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13674	 X"$as_dir" : 'X\(//\)[^/]' \| \
13675	 X"$as_dir" : 'X\(//\)$' \| \
13676	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13677$as_echo X"$as_dir" |
13678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13679	    s//\1/
13680	    q
13681	  }
13682	  /^X\(\/\/\)[^/].*/{
13683	    s//\1/
13684	    q
13685	  }
13686	  /^X\(\/\/\)$/{
13687	    s//\1/
13688	    q
13689	  }
13690	  /^X\(\/\).*/{
13691	    s//\1/
13692	    q
13693	  }
13694	  s/.*/./; q'`
13695      test -d "$as_dir" && break
13696    done
13697    test -z "$as_dirs" || eval "mkdir $as_dirs"
13698  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13699
13700
13701} # as_fn_mkdir_p
13702if mkdir -p . 2>/dev/null; then
13703  as_mkdir_p='mkdir -p "$as_dir"'
13704else
13705  test -d ./-p && rmdir ./-p
13706  as_mkdir_p=false
13707fi
13708
13709
13710# as_fn_executable_p FILE
13711# -----------------------
13712# Test if FILE is an executable regular file.
13713as_fn_executable_p ()
13714{
13715  test -f "$1" && test -x "$1"
13716} # as_fn_executable_p
13717as_test_x='test -x'
13718as_executable_p=as_fn_executable_p
13719
13720# Sed expression to map a string onto a valid CPP name.
13721as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13722
13723# Sed expression to map a string onto a valid variable name.
13724as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13725
13726
13727exec 6>&1
13728## ----------------------------------- ##
13729## Main body of $CONFIG_STATUS script. ##
13730## ----------------------------------- ##
13731_ASEOF
13732test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13733
13734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735# Save the log message, to keep $0 and so on meaningful, and to
13736# report actual input values of CONFIG_FILES etc. instead of their
13737# values after options handling.
13738ac_log="
13739This file was extended by iperf $as_me 3.6+, which was
13740generated by GNU Autoconf 2.69.  Invocation command line was
13741
13742  CONFIG_FILES    = $CONFIG_FILES
13743  CONFIG_HEADERS  = $CONFIG_HEADERS
13744  CONFIG_LINKS    = $CONFIG_LINKS
13745  CONFIG_COMMANDS = $CONFIG_COMMANDS
13746  $ $0 $@
13747
13748on `(hostname || uname -n) 2>/dev/null | sed 1q`
13749"
13750
13751_ACEOF
13752
13753case $ac_config_files in *"
13754"*) set x $ac_config_files; shift; ac_config_files=$*;;
13755esac
13756
13757case $ac_config_headers in *"
13758"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13759esac
13760
13761
13762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13763# Files that config.status was made for.
13764config_files="$ac_config_files"
13765config_headers="$ac_config_headers"
13766config_commands="$ac_config_commands"
13767
13768_ACEOF
13769
13770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771ac_cs_usage="\
13772\`$as_me' instantiates files and other configuration actions
13773from templates according to the current configuration.  Unless the files
13774and actions are specified as TAGs, all are instantiated by default.
13775
13776Usage: $0 [OPTION]... [TAG]...
13777
13778  -h, --help       print this help, then exit
13779  -V, --version    print version number and configuration settings, then exit
13780      --config     print configuration, then exit
13781  -q, --quiet, --silent
13782                   do not print progress messages
13783  -d, --debug      don't remove temporary files
13784      --recheck    update $as_me by reconfiguring in the same conditions
13785      --file=FILE[:TEMPLATE]
13786                   instantiate the configuration file FILE
13787      --header=FILE[:TEMPLATE]
13788                   instantiate the configuration header FILE
13789
13790Configuration files:
13791$config_files
13792
13793Configuration headers:
13794$config_headers
13795
13796Configuration commands:
13797$config_commands
13798
13799Report bugs to <https://github.com/esnet/iperf>.
13800iperf home page: <https://software.es.net/iperf/>."
13801
13802_ACEOF
13803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13804ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13805ac_cs_version="\\
13806iperf config.status 3.6+
13807configured by $0, generated by GNU Autoconf 2.69,
13808  with options \\"\$ac_cs_config\\"
13809
13810Copyright (C) 2012 Free Software Foundation, Inc.
13811This config.status script is free software; the Free Software Foundation
13812gives unlimited permission to copy, distribute and modify it."
13813
13814ac_pwd='$ac_pwd'
13815srcdir='$srcdir'
13816INSTALL='$INSTALL'
13817MKDIR_P='$MKDIR_P'
13818AWK='$AWK'
13819test -n "\$AWK" || AWK=awk
13820_ACEOF
13821
13822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13823# The default lists apply if the user does not specify any file.
13824ac_need_defaults=:
13825while test $# != 0
13826do
13827  case $1 in
13828  --*=?*)
13829    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13830    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13831    ac_shift=:
13832    ;;
13833  --*=)
13834    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13835    ac_optarg=
13836    ac_shift=:
13837    ;;
13838  *)
13839    ac_option=$1
13840    ac_optarg=$2
13841    ac_shift=shift
13842    ;;
13843  esac
13844
13845  case $ac_option in
13846  # Handling of the options.
13847  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13848    ac_cs_recheck=: ;;
13849  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13850    $as_echo "$ac_cs_version"; exit ;;
13851  --config | --confi | --conf | --con | --co | --c )
13852    $as_echo "$ac_cs_config"; exit ;;
13853  --debug | --debu | --deb | --de | --d | -d )
13854    debug=: ;;
13855  --file | --fil | --fi | --f )
13856    $ac_shift
13857    case $ac_optarg in
13858    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13859    '') as_fn_error $? "missing file argument" ;;
13860    esac
13861    as_fn_append CONFIG_FILES " '$ac_optarg'"
13862    ac_need_defaults=false;;
13863  --header | --heade | --head | --hea )
13864    $ac_shift
13865    case $ac_optarg in
13866    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13867    esac
13868    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13869    ac_need_defaults=false;;
13870  --he | --h)
13871    # Conflict between --help and --header
13872    as_fn_error $? "ambiguous option: \`$1'
13873Try \`$0 --help' for more information.";;
13874  --help | --hel | -h )
13875    $as_echo "$ac_cs_usage"; exit ;;
13876  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13877  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13878    ac_cs_silent=: ;;
13879
13880  # This is an error.
13881  -*) as_fn_error $? "unrecognized option: \`$1'
13882Try \`$0 --help' for more information." ;;
13883
13884  *) as_fn_append ac_config_targets " $1"
13885     ac_need_defaults=false ;;
13886
13887  esac
13888  shift
13889done
13890
13891ac_configure_extra_args=
13892
13893if $ac_cs_silent; then
13894  exec 6>/dev/null
13895  ac_configure_extra_args="$ac_configure_extra_args --silent"
13896fi
13897
13898_ACEOF
13899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13900if \$ac_cs_recheck; then
13901  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13902  shift
13903  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13904  CONFIG_SHELL='$SHELL'
13905  export CONFIG_SHELL
13906  exec "\$@"
13907fi
13908
13909_ACEOF
13910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13911exec 5>>config.log
13912{
13913  echo
13914  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13915## Running $as_me. ##
13916_ASBOX
13917  $as_echo "$ac_log"
13918} >&5
13919
13920_ACEOF
13921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13922#
13923# INIT-COMMANDS
13924#
13925AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13926
13927
13928# The HP-UX ksh and POSIX shell print the target directory to stdout
13929# if CDPATH is set.
13930(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13931
13932sed_quote_subst='$sed_quote_subst'
13933double_quote_subst='$double_quote_subst'
13934delay_variable_subst='$delay_variable_subst'
13935macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13936macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13937enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13938enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13939pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13940enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13941shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13942SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13943ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13944PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13945host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13946host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13947host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13948build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13949build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13950build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13951SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13952Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13953GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13954EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13955FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13956LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13957NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13958LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13959max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13960ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13961exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13962lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13963lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13964lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13965lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13966lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13967reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13968reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13969OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13970deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13971file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13972file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13973want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13974DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13975sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13976AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13977AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13978archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13979STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13980RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13981old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13982old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13983old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13984lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13985CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13986CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13987compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13988GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13989lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13990lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13991lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13992lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13993lt_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"`'
13994lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13995nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13996lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13997lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13998objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13999MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14000lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14001lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14002lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14003lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14004lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14005need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14006MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14007DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14008NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14009LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14010OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14011OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14012libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14013shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14014extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14015archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14016enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14017export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14018whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14019compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14020old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14021old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14022archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14023archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14024module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14025module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14026with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14027allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14028no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14029hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14030hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14031hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14032hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14033hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14034hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14035hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14036inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14037link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14038always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14039export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14040exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14041include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14042prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14043postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14044file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14045variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14046need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14047need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14048version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14049runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14050shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14051shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14052libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14053library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14054soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14055install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14056postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14057postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14058finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14059finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14060hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14061sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14062configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14063configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14064hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14065enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14066enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14067enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14068old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14069striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14070
14071LTCC='$LTCC'
14072LTCFLAGS='$LTCFLAGS'
14073compiler='$compiler_DEFAULT'
14074
14075# A function that is used when there is no print builtin or printf.
14076func_fallback_echo ()
14077{
14078  eval 'cat <<_LTECHO_EOF
14079\$1
14080_LTECHO_EOF'
14081}
14082
14083# Quote evaled strings.
14084for var in SHELL \
14085ECHO \
14086PATH_SEPARATOR \
14087SED \
14088GREP \
14089EGREP \
14090FGREP \
14091LD \
14092NM \
14093LN_S \
14094lt_SP2NL \
14095lt_NL2SP \
14096reload_flag \
14097OBJDUMP \
14098deplibs_check_method \
14099file_magic_cmd \
14100file_magic_glob \
14101want_nocaseglob \
14102DLLTOOL \
14103sharedlib_from_linklib_cmd \
14104AR \
14105AR_FLAGS \
14106archiver_list_spec \
14107STRIP \
14108RANLIB \
14109CC \
14110CFLAGS \
14111compiler \
14112lt_cv_sys_global_symbol_pipe \
14113lt_cv_sys_global_symbol_to_cdecl \
14114lt_cv_sys_global_symbol_to_import \
14115lt_cv_sys_global_symbol_to_c_name_address \
14116lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14117lt_cv_nm_interface \
14118nm_file_list_spec \
14119lt_cv_truncate_bin \
14120lt_prog_compiler_no_builtin_flag \
14121lt_prog_compiler_pic \
14122lt_prog_compiler_wl \
14123lt_prog_compiler_static \
14124lt_cv_prog_compiler_c_o \
14125need_locks \
14126MANIFEST_TOOL \
14127DSYMUTIL \
14128NMEDIT \
14129LIPO \
14130OTOOL \
14131OTOOL64 \
14132shrext_cmds \
14133export_dynamic_flag_spec \
14134whole_archive_flag_spec \
14135compiler_needs_object \
14136with_gnu_ld \
14137allow_undefined_flag \
14138no_undefined_flag \
14139hardcode_libdir_flag_spec \
14140hardcode_libdir_separator \
14141exclude_expsyms \
14142include_expsyms \
14143file_list_spec \
14144variables_saved_for_relink \
14145libname_spec \
14146library_names_spec \
14147soname_spec \
14148install_override_mode \
14149finish_eval \
14150old_striplib \
14151striplib; do
14152    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14153    *[\\\\\\\`\\"\\\$]*)
14154      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14155      ;;
14156    *)
14157      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14158      ;;
14159    esac
14160done
14161
14162# Double-quote double-evaled strings.
14163for var in reload_cmds \
14164old_postinstall_cmds \
14165old_postuninstall_cmds \
14166old_archive_cmds \
14167extract_expsyms_cmds \
14168old_archive_from_new_cmds \
14169old_archive_from_expsyms_cmds \
14170archive_cmds \
14171archive_expsym_cmds \
14172module_cmds \
14173module_expsym_cmds \
14174export_symbols_cmds \
14175prelink_cmds \
14176postlink_cmds \
14177postinstall_cmds \
14178postuninstall_cmds \
14179finish_cmds \
14180sys_lib_search_path_spec \
14181configure_time_dlsearch_path \
14182configure_time_lt_sys_library_path; do
14183    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14184    *[\\\\\\\`\\"\\\$]*)
14185      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14186      ;;
14187    *)
14188      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14189      ;;
14190    esac
14191done
14192
14193ac_aux_dir='$ac_aux_dir'
14194
14195# See if we are running on zsh, and set the options that allow our
14196# commands through without removal of \ escapes INIT.
14197if test -n "\${ZSH_VERSION+set}"; then
14198   setopt NO_GLOB_SUBST
14199fi
14200
14201
14202    PACKAGE='$PACKAGE'
14203    VERSION='$VERSION'
14204    RM='$RM'
14205    ofile='$ofile'
14206
14207
14208
14209
14210_ACEOF
14211
14212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14213
14214# Handling of arguments.
14215for ac_config_target in $ac_config_targets
14216do
14217  case $ac_config_target in
14218    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
14219    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14220    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14221    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14222    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14223    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
14224    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14225    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
14226
14227  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14228  esac
14229done
14230
14231
14232# If the user did not use the arguments to specify the items to instantiate,
14233# then the envvar interface is used.  Set only those that are not.
14234# We use the long form for the default assignment because of an extremely
14235# bizarre bug on SunOS 4.1.3.
14236if $ac_need_defaults; then
14237  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14238  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14239  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14240fi
14241
14242# Have a temporary directory for convenience.  Make it in the build tree
14243# simply because there is no reason against having it here, and in addition,
14244# creating and moving files from /tmp can sometimes cause problems.
14245# Hook for its removal unless debugging.
14246# Note that there is a small window in which the directory will not be cleaned:
14247# after its creation but before its name has been assigned to `$tmp'.
14248$debug ||
14249{
14250  tmp= ac_tmp=
14251  trap 'exit_status=$?
14252  : "${ac_tmp:=$tmp}"
14253  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14254' 0
14255  trap 'as_fn_exit 1' 1 2 13 15
14256}
14257# Create a (secure) tmp directory for tmp files.
14258
14259{
14260  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14261  test -d "$tmp"
14262}  ||
14263{
14264  tmp=./conf$$-$RANDOM
14265  (umask 077 && mkdir "$tmp")
14266} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14267ac_tmp=$tmp
14268
14269# Set up the scripts for CONFIG_FILES section.
14270# No need to generate them if there are no CONFIG_FILES.
14271# This happens for instance with `./config.status config.h'.
14272if test -n "$CONFIG_FILES"; then
14273
14274
14275ac_cr=`echo X | tr X '\015'`
14276# On cygwin, bash can eat \r inside `` if the user requested igncr.
14277# But we know of no other shell where ac_cr would be empty at this
14278# point, so we can use a bashism as a fallback.
14279if test "x$ac_cr" = x; then
14280  eval ac_cr=\$\'\\r\'
14281fi
14282ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14283if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14284  ac_cs_awk_cr='\\r'
14285else
14286  ac_cs_awk_cr=$ac_cr
14287fi
14288
14289echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14290_ACEOF
14291
14292
14293{
14294  echo "cat >conf$$subs.awk <<_ACEOF" &&
14295  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14296  echo "_ACEOF"
14297} >conf$$subs.sh ||
14298  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14299ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14300ac_delim='%!_!# '
14301for ac_last_try in false false false false false :; do
14302  . ./conf$$subs.sh ||
14303    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14304
14305  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14306  if test $ac_delim_n = $ac_delim_num; then
14307    break
14308  elif $ac_last_try; then
14309    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14310  else
14311    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14312  fi
14313done
14314rm -f conf$$subs.sh
14315
14316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14317cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14318_ACEOF
14319sed -n '
14320h
14321s/^/S["/; s/!.*/"]=/
14322p
14323g
14324s/^[^!]*!//
14325:repl
14326t repl
14327s/'"$ac_delim"'$//
14328t delim
14329:nl
14330h
14331s/\(.\{148\}\)..*/\1/
14332t more1
14333s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14334p
14335n
14336b repl
14337:more1
14338s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14339p
14340g
14341s/.\{148\}//
14342t nl
14343:delim
14344h
14345s/\(.\{148\}\)..*/\1/
14346t more2
14347s/["\\]/\\&/g; s/^/"/; s/$/"/
14348p
14349b
14350:more2
14351s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14352p
14353g
14354s/.\{148\}//
14355t delim
14356' <conf$$subs.awk | sed '
14357/^[^""]/{
14358  N
14359  s/\n//
14360}
14361' >>$CONFIG_STATUS || ac_write_fail=1
14362rm -f conf$$subs.awk
14363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14364_ACAWK
14365cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14366  for (key in S) S_is_set[key] = 1
14367  FS = ""
14368
14369}
14370{
14371  line = $ 0
14372  nfields = split(line, field, "@")
14373  substed = 0
14374  len = length(field[1])
14375  for (i = 2; i < nfields; i++) {
14376    key = field[i]
14377    keylen = length(key)
14378    if (S_is_set[key]) {
14379      value = S[key]
14380      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14381      len += length(value) + length(field[++i])
14382      substed = 1
14383    } else
14384      len += 1 + keylen
14385  }
14386
14387  print line
14388}
14389
14390_ACAWK
14391_ACEOF
14392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14393if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14394  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14395else
14396  cat
14397fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14398  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14399_ACEOF
14400
14401# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14402# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14403# trailing colons and then remove the whole line if VPATH becomes empty
14404# (actually we leave an empty line to preserve line numbers).
14405if test "x$srcdir" = x.; then
14406  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14407h
14408s///
14409s/^/:/
14410s/[	 ]*$/:/
14411s/:\$(srcdir):/:/g
14412s/:\${srcdir}:/:/g
14413s/:@srcdir@:/:/g
14414s/^:*//
14415s/:*$//
14416x
14417s/\(=[	 ]*\).*/\1/
14418G
14419s/\n//
14420s/^[^=]*=[	 ]*$//
14421}'
14422fi
14423
14424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14425fi # test -n "$CONFIG_FILES"
14426
14427# Set up the scripts for CONFIG_HEADERS section.
14428# No need to generate them if there are no CONFIG_HEADERS.
14429# This happens for instance with `./config.status Makefile'.
14430if test -n "$CONFIG_HEADERS"; then
14431cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14432BEGIN {
14433_ACEOF
14434
14435# Transform confdefs.h into an awk script `defines.awk', embedded as
14436# here-document in config.status, that substitutes the proper values into
14437# config.h.in to produce config.h.
14438
14439# Create a delimiter string that does not exist in confdefs.h, to ease
14440# handling of long lines.
14441ac_delim='%!_!# '
14442for ac_last_try in false false :; do
14443  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14444  if test -z "$ac_tt"; then
14445    break
14446  elif $ac_last_try; then
14447    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14448  else
14449    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14450  fi
14451done
14452
14453# For the awk script, D is an array of macro values keyed by name,
14454# likewise P contains macro parameters if any.  Preserve backslash
14455# newline sequences.
14456
14457ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14458sed -n '
14459s/.\{148\}/&'"$ac_delim"'/g
14460t rset
14461:rset
14462s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14463t def
14464d
14465:def
14466s/\\$//
14467t bsnl
14468s/["\\]/\\&/g
14469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14470D["\1"]=" \3"/p
14471s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14472d
14473:bsnl
14474s/["\\]/\\&/g
14475s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14476D["\1"]=" \3\\\\\\n"\\/p
14477t cont
14478s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14479t cont
14480d
14481:cont
14482n
14483s/.\{148\}/&'"$ac_delim"'/g
14484t clear
14485:clear
14486s/\\$//
14487t bsnlc
14488s/["\\]/\\&/g; s/^/"/; s/$/"/p
14489d
14490:bsnlc
14491s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14492b cont
14493' <confdefs.h | sed '
14494s/'"$ac_delim"'/"\\\
14495"/g' >>$CONFIG_STATUS || ac_write_fail=1
14496
14497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14498  for (key in D) D_is_set[key] = 1
14499  FS = ""
14500}
14501/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14502  line = \$ 0
14503  split(line, arg, " ")
14504  if (arg[1] == "#") {
14505    defundef = arg[2]
14506    mac1 = arg[3]
14507  } else {
14508    defundef = substr(arg[1], 2)
14509    mac1 = arg[2]
14510  }
14511  split(mac1, mac2, "(") #)
14512  macro = mac2[1]
14513  prefix = substr(line, 1, index(line, defundef) - 1)
14514  if (D_is_set[macro]) {
14515    # Preserve the white space surrounding the "#".
14516    print prefix "define", macro P[macro] D[macro]
14517    next
14518  } else {
14519    # Replace #undef with comments.  This is necessary, for example,
14520    # in the case of _POSIX_SOURCE, which is predefined and required
14521    # on some systems where configure will not decide to define it.
14522    if (defundef == "undef") {
14523      print "/*", prefix defundef, macro, "*/"
14524      next
14525    }
14526  }
14527}
14528{ print }
14529_ACAWK
14530_ACEOF
14531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14532  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14533fi # test -n "$CONFIG_HEADERS"
14534
14535
14536eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14537shift
14538for ac_tag
14539do
14540  case $ac_tag in
14541  :[FHLC]) ac_mode=$ac_tag; continue;;
14542  esac
14543  case $ac_mode$ac_tag in
14544  :[FHL]*:*);;
14545  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14546  :[FH]-) ac_tag=-:-;;
14547  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14548  esac
14549  ac_save_IFS=$IFS
14550  IFS=:
14551  set x $ac_tag
14552  IFS=$ac_save_IFS
14553  shift
14554  ac_file=$1
14555  shift
14556
14557  case $ac_mode in
14558  :L) ac_source=$1;;
14559  :[FH])
14560    ac_file_inputs=
14561    for ac_f
14562    do
14563      case $ac_f in
14564      -) ac_f="$ac_tmp/stdin";;
14565      *) # Look for the file first in the build tree, then in the source tree
14566	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14567	 # because $ac_f cannot contain `:'.
14568	 test -f "$ac_f" ||
14569	   case $ac_f in
14570	   [\\/$]*) false;;
14571	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14572	   esac ||
14573	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14574      esac
14575      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14576      as_fn_append ac_file_inputs " '$ac_f'"
14577    done
14578
14579    # Let's still pretend it is `configure' which instantiates (i.e., don't
14580    # use $as_me), people would be surprised to read:
14581    #    /* config.h.  Generated by config.status.  */
14582    configure_input='Generated from '`
14583	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14584	`' by configure.'
14585    if test x"$ac_file" != x-; then
14586      configure_input="$ac_file.  $configure_input"
14587      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14588$as_echo "$as_me: creating $ac_file" >&6;}
14589    fi
14590    # Neutralize special characters interpreted by sed in replacement strings.
14591    case $configure_input in #(
14592    *\&* | *\|* | *\\* )
14593       ac_sed_conf_input=`$as_echo "$configure_input" |
14594       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14595    *) ac_sed_conf_input=$configure_input;;
14596    esac
14597
14598    case $ac_tag in
14599    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14600      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14601    esac
14602    ;;
14603  esac
14604
14605  ac_dir=`$as_dirname -- "$ac_file" ||
14606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14607	 X"$ac_file" : 'X\(//\)[^/]' \| \
14608	 X"$ac_file" : 'X\(//\)$' \| \
14609	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14610$as_echo X"$ac_file" |
14611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14612	    s//\1/
14613	    q
14614	  }
14615	  /^X\(\/\/\)[^/].*/{
14616	    s//\1/
14617	    q
14618	  }
14619	  /^X\(\/\/\)$/{
14620	    s//\1/
14621	    q
14622	  }
14623	  /^X\(\/\).*/{
14624	    s//\1/
14625	    q
14626	  }
14627	  s/.*/./; q'`
14628  as_dir="$ac_dir"; as_fn_mkdir_p
14629  ac_builddir=.
14630
14631case "$ac_dir" in
14632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14633*)
14634  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14635  # A ".." for each directory in $ac_dir_suffix.
14636  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14637  case $ac_top_builddir_sub in
14638  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14639  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14640  esac ;;
14641esac
14642ac_abs_top_builddir=$ac_pwd
14643ac_abs_builddir=$ac_pwd$ac_dir_suffix
14644# for backward compatibility:
14645ac_top_builddir=$ac_top_build_prefix
14646
14647case $srcdir in
14648  .)  # We are building in place.
14649    ac_srcdir=.
14650    ac_top_srcdir=$ac_top_builddir_sub
14651    ac_abs_top_srcdir=$ac_pwd ;;
14652  [\\/]* | ?:[\\/]* )  # Absolute name.
14653    ac_srcdir=$srcdir$ac_dir_suffix;
14654    ac_top_srcdir=$srcdir
14655    ac_abs_top_srcdir=$srcdir ;;
14656  *) # Relative name.
14657    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14658    ac_top_srcdir=$ac_top_build_prefix$srcdir
14659    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14660esac
14661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14662
14663
14664  case $ac_mode in
14665  :F)
14666  #
14667  # CONFIG_FILE
14668  #
14669
14670  case $INSTALL in
14671  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14672  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14673  esac
14674  ac_MKDIR_P=$MKDIR_P
14675  case $MKDIR_P in
14676  [\\/$]* | ?:[\\/]* ) ;;
14677  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14678  esac
14679_ACEOF
14680
14681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14682# If the template does not know about datarootdir, expand it.
14683# FIXME: This hack should be removed a few years after 2.60.
14684ac_datarootdir_hack=; ac_datarootdir_seen=
14685ac_sed_dataroot='
14686/datarootdir/ {
14687  p
14688  q
14689}
14690/@datadir@/p
14691/@docdir@/p
14692/@infodir@/p
14693/@localedir@/p
14694/@mandir@/p'
14695case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14696*datarootdir*) ac_datarootdir_seen=yes;;
14697*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14698  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14699$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14700_ACEOF
14701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14702  ac_datarootdir_hack='
14703  s&@datadir@&$datadir&g
14704  s&@docdir@&$docdir&g
14705  s&@infodir@&$infodir&g
14706  s&@localedir@&$localedir&g
14707  s&@mandir@&$mandir&g
14708  s&\\\${datarootdir}&$datarootdir&g' ;;
14709esac
14710_ACEOF
14711
14712# Neutralize VPATH when `$srcdir' = `.'.
14713# Shell code in configure.ac might set extrasub.
14714# FIXME: do we really want to maintain this feature?
14715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14716ac_sed_extra="$ac_vpsub
14717$extrasub
14718_ACEOF
14719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14720:t
14721/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14722s|@configure_input@|$ac_sed_conf_input|;t t
14723s&@top_builddir@&$ac_top_builddir_sub&;t t
14724s&@top_build_prefix@&$ac_top_build_prefix&;t t
14725s&@srcdir@&$ac_srcdir&;t t
14726s&@abs_srcdir@&$ac_abs_srcdir&;t t
14727s&@top_srcdir@&$ac_top_srcdir&;t t
14728s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14729s&@builddir@&$ac_builddir&;t t
14730s&@abs_builddir@&$ac_abs_builddir&;t t
14731s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14732s&@INSTALL@&$ac_INSTALL&;t t
14733s&@MKDIR_P@&$ac_MKDIR_P&;t t
14734$ac_datarootdir_hack
14735"
14736eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14737  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14738
14739test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14740  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14741  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14742      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14743  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14744which seems to be undefined.  Please make sure it is defined" >&5
14745$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14746which seems to be undefined.  Please make sure it is defined" >&2;}
14747
14748  rm -f "$ac_tmp/stdin"
14749  case $ac_file in
14750  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14751  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14752  esac \
14753  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14754 ;;
14755  :H)
14756  #
14757  # CONFIG_HEADER
14758  #
14759  if test x"$ac_file" != x-; then
14760    {
14761      $as_echo "/* $configure_input  */" \
14762      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14763    } >"$ac_tmp/config.h" \
14764      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14765    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14766      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14767$as_echo "$as_me: $ac_file is unchanged" >&6;}
14768    else
14769      rm -f "$ac_file"
14770      mv "$ac_tmp/config.h" "$ac_file" \
14771	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14772    fi
14773  else
14774    $as_echo "/* $configure_input  */" \
14775      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14776      || as_fn_error $? "could not create -" "$LINENO" 5
14777  fi
14778# Compute "$ac_file"'s index in $config_headers.
14779_am_arg="$ac_file"
14780_am_stamp_count=1
14781for _am_header in $config_headers :; do
14782  case $_am_header in
14783    $_am_arg | $_am_arg:* )
14784      break ;;
14785    * )
14786      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14787  esac
14788done
14789echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14790$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14791	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14792	 X"$_am_arg" : 'X\(//\)$' \| \
14793	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14794$as_echo X"$_am_arg" |
14795    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14796	    s//\1/
14797	    q
14798	  }
14799	  /^X\(\/\/\)[^/].*/{
14800	    s//\1/
14801	    q
14802	  }
14803	  /^X\(\/\/\)$/{
14804	    s//\1/
14805	    q
14806	  }
14807	  /^X\(\/\).*/{
14808	    s//\1/
14809	    q
14810	  }
14811	  s/.*/./; q'`/stamp-h$_am_stamp_count
14812 ;;
14813
14814  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14815$as_echo "$as_me: executing $ac_file commands" >&6;}
14816 ;;
14817  esac
14818
14819
14820  case $ac_file$ac_mode in
14821    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14822  # Older Autoconf quotes --file arguments for eval, but not when files
14823  # are listed without --file.  Let's play safe and only enable the eval
14824  # if we detect the quoting.
14825  # TODO: see whether this extra hack can be removed once we start
14826  # requiring Autoconf 2.70 or later.
14827  case $CONFIG_FILES in #(
14828  *\'*) :
14829    eval set x "$CONFIG_FILES" ;; #(
14830  *) :
14831    set x $CONFIG_FILES ;; #(
14832  *) :
14833     ;;
14834esac
14835  shift
14836  # Used to flag and report bootstrapping failures.
14837  am_rc=0
14838  for am_mf
14839  do
14840    # Strip MF so we end up with the name of the file.
14841    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14842    # Check whether this is an Automake generated Makefile which includes
14843    # dependency-tracking related rules and includes.
14844    # Grep'ing the whole file directly is not great: AIX grep has a line
14845    # limit of 2048, but all sed's we know have understand at least 4000.
14846    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14847      || continue
14848    am_dirpart=`$as_dirname -- "$am_mf" ||
14849$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14850	 X"$am_mf" : 'X\(//\)[^/]' \| \
14851	 X"$am_mf" : 'X\(//\)$' \| \
14852	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14853$as_echo X"$am_mf" |
14854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14855	    s//\1/
14856	    q
14857	  }
14858	  /^X\(\/\/\)[^/].*/{
14859	    s//\1/
14860	    q
14861	  }
14862	  /^X\(\/\/\)$/{
14863	    s//\1/
14864	    q
14865	  }
14866	  /^X\(\/\).*/{
14867	    s//\1/
14868	    q
14869	  }
14870	  s/.*/./; q'`
14871    am_filepart=`$as_basename -- "$am_mf" ||
14872$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14873	 X"$am_mf" : 'X\(//\)$' \| \
14874	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14875$as_echo X/"$am_mf" |
14876    sed '/^.*\/\([^/][^/]*\)\/*$/{
14877	    s//\1/
14878	    q
14879	  }
14880	  /^X\/\(\/\/\)$/{
14881	    s//\1/
14882	    q
14883	  }
14884	  /^X\/\(\/\).*/{
14885	    s//\1/
14886	    q
14887	  }
14888	  s/.*/./; q'`
14889    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14890      && sed -e '/# am--include-marker/d' "$am_filepart" \
14891        | $MAKE -f - am--depfiles" >&5
14892   (cd "$am_dirpart" \
14893      && sed -e '/# am--include-marker/d' "$am_filepart" \
14894        | $MAKE -f - am--depfiles) >&5 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); } || am_rc=$?
14898  done
14899  if test $am_rc -ne 0; then
14900    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14902as_fn_error $? "Something went wrong bootstrapping makefile fragments
14903    for automatic dependency tracking.  Try re-running configure with the
14904    '--disable-dependency-tracking' option to at least be able to build
14905    the package (albeit without support for automatic dependency tracking).
14906See \`config.log' for more details" "$LINENO" 5; }
14907  fi
14908  { am_dirpart=; unset am_dirpart;}
14909  { am_filepart=; unset am_filepart;}
14910  { am_mf=; unset am_mf;}
14911  { am_rc=; unset am_rc;}
14912  rm -f conftest-deps.mk
14913}
14914 ;;
14915    "libtool":C)
14916
14917    # See if we are running on zsh, and set the options that allow our
14918    # commands through without removal of \ escapes.
14919    if test -n "${ZSH_VERSION+set}"; then
14920      setopt NO_GLOB_SUBST
14921    fi
14922
14923    cfgfile=${ofile}T
14924    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14925    $RM "$cfgfile"
14926
14927    cat <<_LT_EOF >> "$cfgfile"
14928#! $SHELL
14929# Generated automatically by $as_me ($PACKAGE) $VERSION
14930# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14931# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14932
14933# Provide generalized library-building support services.
14934# Written by Gordon Matzigkeit, 1996
14935
14936# Copyright (C) 2014 Free Software Foundation, Inc.
14937# This is free software; see the source for copying conditions.  There is NO
14938# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14939
14940# GNU Libtool is free software; you can redistribute it and/or modify
14941# it under the terms of the GNU General Public License as published by
14942# the Free Software Foundation; either version 2 of of the License, or
14943# (at your option) any later version.
14944#
14945# As a special exception to the GNU General Public License, if you
14946# distribute this file as part of a program or library that is built
14947# using GNU Libtool, you may include this file under the  same
14948# distribution terms that you use for the rest of that program.
14949#
14950# GNU Libtool is distributed in the hope that it will be useful, but
14951# WITHOUT ANY WARRANTY; without even the implied warranty of
14952# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14953# GNU General Public License for more details.
14954#
14955# You should have received a copy of the GNU General Public License
14956# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14957
14958
14959# The names of the tagged configurations supported by this script.
14960available_tags=''
14961
14962# Configured defaults for sys_lib_dlsearch_path munging.
14963: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14964
14965# ### BEGIN LIBTOOL CONFIG
14966
14967# Which release of libtool.m4 was used?
14968macro_version=$macro_version
14969macro_revision=$macro_revision
14970
14971# Whether or not to build shared libraries.
14972build_libtool_libs=$enable_shared
14973
14974# Whether or not to build static libraries.
14975build_old_libs=$enable_static
14976
14977# What type of objects to build.
14978pic_mode=$pic_mode
14979
14980# Whether or not to optimize for fast installation.
14981fast_install=$enable_fast_install
14982
14983# Shared archive member basename,for filename based shared library versioning on AIX.
14984shared_archive_member_spec=$shared_archive_member_spec
14985
14986# Shell to use when invoking shell scripts.
14987SHELL=$lt_SHELL
14988
14989# An echo program that protects backslashes.
14990ECHO=$lt_ECHO
14991
14992# The PATH separator for the build system.
14993PATH_SEPARATOR=$lt_PATH_SEPARATOR
14994
14995# The host system.
14996host_alias=$host_alias
14997host=$host
14998host_os=$host_os
14999
15000# The build system.
15001build_alias=$build_alias
15002build=$build
15003build_os=$build_os
15004
15005# A sed program that does not truncate output.
15006SED=$lt_SED
15007
15008# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15009Xsed="\$SED -e 1s/^X//"
15010
15011# A grep program that handles long lines.
15012GREP=$lt_GREP
15013
15014# An ERE matcher.
15015EGREP=$lt_EGREP
15016
15017# A literal string matcher.
15018FGREP=$lt_FGREP
15019
15020# A BSD- or MS-compatible name lister.
15021NM=$lt_NM
15022
15023# Whether we need soft or hard links.
15024LN_S=$lt_LN_S
15025
15026# What is the maximum length of a command?
15027max_cmd_len=$max_cmd_len
15028
15029# Object file suffix (normally "o").
15030objext=$ac_objext
15031
15032# Executable file suffix (normally "").
15033exeext=$exeext
15034
15035# whether the shell understands "unset".
15036lt_unset=$lt_unset
15037
15038# turn spaces into newlines.
15039SP2NL=$lt_lt_SP2NL
15040
15041# turn newlines into spaces.
15042NL2SP=$lt_lt_NL2SP
15043
15044# convert \$build file names to \$host format.
15045to_host_file_cmd=$lt_cv_to_host_file_cmd
15046
15047# convert \$build files to toolchain format.
15048to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15049
15050# An object symbol dumper.
15051OBJDUMP=$lt_OBJDUMP
15052
15053# Method to check whether dependent libraries are shared objects.
15054deplibs_check_method=$lt_deplibs_check_method
15055
15056# Command to use when deplibs_check_method = "file_magic".
15057file_magic_cmd=$lt_file_magic_cmd
15058
15059# How to find potential files when deplibs_check_method = "file_magic".
15060file_magic_glob=$lt_file_magic_glob
15061
15062# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15063want_nocaseglob=$lt_want_nocaseglob
15064
15065# DLL creation program.
15066DLLTOOL=$lt_DLLTOOL
15067
15068# Command to associate shared and link libraries.
15069sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15070
15071# The archiver.
15072AR=$lt_AR
15073
15074# Flags to create an archive.
15075AR_FLAGS=$lt_AR_FLAGS
15076
15077# How to feed a file listing to the archiver.
15078archiver_list_spec=$lt_archiver_list_spec
15079
15080# A symbol stripping program.
15081STRIP=$lt_STRIP
15082
15083# Commands used to install an old-style archive.
15084RANLIB=$lt_RANLIB
15085old_postinstall_cmds=$lt_old_postinstall_cmds
15086old_postuninstall_cmds=$lt_old_postuninstall_cmds
15087
15088# Whether to use a lock for old archive extraction.
15089lock_old_archive_extraction=$lock_old_archive_extraction
15090
15091# A C compiler.
15092LTCC=$lt_CC
15093
15094# LTCC compiler flags.
15095LTCFLAGS=$lt_CFLAGS
15096
15097# Take the output of nm and produce a listing of raw symbols and C names.
15098global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15099
15100# Transform the output of nm in a proper C declaration.
15101global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15102
15103# Transform the output of nm into a list of symbols to manually relocate.
15104global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15105
15106# Transform the output of nm in a C name address pair.
15107global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15108
15109# Transform the output of nm in a C name address pair when lib prefix is needed.
15110global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15111
15112# The name lister interface.
15113nm_interface=$lt_lt_cv_nm_interface
15114
15115# Specify filename containing input files for \$NM.
15116nm_file_list_spec=$lt_nm_file_list_spec
15117
15118# The root where to search for dependent libraries,and where our libraries should be installed.
15119lt_sysroot=$lt_sysroot
15120
15121# Command to truncate a binary pipe.
15122lt_truncate_bin=$lt_lt_cv_truncate_bin
15123
15124# The name of the directory that contains temporary libtool files.
15125objdir=$objdir
15126
15127# Used to examine libraries when file_magic_cmd begins with "file".
15128MAGIC_CMD=$MAGIC_CMD
15129
15130# Must we lock files when doing compilation?
15131need_locks=$lt_need_locks
15132
15133# Manifest tool.
15134MANIFEST_TOOL=$lt_MANIFEST_TOOL
15135
15136# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15137DSYMUTIL=$lt_DSYMUTIL
15138
15139# Tool to change global to local symbols on Mac OS X.
15140NMEDIT=$lt_NMEDIT
15141
15142# Tool to manipulate fat objects and archives on Mac OS X.
15143LIPO=$lt_LIPO
15144
15145# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15146OTOOL=$lt_OTOOL
15147
15148# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15149OTOOL64=$lt_OTOOL64
15150
15151# Old archive suffix (normally "a").
15152libext=$libext
15153
15154# Shared library suffix (normally ".so").
15155shrext_cmds=$lt_shrext_cmds
15156
15157# The commands to extract the exported symbol list from a shared archive.
15158extract_expsyms_cmds=$lt_extract_expsyms_cmds
15159
15160# Variables whose values should be saved in libtool wrapper scripts and
15161# restored at link time.
15162variables_saved_for_relink=$lt_variables_saved_for_relink
15163
15164# Do we need the "lib" prefix for modules?
15165need_lib_prefix=$need_lib_prefix
15166
15167# Do we need a version for libraries?
15168need_version=$need_version
15169
15170# Library versioning type.
15171version_type=$version_type
15172
15173# Shared library runtime path variable.
15174runpath_var=$runpath_var
15175
15176# Shared library path variable.
15177shlibpath_var=$shlibpath_var
15178
15179# Is shlibpath searched before the hard-coded library search path?
15180shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15181
15182# Format of library name prefix.
15183libname_spec=$lt_libname_spec
15184
15185# List of archive names.  First name is the real one, the rest are links.
15186# The last name is the one that the linker finds with -lNAME
15187library_names_spec=$lt_library_names_spec
15188
15189# The coded name of the library, if different from the real name.
15190soname_spec=$lt_soname_spec
15191
15192# Permission mode override for installation of shared libraries.
15193install_override_mode=$lt_install_override_mode
15194
15195# Command to use after installation of a shared archive.
15196postinstall_cmds=$lt_postinstall_cmds
15197
15198# Command to use after uninstallation of a shared archive.
15199postuninstall_cmds=$lt_postuninstall_cmds
15200
15201# Commands used to finish a libtool library installation in a directory.
15202finish_cmds=$lt_finish_cmds
15203
15204# As "finish_cmds", except a single script fragment to be evaled but
15205# not shown.
15206finish_eval=$lt_finish_eval
15207
15208# Whether we should hardcode library paths into libraries.
15209hardcode_into_libs=$hardcode_into_libs
15210
15211# Compile-time system search path for libraries.
15212sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15213
15214# Detected run-time system search path for libraries.
15215sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15216
15217# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15218configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15219
15220# Whether dlopen is supported.
15221dlopen_support=$enable_dlopen
15222
15223# Whether dlopen of programs is supported.
15224dlopen_self=$enable_dlopen_self
15225
15226# Whether dlopen of statically linked programs is supported.
15227dlopen_self_static=$enable_dlopen_self_static
15228
15229# Commands to strip libraries.
15230old_striplib=$lt_old_striplib
15231striplib=$lt_striplib
15232
15233
15234# The linker used to build libraries.
15235LD=$lt_LD
15236
15237# How to create reloadable object files.
15238reload_flag=$lt_reload_flag
15239reload_cmds=$lt_reload_cmds
15240
15241# Commands used to build an old-style archive.
15242old_archive_cmds=$lt_old_archive_cmds
15243
15244# A language specific compiler.
15245CC=$lt_compiler
15246
15247# Is the compiler the GNU compiler?
15248with_gcc=$GCC
15249
15250# Compiler flag to turn off builtin functions.
15251no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15252
15253# Additional compiler flags for building library objects.
15254pic_flag=$lt_lt_prog_compiler_pic
15255
15256# How to pass a linker flag through the compiler.
15257wl=$lt_lt_prog_compiler_wl
15258
15259# Compiler flag to prevent dynamic linking.
15260link_static_flag=$lt_lt_prog_compiler_static
15261
15262# Does compiler simultaneously support -c and -o options?
15263compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15264
15265# Whether or not to add -lc for building shared libraries.
15266build_libtool_need_lc=$archive_cmds_need_lc
15267
15268# Whether or not to disallow shared libs when runtime libs are static.
15269allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15270
15271# Compiler flag to allow reflexive dlopens.
15272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15273
15274# Compiler flag to generate shared objects directly from archives.
15275whole_archive_flag_spec=$lt_whole_archive_flag_spec
15276
15277# Whether the compiler copes with passing no objects directly.
15278compiler_needs_object=$lt_compiler_needs_object
15279
15280# Create an old-style archive from a shared archive.
15281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15282
15283# Create a temporary old-style archive to link instead of a shared archive.
15284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15285
15286# Commands used to build a shared archive.
15287archive_cmds=$lt_archive_cmds
15288archive_expsym_cmds=$lt_archive_expsym_cmds
15289
15290# Commands used to build a loadable module if different from building
15291# a shared archive.
15292module_cmds=$lt_module_cmds
15293module_expsym_cmds=$lt_module_expsym_cmds
15294
15295# Whether we are building with GNU ld or not.
15296with_gnu_ld=$lt_with_gnu_ld
15297
15298# Flag that allows shared libraries with undefined symbols to be built.
15299allow_undefined_flag=$lt_allow_undefined_flag
15300
15301# Flag that enforces no undefined symbols.
15302no_undefined_flag=$lt_no_undefined_flag
15303
15304# Flag to hardcode \$libdir into a binary during linking.
15305# This must work even if \$libdir does not exist
15306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15307
15308# Whether we need a single "-rpath" flag with a separated argument.
15309hardcode_libdir_separator=$lt_hardcode_libdir_separator
15310
15311# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15312# DIR into the resulting binary.
15313hardcode_direct=$hardcode_direct
15314
15315# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15316# DIR into the resulting binary and the resulting library dependency is
15317# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15318# library is relocated.
15319hardcode_direct_absolute=$hardcode_direct_absolute
15320
15321# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15322# into the resulting binary.
15323hardcode_minus_L=$hardcode_minus_L
15324
15325# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15326# into the resulting binary.
15327hardcode_shlibpath_var=$hardcode_shlibpath_var
15328
15329# Set to "yes" if building a shared library automatically hardcodes DIR
15330# into the library and all subsequent libraries and executables linked
15331# against it.
15332hardcode_automatic=$hardcode_automatic
15333
15334# Set to yes if linker adds runtime paths of dependent libraries
15335# to runtime path list.
15336inherit_rpath=$inherit_rpath
15337
15338# Whether libtool must link a program against all its dependency libraries.
15339link_all_deplibs=$link_all_deplibs
15340
15341# Set to "yes" if exported symbols are required.
15342always_export_symbols=$always_export_symbols
15343
15344# The commands to list exported symbols.
15345export_symbols_cmds=$lt_export_symbols_cmds
15346
15347# Symbols that should not be listed in the preloaded symbols.
15348exclude_expsyms=$lt_exclude_expsyms
15349
15350# Symbols that must always be exported.
15351include_expsyms=$lt_include_expsyms
15352
15353# Commands necessary for linking programs (against libraries) with templates.
15354prelink_cmds=$lt_prelink_cmds
15355
15356# Commands necessary for finishing linking programs.
15357postlink_cmds=$lt_postlink_cmds
15358
15359# Specify filename containing input files.
15360file_list_spec=$lt_file_list_spec
15361
15362# How to hardcode a shared library path into an executable.
15363hardcode_action=$hardcode_action
15364
15365# ### END LIBTOOL CONFIG
15366
15367_LT_EOF
15368
15369    cat <<'_LT_EOF' >> "$cfgfile"
15370
15371# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15372
15373# func_munge_path_list VARIABLE PATH
15374# -----------------------------------
15375# VARIABLE is name of variable containing _space_ separated list of
15376# directories to be munged by the contents of PATH, which is string
15377# having a format:
15378# "DIR[:DIR]:"
15379#       string "DIR[ DIR]" will be prepended to VARIABLE
15380# ":DIR[:DIR]"
15381#       string "DIR[ DIR]" will be appended to VARIABLE
15382# "DIRP[:DIRP]::[DIRA:]DIRA"
15383#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15384#       "DIRA[ DIRA]" will be appended to VARIABLE
15385# "DIR[:DIR]"
15386#       VARIABLE will be replaced by "DIR[ DIR]"
15387func_munge_path_list ()
15388{
15389    case x$2 in
15390    x)
15391        ;;
15392    *:)
15393        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15394        ;;
15395    x:*)
15396        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15397        ;;
15398    *::*)
15399        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15400        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15401        ;;
15402    *)
15403        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15404        ;;
15405    esac
15406}
15407
15408
15409# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15410func_cc_basename ()
15411{
15412    for cc_temp in $*""; do
15413      case $cc_temp in
15414        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15416        \-*) ;;
15417        *) break;;
15418      esac
15419    done
15420    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15421}
15422
15423
15424# ### END FUNCTIONS SHARED WITH CONFIGURE
15425
15426_LT_EOF
15427
15428  case $host_os in
15429  aix3*)
15430    cat <<\_LT_EOF >> "$cfgfile"
15431# AIX sometimes has problems with the GCC collect2 program.  For some
15432# reason, if we set the COLLECT_NAMES environment variable, the problems
15433# vanish in a puff of smoke.
15434if test set != "${COLLECT_NAMES+set}"; then
15435  COLLECT_NAMES=
15436  export COLLECT_NAMES
15437fi
15438_LT_EOF
15439    ;;
15440  esac
15441
15442
15443ltmain=$ac_aux_dir/ltmain.sh
15444
15445
15446  # We use sed instead of cat because bash on DJGPP gets confused if
15447  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15448  # text mode, it properly converts lines to CR/LF.  This bash problem
15449  # is reportedly fixed, but why not run on old versions too?
15450  sed '$q' "$ltmain" >> "$cfgfile" \
15451     || (rm -f "$cfgfile"; exit 1)
15452
15453   mv -f "$cfgfile" "$ofile" ||
15454    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15455  chmod +x "$ofile"
15456
15457 ;;
15458
15459  esac
15460done # for ac_tag
15461
15462
15463as_fn_exit 0
15464_ACEOF
15465ac_clean_files=$ac_clean_files_save
15466
15467test $ac_write_fail = 0 ||
15468  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15469
15470
15471# configure is writing to config.log, and then calls config.status.
15472# config.status does its own redirection, appending to config.log.
15473# Unfortunately, on DOS this fails, as config.log is still kept open
15474# by configure, so config.status won't be able to write to it; its
15475# output is simply discarded.  So we exec the FD to /dev/null,
15476# effectively closing config.log, so it can be properly (re)opened and
15477# appended to by config.status.  When coming back to configure, we
15478# need to make the FD available again.
15479if test "$no_create" != yes; then
15480  ac_cs_success=:
15481  ac_config_status_args=
15482  test "$silent" = yes &&
15483    ac_config_status_args="$ac_config_status_args --quiet"
15484  exec 5>/dev/null
15485  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15486  exec 5>>config.log
15487  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15488  # would make configure fail if this is the last instruction.
15489  $ac_cs_success || as_fn_exit 1
15490fi
15491if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15493$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15494fi
15495
15496