xref: /iperf/configure (revision 47985d7f)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for iperf 3.9+.
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.9+'
594PACKAGE_STRING='iperf 3.9+'
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
644MAINT
645MAINTAINER_MODE_FALSE
646MAINTAINER_MODE_TRUE
647CPP
648LT_SYS_LIBRARY_PATH
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693LIBTOOL
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
721ENABLE_STATIC_BIN_FALSE
722ENABLE_STATIC_BIN_TRUE
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL
761am__quote'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_static_bin
766enable_silent_rules
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771with_aix_soname
772enable_dependency_tracking
773with_gnu_ld
774with_sysroot
775enable_libtool_lock
776enable_maintainer_mode
777enable_profiling
778with_sctp
779with_openssl
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789LT_SYS_LIBRARY_PATH
790CPP'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  # Accept the important Cygnus configure options, so we can diagnose typos.
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures iperf 3.9+ to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of iperf 3.9+:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-static-bin     link iperf3 binary statically
1410  --enable-silent-rules   less verbose build output (undo: "make V=1")
1411  --disable-silent-rules  verbose build output (undo: "make V=0")
1412  --enable-shared[=PKGS]  build shared libraries [default=yes]
1413  --enable-static[=PKGS]  build static libraries [default=yes]
1414  --enable-fast-install[=PKGS]
1415                          optimize for fast installation [default=yes]
1416  --enable-dependency-tracking
1417                          do not reject slow dependency extractors
1418  --disable-dependency-tracking
1419                          speeds up one-time build
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --enable-maintainer-mode
1422                          enable make rules and dependencies not useful (and
1423                          sometimes confusing) to the casual installer
1424  --enable-profiling      Enable iperf3 profiling binary
1425
1426Optional Packages:
1427  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1430                          both]
1431  --with-aix-soname=aix|svr4|both
1432                          shared library versioning (aka "SONAME") variant to
1433                          provide on AIX, [default=aix].
1434  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1435  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1436                          compiler's sysroot if not specified).
1437  --without-sctp          disable SCTP
1438  --with-openssl=DIR      root of the OpenSSL directory
1439
1440Some influential environment variables:
1441  CC          C compiler command
1442  CFLAGS      C compiler flags
1443  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444              nonstandard directory <lib dir>
1445  LIBS        libraries to pass to the linker, e.g. -l<library>
1446  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447              you have headers in a nonstandard directory <include dir>
1448  LT_SYS_LIBRARY_PATH
1449              User-defined run-time library search path.
1450  CPP         C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <https://github.com/esnet/iperf>.
1456iperf home page: <https://software.es.net/iperf/>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for guested configure.
1503    if test -f "$ac_srcdir/configure.gnu"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506    elif test -f "$ac_srcdir/configure"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure" --help=recursive
1509    else
1510      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511    fi || ac_status=$?
1512    cd "$ac_pwd" || { ac_status=$?; break; }
1513  done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518  cat <<\_ACEOF
1519iperf configure 3.9+
1520generated by GNU Autoconf 2.69
1521
1522Copyright (C) 2012 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext
1540  if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_compile") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest.$ac_objext; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext conftest$ac_exeext
1578  if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_link") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest$ac_exeext && {
1597	 test "$cross_compiling" = yes ||
1598	 test -x conftest$ac_exeext
1599       }; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609  # interfere with the next link command; also delete a directory that is
1610  # left behind by Apple's compiler.  We do this before executing the actions.
1611  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613  as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists and can be compiled using the include files in
1620# INCLUDES, setting the cache variable VAR accordingly.
1621ac_fn_c_check_header_compile ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval \${$3+:} false; then :
1627  $as_echo_n "(cached) " >&6
1628else
1629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h.  */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635  eval "$3=yes"
1636else
1637  eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641eval ac_res=\$$3
1642	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_c_check_header_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } > conftest.i && {
1670	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       }; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678    ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703  { { case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_try") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; }; }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: program exited with status $ac_status" >&5
1716       $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719       ac_retval=$ac_status
1720fi
1721  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745    which can conflict with char $2 (); below.
1746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747    <limits.h> exists even on freestanding compilers.  */
1748
1749#ifdef __STDC__
1750# include <limits.h>
1751#else
1752# include <assert.h>
1753#endif
1754
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758   Use char because int might match the return type of a GCC
1759   builtin and then its argument prototype would still apply.  */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765    to always fail with ENOSYS.  Some functions are actually named
1766    something starting with __ and the normal name is an alias.  */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main ()
1773{
1774return $2 ();
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  if eval \${$3+:} false; then :
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812  # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821  ac_header_compiler=yes
1822else
1823  ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837  ac_header_preproc=yes
1838else
1839  ac_header_preproc=no
1840fi
1841rm -f conftest.err conftest.i conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So?  What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847  yes:no: )
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852    ;;
1853  no:yes:* )
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864( $as_echo "## --------------------------------------------- ##
1865## Report this to https://github.com/esnet/iperf ##
1866## --------------------------------------------- ##"
1867     ) | sed "s/^/$as_me: WARNING:     /" >&2
1868    ;;
1869esac
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  eval "$3=\$ac_header_compiler"
1876fi
1877eval ac_res=\$$3
1878	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880fi
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_header_mongrel
1884
1885# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1886# ----------------------------------------------------
1887# Tries to find if the field MEMBER exists in type AGGR, after including
1888# INCLUDES, setting cache variable VAR accordingly.
1889ac_fn_c_check_member ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1893$as_echo_n "checking for $2.$3... " >&6; }
1894if eval \${$4+:} false; then :
1895  $as_echo_n "(cached) " >&6
1896else
1897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899$5
1900int
1901main ()
1902{
1903static $2 ac_aggr;
1904if (ac_aggr.$3)
1905return 0;
1906  ;
1907  return 0;
1908}
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"; then :
1911  eval "$4=yes"
1912else
1913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h.  */
1915$5
1916int
1917main ()
1918{
1919static $2 ac_aggr;
1920if (sizeof ac_aggr.$3)
1921return 0;
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927  eval "$4=yes"
1928else
1929  eval "$4=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$4
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_member
1941cat >config.log <<_ACEOF
1942This file contains any messages produced by compilers while
1943running configure, to aid debugging if configure makes a mistake.
1944
1945It was created by iperf $as_me 3.9+, which was
1946generated by GNU Autoconf 2.69.  Invocation command line was
1947
1948  $ $0 $@
1949
1950_ACEOF
1951exec 5>>config.log
1952{
1953cat <<_ASUNAME
1954## --------- ##
1955## Platform. ##
1956## --------- ##
1957
1958hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963
1964/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1966
1967/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1968/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1969/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1971/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1972/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1973/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1974
1975_ASUNAME
1976
1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978for as_dir in $PATH
1979do
1980  IFS=$as_save_IFS
1981  test -z "$as_dir" && as_dir=.
1982    $as_echo "PATH: $as_dir"
1983  done
1984IFS=$as_save_IFS
1985
1986} >&5
1987
1988cat >&5 <<_ACEOF
1989
1990
1991## ----------- ##
1992## Core tests. ##
1993## ----------- ##
1994
1995_ACEOF
1996
1997
1998# Keep a trace of the command line.
1999# Strip out --no-create and --no-recursion so they do not pile up.
2000# Strip out --silent because we don't want to record it for future runs.
2001# Also quote any args containing shell meta-characters.
2002# Make two passes to allow for proper duplicate-argument suppression.
2003ac_configure_args=
2004ac_configure_args0=
2005ac_configure_args1=
2006ac_must_keep_next=false
2007for ac_pass in 1 2
2008do
2009  for ac_arg
2010  do
2011    case $ac_arg in
2012    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014    | -silent | --silent | --silen | --sile | --sil)
2015      continue ;;
2016    *\'*)
2017      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018    esac
2019    case $ac_pass in
2020    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021    2)
2022      as_fn_append ac_configure_args1 " '$ac_arg'"
2023      if test $ac_must_keep_next = true; then
2024	ac_must_keep_next=false # Got value, back to normal.
2025      else
2026	case $ac_arg in
2027	  *=* | --config-cache | -C | -disable-* | --disable-* \
2028	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030	  | -with-* | --with-* | -without-* | --without-* | --x)
2031	    case "$ac_configure_args0 " in
2032	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033	    esac
2034	    ;;
2035	  -* ) ac_must_keep_next=true ;;
2036	esac
2037      fi
2038      as_fn_append ac_configure_args " '$ac_arg'"
2039      ;;
2040    esac
2041  done
2042done
2043{ ac_configure_args0=; unset ac_configure_args0;}
2044{ ac_configure_args1=; unset ac_configure_args1;}
2045
2046# When interrupted or exit'd, cleanup temporary files, and complete
2047# config.log.  We remove comments because anyway the quotes in there
2048# would cause problems or look ugly.
2049# WARNING: Use '\'' to represent an apostrophe within the trap.
2050# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051trap 'exit_status=$?
2052  # Save into config.log some information that might help in debugging.
2053  {
2054    echo
2055
2056    $as_echo "## ---------------- ##
2057## Cache variables. ##
2058## ---------------- ##"
2059    echo
2060    # The following way of writing the cache mishandles newlines in values,
2061(
2062  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063    eval ac_val=\$$ac_var
2064    case $ac_val in #(
2065    *${as_nl}*)
2066      case $ac_var in #(
2067      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069      esac
2070      case $ac_var in #(
2071      _ | IFS | as_nl) ;; #(
2072      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073      *) { eval $ac_var=; unset $ac_var;} ;;
2074      esac ;;
2075    esac
2076  done
2077  (set) 2>&1 |
2078    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079    *${as_nl}ac_space=\ *)
2080      sed -n \
2081	"s/'\''/'\''\\\\'\'''\''/g;
2082	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083      ;; #(
2084    *)
2085      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086      ;;
2087    esac |
2088    sort
2089)
2090    echo
2091
2092    $as_echo "## ----------------- ##
2093## Output variables. ##
2094## ----------------- ##"
2095    echo
2096    for ac_var in $ac_subst_vars
2097    do
2098      eval ac_val=\$$ac_var
2099      case $ac_val in
2100      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101      esac
2102      $as_echo "$ac_var='\''$ac_val'\''"
2103    done | sort
2104    echo
2105
2106    if test -n "$ac_subst_files"; then
2107      $as_echo "## ------------------- ##
2108## File substitutions. ##
2109## ------------------- ##"
2110      echo
2111      for ac_var in $ac_subst_files
2112      do
2113	eval ac_val=\$$ac_var
2114	case $ac_val in
2115	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116	esac
2117	$as_echo "$ac_var='\''$ac_val'\''"
2118      done | sort
2119      echo
2120    fi
2121
2122    if test -s confdefs.h; then
2123      $as_echo "## ----------- ##
2124## confdefs.h. ##
2125## ----------- ##"
2126      echo
2127      cat confdefs.h
2128      echo
2129    fi
2130    test "$ac_signal" != 0 &&
2131      $as_echo "$as_me: caught signal $ac_signal"
2132    $as_echo "$as_me: exit $exit_status"
2133  } >&5
2134  rm -f core *.core core.conftest.* &&
2135    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136    exit $exit_status
2137' 0
2138for ac_signal in 1 2 13 15; do
2139  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140done
2141ac_signal=0
2142
2143# confdefs.h avoids OS command line length limits that DEFS can exceed.
2144rm -f -r conftest* confdefs.h
2145
2146$as_echo "/* confdefs.h */" > confdefs.h
2147
2148# Predefined preprocessor variables.
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_NAME "$PACKAGE_NAME"
2152_ACEOF
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_VERSION "$PACKAGE_VERSION"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_STRING "$PACKAGE_STRING"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_URL "$PACKAGE_URL"
2172_ACEOF
2173
2174
2175# Let the site file select an alternate cache file if it wants to.
2176# Prefer an explicitly selected file to automatically selected ones.
2177ac_site_file1=NONE
2178ac_site_file2=NONE
2179if test -n "$CONFIG_SITE"; then
2180  # We do not want a PATH search for config.site.
2181  case $CONFIG_SITE in #((
2182    -*)  ac_site_file1=./$CONFIG_SITE;;
2183    */*) ac_site_file1=$CONFIG_SITE;;
2184    *)   ac_site_file1=./$CONFIG_SITE;;
2185  esac
2186elif test "x$prefix" != xNONE; then
2187  ac_site_file1=$prefix/share/config.site
2188  ac_site_file2=$prefix/etc/config.site
2189else
2190  ac_site_file1=$ac_default_prefix/share/config.site
2191  ac_site_file2=$ac_default_prefix/etc/config.site
2192fi
2193for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2194do
2195  test "x$ac_site_file" = xNONE && continue
2196  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199    sed 's/^/| /' "$ac_site_file" >&5
2200    . "$ac_site_file" \
2201      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203as_fn_error $? "failed to load site script $ac_site_file
2204See \`config.log' for more details" "$LINENO" 5; }
2205  fi
2206done
2207
2208if test -r "$cache_file"; then
2209  # Some versions of bash will fail to source /dev/null (special files
2210  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2211  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213$as_echo "$as_me: loading cache $cache_file" >&6;}
2214    case $cache_file in
2215      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216      *)                      . "./$cache_file";;
2217    esac
2218  fi
2219else
2220  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221$as_echo "$as_me: creating cache $cache_file" >&6;}
2222  >$cache_file
2223fi
2224
2225# Check that the precious variables saved in the cache have kept the same
2226# value.
2227ac_cache_corrupted=false
2228for ac_var in $ac_precious_vars; do
2229  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230  eval ac_new_set=\$ac_env_${ac_var}_set
2231  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232  eval ac_new_val=\$ac_env_${ac_var}_value
2233  case $ac_old_set,$ac_new_set in
2234    set,)
2235      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237      ac_cache_corrupted=: ;;
2238    ,set)
2239      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241      ac_cache_corrupted=: ;;
2242    ,);;
2243    *)
2244      if test "x$ac_old_val" != "x$ac_new_val"; then
2245	# differences in whitespace do not lead to failure.
2246	ac_old_val_w=`echo x $ac_old_val`
2247	ac_new_val_w=`echo x $ac_new_val`
2248	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251	  ac_cache_corrupted=:
2252	else
2253	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255	  eval $ac_var=\$ac_old_val
2256	fi
2257	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2258$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2259	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2260$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2261      fi;;
2262  esac
2263  # Pass precious variables to config.status.
2264  if test "$ac_new_set" = set; then
2265    case $ac_new_val in
2266    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267    *) ac_arg=$ac_var=$ac_new_val ;;
2268    esac
2269    case " $ac_configure_args " in
2270      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2271      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272    esac
2273  fi
2274done
2275if $ac_cache_corrupted; then
2276  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2281fi
2282## -------------------- ##
2283## Main body of script. ##
2284## -------------------- ##
2285
2286ac_ext=c
2287ac_cpp='$CPP $CPPFLAGS'
2288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291
2292
2293# ===========================================================================
2294#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2295# ===========================================================================
2296#
2297# SYNOPSIS
2298#
2299#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2300#
2301# DESCRIPTION
2302#
2303#   Look for OpenSSL in a number of default spots, or in a user-selected
2304#   spot (via --with-openssl).  Sets
2305#
2306#     OPENSSL_INCLUDES to the include directives required
2307#     OPENSSL_LIBS to the -l directives required
2308#     OPENSSL_LDFLAGS to the -L or -R flags required
2309#
2310#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2311#
2312#   This macro sets OPENSSL_INCLUDES such that source files should use the
2313#   openssl/ directory in include directives:
2314#
2315#     #include <openssl/hmac.h>
2316#
2317# LICENSE
2318#
2319#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2320#   Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]>
2321#
2322#   Copying and distribution of this file, with or without modification, are
2323#   permitted in any medium without royalty provided the copyright notice
2324#   and this notice are preserved. This file is offered as-is, without any
2325#   warranty.
2326
2327#serial 10
2328
2329# This is what autoupdate's m4 run will expand.  It fires
2330# the warning (with _au_warn_XXX), outputs it into the
2331# updated configure.ac (with AC_DIAGNOSE), and then outputs
2332# the replacement expansion.
2333
2334
2335# This is an auxiliary macro that is also run when
2336# autoupdate runs m4.  It simply calls m4_warning, but
2337# we need a wrapper so that each warning is emitted only
2338# once.  We break the quoting in m4_warning's argument in
2339# order to expand this macro's arguments, not AU_DEFUN's.
2340
2341
2342# Finally, this is the expansion that is picked up by
2343# autoconf.  It tells the user to run autoupdate, and
2344# then outputs the replacement expansion.  We do not care
2345# about autoupdate's warning because that contains
2346# information on what to do *after* running autoupdate.
2347
2348
2349
2350# Also link binaries as static
2351# Check whether --enable-static-bin was given.
2352if test "${enable_static_bin+set}" = set; then :
2353  enableval=$enable_static_bin; enable_static=yes
2354     enable_shared=no
2355     enable_static_bin=yes
2356else
2357  :
2358fi
2359
2360 if test x$enable_static_bin = xno; then
2361  ENABLE_STATIC_BIN_TRUE=
2362  ENABLE_STATIC_BIN_FALSE='#'
2363else
2364  ENABLE_STATIC_BIN_TRUE='#'
2365  ENABLE_STATIC_BIN_FALSE=
2366fi
2367
2368
2369if test "x$enable_static_bin" == xyes; then :
2370  LDFLAGS="$LDFLAGS --static"
2371
2372fi
2373
2374ac_ext=c
2375ac_cpp='$CPP $CPPFLAGS'
2376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379
2380
2381# Specify where the auxiliary files created by configure should go. The config
2382# directory is picked so that they don't clutter up more useful directories.
2383ac_aux_dir=
2384for ac_dir in config "$srcdir"/config; do
2385  if test -f "$ac_dir/install-sh"; then
2386    ac_aux_dir=$ac_dir
2387    ac_install_sh="$ac_aux_dir/install-sh -c"
2388    break
2389  elif test -f "$ac_dir/install.sh"; then
2390    ac_aux_dir=$ac_dir
2391    ac_install_sh="$ac_aux_dir/install.sh -c"
2392    break
2393  elif test -f "$ac_dir/shtool"; then
2394    ac_aux_dir=$ac_dir
2395    ac_install_sh="$ac_aux_dir/shtool install -c"
2396    break
2397  fi
2398done
2399if test -z "$ac_aux_dir"; then
2400  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2401fi
2402
2403# These three variables are undocumented and unsupported,
2404# and are intended to be withdrawn in a future Autoconf release.
2405# They can cause serious problems if a builder's source tree is in a directory
2406# whose full name contains unusual characters.
2407ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2408ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2409ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2410
2411
2412
2413
2414# Initialize the automake system
2415am__api_version='1.16'
2416
2417# Find a good install program.  We prefer a C program (faster),
2418# so one script is as good as another.  But avoid the broken or
2419# incompatible versions:
2420# SysV /etc/install, /usr/sbin/install
2421# SunOS /usr/etc/install
2422# IRIX /sbin/install
2423# AIX /bin/install
2424# AmigaOS /C/install, which installs bootblocks on floppy discs
2425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428# OS/2's system install, which has a completely different semantic
2429# ./install, which can be erroneously created by make from ./install.sh.
2430# Reject install programs that cannot install multiple files.
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432$as_echo_n "checking for a BSD-compatible install... " >&6; }
2433if test -z "$INSTALL"; then
2434if ${ac_cv_path_install+:} false; then :
2435  $as_echo_n "(cached) " >&6
2436else
2437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442    # Account for people who put trailing slashes in PATH elements.
2443case $as_dir/ in #((
2444  ./ | .// | /[cC]/* | \
2445  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447  /usr/ucb/* ) ;;
2448  *)
2449    # OSF1 and SCO ODT 3.0 have their own names for install.
2450    # Don't use installbsd from OSF since it installs stuff as root
2451    # by default.
2452    for ac_prog in ginstall scoinst install; do
2453      for ac_exec_ext in '' $ac_executable_extensions; do
2454	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2455	  if test $ac_prog = install &&
2456	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457	    # AIX install.  It has an incompatible calling convention.
2458	    :
2459	  elif test $ac_prog = install &&
2460	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461	    # program-specific install script used by HP pwplus--don't use.
2462	    :
2463	  else
2464	    rm -rf conftest.one conftest.two conftest.dir
2465	    echo one > conftest.one
2466	    echo two > conftest.two
2467	    mkdir conftest.dir
2468	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469	      test -s conftest.one && test -s conftest.two &&
2470	      test -s conftest.dir/conftest.one &&
2471	      test -s conftest.dir/conftest.two
2472	    then
2473	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474	      break 3
2475	    fi
2476	  fi
2477	fi
2478      done
2479    done
2480    ;;
2481esac
2482
2483  done
2484IFS=$as_save_IFS
2485
2486rm -rf conftest.one conftest.two conftest.dir
2487
2488fi
2489  if test "${ac_cv_path_install+set}" = set; then
2490    INSTALL=$ac_cv_path_install
2491  else
2492    # As a last resort, use the slow shell script.  Don't cache a
2493    # value for INSTALL within a source directory, because that will
2494    # break other packages using the cache if that directory is
2495    # removed, or if the value is a relative name.
2496    INSTALL=$ac_install_sh
2497  fi
2498fi
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500$as_echo "$INSTALL" >&6; }
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2511$as_echo_n "checking whether build environment is sane... " >&6; }
2512# Reject unsafe characters in $srcdir or the absolute working directory
2513# name.  Accept space and tab only in the latter.
2514am_lf='
2515'
2516case `pwd` in
2517  *[\\\"\#\$\&\'\`$am_lf]*)
2518    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2519esac
2520case $srcdir in
2521  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2522    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2523esac
2524
2525# Do 'set' in a subshell so we don't clobber the current shell's
2526# arguments.  Must try -L first in case configure is actually a
2527# symlink; some systems play weird games with the mod time of symlinks
2528# (eg FreeBSD returns the mod time of the symlink's containing
2529# directory).
2530if (
2531   am_has_slept=no
2532   for am_try in 1 2; do
2533     echo "timestamp, slept: $am_has_slept" > conftest.file
2534     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535     if test "$*" = "X"; then
2536	# -L didn't work.
2537	set X `ls -t "$srcdir/configure" conftest.file`
2538     fi
2539     if test "$*" != "X $srcdir/configure conftest.file" \
2540	&& test "$*" != "X conftest.file $srcdir/configure"; then
2541
2542	# If neither matched, then we have a broken ls.  This can happen
2543	# if, for instance, CONFIG_SHELL is bash and it inherits a
2544	# broken ls alias from the environment.  This has actually
2545	# happened.  Such a system could not be considered "sane".
2546	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2547  alias in your environment" "$LINENO" 5
2548     fi
2549     if test "$2" = conftest.file || test $am_try -eq 2; then
2550       break
2551     fi
2552     # Just in case.
2553     sleep 1
2554     am_has_slept=yes
2555   done
2556   test "$2" = conftest.file
2557   )
2558then
2559   # Ok.
2560   :
2561else
2562   as_fn_error $? "newly created file is older than distributed files!
2563Check your system clock" "$LINENO" 5
2564fi
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566$as_echo "yes" >&6; }
2567# If we didn't sleep, we still need to ensure time stamps of config.status and
2568# generated files are strictly newer.
2569am_sleep_pid=
2570if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2571  ( sleep 1 ) &
2572  am_sleep_pid=$!
2573fi
2574
2575rm -f conftest.file
2576
2577test "$program_prefix" != NONE &&
2578  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579# Use a double $ so make ignores it.
2580test "$program_suffix" != NONE &&
2581  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582# Double any \ or $.
2583# By default was `s,x,x', remove it if useless.
2584ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2586
2587# Expand $ac_aux_dir to an absolute path.
2588am_aux_dir=`cd "$ac_aux_dir" && pwd`
2589
2590if test x"${MISSING+set}" != xset; then
2591  MISSING="\${SHELL} '$am_aux_dir/missing'"
2592fi
2593# Use eval to expand $SHELL
2594if eval "$MISSING --is-lightweight"; then
2595  am_missing_run="$MISSING "
2596else
2597  am_missing_run=
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2599$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2600fi
2601
2602if test x"${install_sh+set}" != xset; then
2603  case $am_aux_dir in
2604  *\ * | *\	*)
2605    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606  *)
2607    install_sh="\${SHELL} $am_aux_dir/install-sh"
2608  esac
2609fi
2610
2611# Installed binaries are usually stripped using 'strip' when the user
2612# run "make install-strip".  However 'strip' might not be the right
2613# tool to use in cross-compilation environments, therefore Automake
2614# will honor the 'STRIP' environment variable to overrule this program.
2615if test "$cross_compiling" != no; then
2616  if test -n "$ac_tool_prefix"; then
2617  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618set dummy ${ac_tool_prefix}strip; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if ${ac_cv_prog_STRIP+:} false; then :
2622  $as_echo_n "(cached) " >&6
2623else
2624  if test -n "$STRIP"; then
2625  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632    for ac_exec_ext in '' $ac_executable_extensions; do
2633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636    break 2
2637  fi
2638done
2639  done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644STRIP=$ac_cv_prog_STRIP
2645if test -n "$STRIP"; then
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647$as_echo "$STRIP" >&6; }
2648else
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653
2654fi
2655if test -z "$ac_cv_prog_STRIP"; then
2656  ac_ct_STRIP=$STRIP
2657  # Extract the first word of "strip", so it can be a program name with args.
2658set dummy strip; ac_word=$2
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660$as_echo_n "checking for $ac_word... " >&6; }
2661if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662  $as_echo_n "(cached) " >&6
2663else
2664  if test -n "$ac_ct_STRIP"; then
2665  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672    for ac_exec_ext in '' $ac_executable_extensions; do
2673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674    ac_cv_prog_ac_ct_STRIP="strip"
2675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676    break 2
2677  fi
2678done
2679  done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685if test -n "$ac_ct_STRIP"; then
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687$as_echo "$ac_ct_STRIP" >&6; }
2688else
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691fi
2692
2693  if test "x$ac_ct_STRIP" = x; then
2694    STRIP=":"
2695  else
2696    case $cross_compiling:$ac_tool_warned in
2697yes:)
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702    STRIP=$ac_ct_STRIP
2703  fi
2704else
2705  STRIP="$ac_cv_prog_STRIP"
2706fi
2707
2708fi
2709INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713if test -z "$MKDIR_P"; then
2714  if ${ac_cv_path_mkdir+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722    for ac_prog in mkdir gmkdir; do
2723	 for ac_exec_ext in '' $ac_executable_extensions; do
2724	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2725	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2726	     'mkdir (GNU coreutils) '* | \
2727	     'mkdir (coreutils) '* | \
2728	     'mkdir (fileutils) '4.1*)
2729	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2730	       break 3;;
2731	   esac
2732	 done
2733       done
2734  done
2735IFS=$as_save_IFS
2736
2737fi
2738
2739  test -d ./--version && rmdir ./--version
2740  if test "${ac_cv_path_mkdir+set}" = set; then
2741    MKDIR_P="$ac_cv_path_mkdir -p"
2742  else
2743    # As a last resort, use the slow shell script.  Don't cache a
2744    # value for MKDIR_P within a source directory, because that will
2745    # break other packages using the cache if that directory is
2746    # removed, or if the value is a relative name.
2747    MKDIR_P="$ac_install_sh -d"
2748  fi
2749fi
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751$as_echo "$MKDIR_P" >&6; }
2752
2753for ac_prog in gawk mawk nawk awk
2754do
2755  # Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
2759if ${ac_cv_prog_AWK+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  if test -n "$AWK"; then
2763  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770    for ac_exec_ext in '' $ac_executable_extensions; do
2771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    ac_cv_prog_AWK="$ac_prog"
2773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774    break 2
2775  fi
2776done
2777  done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782AWK=$ac_cv_prog_AWK
2783if test -n "$AWK"; then
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785$as_echo "$AWK" >&6; }
2786else
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791
2792  test -n "$AWK" && break
2793done
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797set x ${MAKE-make}
2798ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  cat >conftest.make <<\_ACEOF
2803SHELL = /bin/sh
2804all:
2805	@echo '@@@%%%=$(MAKE)=@@@%%%'
2806_ACEOF
2807# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809  *@@@%%%=?*=@@@%%%*)
2810    eval ac_cv_prog_make_${ac_make}_set=yes;;
2811  *)
2812    eval ac_cv_prog_make_${ac_make}_set=no;;
2813esac
2814rm -f conftest.make
2815fi
2816if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818$as_echo "yes" >&6; }
2819  SET_MAKE=
2820else
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823  SET_MAKE="MAKE=${MAKE-make}"
2824fi
2825
2826rm -rf .tst 2>/dev/null
2827mkdir .tst 2>/dev/null
2828if test -d .tst; then
2829  am__leading_dot=.
2830else
2831  am__leading_dot=_
2832fi
2833rmdir .tst 2>/dev/null
2834
2835# Check whether --enable-silent-rules was given.
2836if test "${enable_silent_rules+set}" = set; then :
2837  enableval=$enable_silent_rules;
2838fi
2839
2840case $enable_silent_rules in # (((
2841  yes) AM_DEFAULT_VERBOSITY=0;;
2842   no) AM_DEFAULT_VERBOSITY=1;;
2843    *) AM_DEFAULT_VERBOSITY=1;;
2844esac
2845am_make=${MAKE-make}
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2847$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2848if ${am_cv_make_support_nested_variables+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  if $as_echo 'TRUE=$(BAR$(V))
2852BAR0=false
2853BAR1=true
2854V=1
2855am__doit:
2856	@$(TRUE)
2857.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2858  am_cv_make_support_nested_variables=yes
2859else
2860  am_cv_make_support_nested_variables=no
2861fi
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2864$as_echo "$am_cv_make_support_nested_variables" >&6; }
2865if test $am_cv_make_support_nested_variables = yes; then
2866    AM_V='$(V)'
2867  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2868else
2869  AM_V=$AM_DEFAULT_VERBOSITY
2870  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2871fi
2872AM_BACKSLASH='\'
2873
2874if test "`cd $srcdir && pwd`" != "`pwd`"; then
2875  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2876  # is not polluted with repeated "-I."
2877  am__isrc=' -I$(srcdir)'
2878  # test to see if srcdir already configured
2879  if test -f $srcdir/config.status; then
2880    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2881  fi
2882fi
2883
2884# test whether we have cygpath
2885if test -z "$CYGPATH_W"; then
2886  if (cygpath --version) >/dev/null 2>/dev/null; then
2887    CYGPATH_W='cygpath -w'
2888  else
2889    CYGPATH_W=echo
2890  fi
2891fi
2892
2893
2894# Define the identity of the package.
2895 PACKAGE='iperf'
2896 VERSION='3.9+'
2897
2898
2899cat >>confdefs.h <<_ACEOF
2900#define PACKAGE "$PACKAGE"
2901_ACEOF
2902
2903
2904cat >>confdefs.h <<_ACEOF
2905#define VERSION "$VERSION"
2906_ACEOF
2907
2908# Some tools Automake needs.
2909
2910ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2911
2912
2913AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2914
2915
2916AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2917
2918
2919AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2920
2921
2922MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2923
2924# For better backward compatibility.  To be removed once Automake 1.9.x
2925# dies out for good.  For more background, see:
2926# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2927# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2928mkdir_p='$(MKDIR_P)'
2929
2930# We need awk for the "check" target (and possibly the TAP driver).  The
2931# system "awk" is bad on some platforms.
2932# Always define AMTAR for backward compatibility.  Yes, it's still used
2933# in the wild :-(  We should find a proper way to deprecate it ...
2934AMTAR='$${TAR-tar}'
2935
2936
2937# We'll loop over all known methods to create a tar archive until one works.
2938_am_tools='gnutar  pax cpio none'
2939
2940am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2941
2942
2943
2944
2945
2946
2947# POSIX will say in a future version that running "rm -f" with no argument
2948# is OK; and we want to be able to make that assumption in our Makefile
2949# recipes.  So use an aggressive probe to check that the usage we want is
2950# actually supported "in the wild" to an acceptable degree.
2951# See automake bug#10828.
2952# To make any issue more visible, cause the running configure to be aborted
2953# by default if the 'rm' program in use doesn't match our expectations; the
2954# user can still override this though.
2955if rm -f && rm -fr && rm -rf; then : OK; else
2956  cat >&2 <<'END'
2957Oops!
2958
2959Your 'rm' program seems unable to run without file operands specified
2960on the command line, even when the '-f' option is present.  This is contrary
2961to the behaviour of most rm programs out there, and not conforming with
2962the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2963
2964Please tell bug-automake@gnu.org about your system, including the value
2965of your $PATH and any error possibly output before this message.  This
2966can help us improve future automake versions.
2967
2968END
2969  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2970    echo 'Configuration will proceed anyway, since you have set the' >&2
2971    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2972    echo >&2
2973  else
2974    cat >&2 <<'END'
2975Aborting the configuration process, to ensure you take notice of the issue.
2976
2977You can download and install GNU coreutils to get an 'rm' implementation
2978that behaves properly: <https://www.gnu.org/software/coreutils/>.
2979
2980If you want to complete the configuration process using your problematic
2981'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2982to "yes", and re-run configure.
2983
2984END
2985    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2986  fi
2987fi
2988
2989# Check whether --enable-silent-rules was given.
2990if test "${enable_silent_rules+set}" = set; then :
2991  enableval=$enable_silent_rules;
2992fi
2993
2994case $enable_silent_rules in # (((
2995  yes) AM_DEFAULT_VERBOSITY=0;;
2996   no) AM_DEFAULT_VERBOSITY=1;;
2997    *) AM_DEFAULT_VERBOSITY=0;;
2998esac
2999am_make=${MAKE-make}
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002if ${am_cv_make_support_nested_variables+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if $as_echo 'TRUE=$(BAR$(V))
3006BAR0=false
3007BAR1=true
3008V=1
3009am__doit:
3010	@$(TRUE)
3011.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3012  am_cv_make_support_nested_variables=yes
3013else
3014  am_cv_make_support_nested_variables=no
3015fi
3016fi
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018$as_echo "$am_cv_make_support_nested_variables" >&6; }
3019if test $am_cv_make_support_nested_variables = yes; then
3020    AM_V='$(V)'
3021  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3022else
3023  AM_V=$AM_DEFAULT_VERBOSITY
3024  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3025fi
3026AM_BACKSLASH='\'
3027
3028case `pwd` in
3029  *\ * | *\	*)
3030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3031$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3032esac
3033
3034
3035
3036macro_version='2.4.6'
3037macro_revision='2.4.6'
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051ltmain=$ac_aux_dir/ltmain.sh
3052
3053# Make sure we can run config.sub.
3054$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3055  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3058$as_echo_n "checking build system type... " >&6; }
3059if ${ac_cv_build+:} false; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  ac_build_alias=$build_alias
3063test "x$ac_build_alias" = x &&
3064  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3065test "x$ac_build_alias" = x &&
3066  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3067ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3068  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3069
3070fi
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3072$as_echo "$ac_cv_build" >&6; }
3073case $ac_cv_build in
3074*-*-*) ;;
3075*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3076esac
3077build=$ac_cv_build
3078ac_save_IFS=$IFS; IFS='-'
3079set x $ac_cv_build
3080shift
3081build_cpu=$1
3082build_vendor=$2
3083shift; shift
3084# Remember, the first character of IFS is used to create $*,
3085# except with old shells:
3086build_os=$*
3087IFS=$ac_save_IFS
3088case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3089
3090
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3092$as_echo_n "checking host system type... " >&6; }
3093if ${ac_cv_host+:} false; then :
3094  $as_echo_n "(cached) " >&6
3095else
3096  if test "x$host_alias" = x; then
3097  ac_cv_host=$ac_cv_build
3098else
3099  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3100    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3101fi
3102
3103fi
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3105$as_echo "$ac_cv_host" >&6; }
3106case $ac_cv_host in
3107*-*-*) ;;
3108*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3109esac
3110host=$ac_cv_host
3111ac_save_IFS=$IFS; IFS='-'
3112set x $ac_cv_host
3113shift
3114host_cpu=$1
3115host_vendor=$2
3116shift; shift
3117# Remember, the first character of IFS is used to create $*,
3118# except with old shells:
3119host_os=$*
3120IFS=$ac_save_IFS
3121case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3122
3123
3124# Backslashify metacharacters that are still active within
3125# double-quoted strings.
3126sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3127
3128# Same as above, but do not quote variable references.
3129double_quote_subst='s/\(["`\\]\)/\\\1/g'
3130
3131# Sed substitution to delay expansion of an escaped shell variable in a
3132# double_quote_subst'ed string.
3133delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3134
3135# Sed substitution to delay expansion of an escaped single quote.
3136delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3137
3138# Sed substitution to avoid accidental globbing in evaled expressions
3139no_glob_subst='s/\*/\\\*/g'
3140
3141ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3142ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3143ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3144
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3146$as_echo_n "checking how to print strings... " >&6; }
3147# Test print first, because it will be a builtin if present.
3148if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3149   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3150  ECHO='print -r --'
3151elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3152  ECHO='printf %s\n'
3153else
3154  # Use this function as a fallback that always works.
3155  func_fallback_echo ()
3156  {
3157    eval 'cat <<_LTECHO_EOF
3158$1
3159_LTECHO_EOF'
3160  }
3161  ECHO='func_fallback_echo'
3162fi
3163
3164# func_echo_all arg...
3165# Invoke $ECHO with all args, space-separated.
3166func_echo_all ()
3167{
3168    $ECHO ""
3169}
3170
3171case $ECHO in
3172  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3173$as_echo "printf" >&6; } ;;
3174  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3175$as_echo "print -r" >&6; } ;;
3176  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3177$as_echo "cat" >&6; } ;;
3178esac
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193DEPDIR="${am__leading_dot}deps"
3194
3195ac_config_commands="$ac_config_commands depfiles"
3196
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3198$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3199cat > confinc.mk << 'END'
3200am__doit:
3201	@echo this is the am__doit target >confinc.out
3202.PHONY: am__doit
3203END
3204am__include="#"
3205am__quote=
3206# BSD make does it like this.
3207echo '.include "confinc.mk" # ignored' > confmf.BSD
3208# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3209echo 'include confinc.mk # ignored' > confmf.GNU
3210_am_result=no
3211for s in GNU BSD; do
3212  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3213   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }
3217  case $?:`cat confinc.out 2>/dev/null` in #(
3218  '0:this is the am__doit target') :
3219    case $s in #(
3220  BSD) :
3221    am__include='.include' am__quote='"' ;; #(
3222  *) :
3223    am__include='include' am__quote='' ;;
3224esac ;; #(
3225  *) :
3226     ;;
3227esac
3228  if test "$am__include" != "#"; then
3229    _am_result="yes ($s style)"
3230    break
3231  fi
3232done
3233rm -f confinc.* confmf.*
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3235$as_echo "${_am_result}" >&6; }
3236
3237# Check whether --enable-dependency-tracking was given.
3238if test "${enable_dependency_tracking+set}" = set; then :
3239  enableval=$enable_dependency_tracking;
3240fi
3241
3242if test "x$enable_dependency_tracking" != xno; then
3243  am_depcomp="$ac_aux_dir/depcomp"
3244  AMDEPBACKSLASH='\'
3245  am__nodep='_no'
3246fi
3247 if test "x$enable_dependency_tracking" != xno; then
3248  AMDEP_TRUE=
3249  AMDEP_FALSE='#'
3250else
3251  AMDEP_TRUE='#'
3252  AMDEP_FALSE=
3253fi
3254
3255
3256ac_ext=c
3257ac_cpp='$CPP $CPPFLAGS'
3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261if test -n "$ac_tool_prefix"; then
3262  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3263set dummy ${ac_tool_prefix}gcc; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
3266if ${ac_cv_prog_CC+:} false; then :
3267  $as_echo_n "(cached) " >&6
3268else
3269  if test -n "$CC"; then
3270  ac_cv_prog_CC="$CC" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277    for ac_exec_ext in '' $ac_executable_extensions; do
3278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281    break 2
3282  fi
3283done
3284  done
3285IFS=$as_save_IFS
3286
3287fi
3288fi
3289CC=$ac_cv_prog_CC
3290if test -n "$CC"; then
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292$as_echo "$CC" >&6; }
3293else
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298
3299fi
3300if test -z "$ac_cv_prog_CC"; then
3301  ac_ct_CC=$CC
3302  # Extract the first word of "gcc", so it can be a program name with args.
3303set dummy gcc; ac_word=$2
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305$as_echo_n "checking for $ac_word... " >&6; }
3306if ${ac_cv_prog_ac_ct_CC+:} false; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  if test -n "$ac_ct_CC"; then
3310  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311else
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH
3314do
3315  IFS=$as_save_IFS
3316  test -z "$as_dir" && as_dir=.
3317    for ac_exec_ext in '' $ac_executable_extensions; do
3318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319    ac_cv_prog_ac_ct_CC="gcc"
3320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321    break 2
3322  fi
3323done
3324  done
3325IFS=$as_save_IFS
3326
3327fi
3328fi
3329ac_ct_CC=$ac_cv_prog_ac_ct_CC
3330if test -n "$ac_ct_CC"; then
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3332$as_echo "$ac_ct_CC" >&6; }
3333else
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336fi
3337
3338  if test "x$ac_ct_CC" = x; then
3339    CC=""
3340  else
3341    case $cross_compiling:$ac_tool_warned in
3342yes:)
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345ac_tool_warned=yes ;;
3346esac
3347    CC=$ac_ct_CC
3348  fi
3349else
3350  CC="$ac_cv_prog_CC"
3351fi
3352
3353if test -z "$CC"; then
3354          if test -n "$ac_tool_prefix"; then
3355    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}cc; ac_word=$2
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358$as_echo_n "checking for $ac_word... " >&6; }
3359if ${ac_cv_prog_CC+:} false; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362  if test -n "$CC"; then
3363  ac_cv_prog_CC="$CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368  IFS=$as_save_IFS
3369  test -z "$as_dir" && as_dir=.
3370    for ac_exec_ext in '' $ac_executable_extensions; do
3371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372    ac_cv_prog_CC="${ac_tool_prefix}cc"
3373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377  done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385$as_echo "$CC" >&6; }
3386else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391
3392  fi
3393fi
3394if test -z "$CC"; then
3395  # Extract the first word of "cc", so it can be a program name with args.
3396set dummy cc; ac_word=$2
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398$as_echo_n "checking for $ac_word... " >&6; }
3399if ${ac_cv_prog_CC+:} false; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  if test -n "$CC"; then
3403  ac_cv_prog_CC="$CC" # Let the user override the test.
3404else
3405  ac_prog_rejected=no
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3414       ac_prog_rejected=yes
3415       continue
3416     fi
3417    ac_cv_prog_CC="cc"
3418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422  done
3423IFS=$as_save_IFS
3424
3425if test $ac_prog_rejected = yes; then
3426  # We found a bogon in the path, so make sure we never use it.
3427  set dummy $ac_cv_prog_CC
3428  shift
3429  if test $# != 0; then
3430    # We chose a different compiler from the bogus one.
3431    # However, it has the same basename, so the bogon will be chosen
3432    # first if we set CC to just the basename; use the full file name.
3433    shift
3434    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3435  fi
3436fi
3437fi
3438fi
3439CC=$ac_cv_prog_CC
3440if test -n "$CC"; then
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442$as_echo "$CC" >&6; }
3443else
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448
3449fi
3450if test -z "$CC"; then
3451  if test -n "$ac_tool_prefix"; then
3452  for ac_prog in cl.exe
3453  do
3454    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457$as_echo_n "checking for $ac_word... " >&6; }
3458if ${ac_cv_prog_CC+:} false; then :
3459  $as_echo_n "(cached) " >&6
3460else
3461  if test -n "$CC"; then
3462  ac_cv_prog_CC="$CC" # Let the user override the test.
3463else
3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467  IFS=$as_save_IFS
3468  test -z "$as_dir" && as_dir=.
3469    for ac_exec_ext in '' $ac_executable_extensions; do
3470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473    break 2
3474  fi
3475done
3476  done
3477IFS=$as_save_IFS
3478
3479fi
3480fi
3481CC=$ac_cv_prog_CC
3482if test -n "$CC"; then
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484$as_echo "$CC" >&6; }
3485else
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487$as_echo "no" >&6; }
3488fi
3489
3490
3491    test -n "$CC" && break
3492  done
3493fi
3494if test -z "$CC"; then
3495  ac_ct_CC=$CC
3496  for ac_prog in cl.exe
3497do
3498  # Extract the first word of "$ac_prog", so it can be a program name with args.
3499set dummy $ac_prog; ac_word=$2
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501$as_echo_n "checking for $ac_word... " >&6; }
3502if ${ac_cv_prog_ac_ct_CC+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  if test -n "$ac_ct_CC"; then
3506  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507else
3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511  IFS=$as_save_IFS
3512  test -z "$as_dir" && as_dir=.
3513    for ac_exec_ext in '' $ac_executable_extensions; do
3514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515    ac_cv_prog_ac_ct_CC="$ac_prog"
3516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517    break 2
3518  fi
3519done
3520  done
3521IFS=$as_save_IFS
3522
3523fi
3524fi
3525ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526if test -n "$ac_ct_CC"; then
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528$as_echo "$ac_ct_CC" >&6; }
3529else
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531$as_echo "no" >&6; }
3532fi
3533
3534
3535  test -n "$ac_ct_CC" && break
3536done
3537
3538  if test "x$ac_ct_CC" = x; then
3539    CC=""
3540  else
3541    case $cross_compiling:$ac_tool_warned in
3542yes:)
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3545ac_tool_warned=yes ;;
3546esac
3547    CC=$ac_ct_CC
3548  fi
3549fi
3550
3551fi
3552
3553
3554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556as_fn_error $? "no acceptable C compiler found in \$PATH
3557See \`config.log' for more details" "$LINENO" 5; }
3558
3559# Provide some information about the compiler.
3560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3561set X $ac_compile
3562ac_compiler=$2
3563for ac_option in --version -v -V -qversion; do
3564  { { ac_try="$ac_compiler $ac_option >&5"
3565case "(($ac_try" in
3566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567  *) ac_try_echo=$ac_try;;
3568esac
3569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570$as_echo "$ac_try_echo"; } >&5
3571  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3572  ac_status=$?
3573  if test -s conftest.err; then
3574    sed '10a\
3575... rest of stderr output deleted ...
3576         10q' conftest.err >conftest.er1
3577    cat conftest.er1 >&5
3578  fi
3579  rm -f conftest.er1 conftest.err
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }
3582done
3583
3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595ac_clean_files_save=$ac_clean_files
3596ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3597# Try to create an executable without -o first, disregard a.out.
3598# It will help us diagnose broken compilers, and finding out an intuition
3599# of exeext.
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3601$as_echo_n "checking whether the C compiler works... " >&6; }
3602ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3603
3604# The possible output files:
3605ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3606
3607ac_rmfiles=
3608for ac_file in $ac_files
3609do
3610  case $ac_file in
3611    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3613  esac
3614done
3615rm -f $ac_rmfiles
3616
3617if { { ac_try="$ac_link_default"
3618case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623$as_echo "$ac_try_echo"; } >&5
3624  (eval "$ac_link_default") 2>&5
3625  ac_status=$?
3626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627  test $ac_status = 0; }; then :
3628  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3631# so that the user can short-circuit this test for compilers unknown to
3632# Autoconf.
3633for ac_file in $ac_files ''
3634do
3635  test -f "$ac_file" || continue
3636  case $ac_file in
3637    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3638	;;
3639    [ab].out )
3640	# We found the default executable, but exeext='' is most
3641	# certainly right.
3642	break;;
3643    *.* )
3644	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3645	then :; else
3646	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647	fi
3648	# We set ac_cv_exeext here because the later test for it is not
3649	# safe: cross compilers may not add the suffix if given an `-o'
3650	# argument, so we may need to know it at that point already.
3651	# Even if this section looks crufty: it has the advantage of
3652	# actually working.
3653	break;;
3654    * )
3655	break;;
3656  esac
3657done
3658test "$ac_cv_exeext" = no && ac_cv_exeext=
3659
3660else
3661  ac_file=''
3662fi
3663if test -z "$ac_file"; then :
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666$as_echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671as_fn_error 77 "C compiler cannot create executables
3672See \`config.log' for more details" "$LINENO" 5; }
3673else
3674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675$as_echo "yes" >&6; }
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678$as_echo_n "checking for C compiler default output file name... " >&6; }
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680$as_echo "$ac_file" >&6; }
3681ac_exeext=$ac_cv_exeext
3682
3683rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684ac_clean_files=$ac_clean_files_save
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686$as_echo_n "checking for suffix of executables... " >&6; }
3687if { { ac_try="$ac_link"
3688case "(($ac_try" in
3689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690  *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693$as_echo "$ac_try_echo"; } >&5
3694  (eval "$ac_link") 2>&5
3695  ac_status=$?
3696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697  test $ac_status = 0; }; then :
3698  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3700# work properly (i.e., refer to `conftest.exe'), while it won't with
3701# `rm'.
3702for ac_file in conftest.exe conftest conftest.*; do
3703  test -f "$ac_file" || continue
3704  case $ac_file in
3705    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707	  break;;
3708    * ) break;;
3709  esac
3710done
3711else
3712  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3715See \`config.log' for more details" "$LINENO" 5; }
3716fi
3717rm -f conftest conftest$ac_cv_exeext
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719$as_echo "$ac_cv_exeext" >&6; }
3720
3721rm -f conftest.$ac_ext
3722EXEEXT=$ac_cv_exeext
3723ac_exeext=$EXEEXT
3724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h.  */
3726#include <stdio.h>
3727int
3728main ()
3729{
3730FILE *f = fopen ("conftest.out", "w");
3731 return ferror (f) || fclose (f) != 0;
3732
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737ac_clean_files="$ac_clean_files conftest.out"
3738# Check that the compiler produces executables we can run.  If not, either
3739# the compiler is broken, or we cross compile.
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741$as_echo_n "checking whether we are cross compiling... " >&6; }
3742if test "$cross_compiling" != yes; then
3743  { { ac_try="$ac_link"
3744case "(($ac_try" in
3745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746  *) ac_try_echo=$ac_try;;
3747esac
3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749$as_echo "$ac_try_echo"; } >&5
3750  (eval "$ac_link") 2>&5
3751  ac_status=$?
3752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753  test $ac_status = 0; }
3754  if { ac_try='./conftest$ac_cv_exeext'
3755  { { case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760$as_echo "$ac_try_echo"; } >&5
3761  (eval "$ac_try") 2>&5
3762  ac_status=$?
3763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764  test $ac_status = 0; }; }; then
3765    cross_compiling=no
3766  else
3767    if test "$cross_compiling" = maybe; then
3768	cross_compiling=yes
3769    else
3770	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772as_fn_error $? "cannot run C compiled programs.
3773If you meant to cross compile, use \`--host'.
3774See \`config.log' for more details" "$LINENO" 5; }
3775    fi
3776  fi
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3779$as_echo "$cross_compiling" >&6; }
3780
3781rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3782ac_clean_files=$ac_clean_files_save
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3784$as_echo_n "checking for suffix of object files... " >&6; }
3785if ${ac_cv_objext+:} false; then :
3786  $as_echo_n "(cached) " >&6
3787else
3788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h.  */
3790
3791int
3792main ()
3793{
3794
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799rm -f conftest.o conftest.obj
3800if { { ac_try="$ac_compile"
3801case "(($ac_try" in
3802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803  *) ac_try_echo=$ac_try;;
3804esac
3805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806$as_echo "$ac_try_echo"; } >&5
3807  (eval "$ac_compile") 2>&5
3808  ac_status=$?
3809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810  test $ac_status = 0; }; then :
3811  for ac_file in conftest.o conftest.obj conftest.*; do
3812  test -f "$ac_file" || continue;
3813  case $ac_file in
3814    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3815    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816       break;;
3817  esac
3818done
3819else
3820  $as_echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825as_fn_error $? "cannot compute suffix of object files: cannot compile
3826See \`config.log' for more details" "$LINENO" 5; }
3827fi
3828rm -f conftest.$ac_cv_objext conftest.$ac_ext
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3831$as_echo "$ac_cv_objext" >&6; }
3832OBJEXT=$ac_cv_objext
3833ac_objext=$OBJEXT
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836if ${ac_cv_c_compiler_gnu+:} false; then :
3837  $as_echo_n "(cached) " >&6
3838else
3839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841
3842int
3843main ()
3844{
3845#ifndef __GNUC__
3846       choke me
3847#endif
3848
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853if ac_fn_c_try_compile "$LINENO"; then :
3854  ac_compiler_gnu=yes
3855else
3856  ac_compiler_gnu=no
3857fi
3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860
3861fi
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864if test $ac_compiler_gnu = yes; then
3865  GCC=yes
3866else
3867  GCC=
3868fi
3869ac_test_CFLAGS=${CFLAGS+set}
3870ac_save_CFLAGS=$CFLAGS
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872$as_echo_n "checking whether $CC accepts -g... " >&6; }
3873if ${ac_cv_prog_cc_g+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  ac_save_c_werror_flag=$ac_c_werror_flag
3877   ac_c_werror_flag=yes
3878   ac_cv_prog_cc_g=no
3879   CFLAGS="-g"
3880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882
3883int
3884main ()
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891if ac_fn_c_try_compile "$LINENO"; then :
3892  ac_cv_prog_cc_g=yes
3893else
3894  CFLAGS=""
3895      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897
3898int
3899main ()
3900{
3901
3902  ;
3903  return 0;
3904}
3905_ACEOF
3906if ac_fn_c_try_compile "$LINENO"; then :
3907
3908else
3909  ac_c_werror_flag=$ac_save_c_werror_flag
3910	 CFLAGS="-g"
3911	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  ac_cv_prog_cc_g=yes
3924fi
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926fi
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930   ac_c_werror_flag=$ac_save_c_werror_flag
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933$as_echo "$ac_cv_prog_cc_g" >&6; }
3934if test "$ac_test_CFLAGS" = set; then
3935  CFLAGS=$ac_save_CFLAGS
3936elif test $ac_cv_prog_cc_g = yes; then
3937  if test "$GCC" = yes; then
3938    CFLAGS="-g -O2"
3939  else
3940    CFLAGS="-g"
3941  fi
3942else
3943  if test "$GCC" = yes; then
3944    CFLAGS="-O2"
3945  else
3946    CFLAGS=
3947  fi
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951if ${ac_cv_prog_cc_c89+:} false; then :
3952  $as_echo_n "(cached) " >&6
3953else
3954  ac_cv_prog_cc_c89=no
3955ac_save_CC=$CC
3956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h.  */
3958#include <stdarg.h>
3959#include <stdio.h>
3960struct stat;
3961/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3962struct buf { int x; };
3963FILE * (*rcsopen) (struct buf *, struct stat *, int);
3964static char *e (p, i)
3965     char **p;
3966     int i;
3967{
3968  return p[i];
3969}
3970static char *f (char * (*g) (char **, int), char **p, ...)
3971{
3972  char *s;
3973  va_list v;
3974  va_start (v,p);
3975  s = g (p, va_arg (v,int));
3976  va_end (v);
3977  return s;
3978}
3979
3980/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3981   function prototypes and stuff, but not '\xHH' hex character constants.
3982   These don't provoke an error unfortunately, instead are silently treated
3983   as 'x'.  The following induces an error, until -std is added to get
3984   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3985   array size at least.  It's necessary to write '\x00'==0 to get something
3986   that's true only with -std.  */
3987int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3988
3989/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3990   inside strings and character constants.  */
3991#define FOO(x) 'x'
3992int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3993
3994int test (int i, double x);
3995struct s1 {int (*f) (int a);};
3996struct s2 {int (*f) (double a);};
3997int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3998int argc;
3999char **argv;
4000int
4001main ()
4002{
4003return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4009	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4010do
4011  CC="$ac_save_CC $ac_arg"
4012  if ac_fn_c_try_compile "$LINENO"; then :
4013  ac_cv_prog_cc_c89=$ac_arg
4014fi
4015rm -f core conftest.err conftest.$ac_objext
4016  test "x$ac_cv_prog_cc_c89" != "xno" && break
4017done
4018rm -f conftest.$ac_ext
4019CC=$ac_save_CC
4020
4021fi
4022# AC_CACHE_VAL
4023case "x$ac_cv_prog_cc_c89" in
4024  x)
4025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4026$as_echo "none needed" >&6; } ;;
4027  xno)
4028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4029$as_echo "unsupported" >&6; } ;;
4030  *)
4031    CC="$CC $ac_cv_prog_cc_c89"
4032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4033$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4034esac
4035if test "x$ac_cv_prog_cc_c89" != xno; then :
4036
4037fi
4038
4039ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044
4045ac_ext=c
4046ac_cpp='$CPP $CPPFLAGS'
4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4051$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4052if ${am_cv_prog_cc_c_o+:} false; then :
4053  $as_echo_n "(cached) " >&6
4054else
4055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main ()
4060{
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066  # Make sure it works both with $CC and with simple cc.
4067  # Following AC_PROG_CC_C_O, we do the test twice because some
4068  # compilers refuse to overwrite an existing .o file with -o,
4069  # though they will create one.
4070  am_cv_prog_cc_c_o=yes
4071  for am_i in 1 2; do
4072    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4073   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } \
4077         && test -f conftest2.$ac_objext; then
4078      : OK
4079    else
4080      am_cv_prog_cc_c_o=no
4081      break
4082    fi
4083  done
4084  rm -f core conftest*
4085  unset am_i
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4088$as_echo "$am_cv_prog_cc_c_o" >&6; }
4089if test "$am_cv_prog_cc_c_o" != yes; then
4090   # Losing compiler, so override with the script.
4091   # FIXME: It is wrong to rewrite CC.
4092   # But if we don't then we get into trouble of one sort or another.
4093   # A longer-term fix would be to have automake use am__CC in this case,
4094   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4095   CC="$am_aux_dir/compile $CC"
4096fi
4097ac_ext=c
4098ac_cpp='$CPP $CPPFLAGS'
4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102
4103
4104depcc="$CC"   am_compiler_list=
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107$as_echo_n "checking dependency style of $depcc... " >&6; }
4108if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4109  $as_echo_n "(cached) " >&6
4110else
4111  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112  # We make a subdir and do the tests there.  Otherwise we can end up
4113  # making bogus files that we don't know about and never remove.  For
4114  # instance it was reported that on HP-UX the gcc test will end up
4115  # making a dummy file named 'D' -- because '-MD' means "put the output
4116  # in D".
4117  rm -rf conftest.dir
4118  mkdir conftest.dir
4119  # Copy depcomp to subdir because otherwise we won't find it if we're
4120  # using a relative directory.
4121  cp "$am_depcomp" conftest.dir
4122  cd conftest.dir
4123  # We will build objects and dependencies in a subdirectory because
4124  # it helps to detect inapplicable dependency modes.  For instance
4125  # both Tru64's cc and ICC support -MD to output dependencies as a
4126  # side effect of compilation, but ICC will put the dependencies in
4127  # the current directory while Tru64 will put them in the object
4128  # directory.
4129  mkdir sub
4130
4131  am_cv_CC_dependencies_compiler_type=none
4132  if test "$am_compiler_list" = ""; then
4133     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134  fi
4135  am__universal=false
4136  case " $depcc " in #(
4137     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4138     esac
4139
4140  for depmode in $am_compiler_list; do
4141    # Setup a source with many dependencies, because some compilers
4142    # like to wrap large dependency lists on column 80 (with \), and
4143    # we should not choose a depcomp mode which is confused by this.
4144    #
4145    # We need to recreate these files for each test, as the compiler may
4146    # overwrite some of them when testing with obscure command lines.
4147    # This happens at least with the AIX C compiler.
4148    : > sub/conftest.c
4149    for i in 1 2 3 4 5 6; do
4150      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4152      # Solaris 10 /bin/sh.
4153      echo '/* dummy */' > sub/conftst$i.h
4154    done
4155    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
4157    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4158    # mode.  It turns out that the SunPro C++ compiler does not properly
4159    # handle '-M -o', and we need to detect this.  Also, some Intel
4160    # versions had trouble with output in subdirs.
4161    am__obj=sub/conftest.${OBJEXT-o}
4162    am__minus_obj="-o $am__obj"
4163    case $depmode in
4164    gcc)
4165      # This depmode causes a compiler race in universal mode.
4166      test "$am__universal" = false || continue
4167      ;;
4168    nosideeffect)
4169      # After this tag, mechanisms are not by side-effect, so they'll
4170      # only be used when explicitly requested.
4171      if test "x$enable_dependency_tracking" = xyes; then
4172	continue
4173      else
4174	break
4175      fi
4176      ;;
4177    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4178      # This compiler won't grok '-c -o', but also, the minuso test has
4179      # not run yet.  These depmodes are late enough in the game, and
4180      # so weak that their functioning should not be impacted.
4181      am__obj=conftest.${OBJEXT-o}
4182      am__minus_obj=
4183      ;;
4184    none) break ;;
4185    esac
4186    if depmode=$depmode \
4187       source=sub/conftest.c object=$am__obj \
4188       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4190         >/dev/null 2>conftest.err &&
4191       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4192       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4193       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4194       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195      # icc doesn't choke on unknown options, it will just issue warnings
4196      # or remarks (even with -Werror).  So we grep stderr for any message
4197      # that says an option was ignored or not supported.
4198      # When given -MP, icc 7.0 and 7.1 complain thusly:
4199      #   icc: Command line warning: ignoring option '-M'; no argument required
4200      # The diagnosis changed in icc 8.0:
4201      #   icc: Command line remark: option '-MP' not supported
4202      if (grep 'ignoring option' conftest.err ||
4203          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4204        am_cv_CC_dependencies_compiler_type=$depmode
4205        break
4206      fi
4207    fi
4208  done
4209
4210  cd ..
4211  rm -rf conftest.dir
4212else
4213  am_cv_CC_dependencies_compiler_type=none
4214fi
4215
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4220
4221 if
4222  test "x$enable_dependency_tracking" != xno \
4223  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4224  am__fastdepCC_TRUE=
4225  am__fastdepCC_FALSE='#'
4226else
4227  am__fastdepCC_TRUE='#'
4228  am__fastdepCC_FALSE=
4229fi
4230
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4233$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4234if ${ac_cv_path_SED+:} false; then :
4235  $as_echo_n "(cached) " >&6
4236else
4237            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4238     for ac_i in 1 2 3 4 5 6 7; do
4239       ac_script="$ac_script$as_nl$ac_script"
4240     done
4241     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4242     { ac_script=; unset ac_script;}
4243     if test -z "$SED"; then
4244  ac_path_SED_found=false
4245  # Loop through the user's path and test for each of PROGNAME-LIST
4246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249  IFS=$as_save_IFS
4250  test -z "$as_dir" && as_dir=.
4251    for ac_prog in sed gsed; do
4252    for ac_exec_ext in '' $ac_executable_extensions; do
4253      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4254      as_fn_executable_p "$ac_path_SED" || continue
4255# Check for GNU ac_path_SED and select it if it is found.
4256  # Check for GNU $ac_path_SED
4257case `"$ac_path_SED" --version 2>&1` in
4258*GNU*)
4259  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4260*)
4261  ac_count=0
4262  $as_echo_n 0123456789 >"conftest.in"
4263  while :
4264  do
4265    cat "conftest.in" "conftest.in" >"conftest.tmp"
4266    mv "conftest.tmp" "conftest.in"
4267    cp "conftest.in" "conftest.nl"
4268    $as_echo '' >> "conftest.nl"
4269    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271    as_fn_arith $ac_count + 1 && ac_count=$as_val
4272    if test $ac_count -gt ${ac_path_SED_max-0}; then
4273      # Best one so far, save it but keep looking for a better one
4274      ac_cv_path_SED="$ac_path_SED"
4275      ac_path_SED_max=$ac_count
4276    fi
4277    # 10*(2^10) chars as input seems more than enough
4278    test $ac_count -gt 10 && break
4279  done
4280  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281esac
4282
4283      $ac_path_SED_found && break 3
4284    done
4285  done
4286  done
4287IFS=$as_save_IFS
4288  if test -z "$ac_cv_path_SED"; then
4289    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4290  fi
4291else
4292  ac_cv_path_SED=$SED
4293fi
4294
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4297$as_echo "$ac_cv_path_SED" >&6; }
4298 SED="$ac_cv_path_SED"
4299  rm -f conftest.sed
4300
4301test -z "$SED" && SED=sed
4302Xsed="$SED -e 1s/^X//"
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4315$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4316if ${ac_cv_path_GREP+:} false; then :
4317  $as_echo_n "(cached) " >&6
4318else
4319  if test -z "$GREP"; then
4320  ac_path_GREP_found=false
4321  # Loop through the user's path and test for each of PROGNAME-LIST
4322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324do
4325  IFS=$as_save_IFS
4326  test -z "$as_dir" && as_dir=.
4327    for ac_prog in grep ggrep; do
4328    for ac_exec_ext in '' $ac_executable_extensions; do
4329      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4330      as_fn_executable_p "$ac_path_GREP" || continue
4331# Check for GNU ac_path_GREP and select it if it is found.
4332  # Check for GNU $ac_path_GREP
4333case `"$ac_path_GREP" --version 2>&1` in
4334*GNU*)
4335  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4336*)
4337  ac_count=0
4338  $as_echo_n 0123456789 >"conftest.in"
4339  while :
4340  do
4341    cat "conftest.in" "conftest.in" >"conftest.tmp"
4342    mv "conftest.tmp" "conftest.in"
4343    cp "conftest.in" "conftest.nl"
4344    $as_echo 'GREP' >> "conftest.nl"
4345    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347    as_fn_arith $ac_count + 1 && ac_count=$as_val
4348    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4349      # Best one so far, save it but keep looking for a better one
4350      ac_cv_path_GREP="$ac_path_GREP"
4351      ac_path_GREP_max=$ac_count
4352    fi
4353    # 10*(2^10) chars as input seems more than enough
4354    test $ac_count -gt 10 && break
4355  done
4356  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357esac
4358
4359      $ac_path_GREP_found && break 3
4360    done
4361  done
4362  done
4363IFS=$as_save_IFS
4364  if test -z "$ac_cv_path_GREP"; then
4365    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4366  fi
4367else
4368  ac_cv_path_GREP=$GREP
4369fi
4370
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4373$as_echo "$ac_cv_path_GREP" >&6; }
4374 GREP="$ac_cv_path_GREP"
4375
4376
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4378$as_echo_n "checking for egrep... " >&6; }
4379if ${ac_cv_path_EGREP+:} false; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4383   then ac_cv_path_EGREP="$GREP -E"
4384   else
4385     if test -z "$EGREP"; then
4386  ac_path_EGREP_found=false
4387  # Loop through the user's path and test for each of PROGNAME-LIST
4388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390do
4391  IFS=$as_save_IFS
4392  test -z "$as_dir" && as_dir=.
4393    for ac_prog in egrep; do
4394    for ac_exec_ext in '' $ac_executable_extensions; do
4395      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4396      as_fn_executable_p "$ac_path_EGREP" || continue
4397# Check for GNU ac_path_EGREP and select it if it is found.
4398  # Check for GNU $ac_path_EGREP
4399case `"$ac_path_EGREP" --version 2>&1` in
4400*GNU*)
4401  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4402*)
4403  ac_count=0
4404  $as_echo_n 0123456789 >"conftest.in"
4405  while :
4406  do
4407    cat "conftest.in" "conftest.in" >"conftest.tmp"
4408    mv "conftest.tmp" "conftest.in"
4409    cp "conftest.in" "conftest.nl"
4410    $as_echo 'EGREP' >> "conftest.nl"
4411    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413    as_fn_arith $ac_count + 1 && ac_count=$as_val
4414    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4415      # Best one so far, save it but keep looking for a better one
4416      ac_cv_path_EGREP="$ac_path_EGREP"
4417      ac_path_EGREP_max=$ac_count
4418    fi
4419    # 10*(2^10) chars as input seems more than enough
4420    test $ac_count -gt 10 && break
4421  done
4422  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423esac
4424
4425      $ac_path_EGREP_found && break 3
4426    done
4427  done
4428  done
4429IFS=$as_save_IFS
4430  if test -z "$ac_cv_path_EGREP"; then
4431    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432  fi
4433else
4434  ac_cv_path_EGREP=$EGREP
4435fi
4436
4437   fi
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4440$as_echo "$ac_cv_path_EGREP" >&6; }
4441 EGREP="$ac_cv_path_EGREP"
4442
4443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4445$as_echo_n "checking for fgrep... " >&6; }
4446if ${ac_cv_path_FGREP+:} false; then :
4447  $as_echo_n "(cached) " >&6
4448else
4449  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4450   then ac_cv_path_FGREP="$GREP -F"
4451   else
4452     if test -z "$FGREP"; then
4453  ac_path_FGREP_found=false
4454  # Loop through the user's path and test for each of PROGNAME-LIST
4455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457do
4458  IFS=$as_save_IFS
4459  test -z "$as_dir" && as_dir=.
4460    for ac_prog in fgrep; do
4461    for ac_exec_ext in '' $ac_executable_extensions; do
4462      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4463      as_fn_executable_p "$ac_path_FGREP" || continue
4464# Check for GNU ac_path_FGREP and select it if it is found.
4465  # Check for GNU $ac_path_FGREP
4466case `"$ac_path_FGREP" --version 2>&1` in
4467*GNU*)
4468  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4469*)
4470  ac_count=0
4471  $as_echo_n 0123456789 >"conftest.in"
4472  while :
4473  do
4474    cat "conftest.in" "conftest.in" >"conftest.tmp"
4475    mv "conftest.tmp" "conftest.in"
4476    cp "conftest.in" "conftest.nl"
4477    $as_echo 'FGREP' >> "conftest.nl"
4478    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480    as_fn_arith $ac_count + 1 && ac_count=$as_val
4481    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4482      # Best one so far, save it but keep looking for a better one
4483      ac_cv_path_FGREP="$ac_path_FGREP"
4484      ac_path_FGREP_max=$ac_count
4485    fi
4486    # 10*(2^10) chars as input seems more than enough
4487    test $ac_count -gt 10 && break
4488  done
4489  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490esac
4491
4492      $ac_path_FGREP_found && break 3
4493    done
4494  done
4495  done
4496IFS=$as_save_IFS
4497  if test -z "$ac_cv_path_FGREP"; then
4498    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4499  fi
4500else
4501  ac_cv_path_FGREP=$FGREP
4502fi
4503
4504   fi
4505fi
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4507$as_echo "$ac_cv_path_FGREP" >&6; }
4508 FGREP="$ac_cv_path_FGREP"
4509
4510
4511test -z "$GREP" && GREP=grep
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531# Check whether --with-gnu-ld was given.
4532if test "${with_gnu_ld+set}" = set; then :
4533  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4534else
4535  with_gnu_ld=no
4536fi
4537
4538ac_prog=ld
4539if test yes = "$GCC"; then
4540  # Check if gcc -print-prog-name=ld gives a path.
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4542$as_echo_n "checking for ld used by $CC... " >&6; }
4543  case $host in
4544  *-*-mingw*)
4545    # gcc leaves a trailing carriage return, which upsets mingw
4546    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4547  *)
4548    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4549  esac
4550  case $ac_prog in
4551    # Accept absolute paths.
4552    [\\/]* | ?:[\\/]*)
4553      re_direlt='/[^/][^/]*/\.\./'
4554      # Canonicalize the pathname of ld
4555      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4556      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4557	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4558      done
4559      test -z "$LD" && LD=$ac_prog
4560      ;;
4561  "")
4562    # If it fails, then pretend we aren't using GCC.
4563    ac_prog=ld
4564    ;;
4565  *)
4566    # If it is relative, then search for the first ld in PATH.
4567    with_gnu_ld=unknown
4568    ;;
4569  esac
4570elif test yes = "$with_gnu_ld"; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4572$as_echo_n "checking for GNU ld... " >&6; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4575$as_echo_n "checking for non-GNU ld... " >&6; }
4576fi
4577if ${lt_cv_path_LD+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  if test -z "$LD"; then
4581  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4582  for ac_dir in $PATH; do
4583    IFS=$lt_save_ifs
4584    test -z "$ac_dir" && ac_dir=.
4585    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4586      lt_cv_path_LD=$ac_dir/$ac_prog
4587      # Check to see if the program is GNU ld.  I'd rather use --version,
4588      # but apparently some variants of GNU ld only accept -v.
4589      # Break only if it was the GNU/non-GNU ld that we prefer.
4590      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4591      *GNU* | *'with BFD'*)
4592	test no != "$with_gnu_ld" && break
4593	;;
4594      *)
4595	test yes != "$with_gnu_ld" && break
4596	;;
4597      esac
4598    fi
4599  done
4600  IFS=$lt_save_ifs
4601else
4602  lt_cv_path_LD=$LD # Let the user override the test with a path.
4603fi
4604fi
4605
4606LD=$lt_cv_path_LD
4607if test -n "$LD"; then
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4609$as_echo "$LD" >&6; }
4610else
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612$as_echo "no" >&6; }
4613fi
4614test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4616$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4617if ${lt_cv_prog_gnu_ld+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4621case `$LD -v 2>&1 </dev/null` in
4622*GNU* | *'with BFD'*)
4623  lt_cv_prog_gnu_ld=yes
4624  ;;
4625*)
4626  lt_cv_prog_gnu_ld=no
4627  ;;
4628esac
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4631$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4632with_gnu_ld=$lt_cv_prog_gnu_ld
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4643$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4644if ${lt_cv_path_NM+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  if test -n "$NM"; then
4648  # Let the user override the test.
4649  lt_cv_path_NM=$NM
4650else
4651  lt_nm_to_check=${ac_tool_prefix}nm
4652  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4653    lt_nm_to_check="$lt_nm_to_check nm"
4654  fi
4655  for lt_tmp_nm in $lt_nm_to_check; do
4656    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4657    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4658      IFS=$lt_save_ifs
4659      test -z "$ac_dir" && ac_dir=.
4660      tmp_nm=$ac_dir/$lt_tmp_nm
4661      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4662	# Check to see if the nm accepts a BSD-compat flag.
4663	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4664	#   nm: unknown option "B" ignored
4665	# Tru64's nm complains that /dev/null is an invalid object file
4666	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4667	case $build_os in
4668	mingw*) lt_bad_file=conftest.nm/nofile ;;
4669	*) lt_bad_file=/dev/null ;;
4670	esac
4671	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4672	*$lt_bad_file* | *'Invalid file or object type'*)
4673	  lt_cv_path_NM="$tmp_nm -B"
4674	  break 2
4675	  ;;
4676	*)
4677	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4678	  */dev/null*)
4679	    lt_cv_path_NM="$tmp_nm -p"
4680	    break 2
4681	    ;;
4682	  *)
4683	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4684	    continue # so that we can try to find one that supports BSD flags
4685	    ;;
4686	  esac
4687	  ;;
4688	esac
4689      fi
4690    done
4691    IFS=$lt_save_ifs
4692  done
4693  : ${lt_cv_path_NM=no}
4694fi
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4697$as_echo "$lt_cv_path_NM" >&6; }
4698if test no != "$lt_cv_path_NM"; then
4699  NM=$lt_cv_path_NM
4700else
4701  # Didn't find any BSD compatible name lister, look for dumpbin.
4702  if test -n "$DUMPBIN"; then :
4703    # Let the user override the test.
4704  else
4705    if test -n "$ac_tool_prefix"; then
4706  for ac_prog in dumpbin "link -dump"
4707  do
4708    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4709set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711$as_echo_n "checking for $ac_word... " >&6; }
4712if ${ac_cv_prog_DUMPBIN+:} false; then :
4713  $as_echo_n "(cached) " >&6
4714else
4715  if test -n "$DUMPBIN"; then
4716  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721  IFS=$as_save_IFS
4722  test -z "$as_dir" && as_dir=.
4723    for ac_exec_ext in '' $ac_executable_extensions; do
4724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727    break 2
4728  fi
4729done
4730  done
4731IFS=$as_save_IFS
4732
4733fi
4734fi
4735DUMPBIN=$ac_cv_prog_DUMPBIN
4736if test -n "$DUMPBIN"; then
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4738$as_echo "$DUMPBIN" >&6; }
4739else
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
4742fi
4743
4744
4745    test -n "$DUMPBIN" && break
4746  done
4747fi
4748if test -z "$DUMPBIN"; then
4749  ac_ct_DUMPBIN=$DUMPBIN
4750  for ac_prog in dumpbin "link -dump"
4751do
4752  # Extract the first word of "$ac_prog", so it can be a program name with args.
4753set dummy $ac_prog; ac_word=$2
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755$as_echo_n "checking for $ac_word... " >&6; }
4756if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  if test -n "$ac_ct_DUMPBIN"; then
4760  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761else
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765  IFS=$as_save_IFS
4766  test -z "$as_dir" && as_dir=.
4767    for ac_exec_ext in '' $ac_executable_extensions; do
4768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771    break 2
4772  fi
4773done
4774  done
4775IFS=$as_save_IFS
4776
4777fi
4778fi
4779ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4780if test -n "$ac_ct_DUMPBIN"; then
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4782$as_echo "$ac_ct_DUMPBIN" >&6; }
4783else
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786fi
4787
4788
4789  test -n "$ac_ct_DUMPBIN" && break
4790done
4791
4792  if test "x$ac_ct_DUMPBIN" = x; then
4793    DUMPBIN=":"
4794  else
4795    case $cross_compiling:$ac_tool_warned in
4796yes:)
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799ac_tool_warned=yes ;;
4800esac
4801    DUMPBIN=$ac_ct_DUMPBIN
4802  fi
4803fi
4804
4805    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4806    *COFF*)
4807      DUMPBIN="$DUMPBIN -symbols -headers"
4808      ;;
4809    *)
4810      DUMPBIN=:
4811      ;;
4812    esac
4813  fi
4814
4815  if test : != "$DUMPBIN"; then
4816    NM=$DUMPBIN
4817  fi
4818fi
4819test -z "$NM" && NM=nm
4820
4821
4822
4823
4824
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4827$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4828if ${lt_cv_nm_interface+:} false; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831  lt_cv_nm_interface="BSD nm"
4832  echo "int some_variable = 0;" > conftest.$ac_ext
4833  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4834  (eval "$ac_compile" 2>conftest.err)
4835  cat conftest.err >&5
4836  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4837  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4838  cat conftest.err >&5
4839  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4840  cat conftest.out >&5
4841  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4842    lt_cv_nm_interface="MS dumpbin"
4843  fi
4844  rm -f conftest*
4845fi
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4847$as_echo "$lt_cv_nm_interface" >&6; }
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4850$as_echo_n "checking whether ln -s works... " >&6; }
4851LN_S=$as_ln_s
4852if test "$LN_S" = "ln -s"; then
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854$as_echo "yes" >&6; }
4855else
4856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4857$as_echo "no, using $LN_S" >&6; }
4858fi
4859
4860# find the maximum length of command line arguments
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4862$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4863if ${lt_cv_sys_max_cmd_len+:} false; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866    i=0
4867  teststring=ABCD
4868
4869  case $build_os in
4870  msdosdjgpp*)
4871    # On DJGPP, this test can blow up pretty badly due to problems in libc
4872    # (any single argument exceeding 2000 bytes causes a buffer overrun
4873    # during glob expansion).  Even if it were fixed, the result of this
4874    # check would be larger than it should be.
4875    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4876    ;;
4877
4878  gnu*)
4879    # Under GNU Hurd, this test is not required because there is
4880    # no limit to the length of command line arguments.
4881    # Libtool will interpret -1 as no limit whatsoever
4882    lt_cv_sys_max_cmd_len=-1;
4883    ;;
4884
4885  cygwin* | mingw* | cegcc*)
4886    # On Win9x/ME, this test blows up -- it succeeds, but takes
4887    # about 5 minutes as the teststring grows exponentially.
4888    # Worse, since 9x/ME are not pre-emptively multitasking,
4889    # you end up with a "frozen" computer, even though with patience
4890    # the test eventually succeeds (with a max line length of 256k).
4891    # Instead, let's just punt: use the minimum linelength reported by
4892    # all of the supported platforms: 8192 (on NT/2K/XP).
4893    lt_cv_sys_max_cmd_len=8192;
4894    ;;
4895
4896  mint*)
4897    # On MiNT this can take a long time and run out of memory.
4898    lt_cv_sys_max_cmd_len=8192;
4899    ;;
4900
4901  amigaos*)
4902    # On AmigaOS with pdksh, this test takes hours, literally.
4903    # So we just punt and use a minimum line length of 8192.
4904    lt_cv_sys_max_cmd_len=8192;
4905    ;;
4906
4907  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4908    # This has been around since 386BSD, at least.  Likely further.
4909    if test -x /sbin/sysctl; then
4910      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4911    elif test -x /usr/sbin/sysctl; then
4912      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4913    else
4914      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4915    fi
4916    # And add a safety zone
4917    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4919    ;;
4920
4921  interix*)
4922    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4923    lt_cv_sys_max_cmd_len=196608
4924    ;;
4925
4926  os2*)
4927    # The test takes a long time on OS/2.
4928    lt_cv_sys_max_cmd_len=8192
4929    ;;
4930
4931  osf*)
4932    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4933    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4934    # nice to cause kernel panics so lets avoid the loop below.
4935    # First set a reasonable default.
4936    lt_cv_sys_max_cmd_len=16384
4937    #
4938    if test -x /sbin/sysconfig; then
4939      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4940        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4941      esac
4942    fi
4943    ;;
4944  sco3.2v5*)
4945    lt_cv_sys_max_cmd_len=102400
4946    ;;
4947  sysv5* | sco5v6* | sysv4.2uw2*)
4948    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4949    if test -n "$kargmax"; then
4950      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4951    else
4952      lt_cv_sys_max_cmd_len=32768
4953    fi
4954    ;;
4955  *)
4956    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4957    if test -n "$lt_cv_sys_max_cmd_len" && \
4958       test undefined != "$lt_cv_sys_max_cmd_len"; then
4959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4960      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4961    else
4962      # Make teststring a little bigger before we do anything with it.
4963      # a 1K string should be a reasonable start.
4964      for i in 1 2 3 4 5 6 7 8; do
4965        teststring=$teststring$teststring
4966      done
4967      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4968      # If test is not a shell built-in, we'll probably end up computing a
4969      # maximum length that is only half of the actual maximum length, but
4970      # we can't tell.
4971      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4972	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4973	      test 17 != "$i" # 1/2 MB should be enough
4974      do
4975        i=`expr $i + 1`
4976        teststring=$teststring$teststring
4977      done
4978      # Only check the string length outside the loop.
4979      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4980      teststring=
4981      # Add a significant safety factor because C++ compilers can tack on
4982      # massive amounts of additional arguments before passing them to the
4983      # linker.  It appears as though 1/2 is a usable value.
4984      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4985    fi
4986    ;;
4987  esac
4988
4989fi
4990
4991if test -n "$lt_cv_sys_max_cmd_len"; then
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4993$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4994else
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4996$as_echo "none" >&6; }
4997fi
4998max_cmd_len=$lt_cv_sys_max_cmd_len
4999
5000
5001
5002
5003
5004
5005: ${CP="cp -f"}
5006: ${MV="mv -f"}
5007: ${RM="rm -f"}
5008
5009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5010  lt_unset=unset
5011else
5012  lt_unset=false
5013fi
5014
5015
5016
5017
5018
5019# test EBCDIC or ASCII
5020case `echo X|tr X '\101'` in
5021 A) # ASCII based system
5022    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5023  lt_SP2NL='tr \040 \012'
5024  lt_NL2SP='tr \015\012 \040\040'
5025  ;;
5026 *) # EBCDIC based system
5027  lt_SP2NL='tr \100 \n'
5028  lt_NL2SP='tr \r\n \100\100'
5029  ;;
5030esac
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5041$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5042if ${lt_cv_to_host_file_cmd+:} false; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  case $host in
5046  *-*-mingw* )
5047    case $build in
5048      *-*-mingw* ) # actually msys
5049        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5050        ;;
5051      *-*-cygwin* )
5052        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5053        ;;
5054      * ) # otherwise, assume *nix
5055        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5056        ;;
5057    esac
5058    ;;
5059  *-*-cygwin* )
5060    case $build in
5061      *-*-mingw* ) # actually msys
5062        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5063        ;;
5064      *-*-cygwin* )
5065        lt_cv_to_host_file_cmd=func_convert_file_noop
5066        ;;
5067      * ) # otherwise, assume *nix
5068        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5069        ;;
5070    esac
5071    ;;
5072  * ) # unhandled hosts (and "normal" native builds)
5073    lt_cv_to_host_file_cmd=func_convert_file_noop
5074    ;;
5075esac
5076
5077fi
5078
5079to_host_file_cmd=$lt_cv_to_host_file_cmd
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5081$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5082
5083
5084
5085
5086
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5088$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5089if ${lt_cv_to_tool_file_cmd+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  #assume ordinary cross tools, or native build.
5093lt_cv_to_tool_file_cmd=func_convert_file_noop
5094case $host in
5095  *-*-mingw* )
5096    case $build in
5097      *-*-mingw* ) # actually msys
5098        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5099        ;;
5100    esac
5101    ;;
5102esac
5103
5104fi
5105
5106to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5108$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5109
5110
5111
5112
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5115$as_echo_n "checking for $LD option to reload object files... " >&6; }
5116if ${lt_cv_ld_reload_flag+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  lt_cv_ld_reload_flag='-r'
5120fi
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5122$as_echo "$lt_cv_ld_reload_flag" >&6; }
5123reload_flag=$lt_cv_ld_reload_flag
5124case $reload_flag in
5125"" | " "*) ;;
5126*) reload_flag=" $reload_flag" ;;
5127esac
5128reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129case $host_os in
5130  cygwin* | mingw* | pw32* | cegcc*)
5131    if test yes != "$GCC"; then
5132      reload_cmds=false
5133    fi
5134    ;;
5135  darwin*)
5136    if test yes = "$GCC"; then
5137      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5138    else
5139      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5140    fi
5141    ;;
5142esac
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152if test -n "$ac_tool_prefix"; then
5153  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5154set dummy ${ac_tool_prefix}objdump; ac_word=$2
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if ${ac_cv_prog_OBJDUMP+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -n "$OBJDUMP"; then
5161  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172    break 2
5173  fi
5174done
5175  done
5176IFS=$as_save_IFS
5177
5178fi
5179fi
5180OBJDUMP=$ac_cv_prog_OBJDUMP
5181if test -n "$OBJDUMP"; then
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5183$as_echo "$OBJDUMP" >&6; }
5184else
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189
5190fi
5191if test -z "$ac_cv_prog_OBJDUMP"; then
5192  ac_ct_OBJDUMP=$OBJDUMP
5193  # Extract the first word of "objdump", so it can be a program name with args.
5194set dummy objdump; ac_word=$2
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196$as_echo_n "checking for $ac_word... " >&6; }
5197if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  if test -n "$ac_ct_OBJDUMP"; then
5201  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208    for ac_exec_ext in '' $ac_executable_extensions; do
5209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215  done
5216IFS=$as_save_IFS
5217
5218fi
5219fi
5220ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5221if test -n "$ac_ct_OBJDUMP"; then
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5223$as_echo "$ac_ct_OBJDUMP" >&6; }
5224else
5225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229  if test "x$ac_ct_OBJDUMP" = x; then
5230    OBJDUMP="false"
5231  else
5232    case $cross_compiling:$ac_tool_warned in
5233yes:)
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236ac_tool_warned=yes ;;
5237esac
5238    OBJDUMP=$ac_ct_OBJDUMP
5239  fi
5240else
5241  OBJDUMP="$ac_cv_prog_OBJDUMP"
5242fi
5243
5244test -z "$OBJDUMP" && OBJDUMP=objdump
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5255$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5256if ${lt_cv_deplibs_check_method+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  lt_cv_file_magic_cmd='$MAGIC_CMD'
5260lt_cv_file_magic_test_file=
5261lt_cv_deplibs_check_method='unknown'
5262# Need to set the preceding variable on all platforms that support
5263# interlibrary dependencies.
5264# 'none' -- dependencies not supported.
5265# 'unknown' -- same as none, but documents that we really don't know.
5266# 'pass_all' -- all dependencies passed with no checks.
5267# 'test_compile' -- check by making test program.
5268# 'file_magic [[regex]]' -- check by looking for files in library path
5269# that responds to the $file_magic_cmd with a given extended regex.
5270# If you have 'file' or equivalent on your system and you're not sure
5271# whether 'pass_all' will *always* work, you probably want this one.
5272
5273case $host_os in
5274aix[4-9]*)
5275  lt_cv_deplibs_check_method=pass_all
5276  ;;
5277
5278beos*)
5279  lt_cv_deplibs_check_method=pass_all
5280  ;;
5281
5282bsdi[45]*)
5283  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5284  lt_cv_file_magic_cmd='/usr/bin/file -L'
5285  lt_cv_file_magic_test_file=/shlib/libc.so
5286  ;;
5287
5288cygwin*)
5289  # func_win32_libid is a shell function defined in ltmain.sh
5290  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5291  lt_cv_file_magic_cmd='func_win32_libid'
5292  ;;
5293
5294mingw* | pw32*)
5295  # Base MSYS/MinGW do not provide the 'file' command needed by
5296  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5297  # unless we find 'file', for example because we are cross-compiling.
5298  if ( file / ) >/dev/null 2>&1; then
5299    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5300    lt_cv_file_magic_cmd='func_win32_libid'
5301  else
5302    # Keep this pattern in sync with the one in func_win32_libid.
5303    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5304    lt_cv_file_magic_cmd='$OBJDUMP -f'
5305  fi
5306  ;;
5307
5308cegcc*)
5309  # use the weaker test based on 'objdump'. See mingw*.
5310  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5311  lt_cv_file_magic_cmd='$OBJDUMP -f'
5312  ;;
5313
5314darwin* | rhapsody*)
5315  lt_cv_deplibs_check_method=pass_all
5316  ;;
5317
5318freebsd* | dragonfly*)
5319  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5320    case $host_cpu in
5321    i*86 )
5322      # Not sure whether the presence of OpenBSD here was a mistake.
5323      # Let's accept both of them until this is cleared up.
5324      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5325      lt_cv_file_magic_cmd=/usr/bin/file
5326      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5327      ;;
5328    esac
5329  else
5330    lt_cv_deplibs_check_method=pass_all
5331  fi
5332  ;;
5333
5334haiku*)
5335  lt_cv_deplibs_check_method=pass_all
5336  ;;
5337
5338hpux10.20* | hpux11*)
5339  lt_cv_file_magic_cmd=/usr/bin/file
5340  case $host_cpu in
5341  ia64*)
5342    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5343    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5344    ;;
5345  hppa*64*)
5346    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]'
5347    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5348    ;;
5349  *)
5350    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5351    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5352    ;;
5353  esac
5354  ;;
5355
5356interix[3-9]*)
5357  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5358  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5359  ;;
5360
5361irix5* | irix6* | nonstopux*)
5362  case $LD in
5363  *-32|*"-32 ") libmagic=32-bit;;
5364  *-n32|*"-n32 ") libmagic=N32;;
5365  *-64|*"-64 ") libmagic=64-bit;;
5366  *) libmagic=never-match;;
5367  esac
5368  lt_cv_deplibs_check_method=pass_all
5369  ;;
5370
5371# This must be glibc/ELF.
5372linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5373  lt_cv_deplibs_check_method=pass_all
5374  ;;
5375
5376netbsd*)
5377  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5379  else
5380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5381  fi
5382  ;;
5383
5384newos6*)
5385  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5386  lt_cv_file_magic_cmd=/usr/bin/file
5387  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5388  ;;
5389
5390*nto* | *qnx*)
5391  lt_cv_deplibs_check_method=pass_all
5392  ;;
5393
5394openbsd* | bitrig*)
5395  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5396    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5397  else
5398    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5399  fi
5400  ;;
5401
5402osf3* | osf4* | osf5*)
5403  lt_cv_deplibs_check_method=pass_all
5404  ;;
5405
5406rdos*)
5407  lt_cv_deplibs_check_method=pass_all
5408  ;;
5409
5410solaris*)
5411  lt_cv_deplibs_check_method=pass_all
5412  ;;
5413
5414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5415  lt_cv_deplibs_check_method=pass_all
5416  ;;
5417
5418sysv4 | sysv4.3*)
5419  case $host_vendor in
5420  motorola)
5421    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]'
5422    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5423    ;;
5424  ncr)
5425    lt_cv_deplibs_check_method=pass_all
5426    ;;
5427  sequent)
5428    lt_cv_file_magic_cmd='/bin/file'
5429    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5430    ;;
5431  sni)
5432    lt_cv_file_magic_cmd='/bin/file'
5433    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5434    lt_cv_file_magic_test_file=/lib/libc.so
5435    ;;
5436  siemens)
5437    lt_cv_deplibs_check_method=pass_all
5438    ;;
5439  pc)
5440    lt_cv_deplibs_check_method=pass_all
5441    ;;
5442  esac
5443  ;;
5444
5445tpf*)
5446  lt_cv_deplibs_check_method=pass_all
5447  ;;
5448os2*)
5449  lt_cv_deplibs_check_method=pass_all
5450  ;;
5451esac
5452
5453fi
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5455$as_echo "$lt_cv_deplibs_check_method" >&6; }
5456
5457file_magic_glob=
5458want_nocaseglob=no
5459if test "$build" = "$host"; then
5460  case $host_os in
5461  mingw* | pw32*)
5462    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5463      want_nocaseglob=yes
5464    else
5465      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5466    fi
5467    ;;
5468  esac
5469fi
5470
5471file_magic_cmd=$lt_cv_file_magic_cmd
5472deplibs_check_method=$lt_cv_deplibs_check_method
5473test -z "$deplibs_check_method" && deplibs_check_method=unknown
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496if test -n "$ac_tool_prefix"; then
5497  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5498set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500$as_echo_n "checking for $ac_word... " >&6; }
5501if ${ac_cv_prog_DLLTOOL+:} false; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  if test -n "$DLLTOOL"; then
5505  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512    for ac_exec_ext in '' $ac_executable_extensions; do
5513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519  done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524DLLTOOL=$ac_cv_prog_DLLTOOL
5525if test -n "$DLLTOOL"; then
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5527$as_echo "$DLLTOOL" >&6; }
5528else
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533
5534fi
5535if test -z "$ac_cv_prog_DLLTOOL"; then
5536  ac_ct_DLLTOOL=$DLLTOOL
5537  # Extract the first word of "dlltool", so it can be a program name with args.
5538set dummy dlltool; ac_word=$2
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540$as_echo_n "checking for $ac_word... " >&6; }
5541if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5542  $as_echo_n "(cached) " >&6
5543else
5544  if test -n "$ac_ct_DLLTOOL"; then
5545  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550  IFS=$as_save_IFS
5551  test -z "$as_dir" && as_dir=.
5552    for ac_exec_ext in '' $ac_executable_extensions; do
5553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556    break 2
5557  fi
5558done
5559  done
5560IFS=$as_save_IFS
5561
5562fi
5563fi
5564ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5565if test -n "$ac_ct_DLLTOOL"; then
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5567$as_echo "$ac_ct_DLLTOOL" >&6; }
5568else
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572
5573  if test "x$ac_ct_DLLTOOL" = x; then
5574    DLLTOOL="false"
5575  else
5576    case $cross_compiling:$ac_tool_warned in
5577yes:)
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580ac_tool_warned=yes ;;
5581esac
5582    DLLTOOL=$ac_ct_DLLTOOL
5583  fi
5584else
5585  DLLTOOL="$ac_cv_prog_DLLTOOL"
5586fi
5587
5588test -z "$DLLTOOL" && DLLTOOL=dlltool
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5600$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5601if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  lt_cv_sharedlib_from_linklib_cmd='unknown'
5605
5606case $host_os in
5607cygwin* | mingw* | pw32* | cegcc*)
5608  # two different shell functions defined in ltmain.sh;
5609  # decide which one to use based on capabilities of $DLLTOOL
5610  case `$DLLTOOL --help 2>&1` in
5611  *--identify-strict*)
5612    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5613    ;;
5614  *)
5615    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5616    ;;
5617  esac
5618  ;;
5619*)
5620  # fallback: assume linklib IS sharedlib
5621  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5622  ;;
5623esac
5624
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5627$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5628sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5629test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5630
5631
5632
5633
5634
5635
5636
5637
5638if test -n "$ac_tool_prefix"; then
5639  for ac_prog in ar
5640  do
5641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if ${ac_cv_prog_AR+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  if test -n "$AR"; then
5649  ac_cv_prog_AR="$AR" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668AR=$ac_cv_prog_AR
5669if test -n "$AR"; then
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5671$as_echo "$AR" >&6; }
5672else
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675fi
5676
5677
5678    test -n "$AR" && break
5679  done
5680fi
5681if test -z "$AR"; then
5682  ac_ct_AR=$AR
5683  for ac_prog in ar
5684do
5685  # Extract the first word of "$ac_prog", so it can be a program name with args.
5686set dummy $ac_prog; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_ac_ct_AR+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$ac_ct_AR"; then
5693  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702    ac_cv_prog_ac_ct_AR="$ac_prog"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_AR=$ac_cv_prog_ac_ct_AR
5713if test -n "$ac_ct_AR"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5715$as_echo "$ac_ct_AR" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722  test -n "$ac_ct_AR" && break
5723done
5724
5725  if test "x$ac_ct_AR" = x; then
5726    AR="false"
5727  else
5728    case $cross_compiling:$ac_tool_warned in
5729yes:)
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732ac_tool_warned=yes ;;
5733esac
5734    AR=$ac_ct_AR
5735  fi
5736fi
5737
5738: ${AR=ar}
5739: ${AR_FLAGS=cru}
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5752$as_echo_n "checking for archiver @FILE support... " >&6; }
5753if ${lt_cv_ar_at_file+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  lt_cv_ar_at_file=no
5757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h.  */
5759
5760int
5761main ()
5762{
5763
5764  ;
5765  return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769  echo conftest.$ac_objext > conftest.lst
5770      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5771      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5772  (eval $lt_ar_try) 2>&5
5773  ac_status=$?
5774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775  test $ac_status = 0; }
5776      if test 0 -eq "$ac_status"; then
5777	# Ensure the archiver fails upon bogus file names.
5778	rm -f conftest.$ac_objext libconftest.a
5779	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5780  (eval $lt_ar_try) 2>&5
5781  ac_status=$?
5782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783  test $ac_status = 0; }
5784	if test 0 -ne "$ac_status"; then
5785          lt_cv_ar_at_file=@
5786        fi
5787      fi
5788      rm -f conftest.* libconftest.a
5789
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5795$as_echo "$lt_cv_ar_at_file" >&6; }
5796
5797if test no = "$lt_cv_ar_at_file"; then
5798  archiver_list_spec=
5799else
5800  archiver_list_spec=$lt_cv_ar_at_file
5801fi
5802
5803
5804
5805
5806
5807
5808
5809if test -n "$ac_tool_prefix"; then
5810  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811set dummy ${ac_tool_prefix}strip; ac_word=$2
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
5814if ${ac_cv_prog_STRIP+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  if test -n "$STRIP"; then
5818  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825    for ac_exec_ext in '' $ac_executable_extensions; do
5826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832  done
5833IFS=$as_save_IFS
5834
5835fi
5836fi
5837STRIP=$ac_cv_prog_STRIP
5838if test -n "$STRIP"; then
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5840$as_echo "$STRIP" >&6; }
5841else
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844fi
5845
5846
5847fi
5848if test -z "$ac_cv_prog_STRIP"; then
5849  ac_ct_STRIP=$STRIP
5850  # Extract the first word of "strip", so it can be a program name with args.
5851set dummy strip; ac_word=$2
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5855  $as_echo_n "(cached) " >&6
5856else
5857  if test -n "$ac_ct_STRIP"; then
5858  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863  IFS=$as_save_IFS
5864  test -z "$as_dir" && as_dir=.
5865    for ac_exec_ext in '' $ac_executable_extensions; do
5866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867    ac_cv_prog_ac_ct_STRIP="strip"
5868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869    break 2
5870  fi
5871done
5872  done
5873IFS=$as_save_IFS
5874
5875fi
5876fi
5877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5878if test -n "$ac_ct_STRIP"; then
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5880$as_echo "$ac_ct_STRIP" >&6; }
5881else
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885
5886  if test "x$ac_ct_STRIP" = x; then
5887    STRIP=":"
5888  else
5889    case $cross_compiling:$ac_tool_warned in
5890yes:)
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893ac_tool_warned=yes ;;
5894esac
5895    STRIP=$ac_ct_STRIP
5896  fi
5897else
5898  STRIP="$ac_cv_prog_STRIP"
5899fi
5900
5901test -z "$STRIP" && STRIP=:
5902
5903
5904
5905
5906
5907
5908if test -n "$ac_tool_prefix"; then
5909  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912$as_echo_n "checking for $ac_word... " >&6; }
5913if ${ac_cv_prog_RANLIB+:} false; then :
5914  $as_echo_n "(cached) " >&6
5915else
5916  if test -n "$RANLIB"; then
5917  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924    for ac_exec_ext in '' $ac_executable_extensions; do
5925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931  done
5932IFS=$as_save_IFS
5933
5934fi
5935fi
5936RANLIB=$ac_cv_prog_RANLIB
5937if test -n "$RANLIB"; then
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5939$as_echo "$RANLIB" >&6; }
5940else
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945
5946fi
5947if test -z "$ac_cv_prog_RANLIB"; then
5948  ac_ct_RANLIB=$RANLIB
5949  # Extract the first word of "ranlib", so it can be a program name with args.
5950set dummy ranlib; ac_word=$2
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  if test -n "$ac_ct_RANLIB"; then
5957  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964    for ac_exec_ext in '' $ac_executable_extensions; do
5965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966    ac_cv_prog_ac_ct_RANLIB="ranlib"
5967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971  done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5977if test -n "$ac_ct_RANLIB"; then
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5979$as_echo "$ac_ct_RANLIB" >&6; }
5980else
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985  if test "x$ac_ct_RANLIB" = x; then
5986    RANLIB=":"
5987  else
5988    case $cross_compiling:$ac_tool_warned in
5989yes:)
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992ac_tool_warned=yes ;;
5993esac
5994    RANLIB=$ac_ct_RANLIB
5995  fi
5996else
5997  RANLIB="$ac_cv_prog_RANLIB"
5998fi
5999
6000test -z "$RANLIB" && RANLIB=:
6001
6002
6003
6004
6005
6006
6007# Determine commands to create old-style static archives.
6008old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6009old_postinstall_cmds='chmod 644 $oldlib'
6010old_postuninstall_cmds=
6011
6012if test -n "$RANLIB"; then
6013  case $host_os in
6014  bitrig* | openbsd*)
6015    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6016    ;;
6017  *)
6018    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6019    ;;
6020  esac
6021  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6022fi
6023
6024case $host_os in
6025  darwin*)
6026    lock_old_archive_extraction=yes ;;
6027  *)
6028    lock_old_archive_extraction=no ;;
6029esac
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
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# If no C compiler was specified, use CC.
6070LTCC=${LTCC-"$CC"}
6071
6072# If no C compiler flags were specified, use CFLAGS.
6073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6074
6075# Allow CC to be a program name with arguments.
6076compiler=$CC
6077
6078
6079# Check for command to grab the raw symbol name followed by C symbol from nm.
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6081$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6082if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085
6086# These are sane defaults that work on at least a few old systems.
6087# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6088
6089# Character class describing NM global symbol codes.
6090symcode='[BCDEGRST]'
6091
6092# Regexp to match symbols that can be accessed directly from C.
6093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6094
6095# Define system-specific variables.
6096case $host_os in
6097aix*)
6098  symcode='[BCDT]'
6099  ;;
6100cygwin* | mingw* | pw32* | cegcc*)
6101  symcode='[ABCDGISTW]'
6102  ;;
6103hpux*)
6104  if test ia64 = "$host_cpu"; then
6105    symcode='[ABCDEGRST]'
6106  fi
6107  ;;
6108irix* | nonstopux*)
6109  symcode='[BCDEGRST]'
6110  ;;
6111osf*)
6112  symcode='[BCDEGQRST]'
6113  ;;
6114solaris*)
6115  symcode='[BDRT]'
6116  ;;
6117sco3.2v5*)
6118  symcode='[DT]'
6119  ;;
6120sysv4.2uw2*)
6121  symcode='[DT]'
6122  ;;
6123sysv5* | sco5v6* | unixware* | OpenUNIX*)
6124  symcode='[ABDT]'
6125  ;;
6126sysv4)
6127  symcode='[DFNSTU]'
6128  ;;
6129esac
6130
6131# If we're using GNU nm, then use its standard symbol codes.
6132case `$NM -V 2>&1` in
6133*GNU* | *'with BFD'*)
6134  symcode='[ABCDGIRSTW]' ;;
6135esac
6136
6137if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6138  # Gets list of data symbols to import.
6139  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6140  # Adjust the below global symbol transforms to fixup imported variables.
6141  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6142  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6143  lt_c_name_lib_hook="\
6144  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6145  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6146else
6147  # Disable hooks by default.
6148  lt_cv_sys_global_symbol_to_import=
6149  lt_cdecl_hook=
6150  lt_c_name_hook=
6151  lt_c_name_lib_hook=
6152fi
6153
6154# Transform an extracted symbol line into a proper C declaration.
6155# Some systems (esp. on ia64) link data and code symbols differently,
6156# so use this general approach.
6157lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6158$lt_cdecl_hook\
6159" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6160" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6161
6162# Transform an extracted symbol line into symbol name and symbol address
6163lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6164$lt_c_name_hook\
6165" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6166" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6167
6168# Transform an extracted symbol line into symbol name with lib prefix and
6169# symbol address.
6170lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6171$lt_c_name_lib_hook\
6172" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6173" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6174" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6175
6176# Handle CRLF in mingw tool chain
6177opt_cr=
6178case $build_os in
6179mingw*)
6180  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6181  ;;
6182esac
6183
6184# Try without a prefix underscore, then with it.
6185for ac_symprfx in "" "_"; do
6186
6187  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6188  symxfrm="\\1 $ac_symprfx\\2 \\2"
6189
6190  # Write the raw and C identifiers.
6191  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6192    # Fake it for dumpbin and say T for any non-static function,
6193    # D for any global variable and I for any imported variable.
6194    # Also find C++ and __fastcall symbols from MSVC++,
6195    # which start with @ or ?.
6196    lt_cv_sys_global_symbol_pipe="$AWK '"\
6197"     {last_section=section; section=\$ 3};"\
6198"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6199"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6200"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6201"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6202"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6203"     \$ 0!~/External *\|/{next};"\
6204"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6205"     {if(hide[section]) next};"\
6206"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6207"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6208"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6209"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6210"     ' prfx=^$ac_symprfx"
6211  else
6212    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6213  fi
6214  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6215
6216  # Check to see that the pipe works correctly.
6217  pipe_works=no
6218
6219  rm -f conftest*
6220  cat > conftest.$ac_ext <<_LT_EOF
6221#ifdef __cplusplus
6222extern "C" {
6223#endif
6224char nm_test_var;
6225void nm_test_func(void);
6226void nm_test_func(void){}
6227#ifdef __cplusplus
6228}
6229#endif
6230int main(){nm_test_var='a';nm_test_func();return(0);}
6231_LT_EOF
6232
6233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6234  (eval $ac_compile) 2>&5
6235  ac_status=$?
6236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237  test $ac_status = 0; }; then
6238    # Now try to grab the symbols.
6239    nlist=conftest.nm
6240    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6241  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6242  ac_status=$?
6243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244  test $ac_status = 0; } && test -s "$nlist"; then
6245      # Try sorting and uniquifying the output.
6246      if sort "$nlist" | uniq > "$nlist"T; then
6247	mv -f "$nlist"T "$nlist"
6248      else
6249	rm -f "$nlist"T
6250      fi
6251
6252      # Make sure that we snagged all the symbols we need.
6253      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6254	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6255	  cat <<_LT_EOF > conftest.$ac_ext
6256/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6257#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6258/* DATA imports from DLLs on WIN32 can't be const, because runtime
6259   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6260# define LT_DLSYM_CONST
6261#elif defined __osf__
6262/* This system does not cope well with relocations in const data.  */
6263# define LT_DLSYM_CONST
6264#else
6265# define LT_DLSYM_CONST const
6266#endif
6267
6268#ifdef __cplusplus
6269extern "C" {
6270#endif
6271
6272_LT_EOF
6273	  # Now generate the symbol file.
6274	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6275
6276	  cat <<_LT_EOF >> conftest.$ac_ext
6277
6278/* The mapping between symbol names and symbols.  */
6279LT_DLSYM_CONST struct {
6280  const char *name;
6281  void       *address;
6282}
6283lt__PROGRAM__LTX_preloaded_symbols[] =
6284{
6285  { "@PROGRAM@", (void *) 0 },
6286_LT_EOF
6287	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6288	  cat <<\_LT_EOF >> conftest.$ac_ext
6289  {0, (void *) 0}
6290};
6291
6292/* This works around a problem in FreeBSD linker */
6293#ifdef FREEBSD_WORKAROUND
6294static const void *lt_preloaded_setup() {
6295  return lt__PROGRAM__LTX_preloaded_symbols;
6296}
6297#endif
6298
6299#ifdef __cplusplus
6300}
6301#endif
6302_LT_EOF
6303	  # Now try linking the two files.
6304	  mv conftest.$ac_objext conftstm.$ac_objext
6305	  lt_globsym_save_LIBS=$LIBS
6306	  lt_globsym_save_CFLAGS=$CFLAGS
6307	  LIBS=conftstm.$ac_objext
6308	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6309	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6310  (eval $ac_link) 2>&5
6311  ac_status=$?
6312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6314	    pipe_works=yes
6315	  fi
6316	  LIBS=$lt_globsym_save_LIBS
6317	  CFLAGS=$lt_globsym_save_CFLAGS
6318	else
6319	  echo "cannot find nm_test_func in $nlist" >&5
6320	fi
6321      else
6322	echo "cannot find nm_test_var in $nlist" >&5
6323      fi
6324    else
6325      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6326    fi
6327  else
6328    echo "$progname: failed program was:" >&5
6329    cat conftest.$ac_ext >&5
6330  fi
6331  rm -rf conftest* conftst*
6332
6333  # Do not use the global_symbol_pipe unless it works.
6334  if test yes = "$pipe_works"; then
6335    break
6336  else
6337    lt_cv_sys_global_symbol_pipe=
6338  fi
6339done
6340
6341fi
6342
6343if test -z "$lt_cv_sys_global_symbol_pipe"; then
6344  lt_cv_sys_global_symbol_to_cdecl=
6345fi
6346if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6348$as_echo "failed" >&6; }
6349else
6350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6351$as_echo "ok" >&6; }
6352fi
6353
6354# Response file support.
6355if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6356  nm_file_list_spec='@'
6357elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6358  nm_file_list_spec='@'
6359fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6398$as_echo_n "checking for sysroot... " >&6; }
6399
6400# Check whether --with-sysroot was given.
6401if test "${with_sysroot+set}" = set; then :
6402  withval=$with_sysroot;
6403else
6404  with_sysroot=no
6405fi
6406
6407
6408lt_sysroot=
6409case $with_sysroot in #(
6410 yes)
6411   if test yes = "$GCC"; then
6412     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6413   fi
6414   ;; #(
6415 /*)
6416   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6417   ;; #(
6418 no|'')
6419   ;; #(
6420 *)
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6422$as_echo "$with_sysroot" >&6; }
6423   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6424   ;;
6425esac
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6428$as_echo "${lt_sysroot:-no}" >&6; }
6429
6430
6431
6432
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6435$as_echo_n "checking for a working dd... " >&6; }
6436if ${ac_cv_path_lt_DD+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  printf 0123456789abcdef0123456789abcdef >conftest.i
6440cat conftest.i conftest.i >conftest2.i
6441: ${lt_DD:=$DD}
6442if test -z "$lt_DD"; then
6443  ac_path_lt_DD_found=false
6444  # Loop through the user's path and test for each of PROGNAME-LIST
6445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448  IFS=$as_save_IFS
6449  test -z "$as_dir" && as_dir=.
6450    for ac_prog in dd; do
6451    for ac_exec_ext in '' $ac_executable_extensions; do
6452      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6453      as_fn_executable_p "$ac_path_lt_DD" || continue
6454if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6455  cmp -s conftest.i conftest.out \
6456  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6457fi
6458      $ac_path_lt_DD_found && break 3
6459    done
6460  done
6461  done
6462IFS=$as_save_IFS
6463  if test -z "$ac_cv_path_lt_DD"; then
6464    :
6465  fi
6466else
6467  ac_cv_path_lt_DD=$lt_DD
6468fi
6469
6470rm -f conftest.i conftest2.i conftest.out
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6473$as_echo "$ac_cv_path_lt_DD" >&6; }
6474
6475
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6477$as_echo_n "checking how to truncate binary pipes... " >&6; }
6478if ${lt_cv_truncate_bin+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481  printf 0123456789abcdef0123456789abcdef >conftest.i
6482cat conftest.i conftest.i >conftest2.i
6483lt_cv_truncate_bin=
6484if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6485  cmp -s conftest.i conftest.out \
6486  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6487fi
6488rm -f conftest.i conftest2.i conftest.out
6489test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6492$as_echo "$lt_cv_truncate_bin" >&6; }
6493
6494
6495
6496
6497
6498
6499
6500# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6501func_cc_basename ()
6502{
6503    for cc_temp in $*""; do
6504      case $cc_temp in
6505        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6506        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6507        \-*) ;;
6508        *) break;;
6509      esac
6510    done
6511    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6512}
6513
6514# Check whether --enable-libtool-lock was given.
6515if test "${enable_libtool_lock+set}" = set; then :
6516  enableval=$enable_libtool_lock;
6517fi
6518
6519test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6520
6521# Some flags need to be propagated to the compiler or linker for good
6522# libtool support.
6523case $host in
6524ia64-*-hpux*)
6525  # Find out what ABI is being produced by ac_compile, and set mode
6526  # options accordingly.
6527  echo 'int i;' > conftest.$ac_ext
6528  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6529  (eval $ac_compile) 2>&5
6530  ac_status=$?
6531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532  test $ac_status = 0; }; then
6533    case `/usr/bin/file conftest.$ac_objext` in
6534      *ELF-32*)
6535	HPUX_IA64_MODE=32
6536	;;
6537      *ELF-64*)
6538	HPUX_IA64_MODE=64
6539	;;
6540    esac
6541  fi
6542  rm -rf conftest*
6543  ;;
6544*-*-irix6*)
6545  # Find out what ABI is being produced by ac_compile, and set linker
6546  # options accordingly.
6547  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6548  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6549  (eval $ac_compile) 2>&5
6550  ac_status=$?
6551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552  test $ac_status = 0; }; then
6553    if test yes = "$lt_cv_prog_gnu_ld"; then
6554      case `/usr/bin/file conftest.$ac_objext` in
6555	*32-bit*)
6556	  LD="${LD-ld} -melf32bsmip"
6557	  ;;
6558	*N32*)
6559	  LD="${LD-ld} -melf32bmipn32"
6560	  ;;
6561	*64-bit*)
6562	  LD="${LD-ld} -melf64bmip"
6563	;;
6564      esac
6565    else
6566      case `/usr/bin/file conftest.$ac_objext` in
6567	*32-bit*)
6568	  LD="${LD-ld} -32"
6569	  ;;
6570	*N32*)
6571	  LD="${LD-ld} -n32"
6572	  ;;
6573	*64-bit*)
6574	  LD="${LD-ld} -64"
6575	  ;;
6576      esac
6577    fi
6578  fi
6579  rm -rf conftest*
6580  ;;
6581
6582mips64*-*linux*)
6583  # Find out what ABI is being produced by ac_compile, and set linker
6584  # options accordingly.
6585  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587  (eval $ac_compile) 2>&5
6588  ac_status=$?
6589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590  test $ac_status = 0; }; then
6591    emul=elf
6592    case `/usr/bin/file conftest.$ac_objext` in
6593      *32-bit*)
6594	emul="${emul}32"
6595	;;
6596      *64-bit*)
6597	emul="${emul}64"
6598	;;
6599    esac
6600    case `/usr/bin/file conftest.$ac_objext` in
6601      *MSB*)
6602	emul="${emul}btsmip"
6603	;;
6604      *LSB*)
6605	emul="${emul}ltsmip"
6606	;;
6607    esac
6608    case `/usr/bin/file conftest.$ac_objext` in
6609      *N32*)
6610	emul="${emul}n32"
6611	;;
6612    esac
6613    LD="${LD-ld} -m $emul"
6614  fi
6615  rm -rf conftest*
6616  ;;
6617
6618x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6619s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6620  # Find out what ABI is being produced by ac_compile, and set linker
6621  # options accordingly.  Note that the listed cases only cover the
6622  # situations where additional linker options are needed (such as when
6623  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6624  # vice versa); the common cases where no linker options are needed do
6625  # not appear in the list.
6626  echo 'int i;' > conftest.$ac_ext
6627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6628  (eval $ac_compile) 2>&5
6629  ac_status=$?
6630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631  test $ac_status = 0; }; then
6632    case `/usr/bin/file conftest.o` in
6633      *32-bit*)
6634	case $host in
6635	  x86_64-*kfreebsd*-gnu)
6636	    LD="${LD-ld} -m elf_i386_fbsd"
6637	    ;;
6638	  x86_64-*linux*)
6639	    case `/usr/bin/file conftest.o` in
6640	      *x86-64*)
6641		LD="${LD-ld} -m elf32_x86_64"
6642		;;
6643	      *)
6644		LD="${LD-ld} -m elf_i386"
6645		;;
6646	    esac
6647	    ;;
6648	  powerpc64le-*linux*)
6649	    LD="${LD-ld} -m elf32lppclinux"
6650	    ;;
6651	  powerpc64-*linux*)
6652	    LD="${LD-ld} -m elf32ppclinux"
6653	    ;;
6654	  s390x-*linux*)
6655	    LD="${LD-ld} -m elf_s390"
6656	    ;;
6657	  sparc64-*linux*)
6658	    LD="${LD-ld} -m elf32_sparc"
6659	    ;;
6660	esac
6661	;;
6662      *64-bit*)
6663	case $host in
6664	  x86_64-*kfreebsd*-gnu)
6665	    LD="${LD-ld} -m elf_x86_64_fbsd"
6666	    ;;
6667	  x86_64-*linux*)
6668	    LD="${LD-ld} -m elf_x86_64"
6669	    ;;
6670	  powerpcle-*linux*)
6671	    LD="${LD-ld} -m elf64lppc"
6672	    ;;
6673	  powerpc-*linux*)
6674	    LD="${LD-ld} -m elf64ppc"
6675	    ;;
6676	  s390*-*linux*|s390*-*tpf*)
6677	    LD="${LD-ld} -m elf64_s390"
6678	    ;;
6679	  sparc*-*linux*)
6680	    LD="${LD-ld} -m elf64_sparc"
6681	    ;;
6682	esac
6683	;;
6684    esac
6685  fi
6686  rm -rf conftest*
6687  ;;
6688
6689*-*-sco3.2v5*)
6690  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6691  SAVE_CFLAGS=$CFLAGS
6692  CFLAGS="$CFLAGS -belf"
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6694$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6695if ${lt_cv_cc_needs_belf+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  ac_ext=c
6699ac_cpp='$CPP $CPPFLAGS'
6700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_c_compiler_gnu
6703
6704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706
6707int
6708main ()
6709{
6710
6711  ;
6712  return 0;
6713}
6714_ACEOF
6715if ac_fn_c_try_link "$LINENO"; then :
6716  lt_cv_cc_needs_belf=yes
6717else
6718  lt_cv_cc_needs_belf=no
6719fi
6720rm -f core conftest.err conftest.$ac_objext \
6721    conftest$ac_exeext conftest.$ac_ext
6722     ac_ext=c
6723ac_cpp='$CPP $CPPFLAGS'
6724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728fi
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6730$as_echo "$lt_cv_cc_needs_belf" >&6; }
6731  if test yes != "$lt_cv_cc_needs_belf"; then
6732    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6733    CFLAGS=$SAVE_CFLAGS
6734  fi
6735  ;;
6736*-*solaris*)
6737  # Find out what ABI is being produced by ac_compile, and set linker
6738  # options accordingly.
6739  echo 'int i;' > conftest.$ac_ext
6740  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6741  (eval $ac_compile) 2>&5
6742  ac_status=$?
6743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744  test $ac_status = 0; }; then
6745    case `/usr/bin/file conftest.o` in
6746    *64-bit*)
6747      case $lt_cv_prog_gnu_ld in
6748      yes*)
6749        case $host in
6750        i?86-*-solaris*|x86_64-*-solaris*)
6751          LD="${LD-ld} -m elf_x86_64"
6752          ;;
6753        sparc*-*-solaris*)
6754          LD="${LD-ld} -m elf64_sparc"
6755          ;;
6756        esac
6757        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6758        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6759          LD=${LD-ld}_sol2
6760        fi
6761        ;;
6762      *)
6763	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6764	  LD="${LD-ld} -64"
6765	fi
6766	;;
6767      esac
6768      ;;
6769    esac
6770  fi
6771  rm -rf conftest*
6772  ;;
6773esac
6774
6775need_locks=$enable_libtool_lock
6776
6777if test -n "$ac_tool_prefix"; then
6778  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}mt; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
6782if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  if test -n "$MANIFEST_TOOL"; then
6786  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793    for ac_exec_ext in '' $ac_executable_extensions; do
6794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800  done
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6806if test -n "$MANIFEST_TOOL"; then
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6808$as_echo "$MANIFEST_TOOL" >&6; }
6809else
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6817  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6818  # Extract the first word of "mt", so it can be a program name with args.
6819set dummy mt; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
6822if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  if test -n "$ac_ct_MANIFEST_TOOL"; then
6826  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831  IFS=$as_save_IFS
6832  test -z "$as_dir" && as_dir=.
6833    for ac_exec_ext in '' $ac_executable_extensions; do
6834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837    break 2
6838  fi
6839done
6840  done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6846if test -n "$ac_ct_MANIFEST_TOOL"; then
6847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6848$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6849else
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6855    MANIFEST_TOOL=":"
6856  else
6857    case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6864  fi
6865else
6866  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6867fi
6868
6869test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6871$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6872if ${lt_cv_path_mainfest_tool+:} false; then :
6873  $as_echo_n "(cached) " >&6
6874else
6875  lt_cv_path_mainfest_tool=no
6876  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6877  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6878  cat conftest.err >&5
6879  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6880    lt_cv_path_mainfest_tool=yes
6881  fi
6882  rm -f conftest*
6883fi
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6885$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6886if test yes != "$lt_cv_path_mainfest_tool"; then
6887  MANIFEST_TOOL=:
6888fi
6889
6890
6891
6892
6893
6894
6895  case $host_os in
6896    rhapsody* | darwin*)
6897    if test -n "$ac_tool_prefix"; then
6898  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6899set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901$as_echo_n "checking for $ac_word... " >&6; }
6902if ${ac_cv_prog_DSYMUTIL+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  if test -n "$DSYMUTIL"; then
6906  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913    for ac_exec_ext in '' $ac_executable_extensions; do
6914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920  done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
6925DSYMUTIL=$ac_cv_prog_DSYMUTIL
6926if test -n "$DSYMUTIL"; then
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6928$as_echo "$DSYMUTIL" >&6; }
6929else
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933
6934
6935fi
6936if test -z "$ac_cv_prog_DSYMUTIL"; then
6937  ac_ct_DSYMUTIL=$DSYMUTIL
6938  # Extract the first word of "dsymutil", so it can be a program name with args.
6939set dummy dsymutil; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$ac_ct_DSYMUTIL"; then
6946  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_exec_ext in '' $ac_executable_extensions; do
6954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957    break 2
6958  fi
6959done
6960  done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6966if test -n "$ac_ct_DSYMUTIL"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6968$as_echo "$ac_ct_DSYMUTIL" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974  if test "x$ac_ct_DSYMUTIL" = x; then
6975    DSYMUTIL=":"
6976  else
6977    case $cross_compiling:$ac_tool_warned in
6978yes:)
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983    DSYMUTIL=$ac_ct_DSYMUTIL
6984  fi
6985else
6986  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6987fi
6988
6989    if test -n "$ac_tool_prefix"; then
6990  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993$as_echo_n "checking for $ac_word... " >&6; }
6994if ${ac_cv_prog_NMEDIT+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  if test -n "$NMEDIT"; then
6998  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003  IFS=$as_save_IFS
7004  test -z "$as_dir" && as_dir=.
7005    for ac_exec_ext in '' $ac_executable_extensions; do
7006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009    break 2
7010  fi
7011done
7012  done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017NMEDIT=$ac_cv_prog_NMEDIT
7018if test -n "$NMEDIT"; then
7019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7020$as_echo "$NMEDIT" >&6; }
7021else
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_NMEDIT"; then
7029  ac_ct_NMEDIT=$NMEDIT
7030  # Extract the first word of "nmedit", so it can be a program name with args.
7031set dummy nmedit; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  if test -n "$ac_ct_NMEDIT"; then
7038  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045    for ac_exec_ext in '' $ac_executable_extensions; do
7046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052  done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7058if test -n "$ac_ct_NMEDIT"; then
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7060$as_echo "$ac_ct_NMEDIT" >&6; }
7061else
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066  if test "x$ac_ct_NMEDIT" = x; then
7067    NMEDIT=":"
7068  else
7069    case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
7075    NMEDIT=$ac_ct_NMEDIT
7076  fi
7077else
7078  NMEDIT="$ac_cv_prog_NMEDIT"
7079fi
7080
7081    if test -n "$ac_tool_prefix"; then
7082  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7083set dummy ${ac_tool_prefix}lipo; ac_word=$2
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085$as_echo_n "checking for $ac_word... " >&6; }
7086if ${ac_cv_prog_LIPO+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  if test -n "$LIPO"; then
7090  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7091else
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095  IFS=$as_save_IFS
7096  test -z "$as_dir" && as_dir=.
7097    for ac_exec_ext in '' $ac_executable_extensions; do
7098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101    break 2
7102  fi
7103done
7104  done
7105IFS=$as_save_IFS
7106
7107fi
7108fi
7109LIPO=$ac_cv_prog_LIPO
7110if test -n "$LIPO"; then
7111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7112$as_echo "$LIPO" >&6; }
7113else
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115$as_echo "no" >&6; }
7116fi
7117
7118
7119fi
7120if test -z "$ac_cv_prog_LIPO"; then
7121  ac_ct_LIPO=$LIPO
7122  # Extract the first word of "lipo", so it can be a program name with args.
7123set dummy lipo; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  if test -n "$ac_ct_LIPO"; then
7130  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137    for ac_exec_ext in '' $ac_executable_extensions; do
7138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139    ac_cv_prog_ac_ct_LIPO="lipo"
7140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144  done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7150if test -n "$ac_ct_LIPO"; then
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7152$as_echo "$ac_ct_LIPO" >&6; }
7153else
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158  if test "x$ac_ct_LIPO" = x; then
7159    LIPO=":"
7160  else
7161    case $cross_compiling:$ac_tool_warned in
7162yes:)
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165ac_tool_warned=yes ;;
7166esac
7167    LIPO=$ac_ct_LIPO
7168  fi
7169else
7170  LIPO="$ac_cv_prog_LIPO"
7171fi
7172
7173    if test -n "$ac_tool_prefix"; then
7174  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}otool; ac_word=$2
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177$as_echo_n "checking for $ac_word... " >&6; }
7178if ${ac_cv_prog_OTOOL+:} false; then :
7179  $as_echo_n "(cached) " >&6
7180else
7181  if test -n "$OTOOL"; then
7182  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187  IFS=$as_save_IFS
7188  test -z "$as_dir" && as_dir=.
7189    for ac_exec_ext in '' $ac_executable_extensions; do
7190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193    break 2
7194  fi
7195done
7196  done
7197IFS=$as_save_IFS
7198
7199fi
7200fi
7201OTOOL=$ac_cv_prog_OTOOL
7202if test -n "$OTOOL"; then
7203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7204$as_echo "$OTOOL" >&6; }
7205else
7206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207$as_echo "no" >&6; }
7208fi
7209
7210
7211fi
7212if test -z "$ac_cv_prog_OTOOL"; then
7213  ac_ct_OTOOL=$OTOOL
7214  # Extract the first word of "otool", so it can be a program name with args.
7215set dummy otool; ac_word=$2
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217$as_echo_n "checking for $ac_word... " >&6; }
7218if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test -n "$ac_ct_OTOOL"; then
7222  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229    for ac_exec_ext in '' $ac_executable_extensions; do
7230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231    ac_cv_prog_ac_ct_OTOOL="otool"
7232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236  done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7242if test -n "$ac_ct_OTOOL"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7244$as_echo "$ac_ct_OTOOL" >&6; }
7245else
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250  if test "x$ac_ct_OTOOL" = x; then
7251    OTOOL=":"
7252  else
7253    case $cross_compiling:$ac_tool_warned in
7254yes:)
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257ac_tool_warned=yes ;;
7258esac
7259    OTOOL=$ac_ct_OTOOL
7260  fi
7261else
7262  OTOOL="$ac_cv_prog_OTOOL"
7263fi
7264
7265    if test -n "$ac_tool_prefix"; then
7266  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}otool64; ac_word=$2
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269$as_echo_n "checking for $ac_word... " >&6; }
7270if ${ac_cv_prog_OTOOL64+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$OTOOL64"; then
7274  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293OTOOL64=$ac_cv_prog_OTOOL64
7294if test -n "$OTOOL64"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7296$as_echo "$OTOOL64" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303fi
7304if test -z "$ac_cv_prog_OTOOL64"; then
7305  ac_ct_OTOOL64=$OTOOL64
7306  # Extract the first word of "otool64", so it can be a program name with args.
7307set dummy otool64; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$ac_ct_OTOOL64"; then
7314  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323    ac_cv_prog_ac_ct_OTOOL64="otool64"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7334if test -n "$ac_ct_OTOOL64"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7336$as_echo "$ac_ct_OTOOL64" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342  if test "x$ac_ct_OTOOL64" = x; then
7343    OTOOL64=":"
7344  else
7345    case $cross_compiling:$ac_tool_warned in
7346yes:)
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349ac_tool_warned=yes ;;
7350esac
7351    OTOOL64=$ac_ct_OTOOL64
7352  fi
7353else
7354  OTOOL64="$ac_cv_prog_OTOOL64"
7355fi
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7384$as_echo_n "checking for -single_module linker flag... " >&6; }
7385if ${lt_cv_apple_cc_single_mod+:} false; then :
7386  $as_echo_n "(cached) " >&6
7387else
7388  lt_cv_apple_cc_single_mod=no
7389      if test -z "$LT_MULTI_MODULE"; then
7390	# By default we will add the -single_module flag. You can override
7391	# by either setting the environment variable LT_MULTI_MODULE
7392	# non-empty at configure time, or by adding -multi_module to the
7393	# link flags.
7394	rm -rf libconftest.dylib*
7395	echo "int foo(void){return 1;}" > conftest.c
7396	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397-dynamiclib -Wl,-single_module conftest.c" >&5
7398	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7399	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7400        _lt_result=$?
7401	# If there is a non-empty error log, and "single_module"
7402	# appears in it, assume the flag caused a linker warning
7403        if test -s conftest.err && $GREP single_module conftest.err; then
7404	  cat conftest.err >&5
7405	# Otherwise, if the output was created with a 0 exit code from
7406	# the compiler, it worked.
7407	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7408	  lt_cv_apple_cc_single_mod=yes
7409	else
7410	  cat conftest.err >&5
7411	fi
7412	rm -rf libconftest.dylib*
7413	rm -f conftest.*
7414      fi
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7417$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7418
7419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7420$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7421if ${lt_cv_ld_exported_symbols_list+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  lt_cv_ld_exported_symbols_list=no
7425      save_LDFLAGS=$LDFLAGS
7426      echo "_main" > conftest.sym
7427      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430
7431int
7432main ()
7433{
7434
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439if ac_fn_c_try_link "$LINENO"; then :
7440  lt_cv_ld_exported_symbols_list=yes
7441else
7442  lt_cv_ld_exported_symbols_list=no
7443fi
7444rm -f core conftest.err conftest.$ac_objext \
7445    conftest$ac_exeext conftest.$ac_ext
7446	LDFLAGS=$save_LDFLAGS
7447
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7451
7452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7453$as_echo_n "checking for -force_load linker flag... " >&6; }
7454if ${lt_cv_ld_force_load+:} false; then :
7455  $as_echo_n "(cached) " >&6
7456else
7457  lt_cv_ld_force_load=no
7458      cat > conftest.c << _LT_EOF
7459int forced_loaded() { return 2;}
7460_LT_EOF
7461      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7462      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7463      echo "$AR cru libconftest.a conftest.o" >&5
7464      $AR cru libconftest.a conftest.o 2>&5
7465      echo "$RANLIB libconftest.a" >&5
7466      $RANLIB libconftest.a 2>&5
7467      cat > conftest.c << _LT_EOF
7468int main() { return 0;}
7469_LT_EOF
7470      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7471      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7472      _lt_result=$?
7473      if test -s conftest.err && $GREP force_load conftest.err; then
7474	cat conftest.err >&5
7475      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7476	lt_cv_ld_force_load=yes
7477      else
7478	cat conftest.err >&5
7479      fi
7480        rm -f conftest.err libconftest.a conftest conftest.c
7481        rm -rf conftest.dSYM
7482
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7485$as_echo "$lt_cv_ld_force_load" >&6; }
7486    case $host_os in
7487    rhapsody* | darwin1.[012])
7488      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7489    darwin1.*)
7490      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7491    darwin*) # darwin 5.x on
7492      # if running on 10.5 or later, the deployment target defaults
7493      # to the OS version, if on x86, and 10.4, the deployment
7494      # target defaults to 10.4. Don't you love it?
7495      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7496	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7497	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7498	10.[012][,.]*)
7499	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7500	10.*)
7501	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7502      esac
7503    ;;
7504  esac
7505    if test yes = "$lt_cv_apple_cc_single_mod"; then
7506      _lt_dar_single_mod='$single_module'
7507    fi
7508    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7509      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7510    else
7511      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7512    fi
7513    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7514      _lt_dsymutil='~$DSYMUTIL $lib || :'
7515    else
7516      _lt_dsymutil=
7517    fi
7518    ;;
7519  esac
7520
7521# func_munge_path_list VARIABLE PATH
7522# -----------------------------------
7523# VARIABLE is name of variable containing _space_ separated list of
7524# directories to be munged by the contents of PATH, which is string
7525# having a format:
7526# "DIR[:DIR]:"
7527#       string "DIR[ DIR]" will be prepended to VARIABLE
7528# ":DIR[:DIR]"
7529#       string "DIR[ DIR]" will be appended to VARIABLE
7530# "DIRP[:DIRP]::[DIRA:]DIRA"
7531#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7532#       "DIRA[ DIRA]" will be appended to VARIABLE
7533# "DIR[:DIR]"
7534#       VARIABLE will be replaced by "DIR[ DIR]"
7535func_munge_path_list ()
7536{
7537    case x$2 in
7538    x)
7539        ;;
7540    *:)
7541        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7542        ;;
7543    x:*)
7544        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7545        ;;
7546    *::*)
7547        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7548        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7549        ;;
7550    *)
7551        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7552        ;;
7553    esac
7554}
7555
7556ac_ext=c
7557ac_cpp='$CPP $CPPFLAGS'
7558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560ac_compiler_gnu=$ac_cv_c_compiler_gnu
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7562$as_echo_n "checking how to run the C preprocessor... " >&6; }
7563# On Suns, sometimes $CPP names a directory.
7564if test -n "$CPP" && test -d "$CPP"; then
7565  CPP=
7566fi
7567if test -z "$CPP"; then
7568  if ${ac_cv_prog_CPP+:} false; then :
7569  $as_echo_n "(cached) " >&6
7570else
7571      # Double quotes because CPP needs to be expanded
7572    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7573    do
7574      ac_preproc_ok=false
7575for ac_c_preproc_warn_flag in '' yes
7576do
7577  # Use a header file that comes with gcc, so configuring glibc
7578  # with a fresh cross-compiler works.
7579  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7580  # <limits.h> exists even on freestanding compilers.
7581  # On the NeXT, cc -E runs the code through the compiler's parser,
7582  # not just through cpp. "Syntax error" is here to catch this case.
7583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
7590		     Syntax error
7591_ACEOF
7592if ac_fn_c_try_cpp "$LINENO"; then :
7593
7594else
7595  # Broken: fails on valid input.
7596continue
7597fi
7598rm -f conftest.err conftest.i conftest.$ac_ext
7599
7600  # OK, works on sane cases.  Now check whether nonexistent headers
7601  # can be detected and how.
7602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h.  */
7604#include <ac_nonexistent.h>
7605_ACEOF
7606if ac_fn_c_try_cpp "$LINENO"; then :
7607  # Broken: success on invalid input.
7608continue
7609else
7610  # Passes both tests.
7611ac_preproc_ok=:
7612break
7613fi
7614rm -f conftest.err conftest.i conftest.$ac_ext
7615
7616done
7617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7618rm -f conftest.i conftest.err conftest.$ac_ext
7619if $ac_preproc_ok; then :
7620  break
7621fi
7622
7623    done
7624    ac_cv_prog_CPP=$CPP
7625
7626fi
7627  CPP=$ac_cv_prog_CPP
7628else
7629  ac_cv_prog_CPP=$CPP
7630fi
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7632$as_echo "$CPP" >&6; }
7633ac_preproc_ok=false
7634for ac_c_preproc_warn_flag in '' yes
7635do
7636  # Use a header file that comes with gcc, so configuring glibc
7637  # with a fresh cross-compiler works.
7638  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639  # <limits.h> exists even on freestanding compilers.
7640  # On the NeXT, cc -E runs the code through the compiler's parser,
7641  # not just through cpp. "Syntax error" is here to catch this case.
7642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644#ifdef __STDC__
7645# include <limits.h>
7646#else
7647# include <assert.h>
7648#endif
7649		     Syntax error
7650_ACEOF
7651if ac_fn_c_try_cpp "$LINENO"; then :
7652
7653else
7654  # Broken: fails on valid input.
7655continue
7656fi
7657rm -f conftest.err conftest.i conftest.$ac_ext
7658
7659  # OK, works on sane cases.  Now check whether nonexistent headers
7660  # can be detected and how.
7661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663#include <ac_nonexistent.h>
7664_ACEOF
7665if ac_fn_c_try_cpp "$LINENO"; then :
7666  # Broken: success on invalid input.
7667continue
7668else
7669  # Passes both tests.
7670ac_preproc_ok=:
7671break
7672fi
7673rm -f conftest.err conftest.i conftest.$ac_ext
7674
7675done
7676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7677rm -f conftest.i conftest.err conftest.$ac_ext
7678if $ac_preproc_ok; then :
7679
7680else
7681  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7683as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7684See \`config.log' for more details" "$LINENO" 5; }
7685fi
7686
7687ac_ext=c
7688ac_cpp='$CPP $CPPFLAGS'
7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7695$as_echo_n "checking for ANSI C header files... " >&6; }
7696if ${ac_cv_header_stdc+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701#include <stdlib.h>
7702#include <stdarg.h>
7703#include <string.h>
7704#include <float.h>
7705
7706int
7707main ()
7708{
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714if ac_fn_c_try_compile "$LINENO"; then :
7715  ac_cv_header_stdc=yes
7716else
7717  ac_cv_header_stdc=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720
7721if test $ac_cv_header_stdc = yes; then
7722  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725#include <string.h>
7726
7727_ACEOF
7728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7729  $EGREP "memchr" >/dev/null 2>&1; then :
7730
7731else
7732  ac_cv_header_stdc=no
7733fi
7734rm -f conftest*
7735
7736fi
7737
7738if test $ac_cv_header_stdc = yes; then
7739  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742#include <stdlib.h>
7743
7744_ACEOF
7745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7746  $EGREP "free" >/dev/null 2>&1; then :
7747
7748else
7749  ac_cv_header_stdc=no
7750fi
7751rm -f conftest*
7752
7753fi
7754
7755if test $ac_cv_header_stdc = yes; then
7756  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7757  if test "$cross_compiling" = yes; then :
7758  :
7759else
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762#include <ctype.h>
7763#include <stdlib.h>
7764#if ((' ' & 0x0FF) == 0x020)
7765# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7766# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7767#else
7768# define ISLOWER(c) \
7769		   (('a' <= (c) && (c) <= 'i') \
7770		     || ('j' <= (c) && (c) <= 'r') \
7771		     || ('s' <= (c) && (c) <= 'z'))
7772# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7773#endif
7774
7775#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7776int
7777main ()
7778{
7779  int i;
7780  for (i = 0; i < 256; i++)
7781    if (XOR (islower (i), ISLOWER (i))
7782	|| toupper (i) != TOUPPER (i))
7783      return 2;
7784  return 0;
7785}
7786_ACEOF
7787if ac_fn_c_try_run "$LINENO"; then :
7788
7789else
7790  ac_cv_header_stdc=no
7791fi
7792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7793  conftest.$ac_objext conftest.beam conftest.$ac_ext
7794fi
7795
7796fi
7797fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7799$as_echo "$ac_cv_header_stdc" >&6; }
7800if test $ac_cv_header_stdc = yes; then
7801
7802$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7803
7804fi
7805
7806# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7807for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7808		  inttypes.h stdint.h unistd.h
7809do :
7810  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7811ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7812"
7813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7814  cat >>confdefs.h <<_ACEOF
7815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816_ACEOF
7817
7818fi
7819
7820done
7821
7822
7823for ac_header in dlfcn.h
7824do :
7825  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7826"
7827if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7828  cat >>confdefs.h <<_ACEOF
7829#define HAVE_DLFCN_H 1
7830_ACEOF
7831
7832fi
7833
7834done
7835
7836
7837
7838
7839
7840# Set options
7841
7842
7843
7844        enable_dlopen=no
7845
7846
7847  enable_win32_dll=no
7848
7849
7850            # Check whether --enable-shared was given.
7851if test "${enable_shared+set}" = set; then :
7852  enableval=$enable_shared; p=${PACKAGE-default}
7853    case $enableval in
7854    yes) enable_shared=yes ;;
7855    no) enable_shared=no ;;
7856    *)
7857      enable_shared=no
7858      # Look at the argument we got.  We use all the common list separators.
7859      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7860      for pkg in $enableval; do
7861	IFS=$lt_save_ifs
7862	if test "X$pkg" = "X$p"; then
7863	  enable_shared=yes
7864	fi
7865      done
7866      IFS=$lt_save_ifs
7867      ;;
7868    esac
7869else
7870  enable_shared=yes
7871fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881  # Check whether --enable-static was given.
7882if test "${enable_static+set}" = set; then :
7883  enableval=$enable_static; p=${PACKAGE-default}
7884    case $enableval in
7885    yes) enable_static=yes ;;
7886    no) enable_static=no ;;
7887    *)
7888     enable_static=no
7889      # Look at the argument we got.  We use all the common list separators.
7890      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7891      for pkg in $enableval; do
7892	IFS=$lt_save_ifs
7893	if test "X$pkg" = "X$p"; then
7894	  enable_static=yes
7895	fi
7896      done
7897      IFS=$lt_save_ifs
7898      ;;
7899    esac
7900else
7901  enable_static=yes
7902fi
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913# Check whether --with-pic was given.
7914if test "${with_pic+set}" = set; then :
7915  withval=$with_pic; lt_p=${PACKAGE-default}
7916    case $withval in
7917    yes|no) pic_mode=$withval ;;
7918    *)
7919      pic_mode=default
7920      # Look at the argument we got.  We use all the common list separators.
7921      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7922      for lt_pkg in $withval; do
7923	IFS=$lt_save_ifs
7924	if test "X$lt_pkg" = "X$lt_p"; then
7925	  pic_mode=yes
7926	fi
7927      done
7928      IFS=$lt_save_ifs
7929      ;;
7930    esac
7931else
7932  pic_mode=default
7933fi
7934
7935
7936
7937
7938
7939
7940
7941
7942  # Check whether --enable-fast-install was given.
7943if test "${enable_fast_install+set}" = set; then :
7944  enableval=$enable_fast_install; p=${PACKAGE-default}
7945    case $enableval in
7946    yes) enable_fast_install=yes ;;
7947    no) enable_fast_install=no ;;
7948    *)
7949      enable_fast_install=no
7950      # Look at the argument we got.  We use all the common list separators.
7951      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7952      for pkg in $enableval; do
7953	IFS=$lt_save_ifs
7954	if test "X$pkg" = "X$p"; then
7955	  enable_fast_install=yes
7956	fi
7957      done
7958      IFS=$lt_save_ifs
7959      ;;
7960    esac
7961else
7962  enable_fast_install=yes
7963fi
7964
7965
7966
7967
7968
7969
7970
7971
7972  shared_archive_member_spec=
7973case $host,$enable_shared in
7974power*-*-aix[5-9]*,yes)
7975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7976$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7977
7978# Check whether --with-aix-soname was given.
7979if test "${with_aix_soname+set}" = set; then :
7980  withval=$with_aix_soname; case $withval in
7981    aix|svr4|both)
7982      ;;
7983    *)
7984      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7985      ;;
7986    esac
7987    lt_cv_with_aix_soname=$with_aix_soname
7988else
7989  if ${lt_cv_with_aix_soname+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  lt_cv_with_aix_soname=aix
7993fi
7994
7995    with_aix_soname=$lt_cv_with_aix_soname
7996fi
7997
7998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7999$as_echo "$with_aix_soname" >&6; }
8000  if test aix != "$with_aix_soname"; then
8001    # For the AIX way of multilib, we name the shared archive member
8002    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8003    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8004    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8005    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8006    if test 64 = "${OBJECT_MODE-32}"; then
8007      shared_archive_member_spec=shr_64
8008    else
8009      shared_archive_member_spec=shr
8010    fi
8011  fi
8012  ;;
8013*)
8014  with_aix_soname=aix
8015  ;;
8016esac
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027# This can be used to rebuild libtool when needed
8028LIBTOOL_DEPS=$ltmain
8029
8030# Always use our own libtool.
8031LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062test -z "$LN_S" && LN_S="ln -s"
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077if test -n "${ZSH_VERSION+set}"; then
8078   setopt NO_GLOB_SUBST
8079fi
8080
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8082$as_echo_n "checking for objdir... " >&6; }
8083if ${lt_cv_objdir+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  rm -f .libs 2>/dev/null
8087mkdir .libs 2>/dev/null
8088if test -d .libs; then
8089  lt_cv_objdir=.libs
8090else
8091  # MS-DOS does not allow filenames that begin with a dot.
8092  lt_cv_objdir=_libs
8093fi
8094rmdir .libs 2>/dev/null
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8097$as_echo "$lt_cv_objdir" >&6; }
8098objdir=$lt_cv_objdir
8099
8100
8101
8102
8103
8104cat >>confdefs.h <<_ACEOF
8105#define LT_OBJDIR "$lt_cv_objdir/"
8106_ACEOF
8107
8108
8109
8110
8111case $host_os in
8112aix3*)
8113  # AIX sometimes has problems with the GCC collect2 program.  For some
8114  # reason, if we set the COLLECT_NAMES environment variable, the problems
8115  # vanish in a puff of smoke.
8116  if test set != "${COLLECT_NAMES+set}"; then
8117    COLLECT_NAMES=
8118    export COLLECT_NAMES
8119  fi
8120  ;;
8121esac
8122
8123# Global variables:
8124ofile=libtool
8125can_build_shared=yes
8126
8127# All known linkers require a '.a' archive for static linking (except MSVC,
8128# which needs '.lib').
8129libext=a
8130
8131with_gnu_ld=$lt_cv_prog_gnu_ld
8132
8133old_CC=$CC
8134old_CFLAGS=$CFLAGS
8135
8136# Set sane defaults for various variables
8137test -z "$CC" && CC=cc
8138test -z "$LTCC" && LTCC=$CC
8139test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8140test -z "$LD" && LD=ld
8141test -z "$ac_objext" && ac_objext=o
8142
8143func_cc_basename $compiler
8144cc_basename=$func_cc_basename_result
8145
8146
8147# Only perform the check for file, if the check method requires it
8148test -z "$MAGIC_CMD" && MAGIC_CMD=file
8149case $deplibs_check_method in
8150file_magic*)
8151  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8153$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8154if ${lt_cv_path_MAGIC_CMD+:} false; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157  case $MAGIC_CMD in
8158[\\/*] |  ?:[\\/]*)
8159  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8160  ;;
8161*)
8162  lt_save_MAGIC_CMD=$MAGIC_CMD
8163  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8164  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8165  for ac_dir in $ac_dummy; do
8166    IFS=$lt_save_ifs
8167    test -z "$ac_dir" && ac_dir=.
8168    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8169      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8170      if test -n "$file_magic_test_file"; then
8171	case $deplibs_check_method in
8172	"file_magic "*)
8173	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8174	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8175	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8176	    $EGREP "$file_magic_regex" > /dev/null; then
8177	    :
8178	  else
8179	    cat <<_LT_EOF 1>&2
8180
8181*** Warning: the command libtool uses to detect shared libraries,
8182*** $file_magic_cmd, produces output that libtool cannot recognize.
8183*** The result is that libtool may fail to recognize shared libraries
8184*** as such.  This will affect the creation of libtool libraries that
8185*** depend on shared libraries, but programs linked with such libtool
8186*** libraries will work regardless of this problem.  Nevertheless, you
8187*** may want to report the problem to your system manager and/or to
8188*** [email protected]
8189
8190_LT_EOF
8191	  fi ;;
8192	esac
8193      fi
8194      break
8195    fi
8196  done
8197  IFS=$lt_save_ifs
8198  MAGIC_CMD=$lt_save_MAGIC_CMD
8199  ;;
8200esac
8201fi
8202
8203MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8204if test -n "$MAGIC_CMD"; then
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8206$as_echo "$MAGIC_CMD" >&6; }
8207else
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209$as_echo "no" >&6; }
8210fi
8211
8212
8213
8214
8215
8216if test -z "$lt_cv_path_MAGIC_CMD"; then
8217  if test -n "$ac_tool_prefix"; then
8218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8219$as_echo_n "checking for file... " >&6; }
8220if ${lt_cv_path_MAGIC_CMD+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  case $MAGIC_CMD in
8224[\\/*] |  ?:[\\/]*)
8225  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8226  ;;
8227*)
8228  lt_save_MAGIC_CMD=$MAGIC_CMD
8229  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8230  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231  for ac_dir in $ac_dummy; do
8232    IFS=$lt_save_ifs
8233    test -z "$ac_dir" && ac_dir=.
8234    if test -f "$ac_dir/file"; then
8235      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8236      if test -n "$file_magic_test_file"; then
8237	case $deplibs_check_method in
8238	"file_magic "*)
8239	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8240	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8241	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242	    $EGREP "$file_magic_regex" > /dev/null; then
8243	    :
8244	  else
8245	    cat <<_LT_EOF 1>&2
8246
8247*** Warning: the command libtool uses to detect shared libraries,
8248*** $file_magic_cmd, produces output that libtool cannot recognize.
8249*** The result is that libtool may fail to recognize shared libraries
8250*** as such.  This will affect the creation of libtool libraries that
8251*** depend on shared libraries, but programs linked with such libtool
8252*** libraries will work regardless of this problem.  Nevertheless, you
8253*** may want to report the problem to your system manager and/or to
8254*** [email protected]
8255
8256_LT_EOF
8257	  fi ;;
8258	esac
8259      fi
8260      break
8261    fi
8262  done
8263  IFS=$lt_save_ifs
8264  MAGIC_CMD=$lt_save_MAGIC_CMD
8265  ;;
8266esac
8267fi
8268
8269MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8270if test -n "$MAGIC_CMD"; then
8271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8272$as_echo "$MAGIC_CMD" >&6; }
8273else
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275$as_echo "no" >&6; }
8276fi
8277
8278
8279  else
8280    MAGIC_CMD=:
8281  fi
8282fi
8283
8284  fi
8285  ;;
8286esac
8287
8288# Use C for the default configuration in the libtool script
8289
8290lt_save_CC=$CC
8291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
8297
8298# Source file extension for C test sources.
8299ac_ext=c
8300
8301# Object file extension for compiled C test sources.
8302objext=o
8303objext=$objext
8304
8305# Code to be used in simple compile tests
8306lt_simple_compile_test_code="int some_variable = 0;"
8307
8308# Code to be used in simple link tests
8309lt_simple_link_test_code='int main(){return(0);}'
8310
8311
8312
8313
8314
8315
8316
8317# If no C compiler was specified, use CC.
8318LTCC=${LTCC-"$CC"}
8319
8320# If no C compiler flags were specified, use CFLAGS.
8321LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8322
8323# Allow CC to be a program name with arguments.
8324compiler=$CC
8325
8326# Save the default compiler, since it gets overwritten when the other
8327# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8328compiler_DEFAULT=$CC
8329
8330# save warnings/boilerplate of simple test code
8331ac_outfile=conftest.$ac_objext
8332echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8333eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8334_lt_compiler_boilerplate=`cat conftest.err`
8335$RM conftest*
8336
8337ac_outfile=conftest.$ac_objext
8338echo "$lt_simple_link_test_code" >conftest.$ac_ext
8339eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8340_lt_linker_boilerplate=`cat conftest.err`
8341$RM -r conftest*
8342
8343
8344if test -n "$compiler"; then
8345
8346lt_prog_compiler_no_builtin_flag=
8347
8348if test yes = "$GCC"; then
8349  case $cc_basename in
8350  nvcc*)
8351    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8352  *)
8353    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8354  esac
8355
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8357$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8358if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  lt_cv_prog_compiler_rtti_exceptions=no
8362   ac_outfile=conftest.$ac_objext
8363   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8364   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8365   # Insert the option either (1) after the last *FLAGS variable, or
8366   # (2) before a word containing "conftest.", or (3) at the end.
8367   # Note that $ac_compile itself does not contain backslashes and begins
8368   # with a dollar sign (not a hyphen), so the echo should work correctly.
8369   # The option is referenced via a variable to avoid confusing sed.
8370   lt_compile=`echo "$ac_compile" | $SED \
8371   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373   -e 's:$: $lt_compiler_flag:'`
8374   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8375   (eval "$lt_compile" 2>conftest.err)
8376   ac_status=$?
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   if (exit $ac_status) && test -s "$ac_outfile"; then
8380     # The compiler can only warn and ignore the option if not recognized
8381     # So say no if there are warnings other than the usual output.
8382     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8383     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8385       lt_cv_prog_compiler_rtti_exceptions=yes
8386     fi
8387   fi
8388   $RM conftest*
8389
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8392$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8393
8394if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8395    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8396else
8397    :
8398fi
8399
8400fi
8401
8402
8403
8404
8405
8406
8407  lt_prog_compiler_wl=
8408lt_prog_compiler_pic=
8409lt_prog_compiler_static=
8410
8411
8412  if test yes = "$GCC"; then
8413    lt_prog_compiler_wl='-Wl,'
8414    lt_prog_compiler_static='-static'
8415
8416    case $host_os in
8417      aix*)
8418      # All AIX code is PIC.
8419      if test ia64 = "$host_cpu"; then
8420	# AIX 5 now supports IA64 processor
8421	lt_prog_compiler_static='-Bstatic'
8422      fi
8423      lt_prog_compiler_pic='-fPIC'
8424      ;;
8425
8426    amigaos*)
8427      case $host_cpu in
8428      powerpc)
8429            # see comment about AmigaOS4 .so support
8430            lt_prog_compiler_pic='-fPIC'
8431        ;;
8432      m68k)
8433            # FIXME: we need at least 68020 code to build shared libraries, but
8434            # adding the '-m68020' flag to GCC prevents building anything better,
8435            # like '-m68040'.
8436            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8437        ;;
8438      esac
8439      ;;
8440
8441    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8442      # PIC is the default for these OSes.
8443      ;;
8444
8445    mingw* | cygwin* | pw32* | os2* | cegcc*)
8446      # This hack is so that the source file can tell whether it is being
8447      # built for inclusion in a dll (and should export symbols for example).
8448      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8449      # (--disable-auto-import) libraries
8450      lt_prog_compiler_pic='-DDLL_EXPORT'
8451      case $host_os in
8452      os2*)
8453	lt_prog_compiler_static='$wl-static'
8454	;;
8455      esac
8456      ;;
8457
8458    darwin* | rhapsody*)
8459      # PIC is the default on this platform
8460      # Common symbols not allowed in MH_DYLIB files
8461      lt_prog_compiler_pic='-fno-common'
8462      ;;
8463
8464    haiku*)
8465      # PIC is the default for Haiku.
8466      # The "-static" flag exists, but is broken.
8467      lt_prog_compiler_static=
8468      ;;
8469
8470    hpux*)
8471      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8472      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8473      # sets the default TLS model and affects inlining.
8474      case $host_cpu in
8475      hppa*64*)
8476	# +Z the default
8477	;;
8478      *)
8479	lt_prog_compiler_pic='-fPIC'
8480	;;
8481      esac
8482      ;;
8483
8484    interix[3-9]*)
8485      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8486      # Instead, we relocate shared libraries at runtime.
8487      ;;
8488
8489    msdosdjgpp*)
8490      # Just because we use GCC doesn't mean we suddenly get shared libraries
8491      # on systems that don't support them.
8492      lt_prog_compiler_can_build_shared=no
8493      enable_shared=no
8494      ;;
8495
8496    *nto* | *qnx*)
8497      # QNX uses GNU C++, but need to define -shared option too, otherwise
8498      # it will coredump.
8499      lt_prog_compiler_pic='-fPIC -shared'
8500      ;;
8501
8502    sysv4*MP*)
8503      if test -d /usr/nec; then
8504	lt_prog_compiler_pic=-Kconform_pic
8505      fi
8506      ;;
8507
8508    *)
8509      lt_prog_compiler_pic='-fPIC'
8510      ;;
8511    esac
8512
8513    case $cc_basename in
8514    nvcc*) # Cuda Compiler Driver 2.2
8515      lt_prog_compiler_wl='-Xlinker '
8516      if test -n "$lt_prog_compiler_pic"; then
8517        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8518      fi
8519      ;;
8520    esac
8521  else
8522    # PORTME Check for flag to pass linker flags through the system compiler.
8523    case $host_os in
8524    aix*)
8525      lt_prog_compiler_wl='-Wl,'
8526      if test ia64 = "$host_cpu"; then
8527	# AIX 5 now supports IA64 processor
8528	lt_prog_compiler_static='-Bstatic'
8529      else
8530	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8531      fi
8532      ;;
8533
8534    darwin* | rhapsody*)
8535      # PIC is the default on this platform
8536      # Common symbols not allowed in MH_DYLIB files
8537      lt_prog_compiler_pic='-fno-common'
8538      case $cc_basename in
8539      nagfor*)
8540        # NAG Fortran compiler
8541        lt_prog_compiler_wl='-Wl,-Wl,,'
8542        lt_prog_compiler_pic='-PIC'
8543        lt_prog_compiler_static='-Bstatic'
8544        ;;
8545      esac
8546      ;;
8547
8548    mingw* | cygwin* | pw32* | os2* | cegcc*)
8549      # This hack is so that the source file can tell whether it is being
8550      # built for inclusion in a dll (and should export symbols for example).
8551      lt_prog_compiler_pic='-DDLL_EXPORT'
8552      case $host_os in
8553      os2*)
8554	lt_prog_compiler_static='$wl-static'
8555	;;
8556      esac
8557      ;;
8558
8559    hpux9* | hpux10* | hpux11*)
8560      lt_prog_compiler_wl='-Wl,'
8561      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8562      # not for PA HP-UX.
8563      case $host_cpu in
8564      hppa*64*|ia64*)
8565	# +Z the default
8566	;;
8567      *)
8568	lt_prog_compiler_pic='+Z'
8569	;;
8570      esac
8571      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8572      lt_prog_compiler_static='$wl-a ${wl}archive'
8573      ;;
8574
8575    irix5* | irix6* | nonstopux*)
8576      lt_prog_compiler_wl='-Wl,'
8577      # PIC (with -KPIC) is the default.
8578      lt_prog_compiler_static='-non_shared'
8579      ;;
8580
8581    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8582      case $cc_basename in
8583      # old Intel for x86_64, which still supported -KPIC.
8584      ecc*)
8585	lt_prog_compiler_wl='-Wl,'
8586	lt_prog_compiler_pic='-KPIC'
8587	lt_prog_compiler_static='-static'
8588        ;;
8589      # icc used to be incompatible with GCC.
8590      # ICC 10 doesn't accept -KPIC any more.
8591      icc* | ifort*)
8592	lt_prog_compiler_wl='-Wl,'
8593	lt_prog_compiler_pic='-fPIC'
8594	lt_prog_compiler_static='-static'
8595        ;;
8596      # Lahey Fortran 8.1.
8597      lf95*)
8598	lt_prog_compiler_wl='-Wl,'
8599	lt_prog_compiler_pic='--shared'
8600	lt_prog_compiler_static='--static'
8601	;;
8602      nagfor*)
8603	# NAG Fortran compiler
8604	lt_prog_compiler_wl='-Wl,-Wl,,'
8605	lt_prog_compiler_pic='-PIC'
8606	lt_prog_compiler_static='-Bstatic'
8607	;;
8608      tcc*)
8609	# Fabrice Bellard et al's Tiny C Compiler
8610	lt_prog_compiler_wl='-Wl,'
8611	lt_prog_compiler_pic='-fPIC'
8612	lt_prog_compiler_static='-static'
8613	;;
8614      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8615        # Portland Group compilers (*not* the Pentium gcc compiler,
8616	# which looks to be a dead project)
8617	lt_prog_compiler_wl='-Wl,'
8618	lt_prog_compiler_pic='-fpic'
8619	lt_prog_compiler_static='-Bstatic'
8620        ;;
8621      ccc*)
8622        lt_prog_compiler_wl='-Wl,'
8623        # All Alpha code is PIC.
8624        lt_prog_compiler_static='-non_shared'
8625        ;;
8626      xl* | bgxl* | bgf* | mpixl*)
8627	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8628	lt_prog_compiler_wl='-Wl,'
8629	lt_prog_compiler_pic='-qpic'
8630	lt_prog_compiler_static='-qstaticlink'
8631	;;
8632      *)
8633	case `$CC -V 2>&1 | sed 5q` in
8634	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8635	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8636	  lt_prog_compiler_pic='-KPIC'
8637	  lt_prog_compiler_static='-Bstatic'
8638	  lt_prog_compiler_wl=''
8639	  ;;
8640	*Sun\ F* | *Sun*Fortran*)
8641	  lt_prog_compiler_pic='-KPIC'
8642	  lt_prog_compiler_static='-Bstatic'
8643	  lt_prog_compiler_wl='-Qoption ld '
8644	  ;;
8645	*Sun\ C*)
8646	  # Sun C 5.9
8647	  lt_prog_compiler_pic='-KPIC'
8648	  lt_prog_compiler_static='-Bstatic'
8649	  lt_prog_compiler_wl='-Wl,'
8650	  ;;
8651        *Intel*\ [CF]*Compiler*)
8652	  lt_prog_compiler_wl='-Wl,'
8653	  lt_prog_compiler_pic='-fPIC'
8654	  lt_prog_compiler_static='-static'
8655	  ;;
8656	*Portland\ Group*)
8657	  lt_prog_compiler_wl='-Wl,'
8658	  lt_prog_compiler_pic='-fpic'
8659	  lt_prog_compiler_static='-Bstatic'
8660	  ;;
8661	esac
8662	;;
8663      esac
8664      ;;
8665
8666    newsos6)
8667      lt_prog_compiler_pic='-KPIC'
8668      lt_prog_compiler_static='-Bstatic'
8669      ;;
8670
8671    *nto* | *qnx*)
8672      # QNX uses GNU C++, but need to define -shared option too, otherwise
8673      # it will coredump.
8674      lt_prog_compiler_pic='-fPIC -shared'
8675      ;;
8676
8677    osf3* | osf4* | osf5*)
8678      lt_prog_compiler_wl='-Wl,'
8679      # All OSF/1 code is PIC.
8680      lt_prog_compiler_static='-non_shared'
8681      ;;
8682
8683    rdos*)
8684      lt_prog_compiler_static='-non_shared'
8685      ;;
8686
8687    solaris*)
8688      lt_prog_compiler_pic='-KPIC'
8689      lt_prog_compiler_static='-Bstatic'
8690      case $cc_basename in
8691      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8692	lt_prog_compiler_wl='-Qoption ld ';;
8693      *)
8694	lt_prog_compiler_wl='-Wl,';;
8695      esac
8696      ;;
8697
8698    sunos4*)
8699      lt_prog_compiler_wl='-Qoption ld '
8700      lt_prog_compiler_pic='-PIC'
8701      lt_prog_compiler_static='-Bstatic'
8702      ;;
8703
8704    sysv4 | sysv4.2uw2* | sysv4.3*)
8705      lt_prog_compiler_wl='-Wl,'
8706      lt_prog_compiler_pic='-KPIC'
8707      lt_prog_compiler_static='-Bstatic'
8708      ;;
8709
8710    sysv4*MP*)
8711      if test -d /usr/nec; then
8712	lt_prog_compiler_pic='-Kconform_pic'
8713	lt_prog_compiler_static='-Bstatic'
8714      fi
8715      ;;
8716
8717    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8718      lt_prog_compiler_wl='-Wl,'
8719      lt_prog_compiler_pic='-KPIC'
8720      lt_prog_compiler_static='-Bstatic'
8721      ;;
8722
8723    unicos*)
8724      lt_prog_compiler_wl='-Wl,'
8725      lt_prog_compiler_can_build_shared=no
8726      ;;
8727
8728    uts4*)
8729      lt_prog_compiler_pic='-pic'
8730      lt_prog_compiler_static='-Bstatic'
8731      ;;
8732
8733    *)
8734      lt_prog_compiler_can_build_shared=no
8735      ;;
8736    esac
8737  fi
8738
8739case $host_os in
8740  # For platforms that do not support PIC, -DPIC is meaningless:
8741  *djgpp*)
8742    lt_prog_compiler_pic=
8743    ;;
8744  *)
8745    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8746    ;;
8747esac
8748
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8750$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8751if ${lt_cv_prog_compiler_pic+:} false; then :
8752  $as_echo_n "(cached) " >&6
8753else
8754  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8755fi
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8757$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8758lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8759
8760#
8761# Check to make sure the PIC flag actually works.
8762#
8763if test -n "$lt_prog_compiler_pic"; then
8764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8765$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8766if ${lt_cv_prog_compiler_pic_works+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  lt_cv_prog_compiler_pic_works=no
8770   ac_outfile=conftest.$ac_objext
8771   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8773   # Insert the option either (1) after the last *FLAGS variable, or
8774   # (2) before a word containing "conftest.", or (3) at the end.
8775   # Note that $ac_compile itself does not contain backslashes and begins
8776   # with a dollar sign (not a hyphen), so the echo should work correctly.
8777   # The option is referenced via a variable to avoid confusing sed.
8778   lt_compile=`echo "$ac_compile" | $SED \
8779   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781   -e 's:$: $lt_compiler_flag:'`
8782   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783   (eval "$lt_compile" 2>conftest.err)
8784   ac_status=$?
8785   cat conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   if (exit $ac_status) && test -s "$ac_outfile"; then
8788     # The compiler can only warn and ignore the option if not recognized
8789     # So say no if there are warnings other than the usual output.
8790     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8791     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8793       lt_cv_prog_compiler_pic_works=yes
8794     fi
8795   fi
8796   $RM conftest*
8797
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8800$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8801
8802if test yes = "$lt_cv_prog_compiler_pic_works"; then
8803    case $lt_prog_compiler_pic in
8804     "" | " "*) ;;
8805     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8806     esac
8807else
8808    lt_prog_compiler_pic=
8809     lt_prog_compiler_can_build_shared=no
8810fi
8811
8812fi
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824#
8825# Check to make sure the static flag actually works.
8826#
8827wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8829$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8830if ${lt_cv_prog_compiler_static_works+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833  lt_cv_prog_compiler_static_works=no
8834   save_LDFLAGS=$LDFLAGS
8835   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8836   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8837   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8838     # The linker can only warn and ignore the option if not recognized
8839     # So say no if there are warnings
8840     if test -s conftest.err; then
8841       # Append any errors to the config.log.
8842       cat conftest.err 1>&5
8843       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8844       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845       if diff conftest.exp conftest.er2 >/dev/null; then
8846         lt_cv_prog_compiler_static_works=yes
8847       fi
8848     else
8849       lt_cv_prog_compiler_static_works=yes
8850     fi
8851   fi
8852   $RM -r conftest*
8853   LDFLAGS=$save_LDFLAGS
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8857$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8858
8859if test yes = "$lt_cv_prog_compiler_static_works"; then
8860    :
8861else
8862    lt_prog_compiler_static=
8863fi
8864
8865
8866
8867
8868
8869
8870
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8873if ${lt_cv_prog_compiler_c_o+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  lt_cv_prog_compiler_c_o=no
8877   $RM -r conftest 2>/dev/null
8878   mkdir conftest
8879   cd conftest
8880   mkdir out
8881   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883   lt_compiler_flag="-o out/conftest2.$ac_objext"
8884   # Insert the option either (1) after the last *FLAGS variable, or
8885   # (2) before a word containing "conftest.", or (3) at the end.
8886   # Note that $ac_compile itself does not contain backslashes and begins
8887   # with a dollar sign (not a hyphen), so the echo should work correctly.
8888   lt_compile=`echo "$ac_compile" | $SED \
8889   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891   -e 's:$: $lt_compiler_flag:'`
8892   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893   (eval "$lt_compile" 2>out/conftest.err)
8894   ac_status=$?
8895   cat out/conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898   then
8899     # The compiler can only warn and ignore the option if not recognized
8900     # So say no if there are warnings
8901     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904       lt_cv_prog_compiler_c_o=yes
8905     fi
8906   fi
8907   chmod u+w . 2>&5
8908   $RM conftest*
8909   # SGI C++ compiler will create directory out/ii_files/ for
8910   # template instantiation
8911   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912   $RM out/* && rmdir out
8913   cd ..
8914   $RM -r conftest
8915   $RM conftest*
8916
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8919$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8920
8921
8922
8923
8924
8925
8926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8928if ${lt_cv_prog_compiler_c_o+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  lt_cv_prog_compiler_c_o=no
8932   $RM -r conftest 2>/dev/null
8933   mkdir conftest
8934   cd conftest
8935   mkdir out
8936   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937
8938   lt_compiler_flag="-o out/conftest2.$ac_objext"
8939   # Insert the option either (1) after the last *FLAGS variable, or
8940   # (2) before a word containing "conftest.", or (3) at the end.
8941   # Note that $ac_compile itself does not contain backslashes and begins
8942   # with a dollar sign (not a hyphen), so the echo should work correctly.
8943   lt_compile=`echo "$ac_compile" | $SED \
8944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946   -e 's:$: $lt_compiler_flag:'`
8947   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948   (eval "$lt_compile" 2>out/conftest.err)
8949   ac_status=$?
8950   cat out/conftest.err >&5
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953   then
8954     # The compiler can only warn and ignore the option if not recognized
8955     # So say no if there are warnings
8956     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959       lt_cv_prog_compiler_c_o=yes
8960     fi
8961   fi
8962   chmod u+w . 2>&5
8963   $RM conftest*
8964   # SGI C++ compiler will create directory out/ii_files/ for
8965   # template instantiation
8966   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967   $RM out/* && rmdir out
8968   cd ..
8969   $RM -r conftest
8970   $RM conftest*
8971
8972fi
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8974$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8975
8976
8977
8978
8979hard_links=nottested
8980if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8981  # do not overwrite the value of need_locks provided by the user
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8983$as_echo_n "checking if we can lock with hard links... " >&6; }
8984  hard_links=yes
8985  $RM conftest*
8986  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987  touch conftest.a
8988  ln conftest.a conftest.b 2>&5 || hard_links=no
8989  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8991$as_echo "$hard_links" >&6; }
8992  if test no = "$hard_links"; then
8993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8994$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8995    need_locks=warn
8996  fi
8997else
8998  need_locks=no
8999fi
9000
9001
9002
9003
9004
9005
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9007$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9008
9009  runpath_var=
9010  allow_undefined_flag=
9011  always_export_symbols=no
9012  archive_cmds=
9013  archive_expsym_cmds=
9014  compiler_needs_object=no
9015  enable_shared_with_static_runtimes=no
9016  export_dynamic_flag_spec=
9017  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9018  hardcode_automatic=no
9019  hardcode_direct=no
9020  hardcode_direct_absolute=no
9021  hardcode_libdir_flag_spec=
9022  hardcode_libdir_separator=
9023  hardcode_minus_L=no
9024  hardcode_shlibpath_var=unsupported
9025  inherit_rpath=no
9026  link_all_deplibs=unknown
9027  module_cmds=
9028  module_expsym_cmds=
9029  old_archive_from_new_cmds=
9030  old_archive_from_expsyms_cmds=
9031  thread_safe_flag_spec=
9032  whole_archive_flag_spec=
9033  # include_expsyms should be a list of space-separated symbols to be *always*
9034  # included in the symbol list
9035  include_expsyms=
9036  # exclude_expsyms can be an extended regexp of symbols to exclude
9037  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9038  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9039  # as well as any symbol that contains 'd'.
9040  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9041  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9042  # platforms (ab)use it in PIC code, but their linkers get confused if
9043  # the symbol is explicitly referenced.  Since portable code cannot
9044  # rely on this symbol name, it's probably fine to never include it in
9045  # preloaded symbol tables.
9046  # Exclude shared library initialization/finalization symbols.
9047  extract_expsyms_cmds=
9048
9049  case $host_os in
9050  cygwin* | mingw* | pw32* | cegcc*)
9051    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9052    # When not using gcc, we currently assume that we are using
9053    # Microsoft Visual C++.
9054    if test yes != "$GCC"; then
9055      with_gnu_ld=no
9056    fi
9057    ;;
9058  interix*)
9059    # we just hope/assume this is gcc and not c89 (= MSVC++)
9060    with_gnu_ld=yes
9061    ;;
9062  openbsd* | bitrig*)
9063    with_gnu_ld=no
9064    ;;
9065  esac
9066
9067  ld_shlibs=yes
9068
9069  # On some targets, GNU ld is compatible enough with the native linker
9070  # that we're better off using the native interface for both.
9071  lt_use_gnu_ld_interface=no
9072  if test yes = "$with_gnu_ld"; then
9073    case $host_os in
9074      aix*)
9075	# The AIX port of GNU ld has always aspired to compatibility
9076	# with the native linker.  However, as the warning in the GNU ld
9077	# block says, versions before 2.19.5* couldn't really create working
9078	# shared libraries, regardless of the interface used.
9079	case `$LD -v 2>&1` in
9080	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9081	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9082	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9083	  *)
9084	    lt_use_gnu_ld_interface=yes
9085	    ;;
9086	esac
9087	;;
9088      *)
9089	lt_use_gnu_ld_interface=yes
9090	;;
9091    esac
9092  fi
9093
9094  if test yes = "$lt_use_gnu_ld_interface"; then
9095    # If archive_cmds runs LD, not CC, wlarc should be empty
9096    wlarc='$wl'
9097
9098    # Set some defaults for GNU ld with shared library support. These
9099    # are reset later if shared libraries are not supported. Putting them
9100    # here allows them to be overridden if necessary.
9101    runpath_var=LD_RUN_PATH
9102    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9103    export_dynamic_flag_spec='$wl--export-dynamic'
9104    # ancient GNU ld didn't support --whole-archive et. al.
9105    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9106      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9107    else
9108      whole_archive_flag_spec=
9109    fi
9110    supports_anon_versioning=no
9111    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9112      *GNU\ gold*) supports_anon_versioning=yes ;;
9113      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9114      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9115      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9116      *\ 2.11.*) ;; # other 2.11 versions
9117      *) supports_anon_versioning=yes ;;
9118    esac
9119
9120    # See if GNU ld supports shared libraries.
9121    case $host_os in
9122    aix[3-9]*)
9123      # On AIX/PPC, the GNU linker is very broken
9124      if test ia64 != "$host_cpu"; then
9125	ld_shlibs=no
9126	cat <<_LT_EOF 1>&2
9127
9128*** Warning: the GNU linker, at least up to release 2.19, is reported
9129*** to be unable to reliably create shared libraries on AIX.
9130*** Therefore, libtool is disabling shared libraries support.  If you
9131*** really care for shared libraries, you may want to install binutils
9132*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9133*** You will then need to restart the configuration process.
9134
9135_LT_EOF
9136      fi
9137      ;;
9138
9139    amigaos*)
9140      case $host_cpu in
9141      powerpc)
9142            # see comment about AmigaOS4 .so support
9143            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9144            archive_expsym_cmds=''
9145        ;;
9146      m68k)
9147            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)'
9148            hardcode_libdir_flag_spec='-L$libdir'
9149            hardcode_minus_L=yes
9150        ;;
9151      esac
9152      ;;
9153
9154    beos*)
9155      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9156	allow_undefined_flag=unsupported
9157	# Joseph Beckenbach <[email protected]> says some releases of gcc
9158	# support --undefined.  This deserves some investigation.  FIXME
9159	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9160      else
9161	ld_shlibs=no
9162      fi
9163      ;;
9164
9165    cygwin* | mingw* | pw32* | cegcc*)
9166      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9167      # as there is no search path for DLLs.
9168      hardcode_libdir_flag_spec='-L$libdir'
9169      export_dynamic_flag_spec='$wl--export-all-symbols'
9170      allow_undefined_flag=unsupported
9171      always_export_symbols=no
9172      enable_shared_with_static_runtimes=yes
9173      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'
9174      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9175
9176      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9177        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178	# If the export-symbols file already is a .def file, use it as
9179	# is; otherwise, prepend EXPORTS...
9180	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9181          cp $export_symbols $output_objdir/$soname.def;
9182        else
9183          echo EXPORTS > $output_objdir/$soname.def;
9184          cat $export_symbols >> $output_objdir/$soname.def;
9185        fi~
9186        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9187      else
9188	ld_shlibs=no
9189      fi
9190      ;;
9191
9192    haiku*)
9193      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9194      link_all_deplibs=yes
9195      ;;
9196
9197    os2*)
9198      hardcode_libdir_flag_spec='-L$libdir'
9199      hardcode_minus_L=yes
9200      allow_undefined_flag=unsupported
9201      shrext_cmds=.dll
9202      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9203	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9204	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9205	$ECHO EXPORTS >> $output_objdir/$libname.def~
9206	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9207	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9208	emximp -o $lib $output_objdir/$libname.def'
9209      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9210	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9211	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9212	$ECHO EXPORTS >> $output_objdir/$libname.def~
9213	prefix_cmds="$SED"~
9214	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9215	  prefix_cmds="$prefix_cmds -e 1d";
9216	fi~
9217	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9218	cat $export_symbols | $prefix_cmds >> $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      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9222      enable_shared_with_static_runtimes=yes
9223      ;;
9224
9225    interix[3-9]*)
9226      hardcode_direct=no
9227      hardcode_shlibpath_var=no
9228      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9229      export_dynamic_flag_spec='$wl-E'
9230      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9231      # Instead, shared libraries are loaded at an image base (0x10000000 by
9232      # default) and relocated if they conflict, which is a slow very memory
9233      # consuming and fragmenting process.  To avoid this, we pick a random,
9234      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9235      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9236      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9237      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'
9238      ;;
9239
9240    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9241      tmp_diet=no
9242      if test linux-dietlibc = "$host_os"; then
9243	case $cc_basename in
9244	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9245	esac
9246      fi
9247      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9248	 && test no = "$tmp_diet"
9249      then
9250	tmp_addflag=' $pic_flag'
9251	tmp_sharedflag='-shared'
9252	case $cc_basename,$host_cpu in
9253        pgcc*)				# Portland Group C compiler
9254	  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'
9255	  tmp_addflag=' $pic_flag'
9256	  ;;
9257	pgf77* | pgf90* | pgf95* | pgfortran*)
9258					# Portland Group f77 and f90 compilers
9259	  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'
9260	  tmp_addflag=' $pic_flag -Mnomain' ;;
9261	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9262	  tmp_addflag=' -i_dynamic' ;;
9263	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9264	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9265	ifc* | ifort*)			# Intel Fortran compiler
9266	  tmp_addflag=' -nofor_main' ;;
9267	lf95*)				# Lahey Fortran 8.1
9268	  whole_archive_flag_spec=
9269	  tmp_sharedflag='--shared' ;;
9270        nagfor*)                        # NAGFOR 5.3
9271          tmp_sharedflag='-Wl,-shared' ;;
9272	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9273	  tmp_sharedflag='-qmkshrobj'
9274	  tmp_addflag= ;;
9275	nvcc*)	# Cuda Compiler Driver 2.2
9276	  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'
9277	  compiler_needs_object=yes
9278	  ;;
9279	esac
9280	case `$CC -V 2>&1 | sed 5q` in
9281	*Sun\ C*)			# Sun C 5.9
9282	  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'
9283	  compiler_needs_object=yes
9284	  tmp_sharedflag='-G' ;;
9285	*Sun\ F*)			# Sun Fortran 8.3
9286	  tmp_sharedflag='-G' ;;
9287	esac
9288	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9289
9290        if test yes = "$supports_anon_versioning"; then
9291          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9292            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9293            echo "local: *; };" >> $output_objdir/$libname.ver~
9294            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9295        fi
9296
9297	case $cc_basename in
9298	tcc*)
9299	  export_dynamic_flag_spec='-rdynamic'
9300	  ;;
9301	xlf* | bgf* | bgxlf* | mpixlf*)
9302	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9303	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9304	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9305	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9306	  if test yes = "$supports_anon_versioning"; then
9307	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9308              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9309              echo "local: *; };" >> $output_objdir/$libname.ver~
9310              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9311	  fi
9312	  ;;
9313	esac
9314      else
9315        ld_shlibs=no
9316      fi
9317      ;;
9318
9319    netbsd*)
9320      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9322	wlarc=
9323      else
9324	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9325	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9326      fi
9327      ;;
9328
9329    solaris*)
9330      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9331	ld_shlibs=no
9332	cat <<_LT_EOF 1>&2
9333
9334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9335*** create shared libraries on Solaris systems.  Therefore, libtool
9336*** is disabling shared libraries support.  We urge you to upgrade GNU
9337*** binutils to release 2.9.1 or newer.  Another option is to modify
9338*** your PATH or compiler configuration so that the native linker is
9339*** used, and then restart.
9340
9341_LT_EOF
9342      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9344	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9345      else
9346	ld_shlibs=no
9347      fi
9348      ;;
9349
9350    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9351      case `$LD -v 2>&1` in
9352        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9353	ld_shlibs=no
9354	cat <<_LT_EOF 1>&2
9355
9356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9357*** reliably create shared libraries on SCO systems.  Therefore, libtool
9358*** is disabling shared libraries support.  We urge you to upgrade GNU
9359*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9360*** your PATH or compiler configuration so that the native linker is
9361*** used, and then restart.
9362
9363_LT_EOF
9364	;;
9365	*)
9366	  # For security reasons, it is highly recommended that you always
9367	  # use absolute paths for naming shared libraries, and exclude the
9368	  # DT_RUNPATH tag from executables and libraries.  But doing so
9369	  # requires that you compile everything twice, which is a pain.
9370	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9372	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9374	  else
9375	    ld_shlibs=no
9376	  fi
9377	;;
9378      esac
9379      ;;
9380
9381    sunos4*)
9382      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383      wlarc=
9384      hardcode_direct=yes
9385      hardcode_shlibpath_var=no
9386      ;;
9387
9388    *)
9389      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9390	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9391	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9392      else
9393	ld_shlibs=no
9394      fi
9395      ;;
9396    esac
9397
9398    if test no = "$ld_shlibs"; then
9399      runpath_var=
9400      hardcode_libdir_flag_spec=
9401      export_dynamic_flag_spec=
9402      whole_archive_flag_spec=
9403    fi
9404  else
9405    # PORTME fill in a description of your system's linker (not GNU ld)
9406    case $host_os in
9407    aix3*)
9408      allow_undefined_flag=unsupported
9409      always_export_symbols=yes
9410      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'
9411      # Note: this linker hardcodes the directories in LIBPATH if there
9412      # are no directories specified by -L.
9413      hardcode_minus_L=yes
9414      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9415	# Neither direct hardcoding nor static linking is supported with a
9416	# broken collect2.
9417	hardcode_direct=unsupported
9418      fi
9419      ;;
9420
9421    aix[4-9]*)
9422      if test ia64 = "$host_cpu"; then
9423	# On IA64, the linker does run time linking by default, so we don't
9424	# have to do anything special.
9425	aix_use_runtimelinking=no
9426	exp_sym_flag='-Bexport'
9427	no_entry_flag=
9428      else
9429	# If we're using GNU nm, then we don't want the "-C" option.
9430	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9431	# Without the "-l" option, or with the "-B" option, AIX nm treats
9432	# weak defined symbols like other global defined symbols, whereas
9433	# GNU nm marks them as "W".
9434	# While the 'weak' keyword is ignored in the Export File, we need
9435	# it in the Import File for the 'aix-soname' feature, so we have
9436	# to replace the "-B" option with "-P" for AIX nm.
9437	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9438	  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'
9439	else
9440	  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'
9441	fi
9442	aix_use_runtimelinking=no
9443
9444	# Test if we are trying to use run time linking or normal
9445	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9446	# have runtime linking enabled, and use it for executables.
9447	# For shared libraries, we enable/disable runtime linking
9448	# depending on the kind of the shared library created -
9449	# when "with_aix_soname,aix_use_runtimelinking" is:
9450	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9451	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9452	#            lib.a           static archive
9453	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9454	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9455	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9456	#            lib.a(lib.so.V) shared, rtl:no
9457	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9458	#            lib.a           static archive
9459	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9460	  for ld_flag in $LDFLAGS; do
9461	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9462	    aix_use_runtimelinking=yes
9463	    break
9464	  fi
9465	  done
9466	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9467	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9468	    # so we don't have lib.a shared libs to link our executables.
9469	    # We have to force runtime linking in this case.
9470	    aix_use_runtimelinking=yes
9471	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9472	  fi
9473	  ;;
9474	esac
9475
9476	exp_sym_flag='-bexport'
9477	no_entry_flag='-bnoentry'
9478      fi
9479
9480      # When large executables or shared objects are built, AIX ld can
9481      # have problems creating the table of contents.  If linking a library
9482      # or program results in "error TOC overflow" add -mminimal-toc to
9483      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9484      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9485
9486      archive_cmds=''
9487      hardcode_direct=yes
9488      hardcode_direct_absolute=yes
9489      hardcode_libdir_separator=':'
9490      link_all_deplibs=yes
9491      file_list_spec='$wl-f,'
9492      case $with_aix_soname,$aix_use_runtimelinking in
9493      aix,*) ;; # traditional, no import file
9494      svr4,* | *,yes) # use import file
9495	# The Import File defines what to hardcode.
9496	hardcode_direct=no
9497	hardcode_direct_absolute=no
9498	;;
9499      esac
9500
9501      if test yes = "$GCC"; then
9502	case $host_os in aix4.[012]|aix4.[012].*)
9503	# We only want to do this on AIX 4.2 and lower, the check
9504	# below for broken collect2 doesn't work under 4.3+
9505	  collect2name=`$CC -print-prog-name=collect2`
9506	  if test -f "$collect2name" &&
9507	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9508	  then
9509	  # We have reworked collect2
9510	  :
9511	  else
9512	  # We have old collect2
9513	  hardcode_direct=unsupported
9514	  # It fails to find uninstalled libraries when the uninstalled
9515	  # path is not listed in the libpath.  Setting hardcode_minus_L
9516	  # to unsupported forces relinking
9517	  hardcode_minus_L=yes
9518	  hardcode_libdir_flag_spec='-L$libdir'
9519	  hardcode_libdir_separator=
9520	  fi
9521	  ;;
9522	esac
9523	shared_flag='-shared'
9524	if test yes = "$aix_use_runtimelinking"; then
9525	  shared_flag="$shared_flag "'$wl-G'
9526	fi
9527	# Need to ensure runtime linking is disabled for the traditional
9528	# shared library, or the linker may eventually find shared libraries
9529	# /with/ Import File - we do not want to mix them.
9530	shared_flag_aix='-shared'
9531	shared_flag_svr4='-shared $wl-G'
9532      else
9533	# not using gcc
9534	if test ia64 = "$host_cpu"; then
9535	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9536	# chokes on -Wl,-G. The following line is correct:
9537	  shared_flag='-G'
9538	else
9539	  if test yes = "$aix_use_runtimelinking"; then
9540	    shared_flag='$wl-G'
9541	  else
9542	    shared_flag='$wl-bM:SRE'
9543	  fi
9544	  shared_flag_aix='$wl-bM:SRE'
9545	  shared_flag_svr4='$wl-G'
9546	fi
9547      fi
9548
9549      export_dynamic_flag_spec='$wl-bexpall'
9550      # It seems that -bexpall does not export symbols beginning with
9551      # underscore (_), so it is better to generate a list of symbols to export.
9552      always_export_symbols=yes
9553      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9554	# Warning - without using the other runtime loading flags (-brtl),
9555	# -berok will link without error, but may produce a broken library.
9556	allow_undefined_flag='-berok'
9557        # Determine the default libpath from the value encoded in an
9558        # empty executable.
9559        if test set = "${lt_cv_aix_libpath+set}"; then
9560  aix_libpath=$lt_cv_aix_libpath
9561else
9562  if ${lt_cv_aix_libpath_+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567
9568int
9569main ()
9570{
9571
9572  ;
9573  return 0;
9574}
9575_ACEOF
9576if ac_fn_c_try_link "$LINENO"; then :
9577
9578  lt_aix_libpath_sed='
9579      /Import File Strings/,/^$/ {
9580	  /^0/ {
9581	      s/^0  *\([^ ]*\) *$/\1/
9582	      p
9583	  }
9584      }'
9585  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586  # Check for a 64-bit object if we didn't find anything.
9587  if test -z "$lt_cv_aix_libpath_"; then
9588    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589  fi
9590fi
9591rm -f core conftest.err conftest.$ac_objext \
9592    conftest$ac_exeext conftest.$ac_ext
9593  if test -z "$lt_cv_aix_libpath_"; then
9594    lt_cv_aix_libpath_=/usr/lib:/lib
9595  fi
9596
9597fi
9598
9599  aix_libpath=$lt_cv_aix_libpath_
9600fi
9601
9602        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9603        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
9604      else
9605	if test ia64 = "$host_cpu"; then
9606	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9607	  allow_undefined_flag="-z nodefs"
9608	  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"
9609	else
9610	 # Determine the default libpath from the value encoded in an
9611	 # empty executable.
9612	 if test set = "${lt_cv_aix_libpath+set}"; then
9613  aix_libpath=$lt_cv_aix_libpath
9614else
9615  if ${lt_cv_aix_libpath_+:} false; then :
9616  $as_echo_n "(cached) " >&6
9617else
9618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619/* end confdefs.h.  */
9620
9621int
9622main ()
9623{
9624
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_link "$LINENO"; then :
9630
9631  lt_aix_libpath_sed='
9632      /Import File Strings/,/^$/ {
9633	  /^0/ {
9634	      s/^0  *\([^ ]*\) *$/\1/
9635	      p
9636	  }
9637      }'
9638  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639  # Check for a 64-bit object if we didn't find anything.
9640  if test -z "$lt_cv_aix_libpath_"; then
9641    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642  fi
9643fi
9644rm -f core conftest.err conftest.$ac_objext \
9645    conftest$ac_exeext conftest.$ac_ext
9646  if test -z "$lt_cv_aix_libpath_"; then
9647    lt_cv_aix_libpath_=/usr/lib:/lib
9648  fi
9649
9650fi
9651
9652  aix_libpath=$lt_cv_aix_libpath_
9653fi
9654
9655	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9656	  # Warning - without using the other run time loading flags,
9657	  # -berok will link without error, but may produce a broken library.
9658	  no_undefined_flag=' $wl-bernotok'
9659	  allow_undefined_flag=' $wl-berok'
9660	  if test yes = "$with_gnu_ld"; then
9661	    # We only use this code for GNU lds that support --whole-archive.
9662	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9663	  else
9664	    # Exported symbols can be pulled into shared objects from archives
9665	    whole_archive_flag_spec='$convenience'
9666	  fi
9667	  archive_cmds_need_lc=yes
9668	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9669	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9670	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9671	  if test svr4 != "$with_aix_soname"; then
9672	    # This is similar to how AIX traditionally builds its shared libraries.
9673	    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'
9674	  fi
9675	  if test aix != "$with_aix_soname"; then
9676	    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'
9677	  else
9678	    # used by -dlpreopen to get the symbols
9679	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9680	  fi
9681	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9682	fi
9683      fi
9684      ;;
9685
9686    amigaos*)
9687      case $host_cpu in
9688      powerpc)
9689            # see comment about AmigaOS4 .so support
9690            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9691            archive_expsym_cmds=''
9692        ;;
9693      m68k)
9694            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)'
9695            hardcode_libdir_flag_spec='-L$libdir'
9696            hardcode_minus_L=yes
9697        ;;
9698      esac
9699      ;;
9700
9701    bsdi[45]*)
9702      export_dynamic_flag_spec=-rdynamic
9703      ;;
9704
9705    cygwin* | mingw* | pw32* | cegcc*)
9706      # When not using gcc, we currently assume that we are using
9707      # Microsoft Visual C++.
9708      # hardcode_libdir_flag_spec is actually meaningless, as there is
9709      # no search path for DLLs.
9710      case $cc_basename in
9711      cl*)
9712	# Native MSVC
9713	hardcode_libdir_flag_spec=' '
9714	allow_undefined_flag=unsupported
9715	always_export_symbols=yes
9716	file_list_spec='@'
9717	# Tell ltmain to make .lib files, not .a files.
9718	libext=lib
9719	# Tell ltmain to make .dll files, not .so files.
9720	shrext_cmds=.dll
9721	# FIXME: Setting linknames here is a bad hack.
9722	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9723	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9724            cp "$export_symbols" "$output_objdir/$soname.def";
9725            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9726          else
9727            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9728          fi~
9729          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9730          linknames='
9731	# The linker will not automatically build a static lib if we build a DLL.
9732	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9733	enable_shared_with_static_runtimes=yes
9734	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9735	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9736	# Don't use ranlib
9737	old_postinstall_cmds='chmod 644 $oldlib'
9738	postlink_cmds='lt_outputfile="@OUTPUT@"~
9739          lt_tool_outputfile="@TOOL_OUTPUT@"~
9740          case $lt_outputfile in
9741            *.exe|*.EXE) ;;
9742            *)
9743              lt_outputfile=$lt_outputfile.exe
9744              lt_tool_outputfile=$lt_tool_outputfile.exe
9745              ;;
9746          esac~
9747          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9748            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9749            $RM "$lt_outputfile.manifest";
9750          fi'
9751	;;
9752      *)
9753	# Assume MSVC wrapper
9754	hardcode_libdir_flag_spec=' '
9755	allow_undefined_flag=unsupported
9756	# Tell ltmain to make .lib files, not .a files.
9757	libext=lib
9758	# Tell ltmain to make .dll files, not .so files.
9759	shrext_cmds=.dll
9760	# FIXME: Setting linknames here is a bad hack.
9761	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9762	# The linker will automatically build a .lib file if we build a DLL.
9763	old_archive_from_new_cmds='true'
9764	# FIXME: Should let the user specify the lib program.
9765	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9766	enable_shared_with_static_runtimes=yes
9767	;;
9768      esac
9769      ;;
9770
9771    darwin* | rhapsody*)
9772
9773
9774  archive_cmds_need_lc=no
9775  hardcode_direct=no
9776  hardcode_automatic=yes
9777  hardcode_shlibpath_var=unsupported
9778  if test yes = "$lt_cv_ld_force_load"; then
9779    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\"`'
9780
9781  else
9782    whole_archive_flag_spec=''
9783  fi
9784  link_all_deplibs=yes
9785  allow_undefined_flag=$_lt_dar_allow_undefined
9786  case $cc_basename in
9787     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9788     *) _lt_dar_can_shared=$GCC ;;
9789  esac
9790  if test yes = "$_lt_dar_can_shared"; then
9791    output_verbose_link_cmd=func_echo_all
9792    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9793    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9794    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"
9795    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"
9796
9797  else
9798  ld_shlibs=no
9799  fi
9800
9801      ;;
9802
9803    dgux*)
9804      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805      hardcode_libdir_flag_spec='-L$libdir'
9806      hardcode_shlibpath_var=no
9807      ;;
9808
9809    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9810    # support.  Future versions do this automatically, but an explicit c++rt0.o
9811    # does not break anything, and helps significantly (at the cost of a little
9812    # extra space).
9813    freebsd2.2*)
9814      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9815      hardcode_libdir_flag_spec='-R$libdir'
9816      hardcode_direct=yes
9817      hardcode_shlibpath_var=no
9818      ;;
9819
9820    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9821    freebsd2.*)
9822      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823      hardcode_direct=yes
9824      hardcode_minus_L=yes
9825      hardcode_shlibpath_var=no
9826      ;;
9827
9828    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9829    freebsd* | dragonfly*)
9830      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9831      hardcode_libdir_flag_spec='-R$libdir'
9832      hardcode_direct=yes
9833      hardcode_shlibpath_var=no
9834      ;;
9835
9836    hpux9*)
9837      if test yes = "$GCC"; then
9838	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'
9839      else
9840	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'
9841      fi
9842      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9843      hardcode_libdir_separator=:
9844      hardcode_direct=yes
9845
9846      # hardcode_minus_L: Not really in the search PATH,
9847      # but as the default location of the library.
9848      hardcode_minus_L=yes
9849      export_dynamic_flag_spec='$wl-E'
9850      ;;
9851
9852    hpux10*)
9853      if test yes,no = "$GCC,$with_gnu_ld"; then
9854	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855      else
9856	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857      fi
9858      if test no = "$with_gnu_ld"; then
9859	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9860	hardcode_libdir_separator=:
9861	hardcode_direct=yes
9862	hardcode_direct_absolute=yes
9863	export_dynamic_flag_spec='$wl-E'
9864	# hardcode_minus_L: Not really in the search PATH,
9865	# but as the default location of the library.
9866	hardcode_minus_L=yes
9867      fi
9868      ;;
9869
9870    hpux11*)
9871      if test yes,no = "$GCC,$with_gnu_ld"; then
9872	case $host_cpu in
9873	hppa*64*)
9874	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9875	  ;;
9876	ia64*)
9877	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9878	  ;;
9879	*)
9880	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881	  ;;
9882	esac
9883      else
9884	case $host_cpu in
9885	hppa*64*)
9886	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9887	  ;;
9888	ia64*)
9889	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9890	  ;;
9891	*)
9892
9893	  # Older versions of the 11.00 compiler do not understand -b yet
9894	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9895	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9896$as_echo_n "checking if $CC understands -b... " >&6; }
9897if ${lt_cv_prog_compiler__b+:} false; then :
9898  $as_echo_n "(cached) " >&6
9899else
9900  lt_cv_prog_compiler__b=no
9901   save_LDFLAGS=$LDFLAGS
9902   LDFLAGS="$LDFLAGS -b"
9903   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9904   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9905     # The linker can only warn and ignore the option if not recognized
9906     # So say no if there are warnings
9907     if test -s conftest.err; then
9908       # Append any errors to the config.log.
9909       cat conftest.err 1>&5
9910       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9911       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9912       if diff conftest.exp conftest.er2 >/dev/null; then
9913         lt_cv_prog_compiler__b=yes
9914       fi
9915     else
9916       lt_cv_prog_compiler__b=yes
9917     fi
9918   fi
9919   $RM -r conftest*
9920   LDFLAGS=$save_LDFLAGS
9921
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9924$as_echo "$lt_cv_prog_compiler__b" >&6; }
9925
9926if test yes = "$lt_cv_prog_compiler__b"; then
9927    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928else
9929    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9930fi
9931
9932	  ;;
9933	esac
9934      fi
9935      if test no = "$with_gnu_ld"; then
9936	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9937	hardcode_libdir_separator=:
9938
9939	case $host_cpu in
9940	hppa*64*|ia64*)
9941	  hardcode_direct=no
9942	  hardcode_shlibpath_var=no
9943	  ;;
9944	*)
9945	  hardcode_direct=yes
9946	  hardcode_direct_absolute=yes
9947	  export_dynamic_flag_spec='$wl-E'
9948
9949	  # hardcode_minus_L: Not really in the search PATH,
9950	  # but as the default location of the library.
9951	  hardcode_minus_L=yes
9952	  ;;
9953	esac
9954      fi
9955      ;;
9956
9957    irix5* | irix6* | nonstopux*)
9958      if test yes = "$GCC"; then
9959	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'
9960	# Try to use the -exported_symbol ld option, if it does not
9961	# work, assume that -exports_file does not work either and
9962	# implicitly export all symbols.
9963	# This should be the same for all languages, so no per-tag cache variable.
9964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9965$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9966if ${lt_cv_irix_exported_symbol+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  save_LDFLAGS=$LDFLAGS
9970	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9971	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h.  */
9973int foo (void) { return 0; }
9974_ACEOF
9975if ac_fn_c_try_link "$LINENO"; then :
9976  lt_cv_irix_exported_symbol=yes
9977else
9978  lt_cv_irix_exported_symbol=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext \
9981    conftest$ac_exeext conftest.$ac_ext
9982           LDFLAGS=$save_LDFLAGS
9983fi
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9985$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9986	if test yes = "$lt_cv_irix_exported_symbol"; then
9987          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'
9988	fi
9989      else
9990	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'
9991	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'
9992      fi
9993      archive_cmds_need_lc='no'
9994      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9995      hardcode_libdir_separator=:
9996      inherit_rpath=yes
9997      link_all_deplibs=yes
9998      ;;
9999
10000    linux*)
10001      case $cc_basename in
10002      tcc*)
10003	# Fabrice Bellard et al's Tiny C Compiler
10004	ld_shlibs=yes
10005	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10006	;;
10007      esac
10008      ;;
10009
10010    netbsd*)
10011      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10012	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10013      else
10014	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10015      fi
10016      hardcode_libdir_flag_spec='-R$libdir'
10017      hardcode_direct=yes
10018      hardcode_shlibpath_var=no
10019      ;;
10020
10021    newsos6)
10022      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023      hardcode_direct=yes
10024      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10025      hardcode_libdir_separator=:
10026      hardcode_shlibpath_var=no
10027      ;;
10028
10029    *nto* | *qnx*)
10030      ;;
10031
10032    openbsd* | bitrig*)
10033      if test -f /usr/libexec/ld.so; then
10034	hardcode_direct=yes
10035	hardcode_shlibpath_var=no
10036	hardcode_direct_absolute=yes
10037	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10038	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10040	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10041	  export_dynamic_flag_spec='$wl-E'
10042	else
10043	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10045	fi
10046      else
10047	ld_shlibs=no
10048      fi
10049      ;;
10050
10051    os2*)
10052      hardcode_libdir_flag_spec='-L$libdir'
10053      hardcode_minus_L=yes
10054      allow_undefined_flag=unsupported
10055      shrext_cmds=.dll
10056      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10057	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10058	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10059	$ECHO EXPORTS >> $output_objdir/$libname.def~
10060	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10061	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10062	emximp -o $lib $output_objdir/$libname.def'
10063      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10064	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10065	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10066	$ECHO EXPORTS >> $output_objdir/$libname.def~
10067	prefix_cmds="$SED"~
10068	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10069	  prefix_cmds="$prefix_cmds -e 1d";
10070	fi~
10071	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10072	cat $export_symbols | $prefix_cmds >> $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      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10076      enable_shared_with_static_runtimes=yes
10077      ;;
10078
10079    osf3*)
10080      if test yes = "$GCC"; then
10081	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10082	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'
10083      else
10084	allow_undefined_flag=' -expect_unresolved \*'
10085	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'
10086      fi
10087      archive_cmds_need_lc='no'
10088      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10089      hardcode_libdir_separator=:
10090      ;;
10091
10092    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10093      if test yes = "$GCC"; then
10094	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10095	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'
10096	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10097      else
10098	allow_undefined_flag=' -expect_unresolved \*'
10099	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'
10100	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~
10101          $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'
10102
10103	# Both c and cxx compiler support -rpath directly
10104	hardcode_libdir_flag_spec='-rpath $libdir'
10105      fi
10106      archive_cmds_need_lc='no'
10107      hardcode_libdir_separator=:
10108      ;;
10109
10110    solaris*)
10111      no_undefined_flag=' -z defs'
10112      if test yes = "$GCC"; then
10113	wlarc='$wl'
10114	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10115	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10116          $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'
10117      else
10118	case `$CC -V 2>&1` in
10119	*"Compilers 5.0"*)
10120	  wlarc=''
10121	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10123            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10124	  ;;
10125	*)
10126	  wlarc='$wl'
10127	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10128	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10130	  ;;
10131	esac
10132      fi
10133      hardcode_libdir_flag_spec='-R$libdir'
10134      hardcode_shlibpath_var=no
10135      case $host_os in
10136      solaris2.[0-5] | solaris2.[0-5].*) ;;
10137      *)
10138	# The compiler driver will combine and reorder linker options,
10139	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10140	# but is careful enough not to reorder.
10141	# Supported since Solaris 2.6 (maybe 2.5.1?)
10142	if test yes = "$GCC"; then
10143	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10144	else
10145	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10146	fi
10147	;;
10148      esac
10149      link_all_deplibs=yes
10150      ;;
10151
10152    sunos4*)
10153      if test sequent = "$host_vendor"; then
10154	# Use $CC to link under sequent, because it throws in some extra .o
10155	# files that make .init and .fini sections work.
10156	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10157      else
10158	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10159      fi
10160      hardcode_libdir_flag_spec='-L$libdir'
10161      hardcode_direct=yes
10162      hardcode_minus_L=yes
10163      hardcode_shlibpath_var=no
10164      ;;
10165
10166    sysv4)
10167      case $host_vendor in
10168	sni)
10169	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170	  hardcode_direct=yes # is this really true???
10171	;;
10172	siemens)
10173	  ## LD is ld it makes a PLAMLIB
10174	  ## CC just makes a GrossModule.
10175	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10176	  reload_cmds='$CC -r -o $output$reload_objs'
10177	  hardcode_direct=no
10178        ;;
10179	motorola)
10180	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10182	;;
10183      esac
10184      runpath_var='LD_RUN_PATH'
10185      hardcode_shlibpath_var=no
10186      ;;
10187
10188    sysv4.3*)
10189      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190      hardcode_shlibpath_var=no
10191      export_dynamic_flag_spec='-Bexport'
10192      ;;
10193
10194    sysv4*MP*)
10195      if test -d /usr/nec; then
10196	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197	hardcode_shlibpath_var=no
10198	runpath_var=LD_RUN_PATH
10199	hardcode_runpath_var=yes
10200	ld_shlibs=yes
10201      fi
10202      ;;
10203
10204    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10205      no_undefined_flag='$wl-z,text'
10206      archive_cmds_need_lc=no
10207      hardcode_shlibpath_var=no
10208      runpath_var='LD_RUN_PATH'
10209
10210      if test yes = "$GCC"; then
10211	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213      else
10214	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216      fi
10217      ;;
10218
10219    sysv5* | sco3.2v5* | sco5v6*)
10220      # Note: We CANNOT use -z defs as we might desire, because we do not
10221      # link with -lc, and that would cause any symbols used from libc to
10222      # always be unresolved, which means just about no library would
10223      # ever link correctly.  If we're not using GNU ld we use -z text
10224      # though, which does catch some bad symbols but isn't as heavy-handed
10225      # as -z defs.
10226      no_undefined_flag='$wl-z,text'
10227      allow_undefined_flag='$wl-z,nodefs'
10228      archive_cmds_need_lc=no
10229      hardcode_shlibpath_var=no
10230      hardcode_libdir_flag_spec='$wl-R,$libdir'
10231      hardcode_libdir_separator=':'
10232      link_all_deplibs=yes
10233      export_dynamic_flag_spec='$wl-Bexport'
10234      runpath_var='LD_RUN_PATH'
10235
10236      if test yes = "$GCC"; then
10237	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239      else
10240	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242      fi
10243      ;;
10244
10245    uts4*)
10246      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247      hardcode_libdir_flag_spec='-L$libdir'
10248      hardcode_shlibpath_var=no
10249      ;;
10250
10251    *)
10252      ld_shlibs=no
10253      ;;
10254    esac
10255
10256    if test sni = "$host_vendor"; then
10257      case $host in
10258      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10259	export_dynamic_flag_spec='$wl-Blargedynsym'
10260	;;
10261      esac
10262    fi
10263  fi
10264
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10266$as_echo "$ld_shlibs" >&6; }
10267test no = "$ld_shlibs" && can_build_shared=no
10268
10269with_gnu_ld=$with_gnu_ld
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285#
10286# Do we need to explicitly link libc?
10287#
10288case "x$archive_cmds_need_lc" in
10289x|xyes)
10290  # Assume -lc should be added
10291  archive_cmds_need_lc=yes
10292
10293  if test yes,yes = "$GCC,$enable_shared"; then
10294    case $archive_cmds in
10295    *'~'*)
10296      # FIXME: we may have to deal with multi-command sequences.
10297      ;;
10298    '$CC '*)
10299      # Test whether the compiler implicitly links with -lc since on some
10300      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10301      # to ld, don't add -lc before -lgcc.
10302      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10303$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10304if ${lt_cv_archive_cmds_need_lc+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  $RM conftest*
10308	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10309
10310	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311  (eval $ac_compile) 2>&5
10312  ac_status=$?
10313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314  test $ac_status = 0; } 2>conftest.err; then
10315	  soname=conftest
10316	  lib=conftest
10317	  libobjs=conftest.$ac_objext
10318	  deplibs=
10319	  wl=$lt_prog_compiler_wl
10320	  pic_flag=$lt_prog_compiler_pic
10321	  compiler_flags=-v
10322	  linker_flags=-v
10323	  verstring=
10324	  output_objdir=.
10325	  libname=conftest
10326	  lt_save_allow_undefined_flag=$allow_undefined_flag
10327	  allow_undefined_flag=
10328	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10329  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10330  ac_status=$?
10331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332  test $ac_status = 0; }
10333	  then
10334	    lt_cv_archive_cmds_need_lc=no
10335	  else
10336	    lt_cv_archive_cmds_need_lc=yes
10337	  fi
10338	  allow_undefined_flag=$lt_save_allow_undefined_flag
10339	else
10340	  cat conftest.err 1>&5
10341	fi
10342	$RM conftest*
10343
10344fi
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10346$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10347      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10348      ;;
10349    esac
10350  fi
10351  ;;
10352esac
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10506$as_echo_n "checking dynamic linker characteristics... " >&6; }
10507
10508if test yes = "$GCC"; then
10509  case $host_os in
10510    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10511    *) lt_awk_arg='/^libraries:/' ;;
10512  esac
10513  case $host_os in
10514    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10515    *) lt_sed_strip_eq='s|=/|/|g' ;;
10516  esac
10517  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10518  case $lt_search_path_spec in
10519  *\;*)
10520    # if the path contains ";" then we assume it to be the separator
10521    # otherwise default to the standard path separator (i.e. ":") - it is
10522    # assumed that no part of a normal pathname contains ";" but that should
10523    # okay in the real world where ";" in dirpaths is itself problematic.
10524    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10525    ;;
10526  *)
10527    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10528    ;;
10529  esac
10530  # Ok, now we have the path, separated by spaces, we can step through it
10531  # and add multilib dir if necessary...
10532  lt_tmp_lt_search_path_spec=
10533  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10534  # ...but if some path component already ends with the multilib dir we assume
10535  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10536  case "$lt_multi_os_dir; $lt_search_path_spec " in
10537  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10538    lt_multi_os_dir=
10539    ;;
10540  esac
10541  for lt_sys_path in $lt_search_path_spec; do
10542    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10543      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10544    elif test -n "$lt_multi_os_dir"; then
10545      test -d "$lt_sys_path" && \
10546	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10547    fi
10548  done
10549  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10550BEGIN {RS = " "; FS = "/|\n";} {
10551  lt_foo = "";
10552  lt_count = 0;
10553  for (lt_i = NF; lt_i > 0; lt_i--) {
10554    if ($lt_i != "" && $lt_i != ".") {
10555      if ($lt_i == "..") {
10556        lt_count++;
10557      } else {
10558        if (lt_count == 0) {
10559          lt_foo = "/" $lt_i lt_foo;
10560        } else {
10561          lt_count--;
10562        }
10563      }
10564    }
10565  }
10566  if (lt_foo != "") { lt_freq[lt_foo]++; }
10567  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10568}'`
10569  # AWK program above erroneously prepends '/' to C:/dos/paths
10570  # for these hosts.
10571  case $host_os in
10572    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10573      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10574  esac
10575  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10576else
10577  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10578fi
10579library_names_spec=
10580libname_spec='lib$name'
10581soname_spec=
10582shrext_cmds=.so
10583postinstall_cmds=
10584postuninstall_cmds=
10585finish_cmds=
10586finish_eval=
10587shlibpath_var=
10588shlibpath_overrides_runpath=unknown
10589version_type=none
10590dynamic_linker="$host_os ld.so"
10591sys_lib_dlsearch_path_spec="/lib /usr/lib"
10592need_lib_prefix=unknown
10593hardcode_into_libs=no
10594
10595# when you set need_version to no, make sure it does not cause -set_version
10596# flags to be left without arguments
10597need_version=unknown
10598
10599
10600
10601case $host_os in
10602aix3*)
10603  version_type=linux # correct to gnu/linux during the next big refactor
10604  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10605  shlibpath_var=LIBPATH
10606
10607  # AIX 3 has no versioning support, so we append a major version to the name.
10608  soname_spec='$libname$release$shared_ext$major'
10609  ;;
10610
10611aix[4-9]*)
10612  version_type=linux # correct to gnu/linux during the next big refactor
10613  need_lib_prefix=no
10614  need_version=no
10615  hardcode_into_libs=yes
10616  if test ia64 = "$host_cpu"; then
10617    # AIX 5 supports IA64
10618    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10619    shlibpath_var=LD_LIBRARY_PATH
10620  else
10621    # With GCC up to 2.95.x, collect2 would create an import file
10622    # for dependence libraries.  The import file would start with
10623    # the line '#! .'.  This would cause the generated library to
10624    # depend on '.', always an invalid library.  This was fixed in
10625    # development snapshots of GCC prior to 3.0.
10626    case $host_os in
10627      aix4 | aix4.[01] | aix4.[01].*)
10628      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10629	   echo ' yes '
10630	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10631	:
10632      else
10633	can_build_shared=no
10634      fi
10635      ;;
10636    esac
10637    # Using Import Files as archive members, it is possible to support
10638    # filename-based versioning of shared library archives on AIX. While
10639    # this would work for both with and without runtime linking, it will
10640    # prevent static linking of such archives. So we do filename-based
10641    # shared library versioning with .so extension only, which is used
10642    # when both runtime linking and shared linking is enabled.
10643    # Unfortunately, runtime linking may impact performance, so we do
10644    # not want this to be the default eventually. Also, we use the
10645    # versioned .so libs for executables only if there is the -brtl
10646    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10647    # To allow for filename-based versioning support, we need to create
10648    # libNAME.so.V as an archive file, containing:
10649    # *) an Import File, referring to the versioned filename of the
10650    #    archive as well as the shared archive member, telling the
10651    #    bitwidth (32 or 64) of that shared object, and providing the
10652    #    list of exported symbols of that shared object, eventually
10653    #    decorated with the 'weak' keyword
10654    # *) the shared object with the F_LOADONLY flag set, to really avoid
10655    #    it being seen by the linker.
10656    # At run time we better use the real file rather than another symlink,
10657    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10658
10659    case $with_aix_soname,$aix_use_runtimelinking in
10660    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10661    # soname into executable. Probably we can add versioning support to
10662    # collect2, so additional links can be useful in future.
10663    aix,yes) # traditional libtool
10664      dynamic_linker='AIX unversionable lib.so'
10665      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10666      # instead of lib<name>.a to let people know that these are not
10667      # typical AIX shared libraries.
10668      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10669      ;;
10670    aix,no) # traditional AIX only
10671      dynamic_linker='AIX lib.a(lib.so.V)'
10672      # We preserve .a as extension for shared libraries through AIX4.2
10673      # and later when we are not doing run time linking.
10674      library_names_spec='$libname$release.a $libname.a'
10675      soname_spec='$libname$release$shared_ext$major'
10676      ;;
10677    svr4,*) # full svr4 only
10678      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10679      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10680      # We do not specify a path in Import Files, so LIBPATH fires.
10681      shlibpath_overrides_runpath=yes
10682      ;;
10683    *,yes) # both, prefer svr4
10684      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10685      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10686      # unpreferred sharedlib libNAME.a needs extra handling
10687      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"'
10688      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"'
10689      # We do not specify a path in Import Files, so LIBPATH fires.
10690      shlibpath_overrides_runpath=yes
10691      ;;
10692    *,no) # both, prefer aix
10693      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10694      library_names_spec='$libname$release.a $libname.a'
10695      soname_spec='$libname$release$shared_ext$major'
10696      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10697      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)'
10698      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"'
10699      ;;
10700    esac
10701    shlibpath_var=LIBPATH
10702  fi
10703  ;;
10704
10705amigaos*)
10706  case $host_cpu in
10707  powerpc)
10708    # Since July 2007 AmigaOS4 officially supports .so libraries.
10709    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10710    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10711    ;;
10712  m68k)
10713    library_names_spec='$libname.ixlibrary $libname.a'
10714    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10715    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'
10716    ;;
10717  esac
10718  ;;
10719
10720beos*)
10721  library_names_spec='$libname$shared_ext'
10722  dynamic_linker="$host_os ld.so"
10723  shlibpath_var=LIBRARY_PATH
10724  ;;
10725
10726bsdi[45]*)
10727  version_type=linux # correct to gnu/linux during the next big refactor
10728  need_version=no
10729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10730  soname_spec='$libname$release$shared_ext$major'
10731  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10732  shlibpath_var=LD_LIBRARY_PATH
10733  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10734  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10735  # the default ld.so.conf also contains /usr/contrib/lib and
10736  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10737  # libtool to hard-code these into programs
10738  ;;
10739
10740cygwin* | mingw* | pw32* | cegcc*)
10741  version_type=windows
10742  shrext_cmds=.dll
10743  need_version=no
10744  need_lib_prefix=no
10745
10746  case $GCC,$cc_basename in
10747  yes,*)
10748    # gcc
10749    library_names_spec='$libname.dll.a'
10750    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751    postinstall_cmds='base_file=`basename \$file`~
10752      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10753      dldir=$destdir/`dirname \$dlpath`~
10754      test -d \$dldir || mkdir -p \$dldir~
10755      $install_prog $dir/$dlname \$dldir/$dlname~
10756      chmod a+x \$dldir/$dlname~
10757      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10758        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10759      fi'
10760    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10761      dlpath=$dir/\$dldll~
10762       $RM \$dlpath'
10763    shlibpath_overrides_runpath=yes
10764
10765    case $host_os in
10766    cygwin*)
10767      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10768      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10769
10770      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10771      ;;
10772    mingw* | cegcc*)
10773      # MinGW DLLs use traditional 'lib' prefix
10774      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10775      ;;
10776    pw32*)
10777      # pw32 DLLs use 'pw' prefix rather than 'lib'
10778      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10779      ;;
10780    esac
10781    dynamic_linker='Win32 ld.exe'
10782    ;;
10783
10784  *,cl*)
10785    # Native MSVC
10786    libname_spec='$name'
10787    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10788    library_names_spec='$libname.dll.lib'
10789
10790    case $build_os in
10791    mingw*)
10792      sys_lib_search_path_spec=
10793      lt_save_ifs=$IFS
10794      IFS=';'
10795      for lt_path in $LIB
10796      do
10797        IFS=$lt_save_ifs
10798        # Let DOS variable expansion print the short 8.3 style file name.
10799        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10800        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10801      done
10802      IFS=$lt_save_ifs
10803      # Convert to MSYS style.
10804      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10805      ;;
10806    cygwin*)
10807      # Convert to unix form, then to dos form, then back to unix form
10808      # but this time dos style (no spaces!) so that the unix form looks
10809      # like /cygdrive/c/PROGRA~1:/cygdr...
10810      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10811      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10812      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813      ;;
10814    *)
10815      sys_lib_search_path_spec=$LIB
10816      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10817        # It is most probably a Windows format PATH.
10818        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10819      else
10820        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10821      fi
10822      # FIXME: find the short name or the path components, as spaces are
10823      # common. (e.g. "Program Files" -> "PROGRA~1")
10824      ;;
10825    esac
10826
10827    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10828    postinstall_cmds='base_file=`basename \$file`~
10829      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10830      dldir=$destdir/`dirname \$dlpath`~
10831      test -d \$dldir || mkdir -p \$dldir~
10832      $install_prog $dir/$dlname \$dldir/$dlname'
10833    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10834      dlpath=$dir/\$dldll~
10835       $RM \$dlpath'
10836    shlibpath_overrides_runpath=yes
10837    dynamic_linker='Win32 link.exe'
10838    ;;
10839
10840  *)
10841    # Assume MSVC wrapper
10842    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10843    dynamic_linker='Win32 ld.exe'
10844    ;;
10845  esac
10846  # FIXME: first we should search . and the directory the executable is in
10847  shlibpath_var=PATH
10848  ;;
10849
10850darwin* | rhapsody*)
10851  dynamic_linker="$host_os dyld"
10852  version_type=darwin
10853  need_lib_prefix=no
10854  need_version=no
10855  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10856  soname_spec='$libname$release$major$shared_ext'
10857  shlibpath_overrides_runpath=yes
10858  shlibpath_var=DYLD_LIBRARY_PATH
10859  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10860
10861  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10862  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10863  ;;
10864
10865dgux*)
10866  version_type=linux # correct to gnu/linux during the next big refactor
10867  need_lib_prefix=no
10868  need_version=no
10869  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10870  soname_spec='$libname$release$shared_ext$major'
10871  shlibpath_var=LD_LIBRARY_PATH
10872  ;;
10873
10874freebsd* | dragonfly*)
10875  # DragonFly does not have aout.  When/if they implement a new
10876  # versioning mechanism, adjust this.
10877  if test -x /usr/bin/objformat; then
10878    objformat=`/usr/bin/objformat`
10879  else
10880    case $host_os in
10881    freebsd[23].*) objformat=aout ;;
10882    *) objformat=elf ;;
10883    esac
10884  fi
10885  version_type=freebsd-$objformat
10886  case $version_type in
10887    freebsd-elf*)
10888      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10889      soname_spec='$libname$release$shared_ext$major'
10890      need_version=no
10891      need_lib_prefix=no
10892      ;;
10893    freebsd-*)
10894      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10895      need_version=yes
10896      ;;
10897  esac
10898  shlibpath_var=LD_LIBRARY_PATH
10899  case $host_os in
10900  freebsd2.*)
10901    shlibpath_overrides_runpath=yes
10902    ;;
10903  freebsd3.[01]* | freebsdelf3.[01]*)
10904    shlibpath_overrides_runpath=yes
10905    hardcode_into_libs=yes
10906    ;;
10907  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10908  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10909    shlibpath_overrides_runpath=no
10910    hardcode_into_libs=yes
10911    ;;
10912  *) # from 4.6 on, and DragonFly
10913    shlibpath_overrides_runpath=yes
10914    hardcode_into_libs=yes
10915    ;;
10916  esac
10917  ;;
10918
10919haiku*)
10920  version_type=linux # correct to gnu/linux during the next big refactor
10921  need_lib_prefix=no
10922  need_version=no
10923  dynamic_linker="$host_os runtime_loader"
10924  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925  soname_spec='$libname$release$shared_ext$major'
10926  shlibpath_var=LIBRARY_PATH
10927  shlibpath_overrides_runpath=no
10928  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10929  hardcode_into_libs=yes
10930  ;;
10931
10932hpux9* | hpux10* | hpux11*)
10933  # Give a soname corresponding to the major version so that dld.sl refuses to
10934  # link against other versions.
10935  version_type=sunos
10936  need_lib_prefix=no
10937  need_version=no
10938  case $host_cpu in
10939  ia64*)
10940    shrext_cmds='.so'
10941    hardcode_into_libs=yes
10942    dynamic_linker="$host_os dld.so"
10943    shlibpath_var=LD_LIBRARY_PATH
10944    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10945    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946    soname_spec='$libname$release$shared_ext$major'
10947    if test 32 = "$HPUX_IA64_MODE"; then
10948      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10949      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10950    else
10951      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10952      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10953    fi
10954    ;;
10955  hppa*64*)
10956    shrext_cmds='.sl'
10957    hardcode_into_libs=yes
10958    dynamic_linker="$host_os dld.sl"
10959    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10960    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10961    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962    soname_spec='$libname$release$shared_ext$major'
10963    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10964    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10965    ;;
10966  *)
10967    shrext_cmds='.sl'
10968    dynamic_linker="$host_os dld.sl"
10969    shlibpath_var=SHLIB_PATH
10970    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10971    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10972    soname_spec='$libname$release$shared_ext$major'
10973    ;;
10974  esac
10975  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10976  postinstall_cmds='chmod 555 $lib'
10977  # or fails outright, so override atomically:
10978  install_override_mode=555
10979  ;;
10980
10981interix[3-9]*)
10982  version_type=linux # correct to gnu/linux during the next big refactor
10983  need_lib_prefix=no
10984  need_version=no
10985  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10986  soname_spec='$libname$release$shared_ext$major'
10987  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10988  shlibpath_var=LD_LIBRARY_PATH
10989  shlibpath_overrides_runpath=no
10990  hardcode_into_libs=yes
10991  ;;
10992
10993irix5* | irix6* | nonstopux*)
10994  case $host_os in
10995    nonstopux*) version_type=nonstopux ;;
10996    *)
10997	if test yes = "$lt_cv_prog_gnu_ld"; then
10998		version_type=linux # correct to gnu/linux during the next big refactor
10999	else
11000		version_type=irix
11001	fi ;;
11002  esac
11003  need_lib_prefix=no
11004  need_version=no
11005  soname_spec='$libname$release$shared_ext$major'
11006  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11007  case $host_os in
11008  irix5* | nonstopux*)
11009    libsuff= shlibsuff=
11010    ;;
11011  *)
11012    case $LD in # libtool.m4 will add one of these switches to LD
11013    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11014      libsuff= shlibsuff= libmagic=32-bit;;
11015    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11016      libsuff=32 shlibsuff=N32 libmagic=N32;;
11017    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11018      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11019    *) libsuff= shlibsuff= libmagic=never-match;;
11020    esac
11021    ;;
11022  esac
11023  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11024  shlibpath_overrides_runpath=no
11025  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11026  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11027  hardcode_into_libs=yes
11028  ;;
11029
11030# No shared lib support for Linux oldld, aout, or coff.
11031linux*oldld* | linux*aout* | linux*coff*)
11032  dynamic_linker=no
11033  ;;
11034
11035linux*android*)
11036  version_type=none # Android doesn't support versioned libraries.
11037  need_lib_prefix=no
11038  need_version=no
11039  library_names_spec='$libname$release$shared_ext'
11040  soname_spec='$libname$release$shared_ext'
11041  finish_cmds=
11042  shlibpath_var=LD_LIBRARY_PATH
11043  shlibpath_overrides_runpath=yes
11044
11045  # This implies no fast_install, which is unacceptable.
11046  # Some rework will be needed to allow for fast_install
11047  # before this can be enabled.
11048  hardcode_into_libs=yes
11049
11050  dynamic_linker='Android linker'
11051  # Don't embed -rpath directories since the linker doesn't support them.
11052  hardcode_libdir_flag_spec='-L$libdir'
11053  ;;
11054
11055# This must be glibc/ELF.
11056linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11057  version_type=linux # correct to gnu/linux during the next big refactor
11058  need_lib_prefix=no
11059  need_version=no
11060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061  soname_spec='$libname$release$shared_ext$major'
11062  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11063  shlibpath_var=LD_LIBRARY_PATH
11064  shlibpath_overrides_runpath=no
11065
11066  # Some binutils ld are patched to set DT_RUNPATH
11067  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11068  $as_echo_n "(cached) " >&6
11069else
11070  lt_cv_shlibpath_overrides_runpath=no
11071    save_LDFLAGS=$LDFLAGS
11072    save_libdir=$libdir
11073    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11074	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076/* end confdefs.h.  */
11077
11078int
11079main ()
11080{
11081
11082  ;
11083  return 0;
11084}
11085_ACEOF
11086if ac_fn_c_try_link "$LINENO"; then :
11087  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11088  lt_cv_shlibpath_overrides_runpath=yes
11089fi
11090fi
11091rm -f core conftest.err conftest.$ac_objext \
11092    conftest$ac_exeext conftest.$ac_ext
11093    LDFLAGS=$save_LDFLAGS
11094    libdir=$save_libdir
11095
11096fi
11097
11098  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11099
11100  # This implies no fast_install, which is unacceptable.
11101  # Some rework will be needed to allow for fast_install
11102  # before this can be enabled.
11103  hardcode_into_libs=yes
11104
11105  # Ideally, we could use ldconfig to report *all* directores which are
11106  # searched for libraries, however this is still not possible.  Aside from not
11107  # being certain /sbin/ldconfig is available, command
11108  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11109  # even though it is searched at run-time.  Try to do the best guess by
11110  # appending ld.so.conf contents (and includes) to the search path.
11111  if test -f /etc/ld.so.conf; then
11112    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' ' '`
11113    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11114  fi
11115
11116  # We used to test for /lib/ld.so.1 and disable shared libraries on
11117  # powerpc, because MkLinux only supported shared libraries with the
11118  # GNU dynamic linker.  Since this was broken with cross compilers,
11119  # most powerpc-linux boxes support dynamic linking these days and
11120  # people can always --disable-shared, the test was removed, and we
11121  # assume the GNU/Linux dynamic linker is in use.
11122  dynamic_linker='GNU/Linux ld.so'
11123  ;;
11124
11125netbsd*)
11126  version_type=sunos
11127  need_lib_prefix=no
11128  need_version=no
11129  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11130    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11131    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11132    dynamic_linker='NetBSD (a.out) ld.so'
11133  else
11134    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11135    soname_spec='$libname$release$shared_ext$major'
11136    dynamic_linker='NetBSD ld.elf_so'
11137  fi
11138  shlibpath_var=LD_LIBRARY_PATH
11139  shlibpath_overrides_runpath=yes
11140  hardcode_into_libs=yes
11141  ;;
11142
11143newsos6)
11144  version_type=linux # correct to gnu/linux during the next big refactor
11145  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11146  shlibpath_var=LD_LIBRARY_PATH
11147  shlibpath_overrides_runpath=yes
11148  ;;
11149
11150*nto* | *qnx*)
11151  version_type=qnx
11152  need_lib_prefix=no
11153  need_version=no
11154  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155  soname_spec='$libname$release$shared_ext$major'
11156  shlibpath_var=LD_LIBRARY_PATH
11157  shlibpath_overrides_runpath=no
11158  hardcode_into_libs=yes
11159  dynamic_linker='ldqnx.so'
11160  ;;
11161
11162openbsd* | bitrig*)
11163  version_type=sunos
11164  sys_lib_dlsearch_path_spec=/usr/lib
11165  need_lib_prefix=no
11166  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11167    need_version=no
11168  else
11169    need_version=yes
11170  fi
11171  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11172  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11173  shlibpath_var=LD_LIBRARY_PATH
11174  shlibpath_overrides_runpath=yes
11175  ;;
11176
11177os2*)
11178  libname_spec='$name'
11179  version_type=windows
11180  shrext_cmds=.dll
11181  need_version=no
11182  need_lib_prefix=no
11183  # OS/2 can only load a DLL with a base name of 8 characters or less.
11184  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11185    v=$($ECHO $release$versuffix | tr -d .-);
11186    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11187    $ECHO $n$v`$shared_ext'
11188  library_names_spec='${libname}_dll.$libext'
11189  dynamic_linker='OS/2 ld.exe'
11190  shlibpath_var=BEGINLIBPATH
11191  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11192  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11193  postinstall_cmds='base_file=`basename \$file`~
11194    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11195    dldir=$destdir/`dirname \$dlpath`~
11196    test -d \$dldir || mkdir -p \$dldir~
11197    $install_prog $dir/$dlname \$dldir/$dlname~
11198    chmod a+x \$dldir/$dlname~
11199    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11200      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11201    fi'
11202  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11203    dlpath=$dir/\$dldll~
11204    $RM \$dlpath'
11205  ;;
11206
11207osf3* | osf4* | osf5*)
11208  version_type=osf
11209  need_lib_prefix=no
11210  need_version=no
11211  soname_spec='$libname$release$shared_ext$major'
11212  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213  shlibpath_var=LD_LIBRARY_PATH
11214  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11215  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11216  ;;
11217
11218rdos*)
11219  dynamic_linker=no
11220  ;;
11221
11222solaris*)
11223  version_type=linux # correct to gnu/linux during the next big refactor
11224  need_lib_prefix=no
11225  need_version=no
11226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227  soname_spec='$libname$release$shared_ext$major'
11228  shlibpath_var=LD_LIBRARY_PATH
11229  shlibpath_overrides_runpath=yes
11230  hardcode_into_libs=yes
11231  # ldd complains unless libraries are executable
11232  postinstall_cmds='chmod +x $lib'
11233  ;;
11234
11235sunos4*)
11236  version_type=sunos
11237  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11238  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11239  shlibpath_var=LD_LIBRARY_PATH
11240  shlibpath_overrides_runpath=yes
11241  if test yes = "$with_gnu_ld"; then
11242    need_lib_prefix=no
11243  fi
11244  need_version=yes
11245  ;;
11246
11247sysv4 | sysv4.3*)
11248  version_type=linux # correct to gnu/linux during the next big refactor
11249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11250  soname_spec='$libname$release$shared_ext$major'
11251  shlibpath_var=LD_LIBRARY_PATH
11252  case $host_vendor in
11253    sni)
11254      shlibpath_overrides_runpath=no
11255      need_lib_prefix=no
11256      runpath_var=LD_RUN_PATH
11257      ;;
11258    siemens)
11259      need_lib_prefix=no
11260      ;;
11261    motorola)
11262      need_lib_prefix=no
11263      need_version=no
11264      shlibpath_overrides_runpath=no
11265      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11266      ;;
11267  esac
11268  ;;
11269
11270sysv4*MP*)
11271  if test -d /usr/nec; then
11272    version_type=linux # correct to gnu/linux during the next big refactor
11273    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11274    soname_spec='$libname$shared_ext.$major'
11275    shlibpath_var=LD_LIBRARY_PATH
11276  fi
11277  ;;
11278
11279sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11280  version_type=sco
11281  need_lib_prefix=no
11282  need_version=no
11283  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11284  soname_spec='$libname$release$shared_ext$major'
11285  shlibpath_var=LD_LIBRARY_PATH
11286  shlibpath_overrides_runpath=yes
11287  hardcode_into_libs=yes
11288  if test yes = "$with_gnu_ld"; then
11289    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11290  else
11291    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11292    case $host_os in
11293      sco3.2v5*)
11294        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11295	;;
11296    esac
11297  fi
11298  sys_lib_dlsearch_path_spec='/usr/lib'
11299  ;;
11300
11301tpf*)
11302  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11303  version_type=linux # correct to gnu/linux during the next big refactor
11304  need_lib_prefix=no
11305  need_version=no
11306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307  shlibpath_var=LD_LIBRARY_PATH
11308  shlibpath_overrides_runpath=no
11309  hardcode_into_libs=yes
11310  ;;
11311
11312uts4*)
11313  version_type=linux # correct to gnu/linux during the next big refactor
11314  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315  soname_spec='$libname$release$shared_ext$major'
11316  shlibpath_var=LD_LIBRARY_PATH
11317  ;;
11318
11319*)
11320  dynamic_linker=no
11321  ;;
11322esac
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11324$as_echo "$dynamic_linker" >&6; }
11325test no = "$dynamic_linker" && can_build_shared=no
11326
11327variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11328if test yes = "$GCC"; then
11329  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11330fi
11331
11332if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11333  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11334fi
11335
11336if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11337  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11338fi
11339
11340# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11341configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11342
11343# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11344func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11345
11346# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11347configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11446$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11447hardcode_action=
11448if test -n "$hardcode_libdir_flag_spec" ||
11449   test -n "$runpath_var" ||
11450   test yes = "$hardcode_automatic"; then
11451
11452  # We can hardcode non-existent directories.
11453  if test no != "$hardcode_direct" &&
11454     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11455     # have to relink, otherwise we might link with an installed library
11456     # when we should be linking with a yet-to-be-installed one
11457     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11458     test no != "$hardcode_minus_L"; then
11459    # Linking always hardcodes the temporary library directory.
11460    hardcode_action=relink
11461  else
11462    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11463    hardcode_action=immediate
11464  fi
11465else
11466  # We cannot hardcode anything, or else we can only hardcode existing
11467  # directories.
11468  hardcode_action=unsupported
11469fi
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11471$as_echo "$hardcode_action" >&6; }
11472
11473if test relink = "$hardcode_action" ||
11474   test yes = "$inherit_rpath"; then
11475  # Fast installation is not supported
11476  enable_fast_install=no
11477elif test yes = "$shlibpath_overrides_runpath" ||
11478     test no = "$enable_shared"; then
11479  # Fast installation is not necessary
11480  enable_fast_install=needless
11481fi
11482
11483
11484
11485
11486
11487
11488  if test yes != "$enable_dlopen"; then
11489  enable_dlopen=unknown
11490  enable_dlopen_self=unknown
11491  enable_dlopen_self_static=unknown
11492else
11493  lt_cv_dlopen=no
11494  lt_cv_dlopen_libs=
11495
11496  case $host_os in
11497  beos*)
11498    lt_cv_dlopen=load_add_on
11499    lt_cv_dlopen_libs=
11500    lt_cv_dlopen_self=yes
11501    ;;
11502
11503  mingw* | pw32* | cegcc*)
11504    lt_cv_dlopen=LoadLibrary
11505    lt_cv_dlopen_libs=
11506    ;;
11507
11508  cygwin*)
11509    lt_cv_dlopen=dlopen
11510    lt_cv_dlopen_libs=
11511    ;;
11512
11513  darwin*)
11514    # if libdl is installed we need to link against it
11515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11516$as_echo_n "checking for dlopen in -ldl... " >&6; }
11517if ${ac_cv_lib_dl_dlopen+:} false; then :
11518  $as_echo_n "(cached) " >&6
11519else
11520  ac_check_lib_save_LIBS=$LIBS
11521LIBS="-ldl  $LIBS"
11522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523/* end confdefs.h.  */
11524
11525/* Override any GCC internal prototype to avoid an error.
11526   Use char because int might match the return type of a GCC
11527   builtin and then its argument prototype would still apply.  */
11528#ifdef __cplusplus
11529extern "C"
11530#endif
11531char dlopen ();
11532int
11533main ()
11534{
11535return dlopen ();
11536  ;
11537  return 0;
11538}
11539_ACEOF
11540if ac_fn_c_try_link "$LINENO"; then :
11541  ac_cv_lib_dl_dlopen=yes
11542else
11543  ac_cv_lib_dl_dlopen=no
11544fi
11545rm -f core conftest.err conftest.$ac_objext \
11546    conftest$ac_exeext conftest.$ac_ext
11547LIBS=$ac_check_lib_save_LIBS
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11550$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11551if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11552  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11553else
11554
11555    lt_cv_dlopen=dyld
11556    lt_cv_dlopen_libs=
11557    lt_cv_dlopen_self=yes
11558
11559fi
11560
11561    ;;
11562
11563  tpf*)
11564    # Don't try to run any link tests for TPF.  We know it's impossible
11565    # because TPF is a cross-compiler, and we know how we open DSOs.
11566    lt_cv_dlopen=dlopen
11567    lt_cv_dlopen_libs=
11568    lt_cv_dlopen_self=no
11569    ;;
11570
11571  *)
11572    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11573if test "x$ac_cv_func_shl_load" = xyes; then :
11574  lt_cv_dlopen=shl_load
11575else
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11577$as_echo_n "checking for shl_load in -ldld... " >&6; }
11578if ${ac_cv_lib_dld_shl_load+:} false; then :
11579  $as_echo_n "(cached) " >&6
11580else
11581  ac_check_lib_save_LIBS=$LIBS
11582LIBS="-ldld  $LIBS"
11583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h.  */
11585
11586/* Override any GCC internal prototype to avoid an error.
11587   Use char because int might match the return type of a GCC
11588   builtin and then its argument prototype would still apply.  */
11589#ifdef __cplusplus
11590extern "C"
11591#endif
11592char shl_load ();
11593int
11594main ()
11595{
11596return shl_load ();
11597  ;
11598  return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_link "$LINENO"; then :
11602  ac_cv_lib_dld_shl_load=yes
11603else
11604  ac_cv_lib_dld_shl_load=no
11605fi
11606rm -f core conftest.err conftest.$ac_objext \
11607    conftest$ac_exeext conftest.$ac_ext
11608LIBS=$ac_check_lib_save_LIBS
11609fi
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11611$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11612if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11613  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11614else
11615  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11616if test "x$ac_cv_func_dlopen" = xyes; then :
11617  lt_cv_dlopen=dlopen
11618else
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11620$as_echo_n "checking for dlopen in -ldl... " >&6; }
11621if ${ac_cv_lib_dl_dlopen+:} false; then :
11622  $as_echo_n "(cached) " >&6
11623else
11624  ac_check_lib_save_LIBS=$LIBS
11625LIBS="-ldl  $LIBS"
11626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h.  */
11628
11629/* Override any GCC internal prototype to avoid an error.
11630   Use char because int might match the return type of a GCC
11631   builtin and then its argument prototype would still apply.  */
11632#ifdef __cplusplus
11633extern "C"
11634#endif
11635char dlopen ();
11636int
11637main ()
11638{
11639return dlopen ();
11640  ;
11641  return 0;
11642}
11643_ACEOF
11644if ac_fn_c_try_link "$LINENO"; then :
11645  ac_cv_lib_dl_dlopen=yes
11646else
11647  ac_cv_lib_dl_dlopen=no
11648fi
11649rm -f core conftest.err conftest.$ac_objext \
11650    conftest$ac_exeext conftest.$ac_ext
11651LIBS=$ac_check_lib_save_LIBS
11652fi
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11654$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11655if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11656  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11657else
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11659$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11660if ${ac_cv_lib_svld_dlopen+:} false; then :
11661  $as_echo_n "(cached) " >&6
11662else
11663  ac_check_lib_save_LIBS=$LIBS
11664LIBS="-lsvld  $LIBS"
11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667
11668/* Override any GCC internal prototype to avoid an error.
11669   Use char because int might match the return type of a GCC
11670   builtin and then its argument prototype would still apply.  */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char dlopen ();
11675int
11676main ()
11677{
11678return dlopen ();
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683if ac_fn_c_try_link "$LINENO"; then :
11684  ac_cv_lib_svld_dlopen=yes
11685else
11686  ac_cv_lib_svld_dlopen=no
11687fi
11688rm -f core conftest.err conftest.$ac_objext \
11689    conftest$ac_exeext conftest.$ac_ext
11690LIBS=$ac_check_lib_save_LIBS
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11693$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11694if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11695  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11696else
11697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11698$as_echo_n "checking for dld_link in -ldld... " >&6; }
11699if ${ac_cv_lib_dld_dld_link+:} false; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  ac_check_lib_save_LIBS=$LIBS
11703LIBS="-ldld  $LIBS"
11704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706
11707/* Override any GCC internal prototype to avoid an error.
11708   Use char because int might match the return type of a GCC
11709   builtin and then its argument prototype would still apply.  */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char dld_link ();
11714int
11715main ()
11716{
11717return dld_link ();
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722if ac_fn_c_try_link "$LINENO"; then :
11723  ac_cv_lib_dld_dld_link=yes
11724else
11725  ac_cv_lib_dld_dld_link=no
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext conftest.$ac_ext
11729LIBS=$ac_check_lib_save_LIBS
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11732$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11733if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11734  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11735fi
11736
11737
11738fi
11739
11740
11741fi
11742
11743
11744fi
11745
11746
11747fi
11748
11749
11750fi
11751
11752    ;;
11753  esac
11754
11755  if test no = "$lt_cv_dlopen"; then
11756    enable_dlopen=no
11757  else
11758    enable_dlopen=yes
11759  fi
11760
11761  case $lt_cv_dlopen in
11762  dlopen)
11763    save_CPPFLAGS=$CPPFLAGS
11764    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11765
11766    save_LDFLAGS=$LDFLAGS
11767    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11768
11769    save_LIBS=$LIBS
11770    LIBS="$lt_cv_dlopen_libs $LIBS"
11771
11772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11773$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11774if ${lt_cv_dlopen_self+:} false; then :
11775  $as_echo_n "(cached) " >&6
11776else
11777  	  if test yes = "$cross_compiling"; then :
11778  lt_cv_dlopen_self=cross
11779else
11780  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11781  lt_status=$lt_dlunknown
11782  cat > conftest.$ac_ext <<_LT_EOF
11783#line $LINENO "configure"
11784#include "confdefs.h"
11785
11786#if HAVE_DLFCN_H
11787#include <dlfcn.h>
11788#endif
11789
11790#include <stdio.h>
11791
11792#ifdef RTLD_GLOBAL
11793#  define LT_DLGLOBAL		RTLD_GLOBAL
11794#else
11795#  ifdef DL_GLOBAL
11796#    define LT_DLGLOBAL		DL_GLOBAL
11797#  else
11798#    define LT_DLGLOBAL		0
11799#  endif
11800#endif
11801
11802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11803   find out it does not work in some platform. */
11804#ifndef LT_DLLAZY_OR_NOW
11805#  ifdef RTLD_LAZY
11806#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11807#  else
11808#    ifdef DL_LAZY
11809#      define LT_DLLAZY_OR_NOW		DL_LAZY
11810#    else
11811#      ifdef RTLD_NOW
11812#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11813#      else
11814#        ifdef DL_NOW
11815#          define LT_DLLAZY_OR_NOW	DL_NOW
11816#        else
11817#          define LT_DLLAZY_OR_NOW	0
11818#        endif
11819#      endif
11820#    endif
11821#  endif
11822#endif
11823
11824/* When -fvisibility=hidden is used, assume the code has been annotated
11825   correspondingly for the symbols needed.  */
11826#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11827int fnord () __attribute__((visibility("default")));
11828#endif
11829
11830int fnord () { return 42; }
11831int main ()
11832{
11833  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11834  int status = $lt_dlunknown;
11835
11836  if (self)
11837    {
11838      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11839      else
11840        {
11841	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11842          else puts (dlerror ());
11843	}
11844      /* dlclose (self); */
11845    }
11846  else
11847    puts (dlerror ());
11848
11849  return status;
11850}
11851_LT_EOF
11852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11853  (eval $ac_link) 2>&5
11854  ac_status=$?
11855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11856  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11857    (./conftest; exit; ) >&5 2>/dev/null
11858    lt_status=$?
11859    case x$lt_status in
11860      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11861      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11862      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11863    esac
11864  else :
11865    # compilation failed
11866    lt_cv_dlopen_self=no
11867  fi
11868fi
11869rm -fr conftest*
11870
11871
11872fi
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11874$as_echo "$lt_cv_dlopen_self" >&6; }
11875
11876    if test yes = "$lt_cv_dlopen_self"; then
11877      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11878      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11879$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11880if ${lt_cv_dlopen_self_static+:} false; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  	  if test yes = "$cross_compiling"; then :
11884  lt_cv_dlopen_self_static=cross
11885else
11886  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11887  lt_status=$lt_dlunknown
11888  cat > conftest.$ac_ext <<_LT_EOF
11889#line $LINENO "configure"
11890#include "confdefs.h"
11891
11892#if HAVE_DLFCN_H
11893#include <dlfcn.h>
11894#endif
11895
11896#include <stdio.h>
11897
11898#ifdef RTLD_GLOBAL
11899#  define LT_DLGLOBAL		RTLD_GLOBAL
11900#else
11901#  ifdef DL_GLOBAL
11902#    define LT_DLGLOBAL		DL_GLOBAL
11903#  else
11904#    define LT_DLGLOBAL		0
11905#  endif
11906#endif
11907
11908/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11909   find out it does not work in some platform. */
11910#ifndef LT_DLLAZY_OR_NOW
11911#  ifdef RTLD_LAZY
11912#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11913#  else
11914#    ifdef DL_LAZY
11915#      define LT_DLLAZY_OR_NOW		DL_LAZY
11916#    else
11917#      ifdef RTLD_NOW
11918#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11919#      else
11920#        ifdef DL_NOW
11921#          define LT_DLLAZY_OR_NOW	DL_NOW
11922#        else
11923#          define LT_DLLAZY_OR_NOW	0
11924#        endif
11925#      endif
11926#    endif
11927#  endif
11928#endif
11929
11930/* When -fvisibility=hidden is used, assume the code has been annotated
11931   correspondingly for the symbols needed.  */
11932#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11933int fnord () __attribute__((visibility("default")));
11934#endif
11935
11936int fnord () { return 42; }
11937int main ()
11938{
11939  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11940  int status = $lt_dlunknown;
11941
11942  if (self)
11943    {
11944      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11945      else
11946        {
11947	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11948          else puts (dlerror ());
11949	}
11950      /* dlclose (self); */
11951    }
11952  else
11953    puts (dlerror ());
11954
11955  return status;
11956}
11957_LT_EOF
11958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11959  (eval $ac_link) 2>&5
11960  ac_status=$?
11961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11963    (./conftest; exit; ) >&5 2>/dev/null
11964    lt_status=$?
11965    case x$lt_status in
11966      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11967      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11968      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11969    esac
11970  else :
11971    # compilation failed
11972    lt_cv_dlopen_self_static=no
11973  fi
11974fi
11975rm -fr conftest*
11976
11977
11978fi
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11980$as_echo "$lt_cv_dlopen_self_static" >&6; }
11981    fi
11982
11983    CPPFLAGS=$save_CPPFLAGS
11984    LDFLAGS=$save_LDFLAGS
11985    LIBS=$save_LIBS
11986    ;;
11987  esac
11988
11989  case $lt_cv_dlopen_self in
11990  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11991  *) enable_dlopen_self=unknown ;;
11992  esac
11993
11994  case $lt_cv_dlopen_self_static in
11995  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11996  *) enable_dlopen_self_static=unknown ;;
11997  esac
11998fi
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016striplib=
12017old_striplib=
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12019$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12020if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12021  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12022  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024$as_echo "yes" >&6; }
12025else
12026# FIXME - insert some real tests, host_os isn't really good enough
12027  case $host_os in
12028  darwin*)
12029    if test -n "$STRIP"; then
12030      striplib="$STRIP -x"
12031      old_striplib="$STRIP -S"
12032      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12033$as_echo "yes" >&6; }
12034    else
12035      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
12037    fi
12038    ;;
12039  *)
12040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
12042    ;;
12043  esac
12044fi
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057  # Report what library types will actually be built
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12059$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12061$as_echo "$can_build_shared" >&6; }
12062
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12064$as_echo_n "checking whether to build shared libraries... " >&6; }
12065  test no = "$can_build_shared" && enable_shared=no
12066
12067  # On AIX, shared libraries and static libraries use the same namespace, and
12068  # are all built from PIC.
12069  case $host_os in
12070  aix3*)
12071    test yes = "$enable_shared" && enable_static=no
12072    if test -n "$RANLIB"; then
12073      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12074      postinstall_cmds='$RANLIB $lib'
12075    fi
12076    ;;
12077
12078  aix[4-9]*)
12079    if test ia64 != "$host_cpu"; then
12080      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12081      yes,aix,yes) ;;			# shared object as lib.so file only
12082      yes,svr4,*) ;;			# shared object as lib.so archive member only
12083      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12084      esac
12085    fi
12086    ;;
12087  esac
12088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12089$as_echo "$enable_shared" >&6; }
12090
12091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12092$as_echo_n "checking whether to build static libraries... " >&6; }
12093  # Make sure either enable_shared or enable_static is yes.
12094  test yes = "$enable_shared" || enable_static=yes
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12096$as_echo "$enable_static" >&6; }
12097
12098
12099
12100
12101fi
12102ac_ext=c
12103ac_cpp='$CPP $CPPFLAGS'
12104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12106ac_compiler_gnu=$ac_cv_c_compiler_gnu
12107
12108CC=$lt_save_CC
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124        ac_config_commands="$ac_config_commands libtool"
12125
12126
12127
12128
12129# Only expand once:
12130
12131
12132
12133
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12135$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12136    # Check whether --enable-maintainer-mode was given.
12137if test "${enable_maintainer_mode+set}" = set; then :
12138  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12139else
12140  USE_MAINTAINER_MODE=no
12141fi
12142
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12144$as_echo "$USE_MAINTAINER_MODE" >&6; }
12145   if test $USE_MAINTAINER_MODE = yes; then
12146  MAINTAINER_MODE_TRUE=
12147  MAINTAINER_MODE_FALSE='#'
12148else
12149  MAINTAINER_MODE_TRUE='#'
12150  MAINTAINER_MODE_FALSE=
12151fi
12152
12153  MAINT=$MAINTAINER_MODE_TRUE
12154
12155
12156ac_config_headers="$ac_config_headers src/iperf_config.h"
12157
12158
12159
12160
12161# Checks for tools: c compiler, ranlib (used for creating static libraries),
12162# symlinks and libtool
12163ac_ext=c
12164ac_cpp='$CPP $CPPFLAGS'
12165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12167ac_compiler_gnu=$ac_cv_c_compiler_gnu
12168if test -n "$ac_tool_prefix"; then
12169  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12170set dummy ${ac_tool_prefix}gcc; ac_word=$2
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172$as_echo_n "checking for $ac_word... " >&6; }
12173if ${ac_cv_prog_CC+:} false; then :
12174  $as_echo_n "(cached) " >&6
12175else
12176  if test -n "$CC"; then
12177  ac_cv_prog_CC="$CC" # Let the user override the test.
12178else
12179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $PATH
12181do
12182  IFS=$as_save_IFS
12183  test -z "$as_dir" && as_dir=.
12184    for ac_exec_ext in '' $ac_executable_extensions; do
12185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188    break 2
12189  fi
12190done
12191  done
12192IFS=$as_save_IFS
12193
12194fi
12195fi
12196CC=$ac_cv_prog_CC
12197if test -n "$CC"; then
12198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12199$as_echo "$CC" >&6; }
12200else
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202$as_echo "no" >&6; }
12203fi
12204
12205
12206fi
12207if test -z "$ac_cv_prog_CC"; then
12208  ac_ct_CC=$CC
12209  # Extract the first word of "gcc", so it can be a program name with args.
12210set dummy gcc; ac_word=$2
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
12213if ${ac_cv_prog_ac_ct_CC+:} false; then :
12214  $as_echo_n "(cached) " >&6
12215else
12216  if test -n "$ac_ct_CC"; then
12217  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12218else
12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222  IFS=$as_save_IFS
12223  test -z "$as_dir" && as_dir=.
12224    for ac_exec_ext in '' $ac_executable_extensions; do
12225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226    ac_cv_prog_ac_ct_CC="gcc"
12227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228    break 2
12229  fi
12230done
12231  done
12232IFS=$as_save_IFS
12233
12234fi
12235fi
12236ac_ct_CC=$ac_cv_prog_ac_ct_CC
12237if test -n "$ac_ct_CC"; then
12238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12239$as_echo "$ac_ct_CC" >&6; }
12240else
12241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242$as_echo "no" >&6; }
12243fi
12244
12245  if test "x$ac_ct_CC" = x; then
12246    CC=""
12247  else
12248    case $cross_compiling:$ac_tool_warned in
12249yes:)
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12252ac_tool_warned=yes ;;
12253esac
12254    CC=$ac_ct_CC
12255  fi
12256else
12257  CC="$ac_cv_prog_CC"
12258fi
12259
12260if test -z "$CC"; then
12261          if test -n "$ac_tool_prefix"; then
12262    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12263set dummy ${ac_tool_prefix}cc; ac_word=$2
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265$as_echo_n "checking for $ac_word... " >&6; }
12266if ${ac_cv_prog_CC+:} false; then :
12267  $as_echo_n "(cached) " >&6
12268else
12269  if test -n "$CC"; then
12270  ac_cv_prog_CC="$CC" # Let the user override the test.
12271else
12272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $PATH
12274do
12275  IFS=$as_save_IFS
12276  test -z "$as_dir" && as_dir=.
12277    for ac_exec_ext in '' $ac_executable_extensions; do
12278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279    ac_cv_prog_CC="${ac_tool_prefix}cc"
12280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281    break 2
12282  fi
12283done
12284  done
12285IFS=$as_save_IFS
12286
12287fi
12288fi
12289CC=$ac_cv_prog_CC
12290if test -n "$CC"; then
12291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12292$as_echo "$CC" >&6; }
12293else
12294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298
12299  fi
12300fi
12301if test -z "$CC"; then
12302  # Extract the first word of "cc", so it can be a program name with args.
12303set dummy cc; ac_word=$2
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305$as_echo_n "checking for $ac_word... " >&6; }
12306if ${ac_cv_prog_CC+:} false; then :
12307  $as_echo_n "(cached) " >&6
12308else
12309  if test -n "$CC"; then
12310  ac_cv_prog_CC="$CC" # Let the user override the test.
12311else
12312  ac_prog_rejected=no
12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314for as_dir in $PATH
12315do
12316  IFS=$as_save_IFS
12317  test -z "$as_dir" && as_dir=.
12318    for ac_exec_ext in '' $ac_executable_extensions; do
12319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12320    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12321       ac_prog_rejected=yes
12322       continue
12323     fi
12324    ac_cv_prog_CC="cc"
12325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326    break 2
12327  fi
12328done
12329  done
12330IFS=$as_save_IFS
12331
12332if test $ac_prog_rejected = yes; then
12333  # We found a bogon in the path, so make sure we never use it.
12334  set dummy $ac_cv_prog_CC
12335  shift
12336  if test $# != 0; then
12337    # We chose a different compiler from the bogus one.
12338    # However, it has the same basename, so the bogon will be chosen
12339    # first if we set CC to just the basename; use the full file name.
12340    shift
12341    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12342  fi
12343fi
12344fi
12345fi
12346CC=$ac_cv_prog_CC
12347if test -n "$CC"; then
12348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12349$as_echo "$CC" >&6; }
12350else
12351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
12353fi
12354
12355
12356fi
12357if test -z "$CC"; then
12358  if test -n "$ac_tool_prefix"; then
12359  for ac_prog in cl.exe
12360  do
12361    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
12365if ${ac_cv_prog_CC+:} false; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368  if test -n "$CC"; then
12369  ac_cv_prog_CC="$CC" # Let the user override the test.
12370else
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374  IFS=$as_save_IFS
12375  test -z "$as_dir" && as_dir=.
12376    for ac_exec_ext in '' $ac_executable_extensions; do
12377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12378    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380    break 2
12381  fi
12382done
12383  done
12384IFS=$as_save_IFS
12385
12386fi
12387fi
12388CC=$ac_cv_prog_CC
12389if test -n "$CC"; then
12390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12391$as_echo "$CC" >&6; }
12392else
12393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395fi
12396
12397
12398    test -n "$CC" && break
12399  done
12400fi
12401if test -z "$CC"; then
12402  ac_ct_CC=$CC
12403  for ac_prog in cl.exe
12404do
12405  # Extract the first word of "$ac_prog", so it can be a program name with args.
12406set dummy $ac_prog; ac_word=$2
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408$as_echo_n "checking for $ac_word... " >&6; }
12409if ${ac_cv_prog_ac_ct_CC+:} false; then :
12410  $as_echo_n "(cached) " >&6
12411else
12412  if test -n "$ac_ct_CC"; then
12413  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12414else
12415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416for as_dir in $PATH
12417do
12418  IFS=$as_save_IFS
12419  test -z "$as_dir" && as_dir=.
12420    for ac_exec_ext in '' $ac_executable_extensions; do
12421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12422    ac_cv_prog_ac_ct_CC="$ac_prog"
12423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424    break 2
12425  fi
12426done
12427  done
12428IFS=$as_save_IFS
12429
12430fi
12431fi
12432ac_ct_CC=$ac_cv_prog_ac_ct_CC
12433if test -n "$ac_ct_CC"; then
12434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12435$as_echo "$ac_ct_CC" >&6; }
12436else
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
12439fi
12440
12441
12442  test -n "$ac_ct_CC" && break
12443done
12444
12445  if test "x$ac_ct_CC" = x; then
12446    CC=""
12447  else
12448    case $cross_compiling:$ac_tool_warned in
12449yes:)
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12452ac_tool_warned=yes ;;
12453esac
12454    CC=$ac_ct_CC
12455  fi
12456fi
12457
12458fi
12459
12460
12461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12463as_fn_error $? "no acceptable C compiler found in \$PATH
12464See \`config.log' for more details" "$LINENO" 5; }
12465
12466# Provide some information about the compiler.
12467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12468set X $ac_compile
12469ac_compiler=$2
12470for ac_option in --version -v -V -qversion; do
12471  { { ac_try="$ac_compiler $ac_option >&5"
12472case "(($ac_try" in
12473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474  *) ac_try_echo=$ac_try;;
12475esac
12476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12477$as_echo "$ac_try_echo"; } >&5
12478  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12479  ac_status=$?
12480  if test -s conftest.err; then
12481    sed '10a\
12482... rest of stderr output deleted ...
12483         10q' conftest.err >conftest.er1
12484    cat conftest.er1 >&5
12485  fi
12486  rm -f conftest.er1 conftest.err
12487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488  test $ac_status = 0; }
12489done
12490
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12493if ${ac_cv_c_compiler_gnu+:} false; then :
12494  $as_echo_n "(cached) " >&6
12495else
12496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497/* end confdefs.h.  */
12498
12499int
12500main ()
12501{
12502#ifndef __GNUC__
12503       choke me
12504#endif
12505
12506  ;
12507  return 0;
12508}
12509_ACEOF
12510if ac_fn_c_try_compile "$LINENO"; then :
12511  ac_compiler_gnu=yes
12512else
12513  ac_compiler_gnu=no
12514fi
12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516ac_cv_c_compiler_gnu=$ac_compiler_gnu
12517
12518fi
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12520$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12521if test $ac_compiler_gnu = yes; then
12522  GCC=yes
12523else
12524  GCC=
12525fi
12526ac_test_CFLAGS=${CFLAGS+set}
12527ac_save_CFLAGS=$CFLAGS
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12529$as_echo_n "checking whether $CC accepts -g... " >&6; }
12530if ${ac_cv_prog_cc_g+:} false; then :
12531  $as_echo_n "(cached) " >&6
12532else
12533  ac_save_c_werror_flag=$ac_c_werror_flag
12534   ac_c_werror_flag=yes
12535   ac_cv_prog_cc_g=no
12536   CFLAGS="-g"
12537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h.  */
12539
12540int
12541main ()
12542{
12543
12544  ;
12545  return 0;
12546}
12547_ACEOF
12548if ac_fn_c_try_compile "$LINENO"; then :
12549  ac_cv_prog_cc_g=yes
12550else
12551  CFLAGS=""
12552      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553/* end confdefs.h.  */
12554
12555int
12556main ()
12557{
12558
12559  ;
12560  return 0;
12561}
12562_ACEOF
12563if ac_fn_c_try_compile "$LINENO"; then :
12564
12565else
12566  ac_c_werror_flag=$ac_save_c_werror_flag
12567	 CFLAGS="-g"
12568	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570
12571int
12572main ()
12573{
12574
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_c_try_compile "$LINENO"; then :
12580  ac_cv_prog_cc_g=yes
12581fi
12582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583fi
12584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585fi
12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587   ac_c_werror_flag=$ac_save_c_werror_flag
12588fi
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12590$as_echo "$ac_cv_prog_cc_g" >&6; }
12591if test "$ac_test_CFLAGS" = set; then
12592  CFLAGS=$ac_save_CFLAGS
12593elif test $ac_cv_prog_cc_g = yes; then
12594  if test "$GCC" = yes; then
12595    CFLAGS="-g -O2"
12596  else
12597    CFLAGS="-g"
12598  fi
12599else
12600  if test "$GCC" = yes; then
12601    CFLAGS="-O2"
12602  else
12603    CFLAGS=
12604  fi
12605fi
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12607$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12608if ${ac_cv_prog_cc_c89+:} false; then :
12609  $as_echo_n "(cached) " >&6
12610else
12611  ac_cv_prog_cc_c89=no
12612ac_save_CC=$CC
12613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h.  */
12615#include <stdarg.h>
12616#include <stdio.h>
12617struct stat;
12618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12619struct buf { int x; };
12620FILE * (*rcsopen) (struct buf *, struct stat *, int);
12621static char *e (p, i)
12622     char **p;
12623     int i;
12624{
12625  return p[i];
12626}
12627static char *f (char * (*g) (char **, int), char **p, ...)
12628{
12629  char *s;
12630  va_list v;
12631  va_start (v,p);
12632  s = g (p, va_arg (v,int));
12633  va_end (v);
12634  return s;
12635}
12636
12637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12638   function prototypes and stuff, but not '\xHH' hex character constants.
12639   These don't provoke an error unfortunately, instead are silently treated
12640   as 'x'.  The following induces an error, until -std is added to get
12641   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12642   array size at least.  It's necessary to write '\x00'==0 to get something
12643   that's true only with -std.  */
12644int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12645
12646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12647   inside strings and character constants.  */
12648#define FOO(x) 'x'
12649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12650
12651int test (int i, double x);
12652struct s1 {int (*f) (int a);};
12653struct s2 {int (*f) (double a);};
12654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12655int argc;
12656char **argv;
12657int
12658main ()
12659{
12660return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12661  ;
12662  return 0;
12663}
12664_ACEOF
12665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12666	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12667do
12668  CC="$ac_save_CC $ac_arg"
12669  if ac_fn_c_try_compile "$LINENO"; then :
12670  ac_cv_prog_cc_c89=$ac_arg
12671fi
12672rm -f core conftest.err conftest.$ac_objext
12673  test "x$ac_cv_prog_cc_c89" != "xno" && break
12674done
12675rm -f conftest.$ac_ext
12676CC=$ac_save_CC
12677
12678fi
12679# AC_CACHE_VAL
12680case "x$ac_cv_prog_cc_c89" in
12681  x)
12682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12683$as_echo "none needed" >&6; } ;;
12684  xno)
12685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12686$as_echo "unsupported" >&6; } ;;
12687  *)
12688    CC="$CC $ac_cv_prog_cc_c89"
12689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12691esac
12692if test "x$ac_cv_prog_cc_c89" != xno; then :
12693
12694fi
12695
12696ac_ext=c
12697ac_cpp='$CPP $CPPFLAGS'
12698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702ac_ext=c
12703ac_cpp='$CPP $CPPFLAGS'
12704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12706ac_compiler_gnu=$ac_cv_c_compiler_gnu
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12708$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12709if ${am_cv_prog_cc_c_o+:} false; then :
12710  $as_echo_n "(cached) " >&6
12711else
12712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713/* end confdefs.h.  */
12714
12715int
12716main ()
12717{
12718
12719  ;
12720  return 0;
12721}
12722_ACEOF
12723  # Make sure it works both with $CC and with simple cc.
12724  # Following AC_PROG_CC_C_O, we do the test twice because some
12725  # compilers refuse to overwrite an existing .o file with -o,
12726  # though they will create one.
12727  am_cv_prog_cc_c_o=yes
12728  for am_i in 1 2; do
12729    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12730   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } \
12734         && test -f conftest2.$ac_objext; then
12735      : OK
12736    else
12737      am_cv_prog_cc_c_o=no
12738      break
12739    fi
12740  done
12741  rm -f core conftest*
12742  unset am_i
12743fi
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12745$as_echo "$am_cv_prog_cc_c_o" >&6; }
12746if test "$am_cv_prog_cc_c_o" != yes; then
12747   # Losing compiler, so override with the script.
12748   # FIXME: It is wrong to rewrite CC.
12749   # But if we don't then we get into trouble of one sort or another.
12750   # A longer-term fix would be to have automake use am__CC in this case,
12751   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12752   CC="$am_aux_dir/compile $CC"
12753fi
12754ac_ext=c
12755ac_cpp='$CPP $CPPFLAGS'
12756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758ac_compiler_gnu=$ac_cv_c_compiler_gnu
12759
12760
12761depcc="$CC"   am_compiler_list=
12762
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12764$as_echo_n "checking dependency style of $depcc... " >&6; }
12765if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12766  $as_echo_n "(cached) " >&6
12767else
12768  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12769  # We make a subdir and do the tests there.  Otherwise we can end up
12770  # making bogus files that we don't know about and never remove.  For
12771  # instance it was reported that on HP-UX the gcc test will end up
12772  # making a dummy file named 'D' -- because '-MD' means "put the output
12773  # in D".
12774  rm -rf conftest.dir
12775  mkdir conftest.dir
12776  # Copy depcomp to subdir because otherwise we won't find it if we're
12777  # using a relative directory.
12778  cp "$am_depcomp" conftest.dir
12779  cd conftest.dir
12780  # We will build objects and dependencies in a subdirectory because
12781  # it helps to detect inapplicable dependency modes.  For instance
12782  # both Tru64's cc and ICC support -MD to output dependencies as a
12783  # side effect of compilation, but ICC will put the dependencies in
12784  # the current directory while Tru64 will put them in the object
12785  # directory.
12786  mkdir sub
12787
12788  am_cv_CC_dependencies_compiler_type=none
12789  if test "$am_compiler_list" = ""; then
12790     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12791  fi
12792  am__universal=false
12793  case " $depcc " in #(
12794     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12795     esac
12796
12797  for depmode in $am_compiler_list; do
12798    # Setup a source with many dependencies, because some compilers
12799    # like to wrap large dependency lists on column 80 (with \), and
12800    # we should not choose a depcomp mode which is confused by this.
12801    #
12802    # We need to recreate these files for each test, as the compiler may
12803    # overwrite some of them when testing with obscure command lines.
12804    # This happens at least with the AIX C compiler.
12805    : > sub/conftest.c
12806    for i in 1 2 3 4 5 6; do
12807      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12808      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12809      # Solaris 10 /bin/sh.
12810      echo '/* dummy */' > sub/conftst$i.h
12811    done
12812    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12813
12814    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12815    # mode.  It turns out that the SunPro C++ compiler does not properly
12816    # handle '-M -o', and we need to detect this.  Also, some Intel
12817    # versions had trouble with output in subdirs.
12818    am__obj=sub/conftest.${OBJEXT-o}
12819    am__minus_obj="-o $am__obj"
12820    case $depmode in
12821    gcc)
12822      # This depmode causes a compiler race in universal mode.
12823      test "$am__universal" = false || continue
12824      ;;
12825    nosideeffect)
12826      # After this tag, mechanisms are not by side-effect, so they'll
12827      # only be used when explicitly requested.
12828      if test "x$enable_dependency_tracking" = xyes; then
12829	continue
12830      else
12831	break
12832      fi
12833      ;;
12834    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12835      # This compiler won't grok '-c -o', but also, the minuso test has
12836      # not run yet.  These depmodes are late enough in the game, and
12837      # so weak that their functioning should not be impacted.
12838      am__obj=conftest.${OBJEXT-o}
12839      am__minus_obj=
12840      ;;
12841    none) break ;;
12842    esac
12843    if depmode=$depmode \
12844       source=sub/conftest.c object=$am__obj \
12845       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12846       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12847         >/dev/null 2>conftest.err &&
12848       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12849       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12850       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12851       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12852      # icc doesn't choke on unknown options, it will just issue warnings
12853      # or remarks (even with -Werror).  So we grep stderr for any message
12854      # that says an option was ignored or not supported.
12855      # When given -MP, icc 7.0 and 7.1 complain thusly:
12856      #   icc: Command line warning: ignoring option '-M'; no argument required
12857      # The diagnosis changed in icc 8.0:
12858      #   icc: Command line remark: option '-MP' not supported
12859      if (grep 'ignoring option' conftest.err ||
12860          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12861        am_cv_CC_dependencies_compiler_type=$depmode
12862        break
12863      fi
12864    fi
12865  done
12866
12867  cd ..
12868  rm -rf conftest.dir
12869else
12870  am_cv_CC_dependencies_compiler_type=none
12871fi
12872
12873fi
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12875$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12876CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12877
12878 if
12879  test "x$enable_dependency_tracking" != xno \
12880  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12881  am__fastdepCC_TRUE=
12882  am__fastdepCC_FALSE='#'
12883else
12884  am__fastdepCC_TRUE='#'
12885  am__fastdepCC_FALSE=
12886fi
12887
12888
12889if test -n "$ac_tool_prefix"; then
12890  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12891set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893$as_echo_n "checking for $ac_word... " >&6; }
12894if ${ac_cv_prog_RANLIB+:} false; then :
12895  $as_echo_n "(cached) " >&6
12896else
12897  if test -n "$RANLIB"; then
12898  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12899else
12900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903  IFS=$as_save_IFS
12904  test -z "$as_dir" && as_dir=.
12905    for ac_exec_ext in '' $ac_executable_extensions; do
12906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909    break 2
12910  fi
12911done
12912  done
12913IFS=$as_save_IFS
12914
12915fi
12916fi
12917RANLIB=$ac_cv_prog_RANLIB
12918if test -n "$RANLIB"; then
12919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12920$as_echo "$RANLIB" >&6; }
12921else
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923$as_echo "no" >&6; }
12924fi
12925
12926
12927fi
12928if test -z "$ac_cv_prog_RANLIB"; then
12929  ac_ct_RANLIB=$RANLIB
12930  # Extract the first word of "ranlib", so it can be a program name with args.
12931set dummy ranlib; ac_word=$2
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12935  $as_echo_n "(cached) " >&6
12936else
12937  if test -n "$ac_ct_RANLIB"; then
12938  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12939else
12940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $PATH
12942do
12943  IFS=$as_save_IFS
12944  test -z "$as_dir" && as_dir=.
12945    for ac_exec_ext in '' $ac_executable_extensions; do
12946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947    ac_cv_prog_ac_ct_RANLIB="ranlib"
12948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949    break 2
12950  fi
12951done
12952  done
12953IFS=$as_save_IFS
12954
12955fi
12956fi
12957ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12958if test -n "$ac_ct_RANLIB"; then
12959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12960$as_echo "$ac_ct_RANLIB" >&6; }
12961else
12962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963$as_echo "no" >&6; }
12964fi
12965
12966  if test "x$ac_ct_RANLIB" = x; then
12967    RANLIB=":"
12968  else
12969    case $cross_compiling:$ac_tool_warned in
12970yes:)
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12973ac_tool_warned=yes ;;
12974esac
12975    RANLIB=$ac_ct_RANLIB
12976  fi
12977else
12978  RANLIB="$ac_cv_prog_RANLIB"
12979fi
12980
12981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12982$as_echo_n "checking whether ln -s works... " >&6; }
12983LN_S=$as_ln_s
12984if test "$LN_S" = "ln -s"; then
12985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12986$as_echo "yes" >&6; }
12987else
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12989$as_echo "no, using $LN_S" >&6; }
12990fi
12991
12992
12993
12994# Add -Wall if we are using GCC.
12995if test "x$GCC" = "xyes"; then
12996  CFLAGS="$CFLAGS -Wall"
12997fi
12998
12999# Check if enable profiling
13000# Check whether --enable-profiling was given.
13001if test "${enable_profiling+set}" = set; then :
13002  enableval=$enable_profiling;
13003fi
13004
13005 if test x$enable_profiling = xyes; then
13006  ENABLE_PROFILING_TRUE=
13007  ENABLE_PROFILING_FALSE='#'
13008else
13009  ENABLE_PROFILING_TRUE='#'
13010  ENABLE_PROFILING_FALSE=
13011fi
13012
13013
13014# Checks for header files.
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13016$as_echo_n "checking for ANSI C header files... " >&6; }
13017if ${ac_cv_header_stdc+:} false; then :
13018  $as_echo_n "(cached) " >&6
13019else
13020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h.  */
13022#include <stdlib.h>
13023#include <stdarg.h>
13024#include <string.h>
13025#include <float.h>
13026
13027int
13028main ()
13029{
13030
13031  ;
13032  return 0;
13033}
13034_ACEOF
13035if ac_fn_c_try_compile "$LINENO"; then :
13036  ac_cv_header_stdc=yes
13037else
13038  ac_cv_header_stdc=no
13039fi
13040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041
13042if test $ac_cv_header_stdc = yes; then
13043  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h.  */
13046#include <string.h>
13047
13048_ACEOF
13049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13050  $EGREP "memchr" >/dev/null 2>&1; then :
13051
13052else
13053  ac_cv_header_stdc=no
13054fi
13055rm -f conftest*
13056
13057fi
13058
13059if test $ac_cv_header_stdc = yes; then
13060  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062/* end confdefs.h.  */
13063#include <stdlib.h>
13064
13065_ACEOF
13066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13067  $EGREP "free" >/dev/null 2>&1; then :
13068
13069else
13070  ac_cv_header_stdc=no
13071fi
13072rm -f conftest*
13073
13074fi
13075
13076if test $ac_cv_header_stdc = yes; then
13077  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13078  if test "$cross_compiling" = yes; then :
13079  :
13080else
13081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083#include <ctype.h>
13084#include <stdlib.h>
13085#if ((' ' & 0x0FF) == 0x020)
13086# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13087# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13088#else
13089# define ISLOWER(c) \
13090		   (('a' <= (c) && (c) <= 'i') \
13091		     || ('j' <= (c) && (c) <= 'r') \
13092		     || ('s' <= (c) && (c) <= 'z'))
13093# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13094#endif
13095
13096#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13097int
13098main ()
13099{
13100  int i;
13101  for (i = 0; i < 256; i++)
13102    if (XOR (islower (i), ISLOWER (i))
13103	|| toupper (i) != TOUPPER (i))
13104      return 2;
13105  return 0;
13106}
13107_ACEOF
13108if ac_fn_c_try_run "$LINENO"; then :
13109
13110else
13111  ac_cv_header_stdc=no
13112fi
13113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13114  conftest.$ac_objext conftest.beam conftest.$ac_ext
13115fi
13116
13117fi
13118fi
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13120$as_echo "$ac_cv_header_stdc" >&6; }
13121if test $ac_cv_header_stdc = yes; then
13122
13123$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13124
13125fi
13126
13127
13128# Check for systems which need -lsocket and -lnsl
13129#AX_LIB_SOCKET_NSL
13130
13131# Check for the math library (needed by cjson on some platforms)
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13133$as_echo_n "checking for library containing floor... " >&6; }
13134if ${ac_cv_search_floor+:} false; then :
13135  $as_echo_n "(cached) " >&6
13136else
13137  ac_func_search_save_LIBS=$LIBS
13138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139/* end confdefs.h.  */
13140
13141/* Override any GCC internal prototype to avoid an error.
13142   Use char because int might match the return type of a GCC
13143   builtin and then its argument prototype would still apply.  */
13144#ifdef __cplusplus
13145extern "C"
13146#endif
13147char floor ();
13148int
13149main ()
13150{
13151return floor ();
13152  ;
13153  return 0;
13154}
13155_ACEOF
13156for ac_lib in '' m; do
13157  if test -z "$ac_lib"; then
13158    ac_res="none required"
13159  else
13160    ac_res=-l$ac_lib
13161    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13162  fi
13163  if ac_fn_c_try_link "$LINENO"; then :
13164  ac_cv_search_floor=$ac_res
13165fi
13166rm -f core conftest.err conftest.$ac_objext \
13167    conftest$ac_exeext
13168  if ${ac_cv_search_floor+:} false; then :
13169  break
13170fi
13171done
13172if ${ac_cv_search_floor+:} false; then :
13173
13174else
13175  ac_cv_search_floor=no
13176fi
13177rm conftest.$ac_ext
13178LIBS=$ac_func_search_save_LIBS
13179fi
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13181$as_echo "$ac_cv_search_floor" >&6; }
13182ac_res=$ac_cv_search_floor
13183if test "$ac_res" != no; then :
13184  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13185
13186else
13187
13188echo "floor()"
13189exit 1
13190
13191fi
13192
13193
13194# On illumos we need -lsocket
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13196$as_echo_n "checking for library containing socket... " >&6; }
13197if ${ac_cv_search_socket+:} false; then :
13198  $as_echo_n "(cached) " >&6
13199else
13200  ac_func_search_save_LIBS=$LIBS
13201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h.  */
13203
13204/* Override any GCC internal prototype to avoid an error.
13205   Use char because int might match the return type of a GCC
13206   builtin and then its argument prototype would still apply.  */
13207#ifdef __cplusplus
13208extern "C"
13209#endif
13210char socket ();
13211int
13212main ()
13213{
13214return socket ();
13215  ;
13216  return 0;
13217}
13218_ACEOF
13219for ac_lib in '' socket; do
13220  if test -z "$ac_lib"; then
13221    ac_res="none required"
13222  else
13223    ac_res=-l$ac_lib
13224    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13225  fi
13226  if ac_fn_c_try_link "$LINENO"; then :
13227  ac_cv_search_socket=$ac_res
13228fi
13229rm -f core conftest.err conftest.$ac_objext \
13230    conftest$ac_exeext
13231  if ${ac_cv_search_socket+:} false; then :
13232  break
13233fi
13234done
13235if ${ac_cv_search_socket+:} false; then :
13236
13237else
13238  ac_cv_search_socket=no
13239fi
13240rm conftest.$ac_ext
13241LIBS=$ac_func_search_save_LIBS
13242fi
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13244$as_echo "$ac_cv_search_socket" >&6; }
13245ac_res=$ac_cv_search_socket
13246if test "$ac_res" != no; then :
13247  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13248
13249else
13250
13251echo "socket()"
13252exit 1
13253
13254fi
13255
13256
13257# On illumos inet_ntop in in -lnsl
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13259$as_echo_n "checking for library containing inet_ntop... " >&6; }
13260if ${ac_cv_search_inet_ntop+:} false; then :
13261  $as_echo_n "(cached) " >&6
13262else
13263  ac_func_search_save_LIBS=$LIBS
13264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265/* end confdefs.h.  */
13266
13267/* Override any GCC internal prototype to avoid an error.
13268   Use char because int might match the return type of a GCC
13269   builtin and then its argument prototype would still apply.  */
13270#ifdef __cplusplus
13271extern "C"
13272#endif
13273char inet_ntop ();
13274int
13275main ()
13276{
13277return inet_ntop ();
13278  ;
13279  return 0;
13280}
13281_ACEOF
13282for ac_lib in '' nsl; do
13283  if test -z "$ac_lib"; then
13284    ac_res="none required"
13285  else
13286    ac_res=-l$ac_lib
13287    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13288  fi
13289  if ac_fn_c_try_link "$LINENO"; then :
13290  ac_cv_search_inet_ntop=$ac_res
13291fi
13292rm -f core conftest.err conftest.$ac_objext \
13293    conftest$ac_exeext
13294  if ${ac_cv_search_inet_ntop+:} false; then :
13295  break
13296fi
13297done
13298if ${ac_cv_search_inet_ntop+:} false; then :
13299
13300else
13301  ac_cv_search_inet_ntop=no
13302fi
13303rm conftest.$ac_ext
13304LIBS=$ac_func_search_save_LIBS
13305fi
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13307$as_echo "$ac_cv_search_inet_ntop" >&6; }
13308ac_res=$ac_cv_search_inet_ntop
13309if test "$ac_res" != no; then :
13310  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13311
13312else
13313
13314echo "inet_ntop()"
13315exit 1
13316
13317fi
13318
13319
13320# Checks for typedefs, structures, and compiler characteristics.
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13322$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13323if ${ac_cv_c_const+:} false; then :
13324  $as_echo_n "(cached) " >&6
13325else
13326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327/* end confdefs.h.  */
13328
13329int
13330main ()
13331{
13332
13333#ifndef __cplusplus
13334  /* Ultrix mips cc rejects this sort of thing.  */
13335  typedef int charset[2];
13336  const charset cs = { 0, 0 };
13337  /* SunOS 4.1.1 cc rejects this.  */
13338  char const *const *pcpcc;
13339  char **ppc;
13340  /* NEC SVR4.0.2 mips cc rejects this.  */
13341  struct point {int x, y;};
13342  static struct point const zero = {0,0};
13343  /* AIX XL C 1.02.0.0 rejects this.
13344     It does not let you subtract one const X* pointer from another in
13345     an arm of an if-expression whose if-part is not a constant
13346     expression */
13347  const char *g = "string";
13348  pcpcc = &g + (g ? g-g : 0);
13349  /* HPUX 7.0 cc rejects these. */
13350  ++pcpcc;
13351  ppc = (char**) pcpcc;
13352  pcpcc = (char const *const *) ppc;
13353  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13354    char tx;
13355    char *t = &tx;
13356    char const *s = 0 ? (char *) 0 : (char const *) 0;
13357
13358    *t++ = 0;
13359    if (s) return 0;
13360  }
13361  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13362    int x[] = {25, 17};
13363    const int *foo = &x[0];
13364    ++foo;
13365  }
13366  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13367    typedef const int *iptr;
13368    iptr p = 0;
13369    ++p;
13370  }
13371  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13372       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13373    struct s { int j; const int *ap[3]; } bx;
13374    struct s *b = &bx; b->j = 5;
13375  }
13376  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13377    const int foo = 10;
13378    if (!foo) return 0;
13379  }
13380  return !cs[0] && !zero.x;
13381#endif
13382
13383  ;
13384  return 0;
13385}
13386_ACEOF
13387if ac_fn_c_try_compile "$LINENO"; then :
13388  ac_cv_c_const=yes
13389else
13390  ac_cv_c_const=no
13391fi
13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393fi
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13395$as_echo "$ac_cv_c_const" >&6; }
13396if test $ac_cv_c_const = no; then
13397
13398$as_echo "#define const /**/" >>confdefs.h
13399
13400fi
13401
13402
13403# Check for poll.h (it's in POSIX so everyone should have it?)
13404for ac_header in poll.h
13405do :
13406  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13407if test "x$ac_cv_header_poll_h" = xyes; then :
13408  cat >>confdefs.h <<_ACEOF
13409#define HAVE_POLL_H 1
13410_ACEOF
13411
13412fi
13413
13414done
13415
13416
13417# SCTP.  Allow user to disable SCTP support with --without-sctp.
13418# Otherwise we try to find whatever support is required.
13419try_sctp=true
13420
13421# Check whether --with-sctp was given.
13422if test "${with_sctp+set}" = set; then :
13423  withval=$with_sctp;
13424        case "$withval" in
13425	y | ye | yes)
13426	  ;;
13427	n | no)
13428	try_sctp=false
13429	  ;;
13430	*)
13431	as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
13432	  ;;
13433	esac
13434
13435else
13436
13437        try_sctp=true
13438
13439
13440fi
13441
13442
13443for ac_header in linux/tcp.h
13444do :
13445  ac_fn_c_check_header_mongrel "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
13446if test "x$ac_cv_header_linux_tcp_h" = xyes; then :
13447  cat >>confdefs.h <<_ACEOF
13448#define HAVE_LINUX_TCP_H 1
13449_ACEOF
13450
13451fi
13452
13453done
13454
13455
13456# Check for SCTP support
13457if $try_sctp; then
13458for ac_header in sys/socket.h
13459do :
13460  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13461if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13462  cat >>confdefs.h <<_ACEOF
13463#define HAVE_SYS_SOCKET_H 1
13464_ACEOF
13465
13466fi
13467
13468done
13469
13470for ac_header in netinet/sctp.h
13471do :
13472  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
13473#include <sys/socket.h>
13474#endif
13475
13476"
13477if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
13478  cat >>confdefs.h <<_ACEOF
13479#define HAVE_NETINET_SCTP_H 1
13480_ACEOF
13481
13482$as_echo "#define HAVE_SCTP_H 1" >>confdefs.h
13483
13484		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
13485$as_echo_n "checking for library containing sctp_bindx... " >&6; }
13486if ${ac_cv_search_sctp_bindx+:} false; then :
13487  $as_echo_n "(cached) " >&6
13488else
13489  ac_func_search_save_LIBS=$LIBS
13490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h.  */
13492
13493/* Override any GCC internal prototype to avoid an error.
13494   Use char because int might match the return type of a GCC
13495   builtin and then its argument prototype would still apply.  */
13496#ifdef __cplusplus
13497extern "C"
13498#endif
13499char sctp_bindx ();
13500int
13501main ()
13502{
13503return sctp_bindx ();
13504  ;
13505  return 0;
13506}
13507_ACEOF
13508for ac_lib in '' sctp; do
13509  if test -z "$ac_lib"; then
13510    ac_res="none required"
13511  else
13512    ac_res=-l$ac_lib
13513    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13514  fi
13515  if ac_fn_c_try_link "$LINENO"; then :
13516  ac_cv_search_sctp_bindx=$ac_res
13517fi
13518rm -f core conftest.err conftest.$ac_objext \
13519    conftest$ac_exeext
13520  if ${ac_cv_search_sctp_bindx+:} false; then :
13521  break
13522fi
13523done
13524if ${ac_cv_search_sctp_bindx+:} false; then :
13525
13526else
13527  ac_cv_search_sctp_bindx=no
13528fi
13529rm conftest.$ac_ext
13530LIBS=$ac_func_search_save_LIBS
13531fi
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
13533$as_echo "$ac_cv_search_sctp_bindx" >&6; }
13534ac_res=$ac_cv_search_sctp_bindx
13535if test "$ac_res" != no; then :
13536  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13537
13538fi
13539
13540
13541# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
13542# -------------------------------------------
13543# Tests whether TYPE exists after having included INCLUDES, setting cache
13544# variable VAR accordingly.
13545ac_fn_c_check_type ()
13546{
13547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13549$as_echo_n "checking for $2... " >&6; }
13550if eval \${$3+:} false; then :
13551  $as_echo_n "(cached) " >&6
13552else
13553  eval "$3=no"
13554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555/* end confdefs.h.  */
13556$4
13557int
13558main ()
13559{
13560if (sizeof ($2))
13561	 return 0;
13562  ;
13563  return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_compile "$LINENO"; then :
13567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568/* end confdefs.h.  */
13569$4
13570int
13571main ()
13572{
13573if (sizeof (($2)))
13574	    return 0;
13575  ;
13576  return 0;
13577}
13578_ACEOF
13579if ac_fn_c_try_compile "$LINENO"; then :
13580
13581else
13582  eval "$3=yes"
13583fi
13584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585fi
13586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587fi
13588eval ac_res=\$$3
13589	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13590$as_echo "$ac_res" >&6; }
13591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13592
13593} # ac_fn_c_check_type
13594ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
13595"
13596if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
13597
13598cat >>confdefs.h <<_ACEOF
13599#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
13600_ACEOF
13601
13602
13603fi
13604
13605fi
13606
13607done
13608
13609fi
13610
13611ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13612if test "x$ac_cv_header_endian_h" = xyes; then :
13613
13614$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
13615
13616else
13617  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13618if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13619
13620$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
13621
13622else
13623  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
13624$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
13625
13626fi
13627
13628
13629
13630fi
13631
13632
13633
13634if test "x$with_openssl" = "xno"; then
13635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
13636$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
13637else
13638    # Check for OPENSSL support
13639    havs_ssl=false
13640
13641    found=false
13642
13643# Check whether --with-openssl was given.
13644if test "${with_openssl+set}" = set; then :
13645  withval=$with_openssl;
13646            case "$withval" in
13647            "" | y | ye | yes | n | no)
13648            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
13649              ;;
13650            *) ssldirs="$withval"
13651              ;;
13652            esac
13653
13654else
13655
13656            # if pkg-config is installed and openssl has installed a .pc file,
13657            # then use that information and don't search ssldirs
13658            if test -n "$ac_tool_prefix"; then
13659  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13660set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662$as_echo_n "checking for $ac_word... " >&6; }
13663if ${ac_cv_prog_PKG_CONFIG+:} false; then :
13664  $as_echo_n "(cached) " >&6
13665else
13666  if test -n "$PKG_CONFIG"; then
13667  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
13668else
13669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670for as_dir in $PATH
13671do
13672  IFS=$as_save_IFS
13673  test -z "$as_dir" && as_dir=.
13674    for ac_exec_ext in '' $ac_executable_extensions; do
13675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13676    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
13677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13678    break 2
13679  fi
13680done
13681  done
13682IFS=$as_save_IFS
13683
13684fi
13685fi
13686PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
13687if test -n "$PKG_CONFIG"; then
13688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13689$as_echo "$PKG_CONFIG" >&6; }
13690else
13691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692$as_echo "no" >&6; }
13693fi
13694
13695
13696fi
13697if test -z "$ac_cv_prog_PKG_CONFIG"; then
13698  ac_ct_PKG_CONFIG=$PKG_CONFIG
13699  # Extract the first word of "pkg-config", so it can be a program name with args.
13700set dummy pkg-config; ac_word=$2
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13702$as_echo_n "checking for $ac_word... " >&6; }
13703if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
13704  $as_echo_n "(cached) " >&6
13705else
13706  if test -n "$ac_ct_PKG_CONFIG"; then
13707  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
13708else
13709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13710for as_dir in $PATH
13711do
13712  IFS=$as_save_IFS
13713  test -z "$as_dir" && as_dir=.
13714    for ac_exec_ext in '' $ac_executable_extensions; do
13715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13716    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
13717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13718    break 2
13719  fi
13720done
13721  done
13722IFS=$as_save_IFS
13723
13724fi
13725fi
13726ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
13727if test -n "$ac_ct_PKG_CONFIG"; then
13728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
13729$as_echo "$ac_ct_PKG_CONFIG" >&6; }
13730else
13731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732$as_echo "no" >&6; }
13733fi
13734
13735  if test "x$ac_ct_PKG_CONFIG" = x; then
13736    PKG_CONFIG=""
13737  else
13738    case $cross_compiling:$ac_tool_warned in
13739yes:)
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13742ac_tool_warned=yes ;;
13743esac
13744    PKG_CONFIG=$ac_ct_PKG_CONFIG
13745  fi
13746else
13747  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
13748fi
13749
13750            if test x"$PKG_CONFIG" != x""; then
13751                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
13752                if test $? = 0; then
13753                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
13754                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
13755                    found=true
13756                fi
13757            fi
13758
13759            # no such luck; use some default ssldirs
13760            if ! $found; then
13761                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
13762            fi
13763
13764
13765fi
13766
13767
13768
13769    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
13770    # an 'openssl' subdirectory
13771
13772    if ! $found; then
13773        OPENSSL_INCLUDES=
13774        for ssldir in $ssldirs; do
13775            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
13776$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
13777            if test -f "$ssldir/include/openssl/ssl.h"; then
13778                OPENSSL_INCLUDES="-I$ssldir/include"
13779                OPENSSL_LDFLAGS="-L$ssldir/lib"
13780                OPENSSL_LIBS="-lssl -lcrypto"
13781                found=true
13782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13783$as_echo "yes" >&6; }
13784                break
13785            else
13786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787$as_echo "no" >&6; }
13788            fi
13789        done
13790
13791        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
13792        # it will just work!
13793    fi
13794
13795    # try the preprocessor and linker with our new flags,
13796    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
13797
13798    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
13799$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
13800    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
13801        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
13802
13803    save_LIBS="$LIBS"
13804    save_LDFLAGS="$LDFLAGS"
13805    save_CPPFLAGS="$CPPFLAGS"
13806    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13807    LIBS="$OPENSSL_LIBS $LIBS"
13808    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13809    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810/* end confdefs.h.  */
13811#include <openssl/ssl.h>
13812int
13813main ()
13814{
13815SSL_new(NULL)
13816  ;
13817  return 0;
13818}
13819_ACEOF
13820if ac_fn_c_try_link "$LINENO"; then :
13821
13822            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823$as_echo "yes" >&6; }
13824
13825$as_echo "#define HAVE_SSL 1" >>confdefs.h
13826
13827          have_ssl=true
13828
13829else
13830
13831            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832$as_echo "no" >&6; }
13833             if test "x$with_openssl" != "x"; then
13834	  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13836as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
13837See \`config.log' for more details" "$LINENO" 5; }
13838	  fi
13839
13840
13841fi
13842rm -f core conftest.err conftest.$ac_objext \
13843    conftest$ac_exeext conftest.$ac_ext
13844    CPPFLAGS="$save_CPPFLAGS"
13845    LDFLAGS="$save_LDFLAGS"
13846    LIBS="$save_LIBS"
13847
13848
13849
13850
13851
13852    if $have_ssl; then
13853        case $host in
13854           *-*-cygwin)
13855             CFLAGS="$CFLAGS -DNOCRYPT"
13856             ;;
13857        esac
13858        LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13859        LIBS="$OPENSSL_LIBS $LIBS"
13860        CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13861    fi
13862fi
13863
13864# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
13866$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
13867if ${iperf3_cv_header_tcp_congestion+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871/* end confdefs.h.  */
13872#include <netinet/tcp.h>
13873#ifdef TCP_CONGESTION
13874  yes
13875#endif
13876
13877_ACEOF
13878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879  $EGREP "yes" >/dev/null 2>&1; then :
13880  iperf3_cv_header_tcp_congestion=yes
13881else
13882  iperf3_cv_header_tcp_congestion=no
13883fi
13884rm -f conftest*
13885
13886fi
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
13888$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
13889if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
13890
13891$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
13892
13893fi
13894
13895# Check for IPv6 flowlabel support (believed to be Linux only)
13896# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
13897# don't use that file directly (we have our own stripped-down
13898# copy, see src/flowlabel.h for more details).
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
13900$as_echo_n "checking IPv6 flowlabel support... " >&6; }
13901if ${iperf3_cv_header_flowlabel+:} false; then :
13902  $as_echo_n "(cached) " >&6
13903else
13904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905/* end confdefs.h.  */
13906#include <sys/types.h>
13907#include <linux/in6.h>
13908#ifdef IPV6_FLOWLABEL_MGR
13909  yes
13910#endif
13911
13912_ACEOF
13913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13914  $EGREP "yes" >/dev/null 2>&1; then :
13915  iperf3_cv_header_flowlabel=yes
13916else
13917  iperf3_cv_header_flowlabel=no
13918fi
13919rm -f conftest*
13920
13921fi
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
13923$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13924if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13925
13926$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
13927
13928fi
13929
13930# Check for CPU affinity support.  FreeBSD and Linux do this differently
13931# unfortunately so we have to check separately for each of them.
13932# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13933# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13934# generic concept is available.
13935for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
13936do :
13937  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13939if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13940  cat >>confdefs.h <<_ACEOF
13941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13942_ACEOF
13943
13944$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
13945
13946fi
13947done
13948
13949
13950# Check for daemon().  Most systems have this but a few (IRIX) don't.
13951for ac_func in daemon
13952do :
13953  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13954if test "x$ac_cv_func_daemon" = xyes; then :
13955  cat >>confdefs.h <<_ACEOF
13956#define HAVE_DAEMON 1
13957_ACEOF
13958
13959fi
13960done
13961
13962
13963# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
13964# this system call, but they're all different in terms of what headers
13965# it needs and what arguments it expects.
13966for ac_func in sendfile
13967do :
13968  ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13969if test "x$ac_cv_func_sendfile" = xyes; then :
13970  cat >>confdefs.h <<_ACEOF
13971#define HAVE_SENDFILE 1
13972_ACEOF
13973
13974fi
13975done
13976
13977
13978# Check for getline support, used as a part of authenticated
13979# connections.
13980for ac_func in getline
13981do :
13982  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13983if test "x$ac_cv_func_getline" = xyes; then :
13984  cat >>confdefs.h <<_ACEOF
13985#define HAVE_GETLINE 1
13986_ACEOF
13987
13988fi
13989done
13990
13991
13992# Check for packet pacing socket option (Linux only for now).
13993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13994$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13995if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13996  $as_echo_n "(cached) " >&6
13997else
13998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999/* end confdefs.h.  */
14000#include <sys/socket.h>
14001#ifdef SO_MAX_PACING_RATE
14002  yes
14003#endif
14004
14005_ACEOF
14006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14007  $EGREP "yes" >/dev/null 2>&1; then :
14008  iperf3_cv_header_so_max_pacing_rate=yes
14009else
14010  iperf3_cv_header_so_max_pacing_rate=no
14011fi
14012rm -f conftest*
14013
14014fi
14015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
14016$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
14017if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
14018
14019$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
14020
14021fi
14022
14023# Check for SO_BINDTODEVICE sockopt (believed to be Linux only)
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5
14025$as_echo_n "checking SO_BINDTODEVICE socket option... " >&6; }
14026if ${iperf3_cv_header_so_bindtodevice+:} false; then :
14027  $as_echo_n "(cached) " >&6
14028else
14029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030/* end confdefs.h.  */
14031#include <sys/socket.h>
14032#ifdef SO_BINDTODEVICE
14033  yes
14034#endif
14035
14036_ACEOF
14037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14038  $EGREP "yes" >/dev/null 2>&1; then :
14039  iperf3_cv_header_so_bindtodevice=yes
14040else
14041  iperf3_cv_header_so_bindtodevice=no
14042fi
14043rm -f conftest*
14044
14045fi
14046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5
14047$as_echo "$iperf3_cv_header_so_bindtodevice" >&6; }
14048if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then
14049
14050$as_echo "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h
14051
14052fi
14053
14054# Check for IP DF support
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IP_MTU_DISCOVER or IP_DONTFRAG socket option" >&5
14056$as_echo_n "checking IP_MTU_DISCOVER or IP_DONTFRAG socket option... " >&6; }
14057if ${iperf3_cv_header_dontfragment+:} false; then :
14058  $as_echo_n "(cached) " >&6
14059else
14060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061/* end confdefs.h.  */
14062#include <sys/socket.h>
14063#include <netinet/ip.h>
14064#include <netinet/in.h>
14065#ifdef IP_MTU_DISCOVER
14066  yes
14067#endif
14068#ifdef IP_DONTFRAG
14069  yes
14070#endif
14071#ifdef IP_DONTFRAGMENT
14072  yes
14073#endif
14074
14075_ACEOF
14076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14077  $EGREP "yes" >/dev/null 2>&1; then :
14078  iperf3_cv_header_dontfragment=yes
14079else
14080  iperf3_cv_header_dontfragment=no
14081fi
14082rm -f conftest*
14083
14084fi
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_dontfragment" >&5
14086$as_echo "$iperf3_cv_header_dontfragment" >&6; }
14087if test "x$iperf3_cv_header_dontfragment" = "xyes"; then
14088
14089$as_echo "#define HAVE_DONT_FRAGMENT 1" >>confdefs.h
14090
14091fi
14092
14093ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_snd_wnd" "ac_cv_member_struct_tcp_info_tcpi_snd_wnd" "#ifdef HAVE_LINUX_TCP_H
14094#include <linux/tcp.h>
14095#else
14096#include <netinet/tcp.h>
14097#endif
14098
14099"
14100if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_wnd" = xyes; then :
14101  iperf3_cv_header_tcp_info_snd_wnd=yes
14102else
14103  iperf3_cv_header_tcp_info_snd_wnd=no
14104fi
14105
14106
14107if test "x$iperf3_cv_header_tcp_info_snd_wnd" = "xyes"; then
14108
14109$as_echo "#define HAVE_TCP_INFO_SND_WND 1" >>confdefs.h
14110
14111fi
14112
14113# Check if we need -lrt for clock_gettime
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14115$as_echo_n "checking for library containing clock_gettime... " >&6; }
14116if ${ac_cv_search_clock_gettime+:} false; then :
14117  $as_echo_n "(cached) " >&6
14118else
14119  ac_func_search_save_LIBS=$LIBS
14120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121/* end confdefs.h.  */
14122
14123/* Override any GCC internal prototype to avoid an error.
14124   Use char because int might match the return type of a GCC
14125   builtin and then its argument prototype would still apply.  */
14126#ifdef __cplusplus
14127extern "C"
14128#endif
14129char clock_gettime ();
14130int
14131main ()
14132{
14133return clock_gettime ();
14134  ;
14135  return 0;
14136}
14137_ACEOF
14138for ac_lib in '' rt posix4; do
14139  if test -z "$ac_lib"; then
14140    ac_res="none required"
14141  else
14142    ac_res=-l$ac_lib
14143    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14144  fi
14145  if ac_fn_c_try_link "$LINENO"; then :
14146  ac_cv_search_clock_gettime=$ac_res
14147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149    conftest$ac_exeext
14150  if ${ac_cv_search_clock_gettime+:} false; then :
14151  break
14152fi
14153done
14154if ${ac_cv_search_clock_gettime+:} false; then :
14155
14156else
14157  ac_cv_search_clock_gettime=no
14158fi
14159rm conftest.$ac_ext
14160LIBS=$ac_func_search_save_LIBS
14161fi
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14163$as_echo "$ac_cv_search_clock_gettime" >&6; }
14164ac_res=$ac_cv_search_clock_gettime
14165if test "$ac_res" != no; then :
14166  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14167
14168fi
14169
14170# Check for clock_gettime support
14171for ac_func in clock_gettime
14172do :
14173  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14174if test "x$ac_cv_func_clock_gettime" = xyes; then :
14175  cat >>confdefs.h <<_ACEOF
14176#define HAVE_CLOCK_GETTIME 1
14177_ACEOF
14178
14179fi
14180done
14181
14182
14183ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
14184
14185cat >confcache <<\_ACEOF
14186# This file is a shell script that caches the results of configure
14187# tests run on this system so they can be shared between configure
14188# scripts and configure runs, see configure's option --config-cache.
14189# It is not useful on other systems.  If it contains results you don't
14190# want to keep, you may remove or edit it.
14191#
14192# config.status only pays attention to the cache file if you give it
14193# the --recheck option to rerun configure.
14194#
14195# `ac_cv_env_foo' variables (set or unset) will be overridden when
14196# loading this file, other *unset* `ac_cv_foo' will be assigned the
14197# following values.
14198
14199_ACEOF
14200
14201# The following way of writing the cache mishandles newlines in values,
14202# but we know of no workaround that is simple, portable, and efficient.
14203# So, we kill variables containing newlines.
14204# Ultrix sh set writes to stderr and can't be redirected directly,
14205# and sets the high bit in the cache file unless we assign to the vars.
14206(
14207  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14208    eval ac_val=\$$ac_var
14209    case $ac_val in #(
14210    *${as_nl}*)
14211      case $ac_var in #(
14212      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14213$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14214      esac
14215      case $ac_var in #(
14216      _ | IFS | as_nl) ;; #(
14217      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14218      *) { eval $ac_var=; unset $ac_var;} ;;
14219      esac ;;
14220    esac
14221  done
14222
14223  (set) 2>&1 |
14224    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14225    *${as_nl}ac_space=\ *)
14226      # `set' does not quote correctly, so add quotes: double-quote
14227      # substitution turns \\\\ into \\, and sed turns \\ into \.
14228      sed -n \
14229	"s/'/'\\\\''/g;
14230	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14231      ;; #(
14232    *)
14233      # `set' quotes correctly as required by POSIX, so do not add quotes.
14234      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14235      ;;
14236    esac |
14237    sort
14238) |
14239  sed '
14240     /^ac_cv_env_/b end
14241     t clear
14242     :clear
14243     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14244     t end
14245     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14246     :end' >>confcache
14247if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14248  if test -w "$cache_file"; then
14249    if test "x$cache_file" != "x/dev/null"; then
14250      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14251$as_echo "$as_me: updating cache $cache_file" >&6;}
14252      if test ! -f "$cache_file" || test -h "$cache_file"; then
14253	cat confcache >"$cache_file"
14254      else
14255        case $cache_file in #(
14256        */* | ?:*)
14257	  mv -f confcache "$cache_file"$$ &&
14258	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14259        *)
14260	  mv -f confcache "$cache_file" ;;
14261	esac
14262      fi
14263    fi
14264  else
14265    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14266$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14267  fi
14268fi
14269rm -f confcache
14270
14271test "x$prefix" = xNONE && prefix=$ac_default_prefix
14272# Let make expand exec_prefix.
14273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14274
14275DEFS=-DHAVE_CONFIG_H
14276
14277ac_libobjs=
14278ac_ltlibobjs=
14279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14280  # 1. Remove the extension, and $U if already installed.
14281  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14282  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14283  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14284  #    will be set to the directory where LIBOBJS objects are built.
14285  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14286  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14287done
14288LIBOBJS=$ac_libobjs
14289
14290LTLIBOBJS=$ac_ltlibobjs
14291
14292
14293if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
14294  as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
14295Usually this means the macro was only invoked conditionally." "$LINENO" 5
14296fi
14297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14298$as_echo_n "checking that generated files are newer than configure... " >&6; }
14299   if test -n "$am_sleep_pid"; then
14300     # Hide warnings about reused PIDs.
14301     wait $am_sleep_pid 2>/dev/null
14302   fi
14303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14304$as_echo "done" >&6; }
14305 if test -n "$EXEEXT"; then
14306  am__EXEEXT_TRUE=
14307  am__EXEEXT_FALSE='#'
14308else
14309  am__EXEEXT_TRUE='#'
14310  am__EXEEXT_FALSE=
14311fi
14312
14313if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14314  as_fn_error $? "conditional \"AMDEP\" was never defined.
14315Usually this means the macro was only invoked conditionally." "$LINENO" 5
14316fi
14317if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14318  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14319Usually this means the macro was only invoked conditionally." "$LINENO" 5
14320fi
14321if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14322  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14323Usually this means the macro was only invoked conditionally." "$LINENO" 5
14324fi
14325if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14326  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14327Usually this means the macro was only invoked conditionally." "$LINENO" 5
14328fi
14329if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
14330  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
14331Usually this means the macro was only invoked conditionally." "$LINENO" 5
14332fi
14333
14334: "${CONFIG_STATUS=./config.status}"
14335ac_write_fail=0
14336ac_clean_files_save=$ac_clean_files
14337ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14339$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14340as_write_fail=0
14341cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14342#! $SHELL
14343# Generated by $as_me.
14344# Run this file to recreate the current configuration.
14345# Compiler output produced by configure, useful for debugging
14346# configure, is in config.log if it exists.
14347
14348debug=false
14349ac_cs_recheck=false
14350ac_cs_silent=false
14351
14352SHELL=\${CONFIG_SHELL-$SHELL}
14353export SHELL
14354_ASEOF
14355cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14356## -------------------- ##
14357## M4sh Initialization. ##
14358## -------------------- ##
14359
14360# Be more Bourne compatible
14361DUALCASE=1; export DUALCASE # for MKS sh
14362if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14363  emulate sh
14364  NULLCMD=:
14365  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14366  # is contrary to our usage.  Disable this feature.
14367  alias -g '${1+"$@"}'='"$@"'
14368  setopt NO_GLOB_SUBST
14369else
14370  case `(set -o) 2>/dev/null` in #(
14371  *posix*) :
14372    set -o posix ;; #(
14373  *) :
14374     ;;
14375esac
14376fi
14377
14378
14379as_nl='
14380'
14381export as_nl
14382# Printing a long string crashes Solaris 7 /usr/bin/printf.
14383as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14384as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14385as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14386# Prefer a ksh shell builtin over an external printf program on Solaris,
14387# but without wasting forks for bash or zsh.
14388if test -z "$BASH_VERSION$ZSH_VERSION" \
14389    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14390  as_echo='print -r --'
14391  as_echo_n='print -rn --'
14392elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14393  as_echo='printf %s\n'
14394  as_echo_n='printf %s'
14395else
14396  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14397    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14398    as_echo_n='/usr/ucb/echo -n'
14399  else
14400    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14401    as_echo_n_body='eval
14402      arg=$1;
14403      case $arg in #(
14404      *"$as_nl"*)
14405	expr "X$arg" : "X\\(.*\\)$as_nl";
14406	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14407      esac;
14408      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14409    '
14410    export as_echo_n_body
14411    as_echo_n='sh -c $as_echo_n_body as_echo'
14412  fi
14413  export as_echo_body
14414  as_echo='sh -c $as_echo_body as_echo'
14415fi
14416
14417# The user is always right.
14418if test "${PATH_SEPARATOR+set}" != set; then
14419  PATH_SEPARATOR=:
14420  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14421    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14422      PATH_SEPARATOR=';'
14423  }
14424fi
14425
14426
14427# IFS
14428# We need space, tab and new line, in precisely that order.  Quoting is
14429# there to prevent editors from complaining about space-tab.
14430# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14431# splitting by setting IFS to empty value.)
14432IFS=" ""	$as_nl"
14433
14434# Find who we are.  Look in the path if we contain no directory separator.
14435as_myself=
14436case $0 in #((
14437  *[\\/]* ) as_myself=$0 ;;
14438  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14439for as_dir in $PATH
14440do
14441  IFS=$as_save_IFS
14442  test -z "$as_dir" && as_dir=.
14443    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14444  done
14445IFS=$as_save_IFS
14446
14447     ;;
14448esac
14449# We did not find ourselves, most probably we were run as `sh COMMAND'
14450# in which case we are not to be found in the path.
14451if test "x$as_myself" = x; then
14452  as_myself=$0
14453fi
14454if test ! -f "$as_myself"; then
14455  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14456  exit 1
14457fi
14458
14459# Unset variables that we do not need and which cause bugs (e.g. in
14460# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14461# suppresses any "Segmentation fault" message there.  '((' could
14462# trigger a bug in pdksh 5.2.14.
14463for as_var in BASH_ENV ENV MAIL MAILPATH
14464do eval test x\${$as_var+set} = xset \
14465  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14466done
14467PS1='$ '
14468PS2='> '
14469PS4='+ '
14470
14471# NLS nuisances.
14472LC_ALL=C
14473export LC_ALL
14474LANGUAGE=C
14475export LANGUAGE
14476
14477# CDPATH.
14478(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14479
14480
14481# as_fn_error STATUS ERROR [LINENO LOG_FD]
14482# ----------------------------------------
14483# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14484# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14485# script with STATUS, using 1 if that was 0.
14486as_fn_error ()
14487{
14488  as_status=$1; test $as_status -eq 0 && as_status=1
14489  if test "$4"; then
14490    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14491    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14492  fi
14493  $as_echo "$as_me: error: $2" >&2
14494  as_fn_exit $as_status
14495} # as_fn_error
14496
14497
14498# as_fn_set_status STATUS
14499# -----------------------
14500# Set $? to STATUS, without forking.
14501as_fn_set_status ()
14502{
14503  return $1
14504} # as_fn_set_status
14505
14506# as_fn_exit STATUS
14507# -----------------
14508# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14509as_fn_exit ()
14510{
14511  set +e
14512  as_fn_set_status $1
14513  exit $1
14514} # as_fn_exit
14515
14516# as_fn_unset VAR
14517# ---------------
14518# Portably unset VAR.
14519as_fn_unset ()
14520{
14521  { eval $1=; unset $1;}
14522}
14523as_unset=as_fn_unset
14524# as_fn_append VAR VALUE
14525# ----------------------
14526# Append the text in VALUE to the end of the definition contained in VAR. Take
14527# advantage of any shell optimizations that allow amortized linear growth over
14528# repeated appends, instead of the typical quadratic growth present in naive
14529# implementations.
14530if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14531  eval 'as_fn_append ()
14532  {
14533    eval $1+=\$2
14534  }'
14535else
14536  as_fn_append ()
14537  {
14538    eval $1=\$$1\$2
14539  }
14540fi # as_fn_append
14541
14542# as_fn_arith ARG...
14543# ------------------
14544# Perform arithmetic evaluation on the ARGs, and store the result in the
14545# global $as_val. Take advantage of shells that can avoid forks. The arguments
14546# must be portable across $(()) and expr.
14547if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14548  eval 'as_fn_arith ()
14549  {
14550    as_val=$(( $* ))
14551  }'
14552else
14553  as_fn_arith ()
14554  {
14555    as_val=`expr "$@" || test $? -eq 1`
14556  }
14557fi # as_fn_arith
14558
14559
14560if expr a : '\(a\)' >/dev/null 2>&1 &&
14561   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14562  as_expr=expr
14563else
14564  as_expr=false
14565fi
14566
14567if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14568  as_basename=basename
14569else
14570  as_basename=false
14571fi
14572
14573if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14574  as_dirname=dirname
14575else
14576  as_dirname=false
14577fi
14578
14579as_me=`$as_basename -- "$0" ||
14580$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14581	 X"$0" : 'X\(//\)$' \| \
14582	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14583$as_echo X/"$0" |
14584    sed '/^.*\/\([^/][^/]*\)\/*$/{
14585	    s//\1/
14586	    q
14587	  }
14588	  /^X\/\(\/\/\)$/{
14589	    s//\1/
14590	    q
14591	  }
14592	  /^X\/\(\/\).*/{
14593	    s//\1/
14594	    q
14595	  }
14596	  s/.*/./; q'`
14597
14598# Avoid depending upon Character Ranges.
14599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14602as_cr_digits='0123456789'
14603as_cr_alnum=$as_cr_Letters$as_cr_digits
14604
14605ECHO_C= ECHO_N= ECHO_T=
14606case `echo -n x` in #(((((
14607-n*)
14608  case `echo 'xy\c'` in
14609  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14610  xy)  ECHO_C='\c';;
14611  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14612       ECHO_T='	';;
14613  esac;;
14614*)
14615  ECHO_N='-n';;
14616esac
14617
14618rm -f conf$$ conf$$.exe conf$$.file
14619if test -d conf$$.dir; then
14620  rm -f conf$$.dir/conf$$.file
14621else
14622  rm -f conf$$.dir
14623  mkdir conf$$.dir 2>/dev/null
14624fi
14625if (echo >conf$$.file) 2>/dev/null; then
14626  if ln -s conf$$.file conf$$ 2>/dev/null; then
14627    as_ln_s='ln -s'
14628    # ... but there are two gotchas:
14629    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14630    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14631    # In both cases, we have to default to `cp -pR'.
14632    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14633      as_ln_s='cp -pR'
14634  elif ln conf$$.file conf$$ 2>/dev/null; then
14635    as_ln_s=ln
14636  else
14637    as_ln_s='cp -pR'
14638  fi
14639else
14640  as_ln_s='cp -pR'
14641fi
14642rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14643rmdir conf$$.dir 2>/dev/null
14644
14645
14646# as_fn_mkdir_p
14647# -------------
14648# Create "$as_dir" as a directory, including parents if necessary.
14649as_fn_mkdir_p ()
14650{
14651
14652  case $as_dir in #(
14653  -*) as_dir=./$as_dir;;
14654  esac
14655  test -d "$as_dir" || eval $as_mkdir_p || {
14656    as_dirs=
14657    while :; do
14658      case $as_dir in #(
14659      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14660      *) as_qdir=$as_dir;;
14661      esac
14662      as_dirs="'$as_qdir' $as_dirs"
14663      as_dir=`$as_dirname -- "$as_dir" ||
14664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14665	 X"$as_dir" : 'X\(//\)[^/]' \| \
14666	 X"$as_dir" : 'X\(//\)$' \| \
14667	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14668$as_echo X"$as_dir" |
14669    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14670	    s//\1/
14671	    q
14672	  }
14673	  /^X\(\/\/\)[^/].*/{
14674	    s//\1/
14675	    q
14676	  }
14677	  /^X\(\/\/\)$/{
14678	    s//\1/
14679	    q
14680	  }
14681	  /^X\(\/\).*/{
14682	    s//\1/
14683	    q
14684	  }
14685	  s/.*/./; q'`
14686      test -d "$as_dir" && break
14687    done
14688    test -z "$as_dirs" || eval "mkdir $as_dirs"
14689  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14690
14691
14692} # as_fn_mkdir_p
14693if mkdir -p . 2>/dev/null; then
14694  as_mkdir_p='mkdir -p "$as_dir"'
14695else
14696  test -d ./-p && rmdir ./-p
14697  as_mkdir_p=false
14698fi
14699
14700
14701# as_fn_executable_p FILE
14702# -----------------------
14703# Test if FILE is an executable regular file.
14704as_fn_executable_p ()
14705{
14706  test -f "$1" && test -x "$1"
14707} # as_fn_executable_p
14708as_test_x='test -x'
14709as_executable_p=as_fn_executable_p
14710
14711# Sed expression to map a string onto a valid CPP name.
14712as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14713
14714# Sed expression to map a string onto a valid variable name.
14715as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14716
14717
14718exec 6>&1
14719## ----------------------------------- ##
14720## Main body of $CONFIG_STATUS script. ##
14721## ----------------------------------- ##
14722_ASEOF
14723test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14724
14725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14726# Save the log message, to keep $0 and so on meaningful, and to
14727# report actual input values of CONFIG_FILES etc. instead of their
14728# values after options handling.
14729ac_log="
14730This file was extended by iperf $as_me 3.9+, which was
14731generated by GNU Autoconf 2.69.  Invocation command line was
14732
14733  CONFIG_FILES    = $CONFIG_FILES
14734  CONFIG_HEADERS  = $CONFIG_HEADERS
14735  CONFIG_LINKS    = $CONFIG_LINKS
14736  CONFIG_COMMANDS = $CONFIG_COMMANDS
14737  $ $0 $@
14738
14739on `(hostname || uname -n) 2>/dev/null | sed 1q`
14740"
14741
14742_ACEOF
14743
14744case $ac_config_files in *"
14745"*) set x $ac_config_files; shift; ac_config_files=$*;;
14746esac
14747
14748case $ac_config_headers in *"
14749"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14750esac
14751
14752
14753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14754# Files that config.status was made for.
14755config_files="$ac_config_files"
14756config_headers="$ac_config_headers"
14757config_commands="$ac_config_commands"
14758
14759_ACEOF
14760
14761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14762ac_cs_usage="\
14763\`$as_me' instantiates files and other configuration actions
14764from templates according to the current configuration.  Unless the files
14765and actions are specified as TAGs, all are instantiated by default.
14766
14767Usage: $0 [OPTION]... [TAG]...
14768
14769  -h, --help       print this help, then exit
14770  -V, --version    print version number and configuration settings, then exit
14771      --config     print configuration, then exit
14772  -q, --quiet, --silent
14773                   do not print progress messages
14774  -d, --debug      don't remove temporary files
14775      --recheck    update $as_me by reconfiguring in the same conditions
14776      --file=FILE[:TEMPLATE]
14777                   instantiate the configuration file FILE
14778      --header=FILE[:TEMPLATE]
14779                   instantiate the configuration header FILE
14780
14781Configuration files:
14782$config_files
14783
14784Configuration headers:
14785$config_headers
14786
14787Configuration commands:
14788$config_commands
14789
14790Report bugs to <https://github.com/esnet/iperf>.
14791iperf home page: <https://software.es.net/iperf/>."
14792
14793_ACEOF
14794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14795ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14796ac_cs_version="\\
14797iperf config.status 3.9+
14798configured by $0, generated by GNU Autoconf 2.69,
14799  with options \\"\$ac_cs_config\\"
14800
14801Copyright (C) 2012 Free Software Foundation, Inc.
14802This config.status script is free software; the Free Software Foundation
14803gives unlimited permission to copy, distribute and modify it."
14804
14805ac_pwd='$ac_pwd'
14806srcdir='$srcdir'
14807INSTALL='$INSTALL'
14808MKDIR_P='$MKDIR_P'
14809AWK='$AWK'
14810test -n "\$AWK" || AWK=awk
14811_ACEOF
14812
14813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14814# The default lists apply if the user does not specify any file.
14815ac_need_defaults=:
14816while test $# != 0
14817do
14818  case $1 in
14819  --*=?*)
14820    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14821    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14822    ac_shift=:
14823    ;;
14824  --*=)
14825    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14826    ac_optarg=
14827    ac_shift=:
14828    ;;
14829  *)
14830    ac_option=$1
14831    ac_optarg=$2
14832    ac_shift=shift
14833    ;;
14834  esac
14835
14836  case $ac_option in
14837  # Handling of the options.
14838  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14839    ac_cs_recheck=: ;;
14840  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14841    $as_echo "$ac_cs_version"; exit ;;
14842  --config | --confi | --conf | --con | --co | --c )
14843    $as_echo "$ac_cs_config"; exit ;;
14844  --debug | --debu | --deb | --de | --d | -d )
14845    debug=: ;;
14846  --file | --fil | --fi | --f )
14847    $ac_shift
14848    case $ac_optarg in
14849    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14850    '') as_fn_error $? "missing file argument" ;;
14851    esac
14852    as_fn_append CONFIG_FILES " '$ac_optarg'"
14853    ac_need_defaults=false;;
14854  --header | --heade | --head | --hea )
14855    $ac_shift
14856    case $ac_optarg in
14857    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14858    esac
14859    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14860    ac_need_defaults=false;;
14861  --he | --h)
14862    # Conflict between --help and --header
14863    as_fn_error $? "ambiguous option: \`$1'
14864Try \`$0 --help' for more information.";;
14865  --help | --hel | -h )
14866    $as_echo "$ac_cs_usage"; exit ;;
14867  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14868  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14869    ac_cs_silent=: ;;
14870
14871  # This is an error.
14872  -*) as_fn_error $? "unrecognized option: \`$1'
14873Try \`$0 --help' for more information." ;;
14874
14875  *) as_fn_append ac_config_targets " $1"
14876     ac_need_defaults=false ;;
14877
14878  esac
14879  shift
14880done
14881
14882ac_configure_extra_args=
14883
14884if $ac_cs_silent; then
14885  exec 6>/dev/null
14886  ac_configure_extra_args="$ac_configure_extra_args --silent"
14887fi
14888
14889_ACEOF
14890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14891if \$ac_cs_recheck; then
14892  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14893  shift
14894  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14895  CONFIG_SHELL='$SHELL'
14896  export CONFIG_SHELL
14897  exec "\$@"
14898fi
14899
14900_ACEOF
14901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14902exec 5>>config.log
14903{
14904  echo
14905  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14906## Running $as_me. ##
14907_ASBOX
14908  $as_echo "$ac_log"
14909} >&5
14910
14911_ACEOF
14912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14913#
14914# INIT-COMMANDS
14915#
14916AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14917
14918
14919# The HP-UX ksh and POSIX shell print the target directory to stdout
14920# if CDPATH is set.
14921(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14922
14923sed_quote_subst='$sed_quote_subst'
14924double_quote_subst='$double_quote_subst'
14925delay_variable_subst='$delay_variable_subst'
14926macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14927macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14928enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14929enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14930pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14931enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14932shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14933SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14934ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14935PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14936host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14937host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14938host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14939build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14940build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14941build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14942SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14943Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14944GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14945EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14946FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14947LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14948NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14949LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14950max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14951ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14952exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14953lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14954lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14955lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14956lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14957lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14958reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14959reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14960OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14961deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14962file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14963file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14964want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14965DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14966sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14967AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14968AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14969archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14970STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14971RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14972old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14973old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14974old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14975lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14976CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14977CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14978compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14979GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14980lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14981lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14982lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14983lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14984lt_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"`'
14985lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14986nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14987lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14988lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14989objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14990MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14991lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14992lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14993lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14994lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14995lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14996need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14997MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14998DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14999NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15000LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15001OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15002OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15003libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15004shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15005extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15006archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15007enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15008export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15009whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15010compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15011old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15012old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15013archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15014archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15015module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15016module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15017with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15018allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15019no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15020hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15021hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15022hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15023hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15024hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15025hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15026hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15027inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15028link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15029always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15030export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15031exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15032include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15033prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15034postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15035file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15036variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15037need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15038need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15039version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15040runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15041shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15042shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15043libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15044library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15045soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15046install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15047postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15048postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15049finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15050finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15051hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15052sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15053configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15054configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15055hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15056enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15057enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15058enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15059old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15060striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15061
15062LTCC='$LTCC'
15063LTCFLAGS='$LTCFLAGS'
15064compiler='$compiler_DEFAULT'
15065
15066# A function that is used when there is no print builtin or printf.
15067func_fallback_echo ()
15068{
15069  eval 'cat <<_LTECHO_EOF
15070\$1
15071_LTECHO_EOF'
15072}
15073
15074# Quote evaled strings.
15075for var in SHELL \
15076ECHO \
15077PATH_SEPARATOR \
15078SED \
15079GREP \
15080EGREP \
15081FGREP \
15082LD \
15083NM \
15084LN_S \
15085lt_SP2NL \
15086lt_NL2SP \
15087reload_flag \
15088OBJDUMP \
15089deplibs_check_method \
15090file_magic_cmd \
15091file_magic_glob \
15092want_nocaseglob \
15093DLLTOOL \
15094sharedlib_from_linklib_cmd \
15095AR \
15096AR_FLAGS \
15097archiver_list_spec \
15098STRIP \
15099RANLIB \
15100CC \
15101CFLAGS \
15102compiler \
15103lt_cv_sys_global_symbol_pipe \
15104lt_cv_sys_global_symbol_to_cdecl \
15105lt_cv_sys_global_symbol_to_import \
15106lt_cv_sys_global_symbol_to_c_name_address \
15107lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15108lt_cv_nm_interface \
15109nm_file_list_spec \
15110lt_cv_truncate_bin \
15111lt_prog_compiler_no_builtin_flag \
15112lt_prog_compiler_pic \
15113lt_prog_compiler_wl \
15114lt_prog_compiler_static \
15115lt_cv_prog_compiler_c_o \
15116need_locks \
15117MANIFEST_TOOL \
15118DSYMUTIL \
15119NMEDIT \
15120LIPO \
15121OTOOL \
15122OTOOL64 \
15123shrext_cmds \
15124export_dynamic_flag_spec \
15125whole_archive_flag_spec \
15126compiler_needs_object \
15127with_gnu_ld \
15128allow_undefined_flag \
15129no_undefined_flag \
15130hardcode_libdir_flag_spec \
15131hardcode_libdir_separator \
15132exclude_expsyms \
15133include_expsyms \
15134file_list_spec \
15135variables_saved_for_relink \
15136libname_spec \
15137library_names_spec \
15138soname_spec \
15139install_override_mode \
15140finish_eval \
15141old_striplib \
15142striplib; do
15143    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15144    *[\\\\\\\`\\"\\\$]*)
15145      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15146      ;;
15147    *)
15148      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15149      ;;
15150    esac
15151done
15152
15153# Double-quote double-evaled strings.
15154for var in reload_cmds \
15155old_postinstall_cmds \
15156old_postuninstall_cmds \
15157old_archive_cmds \
15158extract_expsyms_cmds \
15159old_archive_from_new_cmds \
15160old_archive_from_expsyms_cmds \
15161archive_cmds \
15162archive_expsym_cmds \
15163module_cmds \
15164module_expsym_cmds \
15165export_symbols_cmds \
15166prelink_cmds \
15167postlink_cmds \
15168postinstall_cmds \
15169postuninstall_cmds \
15170finish_cmds \
15171sys_lib_search_path_spec \
15172configure_time_dlsearch_path \
15173configure_time_lt_sys_library_path; do
15174    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15175    *[\\\\\\\`\\"\\\$]*)
15176      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15177      ;;
15178    *)
15179      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15180      ;;
15181    esac
15182done
15183
15184ac_aux_dir='$ac_aux_dir'
15185
15186# See if we are running on zsh, and set the options that allow our
15187# commands through without removal of \ escapes INIT.
15188if test -n "\${ZSH_VERSION+set}"; then
15189   setopt NO_GLOB_SUBST
15190fi
15191
15192
15193    PACKAGE='$PACKAGE'
15194    VERSION='$VERSION'
15195    RM='$RM'
15196    ofile='$ofile'
15197
15198
15199
15200
15201_ACEOF
15202
15203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15204
15205# Handling of arguments.
15206for ac_config_target in $ac_config_targets
15207do
15208  case $ac_config_target in
15209    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15210    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15211    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
15212    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15213    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15214    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
15215    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15216    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
15217
15218  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15219  esac
15220done
15221
15222
15223# If the user did not use the arguments to specify the items to instantiate,
15224# then the envvar interface is used.  Set only those that are not.
15225# We use the long form for the default assignment because of an extremely
15226# bizarre bug on SunOS 4.1.3.
15227if $ac_need_defaults; then
15228  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15229  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15230  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15231fi
15232
15233# Have a temporary directory for convenience.  Make it in the build tree
15234# simply because there is no reason against having it here, and in addition,
15235# creating and moving files from /tmp can sometimes cause problems.
15236# Hook for its removal unless debugging.
15237# Note that there is a small window in which the directory will not be cleaned:
15238# after its creation but before its name has been assigned to `$tmp'.
15239$debug ||
15240{
15241  tmp= ac_tmp=
15242  trap 'exit_status=$?
15243  : "${ac_tmp:=$tmp}"
15244  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15245' 0
15246  trap 'as_fn_exit 1' 1 2 13 15
15247}
15248# Create a (secure) tmp directory for tmp files.
15249
15250{
15251  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15252  test -d "$tmp"
15253}  ||
15254{
15255  tmp=./conf$$-$RANDOM
15256  (umask 077 && mkdir "$tmp")
15257} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15258ac_tmp=$tmp
15259
15260# Set up the scripts for CONFIG_FILES section.
15261# No need to generate them if there are no CONFIG_FILES.
15262# This happens for instance with `./config.status config.h'.
15263if test -n "$CONFIG_FILES"; then
15264
15265
15266ac_cr=`echo X | tr X '\015'`
15267# On cygwin, bash can eat \r inside `` if the user requested igncr.
15268# But we know of no other shell where ac_cr would be empty at this
15269# point, so we can use a bashism as a fallback.
15270if test "x$ac_cr" = x; then
15271  eval ac_cr=\$\'\\r\'
15272fi
15273ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15274if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15275  ac_cs_awk_cr='\\r'
15276else
15277  ac_cs_awk_cr=$ac_cr
15278fi
15279
15280echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15281_ACEOF
15282
15283
15284{
15285  echo "cat >conf$$subs.awk <<_ACEOF" &&
15286  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15287  echo "_ACEOF"
15288} >conf$$subs.sh ||
15289  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15290ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15291ac_delim='%!_!# '
15292for ac_last_try in false false false false false :; do
15293  . ./conf$$subs.sh ||
15294    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15295
15296  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15297  if test $ac_delim_n = $ac_delim_num; then
15298    break
15299  elif $ac_last_try; then
15300    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15301  else
15302    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15303  fi
15304done
15305rm -f conf$$subs.sh
15306
15307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15308cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15309_ACEOF
15310sed -n '
15311h
15312s/^/S["/; s/!.*/"]=/
15313p
15314g
15315s/^[^!]*!//
15316:repl
15317t repl
15318s/'"$ac_delim"'$//
15319t delim
15320:nl
15321h
15322s/\(.\{148\}\)..*/\1/
15323t more1
15324s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15325p
15326n
15327b repl
15328:more1
15329s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15330p
15331g
15332s/.\{148\}//
15333t nl
15334:delim
15335h
15336s/\(.\{148\}\)..*/\1/
15337t more2
15338s/["\\]/\\&/g; s/^/"/; s/$/"/
15339p
15340b
15341:more2
15342s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15343p
15344g
15345s/.\{148\}//
15346t delim
15347' <conf$$subs.awk | sed '
15348/^[^""]/{
15349  N
15350  s/\n//
15351}
15352' >>$CONFIG_STATUS || ac_write_fail=1
15353rm -f conf$$subs.awk
15354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355_ACAWK
15356cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15357  for (key in S) S_is_set[key] = 1
15358  FS = ""
15359
15360}
15361{
15362  line = $ 0
15363  nfields = split(line, field, "@")
15364  substed = 0
15365  len = length(field[1])
15366  for (i = 2; i < nfields; i++) {
15367    key = field[i]
15368    keylen = length(key)
15369    if (S_is_set[key]) {
15370      value = S[key]
15371      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15372      len += length(value) + length(field[++i])
15373      substed = 1
15374    } else
15375      len += 1 + keylen
15376  }
15377
15378  print line
15379}
15380
15381_ACAWK
15382_ACEOF
15383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15384if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15385  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15386else
15387  cat
15388fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15389  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15390_ACEOF
15391
15392# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15393# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15394# trailing colons and then remove the whole line if VPATH becomes empty
15395# (actually we leave an empty line to preserve line numbers).
15396if test "x$srcdir" = x.; then
15397  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15398h
15399s///
15400s/^/:/
15401s/[	 ]*$/:/
15402s/:\$(srcdir):/:/g
15403s/:\${srcdir}:/:/g
15404s/:@srcdir@:/:/g
15405s/^:*//
15406s/:*$//
15407x
15408s/\(=[	 ]*\).*/\1/
15409G
15410s/\n//
15411s/^[^=]*=[	 ]*$//
15412}'
15413fi
15414
15415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15416fi # test -n "$CONFIG_FILES"
15417
15418# Set up the scripts for CONFIG_HEADERS section.
15419# No need to generate them if there are no CONFIG_HEADERS.
15420# This happens for instance with `./config.status Makefile'.
15421if test -n "$CONFIG_HEADERS"; then
15422cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15423BEGIN {
15424_ACEOF
15425
15426# Transform confdefs.h into an awk script `defines.awk', embedded as
15427# here-document in config.status, that substitutes the proper values into
15428# config.h.in to produce config.h.
15429
15430# Create a delimiter string that does not exist in confdefs.h, to ease
15431# handling of long lines.
15432ac_delim='%!_!# '
15433for ac_last_try in false false :; do
15434  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15435  if test -z "$ac_tt"; then
15436    break
15437  elif $ac_last_try; then
15438    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15439  else
15440    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15441  fi
15442done
15443
15444# For the awk script, D is an array of macro values keyed by name,
15445# likewise P contains macro parameters if any.  Preserve backslash
15446# newline sequences.
15447
15448ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15449sed -n '
15450s/.\{148\}/&'"$ac_delim"'/g
15451t rset
15452:rset
15453s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15454t def
15455d
15456:def
15457s/\\$//
15458t bsnl
15459s/["\\]/\\&/g
15460s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15461D["\1"]=" \3"/p
15462s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15463d
15464:bsnl
15465s/["\\]/\\&/g
15466s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15467D["\1"]=" \3\\\\\\n"\\/p
15468t cont
15469s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15470t cont
15471d
15472:cont
15473n
15474s/.\{148\}/&'"$ac_delim"'/g
15475t clear
15476:clear
15477s/\\$//
15478t bsnlc
15479s/["\\]/\\&/g; s/^/"/; s/$/"/p
15480d
15481:bsnlc
15482s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15483b cont
15484' <confdefs.h | sed '
15485s/'"$ac_delim"'/"\\\
15486"/g' >>$CONFIG_STATUS || ac_write_fail=1
15487
15488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15489  for (key in D) D_is_set[key] = 1
15490  FS = ""
15491}
15492/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15493  line = \$ 0
15494  split(line, arg, " ")
15495  if (arg[1] == "#") {
15496    defundef = arg[2]
15497    mac1 = arg[3]
15498  } else {
15499    defundef = substr(arg[1], 2)
15500    mac1 = arg[2]
15501  }
15502  split(mac1, mac2, "(") #)
15503  macro = mac2[1]
15504  prefix = substr(line, 1, index(line, defundef) - 1)
15505  if (D_is_set[macro]) {
15506    # Preserve the white space surrounding the "#".
15507    print prefix "define", macro P[macro] D[macro]
15508    next
15509  } else {
15510    # Replace #undef with comments.  This is necessary, for example,
15511    # in the case of _POSIX_SOURCE, which is predefined and required
15512    # on some systems where configure will not decide to define it.
15513    if (defundef == "undef") {
15514      print "/*", prefix defundef, macro, "*/"
15515      next
15516    }
15517  }
15518}
15519{ print }
15520_ACAWK
15521_ACEOF
15522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15524fi # test -n "$CONFIG_HEADERS"
15525
15526
15527eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15528shift
15529for ac_tag
15530do
15531  case $ac_tag in
15532  :[FHLC]) ac_mode=$ac_tag; continue;;
15533  esac
15534  case $ac_mode$ac_tag in
15535  :[FHL]*:*);;
15536  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15537  :[FH]-) ac_tag=-:-;;
15538  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15539  esac
15540  ac_save_IFS=$IFS
15541  IFS=:
15542  set x $ac_tag
15543  IFS=$ac_save_IFS
15544  shift
15545  ac_file=$1
15546  shift
15547
15548  case $ac_mode in
15549  :L) ac_source=$1;;
15550  :[FH])
15551    ac_file_inputs=
15552    for ac_f
15553    do
15554      case $ac_f in
15555      -) ac_f="$ac_tmp/stdin";;
15556      *) # Look for the file first in the build tree, then in the source tree
15557	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15558	 # because $ac_f cannot contain `:'.
15559	 test -f "$ac_f" ||
15560	   case $ac_f in
15561	   [\\/$]*) false;;
15562	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15563	   esac ||
15564	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15565      esac
15566      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15567      as_fn_append ac_file_inputs " '$ac_f'"
15568    done
15569
15570    # Let's still pretend it is `configure' which instantiates (i.e., don't
15571    # use $as_me), people would be surprised to read:
15572    #    /* config.h.  Generated by config.status.  */
15573    configure_input='Generated from '`
15574	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15575	`' by configure.'
15576    if test x"$ac_file" != x-; then
15577      configure_input="$ac_file.  $configure_input"
15578      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15579$as_echo "$as_me: creating $ac_file" >&6;}
15580    fi
15581    # Neutralize special characters interpreted by sed in replacement strings.
15582    case $configure_input in #(
15583    *\&* | *\|* | *\\* )
15584       ac_sed_conf_input=`$as_echo "$configure_input" |
15585       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15586    *) ac_sed_conf_input=$configure_input;;
15587    esac
15588
15589    case $ac_tag in
15590    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15591      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15592    esac
15593    ;;
15594  esac
15595
15596  ac_dir=`$as_dirname -- "$ac_file" ||
15597$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15598	 X"$ac_file" : 'X\(//\)[^/]' \| \
15599	 X"$ac_file" : 'X\(//\)$' \| \
15600	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15601$as_echo X"$ac_file" |
15602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15603	    s//\1/
15604	    q
15605	  }
15606	  /^X\(\/\/\)[^/].*/{
15607	    s//\1/
15608	    q
15609	  }
15610	  /^X\(\/\/\)$/{
15611	    s//\1/
15612	    q
15613	  }
15614	  /^X\(\/\).*/{
15615	    s//\1/
15616	    q
15617	  }
15618	  s/.*/./; q'`
15619  as_dir="$ac_dir"; as_fn_mkdir_p
15620  ac_builddir=.
15621
15622case "$ac_dir" in
15623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15624*)
15625  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15626  # A ".." for each directory in $ac_dir_suffix.
15627  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15628  case $ac_top_builddir_sub in
15629  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15630  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15631  esac ;;
15632esac
15633ac_abs_top_builddir=$ac_pwd
15634ac_abs_builddir=$ac_pwd$ac_dir_suffix
15635# for backward compatibility:
15636ac_top_builddir=$ac_top_build_prefix
15637
15638case $srcdir in
15639  .)  # We are building in place.
15640    ac_srcdir=.
15641    ac_top_srcdir=$ac_top_builddir_sub
15642    ac_abs_top_srcdir=$ac_pwd ;;
15643  [\\/]* | ?:[\\/]* )  # Absolute name.
15644    ac_srcdir=$srcdir$ac_dir_suffix;
15645    ac_top_srcdir=$srcdir
15646    ac_abs_top_srcdir=$srcdir ;;
15647  *) # Relative name.
15648    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15649    ac_top_srcdir=$ac_top_build_prefix$srcdir
15650    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15651esac
15652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15653
15654
15655  case $ac_mode in
15656  :F)
15657  #
15658  # CONFIG_FILE
15659  #
15660
15661  case $INSTALL in
15662  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15663  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15664  esac
15665  ac_MKDIR_P=$MKDIR_P
15666  case $MKDIR_P in
15667  [\\/$]* | ?:[\\/]* ) ;;
15668  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15669  esac
15670_ACEOF
15671
15672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15673# If the template does not know about datarootdir, expand it.
15674# FIXME: This hack should be removed a few years after 2.60.
15675ac_datarootdir_hack=; ac_datarootdir_seen=
15676ac_sed_dataroot='
15677/datarootdir/ {
15678  p
15679  q
15680}
15681/@datadir@/p
15682/@docdir@/p
15683/@infodir@/p
15684/@localedir@/p
15685/@mandir@/p'
15686case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15687*datarootdir*) ac_datarootdir_seen=yes;;
15688*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15689  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15690$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15691_ACEOF
15692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693  ac_datarootdir_hack='
15694  s&@datadir@&$datadir&g
15695  s&@docdir@&$docdir&g
15696  s&@infodir@&$infodir&g
15697  s&@localedir@&$localedir&g
15698  s&@mandir@&$mandir&g
15699  s&\\\${datarootdir}&$datarootdir&g' ;;
15700esac
15701_ACEOF
15702
15703# Neutralize VPATH when `$srcdir' = `.'.
15704# Shell code in configure.ac might set extrasub.
15705# FIXME: do we really want to maintain this feature?
15706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15707ac_sed_extra="$ac_vpsub
15708$extrasub
15709_ACEOF
15710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711:t
15712/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15713s|@configure_input@|$ac_sed_conf_input|;t t
15714s&@top_builddir@&$ac_top_builddir_sub&;t t
15715s&@top_build_prefix@&$ac_top_build_prefix&;t t
15716s&@srcdir@&$ac_srcdir&;t t
15717s&@abs_srcdir@&$ac_abs_srcdir&;t t
15718s&@top_srcdir@&$ac_top_srcdir&;t t
15719s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15720s&@builddir@&$ac_builddir&;t t
15721s&@abs_builddir@&$ac_abs_builddir&;t t
15722s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15723s&@INSTALL@&$ac_INSTALL&;t t
15724s&@MKDIR_P@&$ac_MKDIR_P&;t t
15725$ac_datarootdir_hack
15726"
15727eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15728  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15729
15730test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15731  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15732  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15733      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15734  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15735which seems to be undefined.  Please make sure it is defined" >&5
15736$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15737which seems to be undefined.  Please make sure it is defined" >&2;}
15738
15739  rm -f "$ac_tmp/stdin"
15740  case $ac_file in
15741  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15742  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15743  esac \
15744  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15745 ;;
15746  :H)
15747  #
15748  # CONFIG_HEADER
15749  #
15750  if test x"$ac_file" != x-; then
15751    {
15752      $as_echo "/* $configure_input  */" \
15753      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15754    } >"$ac_tmp/config.h" \
15755      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15756    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15757      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15758$as_echo "$as_me: $ac_file is unchanged" >&6;}
15759    else
15760      rm -f "$ac_file"
15761      mv "$ac_tmp/config.h" "$ac_file" \
15762	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15763    fi
15764  else
15765    $as_echo "/* $configure_input  */" \
15766      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15767      || as_fn_error $? "could not create -" "$LINENO" 5
15768  fi
15769# Compute "$ac_file"'s index in $config_headers.
15770_am_arg="$ac_file"
15771_am_stamp_count=1
15772for _am_header in $config_headers :; do
15773  case $_am_header in
15774    $_am_arg | $_am_arg:* )
15775      break ;;
15776    * )
15777      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15778  esac
15779done
15780echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15781$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15782	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15783	 X"$_am_arg" : 'X\(//\)$' \| \
15784	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15785$as_echo X"$_am_arg" |
15786    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15787	    s//\1/
15788	    q
15789	  }
15790	  /^X\(\/\/\)[^/].*/{
15791	    s//\1/
15792	    q
15793	  }
15794	  /^X\(\/\/\)$/{
15795	    s//\1/
15796	    q
15797	  }
15798	  /^X\(\/\).*/{
15799	    s//\1/
15800	    q
15801	  }
15802	  s/.*/./; q'`/stamp-h$_am_stamp_count
15803 ;;
15804
15805  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15806$as_echo "$as_me: executing $ac_file commands" >&6;}
15807 ;;
15808  esac
15809
15810
15811  case $ac_file$ac_mode in
15812    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15813  # Older Autoconf quotes --file arguments for eval, but not when files
15814  # are listed without --file.  Let's play safe and only enable the eval
15815  # if we detect the quoting.
15816  # TODO: see whether this extra hack can be removed once we start
15817  # requiring Autoconf 2.70 or later.
15818  case $CONFIG_FILES in #(
15819  *\'*) :
15820    eval set x "$CONFIG_FILES" ;; #(
15821  *) :
15822    set x $CONFIG_FILES ;; #(
15823  *) :
15824     ;;
15825esac
15826  shift
15827  # Used to flag and report bootstrapping failures.
15828  am_rc=0
15829  for am_mf
15830  do
15831    # Strip MF so we end up with the name of the file.
15832    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15833    # Check whether this is an Automake generated Makefile which includes
15834    # dependency-tracking related rules and includes.
15835    # Grep'ing the whole file directly is not great: AIX grep has a line
15836    # limit of 2048, but all sed's we know have understand at least 4000.
15837    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15838      || continue
15839    am_dirpart=`$as_dirname -- "$am_mf" ||
15840$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15841	 X"$am_mf" : 'X\(//\)[^/]' \| \
15842	 X"$am_mf" : 'X\(//\)$' \| \
15843	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15844$as_echo X"$am_mf" |
15845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15846	    s//\1/
15847	    q
15848	  }
15849	  /^X\(\/\/\)[^/].*/{
15850	    s//\1/
15851	    q
15852	  }
15853	  /^X\(\/\/\)$/{
15854	    s//\1/
15855	    q
15856	  }
15857	  /^X\(\/\).*/{
15858	    s//\1/
15859	    q
15860	  }
15861	  s/.*/./; q'`
15862    am_filepart=`$as_basename -- "$am_mf" ||
15863$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15864	 X"$am_mf" : 'X\(//\)$' \| \
15865	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15866$as_echo X/"$am_mf" |
15867    sed '/^.*\/\([^/][^/]*\)\/*$/{
15868	    s//\1/
15869	    q
15870	  }
15871	  /^X\/\(\/\/\)$/{
15872	    s//\1/
15873	    q
15874	  }
15875	  /^X\/\(\/\).*/{
15876	    s//\1/
15877	    q
15878	  }
15879	  s/.*/./; q'`
15880    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15881      && sed -e '/# am--include-marker/d' "$am_filepart" \
15882        | $MAKE -f - am--depfiles" >&5
15883   (cd "$am_dirpart" \
15884      && sed -e '/# am--include-marker/d' "$am_filepart" \
15885        | $MAKE -f - am--depfiles) >&5 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } || am_rc=$?
15889  done
15890  if test $am_rc -ne 0; then
15891    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15893as_fn_error $? "Something went wrong bootstrapping makefile fragments
15894    for automatic dependency tracking.  If GNU make was not used, consider
15895    re-running the configure script with MAKE=\"gmake\" (or whatever is
15896    necessary).  You can also try re-running configure with the
15897    '--disable-dependency-tracking' option to at least be able to build
15898    the package (albeit without support for automatic dependency tracking).
15899See \`config.log' for more details" "$LINENO" 5; }
15900  fi
15901  { am_dirpart=; unset am_dirpart;}
15902  { am_filepart=; unset am_filepart;}
15903  { am_mf=; unset am_mf;}
15904  { am_rc=; unset am_rc;}
15905  rm -f conftest-deps.mk
15906}
15907 ;;
15908    "libtool":C)
15909
15910    # See if we are running on zsh, and set the options that allow our
15911    # commands through without removal of \ escapes.
15912    if test -n "${ZSH_VERSION+set}"; then
15913      setopt NO_GLOB_SUBST
15914    fi
15915
15916    cfgfile=${ofile}T
15917    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15918    $RM "$cfgfile"
15919
15920    cat <<_LT_EOF >> "$cfgfile"
15921#! $SHELL
15922# Generated automatically by $as_me ($PACKAGE) $VERSION
15923# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15924# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15925
15926# Provide generalized library-building support services.
15927# Written by Gordon Matzigkeit, 1996
15928
15929# Copyright (C) 2014 Free Software Foundation, Inc.
15930# This is free software; see the source for copying conditions.  There is NO
15931# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15932
15933# GNU Libtool is free software; you can redistribute it and/or modify
15934# it under the terms of the GNU General Public License as published by
15935# the Free Software Foundation; either version 2 of of the License, or
15936# (at your option) any later version.
15937#
15938# As a special exception to the GNU General Public License, if you
15939# distribute this file as part of a program or library that is built
15940# using GNU Libtool, you may include this file under the  same
15941# distribution terms that you use for the rest of that program.
15942#
15943# GNU Libtool is distributed in the hope that it will be useful, but
15944# WITHOUT ANY WARRANTY; without even the implied warranty of
15945# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15946# GNU General Public License for more details.
15947#
15948# You should have received a copy of the GNU General Public License
15949# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15950
15951
15952# The names of the tagged configurations supported by this script.
15953available_tags=''
15954
15955# Configured defaults for sys_lib_dlsearch_path munging.
15956: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15957
15958# ### BEGIN LIBTOOL CONFIG
15959
15960# Which release of libtool.m4 was used?
15961macro_version=$macro_version
15962macro_revision=$macro_revision
15963
15964# Whether or not to build shared libraries.
15965build_libtool_libs=$enable_shared
15966
15967# Whether or not to build static libraries.
15968build_old_libs=$enable_static
15969
15970# What type of objects to build.
15971pic_mode=$pic_mode
15972
15973# Whether or not to optimize for fast installation.
15974fast_install=$enable_fast_install
15975
15976# Shared archive member basename,for filename based shared library versioning on AIX.
15977shared_archive_member_spec=$shared_archive_member_spec
15978
15979# Shell to use when invoking shell scripts.
15980SHELL=$lt_SHELL
15981
15982# An echo program that protects backslashes.
15983ECHO=$lt_ECHO
15984
15985# The PATH separator for the build system.
15986PATH_SEPARATOR=$lt_PATH_SEPARATOR
15987
15988# The host system.
15989host_alias=$host_alias
15990host=$host
15991host_os=$host_os
15992
15993# The build system.
15994build_alias=$build_alias
15995build=$build
15996build_os=$build_os
15997
15998# A sed program that does not truncate output.
15999SED=$lt_SED
16000
16001# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16002Xsed="\$SED -e 1s/^X//"
16003
16004# A grep program that handles long lines.
16005GREP=$lt_GREP
16006
16007# An ERE matcher.
16008EGREP=$lt_EGREP
16009
16010# A literal string matcher.
16011FGREP=$lt_FGREP
16012
16013# A BSD- or MS-compatible name lister.
16014NM=$lt_NM
16015
16016# Whether we need soft or hard links.
16017LN_S=$lt_LN_S
16018
16019# What is the maximum length of a command?
16020max_cmd_len=$max_cmd_len
16021
16022# Object file suffix (normally "o").
16023objext=$ac_objext
16024
16025# Executable file suffix (normally "").
16026exeext=$exeext
16027
16028# whether the shell understands "unset".
16029lt_unset=$lt_unset
16030
16031# turn spaces into newlines.
16032SP2NL=$lt_lt_SP2NL
16033
16034# turn newlines into spaces.
16035NL2SP=$lt_lt_NL2SP
16036
16037# convert \$build file names to \$host format.
16038to_host_file_cmd=$lt_cv_to_host_file_cmd
16039
16040# convert \$build files to toolchain format.
16041to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16042
16043# An object symbol dumper.
16044OBJDUMP=$lt_OBJDUMP
16045
16046# Method to check whether dependent libraries are shared objects.
16047deplibs_check_method=$lt_deplibs_check_method
16048
16049# Command to use when deplibs_check_method = "file_magic".
16050file_magic_cmd=$lt_file_magic_cmd
16051
16052# How to find potential files when deplibs_check_method = "file_magic".
16053file_magic_glob=$lt_file_magic_glob
16054
16055# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16056want_nocaseglob=$lt_want_nocaseglob
16057
16058# DLL creation program.
16059DLLTOOL=$lt_DLLTOOL
16060
16061# Command to associate shared and link libraries.
16062sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16063
16064# The archiver.
16065AR=$lt_AR
16066
16067# Flags to create an archive.
16068AR_FLAGS=$lt_AR_FLAGS
16069
16070# How to feed a file listing to the archiver.
16071archiver_list_spec=$lt_archiver_list_spec
16072
16073# A symbol stripping program.
16074STRIP=$lt_STRIP
16075
16076# Commands used to install an old-style archive.
16077RANLIB=$lt_RANLIB
16078old_postinstall_cmds=$lt_old_postinstall_cmds
16079old_postuninstall_cmds=$lt_old_postuninstall_cmds
16080
16081# Whether to use a lock for old archive extraction.
16082lock_old_archive_extraction=$lock_old_archive_extraction
16083
16084# A C compiler.
16085LTCC=$lt_CC
16086
16087# LTCC compiler flags.
16088LTCFLAGS=$lt_CFLAGS
16089
16090# Take the output of nm and produce a listing of raw symbols and C names.
16091global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16092
16093# Transform the output of nm in a proper C declaration.
16094global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16095
16096# Transform the output of nm into a list of symbols to manually relocate.
16097global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16098
16099# Transform the output of nm in a C name address pair.
16100global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16101
16102# Transform the output of nm in a C name address pair when lib prefix is needed.
16103global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16104
16105# The name lister interface.
16106nm_interface=$lt_lt_cv_nm_interface
16107
16108# Specify filename containing input files for \$NM.
16109nm_file_list_spec=$lt_nm_file_list_spec
16110
16111# The root where to search for dependent libraries,and where our libraries should be installed.
16112lt_sysroot=$lt_sysroot
16113
16114# Command to truncate a binary pipe.
16115lt_truncate_bin=$lt_lt_cv_truncate_bin
16116
16117# The name of the directory that contains temporary libtool files.
16118objdir=$objdir
16119
16120# Used to examine libraries when file_magic_cmd begins with "file".
16121MAGIC_CMD=$MAGIC_CMD
16122
16123# Must we lock files when doing compilation?
16124need_locks=$lt_need_locks
16125
16126# Manifest tool.
16127MANIFEST_TOOL=$lt_MANIFEST_TOOL
16128
16129# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16130DSYMUTIL=$lt_DSYMUTIL
16131
16132# Tool to change global to local symbols on Mac OS X.
16133NMEDIT=$lt_NMEDIT
16134
16135# Tool to manipulate fat objects and archives on Mac OS X.
16136LIPO=$lt_LIPO
16137
16138# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16139OTOOL=$lt_OTOOL
16140
16141# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16142OTOOL64=$lt_OTOOL64
16143
16144# Old archive suffix (normally "a").
16145libext=$libext
16146
16147# Shared library suffix (normally ".so").
16148shrext_cmds=$lt_shrext_cmds
16149
16150# The commands to extract the exported symbol list from a shared archive.
16151extract_expsyms_cmds=$lt_extract_expsyms_cmds
16152
16153# Variables whose values should be saved in libtool wrapper scripts and
16154# restored at link time.
16155variables_saved_for_relink=$lt_variables_saved_for_relink
16156
16157# Do we need the "lib" prefix for modules?
16158need_lib_prefix=$need_lib_prefix
16159
16160# Do we need a version for libraries?
16161need_version=$need_version
16162
16163# Library versioning type.
16164version_type=$version_type
16165
16166# Shared library runtime path variable.
16167runpath_var=$runpath_var
16168
16169# Shared library path variable.
16170shlibpath_var=$shlibpath_var
16171
16172# Is shlibpath searched before the hard-coded library search path?
16173shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16174
16175# Format of library name prefix.
16176libname_spec=$lt_libname_spec
16177
16178# List of archive names.  First name is the real one, the rest are links.
16179# The last name is the one that the linker finds with -lNAME
16180library_names_spec=$lt_library_names_spec
16181
16182# The coded name of the library, if different from the real name.
16183soname_spec=$lt_soname_spec
16184
16185# Permission mode override for installation of shared libraries.
16186install_override_mode=$lt_install_override_mode
16187
16188# Command to use after installation of a shared archive.
16189postinstall_cmds=$lt_postinstall_cmds
16190
16191# Command to use after uninstallation of a shared archive.
16192postuninstall_cmds=$lt_postuninstall_cmds
16193
16194# Commands used to finish a libtool library installation in a directory.
16195finish_cmds=$lt_finish_cmds
16196
16197# As "finish_cmds", except a single script fragment to be evaled but
16198# not shown.
16199finish_eval=$lt_finish_eval
16200
16201# Whether we should hardcode library paths into libraries.
16202hardcode_into_libs=$hardcode_into_libs
16203
16204# Compile-time system search path for libraries.
16205sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16206
16207# Detected run-time system search path for libraries.
16208sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16209
16210# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16211configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16212
16213# Whether dlopen is supported.
16214dlopen_support=$enable_dlopen
16215
16216# Whether dlopen of programs is supported.
16217dlopen_self=$enable_dlopen_self
16218
16219# Whether dlopen of statically linked programs is supported.
16220dlopen_self_static=$enable_dlopen_self_static
16221
16222# Commands to strip libraries.
16223old_striplib=$lt_old_striplib
16224striplib=$lt_striplib
16225
16226
16227# The linker used to build libraries.
16228LD=$lt_LD
16229
16230# How to create reloadable object files.
16231reload_flag=$lt_reload_flag
16232reload_cmds=$lt_reload_cmds
16233
16234# Commands used to build an old-style archive.
16235old_archive_cmds=$lt_old_archive_cmds
16236
16237# A language specific compiler.
16238CC=$lt_compiler
16239
16240# Is the compiler the GNU compiler?
16241with_gcc=$GCC
16242
16243# Compiler flag to turn off builtin functions.
16244no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16245
16246# Additional compiler flags for building library objects.
16247pic_flag=$lt_lt_prog_compiler_pic
16248
16249# How to pass a linker flag through the compiler.
16250wl=$lt_lt_prog_compiler_wl
16251
16252# Compiler flag to prevent dynamic linking.
16253link_static_flag=$lt_lt_prog_compiler_static
16254
16255# Does compiler simultaneously support -c and -o options?
16256compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16257
16258# Whether or not to add -lc for building shared libraries.
16259build_libtool_need_lc=$archive_cmds_need_lc
16260
16261# Whether or not to disallow shared libs when runtime libs are static.
16262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16263
16264# Compiler flag to allow reflexive dlopens.
16265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16266
16267# Compiler flag to generate shared objects directly from archives.
16268whole_archive_flag_spec=$lt_whole_archive_flag_spec
16269
16270# Whether the compiler copes with passing no objects directly.
16271compiler_needs_object=$lt_compiler_needs_object
16272
16273# Create an old-style archive from a shared archive.
16274old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16275
16276# Create a temporary old-style archive to link instead of a shared archive.
16277old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16278
16279# Commands used to build a shared archive.
16280archive_cmds=$lt_archive_cmds
16281archive_expsym_cmds=$lt_archive_expsym_cmds
16282
16283# Commands used to build a loadable module if different from building
16284# a shared archive.
16285module_cmds=$lt_module_cmds
16286module_expsym_cmds=$lt_module_expsym_cmds
16287
16288# Whether we are building with GNU ld or not.
16289with_gnu_ld=$lt_with_gnu_ld
16290
16291# Flag that allows shared libraries with undefined symbols to be built.
16292allow_undefined_flag=$lt_allow_undefined_flag
16293
16294# Flag that enforces no undefined symbols.
16295no_undefined_flag=$lt_no_undefined_flag
16296
16297# Flag to hardcode \$libdir into a binary during linking.
16298# This must work even if \$libdir does not exist
16299hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16300
16301# Whether we need a single "-rpath" flag with a separated argument.
16302hardcode_libdir_separator=$lt_hardcode_libdir_separator
16303
16304# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16305# DIR into the resulting binary.
16306hardcode_direct=$hardcode_direct
16307
16308# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16309# DIR into the resulting binary and the resulting library dependency is
16310# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16311# library is relocated.
16312hardcode_direct_absolute=$hardcode_direct_absolute
16313
16314# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16315# into the resulting binary.
16316hardcode_minus_L=$hardcode_minus_L
16317
16318# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16319# into the resulting binary.
16320hardcode_shlibpath_var=$hardcode_shlibpath_var
16321
16322# Set to "yes" if building a shared library automatically hardcodes DIR
16323# into the library and all subsequent libraries and executables linked
16324# against it.
16325hardcode_automatic=$hardcode_automatic
16326
16327# Set to yes if linker adds runtime paths of dependent libraries
16328# to runtime path list.
16329inherit_rpath=$inherit_rpath
16330
16331# Whether libtool must link a program against all its dependency libraries.
16332link_all_deplibs=$link_all_deplibs
16333
16334# Set to "yes" if exported symbols are required.
16335always_export_symbols=$always_export_symbols
16336
16337# The commands to list exported symbols.
16338export_symbols_cmds=$lt_export_symbols_cmds
16339
16340# Symbols that should not be listed in the preloaded symbols.
16341exclude_expsyms=$lt_exclude_expsyms
16342
16343# Symbols that must always be exported.
16344include_expsyms=$lt_include_expsyms
16345
16346# Commands necessary for linking programs (against libraries) with templates.
16347prelink_cmds=$lt_prelink_cmds
16348
16349# Commands necessary for finishing linking programs.
16350postlink_cmds=$lt_postlink_cmds
16351
16352# Specify filename containing input files.
16353file_list_spec=$lt_file_list_spec
16354
16355# How to hardcode a shared library path into an executable.
16356hardcode_action=$hardcode_action
16357
16358# ### END LIBTOOL CONFIG
16359
16360_LT_EOF
16361
16362    cat <<'_LT_EOF' >> "$cfgfile"
16363
16364# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16365
16366# func_munge_path_list VARIABLE PATH
16367# -----------------------------------
16368# VARIABLE is name of variable containing _space_ separated list of
16369# directories to be munged by the contents of PATH, which is string
16370# having a format:
16371# "DIR[:DIR]:"
16372#       string "DIR[ DIR]" will be prepended to VARIABLE
16373# ":DIR[:DIR]"
16374#       string "DIR[ DIR]" will be appended to VARIABLE
16375# "DIRP[:DIRP]::[DIRA:]DIRA"
16376#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16377#       "DIRA[ DIRA]" will be appended to VARIABLE
16378# "DIR[:DIR]"
16379#       VARIABLE will be replaced by "DIR[ DIR]"
16380func_munge_path_list ()
16381{
16382    case x$2 in
16383    x)
16384        ;;
16385    *:)
16386        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16387        ;;
16388    x:*)
16389        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16390        ;;
16391    *::*)
16392        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16393        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16394        ;;
16395    *)
16396        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16397        ;;
16398    esac
16399}
16400
16401
16402# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16403func_cc_basename ()
16404{
16405    for cc_temp in $*""; do
16406      case $cc_temp in
16407        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16408        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16409        \-*) ;;
16410        *) break;;
16411      esac
16412    done
16413    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16414}
16415
16416
16417# ### END FUNCTIONS SHARED WITH CONFIGURE
16418
16419_LT_EOF
16420
16421  case $host_os in
16422  aix3*)
16423    cat <<\_LT_EOF >> "$cfgfile"
16424# AIX sometimes has problems with the GCC collect2 program.  For some
16425# reason, if we set the COLLECT_NAMES environment variable, the problems
16426# vanish in a puff of smoke.
16427if test set != "${COLLECT_NAMES+set}"; then
16428  COLLECT_NAMES=
16429  export COLLECT_NAMES
16430fi
16431_LT_EOF
16432    ;;
16433  esac
16434
16435
16436ltmain=$ac_aux_dir/ltmain.sh
16437
16438
16439  # We use sed instead of cat because bash on DJGPP gets confused if
16440  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16441  # text mode, it properly converts lines to CR/LF.  This bash problem
16442  # is reportedly fixed, but why not run on old versions too?
16443  sed '$q' "$ltmain" >> "$cfgfile" \
16444     || (rm -f "$cfgfile"; exit 1)
16445
16446   mv -f "$cfgfile" "$ofile" ||
16447    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16448  chmod +x "$ofile"
16449
16450 ;;
16451
16452  esac
16453done # for ac_tag
16454
16455
16456as_fn_exit 0
16457_ACEOF
16458ac_clean_files=$ac_clean_files_save
16459
16460test $ac_write_fail = 0 ||
16461  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16462
16463
16464# configure is writing to config.log, and then calls config.status.
16465# config.status does its own redirection, appending to config.log.
16466# Unfortunately, on DOS this fails, as config.log is still kept open
16467# by configure, so config.status won't be able to write to it; its
16468# output is simply discarded.  So we exec the FD to /dev/null,
16469# effectively closing config.log, so it can be properly (re)opened and
16470# appended to by config.status.  When coming back to configure, we
16471# need to make the FD available again.
16472if test "$no_create" != yes; then
16473  ac_cs_success=:
16474  ac_config_status_args=
16475  test "$silent" = yes &&
16476    ac_config_status_args="$ac_config_status_args --quiet"
16477  exec 5>/dev/null
16478  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16479  exec 5>>config.log
16480  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16481  # would make configure fail if this is the last instruction.
16482  $ac_cs_success || as_fn_exit 1
16483fi
16484if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16485  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16486$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16487fi
16488
16489