xref: /iperf/configure (revision 75bd9fc9)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for iperf 3.10.1+.
4#
5# Report bugs to <https://github.com/esnet/iperf>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell [email protected] and
279$0: https://github.com/esnet/iperf about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='iperf'
623PACKAGE_TARNAME='iperf'
624PACKAGE_VERSION='3.10.1+'
625PACKAGE_STRING='iperf 3.10.1+'
626PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
627PACKAGE_URL='https://software.es.net/iperf/'
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_subst_vars='am__EXEEXT_FALSE
662am__EXEEXT_TRUE
663LTLIBOBJS
664LIBOBJS
665OPENSSL_LDFLAGS
666OPENSSL_LIBS
667OPENSSL_INCLUDES
668PKG_CONFIG
669ENABLE_PROFILING_FALSE
670ENABLE_PROFILING_TRUE
671MAINT
672MAINTAINER_MODE_FALSE
673MAINTAINER_MODE_TRUE
674LT_SYS_LIBRARY_PATH
675OTOOL64
676OTOOL
677LIPO
678NMEDIT
679DSYMUTIL
680MANIFEST_TOOL
681RANLIB
682ac_ct_AR
683AR
684DLLTOOL
685OBJDUMP
686LN_S
687NM
688ac_ct_DUMPBIN
689DUMPBIN
690LD
691FGREP
692EGREP
693GREP
694SED
695am__fastdepCC_FALSE
696am__fastdepCC_TRUE
697CCDEPMODE
698am__nodep
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
719LIBTOOL
720AM_BACKSLASH
721AM_DEFAULT_VERBOSITY
722AM_DEFAULT_V
723AM_V
724am__untar
725am__tar
726AMTAR
727am__leading_dot
728SET_MAKE
729AWK
730mkdir_p
731MKDIR_P
732INSTALL_STRIP_PROGRAM
733STRIP
734install_sh
735MAKEINFO
736AUTOHEADER
737AUTOMAKE
738AUTOCONF
739ACLOCAL
740VERSION
741PACKAGE
742CYGPATH_W
743am__isrc
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747ENABLE_STATIC_BIN_FALSE
748ENABLE_STATIC_BIN_TRUE
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768runstatedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL
788am__quote'
789ac_subst_files=''
790ac_user_opts='
791enable_option_checking
792enable_static_bin
793enable_silent_rules
794enable_shared
795enable_static
796with_pic
797enable_fast_install
798with_aix_soname
799enable_dependency_tracking
800with_gnu_ld
801with_sysroot
802enable_libtool_lock
803enable_maintainer_mode
804enable_profiling
805with_sctp
806with_openssl
807'
808      ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
816LT_SYS_LIBRARY_PATH'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855runstatedir='${localstatedir}/run'
856includedir='${prefix}/include'
857oldincludedir='/usr/include'
858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
867
868ac_prev=
869ac_dashdash=
870for ac_option
871do
872  # If the previous option needs an argument, assign it.
873  if test -n "$ac_prev"; then
874    eval $ac_prev=\$ac_option
875    ac_prev=
876    continue
877  fi
878
879  case $ac_option in
880  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881  *=)   ac_optarg= ;;
882  *)    ac_optarg=yes ;;
883  esac
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: \`$ac_useropt'"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: \`$ac_useropt'"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -runstatedir | --runstatedir | --runstatedi | --runstated \
1107  | --runstate | --runstat | --runsta | --runst | --runs \
1108  | --run | --ru | --r)
1109    ac_prev=runstatedir ;;
1110  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1111  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1112  | --run=* | --ru=* | --r=*)
1113    runstatedir=$ac_optarg ;;
1114
1115  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116    ac_prev=sbindir ;;
1117  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118  | --sbi=* | --sb=*)
1119    sbindir=$ac_optarg ;;
1120
1121  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123  | --sharedst | --shareds | --shared | --share | --shar \
1124  | --sha | --sh)
1125    ac_prev=sharedstatedir ;;
1126  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129  | --sha=* | --sh=*)
1130    sharedstatedir=$ac_optarg ;;
1131
1132  -site | --site | --sit)
1133    ac_prev=site ;;
1134  -site=* | --site=* | --sit=*)
1135    site=$ac_optarg ;;
1136
1137  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138    ac_prev=srcdir ;;
1139  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140    srcdir=$ac_optarg ;;
1141
1142  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143  | --syscon | --sysco | --sysc | --sys | --sy)
1144    ac_prev=sysconfdir ;;
1145  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147    sysconfdir=$ac_optarg ;;
1148
1149  -target | --target | --targe | --targ | --tar | --ta | --t)
1150    ac_prev=target_alias ;;
1151  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152    target_alias=$ac_optarg ;;
1153
1154  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155    verbose=yes ;;
1156
1157  -version | --version | --versio | --versi | --vers | -V)
1158    ac_init_version=: ;;
1159
1160  -with-* | --with-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: \`$ac_useropt'"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=\$ac_optarg ;;
1175
1176  -without-* | --without-*)
1177    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180      as_fn_error $? "invalid package name: \`$ac_useropt'"
1181    ac_useropt_orig=$ac_useropt
1182    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1183    case $ac_user_opts in
1184      *"
1185"with_$ac_useropt"
1186"*) ;;
1187      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188	 ac_unrecognized_sep=', ';;
1189    esac
1190    eval with_$ac_useropt=no ;;
1191
1192  --x)
1193    # Obsolete; use --with-x.
1194    with_x=yes ;;
1195
1196  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197  | --x-incl | --x-inc | --x-in | --x-i)
1198    ac_prev=x_includes ;;
1199  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201    x_includes=$ac_optarg ;;
1202
1203  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205    ac_prev=x_libraries ;;
1206  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208    x_libraries=$ac_optarg ;;
1209
1210  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information"
1212    ;;
1213
1214  *=*)
1215    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216    # Reject names that are not valid shell variable names.
1217    case $ac_envvar in #(
1218      '' | [0-9]* | *[!_$as_cr_alnum]* )
1219      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220    esac
1221    eval $ac_envvar=\$ac_optarg
1222    export $ac_envvar ;;
1223
1224  *)
1225    # FIXME: should be removed in autoconf 3.0.
1226    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1227    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1229    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230    ;;
1231
1232  esac
1233done
1234
1235if test -n "$ac_prev"; then
1236  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237  as_fn_error $? "missing argument to $ac_option"
1238fi
1239
1240if test -n "$ac_unrecognized_opts"; then
1241  case $enable_option_checking in
1242    no) ;;
1243    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245  esac
1246fi
1247
1248# Check all directory arguments for consistency.
1249for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250		datadir sysconfdir sharedstatedir localstatedir includedir \
1251		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252		libdir localedir mandir runstatedir
1253do
1254  eval ac_val=\$$ac_var
1255  # Remove trailing slashes.
1256  case $ac_val in
1257    */ )
1258      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259      eval $ac_var=\$ac_val;;
1260  esac
1261  # Be sure to have absolute directory names.
1262  case $ac_val in
1263    [\\/$]* | ?:[\\/]* )  continue;;
1264    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265  esac
1266  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267done
1268
1269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
1271# FIXME: To remove some day.
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
1276# FIXME: To remove some day.
1277if test "x$host_alias" != x; then
1278  if test "x$build_alias" = x; then
1279    cross_compiling=maybe
1280  elif test "x$build_alias" != "x$host_alias"; then
1281    cross_compiling=yes
1282  fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294  as_fn_error $? "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296  as_fn_error $? "pwd does not report name of working directory"
1297
1298
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301  ac_srcdir_defaulted=yes
1302  # Try the directory containing this script, then the parent directory.
1303  ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305	 X"$as_myself" : 'X\(//\)[^/]' \| \
1306	 X"$as_myself" : 'X\(//\)$' \| \
1307	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308printf "%s\n" X"$as_myself" |
1309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)[^/].*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\/\)$/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\).*/{
1322	    s//\1/
1323	    q
1324	  }
1325	  s/.*/./; q'`
1326  srcdir=$ac_confdir
1327  if test ! -r "$srcdir/$ac_unique_file"; then
1328    srcdir=..
1329  fi
1330else
1331  ac_srcdir_defaulted=no
1332fi
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340	pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343  srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for ac_var in $ac_precious_vars; do
1352  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353  eval ac_env_${ac_var}_value=\$${ac_var}
1354  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if test "$ac_init_help" = "long"; then
1362  # Omit some internal or obsolete options to make the list less imposing.
1363  # This message is too long to be a string in the A/UX 3.1 sh.
1364  cat <<_ACEOF
1365\`configure' configures iperf 3.10.1+ to adapt to many kinds of systems.
1366
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
1375  -h, --help              display this help and exit
1376      --help=short        display options specific to this package
1377      --help=recursive    display the short help of all the included packages
1378  -V, --version           display version information and exit
1379  -q, --quiet, --silent   do not print \`checking ...' messages
1380      --cache-file=FILE   cache test results in FILE [disabled]
1381  -C, --config-cache      alias for \`--cache-file=config.cache'
1382  -n, --no-create         do not create output files
1383      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385Installation directories:
1386  --prefix=PREFIX         install architecture-independent files in PREFIX
1387                          [$ac_default_prefix]
1388  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                          [PREFIX]
1390
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine tuning of the installation directories:
1399  --bindir=DIR            user executables [EPREFIX/bin]
1400  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1401  --libexecdir=DIR        program executables [EPREFIX/libexec]
1402  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1403  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1404  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1405  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1406  --libdir=DIR            object code libraries [EPREFIX/lib]
1407  --includedir=DIR        C header files [PREFIX/include]
1408  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411  --infodir=DIR           info documentation [DATAROOTDIR/info]
1412  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413  --mandir=DIR            man documentation [DATAROOTDIR/man]
1414  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1415  --htmldir=DIR           html documentation [DOCDIR]
1416  --dvidir=DIR            dvi documentation [DOCDIR]
1417  --pdfdir=DIR            pdf documentation [DOCDIR]
1418  --psdir=DIR             ps documentation [DOCDIR]
1419_ACEOF
1420
1421  cat <<\_ACEOF
1422
1423Program names:
1424  --program-prefix=PREFIX            prepend PREFIX to installed program names
1425  --program-suffix=SUFFIX            append SUFFIX to installed program names
1426  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1427
1428System types:
1429  --build=BUILD     configure for building on BUILD [guessed]
1430  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1431_ACEOF
1432fi
1433
1434if test -n "$ac_init_help"; then
1435  case $ac_init_help in
1436     short | recursive ) echo "Configuration of iperf 3.10.1+:";;
1437   esac
1438  cat <<\_ACEOF
1439
1440Optional Features:
1441  --disable-option-checking  ignore unrecognized --enable/--with options
1442  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444  --enable-static-bin     link iperf3 binary statically
1445  --enable-silent-rules   less verbose build output (undo: "make V=1")
1446  --disable-silent-rules  verbose build output (undo: "make V=0")
1447  --enable-shared[=PKGS]  build shared libraries [default=yes]
1448  --enable-static[=PKGS]  build static libraries [default=yes]
1449  --enable-fast-install[=PKGS]
1450                          optimize for fast installation [default=yes]
1451  --enable-dependency-tracking
1452                          do not reject slow dependency extractors
1453  --disable-dependency-tracking
1454                          speeds up one-time build
1455  --disable-libtool-lock  avoid locking (might break parallel builds)
1456  --enable-maintainer-mode
1457                          enable make rules and dependencies not useful (and
1458                          sometimes confusing) to the casual installer
1459  --enable-profiling      Enable iperf3 profiling binary
1460
1461Optional Packages:
1462  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1465                          both]
1466  --with-aix-soname=aix|svr4|both
1467                          shared library versioning (aka "SONAME") variant to
1468                          provide on AIX, [default=aix].
1469  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1470  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1471                          compiler's sysroot if not specified).
1472  --without-sctp          disable SCTP
1473  --with-openssl=DIR      root of the OpenSSL directory
1474
1475Some influential environment variables:
1476  CC          C compiler command
1477  CFLAGS      C compiler flags
1478  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1479              nonstandard directory <lib dir>
1480  LIBS        libraries to pass to the linker, e.g. -l<library>
1481  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482              you have headers in a nonstandard directory <include dir>
1483  LT_SYS_LIBRARY_PATH
1484              User-defined run-time library search path.
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to <https://github.com/esnet/iperf>.
1490iperf home page: <https://software.es.net/iperf/>.
1491_ACEOF
1492ac_status=$?
1493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496  # If there are subdirs, report their specific --help.
1497  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498    test -d "$ac_dir" ||
1499      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500      continue
1501    ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1507  # A ".." for each directory in $ac_dir_suffix.
1508  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509  case $ac_top_builddir_sub in
1510  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512  esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520  .)  # We are building in place.
1521    ac_srcdir=.
1522    ac_top_srcdir=$ac_top_builddir_sub
1523    ac_abs_top_srcdir=$ac_pwd ;;
1524  [\\/]* | ?:[\\/]* )  # Absolute name.
1525    ac_srcdir=$srcdir$ac_dir_suffix;
1526    ac_top_srcdir=$srcdir
1527    ac_abs_top_srcdir=$srcdir ;;
1528  *) # Relative name.
1529    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530    ac_top_srcdir=$ac_top_build_prefix$srcdir
1531    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535    cd "$ac_dir" || { ac_status=$?; continue; }
1536    # Check for configure.gnu first; this name is used for a wrapper for
1537    # Metaconfig's "Configure" on case-insensitive file systems.
1538    if test -f "$ac_srcdir/configure.gnu"; then
1539      echo &&
1540      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541    elif test -f "$ac_srcdir/configure"; then
1542      echo &&
1543      $SHELL "$ac_srcdir/configure" --help=recursive
1544    else
1545      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546    fi || ac_status=$?
1547    cd "$ac_pwd" || { ac_status=$?; break; }
1548  done
1549fi
1550
1551test -n "$ac_init_help" && exit $ac_status
1552if $ac_init_version; then
1553  cat <<\_ACEOF
1554iperf configure 3.10.1+
1555generated by GNU Autoconf 2.71
1556
1557Copyright (C) 2021 Free Software Foundation, Inc.
1558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
1560_ACEOF
1561  exit
1562fi
1563
1564## ------------------------ ##
1565## Autoconf initialization. ##
1566## ------------------------ ##
1567
1568# ac_fn_c_try_compile LINENO
1569# --------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_compile ()
1572{
1573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574  rm -f conftest.$ac_objext conftest.beam
1575  if { { ac_try="$ac_compile"
1576case "(($ac_try" in
1577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578  *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581printf "%s\n" "$ac_try_echo"; } >&5
1582  (eval "$ac_compile") 2>conftest.err
1583  ac_status=$?
1584  if test -s conftest.err; then
1585    grep -v '^ *+' conftest.err >conftest.er1
1586    cat conftest.er1 >&5
1587    mv -f conftest.er1 conftest.err
1588  fi
1589  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590  test $ac_status = 0; } && {
1591	 test -z "$ac_c_werror_flag" ||
1592	 test ! -s conftest.err
1593       } && test -s conftest.$ac_objext
1594then :
1595  ac_retval=0
1596else $as_nop
1597  printf "%s\n" "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600	ac_retval=1
1601fi
1602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603  as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_compile
1606
1607# ac_fn_c_try_link LINENO
1608# -----------------------
1609# Try to link conftest.$ac_ext, and return whether this succeeded.
1610ac_fn_c_try_link ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1614  if { { ac_try="$ac_link"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620printf "%s\n" "$ac_try_echo"; } >&5
1621  (eval "$ac_link") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && {
1630	 test -z "$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       } && test -s conftest$ac_exeext && {
1633	 test "$cross_compiling" = yes ||
1634	 test -x conftest$ac_exeext
1635       }
1636then :
1637  ac_retval=0
1638else $as_nop
1639  printf "%s\n" "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642	ac_retval=1
1643fi
1644  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646  # interfere with the next link command; also delete a directory that is
1647  # left behind by Apple's compiler.  We do this before executing the actions.
1648  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_link
1653
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists and can be compiled using the include files in
1657# INCLUDES, setting the cache variable VAR accordingly.
1658ac_fn_c_check_header_compile ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662printf %s "checking for $2... " >&6; }
1663if eval test \${$3+y}
1664then :
1665  printf %s "(cached) " >&6
1666else $as_nop
1667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"
1673then :
1674  eval "$3=yes"
1675else $as_nop
1676  eval "$3=no"
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1679fi
1680eval ac_res=\$$3
1681	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682printf "%s\n" "$ac_res" >&6; }
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685} # ac_fn_c_check_header_compile
1686
1687# ac_fn_c_check_func LINENO FUNC VAR
1688# ----------------------------------
1689# Tests whether FUNC exists, setting the cache variable VAR accordingly
1690ac_fn_c_check_func ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694printf %s "checking for $2... " >&6; }
1695if eval test \${$3+y}
1696then :
1697  printf %s "(cached) " >&6
1698else $as_nop
1699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h.  */
1701/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1702   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1703#define $2 innocuous_$2
1704
1705/* System header to define __stub macros and hopefully few prototypes,
1706   which can conflict with char $2 (); below.  */
1707
1708#include <limits.h>
1709#undef $2
1710
1711/* Override any GCC internal prototype to avoid an error.
1712   Use char because int might match the return type of a GCC
1713   builtin and then its argument prototype would still apply.  */
1714#ifdef __cplusplus
1715extern "C"
1716#endif
1717char $2 ();
1718/* The GNU C library defines this for functions which it implements
1719    to always fail with ENOSYS.  Some functions are actually named
1720    something starting with __ and the normal name is an alias.  */
1721#if defined __stub_$2 || defined __stub___$2
1722choke me
1723#endif
1724
1725int
1726main (void)
1727{
1728return $2 ();
1729  ;
1730  return 0;
1731}
1732_ACEOF
1733if ac_fn_c_try_link "$LINENO"
1734then :
1735  eval "$3=yes"
1736else $as_nop
1737  eval "$3=no"
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.beam \
1740    conftest$ac_exeext conftest.$ac_ext
1741fi
1742eval ac_res=\$$3
1743	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744printf "%s\n" "$ac_res" >&6; }
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747} # ac_fn_c_check_func
1748
1749# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1750# ----------------------------------------------------
1751# Tries to find if the field MEMBER exists in type AGGR, after including
1752# INCLUDES, setting cache variable VAR accordingly.
1753ac_fn_c_check_member ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1757printf %s "checking for $2.$3... " >&6; }
1758if eval test \${$4+y}
1759then :
1760  printf %s "(cached) " >&6
1761else $as_nop
1762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h.  */
1764$5
1765int
1766main (void)
1767{
1768static $2 ac_aggr;
1769if (ac_aggr.$3)
1770return 0;
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_compile "$LINENO"
1776then :
1777  eval "$4=yes"
1778else $as_nop
1779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h.  */
1781$5
1782int
1783main (void)
1784{
1785static $2 ac_aggr;
1786if (sizeof ac_aggr.$3)
1787return 0;
1788  ;
1789  return 0;
1790}
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"
1793then :
1794  eval "$4=yes"
1795else $as_nop
1796  eval "$4=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1801fi
1802eval ac_res=\$$4
1803	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804printf "%s\n" "$ac_res" >&6; }
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807} # ac_fn_c_check_member
1808ac_configure_args_raw=
1809for ac_arg
1810do
1811  case $ac_arg in
1812  *\'*)
1813    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814  esac
1815  as_fn_append ac_configure_args_raw " '$ac_arg'"
1816done
1817
1818case $ac_configure_args_raw in
1819  *$as_nl*)
1820    ac_safe_unquote= ;;
1821  *)
1822    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1823    ac_unsafe_a="$ac_unsafe_z#~"
1824    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1825    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1826esac
1827
1828cat >config.log <<_ACEOF
1829This file contains any messages produced by compilers while
1830running configure, to aid debugging if configure makes a mistake.
1831
1832It was created by iperf $as_me 3.10.1+, which was
1833generated by GNU Autoconf 2.71.  Invocation command line was
1834
1835  $ $0$ac_configure_args_raw
1836
1837_ACEOF
1838exec 5>>config.log
1839{
1840cat <<_ASUNAME
1841## --------- ##
1842## Platform. ##
1843## --------- ##
1844
1845hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1846uname -m = `(uname -m) 2>/dev/null || echo unknown`
1847uname -r = `(uname -r) 2>/dev/null || echo unknown`
1848uname -s = `(uname -s) 2>/dev/null || echo unknown`
1849uname -v = `(uname -v) 2>/dev/null || echo unknown`
1850
1851/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1852/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1853
1854/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1855/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1856/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1857/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1858/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1859/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1860/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1861
1862_ASUNAME
1863
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867  IFS=$as_save_IFS
1868  case $as_dir in #(((
1869    '') as_dir=./ ;;
1870    */) ;;
1871    *) as_dir=$as_dir/ ;;
1872  esac
1873    printf "%s\n" "PATH: $as_dir"
1874  done
1875IFS=$as_save_IFS
1876
1877} >&5
1878
1879cat >&5 <<_ACEOF
1880
1881
1882## ----------- ##
1883## Core tests. ##
1884## ----------- ##
1885
1886_ACEOF
1887
1888
1889# Keep a trace of the command line.
1890# Strip out --no-create and --no-recursion so they do not pile up.
1891# Strip out --silent because we don't want to record it for future runs.
1892# Also quote any args containing shell meta-characters.
1893# Make two passes to allow for proper duplicate-argument suppression.
1894ac_configure_args=
1895ac_configure_args0=
1896ac_configure_args1=
1897ac_must_keep_next=false
1898for ac_pass in 1 2
1899do
1900  for ac_arg
1901  do
1902    case $ac_arg in
1903    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1904    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1905    | -silent | --silent | --silen | --sile | --sil)
1906      continue ;;
1907    *\'*)
1908      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1909    esac
1910    case $ac_pass in
1911    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912    2)
1913      as_fn_append ac_configure_args1 " '$ac_arg'"
1914      if test $ac_must_keep_next = true; then
1915	ac_must_keep_next=false # Got value, back to normal.
1916      else
1917	case $ac_arg in
1918	  *=* | --config-cache | -C | -disable-* | --disable-* \
1919	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1920	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1921	  | -with-* | --with-* | -without-* | --without-* | --x)
1922	    case "$ac_configure_args0 " in
1923	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1924	    esac
1925	    ;;
1926	  -* ) ac_must_keep_next=true ;;
1927	esac
1928      fi
1929      as_fn_append ac_configure_args " '$ac_arg'"
1930      ;;
1931    esac
1932  done
1933done
1934{ ac_configure_args0=; unset ac_configure_args0;}
1935{ ac_configure_args1=; unset ac_configure_args1;}
1936
1937# When interrupted or exit'd, cleanup temporary files, and complete
1938# config.log.  We remove comments because anyway the quotes in there
1939# would cause problems or look ugly.
1940# WARNING: Use '\'' to represent an apostrophe within the trap.
1941# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1942trap 'exit_status=$?
1943  # Sanitize IFS.
1944  IFS=" ""	$as_nl"
1945  # Save into config.log some information that might help in debugging.
1946  {
1947    echo
1948
1949    printf "%s\n" "## ---------------- ##
1950## Cache variables. ##
1951## ---------------- ##"
1952    echo
1953    # The following way of writing the cache mishandles newlines in values,
1954(
1955  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1956    eval ac_val=\$$ac_var
1957    case $ac_val in #(
1958    *${as_nl}*)
1959      case $ac_var in #(
1960      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1961printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1962      esac
1963      case $ac_var in #(
1964      _ | IFS | as_nl) ;; #(
1965      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1966      *) { eval $ac_var=; unset $ac_var;} ;;
1967      esac ;;
1968    esac
1969  done
1970  (set) 2>&1 |
1971    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972    *${as_nl}ac_space=\ *)
1973      sed -n \
1974	"s/'\''/'\''\\\\'\'''\''/g;
1975	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1976      ;; #(
1977    *)
1978      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1979      ;;
1980    esac |
1981    sort
1982)
1983    echo
1984
1985    printf "%s\n" "## ----------------- ##
1986## Output variables. ##
1987## ----------------- ##"
1988    echo
1989    for ac_var in $ac_subst_vars
1990    do
1991      eval ac_val=\$$ac_var
1992      case $ac_val in
1993      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994      esac
1995      printf "%s\n" "$ac_var='\''$ac_val'\''"
1996    done | sort
1997    echo
1998
1999    if test -n "$ac_subst_files"; then
2000      printf "%s\n" "## ------------------- ##
2001## File substitutions. ##
2002## ------------------- ##"
2003      echo
2004      for ac_var in $ac_subst_files
2005      do
2006	eval ac_val=\$$ac_var
2007	case $ac_val in
2008	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009	esac
2010	printf "%s\n" "$ac_var='\''$ac_val'\''"
2011      done | sort
2012      echo
2013    fi
2014
2015    if test -s confdefs.h; then
2016      printf "%s\n" "## ----------- ##
2017## confdefs.h. ##
2018## ----------- ##"
2019      echo
2020      cat confdefs.h
2021      echo
2022    fi
2023    test "$ac_signal" != 0 &&
2024      printf "%s\n" "$as_me: caught signal $ac_signal"
2025    printf "%s\n" "$as_me: exit $exit_status"
2026  } >&5
2027  rm -f core *.core core.conftest.* &&
2028    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2029    exit $exit_status
2030' 0
2031for ac_signal in 1 2 13 15; do
2032  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2033done
2034ac_signal=0
2035
2036# confdefs.h avoids OS command line length limits that DEFS can exceed.
2037rm -f -r conftest* confdefs.h
2038
2039printf "%s\n" "/* confdefs.h */" > confdefs.h
2040
2041# Predefined preprocessor variables.
2042
2043printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2044
2045printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2046
2047printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2048
2049printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2050
2051printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2052
2053printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2054
2055
2056# Let the site file select an alternate cache file if it wants to.
2057# Prefer an explicitly selected file to automatically selected ones.
2058if test -n "$CONFIG_SITE"; then
2059  ac_site_files="$CONFIG_SITE"
2060elif test "x$prefix" != xNONE; then
2061  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2062else
2063  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2064fi
2065
2066for ac_site_file in $ac_site_files
2067do
2068  case $ac_site_file in #(
2069  */*) :
2070     ;; #(
2071  *) :
2072    ac_site_file=./$ac_site_file ;;
2073esac
2074  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2075    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2077    sed 's/^/| /' "$ac_site_file" >&5
2078    . "$ac_site_file" \
2079      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2080printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2081as_fn_error $? "failed to load site script $ac_site_file
2082See \`config.log' for more details" "$LINENO" 5; }
2083  fi
2084done
2085
2086if test -r "$cache_file"; then
2087  # Some versions of bash will fail to source /dev/null (special files
2088  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2089  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2090    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2091printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2092    case $cache_file in
2093      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2094      *)                      . "./$cache_file";;
2095    esac
2096  fi
2097else
2098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2099printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2100  >$cache_file
2101fi
2102
2103# Test code for whether the C compiler supports C89 (global declarations)
2104ac_c_conftest_c89_globals='
2105/* Does the compiler advertise C89 conformance?
2106   Do not test the value of __STDC__, because some compilers set it to 0
2107   while being otherwise adequately conformant. */
2108#if !defined __STDC__
2109# error "Compiler does not advertise C89 conformance"
2110#endif
2111
2112#include <stddef.h>
2113#include <stdarg.h>
2114struct stat;
2115/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2116struct buf { int x; };
2117struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2118static char *e (p, i)
2119     char **p;
2120     int i;
2121{
2122  return p[i];
2123}
2124static char *f (char * (*g) (char **, int), char **p, ...)
2125{
2126  char *s;
2127  va_list v;
2128  va_start (v,p);
2129  s = g (p, va_arg (v,int));
2130  va_end (v);
2131  return s;
2132}
2133
2134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2135   function prototypes and stuff, but not \xHH hex character constants.
2136   These do not provoke an error unfortunately, instead are silently treated
2137   as an "x".  The following induces an error, until -std is added to get
2138   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2139   array size at least.  It is necessary to write \x00 == 0 to get something
2140   that is true only with -std.  */
2141int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2142
2143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2144   inside strings and character constants.  */
2145#define FOO(x) '\''x'\''
2146int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2147
2148int test (int i, double x);
2149struct s1 {int (*f) (int a);};
2150struct s2 {int (*f) (double a);};
2151int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2152               int, int);'
2153
2154# Test code for whether the C compiler supports C89 (body of main).
2155ac_c_conftest_c89_main='
2156ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2157'
2158
2159# Test code for whether the C compiler supports C99 (global declarations)
2160ac_c_conftest_c99_globals='
2161// Does the compiler advertise C99 conformance?
2162#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2163# error "Compiler does not advertise C99 conformance"
2164#endif
2165
2166#include <stdbool.h>
2167extern int puts (const char *);
2168extern int printf (const char *, ...);
2169extern int dprintf (int, const char *, ...);
2170extern void *malloc (size_t);
2171
2172// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2173// dprintf is used instead of fprintf to avoid needing to declare
2174// FILE and stderr.
2175#define debug(...) dprintf (2, __VA_ARGS__)
2176#define showlist(...) puts (#__VA_ARGS__)
2177#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2178static void
2179test_varargs_macros (void)
2180{
2181  int x = 1234;
2182  int y = 5678;
2183  debug ("Flag");
2184  debug ("X = %d\n", x);
2185  showlist (The first, second, and third items.);
2186  report (x>y, "x is %d but y is %d", x, y);
2187}
2188
2189// Check long long types.
2190#define BIG64 18446744073709551615ull
2191#define BIG32 4294967295ul
2192#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2193#if !BIG_OK
2194  #error "your preprocessor is broken"
2195#endif
2196#if BIG_OK
2197#else
2198  #error "your preprocessor is broken"
2199#endif
2200static long long int bignum = -9223372036854775807LL;
2201static unsigned long long int ubignum = BIG64;
2202
2203struct incomplete_array
2204{
2205  int datasize;
2206  double data[];
2207};
2208
2209struct named_init {
2210  int number;
2211  const wchar_t *name;
2212  double average;
2213};
2214
2215typedef const char *ccp;
2216
2217static inline int
2218test_restrict (ccp restrict text)
2219{
2220  // See if C++-style comments work.
2221  // Iterate through items via the restricted pointer.
2222  // Also check for declarations in for loops.
2223  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2224    continue;
2225  return 0;
2226}
2227
2228// Check varargs and va_copy.
2229static bool
2230test_varargs (const char *format, ...)
2231{
2232  va_list args;
2233  va_start (args, format);
2234  va_list args_copy;
2235  va_copy (args_copy, args);
2236
2237  const char *str = "";
2238  int number = 0;
2239  float fnumber = 0;
2240
2241  while (*format)
2242    {
2243      switch (*format++)
2244	{
2245	case '\''s'\'': // string
2246	  str = va_arg (args_copy, const char *);
2247	  break;
2248	case '\''d'\'': // int
2249	  number = va_arg (args_copy, int);
2250	  break;
2251	case '\''f'\'': // float
2252	  fnumber = va_arg (args_copy, double);
2253	  break;
2254	default:
2255	  break;
2256	}
2257    }
2258  va_end (args_copy);
2259  va_end (args);
2260
2261  return *str && number && fnumber;
2262}
2263'
2264
2265# Test code for whether the C compiler supports C99 (body of main).
2266ac_c_conftest_c99_main='
2267  // Check bool.
2268  _Bool success = false;
2269  success |= (argc != 0);
2270
2271  // Check restrict.
2272  if (test_restrict ("String literal") == 0)
2273    success = true;
2274  char *restrict newvar = "Another string";
2275
2276  // Check varargs.
2277  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2278  test_varargs_macros ();
2279
2280  // Check flexible array members.
2281  struct incomplete_array *ia =
2282    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2283  ia->datasize = 10;
2284  for (int i = 0; i < ia->datasize; ++i)
2285    ia->data[i] = i * 1.234;
2286
2287  // Check named initializers.
2288  struct named_init ni = {
2289    .number = 34,
2290    .name = L"Test wide string",
2291    .average = 543.34343,
2292  };
2293
2294  ni.number = 58;
2295
2296  int dynamic_array[ni.number];
2297  dynamic_array[0] = argv[0][0];
2298  dynamic_array[ni.number - 1] = 543;
2299
2300  // work around unused variable warnings
2301  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2302	 || dynamic_array[ni.number - 1] != 543);
2303'
2304
2305# Test code for whether the C compiler supports C11 (global declarations)
2306ac_c_conftest_c11_globals='
2307// Does the compiler advertise C11 conformance?
2308#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2309# error "Compiler does not advertise C11 conformance"
2310#endif
2311
2312// Check _Alignas.
2313char _Alignas (double) aligned_as_double;
2314char _Alignas (0) no_special_alignment;
2315extern char aligned_as_int;
2316char _Alignas (0) _Alignas (int) aligned_as_int;
2317
2318// Check _Alignof.
2319enum
2320{
2321  int_alignment = _Alignof (int),
2322  int_array_alignment = _Alignof (int[100]),
2323  char_alignment = _Alignof (char)
2324};
2325_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2326
2327// Check _Noreturn.
2328int _Noreturn does_not_return (void) { for (;;) continue; }
2329
2330// Check _Static_assert.
2331struct test_static_assert
2332{
2333  int x;
2334  _Static_assert (sizeof (int) <= sizeof (long int),
2335                  "_Static_assert does not work in struct");
2336  long int y;
2337};
2338
2339// Check UTF-8 literals.
2340#define u8 syntax error!
2341char const utf8_literal[] = u8"happens to be ASCII" "another string";
2342
2343// Check duplicate typedefs.
2344typedef long *long_ptr;
2345typedef long int *long_ptr;
2346typedef long_ptr long_ptr;
2347
2348// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2349struct anonymous
2350{
2351  union {
2352    struct { int i; int j; };
2353    struct { int k; long int l; } w;
2354  };
2355  int m;
2356} v1;
2357'
2358
2359# Test code for whether the C compiler supports C11 (body of main).
2360ac_c_conftest_c11_main='
2361  _Static_assert ((offsetof (struct anonymous, i)
2362		   == offsetof (struct anonymous, w.k)),
2363		  "Anonymous union alignment botch");
2364  v1.i = 2;
2365  v1.w.k = 5;
2366  ok |= v1.i != 5;
2367'
2368
2369# Test code for whether the C compiler supports C11 (complete).
2370ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2371${ac_c_conftest_c99_globals}
2372${ac_c_conftest_c11_globals}
2373
2374int
2375main (int argc, char **argv)
2376{
2377  int ok = 0;
2378  ${ac_c_conftest_c89_main}
2379  ${ac_c_conftest_c99_main}
2380  ${ac_c_conftest_c11_main}
2381  return ok;
2382}
2383"
2384
2385# Test code for whether the C compiler supports C99 (complete).
2386ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2387${ac_c_conftest_c99_globals}
2388
2389int
2390main (int argc, char **argv)
2391{
2392  int ok = 0;
2393  ${ac_c_conftest_c89_main}
2394  ${ac_c_conftest_c99_main}
2395  return ok;
2396}
2397"
2398
2399# Test code for whether the C compiler supports C89 (complete).
2400ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2401
2402int
2403main (int argc, char **argv)
2404{
2405  int ok = 0;
2406  ${ac_c_conftest_c89_main}
2407  return ok;
2408}
2409"
2410
2411as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2412as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2413as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2414as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2415as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2416as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2417as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2418as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2419as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2420
2421# Auxiliary files required by this configure script.
2422ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2423
2424# Locations in which to look for auxiliary files.
2425ac_aux_dir_candidates="${srcdir}/config"
2426
2427# Search for a directory containing all of the required auxiliary files,
2428# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2429# If we don't find one directory that contains all the files we need,
2430# we report the set of missing files from the *first* directory in
2431# $ac_aux_dir_candidates and give up.
2432ac_missing_aux_files=""
2433ac_first_candidate=:
2434printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436as_found=false
2437for as_dir in $ac_aux_dir_candidates
2438do
2439  IFS=$as_save_IFS
2440  case $as_dir in #(((
2441    '') as_dir=./ ;;
2442    */) ;;
2443    *) as_dir=$as_dir/ ;;
2444  esac
2445  as_found=:
2446
2447  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2448  ac_aux_dir_found=yes
2449  ac_install_sh=
2450  for ac_aux in $ac_aux_files
2451  do
2452    # As a special case, if "install-sh" is required, that requirement
2453    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2454    # and $ac_install_sh is set appropriately for whichever one is found.
2455    if test x"$ac_aux" = x"install-sh"
2456    then
2457      if test -f "${as_dir}install-sh"; then
2458        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2459        ac_install_sh="${as_dir}install-sh -c"
2460      elif test -f "${as_dir}install.sh"; then
2461        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2462        ac_install_sh="${as_dir}install.sh -c"
2463      elif test -f "${as_dir}shtool"; then
2464        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2465        ac_install_sh="${as_dir}shtool install -c"
2466      else
2467        ac_aux_dir_found=no
2468        if $ac_first_candidate; then
2469          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2470        else
2471          break
2472        fi
2473      fi
2474    else
2475      if test -f "${as_dir}${ac_aux}"; then
2476        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2477      else
2478        ac_aux_dir_found=no
2479        if $ac_first_candidate; then
2480          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2481        else
2482          break
2483        fi
2484      fi
2485    fi
2486  done
2487  if test "$ac_aux_dir_found" = yes; then
2488    ac_aux_dir="$as_dir"
2489    break
2490  fi
2491  ac_first_candidate=false
2492
2493  as_found=false
2494done
2495IFS=$as_save_IFS
2496if $as_found
2497then :
2498
2499else $as_nop
2500  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2501fi
2502
2503
2504# These three variables are undocumented and unsupported,
2505# and are intended to be withdrawn in a future Autoconf release.
2506# They can cause serious problems if a builder's source tree is in a directory
2507# whose full name contains unusual characters.
2508if test -f "${ac_aux_dir}config.guess"; then
2509  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2510fi
2511if test -f "${ac_aux_dir}config.sub"; then
2512  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2513fi
2514if test -f "$ac_aux_dir/configure"; then
2515  ac_configure="$SHELL ${ac_aux_dir}configure"
2516fi
2517
2518# Check that the precious variables saved in the cache have kept the same
2519# value.
2520ac_cache_corrupted=false
2521for ac_var in $ac_precious_vars; do
2522  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523  eval ac_new_set=\$ac_env_${ac_var}_set
2524  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525  eval ac_new_val=\$ac_env_${ac_var}_value
2526  case $ac_old_set,$ac_new_set in
2527    set,)
2528      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530      ac_cache_corrupted=: ;;
2531    ,set)
2532      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534      ac_cache_corrupted=: ;;
2535    ,);;
2536    *)
2537      if test "x$ac_old_val" != "x$ac_new_val"; then
2538	# differences in whitespace do not lead to failure.
2539	ac_old_val_w=`echo x $ac_old_val`
2540	ac_new_val_w=`echo x $ac_new_val`
2541	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544	  ac_cache_corrupted=:
2545	else
2546	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548	  eval $ac_var=\$ac_old_val
2549	fi
2550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2551printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2553printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2554      fi;;
2555  esac
2556  # Pass precious variables to config.status.
2557  if test "$ac_new_set" = set; then
2558    case $ac_new_val in
2559    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560    *) ac_arg=$ac_var=$ac_new_val ;;
2561    esac
2562    case " $ac_configure_args " in
2563      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2564      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2565    esac
2566  fi
2567done
2568if $ac_cache_corrupted; then
2569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2573  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2574	    and start over" "$LINENO" 5
2575fi
2576## -------------------- ##
2577## Main body of script. ##
2578## -------------------- ##
2579
2580ac_ext=c
2581ac_cpp='$CPP $CPPFLAGS'
2582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
2586
2587# ===========================================================================
2588#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2589# ===========================================================================
2590#
2591# SYNOPSIS
2592#
2593#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2594#
2595# DESCRIPTION
2596#
2597#   Look for OpenSSL in a number of default spots, or in a user-selected
2598#   spot (via --with-openssl).  Sets
2599#
2600#     OPENSSL_INCLUDES to the include directives required
2601#     OPENSSL_LIBS to the -l directives required
2602#     OPENSSL_LDFLAGS to the -L or -R flags required
2603#
2604#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2605#
2606#   This macro sets OPENSSL_INCLUDES such that source files should use the
2607#   openssl/ directory in include directives:
2608#
2609#     #include <openssl/hmac.h>
2610#
2611# LICENSE
2612#
2613#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2614#   Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]>
2615#
2616#   Copying and distribution of this file, with or without modification, are
2617#   permitted in any medium without royalty provided the copyright notice
2618#   and this notice are preserved. This file is offered as-is, without any
2619#   warranty.
2620
2621#serial 10
2622
2623# This is what autoupdate's m4 run will expand.  It fires the warning
2624# (with _au_warn_XXX), outputs it into the updated configure.ac (with
2625# m4_warn), and then outputs the replacement expansion.  We need extra
2626# quotation around the m4_warn and dnl so they will be written
2627# unexpanded into the updated configure.ac.
2628
2629
2630# This is an auxiliary macro that is also run when
2631# autoupdate runs m4.  It simply calls m4_warning, but
2632# we need a wrapper so that each warning is emitted only
2633# once.  We break the quoting in m4_warning's argument in
2634# order to expand this macro's arguments, not AU_DEFUN's.
2635
2636
2637# Finally, this is the expansion that is picked up by
2638# autoconf, causing NAME to expand to NEW-CODE, plus
2639# (if SILENT is not "silent") a m4_warning telling the
2640# maintainer to run autoupdate.  We don't issue MESSAGE
2641# from autoconf, because that's instructions for what
2642# to do *after* running autoupdate.
2643
2644
2645
2646# Also link binaries as static
2647# Check whether --enable-static-bin was given.
2648if test ${enable_static_bin+y}
2649then :
2650  enableval=$enable_static_bin; enable_static=yes
2651     enable_shared=no
2652     enable_static_bin=yes
2653else $as_nop
2654  :
2655fi
2656
2657 if test x$enable_static_bin = xno; then
2658  ENABLE_STATIC_BIN_TRUE=
2659  ENABLE_STATIC_BIN_FALSE='#'
2660else
2661  ENABLE_STATIC_BIN_TRUE='#'
2662  ENABLE_STATIC_BIN_FALSE=
2663fi
2664
2665
2666if test "x$enable_static_bin" == xyes
2667then :
2668  LDFLAGS="$LDFLAGS --static"
2669
2670fi
2671
2672ac_ext=c
2673ac_cpp='$CPP $CPPFLAGS'
2674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677
2678
2679# Specify where the auxiliary files created by configure should go. The config
2680# directory is picked so that they don't clutter up more useful directories.
2681
2682
2683
2684# Initialize the automake system
2685am__api_version='1.16'
2686
2687
2688
2689  # Find a good install program.  We prefer a C program (faster),
2690# so one script is as good as another.  But avoid the broken or
2691# incompatible versions:
2692# SysV /etc/install, /usr/sbin/install
2693# SunOS /usr/etc/install
2694# IRIX /sbin/install
2695# AIX /bin/install
2696# AmigaOS /C/install, which installs bootblocks on floppy discs
2697# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2700# OS/2's system install, which has a completely different semantic
2701# ./install, which can be erroneously created by make from ./install.sh.
2702# Reject install programs that cannot install multiple files.
2703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704printf %s "checking for a BSD-compatible install... " >&6; }
2705if test -z "$INSTALL"; then
2706if test ${ac_cv_path_install+y}
2707then :
2708  printf %s "(cached) " >&6
2709else $as_nop
2710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713  IFS=$as_save_IFS
2714  case $as_dir in #(((
2715    '') as_dir=./ ;;
2716    */) ;;
2717    *) as_dir=$as_dir/ ;;
2718  esac
2719    # Account for fact that we put trailing slashes in our PATH walk.
2720case $as_dir in #((
2721  ./ | /[cC]/* | \
2722  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2723  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2724  /usr/ucb/* ) ;;
2725  *)
2726    # OSF1 and SCO ODT 3.0 have their own names for install.
2727    # Don't use installbsd from OSF since it installs stuff as root
2728    # by default.
2729    for ac_prog in ginstall scoinst install; do
2730      for ac_exec_ext in '' $ac_executable_extensions; do
2731	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2732	  if test $ac_prog = install &&
2733	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734	    # AIX install.  It has an incompatible calling convention.
2735	    :
2736	  elif test $ac_prog = install &&
2737	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738	    # program-specific install script used by HP pwplus--don't use.
2739	    :
2740	  else
2741	    rm -rf conftest.one conftest.two conftest.dir
2742	    echo one > conftest.one
2743	    echo two > conftest.two
2744	    mkdir conftest.dir
2745	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2746	      test -s conftest.one && test -s conftest.two &&
2747	      test -s conftest.dir/conftest.one &&
2748	      test -s conftest.dir/conftest.two
2749	    then
2750	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2751	      break 3
2752	    fi
2753	  fi
2754	fi
2755      done
2756    done
2757    ;;
2758esac
2759
2760  done
2761IFS=$as_save_IFS
2762
2763rm -rf conftest.one conftest.two conftest.dir
2764
2765fi
2766  if test ${ac_cv_path_install+y}; then
2767    INSTALL=$ac_cv_path_install
2768  else
2769    # As a last resort, use the slow shell script.  Don't cache a
2770    # value for INSTALL within a source directory, because that will
2771    # break other packages using the cache if that directory is
2772    # removed, or if the value is a relative name.
2773    INSTALL=$ac_install_sh
2774  fi
2775fi
2776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777printf "%s\n" "$INSTALL" >&6; }
2778
2779# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780# It thinks the first close brace ends the variable substitution.
2781test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2782
2783test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2784
2785test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2786
2787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2788printf %s "checking whether build environment is sane... " >&6; }
2789# Reject unsafe characters in $srcdir or the absolute working directory
2790# name.  Accept space and tab only in the latter.
2791am_lf='
2792'
2793case `pwd` in
2794  *[\\\"\#\$\&\'\`$am_lf]*)
2795    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2796esac
2797case $srcdir in
2798  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2799    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2800esac
2801
2802# Do 'set' in a subshell so we don't clobber the current shell's
2803# arguments.  Must try -L first in case configure is actually a
2804# symlink; some systems play weird games with the mod time of symlinks
2805# (eg FreeBSD returns the mod time of the symlink's containing
2806# directory).
2807if (
2808   am_has_slept=no
2809   for am_try in 1 2; do
2810     echo "timestamp, slept: $am_has_slept" > conftest.file
2811     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2812     if test "$*" = "X"; then
2813	# -L didn't work.
2814	set X `ls -t "$srcdir/configure" conftest.file`
2815     fi
2816     if test "$*" != "X $srcdir/configure conftest.file" \
2817	&& test "$*" != "X conftest.file $srcdir/configure"; then
2818
2819	# If neither matched, then we have a broken ls.  This can happen
2820	# if, for instance, CONFIG_SHELL is bash and it inherits a
2821	# broken ls alias from the environment.  This has actually
2822	# happened.  Such a system could not be considered "sane".
2823	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2824  alias in your environment" "$LINENO" 5
2825     fi
2826     if test "$2" = conftest.file || test $am_try -eq 2; then
2827       break
2828     fi
2829     # Just in case.
2830     sleep 1
2831     am_has_slept=yes
2832   done
2833   test "$2" = conftest.file
2834   )
2835then
2836   # Ok.
2837   :
2838else
2839   as_fn_error $? "newly created file is older than distributed files!
2840Check your system clock" "$LINENO" 5
2841fi
2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843printf "%s\n" "yes" >&6; }
2844# If we didn't sleep, we still need to ensure time stamps of config.status and
2845# generated files are strictly newer.
2846am_sleep_pid=
2847if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2848  ( sleep 1 ) &
2849  am_sleep_pid=$!
2850fi
2851
2852rm -f conftest.file
2853
2854test "$program_prefix" != NONE &&
2855  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2856# Use a double $ so make ignores it.
2857test "$program_suffix" != NONE &&
2858  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2859# Double any \ or $.
2860# By default was `s,x,x', remove it if useless.
2861ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2862program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2863
2864
2865# Expand $ac_aux_dir to an absolute path.
2866am_aux_dir=`cd "$ac_aux_dir" && pwd`
2867
2868
2869  if test x"${MISSING+set}" != xset; then
2870  MISSING="\${SHELL} '$am_aux_dir/missing'"
2871fi
2872# Use eval to expand $SHELL
2873if eval "$MISSING --is-lightweight"; then
2874  am_missing_run="$MISSING "
2875else
2876  am_missing_run=
2877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2878printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2879fi
2880
2881if test x"${install_sh+set}" != xset; then
2882  case $am_aux_dir in
2883  *\ * | *\	*)
2884    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2885  *)
2886    install_sh="\${SHELL} $am_aux_dir/install-sh"
2887  esac
2888fi
2889
2890# Installed binaries are usually stripped using 'strip' when the user
2891# run "make install-strip".  However 'strip' might not be the right
2892# tool to use in cross-compilation environments, therefore Automake
2893# will honor the 'STRIP' environment variable to overrule this program.
2894if test "$cross_compiling" != no; then
2895  if test -n "$ac_tool_prefix"; then
2896  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2897set dummy ${ac_tool_prefix}strip; ac_word=$2
2898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899printf %s "checking for $ac_word... " >&6; }
2900if test ${ac_cv_prog_STRIP+y}
2901then :
2902  printf %s "(cached) " >&6
2903else $as_nop
2904  if test -n "$STRIP"; then
2905  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  case $as_dir in #(((
2912    '') as_dir=./ ;;
2913    */) ;;
2914    *) as_dir=$as_dir/ ;;
2915  esac
2916    for ac_exec_ext in '' $ac_executable_extensions; do
2917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2919    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2920    break 2
2921  fi
2922done
2923  done
2924IFS=$as_save_IFS
2925
2926fi
2927fi
2928STRIP=$ac_cv_prog_STRIP
2929if test -n "$STRIP"; then
2930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2931printf "%s\n" "$STRIP" >&6; }
2932else
2933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934printf "%s\n" "no" >&6; }
2935fi
2936
2937
2938fi
2939if test -z "$ac_cv_prog_STRIP"; then
2940  ac_ct_STRIP=$STRIP
2941  # Extract the first word of "strip", so it can be a program name with args.
2942set dummy strip; ac_word=$2
2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944printf %s "checking for $ac_word... " >&6; }
2945if test ${ac_cv_prog_ac_ct_STRIP+y}
2946then :
2947  printf %s "(cached) " >&6
2948else $as_nop
2949  if test -n "$ac_ct_STRIP"; then
2950  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  case $as_dir in #(((
2957    '') as_dir=./ ;;
2958    */) ;;
2959    *) as_dir=$as_dir/ ;;
2960  esac
2961    for ac_exec_ext in '' $ac_executable_extensions; do
2962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963    ac_cv_prog_ac_ct_STRIP="strip"
2964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968  done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974if test -n "$ac_ct_STRIP"; then
2975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976printf "%s\n" "$ac_ct_STRIP" >&6; }
2977else
2978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979printf "%s\n" "no" >&6; }
2980fi
2981
2982  if test "x$ac_ct_STRIP" = x; then
2983    STRIP=":"
2984  else
2985    case $cross_compiling:$ac_tool_warned in
2986yes:)
2987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989ac_tool_warned=yes ;;
2990esac
2991    STRIP=$ac_ct_STRIP
2992  fi
2993else
2994  STRIP="$ac_cv_prog_STRIP"
2995fi
2996
2997fi
2998INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2999
3000
3001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3002printf %s "checking for a race-free mkdir -p... " >&6; }
3003if test -z "$MKDIR_P"; then
3004  if test ${ac_cv_path_mkdir+y}
3005then :
3006  printf %s "(cached) " >&6
3007else $as_nop
3008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3010do
3011  IFS=$as_save_IFS
3012  case $as_dir in #(((
3013    '') as_dir=./ ;;
3014    */) ;;
3015    *) as_dir=$as_dir/ ;;
3016  esac
3017    for ac_prog in mkdir gmkdir; do
3018	 for ac_exec_ext in '' $ac_executable_extensions; do
3019	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3020	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021	     'mkdir ('*'coreutils) '* | \
3022	     'BusyBox '* | \
3023	     'mkdir (fileutils) '4.1*)
3024	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3025	       break 3;;
3026	   esac
3027	 done
3028       done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033
3034  test -d ./--version && rmdir ./--version
3035  if test ${ac_cv_path_mkdir+y}; then
3036    MKDIR_P="$ac_cv_path_mkdir -p"
3037  else
3038    # As a last resort, use the slow shell script.  Don't cache a
3039    # value for MKDIR_P within a source directory, because that will
3040    # break other packages using the cache if that directory is
3041    # removed, or if the value is a relative name.
3042    MKDIR_P="$ac_install_sh -d"
3043  fi
3044fi
3045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046printf "%s\n" "$MKDIR_P" >&6; }
3047
3048for ac_prog in gawk mawk nawk awk
3049do
3050  # Extract the first word of "$ac_prog", so it can be a program name with args.
3051set dummy $ac_prog; ac_word=$2
3052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053printf %s "checking for $ac_word... " >&6; }
3054if test ${ac_cv_prog_AWK+y}
3055then :
3056  printf %s "(cached) " >&6
3057else $as_nop
3058  if test -n "$AWK"; then
3059  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064  IFS=$as_save_IFS
3065  case $as_dir in #(((
3066    '') as_dir=./ ;;
3067    */) ;;
3068    *) as_dir=$as_dir/ ;;
3069  esac
3070    for ac_exec_ext in '' $ac_executable_extensions; do
3071  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3072    ac_cv_prog_AWK="$ac_prog"
3073    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3074    break 2
3075  fi
3076done
3077  done
3078IFS=$as_save_IFS
3079
3080fi
3081fi
3082AWK=$ac_cv_prog_AWK
3083if test -n "$AWK"; then
3084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3085printf "%s\n" "$AWK" >&6; }
3086else
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088printf "%s\n" "no" >&6; }
3089fi
3090
3091
3092  test -n "$AWK" && break
3093done
3094
3095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3096printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3097set x ${MAKE-make}
3098ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3099if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3100then :
3101  printf %s "(cached) " >&6
3102else $as_nop
3103  cat >conftest.make <<\_ACEOF
3104SHELL = /bin/sh
3105all:
3106	@echo '@@@%%%=$(MAKE)=@@@%%%'
3107_ACEOF
3108# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3109case `${MAKE-make} -f conftest.make 2>/dev/null` in
3110  *@@@%%%=?*=@@@%%%*)
3111    eval ac_cv_prog_make_${ac_make}_set=yes;;
3112  *)
3113    eval ac_cv_prog_make_${ac_make}_set=no;;
3114esac
3115rm -f conftest.make
3116fi
3117if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3119printf "%s\n" "yes" >&6; }
3120  SET_MAKE=
3121else
3122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123printf "%s\n" "no" >&6; }
3124  SET_MAKE="MAKE=${MAKE-make}"
3125fi
3126
3127rm -rf .tst 2>/dev/null
3128mkdir .tst 2>/dev/null
3129if test -d .tst; then
3130  am__leading_dot=.
3131else
3132  am__leading_dot=_
3133fi
3134rmdir .tst 2>/dev/null
3135
3136# Check whether --enable-silent-rules was given.
3137if test ${enable_silent_rules+y}
3138then :
3139  enableval=$enable_silent_rules;
3140fi
3141
3142case $enable_silent_rules in # (((
3143  yes) AM_DEFAULT_VERBOSITY=0;;
3144   no) AM_DEFAULT_VERBOSITY=1;;
3145    *) AM_DEFAULT_VERBOSITY=1;;
3146esac
3147am_make=${MAKE-make}
3148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3149printf %s "checking whether $am_make supports nested variables... " >&6; }
3150if test ${am_cv_make_support_nested_variables+y}
3151then :
3152  printf %s "(cached) " >&6
3153else $as_nop
3154  if printf "%s\n" 'TRUE=$(BAR$(V))
3155BAR0=false
3156BAR1=true
3157V=1
3158am__doit:
3159	@$(TRUE)
3160.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3161  am_cv_make_support_nested_variables=yes
3162else
3163  am_cv_make_support_nested_variables=no
3164fi
3165fi
3166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3167printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3168if test $am_cv_make_support_nested_variables = yes; then
3169    AM_V='$(V)'
3170  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3171else
3172  AM_V=$AM_DEFAULT_VERBOSITY
3173  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3174fi
3175AM_BACKSLASH='\'
3176
3177if test "`cd $srcdir && pwd`" != "`pwd`"; then
3178  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3179  # is not polluted with repeated "-I."
3180  am__isrc=' -I$(srcdir)'
3181  # test to see if srcdir already configured
3182  if test -f $srcdir/config.status; then
3183    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3184  fi
3185fi
3186
3187# test whether we have cygpath
3188if test -z "$CYGPATH_W"; then
3189  if (cygpath --version) >/dev/null 2>/dev/null; then
3190    CYGPATH_W='cygpath -w'
3191  else
3192    CYGPATH_W=echo
3193  fi
3194fi
3195
3196
3197# Define the identity of the package.
3198 PACKAGE='iperf'
3199 VERSION='3.10.1+'
3200
3201
3202printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3203
3204
3205printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3206
3207# Some tools Automake needs.
3208
3209ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3210
3211
3212AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3213
3214
3215AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3216
3217
3218AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3219
3220
3221MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3222
3223# For better backward compatibility.  To be removed once Automake 1.9.x
3224# dies out for good.  For more background, see:
3225# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3226# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3227mkdir_p='$(MKDIR_P)'
3228
3229# We need awk for the "check" target (and possibly the TAP driver).  The
3230# system "awk" is bad on some platforms.
3231# Always define AMTAR for backward compatibility.  Yes, it's still used
3232# in the wild :-(  We should find a proper way to deprecate it ...
3233AMTAR='$${TAR-tar}'
3234
3235
3236# We'll loop over all known methods to create a tar archive until one works.
3237_am_tools='gnutar  pax cpio none'
3238
3239am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3240
3241
3242
3243
3244
3245
3246# POSIX will say in a future version that running "rm -f" with no argument
3247# is OK; and we want to be able to make that assumption in our Makefile
3248# recipes.  So use an aggressive probe to check that the usage we want is
3249# actually supported "in the wild" to an acceptable degree.
3250# See automake bug#10828.
3251# To make any issue more visible, cause the running configure to be aborted
3252# by default if the 'rm' program in use doesn't match our expectations; the
3253# user can still override this though.
3254if rm -f && rm -fr && rm -rf; then : OK; else
3255  cat >&2 <<'END'
3256Oops!
3257
3258Your 'rm' program seems unable to run without file operands specified
3259on the command line, even when the '-f' option is present.  This is contrary
3260to the behaviour of most rm programs out there, and not conforming with
3261the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3262
3263Please tell bug-automake@gnu.org about your system, including the value
3264of your $PATH and any error possibly output before this message.  This
3265can help us improve future automake versions.
3266
3267END
3268  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3269    echo 'Configuration will proceed anyway, since you have set the' >&2
3270    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3271    echo >&2
3272  else
3273    cat >&2 <<'END'
3274Aborting the configuration process, to ensure you take notice of the issue.
3275
3276You can download and install GNU coreutils to get an 'rm' implementation
3277that behaves properly: <https://www.gnu.org/software/coreutils/>.
3278
3279If you want to complete the configuration process using your problematic
3280'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3281to "yes", and re-run configure.
3282
3283END
3284    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3285  fi
3286fi
3287
3288# Check whether --enable-silent-rules was given.
3289if test ${enable_silent_rules+y}
3290then :
3291  enableval=$enable_silent_rules;
3292fi
3293
3294case $enable_silent_rules in # (((
3295  yes) AM_DEFAULT_VERBOSITY=0;;
3296   no) AM_DEFAULT_VERBOSITY=1;;
3297    *) AM_DEFAULT_VERBOSITY=0;;
3298esac
3299am_make=${MAKE-make}
3300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3301printf %s "checking whether $am_make supports nested variables... " >&6; }
3302if test ${am_cv_make_support_nested_variables+y}
3303then :
3304  printf %s "(cached) " >&6
3305else $as_nop
3306  if printf "%s\n" 'TRUE=$(BAR$(V))
3307BAR0=false
3308BAR1=true
3309V=1
3310am__doit:
3311	@$(TRUE)
3312.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3313  am_cv_make_support_nested_variables=yes
3314else
3315  am_cv_make_support_nested_variables=no
3316fi
3317fi
3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3319printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3320if test $am_cv_make_support_nested_variables = yes; then
3321    AM_V='$(V)'
3322  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3323else
3324  AM_V=$AM_DEFAULT_VERBOSITY
3325  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3326fi
3327AM_BACKSLASH='\'
3328
3329case `pwd` in
3330  *\ * | *\	*)
3331    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3332printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3333esac
3334
3335
3336
3337macro_version='2.4.6'
3338macro_revision='2.4.6'
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353ltmain=$ac_aux_dir/ltmain.sh
3354
3355
3356
3357  # Make sure we can run config.sub.
3358$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3359  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3360
3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3362printf %s "checking build system type... " >&6; }
3363if test ${ac_cv_build+y}
3364then :
3365  printf %s "(cached) " >&6
3366else $as_nop
3367  ac_build_alias=$build_alias
3368test "x$ac_build_alias" = x &&
3369  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3370test "x$ac_build_alias" = x &&
3371  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3372ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3373  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3374
3375fi
3376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3377printf "%s\n" "$ac_cv_build" >&6; }
3378case $ac_cv_build in
3379*-*-*) ;;
3380*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3381esac
3382build=$ac_cv_build
3383ac_save_IFS=$IFS; IFS='-'
3384set x $ac_cv_build
3385shift
3386build_cpu=$1
3387build_vendor=$2
3388shift; shift
3389# Remember, the first character of IFS is used to create $*,
3390# except with old shells:
3391build_os=$*
3392IFS=$ac_save_IFS
3393case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3394
3395
3396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3397printf %s "checking host system type... " >&6; }
3398if test ${ac_cv_host+y}
3399then :
3400  printf %s "(cached) " >&6
3401else $as_nop
3402  if test "x$host_alias" = x; then
3403  ac_cv_host=$ac_cv_build
3404else
3405  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3406    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3407fi
3408
3409fi
3410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3411printf "%s\n" "$ac_cv_host" >&6; }
3412case $ac_cv_host in
3413*-*-*) ;;
3414*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3415esac
3416host=$ac_cv_host
3417ac_save_IFS=$IFS; IFS='-'
3418set x $ac_cv_host
3419shift
3420host_cpu=$1
3421host_vendor=$2
3422shift; shift
3423# Remember, the first character of IFS is used to create $*,
3424# except with old shells:
3425host_os=$*
3426IFS=$ac_save_IFS
3427case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3428
3429
3430# Backslashify metacharacters that are still active within
3431# double-quoted strings.
3432sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3433
3434# Same as above, but do not quote variable references.
3435double_quote_subst='s/\(["`\\]\)/\\\1/g'
3436
3437# Sed substitution to delay expansion of an escaped shell variable in a
3438# double_quote_subst'ed string.
3439delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3440
3441# Sed substitution to delay expansion of an escaped single quote.
3442delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3443
3444# Sed substitution to avoid accidental globbing in evaled expressions
3445no_glob_subst='s/\*/\\\*/g'
3446
3447ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3448ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3449ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3450
3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3452printf %s "checking how to print strings... " >&6; }
3453# Test print first, because it will be a builtin if present.
3454if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3455   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3456  ECHO='print -r --'
3457elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3458  ECHO='printf %s\n'
3459else
3460  # Use this function as a fallback that always works.
3461  func_fallback_echo ()
3462  {
3463    eval 'cat <<_LTECHO_EOF
3464$1
3465_LTECHO_EOF'
3466  }
3467  ECHO='func_fallback_echo'
3468fi
3469
3470# func_echo_all arg...
3471# Invoke $ECHO with all args, space-separated.
3472func_echo_all ()
3473{
3474    $ECHO ""
3475}
3476
3477case $ECHO in
3478  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3479printf "%s\n" "printf" >&6; } ;;
3480  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3481printf "%s\n" "print -r" >&6; } ;;
3482  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3483printf "%s\n" "cat" >&6; } ;;
3484esac
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508DEPDIR="${am__leading_dot}deps"
3509
3510ac_config_commands="$ac_config_commands depfiles"
3511
3512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3513printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3514cat > confinc.mk << 'END'
3515am__doit:
3516	@echo this is the am__doit target >confinc.out
3517.PHONY: am__doit
3518END
3519am__include="#"
3520am__quote=
3521# BSD make does it like this.
3522echo '.include "confinc.mk" # ignored' > confmf.BSD
3523# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3524echo 'include confinc.mk # ignored' > confmf.GNU
3525_am_result=no
3526for s in GNU BSD; do
3527  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3528   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3529   ac_status=$?
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); }
3532  case $?:`cat confinc.out 2>/dev/null` in #(
3533  '0:this is the am__doit target') :
3534    case $s in #(
3535  BSD) :
3536    am__include='.include' am__quote='"' ;; #(
3537  *) :
3538    am__include='include' am__quote='' ;;
3539esac ;; #(
3540  *) :
3541     ;;
3542esac
3543  if test "$am__include" != "#"; then
3544    _am_result="yes ($s style)"
3545    break
3546  fi
3547done
3548rm -f confinc.* confmf.*
3549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3550printf "%s\n" "${_am_result}" >&6; }
3551
3552# Check whether --enable-dependency-tracking was given.
3553if test ${enable_dependency_tracking+y}
3554then :
3555  enableval=$enable_dependency_tracking;
3556fi
3557
3558if test "x$enable_dependency_tracking" != xno; then
3559  am_depcomp="$ac_aux_dir/depcomp"
3560  AMDEPBACKSLASH='\'
3561  am__nodep='_no'
3562fi
3563 if test "x$enable_dependency_tracking" != xno; then
3564  AMDEP_TRUE=
3565  AMDEP_FALSE='#'
3566else
3567  AMDEP_TRUE='#'
3568  AMDEP_FALSE=
3569fi
3570
3571
3572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577if test -n "$ac_tool_prefix"; then
3578  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3579set dummy ${ac_tool_prefix}gcc; ac_word=$2
3580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581printf %s "checking for $ac_word... " >&6; }
3582if test ${ac_cv_prog_CC+y}
3583then :
3584  printf %s "(cached) " >&6
3585else $as_nop
3586  if test -n "$CC"; then
3587  ac_cv_prog_CC="$CC" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  case $as_dir in #(((
3594    '') as_dir=./ ;;
3595    */) ;;
3596    *) as_dir=$as_dir/ ;;
3597  esac
3598    for ac_exec_ext in '' $ac_executable_extensions; do
3599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3600    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3602    break 2
3603  fi
3604done
3605  done
3606IFS=$as_save_IFS
3607
3608fi
3609fi
3610CC=$ac_cv_prog_CC
3611if test -n "$CC"; then
3612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613printf "%s\n" "$CC" >&6; }
3614else
3615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616printf "%s\n" "no" >&6; }
3617fi
3618
3619
3620fi
3621if test -z "$ac_cv_prog_CC"; then
3622  ac_ct_CC=$CC
3623  # Extract the first word of "gcc", so it can be a program name with args.
3624set dummy gcc; ac_word=$2
3625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626printf %s "checking for $ac_word... " >&6; }
3627if test ${ac_cv_prog_ac_ct_CC+y}
3628then :
3629  printf %s "(cached) " >&6
3630else $as_nop
3631  if test -n "$ac_ct_CC"; then
3632  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637  IFS=$as_save_IFS
3638  case $as_dir in #(((
3639    '') as_dir=./ ;;
3640    */) ;;
3641    *) as_dir=$as_dir/ ;;
3642  esac
3643    for ac_exec_ext in '' $ac_executable_extensions; do
3644  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3645    ac_cv_prog_ac_ct_CC="gcc"
3646    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3647    break 2
3648  fi
3649done
3650  done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655ac_ct_CC=$ac_cv_prog_ac_ct_CC
3656if test -n "$ac_ct_CC"; then
3657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658printf "%s\n" "$ac_ct_CC" >&6; }
3659else
3660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661printf "%s\n" "no" >&6; }
3662fi
3663
3664  if test "x$ac_ct_CC" = x; then
3665    CC=""
3666  else
3667    case $cross_compiling:$ac_tool_warned in
3668yes:)
3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671ac_tool_warned=yes ;;
3672esac
3673    CC=$ac_ct_CC
3674  fi
3675else
3676  CC="$ac_cv_prog_CC"
3677fi
3678
3679if test -z "$CC"; then
3680          if test -n "$ac_tool_prefix"; then
3681    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3682set dummy ${ac_tool_prefix}cc; ac_word=$2
3683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684printf %s "checking for $ac_word... " >&6; }
3685if test ${ac_cv_prog_CC+y}
3686then :
3687  printf %s "(cached) " >&6
3688else $as_nop
3689  if test -n "$CC"; then
3690  ac_cv_prog_CC="$CC" # Let the user override the test.
3691else
3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693for as_dir in $PATH
3694do
3695  IFS=$as_save_IFS
3696  case $as_dir in #(((
3697    '') as_dir=./ ;;
3698    */) ;;
3699    *) as_dir=$as_dir/ ;;
3700  esac
3701    for ac_exec_ext in '' $ac_executable_extensions; do
3702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3703    ac_cv_prog_CC="${ac_tool_prefix}cc"
3704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3705    break 2
3706  fi
3707done
3708  done
3709IFS=$as_save_IFS
3710
3711fi
3712fi
3713CC=$ac_cv_prog_CC
3714if test -n "$CC"; then
3715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716printf "%s\n" "$CC" >&6; }
3717else
3718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719printf "%s\n" "no" >&6; }
3720fi
3721
3722
3723  fi
3724fi
3725if test -z "$CC"; then
3726  # Extract the first word of "cc", so it can be a program name with args.
3727set dummy cc; ac_word=$2
3728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729printf %s "checking for $ac_word... " >&6; }
3730if test ${ac_cv_prog_CC+y}
3731then :
3732  printf %s "(cached) " >&6
3733else $as_nop
3734  if test -n "$CC"; then
3735  ac_cv_prog_CC="$CC" # Let the user override the test.
3736else
3737  ac_prog_rejected=no
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741  IFS=$as_save_IFS
3742  case $as_dir in #(((
3743    '') as_dir=./ ;;
3744    */) ;;
3745    *) as_dir=$as_dir/ ;;
3746  esac
3747    for ac_exec_ext in '' $ac_executable_extensions; do
3748  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3749    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3750       ac_prog_rejected=yes
3751       continue
3752     fi
3753    ac_cv_prog_CC="cc"
3754    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3755    break 2
3756  fi
3757done
3758  done
3759IFS=$as_save_IFS
3760
3761if test $ac_prog_rejected = yes; then
3762  # We found a bogon in the path, so make sure we never use it.
3763  set dummy $ac_cv_prog_CC
3764  shift
3765  if test $# != 0; then
3766    # We chose a different compiler from the bogus one.
3767    # However, it has the same basename, so the bogon will be chosen
3768    # first if we set CC to just the basename; use the full file name.
3769    shift
3770    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3771  fi
3772fi
3773fi
3774fi
3775CC=$ac_cv_prog_CC
3776if test -n "$CC"; then
3777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778printf "%s\n" "$CC" >&6; }
3779else
3780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781printf "%s\n" "no" >&6; }
3782fi
3783
3784
3785fi
3786if test -z "$CC"; then
3787  if test -n "$ac_tool_prefix"; then
3788  for ac_prog in cl.exe
3789  do
3790    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793printf %s "checking for $ac_word... " >&6; }
3794if test ${ac_cv_prog_CC+y}
3795then :
3796  printf %s "(cached) " >&6
3797else $as_nop
3798  if test -n "$CC"; then
3799  ac_cv_prog_CC="$CC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  case $as_dir in #(((
3806    '') as_dir=./ ;;
3807    */) ;;
3808    *) as_dir=$as_dir/ ;;
3809  esac
3810    for ac_exec_ext in '' $ac_executable_extensions; do
3811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3812    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3814    break 2
3815  fi
3816done
3817  done
3818IFS=$as_save_IFS
3819
3820fi
3821fi
3822CC=$ac_cv_prog_CC
3823if test -n "$CC"; then
3824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825printf "%s\n" "$CC" >&6; }
3826else
3827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828printf "%s\n" "no" >&6; }
3829fi
3830
3831
3832    test -n "$CC" && break
3833  done
3834fi
3835if test -z "$CC"; then
3836  ac_ct_CC=$CC
3837  for ac_prog in cl.exe
3838do
3839  # Extract the first word of "$ac_prog", so it can be a program name with args.
3840set dummy $ac_prog; ac_word=$2
3841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842printf %s "checking for $ac_word... " >&6; }
3843if test ${ac_cv_prog_ac_ct_CC+y}
3844then :
3845  printf %s "(cached) " >&6
3846else $as_nop
3847  if test -n "$ac_ct_CC"; then
3848  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3849else
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853  IFS=$as_save_IFS
3854  case $as_dir in #(((
3855    '') as_dir=./ ;;
3856    */) ;;
3857    *) as_dir=$as_dir/ ;;
3858  esac
3859    for ac_exec_ext in '' $ac_executable_extensions; do
3860  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3861    ac_cv_prog_ac_ct_CC="$ac_prog"
3862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3863    break 2
3864  fi
3865done
3866  done
3867IFS=$as_save_IFS
3868
3869fi
3870fi
3871ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872if test -n "$ac_ct_CC"; then
3873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874printf "%s\n" "$ac_ct_CC" >&6; }
3875else
3876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877printf "%s\n" "no" >&6; }
3878fi
3879
3880
3881  test -n "$ac_ct_CC" && break
3882done
3883
3884  if test "x$ac_ct_CC" = x; then
3885    CC=""
3886  else
3887    case $cross_compiling:$ac_tool_warned in
3888yes:)
3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891ac_tool_warned=yes ;;
3892esac
3893    CC=$ac_ct_CC
3894  fi
3895fi
3896
3897fi
3898if test -z "$CC"; then
3899  if test -n "$ac_tool_prefix"; then
3900  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3901set dummy ${ac_tool_prefix}clang; ac_word=$2
3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903printf %s "checking for $ac_word... " >&6; }
3904if test ${ac_cv_prog_CC+y}
3905then :
3906  printf %s "(cached) " >&6
3907else $as_nop
3908  if test -n "$CC"; then
3909  ac_cv_prog_CC="$CC" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  case $as_dir in #(((
3916    '') as_dir=./ ;;
3917    */) ;;
3918    *) as_dir=$as_dir/ ;;
3919  esac
3920    for ac_exec_ext in '' $ac_executable_extensions; do
3921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3922    ac_cv_prog_CC="${ac_tool_prefix}clang"
3923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3924    break 2
3925  fi
3926done
3927  done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932CC=$ac_cv_prog_CC
3933if test -n "$CC"; then
3934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935printf "%s\n" "$CC" >&6; }
3936else
3937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938printf "%s\n" "no" >&6; }
3939fi
3940
3941
3942fi
3943if test -z "$ac_cv_prog_CC"; then
3944  ac_ct_CC=$CC
3945  # Extract the first word of "clang", so it can be a program name with args.
3946set dummy clang; ac_word=$2
3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948printf %s "checking for $ac_word... " >&6; }
3949if test ${ac_cv_prog_ac_ct_CC+y}
3950then :
3951  printf %s "(cached) " >&6
3952else $as_nop
3953  if test -n "$ac_ct_CC"; then
3954  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959  IFS=$as_save_IFS
3960  case $as_dir in #(((
3961    '') as_dir=./ ;;
3962    */) ;;
3963    *) as_dir=$as_dir/ ;;
3964  esac
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3967    ac_cv_prog_ac_ct_CC="clang"
3968    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3969    break 2
3970  fi
3971done
3972  done
3973IFS=$as_save_IFS
3974
3975fi
3976fi
3977ac_ct_CC=$ac_cv_prog_ac_ct_CC
3978if test -n "$ac_ct_CC"; then
3979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3980printf "%s\n" "$ac_ct_CC" >&6; }
3981else
3982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983printf "%s\n" "no" >&6; }
3984fi
3985
3986  if test "x$ac_ct_CC" = x; then
3987    CC=""
3988  else
3989    case $cross_compiling:$ac_tool_warned in
3990yes:)
3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993ac_tool_warned=yes ;;
3994esac
3995    CC=$ac_ct_CC
3996  fi
3997else
3998  CC="$ac_cv_prog_CC"
3999fi
4000
4001fi
4002
4003
4004test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4006as_fn_error $? "no acceptable C compiler found in \$PATH
4007See \`config.log' for more details" "$LINENO" 5; }
4008
4009# Provide some information about the compiler.
4010printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4011set X $ac_compile
4012ac_compiler=$2
4013for ac_option in --version -v -V -qversion -version; do
4014  { { ac_try="$ac_compiler $ac_option >&5"
4015case "(($ac_try" in
4016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017  *) ac_try_echo=$ac_try;;
4018esac
4019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020printf "%s\n" "$ac_try_echo"; } >&5
4021  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4022  ac_status=$?
4023  if test -s conftest.err; then
4024    sed '10a\
4025... rest of stderr output deleted ...
4026         10q' conftest.err >conftest.er1
4027    cat conftest.er1 >&5
4028  fi
4029  rm -f conftest.er1 conftest.err
4030  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031  test $ac_status = 0; }
4032done
4033
4034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037int
4038main (void)
4039{
4040
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045ac_clean_files_save=$ac_clean_files
4046ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4047# Try to create an executable without -o first, disregard a.out.
4048# It will help us diagnose broken compilers, and finding out an intuition
4049# of exeext.
4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4051printf %s "checking whether the C compiler works... " >&6; }
4052ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4053
4054# The possible output files:
4055ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4056
4057ac_rmfiles=
4058for ac_file in $ac_files
4059do
4060  case $ac_file in
4061    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4062    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4063  esac
4064done
4065rm -f $ac_rmfiles
4066
4067if { { ac_try="$ac_link_default"
4068case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073printf "%s\n" "$ac_try_echo"; } >&5
4074  (eval "$ac_link_default") 2>&5
4075  ac_status=$?
4076  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077  test $ac_status = 0; }
4078then :
4079  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4080# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4081# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4082# so that the user can short-circuit this test for compilers unknown to
4083# Autoconf.
4084for ac_file in $ac_files ''
4085do
4086  test -f "$ac_file" || continue
4087  case $ac_file in
4088    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4089	;;
4090    [ab].out )
4091	# We found the default executable, but exeext='' is most
4092	# certainly right.
4093	break;;
4094    *.* )
4095	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4096	then :; else
4097	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4098	fi
4099	# We set ac_cv_exeext here because the later test for it is not
4100	# safe: cross compilers may not add the suffix if given an `-o'
4101	# argument, so we may need to know it at that point already.
4102	# Even if this section looks crufty: it has the advantage of
4103	# actually working.
4104	break;;
4105    * )
4106	break;;
4107  esac
4108done
4109test "$ac_cv_exeext" = no && ac_cv_exeext=
4110
4111else $as_nop
4112  ac_file=''
4113fi
4114if test -z "$ac_file"
4115then :
4116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117printf "%s\n" "no" >&6; }
4118printf "%s\n" "$as_me: failed program was:" >&5
4119sed 's/^/| /' conftest.$ac_ext >&5
4120
4121{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4123as_fn_error 77 "C compiler cannot create executables
4124See \`config.log' for more details" "$LINENO" 5; }
4125else $as_nop
4126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127printf "%s\n" "yes" >&6; }
4128fi
4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4130printf %s "checking for C compiler default output file name... " >&6; }
4131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4132printf "%s\n" "$ac_file" >&6; }
4133ac_exeext=$ac_cv_exeext
4134
4135rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4136ac_clean_files=$ac_clean_files_save
4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4138printf %s "checking for suffix of executables... " >&6; }
4139if { { ac_try="$ac_link"
4140case "(($ac_try" in
4141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142  *) ac_try_echo=$ac_try;;
4143esac
4144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145printf "%s\n" "$ac_try_echo"; } >&5
4146  (eval "$ac_link") 2>&5
4147  ac_status=$?
4148  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149  test $ac_status = 0; }
4150then :
4151  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4152# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4153# work properly (i.e., refer to `conftest.exe'), while it won't with
4154# `rm'.
4155for ac_file in conftest.exe conftest conftest.*; do
4156  test -f "$ac_file" || continue
4157  case $ac_file in
4158    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4159    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4160	  break;;
4161    * ) break;;
4162  esac
4163done
4164else $as_nop
4165  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4167as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4168See \`config.log' for more details" "$LINENO" 5; }
4169fi
4170rm -f conftest conftest$ac_cv_exeext
4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4172printf "%s\n" "$ac_cv_exeext" >&6; }
4173
4174rm -f conftest.$ac_ext
4175EXEEXT=$ac_cv_exeext
4176ac_exeext=$EXEEXT
4177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178/* end confdefs.h.  */
4179#include <stdio.h>
4180int
4181main (void)
4182{
4183FILE *f = fopen ("conftest.out", "w");
4184 return ferror (f) || fclose (f) != 0;
4185
4186  ;
4187  return 0;
4188}
4189_ACEOF
4190ac_clean_files="$ac_clean_files conftest.out"
4191# Check that the compiler produces executables we can run.  If not, either
4192# the compiler is broken, or we cross compile.
4193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4194printf %s "checking whether we are cross compiling... " >&6; }
4195if test "$cross_compiling" != yes; then
4196  { { ac_try="$ac_link"
4197case "(($ac_try" in
4198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199  *) ac_try_echo=$ac_try;;
4200esac
4201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202printf "%s\n" "$ac_try_echo"; } >&5
4203  (eval "$ac_link") 2>&5
4204  ac_status=$?
4205  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206  test $ac_status = 0; }
4207  if { ac_try='./conftest$ac_cv_exeext'
4208  { { case "(($ac_try" in
4209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210  *) ac_try_echo=$ac_try;;
4211esac
4212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213printf "%s\n" "$ac_try_echo"; } >&5
4214  (eval "$ac_try") 2>&5
4215  ac_status=$?
4216  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217  test $ac_status = 0; }; }; then
4218    cross_compiling=no
4219  else
4220    if test "$cross_compiling" = maybe; then
4221	cross_compiling=yes
4222    else
4223	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4225as_fn_error 77 "cannot run C compiled programs.
4226If you meant to cross compile, use \`--host'.
4227See \`config.log' for more details" "$LINENO" 5; }
4228    fi
4229  fi
4230fi
4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4232printf "%s\n" "$cross_compiling" >&6; }
4233
4234rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4235ac_clean_files=$ac_clean_files_save
4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4237printf %s "checking for suffix of object files... " >&6; }
4238if test ${ac_cv_objext+y}
4239then :
4240  printf %s "(cached) " >&6
4241else $as_nop
4242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h.  */
4244
4245int
4246main (void)
4247{
4248
4249  ;
4250  return 0;
4251}
4252_ACEOF
4253rm -f conftest.o conftest.obj
4254if { { ac_try="$ac_compile"
4255case "(($ac_try" in
4256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257  *) ac_try_echo=$ac_try;;
4258esac
4259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260printf "%s\n" "$ac_try_echo"; } >&5
4261  (eval "$ac_compile") 2>&5
4262  ac_status=$?
4263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264  test $ac_status = 0; }
4265then :
4266  for ac_file in conftest.o conftest.obj conftest.*; do
4267  test -f "$ac_file" || continue;
4268  case $ac_file in
4269    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4270    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4271       break;;
4272  esac
4273done
4274else $as_nop
4275  printf "%s\n" "$as_me: failed program was:" >&5
4276sed 's/^/| /' conftest.$ac_ext >&5
4277
4278{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4280as_fn_error $? "cannot compute suffix of object files: cannot compile
4281See \`config.log' for more details" "$LINENO" 5; }
4282fi
4283rm -f conftest.$ac_cv_objext conftest.$ac_ext
4284fi
4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4286printf "%s\n" "$ac_cv_objext" >&6; }
4287OBJEXT=$ac_cv_objext
4288ac_objext=$OBJEXT
4289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4290printf %s "checking whether the compiler supports GNU C... " >&6; }
4291if test ${ac_cv_c_compiler_gnu+y}
4292then :
4293  printf %s "(cached) " >&6
4294else $as_nop
4295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296/* end confdefs.h.  */
4297
4298int
4299main (void)
4300{
4301#ifndef __GNUC__
4302       choke me
4303#endif
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309if ac_fn_c_try_compile "$LINENO"
4310then :
4311  ac_compiler_gnu=yes
4312else $as_nop
4313  ac_compiler_gnu=no
4314fi
4315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4316ac_cv_c_compiler_gnu=$ac_compiler_gnu
4317
4318fi
4319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4320printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4321ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323if test $ac_compiler_gnu = yes; then
4324  GCC=yes
4325else
4326  GCC=
4327fi
4328ac_test_CFLAGS=${CFLAGS+y}
4329ac_save_CFLAGS=$CFLAGS
4330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4331printf %s "checking whether $CC accepts -g... " >&6; }
4332if test ${ac_cv_prog_cc_g+y}
4333then :
4334  printf %s "(cached) " >&6
4335else $as_nop
4336  ac_save_c_werror_flag=$ac_c_werror_flag
4337   ac_c_werror_flag=yes
4338   ac_cv_prog_cc_g=no
4339   CFLAGS="-g"
4340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h.  */
4342
4343int
4344main (void)
4345{
4346
4347  ;
4348  return 0;
4349}
4350_ACEOF
4351if ac_fn_c_try_compile "$LINENO"
4352then :
4353  ac_cv_prog_cc_g=yes
4354else $as_nop
4355  CFLAGS=""
4356      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h.  */
4358
4359int
4360main (void)
4361{
4362
4363  ;
4364  return 0;
4365}
4366_ACEOF
4367if ac_fn_c_try_compile "$LINENO"
4368then :
4369
4370else $as_nop
4371  ac_c_werror_flag=$ac_save_c_werror_flag
4372	 CFLAGS="-g"
4373	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375
4376int
4377main (void)
4378{
4379
4380  ;
4381  return 0;
4382}
4383_ACEOF
4384if ac_fn_c_try_compile "$LINENO"
4385then :
4386  ac_cv_prog_cc_g=yes
4387fi
4388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4389fi
4390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4391fi
4392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4393   ac_c_werror_flag=$ac_save_c_werror_flag
4394fi
4395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4396printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4397if test $ac_test_CFLAGS; then
4398  CFLAGS=$ac_save_CFLAGS
4399elif test $ac_cv_prog_cc_g = yes; then
4400  if test "$GCC" = yes; then
4401    CFLAGS="-g -O2"
4402  else
4403    CFLAGS="-g"
4404  fi
4405else
4406  if test "$GCC" = yes; then
4407    CFLAGS="-O2"
4408  else
4409    CFLAGS=
4410  fi
4411fi
4412ac_prog_cc_stdc=no
4413if test x$ac_prog_cc_stdc = xno
4414then :
4415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4416printf %s "checking for $CC option to enable C11 features... " >&6; }
4417if test ${ac_cv_prog_cc_c11+y}
4418then :
4419  printf %s "(cached) " >&6
4420else $as_nop
4421  ac_cv_prog_cc_c11=no
4422ac_save_CC=$CC
4423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425$ac_c_conftest_c11_program
4426_ACEOF
4427for ac_arg in '' -std=gnu11
4428do
4429  CC="$ac_save_CC $ac_arg"
4430  if ac_fn_c_try_compile "$LINENO"
4431then :
4432  ac_cv_prog_cc_c11=$ac_arg
4433fi
4434rm -f core conftest.err conftest.$ac_objext conftest.beam
4435  test "x$ac_cv_prog_cc_c11" != "xno" && break
4436done
4437rm -f conftest.$ac_ext
4438CC=$ac_save_CC
4439fi
4440
4441if test "x$ac_cv_prog_cc_c11" = xno
4442then :
4443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4444printf "%s\n" "unsupported" >&6; }
4445else $as_nop
4446  if test "x$ac_cv_prog_cc_c11" = x
4447then :
4448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4449printf "%s\n" "none needed" >&6; }
4450else $as_nop
4451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4452printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4453     CC="$CC $ac_cv_prog_cc_c11"
4454fi
4455  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4456  ac_prog_cc_stdc=c11
4457fi
4458fi
4459if test x$ac_prog_cc_stdc = xno
4460then :
4461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4462printf %s "checking for $CC option to enable C99 features... " >&6; }
4463if test ${ac_cv_prog_cc_c99+y}
4464then :
4465  printf %s "(cached) " >&6
4466else $as_nop
4467  ac_cv_prog_cc_c99=no
4468ac_save_CC=$CC
4469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h.  */
4471$ac_c_conftest_c99_program
4472_ACEOF
4473for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4474do
4475  CC="$ac_save_CC $ac_arg"
4476  if ac_fn_c_try_compile "$LINENO"
4477then :
4478  ac_cv_prog_cc_c99=$ac_arg
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.beam
4481  test "x$ac_cv_prog_cc_c99" != "xno" && break
4482done
4483rm -f conftest.$ac_ext
4484CC=$ac_save_CC
4485fi
4486
4487if test "x$ac_cv_prog_cc_c99" = xno
4488then :
4489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490printf "%s\n" "unsupported" >&6; }
4491else $as_nop
4492  if test "x$ac_cv_prog_cc_c99" = x
4493then :
4494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4495printf "%s\n" "none needed" >&6; }
4496else $as_nop
4497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4498printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4499     CC="$CC $ac_cv_prog_cc_c99"
4500fi
4501  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4502  ac_prog_cc_stdc=c99
4503fi
4504fi
4505if test x$ac_prog_cc_stdc = xno
4506then :
4507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4508printf %s "checking for $CC option to enable C89 features... " >&6; }
4509if test ${ac_cv_prog_cc_c89+y}
4510then :
4511  printf %s "(cached) " >&6
4512else $as_nop
4513  ac_cv_prog_cc_c89=no
4514ac_save_CC=$CC
4515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h.  */
4517$ac_c_conftest_c89_program
4518_ACEOF
4519for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4520do
4521  CC="$ac_save_CC $ac_arg"
4522  if ac_fn_c_try_compile "$LINENO"
4523then :
4524  ac_cv_prog_cc_c89=$ac_arg
4525fi
4526rm -f core conftest.err conftest.$ac_objext conftest.beam
4527  test "x$ac_cv_prog_cc_c89" != "xno" && break
4528done
4529rm -f conftest.$ac_ext
4530CC=$ac_save_CC
4531fi
4532
4533if test "x$ac_cv_prog_cc_c89" = xno
4534then :
4535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4536printf "%s\n" "unsupported" >&6; }
4537else $as_nop
4538  if test "x$ac_cv_prog_cc_c89" = x
4539then :
4540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4541printf "%s\n" "none needed" >&6; }
4542else $as_nop
4543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4544printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4545     CC="$CC $ac_cv_prog_cc_c89"
4546fi
4547  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4548  ac_prog_cc_stdc=c89
4549fi
4550fi
4551
4552ac_ext=c
4553ac_cpp='$CPP $CPPFLAGS'
4554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558
4559  ac_ext=c
4560ac_cpp='$CPP $CPPFLAGS'
4561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4565printf %s "checking whether $CC understands -c and -o together... " >&6; }
4566if test ${am_cv_prog_cc_c_o+y}
4567then :
4568  printf %s "(cached) " >&6
4569else $as_nop
4570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h.  */
4572
4573int
4574main (void)
4575{
4576
4577  ;
4578  return 0;
4579}
4580_ACEOF
4581  # Make sure it works both with $CC and with simple cc.
4582  # Following AC_PROG_CC_C_O, we do the test twice because some
4583  # compilers refuse to overwrite an existing .o file with -o,
4584  # though they will create one.
4585  am_cv_prog_cc_c_o=yes
4586  for am_i in 1 2; do
4587    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4588   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } \
4592         && test -f conftest2.$ac_objext; then
4593      : OK
4594    else
4595      am_cv_prog_cc_c_o=no
4596      break
4597    fi
4598  done
4599  rm -f core conftest*
4600  unset am_i
4601fi
4602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4603printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4604if test "$am_cv_prog_cc_c_o" != yes; then
4605   # Losing compiler, so override with the script.
4606   # FIXME: It is wrong to rewrite CC.
4607   # But if we don't then we get into trouble of one sort or another.
4608   # A longer-term fix would be to have automake use am__CC in this case,
4609   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4610   CC="$am_aux_dir/compile $CC"
4611fi
4612ac_ext=c
4613ac_cpp='$CPP $CPPFLAGS'
4614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
4618
4619depcc="$CC"   am_compiler_list=
4620
4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4622printf %s "checking dependency style of $depcc... " >&6; }
4623if test ${am_cv_CC_dependencies_compiler_type+y}
4624then :
4625  printf %s "(cached) " >&6
4626else $as_nop
4627  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4628  # We make a subdir and do the tests there.  Otherwise we can end up
4629  # making bogus files that we don't know about and never remove.  For
4630  # instance it was reported that on HP-UX the gcc test will end up
4631  # making a dummy file named 'D' -- because '-MD' means "put the output
4632  # in D".
4633  rm -rf conftest.dir
4634  mkdir conftest.dir
4635  # Copy depcomp to subdir because otherwise we won't find it if we're
4636  # using a relative directory.
4637  cp "$am_depcomp" conftest.dir
4638  cd conftest.dir
4639  # We will build objects and dependencies in a subdirectory because
4640  # it helps to detect inapplicable dependency modes.  For instance
4641  # both Tru64's cc and ICC support -MD to output dependencies as a
4642  # side effect of compilation, but ICC will put the dependencies in
4643  # the current directory while Tru64 will put them in the object
4644  # directory.
4645  mkdir sub
4646
4647  am_cv_CC_dependencies_compiler_type=none
4648  if test "$am_compiler_list" = ""; then
4649     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4650  fi
4651  am__universal=false
4652  case " $depcc " in #(
4653     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4654     esac
4655
4656  for depmode in $am_compiler_list; do
4657    # Setup a source with many dependencies, because some compilers
4658    # like to wrap large dependency lists on column 80 (with \), and
4659    # we should not choose a depcomp mode which is confused by this.
4660    #
4661    # We need to recreate these files for each test, as the compiler may
4662    # overwrite some of them when testing with obscure command lines.
4663    # This happens at least with the AIX C compiler.
4664    : > sub/conftest.c
4665    for i in 1 2 3 4 5 6; do
4666      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4667      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4668      # Solaris 10 /bin/sh.
4669      echo '/* dummy */' > sub/conftst$i.h
4670    done
4671    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4672
4673    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4674    # mode.  It turns out that the SunPro C++ compiler does not properly
4675    # handle '-M -o', and we need to detect this.  Also, some Intel
4676    # versions had trouble with output in subdirs.
4677    am__obj=sub/conftest.${OBJEXT-o}
4678    am__minus_obj="-o $am__obj"
4679    case $depmode in
4680    gcc)
4681      # This depmode causes a compiler race in universal mode.
4682      test "$am__universal" = false || continue
4683      ;;
4684    nosideeffect)
4685      # After this tag, mechanisms are not by side-effect, so they'll
4686      # only be used when explicitly requested.
4687      if test "x$enable_dependency_tracking" = xyes; then
4688	continue
4689      else
4690	break
4691      fi
4692      ;;
4693    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4694      # This compiler won't grok '-c -o', but also, the minuso test has
4695      # not run yet.  These depmodes are late enough in the game, and
4696      # so weak that their functioning should not be impacted.
4697      am__obj=conftest.${OBJEXT-o}
4698      am__minus_obj=
4699      ;;
4700    none) break ;;
4701    esac
4702    if depmode=$depmode \
4703       source=sub/conftest.c object=$am__obj \
4704       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4705       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4706         >/dev/null 2>conftest.err &&
4707       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4708       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4709       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4710       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4711      # icc doesn't choke on unknown options, it will just issue warnings
4712      # or remarks (even with -Werror).  So we grep stderr for any message
4713      # that says an option was ignored or not supported.
4714      # When given -MP, icc 7.0 and 7.1 complain thusly:
4715      #   icc: Command line warning: ignoring option '-M'; no argument required
4716      # The diagnosis changed in icc 8.0:
4717      #   icc: Command line remark: option '-MP' not supported
4718      if (grep 'ignoring option' conftest.err ||
4719          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4720        am_cv_CC_dependencies_compiler_type=$depmode
4721        break
4722      fi
4723    fi
4724  done
4725
4726  cd ..
4727  rm -rf conftest.dir
4728else
4729  am_cv_CC_dependencies_compiler_type=none
4730fi
4731
4732fi
4733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4734printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4735CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4736
4737 if
4738  test "x$enable_dependency_tracking" != xno \
4739  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4740  am__fastdepCC_TRUE=
4741  am__fastdepCC_FALSE='#'
4742else
4743  am__fastdepCC_TRUE='#'
4744  am__fastdepCC_FALSE=
4745fi
4746
4747
4748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4749printf %s "checking for a sed that does not truncate output... " >&6; }
4750if test ${ac_cv_path_SED+y}
4751then :
4752  printf %s "(cached) " >&6
4753else $as_nop
4754            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4755     for ac_i in 1 2 3 4 5 6 7; do
4756       ac_script="$ac_script$as_nl$ac_script"
4757     done
4758     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4759     { ac_script=; unset ac_script;}
4760     if test -z "$SED"; then
4761  ac_path_SED_found=false
4762  # Loop through the user's path and test for each of PROGNAME-LIST
4763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766  IFS=$as_save_IFS
4767  case $as_dir in #(((
4768    '') as_dir=./ ;;
4769    */) ;;
4770    *) as_dir=$as_dir/ ;;
4771  esac
4772    for ac_prog in sed gsed
4773   do
4774    for ac_exec_ext in '' $ac_executable_extensions; do
4775      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4776      as_fn_executable_p "$ac_path_SED" || continue
4777# Check for GNU ac_path_SED and select it if it is found.
4778  # Check for GNU $ac_path_SED
4779case `"$ac_path_SED" --version 2>&1` in
4780*GNU*)
4781  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4782*)
4783  ac_count=0
4784  printf %s 0123456789 >"conftest.in"
4785  while :
4786  do
4787    cat "conftest.in" "conftest.in" >"conftest.tmp"
4788    mv "conftest.tmp" "conftest.in"
4789    cp "conftest.in" "conftest.nl"
4790    printf "%s\n" '' >> "conftest.nl"
4791    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4792    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4793    as_fn_arith $ac_count + 1 && ac_count=$as_val
4794    if test $ac_count -gt ${ac_path_SED_max-0}; then
4795      # Best one so far, save it but keep looking for a better one
4796      ac_cv_path_SED="$ac_path_SED"
4797      ac_path_SED_max=$ac_count
4798    fi
4799    # 10*(2^10) chars as input seems more than enough
4800    test $ac_count -gt 10 && break
4801  done
4802  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4803esac
4804
4805      $ac_path_SED_found && break 3
4806    done
4807  done
4808  done
4809IFS=$as_save_IFS
4810  if test -z "$ac_cv_path_SED"; then
4811    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4812  fi
4813else
4814  ac_cv_path_SED=$SED
4815fi
4816
4817fi
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4819printf "%s\n" "$ac_cv_path_SED" >&6; }
4820 SED="$ac_cv_path_SED"
4821  rm -f conftest.sed
4822
4823test -z "$SED" && SED=sed
4824Xsed="$SED -e 1s/^X//"
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4837printf %s "checking for grep that handles long lines and -e... " >&6; }
4838if test ${ac_cv_path_GREP+y}
4839then :
4840  printf %s "(cached) " >&6
4841else $as_nop
4842  if test -z "$GREP"; then
4843  ac_path_GREP_found=false
4844  # Loop through the user's path and test for each of PROGNAME-LIST
4845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847do
4848  IFS=$as_save_IFS
4849  case $as_dir in #(((
4850    '') as_dir=./ ;;
4851    */) ;;
4852    *) as_dir=$as_dir/ ;;
4853  esac
4854    for ac_prog in grep ggrep
4855   do
4856    for ac_exec_ext in '' $ac_executable_extensions; do
4857      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4858      as_fn_executable_p "$ac_path_GREP" || continue
4859# Check for GNU ac_path_GREP and select it if it is found.
4860  # Check for GNU $ac_path_GREP
4861case `"$ac_path_GREP" --version 2>&1` in
4862*GNU*)
4863  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4864*)
4865  ac_count=0
4866  printf %s 0123456789 >"conftest.in"
4867  while :
4868  do
4869    cat "conftest.in" "conftest.in" >"conftest.tmp"
4870    mv "conftest.tmp" "conftest.in"
4871    cp "conftest.in" "conftest.nl"
4872    printf "%s\n" 'GREP' >> "conftest.nl"
4873    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4874    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4875    as_fn_arith $ac_count + 1 && ac_count=$as_val
4876    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4877      # Best one so far, save it but keep looking for a better one
4878      ac_cv_path_GREP="$ac_path_GREP"
4879      ac_path_GREP_max=$ac_count
4880    fi
4881    # 10*(2^10) chars as input seems more than enough
4882    test $ac_count -gt 10 && break
4883  done
4884  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4885esac
4886
4887      $ac_path_GREP_found && break 3
4888    done
4889  done
4890  done
4891IFS=$as_save_IFS
4892  if test -z "$ac_cv_path_GREP"; then
4893    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4894  fi
4895else
4896  ac_cv_path_GREP=$GREP
4897fi
4898
4899fi
4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4901printf "%s\n" "$ac_cv_path_GREP" >&6; }
4902 GREP="$ac_cv_path_GREP"
4903
4904
4905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4906printf %s "checking for egrep... " >&6; }
4907if test ${ac_cv_path_EGREP+y}
4908then :
4909  printf %s "(cached) " >&6
4910else $as_nop
4911  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4912   then ac_cv_path_EGREP="$GREP -E"
4913   else
4914     if test -z "$EGREP"; then
4915  ac_path_EGREP_found=false
4916  # Loop through the user's path and test for each of PROGNAME-LIST
4917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4919do
4920  IFS=$as_save_IFS
4921  case $as_dir in #(((
4922    '') as_dir=./ ;;
4923    */) ;;
4924    *) as_dir=$as_dir/ ;;
4925  esac
4926    for ac_prog in egrep
4927   do
4928    for ac_exec_ext in '' $ac_executable_extensions; do
4929      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4930      as_fn_executable_p "$ac_path_EGREP" || continue
4931# Check for GNU ac_path_EGREP and select it if it is found.
4932  # Check for GNU $ac_path_EGREP
4933case `"$ac_path_EGREP" --version 2>&1` in
4934*GNU*)
4935  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4936*)
4937  ac_count=0
4938  printf %s 0123456789 >"conftest.in"
4939  while :
4940  do
4941    cat "conftest.in" "conftest.in" >"conftest.tmp"
4942    mv "conftest.tmp" "conftest.in"
4943    cp "conftest.in" "conftest.nl"
4944    printf "%s\n" 'EGREP' >> "conftest.nl"
4945    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4946    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4947    as_fn_arith $ac_count + 1 && ac_count=$as_val
4948    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4949      # Best one so far, save it but keep looking for a better one
4950      ac_cv_path_EGREP="$ac_path_EGREP"
4951      ac_path_EGREP_max=$ac_count
4952    fi
4953    # 10*(2^10) chars as input seems more than enough
4954    test $ac_count -gt 10 && break
4955  done
4956  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4957esac
4958
4959      $ac_path_EGREP_found && break 3
4960    done
4961  done
4962  done
4963IFS=$as_save_IFS
4964  if test -z "$ac_cv_path_EGREP"; then
4965    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4966  fi
4967else
4968  ac_cv_path_EGREP=$EGREP
4969fi
4970
4971   fi
4972fi
4973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4974printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4975 EGREP="$ac_cv_path_EGREP"
4976
4977
4978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4979printf %s "checking for fgrep... " >&6; }
4980if test ${ac_cv_path_FGREP+y}
4981then :
4982  printf %s "(cached) " >&6
4983else $as_nop
4984  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4985   then ac_cv_path_FGREP="$GREP -F"
4986   else
4987     if test -z "$FGREP"; then
4988  ac_path_FGREP_found=false
4989  # Loop through the user's path and test for each of PROGNAME-LIST
4990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992do
4993  IFS=$as_save_IFS
4994  case $as_dir in #(((
4995    '') as_dir=./ ;;
4996    */) ;;
4997    *) as_dir=$as_dir/ ;;
4998  esac
4999    for ac_prog in fgrep
5000   do
5001    for ac_exec_ext in '' $ac_executable_extensions; do
5002      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5003      as_fn_executable_p "$ac_path_FGREP" || continue
5004# Check for GNU ac_path_FGREP and select it if it is found.
5005  # Check for GNU $ac_path_FGREP
5006case `"$ac_path_FGREP" --version 2>&1` in
5007*GNU*)
5008  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5009*)
5010  ac_count=0
5011  printf %s 0123456789 >"conftest.in"
5012  while :
5013  do
5014    cat "conftest.in" "conftest.in" >"conftest.tmp"
5015    mv "conftest.tmp" "conftest.in"
5016    cp "conftest.in" "conftest.nl"
5017    printf "%s\n" 'FGREP' >> "conftest.nl"
5018    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020    as_fn_arith $ac_count + 1 && ac_count=$as_val
5021    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5022      # Best one so far, save it but keep looking for a better one
5023      ac_cv_path_FGREP="$ac_path_FGREP"
5024      ac_path_FGREP_max=$ac_count
5025    fi
5026    # 10*(2^10) chars as input seems more than enough
5027    test $ac_count -gt 10 && break
5028  done
5029  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5030esac
5031
5032      $ac_path_FGREP_found && break 3
5033    done
5034  done
5035  done
5036IFS=$as_save_IFS
5037  if test -z "$ac_cv_path_FGREP"; then
5038    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5039  fi
5040else
5041  ac_cv_path_FGREP=$FGREP
5042fi
5043
5044   fi
5045fi
5046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5047printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5048 FGREP="$ac_cv_path_FGREP"
5049
5050
5051test -z "$GREP" && GREP=grep
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071# Check whether --with-gnu-ld was given.
5072if test ${with_gnu_ld+y}
5073then :
5074  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5075else $as_nop
5076  with_gnu_ld=no
5077fi
5078
5079ac_prog=ld
5080if test yes = "$GCC"; then
5081  # Check if gcc -print-prog-name=ld gives a path.
5082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5083printf %s "checking for ld used by $CC... " >&6; }
5084  case $host in
5085  *-*-mingw*)
5086    # gcc leaves a trailing carriage return, which upsets mingw
5087    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5088  *)
5089    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5090  esac
5091  case $ac_prog in
5092    # Accept absolute paths.
5093    [\\/]* | ?:[\\/]*)
5094      re_direlt='/[^/][^/]*/\.\./'
5095      # Canonicalize the pathname of ld
5096      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5097      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5098	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5099      done
5100      test -z "$LD" && LD=$ac_prog
5101      ;;
5102  "")
5103    # If it fails, then pretend we aren't using GCC.
5104    ac_prog=ld
5105    ;;
5106  *)
5107    # If it is relative, then search for the first ld in PATH.
5108    with_gnu_ld=unknown
5109    ;;
5110  esac
5111elif test yes = "$with_gnu_ld"; then
5112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5113printf %s "checking for GNU ld... " >&6; }
5114else
5115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5116printf %s "checking for non-GNU ld... " >&6; }
5117fi
5118if test ${lt_cv_path_LD+y}
5119then :
5120  printf %s "(cached) " >&6
5121else $as_nop
5122  if test -z "$LD"; then
5123  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5124  for ac_dir in $PATH; do
5125    IFS=$lt_save_ifs
5126    test -z "$ac_dir" && ac_dir=.
5127    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5128      lt_cv_path_LD=$ac_dir/$ac_prog
5129      # Check to see if the program is GNU ld.  I'd rather use --version,
5130      # but apparently some variants of GNU ld only accept -v.
5131      # Break only if it was the GNU/non-GNU ld that we prefer.
5132      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5133      *GNU* | *'with BFD'*)
5134	test no != "$with_gnu_ld" && break
5135	;;
5136      *)
5137	test yes != "$with_gnu_ld" && break
5138	;;
5139      esac
5140    fi
5141  done
5142  IFS=$lt_save_ifs
5143else
5144  lt_cv_path_LD=$LD # Let the user override the test with a path.
5145fi
5146fi
5147
5148LD=$lt_cv_path_LD
5149if test -n "$LD"; then
5150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5151printf "%s\n" "$LD" >&6; }
5152else
5153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154printf "%s\n" "no" >&6; }
5155fi
5156test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5158printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5159if test ${lt_cv_prog_gnu_ld+y}
5160then :
5161  printf %s "(cached) " >&6
5162else $as_nop
5163  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5164case `$LD -v 2>&1 </dev/null` in
5165*GNU* | *'with BFD'*)
5166  lt_cv_prog_gnu_ld=yes
5167  ;;
5168*)
5169  lt_cv_prog_gnu_ld=no
5170  ;;
5171esac
5172fi
5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5174printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5175with_gnu_ld=$lt_cv_prog_gnu_ld
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5186printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5187if test ${lt_cv_path_NM+y}
5188then :
5189  printf %s "(cached) " >&6
5190else $as_nop
5191  if test -n "$NM"; then
5192  # Let the user override the test.
5193  lt_cv_path_NM=$NM
5194else
5195  lt_nm_to_check=${ac_tool_prefix}nm
5196  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5197    lt_nm_to_check="$lt_nm_to_check nm"
5198  fi
5199  for lt_tmp_nm in $lt_nm_to_check; do
5200    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5201    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5202      IFS=$lt_save_ifs
5203      test -z "$ac_dir" && ac_dir=.
5204      tmp_nm=$ac_dir/$lt_tmp_nm
5205      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5206	# Check to see if the nm accepts a BSD-compat flag.
5207	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5208	#   nm: unknown option "B" ignored
5209	# Tru64's nm complains that /dev/null is an invalid object file
5210	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5211	case $build_os in
5212	mingw*) lt_bad_file=conftest.nm/nofile ;;
5213	*) lt_bad_file=/dev/null ;;
5214	esac
5215	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5216	*$lt_bad_file* | *'Invalid file or object type'*)
5217	  lt_cv_path_NM="$tmp_nm -B"
5218	  break 2
5219	  ;;
5220	*)
5221	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5222	  */dev/null*)
5223	    lt_cv_path_NM="$tmp_nm -p"
5224	    break 2
5225	    ;;
5226	  *)
5227	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5228	    continue # so that we can try to find one that supports BSD flags
5229	    ;;
5230	  esac
5231	  ;;
5232	esac
5233      fi
5234    done
5235    IFS=$lt_save_ifs
5236  done
5237  : ${lt_cv_path_NM=no}
5238fi
5239fi
5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5241printf "%s\n" "$lt_cv_path_NM" >&6; }
5242if test no != "$lt_cv_path_NM"; then
5243  NM=$lt_cv_path_NM
5244else
5245  # Didn't find any BSD compatible name lister, look for dumpbin.
5246  if test -n "$DUMPBIN"; then :
5247    # Let the user override the test.
5248  else
5249    if test -n "$ac_tool_prefix"; then
5250  for ac_prog in dumpbin "link -dump"
5251  do
5252    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5253set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255printf %s "checking for $ac_word... " >&6; }
5256if test ${ac_cv_prog_DUMPBIN+y}
5257then :
5258  printf %s "(cached) " >&6
5259else $as_nop
5260  if test -n "$DUMPBIN"; then
5261  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  case $as_dir in #(((
5268    '') as_dir=./ ;;
5269    */) ;;
5270    *) as_dir=$as_dir/ ;;
5271  esac
5272    for ac_exec_ext in '' $ac_executable_extensions; do
5273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5274    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279  done
5280IFS=$as_save_IFS
5281
5282fi
5283fi
5284DUMPBIN=$ac_cv_prog_DUMPBIN
5285if test -n "$DUMPBIN"; then
5286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5287printf "%s\n" "$DUMPBIN" >&6; }
5288else
5289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290printf "%s\n" "no" >&6; }
5291fi
5292
5293
5294    test -n "$DUMPBIN" && break
5295  done
5296fi
5297if test -z "$DUMPBIN"; then
5298  ac_ct_DUMPBIN=$DUMPBIN
5299  for ac_prog in dumpbin "link -dump"
5300do
5301  # Extract the first word of "$ac_prog", so it can be a program name with args.
5302set dummy $ac_prog; ac_word=$2
5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304printf %s "checking for $ac_word... " >&6; }
5305if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5306then :
5307  printf %s "(cached) " >&6
5308else $as_nop
5309  if test -n "$ac_ct_DUMPBIN"; then
5310  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5311else
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315  IFS=$as_save_IFS
5316  case $as_dir in #(((
5317    '') as_dir=./ ;;
5318    */) ;;
5319    *) as_dir=$as_dir/ ;;
5320  esac
5321    for ac_exec_ext in '' $ac_executable_extensions; do
5322  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5323    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5324    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5325    break 2
5326  fi
5327done
5328  done
5329IFS=$as_save_IFS
5330
5331fi
5332fi
5333ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5334if test -n "$ac_ct_DUMPBIN"; then
5335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5336printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5337else
5338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339printf "%s\n" "no" >&6; }
5340fi
5341
5342
5343  test -n "$ac_ct_DUMPBIN" && break
5344done
5345
5346  if test "x$ac_ct_DUMPBIN" = x; then
5347    DUMPBIN=":"
5348  else
5349    case $cross_compiling:$ac_tool_warned in
5350yes:)
5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353ac_tool_warned=yes ;;
5354esac
5355    DUMPBIN=$ac_ct_DUMPBIN
5356  fi
5357fi
5358
5359    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5360    *COFF*)
5361      DUMPBIN="$DUMPBIN -symbols -headers"
5362      ;;
5363    *)
5364      DUMPBIN=:
5365      ;;
5366    esac
5367  fi
5368
5369  if test : != "$DUMPBIN"; then
5370    NM=$DUMPBIN
5371  fi
5372fi
5373test -z "$NM" && NM=nm
5374
5375
5376
5377
5378
5379
5380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5381printf %s "checking the name lister ($NM) interface... " >&6; }
5382if test ${lt_cv_nm_interface+y}
5383then :
5384  printf %s "(cached) " >&6
5385else $as_nop
5386  lt_cv_nm_interface="BSD nm"
5387  echo "int some_variable = 0;" > conftest.$ac_ext
5388  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5389  (eval "$ac_compile" 2>conftest.err)
5390  cat conftest.err >&5
5391  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5392  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5393  cat conftest.err >&5
5394  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5395  cat conftest.out >&5
5396  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5397    lt_cv_nm_interface="MS dumpbin"
5398  fi
5399  rm -f conftest*
5400fi
5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5402printf "%s\n" "$lt_cv_nm_interface" >&6; }
5403
5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5405printf %s "checking whether ln -s works... " >&6; }
5406LN_S=$as_ln_s
5407if test "$LN_S" = "ln -s"; then
5408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5409printf "%s\n" "yes" >&6; }
5410else
5411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5412printf "%s\n" "no, using $LN_S" >&6; }
5413fi
5414
5415# find the maximum length of command line arguments
5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5417printf %s "checking the maximum length of command line arguments... " >&6; }
5418if test ${lt_cv_sys_max_cmd_len+y}
5419then :
5420  printf %s "(cached) " >&6
5421else $as_nop
5422    i=0
5423  teststring=ABCD
5424
5425  case $build_os in
5426  msdosdjgpp*)
5427    # On DJGPP, this test can blow up pretty badly due to problems in libc
5428    # (any single argument exceeding 2000 bytes causes a buffer overrun
5429    # during glob expansion).  Even if it were fixed, the result of this
5430    # check would be larger than it should be.
5431    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5432    ;;
5433
5434  gnu*)
5435    # Under GNU Hurd, this test is not required because there is
5436    # no limit to the length of command line arguments.
5437    # Libtool will interpret -1 as no limit whatsoever
5438    lt_cv_sys_max_cmd_len=-1;
5439    ;;
5440
5441  cygwin* | mingw* | cegcc*)
5442    # On Win9x/ME, this test blows up -- it succeeds, but takes
5443    # about 5 minutes as the teststring grows exponentially.
5444    # Worse, since 9x/ME are not pre-emptively multitasking,
5445    # you end up with a "frozen" computer, even though with patience
5446    # the test eventually succeeds (with a max line length of 256k).
5447    # Instead, let's just punt: use the minimum linelength reported by
5448    # all of the supported platforms: 8192 (on NT/2K/XP).
5449    lt_cv_sys_max_cmd_len=8192;
5450    ;;
5451
5452  mint*)
5453    # On MiNT this can take a long time and run out of memory.
5454    lt_cv_sys_max_cmd_len=8192;
5455    ;;
5456
5457  amigaos*)
5458    # On AmigaOS with pdksh, this test takes hours, literally.
5459    # So we just punt and use a minimum line length of 8192.
5460    lt_cv_sys_max_cmd_len=8192;
5461    ;;
5462
5463  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5464    # This has been around since 386BSD, at least.  Likely further.
5465    if test -x /sbin/sysctl; then
5466      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5467    elif test -x /usr/sbin/sysctl; then
5468      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5469    else
5470      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5471    fi
5472    # And add a safety zone
5473    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5474    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5475    ;;
5476
5477  interix*)
5478    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5479    lt_cv_sys_max_cmd_len=196608
5480    ;;
5481
5482  os2*)
5483    # The test takes a long time on OS/2.
5484    lt_cv_sys_max_cmd_len=8192
5485    ;;
5486
5487  osf*)
5488    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5489    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5490    # nice to cause kernel panics so lets avoid the loop below.
5491    # First set a reasonable default.
5492    lt_cv_sys_max_cmd_len=16384
5493    #
5494    if test -x /sbin/sysconfig; then
5495      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5496        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5497      esac
5498    fi
5499    ;;
5500  sco3.2v5*)
5501    lt_cv_sys_max_cmd_len=102400
5502    ;;
5503  sysv5* | sco5v6* | sysv4.2uw2*)
5504    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5505    if test -n "$kargmax"; then
5506      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5507    else
5508      lt_cv_sys_max_cmd_len=32768
5509    fi
5510    ;;
5511  *)
5512    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5513    if test -n "$lt_cv_sys_max_cmd_len" && \
5514       test undefined != "$lt_cv_sys_max_cmd_len"; then
5515      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5516      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5517    else
5518      # Make teststring a little bigger before we do anything with it.
5519      # a 1K string should be a reasonable start.
5520      for i in 1 2 3 4 5 6 7 8; do
5521        teststring=$teststring$teststring
5522      done
5523      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5524      # If test is not a shell built-in, we'll probably end up computing a
5525      # maximum length that is only half of the actual maximum length, but
5526      # we can't tell.
5527      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5528	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5529	      test 17 != "$i" # 1/2 MB should be enough
5530      do
5531        i=`expr $i + 1`
5532        teststring=$teststring$teststring
5533      done
5534      # Only check the string length outside the loop.
5535      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5536      teststring=
5537      # Add a significant safety factor because C++ compilers can tack on
5538      # massive amounts of additional arguments before passing them to the
5539      # linker.  It appears as though 1/2 is a usable value.
5540      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5541    fi
5542    ;;
5543  esac
5544
5545fi
5546
5547if test -n "$lt_cv_sys_max_cmd_len"; then
5548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5549printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5550else
5551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5552printf "%s\n" "none" >&6; }
5553fi
5554max_cmd_len=$lt_cv_sys_max_cmd_len
5555
5556
5557
5558
5559
5560
5561: ${CP="cp -f"}
5562: ${MV="mv -f"}
5563: ${RM="rm -f"}
5564
5565if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5566  lt_unset=unset
5567else
5568  lt_unset=false
5569fi
5570
5571
5572
5573
5574
5575# test EBCDIC or ASCII
5576case `echo X|tr X '\101'` in
5577 A) # ASCII based system
5578    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5579  lt_SP2NL='tr \040 \012'
5580  lt_NL2SP='tr \015\012 \040\040'
5581  ;;
5582 *) # EBCDIC based system
5583  lt_SP2NL='tr \100 \n'
5584  lt_NL2SP='tr \r\n \100\100'
5585  ;;
5586esac
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5597printf %s "checking how to convert $build file names to $host format... " >&6; }
5598if test ${lt_cv_to_host_file_cmd+y}
5599then :
5600  printf %s "(cached) " >&6
5601else $as_nop
5602  case $host in
5603  *-*-mingw* )
5604    case $build in
5605      *-*-mingw* ) # actually msys
5606        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5607        ;;
5608      *-*-cygwin* )
5609        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5610        ;;
5611      * ) # otherwise, assume *nix
5612        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5613        ;;
5614    esac
5615    ;;
5616  *-*-cygwin* )
5617    case $build in
5618      *-*-mingw* ) # actually msys
5619        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5620        ;;
5621      *-*-cygwin* )
5622        lt_cv_to_host_file_cmd=func_convert_file_noop
5623        ;;
5624      * ) # otherwise, assume *nix
5625        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5626        ;;
5627    esac
5628    ;;
5629  * ) # unhandled hosts (and "normal" native builds)
5630    lt_cv_to_host_file_cmd=func_convert_file_noop
5631    ;;
5632esac
5633
5634fi
5635
5636to_host_file_cmd=$lt_cv_to_host_file_cmd
5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5638printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5639
5640
5641
5642
5643
5644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5645printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5646if test ${lt_cv_to_tool_file_cmd+y}
5647then :
5648  printf %s "(cached) " >&6
5649else $as_nop
5650  #assume ordinary cross tools, or native build.
5651lt_cv_to_tool_file_cmd=func_convert_file_noop
5652case $host in
5653  *-*-mingw* )
5654    case $build in
5655      *-*-mingw* ) # actually msys
5656        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5657        ;;
5658    esac
5659    ;;
5660esac
5661
5662fi
5663
5664to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5666printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5667
5668
5669
5670
5671
5672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5673printf %s "checking for $LD option to reload object files... " >&6; }
5674if test ${lt_cv_ld_reload_flag+y}
5675then :
5676  printf %s "(cached) " >&6
5677else $as_nop
5678  lt_cv_ld_reload_flag='-r'
5679fi
5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5681printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5682reload_flag=$lt_cv_ld_reload_flag
5683case $reload_flag in
5684"" | " "*) ;;
5685*) reload_flag=" $reload_flag" ;;
5686esac
5687reload_cmds='$LD$reload_flag -o $output$reload_objs'
5688case $host_os in
5689  cygwin* | mingw* | pw32* | cegcc*)
5690    if test yes != "$GCC"; then
5691      reload_cmds=false
5692    fi
5693    ;;
5694  darwin*)
5695    if test yes = "$GCC"; then
5696      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5697    else
5698      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5699    fi
5700    ;;
5701esac
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711if test -n "$ac_tool_prefix"; then
5712  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5713set dummy ${ac_tool_prefix}objdump; ac_word=$2
5714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715printf %s "checking for $ac_word... " >&6; }
5716if test ${ac_cv_prog_OBJDUMP+y}
5717then :
5718  printf %s "(cached) " >&6
5719else $as_nop
5720  if test -n "$OBJDUMP"; then
5721  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5722else
5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724for as_dir in $PATH
5725do
5726  IFS=$as_save_IFS
5727  case $as_dir in #(((
5728    '') as_dir=./ ;;
5729    */) ;;
5730    *) as_dir=$as_dir/ ;;
5731  esac
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5734    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5735    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739  done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744OBJDUMP=$ac_cv_prog_OBJDUMP
5745if test -n "$OBJDUMP"; then
5746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5747printf "%s\n" "$OBJDUMP" >&6; }
5748else
5749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750printf "%s\n" "no" >&6; }
5751fi
5752
5753
5754fi
5755if test -z "$ac_cv_prog_OBJDUMP"; then
5756  ac_ct_OBJDUMP=$OBJDUMP
5757  # Extract the first word of "objdump", so it can be a program name with args.
5758set dummy objdump; ac_word=$2
5759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760printf %s "checking for $ac_word... " >&6; }
5761if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5762then :
5763  printf %s "(cached) " >&6
5764else $as_nop
5765  if test -n "$ac_ct_OBJDUMP"; then
5766  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771  IFS=$as_save_IFS
5772  case $as_dir in #(((
5773    '') as_dir=./ ;;
5774    */) ;;
5775    *) as_dir=$as_dir/ ;;
5776  esac
5777    for ac_exec_ext in '' $ac_executable_extensions; do
5778  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5779    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5780    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5781    break 2
5782  fi
5783done
5784  done
5785IFS=$as_save_IFS
5786
5787fi
5788fi
5789ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5790if test -n "$ac_ct_OBJDUMP"; then
5791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5792printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5793else
5794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795printf "%s\n" "no" >&6; }
5796fi
5797
5798  if test "x$ac_ct_OBJDUMP" = x; then
5799    OBJDUMP="false"
5800  else
5801    case $cross_compiling:$ac_tool_warned in
5802yes:)
5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805ac_tool_warned=yes ;;
5806esac
5807    OBJDUMP=$ac_ct_OBJDUMP
5808  fi
5809else
5810  OBJDUMP="$ac_cv_prog_OBJDUMP"
5811fi
5812
5813test -z "$OBJDUMP" && OBJDUMP=objdump
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5824printf %s "checking how to recognize dependent libraries... " >&6; }
5825if test ${lt_cv_deplibs_check_method+y}
5826then :
5827  printf %s "(cached) " >&6
5828else $as_nop
5829  lt_cv_file_magic_cmd='$MAGIC_CMD'
5830lt_cv_file_magic_test_file=
5831lt_cv_deplibs_check_method='unknown'
5832# Need to set the preceding variable on all platforms that support
5833# interlibrary dependencies.
5834# 'none' -- dependencies not supported.
5835# 'unknown' -- same as none, but documents that we really don't know.
5836# 'pass_all' -- all dependencies passed with no checks.
5837# 'test_compile' -- check by making test program.
5838# 'file_magic [[regex]]' -- check by looking for files in library path
5839# that responds to the $file_magic_cmd with a given extended regex.
5840# If you have 'file' or equivalent on your system and you're not sure
5841# whether 'pass_all' will *always* work, you probably want this one.
5842
5843case $host_os in
5844aix[4-9]*)
5845  lt_cv_deplibs_check_method=pass_all
5846  ;;
5847
5848beos*)
5849  lt_cv_deplibs_check_method=pass_all
5850  ;;
5851
5852bsdi[45]*)
5853  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5854  lt_cv_file_magic_cmd='/usr/bin/file -L'
5855  lt_cv_file_magic_test_file=/shlib/libc.so
5856  ;;
5857
5858cygwin*)
5859  # func_win32_libid is a shell function defined in ltmain.sh
5860  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5861  lt_cv_file_magic_cmd='func_win32_libid'
5862  ;;
5863
5864mingw* | pw32*)
5865  # Base MSYS/MinGW do not provide the 'file' command needed by
5866  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5867  # unless we find 'file', for example because we are cross-compiling.
5868  if ( file / ) >/dev/null 2>&1; then
5869    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5870    lt_cv_file_magic_cmd='func_win32_libid'
5871  else
5872    # Keep this pattern in sync with the one in func_win32_libid.
5873    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5874    lt_cv_file_magic_cmd='$OBJDUMP -f'
5875  fi
5876  ;;
5877
5878cegcc*)
5879  # use the weaker test based on 'objdump'. See mingw*.
5880  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5881  lt_cv_file_magic_cmd='$OBJDUMP -f'
5882  ;;
5883
5884darwin* | rhapsody*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888freebsd* | dragonfly*)
5889  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5890    case $host_cpu in
5891    i*86 )
5892      # Not sure whether the presence of OpenBSD here was a mistake.
5893      # Let's accept both of them until this is cleared up.
5894      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5895      lt_cv_file_magic_cmd=/usr/bin/file
5896      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5897      ;;
5898    esac
5899  else
5900    lt_cv_deplibs_check_method=pass_all
5901  fi
5902  ;;
5903
5904haiku*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908hpux10.20* | hpux11*)
5909  lt_cv_file_magic_cmd=/usr/bin/file
5910  case $host_cpu in
5911  ia64*)
5912    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5913    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5914    ;;
5915  hppa*64*)
5916    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]'
5917    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5918    ;;
5919  *)
5920    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5921    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5922    ;;
5923  esac
5924  ;;
5925
5926interix[3-9]*)
5927  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5928  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5929  ;;
5930
5931irix5* | irix6* | nonstopux*)
5932  case $LD in
5933  *-32|*"-32 ") libmagic=32-bit;;
5934  *-n32|*"-n32 ") libmagic=N32;;
5935  *-64|*"-64 ") libmagic=64-bit;;
5936  *) libmagic=never-match;;
5937  esac
5938  lt_cv_deplibs_check_method=pass_all
5939  ;;
5940
5941# This must be glibc/ELF.
5942linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5943  lt_cv_deplibs_check_method=pass_all
5944  ;;
5945
5946netbsd*)
5947  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5948    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949  else
5950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5951  fi
5952  ;;
5953
5954newos6*)
5955  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5956  lt_cv_file_magic_cmd=/usr/bin/file
5957  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958  ;;
5959
5960*nto* | *qnx*)
5961  lt_cv_deplibs_check_method=pass_all
5962  ;;
5963
5964openbsd* | bitrig*)
5965  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5966    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5967  else
5968    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969  fi
5970  ;;
5971
5972osf3* | osf4* | osf5*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976rdos*)
5977  lt_cv_deplibs_check_method=pass_all
5978  ;;
5979
5980solaris*)
5981  lt_cv_deplibs_check_method=pass_all
5982  ;;
5983
5984sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5985  lt_cv_deplibs_check_method=pass_all
5986  ;;
5987
5988sysv4 | sysv4.3*)
5989  case $host_vendor in
5990  motorola)
5991    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]'
5992    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5993    ;;
5994  ncr)
5995    lt_cv_deplibs_check_method=pass_all
5996    ;;
5997  sequent)
5998    lt_cv_file_magic_cmd='/bin/file'
5999    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6000    ;;
6001  sni)
6002    lt_cv_file_magic_cmd='/bin/file'
6003    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6004    lt_cv_file_magic_test_file=/lib/libc.so
6005    ;;
6006  siemens)
6007    lt_cv_deplibs_check_method=pass_all
6008    ;;
6009  pc)
6010    lt_cv_deplibs_check_method=pass_all
6011    ;;
6012  esac
6013  ;;
6014
6015tpf*)
6016  lt_cv_deplibs_check_method=pass_all
6017  ;;
6018os2*)
6019  lt_cv_deplibs_check_method=pass_all
6020  ;;
6021esac
6022
6023fi
6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6025printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6026
6027file_magic_glob=
6028want_nocaseglob=no
6029if test "$build" = "$host"; then
6030  case $host_os in
6031  mingw* | pw32*)
6032    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6033      want_nocaseglob=yes
6034    else
6035      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6036    fi
6037    ;;
6038  esac
6039fi
6040
6041file_magic_cmd=$lt_cv_file_magic_cmd
6042deplibs_check_method=$lt_cv_deplibs_check_method
6043test -z "$deplibs_check_method" && deplibs_check_method=unknown
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066if test -n "$ac_tool_prefix"; then
6067  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070printf %s "checking for $ac_word... " >&6; }
6071if test ${ac_cv_prog_DLLTOOL+y}
6072then :
6073  printf %s "(cached) " >&6
6074else $as_nop
6075  if test -n "$DLLTOOL"; then
6076  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081  IFS=$as_save_IFS
6082  case $as_dir in #(((
6083    '') as_dir=./ ;;
6084    */) ;;
6085    *) as_dir=$as_dir/ ;;
6086  esac
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6089    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6090    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099DLLTOOL=$ac_cv_prog_DLLTOOL
6100if test -n "$DLLTOOL"; then
6101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6102printf "%s\n" "$DLLTOOL" >&6; }
6103else
6104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105printf "%s\n" "no" >&6; }
6106fi
6107
6108
6109fi
6110if test -z "$ac_cv_prog_DLLTOOL"; then
6111  ac_ct_DLLTOOL=$DLLTOOL
6112  # Extract the first word of "dlltool", so it can be a program name with args.
6113set dummy dlltool; ac_word=$2
6114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115printf %s "checking for $ac_word... " >&6; }
6116if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6117then :
6118  printf %s "(cached) " >&6
6119else $as_nop
6120  if test -n "$ac_ct_DLLTOOL"; then
6121  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126  IFS=$as_save_IFS
6127  case $as_dir in #(((
6128    '') as_dir=./ ;;
6129    */) ;;
6130    *) as_dir=$as_dir/ ;;
6131  esac
6132    for ac_exec_ext in '' $ac_executable_extensions; do
6133  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6134    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6135    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6136    break 2
6137  fi
6138done
6139  done
6140IFS=$as_save_IFS
6141
6142fi
6143fi
6144ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6145if test -n "$ac_ct_DLLTOOL"; then
6146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6147printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6148else
6149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150printf "%s\n" "no" >&6; }
6151fi
6152
6153  if test "x$ac_ct_DLLTOOL" = x; then
6154    DLLTOOL="false"
6155  else
6156    case $cross_compiling:$ac_tool_warned in
6157yes:)
6158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160ac_tool_warned=yes ;;
6161esac
6162    DLLTOOL=$ac_ct_DLLTOOL
6163  fi
6164else
6165  DLLTOOL="$ac_cv_prog_DLLTOOL"
6166fi
6167
6168test -z "$DLLTOOL" && DLLTOOL=dlltool
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6180printf %s "checking how to associate runtime and link libraries... " >&6; }
6181if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6182then :
6183  printf %s "(cached) " >&6
6184else $as_nop
6185  lt_cv_sharedlib_from_linklib_cmd='unknown'
6186
6187case $host_os in
6188cygwin* | mingw* | pw32* | cegcc*)
6189  # two different shell functions defined in ltmain.sh;
6190  # decide which one to use based on capabilities of $DLLTOOL
6191  case `$DLLTOOL --help 2>&1` in
6192  *--identify-strict*)
6193    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6194    ;;
6195  *)
6196    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6197    ;;
6198  esac
6199  ;;
6200*)
6201  # fallback: assume linklib IS sharedlib
6202  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6203  ;;
6204esac
6205
6206fi
6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6208printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6209sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6210test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6211
6212
6213
6214
6215
6216
6217
6218
6219if test -n "$ac_tool_prefix"; then
6220  for ac_prog in ar
6221  do
6222    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6223set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225printf %s "checking for $ac_word... " >&6; }
6226if test ${ac_cv_prog_AR+y}
6227then :
6228  printf %s "(cached) " >&6
6229else $as_nop
6230  if test -n "$AR"; then
6231  ac_cv_prog_AR="$AR" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  case $as_dir in #(((
6238    '') as_dir=./ ;;
6239    */) ;;
6240    *) as_dir=$as_dir/ ;;
6241  esac
6242    for ac_exec_ext in '' $ac_executable_extensions; do
6243  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6244    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6245    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249  done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254AR=$ac_cv_prog_AR
6255if test -n "$AR"; then
6256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6257printf "%s\n" "$AR" >&6; }
6258else
6259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260printf "%s\n" "no" >&6; }
6261fi
6262
6263
6264    test -n "$AR" && break
6265  done
6266fi
6267if test -z "$AR"; then
6268  ac_ct_AR=$AR
6269  for ac_prog in ar
6270do
6271  # Extract the first word of "$ac_prog", so it can be a program name with args.
6272set dummy $ac_prog; ac_word=$2
6273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274printf %s "checking for $ac_word... " >&6; }
6275if test ${ac_cv_prog_ac_ct_AR+y}
6276then :
6277  printf %s "(cached) " >&6
6278else $as_nop
6279  if test -n "$ac_ct_AR"; then
6280  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6281else
6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285  IFS=$as_save_IFS
6286  case $as_dir in #(((
6287    '') as_dir=./ ;;
6288    */) ;;
6289    *) as_dir=$as_dir/ ;;
6290  esac
6291    for ac_exec_ext in '' $ac_executable_extensions; do
6292  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6293    ac_cv_prog_ac_ct_AR="$ac_prog"
6294    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6295    break 2
6296  fi
6297done
6298  done
6299IFS=$as_save_IFS
6300
6301fi
6302fi
6303ac_ct_AR=$ac_cv_prog_ac_ct_AR
6304if test -n "$ac_ct_AR"; then
6305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6306printf "%s\n" "$ac_ct_AR" >&6; }
6307else
6308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309printf "%s\n" "no" >&6; }
6310fi
6311
6312
6313  test -n "$ac_ct_AR" && break
6314done
6315
6316  if test "x$ac_ct_AR" = x; then
6317    AR="false"
6318  else
6319    case $cross_compiling:$ac_tool_warned in
6320yes:)
6321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323ac_tool_warned=yes ;;
6324esac
6325    AR=$ac_ct_AR
6326  fi
6327fi
6328
6329: ${AR=ar}
6330: ${AR_FLAGS=cru}
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6343printf %s "checking for archiver @FILE support... " >&6; }
6344if test ${lt_cv_ar_at_file+y}
6345then :
6346  printf %s "(cached) " >&6
6347else $as_nop
6348  lt_cv_ar_at_file=no
6349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351
6352int
6353main (void)
6354{
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360if ac_fn_c_try_compile "$LINENO"
6361then :
6362  echo conftest.$ac_objext > conftest.lst
6363      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6364      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6365  (eval $lt_ar_try) 2>&5
6366  ac_status=$?
6367  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368  test $ac_status = 0; }
6369      if test 0 -eq "$ac_status"; then
6370	# Ensure the archiver fails upon bogus file names.
6371	rm -f conftest.$ac_objext libconftest.a
6372	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6373  (eval $lt_ar_try) 2>&5
6374  ac_status=$?
6375  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376  test $ac_status = 0; }
6377	if test 0 -ne "$ac_status"; then
6378          lt_cv_ar_at_file=@
6379        fi
6380      fi
6381      rm -f conftest.* libconftest.a
6382
6383fi
6384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6385
6386fi
6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6388printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6389
6390if test no = "$lt_cv_ar_at_file"; then
6391  archiver_list_spec=
6392else
6393  archiver_list_spec=$lt_cv_ar_at_file
6394fi
6395
6396
6397
6398
6399
6400
6401
6402if test -n "$ac_tool_prefix"; then
6403  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6404set dummy ${ac_tool_prefix}strip; ac_word=$2
6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406printf %s "checking for $ac_word... " >&6; }
6407if test ${ac_cv_prog_STRIP+y}
6408then :
6409  printf %s "(cached) " >&6
6410else $as_nop
6411  if test -n "$STRIP"; then
6412  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417  IFS=$as_save_IFS
6418  case $as_dir in #(((
6419    '') as_dir=./ ;;
6420    */) ;;
6421    *) as_dir=$as_dir/ ;;
6422  esac
6423    for ac_exec_ext in '' $ac_executable_extensions; do
6424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6425    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6427    break 2
6428  fi
6429done
6430  done
6431IFS=$as_save_IFS
6432
6433fi
6434fi
6435STRIP=$ac_cv_prog_STRIP
6436if test -n "$STRIP"; then
6437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6438printf "%s\n" "$STRIP" >&6; }
6439else
6440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441printf "%s\n" "no" >&6; }
6442fi
6443
6444
6445fi
6446if test -z "$ac_cv_prog_STRIP"; then
6447  ac_ct_STRIP=$STRIP
6448  # Extract the first word of "strip", so it can be a program name with args.
6449set dummy strip; ac_word=$2
6450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451printf %s "checking for $ac_word... " >&6; }
6452if test ${ac_cv_prog_ac_ct_STRIP+y}
6453then :
6454  printf %s "(cached) " >&6
6455else $as_nop
6456  if test -n "$ac_ct_STRIP"; then
6457  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462  IFS=$as_save_IFS
6463  case $as_dir in #(((
6464    '') as_dir=./ ;;
6465    */) ;;
6466    *) as_dir=$as_dir/ ;;
6467  esac
6468    for ac_exec_ext in '' $ac_executable_extensions; do
6469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6470    ac_cv_prog_ac_ct_STRIP="strip"
6471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6472    break 2
6473  fi
6474done
6475  done
6476IFS=$as_save_IFS
6477
6478fi
6479fi
6480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6481if test -n "$ac_ct_STRIP"; then
6482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6483printf "%s\n" "$ac_ct_STRIP" >&6; }
6484else
6485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486printf "%s\n" "no" >&6; }
6487fi
6488
6489  if test "x$ac_ct_STRIP" = x; then
6490    STRIP=":"
6491  else
6492    case $cross_compiling:$ac_tool_warned in
6493yes:)
6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496ac_tool_warned=yes ;;
6497esac
6498    STRIP=$ac_ct_STRIP
6499  fi
6500else
6501  STRIP="$ac_cv_prog_STRIP"
6502fi
6503
6504test -z "$STRIP" && STRIP=:
6505
6506
6507
6508
6509
6510
6511if test -n "$ac_tool_prefix"; then
6512  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6513set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515printf %s "checking for $ac_word... " >&6; }
6516if test ${ac_cv_prog_RANLIB+y}
6517then :
6518  printf %s "(cached) " >&6
6519else $as_nop
6520  if test -n "$RANLIB"; then
6521  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526  IFS=$as_save_IFS
6527  case $as_dir in #(((
6528    '') as_dir=./ ;;
6529    */) ;;
6530    *) as_dir=$as_dir/ ;;
6531  esac
6532    for ac_exec_ext in '' $ac_executable_extensions; do
6533  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6534    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6535    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6536    break 2
6537  fi
6538done
6539  done
6540IFS=$as_save_IFS
6541
6542fi
6543fi
6544RANLIB=$ac_cv_prog_RANLIB
6545if test -n "$RANLIB"; then
6546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6547printf "%s\n" "$RANLIB" >&6; }
6548else
6549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550printf "%s\n" "no" >&6; }
6551fi
6552
6553
6554fi
6555if test -z "$ac_cv_prog_RANLIB"; then
6556  ac_ct_RANLIB=$RANLIB
6557  # Extract the first word of "ranlib", so it can be a program name with args.
6558set dummy ranlib; ac_word=$2
6559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560printf %s "checking for $ac_word... " >&6; }
6561if test ${ac_cv_prog_ac_ct_RANLIB+y}
6562then :
6563  printf %s "(cached) " >&6
6564else $as_nop
6565  if test -n "$ac_ct_RANLIB"; then
6566  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6567else
6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571  IFS=$as_save_IFS
6572  case $as_dir in #(((
6573    '') as_dir=./ ;;
6574    */) ;;
6575    *) as_dir=$as_dir/ ;;
6576  esac
6577    for ac_exec_ext in '' $ac_executable_extensions; do
6578  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6579    ac_cv_prog_ac_ct_RANLIB="ranlib"
6580    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6581    break 2
6582  fi
6583done
6584  done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6590if test -n "$ac_ct_RANLIB"; then
6591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6592printf "%s\n" "$ac_ct_RANLIB" >&6; }
6593else
6594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595printf "%s\n" "no" >&6; }
6596fi
6597
6598  if test "x$ac_ct_RANLIB" = x; then
6599    RANLIB=":"
6600  else
6601    case $cross_compiling:$ac_tool_warned in
6602yes:)
6603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605ac_tool_warned=yes ;;
6606esac
6607    RANLIB=$ac_ct_RANLIB
6608  fi
6609else
6610  RANLIB="$ac_cv_prog_RANLIB"
6611fi
6612
6613test -z "$RANLIB" && RANLIB=:
6614
6615
6616
6617
6618
6619
6620# Determine commands to create old-style static archives.
6621old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6622old_postinstall_cmds='chmod 644 $oldlib'
6623old_postuninstall_cmds=
6624
6625if test -n "$RANLIB"; then
6626  case $host_os in
6627  bitrig* | openbsd*)
6628    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6629    ;;
6630  *)
6631    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6632    ;;
6633  esac
6634  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6635fi
6636
6637case $host_os in
6638  darwin*)
6639    lock_old_archive_extraction=yes ;;
6640  *)
6641    lock_old_archive_extraction=no ;;
6642esac
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682# If no C compiler was specified, use CC.
6683LTCC=${LTCC-"$CC"}
6684
6685# If no C compiler flags were specified, use CFLAGS.
6686LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6687
6688# Allow CC to be a program name with arguments.
6689compiler=$CC
6690
6691
6692# Check for command to grab the raw symbol name followed by C symbol from nm.
6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6694printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6695if test ${lt_cv_sys_global_symbol_pipe+y}
6696then :
6697  printf %s "(cached) " >&6
6698else $as_nop
6699
6700# These are sane defaults that work on at least a few old systems.
6701# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6702
6703# Character class describing NM global symbol codes.
6704symcode='[BCDEGRST]'
6705
6706# Regexp to match symbols that can be accessed directly from C.
6707sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6708
6709# Define system-specific variables.
6710case $host_os in
6711aix*)
6712  symcode='[BCDT]'
6713  ;;
6714cygwin* | mingw* | pw32* | cegcc*)
6715  symcode='[ABCDGISTW]'
6716  ;;
6717hpux*)
6718  if test ia64 = "$host_cpu"; then
6719    symcode='[ABCDEGRST]'
6720  fi
6721  ;;
6722irix* | nonstopux*)
6723  symcode='[BCDEGRST]'
6724  ;;
6725osf*)
6726  symcode='[BCDEGQRST]'
6727  ;;
6728solaris*)
6729  symcode='[BDRT]'
6730  ;;
6731sco3.2v5*)
6732  symcode='[DT]'
6733  ;;
6734sysv4.2uw2*)
6735  symcode='[DT]'
6736  ;;
6737sysv5* | sco5v6* | unixware* | OpenUNIX*)
6738  symcode='[ABDT]'
6739  ;;
6740sysv4)
6741  symcode='[DFNSTU]'
6742  ;;
6743esac
6744
6745# If we're using GNU nm, then use its standard symbol codes.
6746case `$NM -V 2>&1` in
6747*GNU* | *'with BFD'*)
6748  symcode='[ABCDGIRSTW]' ;;
6749esac
6750
6751if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6752  # Gets list of data symbols to import.
6753  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6754  # Adjust the below global symbol transforms to fixup imported variables.
6755  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6756  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6757  lt_c_name_lib_hook="\
6758  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6759  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6760else
6761  # Disable hooks by default.
6762  lt_cv_sys_global_symbol_to_import=
6763  lt_cdecl_hook=
6764  lt_c_name_hook=
6765  lt_c_name_lib_hook=
6766fi
6767
6768# Transform an extracted symbol line into a proper C declaration.
6769# Some systems (esp. on ia64) link data and code symbols differently,
6770# so use this general approach.
6771lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6772$lt_cdecl_hook\
6773" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6774" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6775
6776# Transform an extracted symbol line into symbol name and symbol address
6777lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6778$lt_c_name_hook\
6779" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6780" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6781
6782# Transform an extracted symbol line into symbol name with lib prefix and
6783# symbol address.
6784lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6785$lt_c_name_lib_hook\
6786" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6787" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6788" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6789
6790# Handle CRLF in mingw tool chain
6791opt_cr=
6792case $build_os in
6793mingw*)
6794  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6795  ;;
6796esac
6797
6798# Try without a prefix underscore, then with it.
6799for ac_symprfx in "" "_"; do
6800
6801  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6802  symxfrm="\\1 $ac_symprfx\\2 \\2"
6803
6804  # Write the raw and C identifiers.
6805  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6806    # Fake it for dumpbin and say T for any non-static function,
6807    # D for any global variable and I for any imported variable.
6808    # Also find C++ and __fastcall symbols from MSVC++,
6809    # which start with @ or ?.
6810    lt_cv_sys_global_symbol_pipe="$AWK '"\
6811"     {last_section=section; section=\$ 3};"\
6812"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6813"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6814"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6815"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6816"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6817"     \$ 0!~/External *\|/{next};"\
6818"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6819"     {if(hide[section]) next};"\
6820"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6821"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6822"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6823"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6824"     ' prfx=^$ac_symprfx"
6825  else
6826    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6827  fi
6828  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6829
6830  # Check to see that the pipe works correctly.
6831  pipe_works=no
6832
6833  rm -f conftest*
6834  cat > conftest.$ac_ext <<_LT_EOF
6835#ifdef __cplusplus
6836extern "C" {
6837#endif
6838char nm_test_var;
6839void nm_test_func(void);
6840void nm_test_func(void){}
6841#ifdef __cplusplus
6842}
6843#endif
6844int main(){nm_test_var='a';nm_test_func();return(0);}
6845_LT_EOF
6846
6847  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6848  (eval $ac_compile) 2>&5
6849  ac_status=$?
6850  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851  test $ac_status = 0; }; then
6852    # Now try to grab the symbols.
6853    nlist=conftest.nm
6854    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6855  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6856  ac_status=$?
6857  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858  test $ac_status = 0; } && test -s "$nlist"; then
6859      # Try sorting and uniquifying the output.
6860      if sort "$nlist" | uniq > "$nlist"T; then
6861	mv -f "$nlist"T "$nlist"
6862      else
6863	rm -f "$nlist"T
6864      fi
6865
6866      # Make sure that we snagged all the symbols we need.
6867      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6868	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6869	  cat <<_LT_EOF > conftest.$ac_ext
6870/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6871#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6872/* DATA imports from DLLs on WIN32 can't be const, because runtime
6873   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6874# define LT_DLSYM_CONST
6875#elif defined __osf__
6876/* This system does not cope well with relocations in const data.  */
6877# define LT_DLSYM_CONST
6878#else
6879# define LT_DLSYM_CONST const
6880#endif
6881
6882#ifdef __cplusplus
6883extern "C" {
6884#endif
6885
6886_LT_EOF
6887	  # Now generate the symbol file.
6888	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6889
6890	  cat <<_LT_EOF >> conftest.$ac_ext
6891
6892/* The mapping between symbol names and symbols.  */
6893LT_DLSYM_CONST struct {
6894  const char *name;
6895  void       *address;
6896}
6897lt__PROGRAM__LTX_preloaded_symbols[] =
6898{
6899  { "@PROGRAM@", (void *) 0 },
6900_LT_EOF
6901	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6902	  cat <<\_LT_EOF >> conftest.$ac_ext
6903  {0, (void *) 0}
6904};
6905
6906/* This works around a problem in FreeBSD linker */
6907#ifdef FREEBSD_WORKAROUND
6908static const void *lt_preloaded_setup() {
6909  return lt__PROGRAM__LTX_preloaded_symbols;
6910}
6911#endif
6912
6913#ifdef __cplusplus
6914}
6915#endif
6916_LT_EOF
6917	  # Now try linking the two files.
6918	  mv conftest.$ac_objext conftstm.$ac_objext
6919	  lt_globsym_save_LIBS=$LIBS
6920	  lt_globsym_save_CFLAGS=$CFLAGS
6921	  LIBS=conftstm.$ac_objext
6922	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6923	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6924  (eval $ac_link) 2>&5
6925  ac_status=$?
6926  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6928	    pipe_works=yes
6929	  fi
6930	  LIBS=$lt_globsym_save_LIBS
6931	  CFLAGS=$lt_globsym_save_CFLAGS
6932	else
6933	  echo "cannot find nm_test_func in $nlist" >&5
6934	fi
6935      else
6936	echo "cannot find nm_test_var in $nlist" >&5
6937      fi
6938    else
6939      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6940    fi
6941  else
6942    echo "$progname: failed program was:" >&5
6943    cat conftest.$ac_ext >&5
6944  fi
6945  rm -rf conftest* conftst*
6946
6947  # Do not use the global_symbol_pipe unless it works.
6948  if test yes = "$pipe_works"; then
6949    break
6950  else
6951    lt_cv_sys_global_symbol_pipe=
6952  fi
6953done
6954
6955fi
6956
6957if test -z "$lt_cv_sys_global_symbol_pipe"; then
6958  lt_cv_sys_global_symbol_to_cdecl=
6959fi
6960if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6962printf "%s\n" "failed" >&6; }
6963else
6964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6965printf "%s\n" "ok" >&6; }
6966fi
6967
6968# Response file support.
6969if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6970  nm_file_list_spec='@'
6971elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6972  nm_file_list_spec='@'
6973fi
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7012printf %s "checking for sysroot... " >&6; }
7013
7014# Check whether --with-sysroot was given.
7015if test ${with_sysroot+y}
7016then :
7017  withval=$with_sysroot;
7018else $as_nop
7019  with_sysroot=no
7020fi
7021
7022
7023lt_sysroot=
7024case $with_sysroot in #(
7025 yes)
7026   if test yes = "$GCC"; then
7027     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7028   fi
7029   ;; #(
7030 /*)
7031   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7032   ;; #(
7033 no|'')
7034   ;; #(
7035 *)
7036   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7037printf "%s\n" "$with_sysroot" >&6; }
7038   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7039   ;;
7040esac
7041
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7043printf "%s\n" "${lt_sysroot:-no}" >&6; }
7044
7045
7046
7047
7048
7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7050printf %s "checking for a working dd... " >&6; }
7051if test ${ac_cv_path_lt_DD+y}
7052then :
7053  printf %s "(cached) " >&6
7054else $as_nop
7055  printf 0123456789abcdef0123456789abcdef >conftest.i
7056cat conftest.i conftest.i >conftest2.i
7057: ${lt_DD:=$DD}
7058if test -z "$lt_DD"; then
7059  ac_path_lt_DD_found=false
7060  # Loop through the user's path and test for each of PROGNAME-LIST
7061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064  IFS=$as_save_IFS
7065  case $as_dir in #(((
7066    '') as_dir=./ ;;
7067    */) ;;
7068    *) as_dir=$as_dir/ ;;
7069  esac
7070    for ac_prog in dd
7071   do
7072    for ac_exec_ext in '' $ac_executable_extensions; do
7073      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7074      as_fn_executable_p "$ac_path_lt_DD" || continue
7075if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7076  cmp -s conftest.i conftest.out \
7077  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7078fi
7079      $ac_path_lt_DD_found && break 3
7080    done
7081  done
7082  done
7083IFS=$as_save_IFS
7084  if test -z "$ac_cv_path_lt_DD"; then
7085    :
7086  fi
7087else
7088  ac_cv_path_lt_DD=$lt_DD
7089fi
7090
7091rm -f conftest.i conftest2.i conftest.out
7092fi
7093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7094printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7095
7096
7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7098printf %s "checking how to truncate binary pipes... " >&6; }
7099if test ${lt_cv_truncate_bin+y}
7100then :
7101  printf %s "(cached) " >&6
7102else $as_nop
7103  printf 0123456789abcdef0123456789abcdef >conftest.i
7104cat conftest.i conftest.i >conftest2.i
7105lt_cv_truncate_bin=
7106if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7107  cmp -s conftest.i conftest.out \
7108  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7109fi
7110rm -f conftest.i conftest2.i conftest.out
7111test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7112fi
7113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7114printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7115
7116
7117
7118
7119
7120
7121
7122# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7123func_cc_basename ()
7124{
7125    for cc_temp in $*""; do
7126      case $cc_temp in
7127        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7128        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7129        \-*) ;;
7130        *) break;;
7131      esac
7132    done
7133    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7134}
7135
7136# Check whether --enable-libtool-lock was given.
7137if test ${enable_libtool_lock+y}
7138then :
7139  enableval=$enable_libtool_lock;
7140fi
7141
7142test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7143
7144# Some flags need to be propagated to the compiler or linker for good
7145# libtool support.
7146case $host in
7147ia64-*-hpux*)
7148  # Find out what ABI is being produced by ac_compile, and set mode
7149  # options accordingly.
7150  echo 'int i;' > conftest.$ac_ext
7151  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7152  (eval $ac_compile) 2>&5
7153  ac_status=$?
7154  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155  test $ac_status = 0; }; then
7156    case `/usr/bin/file conftest.$ac_objext` in
7157      *ELF-32*)
7158	HPUX_IA64_MODE=32
7159	;;
7160      *ELF-64*)
7161	HPUX_IA64_MODE=64
7162	;;
7163    esac
7164  fi
7165  rm -rf conftest*
7166  ;;
7167*-*-irix6*)
7168  # Find out what ABI is being produced by ac_compile, and set linker
7169  # options accordingly.
7170  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7171  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7172  (eval $ac_compile) 2>&5
7173  ac_status=$?
7174  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7175  test $ac_status = 0; }; then
7176    if test yes = "$lt_cv_prog_gnu_ld"; then
7177      case `/usr/bin/file conftest.$ac_objext` in
7178	*32-bit*)
7179	  LD="${LD-ld} -melf32bsmip"
7180	  ;;
7181	*N32*)
7182	  LD="${LD-ld} -melf32bmipn32"
7183	  ;;
7184	*64-bit*)
7185	  LD="${LD-ld} -melf64bmip"
7186	;;
7187      esac
7188    else
7189      case `/usr/bin/file conftest.$ac_objext` in
7190	*32-bit*)
7191	  LD="${LD-ld} -32"
7192	  ;;
7193	*N32*)
7194	  LD="${LD-ld} -n32"
7195	  ;;
7196	*64-bit*)
7197	  LD="${LD-ld} -64"
7198	  ;;
7199      esac
7200    fi
7201  fi
7202  rm -rf conftest*
7203  ;;
7204
7205mips64*-*linux*)
7206  # Find out what ABI is being produced by ac_compile, and set linker
7207  # options accordingly.
7208  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7209  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7210  (eval $ac_compile) 2>&5
7211  ac_status=$?
7212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213  test $ac_status = 0; }; then
7214    emul=elf
7215    case `/usr/bin/file conftest.$ac_objext` in
7216      *32-bit*)
7217	emul="${emul}32"
7218	;;
7219      *64-bit*)
7220	emul="${emul}64"
7221	;;
7222    esac
7223    case `/usr/bin/file conftest.$ac_objext` in
7224      *MSB*)
7225	emul="${emul}btsmip"
7226	;;
7227      *LSB*)
7228	emul="${emul}ltsmip"
7229	;;
7230    esac
7231    case `/usr/bin/file conftest.$ac_objext` in
7232      *N32*)
7233	emul="${emul}n32"
7234	;;
7235    esac
7236    LD="${LD-ld} -m $emul"
7237  fi
7238  rm -rf conftest*
7239  ;;
7240
7241x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7242s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7243  # Find out what ABI is being produced by ac_compile, and set linker
7244  # options accordingly.  Note that the listed cases only cover the
7245  # situations where additional linker options are needed (such as when
7246  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7247  # vice versa); the common cases where no linker options are needed do
7248  # not appear in the list.
7249  echo 'int i;' > conftest.$ac_ext
7250  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7251  (eval $ac_compile) 2>&5
7252  ac_status=$?
7253  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254  test $ac_status = 0; }; then
7255    case `/usr/bin/file conftest.o` in
7256      *32-bit*)
7257	case $host in
7258	  x86_64-*kfreebsd*-gnu)
7259	    LD="${LD-ld} -m elf_i386_fbsd"
7260	    ;;
7261	  x86_64-*linux*)
7262	    case `/usr/bin/file conftest.o` in
7263	      *x86-64*)
7264		LD="${LD-ld} -m elf32_x86_64"
7265		;;
7266	      *)
7267		LD="${LD-ld} -m elf_i386"
7268		;;
7269	    esac
7270	    ;;
7271	  powerpc64le-*linux*)
7272	    LD="${LD-ld} -m elf32lppclinux"
7273	    ;;
7274	  powerpc64-*linux*)
7275	    LD="${LD-ld} -m elf32ppclinux"
7276	    ;;
7277	  s390x-*linux*)
7278	    LD="${LD-ld} -m elf_s390"
7279	    ;;
7280	  sparc64-*linux*)
7281	    LD="${LD-ld} -m elf32_sparc"
7282	    ;;
7283	esac
7284	;;
7285      *64-bit*)
7286	case $host in
7287	  x86_64-*kfreebsd*-gnu)
7288	    LD="${LD-ld} -m elf_x86_64_fbsd"
7289	    ;;
7290	  x86_64-*linux*)
7291	    LD="${LD-ld} -m elf_x86_64"
7292	    ;;
7293	  powerpcle-*linux*)
7294	    LD="${LD-ld} -m elf64lppc"
7295	    ;;
7296	  powerpc-*linux*)
7297	    LD="${LD-ld} -m elf64ppc"
7298	    ;;
7299	  s390*-*linux*|s390*-*tpf*)
7300	    LD="${LD-ld} -m elf64_s390"
7301	    ;;
7302	  sparc*-*linux*)
7303	    LD="${LD-ld} -m elf64_sparc"
7304	    ;;
7305	esac
7306	;;
7307    esac
7308  fi
7309  rm -rf conftest*
7310  ;;
7311
7312*-*-sco3.2v5*)
7313  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7314  SAVE_CFLAGS=$CFLAGS
7315  CFLAGS="$CFLAGS -belf"
7316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7317printf %s "checking whether the C compiler needs -belf... " >&6; }
7318if test ${lt_cv_cc_needs_belf+y}
7319then :
7320  printf %s "(cached) " >&6
7321else $as_nop
7322  ac_ext=c
7323ac_cpp='$CPP $CPPFLAGS'
7324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329/* end confdefs.h.  */
7330
7331int
7332main (void)
7333{
7334
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339if ac_fn_c_try_link "$LINENO"
7340then :
7341  lt_cv_cc_needs_belf=yes
7342else $as_nop
7343  lt_cv_cc_needs_belf=no
7344fi
7345rm -f core conftest.err conftest.$ac_objext conftest.beam \
7346    conftest$ac_exeext conftest.$ac_ext
7347     ac_ext=c
7348ac_cpp='$CPP $CPPFLAGS'
7349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352
7353fi
7354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7355printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7356  if test yes != "$lt_cv_cc_needs_belf"; then
7357    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7358    CFLAGS=$SAVE_CFLAGS
7359  fi
7360  ;;
7361*-*solaris*)
7362  # Find out what ABI is being produced by ac_compile, and set linker
7363  # options accordingly.
7364  echo 'int i;' > conftest.$ac_ext
7365  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366  (eval $ac_compile) 2>&5
7367  ac_status=$?
7368  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369  test $ac_status = 0; }; then
7370    case `/usr/bin/file conftest.o` in
7371    *64-bit*)
7372      case $lt_cv_prog_gnu_ld in
7373      yes*)
7374        case $host in
7375        i?86-*-solaris*|x86_64-*-solaris*)
7376          LD="${LD-ld} -m elf_x86_64"
7377          ;;
7378        sparc*-*-solaris*)
7379          LD="${LD-ld} -m elf64_sparc"
7380          ;;
7381        esac
7382        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7383        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7384          LD=${LD-ld}_sol2
7385        fi
7386        ;;
7387      *)
7388	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7389	  LD="${LD-ld} -64"
7390	fi
7391	;;
7392      esac
7393      ;;
7394    esac
7395  fi
7396  rm -rf conftest*
7397  ;;
7398esac
7399
7400need_locks=$enable_libtool_lock
7401
7402if test -n "$ac_tool_prefix"; then
7403  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7404set dummy ${ac_tool_prefix}mt; ac_word=$2
7405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406printf %s "checking for $ac_word... " >&6; }
7407if test ${ac_cv_prog_MANIFEST_TOOL+y}
7408then :
7409  printf %s "(cached) " >&6
7410else $as_nop
7411  if test -n "$MANIFEST_TOOL"; then
7412  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  case $as_dir in #(((
7419    '') as_dir=./ ;;
7420    */) ;;
7421    *) as_dir=$as_dir/ ;;
7422  esac
7423    for ac_exec_ext in '' $ac_executable_extensions; do
7424  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7425    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7426    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7427    break 2
7428  fi
7429done
7430  done
7431IFS=$as_save_IFS
7432
7433fi
7434fi
7435MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7436if test -n "$MANIFEST_TOOL"; then
7437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7438printf "%s\n" "$MANIFEST_TOOL" >&6; }
7439else
7440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441printf "%s\n" "no" >&6; }
7442fi
7443
7444
7445fi
7446if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7447  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7448  # Extract the first word of "mt", so it can be a program name with args.
7449set dummy mt; ac_word=$2
7450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451printf %s "checking for $ac_word... " >&6; }
7452if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7453then :
7454  printf %s "(cached) " >&6
7455else $as_nop
7456  if test -n "$ac_ct_MANIFEST_TOOL"; then
7457  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7458else
7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462  IFS=$as_save_IFS
7463  case $as_dir in #(((
7464    '') as_dir=./ ;;
7465    */) ;;
7466    *) as_dir=$as_dir/ ;;
7467  esac
7468    for ac_exec_ext in '' $ac_executable_extensions; do
7469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7470    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7472    break 2
7473  fi
7474done
7475  done
7476IFS=$as_save_IFS
7477
7478fi
7479fi
7480ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7481if test -n "$ac_ct_MANIFEST_TOOL"; then
7482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7483printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7484else
7485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486printf "%s\n" "no" >&6; }
7487fi
7488
7489  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7490    MANIFEST_TOOL=":"
7491  else
7492    case $cross_compiling:$ac_tool_warned in
7493yes:)
7494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496ac_tool_warned=yes ;;
7497esac
7498    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7499  fi
7500else
7501  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7502fi
7503
7504test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7506printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7507if test ${lt_cv_path_mainfest_tool+y}
7508then :
7509  printf %s "(cached) " >&6
7510else $as_nop
7511  lt_cv_path_mainfest_tool=no
7512  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7513  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7514  cat conftest.err >&5
7515  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7516    lt_cv_path_mainfest_tool=yes
7517  fi
7518  rm -f conftest*
7519fi
7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7521printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7522if test yes != "$lt_cv_path_mainfest_tool"; then
7523  MANIFEST_TOOL=:
7524fi
7525
7526
7527
7528
7529
7530
7531  case $host_os in
7532    rhapsody* | darwin*)
7533    if test -n "$ac_tool_prefix"; then
7534  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7535set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537printf %s "checking for $ac_word... " >&6; }
7538if test ${ac_cv_prog_DSYMUTIL+y}
7539then :
7540  printf %s "(cached) " >&6
7541else $as_nop
7542  if test -n "$DSYMUTIL"; then
7543  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7544else
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548  IFS=$as_save_IFS
7549  case $as_dir in #(((
7550    '') as_dir=./ ;;
7551    */) ;;
7552    *) as_dir=$as_dir/ ;;
7553  esac
7554    for ac_exec_ext in '' $ac_executable_extensions; do
7555  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7556    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7557    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7558    break 2
7559  fi
7560done
7561  done
7562IFS=$as_save_IFS
7563
7564fi
7565fi
7566DSYMUTIL=$ac_cv_prog_DSYMUTIL
7567if test -n "$DSYMUTIL"; then
7568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7569printf "%s\n" "$DSYMUTIL" >&6; }
7570else
7571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572printf "%s\n" "no" >&6; }
7573fi
7574
7575
7576fi
7577if test -z "$ac_cv_prog_DSYMUTIL"; then
7578  ac_ct_DSYMUTIL=$DSYMUTIL
7579  # Extract the first word of "dsymutil", so it can be a program name with args.
7580set dummy dsymutil; ac_word=$2
7581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582printf %s "checking for $ac_word... " >&6; }
7583if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7584then :
7585  printf %s "(cached) " >&6
7586else $as_nop
7587  if test -n "$ac_ct_DSYMUTIL"; then
7588  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7589else
7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593  IFS=$as_save_IFS
7594  case $as_dir in #(((
7595    '') as_dir=./ ;;
7596    */) ;;
7597    *) as_dir=$as_dir/ ;;
7598  esac
7599    for ac_exec_ext in '' $ac_executable_extensions; do
7600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7601    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7603    break 2
7604  fi
7605done
7606  done
7607IFS=$as_save_IFS
7608
7609fi
7610fi
7611ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7612if test -n "$ac_ct_DSYMUTIL"; then
7613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7614printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7615else
7616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617printf "%s\n" "no" >&6; }
7618fi
7619
7620  if test "x$ac_ct_DSYMUTIL" = x; then
7621    DSYMUTIL=":"
7622  else
7623    case $cross_compiling:$ac_tool_warned in
7624yes:)
7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627ac_tool_warned=yes ;;
7628esac
7629    DSYMUTIL=$ac_ct_DSYMUTIL
7630  fi
7631else
7632  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7633fi
7634
7635    if test -n "$ac_tool_prefix"; then
7636  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7637set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639printf %s "checking for $ac_word... " >&6; }
7640if test ${ac_cv_prog_NMEDIT+y}
7641then :
7642  printf %s "(cached) " >&6
7643else $as_nop
7644  if test -n "$NMEDIT"; then
7645  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650  IFS=$as_save_IFS
7651  case $as_dir in #(((
7652    '') as_dir=./ ;;
7653    */) ;;
7654    *) as_dir=$as_dir/ ;;
7655  esac
7656    for ac_exec_ext in '' $ac_executable_extensions; do
7657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7658    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7660    break 2
7661  fi
7662done
7663  done
7664IFS=$as_save_IFS
7665
7666fi
7667fi
7668NMEDIT=$ac_cv_prog_NMEDIT
7669if test -n "$NMEDIT"; then
7670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7671printf "%s\n" "$NMEDIT" >&6; }
7672else
7673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674printf "%s\n" "no" >&6; }
7675fi
7676
7677
7678fi
7679if test -z "$ac_cv_prog_NMEDIT"; then
7680  ac_ct_NMEDIT=$NMEDIT
7681  # Extract the first word of "nmedit", so it can be a program name with args.
7682set dummy nmedit; ac_word=$2
7683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684printf %s "checking for $ac_word... " >&6; }
7685if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7686then :
7687  printf %s "(cached) " >&6
7688else $as_nop
7689  if test -n "$ac_ct_NMEDIT"; then
7690  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7691else
7692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695  IFS=$as_save_IFS
7696  case $as_dir in #(((
7697    '') as_dir=./ ;;
7698    */) ;;
7699    *) as_dir=$as_dir/ ;;
7700  esac
7701    for ac_exec_ext in '' $ac_executable_extensions; do
7702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7703    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7705    break 2
7706  fi
7707done
7708  done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7714if test -n "$ac_ct_NMEDIT"; then
7715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7716printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7717else
7718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719printf "%s\n" "no" >&6; }
7720fi
7721
7722  if test "x$ac_ct_NMEDIT" = x; then
7723    NMEDIT=":"
7724  else
7725    case $cross_compiling:$ac_tool_warned in
7726yes:)
7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7728printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7729ac_tool_warned=yes ;;
7730esac
7731    NMEDIT=$ac_ct_NMEDIT
7732  fi
7733else
7734  NMEDIT="$ac_cv_prog_NMEDIT"
7735fi
7736
7737    if test -n "$ac_tool_prefix"; then
7738  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7739set dummy ${ac_tool_prefix}lipo; ac_word=$2
7740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741printf %s "checking for $ac_word... " >&6; }
7742if test ${ac_cv_prog_LIPO+y}
7743then :
7744  printf %s "(cached) " >&6
7745else $as_nop
7746  if test -n "$LIPO"; then
7747  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  case $as_dir in #(((
7754    '') as_dir=./ ;;
7755    */) ;;
7756    *) as_dir=$as_dir/ ;;
7757  esac
7758    for ac_exec_ext in '' $ac_executable_extensions; do
7759  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7760    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7761    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7762    break 2
7763  fi
7764done
7765  done
7766IFS=$as_save_IFS
7767
7768fi
7769fi
7770LIPO=$ac_cv_prog_LIPO
7771if test -n "$LIPO"; then
7772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7773printf "%s\n" "$LIPO" >&6; }
7774else
7775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776printf "%s\n" "no" >&6; }
7777fi
7778
7779
7780fi
7781if test -z "$ac_cv_prog_LIPO"; then
7782  ac_ct_LIPO=$LIPO
7783  # Extract the first word of "lipo", so it can be a program name with args.
7784set dummy lipo; ac_word=$2
7785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786printf %s "checking for $ac_word... " >&6; }
7787if test ${ac_cv_prog_ac_ct_LIPO+y}
7788then :
7789  printf %s "(cached) " >&6
7790else $as_nop
7791  if test -n "$ac_ct_LIPO"; then
7792  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797  IFS=$as_save_IFS
7798  case $as_dir in #(((
7799    '') as_dir=./ ;;
7800    */) ;;
7801    *) as_dir=$as_dir/ ;;
7802  esac
7803    for ac_exec_ext in '' $ac_executable_extensions; do
7804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7805    ac_cv_prog_ac_ct_LIPO="lipo"
7806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7807    break 2
7808  fi
7809done
7810  done
7811IFS=$as_save_IFS
7812
7813fi
7814fi
7815ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7816if test -n "$ac_ct_LIPO"; then
7817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7818printf "%s\n" "$ac_ct_LIPO" >&6; }
7819else
7820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821printf "%s\n" "no" >&6; }
7822fi
7823
7824  if test "x$ac_ct_LIPO" = x; then
7825    LIPO=":"
7826  else
7827    case $cross_compiling:$ac_tool_warned in
7828yes:)
7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831ac_tool_warned=yes ;;
7832esac
7833    LIPO=$ac_ct_LIPO
7834  fi
7835else
7836  LIPO="$ac_cv_prog_LIPO"
7837fi
7838
7839    if test -n "$ac_tool_prefix"; then
7840  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7841set dummy ${ac_tool_prefix}otool; ac_word=$2
7842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843printf %s "checking for $ac_word... " >&6; }
7844if test ${ac_cv_prog_OTOOL+y}
7845then :
7846  printf %s "(cached) " >&6
7847else $as_nop
7848  if test -n "$OTOOL"; then
7849  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  case $as_dir in #(((
7856    '') as_dir=./ ;;
7857    */) ;;
7858    *) as_dir=$as_dir/ ;;
7859  esac
7860    for ac_exec_ext in '' $ac_executable_extensions; do
7861  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7862    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7863    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864    break 2
7865  fi
7866done
7867  done
7868IFS=$as_save_IFS
7869
7870fi
7871fi
7872OTOOL=$ac_cv_prog_OTOOL
7873if test -n "$OTOOL"; then
7874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7875printf "%s\n" "$OTOOL" >&6; }
7876else
7877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878printf "%s\n" "no" >&6; }
7879fi
7880
7881
7882fi
7883if test -z "$ac_cv_prog_OTOOL"; then
7884  ac_ct_OTOOL=$OTOOL
7885  # Extract the first word of "otool", so it can be a program name with args.
7886set dummy otool; ac_word=$2
7887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888printf %s "checking for $ac_word... " >&6; }
7889if test ${ac_cv_prog_ac_ct_OTOOL+y}
7890then :
7891  printf %s "(cached) " >&6
7892else $as_nop
7893  if test -n "$ac_ct_OTOOL"; then
7894  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899  IFS=$as_save_IFS
7900  case $as_dir in #(((
7901    '') as_dir=./ ;;
7902    */) ;;
7903    *) as_dir=$as_dir/ ;;
7904  esac
7905    for ac_exec_ext in '' $ac_executable_extensions; do
7906  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7907    ac_cv_prog_ac_ct_OTOOL="otool"
7908    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7909    break 2
7910  fi
7911done
7912  done
7913IFS=$as_save_IFS
7914
7915fi
7916fi
7917ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7918if test -n "$ac_ct_OTOOL"; then
7919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7920printf "%s\n" "$ac_ct_OTOOL" >&6; }
7921else
7922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923printf "%s\n" "no" >&6; }
7924fi
7925
7926  if test "x$ac_ct_OTOOL" = x; then
7927    OTOOL=":"
7928  else
7929    case $cross_compiling:$ac_tool_warned in
7930yes:)
7931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7932printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7933ac_tool_warned=yes ;;
7934esac
7935    OTOOL=$ac_ct_OTOOL
7936  fi
7937else
7938  OTOOL="$ac_cv_prog_OTOOL"
7939fi
7940
7941    if test -n "$ac_tool_prefix"; then
7942  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7943set dummy ${ac_tool_prefix}otool64; ac_word=$2
7944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945printf %s "checking for $ac_word... " >&6; }
7946if test ${ac_cv_prog_OTOOL64+y}
7947then :
7948  printf %s "(cached) " >&6
7949else $as_nop
7950  if test -n "$OTOOL64"; then
7951  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7952else
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956  IFS=$as_save_IFS
7957  case $as_dir in #(((
7958    '') as_dir=./ ;;
7959    */) ;;
7960    *) as_dir=$as_dir/ ;;
7961  esac
7962    for ac_exec_ext in '' $ac_executable_extensions; do
7963  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7964    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7965    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7966    break 2
7967  fi
7968done
7969  done
7970IFS=$as_save_IFS
7971
7972fi
7973fi
7974OTOOL64=$ac_cv_prog_OTOOL64
7975if test -n "$OTOOL64"; then
7976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7977printf "%s\n" "$OTOOL64" >&6; }
7978else
7979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980printf "%s\n" "no" >&6; }
7981fi
7982
7983
7984fi
7985if test -z "$ac_cv_prog_OTOOL64"; then
7986  ac_ct_OTOOL64=$OTOOL64
7987  # Extract the first word of "otool64", so it can be a program name with args.
7988set dummy otool64; ac_word=$2
7989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990printf %s "checking for $ac_word... " >&6; }
7991if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7992then :
7993  printf %s "(cached) " >&6
7994else $as_nop
7995  if test -n "$ac_ct_OTOOL64"; then
7996  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  case $as_dir in #(((
8003    '') as_dir=./ ;;
8004    */) ;;
8005    *) as_dir=$as_dir/ ;;
8006  esac
8007    for ac_exec_ext in '' $ac_executable_extensions; do
8008  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8009    ac_cv_prog_ac_ct_OTOOL64="otool64"
8010    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8011    break 2
8012  fi
8013done
8014  done
8015IFS=$as_save_IFS
8016
8017fi
8018fi
8019ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8020if test -n "$ac_ct_OTOOL64"; then
8021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8022printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8023else
8024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025printf "%s\n" "no" >&6; }
8026fi
8027
8028  if test "x$ac_ct_OTOOL64" = x; then
8029    OTOOL64=":"
8030  else
8031    case $cross_compiling:$ac_tool_warned in
8032yes:)
8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8034printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8035ac_tool_warned=yes ;;
8036esac
8037    OTOOL64=$ac_ct_OTOOL64
8038  fi
8039else
8040  OTOOL64="$ac_cv_prog_OTOOL64"
8041fi
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8070printf %s "checking for -single_module linker flag... " >&6; }
8071if test ${lt_cv_apple_cc_single_mod+y}
8072then :
8073  printf %s "(cached) " >&6
8074else $as_nop
8075  lt_cv_apple_cc_single_mod=no
8076      if test -z "$LT_MULTI_MODULE"; then
8077	# By default we will add the -single_module flag. You can override
8078	# by either setting the environment variable LT_MULTI_MODULE
8079	# non-empty at configure time, or by adding -multi_module to the
8080	# link flags.
8081	rm -rf libconftest.dylib*
8082	echo "int foo(void){return 1;}" > conftest.c
8083	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8084-dynamiclib -Wl,-single_module conftest.c" >&5
8085	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8086	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8087        _lt_result=$?
8088	# If there is a non-empty error log, and "single_module"
8089	# appears in it, assume the flag caused a linker warning
8090        if test -s conftest.err && $GREP single_module conftest.err; then
8091	  cat conftest.err >&5
8092	# Otherwise, if the output was created with a 0 exit code from
8093	# the compiler, it worked.
8094	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8095	  lt_cv_apple_cc_single_mod=yes
8096	else
8097	  cat conftest.err >&5
8098	fi
8099	rm -rf libconftest.dylib*
8100	rm -f conftest.*
8101      fi
8102fi
8103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8104printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8105
8106    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8107printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8108if test ${lt_cv_ld_exported_symbols_list+y}
8109then :
8110  printf %s "(cached) " >&6
8111else $as_nop
8112  lt_cv_ld_exported_symbols_list=no
8113      save_LDFLAGS=$LDFLAGS
8114      echo "_main" > conftest.sym
8115      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8116      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h.  */
8118
8119int
8120main (void)
8121{
8122
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127if ac_fn_c_try_link "$LINENO"
8128then :
8129  lt_cv_ld_exported_symbols_list=yes
8130else $as_nop
8131  lt_cv_ld_exported_symbols_list=no
8132fi
8133rm -f core conftest.err conftest.$ac_objext conftest.beam \
8134    conftest$ac_exeext conftest.$ac_ext
8135	LDFLAGS=$save_LDFLAGS
8136
8137fi
8138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8139printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8140
8141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8142printf %s "checking for -force_load linker flag... " >&6; }
8143if test ${lt_cv_ld_force_load+y}
8144then :
8145  printf %s "(cached) " >&6
8146else $as_nop
8147  lt_cv_ld_force_load=no
8148      cat > conftest.c << _LT_EOF
8149int forced_loaded() { return 2;}
8150_LT_EOF
8151      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8152      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8153      echo "$AR cru libconftest.a conftest.o" >&5
8154      $AR cru libconftest.a conftest.o 2>&5
8155      echo "$RANLIB libconftest.a" >&5
8156      $RANLIB libconftest.a 2>&5
8157      cat > conftest.c << _LT_EOF
8158int main() { return 0;}
8159_LT_EOF
8160      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8161      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8162      _lt_result=$?
8163      if test -s conftest.err && $GREP force_load conftest.err; then
8164	cat conftest.err >&5
8165      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8166	lt_cv_ld_force_load=yes
8167      else
8168	cat conftest.err >&5
8169      fi
8170        rm -f conftest.err libconftest.a conftest conftest.c
8171        rm -rf conftest.dSYM
8172
8173fi
8174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8175printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8176    case $host_os in
8177    rhapsody* | darwin1.[012])
8178      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8179    darwin1.*)
8180      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8181    darwin*)
8182      case ${MACOSX_DEPLOYMENT_TARGET},$host in
8183	10.[012],*|,*powerpc*)
8184	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8185	*)
8186	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8187      esac
8188    ;;
8189  esac
8190    if test yes = "$lt_cv_apple_cc_single_mod"; then
8191      _lt_dar_single_mod='$single_module'
8192    fi
8193    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8194      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8195    else
8196      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8197    fi
8198    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8199      _lt_dsymutil='~$DSYMUTIL $lib || :'
8200    else
8201      _lt_dsymutil=
8202    fi
8203    ;;
8204  esac
8205
8206# func_munge_path_list VARIABLE PATH
8207# -----------------------------------
8208# VARIABLE is name of variable containing _space_ separated list of
8209# directories to be munged by the contents of PATH, which is string
8210# having a format:
8211# "DIR[:DIR]:"
8212#       string "DIR[ DIR]" will be prepended to VARIABLE
8213# ":DIR[:DIR]"
8214#       string "DIR[ DIR]" will be appended to VARIABLE
8215# "DIRP[:DIRP]::[DIRA:]DIRA"
8216#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8217#       "DIRA[ DIRA]" will be appended to VARIABLE
8218# "DIR[:DIR]"
8219#       VARIABLE will be replaced by "DIR[ DIR]"
8220func_munge_path_list ()
8221{
8222    case x$2 in
8223    x)
8224        ;;
8225    *:)
8226        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8227        ;;
8228    x:*)
8229        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8230        ;;
8231    *::*)
8232        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8233        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8234        ;;
8235    *)
8236        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8237        ;;
8238    esac
8239}
8240
8241ac_header= ac_cache=
8242for ac_item in $ac_header_c_list
8243do
8244  if test $ac_cache; then
8245    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8246    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8247      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8248    fi
8249    ac_header= ac_cache=
8250  elif test $ac_header; then
8251    ac_cache=$ac_item
8252  else
8253    ac_header=$ac_item
8254  fi
8255done
8256
8257
8258
8259
8260
8261
8262
8263
8264if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8265then :
8266
8267printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8268
8269fi
8270ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8271"
8272if test "x$ac_cv_header_dlfcn_h" = xyes
8273then :
8274  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8275
8276fi
8277
8278
8279
8280
8281
8282# Set options
8283
8284
8285
8286        enable_dlopen=no
8287
8288
8289  enable_win32_dll=no
8290
8291
8292            # Check whether --enable-shared was given.
8293if test ${enable_shared+y}
8294then :
8295  enableval=$enable_shared; p=${PACKAGE-default}
8296    case $enableval in
8297    yes) enable_shared=yes ;;
8298    no) enable_shared=no ;;
8299    *)
8300      enable_shared=no
8301      # Look at the argument we got.  We use all the common list separators.
8302      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8303      for pkg in $enableval; do
8304	IFS=$lt_save_ifs
8305	if test "X$pkg" = "X$p"; then
8306	  enable_shared=yes
8307	fi
8308      done
8309      IFS=$lt_save_ifs
8310      ;;
8311    esac
8312else $as_nop
8313  enable_shared=yes
8314fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324  # Check whether --enable-static was given.
8325if test ${enable_static+y}
8326then :
8327  enableval=$enable_static; p=${PACKAGE-default}
8328    case $enableval in
8329    yes) enable_static=yes ;;
8330    no) enable_static=no ;;
8331    *)
8332     enable_static=no
8333      # Look at the argument we got.  We use all the common list separators.
8334      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8335      for pkg in $enableval; do
8336	IFS=$lt_save_ifs
8337	if test "X$pkg" = "X$p"; then
8338	  enable_static=yes
8339	fi
8340      done
8341      IFS=$lt_save_ifs
8342      ;;
8343    esac
8344else $as_nop
8345  enable_static=yes
8346fi
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357# Check whether --with-pic was given.
8358if test ${with_pic+y}
8359then :
8360  withval=$with_pic; lt_p=${PACKAGE-default}
8361    case $withval in
8362    yes|no) pic_mode=$withval ;;
8363    *)
8364      pic_mode=default
8365      # Look at the argument we got.  We use all the common list separators.
8366      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8367      for lt_pkg in $withval; do
8368	IFS=$lt_save_ifs
8369	if test "X$lt_pkg" = "X$lt_p"; then
8370	  pic_mode=yes
8371	fi
8372      done
8373      IFS=$lt_save_ifs
8374      ;;
8375    esac
8376else $as_nop
8377  pic_mode=default
8378fi
8379
8380
8381
8382
8383
8384
8385
8386
8387  # Check whether --enable-fast-install was given.
8388if test ${enable_fast_install+y}
8389then :
8390  enableval=$enable_fast_install; p=${PACKAGE-default}
8391    case $enableval in
8392    yes) enable_fast_install=yes ;;
8393    no) enable_fast_install=no ;;
8394    *)
8395      enable_fast_install=no
8396      # Look at the argument we got.  We use all the common list separators.
8397      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8398      for pkg in $enableval; do
8399	IFS=$lt_save_ifs
8400	if test "X$pkg" = "X$p"; then
8401	  enable_fast_install=yes
8402	fi
8403      done
8404      IFS=$lt_save_ifs
8405      ;;
8406    esac
8407else $as_nop
8408  enable_fast_install=yes
8409fi
8410
8411
8412
8413
8414
8415
8416
8417
8418  shared_archive_member_spec=
8419case $host,$enable_shared in
8420power*-*-aix[5-9]*,yes)
8421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8422printf %s "checking which variant of shared library versioning to provide... " >&6; }
8423
8424# Check whether --with-aix-soname was given.
8425if test ${with_aix_soname+y}
8426then :
8427  withval=$with_aix_soname; case $withval in
8428    aix|svr4|both)
8429      ;;
8430    *)
8431      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8432      ;;
8433    esac
8434    lt_cv_with_aix_soname=$with_aix_soname
8435else $as_nop
8436  if test ${lt_cv_with_aix_soname+y}
8437then :
8438  printf %s "(cached) " >&6
8439else $as_nop
8440  lt_cv_with_aix_soname=aix
8441fi
8442
8443    with_aix_soname=$lt_cv_with_aix_soname
8444fi
8445
8446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8447printf "%s\n" "$with_aix_soname" >&6; }
8448  if test aix != "$with_aix_soname"; then
8449    # For the AIX way of multilib, we name the shared archive member
8450    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8451    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8452    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8453    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8454    if test 64 = "${OBJECT_MODE-32}"; then
8455      shared_archive_member_spec=shr_64
8456    else
8457      shared_archive_member_spec=shr
8458    fi
8459  fi
8460  ;;
8461*)
8462  with_aix_soname=aix
8463  ;;
8464esac
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475# This can be used to rebuild libtool when needed
8476LIBTOOL_DEPS=$ltmain
8477
8478# Always use our own libtool.
8479LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510test -z "$LN_S" && LN_S="ln -s"
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525if test -n "${ZSH_VERSION+set}"; then
8526   setopt NO_GLOB_SUBST
8527fi
8528
8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8530printf %s "checking for objdir... " >&6; }
8531if test ${lt_cv_objdir+y}
8532then :
8533  printf %s "(cached) " >&6
8534else $as_nop
8535  rm -f .libs 2>/dev/null
8536mkdir .libs 2>/dev/null
8537if test -d .libs; then
8538  lt_cv_objdir=.libs
8539else
8540  # MS-DOS does not allow filenames that begin with a dot.
8541  lt_cv_objdir=_libs
8542fi
8543rmdir .libs 2>/dev/null
8544fi
8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8546printf "%s\n" "$lt_cv_objdir" >&6; }
8547objdir=$lt_cv_objdir
8548
8549
8550
8551
8552
8553printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8554
8555
8556
8557
8558case $host_os in
8559aix3*)
8560  # AIX sometimes has problems with the GCC collect2 program.  For some
8561  # reason, if we set the COLLECT_NAMES environment variable, the problems
8562  # vanish in a puff of smoke.
8563  if test set != "${COLLECT_NAMES+set}"; then
8564    COLLECT_NAMES=
8565    export COLLECT_NAMES
8566  fi
8567  ;;
8568esac
8569
8570# Global variables:
8571ofile=libtool
8572can_build_shared=yes
8573
8574# All known linkers require a '.a' archive for static linking (except MSVC,
8575# which needs '.lib').
8576libext=a
8577
8578with_gnu_ld=$lt_cv_prog_gnu_ld
8579
8580old_CC=$CC
8581old_CFLAGS=$CFLAGS
8582
8583# Set sane defaults for various variables
8584test -z "$CC" && CC=cc
8585test -z "$LTCC" && LTCC=$CC
8586test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8587test -z "$LD" && LD=ld
8588test -z "$ac_objext" && ac_objext=o
8589
8590func_cc_basename $compiler
8591cc_basename=$func_cc_basename_result
8592
8593
8594# Only perform the check for file, if the check method requires it
8595test -z "$MAGIC_CMD" && MAGIC_CMD=file
8596case $deplibs_check_method in
8597file_magic*)
8598  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8599    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8600printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8601if test ${lt_cv_path_MAGIC_CMD+y}
8602then :
8603  printf %s "(cached) " >&6
8604else $as_nop
8605  case $MAGIC_CMD in
8606[\\/*] |  ?:[\\/]*)
8607  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8608  ;;
8609*)
8610  lt_save_MAGIC_CMD=$MAGIC_CMD
8611  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8612  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8613  for ac_dir in $ac_dummy; do
8614    IFS=$lt_save_ifs
8615    test -z "$ac_dir" && ac_dir=.
8616    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8617      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8618      if test -n "$file_magic_test_file"; then
8619	case $deplibs_check_method in
8620	"file_magic "*)
8621	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8622	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8623	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8624	    $EGREP "$file_magic_regex" > /dev/null; then
8625	    :
8626	  else
8627	    cat <<_LT_EOF 1>&2
8628
8629*** Warning: the command libtool uses to detect shared libraries,
8630*** $file_magic_cmd, produces output that libtool cannot recognize.
8631*** The result is that libtool may fail to recognize shared libraries
8632*** as such.  This will affect the creation of libtool libraries that
8633*** depend on shared libraries, but programs linked with such libtool
8634*** libraries will work regardless of this problem.  Nevertheless, you
8635*** may want to report the problem to your system manager and/or to
8636*** [email protected]
8637
8638_LT_EOF
8639	  fi ;;
8640	esac
8641      fi
8642      break
8643    fi
8644  done
8645  IFS=$lt_save_ifs
8646  MAGIC_CMD=$lt_save_MAGIC_CMD
8647  ;;
8648esac
8649fi
8650
8651MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8652if test -n "$MAGIC_CMD"; then
8653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8654printf "%s\n" "$MAGIC_CMD" >&6; }
8655else
8656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657printf "%s\n" "no" >&6; }
8658fi
8659
8660
8661
8662
8663
8664if test -z "$lt_cv_path_MAGIC_CMD"; then
8665  if test -n "$ac_tool_prefix"; then
8666    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8667printf %s "checking for file... " >&6; }
8668if test ${lt_cv_path_MAGIC_CMD+y}
8669then :
8670  printf %s "(cached) " >&6
8671else $as_nop
8672  case $MAGIC_CMD in
8673[\\/*] |  ?:[\\/]*)
8674  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8675  ;;
8676*)
8677  lt_save_MAGIC_CMD=$MAGIC_CMD
8678  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8679  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8680  for ac_dir in $ac_dummy; do
8681    IFS=$lt_save_ifs
8682    test -z "$ac_dir" && ac_dir=.
8683    if test -f "$ac_dir/file"; then
8684      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8685      if test -n "$file_magic_test_file"; then
8686	case $deplibs_check_method in
8687	"file_magic "*)
8688	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8689	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8690	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8691	    $EGREP "$file_magic_regex" > /dev/null; then
8692	    :
8693	  else
8694	    cat <<_LT_EOF 1>&2
8695
8696*** Warning: the command libtool uses to detect shared libraries,
8697*** $file_magic_cmd, produces output that libtool cannot recognize.
8698*** The result is that libtool may fail to recognize shared libraries
8699*** as such.  This will affect the creation of libtool libraries that
8700*** depend on shared libraries, but programs linked with such libtool
8701*** libraries will work regardless of this problem.  Nevertheless, you
8702*** may want to report the problem to your system manager and/or to
8703*** [email protected]
8704
8705_LT_EOF
8706	  fi ;;
8707	esac
8708      fi
8709      break
8710    fi
8711  done
8712  IFS=$lt_save_ifs
8713  MAGIC_CMD=$lt_save_MAGIC_CMD
8714  ;;
8715esac
8716fi
8717
8718MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8719if test -n "$MAGIC_CMD"; then
8720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8721printf "%s\n" "$MAGIC_CMD" >&6; }
8722else
8723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724printf "%s\n" "no" >&6; }
8725fi
8726
8727
8728  else
8729    MAGIC_CMD=:
8730  fi
8731fi
8732
8733  fi
8734  ;;
8735esac
8736
8737# Use C for the default configuration in the libtool script
8738
8739lt_save_CC=$CC
8740ac_ext=c
8741ac_cpp='$CPP $CPPFLAGS'
8742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8744ac_compiler_gnu=$ac_cv_c_compiler_gnu
8745
8746
8747# Source file extension for C test sources.
8748ac_ext=c
8749
8750# Object file extension for compiled C test sources.
8751objext=o
8752objext=$objext
8753
8754# Code to be used in simple compile tests
8755lt_simple_compile_test_code="int some_variable = 0;"
8756
8757# Code to be used in simple link tests
8758lt_simple_link_test_code='int main(){return(0);}'
8759
8760
8761
8762
8763
8764
8765
8766# If no C compiler was specified, use CC.
8767LTCC=${LTCC-"$CC"}
8768
8769# If no C compiler flags were specified, use CFLAGS.
8770LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8771
8772# Allow CC to be a program name with arguments.
8773compiler=$CC
8774
8775# Save the default compiler, since it gets overwritten when the other
8776# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8777compiler_DEFAULT=$CC
8778
8779# save warnings/boilerplate of simple test code
8780ac_outfile=conftest.$ac_objext
8781echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8782eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8783_lt_compiler_boilerplate=`cat conftest.err`
8784$RM conftest*
8785
8786ac_outfile=conftest.$ac_objext
8787echo "$lt_simple_link_test_code" >conftest.$ac_ext
8788eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8789_lt_linker_boilerplate=`cat conftest.err`
8790$RM -r conftest*
8791
8792
8793if test -n "$compiler"; then
8794
8795lt_prog_compiler_no_builtin_flag=
8796
8797if test yes = "$GCC"; then
8798  case $cc_basename in
8799  nvcc*)
8800    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8801  *)
8802    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8803  esac
8804
8805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8806printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8807if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8808then :
8809  printf %s "(cached) " >&6
8810else $as_nop
8811  lt_cv_prog_compiler_rtti_exceptions=no
8812   ac_outfile=conftest.$ac_objext
8813   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8815   # Insert the option either (1) after the last *FLAGS variable, or
8816   # (2) before a word containing "conftest.", or (3) at the end.
8817   # Note that $ac_compile itself does not contain backslashes and begins
8818   # with a dollar sign (not a hyphen), so the echo should work correctly.
8819   # The option is referenced via a variable to avoid confusing sed.
8820   lt_compile=`echo "$ac_compile" | $SED \
8821   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8822   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8823   -e 's:$: $lt_compiler_flag:'`
8824   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8825   (eval "$lt_compile" 2>conftest.err)
8826   ac_status=$?
8827   cat conftest.err >&5
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   if (exit $ac_status) && test -s "$ac_outfile"; then
8830     # The compiler can only warn and ignore the option if not recognized
8831     # So say no if there are warnings other than the usual output.
8832     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8833     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8834     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8835       lt_cv_prog_compiler_rtti_exceptions=yes
8836     fi
8837   fi
8838   $RM conftest*
8839
8840fi
8841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8842printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8843
8844if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8845    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8846else
8847    :
8848fi
8849
8850fi
8851
8852
8853
8854
8855
8856
8857  lt_prog_compiler_wl=
8858lt_prog_compiler_pic=
8859lt_prog_compiler_static=
8860
8861
8862  if test yes = "$GCC"; then
8863    lt_prog_compiler_wl='-Wl,'
8864    lt_prog_compiler_static='-static'
8865
8866    case $host_os in
8867      aix*)
8868      # All AIX code is PIC.
8869      if test ia64 = "$host_cpu"; then
8870	# AIX 5 now supports IA64 processor
8871	lt_prog_compiler_static='-Bstatic'
8872      fi
8873      lt_prog_compiler_pic='-fPIC'
8874      ;;
8875
8876    amigaos*)
8877      case $host_cpu in
8878      powerpc)
8879            # see comment about AmigaOS4 .so support
8880            lt_prog_compiler_pic='-fPIC'
8881        ;;
8882      m68k)
8883            # FIXME: we need at least 68020 code to build shared libraries, but
8884            # adding the '-m68020' flag to GCC prevents building anything better,
8885            # like '-m68040'.
8886            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8887        ;;
8888      esac
8889      ;;
8890
8891    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8892      # PIC is the default for these OSes.
8893      ;;
8894
8895    mingw* | cygwin* | pw32* | os2* | cegcc*)
8896      # This hack is so that the source file can tell whether it is being
8897      # built for inclusion in a dll (and should export symbols for example).
8898      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8899      # (--disable-auto-import) libraries
8900      lt_prog_compiler_pic='-DDLL_EXPORT'
8901      case $host_os in
8902      os2*)
8903	lt_prog_compiler_static='$wl-static'
8904	;;
8905      esac
8906      ;;
8907
8908    darwin* | rhapsody*)
8909      # PIC is the default on this platform
8910      # Common symbols not allowed in MH_DYLIB files
8911      lt_prog_compiler_pic='-fno-common'
8912      ;;
8913
8914    haiku*)
8915      # PIC is the default for Haiku.
8916      # The "-static" flag exists, but is broken.
8917      lt_prog_compiler_static=
8918      ;;
8919
8920    hpux*)
8921      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8922      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8923      # sets the default TLS model and affects inlining.
8924      case $host_cpu in
8925      hppa*64*)
8926	# +Z the default
8927	;;
8928      *)
8929	lt_prog_compiler_pic='-fPIC'
8930	;;
8931      esac
8932      ;;
8933
8934    interix[3-9]*)
8935      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8936      # Instead, we relocate shared libraries at runtime.
8937      ;;
8938
8939    msdosdjgpp*)
8940      # Just because we use GCC doesn't mean we suddenly get shared libraries
8941      # on systems that don't support them.
8942      lt_prog_compiler_can_build_shared=no
8943      enable_shared=no
8944      ;;
8945
8946    *nto* | *qnx*)
8947      # QNX uses GNU C++, but need to define -shared option too, otherwise
8948      # it will coredump.
8949      lt_prog_compiler_pic='-fPIC -shared'
8950      ;;
8951
8952    sysv4*MP*)
8953      if test -d /usr/nec; then
8954	lt_prog_compiler_pic=-Kconform_pic
8955      fi
8956      ;;
8957
8958    *)
8959      lt_prog_compiler_pic='-fPIC'
8960      ;;
8961    esac
8962
8963    case $cc_basename in
8964    nvcc*) # Cuda Compiler Driver 2.2
8965      lt_prog_compiler_wl='-Xlinker '
8966      if test -n "$lt_prog_compiler_pic"; then
8967        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8968      fi
8969      ;;
8970    esac
8971  else
8972    # PORTME Check for flag to pass linker flags through the system compiler.
8973    case $host_os in
8974    aix*)
8975      lt_prog_compiler_wl='-Wl,'
8976      if test ia64 = "$host_cpu"; then
8977	# AIX 5 now supports IA64 processor
8978	lt_prog_compiler_static='-Bstatic'
8979      else
8980	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8981      fi
8982      ;;
8983
8984    darwin* | rhapsody*)
8985      # PIC is the default on this platform
8986      # Common symbols not allowed in MH_DYLIB files
8987      lt_prog_compiler_pic='-fno-common'
8988      case $cc_basename in
8989      nagfor*)
8990        # NAG Fortran compiler
8991        lt_prog_compiler_wl='-Wl,-Wl,,'
8992        lt_prog_compiler_pic='-PIC'
8993        lt_prog_compiler_static='-Bstatic'
8994        ;;
8995      esac
8996      ;;
8997
8998    mingw* | cygwin* | pw32* | os2* | cegcc*)
8999      # This hack is so that the source file can tell whether it is being
9000      # built for inclusion in a dll (and should export symbols for example).
9001      lt_prog_compiler_pic='-DDLL_EXPORT'
9002      case $host_os in
9003      os2*)
9004	lt_prog_compiler_static='$wl-static'
9005	;;
9006      esac
9007      ;;
9008
9009    hpux9* | hpux10* | hpux11*)
9010      lt_prog_compiler_wl='-Wl,'
9011      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9012      # not for PA HP-UX.
9013      case $host_cpu in
9014      hppa*64*|ia64*)
9015	# +Z the default
9016	;;
9017      *)
9018	lt_prog_compiler_pic='+Z'
9019	;;
9020      esac
9021      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9022      lt_prog_compiler_static='$wl-a ${wl}archive'
9023      ;;
9024
9025    irix5* | irix6* | nonstopux*)
9026      lt_prog_compiler_wl='-Wl,'
9027      # PIC (with -KPIC) is the default.
9028      lt_prog_compiler_static='-non_shared'
9029      ;;
9030
9031    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9032      case $cc_basename in
9033      # old Intel for x86_64, which still supported -KPIC.
9034      ecc*)
9035	lt_prog_compiler_wl='-Wl,'
9036	lt_prog_compiler_pic='-KPIC'
9037	lt_prog_compiler_static='-static'
9038        ;;
9039      # icc used to be incompatible with GCC.
9040      # ICC 10 doesn't accept -KPIC any more.
9041      icc* | ifort*)
9042	lt_prog_compiler_wl='-Wl,'
9043	lt_prog_compiler_pic='-fPIC'
9044	lt_prog_compiler_static='-static'
9045        ;;
9046      # Lahey Fortran 8.1.
9047      lf95*)
9048	lt_prog_compiler_wl='-Wl,'
9049	lt_prog_compiler_pic='--shared'
9050	lt_prog_compiler_static='--static'
9051	;;
9052      nagfor*)
9053	# NAG Fortran compiler
9054	lt_prog_compiler_wl='-Wl,-Wl,,'
9055	lt_prog_compiler_pic='-PIC'
9056	lt_prog_compiler_static='-Bstatic'
9057	;;
9058      tcc*)
9059	# Fabrice Bellard et al's Tiny C Compiler
9060	lt_prog_compiler_wl='-Wl,'
9061	lt_prog_compiler_pic='-fPIC'
9062	lt_prog_compiler_static='-static'
9063	;;
9064      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9065        # Portland Group compilers (*not* the Pentium gcc compiler,
9066	# which looks to be a dead project)
9067	lt_prog_compiler_wl='-Wl,'
9068	lt_prog_compiler_pic='-fpic'
9069	lt_prog_compiler_static='-Bstatic'
9070        ;;
9071      ccc*)
9072        lt_prog_compiler_wl='-Wl,'
9073        # All Alpha code is PIC.
9074        lt_prog_compiler_static='-non_shared'
9075        ;;
9076      xl* | bgxl* | bgf* | mpixl*)
9077	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9078	lt_prog_compiler_wl='-Wl,'
9079	lt_prog_compiler_pic='-qpic'
9080	lt_prog_compiler_static='-qstaticlink'
9081	;;
9082      *)
9083	case `$CC -V 2>&1 | sed 5q` in
9084	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9085	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9086	  lt_prog_compiler_pic='-KPIC'
9087	  lt_prog_compiler_static='-Bstatic'
9088	  lt_prog_compiler_wl=''
9089	  ;;
9090	*Sun\ F* | *Sun*Fortran*)
9091	  lt_prog_compiler_pic='-KPIC'
9092	  lt_prog_compiler_static='-Bstatic'
9093	  lt_prog_compiler_wl='-Qoption ld '
9094	  ;;
9095	*Sun\ C*)
9096	  # Sun C 5.9
9097	  lt_prog_compiler_pic='-KPIC'
9098	  lt_prog_compiler_static='-Bstatic'
9099	  lt_prog_compiler_wl='-Wl,'
9100	  ;;
9101        *Intel*\ [CF]*Compiler*)
9102	  lt_prog_compiler_wl='-Wl,'
9103	  lt_prog_compiler_pic='-fPIC'
9104	  lt_prog_compiler_static='-static'
9105	  ;;
9106	*Portland\ Group*)
9107	  lt_prog_compiler_wl='-Wl,'
9108	  lt_prog_compiler_pic='-fpic'
9109	  lt_prog_compiler_static='-Bstatic'
9110	  ;;
9111	esac
9112	;;
9113      esac
9114      ;;
9115
9116    newsos6)
9117      lt_prog_compiler_pic='-KPIC'
9118      lt_prog_compiler_static='-Bstatic'
9119      ;;
9120
9121    *nto* | *qnx*)
9122      # QNX uses GNU C++, but need to define -shared option too, otherwise
9123      # it will coredump.
9124      lt_prog_compiler_pic='-fPIC -shared'
9125      ;;
9126
9127    osf3* | osf4* | osf5*)
9128      lt_prog_compiler_wl='-Wl,'
9129      # All OSF/1 code is PIC.
9130      lt_prog_compiler_static='-non_shared'
9131      ;;
9132
9133    rdos*)
9134      lt_prog_compiler_static='-non_shared'
9135      ;;
9136
9137    solaris*)
9138      lt_prog_compiler_pic='-KPIC'
9139      lt_prog_compiler_static='-Bstatic'
9140      case $cc_basename in
9141      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9142	lt_prog_compiler_wl='-Qoption ld ';;
9143      *)
9144	lt_prog_compiler_wl='-Wl,';;
9145      esac
9146      ;;
9147
9148    sunos4*)
9149      lt_prog_compiler_wl='-Qoption ld '
9150      lt_prog_compiler_pic='-PIC'
9151      lt_prog_compiler_static='-Bstatic'
9152      ;;
9153
9154    sysv4 | sysv4.2uw2* | sysv4.3*)
9155      lt_prog_compiler_wl='-Wl,'
9156      lt_prog_compiler_pic='-KPIC'
9157      lt_prog_compiler_static='-Bstatic'
9158      ;;
9159
9160    sysv4*MP*)
9161      if test -d /usr/nec; then
9162	lt_prog_compiler_pic='-Kconform_pic'
9163	lt_prog_compiler_static='-Bstatic'
9164      fi
9165      ;;
9166
9167    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9168      lt_prog_compiler_wl='-Wl,'
9169      lt_prog_compiler_pic='-KPIC'
9170      lt_prog_compiler_static='-Bstatic'
9171      ;;
9172
9173    unicos*)
9174      lt_prog_compiler_wl='-Wl,'
9175      lt_prog_compiler_can_build_shared=no
9176      ;;
9177
9178    uts4*)
9179      lt_prog_compiler_pic='-pic'
9180      lt_prog_compiler_static='-Bstatic'
9181      ;;
9182
9183    *)
9184      lt_prog_compiler_can_build_shared=no
9185      ;;
9186    esac
9187  fi
9188
9189case $host_os in
9190  # For platforms that do not support PIC, -DPIC is meaningless:
9191  *djgpp*)
9192    lt_prog_compiler_pic=
9193    ;;
9194  *)
9195    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9196    ;;
9197esac
9198
9199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9200printf %s "checking for $compiler option to produce PIC... " >&6; }
9201if test ${lt_cv_prog_compiler_pic+y}
9202then :
9203  printf %s "(cached) " >&6
9204else $as_nop
9205  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9206fi
9207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9208printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9209lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9210
9211#
9212# Check to make sure the PIC flag actually works.
9213#
9214if test -n "$lt_prog_compiler_pic"; then
9215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9216printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9217if test ${lt_cv_prog_compiler_pic_works+y}
9218then :
9219  printf %s "(cached) " >&6
9220else $as_nop
9221  lt_cv_prog_compiler_pic_works=no
9222   ac_outfile=conftest.$ac_objext
9223   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9225   # Insert the option either (1) after the last *FLAGS variable, or
9226   # (2) before a word containing "conftest.", or (3) at the end.
9227   # Note that $ac_compile itself does not contain backslashes and begins
9228   # with a dollar sign (not a hyphen), so the echo should work correctly.
9229   # The option is referenced via a variable to avoid confusing sed.
9230   lt_compile=`echo "$ac_compile" | $SED \
9231   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233   -e 's:$: $lt_compiler_flag:'`
9234   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235   (eval "$lt_compile" 2>conftest.err)
9236   ac_status=$?
9237   cat conftest.err >&5
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   if (exit $ac_status) && test -s "$ac_outfile"; then
9240     # The compiler can only warn and ignore the option if not recognized
9241     # So say no if there are warnings other than the usual output.
9242     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9243     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9244     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9245       lt_cv_prog_compiler_pic_works=yes
9246     fi
9247   fi
9248   $RM conftest*
9249
9250fi
9251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9252printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9253
9254if test yes = "$lt_cv_prog_compiler_pic_works"; then
9255    case $lt_prog_compiler_pic in
9256     "" | " "*) ;;
9257     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9258     esac
9259else
9260    lt_prog_compiler_pic=
9261     lt_prog_compiler_can_build_shared=no
9262fi
9263
9264fi
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276#
9277# Check to make sure the static flag actually works.
9278#
9279wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9281printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9282if test ${lt_cv_prog_compiler_static_works+y}
9283then :
9284  printf %s "(cached) " >&6
9285else $as_nop
9286  lt_cv_prog_compiler_static_works=no
9287   save_LDFLAGS=$LDFLAGS
9288   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9289   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9290   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9291     # The linker can only warn and ignore the option if not recognized
9292     # So say no if there are warnings
9293     if test -s conftest.err; then
9294       # Append any errors to the config.log.
9295       cat conftest.err 1>&5
9296       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9297       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9298       if diff conftest.exp conftest.er2 >/dev/null; then
9299         lt_cv_prog_compiler_static_works=yes
9300       fi
9301     else
9302       lt_cv_prog_compiler_static_works=yes
9303     fi
9304   fi
9305   $RM -r conftest*
9306   LDFLAGS=$save_LDFLAGS
9307
9308fi
9309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9310printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9311
9312if test yes = "$lt_cv_prog_compiler_static_works"; then
9313    :
9314else
9315    lt_prog_compiler_static=
9316fi
9317
9318
9319
9320
9321
9322
9323
9324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9325printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9326if test ${lt_cv_prog_compiler_c_o+y}
9327then :
9328  printf %s "(cached) " >&6
9329else $as_nop
9330  lt_cv_prog_compiler_c_o=no
9331   $RM -r conftest 2>/dev/null
9332   mkdir conftest
9333   cd conftest
9334   mkdir out
9335   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9336
9337   lt_compiler_flag="-o out/conftest2.$ac_objext"
9338   # Insert the option either (1) after the last *FLAGS variable, or
9339   # (2) before a word containing "conftest.", or (3) at the end.
9340   # Note that $ac_compile itself does not contain backslashes and begins
9341   # with a dollar sign (not a hyphen), so the echo should work correctly.
9342   lt_compile=`echo "$ac_compile" | $SED \
9343   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9344   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9345   -e 's:$: $lt_compiler_flag:'`
9346   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9347   (eval "$lt_compile" 2>out/conftest.err)
9348   ac_status=$?
9349   cat out/conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9352   then
9353     # The compiler can only warn and ignore the option if not recognized
9354     # So say no if there are warnings
9355     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9356     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9357     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9358       lt_cv_prog_compiler_c_o=yes
9359     fi
9360   fi
9361   chmod u+w . 2>&5
9362   $RM conftest*
9363   # SGI C++ compiler will create directory out/ii_files/ for
9364   # template instantiation
9365   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9366   $RM out/* && rmdir out
9367   cd ..
9368   $RM -r conftest
9369   $RM conftest*
9370
9371fi
9372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9373printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9374
9375
9376
9377
9378
9379
9380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9381printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9382if test ${lt_cv_prog_compiler_c_o+y}
9383then :
9384  printf %s "(cached) " >&6
9385else $as_nop
9386  lt_cv_prog_compiler_c_o=no
9387   $RM -r conftest 2>/dev/null
9388   mkdir conftest
9389   cd conftest
9390   mkdir out
9391   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9392
9393   lt_compiler_flag="-o out/conftest2.$ac_objext"
9394   # Insert the option either (1) after the last *FLAGS variable, or
9395   # (2) before a word containing "conftest.", or (3) at the end.
9396   # Note that $ac_compile itself does not contain backslashes and begins
9397   # with a dollar sign (not a hyphen), so the echo should work correctly.
9398   lt_compile=`echo "$ac_compile" | $SED \
9399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9401   -e 's:$: $lt_compiler_flag:'`
9402   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9403   (eval "$lt_compile" 2>out/conftest.err)
9404   ac_status=$?
9405   cat out/conftest.err >&5
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9408   then
9409     # The compiler can only warn and ignore the option if not recognized
9410     # So say no if there are warnings
9411     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9412     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9413     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9414       lt_cv_prog_compiler_c_o=yes
9415     fi
9416   fi
9417   chmod u+w . 2>&5
9418   $RM conftest*
9419   # SGI C++ compiler will create directory out/ii_files/ for
9420   # template instantiation
9421   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9422   $RM out/* && rmdir out
9423   cd ..
9424   $RM -r conftest
9425   $RM conftest*
9426
9427fi
9428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9429printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9430
9431
9432
9433
9434hard_links=nottested
9435if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9436  # do not overwrite the value of need_locks provided by the user
9437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9438printf %s "checking if we can lock with hard links... " >&6; }
9439  hard_links=yes
9440  $RM conftest*
9441  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9442  touch conftest.a
9443  ln conftest.a conftest.b 2>&5 || hard_links=no
9444  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9446printf "%s\n" "$hard_links" >&6; }
9447  if test no = "$hard_links"; then
9448    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9449printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9450    need_locks=warn
9451  fi
9452else
9453  need_locks=no
9454fi
9455
9456
9457
9458
9459
9460
9461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9462printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9463
9464  runpath_var=
9465  allow_undefined_flag=
9466  always_export_symbols=no
9467  archive_cmds=
9468  archive_expsym_cmds=
9469  compiler_needs_object=no
9470  enable_shared_with_static_runtimes=no
9471  export_dynamic_flag_spec=
9472  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9473  hardcode_automatic=no
9474  hardcode_direct=no
9475  hardcode_direct_absolute=no
9476  hardcode_libdir_flag_spec=
9477  hardcode_libdir_separator=
9478  hardcode_minus_L=no
9479  hardcode_shlibpath_var=unsupported
9480  inherit_rpath=no
9481  link_all_deplibs=unknown
9482  module_cmds=
9483  module_expsym_cmds=
9484  old_archive_from_new_cmds=
9485  old_archive_from_expsyms_cmds=
9486  thread_safe_flag_spec=
9487  whole_archive_flag_spec=
9488  # include_expsyms should be a list of space-separated symbols to be *always*
9489  # included in the symbol list
9490  include_expsyms=
9491  # exclude_expsyms can be an extended regexp of symbols to exclude
9492  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9493  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9494  # as well as any symbol that contains 'd'.
9495  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9496  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9497  # platforms (ab)use it in PIC code, but their linkers get confused if
9498  # the symbol is explicitly referenced.  Since portable code cannot
9499  # rely on this symbol name, it's probably fine to never include it in
9500  # preloaded symbol tables.
9501  # Exclude shared library initialization/finalization symbols.
9502  extract_expsyms_cmds=
9503
9504  case $host_os in
9505  cygwin* | mingw* | pw32* | cegcc*)
9506    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9507    # When not using gcc, we currently assume that we are using
9508    # Microsoft Visual C++.
9509    if test yes != "$GCC"; then
9510      with_gnu_ld=no
9511    fi
9512    ;;
9513  interix*)
9514    # we just hope/assume this is gcc and not c89 (= MSVC++)
9515    with_gnu_ld=yes
9516    ;;
9517  openbsd* | bitrig*)
9518    with_gnu_ld=no
9519    ;;
9520  esac
9521
9522  ld_shlibs=yes
9523
9524  # On some targets, GNU ld is compatible enough with the native linker
9525  # that we're better off using the native interface for both.
9526  lt_use_gnu_ld_interface=no
9527  if test yes = "$with_gnu_ld"; then
9528    case $host_os in
9529      aix*)
9530	# The AIX port of GNU ld has always aspired to compatibility
9531	# with the native linker.  However, as the warning in the GNU ld
9532	# block says, versions before 2.19.5* couldn't really create working
9533	# shared libraries, regardless of the interface used.
9534	case `$LD -v 2>&1` in
9535	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9536	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9537	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9538	  *)
9539	    lt_use_gnu_ld_interface=yes
9540	    ;;
9541	esac
9542	;;
9543      *)
9544	lt_use_gnu_ld_interface=yes
9545	;;
9546    esac
9547  fi
9548
9549  if test yes = "$lt_use_gnu_ld_interface"; then
9550    # If archive_cmds runs LD, not CC, wlarc should be empty
9551    wlarc='$wl'
9552
9553    # Set some defaults for GNU ld with shared library support. These
9554    # are reset later if shared libraries are not supported. Putting them
9555    # here allows them to be overridden if necessary.
9556    runpath_var=LD_RUN_PATH
9557    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9558    export_dynamic_flag_spec='$wl--export-dynamic'
9559    # ancient GNU ld didn't support --whole-archive et. al.
9560    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9561      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9562    else
9563      whole_archive_flag_spec=
9564    fi
9565    supports_anon_versioning=no
9566    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9567      *GNU\ gold*) supports_anon_versioning=yes ;;
9568      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9569      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9570      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9571      *\ 2.11.*) ;; # other 2.11 versions
9572      *) supports_anon_versioning=yes ;;
9573    esac
9574
9575    # See if GNU ld supports shared libraries.
9576    case $host_os in
9577    aix[3-9]*)
9578      # On AIX/PPC, the GNU linker is very broken
9579      if test ia64 != "$host_cpu"; then
9580	ld_shlibs=no
9581	cat <<_LT_EOF 1>&2
9582
9583*** Warning: the GNU linker, at least up to release 2.19, is reported
9584*** to be unable to reliably create shared libraries on AIX.
9585*** Therefore, libtool is disabling shared libraries support.  If you
9586*** really care for shared libraries, you may want to install binutils
9587*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9588*** You will then need to restart the configuration process.
9589
9590_LT_EOF
9591      fi
9592      ;;
9593
9594    amigaos*)
9595      case $host_cpu in
9596      powerpc)
9597            # see comment about AmigaOS4 .so support
9598            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9599            archive_expsym_cmds=''
9600        ;;
9601      m68k)
9602            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)'
9603            hardcode_libdir_flag_spec='-L$libdir'
9604            hardcode_minus_L=yes
9605        ;;
9606      esac
9607      ;;
9608
9609    beos*)
9610      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9611	allow_undefined_flag=unsupported
9612	# Joseph Beckenbach <[email protected]> says some releases of gcc
9613	# support --undefined.  This deserves some investigation.  FIXME
9614	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9615      else
9616	ld_shlibs=no
9617      fi
9618      ;;
9619
9620    cygwin* | mingw* | pw32* | cegcc*)
9621      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9622      # as there is no search path for DLLs.
9623      hardcode_libdir_flag_spec='-L$libdir'
9624      export_dynamic_flag_spec='$wl--export-all-symbols'
9625      allow_undefined_flag=unsupported
9626      always_export_symbols=no
9627      enable_shared_with_static_runtimes=yes
9628      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'
9629      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9630
9631      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9632        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9633	# If the export-symbols file already is a .def file, use it as
9634	# is; otherwise, prepend EXPORTS...
9635	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9636          cp $export_symbols $output_objdir/$soname.def;
9637        else
9638          echo EXPORTS > $output_objdir/$soname.def;
9639          cat $export_symbols >> $output_objdir/$soname.def;
9640        fi~
9641        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9642      else
9643	ld_shlibs=no
9644      fi
9645      ;;
9646
9647    haiku*)
9648      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9649      link_all_deplibs=yes
9650      ;;
9651
9652    os2*)
9653      hardcode_libdir_flag_spec='-L$libdir'
9654      hardcode_minus_L=yes
9655      allow_undefined_flag=unsupported
9656      shrext_cmds=.dll
9657      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9658	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9659	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9660	$ECHO EXPORTS >> $output_objdir/$libname.def~
9661	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9662	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9663	emximp -o $lib $output_objdir/$libname.def'
9664      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9665	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9666	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9667	$ECHO EXPORTS >> $output_objdir/$libname.def~
9668	prefix_cmds="$SED"~
9669	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9670	  prefix_cmds="$prefix_cmds -e 1d";
9671	fi~
9672	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9673	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9674	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9675	emximp -o $lib $output_objdir/$libname.def'
9676      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9677      enable_shared_with_static_runtimes=yes
9678      ;;
9679
9680    interix[3-9]*)
9681      hardcode_direct=no
9682      hardcode_shlibpath_var=no
9683      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9684      export_dynamic_flag_spec='$wl-E'
9685      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9686      # Instead, shared libraries are loaded at an image base (0x10000000 by
9687      # default) and relocated if they conflict, which is a slow very memory
9688      # consuming and fragmenting process.  To avoid this, we pick a random,
9689      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9690      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9691      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9692      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'
9693      ;;
9694
9695    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9696      tmp_diet=no
9697      if test linux-dietlibc = "$host_os"; then
9698	case $cc_basename in
9699	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9700	esac
9701      fi
9702      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9703	 && test no = "$tmp_diet"
9704      then
9705	tmp_addflag=' $pic_flag'
9706	tmp_sharedflag='-shared'
9707	case $cc_basename,$host_cpu in
9708        pgcc*)				# Portland Group C compiler
9709	  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'
9710	  tmp_addflag=' $pic_flag'
9711	  ;;
9712	pgf77* | pgf90* | pgf95* | pgfortran*)
9713					# Portland Group f77 and f90 compilers
9714	  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'
9715	  tmp_addflag=' $pic_flag -Mnomain' ;;
9716	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9717	  tmp_addflag=' -i_dynamic' ;;
9718	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9719	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9720	ifc* | ifort*)			# Intel Fortran compiler
9721	  tmp_addflag=' -nofor_main' ;;
9722	lf95*)				# Lahey Fortran 8.1
9723	  whole_archive_flag_spec=
9724	  tmp_sharedflag='--shared' ;;
9725        nagfor*)                        # NAGFOR 5.3
9726          tmp_sharedflag='-Wl,-shared' ;;
9727	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9728	  tmp_sharedflag='-qmkshrobj'
9729	  tmp_addflag= ;;
9730	nvcc*)	# Cuda Compiler Driver 2.2
9731	  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'
9732	  compiler_needs_object=yes
9733	  ;;
9734	esac
9735	case `$CC -V 2>&1 | sed 5q` in
9736	*Sun\ C*)			# Sun C 5.9
9737	  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'
9738	  compiler_needs_object=yes
9739	  tmp_sharedflag='-G' ;;
9740	*Sun\ F*)			# Sun Fortran 8.3
9741	  tmp_sharedflag='-G' ;;
9742	esac
9743	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9744
9745        if test yes = "$supports_anon_versioning"; then
9746          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9747            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9748            echo "local: *; };" >> $output_objdir/$libname.ver~
9749            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9750        fi
9751
9752	case $cc_basename in
9753	tcc*)
9754	  export_dynamic_flag_spec='-rdynamic'
9755	  ;;
9756	xlf* | bgf* | bgxlf* | mpixlf*)
9757	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9758	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9759	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9760	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9761	  if test yes = "$supports_anon_versioning"; then
9762	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9763              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9764              echo "local: *; };" >> $output_objdir/$libname.ver~
9765              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9766	  fi
9767	  ;;
9768	esac
9769      else
9770        ld_shlibs=no
9771      fi
9772      ;;
9773
9774    netbsd*)
9775      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9776	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9777	wlarc=
9778      else
9779	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9780	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9781      fi
9782      ;;
9783
9784    solaris*)
9785      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9786	ld_shlibs=no
9787	cat <<_LT_EOF 1>&2
9788
9789*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9790*** create shared libraries on Solaris systems.  Therefore, libtool
9791*** is disabling shared libraries support.  We urge you to upgrade GNU
9792*** binutils to release 2.9.1 or newer.  Another option is to modify
9793*** your PATH or compiler configuration so that the native linker is
9794*** used, and then restart.
9795
9796_LT_EOF
9797      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9799	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9800      else
9801	ld_shlibs=no
9802      fi
9803      ;;
9804
9805    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9806      case `$LD -v 2>&1` in
9807        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9808	ld_shlibs=no
9809	cat <<_LT_EOF 1>&2
9810
9811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9812*** reliably create shared libraries on SCO systems.  Therefore, libtool
9813*** is disabling shared libraries support.  We urge you to upgrade GNU
9814*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9815*** your PATH or compiler configuration so that the native linker is
9816*** used, and then restart.
9817
9818_LT_EOF
9819	;;
9820	*)
9821	  # For security reasons, it is highly recommended that you always
9822	  # use absolute paths for naming shared libraries, and exclude the
9823	  # DT_RUNPATH tag from executables and libraries.  But doing so
9824	  # requires that you compile everything twice, which is a pain.
9825	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9827	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9828	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9829	  else
9830	    ld_shlibs=no
9831	  fi
9832	;;
9833      esac
9834      ;;
9835
9836    sunos4*)
9837      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9838      wlarc=
9839      hardcode_direct=yes
9840      hardcode_shlibpath_var=no
9841      ;;
9842
9843    *)
9844      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9845	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9846	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9847      else
9848	ld_shlibs=no
9849      fi
9850      ;;
9851    esac
9852
9853    if test no = "$ld_shlibs"; then
9854      runpath_var=
9855      hardcode_libdir_flag_spec=
9856      export_dynamic_flag_spec=
9857      whole_archive_flag_spec=
9858    fi
9859  else
9860    # PORTME fill in a description of your system's linker (not GNU ld)
9861    case $host_os in
9862    aix3*)
9863      allow_undefined_flag=unsupported
9864      always_export_symbols=yes
9865      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'
9866      # Note: this linker hardcodes the directories in LIBPATH if there
9867      # are no directories specified by -L.
9868      hardcode_minus_L=yes
9869      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9870	# Neither direct hardcoding nor static linking is supported with a
9871	# broken collect2.
9872	hardcode_direct=unsupported
9873      fi
9874      ;;
9875
9876    aix[4-9]*)
9877      if test ia64 = "$host_cpu"; then
9878	# On IA64, the linker does run time linking by default, so we don't
9879	# have to do anything special.
9880	aix_use_runtimelinking=no
9881	exp_sym_flag='-Bexport'
9882	no_entry_flag=
9883      else
9884	# If we're using GNU nm, then we don't want the "-C" option.
9885	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9886	# Without the "-l" option, or with the "-B" option, AIX nm treats
9887	# weak defined symbols like other global defined symbols, whereas
9888	# GNU nm marks them as "W".
9889	# While the 'weak' keyword is ignored in the Export File, we need
9890	# it in the Import File for the 'aix-soname' feature, so we have
9891	# to replace the "-B" option with "-P" for AIX nm.
9892	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9893	  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'
9894	else
9895	  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'
9896	fi
9897	aix_use_runtimelinking=no
9898
9899	# Test if we are trying to use run time linking or normal
9900	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9901	# have runtime linking enabled, and use it for executables.
9902	# For shared libraries, we enable/disable runtime linking
9903	# depending on the kind of the shared library created -
9904	# when "with_aix_soname,aix_use_runtimelinking" is:
9905	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9906	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9907	#            lib.a           static archive
9908	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9909	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9910	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9911	#            lib.a(lib.so.V) shared, rtl:no
9912	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9913	#            lib.a           static archive
9914	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9915	  for ld_flag in $LDFLAGS; do
9916	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9917	    aix_use_runtimelinking=yes
9918	    break
9919	  fi
9920	  done
9921	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9922	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9923	    # so we don't have lib.a shared libs to link our executables.
9924	    # We have to force runtime linking in this case.
9925	    aix_use_runtimelinking=yes
9926	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9927	  fi
9928	  ;;
9929	esac
9930
9931	exp_sym_flag='-bexport'
9932	no_entry_flag='-bnoentry'
9933      fi
9934
9935      # When large executables or shared objects are built, AIX ld can
9936      # have problems creating the table of contents.  If linking a library
9937      # or program results in "error TOC overflow" add -mminimal-toc to
9938      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9939      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9940
9941      archive_cmds=''
9942      hardcode_direct=yes
9943      hardcode_direct_absolute=yes
9944      hardcode_libdir_separator=':'
9945      link_all_deplibs=yes
9946      file_list_spec='$wl-f,'
9947      case $with_aix_soname,$aix_use_runtimelinking in
9948      aix,*) ;; # traditional, no import file
9949      svr4,* | *,yes) # use import file
9950	# The Import File defines what to hardcode.
9951	hardcode_direct=no
9952	hardcode_direct_absolute=no
9953	;;
9954      esac
9955
9956      if test yes = "$GCC"; then
9957	case $host_os in aix4.[012]|aix4.[012].*)
9958	# We only want to do this on AIX 4.2 and lower, the check
9959	# below for broken collect2 doesn't work under 4.3+
9960	  collect2name=`$CC -print-prog-name=collect2`
9961	  if test -f "$collect2name" &&
9962	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9963	  then
9964	  # We have reworked collect2
9965	  :
9966	  else
9967	  # We have old collect2
9968	  hardcode_direct=unsupported
9969	  # It fails to find uninstalled libraries when the uninstalled
9970	  # path is not listed in the libpath.  Setting hardcode_minus_L
9971	  # to unsupported forces relinking
9972	  hardcode_minus_L=yes
9973	  hardcode_libdir_flag_spec='-L$libdir'
9974	  hardcode_libdir_separator=
9975	  fi
9976	  ;;
9977	esac
9978	shared_flag='-shared'
9979	if test yes = "$aix_use_runtimelinking"; then
9980	  shared_flag="$shared_flag "'$wl-G'
9981	fi
9982	# Need to ensure runtime linking is disabled for the traditional
9983	# shared library, or the linker may eventually find shared libraries
9984	# /with/ Import File - we do not want to mix them.
9985	shared_flag_aix='-shared'
9986	shared_flag_svr4='-shared $wl-G'
9987      else
9988	# not using gcc
9989	if test ia64 = "$host_cpu"; then
9990	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9991	# chokes on -Wl,-G. The following line is correct:
9992	  shared_flag='-G'
9993	else
9994	  if test yes = "$aix_use_runtimelinking"; then
9995	    shared_flag='$wl-G'
9996	  else
9997	    shared_flag='$wl-bM:SRE'
9998	  fi
9999	  shared_flag_aix='$wl-bM:SRE'
10000	  shared_flag_svr4='$wl-G'
10001	fi
10002      fi
10003
10004      export_dynamic_flag_spec='$wl-bexpall'
10005      # It seems that -bexpall does not export symbols beginning with
10006      # underscore (_), so it is better to generate a list of symbols to export.
10007      always_export_symbols=yes
10008      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10009	# Warning - without using the other runtime loading flags (-brtl),
10010	# -berok will link without error, but may produce a broken library.
10011	allow_undefined_flag='-berok'
10012        # Determine the default libpath from the value encoded in an
10013        # empty executable.
10014        if test set = "${lt_cv_aix_libpath+set}"; then
10015  aix_libpath=$lt_cv_aix_libpath
10016else
10017  if test ${lt_cv_aix_libpath_+y}
10018then :
10019  printf %s "(cached) " >&6
10020else $as_nop
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023
10024int
10025main (void)
10026{
10027
10028  ;
10029  return 0;
10030}
10031_ACEOF
10032if ac_fn_c_try_link "$LINENO"
10033then :
10034
10035  lt_aix_libpath_sed='
10036      /Import File Strings/,/^$/ {
10037	  /^0/ {
10038	      s/^0  *\([^ ]*\) *$/\1/
10039	      p
10040	  }
10041      }'
10042  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10043  # Check for a 64-bit object if we didn't find anything.
10044  if test -z "$lt_cv_aix_libpath_"; then
10045    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10046  fi
10047fi
10048rm -f core conftest.err conftest.$ac_objext conftest.beam \
10049    conftest$ac_exeext conftest.$ac_ext
10050  if test -z "$lt_cv_aix_libpath_"; then
10051    lt_cv_aix_libpath_=/usr/lib:/lib
10052  fi
10053
10054fi
10055
10056  aix_libpath=$lt_cv_aix_libpath_
10057fi
10058
10059        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10060        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
10061      else
10062	if test ia64 = "$host_cpu"; then
10063	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10064	  allow_undefined_flag="-z nodefs"
10065	  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"
10066	else
10067	 # Determine the default libpath from the value encoded in an
10068	 # empty executable.
10069	 if test set = "${lt_cv_aix_libpath+set}"; then
10070  aix_libpath=$lt_cv_aix_libpath
10071else
10072  if test ${lt_cv_aix_libpath_+y}
10073then :
10074  printf %s "(cached) " >&6
10075else $as_nop
10076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077/* end confdefs.h.  */
10078
10079int
10080main (void)
10081{
10082
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087if ac_fn_c_try_link "$LINENO"
10088then :
10089
10090  lt_aix_libpath_sed='
10091      /Import File Strings/,/^$/ {
10092	  /^0/ {
10093	      s/^0  *\([^ ]*\) *$/\1/
10094	      p
10095	  }
10096      }'
10097  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10098  # Check for a 64-bit object if we didn't find anything.
10099  if test -z "$lt_cv_aix_libpath_"; then
10100    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101  fi
10102fi
10103rm -f core conftest.err conftest.$ac_objext conftest.beam \
10104    conftest$ac_exeext conftest.$ac_ext
10105  if test -z "$lt_cv_aix_libpath_"; then
10106    lt_cv_aix_libpath_=/usr/lib:/lib
10107  fi
10108
10109fi
10110
10111  aix_libpath=$lt_cv_aix_libpath_
10112fi
10113
10114	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10115	  # Warning - without using the other run time loading flags,
10116	  # -berok will link without error, but may produce a broken library.
10117	  no_undefined_flag=' $wl-bernotok'
10118	  allow_undefined_flag=' $wl-berok'
10119	  if test yes = "$with_gnu_ld"; then
10120	    # We only use this code for GNU lds that support --whole-archive.
10121	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10122	  else
10123	    # Exported symbols can be pulled into shared objects from archives
10124	    whole_archive_flag_spec='$convenience'
10125	  fi
10126	  archive_cmds_need_lc=yes
10127	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10128	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10129	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10130	  if test svr4 != "$with_aix_soname"; then
10131	    # This is similar to how AIX traditionally builds its shared libraries.
10132	    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'
10133	  fi
10134	  if test aix != "$with_aix_soname"; then
10135	    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'
10136	  else
10137	    # used by -dlpreopen to get the symbols
10138	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10139	  fi
10140	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10141	fi
10142      fi
10143      ;;
10144
10145    amigaos*)
10146      case $host_cpu in
10147      powerpc)
10148            # see comment about AmigaOS4 .so support
10149            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10150            archive_expsym_cmds=''
10151        ;;
10152      m68k)
10153            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)'
10154            hardcode_libdir_flag_spec='-L$libdir'
10155            hardcode_minus_L=yes
10156        ;;
10157      esac
10158      ;;
10159
10160    bsdi[45]*)
10161      export_dynamic_flag_spec=-rdynamic
10162      ;;
10163
10164    cygwin* | mingw* | pw32* | cegcc*)
10165      # When not using gcc, we currently assume that we are using
10166      # Microsoft Visual C++.
10167      # hardcode_libdir_flag_spec is actually meaningless, as there is
10168      # no search path for DLLs.
10169      case $cc_basename in
10170      cl*)
10171	# Native MSVC
10172	hardcode_libdir_flag_spec=' '
10173	allow_undefined_flag=unsupported
10174	always_export_symbols=yes
10175	file_list_spec='@'
10176	# Tell ltmain to make .lib files, not .a files.
10177	libext=lib
10178	# Tell ltmain to make .dll files, not .so files.
10179	shrext_cmds=.dll
10180	# FIXME: Setting linknames here is a bad hack.
10181	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10182	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10183            cp "$export_symbols" "$output_objdir/$soname.def";
10184            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10185          else
10186            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10187          fi~
10188          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10189          linknames='
10190	# The linker will not automatically build a static lib if we build a DLL.
10191	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10192	enable_shared_with_static_runtimes=yes
10193	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10194	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10195	# Don't use ranlib
10196	old_postinstall_cmds='chmod 644 $oldlib'
10197	postlink_cmds='lt_outputfile="@OUTPUT@"~
10198          lt_tool_outputfile="@TOOL_OUTPUT@"~
10199          case $lt_outputfile in
10200            *.exe|*.EXE) ;;
10201            *)
10202              lt_outputfile=$lt_outputfile.exe
10203              lt_tool_outputfile=$lt_tool_outputfile.exe
10204              ;;
10205          esac~
10206          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10207            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10208            $RM "$lt_outputfile.manifest";
10209          fi'
10210	;;
10211      *)
10212	# Assume MSVC wrapper
10213	hardcode_libdir_flag_spec=' '
10214	allow_undefined_flag=unsupported
10215	# Tell ltmain to make .lib files, not .a files.
10216	libext=lib
10217	# Tell ltmain to make .dll files, not .so files.
10218	shrext_cmds=.dll
10219	# FIXME: Setting linknames here is a bad hack.
10220	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10221	# The linker will automatically build a .lib file if we build a DLL.
10222	old_archive_from_new_cmds='true'
10223	# FIXME: Should let the user specify the lib program.
10224	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10225	enable_shared_with_static_runtimes=yes
10226	;;
10227      esac
10228      ;;
10229
10230    darwin* | rhapsody*)
10231
10232
10233  archive_cmds_need_lc=no
10234  hardcode_direct=no
10235  hardcode_automatic=yes
10236  hardcode_shlibpath_var=unsupported
10237  if test yes = "$lt_cv_ld_force_load"; then
10238    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\"`'
10239
10240  else
10241    whole_archive_flag_spec=''
10242  fi
10243  link_all_deplibs=yes
10244  allow_undefined_flag=$_lt_dar_allow_undefined
10245  case $cc_basename in
10246     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10247     *) _lt_dar_can_shared=$GCC ;;
10248  esac
10249  if test yes = "$_lt_dar_can_shared"; then
10250    output_verbose_link_cmd=func_echo_all
10251    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10252    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10253    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"
10254    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"
10255
10256  else
10257  ld_shlibs=no
10258  fi
10259
10260      ;;
10261
10262    dgux*)
10263      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264      hardcode_libdir_flag_spec='-L$libdir'
10265      hardcode_shlibpath_var=no
10266      ;;
10267
10268    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10269    # support.  Future versions do this automatically, but an explicit c++rt0.o
10270    # does not break anything, and helps significantly (at the cost of a little
10271    # extra space).
10272    freebsd2.2*)
10273      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10274      hardcode_libdir_flag_spec='-R$libdir'
10275      hardcode_direct=yes
10276      hardcode_shlibpath_var=no
10277      ;;
10278
10279    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10280    freebsd2.*)
10281      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10282      hardcode_direct=yes
10283      hardcode_minus_L=yes
10284      hardcode_shlibpath_var=no
10285      ;;
10286
10287    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10288    freebsd* | dragonfly*)
10289      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10290      hardcode_libdir_flag_spec='-R$libdir'
10291      hardcode_direct=yes
10292      hardcode_shlibpath_var=no
10293      ;;
10294
10295    hpux9*)
10296      if test yes = "$GCC"; then
10297	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'
10298      else
10299	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'
10300      fi
10301      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10302      hardcode_libdir_separator=:
10303      hardcode_direct=yes
10304
10305      # hardcode_minus_L: Not really in the search PATH,
10306      # but as the default location of the library.
10307      hardcode_minus_L=yes
10308      export_dynamic_flag_spec='$wl-E'
10309      ;;
10310
10311    hpux10*)
10312      if test yes,no = "$GCC,$with_gnu_ld"; then
10313	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10314      else
10315	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10316      fi
10317      if test no = "$with_gnu_ld"; then
10318	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10319	hardcode_libdir_separator=:
10320	hardcode_direct=yes
10321	hardcode_direct_absolute=yes
10322	export_dynamic_flag_spec='$wl-E'
10323	# hardcode_minus_L: Not really in the search PATH,
10324	# but as the default location of the library.
10325	hardcode_minus_L=yes
10326      fi
10327      ;;
10328
10329    hpux11*)
10330      if test yes,no = "$GCC,$with_gnu_ld"; then
10331	case $host_cpu in
10332	hppa*64*)
10333	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10334	  ;;
10335	ia64*)
10336	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10337	  ;;
10338	*)
10339	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10340	  ;;
10341	esac
10342      else
10343	case $host_cpu in
10344	hppa*64*)
10345	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10346	  ;;
10347	ia64*)
10348	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10349	  ;;
10350	*)
10351
10352	  # Older versions of the 11.00 compiler do not understand -b yet
10353	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10354	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10355printf %s "checking if $CC understands -b... " >&6; }
10356if test ${lt_cv_prog_compiler__b+y}
10357then :
10358  printf %s "(cached) " >&6
10359else $as_nop
10360  lt_cv_prog_compiler__b=no
10361   save_LDFLAGS=$LDFLAGS
10362   LDFLAGS="$LDFLAGS -b"
10363   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10364   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10365     # The linker can only warn and ignore the option if not recognized
10366     # So say no if there are warnings
10367     if test -s conftest.err; then
10368       # Append any errors to the config.log.
10369       cat conftest.err 1>&5
10370       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10371       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10372       if diff conftest.exp conftest.er2 >/dev/null; then
10373         lt_cv_prog_compiler__b=yes
10374       fi
10375     else
10376       lt_cv_prog_compiler__b=yes
10377     fi
10378   fi
10379   $RM -r conftest*
10380   LDFLAGS=$save_LDFLAGS
10381
10382fi
10383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10384printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10385
10386if test yes = "$lt_cv_prog_compiler__b"; then
10387    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10388else
10389    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10390fi
10391
10392	  ;;
10393	esac
10394      fi
10395      if test no = "$with_gnu_ld"; then
10396	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10397	hardcode_libdir_separator=:
10398
10399	case $host_cpu in
10400	hppa*64*|ia64*)
10401	  hardcode_direct=no
10402	  hardcode_shlibpath_var=no
10403	  ;;
10404	*)
10405	  hardcode_direct=yes
10406	  hardcode_direct_absolute=yes
10407	  export_dynamic_flag_spec='$wl-E'
10408
10409	  # hardcode_minus_L: Not really in the search PATH,
10410	  # but as the default location of the library.
10411	  hardcode_minus_L=yes
10412	  ;;
10413	esac
10414      fi
10415      ;;
10416
10417    irix5* | irix6* | nonstopux*)
10418      if test yes = "$GCC"; then
10419	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'
10420	# Try to use the -exported_symbol ld option, if it does not
10421	# work, assume that -exports_file does not work either and
10422	# implicitly export all symbols.
10423	# This should be the same for all languages, so no per-tag cache variable.
10424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10425printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10426if test ${lt_cv_irix_exported_symbol+y}
10427then :
10428  printf %s "(cached) " >&6
10429else $as_nop
10430  save_LDFLAGS=$LDFLAGS
10431	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10432	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434int foo (void) { return 0; }
10435_ACEOF
10436if ac_fn_c_try_link "$LINENO"
10437then :
10438  lt_cv_irix_exported_symbol=yes
10439else $as_nop
10440  lt_cv_irix_exported_symbol=no
10441fi
10442rm -f core conftest.err conftest.$ac_objext conftest.beam \
10443    conftest$ac_exeext conftest.$ac_ext
10444           LDFLAGS=$save_LDFLAGS
10445fi
10446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10447printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10448	if test yes = "$lt_cv_irix_exported_symbol"; then
10449          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'
10450	fi
10451      else
10452	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'
10453	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'
10454      fi
10455      archive_cmds_need_lc='no'
10456      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10457      hardcode_libdir_separator=:
10458      inherit_rpath=yes
10459      link_all_deplibs=yes
10460      ;;
10461
10462    linux*)
10463      case $cc_basename in
10464      tcc*)
10465	# Fabrice Bellard et al's Tiny C Compiler
10466	ld_shlibs=yes
10467	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10468	;;
10469      esac
10470      ;;
10471
10472    netbsd*)
10473      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10474	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10475      else
10476	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10477      fi
10478      hardcode_libdir_flag_spec='-R$libdir'
10479      hardcode_direct=yes
10480      hardcode_shlibpath_var=no
10481      ;;
10482
10483    newsos6)
10484      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10485      hardcode_direct=yes
10486      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10487      hardcode_libdir_separator=:
10488      hardcode_shlibpath_var=no
10489      ;;
10490
10491    *nto* | *qnx*)
10492      ;;
10493
10494    openbsd* | bitrig*)
10495      if test -f /usr/libexec/ld.so; then
10496	hardcode_direct=yes
10497	hardcode_shlibpath_var=no
10498	hardcode_direct_absolute=yes
10499	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10500	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10501	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10502	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10503	  export_dynamic_flag_spec='$wl-E'
10504	else
10505	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10506	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10507	fi
10508      else
10509	ld_shlibs=no
10510      fi
10511      ;;
10512
10513    os2*)
10514      hardcode_libdir_flag_spec='-L$libdir'
10515      hardcode_minus_L=yes
10516      allow_undefined_flag=unsupported
10517      shrext_cmds=.dll
10518      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10519	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10520	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10521	$ECHO EXPORTS >> $output_objdir/$libname.def~
10522	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10523	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10524	emximp -o $lib $output_objdir/$libname.def'
10525      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10526	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10527	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10528	$ECHO EXPORTS >> $output_objdir/$libname.def~
10529	prefix_cmds="$SED"~
10530	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10531	  prefix_cmds="$prefix_cmds -e 1d";
10532	fi~
10533	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10534	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10535	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10536	emximp -o $lib $output_objdir/$libname.def'
10537      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10538      enable_shared_with_static_runtimes=yes
10539      ;;
10540
10541    osf3*)
10542      if test yes = "$GCC"; then
10543	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10544	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'
10545      else
10546	allow_undefined_flag=' -expect_unresolved \*'
10547	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'
10548      fi
10549      archive_cmds_need_lc='no'
10550      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10551      hardcode_libdir_separator=:
10552      ;;
10553
10554    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10555      if test yes = "$GCC"; then
10556	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10557	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'
10558	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10559      else
10560	allow_undefined_flag=' -expect_unresolved \*'
10561	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'
10562	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~
10563          $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'
10564
10565	# Both c and cxx compiler support -rpath directly
10566	hardcode_libdir_flag_spec='-rpath $libdir'
10567      fi
10568      archive_cmds_need_lc='no'
10569      hardcode_libdir_separator=:
10570      ;;
10571
10572    solaris*)
10573      no_undefined_flag=' -z defs'
10574      if test yes = "$GCC"; then
10575	wlarc='$wl'
10576	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10577	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10578          $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'
10579      else
10580	case `$CC -V 2>&1` in
10581	*"Compilers 5.0"*)
10582	  wlarc=''
10583	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10584	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10585            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10586	  ;;
10587	*)
10588	  wlarc='$wl'
10589	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10590	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10591            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10592	  ;;
10593	esac
10594      fi
10595      hardcode_libdir_flag_spec='-R$libdir'
10596      hardcode_shlibpath_var=no
10597      case $host_os in
10598      solaris2.[0-5] | solaris2.[0-5].*) ;;
10599      *)
10600	# The compiler driver will combine and reorder linker options,
10601	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10602	# but is careful enough not to reorder.
10603	# Supported since Solaris 2.6 (maybe 2.5.1?)
10604	if test yes = "$GCC"; then
10605	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10606	else
10607	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10608	fi
10609	;;
10610      esac
10611      link_all_deplibs=yes
10612      ;;
10613
10614    sunos4*)
10615      if test sequent = "$host_vendor"; then
10616	# Use $CC to link under sequent, because it throws in some extra .o
10617	# files that make .init and .fini sections work.
10618	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10619      else
10620	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10621      fi
10622      hardcode_libdir_flag_spec='-L$libdir'
10623      hardcode_direct=yes
10624      hardcode_minus_L=yes
10625      hardcode_shlibpath_var=no
10626      ;;
10627
10628    sysv4)
10629      case $host_vendor in
10630	sni)
10631	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632	  hardcode_direct=yes # is this really true???
10633	;;
10634	siemens)
10635	  ## LD is ld it makes a PLAMLIB
10636	  ## CC just makes a GrossModule.
10637	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10638	  reload_cmds='$CC -r -o $output$reload_objs'
10639	  hardcode_direct=no
10640        ;;
10641	motorola)
10642	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10644	;;
10645      esac
10646      runpath_var='LD_RUN_PATH'
10647      hardcode_shlibpath_var=no
10648      ;;
10649
10650    sysv4.3*)
10651      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10652      hardcode_shlibpath_var=no
10653      export_dynamic_flag_spec='-Bexport'
10654      ;;
10655
10656    sysv4*MP*)
10657      if test -d /usr/nec; then
10658	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659	hardcode_shlibpath_var=no
10660	runpath_var=LD_RUN_PATH
10661	hardcode_runpath_var=yes
10662	ld_shlibs=yes
10663      fi
10664      ;;
10665
10666    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10667      no_undefined_flag='$wl-z,text'
10668      archive_cmds_need_lc=no
10669      hardcode_shlibpath_var=no
10670      runpath_var='LD_RUN_PATH'
10671
10672      if test yes = "$GCC"; then
10673	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675      else
10676	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10677	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10678      fi
10679      ;;
10680
10681    sysv5* | sco3.2v5* | sco5v6*)
10682      # Note: We CANNOT use -z defs as we might desire, because we do not
10683      # link with -lc, and that would cause any symbols used from libc to
10684      # always be unresolved, which means just about no library would
10685      # ever link correctly.  If we're not using GNU ld we use -z text
10686      # though, which does catch some bad symbols but isn't as heavy-handed
10687      # as -z defs.
10688      no_undefined_flag='$wl-z,text'
10689      allow_undefined_flag='$wl-z,nodefs'
10690      archive_cmds_need_lc=no
10691      hardcode_shlibpath_var=no
10692      hardcode_libdir_flag_spec='$wl-R,$libdir'
10693      hardcode_libdir_separator=':'
10694      link_all_deplibs=yes
10695      export_dynamic_flag_spec='$wl-Bexport'
10696      runpath_var='LD_RUN_PATH'
10697
10698      if test yes = "$GCC"; then
10699	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10700	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10701      else
10702	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10704      fi
10705      ;;
10706
10707    uts4*)
10708      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709      hardcode_libdir_flag_spec='-L$libdir'
10710      hardcode_shlibpath_var=no
10711      ;;
10712
10713    *)
10714      ld_shlibs=no
10715      ;;
10716    esac
10717
10718    if test sni = "$host_vendor"; then
10719      case $host in
10720      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10721	export_dynamic_flag_spec='$wl-Blargedynsym'
10722	;;
10723      esac
10724    fi
10725  fi
10726
10727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10728printf "%s\n" "$ld_shlibs" >&6; }
10729test no = "$ld_shlibs" && can_build_shared=no
10730
10731with_gnu_ld=$with_gnu_ld
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747#
10748# Do we need to explicitly link libc?
10749#
10750case "x$archive_cmds_need_lc" in
10751x|xyes)
10752  # Assume -lc should be added
10753  archive_cmds_need_lc=yes
10754
10755  if test yes,yes = "$GCC,$enable_shared"; then
10756    case $archive_cmds in
10757    *'~'*)
10758      # FIXME: we may have to deal with multi-command sequences.
10759      ;;
10760    '$CC '*)
10761      # Test whether the compiler implicitly links with -lc since on some
10762      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10763      # to ld, don't add -lc before -lgcc.
10764      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10765printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10766if test ${lt_cv_archive_cmds_need_lc+y}
10767then :
10768  printf %s "(cached) " >&6
10769else $as_nop
10770  $RM conftest*
10771	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10772
10773	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10774  (eval $ac_compile) 2>&5
10775  ac_status=$?
10776  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10777  test $ac_status = 0; } 2>conftest.err; then
10778	  soname=conftest
10779	  lib=conftest
10780	  libobjs=conftest.$ac_objext
10781	  deplibs=
10782	  wl=$lt_prog_compiler_wl
10783	  pic_flag=$lt_prog_compiler_pic
10784	  compiler_flags=-v
10785	  linker_flags=-v
10786	  verstring=
10787	  output_objdir=.
10788	  libname=conftest
10789	  lt_save_allow_undefined_flag=$allow_undefined_flag
10790	  allow_undefined_flag=
10791	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10792  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10793  ac_status=$?
10794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10795  test $ac_status = 0; }
10796	  then
10797	    lt_cv_archive_cmds_need_lc=no
10798	  else
10799	    lt_cv_archive_cmds_need_lc=yes
10800	  fi
10801	  allow_undefined_flag=$lt_save_allow_undefined_flag
10802	else
10803	  cat conftest.err 1>&5
10804	fi
10805	$RM conftest*
10806
10807fi
10808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10809printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10810      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10811      ;;
10812    esac
10813  fi
10814  ;;
10815esac
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10969printf %s "checking dynamic linker characteristics... " >&6; }
10970
10971if test yes = "$GCC"; then
10972  case $host_os in
10973    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10974    *) lt_awk_arg='/^libraries:/' ;;
10975  esac
10976  case $host_os in
10977    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10978    *) lt_sed_strip_eq='s|=/|/|g' ;;
10979  esac
10980  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10981  case $lt_search_path_spec in
10982  *\;*)
10983    # if the path contains ";" then we assume it to be the separator
10984    # otherwise default to the standard path separator (i.e. ":") - it is
10985    # assumed that no part of a normal pathname contains ";" but that should
10986    # okay in the real world where ";" in dirpaths is itself problematic.
10987    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10988    ;;
10989  *)
10990    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10991    ;;
10992  esac
10993  # Ok, now we have the path, separated by spaces, we can step through it
10994  # and add multilib dir if necessary...
10995  lt_tmp_lt_search_path_spec=
10996  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10997  # ...but if some path component already ends with the multilib dir we assume
10998  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10999  case "$lt_multi_os_dir; $lt_search_path_spec " in
11000  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11001    lt_multi_os_dir=
11002    ;;
11003  esac
11004  for lt_sys_path in $lt_search_path_spec; do
11005    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11006      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11007    elif test -n "$lt_multi_os_dir"; then
11008      test -d "$lt_sys_path" && \
11009	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11010    fi
11011  done
11012  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11013BEGIN {RS = " "; FS = "/|\n";} {
11014  lt_foo = "";
11015  lt_count = 0;
11016  for (lt_i = NF; lt_i > 0; lt_i--) {
11017    if ($lt_i != "" && $lt_i != ".") {
11018      if ($lt_i == "..") {
11019        lt_count++;
11020      } else {
11021        if (lt_count == 0) {
11022          lt_foo = "/" $lt_i lt_foo;
11023        } else {
11024          lt_count--;
11025        }
11026      }
11027    }
11028  }
11029  if (lt_foo != "") { lt_freq[lt_foo]++; }
11030  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11031}'`
11032  # AWK program above erroneously prepends '/' to C:/dos/paths
11033  # for these hosts.
11034  case $host_os in
11035    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11036      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11037  esac
11038  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11039else
11040  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11041fi
11042library_names_spec=
11043libname_spec='lib$name'
11044soname_spec=
11045shrext_cmds=.so
11046postinstall_cmds=
11047postuninstall_cmds=
11048finish_cmds=
11049finish_eval=
11050shlibpath_var=
11051shlibpath_overrides_runpath=unknown
11052version_type=none
11053dynamic_linker="$host_os ld.so"
11054sys_lib_dlsearch_path_spec="/lib /usr/lib"
11055need_lib_prefix=unknown
11056hardcode_into_libs=no
11057
11058# when you set need_version to no, make sure it does not cause -set_version
11059# flags to be left without arguments
11060need_version=unknown
11061
11062
11063
11064case $host_os in
11065aix3*)
11066  version_type=linux # correct to gnu/linux during the next big refactor
11067  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11068  shlibpath_var=LIBPATH
11069
11070  # AIX 3 has no versioning support, so we append a major version to the name.
11071  soname_spec='$libname$release$shared_ext$major'
11072  ;;
11073
11074aix[4-9]*)
11075  version_type=linux # correct to gnu/linux during the next big refactor
11076  need_lib_prefix=no
11077  need_version=no
11078  hardcode_into_libs=yes
11079  if test ia64 = "$host_cpu"; then
11080    # AIX 5 supports IA64
11081    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11082    shlibpath_var=LD_LIBRARY_PATH
11083  else
11084    # With GCC up to 2.95.x, collect2 would create an import file
11085    # for dependence libraries.  The import file would start with
11086    # the line '#! .'.  This would cause the generated library to
11087    # depend on '.', always an invalid library.  This was fixed in
11088    # development snapshots of GCC prior to 3.0.
11089    case $host_os in
11090      aix4 | aix4.[01] | aix4.[01].*)
11091      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11092	   echo ' yes '
11093	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11094	:
11095      else
11096	can_build_shared=no
11097      fi
11098      ;;
11099    esac
11100    # Using Import Files as archive members, it is possible to support
11101    # filename-based versioning of shared library archives on AIX. While
11102    # this would work for both with and without runtime linking, it will
11103    # prevent static linking of such archives. So we do filename-based
11104    # shared library versioning with .so extension only, which is used
11105    # when both runtime linking and shared linking is enabled.
11106    # Unfortunately, runtime linking may impact performance, so we do
11107    # not want this to be the default eventually. Also, we use the
11108    # versioned .so libs for executables only if there is the -brtl
11109    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11110    # To allow for filename-based versioning support, we need to create
11111    # libNAME.so.V as an archive file, containing:
11112    # *) an Import File, referring to the versioned filename of the
11113    #    archive as well as the shared archive member, telling the
11114    #    bitwidth (32 or 64) of that shared object, and providing the
11115    #    list of exported symbols of that shared object, eventually
11116    #    decorated with the 'weak' keyword
11117    # *) the shared object with the F_LOADONLY flag set, to really avoid
11118    #    it being seen by the linker.
11119    # At run time we better use the real file rather than another symlink,
11120    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11121
11122    case $with_aix_soname,$aix_use_runtimelinking in
11123    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11124    # soname into executable. Probably we can add versioning support to
11125    # collect2, so additional links can be useful in future.
11126    aix,yes) # traditional libtool
11127      dynamic_linker='AIX unversionable lib.so'
11128      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11129      # instead of lib<name>.a to let people know that these are not
11130      # typical AIX shared libraries.
11131      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132      ;;
11133    aix,no) # traditional AIX only
11134      dynamic_linker='AIX lib.a(lib.so.V)'
11135      # We preserve .a as extension for shared libraries through AIX4.2
11136      # and later when we are not doing run time linking.
11137      library_names_spec='$libname$release.a $libname.a'
11138      soname_spec='$libname$release$shared_ext$major'
11139      ;;
11140    svr4,*) # full svr4 only
11141      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11142      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11143      # We do not specify a path in Import Files, so LIBPATH fires.
11144      shlibpath_overrides_runpath=yes
11145      ;;
11146    *,yes) # both, prefer svr4
11147      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11148      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11149      # unpreferred sharedlib libNAME.a needs extra handling
11150      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"'
11151      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"'
11152      # We do not specify a path in Import Files, so LIBPATH fires.
11153      shlibpath_overrides_runpath=yes
11154      ;;
11155    *,no) # both, prefer aix
11156      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11157      library_names_spec='$libname$release.a $libname.a'
11158      soname_spec='$libname$release$shared_ext$major'
11159      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11160      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)'
11161      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"'
11162      ;;
11163    esac
11164    shlibpath_var=LIBPATH
11165  fi
11166  ;;
11167
11168amigaos*)
11169  case $host_cpu in
11170  powerpc)
11171    # Since July 2007 AmigaOS4 officially supports .so libraries.
11172    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11173    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174    ;;
11175  m68k)
11176    library_names_spec='$libname.ixlibrary $libname.a'
11177    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11178    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'
11179    ;;
11180  esac
11181  ;;
11182
11183beos*)
11184  library_names_spec='$libname$shared_ext'
11185  dynamic_linker="$host_os ld.so"
11186  shlibpath_var=LIBRARY_PATH
11187  ;;
11188
11189bsdi[45]*)
11190  version_type=linux # correct to gnu/linux during the next big refactor
11191  need_version=no
11192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11193  soname_spec='$libname$release$shared_ext$major'
11194  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11195  shlibpath_var=LD_LIBRARY_PATH
11196  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11197  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11198  # the default ld.so.conf also contains /usr/contrib/lib and
11199  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11200  # libtool to hard-code these into programs
11201  ;;
11202
11203cygwin* | mingw* | pw32* | cegcc*)
11204  version_type=windows
11205  shrext_cmds=.dll
11206  need_version=no
11207  need_lib_prefix=no
11208
11209  case $GCC,$cc_basename in
11210  yes,*)
11211    # gcc
11212    library_names_spec='$libname.dll.a'
11213    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11214    postinstall_cmds='base_file=`basename \$file`~
11215      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11216      dldir=$destdir/`dirname \$dlpath`~
11217      test -d \$dldir || mkdir -p \$dldir~
11218      $install_prog $dir/$dlname \$dldir/$dlname~
11219      chmod a+x \$dldir/$dlname~
11220      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11221        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11222      fi'
11223    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11224      dlpath=$dir/\$dldll~
11225       $RM \$dlpath'
11226    shlibpath_overrides_runpath=yes
11227
11228    case $host_os in
11229    cygwin*)
11230      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11231      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11232
11233      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11234      ;;
11235    mingw* | cegcc*)
11236      # MinGW DLLs use traditional 'lib' prefix
11237      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11238      ;;
11239    pw32*)
11240      # pw32 DLLs use 'pw' prefix rather than 'lib'
11241      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11242      ;;
11243    esac
11244    dynamic_linker='Win32 ld.exe'
11245    ;;
11246
11247  *,cl*)
11248    # Native MSVC
11249    libname_spec='$name'
11250    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11251    library_names_spec='$libname.dll.lib'
11252
11253    case $build_os in
11254    mingw*)
11255      sys_lib_search_path_spec=
11256      lt_save_ifs=$IFS
11257      IFS=';'
11258      for lt_path in $LIB
11259      do
11260        IFS=$lt_save_ifs
11261        # Let DOS variable expansion print the short 8.3 style file name.
11262        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11263        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11264      done
11265      IFS=$lt_save_ifs
11266      # Convert to MSYS style.
11267      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11268      ;;
11269    cygwin*)
11270      # Convert to unix form, then to dos form, then back to unix form
11271      # but this time dos style (no spaces!) so that the unix form looks
11272      # like /cygdrive/c/PROGRA~1:/cygdr...
11273      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11274      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11275      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11276      ;;
11277    *)
11278      sys_lib_search_path_spec=$LIB
11279      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11280        # It is most probably a Windows format PATH.
11281        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11282      else
11283        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11284      fi
11285      # FIXME: find the short name or the path components, as spaces are
11286      # common. (e.g. "Program Files" -> "PROGRA~1")
11287      ;;
11288    esac
11289
11290    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11291    postinstall_cmds='base_file=`basename \$file`~
11292      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11293      dldir=$destdir/`dirname \$dlpath`~
11294      test -d \$dldir || mkdir -p \$dldir~
11295      $install_prog $dir/$dlname \$dldir/$dlname'
11296    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11297      dlpath=$dir/\$dldll~
11298       $RM \$dlpath'
11299    shlibpath_overrides_runpath=yes
11300    dynamic_linker='Win32 link.exe'
11301    ;;
11302
11303  *)
11304    # Assume MSVC wrapper
11305    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11306    dynamic_linker='Win32 ld.exe'
11307    ;;
11308  esac
11309  # FIXME: first we should search . and the directory the executable is in
11310  shlibpath_var=PATH
11311  ;;
11312
11313darwin* | rhapsody*)
11314  dynamic_linker="$host_os dyld"
11315  version_type=darwin
11316  need_lib_prefix=no
11317  need_version=no
11318  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11319  soname_spec='$libname$release$major$shared_ext'
11320  shlibpath_overrides_runpath=yes
11321  shlibpath_var=DYLD_LIBRARY_PATH
11322  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11323
11324  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11325  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11326  ;;
11327
11328dgux*)
11329  version_type=linux # correct to gnu/linux during the next big refactor
11330  need_lib_prefix=no
11331  need_version=no
11332  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333  soname_spec='$libname$release$shared_ext$major'
11334  shlibpath_var=LD_LIBRARY_PATH
11335  ;;
11336
11337freebsd* | dragonfly*)
11338  # DragonFly does not have aout.  When/if they implement a new
11339  # versioning mechanism, adjust this.
11340  if test -x /usr/bin/objformat; then
11341    objformat=`/usr/bin/objformat`
11342  else
11343    case $host_os in
11344    freebsd[23].*) objformat=aout ;;
11345    *) objformat=elf ;;
11346    esac
11347  fi
11348  version_type=freebsd-$objformat
11349  case $version_type in
11350    freebsd-elf*)
11351      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11352      soname_spec='$libname$release$shared_ext$major'
11353      need_version=no
11354      need_lib_prefix=no
11355      ;;
11356    freebsd-*)
11357      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11358      need_version=yes
11359      ;;
11360  esac
11361  shlibpath_var=LD_LIBRARY_PATH
11362  case $host_os in
11363  freebsd2.*)
11364    shlibpath_overrides_runpath=yes
11365    ;;
11366  freebsd3.[01]* | freebsdelf3.[01]*)
11367    shlibpath_overrides_runpath=yes
11368    hardcode_into_libs=yes
11369    ;;
11370  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11371  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11372    shlibpath_overrides_runpath=no
11373    hardcode_into_libs=yes
11374    ;;
11375  *) # from 4.6 on, and DragonFly
11376    shlibpath_overrides_runpath=yes
11377    hardcode_into_libs=yes
11378    ;;
11379  esac
11380  ;;
11381
11382haiku*)
11383  version_type=linux # correct to gnu/linux during the next big refactor
11384  need_lib_prefix=no
11385  need_version=no
11386  dynamic_linker="$host_os runtime_loader"
11387  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11388  soname_spec='$libname$release$shared_ext$major'
11389  shlibpath_var=LIBRARY_PATH
11390  shlibpath_overrides_runpath=no
11391  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11392  hardcode_into_libs=yes
11393  ;;
11394
11395hpux9* | hpux10* | hpux11*)
11396  # Give a soname corresponding to the major version so that dld.sl refuses to
11397  # link against other versions.
11398  version_type=sunos
11399  need_lib_prefix=no
11400  need_version=no
11401  case $host_cpu in
11402  ia64*)
11403    shrext_cmds='.so'
11404    hardcode_into_libs=yes
11405    dynamic_linker="$host_os dld.so"
11406    shlibpath_var=LD_LIBRARY_PATH
11407    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11408    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11409    soname_spec='$libname$release$shared_ext$major'
11410    if test 32 = "$HPUX_IA64_MODE"; then
11411      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11412      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11413    else
11414      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11415      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11416    fi
11417    ;;
11418  hppa*64*)
11419    shrext_cmds='.sl'
11420    hardcode_into_libs=yes
11421    dynamic_linker="$host_os dld.sl"
11422    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11423    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11424    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11425    soname_spec='$libname$release$shared_ext$major'
11426    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11427    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11428    ;;
11429  *)
11430    shrext_cmds='.sl'
11431    dynamic_linker="$host_os dld.sl"
11432    shlibpath_var=SHLIB_PATH
11433    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11434    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11435    soname_spec='$libname$release$shared_ext$major'
11436    ;;
11437  esac
11438  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11439  postinstall_cmds='chmod 555 $lib'
11440  # or fails outright, so override atomically:
11441  install_override_mode=555
11442  ;;
11443
11444interix[3-9]*)
11445  version_type=linux # correct to gnu/linux during the next big refactor
11446  need_lib_prefix=no
11447  need_version=no
11448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11449  soname_spec='$libname$release$shared_ext$major'
11450  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11451  shlibpath_var=LD_LIBRARY_PATH
11452  shlibpath_overrides_runpath=no
11453  hardcode_into_libs=yes
11454  ;;
11455
11456irix5* | irix6* | nonstopux*)
11457  case $host_os in
11458    nonstopux*) version_type=nonstopux ;;
11459    *)
11460	if test yes = "$lt_cv_prog_gnu_ld"; then
11461		version_type=linux # correct to gnu/linux during the next big refactor
11462	else
11463		version_type=irix
11464	fi ;;
11465  esac
11466  need_lib_prefix=no
11467  need_version=no
11468  soname_spec='$libname$release$shared_ext$major'
11469  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11470  case $host_os in
11471  irix5* | nonstopux*)
11472    libsuff= shlibsuff=
11473    ;;
11474  *)
11475    case $LD in # libtool.m4 will add one of these switches to LD
11476    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11477      libsuff= shlibsuff= libmagic=32-bit;;
11478    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11479      libsuff=32 shlibsuff=N32 libmagic=N32;;
11480    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11481      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11482    *) libsuff= shlibsuff= libmagic=never-match;;
11483    esac
11484    ;;
11485  esac
11486  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11487  shlibpath_overrides_runpath=no
11488  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11489  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11490  hardcode_into_libs=yes
11491  ;;
11492
11493# No shared lib support for Linux oldld, aout, or coff.
11494linux*oldld* | linux*aout* | linux*coff*)
11495  dynamic_linker=no
11496  ;;
11497
11498linux*android*)
11499  version_type=none # Android doesn't support versioned libraries.
11500  need_lib_prefix=no
11501  need_version=no
11502  library_names_spec='$libname$release$shared_ext'
11503  soname_spec='$libname$release$shared_ext'
11504  finish_cmds=
11505  shlibpath_var=LD_LIBRARY_PATH
11506  shlibpath_overrides_runpath=yes
11507
11508  # This implies no fast_install, which is unacceptable.
11509  # Some rework will be needed to allow for fast_install
11510  # before this can be enabled.
11511  hardcode_into_libs=yes
11512
11513  dynamic_linker='Android linker'
11514  # Don't embed -rpath directories since the linker doesn't support them.
11515  hardcode_libdir_flag_spec='-L$libdir'
11516  ;;
11517
11518# This must be glibc/ELF.
11519linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11520  version_type=linux # correct to gnu/linux during the next big refactor
11521  need_lib_prefix=no
11522  need_version=no
11523  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11524  soname_spec='$libname$release$shared_ext$major'
11525  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11526  shlibpath_var=LD_LIBRARY_PATH
11527  shlibpath_overrides_runpath=no
11528
11529  # Some binutils ld are patched to set DT_RUNPATH
11530  if test ${lt_cv_shlibpath_overrides_runpath+y}
11531then :
11532  printf %s "(cached) " >&6
11533else $as_nop
11534  lt_cv_shlibpath_overrides_runpath=no
11535    save_LDFLAGS=$LDFLAGS
11536    save_libdir=$libdir
11537    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11538	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540/* end confdefs.h.  */
11541
11542int
11543main (void)
11544{
11545
11546  ;
11547  return 0;
11548}
11549_ACEOF
11550if ac_fn_c_try_link "$LINENO"
11551then :
11552  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11553then :
11554  lt_cv_shlibpath_overrides_runpath=yes
11555fi
11556fi
11557rm -f core conftest.err conftest.$ac_objext conftest.beam \
11558    conftest$ac_exeext conftest.$ac_ext
11559    LDFLAGS=$save_LDFLAGS
11560    libdir=$save_libdir
11561
11562fi
11563
11564  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11565
11566  # This implies no fast_install, which is unacceptable.
11567  # Some rework will be needed to allow for fast_install
11568  # before this can be enabled.
11569  hardcode_into_libs=yes
11570
11571  # Ideally, we could use ldconfig to report *all* directores which are
11572  # searched for libraries, however this is still not possible.  Aside from not
11573  # being certain /sbin/ldconfig is available, command
11574  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11575  # even though it is searched at run-time.  Try to do the best guess by
11576  # appending ld.so.conf contents (and includes) to the search path.
11577  if test -f /etc/ld.so.conf; then
11578    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' ' '`
11579    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11580  fi
11581
11582  # We used to test for /lib/ld.so.1 and disable shared libraries on
11583  # powerpc, because MkLinux only supported shared libraries with the
11584  # GNU dynamic linker.  Since this was broken with cross compilers,
11585  # most powerpc-linux boxes support dynamic linking these days and
11586  # people can always --disable-shared, the test was removed, and we
11587  # assume the GNU/Linux dynamic linker is in use.
11588  dynamic_linker='GNU/Linux ld.so'
11589  ;;
11590
11591netbsd*)
11592  version_type=sunos
11593  need_lib_prefix=no
11594  need_version=no
11595  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11596    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11597    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11598    dynamic_linker='NetBSD (a.out) ld.so'
11599  else
11600    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11601    soname_spec='$libname$release$shared_ext$major'
11602    dynamic_linker='NetBSD ld.elf_so'
11603  fi
11604  shlibpath_var=LD_LIBRARY_PATH
11605  shlibpath_overrides_runpath=yes
11606  hardcode_into_libs=yes
11607  ;;
11608
11609newsos6)
11610  version_type=linux # correct to gnu/linux during the next big refactor
11611  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11612  shlibpath_var=LD_LIBRARY_PATH
11613  shlibpath_overrides_runpath=yes
11614  ;;
11615
11616*nto* | *qnx*)
11617  version_type=qnx
11618  need_lib_prefix=no
11619  need_version=no
11620  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11621  soname_spec='$libname$release$shared_ext$major'
11622  shlibpath_var=LD_LIBRARY_PATH
11623  shlibpath_overrides_runpath=no
11624  hardcode_into_libs=yes
11625  dynamic_linker='ldqnx.so'
11626  ;;
11627
11628openbsd* | bitrig*)
11629  version_type=sunos
11630  sys_lib_dlsearch_path_spec=/usr/lib
11631  need_lib_prefix=no
11632  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11633    need_version=no
11634  else
11635    need_version=yes
11636  fi
11637  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11638  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11639  shlibpath_var=LD_LIBRARY_PATH
11640  shlibpath_overrides_runpath=yes
11641  ;;
11642
11643os2*)
11644  libname_spec='$name'
11645  version_type=windows
11646  shrext_cmds=.dll
11647  need_version=no
11648  need_lib_prefix=no
11649  # OS/2 can only load a DLL with a base name of 8 characters or less.
11650  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11651    v=$($ECHO $release$versuffix | tr -d .-);
11652    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11653    $ECHO $n$v`$shared_ext'
11654  library_names_spec='${libname}_dll.$libext'
11655  dynamic_linker='OS/2 ld.exe'
11656  shlibpath_var=BEGINLIBPATH
11657  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11658  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11659  postinstall_cmds='base_file=`basename \$file`~
11660    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11661    dldir=$destdir/`dirname \$dlpath`~
11662    test -d \$dldir || mkdir -p \$dldir~
11663    $install_prog $dir/$dlname \$dldir/$dlname~
11664    chmod a+x \$dldir/$dlname~
11665    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11666      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11667    fi'
11668  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11669    dlpath=$dir/\$dldll~
11670    $RM \$dlpath'
11671  ;;
11672
11673osf3* | osf4* | osf5*)
11674  version_type=osf
11675  need_lib_prefix=no
11676  need_version=no
11677  soname_spec='$libname$release$shared_ext$major'
11678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679  shlibpath_var=LD_LIBRARY_PATH
11680  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11681  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11682  ;;
11683
11684rdos*)
11685  dynamic_linker=no
11686  ;;
11687
11688solaris*)
11689  version_type=linux # correct to gnu/linux during the next big refactor
11690  need_lib_prefix=no
11691  need_version=no
11692  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11693  soname_spec='$libname$release$shared_ext$major'
11694  shlibpath_var=LD_LIBRARY_PATH
11695  shlibpath_overrides_runpath=yes
11696  hardcode_into_libs=yes
11697  # ldd complains unless libraries are executable
11698  postinstall_cmds='chmod +x $lib'
11699  ;;
11700
11701sunos4*)
11702  version_type=sunos
11703  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11704  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11705  shlibpath_var=LD_LIBRARY_PATH
11706  shlibpath_overrides_runpath=yes
11707  if test yes = "$with_gnu_ld"; then
11708    need_lib_prefix=no
11709  fi
11710  need_version=yes
11711  ;;
11712
11713sysv4 | sysv4.3*)
11714  version_type=linux # correct to gnu/linux during the next big refactor
11715  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11716  soname_spec='$libname$release$shared_ext$major'
11717  shlibpath_var=LD_LIBRARY_PATH
11718  case $host_vendor in
11719    sni)
11720      shlibpath_overrides_runpath=no
11721      need_lib_prefix=no
11722      runpath_var=LD_RUN_PATH
11723      ;;
11724    siemens)
11725      need_lib_prefix=no
11726      ;;
11727    motorola)
11728      need_lib_prefix=no
11729      need_version=no
11730      shlibpath_overrides_runpath=no
11731      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11732      ;;
11733  esac
11734  ;;
11735
11736sysv4*MP*)
11737  if test -d /usr/nec; then
11738    version_type=linux # correct to gnu/linux during the next big refactor
11739    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11740    soname_spec='$libname$shared_ext.$major'
11741    shlibpath_var=LD_LIBRARY_PATH
11742  fi
11743  ;;
11744
11745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11746  version_type=sco
11747  need_lib_prefix=no
11748  need_version=no
11749  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11750  soname_spec='$libname$release$shared_ext$major'
11751  shlibpath_var=LD_LIBRARY_PATH
11752  shlibpath_overrides_runpath=yes
11753  hardcode_into_libs=yes
11754  if test yes = "$with_gnu_ld"; then
11755    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11756  else
11757    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11758    case $host_os in
11759      sco3.2v5*)
11760        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11761	;;
11762    esac
11763  fi
11764  sys_lib_dlsearch_path_spec='/usr/lib'
11765  ;;
11766
11767tpf*)
11768  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11769  version_type=linux # correct to gnu/linux during the next big refactor
11770  need_lib_prefix=no
11771  need_version=no
11772  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773  shlibpath_var=LD_LIBRARY_PATH
11774  shlibpath_overrides_runpath=no
11775  hardcode_into_libs=yes
11776  ;;
11777
11778uts4*)
11779  version_type=linux # correct to gnu/linux during the next big refactor
11780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781  soname_spec='$libname$release$shared_ext$major'
11782  shlibpath_var=LD_LIBRARY_PATH
11783  ;;
11784
11785*)
11786  dynamic_linker=no
11787  ;;
11788esac
11789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11790printf "%s\n" "$dynamic_linker" >&6; }
11791test no = "$dynamic_linker" && can_build_shared=no
11792
11793variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11794if test yes = "$GCC"; then
11795  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11796fi
11797
11798if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11799  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11800fi
11801
11802if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11803  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11804fi
11805
11806# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11807configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11808
11809# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11810func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11811
11812# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11813configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11912printf %s "checking how to hardcode library paths into programs... " >&6; }
11913hardcode_action=
11914if test -n "$hardcode_libdir_flag_spec" ||
11915   test -n "$runpath_var" ||
11916   test yes = "$hardcode_automatic"; then
11917
11918  # We can hardcode non-existent directories.
11919  if test no != "$hardcode_direct" &&
11920     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11921     # have to relink, otherwise we might link with an installed library
11922     # when we should be linking with a yet-to-be-installed one
11923     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11924     test no != "$hardcode_minus_L"; then
11925    # Linking always hardcodes the temporary library directory.
11926    hardcode_action=relink
11927  else
11928    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11929    hardcode_action=immediate
11930  fi
11931else
11932  # We cannot hardcode anything, or else we can only hardcode existing
11933  # directories.
11934  hardcode_action=unsupported
11935fi
11936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11937printf "%s\n" "$hardcode_action" >&6; }
11938
11939if test relink = "$hardcode_action" ||
11940   test yes = "$inherit_rpath"; then
11941  # Fast installation is not supported
11942  enable_fast_install=no
11943elif test yes = "$shlibpath_overrides_runpath" ||
11944     test no = "$enable_shared"; then
11945  # Fast installation is not necessary
11946  enable_fast_install=needless
11947fi
11948
11949
11950
11951
11952
11953
11954  if test yes != "$enable_dlopen"; then
11955  enable_dlopen=unknown
11956  enable_dlopen_self=unknown
11957  enable_dlopen_self_static=unknown
11958else
11959  lt_cv_dlopen=no
11960  lt_cv_dlopen_libs=
11961
11962  case $host_os in
11963  beos*)
11964    lt_cv_dlopen=load_add_on
11965    lt_cv_dlopen_libs=
11966    lt_cv_dlopen_self=yes
11967    ;;
11968
11969  mingw* | pw32* | cegcc*)
11970    lt_cv_dlopen=LoadLibrary
11971    lt_cv_dlopen_libs=
11972    ;;
11973
11974  cygwin*)
11975    lt_cv_dlopen=dlopen
11976    lt_cv_dlopen_libs=
11977    ;;
11978
11979  darwin*)
11980    # if libdl is installed we need to link against it
11981    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11982printf %s "checking for dlopen in -ldl... " >&6; }
11983if test ${ac_cv_lib_dl_dlopen+y}
11984then :
11985  printf %s "(cached) " >&6
11986else $as_nop
11987  ac_check_lib_save_LIBS=$LIBS
11988LIBS="-ldl  $LIBS"
11989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990/* end confdefs.h.  */
11991
11992/* Override any GCC internal prototype to avoid an error.
11993   Use char because int might match the return type of a GCC
11994   builtin and then its argument prototype would still apply.  */
11995char dlopen ();
11996int
11997main (void)
11998{
11999return dlopen ();
12000  ;
12001  return 0;
12002}
12003_ACEOF
12004if ac_fn_c_try_link "$LINENO"
12005then :
12006  ac_cv_lib_dl_dlopen=yes
12007else $as_nop
12008  ac_cv_lib_dl_dlopen=no
12009fi
12010rm -f core conftest.err conftest.$ac_objext conftest.beam \
12011    conftest$ac_exeext conftest.$ac_ext
12012LIBS=$ac_check_lib_save_LIBS
12013fi
12014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12015printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12016if test "x$ac_cv_lib_dl_dlopen" = xyes
12017then :
12018  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12019else $as_nop
12020
12021    lt_cv_dlopen=dyld
12022    lt_cv_dlopen_libs=
12023    lt_cv_dlopen_self=yes
12024
12025fi
12026
12027    ;;
12028
12029  tpf*)
12030    # Don't try to run any link tests for TPF.  We know it's impossible
12031    # because TPF is a cross-compiler, and we know how we open DSOs.
12032    lt_cv_dlopen=dlopen
12033    lt_cv_dlopen_libs=
12034    lt_cv_dlopen_self=no
12035    ;;
12036
12037  *)
12038    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12039if test "x$ac_cv_func_shl_load" = xyes
12040then :
12041  lt_cv_dlopen=shl_load
12042else $as_nop
12043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12044printf %s "checking for shl_load in -ldld... " >&6; }
12045if test ${ac_cv_lib_dld_shl_load+y}
12046then :
12047  printf %s "(cached) " >&6
12048else $as_nop
12049  ac_check_lib_save_LIBS=$LIBS
12050LIBS="-ldld  $LIBS"
12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h.  */
12053
12054/* Override any GCC internal prototype to avoid an error.
12055   Use char because int might match the return type of a GCC
12056   builtin and then its argument prototype would still apply.  */
12057char shl_load ();
12058int
12059main (void)
12060{
12061return shl_load ();
12062  ;
12063  return 0;
12064}
12065_ACEOF
12066if ac_fn_c_try_link "$LINENO"
12067then :
12068  ac_cv_lib_dld_shl_load=yes
12069else $as_nop
12070  ac_cv_lib_dld_shl_load=no
12071fi
12072rm -f core conftest.err conftest.$ac_objext conftest.beam \
12073    conftest$ac_exeext conftest.$ac_ext
12074LIBS=$ac_check_lib_save_LIBS
12075fi
12076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12077printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12078if test "x$ac_cv_lib_dld_shl_load" = xyes
12079then :
12080  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12081else $as_nop
12082  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12083if test "x$ac_cv_func_dlopen" = xyes
12084then :
12085  lt_cv_dlopen=dlopen
12086else $as_nop
12087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12088printf %s "checking for dlopen in -ldl... " >&6; }
12089if test ${ac_cv_lib_dl_dlopen+y}
12090then :
12091  printf %s "(cached) " >&6
12092else $as_nop
12093  ac_check_lib_save_LIBS=$LIBS
12094LIBS="-ldl  $LIBS"
12095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h.  */
12097
12098/* Override any GCC internal prototype to avoid an error.
12099   Use char because int might match the return type of a GCC
12100   builtin and then its argument prototype would still apply.  */
12101char dlopen ();
12102int
12103main (void)
12104{
12105return dlopen ();
12106  ;
12107  return 0;
12108}
12109_ACEOF
12110if ac_fn_c_try_link "$LINENO"
12111then :
12112  ac_cv_lib_dl_dlopen=yes
12113else $as_nop
12114  ac_cv_lib_dl_dlopen=no
12115fi
12116rm -f core conftest.err conftest.$ac_objext conftest.beam \
12117    conftest$ac_exeext conftest.$ac_ext
12118LIBS=$ac_check_lib_save_LIBS
12119fi
12120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12121printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12122if test "x$ac_cv_lib_dl_dlopen" = xyes
12123then :
12124  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12125else $as_nop
12126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12127printf %s "checking for dlopen in -lsvld... " >&6; }
12128if test ${ac_cv_lib_svld_dlopen+y}
12129then :
12130  printf %s "(cached) " >&6
12131else $as_nop
12132  ac_check_lib_save_LIBS=$LIBS
12133LIBS="-lsvld  $LIBS"
12134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137/* Override any GCC internal prototype to avoid an error.
12138   Use char because int might match the return type of a GCC
12139   builtin and then its argument prototype would still apply.  */
12140char dlopen ();
12141int
12142main (void)
12143{
12144return dlopen ();
12145  ;
12146  return 0;
12147}
12148_ACEOF
12149if ac_fn_c_try_link "$LINENO"
12150then :
12151  ac_cv_lib_svld_dlopen=yes
12152else $as_nop
12153  ac_cv_lib_svld_dlopen=no
12154fi
12155rm -f core conftest.err conftest.$ac_objext conftest.beam \
12156    conftest$ac_exeext conftest.$ac_ext
12157LIBS=$ac_check_lib_save_LIBS
12158fi
12159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12160printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12161if test "x$ac_cv_lib_svld_dlopen" = xyes
12162then :
12163  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12164else $as_nop
12165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12166printf %s "checking for dld_link in -ldld... " >&6; }
12167if test ${ac_cv_lib_dld_dld_link+y}
12168then :
12169  printf %s "(cached) " >&6
12170else $as_nop
12171  ac_check_lib_save_LIBS=$LIBS
12172LIBS="-ldld  $LIBS"
12173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174/* end confdefs.h.  */
12175
12176/* Override any GCC internal prototype to avoid an error.
12177   Use char because int might match the return type of a GCC
12178   builtin and then its argument prototype would still apply.  */
12179char dld_link ();
12180int
12181main (void)
12182{
12183return dld_link ();
12184  ;
12185  return 0;
12186}
12187_ACEOF
12188if ac_fn_c_try_link "$LINENO"
12189then :
12190  ac_cv_lib_dld_dld_link=yes
12191else $as_nop
12192  ac_cv_lib_dld_dld_link=no
12193fi
12194rm -f core conftest.err conftest.$ac_objext conftest.beam \
12195    conftest$ac_exeext conftest.$ac_ext
12196LIBS=$ac_check_lib_save_LIBS
12197fi
12198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12199printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12200if test "x$ac_cv_lib_dld_dld_link" = xyes
12201then :
12202  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12203fi
12204
12205
12206fi
12207
12208
12209fi
12210
12211
12212fi
12213
12214
12215fi
12216
12217
12218fi
12219
12220    ;;
12221  esac
12222
12223  if test no = "$lt_cv_dlopen"; then
12224    enable_dlopen=no
12225  else
12226    enable_dlopen=yes
12227  fi
12228
12229  case $lt_cv_dlopen in
12230  dlopen)
12231    save_CPPFLAGS=$CPPFLAGS
12232    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12233
12234    save_LDFLAGS=$LDFLAGS
12235    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12236
12237    save_LIBS=$LIBS
12238    LIBS="$lt_cv_dlopen_libs $LIBS"
12239
12240    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12241printf %s "checking whether a program can dlopen itself... " >&6; }
12242if test ${lt_cv_dlopen_self+y}
12243then :
12244  printf %s "(cached) " >&6
12245else $as_nop
12246  	  if test yes = "$cross_compiling"; then :
12247  lt_cv_dlopen_self=cross
12248else
12249  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12250  lt_status=$lt_dlunknown
12251  cat > conftest.$ac_ext <<_LT_EOF
12252#line $LINENO "configure"
12253#include "confdefs.h"
12254
12255#if HAVE_DLFCN_H
12256#include <dlfcn.h>
12257#endif
12258
12259#include <stdio.h>
12260
12261#ifdef RTLD_GLOBAL
12262#  define LT_DLGLOBAL		RTLD_GLOBAL
12263#else
12264#  ifdef DL_GLOBAL
12265#    define LT_DLGLOBAL		DL_GLOBAL
12266#  else
12267#    define LT_DLGLOBAL		0
12268#  endif
12269#endif
12270
12271/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12272   find out it does not work in some platform. */
12273#ifndef LT_DLLAZY_OR_NOW
12274#  ifdef RTLD_LAZY
12275#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12276#  else
12277#    ifdef DL_LAZY
12278#      define LT_DLLAZY_OR_NOW		DL_LAZY
12279#    else
12280#      ifdef RTLD_NOW
12281#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12282#      else
12283#        ifdef DL_NOW
12284#          define LT_DLLAZY_OR_NOW	DL_NOW
12285#        else
12286#          define LT_DLLAZY_OR_NOW	0
12287#        endif
12288#      endif
12289#    endif
12290#  endif
12291#endif
12292
12293/* When -fvisibility=hidden is used, assume the code has been annotated
12294   correspondingly for the symbols needed.  */
12295#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12296int fnord () __attribute__((visibility("default")));
12297#endif
12298
12299int fnord () { return 42; }
12300int main ()
12301{
12302  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12303  int status = $lt_dlunknown;
12304
12305  if (self)
12306    {
12307      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12308      else
12309        {
12310	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12311          else puts (dlerror ());
12312	}
12313      /* dlclose (self); */
12314    }
12315  else
12316    puts (dlerror ());
12317
12318  return status;
12319}
12320_LT_EOF
12321  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12322  (eval $ac_link) 2>&5
12323  ac_status=$?
12324  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12325  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12326    (./conftest; exit; ) >&5 2>/dev/null
12327    lt_status=$?
12328    case x$lt_status in
12329      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12330      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12331      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12332    esac
12333  else :
12334    # compilation failed
12335    lt_cv_dlopen_self=no
12336  fi
12337fi
12338rm -fr conftest*
12339
12340
12341fi
12342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12343printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12344
12345    if test yes = "$lt_cv_dlopen_self"; then
12346      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12347      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12348printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12349if test ${lt_cv_dlopen_self_static+y}
12350then :
12351  printf %s "(cached) " >&6
12352else $as_nop
12353  	  if test yes = "$cross_compiling"; then :
12354  lt_cv_dlopen_self_static=cross
12355else
12356  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12357  lt_status=$lt_dlunknown
12358  cat > conftest.$ac_ext <<_LT_EOF
12359#line $LINENO "configure"
12360#include "confdefs.h"
12361
12362#if HAVE_DLFCN_H
12363#include <dlfcn.h>
12364#endif
12365
12366#include <stdio.h>
12367
12368#ifdef RTLD_GLOBAL
12369#  define LT_DLGLOBAL		RTLD_GLOBAL
12370#else
12371#  ifdef DL_GLOBAL
12372#    define LT_DLGLOBAL		DL_GLOBAL
12373#  else
12374#    define LT_DLGLOBAL		0
12375#  endif
12376#endif
12377
12378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12379   find out it does not work in some platform. */
12380#ifndef LT_DLLAZY_OR_NOW
12381#  ifdef RTLD_LAZY
12382#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12383#  else
12384#    ifdef DL_LAZY
12385#      define LT_DLLAZY_OR_NOW		DL_LAZY
12386#    else
12387#      ifdef RTLD_NOW
12388#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12389#      else
12390#        ifdef DL_NOW
12391#          define LT_DLLAZY_OR_NOW	DL_NOW
12392#        else
12393#          define LT_DLLAZY_OR_NOW	0
12394#        endif
12395#      endif
12396#    endif
12397#  endif
12398#endif
12399
12400/* When -fvisibility=hidden is used, assume the code has been annotated
12401   correspondingly for the symbols needed.  */
12402#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12403int fnord () __attribute__((visibility("default")));
12404#endif
12405
12406int fnord () { return 42; }
12407int main ()
12408{
12409  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12410  int status = $lt_dlunknown;
12411
12412  if (self)
12413    {
12414      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12415      else
12416        {
12417	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12418          else puts (dlerror ());
12419	}
12420      /* dlclose (self); */
12421    }
12422  else
12423    puts (dlerror ());
12424
12425  return status;
12426}
12427_LT_EOF
12428  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12429  (eval $ac_link) 2>&5
12430  ac_status=$?
12431  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12433    (./conftest; exit; ) >&5 2>/dev/null
12434    lt_status=$?
12435    case x$lt_status in
12436      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12437      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12438      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12439    esac
12440  else :
12441    # compilation failed
12442    lt_cv_dlopen_self_static=no
12443  fi
12444fi
12445rm -fr conftest*
12446
12447
12448fi
12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12450printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12451    fi
12452
12453    CPPFLAGS=$save_CPPFLAGS
12454    LDFLAGS=$save_LDFLAGS
12455    LIBS=$save_LIBS
12456    ;;
12457  esac
12458
12459  case $lt_cv_dlopen_self in
12460  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12461  *) enable_dlopen_self=unknown ;;
12462  esac
12463
12464  case $lt_cv_dlopen_self_static in
12465  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12466  *) enable_dlopen_self_static=unknown ;;
12467  esac
12468fi
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486striplib=
12487old_striplib=
12488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12489printf %s "checking whether stripping libraries is possible... " >&6; }
12490if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12491  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12492  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494printf "%s\n" "yes" >&6; }
12495else
12496# FIXME - insert some real tests, host_os isn't really good enough
12497  case $host_os in
12498  darwin*)
12499    if test -n "$STRIP"; then
12500      striplib="$STRIP -x"
12501      old_striplib="$STRIP -S"
12502      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503printf "%s\n" "yes" >&6; }
12504    else
12505      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506printf "%s\n" "no" >&6; }
12507    fi
12508    ;;
12509  *)
12510    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511printf "%s\n" "no" >&6; }
12512    ;;
12513  esac
12514fi
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527  # Report what library types will actually be built
12528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12529printf %s "checking if libtool supports shared libraries... " >&6; }
12530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12531printf "%s\n" "$can_build_shared" >&6; }
12532
12533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12534printf %s "checking whether to build shared libraries... " >&6; }
12535  test no = "$can_build_shared" && enable_shared=no
12536
12537  # On AIX, shared libraries and static libraries use the same namespace, and
12538  # are all built from PIC.
12539  case $host_os in
12540  aix3*)
12541    test yes = "$enable_shared" && enable_static=no
12542    if test -n "$RANLIB"; then
12543      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12544      postinstall_cmds='$RANLIB $lib'
12545    fi
12546    ;;
12547
12548  aix[4-9]*)
12549    if test ia64 != "$host_cpu"; then
12550      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12551      yes,aix,yes) ;;			# shared object as lib.so file only
12552      yes,svr4,*) ;;			# shared object as lib.so archive member only
12553      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12554      esac
12555    fi
12556    ;;
12557  esac
12558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12559printf "%s\n" "$enable_shared" >&6; }
12560
12561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12562printf %s "checking whether to build static libraries... " >&6; }
12563  # Make sure either enable_shared or enable_static is yes.
12564  test yes = "$enable_shared" || enable_static=yes
12565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12566printf "%s\n" "$enable_static" >&6; }
12567
12568
12569
12570
12571fi
12572ac_ext=c
12573ac_cpp='$CPP $CPPFLAGS'
12574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12576ac_compiler_gnu=$ac_cv_c_compiler_gnu
12577
12578CC=$lt_save_CC
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594        ac_config_commands="$ac_config_commands libtool"
12595
12596
12597
12598
12599# Only expand once:
12600
12601
12602
12603
12604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12605printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12606    # Check whether --enable-maintainer-mode was given.
12607if test ${enable_maintainer_mode+y}
12608then :
12609  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12610else $as_nop
12611  USE_MAINTAINER_MODE=no
12612fi
12613
12614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12615printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12616   if test $USE_MAINTAINER_MODE = yes; then
12617  MAINTAINER_MODE_TRUE=
12618  MAINTAINER_MODE_FALSE='#'
12619else
12620  MAINTAINER_MODE_TRUE='#'
12621  MAINTAINER_MODE_FALSE=
12622fi
12623
12624  MAINT=$MAINTAINER_MODE_TRUE
12625
12626
12627ac_config_headers="$ac_config_headers src/iperf_config.h"
12628
12629
12630
12631
12632# Checks for tools: c compiler, ranlib (used for creating static libraries),
12633# symlinks and libtool
12634ac_ext=c
12635ac_cpp='$CPP $CPPFLAGS'
12636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639if test -n "$ac_tool_prefix"; then
12640  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12641set dummy ${ac_tool_prefix}gcc; ac_word=$2
12642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643printf %s "checking for $ac_word... " >&6; }
12644if test ${ac_cv_prog_CC+y}
12645then :
12646  printf %s "(cached) " >&6
12647else $as_nop
12648  if test -n "$CC"; then
12649  ac_cv_prog_CC="$CC" # Let the user override the test.
12650else
12651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652for as_dir in $PATH
12653do
12654  IFS=$as_save_IFS
12655  case $as_dir in #(((
12656    '') as_dir=./ ;;
12657    */) ;;
12658    *) as_dir=$as_dir/ ;;
12659  esac
12660    for ac_exec_ext in '' $ac_executable_extensions; do
12661  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12662    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12663    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12664    break 2
12665  fi
12666done
12667  done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672CC=$ac_cv_prog_CC
12673if test -n "$CC"; then
12674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12675printf "%s\n" "$CC" >&6; }
12676else
12677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678printf "%s\n" "no" >&6; }
12679fi
12680
12681
12682fi
12683if test -z "$ac_cv_prog_CC"; then
12684  ac_ct_CC=$CC
12685  # Extract the first word of "gcc", so it can be a program name with args.
12686set dummy gcc; ac_word=$2
12687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688printf %s "checking for $ac_word... " >&6; }
12689if test ${ac_cv_prog_ac_ct_CC+y}
12690then :
12691  printf %s "(cached) " >&6
12692else $as_nop
12693  if test -n "$ac_ct_CC"; then
12694  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699  IFS=$as_save_IFS
12700  case $as_dir in #(((
12701    '') as_dir=./ ;;
12702    */) ;;
12703    *) as_dir=$as_dir/ ;;
12704  esac
12705    for ac_exec_ext in '' $ac_executable_extensions; do
12706  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12707    ac_cv_prog_ac_ct_CC="gcc"
12708    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12709    break 2
12710  fi
12711done
12712  done
12713IFS=$as_save_IFS
12714
12715fi
12716fi
12717ac_ct_CC=$ac_cv_prog_ac_ct_CC
12718if test -n "$ac_ct_CC"; then
12719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12720printf "%s\n" "$ac_ct_CC" >&6; }
12721else
12722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723printf "%s\n" "no" >&6; }
12724fi
12725
12726  if test "x$ac_ct_CC" = x; then
12727    CC=""
12728  else
12729    case $cross_compiling:$ac_tool_warned in
12730yes:)
12731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12733ac_tool_warned=yes ;;
12734esac
12735    CC=$ac_ct_CC
12736  fi
12737else
12738  CC="$ac_cv_prog_CC"
12739fi
12740
12741if test -z "$CC"; then
12742          if test -n "$ac_tool_prefix"; then
12743    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12744set dummy ${ac_tool_prefix}cc; ac_word=$2
12745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746printf %s "checking for $ac_word... " >&6; }
12747if test ${ac_cv_prog_CC+y}
12748then :
12749  printf %s "(cached) " >&6
12750else $as_nop
12751  if test -n "$CC"; then
12752  ac_cv_prog_CC="$CC" # Let the user override the test.
12753else
12754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755for as_dir in $PATH
12756do
12757  IFS=$as_save_IFS
12758  case $as_dir in #(((
12759    '') as_dir=./ ;;
12760    */) ;;
12761    *) as_dir=$as_dir/ ;;
12762  esac
12763    for ac_exec_ext in '' $ac_executable_extensions; do
12764  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12765    ac_cv_prog_CC="${ac_tool_prefix}cc"
12766    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12767    break 2
12768  fi
12769done
12770  done
12771IFS=$as_save_IFS
12772
12773fi
12774fi
12775CC=$ac_cv_prog_CC
12776if test -n "$CC"; then
12777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12778printf "%s\n" "$CC" >&6; }
12779else
12780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781printf "%s\n" "no" >&6; }
12782fi
12783
12784
12785  fi
12786fi
12787if test -z "$CC"; then
12788  # Extract the first word of "cc", so it can be a program name with args.
12789set dummy cc; ac_word=$2
12790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791printf %s "checking for $ac_word... " >&6; }
12792if test ${ac_cv_prog_CC+y}
12793then :
12794  printf %s "(cached) " >&6
12795else $as_nop
12796  if test -n "$CC"; then
12797  ac_cv_prog_CC="$CC" # Let the user override the test.
12798else
12799  ac_prog_rejected=no
12800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801for as_dir in $PATH
12802do
12803  IFS=$as_save_IFS
12804  case $as_dir in #(((
12805    '') as_dir=./ ;;
12806    */) ;;
12807    *) as_dir=$as_dir/ ;;
12808  esac
12809    for ac_exec_ext in '' $ac_executable_extensions; do
12810  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12811    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12812       ac_prog_rejected=yes
12813       continue
12814     fi
12815    ac_cv_prog_CC="cc"
12816    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12817    break 2
12818  fi
12819done
12820  done
12821IFS=$as_save_IFS
12822
12823if test $ac_prog_rejected = yes; then
12824  # We found a bogon in the path, so make sure we never use it.
12825  set dummy $ac_cv_prog_CC
12826  shift
12827  if test $# != 0; then
12828    # We chose a different compiler from the bogus one.
12829    # However, it has the same basename, so the bogon will be chosen
12830    # first if we set CC to just the basename; use the full file name.
12831    shift
12832    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12833  fi
12834fi
12835fi
12836fi
12837CC=$ac_cv_prog_CC
12838if test -n "$CC"; then
12839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12840printf "%s\n" "$CC" >&6; }
12841else
12842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843printf "%s\n" "no" >&6; }
12844fi
12845
12846
12847fi
12848if test -z "$CC"; then
12849  if test -n "$ac_tool_prefix"; then
12850  for ac_prog in cl.exe
12851  do
12852    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855printf %s "checking for $ac_word... " >&6; }
12856if test ${ac_cv_prog_CC+y}
12857then :
12858  printf %s "(cached) " >&6
12859else $as_nop
12860  if test -n "$CC"; then
12861  ac_cv_prog_CC="$CC" # Let the user override the test.
12862else
12863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864for as_dir in $PATH
12865do
12866  IFS=$as_save_IFS
12867  case $as_dir in #(((
12868    '') as_dir=./ ;;
12869    */) ;;
12870    *) as_dir=$as_dir/ ;;
12871  esac
12872    for ac_exec_ext in '' $ac_executable_extensions; do
12873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12874    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12876    break 2
12877  fi
12878done
12879  done
12880IFS=$as_save_IFS
12881
12882fi
12883fi
12884CC=$ac_cv_prog_CC
12885if test -n "$CC"; then
12886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12887printf "%s\n" "$CC" >&6; }
12888else
12889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890printf "%s\n" "no" >&6; }
12891fi
12892
12893
12894    test -n "$CC" && break
12895  done
12896fi
12897if test -z "$CC"; then
12898  ac_ct_CC=$CC
12899  for ac_prog in cl.exe
12900do
12901  # Extract the first word of "$ac_prog", so it can be a program name with args.
12902set dummy $ac_prog; ac_word=$2
12903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904printf %s "checking for $ac_word... " >&6; }
12905if test ${ac_cv_prog_ac_ct_CC+y}
12906then :
12907  printf %s "(cached) " >&6
12908else $as_nop
12909  if test -n "$ac_ct_CC"; then
12910  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12911else
12912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913for as_dir in $PATH
12914do
12915  IFS=$as_save_IFS
12916  case $as_dir in #(((
12917    '') as_dir=./ ;;
12918    */) ;;
12919    *) as_dir=$as_dir/ ;;
12920  esac
12921    for ac_exec_ext in '' $ac_executable_extensions; do
12922  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12923    ac_cv_prog_ac_ct_CC="$ac_prog"
12924    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12925    break 2
12926  fi
12927done
12928  done
12929IFS=$as_save_IFS
12930
12931fi
12932fi
12933ac_ct_CC=$ac_cv_prog_ac_ct_CC
12934if test -n "$ac_ct_CC"; then
12935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12936printf "%s\n" "$ac_ct_CC" >&6; }
12937else
12938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939printf "%s\n" "no" >&6; }
12940fi
12941
12942
12943  test -n "$ac_ct_CC" && break
12944done
12945
12946  if test "x$ac_ct_CC" = x; then
12947    CC=""
12948  else
12949    case $cross_compiling:$ac_tool_warned in
12950yes:)
12951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12952printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12953ac_tool_warned=yes ;;
12954esac
12955    CC=$ac_ct_CC
12956  fi
12957fi
12958
12959fi
12960if test -z "$CC"; then
12961  if test -n "$ac_tool_prefix"; then
12962  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12963set dummy ${ac_tool_prefix}clang; ac_word=$2
12964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965printf %s "checking for $ac_word... " >&6; }
12966if test ${ac_cv_prog_CC+y}
12967then :
12968  printf %s "(cached) " >&6
12969else $as_nop
12970  if test -n "$CC"; then
12971  ac_cv_prog_CC="$CC" # Let the user override the test.
12972else
12973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974for as_dir in $PATH
12975do
12976  IFS=$as_save_IFS
12977  case $as_dir in #(((
12978    '') as_dir=./ ;;
12979    */) ;;
12980    *) as_dir=$as_dir/ ;;
12981  esac
12982    for ac_exec_ext in '' $ac_executable_extensions; do
12983  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12984    ac_cv_prog_CC="${ac_tool_prefix}clang"
12985    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12986    break 2
12987  fi
12988done
12989  done
12990IFS=$as_save_IFS
12991
12992fi
12993fi
12994CC=$ac_cv_prog_CC
12995if test -n "$CC"; then
12996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12997printf "%s\n" "$CC" >&6; }
12998else
12999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000printf "%s\n" "no" >&6; }
13001fi
13002
13003
13004fi
13005if test -z "$ac_cv_prog_CC"; then
13006  ac_ct_CC=$CC
13007  # Extract the first word of "clang", so it can be a program name with args.
13008set dummy clang; ac_word=$2
13009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010printf %s "checking for $ac_word... " >&6; }
13011if test ${ac_cv_prog_ac_ct_CC+y}
13012then :
13013  printf %s "(cached) " >&6
13014else $as_nop
13015  if test -n "$ac_ct_CC"; then
13016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021  IFS=$as_save_IFS
13022  case $as_dir in #(((
13023    '') as_dir=./ ;;
13024    */) ;;
13025    *) as_dir=$as_dir/ ;;
13026  esac
13027    for ac_exec_ext in '' $ac_executable_extensions; do
13028  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13029    ac_cv_prog_ac_ct_CC="clang"
13030    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13031    break 2
13032  fi
13033done
13034  done
13035IFS=$as_save_IFS
13036
13037fi
13038fi
13039ac_ct_CC=$ac_cv_prog_ac_ct_CC
13040if test -n "$ac_ct_CC"; then
13041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13042printf "%s\n" "$ac_ct_CC" >&6; }
13043else
13044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045printf "%s\n" "no" >&6; }
13046fi
13047
13048  if test "x$ac_ct_CC" = x; then
13049    CC=""
13050  else
13051    case $cross_compiling:$ac_tool_warned in
13052yes:)
13053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13054printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13055ac_tool_warned=yes ;;
13056esac
13057    CC=$ac_ct_CC
13058  fi
13059else
13060  CC="$ac_cv_prog_CC"
13061fi
13062
13063fi
13064
13065
13066test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13067printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13068as_fn_error $? "no acceptable C compiler found in \$PATH
13069See \`config.log' for more details" "$LINENO" 5; }
13070
13071# Provide some information about the compiler.
13072printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13073set X $ac_compile
13074ac_compiler=$2
13075for ac_option in --version -v -V -qversion -version; do
13076  { { ac_try="$ac_compiler $ac_option >&5"
13077case "(($ac_try" in
13078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079  *) ac_try_echo=$ac_try;;
13080esac
13081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13082printf "%s\n" "$ac_try_echo"; } >&5
13083  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13084  ac_status=$?
13085  if test -s conftest.err; then
13086    sed '10a\
13087... rest of stderr output deleted ...
13088         10q' conftest.err >conftest.er1
13089    cat conftest.er1 >&5
13090  fi
13091  rm -f conftest.er1 conftest.err
13092  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093  test $ac_status = 0; }
13094done
13095
13096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13097printf %s "checking whether the compiler supports GNU C... " >&6; }
13098if test ${ac_cv_c_compiler_gnu+y}
13099then :
13100  printf %s "(cached) " >&6
13101else $as_nop
13102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103/* end confdefs.h.  */
13104
13105int
13106main (void)
13107{
13108#ifndef __GNUC__
13109       choke me
13110#endif
13111
13112  ;
13113  return 0;
13114}
13115_ACEOF
13116if ac_fn_c_try_compile "$LINENO"
13117then :
13118  ac_compiler_gnu=yes
13119else $as_nop
13120  ac_compiler_gnu=no
13121fi
13122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13123ac_cv_c_compiler_gnu=$ac_compiler_gnu
13124
13125fi
13126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13127printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13128ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129
13130if test $ac_compiler_gnu = yes; then
13131  GCC=yes
13132else
13133  GCC=
13134fi
13135ac_test_CFLAGS=${CFLAGS+y}
13136ac_save_CFLAGS=$CFLAGS
13137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13138printf %s "checking whether $CC accepts -g... " >&6; }
13139if test ${ac_cv_prog_cc_g+y}
13140then :
13141  printf %s "(cached) " >&6
13142else $as_nop
13143  ac_save_c_werror_flag=$ac_c_werror_flag
13144   ac_c_werror_flag=yes
13145   ac_cv_prog_cc_g=no
13146   CFLAGS="-g"
13147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148/* end confdefs.h.  */
13149
13150int
13151main (void)
13152{
13153
13154  ;
13155  return 0;
13156}
13157_ACEOF
13158if ac_fn_c_try_compile "$LINENO"
13159then :
13160  ac_cv_prog_cc_g=yes
13161else $as_nop
13162  CFLAGS=""
13163      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164/* end confdefs.h.  */
13165
13166int
13167main (void)
13168{
13169
13170  ;
13171  return 0;
13172}
13173_ACEOF
13174if ac_fn_c_try_compile "$LINENO"
13175then :
13176
13177else $as_nop
13178  ac_c_werror_flag=$ac_save_c_werror_flag
13179	 CFLAGS="-g"
13180	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181/* end confdefs.h.  */
13182
13183int
13184main (void)
13185{
13186
13187  ;
13188  return 0;
13189}
13190_ACEOF
13191if ac_fn_c_try_compile "$LINENO"
13192then :
13193  ac_cv_prog_cc_g=yes
13194fi
13195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13196fi
13197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13198fi
13199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13200   ac_c_werror_flag=$ac_save_c_werror_flag
13201fi
13202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13203printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13204if test $ac_test_CFLAGS; then
13205  CFLAGS=$ac_save_CFLAGS
13206elif test $ac_cv_prog_cc_g = yes; then
13207  if test "$GCC" = yes; then
13208    CFLAGS="-g -O2"
13209  else
13210    CFLAGS="-g"
13211  fi
13212else
13213  if test "$GCC" = yes; then
13214    CFLAGS="-O2"
13215  else
13216    CFLAGS=
13217  fi
13218fi
13219ac_prog_cc_stdc=no
13220if test x$ac_prog_cc_stdc = xno
13221then :
13222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13223printf %s "checking for $CC option to enable C11 features... " >&6; }
13224if test ${ac_cv_prog_cc_c11+y}
13225then :
13226  printf %s "(cached) " >&6
13227else $as_nop
13228  ac_cv_prog_cc_c11=no
13229ac_save_CC=$CC
13230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h.  */
13232$ac_c_conftest_c11_program
13233_ACEOF
13234for ac_arg in '' -std=gnu11
13235do
13236  CC="$ac_save_CC $ac_arg"
13237  if ac_fn_c_try_compile "$LINENO"
13238then :
13239  ac_cv_prog_cc_c11=$ac_arg
13240fi
13241rm -f core conftest.err conftest.$ac_objext conftest.beam
13242  test "x$ac_cv_prog_cc_c11" != "xno" && break
13243done
13244rm -f conftest.$ac_ext
13245CC=$ac_save_CC
13246fi
13247
13248if test "x$ac_cv_prog_cc_c11" = xno
13249then :
13250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13251printf "%s\n" "unsupported" >&6; }
13252else $as_nop
13253  if test "x$ac_cv_prog_cc_c11" = x
13254then :
13255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13256printf "%s\n" "none needed" >&6; }
13257else $as_nop
13258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13259printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13260     CC="$CC $ac_cv_prog_cc_c11"
13261fi
13262  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13263  ac_prog_cc_stdc=c11
13264fi
13265fi
13266if test x$ac_prog_cc_stdc = xno
13267then :
13268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13269printf %s "checking for $CC option to enable C99 features... " >&6; }
13270if test ${ac_cv_prog_cc_c99+y}
13271then :
13272  printf %s "(cached) " >&6
13273else $as_nop
13274  ac_cv_prog_cc_c99=no
13275ac_save_CC=$CC
13276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h.  */
13278$ac_c_conftest_c99_program
13279_ACEOF
13280for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13281do
13282  CC="$ac_save_CC $ac_arg"
13283  if ac_fn_c_try_compile "$LINENO"
13284then :
13285  ac_cv_prog_cc_c99=$ac_arg
13286fi
13287rm -f core conftest.err conftest.$ac_objext conftest.beam
13288  test "x$ac_cv_prog_cc_c99" != "xno" && break
13289done
13290rm -f conftest.$ac_ext
13291CC=$ac_save_CC
13292fi
13293
13294if test "x$ac_cv_prog_cc_c99" = xno
13295then :
13296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13297printf "%s\n" "unsupported" >&6; }
13298else $as_nop
13299  if test "x$ac_cv_prog_cc_c99" = x
13300then :
13301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13302printf "%s\n" "none needed" >&6; }
13303else $as_nop
13304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13305printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13306     CC="$CC $ac_cv_prog_cc_c99"
13307fi
13308  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13309  ac_prog_cc_stdc=c99
13310fi
13311fi
13312if test x$ac_prog_cc_stdc = xno
13313then :
13314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13315printf %s "checking for $CC option to enable C89 features... " >&6; }
13316if test ${ac_cv_prog_cc_c89+y}
13317then :
13318  printf %s "(cached) " >&6
13319else $as_nop
13320  ac_cv_prog_cc_c89=no
13321ac_save_CC=$CC
13322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h.  */
13324$ac_c_conftest_c89_program
13325_ACEOF
13326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13327do
13328  CC="$ac_save_CC $ac_arg"
13329  if ac_fn_c_try_compile "$LINENO"
13330then :
13331  ac_cv_prog_cc_c89=$ac_arg
13332fi
13333rm -f core conftest.err conftest.$ac_objext conftest.beam
13334  test "x$ac_cv_prog_cc_c89" != "xno" && break
13335done
13336rm -f conftest.$ac_ext
13337CC=$ac_save_CC
13338fi
13339
13340if test "x$ac_cv_prog_cc_c89" = xno
13341then :
13342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13343printf "%s\n" "unsupported" >&6; }
13344else $as_nop
13345  if test "x$ac_cv_prog_cc_c89" = x
13346then :
13347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13348printf "%s\n" "none needed" >&6; }
13349else $as_nop
13350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13351printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13352     CC="$CC $ac_cv_prog_cc_c89"
13353fi
13354  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13355  ac_prog_cc_stdc=c89
13356fi
13357fi
13358
13359ac_ext=c
13360ac_cpp='$CPP $CPPFLAGS'
13361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363ac_compiler_gnu=$ac_cv_c_compiler_gnu
13364
13365
13366  ac_ext=c
13367ac_cpp='$CPP $CPPFLAGS'
13368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13370ac_compiler_gnu=$ac_cv_c_compiler_gnu
13371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13372printf %s "checking whether $CC understands -c and -o together... " >&6; }
13373if test ${am_cv_prog_cc_c_o+y}
13374then :
13375  printf %s "(cached) " >&6
13376else $as_nop
13377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h.  */
13379
13380int
13381main (void)
13382{
13383
13384  ;
13385  return 0;
13386}
13387_ACEOF
13388  # Make sure it works both with $CC and with simple cc.
13389  # Following AC_PROG_CC_C_O, we do the test twice because some
13390  # compilers refuse to overwrite an existing .o file with -o,
13391  # though they will create one.
13392  am_cv_prog_cc_c_o=yes
13393  for am_i in 1 2; do
13394    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13395   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); } \
13399         && test -f conftest2.$ac_objext; then
13400      : OK
13401    else
13402      am_cv_prog_cc_c_o=no
13403      break
13404    fi
13405  done
13406  rm -f core conftest*
13407  unset am_i
13408fi
13409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13410printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13411if test "$am_cv_prog_cc_c_o" != yes; then
13412   # Losing compiler, so override with the script.
13413   # FIXME: It is wrong to rewrite CC.
13414   # But if we don't then we get into trouble of one sort or another.
13415   # A longer-term fix would be to have automake use am__CC in this case,
13416   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13417   CC="$am_aux_dir/compile $CC"
13418fi
13419ac_ext=c
13420ac_cpp='$CPP $CPPFLAGS'
13421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13423ac_compiler_gnu=$ac_cv_c_compiler_gnu
13424
13425
13426depcc="$CC"   am_compiler_list=
13427
13428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13429printf %s "checking dependency style of $depcc... " >&6; }
13430if test ${am_cv_CC_dependencies_compiler_type+y}
13431then :
13432  printf %s "(cached) " >&6
13433else $as_nop
13434  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13435  # We make a subdir and do the tests there.  Otherwise we can end up
13436  # making bogus files that we don't know about and never remove.  For
13437  # instance it was reported that on HP-UX the gcc test will end up
13438  # making a dummy file named 'D' -- because '-MD' means "put the output
13439  # in D".
13440  rm -rf conftest.dir
13441  mkdir conftest.dir
13442  # Copy depcomp to subdir because otherwise we won't find it if we're
13443  # using a relative directory.
13444  cp "$am_depcomp" conftest.dir
13445  cd conftest.dir
13446  # We will build objects and dependencies in a subdirectory because
13447  # it helps to detect inapplicable dependency modes.  For instance
13448  # both Tru64's cc and ICC support -MD to output dependencies as a
13449  # side effect of compilation, but ICC will put the dependencies in
13450  # the current directory while Tru64 will put them in the object
13451  # directory.
13452  mkdir sub
13453
13454  am_cv_CC_dependencies_compiler_type=none
13455  if test "$am_compiler_list" = ""; then
13456     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13457  fi
13458  am__universal=false
13459  case " $depcc " in #(
13460     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13461     esac
13462
13463  for depmode in $am_compiler_list; do
13464    # Setup a source with many dependencies, because some compilers
13465    # like to wrap large dependency lists on column 80 (with \), and
13466    # we should not choose a depcomp mode which is confused by this.
13467    #
13468    # We need to recreate these files for each test, as the compiler may
13469    # overwrite some of them when testing with obscure command lines.
13470    # This happens at least with the AIX C compiler.
13471    : > sub/conftest.c
13472    for i in 1 2 3 4 5 6; do
13473      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13474      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13475      # Solaris 10 /bin/sh.
13476      echo '/* dummy */' > sub/conftst$i.h
13477    done
13478    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13479
13480    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13481    # mode.  It turns out that the SunPro C++ compiler does not properly
13482    # handle '-M -o', and we need to detect this.  Also, some Intel
13483    # versions had trouble with output in subdirs.
13484    am__obj=sub/conftest.${OBJEXT-o}
13485    am__minus_obj="-o $am__obj"
13486    case $depmode in
13487    gcc)
13488      # This depmode causes a compiler race in universal mode.
13489      test "$am__universal" = false || continue
13490      ;;
13491    nosideeffect)
13492      # After this tag, mechanisms are not by side-effect, so they'll
13493      # only be used when explicitly requested.
13494      if test "x$enable_dependency_tracking" = xyes; then
13495	continue
13496      else
13497	break
13498      fi
13499      ;;
13500    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13501      # This compiler won't grok '-c -o', but also, the minuso test has
13502      # not run yet.  These depmodes are late enough in the game, and
13503      # so weak that their functioning should not be impacted.
13504      am__obj=conftest.${OBJEXT-o}
13505      am__minus_obj=
13506      ;;
13507    none) break ;;
13508    esac
13509    if depmode=$depmode \
13510       source=sub/conftest.c object=$am__obj \
13511       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13512       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13513         >/dev/null 2>conftest.err &&
13514       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13515       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13516       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13517       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13518      # icc doesn't choke on unknown options, it will just issue warnings
13519      # or remarks (even with -Werror).  So we grep stderr for any message
13520      # that says an option was ignored or not supported.
13521      # When given -MP, icc 7.0 and 7.1 complain thusly:
13522      #   icc: Command line warning: ignoring option '-M'; no argument required
13523      # The diagnosis changed in icc 8.0:
13524      #   icc: Command line remark: option '-MP' not supported
13525      if (grep 'ignoring option' conftest.err ||
13526          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13527        am_cv_CC_dependencies_compiler_type=$depmode
13528        break
13529      fi
13530    fi
13531  done
13532
13533  cd ..
13534  rm -rf conftest.dir
13535else
13536  am_cv_CC_dependencies_compiler_type=none
13537fi
13538
13539fi
13540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13541printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13542CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13543
13544 if
13545  test "x$enable_dependency_tracking" != xno \
13546  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13547  am__fastdepCC_TRUE=
13548  am__fastdepCC_FALSE='#'
13549else
13550  am__fastdepCC_TRUE='#'
13551  am__fastdepCC_FALSE=
13552fi
13553
13554
13555if test -n "$ac_tool_prefix"; then
13556  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13557set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559printf %s "checking for $ac_word... " >&6; }
13560if test ${ac_cv_prog_RANLIB+y}
13561then :
13562  printf %s "(cached) " >&6
13563else $as_nop
13564  if test -n "$RANLIB"; then
13565  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13566else
13567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568for as_dir in $PATH
13569do
13570  IFS=$as_save_IFS
13571  case $as_dir in #(((
13572    '') as_dir=./ ;;
13573    */) ;;
13574    *) as_dir=$as_dir/ ;;
13575  esac
13576    for ac_exec_ext in '' $ac_executable_extensions; do
13577  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13578    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13579    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13580    break 2
13581  fi
13582done
13583  done
13584IFS=$as_save_IFS
13585
13586fi
13587fi
13588RANLIB=$ac_cv_prog_RANLIB
13589if test -n "$RANLIB"; then
13590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13591printf "%s\n" "$RANLIB" >&6; }
13592else
13593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594printf "%s\n" "no" >&6; }
13595fi
13596
13597
13598fi
13599if test -z "$ac_cv_prog_RANLIB"; then
13600  ac_ct_RANLIB=$RANLIB
13601  # Extract the first word of "ranlib", so it can be a program name with args.
13602set dummy ranlib; ac_word=$2
13603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604printf %s "checking for $ac_word... " >&6; }
13605if test ${ac_cv_prog_ac_ct_RANLIB+y}
13606then :
13607  printf %s "(cached) " >&6
13608else $as_nop
13609  if test -n "$ac_ct_RANLIB"; then
13610  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13611else
13612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613for as_dir in $PATH
13614do
13615  IFS=$as_save_IFS
13616  case $as_dir in #(((
13617    '') as_dir=./ ;;
13618    */) ;;
13619    *) as_dir=$as_dir/ ;;
13620  esac
13621    for ac_exec_ext in '' $ac_executable_extensions; do
13622  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13623    ac_cv_prog_ac_ct_RANLIB="ranlib"
13624    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13625    break 2
13626  fi
13627done
13628  done
13629IFS=$as_save_IFS
13630
13631fi
13632fi
13633ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13634if test -n "$ac_ct_RANLIB"; then
13635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13636printf "%s\n" "$ac_ct_RANLIB" >&6; }
13637else
13638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639printf "%s\n" "no" >&6; }
13640fi
13641
13642  if test "x$ac_ct_RANLIB" = x; then
13643    RANLIB=":"
13644  else
13645    case $cross_compiling:$ac_tool_warned in
13646yes:)
13647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13648printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13649ac_tool_warned=yes ;;
13650esac
13651    RANLIB=$ac_ct_RANLIB
13652  fi
13653else
13654  RANLIB="$ac_cv_prog_RANLIB"
13655fi
13656
13657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13658printf %s "checking whether ln -s works... " >&6; }
13659LN_S=$as_ln_s
13660if test "$LN_S" = "ln -s"; then
13661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13662printf "%s\n" "yes" >&6; }
13663else
13664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13665printf "%s\n" "no, using $LN_S" >&6; }
13666fi
13667
13668
13669
13670# Add -Wall if we are using GCC.
13671if test "x$GCC" = "xyes"; then
13672  CFLAGS="$CFLAGS -Wall"
13673fi
13674
13675# Check if enable profiling
13676# Check whether --enable-profiling was given.
13677if test ${enable_profiling+y}
13678then :
13679  enableval=$enable_profiling;
13680fi
13681
13682 if test x$enable_profiling = xyes; then
13683  ENABLE_PROFILING_TRUE=
13684  ENABLE_PROFILING_FALSE='#'
13685else
13686  ENABLE_PROFILING_TRUE='#'
13687  ENABLE_PROFILING_FALSE=
13688fi
13689
13690
13691# Check for the math library (needed by cjson on some platforms)
13692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13693printf %s "checking for library containing floor... " >&6; }
13694if test ${ac_cv_search_floor+y}
13695then :
13696  printf %s "(cached) " >&6
13697else $as_nop
13698  ac_func_search_save_LIBS=$LIBS
13699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700/* end confdefs.h.  */
13701
13702/* Override any GCC internal prototype to avoid an error.
13703   Use char because int might match the return type of a GCC
13704   builtin and then its argument prototype would still apply.  */
13705char floor ();
13706int
13707main (void)
13708{
13709return floor ();
13710  ;
13711  return 0;
13712}
13713_ACEOF
13714for ac_lib in '' m
13715do
13716  if test -z "$ac_lib"; then
13717    ac_res="none required"
13718  else
13719    ac_res=-l$ac_lib
13720    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13721  fi
13722  if ac_fn_c_try_link "$LINENO"
13723then :
13724  ac_cv_search_floor=$ac_res
13725fi
13726rm -f core conftest.err conftest.$ac_objext conftest.beam \
13727    conftest$ac_exeext
13728  if test ${ac_cv_search_floor+y}
13729then :
13730  break
13731fi
13732done
13733if test ${ac_cv_search_floor+y}
13734then :
13735
13736else $as_nop
13737  ac_cv_search_floor=no
13738fi
13739rm conftest.$ac_ext
13740LIBS=$ac_func_search_save_LIBS
13741fi
13742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13743printf "%s\n" "$ac_cv_search_floor" >&6; }
13744ac_res=$ac_cv_search_floor
13745if test "$ac_res" != no
13746then :
13747  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13748
13749else $as_nop
13750
13751echo "floor()"
13752exit 1
13753
13754fi
13755
13756
13757# On illumos we need -lsocket
13758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13759printf %s "checking for library containing socket... " >&6; }
13760if test ${ac_cv_search_socket+y}
13761then :
13762  printf %s "(cached) " >&6
13763else $as_nop
13764  ac_func_search_save_LIBS=$LIBS
13765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766/* end confdefs.h.  */
13767
13768/* Override any GCC internal prototype to avoid an error.
13769   Use char because int might match the return type of a GCC
13770   builtin and then its argument prototype would still apply.  */
13771char socket ();
13772int
13773main (void)
13774{
13775return socket ();
13776  ;
13777  return 0;
13778}
13779_ACEOF
13780for ac_lib in '' socket
13781do
13782  if test -z "$ac_lib"; then
13783    ac_res="none required"
13784  else
13785    ac_res=-l$ac_lib
13786    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13787  fi
13788  if ac_fn_c_try_link "$LINENO"
13789then :
13790  ac_cv_search_socket=$ac_res
13791fi
13792rm -f core conftest.err conftest.$ac_objext conftest.beam \
13793    conftest$ac_exeext
13794  if test ${ac_cv_search_socket+y}
13795then :
13796  break
13797fi
13798done
13799if test ${ac_cv_search_socket+y}
13800then :
13801
13802else $as_nop
13803  ac_cv_search_socket=no
13804fi
13805rm conftest.$ac_ext
13806LIBS=$ac_func_search_save_LIBS
13807fi
13808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13809printf "%s\n" "$ac_cv_search_socket" >&6; }
13810ac_res=$ac_cv_search_socket
13811if test "$ac_res" != no
13812then :
13813  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13814
13815else $as_nop
13816
13817echo "socket()"
13818exit 1
13819
13820fi
13821
13822
13823# On illumos inet_ntop in in -lnsl
13824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13825printf %s "checking for library containing inet_ntop... " >&6; }
13826if test ${ac_cv_search_inet_ntop+y}
13827then :
13828  printf %s "(cached) " >&6
13829else $as_nop
13830  ac_func_search_save_LIBS=$LIBS
13831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832/* end confdefs.h.  */
13833
13834/* Override any GCC internal prototype to avoid an error.
13835   Use char because int might match the return type of a GCC
13836   builtin and then its argument prototype would still apply.  */
13837char inet_ntop ();
13838int
13839main (void)
13840{
13841return inet_ntop ();
13842  ;
13843  return 0;
13844}
13845_ACEOF
13846for ac_lib in '' nsl
13847do
13848  if test -z "$ac_lib"; then
13849    ac_res="none required"
13850  else
13851    ac_res=-l$ac_lib
13852    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13853  fi
13854  if ac_fn_c_try_link "$LINENO"
13855then :
13856  ac_cv_search_inet_ntop=$ac_res
13857fi
13858rm -f core conftest.err conftest.$ac_objext conftest.beam \
13859    conftest$ac_exeext
13860  if test ${ac_cv_search_inet_ntop+y}
13861then :
13862  break
13863fi
13864done
13865if test ${ac_cv_search_inet_ntop+y}
13866then :
13867
13868else $as_nop
13869  ac_cv_search_inet_ntop=no
13870fi
13871rm conftest.$ac_ext
13872LIBS=$ac_func_search_save_LIBS
13873fi
13874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13875printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
13876ac_res=$ac_cv_search_inet_ntop
13877if test "$ac_res" != no
13878then :
13879  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13880
13881else $as_nop
13882
13883echo "inet_ntop()"
13884exit 1
13885
13886fi
13887
13888
13889# Checks for typedefs, structures, and compiler characteristics.
13890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13891printf %s "checking for an ANSI C-conforming const... " >&6; }
13892if test ${ac_cv_c_const+y}
13893then :
13894  printf %s "(cached) " >&6
13895else $as_nop
13896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897/* end confdefs.h.  */
13898
13899int
13900main (void)
13901{
13902
13903#ifndef __cplusplus
13904  /* Ultrix mips cc rejects this sort of thing.  */
13905  typedef int charset[2];
13906  const charset cs = { 0, 0 };
13907  /* SunOS 4.1.1 cc rejects this.  */
13908  char const *const *pcpcc;
13909  char **ppc;
13910  /* NEC SVR4.0.2 mips cc rejects this.  */
13911  struct point {int x, y;};
13912  static struct point const zero = {0,0};
13913  /* IBM XL C 1.02.0.0 rejects this.
13914     It does not let you subtract one const X* pointer from another in
13915     an arm of an if-expression whose if-part is not a constant
13916     expression */
13917  const char *g = "string";
13918  pcpcc = &g + (g ? g-g : 0);
13919  /* HPUX 7.0 cc rejects these. */
13920  ++pcpcc;
13921  ppc = (char**) pcpcc;
13922  pcpcc = (char const *const *) ppc;
13923  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13924    char tx;
13925    char *t = &tx;
13926    char const *s = 0 ? (char *) 0 : (char const *) 0;
13927
13928    *t++ = 0;
13929    if (s) return 0;
13930  }
13931  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13932    int x[] = {25, 17};
13933    const int *foo = &x[0];
13934    ++foo;
13935  }
13936  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13937    typedef const int *iptr;
13938    iptr p = 0;
13939    ++p;
13940  }
13941  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13942       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13943    struct s { int j; const int *ap[3]; } bx;
13944    struct s *b = &bx; b->j = 5;
13945  }
13946  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13947    const int foo = 10;
13948    if (!foo) return 0;
13949  }
13950  return !cs[0] && !zero.x;
13951#endif
13952
13953  ;
13954  return 0;
13955}
13956_ACEOF
13957if ac_fn_c_try_compile "$LINENO"
13958then :
13959  ac_cv_c_const=yes
13960else $as_nop
13961  ac_cv_c_const=no
13962fi
13963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13964fi
13965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13966printf "%s\n" "$ac_cv_c_const" >&6; }
13967if test $ac_cv_c_const = no; then
13968
13969printf "%s\n" "#define const /**/" >>confdefs.h
13970
13971fi
13972
13973
13974# Check for poll.h (it's in POSIX so everyone should have it?)
13975ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13976if test "x$ac_cv_header_poll_h" = xyes
13977then :
13978  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
13979
13980fi
13981
13982
13983# SCTP.  Allow user to disable SCTP support with --without-sctp.
13984# Otherwise we try to find whatever support is required.
13985try_sctp=true
13986
13987# Check whether --with-sctp was given.
13988if test ${with_sctp+y}
13989then :
13990  withval=$with_sctp;
13991        case "$withval" in
13992	y | ye | yes)
13993	  ;;
13994	n | no)
13995	try_sctp=false
13996	  ;;
13997	*)
13998	as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
13999	  ;;
14000	esac
14001
14002else $as_nop
14003
14004        try_sctp=true
14005
14006
14007fi
14008
14009
14010ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
14011if test "x$ac_cv_header_linux_tcp_h" = xyes
14012then :
14013  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
14014
14015fi
14016
14017
14018# Check for SCTP support
14019if $try_sctp; then
14020ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14021if test "x$ac_cv_header_sys_socket_h" = xyes
14022then :
14023  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
14024
14025fi
14026
14027       for ac_header in netinet/sctp.h
14028do :
14029  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
14030#include <sys/socket.h>
14031#endif
14032
14033"
14034if test "x$ac_cv_header_netinet_sctp_h" = xyes
14035then :
14036  printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h
14037
14038printf "%s\n" "#define HAVE_SCTP_H 1" >>confdefs.h
14039
14040		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
14041printf %s "checking for library containing sctp_bindx... " >&6; }
14042if test ${ac_cv_search_sctp_bindx+y}
14043then :
14044  printf %s "(cached) " >&6
14045else $as_nop
14046  ac_func_search_save_LIBS=$LIBS
14047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048/* end confdefs.h.  */
14049
14050/* Override any GCC internal prototype to avoid an error.
14051   Use char because int might match the return type of a GCC
14052   builtin and then its argument prototype would still apply.  */
14053char sctp_bindx ();
14054int
14055main (void)
14056{
14057return sctp_bindx ();
14058  ;
14059  return 0;
14060}
14061_ACEOF
14062for ac_lib in '' sctp
14063do
14064  if test -z "$ac_lib"; then
14065    ac_res="none required"
14066  else
14067    ac_res=-l$ac_lib
14068    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14069  fi
14070  if ac_fn_c_try_link "$LINENO"
14071then :
14072  ac_cv_search_sctp_bindx=$ac_res
14073fi
14074rm -f core conftest.err conftest.$ac_objext conftest.beam \
14075    conftest$ac_exeext
14076  if test ${ac_cv_search_sctp_bindx+y}
14077then :
14078  break
14079fi
14080done
14081if test ${ac_cv_search_sctp_bindx+y}
14082then :
14083
14084else $as_nop
14085  ac_cv_search_sctp_bindx=no
14086fi
14087rm conftest.$ac_ext
14088LIBS=$ac_func_search_save_LIBS
14089fi
14090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
14091printf "%s\n" "$ac_cv_search_sctp_bindx" >&6; }
14092ac_res=$ac_cv_search_sctp_bindx
14093if test "$ac_res" != no
14094then :
14095  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14096
14097fi
14098
14099
14100# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
14101# -------------------------------------------
14102# Tests whether TYPE exists after having included INCLUDES, setting cache
14103# variable VAR accordingly.
14104ac_fn_c_check_type ()
14105{
14106  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
14108printf %s "checking for $2... " >&6; }
14109if eval test \${$3+y}
14110then :
14111  printf %s "(cached) " >&6
14112else $as_nop
14113  eval "$3=no"
14114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115/* end confdefs.h.  */
14116$4
14117int
14118main (void)
14119{
14120if (sizeof ($2))
14121	 return 0;
14122  ;
14123  return 0;
14124}
14125_ACEOF
14126if ac_fn_c_try_compile "$LINENO"
14127then :
14128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129/* end confdefs.h.  */
14130$4
14131int
14132main (void)
14133{
14134if (sizeof (($2)))
14135	    return 0;
14136  ;
14137  return 0;
14138}
14139_ACEOF
14140if ac_fn_c_try_compile "$LINENO"
14141then :
14142
14143else $as_nop
14144  eval "$3=yes"
14145fi
14146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14147fi
14148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14149fi
14150eval ac_res=\$$3
14151	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14152printf "%s\n" "$ac_res" >&6; }
14153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14154
14155} # ac_fn_c_check_type
14156ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
14157"
14158if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes
14159then :
14160
14161printf "%s\n" "#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1" >>confdefs.h
14162
14163
14164fi
14165
14166fi
14167
14168done
14169fi
14170
14171ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
14172if test "x$ac_cv_header_endian_h" = xyes
14173then :
14174
14175printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
14176
14177else $as_nop
14178  ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
14179if test "x$ac_cv_header_sys_endian_h" = xyes
14180then :
14181
14182printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
14183
14184else $as_nop
14185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
14186printf "%s\n" "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
14187
14188fi
14189
14190
14191fi
14192
14193
14194if test "x$with_openssl" = "xno"; then
14195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
14196printf "%s\n" "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
14197else
14198    # Check for OPENSSL support
14199    havs_ssl=false
14200
14201    found=false
14202
14203# Check whether --with-openssl was given.
14204if test ${with_openssl+y}
14205then :
14206  withval=$with_openssl;
14207            case "$withval" in
14208            "" | y | ye | yes | n | no)
14209            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
14210              ;;
14211            *) ssldirs="$withval"
14212              ;;
14213            esac
14214
14215else $as_nop
14216
14217            # if pkg-config is installed and openssl has installed a .pc file,
14218            # then use that information and don't search ssldirs
14219            if test -n "$ac_tool_prefix"; then
14220  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14221set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223printf %s "checking for $ac_word... " >&6; }
14224if test ${ac_cv_prog_PKG_CONFIG+y}
14225then :
14226  printf %s "(cached) " >&6
14227else $as_nop
14228  if test -n "$PKG_CONFIG"; then
14229  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
14230else
14231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232for as_dir in $PATH
14233do
14234  IFS=$as_save_IFS
14235  case $as_dir in #(((
14236    '') as_dir=./ ;;
14237    */) ;;
14238    *) as_dir=$as_dir/ ;;
14239  esac
14240    for ac_exec_ext in '' $ac_executable_extensions; do
14241  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14242    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
14243    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14244    break 2
14245  fi
14246done
14247  done
14248IFS=$as_save_IFS
14249
14250fi
14251fi
14252PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
14253if test -n "$PKG_CONFIG"; then
14254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14255printf "%s\n" "$PKG_CONFIG" >&6; }
14256else
14257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258printf "%s\n" "no" >&6; }
14259fi
14260
14261
14262fi
14263if test -z "$ac_cv_prog_PKG_CONFIG"; then
14264  ac_ct_PKG_CONFIG=$PKG_CONFIG
14265  # Extract the first word of "pkg-config", so it can be a program name with args.
14266set dummy pkg-config; ac_word=$2
14267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14268printf %s "checking for $ac_word... " >&6; }
14269if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
14270then :
14271  printf %s "(cached) " >&6
14272else $as_nop
14273  if test -n "$ac_ct_PKG_CONFIG"; then
14274  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
14275else
14276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14277for as_dir in $PATH
14278do
14279  IFS=$as_save_IFS
14280  case $as_dir in #(((
14281    '') as_dir=./ ;;
14282    */) ;;
14283    *) as_dir=$as_dir/ ;;
14284  esac
14285    for ac_exec_ext in '' $ac_executable_extensions; do
14286  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14287    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
14288    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14289    break 2
14290  fi
14291done
14292  done
14293IFS=$as_save_IFS
14294
14295fi
14296fi
14297ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
14298if test -n "$ac_ct_PKG_CONFIG"; then
14299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
14300printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
14301else
14302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303printf "%s\n" "no" >&6; }
14304fi
14305
14306  if test "x$ac_ct_PKG_CONFIG" = x; then
14307    PKG_CONFIG=""
14308  else
14309    case $cross_compiling:$ac_tool_warned in
14310yes:)
14311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14312printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14313ac_tool_warned=yes ;;
14314esac
14315    PKG_CONFIG=$ac_ct_PKG_CONFIG
14316  fi
14317else
14318  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
14319fi
14320
14321            if test x"$PKG_CONFIG" != x""; then
14322                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
14323                if test $? = 0; then
14324                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
14325                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
14326                    found=true
14327                fi
14328            fi
14329
14330            # no such luck; use some default ssldirs
14331            if ! $found; then
14332                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14333            fi
14334
14335
14336fi
14337
14338
14339
14340    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
14341    # an 'openssl' subdirectory
14342
14343    if ! $found; then
14344        OPENSSL_INCLUDES=
14345        for ssldir in $ssldirs; do
14346            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
14347printf %s "checking for openssl/ssl.h in $ssldir... " >&6; }
14348            if test -f "$ssldir/include/openssl/ssl.h"; then
14349                OPENSSL_INCLUDES="-I$ssldir/include"
14350                OPENSSL_LDFLAGS="-L$ssldir/lib"
14351                OPENSSL_LIBS="-lssl -lcrypto"
14352                found=true
14353                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14354printf "%s\n" "yes" >&6; }
14355                break
14356            else
14357                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358printf "%s\n" "no" >&6; }
14359            fi
14360        done
14361
14362        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
14363        # it will just work!
14364    fi
14365
14366    # try the preprocessor and linker with our new flags,
14367    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14368
14369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
14370printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
14371    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
14372        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
14373
14374    save_LIBS="$LIBS"
14375    save_LDFLAGS="$LDFLAGS"
14376    save_CPPFLAGS="$CPPFLAGS"
14377    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14378    LIBS="$OPENSSL_LIBS $LIBS"
14379    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381/* end confdefs.h.  */
14382#include <openssl/ssl.h>
14383int
14384main (void)
14385{
14386SSL_new(NULL)
14387  ;
14388  return 0;
14389}
14390_ACEOF
14391if ac_fn_c_try_link "$LINENO"
14392then :
14393
14394            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14395printf "%s\n" "yes" >&6; }
14396
14397printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
14398
14399          have_ssl=true
14400
14401else $as_nop
14402
14403            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404printf "%s\n" "no" >&6; }
14405             if test "x$with_openssl" != "x"; then
14406	  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14407printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14408as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
14409See \`config.log' for more details" "$LINENO" 5; }
14410	  fi
14411
14412
14413fi
14414rm -f core conftest.err conftest.$ac_objext conftest.beam \
14415    conftest$ac_exeext conftest.$ac_ext
14416    CPPFLAGS="$save_CPPFLAGS"
14417    LDFLAGS="$save_LDFLAGS"
14418    LIBS="$save_LIBS"
14419
14420
14421
14422
14423
14424    if $have_ssl; then
14425        case $host in
14426           *-*-cygwin)
14427             CFLAGS="$CFLAGS -DNOCRYPT"
14428             ;;
14429        esac
14430        LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14431        LIBS="$OPENSSL_LIBS $LIBS"
14432        CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14433    fi
14434fi
14435
14436# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
14437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
14438printf %s "checking TCP_CONGESTION socket option... " >&6; }
14439if test ${iperf3_cv_header_tcp_congestion+y}
14440then :
14441  printf %s "(cached) " >&6
14442else $as_nop
14443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444/* end confdefs.h.  */
14445#include <netinet/tcp.h>
14446int
14447main (void)
14448{
14449int foo = TCP_CONGESTION;
14450  ;
14451  return 0;
14452}
14453_ACEOF
14454if ac_fn_c_try_compile "$LINENO"
14455then :
14456  iperf3_cv_header_tcp_congestion=yes
14457else $as_nop
14458  iperf3_cv_header_tcp_congestion=no
14459fi
14460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14461fi
14462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
14463printf "%s\n" "$iperf3_cv_header_tcp_congestion" >&6; }
14464if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
14465
14466printf "%s\n" "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
14467
14468fi
14469
14470# Check for IPv6 flowlabel support (believed to be Linux only)
14471# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
14472# don't use that file directly (we have our own stripped-down
14473# copy, see src/flowlabel.h for more details).
14474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
14475printf %s "checking IPv6 flowlabel support... " >&6; }
14476if test ${iperf3_cv_header_flowlabel+y}
14477then :
14478  printf %s "(cached) " >&6
14479else $as_nop
14480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481/* end confdefs.h.  */
14482#include <sys/types.h>
14483                     #include <linux/in6.h>
14484int
14485main (void)
14486{
14487int foo = IPV6_FLOWLABEL_MGR;
14488  ;
14489  return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_compile "$LINENO"
14493then :
14494  iperf3_cv_header_flowlabel=yes
14495else $as_nop
14496  iperf3_cv_header_flowlabel=no
14497fi
14498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14499fi
14500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
14501printf "%s\n" "$iperf3_cv_header_flowlabel" >&6; }
14502if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
14503
14504printf "%s\n" "#define HAVE_FLOWLABEL 1" >>confdefs.h
14505
14506fi
14507
14508# Check for CPU affinity support.  FreeBSD and Linux do this differently
14509# unfortunately so we have to check separately for each of them.
14510# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
14511# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
14512# generic concept is available.
14513
14514  for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
14515do :
14516  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
14517ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14518if eval test \"x\$"$as_ac_var"\" = x"yes"
14519then :
14520  cat >>confdefs.h <<_ACEOF
14521#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
14522_ACEOF
14523
14524printf "%s\n" "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
14525
14526fi
14527
14528done
14529
14530# Check for daemon().  Most systems have this but a few (IRIX) don't.
14531ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
14532if test "x$ac_cv_func_daemon" = xyes
14533then :
14534  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
14535
14536fi
14537
14538
14539# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
14540# this system call, but they're all different in terms of what headers
14541# it needs and what arguments it expects.
14542ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14543if test "x$ac_cv_func_sendfile" = xyes
14544then :
14545  printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
14546
14547fi
14548
14549
14550# Check for getline support, used as a part of authenticated
14551# connections.
14552ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14553if test "x$ac_cv_func_getline" = xyes
14554then :
14555  printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
14556
14557fi
14558
14559
14560# Check for packet pacing socket option (Linux only for now).
14561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
14562printf %s "checking SO_MAX_PACING_RATE socket option... " >&6; }
14563if test ${iperf3_cv_header_so_max_pacing_rate+y}
14564then :
14565  printf %s "(cached) " >&6
14566else $as_nop
14567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568/* end confdefs.h.  */
14569#include <sys/socket.h>
14570int
14571main (void)
14572{
14573int foo = SO_MAX_PACING_RATE;
14574  ;
14575  return 0;
14576}
14577_ACEOF
14578if ac_fn_c_try_compile "$LINENO"
14579then :
14580  iperf3_cv_header_so_max_pacing_rate=yes
14581else $as_nop
14582  iperf3_cv_header_so_max_pacing_rate=no
14583fi
14584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14585fi
14586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
14587printf "%s\n" "$iperf3_cv_header_so_max_pacing_rate" >&6; }
14588if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
14589
14590printf "%s\n" "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
14591
14592fi
14593
14594# Check for SO_BINDTODEVICE sockopt (believed to be Linux only)
14595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5
14596printf %s "checking SO_BINDTODEVICE socket option... " >&6; }
14597if test ${iperf3_cv_header_so_bindtodevice+y}
14598then :
14599  printf %s "(cached) " >&6
14600else $as_nop
14601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602/* end confdefs.h.  */
14603#include <sys/socket.h>
14604int
14605main (void)
14606{
14607int foo = SO_BINDTODEVICE;
14608  ;
14609  return 0;
14610}
14611_ACEOF
14612if ac_fn_c_try_compile "$LINENO"
14613then :
14614  iperf3_cv_header_so_bindtodevice=yes
14615else $as_nop
14616  iperf3_cv_header_so_bindtodevice=no
14617fi
14618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14619fi
14620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5
14621printf "%s\n" "$iperf3_cv_header_so_bindtodevice" >&6; }
14622if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then
14623
14624printf "%s\n" "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h
14625
14626fi
14627
14628# Check for IP_MTU_DISCOVER (mostly on Linux)
14629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_MTU_DISCOVER socket option" >&5
14630printf %s "checking IP_MTU_DISCOVER socket option... " >&6; }
14631if test ${iperf3_cv_header_ip_mtu_discover+y}
14632then :
14633  printf %s "(cached) " >&6
14634else $as_nop
14635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h.  */
14637#include <sys/types.h>
14638                     #include <sys/socket.h>
14639                     #include <netinet/in.h>
14640int
14641main (void)
14642{
14643int foo = IP_MTU_DISCOVER;
14644  ;
14645  return 0;
14646}
14647_ACEOF
14648if ac_fn_c_try_compile "$LINENO"
14649then :
14650  iperf3_cv_header_ip_mtu_discover=yes
14651else $as_nop
14652  iperf3_cv_header_ip_mtu_discover=no
14653fi
14654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14655fi
14656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_mtu_discover" >&5
14657printf "%s\n" "$iperf3_cv_header_ip_mtu_discover" >&6; }
14658if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes"; then
14659
14660printf "%s\n" "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
14661
14662fi
14663
14664# Check for IP_DONTFRAG (BSD?)
14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAG socket option" >&5
14666printf %s "checking IP_DONTFRAG socket option... " >&6; }
14667if test ${iperf3_cv_header_ip_dontfrag+y}
14668then :
14669  printf %s "(cached) " >&6
14670else $as_nop
14671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672/* end confdefs.h.  */
14673#include <sys/types.h>
14674                     #include <sys/socket.h>
14675                     #include <netinet/in.h>
14676int
14677main (void)
14678{
14679int foo = IP_DONTFRAG;
14680  ;
14681  return 0;
14682}
14683_ACEOF
14684if ac_fn_c_try_compile "$LINENO"
14685then :
14686  iperf3_cv_header_ip_dontfrag=yes
14687else $as_nop
14688  iperf3_cv_header_ip_dontfrag=no
14689fi
14690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14691fi
14692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfrag" >&5
14693printf "%s\n" "$iperf3_cv_header_ip_dontfrag" >&6; }
14694if test "x$iperf3_cv_header_ip_dontfrag" = "xyes"; then
14695
14696printf "%s\n" "#define HAVE_IP_DONTFRAG 1" >>confdefs.h
14697
14698fi
14699
14700# Check for IP_DONTFRAGMENT (Windows?)
14701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAGMENT socket option" >&5
14702printf %s "checking IP_DONTFRAGMENT socket option... " >&6; }
14703if test ${iperf3_cv_header_ip_dontfragment+y}
14704then :
14705  printf %s "(cached) " >&6
14706else $as_nop
14707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708/* end confdefs.h.  */
14709#include <sys/types.h>
14710                     #include <sys/socket.h>
14711                     #include <netinet/in.h>
14712int
14713main (void)
14714{
14715int foo = IP_DONTFRAGMENT;
14716  ;
14717  return 0;
14718}
14719_ACEOF
14720if ac_fn_c_try_compile "$LINENO"
14721then :
14722  iperf3_cv_header_ip_dontfragment=yes
14723else $as_nop
14724  iperf3_cv_header_ip_dontfragment=no
14725fi
14726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14727fi
14728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfragment" >&5
14729printf "%s\n" "$iperf3_cv_header_ip_dontfragment" >&6; }
14730if test "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then
14731
14732printf "%s\n" "#define HAVE_IP_DONTFRAGMENT 1" >>confdefs.h
14733
14734fi
14735
14736# Check for IP DF support
14737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking any kind of DF socket option" >&5
14738printf %s "checking any kind of DF socket option... " >&6; }
14739if test ${iperf3_cv_header_dontfragment+y}
14740then :
14741  printf %s "(cached) " >&6
14742else $as_nop
14743  if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes" -o "x$iperf3_cv_header_ip_dontfrag" = "xyes" -o "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then
14744  iperf3_cv_header_dontfragment=yes
14745else
14746  iperf3_cv_header_dontfragment=no
14747fi
14748fi
14749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_dontfragment" >&5
14750printf "%s\n" "$iperf3_cv_header_dontfragment" >&6; }
14751
14752if test "x$iperf3_cv_header_dontfragment" = "xyes"; then
14753
14754printf "%s\n" "#define HAVE_DONT_FRAGMENT 1" >>confdefs.h
14755
14756fi
14757
14758#
14759# Check for tcpi_snd_wnd in struct tcp_info
14760#
14761ac_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
14762#include <linux/tcp.h>
14763#else
14764#include <netinet/tcp.h>
14765#endif
14766
14767"
14768if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_wnd" = xyes
14769then :
14770  iperf3_cv_header_tcp_info_snd_wnd=yes
14771else $as_nop
14772  iperf3_cv_header_tcp_info_snd_wnd=no
14773fi
14774
14775
14776if test "x$iperf3_cv_header_tcp_info_snd_wnd" = "xyes"; then
14777
14778printf "%s\n" "#define HAVE_TCP_INFO_SND_WND 1" >>confdefs.h
14779
14780fi
14781
14782# Check if we need -lrt for clock_gettime
14783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14784printf %s "checking for library containing clock_gettime... " >&6; }
14785if test ${ac_cv_search_clock_gettime+y}
14786then :
14787  printf %s "(cached) " >&6
14788else $as_nop
14789  ac_func_search_save_LIBS=$LIBS
14790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791/* end confdefs.h.  */
14792
14793/* Override any GCC internal prototype to avoid an error.
14794   Use char because int might match the return type of a GCC
14795   builtin and then its argument prototype would still apply.  */
14796char clock_gettime ();
14797int
14798main (void)
14799{
14800return clock_gettime ();
14801  ;
14802  return 0;
14803}
14804_ACEOF
14805for ac_lib in '' rt posix4
14806do
14807  if test -z "$ac_lib"; then
14808    ac_res="none required"
14809  else
14810    ac_res=-l$ac_lib
14811    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14812  fi
14813  if ac_fn_c_try_link "$LINENO"
14814then :
14815  ac_cv_search_clock_gettime=$ac_res
14816fi
14817rm -f core conftest.err conftest.$ac_objext conftest.beam \
14818    conftest$ac_exeext
14819  if test ${ac_cv_search_clock_gettime+y}
14820then :
14821  break
14822fi
14823done
14824if test ${ac_cv_search_clock_gettime+y}
14825then :
14826
14827else $as_nop
14828  ac_cv_search_clock_gettime=no
14829fi
14830rm conftest.$ac_ext
14831LIBS=$ac_func_search_save_LIBS
14832fi
14833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14834printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14835ac_res=$ac_cv_search_clock_gettime
14836if test "$ac_res" != no
14837then :
14838  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14839
14840fi
14841
14842# Check for clock_gettime support
14843ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14844if test "x$ac_cv_func_clock_gettime" = xyes
14845then :
14846  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14847
14848fi
14849
14850
14851ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
14852
14853cat >confcache <<\_ACEOF
14854# This file is a shell script that caches the results of configure
14855# tests run on this system so they can be shared between configure
14856# scripts and configure runs, see configure's option --config-cache.
14857# It is not useful on other systems.  If it contains results you don't
14858# want to keep, you may remove or edit it.
14859#
14860# config.status only pays attention to the cache file if you give it
14861# the --recheck option to rerun configure.
14862#
14863# `ac_cv_env_foo' variables (set or unset) will be overridden when
14864# loading this file, other *unset* `ac_cv_foo' will be assigned the
14865# following values.
14866
14867_ACEOF
14868
14869# The following way of writing the cache mishandles newlines in values,
14870# but we know of no workaround that is simple, portable, and efficient.
14871# So, we kill variables containing newlines.
14872# Ultrix sh set writes to stderr and can't be redirected directly,
14873# and sets the high bit in the cache file unless we assign to the vars.
14874(
14875  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14876    eval ac_val=\$$ac_var
14877    case $ac_val in #(
14878    *${as_nl}*)
14879      case $ac_var in #(
14880      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14881printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14882      esac
14883      case $ac_var in #(
14884      _ | IFS | as_nl) ;; #(
14885      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14886      *) { eval $ac_var=; unset $ac_var;} ;;
14887      esac ;;
14888    esac
14889  done
14890
14891  (set) 2>&1 |
14892    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14893    *${as_nl}ac_space=\ *)
14894      # `set' does not quote correctly, so add quotes: double-quote
14895      # substitution turns \\\\ into \\, and sed turns \\ into \.
14896      sed -n \
14897	"s/'/'\\\\''/g;
14898	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14899      ;; #(
14900    *)
14901      # `set' quotes correctly as required by POSIX, so do not add quotes.
14902      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14903      ;;
14904    esac |
14905    sort
14906) |
14907  sed '
14908     /^ac_cv_env_/b end
14909     t clear
14910     :clear
14911     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14912     t end
14913     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14914     :end' >>confcache
14915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14916  if test -w "$cache_file"; then
14917    if test "x$cache_file" != "x/dev/null"; then
14918      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14919printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14920      if test ! -f "$cache_file" || test -h "$cache_file"; then
14921	cat confcache >"$cache_file"
14922      else
14923        case $cache_file in #(
14924        */* | ?:*)
14925	  mv -f confcache "$cache_file"$$ &&
14926	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14927        *)
14928	  mv -f confcache "$cache_file" ;;
14929	esac
14930      fi
14931    fi
14932  else
14933    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14934printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14935  fi
14936fi
14937rm -f confcache
14938
14939test "x$prefix" = xNONE && prefix=$ac_default_prefix
14940# Let make expand exec_prefix.
14941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14942
14943DEFS=-DHAVE_CONFIG_H
14944
14945ac_libobjs=
14946ac_ltlibobjs=
14947U=
14948for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14949  # 1. Remove the extension, and $U if already installed.
14950  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14951  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14952  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14953  #    will be set to the directory where LIBOBJS objects are built.
14954  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14955  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14956done
14957LIBOBJS=$ac_libobjs
14958
14959LTLIBOBJS=$ac_ltlibobjs
14960
14961
14962if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
14963  as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
14964Usually this means the macro was only invoked conditionally." "$LINENO" 5
14965fi
14966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14967printf %s "checking that generated files are newer than configure... " >&6; }
14968   if test -n "$am_sleep_pid"; then
14969     # Hide warnings about reused PIDs.
14970     wait $am_sleep_pid 2>/dev/null
14971   fi
14972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14973printf "%s\n" "done" >&6; }
14974 if test -n "$EXEEXT"; then
14975  am__EXEEXT_TRUE=
14976  am__EXEEXT_FALSE='#'
14977else
14978  am__EXEEXT_TRUE='#'
14979  am__EXEEXT_FALSE=
14980fi
14981
14982if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14983  as_fn_error $? "conditional \"AMDEP\" was never defined.
14984Usually this means the macro was only invoked conditionally." "$LINENO" 5
14985fi
14986if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14987  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14988Usually this means the macro was only invoked conditionally." "$LINENO" 5
14989fi
14990if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14991  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14992Usually this means the macro was only invoked conditionally." "$LINENO" 5
14993fi
14994if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14995  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14996Usually this means the macro was only invoked conditionally." "$LINENO" 5
14997fi
14998if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
14999  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
15000Usually this means the macro was only invoked conditionally." "$LINENO" 5
15001fi
15002
15003: "${CONFIG_STATUS=./config.status}"
15004ac_write_fail=0
15005ac_clean_files_save=$ac_clean_files
15006ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15008printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15009as_write_fail=0
15010cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15011#! $SHELL
15012# Generated by $as_me.
15013# Run this file to recreate the current configuration.
15014# Compiler output produced by configure, useful for debugging
15015# configure, is in config.log if it exists.
15016
15017debug=false
15018ac_cs_recheck=false
15019ac_cs_silent=false
15020
15021SHELL=\${CONFIG_SHELL-$SHELL}
15022export SHELL
15023_ASEOF
15024cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15025## -------------------- ##
15026## M4sh Initialization. ##
15027## -------------------- ##
15028
15029# Be more Bourne compatible
15030DUALCASE=1; export DUALCASE # for MKS sh
15031as_nop=:
15032if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15033then :
15034  emulate sh
15035  NULLCMD=:
15036  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15037  # is contrary to our usage.  Disable this feature.
15038  alias -g '${1+"$@"}'='"$@"'
15039  setopt NO_GLOB_SUBST
15040else $as_nop
15041  case `(set -o) 2>/dev/null` in #(
15042  *posix*) :
15043    set -o posix ;; #(
15044  *) :
15045     ;;
15046esac
15047fi
15048
15049
15050
15051# Reset variables that may have inherited troublesome values from
15052# the environment.
15053
15054# IFS needs to be set, to space, tab, and newline, in precisely that order.
15055# (If _AS_PATH_WALK were called with IFS unset, it would have the
15056# side effect of setting IFS to empty, thus disabling word splitting.)
15057# Quoting is to prevent editors from complaining about space-tab.
15058as_nl='
15059'
15060export as_nl
15061IFS=" ""	$as_nl"
15062
15063PS1='$ '
15064PS2='> '
15065PS4='+ '
15066
15067# Ensure predictable behavior from utilities with locale-dependent output.
15068LC_ALL=C
15069export LC_ALL
15070LANGUAGE=C
15071export LANGUAGE
15072
15073# We cannot yet rely on "unset" to work, but we need these variables
15074# to be unset--not just set to an empty or harmless value--now, to
15075# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15076# also avoids known problems related to "unset" and subshell syntax
15077# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15078for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15079do eval test \${$as_var+y} \
15080  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15081done
15082
15083# Ensure that fds 0, 1, and 2 are open.
15084if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15085if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15086if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15087
15088# The user is always right.
15089if ${PATH_SEPARATOR+false} :; then
15090  PATH_SEPARATOR=:
15091  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15092    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15093      PATH_SEPARATOR=';'
15094  }
15095fi
15096
15097
15098# Find who we are.  Look in the path if we contain no directory separator.
15099as_myself=
15100case $0 in #((
15101  *[\\/]* ) as_myself=$0 ;;
15102  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15103for as_dir in $PATH
15104do
15105  IFS=$as_save_IFS
15106  case $as_dir in #(((
15107    '') as_dir=./ ;;
15108    */) ;;
15109    *) as_dir=$as_dir/ ;;
15110  esac
15111    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15112  done
15113IFS=$as_save_IFS
15114
15115     ;;
15116esac
15117# We did not find ourselves, most probably we were run as `sh COMMAND'
15118# in which case we are not to be found in the path.
15119if test "x$as_myself" = x; then
15120  as_myself=$0
15121fi
15122if test ! -f "$as_myself"; then
15123  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15124  exit 1
15125fi
15126
15127
15128
15129# as_fn_error STATUS ERROR [LINENO LOG_FD]
15130# ----------------------------------------
15131# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15132# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15133# script with STATUS, using 1 if that was 0.
15134as_fn_error ()
15135{
15136  as_status=$1; test $as_status -eq 0 && as_status=1
15137  if test "$4"; then
15138    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15139    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15140  fi
15141  printf "%s\n" "$as_me: error: $2" >&2
15142  as_fn_exit $as_status
15143} # as_fn_error
15144
15145
15146
15147# as_fn_set_status STATUS
15148# -----------------------
15149# Set $? to STATUS, without forking.
15150as_fn_set_status ()
15151{
15152  return $1
15153} # as_fn_set_status
15154
15155# as_fn_exit STATUS
15156# -----------------
15157# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15158as_fn_exit ()
15159{
15160  set +e
15161  as_fn_set_status $1
15162  exit $1
15163} # as_fn_exit
15164
15165# as_fn_unset VAR
15166# ---------------
15167# Portably unset VAR.
15168as_fn_unset ()
15169{
15170  { eval $1=; unset $1;}
15171}
15172as_unset=as_fn_unset
15173
15174# as_fn_append VAR VALUE
15175# ----------------------
15176# Append the text in VALUE to the end of the definition contained in VAR. Take
15177# advantage of any shell optimizations that allow amortized linear growth over
15178# repeated appends, instead of the typical quadratic growth present in naive
15179# implementations.
15180if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15181then :
15182  eval 'as_fn_append ()
15183  {
15184    eval $1+=\$2
15185  }'
15186else $as_nop
15187  as_fn_append ()
15188  {
15189    eval $1=\$$1\$2
15190  }
15191fi # as_fn_append
15192
15193# as_fn_arith ARG...
15194# ------------------
15195# Perform arithmetic evaluation on the ARGs, and store the result in the
15196# global $as_val. Take advantage of shells that can avoid forks. The arguments
15197# must be portable across $(()) and expr.
15198if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15199then :
15200  eval 'as_fn_arith ()
15201  {
15202    as_val=$(( $* ))
15203  }'
15204else $as_nop
15205  as_fn_arith ()
15206  {
15207    as_val=`expr "$@" || test $? -eq 1`
15208  }
15209fi # as_fn_arith
15210
15211
15212if expr a : '\(a\)' >/dev/null 2>&1 &&
15213   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15214  as_expr=expr
15215else
15216  as_expr=false
15217fi
15218
15219if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15220  as_basename=basename
15221else
15222  as_basename=false
15223fi
15224
15225if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15226  as_dirname=dirname
15227else
15228  as_dirname=false
15229fi
15230
15231as_me=`$as_basename -- "$0" ||
15232$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15233	 X"$0" : 'X\(//\)$' \| \
15234	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15235printf "%s\n" X/"$0" |
15236    sed '/^.*\/\([^/][^/]*\)\/*$/{
15237	    s//\1/
15238	    q
15239	  }
15240	  /^X\/\(\/\/\)$/{
15241	    s//\1/
15242	    q
15243	  }
15244	  /^X\/\(\/\).*/{
15245	    s//\1/
15246	    q
15247	  }
15248	  s/.*/./; q'`
15249
15250# Avoid depending upon Character Ranges.
15251as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15252as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15253as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15254as_cr_digits='0123456789'
15255as_cr_alnum=$as_cr_Letters$as_cr_digits
15256
15257
15258# Determine whether it's possible to make 'echo' print without a newline.
15259# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15260# for compatibility with existing Makefiles.
15261ECHO_C= ECHO_N= ECHO_T=
15262case `echo -n x` in #(((((
15263-n*)
15264  case `echo 'xy\c'` in
15265  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15266  xy)  ECHO_C='\c';;
15267  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15268       ECHO_T='	';;
15269  esac;;
15270*)
15271  ECHO_N='-n';;
15272esac
15273
15274# For backward compatibility with old third-party macros, we provide
15275# the shell variables $as_echo and $as_echo_n.  New code should use
15276# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15277as_echo='printf %s\n'
15278as_echo_n='printf %s'
15279
15280rm -f conf$$ conf$$.exe conf$$.file
15281if test -d conf$$.dir; then
15282  rm -f conf$$.dir/conf$$.file
15283else
15284  rm -f conf$$.dir
15285  mkdir conf$$.dir 2>/dev/null
15286fi
15287if (echo >conf$$.file) 2>/dev/null; then
15288  if ln -s conf$$.file conf$$ 2>/dev/null; then
15289    as_ln_s='ln -s'
15290    # ... but there are two gotchas:
15291    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15292    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15293    # In both cases, we have to default to `cp -pR'.
15294    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15295      as_ln_s='cp -pR'
15296  elif ln conf$$.file conf$$ 2>/dev/null; then
15297    as_ln_s=ln
15298  else
15299    as_ln_s='cp -pR'
15300  fi
15301else
15302  as_ln_s='cp -pR'
15303fi
15304rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15305rmdir conf$$.dir 2>/dev/null
15306
15307
15308# as_fn_mkdir_p
15309# -------------
15310# Create "$as_dir" as a directory, including parents if necessary.
15311as_fn_mkdir_p ()
15312{
15313
15314  case $as_dir in #(
15315  -*) as_dir=./$as_dir;;
15316  esac
15317  test -d "$as_dir" || eval $as_mkdir_p || {
15318    as_dirs=
15319    while :; do
15320      case $as_dir in #(
15321      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15322      *) as_qdir=$as_dir;;
15323      esac
15324      as_dirs="'$as_qdir' $as_dirs"
15325      as_dir=`$as_dirname -- "$as_dir" ||
15326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15327	 X"$as_dir" : 'X\(//\)[^/]' \| \
15328	 X"$as_dir" : 'X\(//\)$' \| \
15329	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15330printf "%s\n" X"$as_dir" |
15331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15332	    s//\1/
15333	    q
15334	  }
15335	  /^X\(\/\/\)[^/].*/{
15336	    s//\1/
15337	    q
15338	  }
15339	  /^X\(\/\/\)$/{
15340	    s//\1/
15341	    q
15342	  }
15343	  /^X\(\/\).*/{
15344	    s//\1/
15345	    q
15346	  }
15347	  s/.*/./; q'`
15348      test -d "$as_dir" && break
15349    done
15350    test -z "$as_dirs" || eval "mkdir $as_dirs"
15351  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15352
15353
15354} # as_fn_mkdir_p
15355if mkdir -p . 2>/dev/null; then
15356  as_mkdir_p='mkdir -p "$as_dir"'
15357else
15358  test -d ./-p && rmdir ./-p
15359  as_mkdir_p=false
15360fi
15361
15362
15363# as_fn_executable_p FILE
15364# -----------------------
15365# Test if FILE is an executable regular file.
15366as_fn_executable_p ()
15367{
15368  test -f "$1" && test -x "$1"
15369} # as_fn_executable_p
15370as_test_x='test -x'
15371as_executable_p=as_fn_executable_p
15372
15373# Sed expression to map a string onto a valid CPP name.
15374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15375
15376# Sed expression to map a string onto a valid variable name.
15377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15378
15379
15380exec 6>&1
15381## ----------------------------------- ##
15382## Main body of $CONFIG_STATUS script. ##
15383## ----------------------------------- ##
15384_ASEOF
15385test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15386
15387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15388# Save the log message, to keep $0 and so on meaningful, and to
15389# report actual input values of CONFIG_FILES etc. instead of their
15390# values after options handling.
15391ac_log="
15392This file was extended by iperf $as_me 3.10.1+, which was
15393generated by GNU Autoconf 2.71.  Invocation command line was
15394
15395  CONFIG_FILES    = $CONFIG_FILES
15396  CONFIG_HEADERS  = $CONFIG_HEADERS
15397  CONFIG_LINKS    = $CONFIG_LINKS
15398  CONFIG_COMMANDS = $CONFIG_COMMANDS
15399  $ $0 $@
15400
15401on `(hostname || uname -n) 2>/dev/null | sed 1q`
15402"
15403
15404_ACEOF
15405
15406case $ac_config_files in *"
15407"*) set x $ac_config_files; shift; ac_config_files=$*;;
15408esac
15409
15410case $ac_config_headers in *"
15411"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15412esac
15413
15414
15415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416# Files that config.status was made for.
15417config_files="$ac_config_files"
15418config_headers="$ac_config_headers"
15419config_commands="$ac_config_commands"
15420
15421_ACEOF
15422
15423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424ac_cs_usage="\
15425\`$as_me' instantiates files and other configuration actions
15426from templates according to the current configuration.  Unless the files
15427and actions are specified as TAGs, all are instantiated by default.
15428
15429Usage: $0 [OPTION]... [TAG]...
15430
15431  -h, --help       print this help, then exit
15432  -V, --version    print version number and configuration settings, then exit
15433      --config     print configuration, then exit
15434  -q, --quiet, --silent
15435                   do not print progress messages
15436  -d, --debug      don't remove temporary files
15437      --recheck    update $as_me by reconfiguring in the same conditions
15438      --file=FILE[:TEMPLATE]
15439                   instantiate the configuration file FILE
15440      --header=FILE[:TEMPLATE]
15441                   instantiate the configuration header FILE
15442
15443Configuration files:
15444$config_files
15445
15446Configuration headers:
15447$config_headers
15448
15449Configuration commands:
15450$config_commands
15451
15452Report bugs to <https://github.com/esnet/iperf>.
15453iperf home page: <https://software.es.net/iperf/>."
15454
15455_ACEOF
15456ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15457ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15459ac_cs_config='$ac_cs_config_escaped'
15460ac_cs_version="\\
15461iperf config.status 3.10.1+
15462configured by $0, generated by GNU Autoconf 2.71,
15463  with options \\"\$ac_cs_config\\"
15464
15465Copyright (C) 2021 Free Software Foundation, Inc.
15466This config.status script is free software; the Free Software Foundation
15467gives unlimited permission to copy, distribute and modify it."
15468
15469ac_pwd='$ac_pwd'
15470srcdir='$srcdir'
15471INSTALL='$INSTALL'
15472MKDIR_P='$MKDIR_P'
15473AWK='$AWK'
15474test -n "\$AWK" || AWK=awk
15475_ACEOF
15476
15477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478# The default lists apply if the user does not specify any file.
15479ac_need_defaults=:
15480while test $# != 0
15481do
15482  case $1 in
15483  --*=?*)
15484    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15485    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15486    ac_shift=:
15487    ;;
15488  --*=)
15489    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15490    ac_optarg=
15491    ac_shift=:
15492    ;;
15493  *)
15494    ac_option=$1
15495    ac_optarg=$2
15496    ac_shift=shift
15497    ;;
15498  esac
15499
15500  case $ac_option in
15501  # Handling of the options.
15502  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15503    ac_cs_recheck=: ;;
15504  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15505    printf "%s\n" "$ac_cs_version"; exit ;;
15506  --config | --confi | --conf | --con | --co | --c )
15507    printf "%s\n" "$ac_cs_config"; exit ;;
15508  --debug | --debu | --deb | --de | --d | -d )
15509    debug=: ;;
15510  --file | --fil | --fi | --f )
15511    $ac_shift
15512    case $ac_optarg in
15513    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15514    '') as_fn_error $? "missing file argument" ;;
15515    esac
15516    as_fn_append CONFIG_FILES " '$ac_optarg'"
15517    ac_need_defaults=false;;
15518  --header | --heade | --head | --hea )
15519    $ac_shift
15520    case $ac_optarg in
15521    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15522    esac
15523    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15524    ac_need_defaults=false;;
15525  --he | --h)
15526    # Conflict between --help and --header
15527    as_fn_error $? "ambiguous option: \`$1'
15528Try \`$0 --help' for more information.";;
15529  --help | --hel | -h )
15530    printf "%s\n" "$ac_cs_usage"; exit ;;
15531  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15532  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15533    ac_cs_silent=: ;;
15534
15535  # This is an error.
15536  -*) as_fn_error $? "unrecognized option: \`$1'
15537Try \`$0 --help' for more information." ;;
15538
15539  *) as_fn_append ac_config_targets " $1"
15540     ac_need_defaults=false ;;
15541
15542  esac
15543  shift
15544done
15545
15546ac_configure_extra_args=
15547
15548if $ac_cs_silent; then
15549  exec 6>/dev/null
15550  ac_configure_extra_args="$ac_configure_extra_args --silent"
15551fi
15552
15553_ACEOF
15554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555if \$ac_cs_recheck; then
15556  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15557  shift
15558  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15559  CONFIG_SHELL='$SHELL'
15560  export CONFIG_SHELL
15561  exec "\$@"
15562fi
15563
15564_ACEOF
15565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566exec 5>>config.log
15567{
15568  echo
15569  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15570## Running $as_me. ##
15571_ASBOX
15572  printf "%s\n" "$ac_log"
15573} >&5
15574
15575_ACEOF
15576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577#
15578# INIT-COMMANDS
15579#
15580AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15581
15582
15583# The HP-UX ksh and POSIX shell print the target directory to stdout
15584# if CDPATH is set.
15585(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15586
15587sed_quote_subst='$sed_quote_subst'
15588double_quote_subst='$double_quote_subst'
15589delay_variable_subst='$delay_variable_subst'
15590macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15591macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15592enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15593enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15594pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15595enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15596shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15597SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15598ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15599PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15600host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15601host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15602host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15603build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15604build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15605build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15606SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15607Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15608GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15609EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15610FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15611LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15612NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15613LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15614max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15615ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15616exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15617lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15618lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15619lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15620lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15621lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15622reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15623reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15624OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15625deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15626file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15627file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15628want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15629DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15630sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15631AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15632AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15633archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15634STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15635RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15636old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15637old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15638old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15639lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15640CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15641CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15642compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15643GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15644lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15645lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15646lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15647lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15648lt_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"`'
15649lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15650nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15651lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15652lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15653objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15654MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15655lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15656lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15657lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15658lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15659lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15660need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15661MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15662DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15663NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15664LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15665OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15666OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15667libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15668shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15669extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15670archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15671enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15672export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15673whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15674compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15675old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15676old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15677archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15678archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15679module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15680module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15681with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15682allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15683no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15684hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15685hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15686hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15687hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15688hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15689hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15690hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15691inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15692link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15693always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15694export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15695exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15696include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15697prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15698postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15699file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15700variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15701need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15702need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15703version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15704runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15705shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15706shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15707libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15708library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15709soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15710install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15711postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15712postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15713finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15714finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15715hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15716sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15717configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15718configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15719hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15720enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15721enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15722enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15723old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15724striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15725
15726LTCC='$LTCC'
15727LTCFLAGS='$LTCFLAGS'
15728compiler='$compiler_DEFAULT'
15729
15730# A function that is used when there is no print builtin or printf.
15731func_fallback_echo ()
15732{
15733  eval 'cat <<_LTECHO_EOF
15734\$1
15735_LTECHO_EOF'
15736}
15737
15738# Quote evaled strings.
15739for var in SHELL \
15740ECHO \
15741PATH_SEPARATOR \
15742SED \
15743GREP \
15744EGREP \
15745FGREP \
15746LD \
15747NM \
15748LN_S \
15749lt_SP2NL \
15750lt_NL2SP \
15751reload_flag \
15752OBJDUMP \
15753deplibs_check_method \
15754file_magic_cmd \
15755file_magic_glob \
15756want_nocaseglob \
15757DLLTOOL \
15758sharedlib_from_linklib_cmd \
15759AR \
15760AR_FLAGS \
15761archiver_list_spec \
15762STRIP \
15763RANLIB \
15764CC \
15765CFLAGS \
15766compiler \
15767lt_cv_sys_global_symbol_pipe \
15768lt_cv_sys_global_symbol_to_cdecl \
15769lt_cv_sys_global_symbol_to_import \
15770lt_cv_sys_global_symbol_to_c_name_address \
15771lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15772lt_cv_nm_interface \
15773nm_file_list_spec \
15774lt_cv_truncate_bin \
15775lt_prog_compiler_no_builtin_flag \
15776lt_prog_compiler_pic \
15777lt_prog_compiler_wl \
15778lt_prog_compiler_static \
15779lt_cv_prog_compiler_c_o \
15780need_locks \
15781MANIFEST_TOOL \
15782DSYMUTIL \
15783NMEDIT \
15784LIPO \
15785OTOOL \
15786OTOOL64 \
15787shrext_cmds \
15788export_dynamic_flag_spec \
15789whole_archive_flag_spec \
15790compiler_needs_object \
15791with_gnu_ld \
15792allow_undefined_flag \
15793no_undefined_flag \
15794hardcode_libdir_flag_spec \
15795hardcode_libdir_separator \
15796exclude_expsyms \
15797include_expsyms \
15798file_list_spec \
15799variables_saved_for_relink \
15800libname_spec \
15801library_names_spec \
15802soname_spec \
15803install_override_mode \
15804finish_eval \
15805old_striplib \
15806striplib; do
15807    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15808    *[\\\\\\\`\\"\\\$]*)
15809      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15810      ;;
15811    *)
15812      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15813      ;;
15814    esac
15815done
15816
15817# Double-quote double-evaled strings.
15818for var in reload_cmds \
15819old_postinstall_cmds \
15820old_postuninstall_cmds \
15821old_archive_cmds \
15822extract_expsyms_cmds \
15823old_archive_from_new_cmds \
15824old_archive_from_expsyms_cmds \
15825archive_cmds \
15826archive_expsym_cmds \
15827module_cmds \
15828module_expsym_cmds \
15829export_symbols_cmds \
15830prelink_cmds \
15831postlink_cmds \
15832postinstall_cmds \
15833postuninstall_cmds \
15834finish_cmds \
15835sys_lib_search_path_spec \
15836configure_time_dlsearch_path \
15837configure_time_lt_sys_library_path; do
15838    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15839    *[\\\\\\\`\\"\\\$]*)
15840      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15841      ;;
15842    *)
15843      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15844      ;;
15845    esac
15846done
15847
15848ac_aux_dir='$ac_aux_dir'
15849
15850# See if we are running on zsh, and set the options that allow our
15851# commands through without removal of \ escapes INIT.
15852if test -n "\${ZSH_VERSION+set}"; then
15853   setopt NO_GLOB_SUBST
15854fi
15855
15856
15857    PACKAGE='$PACKAGE'
15858    VERSION='$VERSION'
15859    RM='$RM'
15860    ofile='$ofile'
15861
15862
15863
15864
15865_ACEOF
15866
15867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15868
15869# Handling of arguments.
15870for ac_config_target in $ac_config_targets
15871do
15872  case $ac_config_target in
15873    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15874    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15875    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
15876    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15877    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15878    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
15879    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15880    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
15881
15882  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15883  esac
15884done
15885
15886
15887# If the user did not use the arguments to specify the items to instantiate,
15888# then the envvar interface is used.  Set only those that are not.
15889# We use the long form for the default assignment because of an extremely
15890# bizarre bug on SunOS 4.1.3.
15891if $ac_need_defaults; then
15892  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15893  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15894  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15895fi
15896
15897# Have a temporary directory for convenience.  Make it in the build tree
15898# simply because there is no reason against having it here, and in addition,
15899# creating and moving files from /tmp can sometimes cause problems.
15900# Hook for its removal unless debugging.
15901# Note that there is a small window in which the directory will not be cleaned:
15902# after its creation but before its name has been assigned to `$tmp'.
15903$debug ||
15904{
15905  tmp= ac_tmp=
15906  trap 'exit_status=$?
15907  : "${ac_tmp:=$tmp}"
15908  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15909' 0
15910  trap 'as_fn_exit 1' 1 2 13 15
15911}
15912# Create a (secure) tmp directory for tmp files.
15913
15914{
15915  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15916  test -d "$tmp"
15917}  ||
15918{
15919  tmp=./conf$$-$RANDOM
15920  (umask 077 && mkdir "$tmp")
15921} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15922ac_tmp=$tmp
15923
15924# Set up the scripts for CONFIG_FILES section.
15925# No need to generate them if there are no CONFIG_FILES.
15926# This happens for instance with `./config.status config.h'.
15927if test -n "$CONFIG_FILES"; then
15928
15929
15930ac_cr=`echo X | tr X '\015'`
15931# On cygwin, bash can eat \r inside `` if the user requested igncr.
15932# But we know of no other shell where ac_cr would be empty at this
15933# point, so we can use a bashism as a fallback.
15934if test "x$ac_cr" = x; then
15935  eval ac_cr=\$\'\\r\'
15936fi
15937ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15938if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15939  ac_cs_awk_cr='\\r'
15940else
15941  ac_cs_awk_cr=$ac_cr
15942fi
15943
15944echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15945_ACEOF
15946
15947
15948{
15949  echo "cat >conf$$subs.awk <<_ACEOF" &&
15950  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15951  echo "_ACEOF"
15952} >conf$$subs.sh ||
15953  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15954ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15955ac_delim='%!_!# '
15956for ac_last_try in false false false false false :; do
15957  . ./conf$$subs.sh ||
15958    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15959
15960  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15961  if test $ac_delim_n = $ac_delim_num; then
15962    break
15963  elif $ac_last_try; then
15964    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15965  else
15966    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15967  fi
15968done
15969rm -f conf$$subs.sh
15970
15971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15973_ACEOF
15974sed -n '
15975h
15976s/^/S["/; s/!.*/"]=/
15977p
15978g
15979s/^[^!]*!//
15980:repl
15981t repl
15982s/'"$ac_delim"'$//
15983t delim
15984:nl
15985h
15986s/\(.\{148\}\)..*/\1/
15987t more1
15988s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15989p
15990n
15991b repl
15992:more1
15993s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15994p
15995g
15996s/.\{148\}//
15997t nl
15998:delim
15999h
16000s/\(.\{148\}\)..*/\1/
16001t more2
16002s/["\\]/\\&/g; s/^/"/; s/$/"/
16003p
16004b
16005:more2
16006s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16007p
16008g
16009s/.\{148\}//
16010t delim
16011' <conf$$subs.awk | sed '
16012/^[^""]/{
16013  N
16014  s/\n//
16015}
16016' >>$CONFIG_STATUS || ac_write_fail=1
16017rm -f conf$$subs.awk
16018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16019_ACAWK
16020cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16021  for (key in S) S_is_set[key] = 1
16022  FS = ""
16023
16024}
16025{
16026  line = $ 0
16027  nfields = split(line, field, "@")
16028  substed = 0
16029  len = length(field[1])
16030  for (i = 2; i < nfields; i++) {
16031    key = field[i]
16032    keylen = length(key)
16033    if (S_is_set[key]) {
16034      value = S[key]
16035      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16036      len += length(value) + length(field[++i])
16037      substed = 1
16038    } else
16039      len += 1 + keylen
16040  }
16041
16042  print line
16043}
16044
16045_ACAWK
16046_ACEOF
16047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16048if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16049  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16050else
16051  cat
16052fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16053  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16054_ACEOF
16055
16056# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16057# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16058# trailing colons and then remove the whole line if VPATH becomes empty
16059# (actually we leave an empty line to preserve line numbers).
16060if test "x$srcdir" = x.; then
16061  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16062h
16063s///
16064s/^/:/
16065s/[	 ]*$/:/
16066s/:\$(srcdir):/:/g
16067s/:\${srcdir}:/:/g
16068s/:@srcdir@:/:/g
16069s/^:*//
16070s/:*$//
16071x
16072s/\(=[	 ]*\).*/\1/
16073G
16074s/\n//
16075s/^[^=]*=[	 ]*$//
16076}'
16077fi
16078
16079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080fi # test -n "$CONFIG_FILES"
16081
16082# Set up the scripts for CONFIG_HEADERS section.
16083# No need to generate them if there are no CONFIG_HEADERS.
16084# This happens for instance with `./config.status Makefile'.
16085if test -n "$CONFIG_HEADERS"; then
16086cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16087BEGIN {
16088_ACEOF
16089
16090# Transform confdefs.h into an awk script `defines.awk', embedded as
16091# here-document in config.status, that substitutes the proper values into
16092# config.h.in to produce config.h.
16093
16094# Create a delimiter string that does not exist in confdefs.h, to ease
16095# handling of long lines.
16096ac_delim='%!_!# '
16097for ac_last_try in false false :; do
16098  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16099  if test -z "$ac_tt"; then
16100    break
16101  elif $ac_last_try; then
16102    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16103  else
16104    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16105  fi
16106done
16107
16108# For the awk script, D is an array of macro values keyed by name,
16109# likewise P contains macro parameters if any.  Preserve backslash
16110# newline sequences.
16111
16112ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16113sed -n '
16114s/.\{148\}/&'"$ac_delim"'/g
16115t rset
16116:rset
16117s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16118t def
16119d
16120:def
16121s/\\$//
16122t bsnl
16123s/["\\]/\\&/g
16124s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16125D["\1"]=" \3"/p
16126s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16127d
16128:bsnl
16129s/["\\]/\\&/g
16130s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16131D["\1"]=" \3\\\\\\n"\\/p
16132t cont
16133s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16134t cont
16135d
16136:cont
16137n
16138s/.\{148\}/&'"$ac_delim"'/g
16139t clear
16140:clear
16141s/\\$//
16142t bsnlc
16143s/["\\]/\\&/g; s/^/"/; s/$/"/p
16144d
16145:bsnlc
16146s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16147b cont
16148' <confdefs.h | sed '
16149s/'"$ac_delim"'/"\\\
16150"/g' >>$CONFIG_STATUS || ac_write_fail=1
16151
16152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16153  for (key in D) D_is_set[key] = 1
16154  FS = ""
16155}
16156/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16157  line = \$ 0
16158  split(line, arg, " ")
16159  if (arg[1] == "#") {
16160    defundef = arg[2]
16161    mac1 = arg[3]
16162  } else {
16163    defundef = substr(arg[1], 2)
16164    mac1 = arg[2]
16165  }
16166  split(mac1, mac2, "(") #)
16167  macro = mac2[1]
16168  prefix = substr(line, 1, index(line, defundef) - 1)
16169  if (D_is_set[macro]) {
16170    # Preserve the white space surrounding the "#".
16171    print prefix "define", macro P[macro] D[macro]
16172    next
16173  } else {
16174    # Replace #undef with comments.  This is necessary, for example,
16175    # in the case of _POSIX_SOURCE, which is predefined and required
16176    # on some systems where configure will not decide to define it.
16177    if (defundef == "undef") {
16178      print "/*", prefix defundef, macro, "*/"
16179      next
16180    }
16181  }
16182}
16183{ print }
16184_ACAWK
16185_ACEOF
16186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16188fi # test -n "$CONFIG_HEADERS"
16189
16190
16191eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16192shift
16193for ac_tag
16194do
16195  case $ac_tag in
16196  :[FHLC]) ac_mode=$ac_tag; continue;;
16197  esac
16198  case $ac_mode$ac_tag in
16199  :[FHL]*:*);;
16200  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16201  :[FH]-) ac_tag=-:-;;
16202  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16203  esac
16204  ac_save_IFS=$IFS
16205  IFS=:
16206  set x $ac_tag
16207  IFS=$ac_save_IFS
16208  shift
16209  ac_file=$1
16210  shift
16211
16212  case $ac_mode in
16213  :L) ac_source=$1;;
16214  :[FH])
16215    ac_file_inputs=
16216    for ac_f
16217    do
16218      case $ac_f in
16219      -) ac_f="$ac_tmp/stdin";;
16220      *) # Look for the file first in the build tree, then in the source tree
16221	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16222	 # because $ac_f cannot contain `:'.
16223	 test -f "$ac_f" ||
16224	   case $ac_f in
16225	   [\\/$]*) false;;
16226	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16227	   esac ||
16228	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16229      esac
16230      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16231      as_fn_append ac_file_inputs " '$ac_f'"
16232    done
16233
16234    # Let's still pretend it is `configure' which instantiates (i.e., don't
16235    # use $as_me), people would be surprised to read:
16236    #    /* config.h.  Generated by config.status.  */
16237    configure_input='Generated from '`
16238	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16239	`' by configure.'
16240    if test x"$ac_file" != x-; then
16241      configure_input="$ac_file.  $configure_input"
16242      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16243printf "%s\n" "$as_me: creating $ac_file" >&6;}
16244    fi
16245    # Neutralize special characters interpreted by sed in replacement strings.
16246    case $configure_input in #(
16247    *\&* | *\|* | *\\* )
16248       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16249       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16250    *) ac_sed_conf_input=$configure_input;;
16251    esac
16252
16253    case $ac_tag in
16254    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16255      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16256    esac
16257    ;;
16258  esac
16259
16260  ac_dir=`$as_dirname -- "$ac_file" ||
16261$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16262	 X"$ac_file" : 'X\(//\)[^/]' \| \
16263	 X"$ac_file" : 'X\(//\)$' \| \
16264	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16265printf "%s\n" X"$ac_file" |
16266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16267	    s//\1/
16268	    q
16269	  }
16270	  /^X\(\/\/\)[^/].*/{
16271	    s//\1/
16272	    q
16273	  }
16274	  /^X\(\/\/\)$/{
16275	    s//\1/
16276	    q
16277	  }
16278	  /^X\(\/\).*/{
16279	    s//\1/
16280	    q
16281	  }
16282	  s/.*/./; q'`
16283  as_dir="$ac_dir"; as_fn_mkdir_p
16284  ac_builddir=.
16285
16286case "$ac_dir" in
16287.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16288*)
16289  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16290  # A ".." for each directory in $ac_dir_suffix.
16291  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16292  case $ac_top_builddir_sub in
16293  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16294  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16295  esac ;;
16296esac
16297ac_abs_top_builddir=$ac_pwd
16298ac_abs_builddir=$ac_pwd$ac_dir_suffix
16299# for backward compatibility:
16300ac_top_builddir=$ac_top_build_prefix
16301
16302case $srcdir in
16303  .)  # We are building in place.
16304    ac_srcdir=.
16305    ac_top_srcdir=$ac_top_builddir_sub
16306    ac_abs_top_srcdir=$ac_pwd ;;
16307  [\\/]* | ?:[\\/]* )  # Absolute name.
16308    ac_srcdir=$srcdir$ac_dir_suffix;
16309    ac_top_srcdir=$srcdir
16310    ac_abs_top_srcdir=$srcdir ;;
16311  *) # Relative name.
16312    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16313    ac_top_srcdir=$ac_top_build_prefix$srcdir
16314    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16315esac
16316ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16317
16318
16319  case $ac_mode in
16320  :F)
16321  #
16322  # CONFIG_FILE
16323  #
16324
16325  case $INSTALL in
16326  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16327  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16328  esac
16329  ac_MKDIR_P=$MKDIR_P
16330  case $MKDIR_P in
16331  [\\/$]* | ?:[\\/]* ) ;;
16332  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16333  esac
16334_ACEOF
16335
16336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16337# If the template does not know about datarootdir, expand it.
16338# FIXME: This hack should be removed a few years after 2.60.
16339ac_datarootdir_hack=; ac_datarootdir_seen=
16340ac_sed_dataroot='
16341/datarootdir/ {
16342  p
16343  q
16344}
16345/@datadir@/p
16346/@docdir@/p
16347/@infodir@/p
16348/@localedir@/p
16349/@mandir@/p'
16350case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16351*datarootdir*) ac_datarootdir_seen=yes;;
16352*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16354printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16355_ACEOF
16356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16357  ac_datarootdir_hack='
16358  s&@datadir@&$datadir&g
16359  s&@docdir@&$docdir&g
16360  s&@infodir@&$infodir&g
16361  s&@localedir@&$localedir&g
16362  s&@mandir@&$mandir&g
16363  s&\\\${datarootdir}&$datarootdir&g' ;;
16364esac
16365_ACEOF
16366
16367# Neutralize VPATH when `$srcdir' = `.'.
16368# Shell code in configure.ac might set extrasub.
16369# FIXME: do we really want to maintain this feature?
16370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16371ac_sed_extra="$ac_vpsub
16372$extrasub
16373_ACEOF
16374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16375:t
16376/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16377s|@configure_input@|$ac_sed_conf_input|;t t
16378s&@top_builddir@&$ac_top_builddir_sub&;t t
16379s&@top_build_prefix@&$ac_top_build_prefix&;t t
16380s&@srcdir@&$ac_srcdir&;t t
16381s&@abs_srcdir@&$ac_abs_srcdir&;t t
16382s&@top_srcdir@&$ac_top_srcdir&;t t
16383s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16384s&@builddir@&$ac_builddir&;t t
16385s&@abs_builddir@&$ac_abs_builddir&;t t
16386s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16387s&@INSTALL@&$ac_INSTALL&;t t
16388s&@MKDIR_P@&$ac_MKDIR_P&;t t
16389$ac_datarootdir_hack
16390"
16391eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16392  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16393
16394test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16395  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16396  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16397      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16399which seems to be undefined.  Please make sure it is defined" >&5
16400printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16401which seems to be undefined.  Please make sure it is defined" >&2;}
16402
16403  rm -f "$ac_tmp/stdin"
16404  case $ac_file in
16405  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16406  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16407  esac \
16408  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16409 ;;
16410  :H)
16411  #
16412  # CONFIG_HEADER
16413  #
16414  if test x"$ac_file" != x-; then
16415    {
16416      printf "%s\n" "/* $configure_input  */" >&1 \
16417      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16418    } >"$ac_tmp/config.h" \
16419      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16420    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16421      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16422printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16423    else
16424      rm -f "$ac_file"
16425      mv "$ac_tmp/config.h" "$ac_file" \
16426	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16427    fi
16428  else
16429    printf "%s\n" "/* $configure_input  */" >&1 \
16430      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16431      || as_fn_error $? "could not create -" "$LINENO" 5
16432  fi
16433# Compute "$ac_file"'s index in $config_headers.
16434_am_arg="$ac_file"
16435_am_stamp_count=1
16436for _am_header in $config_headers :; do
16437  case $_am_header in
16438    $_am_arg | $_am_arg:* )
16439      break ;;
16440    * )
16441      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16442  esac
16443done
16444echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16445$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16447	 X"$_am_arg" : 'X\(//\)$' \| \
16448	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16449printf "%s\n" X"$_am_arg" |
16450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451	    s//\1/
16452	    q
16453	  }
16454	  /^X\(\/\/\)[^/].*/{
16455	    s//\1/
16456	    q
16457	  }
16458	  /^X\(\/\/\)$/{
16459	    s//\1/
16460	    q
16461	  }
16462	  /^X\(\/\).*/{
16463	    s//\1/
16464	    q
16465	  }
16466	  s/.*/./; q'`/stamp-h$_am_stamp_count
16467 ;;
16468
16469  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16470printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16471 ;;
16472  esac
16473
16474
16475  case $ac_file$ac_mode in
16476    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16477  # Older Autoconf quotes --file arguments for eval, but not when files
16478  # are listed without --file.  Let's play safe and only enable the eval
16479  # if we detect the quoting.
16480  # TODO: see whether this extra hack can be removed once we start
16481  # requiring Autoconf 2.70 or later.
16482  case $CONFIG_FILES in #(
16483  *\'*) :
16484    eval set x "$CONFIG_FILES" ;; #(
16485  *) :
16486    set x $CONFIG_FILES ;; #(
16487  *) :
16488     ;;
16489esac
16490  shift
16491  # Used to flag and report bootstrapping failures.
16492  am_rc=0
16493  for am_mf
16494  do
16495    # Strip MF so we end up with the name of the file.
16496    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16497    # Check whether this is an Automake generated Makefile which includes
16498    # dependency-tracking related rules and includes.
16499    # Grep'ing the whole file directly is not great: AIX grep has a line
16500    # limit of 2048, but all sed's we know have understand at least 4000.
16501    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16502      || continue
16503    am_dirpart=`$as_dirname -- "$am_mf" ||
16504$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16505	 X"$am_mf" : 'X\(//\)[^/]' \| \
16506	 X"$am_mf" : 'X\(//\)$' \| \
16507	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16508printf "%s\n" X"$am_mf" |
16509    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16510	    s//\1/
16511	    q
16512	  }
16513	  /^X\(\/\/\)[^/].*/{
16514	    s//\1/
16515	    q
16516	  }
16517	  /^X\(\/\/\)$/{
16518	    s//\1/
16519	    q
16520	  }
16521	  /^X\(\/\).*/{
16522	    s//\1/
16523	    q
16524	  }
16525	  s/.*/./; q'`
16526    am_filepart=`$as_basename -- "$am_mf" ||
16527$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16528	 X"$am_mf" : 'X\(//\)$' \| \
16529	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16530printf "%s\n" X/"$am_mf" |
16531    sed '/^.*\/\([^/][^/]*\)\/*$/{
16532	    s//\1/
16533	    q
16534	  }
16535	  /^X\/\(\/\/\)$/{
16536	    s//\1/
16537	    q
16538	  }
16539	  /^X\/\(\/\).*/{
16540	    s//\1/
16541	    q
16542	  }
16543	  s/.*/./; q'`
16544    { echo "$as_me:$LINENO: cd "$am_dirpart" \
16545      && sed -e '/# am--include-marker/d' "$am_filepart" \
16546        | $MAKE -f - am--depfiles" >&5
16547   (cd "$am_dirpart" \
16548      && sed -e '/# am--include-marker/d' "$am_filepart" \
16549        | $MAKE -f - am--depfiles) >&5 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } || am_rc=$?
16553  done
16554  if test $am_rc -ne 0; then
16555    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16556printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16557as_fn_error $? "Something went wrong bootstrapping makefile fragments
16558    for automatic dependency tracking.  If GNU make was not used, consider
16559    re-running the configure script with MAKE=\"gmake\" (or whatever is
16560    necessary).  You can also try re-running configure with the
16561    '--disable-dependency-tracking' option to at least be able to build
16562    the package (albeit without support for automatic dependency tracking).
16563See \`config.log' for more details" "$LINENO" 5; }
16564  fi
16565  { am_dirpart=; unset am_dirpart;}
16566  { am_filepart=; unset am_filepart;}
16567  { am_mf=; unset am_mf;}
16568  { am_rc=; unset am_rc;}
16569  rm -f conftest-deps.mk
16570}
16571 ;;
16572    "libtool":C)
16573
16574    # See if we are running on zsh, and set the options that allow our
16575    # commands through without removal of \ escapes.
16576    if test -n "${ZSH_VERSION+set}"; then
16577      setopt NO_GLOB_SUBST
16578    fi
16579
16580    cfgfile=${ofile}T
16581    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16582    $RM "$cfgfile"
16583
16584    cat <<_LT_EOF >> "$cfgfile"
16585#! $SHELL
16586# Generated automatically by $as_me ($PACKAGE) $VERSION
16587# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16588# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16589
16590# Provide generalized library-building support services.
16591# Written by Gordon Matzigkeit, 1996
16592
16593# Copyright (C) 2014 Free Software Foundation, Inc.
16594# This is free software; see the source for copying conditions.  There is NO
16595# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16596
16597# GNU Libtool is free software; you can redistribute it and/or modify
16598# it under the terms of the GNU General Public License as published by
16599# the Free Software Foundation; either version 2 of of the License, or
16600# (at your option) any later version.
16601#
16602# As a special exception to the GNU General Public License, if you
16603# distribute this file as part of a program or library that is built
16604# using GNU Libtool, you may include this file under the  same
16605# distribution terms that you use for the rest of that program.
16606#
16607# GNU Libtool is distributed in the hope that it will be useful, but
16608# WITHOUT ANY WARRANTY; without even the implied warranty of
16609# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16610# GNU General Public License for more details.
16611#
16612# You should have received a copy of the GNU General Public License
16613# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16614
16615
16616# The names of the tagged configurations supported by this script.
16617available_tags=''
16618
16619# Configured defaults for sys_lib_dlsearch_path munging.
16620: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16621
16622# ### BEGIN LIBTOOL CONFIG
16623
16624# Which release of libtool.m4 was used?
16625macro_version=$macro_version
16626macro_revision=$macro_revision
16627
16628# Whether or not to build shared libraries.
16629build_libtool_libs=$enable_shared
16630
16631# Whether or not to build static libraries.
16632build_old_libs=$enable_static
16633
16634# What type of objects to build.
16635pic_mode=$pic_mode
16636
16637# Whether or not to optimize for fast installation.
16638fast_install=$enable_fast_install
16639
16640# Shared archive member basename,for filename based shared library versioning on AIX.
16641shared_archive_member_spec=$shared_archive_member_spec
16642
16643# Shell to use when invoking shell scripts.
16644SHELL=$lt_SHELL
16645
16646# An echo program that protects backslashes.
16647ECHO=$lt_ECHO
16648
16649# The PATH separator for the build system.
16650PATH_SEPARATOR=$lt_PATH_SEPARATOR
16651
16652# The host system.
16653host_alias=$host_alias
16654host=$host
16655host_os=$host_os
16656
16657# The build system.
16658build_alias=$build_alias
16659build=$build
16660build_os=$build_os
16661
16662# A sed program that does not truncate output.
16663SED=$lt_SED
16664
16665# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16666Xsed="\$SED -e 1s/^X//"
16667
16668# A grep program that handles long lines.
16669GREP=$lt_GREP
16670
16671# An ERE matcher.
16672EGREP=$lt_EGREP
16673
16674# A literal string matcher.
16675FGREP=$lt_FGREP
16676
16677# A BSD- or MS-compatible name lister.
16678NM=$lt_NM
16679
16680# Whether we need soft or hard links.
16681LN_S=$lt_LN_S
16682
16683# What is the maximum length of a command?
16684max_cmd_len=$max_cmd_len
16685
16686# Object file suffix (normally "o").
16687objext=$ac_objext
16688
16689# Executable file suffix (normally "").
16690exeext=$exeext
16691
16692# whether the shell understands "unset".
16693lt_unset=$lt_unset
16694
16695# turn spaces into newlines.
16696SP2NL=$lt_lt_SP2NL
16697
16698# turn newlines into spaces.
16699NL2SP=$lt_lt_NL2SP
16700
16701# convert \$build file names to \$host format.
16702to_host_file_cmd=$lt_cv_to_host_file_cmd
16703
16704# convert \$build files to toolchain format.
16705to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16706
16707# An object symbol dumper.
16708OBJDUMP=$lt_OBJDUMP
16709
16710# Method to check whether dependent libraries are shared objects.
16711deplibs_check_method=$lt_deplibs_check_method
16712
16713# Command to use when deplibs_check_method = "file_magic".
16714file_magic_cmd=$lt_file_magic_cmd
16715
16716# How to find potential files when deplibs_check_method = "file_magic".
16717file_magic_glob=$lt_file_magic_glob
16718
16719# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16720want_nocaseglob=$lt_want_nocaseglob
16721
16722# DLL creation program.
16723DLLTOOL=$lt_DLLTOOL
16724
16725# Command to associate shared and link libraries.
16726sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16727
16728# The archiver.
16729AR=$lt_AR
16730
16731# Flags to create an archive.
16732AR_FLAGS=$lt_AR_FLAGS
16733
16734# How to feed a file listing to the archiver.
16735archiver_list_spec=$lt_archiver_list_spec
16736
16737# A symbol stripping program.
16738STRIP=$lt_STRIP
16739
16740# Commands used to install an old-style archive.
16741RANLIB=$lt_RANLIB
16742old_postinstall_cmds=$lt_old_postinstall_cmds
16743old_postuninstall_cmds=$lt_old_postuninstall_cmds
16744
16745# Whether to use a lock for old archive extraction.
16746lock_old_archive_extraction=$lock_old_archive_extraction
16747
16748# A C compiler.
16749LTCC=$lt_CC
16750
16751# LTCC compiler flags.
16752LTCFLAGS=$lt_CFLAGS
16753
16754# Take the output of nm and produce a listing of raw symbols and C names.
16755global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16756
16757# Transform the output of nm in a proper C declaration.
16758global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16759
16760# Transform the output of nm into a list of symbols to manually relocate.
16761global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16762
16763# Transform the output of nm in a C name address pair.
16764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16765
16766# Transform the output of nm in a C name address pair when lib prefix is needed.
16767global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16768
16769# The name lister interface.
16770nm_interface=$lt_lt_cv_nm_interface
16771
16772# Specify filename containing input files for \$NM.
16773nm_file_list_spec=$lt_nm_file_list_spec
16774
16775# The root where to search for dependent libraries,and where our libraries should be installed.
16776lt_sysroot=$lt_sysroot
16777
16778# Command to truncate a binary pipe.
16779lt_truncate_bin=$lt_lt_cv_truncate_bin
16780
16781# The name of the directory that contains temporary libtool files.
16782objdir=$objdir
16783
16784# Used to examine libraries when file_magic_cmd begins with "file".
16785MAGIC_CMD=$MAGIC_CMD
16786
16787# Must we lock files when doing compilation?
16788need_locks=$lt_need_locks
16789
16790# Manifest tool.
16791MANIFEST_TOOL=$lt_MANIFEST_TOOL
16792
16793# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16794DSYMUTIL=$lt_DSYMUTIL
16795
16796# Tool to change global to local symbols on Mac OS X.
16797NMEDIT=$lt_NMEDIT
16798
16799# Tool to manipulate fat objects and archives on Mac OS X.
16800LIPO=$lt_LIPO
16801
16802# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16803OTOOL=$lt_OTOOL
16804
16805# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16806OTOOL64=$lt_OTOOL64
16807
16808# Old archive suffix (normally "a").
16809libext=$libext
16810
16811# Shared library suffix (normally ".so").
16812shrext_cmds=$lt_shrext_cmds
16813
16814# The commands to extract the exported symbol list from a shared archive.
16815extract_expsyms_cmds=$lt_extract_expsyms_cmds
16816
16817# Variables whose values should be saved in libtool wrapper scripts and
16818# restored at link time.
16819variables_saved_for_relink=$lt_variables_saved_for_relink
16820
16821# Do we need the "lib" prefix for modules?
16822need_lib_prefix=$need_lib_prefix
16823
16824# Do we need a version for libraries?
16825need_version=$need_version
16826
16827# Library versioning type.
16828version_type=$version_type
16829
16830# Shared library runtime path variable.
16831runpath_var=$runpath_var
16832
16833# Shared library path variable.
16834shlibpath_var=$shlibpath_var
16835
16836# Is shlibpath searched before the hard-coded library search path?
16837shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16838
16839# Format of library name prefix.
16840libname_spec=$lt_libname_spec
16841
16842# List of archive names.  First name is the real one, the rest are links.
16843# The last name is the one that the linker finds with -lNAME
16844library_names_spec=$lt_library_names_spec
16845
16846# The coded name of the library, if different from the real name.
16847soname_spec=$lt_soname_spec
16848
16849# Permission mode override for installation of shared libraries.
16850install_override_mode=$lt_install_override_mode
16851
16852# Command to use after installation of a shared archive.
16853postinstall_cmds=$lt_postinstall_cmds
16854
16855# Command to use after uninstallation of a shared archive.
16856postuninstall_cmds=$lt_postuninstall_cmds
16857
16858# Commands used to finish a libtool library installation in a directory.
16859finish_cmds=$lt_finish_cmds
16860
16861# As "finish_cmds", except a single script fragment to be evaled but
16862# not shown.
16863finish_eval=$lt_finish_eval
16864
16865# Whether we should hardcode library paths into libraries.
16866hardcode_into_libs=$hardcode_into_libs
16867
16868# Compile-time system search path for libraries.
16869sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16870
16871# Detected run-time system search path for libraries.
16872sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16873
16874# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16875configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16876
16877# Whether dlopen is supported.
16878dlopen_support=$enable_dlopen
16879
16880# Whether dlopen of programs is supported.
16881dlopen_self=$enable_dlopen_self
16882
16883# Whether dlopen of statically linked programs is supported.
16884dlopen_self_static=$enable_dlopen_self_static
16885
16886# Commands to strip libraries.
16887old_striplib=$lt_old_striplib
16888striplib=$lt_striplib
16889
16890
16891# The linker used to build libraries.
16892LD=$lt_LD
16893
16894# How to create reloadable object files.
16895reload_flag=$lt_reload_flag
16896reload_cmds=$lt_reload_cmds
16897
16898# Commands used to build an old-style archive.
16899old_archive_cmds=$lt_old_archive_cmds
16900
16901# A language specific compiler.
16902CC=$lt_compiler
16903
16904# Is the compiler the GNU compiler?
16905with_gcc=$GCC
16906
16907# Compiler flag to turn off builtin functions.
16908no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16909
16910# Additional compiler flags for building library objects.
16911pic_flag=$lt_lt_prog_compiler_pic
16912
16913# How to pass a linker flag through the compiler.
16914wl=$lt_lt_prog_compiler_wl
16915
16916# Compiler flag to prevent dynamic linking.
16917link_static_flag=$lt_lt_prog_compiler_static
16918
16919# Does compiler simultaneously support -c and -o options?
16920compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16921
16922# Whether or not to add -lc for building shared libraries.
16923build_libtool_need_lc=$archive_cmds_need_lc
16924
16925# Whether or not to disallow shared libs when runtime libs are static.
16926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16927
16928# Compiler flag to allow reflexive dlopens.
16929export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16930
16931# Compiler flag to generate shared objects directly from archives.
16932whole_archive_flag_spec=$lt_whole_archive_flag_spec
16933
16934# Whether the compiler copes with passing no objects directly.
16935compiler_needs_object=$lt_compiler_needs_object
16936
16937# Create an old-style archive from a shared archive.
16938old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16939
16940# Create a temporary old-style archive to link instead of a shared archive.
16941old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16942
16943# Commands used to build a shared archive.
16944archive_cmds=$lt_archive_cmds
16945archive_expsym_cmds=$lt_archive_expsym_cmds
16946
16947# Commands used to build a loadable module if different from building
16948# a shared archive.
16949module_cmds=$lt_module_cmds
16950module_expsym_cmds=$lt_module_expsym_cmds
16951
16952# Whether we are building with GNU ld or not.
16953with_gnu_ld=$lt_with_gnu_ld
16954
16955# Flag that allows shared libraries with undefined symbols to be built.
16956allow_undefined_flag=$lt_allow_undefined_flag
16957
16958# Flag that enforces no undefined symbols.
16959no_undefined_flag=$lt_no_undefined_flag
16960
16961# Flag to hardcode \$libdir into a binary during linking.
16962# This must work even if \$libdir does not exist
16963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16964
16965# Whether we need a single "-rpath" flag with a separated argument.
16966hardcode_libdir_separator=$lt_hardcode_libdir_separator
16967
16968# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16969# DIR into the resulting binary.
16970hardcode_direct=$hardcode_direct
16971
16972# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16973# DIR into the resulting binary and the resulting library dependency is
16974# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16975# library is relocated.
16976hardcode_direct_absolute=$hardcode_direct_absolute
16977
16978# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16979# into the resulting binary.
16980hardcode_minus_L=$hardcode_minus_L
16981
16982# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16983# into the resulting binary.
16984hardcode_shlibpath_var=$hardcode_shlibpath_var
16985
16986# Set to "yes" if building a shared library automatically hardcodes DIR
16987# into the library and all subsequent libraries and executables linked
16988# against it.
16989hardcode_automatic=$hardcode_automatic
16990
16991# Set to yes if linker adds runtime paths of dependent libraries
16992# to runtime path list.
16993inherit_rpath=$inherit_rpath
16994
16995# Whether libtool must link a program against all its dependency libraries.
16996link_all_deplibs=$link_all_deplibs
16997
16998# Set to "yes" if exported symbols are required.
16999always_export_symbols=$always_export_symbols
17000
17001# The commands to list exported symbols.
17002export_symbols_cmds=$lt_export_symbols_cmds
17003
17004# Symbols that should not be listed in the preloaded symbols.
17005exclude_expsyms=$lt_exclude_expsyms
17006
17007# Symbols that must always be exported.
17008include_expsyms=$lt_include_expsyms
17009
17010# Commands necessary for linking programs (against libraries) with templates.
17011prelink_cmds=$lt_prelink_cmds
17012
17013# Commands necessary for finishing linking programs.
17014postlink_cmds=$lt_postlink_cmds
17015
17016# Specify filename containing input files.
17017file_list_spec=$lt_file_list_spec
17018
17019# How to hardcode a shared library path into an executable.
17020hardcode_action=$hardcode_action
17021
17022# ### END LIBTOOL CONFIG
17023
17024_LT_EOF
17025
17026    cat <<'_LT_EOF' >> "$cfgfile"
17027
17028# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17029
17030# func_munge_path_list VARIABLE PATH
17031# -----------------------------------
17032# VARIABLE is name of variable containing _space_ separated list of
17033# directories to be munged by the contents of PATH, which is string
17034# having a format:
17035# "DIR[:DIR]:"
17036#       string "DIR[ DIR]" will be prepended to VARIABLE
17037# ":DIR[:DIR]"
17038#       string "DIR[ DIR]" will be appended to VARIABLE
17039# "DIRP[:DIRP]::[DIRA:]DIRA"
17040#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17041#       "DIRA[ DIRA]" will be appended to VARIABLE
17042# "DIR[:DIR]"
17043#       VARIABLE will be replaced by "DIR[ DIR]"
17044func_munge_path_list ()
17045{
17046    case x$2 in
17047    x)
17048        ;;
17049    *:)
17050        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17051        ;;
17052    x:*)
17053        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17054        ;;
17055    *::*)
17056        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17057        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17058        ;;
17059    *)
17060        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17061        ;;
17062    esac
17063}
17064
17065
17066# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17067func_cc_basename ()
17068{
17069    for cc_temp in $*""; do
17070      case $cc_temp in
17071        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17072        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17073        \-*) ;;
17074        *) break;;
17075      esac
17076    done
17077    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17078}
17079
17080
17081# ### END FUNCTIONS SHARED WITH CONFIGURE
17082
17083_LT_EOF
17084
17085  case $host_os in
17086  aix3*)
17087    cat <<\_LT_EOF >> "$cfgfile"
17088# AIX sometimes has problems with the GCC collect2 program.  For some
17089# reason, if we set the COLLECT_NAMES environment variable, the problems
17090# vanish in a puff of smoke.
17091if test set != "${COLLECT_NAMES+set}"; then
17092  COLLECT_NAMES=
17093  export COLLECT_NAMES
17094fi
17095_LT_EOF
17096    ;;
17097  esac
17098
17099
17100
17101ltmain=$ac_aux_dir/ltmain.sh
17102
17103
17104  # We use sed instead of cat because bash on DJGPP gets confused if
17105  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17106  # text mode, it properly converts lines to CR/LF.  This bash problem
17107  # is reportedly fixed, but why not run on old versions too?
17108  sed '$q' "$ltmain" >> "$cfgfile" \
17109     || (rm -f "$cfgfile"; exit 1)
17110
17111   mv -f "$cfgfile" "$ofile" ||
17112    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17113  chmod +x "$ofile"
17114
17115 ;;
17116
17117  esac
17118done # for ac_tag
17119
17120
17121as_fn_exit 0
17122_ACEOF
17123ac_clean_files=$ac_clean_files_save
17124
17125test $ac_write_fail = 0 ||
17126  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17127
17128
17129# configure is writing to config.log, and then calls config.status.
17130# config.status does its own redirection, appending to config.log.
17131# Unfortunately, on DOS this fails, as config.log is still kept open
17132# by configure, so config.status won't be able to write to it; its
17133# output is simply discarded.  So we exec the FD to /dev/null,
17134# effectively closing config.log, so it can be properly (re)opened and
17135# appended to by config.status.  When coming back to configure, we
17136# need to make the FD available again.
17137if test "$no_create" != yes; then
17138  ac_cs_success=:
17139  ac_config_status_args=
17140  test "$silent" = yes &&
17141    ac_config_status_args="$ac_config_status_args --quiet"
17142  exec 5>/dev/null
17143  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17144  exec 5>>config.log
17145  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17146  # would make configure fail if this is the last instruction.
17147  $ac_cs_success || as_fn_exit 1
17148fi
17149if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17151printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17152fi
17153
17154
17155