xref: /iperf/configure (revision 76bd67f6)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for iperf 3.11.
4#
5# Report bugs to <https://github.com/esnet/iperf>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2022 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.11'
625PACKAGE_STRING='iperf 3.11'
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
724CSCOPE
725ETAGS
726CTAGS
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750ENABLE_STATIC_BIN_FALSE
751ENABLE_STATIC_BIN_TRUE
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771runstatedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL
791am__quote'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_static_bin
796enable_silent_rules
797enable_shared
798enable_static
799with_pic
800enable_fast_install
801with_aix_soname
802enable_dependency_tracking
803with_gnu_ld
804with_sysroot
805enable_libtool_lock
806enable_maintainer_mode
807enable_profiling
808with_sctp
809with_openssl
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819LT_SYS_LIBRARY_PATH'
820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858runstatedir='${localstatedir}/run'
859includedir='${prefix}/include'
860oldincludedir='/usr/include'
861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
870
871ac_prev=
872ac_dashdash=
873for ac_option
874do
875  # If the previous option needs an argument, assign it.
876  if test -n "$ac_prev"; then
877    eval $ac_prev=\$ac_option
878    ac_prev=
879    continue
880  fi
881
882  case $ac_option in
883  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884  *=)   ac_optarg= ;;
885  *)    ac_optarg=yes ;;
886  esac
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: \`$ac_useropt'"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: \`$ac_useropt'"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -runstatedir | --runstatedir | --runstatedi | --runstated \
1110  | --runstate | --runstat | --runsta | --runst | --runs \
1111  | --run | --ru | --r)
1112    ac_prev=runstatedir ;;
1113  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1114  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1115  | --run=* | --ru=* | --r=*)
1116    runstatedir=$ac_optarg ;;
1117
1118  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119    ac_prev=sbindir ;;
1120  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121  | --sbi=* | --sb=*)
1122    sbindir=$ac_optarg ;;
1123
1124  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126  | --sharedst | --shareds | --shared | --share | --shar \
1127  | --sha | --sh)
1128    ac_prev=sharedstatedir ;;
1129  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132  | --sha=* | --sh=*)
1133    sharedstatedir=$ac_optarg ;;
1134
1135  -site | --site | --sit)
1136    ac_prev=site ;;
1137  -site=* | --site=* | --sit=*)
1138    site=$ac_optarg ;;
1139
1140  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141    ac_prev=srcdir ;;
1142  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143    srcdir=$ac_optarg ;;
1144
1145  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146  | --syscon | --sysco | --sysc | --sys | --sy)
1147    ac_prev=sysconfdir ;;
1148  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150    sysconfdir=$ac_optarg ;;
1151
1152  -target | --target | --targe | --targ | --tar | --ta | --t)
1153    ac_prev=target_alias ;;
1154  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155    target_alias=$ac_optarg ;;
1156
1157  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158    verbose=yes ;;
1159
1160  -version | --version | --versio | --versi | --vers | -V)
1161    ac_init_version=: ;;
1162
1163  -with-* | --with-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: \`$ac_useropt'"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=\$ac_optarg ;;
1178
1179  -without-* | --without-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: \`$ac_useropt'"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=no ;;
1194
1195  --x)
1196    # Obsolete; use --with-x.
1197    with_x=yes ;;
1198
1199  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200  | --x-incl | --x-inc | --x-in | --x-i)
1201    ac_prev=x_includes ;;
1202  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204    x_includes=$ac_optarg ;;
1205
1206  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208    ac_prev=x_libraries ;;
1209  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211    x_libraries=$ac_optarg ;;
1212
1213  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information"
1215    ;;
1216
1217  *=*)
1218    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219    # Reject names that are not valid shell variable names.
1220    case $ac_envvar in #(
1221      '' | [0-9]* | *[!_$as_cr_alnum]* )
1222      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223    esac
1224    eval $ac_envvar=\$ac_optarg
1225    export $ac_envvar ;;
1226
1227  *)
1228    # FIXME: should be removed in autoconf 3.0.
1229    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1230    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1232    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233    ;;
1234
1235  esac
1236done
1237
1238if test -n "$ac_prev"; then
1239  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240  as_fn_error $? "missing argument to $ac_option"
1241fi
1242
1243if test -n "$ac_unrecognized_opts"; then
1244  case $enable_option_checking in
1245    no) ;;
1246    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248  esac
1249fi
1250
1251# Check all directory arguments for consistency.
1252for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253		datadir sysconfdir sharedstatedir localstatedir includedir \
1254		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255		libdir localedir mandir runstatedir
1256do
1257  eval ac_val=\$$ac_var
1258  # Remove trailing slashes.
1259  case $ac_val in
1260    */ )
1261      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262      eval $ac_var=\$ac_val;;
1263  esac
1264  # Be sure to have absolute directory names.
1265  case $ac_val in
1266    [\\/$]* | ?:[\\/]* )  continue;;
1267    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268  esac
1269  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270done
1271
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
1278
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281  if test "x$build_alias" = x; then
1282    cross_compiling=maybe
1283  elif test "x$build_alias" != "x$host_alias"; then
1284    cross_compiling=yes
1285  fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
1293
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297  as_fn_error $? "working directory cannot be determined"
1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299  as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304  ac_srcdir_defaulted=yes
1305  # Try the directory containing this script, then the parent directory.
1306  ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308	 X"$as_myself" : 'X\(//\)[^/]' \| \
1309	 X"$as_myself" : 'X\(//\)$' \| \
1310	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311printf "%s\n" X"$as_myself" |
1312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\/\)[^/].*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)$/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\).*/{
1325	    s//\1/
1326	    q
1327	  }
1328	  s/.*/./; q'`
1329  srcdir=$ac_confdir
1330  if test ! -r "$srcdir/$ac_unique_file"; then
1331    srcdir=..
1332  fi
1333else
1334  ac_srcdir_defaulted=no
1335fi
1336if test ! -r "$srcdir/$ac_unique_file"; then
1337  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339fi
1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
1342	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343	pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346  srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_env_${ac_var}_value=\$${ac_var}
1357  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
1360
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365  # Omit some internal or obsolete options to make the list less imposing.
1366  # This message is too long to be a string in the A/UX 3.1 sh.
1367  cat <<_ACEOF
1368\`configure' configures iperf 3.11 to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378  -h, --help              display this help and exit
1379      --help=short        display options specific to this package
1380      --help=recursive    display the short help of all the included packages
1381  -V, --version           display version information and exit
1382  -q, --quiet, --silent   do not print \`checking ...' messages
1383      --cache-file=FILE   cache test results in FILE [disabled]
1384  -C, --config-cache      alias for \`--cache-file=config.cache'
1385  -n, --no-create         do not create output files
1386      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388Installation directories:
1389  --prefix=PREFIX         install architecture-independent files in PREFIX
1390                          [$ac_default_prefix]
1391  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                          [PREFIX]
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
1402  --bindir=DIR            user executables [EPREFIX/bin]
1403  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404  --libexecdir=DIR        program executables [EPREFIX/libexec]
1405  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1409  --libdir=DIR            object code libraries [EPREFIX/lib]
1410  --includedir=DIR        C header files [PREFIX/include]
1411  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1412  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1413  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1414  --infodir=DIR           info documentation [DATAROOTDIR/info]
1415  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1416  --mandir=DIR            man documentation [DATAROOTDIR/man]
1417  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1418  --htmldir=DIR           html documentation [DOCDIR]
1419  --dvidir=DIR            dvi documentation [DOCDIR]
1420  --pdfdir=DIR            pdf documentation [DOCDIR]
1421  --psdir=DIR             ps documentation [DOCDIR]
1422_ACEOF
1423
1424  cat <<\_ACEOF
1425
1426Program names:
1427  --program-prefix=PREFIX            prepend PREFIX to installed program names
1428  --program-suffix=SUFFIX            append SUFFIX to installed program names
1429  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431System types:
1432  --build=BUILD     configure for building on BUILD [guessed]
1433  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434_ACEOF
1435fi
1436
1437if test -n "$ac_init_help"; then
1438  case $ac_init_help in
1439     short | recursive ) echo "Configuration of iperf 3.11:";;
1440   esac
1441  cat <<\_ACEOF
1442
1443Optional Features:
1444  --disable-option-checking  ignore unrecognized --enable/--with options
1445  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447  --enable-static-bin     link iperf3 binary statically
1448  --enable-silent-rules   less verbose build output (undo: "make V=1")
1449  --disable-silent-rules  verbose build output (undo: "make V=0")
1450  --enable-shared[=PKGS]  build shared libraries [default=yes]
1451  --enable-static[=PKGS]  build static libraries [default=yes]
1452  --enable-fast-install[=PKGS]
1453                          optimize for fast installation [default=yes]
1454  --enable-dependency-tracking
1455                          do not reject slow dependency extractors
1456  --disable-dependency-tracking
1457                          speeds up one-time build
1458  --disable-libtool-lock  avoid locking (might break parallel builds)
1459  --enable-maintainer-mode
1460                          enable make rules and dependencies not useful (and
1461                          sometimes confusing) to the casual installer
1462  --enable-profiling      Enable iperf3 profiling binary
1463
1464Optional Packages:
1465  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1468                          both]
1469  --with-aix-soname=aix|svr4|both
1470                          shared library versioning (aka "SONAME") variant to
1471                          provide on AIX, [default=aix].
1472  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1473  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1474                          compiler's sysroot if not specified).
1475  --without-sctp          disable SCTP
1476  --with-openssl=DIR      root of the OpenSSL directory
1477
1478Some influential environment variables:
1479  CC          C compiler command
1480  CFLAGS      C compiler flags
1481  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482              nonstandard directory <lib dir>
1483  LIBS        libraries to pass to the linker, e.g. -l<library>
1484  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485              you have headers in a nonstandard directory <include dir>
1486  LT_SYS_LIBRARY_PATH
1487              User-defined run-time library search path.
1488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
1492Report bugs to <https://github.com/esnet/iperf>.
1493iperf home page: <https://software.es.net/iperf/>.
1494_ACEOF
1495ac_status=$?
1496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499  # If there are subdirs, report their specific --help.
1500  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501    test -d "$ac_dir" ||
1502      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503      continue
1504    ac_builddir=.
1505
1506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
1509  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1510  # A ".." for each directory in $ac_dir_suffix.
1511  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512  case $ac_top_builddir_sub in
1513  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515  esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
1521
1522case $srcdir in
1523  .)  # We are building in place.
1524    ac_srcdir=.
1525    ac_top_srcdir=$ac_top_builddir_sub
1526    ac_abs_top_srcdir=$ac_pwd ;;
1527  [\\/]* | ?:[\\/]* )  # Absolute name.
1528    ac_srcdir=$srcdir$ac_dir_suffix;
1529    ac_top_srcdir=$srcdir
1530    ac_abs_top_srcdir=$srcdir ;;
1531  *) # Relative name.
1532    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533    ac_top_srcdir=$ac_top_build_prefix$srcdir
1534    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535esac
1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538    cd "$ac_dir" || { ac_status=$?; continue; }
1539    # Check for configure.gnu first; this name is used for a wrapper for
1540    # Metaconfig's "Configure" on case-insensitive file systems.
1541    if test -f "$ac_srcdir/configure.gnu"; then
1542      echo &&
1543      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544    elif test -f "$ac_srcdir/configure"; then
1545      echo &&
1546      $SHELL "$ac_srcdir/configure" --help=recursive
1547    else
1548      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549    fi || ac_status=$?
1550    cd "$ac_pwd" || { ac_status=$?; break; }
1551  done
1552fi
1553
1554test -n "$ac_init_help" && exit $ac_status
1555if $ac_init_version; then
1556  cat <<\_ACEOF
1557iperf configure 3.11
1558generated by GNU Autoconf 2.71
1559
1560Copyright (C) 2021 Free Software Foundation, Inc.
1561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
1563_ACEOF
1564  exit
1565fi
1566
1567## ------------------------ ##
1568## Autoconf initialization. ##
1569## ------------------------ ##
1570
1571# ac_fn_c_try_compile LINENO
1572# --------------------------
1573# Try to compile conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_compile ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext conftest.beam
1578  if { { ac_try="$ac_compile"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584printf "%s\n" "$ac_try_echo"; } >&5
1585  (eval "$ac_compile") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest.$ac_objext
1597then :
1598  ac_retval=0
1599else $as_nop
1600  printf "%s\n" "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603	ac_retval=1
1604fi
1605  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606  as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_compile
1609
1610# ac_fn_c_try_link LINENO
1611# -----------------------
1612# Try to link conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_link ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1617  if { { ac_try="$ac_link"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623printf "%s\n" "$ac_try_echo"; } >&5
1624  (eval "$ac_link") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } && {
1633	 test -z "$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       } && test -s conftest$ac_exeext && {
1636	 test "$cross_compiling" = yes ||
1637	 test -x conftest$ac_exeext
1638       }
1639then :
1640  ac_retval=0
1641else $as_nop
1642  printf "%s\n" "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645	ac_retval=1
1646fi
1647  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649  # interfere with the next link command; also delete a directory that is
1650  # left behind by Apple's compiler.  We do this before executing the actions.
1651  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_c_try_link
1656
1657# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658# -------------------------------------------------------
1659# Tests whether HEADER exists and can be compiled using the include files in
1660# INCLUDES, setting the cache variable VAR accordingly.
1661ac_fn_c_check_header_compile ()
1662{
1663  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665printf %s "checking for $2... " >&6; }
1666if eval test \${$3+y}
1667then :
1668  printf %s "(cached) " >&6
1669else $as_nop
1670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h.  */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"
1676then :
1677  eval "$3=yes"
1678else $as_nop
1679  eval "$3=no"
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1682fi
1683eval ac_res=\$$3
1684	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685printf "%s\n" "$ac_res" >&6; }
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688} # ac_fn_c_check_header_compile
1689
1690# ac_fn_c_check_func LINENO FUNC VAR
1691# ----------------------------------
1692# Tests whether FUNC exists, setting the cache variable VAR accordingly
1693ac_fn_c_check_func ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697printf %s "checking for $2... " >&6; }
1698if eval test \${$3+y}
1699then :
1700  printf %s "(cached) " >&6
1701else $as_nop
1702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h.  */
1704/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1706#define $2 innocuous_$2
1707
1708/* System header to define __stub macros and hopefully few prototypes,
1709   which can conflict with char $2 (); below.  */
1710
1711#include <limits.h>
1712#undef $2
1713
1714/* Override any GCC internal prototype to avoid an error.
1715   Use char because int might match the return type of a GCC
1716   builtin and then its argument prototype would still apply.  */
1717#ifdef __cplusplus
1718extern "C"
1719#endif
1720char $2 ();
1721/* The GNU C library defines this for functions which it implements
1722    to always fail with ENOSYS.  Some functions are actually named
1723    something starting with __ and the normal name is an alias.  */
1724#if defined __stub_$2 || defined __stub___$2
1725choke me
1726#endif
1727
1728int
1729main (void)
1730{
1731return $2 ();
1732  ;
1733  return 0;
1734}
1735_ACEOF
1736if ac_fn_c_try_link "$LINENO"
1737then :
1738  eval "$3=yes"
1739else $as_nop
1740  eval "$3=no"
1741fi
1742rm -f core conftest.err conftest.$ac_objext conftest.beam \
1743    conftest$ac_exeext conftest.$ac_ext
1744fi
1745eval ac_res=\$$3
1746	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747printf "%s\n" "$ac_res" >&6; }
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750} # ac_fn_c_check_func
1751
1752# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1753# ----------------------------------------------------
1754# Tries to find if the field MEMBER exists in type AGGR, after including
1755# INCLUDES, setting cache variable VAR accordingly.
1756ac_fn_c_check_member ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1760printf %s "checking for $2.$3... " >&6; }
1761if eval test \${$4+y}
1762then :
1763  printf %s "(cached) " >&6
1764else $as_nop
1765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767$5
1768int
1769main (void)
1770{
1771static $2 ac_aggr;
1772if (ac_aggr.$3)
1773return 0;
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"
1779then :
1780  eval "$4=yes"
1781else $as_nop
1782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h.  */
1784$5
1785int
1786main (void)
1787{
1788static $2 ac_aggr;
1789if (sizeof ac_aggr.$3)
1790return 0;
1791  ;
1792  return 0;
1793}
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"
1796then :
1797  eval "$4=yes"
1798else $as_nop
1799  eval "$4=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1804fi
1805eval ac_res=\$$4
1806	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807printf "%s\n" "$ac_res" >&6; }
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_member
1811ac_configure_args_raw=
1812for ac_arg
1813do
1814  case $ac_arg in
1815  *\'*)
1816    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817  esac
1818  as_fn_append ac_configure_args_raw " '$ac_arg'"
1819done
1820
1821case $ac_configure_args_raw in
1822  *$as_nl*)
1823    ac_safe_unquote= ;;
1824  *)
1825    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1826    ac_unsafe_a="$ac_unsafe_z#~"
1827    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1828    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1829esac
1830
1831cat >config.log <<_ACEOF
1832This file contains any messages produced by compilers while
1833running configure, to aid debugging if configure makes a mistake.
1834
1835It was created by iperf $as_me 3.11, which was
1836generated by GNU Autoconf 2.71.  Invocation command line was
1837
1838  $ $0$ac_configure_args_raw
1839
1840_ACEOF
1841exec 5>>config.log
1842{
1843cat <<_ASUNAME
1844## --------- ##
1845## Platform. ##
1846## --------- ##
1847
1848hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853
1854/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1856
1857/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1858/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1859/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1861/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1862/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1863/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1864
1865_ASUNAME
1866
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870  IFS=$as_save_IFS
1871  case $as_dir in #(((
1872    '') as_dir=./ ;;
1873    */) ;;
1874    *) as_dir=$as_dir/ ;;
1875  esac
1876    printf "%s\n" "PATH: $as_dir"
1877  done
1878IFS=$as_save_IFS
1879
1880} >&5
1881
1882cat >&5 <<_ACEOF
1883
1884
1885## ----------- ##
1886## Core tests. ##
1887## ----------- ##
1888
1889_ACEOF
1890
1891
1892# Keep a trace of the command line.
1893# Strip out --no-create and --no-recursion so they do not pile up.
1894# Strip out --silent because we don't want to record it for future runs.
1895# Also quote any args containing shell meta-characters.
1896# Make two passes to allow for proper duplicate-argument suppression.
1897ac_configure_args=
1898ac_configure_args0=
1899ac_configure_args1=
1900ac_must_keep_next=false
1901for ac_pass in 1 2
1902do
1903  for ac_arg
1904  do
1905    case $ac_arg in
1906    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908    | -silent | --silent | --silen | --sile | --sil)
1909      continue ;;
1910    *\'*)
1911      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912    esac
1913    case $ac_pass in
1914    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915    2)
1916      as_fn_append ac_configure_args1 " '$ac_arg'"
1917      if test $ac_must_keep_next = true; then
1918	ac_must_keep_next=false # Got value, back to normal.
1919      else
1920	case $ac_arg in
1921	  *=* | --config-cache | -C | -disable-* | --disable-* \
1922	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924	  | -with-* | --with-* | -without-* | --without-* | --x)
1925	    case "$ac_configure_args0 " in
1926	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927	    esac
1928	    ;;
1929	  -* ) ac_must_keep_next=true ;;
1930	esac
1931      fi
1932      as_fn_append ac_configure_args " '$ac_arg'"
1933      ;;
1934    esac
1935  done
1936done
1937{ ac_configure_args0=; unset ac_configure_args0;}
1938{ ac_configure_args1=; unset ac_configure_args1;}
1939
1940# When interrupted or exit'd, cleanup temporary files, and complete
1941# config.log.  We remove comments because anyway the quotes in there
1942# would cause problems or look ugly.
1943# WARNING: Use '\'' to represent an apostrophe within the trap.
1944# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945trap 'exit_status=$?
1946  # Sanitize IFS.
1947  IFS=" ""	$as_nl"
1948  # Save into config.log some information that might help in debugging.
1949  {
1950    echo
1951
1952    printf "%s\n" "## ---------------- ##
1953## Cache variables. ##
1954## ---------------- ##"
1955    echo
1956    # The following way of writing the cache mishandles newlines in values,
1957(
1958  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959    eval ac_val=\$$ac_var
1960    case $ac_val in #(
1961    *${as_nl}*)
1962      case $ac_var in #(
1963      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965      esac
1966      case $ac_var in #(
1967      _ | IFS | as_nl) ;; #(
1968      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969      *) { eval $ac_var=; unset $ac_var;} ;;
1970      esac ;;
1971    esac
1972  done
1973  (set) 2>&1 |
1974    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975    *${as_nl}ac_space=\ *)
1976      sed -n \
1977	"s/'\''/'\''\\\\'\'''\''/g;
1978	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979      ;; #(
1980    *)
1981      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982      ;;
1983    esac |
1984    sort
1985)
1986    echo
1987
1988    printf "%s\n" "## ----------------- ##
1989## Output variables. ##
1990## ----------------- ##"
1991    echo
1992    for ac_var in $ac_subst_vars
1993    do
1994      eval ac_val=\$$ac_var
1995      case $ac_val in
1996      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997      esac
1998      printf "%s\n" "$ac_var='\''$ac_val'\''"
1999    done | sort
2000    echo
2001
2002    if test -n "$ac_subst_files"; then
2003      printf "%s\n" "## ------------------- ##
2004## File substitutions. ##
2005## ------------------- ##"
2006      echo
2007      for ac_var in $ac_subst_files
2008      do
2009	eval ac_val=\$$ac_var
2010	case $ac_val in
2011	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012	esac
2013	printf "%s\n" "$ac_var='\''$ac_val'\''"
2014      done | sort
2015      echo
2016    fi
2017
2018    if test -s confdefs.h; then
2019      printf "%s\n" "## ----------- ##
2020## confdefs.h. ##
2021## ----------- ##"
2022      echo
2023      cat confdefs.h
2024      echo
2025    fi
2026    test "$ac_signal" != 0 &&
2027      printf "%s\n" "$as_me: caught signal $ac_signal"
2028    printf "%s\n" "$as_me: exit $exit_status"
2029  } >&5
2030  rm -f core *.core core.conftest.* &&
2031    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032    exit $exit_status
2033' 0
2034for ac_signal in 1 2 13 15; do
2035  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036done
2037ac_signal=0
2038
2039# confdefs.h avoids OS command line length limits that DEFS can exceed.
2040rm -f -r conftest* confdefs.h
2041
2042printf "%s\n" "/* confdefs.h */" > confdefs.h
2043
2044# Predefined preprocessor variables.
2045
2046printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2047
2048printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2049
2050printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2051
2052printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2053
2054printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2055
2056printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2057
2058
2059# Let the site file select an alternate cache file if it wants to.
2060# Prefer an explicitly selected file to automatically selected ones.
2061if test -n "$CONFIG_SITE"; then
2062  ac_site_files="$CONFIG_SITE"
2063elif test "x$prefix" != xNONE; then
2064  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2065else
2066  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2067fi
2068
2069for ac_site_file in $ac_site_files
2070do
2071  case $ac_site_file in #(
2072  */*) :
2073     ;; #(
2074  *) :
2075    ac_site_file=./$ac_site_file ;;
2076esac
2077  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2078    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2079printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2080    sed 's/^/| /' "$ac_site_file" >&5
2081    . "$ac_site_file" \
2082      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2083printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2084as_fn_error $? "failed to load site script $ac_site_file
2085See \`config.log' for more details" "$LINENO" 5; }
2086  fi
2087done
2088
2089if test -r "$cache_file"; then
2090  # Some versions of bash will fail to source /dev/null (special files
2091  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2092  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2093    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2095    case $cache_file in
2096      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097      *)                      . "./$cache_file";;
2098    esac
2099  fi
2100else
2101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2103  >$cache_file
2104fi
2105
2106# Test code for whether the C compiler supports C89 (global declarations)
2107ac_c_conftest_c89_globals='
2108/* Does the compiler advertise C89 conformance?
2109   Do not test the value of __STDC__, because some compilers set it to 0
2110   while being otherwise adequately conformant. */
2111#if !defined __STDC__
2112# error "Compiler does not advertise C89 conformance"
2113#endif
2114
2115#include <stddef.h>
2116#include <stdarg.h>
2117struct stat;
2118/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2119struct buf { int x; };
2120struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2121static char *e (p, i)
2122     char **p;
2123     int i;
2124{
2125  return p[i];
2126}
2127static char *f (char * (*g) (char **, int), char **p, ...)
2128{
2129  char *s;
2130  va_list v;
2131  va_start (v,p);
2132  s = g (p, va_arg (v,int));
2133  va_end (v);
2134  return s;
2135}
2136
2137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2138   function prototypes and stuff, but not \xHH hex character constants.
2139   These do not provoke an error unfortunately, instead are silently treated
2140   as an "x".  The following induces an error, until -std is added to get
2141   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2142   array size at least.  It is necessary to write \x00 == 0 to get something
2143   that is true only with -std.  */
2144int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2145
2146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2147   inside strings and character constants.  */
2148#define FOO(x) '\''x'\''
2149int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2150
2151int test (int i, double x);
2152struct s1 {int (*f) (int a);};
2153struct s2 {int (*f) (double a);};
2154int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2155               int, int);'
2156
2157# Test code for whether the C compiler supports C89 (body of main).
2158ac_c_conftest_c89_main='
2159ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2160'
2161
2162# Test code for whether the C compiler supports C99 (global declarations)
2163ac_c_conftest_c99_globals='
2164// Does the compiler advertise C99 conformance?
2165#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2166# error "Compiler does not advertise C99 conformance"
2167#endif
2168
2169#include <stdbool.h>
2170extern int puts (const char *);
2171extern int printf (const char *, ...);
2172extern int dprintf (int, const char *, ...);
2173extern void *malloc (size_t);
2174
2175// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2176// dprintf is used instead of fprintf to avoid needing to declare
2177// FILE and stderr.
2178#define debug(...) dprintf (2, __VA_ARGS__)
2179#define showlist(...) puts (#__VA_ARGS__)
2180#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2181static void
2182test_varargs_macros (void)
2183{
2184  int x = 1234;
2185  int y = 5678;
2186  debug ("Flag");
2187  debug ("X = %d\n", x);
2188  showlist (The first, second, and third items.);
2189  report (x>y, "x is %d but y is %d", x, y);
2190}
2191
2192// Check long long types.
2193#define BIG64 18446744073709551615ull
2194#define BIG32 4294967295ul
2195#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2196#if !BIG_OK
2197  #error "your preprocessor is broken"
2198#endif
2199#if BIG_OK
2200#else
2201  #error "your preprocessor is broken"
2202#endif
2203static long long int bignum = -9223372036854775807LL;
2204static unsigned long long int ubignum = BIG64;
2205
2206struct incomplete_array
2207{
2208  int datasize;
2209  double data[];
2210};
2211
2212struct named_init {
2213  int number;
2214  const wchar_t *name;
2215  double average;
2216};
2217
2218typedef const char *ccp;
2219
2220static inline int
2221test_restrict (ccp restrict text)
2222{
2223  // See if C++-style comments work.
2224  // Iterate through items via the restricted pointer.
2225  // Also check for declarations in for loops.
2226  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2227    continue;
2228  return 0;
2229}
2230
2231// Check varargs and va_copy.
2232static bool
2233test_varargs (const char *format, ...)
2234{
2235  va_list args;
2236  va_start (args, format);
2237  va_list args_copy;
2238  va_copy (args_copy, args);
2239
2240  const char *str = "";
2241  int number = 0;
2242  float fnumber = 0;
2243
2244  while (*format)
2245    {
2246      switch (*format++)
2247	{
2248	case '\''s'\'': // string
2249	  str = va_arg (args_copy, const char *);
2250	  break;
2251	case '\''d'\'': // int
2252	  number = va_arg (args_copy, int);
2253	  break;
2254	case '\''f'\'': // float
2255	  fnumber = va_arg (args_copy, double);
2256	  break;
2257	default:
2258	  break;
2259	}
2260    }
2261  va_end (args_copy);
2262  va_end (args);
2263
2264  return *str && number && fnumber;
2265}
2266'
2267
2268# Test code for whether the C compiler supports C99 (body of main).
2269ac_c_conftest_c99_main='
2270  // Check bool.
2271  _Bool success = false;
2272  success |= (argc != 0);
2273
2274  // Check restrict.
2275  if (test_restrict ("String literal") == 0)
2276    success = true;
2277  char *restrict newvar = "Another string";
2278
2279  // Check varargs.
2280  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2281  test_varargs_macros ();
2282
2283  // Check flexible array members.
2284  struct incomplete_array *ia =
2285    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2286  ia->datasize = 10;
2287  for (int i = 0; i < ia->datasize; ++i)
2288    ia->data[i] = i * 1.234;
2289
2290  // Check named initializers.
2291  struct named_init ni = {
2292    .number = 34,
2293    .name = L"Test wide string",
2294    .average = 543.34343,
2295  };
2296
2297  ni.number = 58;
2298
2299  int dynamic_array[ni.number];
2300  dynamic_array[0] = argv[0][0];
2301  dynamic_array[ni.number - 1] = 543;
2302
2303  // work around unused variable warnings
2304  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2305	 || dynamic_array[ni.number - 1] != 543);
2306'
2307
2308# Test code for whether the C compiler supports C11 (global declarations)
2309ac_c_conftest_c11_globals='
2310// Does the compiler advertise C11 conformance?
2311#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2312# error "Compiler does not advertise C11 conformance"
2313#endif
2314
2315// Check _Alignas.
2316char _Alignas (double) aligned_as_double;
2317char _Alignas (0) no_special_alignment;
2318extern char aligned_as_int;
2319char _Alignas (0) _Alignas (int) aligned_as_int;
2320
2321// Check _Alignof.
2322enum
2323{
2324  int_alignment = _Alignof (int),
2325  int_array_alignment = _Alignof (int[100]),
2326  char_alignment = _Alignof (char)
2327};
2328_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2329
2330// Check _Noreturn.
2331int _Noreturn does_not_return (void) { for (;;) continue; }
2332
2333// Check _Static_assert.
2334struct test_static_assert
2335{
2336  int x;
2337  _Static_assert (sizeof (int) <= sizeof (long int),
2338                  "_Static_assert does not work in struct");
2339  long int y;
2340};
2341
2342// Check UTF-8 literals.
2343#define u8 syntax error!
2344char const utf8_literal[] = u8"happens to be ASCII" "another string";
2345
2346// Check duplicate typedefs.
2347typedef long *long_ptr;
2348typedef long int *long_ptr;
2349typedef long_ptr long_ptr;
2350
2351// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2352struct anonymous
2353{
2354  union {
2355    struct { int i; int j; };
2356    struct { int k; long int l; } w;
2357  };
2358  int m;
2359} v1;
2360'
2361
2362# Test code for whether the C compiler supports C11 (body of main).
2363ac_c_conftest_c11_main='
2364  _Static_assert ((offsetof (struct anonymous, i)
2365		   == offsetof (struct anonymous, w.k)),
2366		  "Anonymous union alignment botch");
2367  v1.i = 2;
2368  v1.w.k = 5;
2369  ok |= v1.i != 5;
2370'
2371
2372# Test code for whether the C compiler supports C11 (complete).
2373ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2374${ac_c_conftest_c99_globals}
2375${ac_c_conftest_c11_globals}
2376
2377int
2378main (int argc, char **argv)
2379{
2380  int ok = 0;
2381  ${ac_c_conftest_c89_main}
2382  ${ac_c_conftest_c99_main}
2383  ${ac_c_conftest_c11_main}
2384  return ok;
2385}
2386"
2387
2388# Test code for whether the C compiler supports C99 (complete).
2389ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2390${ac_c_conftest_c99_globals}
2391
2392int
2393main (int argc, char **argv)
2394{
2395  int ok = 0;
2396  ${ac_c_conftest_c89_main}
2397  ${ac_c_conftest_c99_main}
2398  return ok;
2399}
2400"
2401
2402# Test code for whether the C compiler supports C89 (complete).
2403ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2404
2405int
2406main (int argc, char **argv)
2407{
2408  int ok = 0;
2409  ${ac_c_conftest_c89_main}
2410  return ok;
2411}
2412"
2413
2414as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2415as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2416as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2417as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2418as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2419as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2420as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2421as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2422as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2423
2424# Auxiliary files required by this configure script.
2425ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2426
2427# Locations in which to look for auxiliary files.
2428ac_aux_dir_candidates="${srcdir}/config"
2429
2430# Search for a directory containing all of the required auxiliary files,
2431# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2432# If we don't find one directory that contains all the files we need,
2433# we report the set of missing files from the *first* directory in
2434# $ac_aux_dir_candidates and give up.
2435ac_missing_aux_files=""
2436ac_first_candidate=:
2437printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439as_found=false
2440for as_dir in $ac_aux_dir_candidates
2441do
2442  IFS=$as_save_IFS
2443  case $as_dir in #(((
2444    '') as_dir=./ ;;
2445    */) ;;
2446    *) as_dir=$as_dir/ ;;
2447  esac
2448  as_found=:
2449
2450  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2451  ac_aux_dir_found=yes
2452  ac_install_sh=
2453  for ac_aux in $ac_aux_files
2454  do
2455    # As a special case, if "install-sh" is required, that requirement
2456    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2457    # and $ac_install_sh is set appropriately for whichever one is found.
2458    if test x"$ac_aux" = x"install-sh"
2459    then
2460      if 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}install.sh"; then
2464        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2465        ac_install_sh="${as_dir}install.sh -c"
2466      elif test -f "${as_dir}shtool"; then
2467        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2468        ac_install_sh="${as_dir}shtool install -c"
2469      else
2470        ac_aux_dir_found=no
2471        if $ac_first_candidate; then
2472          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2473        else
2474          break
2475        fi
2476      fi
2477    else
2478      if test -f "${as_dir}${ac_aux}"; then
2479        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2480      else
2481        ac_aux_dir_found=no
2482        if $ac_first_candidate; then
2483          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2484        else
2485          break
2486        fi
2487      fi
2488    fi
2489  done
2490  if test "$ac_aux_dir_found" = yes; then
2491    ac_aux_dir="$as_dir"
2492    break
2493  fi
2494  ac_first_candidate=false
2495
2496  as_found=false
2497done
2498IFS=$as_save_IFS
2499if $as_found
2500then :
2501
2502else $as_nop
2503  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2504fi
2505
2506
2507# These three variables are undocumented and unsupported,
2508# and are intended to be withdrawn in a future Autoconf release.
2509# They can cause serious problems if a builder's source tree is in a directory
2510# whose full name contains unusual characters.
2511if test -f "${ac_aux_dir}config.guess"; then
2512  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2513fi
2514if test -f "${ac_aux_dir}config.sub"; then
2515  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2516fi
2517if test -f "$ac_aux_dir/configure"; then
2518  ac_configure="$SHELL ${ac_aux_dir}configure"
2519fi
2520
2521# Check that the precious variables saved in the cache have kept the same
2522# value.
2523ac_cache_corrupted=false
2524for ac_var in $ac_precious_vars; do
2525  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526  eval ac_new_set=\$ac_env_${ac_var}_set
2527  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528  eval ac_new_val=\$ac_env_${ac_var}_value
2529  case $ac_old_set,$ac_new_set in
2530    set,)
2531      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2532printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2533      ac_cache_corrupted=: ;;
2534    ,set)
2535      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2536printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2537      ac_cache_corrupted=: ;;
2538    ,);;
2539    *)
2540      if test "x$ac_old_val" != "x$ac_new_val"; then
2541	# differences in whitespace do not lead to failure.
2542	ac_old_val_w=`echo x $ac_old_val`
2543	ac_new_val_w=`echo x $ac_new_val`
2544	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2546printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2547	  ac_cache_corrupted=:
2548	else
2549	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2550printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2551	  eval $ac_var=\$ac_old_val
2552	fi
2553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2554printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2556printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2557      fi;;
2558  esac
2559  # Pass precious variables to config.status.
2560  if test "$ac_new_set" = set; then
2561    case $ac_new_val in
2562    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563    *) ac_arg=$ac_var=$ac_new_val ;;
2564    esac
2565    case " $ac_configure_args " in
2566      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2567      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568    esac
2569  fi
2570done
2571if $ac_cache_corrupted; then
2572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2576  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2577	    and start over" "$LINENO" 5
2578fi
2579## -------------------- ##
2580## Main body of script. ##
2581## -------------------- ##
2582
2583ac_ext=c
2584ac_cpp='$CPP $CPPFLAGS'
2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590# ===========================================================================
2591#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2592# ===========================================================================
2593#
2594# SYNOPSIS
2595#
2596#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2597#
2598# DESCRIPTION
2599#
2600#   Look for OpenSSL in a number of default spots, or in a user-selected
2601#   spot (via --with-openssl).  Sets
2602#
2603#     OPENSSL_INCLUDES to the include directives required
2604#     OPENSSL_LIBS to the -l directives required
2605#     OPENSSL_LDFLAGS to the -L or -R flags required
2606#
2607#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2608#
2609#   This macro sets OPENSSL_INCLUDES such that source files should use the
2610#   openssl/ directory in include directives:
2611#
2612#     #include <openssl/hmac.h>
2613#
2614# LICENSE
2615#
2616#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2617#   Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]>
2618#
2619#   Copying and distribution of this file, with or without modification, are
2620#   permitted in any medium without royalty provided the copyright notice
2621#   and this notice are preserved. This file is offered as-is, without any
2622#   warranty.
2623
2624#serial 10
2625
2626# This is what autoupdate's m4 run will expand.  It fires the warning
2627# (with _au_warn_XXX), outputs it into the updated configure.ac (with
2628# m4_warn), and then outputs the replacement expansion.  We need extra
2629# quotation around the m4_warn and dnl so they will be written
2630# unexpanded into the updated configure.ac.
2631
2632
2633# This is an auxiliary macro that is also run when
2634# autoupdate runs m4.  It simply calls m4_warning, but
2635# we need a wrapper so that each warning is emitted only
2636# once.  We break the quoting in m4_warning's argument in
2637# order to expand this macro's arguments, not AU_DEFUN's.
2638
2639
2640# Finally, this is the expansion that is picked up by
2641# autoconf, causing NAME to expand to NEW-CODE, plus
2642# (if SILENT is not "silent") a m4_warning telling the
2643# maintainer to run autoupdate.  We don't issue MESSAGE
2644# from autoconf, because that's instructions for what
2645# to do *after* running autoupdate.
2646
2647
2648
2649# Also link binaries as static
2650# Check whether --enable-static-bin was given.
2651if test ${enable_static_bin+y}
2652then :
2653  enableval=$enable_static_bin; enable_static=yes
2654     enable_shared=no
2655     enable_static_bin=yes
2656else $as_nop
2657  :
2658fi
2659
2660 if test x$enable_static_bin = xno; then
2661  ENABLE_STATIC_BIN_TRUE=
2662  ENABLE_STATIC_BIN_FALSE='#'
2663else
2664  ENABLE_STATIC_BIN_TRUE='#'
2665  ENABLE_STATIC_BIN_FALSE=
2666fi
2667
2668
2669if test "x$enable_static_bin" == xyes
2670then :
2671  LDFLAGS="$LDFLAGS --static"
2672
2673fi
2674
2675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681
2682# Specify where the auxiliary files created by configure should go. The config
2683# directory is picked so that they don't clutter up more useful directories.
2684
2685
2686
2687# Initialize the automake system
2688am__api_version='1.16'
2689
2690
2691
2692  # Find a good install program.  We prefer a C program (faster),
2693# so one script is as good as another.  But avoid the broken or
2694# incompatible versions:
2695# SysV /etc/install, /usr/sbin/install
2696# SunOS /usr/etc/install
2697# IRIX /sbin/install
2698# AIX /bin/install
2699# AmigaOS /C/install, which installs bootblocks on floppy discs
2700# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703# OS/2's system install, which has a completely different semantic
2704# ./install, which can be erroneously created by make from ./install.sh.
2705# Reject install programs that cannot install multiple files.
2706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2707printf %s "checking for a BSD-compatible install... " >&6; }
2708if test -z "$INSTALL"; then
2709if test ${ac_cv_path_install+y}
2710then :
2711  printf %s "(cached) " >&6
2712else $as_nop
2713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  case $as_dir in #(((
2718    '') as_dir=./ ;;
2719    */) ;;
2720    *) as_dir=$as_dir/ ;;
2721  esac
2722    # Account for fact that we put trailing slashes in our PATH walk.
2723case $as_dir in #((
2724  ./ | /[cC]/* | \
2725  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2726  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2727  /usr/ucb/* ) ;;
2728  *)
2729    # OSF1 and SCO ODT 3.0 have their own names for install.
2730    # Don't use installbsd from OSF since it installs stuff as root
2731    # by default.
2732    for ac_prog in ginstall scoinst install; do
2733      for ac_exec_ext in '' $ac_executable_extensions; do
2734	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2735	  if test $ac_prog = install &&
2736	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737	    # AIX install.  It has an incompatible calling convention.
2738	    :
2739	  elif test $ac_prog = install &&
2740	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741	    # program-specific install script used by HP pwplus--don't use.
2742	    :
2743	  else
2744	    rm -rf conftest.one conftest.two conftest.dir
2745	    echo one > conftest.one
2746	    echo two > conftest.two
2747	    mkdir conftest.dir
2748	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2749	      test -s conftest.one && test -s conftest.two &&
2750	      test -s conftest.dir/conftest.one &&
2751	      test -s conftest.dir/conftest.two
2752	    then
2753	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2754	      break 3
2755	    fi
2756	  fi
2757	fi
2758      done
2759    done
2760    ;;
2761esac
2762
2763  done
2764IFS=$as_save_IFS
2765
2766rm -rf conftest.one conftest.two conftest.dir
2767
2768fi
2769  if test ${ac_cv_path_install+y}; then
2770    INSTALL=$ac_cv_path_install
2771  else
2772    # As a last resort, use the slow shell script.  Don't cache a
2773    # value for INSTALL within a source directory, because that will
2774    # break other packages using the cache if that directory is
2775    # removed, or if the value is a relative name.
2776    INSTALL=$ac_install_sh
2777  fi
2778fi
2779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2780printf "%s\n" "$INSTALL" >&6; }
2781
2782# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2783# It thinks the first close brace ends the variable substitution.
2784test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2785
2786test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2787
2788test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2789
2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2791printf %s "checking whether build environment is sane... " >&6; }
2792# Reject unsafe characters in $srcdir or the absolute working directory
2793# name.  Accept space and tab only in the latter.
2794am_lf='
2795'
2796case `pwd` in
2797  *[\\\"\#\$\&\'\`$am_lf]*)
2798    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2799esac
2800case $srcdir in
2801  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2802    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2803esac
2804
2805# Do 'set' in a subshell so we don't clobber the current shell's
2806# arguments.  Must try -L first in case configure is actually a
2807# symlink; some systems play weird games with the mod time of symlinks
2808# (eg FreeBSD returns the mod time of the symlink's containing
2809# directory).
2810if (
2811   am_has_slept=no
2812   for am_try in 1 2; do
2813     echo "timestamp, slept: $am_has_slept" > conftest.file
2814     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2815     if test "$*" = "X"; then
2816	# -L didn't work.
2817	set X `ls -t "$srcdir/configure" conftest.file`
2818     fi
2819     if test "$*" != "X $srcdir/configure conftest.file" \
2820	&& test "$*" != "X conftest.file $srcdir/configure"; then
2821
2822	# If neither matched, then we have a broken ls.  This can happen
2823	# if, for instance, CONFIG_SHELL is bash and it inherits a
2824	# broken ls alias from the environment.  This has actually
2825	# happened.  Such a system could not be considered "sane".
2826	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2827  alias in your environment" "$LINENO" 5
2828     fi
2829     if test "$2" = conftest.file || test $am_try -eq 2; then
2830       break
2831     fi
2832     # Just in case.
2833     sleep 1
2834     am_has_slept=yes
2835   done
2836   test "$2" = conftest.file
2837   )
2838then
2839   # Ok.
2840   :
2841else
2842   as_fn_error $? "newly created file is older than distributed files!
2843Check your system clock" "$LINENO" 5
2844fi
2845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846printf "%s\n" "yes" >&6; }
2847# If we didn't sleep, we still need to ensure time stamps of config.status and
2848# generated files are strictly newer.
2849am_sleep_pid=
2850if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2851  ( sleep 1 ) &
2852  am_sleep_pid=$!
2853fi
2854
2855rm -f conftest.file
2856
2857test "$program_prefix" != NONE &&
2858  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2859# Use a double $ so make ignores it.
2860test "$program_suffix" != NONE &&
2861  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2862# Double any \ or $.
2863# By default was `s,x,x', remove it if useless.
2864ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2865program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2866
2867
2868# Expand $ac_aux_dir to an absolute path.
2869am_aux_dir=`cd "$ac_aux_dir" && pwd`
2870
2871
2872  if test x"${MISSING+set}" != xset; then
2873  MISSING="\${SHELL} '$am_aux_dir/missing'"
2874fi
2875# Use eval to expand $SHELL
2876if eval "$MISSING --is-lightweight"; then
2877  am_missing_run="$MISSING "
2878else
2879  am_missing_run=
2880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2881printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2882fi
2883
2884if test x"${install_sh+set}" != xset; then
2885  case $am_aux_dir in
2886  *\ * | *\	*)
2887    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2888  *)
2889    install_sh="\${SHELL} $am_aux_dir/install-sh"
2890  esac
2891fi
2892
2893# Installed binaries are usually stripped using 'strip' when the user
2894# run "make install-strip".  However 'strip' might not be the right
2895# tool to use in cross-compilation environments, therefore Automake
2896# will honor the 'STRIP' environment variable to overrule this program.
2897if test "$cross_compiling" != no; then
2898  if test -n "$ac_tool_prefix"; then
2899  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2900set dummy ${ac_tool_prefix}strip; ac_word=$2
2901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902printf %s "checking for $ac_word... " >&6; }
2903if test ${ac_cv_prog_STRIP+y}
2904then :
2905  printf %s "(cached) " >&6
2906else $as_nop
2907  if test -n "$STRIP"; then
2908  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913  IFS=$as_save_IFS
2914  case $as_dir in #(((
2915    '') as_dir=./ ;;
2916    */) ;;
2917    *) as_dir=$as_dir/ ;;
2918  esac
2919    for ac_exec_ext in '' $ac_executable_extensions; do
2920  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2921    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2922    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2923    break 2
2924  fi
2925done
2926  done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931STRIP=$ac_cv_prog_STRIP
2932if test -n "$STRIP"; then
2933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2934printf "%s\n" "$STRIP" >&6; }
2935else
2936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937printf "%s\n" "no" >&6; }
2938fi
2939
2940
2941fi
2942if test -z "$ac_cv_prog_STRIP"; then
2943  ac_ct_STRIP=$STRIP
2944  # Extract the first word of "strip", so it can be a program name with args.
2945set dummy strip; ac_word=$2
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947printf %s "checking for $ac_word... " >&6; }
2948if test ${ac_cv_prog_ac_ct_STRIP+y}
2949then :
2950  printf %s "(cached) " >&6
2951else $as_nop
2952  if test -n "$ac_ct_STRIP"; then
2953  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_STRIP="strip"
2967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2977if test -n "$ac_ct_STRIP"; then
2978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979printf "%s\n" "$ac_ct_STRIP" >&6; }
2980else
2981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982printf "%s\n" "no" >&6; }
2983fi
2984
2985  if test "x$ac_ct_STRIP" = x; then
2986    STRIP=":"
2987  else
2988    case $cross_compiling:$ac_tool_warned in
2989yes:)
2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992ac_tool_warned=yes ;;
2993esac
2994    STRIP=$ac_ct_STRIP
2995  fi
2996else
2997  STRIP="$ac_cv_prog_STRIP"
2998fi
2999
3000fi
3001INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002
3003
3004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3005printf %s "checking for a race-free mkdir -p... " >&6; }
3006if test -z "$MKDIR_P"; then
3007  if test ${ac_cv_path_mkdir+y}
3008then :
3009  printf %s "(cached) " >&6
3010else $as_nop
3011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3013do
3014  IFS=$as_save_IFS
3015  case $as_dir in #(((
3016    '') as_dir=./ ;;
3017    */) ;;
3018    *) as_dir=$as_dir/ ;;
3019  esac
3020    for ac_prog in mkdir gmkdir; do
3021	 for ac_exec_ext in '' $ac_executable_extensions; do
3022	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3023	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3024	     'mkdir ('*'coreutils) '* | \
3025	     'BusyBox '* | \
3026	     'mkdir (fileutils) '4.1*)
3027	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3028	       break 3;;
3029	   esac
3030	 done
3031       done
3032  done
3033IFS=$as_save_IFS
3034
3035fi
3036
3037  test -d ./--version && rmdir ./--version
3038  if test ${ac_cv_path_mkdir+y}; then
3039    MKDIR_P="$ac_cv_path_mkdir -p"
3040  else
3041    # As a last resort, use the slow shell script.  Don't cache a
3042    # value for MKDIR_P within a source directory, because that will
3043    # break other packages using the cache if that directory is
3044    # removed, or if the value is a relative name.
3045    MKDIR_P="$ac_install_sh -d"
3046  fi
3047fi
3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3049printf "%s\n" "$MKDIR_P" >&6; }
3050
3051for ac_prog in gawk mawk nawk awk
3052do
3053  # Extract the first word of "$ac_prog", so it can be a program name with args.
3054set dummy $ac_prog; ac_word=$2
3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056printf %s "checking for $ac_word... " >&6; }
3057if test ${ac_cv_prog_AWK+y}
3058then :
3059  printf %s "(cached) " >&6
3060else $as_nop
3061  if test -n "$AWK"; then
3062  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  case $as_dir in #(((
3069    '') as_dir=./ ;;
3070    */) ;;
3071    *) as_dir=$as_dir/ ;;
3072  esac
3073    for ac_exec_ext in '' $ac_executable_extensions; do
3074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075    ac_cv_prog_AWK="$ac_prog"
3076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083fi
3084fi
3085AWK=$ac_cv_prog_AWK
3086if test -n "$AWK"; then
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3088printf "%s\n" "$AWK" >&6; }
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092fi
3093
3094
3095  test -n "$AWK" && break
3096done
3097
3098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3099printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3100set x ${MAKE-make}
3101ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3102if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3103then :
3104  printf %s "(cached) " >&6
3105else $as_nop
3106  cat >conftest.make <<\_ACEOF
3107SHELL = /bin/sh
3108all:
3109	@echo '@@@%%%=$(MAKE)=@@@%%%'
3110_ACEOF
3111# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3112case `${MAKE-make} -f conftest.make 2>/dev/null` in
3113  *@@@%%%=?*=@@@%%%*)
3114    eval ac_cv_prog_make_${ac_make}_set=yes;;
3115  *)
3116    eval ac_cv_prog_make_${ac_make}_set=no;;
3117esac
3118rm -f conftest.make
3119fi
3120if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122printf "%s\n" "yes" >&6; }
3123  SET_MAKE=
3124else
3125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126printf "%s\n" "no" >&6; }
3127  SET_MAKE="MAKE=${MAKE-make}"
3128fi
3129
3130rm -rf .tst 2>/dev/null
3131mkdir .tst 2>/dev/null
3132if test -d .tst; then
3133  am__leading_dot=.
3134else
3135  am__leading_dot=_
3136fi
3137rmdir .tst 2>/dev/null
3138
3139# Check whether --enable-silent-rules was given.
3140if test ${enable_silent_rules+y}
3141then :
3142  enableval=$enable_silent_rules;
3143fi
3144
3145case $enable_silent_rules in # (((
3146  yes) AM_DEFAULT_VERBOSITY=0;;
3147   no) AM_DEFAULT_VERBOSITY=1;;
3148    *) AM_DEFAULT_VERBOSITY=1;;
3149esac
3150am_make=${MAKE-make}
3151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3152printf %s "checking whether $am_make supports nested variables... " >&6; }
3153if test ${am_cv_make_support_nested_variables+y}
3154then :
3155  printf %s "(cached) " >&6
3156else $as_nop
3157  if printf "%s\n" 'TRUE=$(BAR$(V))
3158BAR0=false
3159BAR1=true
3160V=1
3161am__doit:
3162	@$(TRUE)
3163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3164  am_cv_make_support_nested_variables=yes
3165else
3166  am_cv_make_support_nested_variables=no
3167fi
3168fi
3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3170printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3171if test $am_cv_make_support_nested_variables = yes; then
3172    AM_V='$(V)'
3173  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3174else
3175  AM_V=$AM_DEFAULT_VERBOSITY
3176  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3177fi
3178AM_BACKSLASH='\'
3179
3180if test "`cd $srcdir && pwd`" != "`pwd`"; then
3181  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3182  # is not polluted with repeated "-I."
3183  am__isrc=' -I$(srcdir)'
3184  # test to see if srcdir already configured
3185  if test -f $srcdir/config.status; then
3186    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187  fi
3188fi
3189
3190# test whether we have cygpath
3191if test -z "$CYGPATH_W"; then
3192  if (cygpath --version) >/dev/null 2>/dev/null; then
3193    CYGPATH_W='cygpath -w'
3194  else
3195    CYGPATH_W=echo
3196  fi
3197fi
3198
3199
3200# Define the identity of the package.
3201 PACKAGE='iperf'
3202 VERSION='3.11'
3203
3204
3205printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3206
3207
3208printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3209
3210# Some tools Automake needs.
3211
3212ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3213
3214
3215AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3216
3217
3218AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3219
3220
3221AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3222
3223
3224MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3225
3226# For better backward compatibility.  To be removed once Automake 1.9.x
3227# dies out for good.  For more background, see:
3228# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3229# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3230mkdir_p='$(MKDIR_P)'
3231
3232# We need awk for the "check" target (and possibly the TAP driver).  The
3233# system "awk" is bad on some platforms.
3234# Always define AMTAR for backward compatibility.  Yes, it's still used
3235# in the wild :-(  We should find a proper way to deprecate it ...
3236AMTAR='$${TAR-tar}'
3237
3238
3239# We'll loop over all known methods to create a tar archive until one works.
3240_am_tools='gnutar  pax cpio none'
3241
3242am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3243
3244
3245
3246
3247
3248# Variables for tags utilities; see am/tags.am
3249if test -z "$CTAGS"; then
3250  CTAGS=ctags
3251fi
3252
3253if test -z "$ETAGS"; then
3254  ETAGS=etags
3255fi
3256
3257if test -z "$CSCOPE"; then
3258  CSCOPE=cscope
3259fi
3260
3261
3262
3263# POSIX will say in a future version that running "rm -f" with no argument
3264# is OK; and we want to be able to make that assumption in our Makefile
3265# recipes.  So use an aggressive probe to check that the usage we want is
3266# actually supported "in the wild" to an acceptable degree.
3267# See automake bug#10828.
3268# To make any issue more visible, cause the running configure to be aborted
3269# by default if the 'rm' program in use doesn't match our expectations; the
3270# user can still override this though.
3271if rm -f && rm -fr && rm -rf; then : OK; else
3272  cat >&2 <<'END'
3273Oops!
3274
3275Your 'rm' program seems unable to run without file operands specified
3276on the command line, even when the '-f' option is present.  This is contrary
3277to the behaviour of most rm programs out there, and not conforming with
3278the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3279
3280Please tell bug-automake@gnu.org about your system, including the value
3281of your $PATH and any error possibly output before this message.  This
3282can help us improve future automake versions.
3283
3284END
3285  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3286    echo 'Configuration will proceed anyway, since you have set the' >&2
3287    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3288    echo >&2
3289  else
3290    cat >&2 <<'END'
3291Aborting the configuration process, to ensure you take notice of the issue.
3292
3293You can download and install GNU coreutils to get an 'rm' implementation
3294that behaves properly: <https://www.gnu.org/software/coreutils/>.
3295
3296If you want to complete the configuration process using your problematic
3297'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3298to "yes", and re-run configure.
3299
3300END
3301    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3302  fi
3303fi
3304
3305# Check whether --enable-silent-rules was given.
3306if test ${enable_silent_rules+y}
3307then :
3308  enableval=$enable_silent_rules;
3309fi
3310
3311case $enable_silent_rules in # (((
3312  yes) AM_DEFAULT_VERBOSITY=0;;
3313   no) AM_DEFAULT_VERBOSITY=1;;
3314    *) AM_DEFAULT_VERBOSITY=0;;
3315esac
3316am_make=${MAKE-make}
3317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3318printf %s "checking whether $am_make supports nested variables... " >&6; }
3319if test ${am_cv_make_support_nested_variables+y}
3320then :
3321  printf %s "(cached) " >&6
3322else $as_nop
3323  if printf "%s\n" 'TRUE=$(BAR$(V))
3324BAR0=false
3325BAR1=true
3326V=1
3327am__doit:
3328	@$(TRUE)
3329.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3330  am_cv_make_support_nested_variables=yes
3331else
3332  am_cv_make_support_nested_variables=no
3333fi
3334fi
3335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3336printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3337if test $am_cv_make_support_nested_variables = yes; then
3338    AM_V='$(V)'
3339  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3340else
3341  AM_V=$AM_DEFAULT_VERBOSITY
3342  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3343fi
3344AM_BACKSLASH='\'
3345
3346case `pwd` in
3347  *\ * | *\	*)
3348    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3349printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3350esac
3351
3352
3353
3354macro_version='2.4.6'
3355macro_revision='2.4.6'
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370ltmain=$ac_aux_dir/ltmain.sh
3371
3372
3373
3374  # Make sure we can run config.sub.
3375$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3376  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3377
3378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3379printf %s "checking build system type... " >&6; }
3380if test ${ac_cv_build+y}
3381then :
3382  printf %s "(cached) " >&6
3383else $as_nop
3384  ac_build_alias=$build_alias
3385test "x$ac_build_alias" = x &&
3386  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3387test "x$ac_build_alias" = x &&
3388  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3389ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3390  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3391
3392fi
3393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3394printf "%s\n" "$ac_cv_build" >&6; }
3395case $ac_cv_build in
3396*-*-*) ;;
3397*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3398esac
3399build=$ac_cv_build
3400ac_save_IFS=$IFS; IFS='-'
3401set x $ac_cv_build
3402shift
3403build_cpu=$1
3404build_vendor=$2
3405shift; shift
3406# Remember, the first character of IFS is used to create $*,
3407# except with old shells:
3408build_os=$*
3409IFS=$ac_save_IFS
3410case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3411
3412
3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3414printf %s "checking host system type... " >&6; }
3415if test ${ac_cv_host+y}
3416then :
3417  printf %s "(cached) " >&6
3418else $as_nop
3419  if test "x$host_alias" = x; then
3420  ac_cv_host=$ac_cv_build
3421else
3422  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3423    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3424fi
3425
3426fi
3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3428printf "%s\n" "$ac_cv_host" >&6; }
3429case $ac_cv_host in
3430*-*-*) ;;
3431*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3432esac
3433host=$ac_cv_host
3434ac_save_IFS=$IFS; IFS='-'
3435set x $ac_cv_host
3436shift
3437host_cpu=$1
3438host_vendor=$2
3439shift; shift
3440# Remember, the first character of IFS is used to create $*,
3441# except with old shells:
3442host_os=$*
3443IFS=$ac_save_IFS
3444case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3445
3446
3447# Backslashify metacharacters that are still active within
3448# double-quoted strings.
3449sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3450
3451# Same as above, but do not quote variable references.
3452double_quote_subst='s/\(["`\\]\)/\\\1/g'
3453
3454# Sed substitution to delay expansion of an escaped shell variable in a
3455# double_quote_subst'ed string.
3456delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3457
3458# Sed substitution to delay expansion of an escaped single quote.
3459delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3460
3461# Sed substitution to avoid accidental globbing in evaled expressions
3462no_glob_subst='s/\*/\\\*/g'
3463
3464ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3465ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3466ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3467
3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3469printf %s "checking how to print strings... " >&6; }
3470# Test print first, because it will be a builtin if present.
3471if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3472   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3473  ECHO='print -r --'
3474elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3475  ECHO='printf %s\n'
3476else
3477  # Use this function as a fallback that always works.
3478  func_fallback_echo ()
3479  {
3480    eval 'cat <<_LTECHO_EOF
3481$1
3482_LTECHO_EOF'
3483  }
3484  ECHO='func_fallback_echo'
3485fi
3486
3487# func_echo_all arg...
3488# Invoke $ECHO with all args, space-separated.
3489func_echo_all ()
3490{
3491    $ECHO ""
3492}
3493
3494case $ECHO in
3495  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3496printf "%s\n" "printf" >&6; } ;;
3497  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3498printf "%s\n" "print -r" >&6; } ;;
3499  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3500printf "%s\n" "cat" >&6; } ;;
3501esac
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525DEPDIR="${am__leading_dot}deps"
3526
3527ac_config_commands="$ac_config_commands depfiles"
3528
3529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3530printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3531cat > confinc.mk << 'END'
3532am__doit:
3533	@echo this is the am__doit target >confinc.out
3534.PHONY: am__doit
3535END
3536am__include="#"
3537am__quote=
3538# BSD make does it like this.
3539echo '.include "confinc.mk" # ignored' > confmf.BSD
3540# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3541echo 'include confinc.mk # ignored' > confmf.GNU
3542_am_result=no
3543for s in GNU BSD; do
3544  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3545   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }
3549  case $?:`cat confinc.out 2>/dev/null` in #(
3550  '0:this is the am__doit target') :
3551    case $s in #(
3552  BSD) :
3553    am__include='.include' am__quote='"' ;; #(
3554  *) :
3555    am__include='include' am__quote='' ;;
3556esac ;; #(
3557  *) :
3558     ;;
3559esac
3560  if test "$am__include" != "#"; then
3561    _am_result="yes ($s style)"
3562    break
3563  fi
3564done
3565rm -f confinc.* confmf.*
3566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3567printf "%s\n" "${_am_result}" >&6; }
3568
3569# Check whether --enable-dependency-tracking was given.
3570if test ${enable_dependency_tracking+y}
3571then :
3572  enableval=$enable_dependency_tracking;
3573fi
3574
3575if test "x$enable_dependency_tracking" != xno; then
3576  am_depcomp="$ac_aux_dir/depcomp"
3577  AMDEPBACKSLASH='\'
3578  am__nodep='_no'
3579fi
3580 if test "x$enable_dependency_tracking" != xno; then
3581  AMDEP_TRUE=
3582  AMDEP_FALSE='#'
3583else
3584  AMDEP_TRUE='#'
3585  AMDEP_FALSE=
3586fi
3587
3588
3589ac_ext=c
3590ac_cpp='$CPP $CPPFLAGS'
3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594if test -n "$ac_tool_prefix"; then
3595  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3596set dummy ${ac_tool_prefix}gcc; ac_word=$2
3597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598printf %s "checking for $ac_word... " >&6; }
3599if test ${ac_cv_prog_CC+y}
3600then :
3601  printf %s "(cached) " >&6
3602else $as_nop
3603  if test -n "$CC"; then
3604  ac_cv_prog_CC="$CC" # Let the user override the test.
3605else
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609  IFS=$as_save_IFS
3610  case $as_dir in #(((
3611    '') as_dir=./ ;;
3612    */) ;;
3613    *) as_dir=$as_dir/ ;;
3614  esac
3615    for ac_exec_ext in '' $ac_executable_extensions; do
3616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3617    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3619    break 2
3620  fi
3621done
3622  done
3623IFS=$as_save_IFS
3624
3625fi
3626fi
3627CC=$ac_cv_prog_CC
3628if test -n "$CC"; then
3629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630printf "%s\n" "$CC" >&6; }
3631else
3632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633printf "%s\n" "no" >&6; }
3634fi
3635
3636
3637fi
3638if test -z "$ac_cv_prog_CC"; then
3639  ac_ct_CC=$CC
3640  # Extract the first word of "gcc", so it can be a program name with args.
3641set dummy gcc; ac_word=$2
3642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643printf %s "checking for $ac_word... " >&6; }
3644if test ${ac_cv_prog_ac_ct_CC+y}
3645then :
3646  printf %s "(cached) " >&6
3647else $as_nop
3648  if test -n "$ac_ct_CC"; then
3649  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654  IFS=$as_save_IFS
3655  case $as_dir in #(((
3656    '') as_dir=./ ;;
3657    */) ;;
3658    *) as_dir=$as_dir/ ;;
3659  esac
3660    for ac_exec_ext in '' $ac_executable_extensions; do
3661  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3662    ac_cv_prog_ac_ct_CC="gcc"
3663    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3664    break 2
3665  fi
3666done
3667  done
3668IFS=$as_save_IFS
3669
3670fi
3671fi
3672ac_ct_CC=$ac_cv_prog_ac_ct_CC
3673if test -n "$ac_ct_CC"; then
3674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3675printf "%s\n" "$ac_ct_CC" >&6; }
3676else
3677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678printf "%s\n" "no" >&6; }
3679fi
3680
3681  if test "x$ac_ct_CC" = x; then
3682    CC=""
3683  else
3684    case $cross_compiling:$ac_tool_warned in
3685yes:)
3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3687printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3688ac_tool_warned=yes ;;
3689esac
3690    CC=$ac_ct_CC
3691  fi
3692else
3693  CC="$ac_cv_prog_CC"
3694fi
3695
3696if test -z "$CC"; then
3697          if test -n "$ac_tool_prefix"; then
3698    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3699set dummy ${ac_tool_prefix}cc; ac_word=$2
3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701printf %s "checking for $ac_word... " >&6; }
3702if test ${ac_cv_prog_CC+y}
3703then :
3704  printf %s "(cached) " >&6
3705else $as_nop
3706  if test -n "$CC"; then
3707  ac_cv_prog_CC="$CC" # Let the user override the test.
3708else
3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710for as_dir in $PATH
3711do
3712  IFS=$as_save_IFS
3713  case $as_dir in #(((
3714    '') as_dir=./ ;;
3715    */) ;;
3716    *) as_dir=$as_dir/ ;;
3717  esac
3718    for ac_exec_ext in '' $ac_executable_extensions; do
3719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3720    ac_cv_prog_CC="${ac_tool_prefix}cc"
3721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3722    break 2
3723  fi
3724done
3725  done
3726IFS=$as_save_IFS
3727
3728fi
3729fi
3730CC=$ac_cv_prog_CC
3731if test -n "$CC"; then
3732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733printf "%s\n" "$CC" >&6; }
3734else
3735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736printf "%s\n" "no" >&6; }
3737fi
3738
3739
3740  fi
3741fi
3742if test -z "$CC"; then
3743  # Extract the first word of "cc", so it can be a program name with args.
3744set dummy cc; ac_word=$2
3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746printf %s "checking for $ac_word... " >&6; }
3747if test ${ac_cv_prog_CC+y}
3748then :
3749  printf %s "(cached) " >&6
3750else $as_nop
3751  if test -n "$CC"; then
3752  ac_cv_prog_CC="$CC" # Let the user override the test.
3753else
3754  ac_prog_rejected=no
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758  IFS=$as_save_IFS
3759  case $as_dir in #(((
3760    '') as_dir=./ ;;
3761    */) ;;
3762    *) as_dir=$as_dir/ ;;
3763  esac
3764    for ac_exec_ext in '' $ac_executable_extensions; do
3765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3766    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3767       ac_prog_rejected=yes
3768       continue
3769     fi
3770    ac_cv_prog_CC="cc"
3771    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3772    break 2
3773  fi
3774done
3775  done
3776IFS=$as_save_IFS
3777
3778if test $ac_prog_rejected = yes; then
3779  # We found a bogon in the path, so make sure we never use it.
3780  set dummy $ac_cv_prog_CC
3781  shift
3782  if test $# != 0; then
3783    # We chose a different compiler from the bogus one.
3784    # However, it has the same basename, so the bogon will be chosen
3785    # first if we set CC to just the basename; use the full file name.
3786    shift
3787    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3788  fi
3789fi
3790fi
3791fi
3792CC=$ac_cv_prog_CC
3793if test -n "$CC"; then
3794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3795printf "%s\n" "$CC" >&6; }
3796else
3797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798printf "%s\n" "no" >&6; }
3799fi
3800
3801
3802fi
3803if test -z "$CC"; then
3804  if test -n "$ac_tool_prefix"; then
3805  for ac_prog in cl.exe
3806  do
3807    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810printf %s "checking for $ac_word... " >&6; }
3811if test ${ac_cv_prog_CC+y}
3812then :
3813  printf %s "(cached) " >&6
3814else $as_nop
3815  if test -n "$CC"; then
3816  ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821  IFS=$as_save_IFS
3822  case $as_dir in #(((
3823    '') as_dir=./ ;;
3824    */) ;;
3825    *) as_dir=$as_dir/ ;;
3826  esac
3827    for ac_exec_ext in '' $ac_executable_extensions; do
3828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3829    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831    break 2
3832  fi
3833done
3834  done
3835IFS=$as_save_IFS
3836
3837fi
3838fi
3839CC=$ac_cv_prog_CC
3840if test -n "$CC"; then
3841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842printf "%s\n" "$CC" >&6; }
3843else
3844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845printf "%s\n" "no" >&6; }
3846fi
3847
3848
3849    test -n "$CC" && break
3850  done
3851fi
3852if test -z "$CC"; then
3853  ac_ct_CC=$CC
3854  for ac_prog in cl.exe
3855do
3856  # Extract the first word of "$ac_prog", so it can be a program name with args.
3857set dummy $ac_prog; ac_word=$2
3858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859printf %s "checking for $ac_word... " >&6; }
3860if test ${ac_cv_prog_ac_ct_CC+y}
3861then :
3862  printf %s "(cached) " >&6
3863else $as_nop
3864  if test -n "$ac_ct_CC"; then
3865  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870  IFS=$as_save_IFS
3871  case $as_dir in #(((
3872    '') as_dir=./ ;;
3873    */) ;;
3874    *) as_dir=$as_dir/ ;;
3875  esac
3876    for ac_exec_ext in '' $ac_executable_extensions; do
3877  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3878    ac_cv_prog_ac_ct_CC="$ac_prog"
3879    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3880    break 2
3881  fi
3882done
3883  done
3884IFS=$as_save_IFS
3885
3886fi
3887fi
3888ac_ct_CC=$ac_cv_prog_ac_ct_CC
3889if test -n "$ac_ct_CC"; then
3890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3891printf "%s\n" "$ac_ct_CC" >&6; }
3892else
3893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894printf "%s\n" "no" >&6; }
3895fi
3896
3897
3898  test -n "$ac_ct_CC" && break
3899done
3900
3901  if test "x$ac_ct_CC" = x; then
3902    CC=""
3903  else
3904    case $cross_compiling:$ac_tool_warned in
3905yes:)
3906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908ac_tool_warned=yes ;;
3909esac
3910    CC=$ac_ct_CC
3911  fi
3912fi
3913
3914fi
3915if test -z "$CC"; then
3916  if test -n "$ac_tool_prefix"; then
3917  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3918set dummy ${ac_tool_prefix}clang; ac_word=$2
3919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920printf %s "checking for $ac_word... " >&6; }
3921if test ${ac_cv_prog_CC+y}
3922then :
3923  printf %s "(cached) " >&6
3924else $as_nop
3925  if test -n "$CC"; then
3926  ac_cv_prog_CC="$CC" # Let the user override the test.
3927else
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH
3930do
3931  IFS=$as_save_IFS
3932  case $as_dir in #(((
3933    '') as_dir=./ ;;
3934    */) ;;
3935    *) as_dir=$as_dir/ ;;
3936  esac
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3939    ac_cv_prog_CC="${ac_tool_prefix}clang"
3940    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3941    break 2
3942  fi
3943done
3944  done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949CC=$ac_cv_prog_CC
3950if test -n "$CC"; then
3951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952printf "%s\n" "$CC" >&6; }
3953else
3954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955printf "%s\n" "no" >&6; }
3956fi
3957
3958
3959fi
3960if test -z "$ac_cv_prog_CC"; then
3961  ac_ct_CC=$CC
3962  # Extract the first word of "clang", so it can be a program name with args.
3963set dummy clang; ac_word=$2
3964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965printf %s "checking for $ac_word... " >&6; }
3966if test ${ac_cv_prog_ac_ct_CC+y}
3967then :
3968  printf %s "(cached) " >&6
3969else $as_nop
3970  if test -n "$ac_ct_CC"; then
3971  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  case $as_dir in #(((
3978    '') as_dir=./ ;;
3979    */) ;;
3980    *) as_dir=$as_dir/ ;;
3981  esac
3982    for ac_exec_ext in '' $ac_executable_extensions; do
3983  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3984    ac_cv_prog_ac_ct_CC="clang"
3985    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3986    break 2
3987  fi
3988done
3989  done
3990IFS=$as_save_IFS
3991
3992fi
3993fi
3994ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995if test -n "$ac_ct_CC"; then
3996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997printf "%s\n" "$ac_ct_CC" >&6; }
3998else
3999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000printf "%s\n" "no" >&6; }
4001fi
4002
4003  if test "x$ac_ct_CC" = x; then
4004    CC=""
4005  else
4006    case $cross_compiling:$ac_tool_warned in
4007yes:)
4008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010ac_tool_warned=yes ;;
4011esac
4012    CC=$ac_ct_CC
4013  fi
4014else
4015  CC="$ac_cv_prog_CC"
4016fi
4017
4018fi
4019
4020
4021test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4023as_fn_error $? "no acceptable C compiler found in \$PATH
4024See \`config.log' for more details" "$LINENO" 5; }
4025
4026# Provide some information about the compiler.
4027printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4028set X $ac_compile
4029ac_compiler=$2
4030for ac_option in --version -v -V -qversion -version; do
4031  { { ac_try="$ac_compiler $ac_option >&5"
4032case "(($ac_try" in
4033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034  *) ac_try_echo=$ac_try;;
4035esac
4036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037printf "%s\n" "$ac_try_echo"; } >&5
4038  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4039  ac_status=$?
4040  if test -s conftest.err; then
4041    sed '10a\
4042... rest of stderr output deleted ...
4043         10q' conftest.err >conftest.er1
4044    cat conftest.er1 >&5
4045  fi
4046  rm -f conftest.er1 conftest.err
4047  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048  test $ac_status = 0; }
4049done
4050
4051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h.  */
4053
4054int
4055main (void)
4056{
4057
4058  ;
4059  return 0;
4060}
4061_ACEOF
4062ac_clean_files_save=$ac_clean_files
4063ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4064# Try to create an executable without -o first, disregard a.out.
4065# It will help us diagnose broken compilers, and finding out an intuition
4066# of exeext.
4067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4068printf %s "checking whether the C compiler works... " >&6; }
4069ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4070
4071# The possible output files:
4072ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4073
4074ac_rmfiles=
4075for ac_file in $ac_files
4076do
4077  case $ac_file in
4078    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4079    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4080  esac
4081done
4082rm -f $ac_rmfiles
4083
4084if { { ac_try="$ac_link_default"
4085case "(($ac_try" in
4086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087  *) ac_try_echo=$ac_try;;
4088esac
4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090printf "%s\n" "$ac_try_echo"; } >&5
4091  (eval "$ac_link_default") 2>&5
4092  ac_status=$?
4093  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094  test $ac_status = 0; }
4095then :
4096  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4097# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4098# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4099# so that the user can short-circuit this test for compilers unknown to
4100# Autoconf.
4101for ac_file in $ac_files ''
4102do
4103  test -f "$ac_file" || continue
4104  case $ac_file in
4105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4106	;;
4107    [ab].out )
4108	# We found the default executable, but exeext='' is most
4109	# certainly right.
4110	break;;
4111    *.* )
4112	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4113	then :; else
4114	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4115	fi
4116	# We set ac_cv_exeext here because the later test for it is not
4117	# safe: cross compilers may not add the suffix if given an `-o'
4118	# argument, so we may need to know it at that point already.
4119	# Even if this section looks crufty: it has the advantage of
4120	# actually working.
4121	break;;
4122    * )
4123	break;;
4124  esac
4125done
4126test "$ac_cv_exeext" = no && ac_cv_exeext=
4127
4128else $as_nop
4129  ac_file=''
4130fi
4131if test -z "$ac_file"
4132then :
4133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134printf "%s\n" "no" >&6; }
4135printf "%s\n" "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4140as_fn_error 77 "C compiler cannot create executables
4141See \`config.log' for more details" "$LINENO" 5; }
4142else $as_nop
4143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144printf "%s\n" "yes" >&6; }
4145fi
4146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4147printf %s "checking for C compiler default output file name... " >&6; }
4148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149printf "%s\n" "$ac_file" >&6; }
4150ac_exeext=$ac_cv_exeext
4151
4152rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4153ac_clean_files=$ac_clean_files_save
4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4155printf %s "checking for suffix of executables... " >&6; }
4156if { { ac_try="$ac_link"
4157case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162printf "%s\n" "$ac_try_echo"; } >&5
4163  (eval "$ac_link") 2>&5
4164  ac_status=$?
4165  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166  test $ac_status = 0; }
4167then :
4168  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4169# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4170# work properly (i.e., refer to `conftest.exe'), while it won't with
4171# `rm'.
4172for ac_file in conftest.exe conftest conftest.*; do
4173  test -f "$ac_file" || continue
4174  case $ac_file in
4175    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4176    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4177	  break;;
4178    * ) break;;
4179  esac
4180done
4181else $as_nop
4182  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4184as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4185See \`config.log' for more details" "$LINENO" 5; }
4186fi
4187rm -f conftest conftest$ac_cv_exeext
4188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4189printf "%s\n" "$ac_cv_exeext" >&6; }
4190
4191rm -f conftest.$ac_ext
4192EXEEXT=$ac_cv_exeext
4193ac_exeext=$EXEEXT
4194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h.  */
4196#include <stdio.h>
4197int
4198main (void)
4199{
4200FILE *f = fopen ("conftest.out", "w");
4201 return ferror (f) || fclose (f) != 0;
4202
4203  ;
4204  return 0;
4205}
4206_ACEOF
4207ac_clean_files="$ac_clean_files conftest.out"
4208# Check that the compiler produces executables we can run.  If not, either
4209# the compiler is broken, or we cross compile.
4210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4211printf %s "checking whether we are cross compiling... " >&6; }
4212if test "$cross_compiling" != yes; then
4213  { { ac_try="$ac_link"
4214case "(($ac_try" in
4215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216  *) ac_try_echo=$ac_try;;
4217esac
4218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219printf "%s\n" "$ac_try_echo"; } >&5
4220  (eval "$ac_link") 2>&5
4221  ac_status=$?
4222  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223  test $ac_status = 0; }
4224  if { ac_try='./conftest$ac_cv_exeext'
4225  { { case "(($ac_try" in
4226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227  *) ac_try_echo=$ac_try;;
4228esac
4229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230printf "%s\n" "$ac_try_echo"; } >&5
4231  (eval "$ac_try") 2>&5
4232  ac_status=$?
4233  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234  test $ac_status = 0; }; }; then
4235    cross_compiling=no
4236  else
4237    if test "$cross_compiling" = maybe; then
4238	cross_compiling=yes
4239    else
4240	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4241printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4242as_fn_error 77 "cannot run C compiled programs.
4243If you meant to cross compile, use \`--host'.
4244See \`config.log' for more details" "$LINENO" 5; }
4245    fi
4246  fi
4247fi
4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4249printf "%s\n" "$cross_compiling" >&6; }
4250
4251rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4252ac_clean_files=$ac_clean_files_save
4253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4254printf %s "checking for suffix of object files... " >&6; }
4255if test ${ac_cv_objext+y}
4256then :
4257  printf %s "(cached) " >&6
4258else $as_nop
4259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h.  */
4261
4262int
4263main (void)
4264{
4265
4266  ;
4267  return 0;
4268}
4269_ACEOF
4270rm -f conftest.o conftest.obj
4271if { { ac_try="$ac_compile"
4272case "(($ac_try" in
4273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274  *) ac_try_echo=$ac_try;;
4275esac
4276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4277printf "%s\n" "$ac_try_echo"; } >&5
4278  (eval "$ac_compile") 2>&5
4279  ac_status=$?
4280  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4281  test $ac_status = 0; }
4282then :
4283  for ac_file in conftest.o conftest.obj conftest.*; do
4284  test -f "$ac_file" || continue;
4285  case $ac_file in
4286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4287    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4288       break;;
4289  esac
4290done
4291else $as_nop
4292  printf "%s\n" "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4296printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4297as_fn_error $? "cannot compute suffix of object files: cannot compile
4298See \`config.log' for more details" "$LINENO" 5; }
4299fi
4300rm -f conftest.$ac_cv_objext conftest.$ac_ext
4301fi
4302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4303printf "%s\n" "$ac_cv_objext" >&6; }
4304OBJEXT=$ac_cv_objext
4305ac_objext=$OBJEXT
4306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4307printf %s "checking whether the compiler supports GNU C... " >&6; }
4308if test ${ac_cv_c_compiler_gnu+y}
4309then :
4310  printf %s "(cached) " >&6
4311else $as_nop
4312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313/* end confdefs.h.  */
4314
4315int
4316main (void)
4317{
4318#ifndef __GNUC__
4319       choke me
4320#endif
4321
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326if ac_fn_c_try_compile "$LINENO"
4327then :
4328  ac_compiler_gnu=yes
4329else $as_nop
4330  ac_compiler_gnu=no
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4333ac_cv_c_compiler_gnu=$ac_compiler_gnu
4334
4335fi
4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4337printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4338ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340if test $ac_compiler_gnu = yes; then
4341  GCC=yes
4342else
4343  GCC=
4344fi
4345ac_test_CFLAGS=${CFLAGS+y}
4346ac_save_CFLAGS=$CFLAGS
4347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4348printf %s "checking whether $CC accepts -g... " >&6; }
4349if test ${ac_cv_prog_cc_g+y}
4350then :
4351  printf %s "(cached) " >&6
4352else $as_nop
4353  ac_save_c_werror_flag=$ac_c_werror_flag
4354   ac_c_werror_flag=yes
4355   ac_cv_prog_cc_g=no
4356   CFLAGS="-g"
4357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359
4360int
4361main (void)
4362{
4363
4364  ;
4365  return 0;
4366}
4367_ACEOF
4368if ac_fn_c_try_compile "$LINENO"
4369then :
4370  ac_cv_prog_cc_g=yes
4371else $as_nop
4372  CFLAGS=""
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
4387else $as_nop
4388  ac_c_werror_flag=$ac_save_c_werror_flag
4389	 CFLAGS="-g"
4390	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h.  */
4392
4393int
4394main (void)
4395{
4396
4397  ;
4398  return 0;
4399}
4400_ACEOF
4401if ac_fn_c_try_compile "$LINENO"
4402then :
4403  ac_cv_prog_cc_g=yes
4404fi
4405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4406fi
4407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4408fi
4409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4410   ac_c_werror_flag=$ac_save_c_werror_flag
4411fi
4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4413printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4414if test $ac_test_CFLAGS; then
4415  CFLAGS=$ac_save_CFLAGS
4416elif test $ac_cv_prog_cc_g = yes; then
4417  if test "$GCC" = yes; then
4418    CFLAGS="-g -O2"
4419  else
4420    CFLAGS="-g"
4421  fi
4422else
4423  if test "$GCC" = yes; then
4424    CFLAGS="-O2"
4425  else
4426    CFLAGS=
4427  fi
4428fi
4429ac_prog_cc_stdc=no
4430if test x$ac_prog_cc_stdc = xno
4431then :
4432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4433printf %s "checking for $CC option to enable C11 features... " >&6; }
4434if test ${ac_cv_prog_cc_c11+y}
4435then :
4436  printf %s "(cached) " >&6
4437else $as_nop
4438  ac_cv_prog_cc_c11=no
4439ac_save_CC=$CC
4440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441/* end confdefs.h.  */
4442$ac_c_conftest_c11_program
4443_ACEOF
4444for ac_arg in '' -std=gnu11
4445do
4446  CC="$ac_save_CC $ac_arg"
4447  if ac_fn_c_try_compile "$LINENO"
4448then :
4449  ac_cv_prog_cc_c11=$ac_arg
4450fi
4451rm -f core conftest.err conftest.$ac_objext conftest.beam
4452  test "x$ac_cv_prog_cc_c11" != "xno" && break
4453done
4454rm -f conftest.$ac_ext
4455CC=$ac_save_CC
4456fi
4457
4458if test "x$ac_cv_prog_cc_c11" = xno
4459then :
4460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4461printf "%s\n" "unsupported" >&6; }
4462else $as_nop
4463  if test "x$ac_cv_prog_cc_c11" = x
4464then :
4465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4466printf "%s\n" "none needed" >&6; }
4467else $as_nop
4468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4469printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4470     CC="$CC $ac_cv_prog_cc_c11"
4471fi
4472  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4473  ac_prog_cc_stdc=c11
4474fi
4475fi
4476if test x$ac_prog_cc_stdc = xno
4477then :
4478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4479printf %s "checking for $CC option to enable C99 features... " >&6; }
4480if test ${ac_cv_prog_cc_c99+y}
4481then :
4482  printf %s "(cached) " >&6
4483else $as_nop
4484  ac_cv_prog_cc_c99=no
4485ac_save_CC=$CC
4486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488$ac_c_conftest_c99_program
4489_ACEOF
4490for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4491do
4492  CC="$ac_save_CC $ac_arg"
4493  if ac_fn_c_try_compile "$LINENO"
4494then :
4495  ac_cv_prog_cc_c99=$ac_arg
4496fi
4497rm -f core conftest.err conftest.$ac_objext conftest.beam
4498  test "x$ac_cv_prog_cc_c99" != "xno" && break
4499done
4500rm -f conftest.$ac_ext
4501CC=$ac_save_CC
4502fi
4503
4504if test "x$ac_cv_prog_cc_c99" = xno
4505then :
4506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4507printf "%s\n" "unsupported" >&6; }
4508else $as_nop
4509  if test "x$ac_cv_prog_cc_c99" = x
4510then :
4511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4512printf "%s\n" "none needed" >&6; }
4513else $as_nop
4514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4515printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4516     CC="$CC $ac_cv_prog_cc_c99"
4517fi
4518  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4519  ac_prog_cc_stdc=c99
4520fi
4521fi
4522if test x$ac_prog_cc_stdc = xno
4523then :
4524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4525printf %s "checking for $CC option to enable C89 features... " >&6; }
4526if test ${ac_cv_prog_cc_c89+y}
4527then :
4528  printf %s "(cached) " >&6
4529else $as_nop
4530  ac_cv_prog_cc_c89=no
4531ac_save_CC=$CC
4532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534$ac_c_conftest_c89_program
4535_ACEOF
4536for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4537do
4538  CC="$ac_save_CC $ac_arg"
4539  if ac_fn_c_try_compile "$LINENO"
4540then :
4541  ac_cv_prog_cc_c89=$ac_arg
4542fi
4543rm -f core conftest.err conftest.$ac_objext conftest.beam
4544  test "x$ac_cv_prog_cc_c89" != "xno" && break
4545done
4546rm -f conftest.$ac_ext
4547CC=$ac_save_CC
4548fi
4549
4550if test "x$ac_cv_prog_cc_c89" = xno
4551then :
4552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4553printf "%s\n" "unsupported" >&6; }
4554else $as_nop
4555  if test "x$ac_cv_prog_cc_c89" = x
4556then :
4557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4558printf "%s\n" "none needed" >&6; }
4559else $as_nop
4560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4561printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4562     CC="$CC $ac_cv_prog_cc_c89"
4563fi
4564  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4565  ac_prog_cc_stdc=c89
4566fi
4567fi
4568
4569ac_ext=c
4570ac_cpp='$CPP $CPPFLAGS'
4571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4575
4576  ac_ext=c
4577ac_cpp='$CPP $CPPFLAGS'
4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4582printf %s "checking whether $CC understands -c and -o together... " >&6; }
4583if test ${am_cv_prog_cc_c_o+y}
4584then :
4585  printf %s "(cached) " >&6
4586else $as_nop
4587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h.  */
4589
4590int
4591main (void)
4592{
4593
4594  ;
4595  return 0;
4596}
4597_ACEOF
4598  # Make sure it works both with $CC and with simple cc.
4599  # Following AC_PROG_CC_C_O, we do the test twice because some
4600  # compilers refuse to overwrite an existing .o file with -o,
4601  # though they will create one.
4602  am_cv_prog_cc_c_o=yes
4603  for am_i in 1 2; do
4604    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4605   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } \
4609         && test -f conftest2.$ac_objext; then
4610      : OK
4611    else
4612      am_cv_prog_cc_c_o=no
4613      break
4614    fi
4615  done
4616  rm -f core conftest*
4617  unset am_i
4618fi
4619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4620printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4621if test "$am_cv_prog_cc_c_o" != yes; then
4622   # Losing compiler, so override with the script.
4623   # FIXME: It is wrong to rewrite CC.
4624   # But if we don't then we get into trouble of one sort or another.
4625   # A longer-term fix would be to have automake use am__CC in this case,
4626   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4627   CC="$am_aux_dir/compile $CC"
4628fi
4629ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635
4636depcc="$CC"   am_compiler_list=
4637
4638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4639printf %s "checking dependency style of $depcc... " >&6; }
4640if test ${am_cv_CC_dependencies_compiler_type+y}
4641then :
4642  printf %s "(cached) " >&6
4643else $as_nop
4644  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4645  # We make a subdir and do the tests there.  Otherwise we can end up
4646  # making bogus files that we don't know about and never remove.  For
4647  # instance it was reported that on HP-UX the gcc test will end up
4648  # making a dummy file named 'D' -- because '-MD' means "put the output
4649  # in D".
4650  rm -rf conftest.dir
4651  mkdir conftest.dir
4652  # Copy depcomp to subdir because otherwise we won't find it if we're
4653  # using a relative directory.
4654  cp "$am_depcomp" conftest.dir
4655  cd conftest.dir
4656  # We will build objects and dependencies in a subdirectory because
4657  # it helps to detect inapplicable dependency modes.  For instance
4658  # both Tru64's cc and ICC support -MD to output dependencies as a
4659  # side effect of compilation, but ICC will put the dependencies in
4660  # the current directory while Tru64 will put them in the object
4661  # directory.
4662  mkdir sub
4663
4664  am_cv_CC_dependencies_compiler_type=none
4665  if test "$am_compiler_list" = ""; then
4666     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4667  fi
4668  am__universal=false
4669  case " $depcc " in #(
4670     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4671     esac
4672
4673  for depmode in $am_compiler_list; do
4674    # Setup a source with many dependencies, because some compilers
4675    # like to wrap large dependency lists on column 80 (with \), and
4676    # we should not choose a depcomp mode which is confused by this.
4677    #
4678    # We need to recreate these files for each test, as the compiler may
4679    # overwrite some of them when testing with obscure command lines.
4680    # This happens at least with the AIX C compiler.
4681    : > sub/conftest.c
4682    for i in 1 2 3 4 5 6; do
4683      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4684      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4685      # Solaris 10 /bin/sh.
4686      echo '/* dummy */' > sub/conftst$i.h
4687    done
4688    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4689
4690    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4691    # mode.  It turns out that the SunPro C++ compiler does not properly
4692    # handle '-M -o', and we need to detect this.  Also, some Intel
4693    # versions had trouble with output in subdirs.
4694    am__obj=sub/conftest.${OBJEXT-o}
4695    am__minus_obj="-o $am__obj"
4696    case $depmode in
4697    gcc)
4698      # This depmode causes a compiler race in universal mode.
4699      test "$am__universal" = false || continue
4700      ;;
4701    nosideeffect)
4702      # After this tag, mechanisms are not by side-effect, so they'll
4703      # only be used when explicitly requested.
4704      if test "x$enable_dependency_tracking" = xyes; then
4705	continue
4706      else
4707	break
4708      fi
4709      ;;
4710    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4711      # This compiler won't grok '-c -o', but also, the minuso test has
4712      # not run yet.  These depmodes are late enough in the game, and
4713      # so weak that their functioning should not be impacted.
4714      am__obj=conftest.${OBJEXT-o}
4715      am__minus_obj=
4716      ;;
4717    none) break ;;
4718    esac
4719    if depmode=$depmode \
4720       source=sub/conftest.c object=$am__obj \
4721       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4722       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4723         >/dev/null 2>conftest.err &&
4724       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4725       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4726       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4727       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4728      # icc doesn't choke on unknown options, it will just issue warnings
4729      # or remarks (even with -Werror).  So we grep stderr for any message
4730      # that says an option was ignored or not supported.
4731      # When given -MP, icc 7.0 and 7.1 complain thusly:
4732      #   icc: Command line warning: ignoring option '-M'; no argument required
4733      # The diagnosis changed in icc 8.0:
4734      #   icc: Command line remark: option '-MP' not supported
4735      if (grep 'ignoring option' conftest.err ||
4736          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4737        am_cv_CC_dependencies_compiler_type=$depmode
4738        break
4739      fi
4740    fi
4741  done
4742
4743  cd ..
4744  rm -rf conftest.dir
4745else
4746  am_cv_CC_dependencies_compiler_type=none
4747fi
4748
4749fi
4750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4751printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4752CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4753
4754 if
4755  test "x$enable_dependency_tracking" != xno \
4756  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4757  am__fastdepCC_TRUE=
4758  am__fastdepCC_FALSE='#'
4759else
4760  am__fastdepCC_TRUE='#'
4761  am__fastdepCC_FALSE=
4762fi
4763
4764
4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4766printf %s "checking for a sed that does not truncate output... " >&6; }
4767if test ${ac_cv_path_SED+y}
4768then :
4769  printf %s "(cached) " >&6
4770else $as_nop
4771            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4772     for ac_i in 1 2 3 4 5 6 7; do
4773       ac_script="$ac_script$as_nl$ac_script"
4774     done
4775     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4776     { ac_script=; unset ac_script;}
4777     if test -z "$SED"; then
4778  ac_path_SED_found=false
4779  # Loop through the user's path and test for each of PROGNAME-LIST
4780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  case $as_dir in #(((
4785    '') as_dir=./ ;;
4786    */) ;;
4787    *) as_dir=$as_dir/ ;;
4788  esac
4789    for ac_prog in sed gsed
4790   do
4791    for ac_exec_ext in '' $ac_executable_extensions; do
4792      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4793      as_fn_executable_p "$ac_path_SED" || continue
4794# Check for GNU ac_path_SED and select it if it is found.
4795  # Check for GNU $ac_path_SED
4796case `"$ac_path_SED" --version 2>&1` in
4797*GNU*)
4798  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4799*)
4800  ac_count=0
4801  printf %s 0123456789 >"conftest.in"
4802  while :
4803  do
4804    cat "conftest.in" "conftest.in" >"conftest.tmp"
4805    mv "conftest.tmp" "conftest.in"
4806    cp "conftest.in" "conftest.nl"
4807    printf "%s\n" '' >> "conftest.nl"
4808    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4810    as_fn_arith $ac_count + 1 && ac_count=$as_val
4811    if test $ac_count -gt ${ac_path_SED_max-0}; then
4812      # Best one so far, save it but keep looking for a better one
4813      ac_cv_path_SED="$ac_path_SED"
4814      ac_path_SED_max=$ac_count
4815    fi
4816    # 10*(2^10) chars as input seems more than enough
4817    test $ac_count -gt 10 && break
4818  done
4819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4820esac
4821
4822      $ac_path_SED_found && break 3
4823    done
4824  done
4825  done
4826IFS=$as_save_IFS
4827  if test -z "$ac_cv_path_SED"; then
4828    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4829  fi
4830else
4831  ac_cv_path_SED=$SED
4832fi
4833
4834fi
4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4836printf "%s\n" "$ac_cv_path_SED" >&6; }
4837 SED="$ac_cv_path_SED"
4838  rm -f conftest.sed
4839
4840test -z "$SED" && SED=sed
4841Xsed="$SED -e 1s/^X//"
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4854printf %s "checking for grep that handles long lines and -e... " >&6; }
4855if test ${ac_cv_path_GREP+y}
4856then :
4857  printf %s "(cached) " >&6
4858else $as_nop
4859  if test -z "$GREP"; then
4860  ac_path_GREP_found=false
4861  # Loop through the user's path and test for each of PROGNAME-LIST
4862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864do
4865  IFS=$as_save_IFS
4866  case $as_dir in #(((
4867    '') as_dir=./ ;;
4868    */) ;;
4869    *) as_dir=$as_dir/ ;;
4870  esac
4871    for ac_prog in grep ggrep
4872   do
4873    for ac_exec_ext in '' $ac_executable_extensions; do
4874      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4875      as_fn_executable_p "$ac_path_GREP" || continue
4876# Check for GNU ac_path_GREP and select it if it is found.
4877  # Check for GNU $ac_path_GREP
4878case `"$ac_path_GREP" --version 2>&1` in
4879*GNU*)
4880  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4881*)
4882  ac_count=0
4883  printf %s 0123456789 >"conftest.in"
4884  while :
4885  do
4886    cat "conftest.in" "conftest.in" >"conftest.tmp"
4887    mv "conftest.tmp" "conftest.in"
4888    cp "conftest.in" "conftest.nl"
4889    printf "%s\n" 'GREP' >> "conftest.nl"
4890    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892    as_fn_arith $ac_count + 1 && ac_count=$as_val
4893    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4894      # Best one so far, save it but keep looking for a better one
4895      ac_cv_path_GREP="$ac_path_GREP"
4896      ac_path_GREP_max=$ac_count
4897    fi
4898    # 10*(2^10) chars as input seems more than enough
4899    test $ac_count -gt 10 && break
4900  done
4901  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902esac
4903
4904      $ac_path_GREP_found && break 3
4905    done
4906  done
4907  done
4908IFS=$as_save_IFS
4909  if test -z "$ac_cv_path_GREP"; then
4910    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911  fi
4912else
4913  ac_cv_path_GREP=$GREP
4914fi
4915
4916fi
4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4918printf "%s\n" "$ac_cv_path_GREP" >&6; }
4919 GREP="$ac_cv_path_GREP"
4920
4921
4922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4923printf %s "checking for egrep... " >&6; }
4924if test ${ac_cv_path_EGREP+y}
4925then :
4926  printf %s "(cached) " >&6
4927else $as_nop
4928  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4929   then ac_cv_path_EGREP="$GREP -E"
4930   else
4931     if test -z "$EGREP"; then
4932  ac_path_EGREP_found=false
4933  # Loop through the user's path and test for each of PROGNAME-LIST
4934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936do
4937  IFS=$as_save_IFS
4938  case $as_dir in #(((
4939    '') as_dir=./ ;;
4940    */) ;;
4941    *) as_dir=$as_dir/ ;;
4942  esac
4943    for ac_prog in egrep
4944   do
4945    for ac_exec_ext in '' $ac_executable_extensions; do
4946      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4947      as_fn_executable_p "$ac_path_EGREP" || continue
4948# Check for GNU ac_path_EGREP and select it if it is found.
4949  # Check for GNU $ac_path_EGREP
4950case `"$ac_path_EGREP" --version 2>&1` in
4951*GNU*)
4952  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4953*)
4954  ac_count=0
4955  printf %s 0123456789 >"conftest.in"
4956  while :
4957  do
4958    cat "conftest.in" "conftest.in" >"conftest.tmp"
4959    mv "conftest.tmp" "conftest.in"
4960    cp "conftest.in" "conftest.nl"
4961    printf "%s\n" 'EGREP' >> "conftest.nl"
4962    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4963    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4964    as_fn_arith $ac_count + 1 && ac_count=$as_val
4965    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4966      # Best one so far, save it but keep looking for a better one
4967      ac_cv_path_EGREP="$ac_path_EGREP"
4968      ac_path_EGREP_max=$ac_count
4969    fi
4970    # 10*(2^10) chars as input seems more than enough
4971    test $ac_count -gt 10 && break
4972  done
4973  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974esac
4975
4976      $ac_path_EGREP_found && break 3
4977    done
4978  done
4979  done
4980IFS=$as_save_IFS
4981  if test -z "$ac_cv_path_EGREP"; then
4982    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983  fi
4984else
4985  ac_cv_path_EGREP=$EGREP
4986fi
4987
4988   fi
4989fi
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4991printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4992 EGREP="$ac_cv_path_EGREP"
4993
4994
4995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4996printf %s "checking for fgrep... " >&6; }
4997if test ${ac_cv_path_FGREP+y}
4998then :
4999  printf %s "(cached) " >&6
5000else $as_nop
5001  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5002   then ac_cv_path_FGREP="$GREP -F"
5003   else
5004     if test -z "$FGREP"; then
5005  ac_path_FGREP_found=false
5006  # Loop through the user's path and test for each of PROGNAME-LIST
5007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5009do
5010  IFS=$as_save_IFS
5011  case $as_dir in #(((
5012    '') as_dir=./ ;;
5013    */) ;;
5014    *) as_dir=$as_dir/ ;;
5015  esac
5016    for ac_prog in fgrep
5017   do
5018    for ac_exec_ext in '' $ac_executable_extensions; do
5019      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5020      as_fn_executable_p "$ac_path_FGREP" || continue
5021# Check for GNU ac_path_FGREP and select it if it is found.
5022  # Check for GNU $ac_path_FGREP
5023case `"$ac_path_FGREP" --version 2>&1` in
5024*GNU*)
5025  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5026*)
5027  ac_count=0
5028  printf %s 0123456789 >"conftest.in"
5029  while :
5030  do
5031    cat "conftest.in" "conftest.in" >"conftest.tmp"
5032    mv "conftest.tmp" "conftest.in"
5033    cp "conftest.in" "conftest.nl"
5034    printf "%s\n" 'FGREP' >> "conftest.nl"
5035    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5036    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5037    as_fn_arith $ac_count + 1 && ac_count=$as_val
5038    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5039      # Best one so far, save it but keep looking for a better one
5040      ac_cv_path_FGREP="$ac_path_FGREP"
5041      ac_path_FGREP_max=$ac_count
5042    fi
5043    # 10*(2^10) chars as input seems more than enough
5044    test $ac_count -gt 10 && break
5045  done
5046  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5047esac
5048
5049      $ac_path_FGREP_found && break 3
5050    done
5051  done
5052  done
5053IFS=$as_save_IFS
5054  if test -z "$ac_cv_path_FGREP"; then
5055    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5056  fi
5057else
5058  ac_cv_path_FGREP=$FGREP
5059fi
5060
5061   fi
5062fi
5063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5064printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5065 FGREP="$ac_cv_path_FGREP"
5066
5067
5068test -z "$GREP" && GREP=grep
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088# Check whether --with-gnu-ld was given.
5089if test ${with_gnu_ld+y}
5090then :
5091  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5092else $as_nop
5093  with_gnu_ld=no
5094fi
5095
5096ac_prog=ld
5097if test yes = "$GCC"; then
5098  # Check if gcc -print-prog-name=ld gives a path.
5099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5100printf %s "checking for ld used by $CC... " >&6; }
5101  case $host in
5102  *-*-mingw*)
5103    # gcc leaves a trailing carriage return, which upsets mingw
5104    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5105  *)
5106    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5107  esac
5108  case $ac_prog in
5109    # Accept absolute paths.
5110    [\\/]* | ?:[\\/]*)
5111      re_direlt='/[^/][^/]*/\.\./'
5112      # Canonicalize the pathname of ld
5113      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5114      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5115	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5116      done
5117      test -z "$LD" && LD=$ac_prog
5118      ;;
5119  "")
5120    # If it fails, then pretend we aren't using GCC.
5121    ac_prog=ld
5122    ;;
5123  *)
5124    # If it is relative, then search for the first ld in PATH.
5125    with_gnu_ld=unknown
5126    ;;
5127  esac
5128elif test yes = "$with_gnu_ld"; then
5129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5130printf %s "checking for GNU ld... " >&6; }
5131else
5132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5133printf %s "checking for non-GNU ld... " >&6; }
5134fi
5135if test ${lt_cv_path_LD+y}
5136then :
5137  printf %s "(cached) " >&6
5138else $as_nop
5139  if test -z "$LD"; then
5140  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5141  for ac_dir in $PATH; do
5142    IFS=$lt_save_ifs
5143    test -z "$ac_dir" && ac_dir=.
5144    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5145      lt_cv_path_LD=$ac_dir/$ac_prog
5146      # Check to see if the program is GNU ld.  I'd rather use --version,
5147      # but apparently some variants of GNU ld only accept -v.
5148      # Break only if it was the GNU/non-GNU ld that we prefer.
5149      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5150      *GNU* | *'with BFD'*)
5151	test no != "$with_gnu_ld" && break
5152	;;
5153      *)
5154	test yes != "$with_gnu_ld" && break
5155	;;
5156      esac
5157    fi
5158  done
5159  IFS=$lt_save_ifs
5160else
5161  lt_cv_path_LD=$LD # Let the user override the test with a path.
5162fi
5163fi
5164
5165LD=$lt_cv_path_LD
5166if test -n "$LD"; then
5167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5168printf "%s\n" "$LD" >&6; }
5169else
5170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171printf "%s\n" "no" >&6; }
5172fi
5173test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5175printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5176if test ${lt_cv_prog_gnu_ld+y}
5177then :
5178  printf %s "(cached) " >&6
5179else $as_nop
5180  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5181case `$LD -v 2>&1 </dev/null` in
5182*GNU* | *'with BFD'*)
5183  lt_cv_prog_gnu_ld=yes
5184  ;;
5185*)
5186  lt_cv_prog_gnu_ld=no
5187  ;;
5188esac
5189fi
5190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5191printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5192with_gnu_ld=$lt_cv_prog_gnu_ld
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5203printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5204if test ${lt_cv_path_NM+y}
5205then :
5206  printf %s "(cached) " >&6
5207else $as_nop
5208  if test -n "$NM"; then
5209  # Let the user override the test.
5210  lt_cv_path_NM=$NM
5211else
5212  lt_nm_to_check=${ac_tool_prefix}nm
5213  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5214    lt_nm_to_check="$lt_nm_to_check nm"
5215  fi
5216  for lt_tmp_nm in $lt_nm_to_check; do
5217    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5218    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5219      IFS=$lt_save_ifs
5220      test -z "$ac_dir" && ac_dir=.
5221      tmp_nm=$ac_dir/$lt_tmp_nm
5222      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5223	# Check to see if the nm accepts a BSD-compat flag.
5224	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5225	#   nm: unknown option "B" ignored
5226	# Tru64's nm complains that /dev/null is an invalid object file
5227	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5228	case $build_os in
5229	mingw*) lt_bad_file=conftest.nm/nofile ;;
5230	*) lt_bad_file=/dev/null ;;
5231	esac
5232	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5233	*$lt_bad_file* | *'Invalid file or object type'*)
5234	  lt_cv_path_NM="$tmp_nm -B"
5235	  break 2
5236	  ;;
5237	*)
5238	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5239	  */dev/null*)
5240	    lt_cv_path_NM="$tmp_nm -p"
5241	    break 2
5242	    ;;
5243	  *)
5244	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5245	    continue # so that we can try to find one that supports BSD flags
5246	    ;;
5247	  esac
5248	  ;;
5249	esac
5250      fi
5251    done
5252    IFS=$lt_save_ifs
5253  done
5254  : ${lt_cv_path_NM=no}
5255fi
5256fi
5257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5258printf "%s\n" "$lt_cv_path_NM" >&6; }
5259if test no != "$lt_cv_path_NM"; then
5260  NM=$lt_cv_path_NM
5261else
5262  # Didn't find any BSD compatible name lister, look for dumpbin.
5263  if test -n "$DUMPBIN"; then :
5264    # Let the user override the test.
5265  else
5266    if test -n "$ac_tool_prefix"; then
5267  for ac_prog in dumpbin "link -dump"
5268  do
5269    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5270set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272printf %s "checking for $ac_word... " >&6; }
5273if test ${ac_cv_prog_DUMPBIN+y}
5274then :
5275  printf %s "(cached) " >&6
5276else $as_nop
5277  if test -n "$DUMPBIN"; then
5278  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283  IFS=$as_save_IFS
5284  case $as_dir in #(((
5285    '') as_dir=./ ;;
5286    */) ;;
5287    *) as_dir=$as_dir/ ;;
5288  esac
5289    for ac_exec_ext in '' $ac_executable_extensions; do
5290  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5291    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5292    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296  done
5297IFS=$as_save_IFS
5298
5299fi
5300fi
5301DUMPBIN=$ac_cv_prog_DUMPBIN
5302if test -n "$DUMPBIN"; then
5303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5304printf "%s\n" "$DUMPBIN" >&6; }
5305else
5306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307printf "%s\n" "no" >&6; }
5308fi
5309
5310
5311    test -n "$DUMPBIN" && break
5312  done
5313fi
5314if test -z "$DUMPBIN"; then
5315  ac_ct_DUMPBIN=$DUMPBIN
5316  for ac_prog in dumpbin "link -dump"
5317do
5318  # Extract the first word of "$ac_prog", so it can be a program name with args.
5319set dummy $ac_prog; ac_word=$2
5320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321printf %s "checking for $ac_word... " >&6; }
5322if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5323then :
5324  printf %s "(cached) " >&6
5325else $as_nop
5326  if test -n "$ac_ct_DUMPBIN"; then
5327  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332  IFS=$as_save_IFS
5333  case $as_dir in #(((
5334    '') as_dir=./ ;;
5335    */) ;;
5336    *) as_dir=$as_dir/ ;;
5337  esac
5338    for ac_exec_ext in '' $ac_executable_extensions; do
5339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5340    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5342    break 2
5343  fi
5344done
5345  done
5346IFS=$as_save_IFS
5347
5348fi
5349fi
5350ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5351if test -n "$ac_ct_DUMPBIN"; then
5352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5353printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5354else
5355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356printf "%s\n" "no" >&6; }
5357fi
5358
5359
5360  test -n "$ac_ct_DUMPBIN" && break
5361done
5362
5363  if test "x$ac_ct_DUMPBIN" = x; then
5364    DUMPBIN=":"
5365  else
5366    case $cross_compiling:$ac_tool_warned in
5367yes:)
5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370ac_tool_warned=yes ;;
5371esac
5372    DUMPBIN=$ac_ct_DUMPBIN
5373  fi
5374fi
5375
5376    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5377    *COFF*)
5378      DUMPBIN="$DUMPBIN -symbols -headers"
5379      ;;
5380    *)
5381      DUMPBIN=:
5382      ;;
5383    esac
5384  fi
5385
5386  if test : != "$DUMPBIN"; then
5387    NM=$DUMPBIN
5388  fi
5389fi
5390test -z "$NM" && NM=nm
5391
5392
5393
5394
5395
5396
5397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5398printf %s "checking the name lister ($NM) interface... " >&6; }
5399if test ${lt_cv_nm_interface+y}
5400then :
5401  printf %s "(cached) " >&6
5402else $as_nop
5403  lt_cv_nm_interface="BSD nm"
5404  echo "int some_variable = 0;" > conftest.$ac_ext
5405  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5406  (eval "$ac_compile" 2>conftest.err)
5407  cat conftest.err >&5
5408  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5409  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5410  cat conftest.err >&5
5411  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5412  cat conftest.out >&5
5413  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5414    lt_cv_nm_interface="MS dumpbin"
5415  fi
5416  rm -f conftest*
5417fi
5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5419printf "%s\n" "$lt_cv_nm_interface" >&6; }
5420
5421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5422printf %s "checking whether ln -s works... " >&6; }
5423LN_S=$as_ln_s
5424if test "$LN_S" = "ln -s"; then
5425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5426printf "%s\n" "yes" >&6; }
5427else
5428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5429printf "%s\n" "no, using $LN_S" >&6; }
5430fi
5431
5432# find the maximum length of command line arguments
5433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5434printf %s "checking the maximum length of command line arguments... " >&6; }
5435if test ${lt_cv_sys_max_cmd_len+y}
5436then :
5437  printf %s "(cached) " >&6
5438else $as_nop
5439    i=0
5440  teststring=ABCD
5441
5442  case $build_os in
5443  msdosdjgpp*)
5444    # On DJGPP, this test can blow up pretty badly due to problems in libc
5445    # (any single argument exceeding 2000 bytes causes a buffer overrun
5446    # during glob expansion).  Even if it were fixed, the result of this
5447    # check would be larger than it should be.
5448    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5449    ;;
5450
5451  gnu*)
5452    # Under GNU Hurd, this test is not required because there is
5453    # no limit to the length of command line arguments.
5454    # Libtool will interpret -1 as no limit whatsoever
5455    lt_cv_sys_max_cmd_len=-1;
5456    ;;
5457
5458  cygwin* | mingw* | cegcc*)
5459    # On Win9x/ME, this test blows up -- it succeeds, but takes
5460    # about 5 minutes as the teststring grows exponentially.
5461    # Worse, since 9x/ME are not pre-emptively multitasking,
5462    # you end up with a "frozen" computer, even though with patience
5463    # the test eventually succeeds (with a max line length of 256k).
5464    # Instead, let's just punt: use the minimum linelength reported by
5465    # all of the supported platforms: 8192 (on NT/2K/XP).
5466    lt_cv_sys_max_cmd_len=8192;
5467    ;;
5468
5469  mint*)
5470    # On MiNT this can take a long time and run out of memory.
5471    lt_cv_sys_max_cmd_len=8192;
5472    ;;
5473
5474  amigaos*)
5475    # On AmigaOS with pdksh, this test takes hours, literally.
5476    # So we just punt and use a minimum line length of 8192.
5477    lt_cv_sys_max_cmd_len=8192;
5478    ;;
5479
5480  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5481    # This has been around since 386BSD, at least.  Likely further.
5482    if test -x /sbin/sysctl; then
5483      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5484    elif test -x /usr/sbin/sysctl; then
5485      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5486    else
5487      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5488    fi
5489    # And add a safety zone
5490    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5491    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5492    ;;
5493
5494  interix*)
5495    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5496    lt_cv_sys_max_cmd_len=196608
5497    ;;
5498
5499  os2*)
5500    # The test takes a long time on OS/2.
5501    lt_cv_sys_max_cmd_len=8192
5502    ;;
5503
5504  osf*)
5505    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5506    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5507    # nice to cause kernel panics so lets avoid the loop below.
5508    # First set a reasonable default.
5509    lt_cv_sys_max_cmd_len=16384
5510    #
5511    if test -x /sbin/sysconfig; then
5512      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5513        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5514      esac
5515    fi
5516    ;;
5517  sco3.2v5*)
5518    lt_cv_sys_max_cmd_len=102400
5519    ;;
5520  sysv5* | sco5v6* | sysv4.2uw2*)
5521    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5522    if test -n "$kargmax"; then
5523      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5524    else
5525      lt_cv_sys_max_cmd_len=32768
5526    fi
5527    ;;
5528  *)
5529    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5530    if test -n "$lt_cv_sys_max_cmd_len" && \
5531       test undefined != "$lt_cv_sys_max_cmd_len"; then
5532      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5533      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5534    else
5535      # Make teststring a little bigger before we do anything with it.
5536      # a 1K string should be a reasonable start.
5537      for i in 1 2 3 4 5 6 7 8; do
5538        teststring=$teststring$teststring
5539      done
5540      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5541      # If test is not a shell built-in, we'll probably end up computing a
5542      # maximum length that is only half of the actual maximum length, but
5543      # we can't tell.
5544      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5545	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5546	      test 17 != "$i" # 1/2 MB should be enough
5547      do
5548        i=`expr $i + 1`
5549        teststring=$teststring$teststring
5550      done
5551      # Only check the string length outside the loop.
5552      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5553      teststring=
5554      # Add a significant safety factor because C++ compilers can tack on
5555      # massive amounts of additional arguments before passing them to the
5556      # linker.  It appears as though 1/2 is a usable value.
5557      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5558    fi
5559    ;;
5560  esac
5561
5562fi
5563
5564if test -n "$lt_cv_sys_max_cmd_len"; then
5565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5566printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5567else
5568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5569printf "%s\n" "none" >&6; }
5570fi
5571max_cmd_len=$lt_cv_sys_max_cmd_len
5572
5573
5574
5575
5576
5577
5578: ${CP="cp -f"}
5579: ${MV="mv -f"}
5580: ${RM="rm -f"}
5581
5582if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5583  lt_unset=unset
5584else
5585  lt_unset=false
5586fi
5587
5588
5589
5590
5591
5592# test EBCDIC or ASCII
5593case `echo X|tr X '\101'` in
5594 A) # ASCII based system
5595    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5596  lt_SP2NL='tr \040 \012'
5597  lt_NL2SP='tr \015\012 \040\040'
5598  ;;
5599 *) # EBCDIC based system
5600  lt_SP2NL='tr \100 \n'
5601  lt_NL2SP='tr \r\n \100\100'
5602  ;;
5603esac
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5614printf %s "checking how to convert $build file names to $host format... " >&6; }
5615if test ${lt_cv_to_host_file_cmd+y}
5616then :
5617  printf %s "(cached) " >&6
5618else $as_nop
5619  case $host in
5620  *-*-mingw* )
5621    case $build in
5622      *-*-mingw* ) # actually msys
5623        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5624        ;;
5625      *-*-cygwin* )
5626        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5627        ;;
5628      * ) # otherwise, assume *nix
5629        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5630        ;;
5631    esac
5632    ;;
5633  *-*-cygwin* )
5634    case $build in
5635      *-*-mingw* ) # actually msys
5636        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5637        ;;
5638      *-*-cygwin* )
5639        lt_cv_to_host_file_cmd=func_convert_file_noop
5640        ;;
5641      * ) # otherwise, assume *nix
5642        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5643        ;;
5644    esac
5645    ;;
5646  * ) # unhandled hosts (and "normal" native builds)
5647    lt_cv_to_host_file_cmd=func_convert_file_noop
5648    ;;
5649esac
5650
5651fi
5652
5653to_host_file_cmd=$lt_cv_to_host_file_cmd
5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5655printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5656
5657
5658
5659
5660
5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5662printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5663if test ${lt_cv_to_tool_file_cmd+y}
5664then :
5665  printf %s "(cached) " >&6
5666else $as_nop
5667  #assume ordinary cross tools, or native build.
5668lt_cv_to_tool_file_cmd=func_convert_file_noop
5669case $host in
5670  *-*-mingw* )
5671    case $build in
5672      *-*-mingw* ) # actually msys
5673        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5674        ;;
5675    esac
5676    ;;
5677esac
5678
5679fi
5680
5681to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5683printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5684
5685
5686
5687
5688
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5690printf %s "checking for $LD option to reload object files... " >&6; }
5691if test ${lt_cv_ld_reload_flag+y}
5692then :
5693  printf %s "(cached) " >&6
5694else $as_nop
5695  lt_cv_ld_reload_flag='-r'
5696fi
5697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5698printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5699reload_flag=$lt_cv_ld_reload_flag
5700case $reload_flag in
5701"" | " "*) ;;
5702*) reload_flag=" $reload_flag" ;;
5703esac
5704reload_cmds='$LD$reload_flag -o $output$reload_objs'
5705case $host_os in
5706  cygwin* | mingw* | pw32* | cegcc*)
5707    if test yes != "$GCC"; then
5708      reload_cmds=false
5709    fi
5710    ;;
5711  darwin*)
5712    if test yes = "$GCC"; then
5713      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5714    else
5715      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5716    fi
5717    ;;
5718esac
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728if test -n "$ac_tool_prefix"; then
5729  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5730set dummy ${ac_tool_prefix}objdump; ac_word=$2
5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732printf %s "checking for $ac_word... " >&6; }
5733if test ${ac_cv_prog_OBJDUMP+y}
5734then :
5735  printf %s "(cached) " >&6
5736else $as_nop
5737  if test -n "$OBJDUMP"; then
5738  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743  IFS=$as_save_IFS
5744  case $as_dir in #(((
5745    '') as_dir=./ ;;
5746    */) ;;
5747    *) as_dir=$as_dir/ ;;
5748  esac
5749    for ac_exec_ext in '' $ac_executable_extensions; do
5750  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5751    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5752    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5753    break 2
5754  fi
5755done
5756  done
5757IFS=$as_save_IFS
5758
5759fi
5760fi
5761OBJDUMP=$ac_cv_prog_OBJDUMP
5762if test -n "$OBJDUMP"; then
5763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5764printf "%s\n" "$OBJDUMP" >&6; }
5765else
5766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767printf "%s\n" "no" >&6; }
5768fi
5769
5770
5771fi
5772if test -z "$ac_cv_prog_OBJDUMP"; then
5773  ac_ct_OBJDUMP=$OBJDUMP
5774  # Extract the first word of "objdump", so it can be a program name with args.
5775set dummy objdump; ac_word=$2
5776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777printf %s "checking for $ac_word... " >&6; }
5778if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5779then :
5780  printf %s "(cached) " >&6
5781else $as_nop
5782  if test -n "$ac_ct_OBJDUMP"; then
5783  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  case $as_dir in #(((
5790    '') as_dir=./ ;;
5791    */) ;;
5792    *) as_dir=$as_dir/ ;;
5793  esac
5794    for ac_exec_ext in '' $ac_executable_extensions; do
5795  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5796    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5797    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5798    break 2
5799  fi
5800done
5801  done
5802IFS=$as_save_IFS
5803
5804fi
5805fi
5806ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5807if test -n "$ac_ct_OBJDUMP"; then
5808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5809printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5810else
5811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812printf "%s\n" "no" >&6; }
5813fi
5814
5815  if test "x$ac_ct_OBJDUMP" = x; then
5816    OBJDUMP="false"
5817  else
5818    case $cross_compiling:$ac_tool_warned in
5819yes:)
5820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5822ac_tool_warned=yes ;;
5823esac
5824    OBJDUMP=$ac_ct_OBJDUMP
5825  fi
5826else
5827  OBJDUMP="$ac_cv_prog_OBJDUMP"
5828fi
5829
5830test -z "$OBJDUMP" && OBJDUMP=objdump
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5841printf %s "checking how to recognize dependent libraries... " >&6; }
5842if test ${lt_cv_deplibs_check_method+y}
5843then :
5844  printf %s "(cached) " >&6
5845else $as_nop
5846  lt_cv_file_magic_cmd='$MAGIC_CMD'
5847lt_cv_file_magic_test_file=
5848lt_cv_deplibs_check_method='unknown'
5849# Need to set the preceding variable on all platforms that support
5850# interlibrary dependencies.
5851# 'none' -- dependencies not supported.
5852# 'unknown' -- same as none, but documents that we really don't know.
5853# 'pass_all' -- all dependencies passed with no checks.
5854# 'test_compile' -- check by making test program.
5855# 'file_magic [[regex]]' -- check by looking for files in library path
5856# that responds to the $file_magic_cmd with a given extended regex.
5857# If you have 'file' or equivalent on your system and you're not sure
5858# whether 'pass_all' will *always* work, you probably want this one.
5859
5860case $host_os in
5861aix[4-9]*)
5862  lt_cv_deplibs_check_method=pass_all
5863  ;;
5864
5865beos*)
5866  lt_cv_deplibs_check_method=pass_all
5867  ;;
5868
5869bsdi[45]*)
5870  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5871  lt_cv_file_magic_cmd='/usr/bin/file -L'
5872  lt_cv_file_magic_test_file=/shlib/libc.so
5873  ;;
5874
5875cygwin*)
5876  # func_win32_libid is a shell function defined in ltmain.sh
5877  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5878  lt_cv_file_magic_cmd='func_win32_libid'
5879  ;;
5880
5881mingw* | pw32*)
5882  # Base MSYS/MinGW do not provide the 'file' command needed by
5883  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5884  # unless we find 'file', for example because we are cross-compiling.
5885  if ( file / ) >/dev/null 2>&1; then
5886    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5887    lt_cv_file_magic_cmd='func_win32_libid'
5888  else
5889    # Keep this pattern in sync with the one in func_win32_libid.
5890    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5891    lt_cv_file_magic_cmd='$OBJDUMP -f'
5892  fi
5893  ;;
5894
5895cegcc*)
5896  # use the weaker test based on 'objdump'. See mingw*.
5897  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5898  lt_cv_file_magic_cmd='$OBJDUMP -f'
5899  ;;
5900
5901darwin* | rhapsody*)
5902  lt_cv_deplibs_check_method=pass_all
5903  ;;
5904
5905freebsd* | dragonfly*)
5906  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5907    case $host_cpu in
5908    i*86 )
5909      # Not sure whether the presence of OpenBSD here was a mistake.
5910      # Let's accept both of them until this is cleared up.
5911      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5912      lt_cv_file_magic_cmd=/usr/bin/file
5913      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5914      ;;
5915    esac
5916  else
5917    lt_cv_deplibs_check_method=pass_all
5918  fi
5919  ;;
5920
5921haiku*)
5922  lt_cv_deplibs_check_method=pass_all
5923  ;;
5924
5925hpux10.20* | hpux11*)
5926  lt_cv_file_magic_cmd=/usr/bin/file
5927  case $host_cpu in
5928  ia64*)
5929    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5930    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5931    ;;
5932  hppa*64*)
5933    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]'
5934    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5935    ;;
5936  *)
5937    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5938    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5939    ;;
5940  esac
5941  ;;
5942
5943interix[3-9]*)
5944  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5945  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5946  ;;
5947
5948irix5* | irix6* | nonstopux*)
5949  case $LD in
5950  *-32|*"-32 ") libmagic=32-bit;;
5951  *-n32|*"-n32 ") libmagic=N32;;
5952  *-64|*"-64 ") libmagic=64-bit;;
5953  *) libmagic=never-match;;
5954  esac
5955  lt_cv_deplibs_check_method=pass_all
5956  ;;
5957
5958# This must be glibc/ELF.
5959linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5960  lt_cv_deplibs_check_method=pass_all
5961  ;;
5962
5963netbsd*)
5964  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5965    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5966  else
5967    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5968  fi
5969  ;;
5970
5971newos6*)
5972  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5973  lt_cv_file_magic_cmd=/usr/bin/file
5974  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5975  ;;
5976
5977*nto* | *qnx*)
5978  lt_cv_deplibs_check_method=pass_all
5979  ;;
5980
5981openbsd* | bitrig*)
5982  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5983    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5984  else
5985    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5986  fi
5987  ;;
5988
5989osf3* | osf4* | osf5*)
5990  lt_cv_deplibs_check_method=pass_all
5991  ;;
5992
5993rdos*)
5994  lt_cv_deplibs_check_method=pass_all
5995  ;;
5996
5997solaris*)
5998  lt_cv_deplibs_check_method=pass_all
5999  ;;
6000
6001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6002  lt_cv_deplibs_check_method=pass_all
6003  ;;
6004
6005sysv4 | sysv4.3*)
6006  case $host_vendor in
6007  motorola)
6008    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]'
6009    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6010    ;;
6011  ncr)
6012    lt_cv_deplibs_check_method=pass_all
6013    ;;
6014  sequent)
6015    lt_cv_file_magic_cmd='/bin/file'
6016    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6017    ;;
6018  sni)
6019    lt_cv_file_magic_cmd='/bin/file'
6020    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6021    lt_cv_file_magic_test_file=/lib/libc.so
6022    ;;
6023  siemens)
6024    lt_cv_deplibs_check_method=pass_all
6025    ;;
6026  pc)
6027    lt_cv_deplibs_check_method=pass_all
6028    ;;
6029  esac
6030  ;;
6031
6032tpf*)
6033  lt_cv_deplibs_check_method=pass_all
6034  ;;
6035os2*)
6036  lt_cv_deplibs_check_method=pass_all
6037  ;;
6038esac
6039
6040fi
6041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6042printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6043
6044file_magic_glob=
6045want_nocaseglob=no
6046if test "$build" = "$host"; then
6047  case $host_os in
6048  mingw* | pw32*)
6049    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6050      want_nocaseglob=yes
6051    else
6052      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6053    fi
6054    ;;
6055  esac
6056fi
6057
6058file_magic_cmd=$lt_cv_file_magic_cmd
6059deplibs_check_method=$lt_cv_deplibs_check_method
6060test -z "$deplibs_check_method" && deplibs_check_method=unknown
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083if test -n "$ac_tool_prefix"; then
6084  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6085set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087printf %s "checking for $ac_word... " >&6; }
6088if test ${ac_cv_prog_DLLTOOL+y}
6089then :
6090  printf %s "(cached) " >&6
6091else $as_nop
6092  if test -n "$DLLTOOL"; then
6093  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6094else
6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098  IFS=$as_save_IFS
6099  case $as_dir in #(((
6100    '') as_dir=./ ;;
6101    */) ;;
6102    *) as_dir=$as_dir/ ;;
6103  esac
6104    for ac_exec_ext in '' $ac_executable_extensions; do
6105  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6106    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6107    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111  done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116DLLTOOL=$ac_cv_prog_DLLTOOL
6117if test -n "$DLLTOOL"; then
6118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6119printf "%s\n" "$DLLTOOL" >&6; }
6120else
6121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122printf "%s\n" "no" >&6; }
6123fi
6124
6125
6126fi
6127if test -z "$ac_cv_prog_DLLTOOL"; then
6128  ac_ct_DLLTOOL=$DLLTOOL
6129  # Extract the first word of "dlltool", so it can be a program name with args.
6130set dummy dlltool; ac_word=$2
6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132printf %s "checking for $ac_word... " >&6; }
6133if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6134then :
6135  printf %s "(cached) " >&6
6136else $as_nop
6137  if test -n "$ac_ct_DLLTOOL"; then
6138  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  case $as_dir in #(((
6145    '') as_dir=./ ;;
6146    */) ;;
6147    *) as_dir=$as_dir/ ;;
6148  esac
6149    for ac_exec_ext in '' $ac_executable_extensions; do
6150  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6151    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6152    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6153    break 2
6154  fi
6155done
6156  done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6162if test -n "$ac_ct_DLLTOOL"; then
6163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6164printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6165else
6166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167printf "%s\n" "no" >&6; }
6168fi
6169
6170  if test "x$ac_ct_DLLTOOL" = x; then
6171    DLLTOOL="false"
6172  else
6173    case $cross_compiling:$ac_tool_warned in
6174yes:)
6175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177ac_tool_warned=yes ;;
6178esac
6179    DLLTOOL=$ac_ct_DLLTOOL
6180  fi
6181else
6182  DLLTOOL="$ac_cv_prog_DLLTOOL"
6183fi
6184
6185test -z "$DLLTOOL" && DLLTOOL=dlltool
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6197printf %s "checking how to associate runtime and link libraries... " >&6; }
6198if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6199then :
6200  printf %s "(cached) " >&6
6201else $as_nop
6202  lt_cv_sharedlib_from_linklib_cmd='unknown'
6203
6204case $host_os in
6205cygwin* | mingw* | pw32* | cegcc*)
6206  # two different shell functions defined in ltmain.sh;
6207  # decide which one to use based on capabilities of $DLLTOOL
6208  case `$DLLTOOL --help 2>&1` in
6209  *--identify-strict*)
6210    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6211    ;;
6212  *)
6213    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6214    ;;
6215  esac
6216  ;;
6217*)
6218  # fallback: assume linklib IS sharedlib
6219  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6220  ;;
6221esac
6222
6223fi
6224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6225printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6226sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6227test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6228
6229
6230
6231
6232
6233
6234
6235
6236if test -n "$ac_tool_prefix"; then
6237  for ac_prog in ar
6238  do
6239    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242printf %s "checking for $ac_word... " >&6; }
6243if test ${ac_cv_prog_AR+y}
6244then :
6245  printf %s "(cached) " >&6
6246else $as_nop
6247  if test -n "$AR"; then
6248  ac_cv_prog_AR="$AR" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253  IFS=$as_save_IFS
6254  case $as_dir in #(((
6255    '') as_dir=./ ;;
6256    */) ;;
6257    *) as_dir=$as_dir/ ;;
6258  esac
6259    for ac_exec_ext in '' $ac_executable_extensions; do
6260  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6261    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6262    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266  done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271AR=$ac_cv_prog_AR
6272if test -n "$AR"; then
6273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6274printf "%s\n" "$AR" >&6; }
6275else
6276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277printf "%s\n" "no" >&6; }
6278fi
6279
6280
6281    test -n "$AR" && break
6282  done
6283fi
6284if test -z "$AR"; then
6285  ac_ct_AR=$AR
6286  for ac_prog in ar
6287do
6288  # Extract the first word of "$ac_prog", so it can be a program name with args.
6289set dummy $ac_prog; ac_word=$2
6290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291printf %s "checking for $ac_word... " >&6; }
6292if test ${ac_cv_prog_ac_ct_AR+y}
6293then :
6294  printf %s "(cached) " >&6
6295else $as_nop
6296  if test -n "$ac_ct_AR"; then
6297  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6298else
6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302  IFS=$as_save_IFS
6303  case $as_dir in #(((
6304    '') as_dir=./ ;;
6305    */) ;;
6306    *) as_dir=$as_dir/ ;;
6307  esac
6308    for ac_exec_ext in '' $ac_executable_extensions; do
6309  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6310    ac_cv_prog_ac_ct_AR="$ac_prog"
6311    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315  done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320ac_ct_AR=$ac_cv_prog_ac_ct_AR
6321if test -n "$ac_ct_AR"; then
6322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6323printf "%s\n" "$ac_ct_AR" >&6; }
6324else
6325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326printf "%s\n" "no" >&6; }
6327fi
6328
6329
6330  test -n "$ac_ct_AR" && break
6331done
6332
6333  if test "x$ac_ct_AR" = x; then
6334    AR="false"
6335  else
6336    case $cross_compiling:$ac_tool_warned in
6337yes:)
6338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6339printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340ac_tool_warned=yes ;;
6341esac
6342    AR=$ac_ct_AR
6343  fi
6344fi
6345
6346: ${AR=ar}
6347: ${AR_FLAGS=cru}
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6360printf %s "checking for archiver @FILE support... " >&6; }
6361if test ${lt_cv_ar_at_file+y}
6362then :
6363  printf %s "(cached) " >&6
6364else $as_nop
6365  lt_cv_ar_at_file=no
6366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368
6369int
6370main (void)
6371{
6372
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_compile "$LINENO"
6378then :
6379  echo conftest.$ac_objext > conftest.lst
6380      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6381      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6382  (eval $lt_ar_try) 2>&5
6383  ac_status=$?
6384  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385  test $ac_status = 0; }
6386      if test 0 -eq "$ac_status"; then
6387	# Ensure the archiver fails upon bogus file names.
6388	rm -f conftest.$ac_objext libconftest.a
6389	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6390  (eval $lt_ar_try) 2>&5
6391  ac_status=$?
6392  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393  test $ac_status = 0; }
6394	if test 0 -ne "$ac_status"; then
6395          lt_cv_ar_at_file=@
6396        fi
6397      fi
6398      rm -f conftest.* libconftest.a
6399
6400fi
6401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6402
6403fi
6404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6405printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6406
6407if test no = "$lt_cv_ar_at_file"; then
6408  archiver_list_spec=
6409else
6410  archiver_list_spec=$lt_cv_ar_at_file
6411fi
6412
6413
6414
6415
6416
6417
6418
6419if test -n "$ac_tool_prefix"; then
6420  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6421set dummy ${ac_tool_prefix}strip; ac_word=$2
6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423printf %s "checking for $ac_word... " >&6; }
6424if test ${ac_cv_prog_STRIP+y}
6425then :
6426  printf %s "(cached) " >&6
6427else $as_nop
6428  if test -n "$STRIP"; then
6429  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  case $as_dir in #(((
6436    '') as_dir=./ ;;
6437    */) ;;
6438    *) as_dir=$as_dir/ ;;
6439  esac
6440    for ac_exec_ext in '' $ac_executable_extensions; do
6441  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6442    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6443    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6444    break 2
6445  fi
6446done
6447  done
6448IFS=$as_save_IFS
6449
6450fi
6451fi
6452STRIP=$ac_cv_prog_STRIP
6453if test -n "$STRIP"; then
6454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6455printf "%s\n" "$STRIP" >&6; }
6456else
6457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458printf "%s\n" "no" >&6; }
6459fi
6460
6461
6462fi
6463if test -z "$ac_cv_prog_STRIP"; then
6464  ac_ct_STRIP=$STRIP
6465  # Extract the first word of "strip", so it can be a program name with args.
6466set dummy strip; ac_word=$2
6467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468printf %s "checking for $ac_word... " >&6; }
6469if test ${ac_cv_prog_ac_ct_STRIP+y}
6470then :
6471  printf %s "(cached) " >&6
6472else $as_nop
6473  if test -n "$ac_ct_STRIP"; then
6474  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6475else
6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479  IFS=$as_save_IFS
6480  case $as_dir in #(((
6481    '') as_dir=./ ;;
6482    */) ;;
6483    *) as_dir=$as_dir/ ;;
6484  esac
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_ac_ct_STRIP="strip"
6488    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6498if test -n "$ac_ct_STRIP"; then
6499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6500printf "%s\n" "$ac_ct_STRIP" >&6; }
6501else
6502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503printf "%s\n" "no" >&6; }
6504fi
6505
6506  if test "x$ac_ct_STRIP" = x; then
6507    STRIP=":"
6508  else
6509    case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515    STRIP=$ac_ct_STRIP
6516  fi
6517else
6518  STRIP="$ac_cv_prog_STRIP"
6519fi
6520
6521test -z "$STRIP" && STRIP=:
6522
6523
6524
6525
6526
6527
6528if test -n "$ac_tool_prefix"; then
6529  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6530set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532printf %s "checking for $ac_word... " >&6; }
6533if test ${ac_cv_prog_RANLIB+y}
6534then :
6535  printf %s "(cached) " >&6
6536else $as_nop
6537  if test -n "$RANLIB"; then
6538  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6539else
6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543  IFS=$as_save_IFS
6544  case $as_dir in #(((
6545    '') as_dir=./ ;;
6546    */) ;;
6547    *) as_dir=$as_dir/ ;;
6548  esac
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6551    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6552    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561RANLIB=$ac_cv_prog_RANLIB
6562if test -n "$RANLIB"; then
6563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6564printf "%s\n" "$RANLIB" >&6; }
6565else
6566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567printf "%s\n" "no" >&6; }
6568fi
6569
6570
6571fi
6572if test -z "$ac_cv_prog_RANLIB"; then
6573  ac_ct_RANLIB=$RANLIB
6574  # Extract the first word of "ranlib", so it can be a program name with args.
6575set dummy ranlib; ac_word=$2
6576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577printf %s "checking for $ac_word... " >&6; }
6578if test ${ac_cv_prog_ac_ct_RANLIB+y}
6579then :
6580  printf %s "(cached) " >&6
6581else $as_nop
6582  if test -n "$ac_ct_RANLIB"; then
6583  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588  IFS=$as_save_IFS
6589  case $as_dir in #(((
6590    '') as_dir=./ ;;
6591    */) ;;
6592    *) as_dir=$as_dir/ ;;
6593  esac
6594    for ac_exec_ext in '' $ac_executable_extensions; do
6595  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6596    ac_cv_prog_ac_ct_RANLIB="ranlib"
6597    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6598    break 2
6599  fi
6600done
6601  done
6602IFS=$as_save_IFS
6603
6604fi
6605fi
6606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6607if test -n "$ac_ct_RANLIB"; then
6608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6609printf "%s\n" "$ac_ct_RANLIB" >&6; }
6610else
6611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612printf "%s\n" "no" >&6; }
6613fi
6614
6615  if test "x$ac_ct_RANLIB" = x; then
6616    RANLIB=":"
6617  else
6618    case $cross_compiling:$ac_tool_warned in
6619yes:)
6620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622ac_tool_warned=yes ;;
6623esac
6624    RANLIB=$ac_ct_RANLIB
6625  fi
6626else
6627  RANLIB="$ac_cv_prog_RANLIB"
6628fi
6629
6630test -z "$RANLIB" && RANLIB=:
6631
6632
6633
6634
6635
6636
6637# Determine commands to create old-style static archives.
6638old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6639old_postinstall_cmds='chmod 644 $oldlib'
6640old_postuninstall_cmds=
6641
6642if test -n "$RANLIB"; then
6643  case $host_os in
6644  bitrig* | openbsd*)
6645    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6646    ;;
6647  *)
6648    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6649    ;;
6650  esac
6651  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6652fi
6653
6654case $host_os in
6655  darwin*)
6656    lock_old_archive_extraction=yes ;;
6657  *)
6658    lock_old_archive_extraction=no ;;
6659esac
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699# If no C compiler was specified, use CC.
6700LTCC=${LTCC-"$CC"}
6701
6702# If no C compiler flags were specified, use CFLAGS.
6703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6704
6705# Allow CC to be a program name with arguments.
6706compiler=$CC
6707
6708
6709# Check for command to grab the raw symbol name followed by C symbol from nm.
6710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6711printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6712if test ${lt_cv_sys_global_symbol_pipe+y}
6713then :
6714  printf %s "(cached) " >&6
6715else $as_nop
6716
6717# These are sane defaults that work on at least a few old systems.
6718# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6719
6720# Character class describing NM global symbol codes.
6721symcode='[BCDEGRST]'
6722
6723# Regexp to match symbols that can be accessed directly from C.
6724sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6725
6726# Define system-specific variables.
6727case $host_os in
6728aix*)
6729  symcode='[BCDT]'
6730  ;;
6731cygwin* | mingw* | pw32* | cegcc*)
6732  symcode='[ABCDGISTW]'
6733  ;;
6734hpux*)
6735  if test ia64 = "$host_cpu"; then
6736    symcode='[ABCDEGRST]'
6737  fi
6738  ;;
6739irix* | nonstopux*)
6740  symcode='[BCDEGRST]'
6741  ;;
6742osf*)
6743  symcode='[BCDEGQRST]'
6744  ;;
6745solaris*)
6746  symcode='[BDRT]'
6747  ;;
6748sco3.2v5*)
6749  symcode='[DT]'
6750  ;;
6751sysv4.2uw2*)
6752  symcode='[DT]'
6753  ;;
6754sysv5* | sco5v6* | unixware* | OpenUNIX*)
6755  symcode='[ABDT]'
6756  ;;
6757sysv4)
6758  symcode='[DFNSTU]'
6759  ;;
6760esac
6761
6762# If we're using GNU nm, then use its standard symbol codes.
6763case `$NM -V 2>&1` in
6764*GNU* | *'with BFD'*)
6765  symcode='[ABCDGIRSTW]' ;;
6766esac
6767
6768if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6769  # Gets list of data symbols to import.
6770  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6771  # Adjust the below global symbol transforms to fixup imported variables.
6772  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6773  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6774  lt_c_name_lib_hook="\
6775  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6776  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6777else
6778  # Disable hooks by default.
6779  lt_cv_sys_global_symbol_to_import=
6780  lt_cdecl_hook=
6781  lt_c_name_hook=
6782  lt_c_name_lib_hook=
6783fi
6784
6785# Transform an extracted symbol line into a proper C declaration.
6786# Some systems (esp. on ia64) link data and code symbols differently,
6787# so use this general approach.
6788lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6789$lt_cdecl_hook\
6790" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6791" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6792
6793# Transform an extracted symbol line into symbol name and symbol address
6794lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6795$lt_c_name_hook\
6796" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6797" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6798
6799# Transform an extracted symbol line into symbol name with lib prefix and
6800# symbol address.
6801lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6802$lt_c_name_lib_hook\
6803" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6804" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6805" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6806
6807# Handle CRLF in mingw tool chain
6808opt_cr=
6809case $build_os in
6810mingw*)
6811  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6812  ;;
6813esac
6814
6815# Try without a prefix underscore, then with it.
6816for ac_symprfx in "" "_"; do
6817
6818  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6819  symxfrm="\\1 $ac_symprfx\\2 \\2"
6820
6821  # Write the raw and C identifiers.
6822  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6823    # Fake it for dumpbin and say T for any non-static function,
6824    # D for any global variable and I for any imported variable.
6825    # Also find C++ and __fastcall symbols from MSVC++,
6826    # which start with @ or ?.
6827    lt_cv_sys_global_symbol_pipe="$AWK '"\
6828"     {last_section=section; section=\$ 3};"\
6829"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6830"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6831"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6832"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6833"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6834"     \$ 0!~/External *\|/{next};"\
6835"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6836"     {if(hide[section]) next};"\
6837"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6838"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6839"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6840"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6841"     ' prfx=^$ac_symprfx"
6842  else
6843    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6844  fi
6845  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6846
6847  # Check to see that the pipe works correctly.
6848  pipe_works=no
6849
6850  rm -f conftest*
6851  cat > conftest.$ac_ext <<_LT_EOF
6852#ifdef __cplusplus
6853extern "C" {
6854#endif
6855char nm_test_var;
6856void nm_test_func(void);
6857void nm_test_func(void){}
6858#ifdef __cplusplus
6859}
6860#endif
6861int main(){nm_test_var='a';nm_test_func();return(0);}
6862_LT_EOF
6863
6864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865  (eval $ac_compile) 2>&5
6866  ac_status=$?
6867  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868  test $ac_status = 0; }; then
6869    # Now try to grab the symbols.
6870    nlist=conftest.nm
6871    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6872  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6873  ac_status=$?
6874  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875  test $ac_status = 0; } && test -s "$nlist"; then
6876      # Try sorting and uniquifying the output.
6877      if sort "$nlist" | uniq > "$nlist"T; then
6878	mv -f "$nlist"T "$nlist"
6879      else
6880	rm -f "$nlist"T
6881      fi
6882
6883      # Make sure that we snagged all the symbols we need.
6884      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6885	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6886	  cat <<_LT_EOF > conftest.$ac_ext
6887/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6888#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6889/* DATA imports from DLLs on WIN32 can't be const, because runtime
6890   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6891# define LT_DLSYM_CONST
6892#elif defined __osf__
6893/* This system does not cope well with relocations in const data.  */
6894# define LT_DLSYM_CONST
6895#else
6896# define LT_DLSYM_CONST const
6897#endif
6898
6899#ifdef __cplusplus
6900extern "C" {
6901#endif
6902
6903_LT_EOF
6904	  # Now generate the symbol file.
6905	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6906
6907	  cat <<_LT_EOF >> conftest.$ac_ext
6908
6909/* The mapping between symbol names and symbols.  */
6910LT_DLSYM_CONST struct {
6911  const char *name;
6912  void       *address;
6913}
6914lt__PROGRAM__LTX_preloaded_symbols[] =
6915{
6916  { "@PROGRAM@", (void *) 0 },
6917_LT_EOF
6918	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6919	  cat <<\_LT_EOF >> conftest.$ac_ext
6920  {0, (void *) 0}
6921};
6922
6923/* This works around a problem in FreeBSD linker */
6924#ifdef FREEBSD_WORKAROUND
6925static const void *lt_preloaded_setup() {
6926  return lt__PROGRAM__LTX_preloaded_symbols;
6927}
6928#endif
6929
6930#ifdef __cplusplus
6931}
6932#endif
6933_LT_EOF
6934	  # Now try linking the two files.
6935	  mv conftest.$ac_objext conftstm.$ac_objext
6936	  lt_globsym_save_LIBS=$LIBS
6937	  lt_globsym_save_CFLAGS=$CFLAGS
6938	  LIBS=conftstm.$ac_objext
6939	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6940	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6941  (eval $ac_link) 2>&5
6942  ac_status=$?
6943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6945	    pipe_works=yes
6946	  fi
6947	  LIBS=$lt_globsym_save_LIBS
6948	  CFLAGS=$lt_globsym_save_CFLAGS
6949	else
6950	  echo "cannot find nm_test_func in $nlist" >&5
6951	fi
6952      else
6953	echo "cannot find nm_test_var in $nlist" >&5
6954      fi
6955    else
6956      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6957    fi
6958  else
6959    echo "$progname: failed program was:" >&5
6960    cat conftest.$ac_ext >&5
6961  fi
6962  rm -rf conftest* conftst*
6963
6964  # Do not use the global_symbol_pipe unless it works.
6965  if test yes = "$pipe_works"; then
6966    break
6967  else
6968    lt_cv_sys_global_symbol_pipe=
6969  fi
6970done
6971
6972fi
6973
6974if test -z "$lt_cv_sys_global_symbol_pipe"; then
6975  lt_cv_sys_global_symbol_to_cdecl=
6976fi
6977if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6979printf "%s\n" "failed" >&6; }
6980else
6981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6982printf "%s\n" "ok" >&6; }
6983fi
6984
6985# Response file support.
6986if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987  nm_file_list_spec='@'
6988elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6989  nm_file_list_spec='@'
6990fi
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7029printf %s "checking for sysroot... " >&6; }
7030
7031# Check whether --with-sysroot was given.
7032if test ${with_sysroot+y}
7033then :
7034  withval=$with_sysroot;
7035else $as_nop
7036  with_sysroot=no
7037fi
7038
7039
7040lt_sysroot=
7041case $with_sysroot in #(
7042 yes)
7043   if test yes = "$GCC"; then
7044     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7045   fi
7046   ;; #(
7047 /*)
7048   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7049   ;; #(
7050 no|'')
7051   ;; #(
7052 *)
7053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7054printf "%s\n" "$with_sysroot" >&6; }
7055   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7056   ;;
7057esac
7058
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7060printf "%s\n" "${lt_sysroot:-no}" >&6; }
7061
7062
7063
7064
7065
7066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7067printf %s "checking for a working dd... " >&6; }
7068if test ${ac_cv_path_lt_DD+y}
7069then :
7070  printf %s "(cached) " >&6
7071else $as_nop
7072  printf 0123456789abcdef0123456789abcdef >conftest.i
7073cat conftest.i conftest.i >conftest2.i
7074: ${lt_DD:=$DD}
7075if test -z "$lt_DD"; then
7076  ac_path_lt_DD_found=false
7077  # Loop through the user's path and test for each of PROGNAME-LIST
7078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  case $as_dir in #(((
7083    '') as_dir=./ ;;
7084    */) ;;
7085    *) as_dir=$as_dir/ ;;
7086  esac
7087    for ac_prog in dd
7088   do
7089    for ac_exec_ext in '' $ac_executable_extensions; do
7090      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7091      as_fn_executable_p "$ac_path_lt_DD" || continue
7092if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7093  cmp -s conftest.i conftest.out \
7094  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7095fi
7096      $ac_path_lt_DD_found && break 3
7097    done
7098  done
7099  done
7100IFS=$as_save_IFS
7101  if test -z "$ac_cv_path_lt_DD"; then
7102    :
7103  fi
7104else
7105  ac_cv_path_lt_DD=$lt_DD
7106fi
7107
7108rm -f conftest.i conftest2.i conftest.out
7109fi
7110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7111printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7112
7113
7114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7115printf %s "checking how to truncate binary pipes... " >&6; }
7116if test ${lt_cv_truncate_bin+y}
7117then :
7118  printf %s "(cached) " >&6
7119else $as_nop
7120  printf 0123456789abcdef0123456789abcdef >conftest.i
7121cat conftest.i conftest.i >conftest2.i
7122lt_cv_truncate_bin=
7123if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7124  cmp -s conftest.i conftest.out \
7125  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7126fi
7127rm -f conftest.i conftest2.i conftest.out
7128test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7129fi
7130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7131printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7132
7133
7134
7135
7136
7137
7138
7139# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7140func_cc_basename ()
7141{
7142    for cc_temp in $*""; do
7143      case $cc_temp in
7144        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7145        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7146        \-*) ;;
7147        *) break;;
7148      esac
7149    done
7150    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7151}
7152
7153# Check whether --enable-libtool-lock was given.
7154if test ${enable_libtool_lock+y}
7155then :
7156  enableval=$enable_libtool_lock;
7157fi
7158
7159test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7160
7161# Some flags need to be propagated to the compiler or linker for good
7162# libtool support.
7163case $host in
7164ia64-*-hpux*)
7165  # Find out what ABI is being produced by ac_compile, and set mode
7166  # options accordingly.
7167  echo 'int i;' > conftest.$ac_ext
7168  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7169  (eval $ac_compile) 2>&5
7170  ac_status=$?
7171  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172  test $ac_status = 0; }; then
7173    case `/usr/bin/file conftest.$ac_objext` in
7174      *ELF-32*)
7175	HPUX_IA64_MODE=32
7176	;;
7177      *ELF-64*)
7178	HPUX_IA64_MODE=64
7179	;;
7180    esac
7181  fi
7182  rm -rf conftest*
7183  ;;
7184*-*-irix6*)
7185  # Find out what ABI is being produced by ac_compile, and set linker
7186  # options accordingly.
7187  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189  (eval $ac_compile) 2>&5
7190  ac_status=$?
7191  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192  test $ac_status = 0; }; then
7193    if test yes = "$lt_cv_prog_gnu_ld"; then
7194      case `/usr/bin/file conftest.$ac_objext` in
7195	*32-bit*)
7196	  LD="${LD-ld} -melf32bsmip"
7197	  ;;
7198	*N32*)
7199	  LD="${LD-ld} -melf32bmipn32"
7200	  ;;
7201	*64-bit*)
7202	  LD="${LD-ld} -melf64bmip"
7203	;;
7204      esac
7205    else
7206      case `/usr/bin/file conftest.$ac_objext` in
7207	*32-bit*)
7208	  LD="${LD-ld} -32"
7209	  ;;
7210	*N32*)
7211	  LD="${LD-ld} -n32"
7212	  ;;
7213	*64-bit*)
7214	  LD="${LD-ld} -64"
7215	  ;;
7216      esac
7217    fi
7218  fi
7219  rm -rf conftest*
7220  ;;
7221
7222mips64*-*linux*)
7223  # Find out what ABI is being produced by ac_compile, and set linker
7224  # options accordingly.
7225  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7226  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7227  (eval $ac_compile) 2>&5
7228  ac_status=$?
7229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230  test $ac_status = 0; }; then
7231    emul=elf
7232    case `/usr/bin/file conftest.$ac_objext` in
7233      *32-bit*)
7234	emul="${emul}32"
7235	;;
7236      *64-bit*)
7237	emul="${emul}64"
7238	;;
7239    esac
7240    case `/usr/bin/file conftest.$ac_objext` in
7241      *MSB*)
7242	emul="${emul}btsmip"
7243	;;
7244      *LSB*)
7245	emul="${emul}ltsmip"
7246	;;
7247    esac
7248    case `/usr/bin/file conftest.$ac_objext` in
7249      *N32*)
7250	emul="${emul}n32"
7251	;;
7252    esac
7253    LD="${LD-ld} -m $emul"
7254  fi
7255  rm -rf conftest*
7256  ;;
7257
7258x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7259s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7260  # Find out what ABI is being produced by ac_compile, and set linker
7261  # options accordingly.  Note that the listed cases only cover the
7262  # situations where additional linker options are needed (such as when
7263  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7264  # vice versa); the common cases where no linker options are needed do
7265  # not appear in the list.
7266  echo 'int i;' > conftest.$ac_ext
7267  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7268  (eval $ac_compile) 2>&5
7269  ac_status=$?
7270  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271  test $ac_status = 0; }; then
7272    case `/usr/bin/file conftest.o` in
7273      *32-bit*)
7274	case $host in
7275	  x86_64-*kfreebsd*-gnu)
7276	    LD="${LD-ld} -m elf_i386_fbsd"
7277	    ;;
7278	  x86_64-*linux*)
7279	    case `/usr/bin/file conftest.o` in
7280	      *x86-64*)
7281		LD="${LD-ld} -m elf32_x86_64"
7282		;;
7283	      *)
7284		LD="${LD-ld} -m elf_i386"
7285		;;
7286	    esac
7287	    ;;
7288	  powerpc64le-*linux*)
7289	    LD="${LD-ld} -m elf32lppclinux"
7290	    ;;
7291	  powerpc64-*linux*)
7292	    LD="${LD-ld} -m elf32ppclinux"
7293	    ;;
7294	  s390x-*linux*)
7295	    LD="${LD-ld} -m elf_s390"
7296	    ;;
7297	  sparc64-*linux*)
7298	    LD="${LD-ld} -m elf32_sparc"
7299	    ;;
7300	esac
7301	;;
7302      *64-bit*)
7303	case $host in
7304	  x86_64-*kfreebsd*-gnu)
7305	    LD="${LD-ld} -m elf_x86_64_fbsd"
7306	    ;;
7307	  x86_64-*linux*)
7308	    LD="${LD-ld} -m elf_x86_64"
7309	    ;;
7310	  powerpcle-*linux*)
7311	    LD="${LD-ld} -m elf64lppc"
7312	    ;;
7313	  powerpc-*linux*)
7314	    LD="${LD-ld} -m elf64ppc"
7315	    ;;
7316	  s390*-*linux*|s390*-*tpf*)
7317	    LD="${LD-ld} -m elf64_s390"
7318	    ;;
7319	  sparc*-*linux*)
7320	    LD="${LD-ld} -m elf64_sparc"
7321	    ;;
7322	esac
7323	;;
7324    esac
7325  fi
7326  rm -rf conftest*
7327  ;;
7328
7329*-*-sco3.2v5*)
7330  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7331  SAVE_CFLAGS=$CFLAGS
7332  CFLAGS="$CFLAGS -belf"
7333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7334printf %s "checking whether the C compiler needs -belf... " >&6; }
7335if test ${lt_cv_cc_needs_belf+y}
7336then :
7337  printf %s "(cached) " >&6
7338else $as_nop
7339  ac_ext=c
7340ac_cpp='$CPP $CPPFLAGS'
7341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343ac_compiler_gnu=$ac_cv_c_compiler_gnu
7344
7345     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347
7348int
7349main (void)
7350{
7351
7352  ;
7353  return 0;
7354}
7355_ACEOF
7356if ac_fn_c_try_link "$LINENO"
7357then :
7358  lt_cv_cc_needs_belf=yes
7359else $as_nop
7360  lt_cv_cc_needs_belf=no
7361fi
7362rm -f core conftest.err conftest.$ac_objext conftest.beam \
7363    conftest$ac_exeext conftest.$ac_ext
7364     ac_ext=c
7365ac_cpp='$CPP $CPPFLAGS'
7366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369
7370fi
7371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7372printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7373  if test yes != "$lt_cv_cc_needs_belf"; then
7374    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7375    CFLAGS=$SAVE_CFLAGS
7376  fi
7377  ;;
7378*-*solaris*)
7379  # Find out what ABI is being produced by ac_compile, and set linker
7380  # options accordingly.
7381  echo 'int i;' > conftest.$ac_ext
7382  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383  (eval $ac_compile) 2>&5
7384  ac_status=$?
7385  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386  test $ac_status = 0; }; then
7387    case `/usr/bin/file conftest.o` in
7388    *64-bit*)
7389      case $lt_cv_prog_gnu_ld in
7390      yes*)
7391        case $host in
7392        i?86-*-solaris*|x86_64-*-solaris*)
7393          LD="${LD-ld} -m elf_x86_64"
7394          ;;
7395        sparc*-*-solaris*)
7396          LD="${LD-ld} -m elf64_sparc"
7397          ;;
7398        esac
7399        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7400        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7401          LD=${LD-ld}_sol2
7402        fi
7403        ;;
7404      *)
7405	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7406	  LD="${LD-ld} -64"
7407	fi
7408	;;
7409      esac
7410      ;;
7411    esac
7412  fi
7413  rm -rf conftest*
7414  ;;
7415esac
7416
7417need_locks=$enable_libtool_lock
7418
7419if test -n "$ac_tool_prefix"; then
7420  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}mt; ac_word=$2
7422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423printf %s "checking for $ac_word... " >&6; }
7424if test ${ac_cv_prog_MANIFEST_TOOL+y}
7425then :
7426  printf %s "(cached) " >&6
7427else $as_nop
7428  if test -n "$MANIFEST_TOOL"; then
7429  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434  IFS=$as_save_IFS
7435  case $as_dir in #(((
7436    '') as_dir=./ ;;
7437    */) ;;
7438    *) as_dir=$as_dir/ ;;
7439  esac
7440    for ac_exec_ext in '' $ac_executable_extensions; do
7441  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7442    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7443    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7444    break 2
7445  fi
7446done
7447  done
7448IFS=$as_save_IFS
7449
7450fi
7451fi
7452MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7453if test -n "$MANIFEST_TOOL"; then
7454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7455printf "%s\n" "$MANIFEST_TOOL" >&6; }
7456else
7457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458printf "%s\n" "no" >&6; }
7459fi
7460
7461
7462fi
7463if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7464  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7465  # Extract the first word of "mt", so it can be a program name with args.
7466set dummy mt; ac_word=$2
7467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468printf %s "checking for $ac_word... " >&6; }
7469if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7470then :
7471  printf %s "(cached) " >&6
7472else $as_nop
7473  if test -n "$ac_ct_MANIFEST_TOOL"; then
7474  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7475else
7476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479  IFS=$as_save_IFS
7480  case $as_dir in #(((
7481    '') as_dir=./ ;;
7482    */) ;;
7483    *) as_dir=$as_dir/ ;;
7484  esac
7485    for ac_exec_ext in '' $ac_executable_extensions; do
7486  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7487    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7488    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492  done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7498if test -n "$ac_ct_MANIFEST_TOOL"; then
7499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7500printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7501else
7502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503printf "%s\n" "no" >&6; }
7504fi
7505
7506  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7507    MANIFEST_TOOL=":"
7508  else
7509    case $cross_compiling:$ac_tool_warned in
7510yes:)
7511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513ac_tool_warned=yes ;;
7514esac
7515    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7516  fi
7517else
7518  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7519fi
7520
7521test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7523printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7524if test ${lt_cv_path_mainfest_tool+y}
7525then :
7526  printf %s "(cached) " >&6
7527else $as_nop
7528  lt_cv_path_mainfest_tool=no
7529  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7530  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7531  cat conftest.err >&5
7532  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7533    lt_cv_path_mainfest_tool=yes
7534  fi
7535  rm -f conftest*
7536fi
7537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7538printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7539if test yes != "$lt_cv_path_mainfest_tool"; then
7540  MANIFEST_TOOL=:
7541fi
7542
7543
7544
7545
7546
7547
7548  case $host_os in
7549    rhapsody* | darwin*)
7550    if test -n "$ac_tool_prefix"; then
7551  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7552set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554printf %s "checking for $ac_word... " >&6; }
7555if test ${ac_cv_prog_DSYMUTIL+y}
7556then :
7557  printf %s "(cached) " >&6
7558else $as_nop
7559  if test -n "$DSYMUTIL"; then
7560  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565  IFS=$as_save_IFS
7566  case $as_dir in #(((
7567    '') as_dir=./ ;;
7568    */) ;;
7569    *) as_dir=$as_dir/ ;;
7570  esac
7571    for ac_exec_ext in '' $ac_executable_extensions; do
7572  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7573    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7574    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7575    break 2
7576  fi
7577done
7578  done
7579IFS=$as_save_IFS
7580
7581fi
7582fi
7583DSYMUTIL=$ac_cv_prog_DSYMUTIL
7584if test -n "$DSYMUTIL"; then
7585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7586printf "%s\n" "$DSYMUTIL" >&6; }
7587else
7588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589printf "%s\n" "no" >&6; }
7590fi
7591
7592
7593fi
7594if test -z "$ac_cv_prog_DSYMUTIL"; then
7595  ac_ct_DSYMUTIL=$DSYMUTIL
7596  # Extract the first word of "dsymutil", so it can be a program name with args.
7597set dummy dsymutil; ac_word=$2
7598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599printf %s "checking for $ac_word... " >&6; }
7600if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7601then :
7602  printf %s "(cached) " >&6
7603else $as_nop
7604  if test -n "$ac_ct_DSYMUTIL"; then
7605  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7606else
7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608for as_dir in $PATH
7609do
7610  IFS=$as_save_IFS
7611  case $as_dir in #(((
7612    '') as_dir=./ ;;
7613    */) ;;
7614    *) as_dir=$as_dir/ ;;
7615  esac
7616    for ac_exec_ext in '' $ac_executable_extensions; do
7617  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7618    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7619    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7620    break 2
7621  fi
7622done
7623  done
7624IFS=$as_save_IFS
7625
7626fi
7627fi
7628ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7629if test -n "$ac_ct_DSYMUTIL"; then
7630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7631printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7632else
7633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634printf "%s\n" "no" >&6; }
7635fi
7636
7637  if test "x$ac_ct_DSYMUTIL" = x; then
7638    DSYMUTIL=":"
7639  else
7640    case $cross_compiling:$ac_tool_warned in
7641yes:)
7642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644ac_tool_warned=yes ;;
7645esac
7646    DSYMUTIL=$ac_ct_DSYMUTIL
7647  fi
7648else
7649  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7650fi
7651
7652    if test -n "$ac_tool_prefix"; then
7653  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7654set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656printf %s "checking for $ac_word... " >&6; }
7657if test ${ac_cv_prog_NMEDIT+y}
7658then :
7659  printf %s "(cached) " >&6
7660else $as_nop
7661  if test -n "$NMEDIT"; then
7662  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7663else
7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665for as_dir in $PATH
7666do
7667  IFS=$as_save_IFS
7668  case $as_dir in #(((
7669    '') as_dir=./ ;;
7670    */) ;;
7671    *) as_dir=$as_dir/ ;;
7672  esac
7673    for ac_exec_ext in '' $ac_executable_extensions; do
7674  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7675    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7676    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7677    break 2
7678  fi
7679done
7680  done
7681IFS=$as_save_IFS
7682
7683fi
7684fi
7685NMEDIT=$ac_cv_prog_NMEDIT
7686if test -n "$NMEDIT"; then
7687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7688printf "%s\n" "$NMEDIT" >&6; }
7689else
7690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691printf "%s\n" "no" >&6; }
7692fi
7693
7694
7695fi
7696if test -z "$ac_cv_prog_NMEDIT"; then
7697  ac_ct_NMEDIT=$NMEDIT
7698  # Extract the first word of "nmedit", so it can be a program name with args.
7699set dummy nmedit; ac_word=$2
7700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701printf %s "checking for $ac_word... " >&6; }
7702if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7703then :
7704  printf %s "(cached) " >&6
7705else $as_nop
7706  if test -n "$ac_ct_NMEDIT"; then
7707  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  case $as_dir in #(((
7714    '') as_dir=./ ;;
7715    */) ;;
7716    *) as_dir=$as_dir/ ;;
7717  esac
7718    for ac_exec_ext in '' $ac_executable_extensions; do
7719  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7720    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7721    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725  done
7726IFS=$as_save_IFS
7727
7728fi
7729fi
7730ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7731if test -n "$ac_ct_NMEDIT"; then
7732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7733printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7734else
7735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736printf "%s\n" "no" >&6; }
7737fi
7738
7739  if test "x$ac_ct_NMEDIT" = x; then
7740    NMEDIT=":"
7741  else
7742    case $cross_compiling:$ac_tool_warned in
7743yes:)
7744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746ac_tool_warned=yes ;;
7747esac
7748    NMEDIT=$ac_ct_NMEDIT
7749  fi
7750else
7751  NMEDIT="$ac_cv_prog_NMEDIT"
7752fi
7753
7754    if test -n "$ac_tool_prefix"; then
7755  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7756set dummy ${ac_tool_prefix}lipo; ac_word=$2
7757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758printf %s "checking for $ac_word... " >&6; }
7759if test ${ac_cv_prog_LIPO+y}
7760then :
7761  printf %s "(cached) " >&6
7762else $as_nop
7763  if test -n "$LIPO"; then
7764  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7765else
7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769  IFS=$as_save_IFS
7770  case $as_dir in #(((
7771    '') as_dir=./ ;;
7772    */) ;;
7773    *) as_dir=$as_dir/ ;;
7774  esac
7775    for ac_exec_ext in '' $ac_executable_extensions; do
7776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7777    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7779    break 2
7780  fi
7781done
7782  done
7783IFS=$as_save_IFS
7784
7785fi
7786fi
7787LIPO=$ac_cv_prog_LIPO
7788if test -n "$LIPO"; then
7789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7790printf "%s\n" "$LIPO" >&6; }
7791else
7792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793printf "%s\n" "no" >&6; }
7794fi
7795
7796
7797fi
7798if test -z "$ac_cv_prog_LIPO"; then
7799  ac_ct_LIPO=$LIPO
7800  # Extract the first word of "lipo", so it can be a program name with args.
7801set dummy lipo; ac_word=$2
7802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803printf %s "checking for $ac_word... " >&6; }
7804if test ${ac_cv_prog_ac_ct_LIPO+y}
7805then :
7806  printf %s "(cached) " >&6
7807else $as_nop
7808  if test -n "$ac_ct_LIPO"; then
7809  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814  IFS=$as_save_IFS
7815  case $as_dir in #(((
7816    '') as_dir=./ ;;
7817    */) ;;
7818    *) as_dir=$as_dir/ ;;
7819  esac
7820    for ac_exec_ext in '' $ac_executable_extensions; do
7821  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7822    ac_cv_prog_ac_ct_LIPO="lipo"
7823    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7824    break 2
7825  fi
7826done
7827  done
7828IFS=$as_save_IFS
7829
7830fi
7831fi
7832ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7833if test -n "$ac_ct_LIPO"; then
7834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7835printf "%s\n" "$ac_ct_LIPO" >&6; }
7836else
7837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838printf "%s\n" "no" >&6; }
7839fi
7840
7841  if test "x$ac_ct_LIPO" = x; then
7842    LIPO=":"
7843  else
7844    case $cross_compiling:$ac_tool_warned in
7845yes:)
7846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7847printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848ac_tool_warned=yes ;;
7849esac
7850    LIPO=$ac_ct_LIPO
7851  fi
7852else
7853  LIPO="$ac_cv_prog_LIPO"
7854fi
7855
7856    if test -n "$ac_tool_prefix"; then
7857  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7858set dummy ${ac_tool_prefix}otool; ac_word=$2
7859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860printf %s "checking for $ac_word... " >&6; }
7861if test ${ac_cv_prog_OTOOL+y}
7862then :
7863  printf %s "(cached) " >&6
7864else $as_nop
7865  if test -n "$OTOOL"; then
7866  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7867else
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871  IFS=$as_save_IFS
7872  case $as_dir in #(((
7873    '') as_dir=./ ;;
7874    */) ;;
7875    *) as_dir=$as_dir/ ;;
7876  esac
7877    for ac_exec_ext in '' $ac_executable_extensions; do
7878  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7879    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7880    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7881    break 2
7882  fi
7883done
7884  done
7885IFS=$as_save_IFS
7886
7887fi
7888fi
7889OTOOL=$ac_cv_prog_OTOOL
7890if test -n "$OTOOL"; then
7891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7892printf "%s\n" "$OTOOL" >&6; }
7893else
7894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895printf "%s\n" "no" >&6; }
7896fi
7897
7898
7899fi
7900if test -z "$ac_cv_prog_OTOOL"; then
7901  ac_ct_OTOOL=$OTOOL
7902  # Extract the first word of "otool", so it can be a program name with args.
7903set dummy otool; ac_word=$2
7904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905printf %s "checking for $ac_word... " >&6; }
7906if test ${ac_cv_prog_ac_ct_OTOOL+y}
7907then :
7908  printf %s "(cached) " >&6
7909else $as_nop
7910  if test -n "$ac_ct_OTOOL"; then
7911  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7912else
7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916  IFS=$as_save_IFS
7917  case $as_dir in #(((
7918    '') as_dir=./ ;;
7919    */) ;;
7920    *) as_dir=$as_dir/ ;;
7921  esac
7922    for ac_exec_ext in '' $ac_executable_extensions; do
7923  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7924    ac_cv_prog_ac_ct_OTOOL="otool"
7925    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7926    break 2
7927  fi
7928done
7929  done
7930IFS=$as_save_IFS
7931
7932fi
7933fi
7934ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7935if test -n "$ac_ct_OTOOL"; then
7936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7937printf "%s\n" "$ac_ct_OTOOL" >&6; }
7938else
7939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940printf "%s\n" "no" >&6; }
7941fi
7942
7943  if test "x$ac_ct_OTOOL" = x; then
7944    OTOOL=":"
7945  else
7946    case $cross_compiling:$ac_tool_warned in
7947yes:)
7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7949printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7950ac_tool_warned=yes ;;
7951esac
7952    OTOOL=$ac_ct_OTOOL
7953  fi
7954else
7955  OTOOL="$ac_cv_prog_OTOOL"
7956fi
7957
7958    if test -n "$ac_tool_prefix"; then
7959  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7960set dummy ${ac_tool_prefix}otool64; ac_word=$2
7961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962printf %s "checking for $ac_word... " >&6; }
7963if test ${ac_cv_prog_OTOOL64+y}
7964then :
7965  printf %s "(cached) " >&6
7966else $as_nop
7967  if test -n "$OTOOL64"; then
7968  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7969else
7970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973  IFS=$as_save_IFS
7974  case $as_dir in #(((
7975    '') as_dir=./ ;;
7976    */) ;;
7977    *) as_dir=$as_dir/ ;;
7978  esac
7979    for ac_exec_ext in '' $ac_executable_extensions; do
7980  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7981    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7982    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7983    break 2
7984  fi
7985done
7986  done
7987IFS=$as_save_IFS
7988
7989fi
7990fi
7991OTOOL64=$ac_cv_prog_OTOOL64
7992if test -n "$OTOOL64"; then
7993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7994printf "%s\n" "$OTOOL64" >&6; }
7995else
7996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997printf "%s\n" "no" >&6; }
7998fi
7999
8000
8001fi
8002if test -z "$ac_cv_prog_OTOOL64"; then
8003  ac_ct_OTOOL64=$OTOOL64
8004  # Extract the first word of "otool64", so it can be a program name with args.
8005set dummy otool64; ac_word=$2
8006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007printf %s "checking for $ac_word... " >&6; }
8008if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8009then :
8010  printf %s "(cached) " >&6
8011else $as_nop
8012  if test -n "$ac_ct_OTOOL64"; then
8013  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8014else
8015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016for as_dir in $PATH
8017do
8018  IFS=$as_save_IFS
8019  case $as_dir in #(((
8020    '') as_dir=./ ;;
8021    */) ;;
8022    *) as_dir=$as_dir/ ;;
8023  esac
8024    for ac_exec_ext in '' $ac_executable_extensions; do
8025  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8026    ac_cv_prog_ac_ct_OTOOL64="otool64"
8027    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8028    break 2
8029  fi
8030done
8031  done
8032IFS=$as_save_IFS
8033
8034fi
8035fi
8036ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8037if test -n "$ac_ct_OTOOL64"; then
8038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8039printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8040else
8041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042printf "%s\n" "no" >&6; }
8043fi
8044
8045  if test "x$ac_ct_OTOOL64" = x; then
8046    OTOOL64=":"
8047  else
8048    case $cross_compiling:$ac_tool_warned in
8049yes:)
8050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052ac_tool_warned=yes ;;
8053esac
8054    OTOOL64=$ac_ct_OTOOL64
8055  fi
8056else
8057  OTOOL64="$ac_cv_prog_OTOOL64"
8058fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8087printf %s "checking for -single_module linker flag... " >&6; }
8088if test ${lt_cv_apple_cc_single_mod+y}
8089then :
8090  printf %s "(cached) " >&6
8091else $as_nop
8092  lt_cv_apple_cc_single_mod=no
8093      if test -z "$LT_MULTI_MODULE"; then
8094	# By default we will add the -single_module flag. You can override
8095	# by either setting the environment variable LT_MULTI_MODULE
8096	# non-empty at configure time, or by adding -multi_module to the
8097	# link flags.
8098	rm -rf libconftest.dylib*
8099	echo "int foo(void){return 1;}" > conftest.c
8100	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8101-dynamiclib -Wl,-single_module conftest.c" >&5
8102	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8103	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8104        _lt_result=$?
8105	# If there is a non-empty error log, and "single_module"
8106	# appears in it, assume the flag caused a linker warning
8107        if test -s conftest.err && $GREP single_module conftest.err; then
8108	  cat conftest.err >&5
8109	# Otherwise, if the output was created with a 0 exit code from
8110	# the compiler, it worked.
8111	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8112	  lt_cv_apple_cc_single_mod=yes
8113	else
8114	  cat conftest.err >&5
8115	fi
8116	rm -rf libconftest.dylib*
8117	rm -f conftest.*
8118      fi
8119fi
8120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8121printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8122
8123    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8124printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8125if test ${lt_cv_ld_exported_symbols_list+y}
8126then :
8127  printf %s "(cached) " >&6
8128else $as_nop
8129  lt_cv_ld_exported_symbols_list=no
8130      save_LDFLAGS=$LDFLAGS
8131      echo "_main" > conftest.sym
8132      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h.  */
8135
8136int
8137main (void)
8138{
8139
8140  ;
8141  return 0;
8142}
8143_ACEOF
8144if ac_fn_c_try_link "$LINENO"
8145then :
8146  lt_cv_ld_exported_symbols_list=yes
8147else $as_nop
8148  lt_cv_ld_exported_symbols_list=no
8149fi
8150rm -f core conftest.err conftest.$ac_objext conftest.beam \
8151    conftest$ac_exeext conftest.$ac_ext
8152	LDFLAGS=$save_LDFLAGS
8153
8154fi
8155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8156printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8157
8158    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8159printf %s "checking for -force_load linker flag... " >&6; }
8160if test ${lt_cv_ld_force_load+y}
8161then :
8162  printf %s "(cached) " >&6
8163else $as_nop
8164  lt_cv_ld_force_load=no
8165      cat > conftest.c << _LT_EOF
8166int forced_loaded() { return 2;}
8167_LT_EOF
8168      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8169      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8170      echo "$AR cru libconftest.a conftest.o" >&5
8171      $AR cru libconftest.a conftest.o 2>&5
8172      echo "$RANLIB libconftest.a" >&5
8173      $RANLIB libconftest.a 2>&5
8174      cat > conftest.c << _LT_EOF
8175int main() { return 0;}
8176_LT_EOF
8177      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8178      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8179      _lt_result=$?
8180      if test -s conftest.err && $GREP force_load conftest.err; then
8181	cat conftest.err >&5
8182      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8183	lt_cv_ld_force_load=yes
8184      else
8185	cat conftest.err >&5
8186      fi
8187        rm -f conftest.err libconftest.a conftest conftest.c
8188        rm -rf conftest.dSYM
8189
8190fi
8191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8192printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8193    case $host_os in
8194    rhapsody* | darwin1.[012])
8195      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8196    darwin1.*)
8197      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8198    darwin*)
8199      case ${MACOSX_DEPLOYMENT_TARGET},$host in
8200	10.[012],*|,*powerpc*)
8201	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8202	*)
8203	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8204      esac
8205    ;;
8206  esac
8207    if test yes = "$lt_cv_apple_cc_single_mod"; then
8208      _lt_dar_single_mod='$single_module'
8209    fi
8210    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8211      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8212    else
8213      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8214    fi
8215    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8216      _lt_dsymutil='~$DSYMUTIL $lib || :'
8217    else
8218      _lt_dsymutil=
8219    fi
8220    ;;
8221  esac
8222
8223# func_munge_path_list VARIABLE PATH
8224# -----------------------------------
8225# VARIABLE is name of variable containing _space_ separated list of
8226# directories to be munged by the contents of PATH, which is string
8227# having a format:
8228# "DIR[:DIR]:"
8229#       string "DIR[ DIR]" will be prepended to VARIABLE
8230# ":DIR[:DIR]"
8231#       string "DIR[ DIR]" will be appended to VARIABLE
8232# "DIRP[:DIRP]::[DIRA:]DIRA"
8233#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8234#       "DIRA[ DIRA]" will be appended to VARIABLE
8235# "DIR[:DIR]"
8236#       VARIABLE will be replaced by "DIR[ DIR]"
8237func_munge_path_list ()
8238{
8239    case x$2 in
8240    x)
8241        ;;
8242    *:)
8243        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8244        ;;
8245    x:*)
8246        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8247        ;;
8248    *::*)
8249        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8250        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8251        ;;
8252    *)
8253        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8254        ;;
8255    esac
8256}
8257
8258ac_header= ac_cache=
8259for ac_item in $ac_header_c_list
8260do
8261  if test $ac_cache; then
8262    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8263    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8264      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8265    fi
8266    ac_header= ac_cache=
8267  elif test $ac_header; then
8268    ac_cache=$ac_item
8269  else
8270    ac_header=$ac_item
8271  fi
8272done
8273
8274
8275
8276
8277
8278
8279
8280
8281if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8282then :
8283
8284printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8285
8286fi
8287ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8288"
8289if test "x$ac_cv_header_dlfcn_h" = xyes
8290then :
8291  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8292
8293fi
8294
8295
8296
8297
8298
8299# Set options
8300
8301
8302
8303        enable_dlopen=no
8304
8305
8306  enable_win32_dll=no
8307
8308
8309            # Check whether --enable-shared was given.
8310if test ${enable_shared+y}
8311then :
8312  enableval=$enable_shared; p=${PACKAGE-default}
8313    case $enableval in
8314    yes) enable_shared=yes ;;
8315    no) enable_shared=no ;;
8316    *)
8317      enable_shared=no
8318      # Look at the argument we got.  We use all the common list separators.
8319      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8320      for pkg in $enableval; do
8321	IFS=$lt_save_ifs
8322	if test "X$pkg" = "X$p"; then
8323	  enable_shared=yes
8324	fi
8325      done
8326      IFS=$lt_save_ifs
8327      ;;
8328    esac
8329else $as_nop
8330  enable_shared=yes
8331fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341  # Check whether --enable-static was given.
8342if test ${enable_static+y}
8343then :
8344  enableval=$enable_static; p=${PACKAGE-default}
8345    case $enableval in
8346    yes) enable_static=yes ;;
8347    no) enable_static=no ;;
8348    *)
8349     enable_static=no
8350      # Look at the argument we got.  We use all the common list separators.
8351      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8352      for pkg in $enableval; do
8353	IFS=$lt_save_ifs
8354	if test "X$pkg" = "X$p"; then
8355	  enable_static=yes
8356	fi
8357      done
8358      IFS=$lt_save_ifs
8359      ;;
8360    esac
8361else $as_nop
8362  enable_static=yes
8363fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374# Check whether --with-pic was given.
8375if test ${with_pic+y}
8376then :
8377  withval=$with_pic; lt_p=${PACKAGE-default}
8378    case $withval in
8379    yes|no) pic_mode=$withval ;;
8380    *)
8381      pic_mode=default
8382      # Look at the argument we got.  We use all the common list separators.
8383      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8384      for lt_pkg in $withval; do
8385	IFS=$lt_save_ifs
8386	if test "X$lt_pkg" = "X$lt_p"; then
8387	  pic_mode=yes
8388	fi
8389      done
8390      IFS=$lt_save_ifs
8391      ;;
8392    esac
8393else $as_nop
8394  pic_mode=default
8395fi
8396
8397
8398
8399
8400
8401
8402
8403
8404  # Check whether --enable-fast-install was given.
8405if test ${enable_fast_install+y}
8406then :
8407  enableval=$enable_fast_install; p=${PACKAGE-default}
8408    case $enableval in
8409    yes) enable_fast_install=yes ;;
8410    no) enable_fast_install=no ;;
8411    *)
8412      enable_fast_install=no
8413      # Look at the argument we got.  We use all the common list separators.
8414      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8415      for pkg in $enableval; do
8416	IFS=$lt_save_ifs
8417	if test "X$pkg" = "X$p"; then
8418	  enable_fast_install=yes
8419	fi
8420      done
8421      IFS=$lt_save_ifs
8422      ;;
8423    esac
8424else $as_nop
8425  enable_fast_install=yes
8426fi
8427
8428
8429
8430
8431
8432
8433
8434
8435  shared_archive_member_spec=
8436case $host,$enable_shared in
8437power*-*-aix[5-9]*,yes)
8438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8439printf %s "checking which variant of shared library versioning to provide... " >&6; }
8440
8441# Check whether --with-aix-soname was given.
8442if test ${with_aix_soname+y}
8443then :
8444  withval=$with_aix_soname; case $withval in
8445    aix|svr4|both)
8446      ;;
8447    *)
8448      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8449      ;;
8450    esac
8451    lt_cv_with_aix_soname=$with_aix_soname
8452else $as_nop
8453  if test ${lt_cv_with_aix_soname+y}
8454then :
8455  printf %s "(cached) " >&6
8456else $as_nop
8457  lt_cv_with_aix_soname=aix
8458fi
8459
8460    with_aix_soname=$lt_cv_with_aix_soname
8461fi
8462
8463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8464printf "%s\n" "$with_aix_soname" >&6; }
8465  if test aix != "$with_aix_soname"; then
8466    # For the AIX way of multilib, we name the shared archive member
8467    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8468    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8469    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8470    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8471    if test 64 = "${OBJECT_MODE-32}"; then
8472      shared_archive_member_spec=shr_64
8473    else
8474      shared_archive_member_spec=shr
8475    fi
8476  fi
8477  ;;
8478*)
8479  with_aix_soname=aix
8480  ;;
8481esac
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492# This can be used to rebuild libtool when needed
8493LIBTOOL_DEPS=$ltmain
8494
8495# Always use our own libtool.
8496LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527test -z "$LN_S" && LN_S="ln -s"
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542if test -n "${ZSH_VERSION+set}"; then
8543   setopt NO_GLOB_SUBST
8544fi
8545
8546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8547printf %s "checking for objdir... " >&6; }
8548if test ${lt_cv_objdir+y}
8549then :
8550  printf %s "(cached) " >&6
8551else $as_nop
8552  rm -f .libs 2>/dev/null
8553mkdir .libs 2>/dev/null
8554if test -d .libs; then
8555  lt_cv_objdir=.libs
8556else
8557  # MS-DOS does not allow filenames that begin with a dot.
8558  lt_cv_objdir=_libs
8559fi
8560rmdir .libs 2>/dev/null
8561fi
8562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8563printf "%s\n" "$lt_cv_objdir" >&6; }
8564objdir=$lt_cv_objdir
8565
8566
8567
8568
8569
8570printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8571
8572
8573
8574
8575case $host_os in
8576aix3*)
8577  # AIX sometimes has problems with the GCC collect2 program.  For some
8578  # reason, if we set the COLLECT_NAMES environment variable, the problems
8579  # vanish in a puff of smoke.
8580  if test set != "${COLLECT_NAMES+set}"; then
8581    COLLECT_NAMES=
8582    export COLLECT_NAMES
8583  fi
8584  ;;
8585esac
8586
8587# Global variables:
8588ofile=libtool
8589can_build_shared=yes
8590
8591# All known linkers require a '.a' archive for static linking (except MSVC,
8592# which needs '.lib').
8593libext=a
8594
8595with_gnu_ld=$lt_cv_prog_gnu_ld
8596
8597old_CC=$CC
8598old_CFLAGS=$CFLAGS
8599
8600# Set sane defaults for various variables
8601test -z "$CC" && CC=cc
8602test -z "$LTCC" && LTCC=$CC
8603test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8604test -z "$LD" && LD=ld
8605test -z "$ac_objext" && ac_objext=o
8606
8607func_cc_basename $compiler
8608cc_basename=$func_cc_basename_result
8609
8610
8611# Only perform the check for file, if the check method requires it
8612test -z "$MAGIC_CMD" && MAGIC_CMD=file
8613case $deplibs_check_method in
8614file_magic*)
8615  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8616    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8617printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8618if test ${lt_cv_path_MAGIC_CMD+y}
8619then :
8620  printf %s "(cached) " >&6
8621else $as_nop
8622  case $MAGIC_CMD in
8623[\\/*] |  ?:[\\/]*)
8624  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8625  ;;
8626*)
8627  lt_save_MAGIC_CMD=$MAGIC_CMD
8628  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8629  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8630  for ac_dir in $ac_dummy; do
8631    IFS=$lt_save_ifs
8632    test -z "$ac_dir" && ac_dir=.
8633    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8634      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8635      if test -n "$file_magic_test_file"; then
8636	case $deplibs_check_method in
8637	"file_magic "*)
8638	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8639	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8640	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8641	    $EGREP "$file_magic_regex" > /dev/null; then
8642	    :
8643	  else
8644	    cat <<_LT_EOF 1>&2
8645
8646*** Warning: the command libtool uses to detect shared libraries,
8647*** $file_magic_cmd, produces output that libtool cannot recognize.
8648*** The result is that libtool may fail to recognize shared libraries
8649*** as such.  This will affect the creation of libtool libraries that
8650*** depend on shared libraries, but programs linked with such libtool
8651*** libraries will work regardless of this problem.  Nevertheless, you
8652*** may want to report the problem to your system manager and/or to
8653*** [email protected]
8654
8655_LT_EOF
8656	  fi ;;
8657	esac
8658      fi
8659      break
8660    fi
8661  done
8662  IFS=$lt_save_ifs
8663  MAGIC_CMD=$lt_save_MAGIC_CMD
8664  ;;
8665esac
8666fi
8667
8668MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8669if test -n "$MAGIC_CMD"; then
8670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8671printf "%s\n" "$MAGIC_CMD" >&6; }
8672else
8673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674printf "%s\n" "no" >&6; }
8675fi
8676
8677
8678
8679
8680
8681if test -z "$lt_cv_path_MAGIC_CMD"; then
8682  if test -n "$ac_tool_prefix"; then
8683    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8684printf %s "checking for file... " >&6; }
8685if test ${lt_cv_path_MAGIC_CMD+y}
8686then :
8687  printf %s "(cached) " >&6
8688else $as_nop
8689  case $MAGIC_CMD in
8690[\\/*] |  ?:[\\/]*)
8691  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8692  ;;
8693*)
8694  lt_save_MAGIC_CMD=$MAGIC_CMD
8695  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8696  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8697  for ac_dir in $ac_dummy; do
8698    IFS=$lt_save_ifs
8699    test -z "$ac_dir" && ac_dir=.
8700    if test -f "$ac_dir/file"; then
8701      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8702      if test -n "$file_magic_test_file"; then
8703	case $deplibs_check_method in
8704	"file_magic "*)
8705	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8706	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8707	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8708	    $EGREP "$file_magic_regex" > /dev/null; then
8709	    :
8710	  else
8711	    cat <<_LT_EOF 1>&2
8712
8713*** Warning: the command libtool uses to detect shared libraries,
8714*** $file_magic_cmd, produces output that libtool cannot recognize.
8715*** The result is that libtool may fail to recognize shared libraries
8716*** as such.  This will affect the creation of libtool libraries that
8717*** depend on shared libraries, but programs linked with such libtool
8718*** libraries will work regardless of this problem.  Nevertheless, you
8719*** may want to report the problem to your system manager and/or to
8720*** [email protected]
8721
8722_LT_EOF
8723	  fi ;;
8724	esac
8725      fi
8726      break
8727    fi
8728  done
8729  IFS=$lt_save_ifs
8730  MAGIC_CMD=$lt_save_MAGIC_CMD
8731  ;;
8732esac
8733fi
8734
8735MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8736if test -n "$MAGIC_CMD"; then
8737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8738printf "%s\n" "$MAGIC_CMD" >&6; }
8739else
8740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741printf "%s\n" "no" >&6; }
8742fi
8743
8744
8745  else
8746    MAGIC_CMD=:
8747  fi
8748fi
8749
8750  fi
8751  ;;
8752esac
8753
8754# Use C for the default configuration in the libtool script
8755
8756lt_save_CC=$CC
8757ac_ext=c
8758ac_cpp='$CPP $CPPFLAGS'
8759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8761ac_compiler_gnu=$ac_cv_c_compiler_gnu
8762
8763
8764# Source file extension for C test sources.
8765ac_ext=c
8766
8767# Object file extension for compiled C test sources.
8768objext=o
8769objext=$objext
8770
8771# Code to be used in simple compile tests
8772lt_simple_compile_test_code="int some_variable = 0;"
8773
8774# Code to be used in simple link tests
8775lt_simple_link_test_code='int main(){return(0);}'
8776
8777
8778
8779
8780
8781
8782
8783# If no C compiler was specified, use CC.
8784LTCC=${LTCC-"$CC"}
8785
8786# If no C compiler flags were specified, use CFLAGS.
8787LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8788
8789# Allow CC to be a program name with arguments.
8790compiler=$CC
8791
8792# Save the default compiler, since it gets overwritten when the other
8793# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8794compiler_DEFAULT=$CC
8795
8796# save warnings/boilerplate of simple test code
8797ac_outfile=conftest.$ac_objext
8798echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8799eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8800_lt_compiler_boilerplate=`cat conftest.err`
8801$RM conftest*
8802
8803ac_outfile=conftest.$ac_objext
8804echo "$lt_simple_link_test_code" >conftest.$ac_ext
8805eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8806_lt_linker_boilerplate=`cat conftest.err`
8807$RM -r conftest*
8808
8809
8810if test -n "$compiler"; then
8811
8812lt_prog_compiler_no_builtin_flag=
8813
8814if test yes = "$GCC"; then
8815  case $cc_basename in
8816  nvcc*)
8817    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8818  *)
8819    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8820  esac
8821
8822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8823printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8824if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8825then :
8826  printf %s "(cached) " >&6
8827else $as_nop
8828  lt_cv_prog_compiler_rtti_exceptions=no
8829   ac_outfile=conftest.$ac_objext
8830   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8831   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8832   # Insert the option either (1) after the last *FLAGS variable, or
8833   # (2) before a word containing "conftest.", or (3) at the end.
8834   # Note that $ac_compile itself does not contain backslashes and begins
8835   # with a dollar sign (not a hyphen), so the echo should work correctly.
8836   # The option is referenced via a variable to avoid confusing sed.
8837   lt_compile=`echo "$ac_compile" | $SED \
8838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8840   -e 's:$: $lt_compiler_flag:'`
8841   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8842   (eval "$lt_compile" 2>conftest.err)
8843   ac_status=$?
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   if (exit $ac_status) && test -s "$ac_outfile"; then
8847     # The compiler can only warn and ignore the option if not recognized
8848     # So say no if there are warnings other than the usual output.
8849     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8850     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8851     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8852       lt_cv_prog_compiler_rtti_exceptions=yes
8853     fi
8854   fi
8855   $RM conftest*
8856
8857fi
8858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8859printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8860
8861if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8862    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8863else
8864    :
8865fi
8866
8867fi
8868
8869
8870
8871
8872
8873
8874  lt_prog_compiler_wl=
8875lt_prog_compiler_pic=
8876lt_prog_compiler_static=
8877
8878
8879  if test yes = "$GCC"; then
8880    lt_prog_compiler_wl='-Wl,'
8881    lt_prog_compiler_static='-static'
8882
8883    case $host_os in
8884      aix*)
8885      # All AIX code is PIC.
8886      if test ia64 = "$host_cpu"; then
8887	# AIX 5 now supports IA64 processor
8888	lt_prog_compiler_static='-Bstatic'
8889      fi
8890      lt_prog_compiler_pic='-fPIC'
8891      ;;
8892
8893    amigaos*)
8894      case $host_cpu in
8895      powerpc)
8896            # see comment about AmigaOS4 .so support
8897            lt_prog_compiler_pic='-fPIC'
8898        ;;
8899      m68k)
8900            # FIXME: we need at least 68020 code to build shared libraries, but
8901            # adding the '-m68020' flag to GCC prevents building anything better,
8902            # like '-m68040'.
8903            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8904        ;;
8905      esac
8906      ;;
8907
8908    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8909      # PIC is the default for these OSes.
8910      ;;
8911
8912    mingw* | cygwin* | pw32* | os2* | cegcc*)
8913      # This hack is so that the source file can tell whether it is being
8914      # built for inclusion in a dll (and should export symbols for example).
8915      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8916      # (--disable-auto-import) libraries
8917      lt_prog_compiler_pic='-DDLL_EXPORT'
8918      case $host_os in
8919      os2*)
8920	lt_prog_compiler_static='$wl-static'
8921	;;
8922      esac
8923      ;;
8924
8925    darwin* | rhapsody*)
8926      # PIC is the default on this platform
8927      # Common symbols not allowed in MH_DYLIB files
8928      lt_prog_compiler_pic='-fno-common'
8929      ;;
8930
8931    haiku*)
8932      # PIC is the default for Haiku.
8933      # The "-static" flag exists, but is broken.
8934      lt_prog_compiler_static=
8935      ;;
8936
8937    hpux*)
8938      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8939      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8940      # sets the default TLS model and affects inlining.
8941      case $host_cpu in
8942      hppa*64*)
8943	# +Z the default
8944	;;
8945      *)
8946	lt_prog_compiler_pic='-fPIC'
8947	;;
8948      esac
8949      ;;
8950
8951    interix[3-9]*)
8952      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8953      # Instead, we relocate shared libraries at runtime.
8954      ;;
8955
8956    msdosdjgpp*)
8957      # Just because we use GCC doesn't mean we suddenly get shared libraries
8958      # on systems that don't support them.
8959      lt_prog_compiler_can_build_shared=no
8960      enable_shared=no
8961      ;;
8962
8963    *nto* | *qnx*)
8964      # QNX uses GNU C++, but need to define -shared option too, otherwise
8965      # it will coredump.
8966      lt_prog_compiler_pic='-fPIC -shared'
8967      ;;
8968
8969    sysv4*MP*)
8970      if test -d /usr/nec; then
8971	lt_prog_compiler_pic=-Kconform_pic
8972      fi
8973      ;;
8974
8975    *)
8976      lt_prog_compiler_pic='-fPIC'
8977      ;;
8978    esac
8979
8980    case $cc_basename in
8981    nvcc*) # Cuda Compiler Driver 2.2
8982      lt_prog_compiler_wl='-Xlinker '
8983      if test -n "$lt_prog_compiler_pic"; then
8984        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8985      fi
8986      ;;
8987    esac
8988  else
8989    # PORTME Check for flag to pass linker flags through the system compiler.
8990    case $host_os in
8991    aix*)
8992      lt_prog_compiler_wl='-Wl,'
8993      if test ia64 = "$host_cpu"; then
8994	# AIX 5 now supports IA64 processor
8995	lt_prog_compiler_static='-Bstatic'
8996      else
8997	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8998      fi
8999      ;;
9000
9001    darwin* | rhapsody*)
9002      # PIC is the default on this platform
9003      # Common symbols not allowed in MH_DYLIB files
9004      lt_prog_compiler_pic='-fno-common'
9005      case $cc_basename in
9006      nagfor*)
9007        # NAG Fortran compiler
9008        lt_prog_compiler_wl='-Wl,-Wl,,'
9009        lt_prog_compiler_pic='-PIC'
9010        lt_prog_compiler_static='-Bstatic'
9011        ;;
9012      esac
9013      ;;
9014
9015    mingw* | cygwin* | pw32* | os2* | cegcc*)
9016      # This hack is so that the source file can tell whether it is being
9017      # built for inclusion in a dll (and should export symbols for example).
9018      lt_prog_compiler_pic='-DDLL_EXPORT'
9019      case $host_os in
9020      os2*)
9021	lt_prog_compiler_static='$wl-static'
9022	;;
9023      esac
9024      ;;
9025
9026    hpux9* | hpux10* | hpux11*)
9027      lt_prog_compiler_wl='-Wl,'
9028      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9029      # not for PA HP-UX.
9030      case $host_cpu in
9031      hppa*64*|ia64*)
9032	# +Z the default
9033	;;
9034      *)
9035	lt_prog_compiler_pic='+Z'
9036	;;
9037      esac
9038      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9039      lt_prog_compiler_static='$wl-a ${wl}archive'
9040      ;;
9041
9042    irix5* | irix6* | nonstopux*)
9043      lt_prog_compiler_wl='-Wl,'
9044      # PIC (with -KPIC) is the default.
9045      lt_prog_compiler_static='-non_shared'
9046      ;;
9047
9048    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9049      case $cc_basename in
9050      # old Intel for x86_64, which still supported -KPIC.
9051      ecc*)
9052	lt_prog_compiler_wl='-Wl,'
9053	lt_prog_compiler_pic='-KPIC'
9054	lt_prog_compiler_static='-static'
9055        ;;
9056      # icc used to be incompatible with GCC.
9057      # ICC 10 doesn't accept -KPIC any more.
9058      icc* | ifort*)
9059	lt_prog_compiler_wl='-Wl,'
9060	lt_prog_compiler_pic='-fPIC'
9061	lt_prog_compiler_static='-static'
9062        ;;
9063      # Lahey Fortran 8.1.
9064      lf95*)
9065	lt_prog_compiler_wl='-Wl,'
9066	lt_prog_compiler_pic='--shared'
9067	lt_prog_compiler_static='--static'
9068	;;
9069      nagfor*)
9070	# NAG Fortran compiler
9071	lt_prog_compiler_wl='-Wl,-Wl,,'
9072	lt_prog_compiler_pic='-PIC'
9073	lt_prog_compiler_static='-Bstatic'
9074	;;
9075      tcc*)
9076	# Fabrice Bellard et al's Tiny C Compiler
9077	lt_prog_compiler_wl='-Wl,'
9078	lt_prog_compiler_pic='-fPIC'
9079	lt_prog_compiler_static='-static'
9080	;;
9081      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9082        # Portland Group compilers (*not* the Pentium gcc compiler,
9083	# which looks to be a dead project)
9084	lt_prog_compiler_wl='-Wl,'
9085	lt_prog_compiler_pic='-fpic'
9086	lt_prog_compiler_static='-Bstatic'
9087        ;;
9088      ccc*)
9089        lt_prog_compiler_wl='-Wl,'
9090        # All Alpha code is PIC.
9091        lt_prog_compiler_static='-non_shared'
9092        ;;
9093      xl* | bgxl* | bgf* | mpixl*)
9094	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9095	lt_prog_compiler_wl='-Wl,'
9096	lt_prog_compiler_pic='-qpic'
9097	lt_prog_compiler_static='-qstaticlink'
9098	;;
9099      *)
9100	case `$CC -V 2>&1 | sed 5q` in
9101	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9102	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9103	  lt_prog_compiler_pic='-KPIC'
9104	  lt_prog_compiler_static='-Bstatic'
9105	  lt_prog_compiler_wl=''
9106	  ;;
9107	*Sun\ F* | *Sun*Fortran*)
9108	  lt_prog_compiler_pic='-KPIC'
9109	  lt_prog_compiler_static='-Bstatic'
9110	  lt_prog_compiler_wl='-Qoption ld '
9111	  ;;
9112	*Sun\ C*)
9113	  # Sun C 5.9
9114	  lt_prog_compiler_pic='-KPIC'
9115	  lt_prog_compiler_static='-Bstatic'
9116	  lt_prog_compiler_wl='-Wl,'
9117	  ;;
9118        *Intel*\ [CF]*Compiler*)
9119	  lt_prog_compiler_wl='-Wl,'
9120	  lt_prog_compiler_pic='-fPIC'
9121	  lt_prog_compiler_static='-static'
9122	  ;;
9123	*Portland\ Group*)
9124	  lt_prog_compiler_wl='-Wl,'
9125	  lt_prog_compiler_pic='-fpic'
9126	  lt_prog_compiler_static='-Bstatic'
9127	  ;;
9128	esac
9129	;;
9130      esac
9131      ;;
9132
9133    newsos6)
9134      lt_prog_compiler_pic='-KPIC'
9135      lt_prog_compiler_static='-Bstatic'
9136      ;;
9137
9138    *nto* | *qnx*)
9139      # QNX uses GNU C++, but need to define -shared option too, otherwise
9140      # it will coredump.
9141      lt_prog_compiler_pic='-fPIC -shared'
9142      ;;
9143
9144    osf3* | osf4* | osf5*)
9145      lt_prog_compiler_wl='-Wl,'
9146      # All OSF/1 code is PIC.
9147      lt_prog_compiler_static='-non_shared'
9148      ;;
9149
9150    rdos*)
9151      lt_prog_compiler_static='-non_shared'
9152      ;;
9153
9154    solaris*)
9155      lt_prog_compiler_pic='-KPIC'
9156      lt_prog_compiler_static='-Bstatic'
9157      case $cc_basename in
9158      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9159	lt_prog_compiler_wl='-Qoption ld ';;
9160      *)
9161	lt_prog_compiler_wl='-Wl,';;
9162      esac
9163      ;;
9164
9165    sunos4*)
9166      lt_prog_compiler_wl='-Qoption ld '
9167      lt_prog_compiler_pic='-PIC'
9168      lt_prog_compiler_static='-Bstatic'
9169      ;;
9170
9171    sysv4 | sysv4.2uw2* | sysv4.3*)
9172      lt_prog_compiler_wl='-Wl,'
9173      lt_prog_compiler_pic='-KPIC'
9174      lt_prog_compiler_static='-Bstatic'
9175      ;;
9176
9177    sysv4*MP*)
9178      if test -d /usr/nec; then
9179	lt_prog_compiler_pic='-Kconform_pic'
9180	lt_prog_compiler_static='-Bstatic'
9181      fi
9182      ;;
9183
9184    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9185      lt_prog_compiler_wl='-Wl,'
9186      lt_prog_compiler_pic='-KPIC'
9187      lt_prog_compiler_static='-Bstatic'
9188      ;;
9189
9190    unicos*)
9191      lt_prog_compiler_wl='-Wl,'
9192      lt_prog_compiler_can_build_shared=no
9193      ;;
9194
9195    uts4*)
9196      lt_prog_compiler_pic='-pic'
9197      lt_prog_compiler_static='-Bstatic'
9198      ;;
9199
9200    *)
9201      lt_prog_compiler_can_build_shared=no
9202      ;;
9203    esac
9204  fi
9205
9206case $host_os in
9207  # For platforms that do not support PIC, -DPIC is meaningless:
9208  *djgpp*)
9209    lt_prog_compiler_pic=
9210    ;;
9211  *)
9212    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9213    ;;
9214esac
9215
9216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9217printf %s "checking for $compiler option to produce PIC... " >&6; }
9218if test ${lt_cv_prog_compiler_pic+y}
9219then :
9220  printf %s "(cached) " >&6
9221else $as_nop
9222  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9223fi
9224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9225printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9226lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9227
9228#
9229# Check to make sure the PIC flag actually works.
9230#
9231if test -n "$lt_prog_compiler_pic"; then
9232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9233printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9234if test ${lt_cv_prog_compiler_pic_works+y}
9235then :
9236  printf %s "(cached) " >&6
9237else $as_nop
9238  lt_cv_prog_compiler_pic_works=no
9239   ac_outfile=conftest.$ac_objext
9240   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9242   # Insert the option either (1) after the last *FLAGS variable, or
9243   # (2) before a word containing "conftest.", or (3) at the end.
9244   # Note that $ac_compile itself does not contain backslashes and begins
9245   # with a dollar sign (not a hyphen), so the echo should work correctly.
9246   # The option is referenced via a variable to avoid confusing sed.
9247   lt_compile=`echo "$ac_compile" | $SED \
9248   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250   -e 's:$: $lt_compiler_flag:'`
9251   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9252   (eval "$lt_compile" 2>conftest.err)
9253   ac_status=$?
9254   cat conftest.err >&5
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   if (exit $ac_status) && test -s "$ac_outfile"; then
9257     # The compiler can only warn and ignore the option if not recognized
9258     # So say no if there are warnings other than the usual output.
9259     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9260     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9261     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9262       lt_cv_prog_compiler_pic_works=yes
9263     fi
9264   fi
9265   $RM conftest*
9266
9267fi
9268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9269printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9270
9271if test yes = "$lt_cv_prog_compiler_pic_works"; then
9272    case $lt_prog_compiler_pic in
9273     "" | " "*) ;;
9274     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9275     esac
9276else
9277    lt_prog_compiler_pic=
9278     lt_prog_compiler_can_build_shared=no
9279fi
9280
9281fi
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293#
9294# Check to make sure the static flag actually works.
9295#
9296wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9298printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9299if test ${lt_cv_prog_compiler_static_works+y}
9300then :
9301  printf %s "(cached) " >&6
9302else $as_nop
9303  lt_cv_prog_compiler_static_works=no
9304   save_LDFLAGS=$LDFLAGS
9305   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9306   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9307   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9308     # The linker can only warn and ignore the option if not recognized
9309     # So say no if there are warnings
9310     if test -s conftest.err; then
9311       # Append any errors to the config.log.
9312       cat conftest.err 1>&5
9313       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9314       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9315       if diff conftest.exp conftest.er2 >/dev/null; then
9316         lt_cv_prog_compiler_static_works=yes
9317       fi
9318     else
9319       lt_cv_prog_compiler_static_works=yes
9320     fi
9321   fi
9322   $RM -r conftest*
9323   LDFLAGS=$save_LDFLAGS
9324
9325fi
9326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9327printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9328
9329if test yes = "$lt_cv_prog_compiler_static_works"; then
9330    :
9331else
9332    lt_prog_compiler_static=
9333fi
9334
9335
9336
9337
9338
9339
9340
9341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9342printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9343if test ${lt_cv_prog_compiler_c_o+y}
9344then :
9345  printf %s "(cached) " >&6
9346else $as_nop
9347  lt_cv_prog_compiler_c_o=no
9348   $RM -r conftest 2>/dev/null
9349   mkdir conftest
9350   cd conftest
9351   mkdir out
9352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9353
9354   lt_compiler_flag="-o out/conftest2.$ac_objext"
9355   # Insert the option either (1) after the last *FLAGS variable, or
9356   # (2) before a word containing "conftest.", or (3) at the end.
9357   # Note that $ac_compile itself does not contain backslashes and begins
9358   # with a dollar sign (not a hyphen), so the echo should work correctly.
9359   lt_compile=`echo "$ac_compile" | $SED \
9360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9362   -e 's:$: $lt_compiler_flag:'`
9363   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9364   (eval "$lt_compile" 2>out/conftest.err)
9365   ac_status=$?
9366   cat out/conftest.err >&5
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9369   then
9370     # The compiler can only warn and ignore the option if not recognized
9371     # So say no if there are warnings
9372     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9373     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9374     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9375       lt_cv_prog_compiler_c_o=yes
9376     fi
9377   fi
9378   chmod u+w . 2>&5
9379   $RM conftest*
9380   # SGI C++ compiler will create directory out/ii_files/ for
9381   # template instantiation
9382   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9383   $RM out/* && rmdir out
9384   cd ..
9385   $RM -r conftest
9386   $RM conftest*
9387
9388fi
9389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9390printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9391
9392
9393
9394
9395
9396
9397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9398printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9399if test ${lt_cv_prog_compiler_c_o+y}
9400then :
9401  printf %s "(cached) " >&6
9402else $as_nop
9403  lt_cv_prog_compiler_c_o=no
9404   $RM -r conftest 2>/dev/null
9405   mkdir conftest
9406   cd conftest
9407   mkdir out
9408   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9409
9410   lt_compiler_flag="-o out/conftest2.$ac_objext"
9411   # Insert the option either (1) after the last *FLAGS variable, or
9412   # (2) before a word containing "conftest.", or (3) at the end.
9413   # Note that $ac_compile itself does not contain backslashes and begins
9414   # with a dollar sign (not a hyphen), so the echo should work correctly.
9415   lt_compile=`echo "$ac_compile" | $SED \
9416   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418   -e 's:$: $lt_compiler_flag:'`
9419   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420   (eval "$lt_compile" 2>out/conftest.err)
9421   ac_status=$?
9422   cat out/conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9425   then
9426     # The compiler can only warn and ignore the option if not recognized
9427     # So say no if there are warnings
9428     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9429     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9430     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9431       lt_cv_prog_compiler_c_o=yes
9432     fi
9433   fi
9434   chmod u+w . 2>&5
9435   $RM conftest*
9436   # SGI C++ compiler will create directory out/ii_files/ for
9437   # template instantiation
9438   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9439   $RM out/* && rmdir out
9440   cd ..
9441   $RM -r conftest
9442   $RM conftest*
9443
9444fi
9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9446printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9447
9448
9449
9450
9451hard_links=nottested
9452if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9453  # do not overwrite the value of need_locks provided by the user
9454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9455printf %s "checking if we can lock with hard links... " >&6; }
9456  hard_links=yes
9457  $RM conftest*
9458  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9459  touch conftest.a
9460  ln conftest.a conftest.b 2>&5 || hard_links=no
9461  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9463printf "%s\n" "$hard_links" >&6; }
9464  if test no = "$hard_links"; then
9465    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9466printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9467    need_locks=warn
9468  fi
9469else
9470  need_locks=no
9471fi
9472
9473
9474
9475
9476
9477
9478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9479printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9480
9481  runpath_var=
9482  allow_undefined_flag=
9483  always_export_symbols=no
9484  archive_cmds=
9485  archive_expsym_cmds=
9486  compiler_needs_object=no
9487  enable_shared_with_static_runtimes=no
9488  export_dynamic_flag_spec=
9489  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9490  hardcode_automatic=no
9491  hardcode_direct=no
9492  hardcode_direct_absolute=no
9493  hardcode_libdir_flag_spec=
9494  hardcode_libdir_separator=
9495  hardcode_minus_L=no
9496  hardcode_shlibpath_var=unsupported
9497  inherit_rpath=no
9498  link_all_deplibs=unknown
9499  module_cmds=
9500  module_expsym_cmds=
9501  old_archive_from_new_cmds=
9502  old_archive_from_expsyms_cmds=
9503  thread_safe_flag_spec=
9504  whole_archive_flag_spec=
9505  # include_expsyms should be a list of space-separated symbols to be *always*
9506  # included in the symbol list
9507  include_expsyms=
9508  # exclude_expsyms can be an extended regexp of symbols to exclude
9509  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9510  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9511  # as well as any symbol that contains 'd'.
9512  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9513  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9514  # platforms (ab)use it in PIC code, but their linkers get confused if
9515  # the symbol is explicitly referenced.  Since portable code cannot
9516  # rely on this symbol name, it's probably fine to never include it in
9517  # preloaded symbol tables.
9518  # Exclude shared library initialization/finalization symbols.
9519  extract_expsyms_cmds=
9520
9521  case $host_os in
9522  cygwin* | mingw* | pw32* | cegcc*)
9523    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9524    # When not using gcc, we currently assume that we are using
9525    # Microsoft Visual C++.
9526    if test yes != "$GCC"; then
9527      with_gnu_ld=no
9528    fi
9529    ;;
9530  interix*)
9531    # we just hope/assume this is gcc and not c89 (= MSVC++)
9532    with_gnu_ld=yes
9533    ;;
9534  openbsd* | bitrig*)
9535    with_gnu_ld=no
9536    ;;
9537  esac
9538
9539  ld_shlibs=yes
9540
9541  # On some targets, GNU ld is compatible enough with the native linker
9542  # that we're better off using the native interface for both.
9543  lt_use_gnu_ld_interface=no
9544  if test yes = "$with_gnu_ld"; then
9545    case $host_os in
9546      aix*)
9547	# The AIX port of GNU ld has always aspired to compatibility
9548	# with the native linker.  However, as the warning in the GNU ld
9549	# block says, versions before 2.19.5* couldn't really create working
9550	# shared libraries, regardless of the interface used.
9551	case `$LD -v 2>&1` in
9552	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9553	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9554	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9555	  *)
9556	    lt_use_gnu_ld_interface=yes
9557	    ;;
9558	esac
9559	;;
9560      *)
9561	lt_use_gnu_ld_interface=yes
9562	;;
9563    esac
9564  fi
9565
9566  if test yes = "$lt_use_gnu_ld_interface"; then
9567    # If archive_cmds runs LD, not CC, wlarc should be empty
9568    wlarc='$wl'
9569
9570    # Set some defaults for GNU ld with shared library support. These
9571    # are reset later if shared libraries are not supported. Putting them
9572    # here allows them to be overridden if necessary.
9573    runpath_var=LD_RUN_PATH
9574    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9575    export_dynamic_flag_spec='$wl--export-dynamic'
9576    # ancient GNU ld didn't support --whole-archive et. al.
9577    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9578      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9579    else
9580      whole_archive_flag_spec=
9581    fi
9582    supports_anon_versioning=no
9583    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9584      *GNU\ gold*) supports_anon_versioning=yes ;;
9585      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9586      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9587      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9588      *\ 2.11.*) ;; # other 2.11 versions
9589      *) supports_anon_versioning=yes ;;
9590    esac
9591
9592    # See if GNU ld supports shared libraries.
9593    case $host_os in
9594    aix[3-9]*)
9595      # On AIX/PPC, the GNU linker is very broken
9596      if test ia64 != "$host_cpu"; then
9597	ld_shlibs=no
9598	cat <<_LT_EOF 1>&2
9599
9600*** Warning: the GNU linker, at least up to release 2.19, is reported
9601*** to be unable to reliably create shared libraries on AIX.
9602*** Therefore, libtool is disabling shared libraries support.  If you
9603*** really care for shared libraries, you may want to install binutils
9604*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9605*** You will then need to restart the configuration process.
9606
9607_LT_EOF
9608      fi
9609      ;;
9610
9611    amigaos*)
9612      case $host_cpu in
9613      powerpc)
9614            # see comment about AmigaOS4 .so support
9615            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9616            archive_expsym_cmds=''
9617        ;;
9618      m68k)
9619            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)'
9620            hardcode_libdir_flag_spec='-L$libdir'
9621            hardcode_minus_L=yes
9622        ;;
9623      esac
9624      ;;
9625
9626    beos*)
9627      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9628	allow_undefined_flag=unsupported
9629	# Joseph Beckenbach <[email protected]> says some releases of gcc
9630	# support --undefined.  This deserves some investigation.  FIXME
9631	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9632      else
9633	ld_shlibs=no
9634      fi
9635      ;;
9636
9637    cygwin* | mingw* | pw32* | cegcc*)
9638      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9639      # as there is no search path for DLLs.
9640      hardcode_libdir_flag_spec='-L$libdir'
9641      export_dynamic_flag_spec='$wl--export-all-symbols'
9642      allow_undefined_flag=unsupported
9643      always_export_symbols=no
9644      enable_shared_with_static_runtimes=yes
9645      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'
9646      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9647
9648      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9649        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9650	# If the export-symbols file already is a .def file, use it as
9651	# is; otherwise, prepend EXPORTS...
9652	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9653          cp $export_symbols $output_objdir/$soname.def;
9654        else
9655          echo EXPORTS > $output_objdir/$soname.def;
9656          cat $export_symbols >> $output_objdir/$soname.def;
9657        fi~
9658        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9659      else
9660	ld_shlibs=no
9661      fi
9662      ;;
9663
9664    haiku*)
9665      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9666      link_all_deplibs=yes
9667      ;;
9668
9669    os2*)
9670      hardcode_libdir_flag_spec='-L$libdir'
9671      hardcode_minus_L=yes
9672      allow_undefined_flag=unsupported
9673      shrext_cmds=.dll
9674      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9675	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9676	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9677	$ECHO EXPORTS >> $output_objdir/$libname.def~
9678	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9679	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9680	emximp -o $lib $output_objdir/$libname.def'
9681      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9682	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9683	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9684	$ECHO EXPORTS >> $output_objdir/$libname.def~
9685	prefix_cmds="$SED"~
9686	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9687	  prefix_cmds="$prefix_cmds -e 1d";
9688	fi~
9689	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9690	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9691	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9692	emximp -o $lib $output_objdir/$libname.def'
9693      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9694      enable_shared_with_static_runtimes=yes
9695      ;;
9696
9697    interix[3-9]*)
9698      hardcode_direct=no
9699      hardcode_shlibpath_var=no
9700      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9701      export_dynamic_flag_spec='$wl-E'
9702      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9703      # Instead, shared libraries are loaded at an image base (0x10000000 by
9704      # default) and relocated if they conflict, which is a slow very memory
9705      # consuming and fragmenting process.  To avoid this, we pick a random,
9706      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9707      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9708      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9709      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'
9710      ;;
9711
9712    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9713      tmp_diet=no
9714      if test linux-dietlibc = "$host_os"; then
9715	case $cc_basename in
9716	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9717	esac
9718      fi
9719      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9720	 && test no = "$tmp_diet"
9721      then
9722	tmp_addflag=' $pic_flag'
9723	tmp_sharedflag='-shared'
9724	case $cc_basename,$host_cpu in
9725        pgcc*)				# Portland Group C compiler
9726	  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'
9727	  tmp_addflag=' $pic_flag'
9728	  ;;
9729	pgf77* | pgf90* | pgf95* | pgfortran*)
9730					# Portland Group f77 and f90 compilers
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	  tmp_addflag=' $pic_flag -Mnomain' ;;
9733	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9734	  tmp_addflag=' -i_dynamic' ;;
9735	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9736	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9737	ifc* | ifort*)			# Intel Fortran compiler
9738	  tmp_addflag=' -nofor_main' ;;
9739	lf95*)				# Lahey Fortran 8.1
9740	  whole_archive_flag_spec=
9741	  tmp_sharedflag='--shared' ;;
9742        nagfor*)                        # NAGFOR 5.3
9743          tmp_sharedflag='-Wl,-shared' ;;
9744	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9745	  tmp_sharedflag='-qmkshrobj'
9746	  tmp_addflag= ;;
9747	nvcc*)	# Cuda Compiler Driver 2.2
9748	  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'
9749	  compiler_needs_object=yes
9750	  ;;
9751	esac
9752	case `$CC -V 2>&1 | sed 5q` in
9753	*Sun\ C*)			# Sun C 5.9
9754	  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'
9755	  compiler_needs_object=yes
9756	  tmp_sharedflag='-G' ;;
9757	*Sun\ F*)			# Sun Fortran 8.3
9758	  tmp_sharedflag='-G' ;;
9759	esac
9760	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9761
9762        if test yes = "$supports_anon_versioning"; then
9763          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9764            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9765            echo "local: *; };" >> $output_objdir/$libname.ver~
9766            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9767        fi
9768
9769	case $cc_basename in
9770	tcc*)
9771	  export_dynamic_flag_spec='-rdynamic'
9772	  ;;
9773	xlf* | bgf* | bgxlf* | mpixlf*)
9774	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9775	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9776	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9777	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9778	  if test yes = "$supports_anon_versioning"; then
9779	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9780              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781              echo "local: *; };" >> $output_objdir/$libname.ver~
9782              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9783	  fi
9784	  ;;
9785	esac
9786      else
9787        ld_shlibs=no
9788      fi
9789      ;;
9790
9791    netbsd*)
9792      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9794	wlarc=
9795      else
9796	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9797	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9798      fi
9799      ;;
9800
9801    solaris*)
9802      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9803	ld_shlibs=no
9804	cat <<_LT_EOF 1>&2
9805
9806*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9807*** create shared libraries on Solaris systems.  Therefore, libtool
9808*** is disabling shared libraries support.  We urge you to upgrade GNU
9809*** binutils to release 2.9.1 or newer.  Another option is to modify
9810*** your PATH or compiler configuration so that the native linker is
9811*** used, and then restart.
9812
9813_LT_EOF
9814      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9815	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9816	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9817      else
9818	ld_shlibs=no
9819      fi
9820      ;;
9821
9822    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9823      case `$LD -v 2>&1` in
9824        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9825	ld_shlibs=no
9826	cat <<_LT_EOF 1>&2
9827
9828*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9829*** reliably create shared libraries on SCO systems.  Therefore, libtool
9830*** is disabling shared libraries support.  We urge you to upgrade GNU
9831*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9832*** your PATH or compiler configuration so that the native linker is
9833*** used, and then restart.
9834
9835_LT_EOF
9836	;;
9837	*)
9838	  # For security reasons, it is highly recommended that you always
9839	  # use absolute paths for naming shared libraries, and exclude the
9840	  # DT_RUNPATH tag from executables and libraries.  But doing so
9841	  # requires that you compile everything twice, which is a pain.
9842	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9843	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9844	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9845	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9846	  else
9847	    ld_shlibs=no
9848	  fi
9849	;;
9850      esac
9851      ;;
9852
9853    sunos4*)
9854      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9855      wlarc=
9856      hardcode_direct=yes
9857      hardcode_shlibpath_var=no
9858      ;;
9859
9860    *)
9861      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9862	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9863	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9864      else
9865	ld_shlibs=no
9866      fi
9867      ;;
9868    esac
9869
9870    if test no = "$ld_shlibs"; then
9871      runpath_var=
9872      hardcode_libdir_flag_spec=
9873      export_dynamic_flag_spec=
9874      whole_archive_flag_spec=
9875    fi
9876  else
9877    # PORTME fill in a description of your system's linker (not GNU ld)
9878    case $host_os in
9879    aix3*)
9880      allow_undefined_flag=unsupported
9881      always_export_symbols=yes
9882      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'
9883      # Note: this linker hardcodes the directories in LIBPATH if there
9884      # are no directories specified by -L.
9885      hardcode_minus_L=yes
9886      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9887	# Neither direct hardcoding nor static linking is supported with a
9888	# broken collect2.
9889	hardcode_direct=unsupported
9890      fi
9891      ;;
9892
9893    aix[4-9]*)
9894      if test ia64 = "$host_cpu"; then
9895	# On IA64, the linker does run time linking by default, so we don't
9896	# have to do anything special.
9897	aix_use_runtimelinking=no
9898	exp_sym_flag='-Bexport'
9899	no_entry_flag=
9900      else
9901	# If we're using GNU nm, then we don't want the "-C" option.
9902	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9903	# Without the "-l" option, or with the "-B" option, AIX nm treats
9904	# weak defined symbols like other global defined symbols, whereas
9905	# GNU nm marks them as "W".
9906	# While the 'weak' keyword is ignored in the Export File, we need
9907	# it in the Import File for the 'aix-soname' feature, so we have
9908	# to replace the "-B" option with "-P" for AIX nm.
9909	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9910	  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'
9911	else
9912	  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'
9913	fi
9914	aix_use_runtimelinking=no
9915
9916	# Test if we are trying to use run time linking or normal
9917	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9918	# have runtime linking enabled, and use it for executables.
9919	# For shared libraries, we enable/disable runtime linking
9920	# depending on the kind of the shared library created -
9921	# when "with_aix_soname,aix_use_runtimelinking" is:
9922	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9923	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9924	#            lib.a           static archive
9925	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9926	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9927	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9928	#            lib.a(lib.so.V) shared, rtl:no
9929	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9930	#            lib.a           static archive
9931	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9932	  for ld_flag in $LDFLAGS; do
9933	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9934	    aix_use_runtimelinking=yes
9935	    break
9936	  fi
9937	  done
9938	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9939	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9940	    # so we don't have lib.a shared libs to link our executables.
9941	    # We have to force runtime linking in this case.
9942	    aix_use_runtimelinking=yes
9943	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9944	  fi
9945	  ;;
9946	esac
9947
9948	exp_sym_flag='-bexport'
9949	no_entry_flag='-bnoentry'
9950      fi
9951
9952      # When large executables or shared objects are built, AIX ld can
9953      # have problems creating the table of contents.  If linking a library
9954      # or program results in "error TOC overflow" add -mminimal-toc to
9955      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9956      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9957
9958      archive_cmds=''
9959      hardcode_direct=yes
9960      hardcode_direct_absolute=yes
9961      hardcode_libdir_separator=':'
9962      link_all_deplibs=yes
9963      file_list_spec='$wl-f,'
9964      case $with_aix_soname,$aix_use_runtimelinking in
9965      aix,*) ;; # traditional, no import file
9966      svr4,* | *,yes) # use import file
9967	# The Import File defines what to hardcode.
9968	hardcode_direct=no
9969	hardcode_direct_absolute=no
9970	;;
9971      esac
9972
9973      if test yes = "$GCC"; then
9974	case $host_os in aix4.[012]|aix4.[012].*)
9975	# We only want to do this on AIX 4.2 and lower, the check
9976	# below for broken collect2 doesn't work under 4.3+
9977	  collect2name=`$CC -print-prog-name=collect2`
9978	  if test -f "$collect2name" &&
9979	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9980	  then
9981	  # We have reworked collect2
9982	  :
9983	  else
9984	  # We have old collect2
9985	  hardcode_direct=unsupported
9986	  # It fails to find uninstalled libraries when the uninstalled
9987	  # path is not listed in the libpath.  Setting hardcode_minus_L
9988	  # to unsupported forces relinking
9989	  hardcode_minus_L=yes
9990	  hardcode_libdir_flag_spec='-L$libdir'
9991	  hardcode_libdir_separator=
9992	  fi
9993	  ;;
9994	esac
9995	shared_flag='-shared'
9996	if test yes = "$aix_use_runtimelinking"; then
9997	  shared_flag="$shared_flag "'$wl-G'
9998	fi
9999	# Need to ensure runtime linking is disabled for the traditional
10000	# shared library, or the linker may eventually find shared libraries
10001	# /with/ Import File - we do not want to mix them.
10002	shared_flag_aix='-shared'
10003	shared_flag_svr4='-shared $wl-G'
10004      else
10005	# not using gcc
10006	if test ia64 = "$host_cpu"; then
10007	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10008	# chokes on -Wl,-G. The following line is correct:
10009	  shared_flag='-G'
10010	else
10011	  if test yes = "$aix_use_runtimelinking"; then
10012	    shared_flag='$wl-G'
10013	  else
10014	    shared_flag='$wl-bM:SRE'
10015	  fi
10016	  shared_flag_aix='$wl-bM:SRE'
10017	  shared_flag_svr4='$wl-G'
10018	fi
10019      fi
10020
10021      export_dynamic_flag_spec='$wl-bexpall'
10022      # It seems that -bexpall does not export symbols beginning with
10023      # underscore (_), so it is better to generate a list of symbols to export.
10024      always_export_symbols=yes
10025      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10026	# Warning - without using the other runtime loading flags (-brtl),
10027	# -berok will link without error, but may produce a broken library.
10028	allow_undefined_flag='-berok'
10029        # Determine the default libpath from the value encoded in an
10030        # empty executable.
10031        if test set = "${lt_cv_aix_libpath+set}"; then
10032  aix_libpath=$lt_cv_aix_libpath
10033else
10034  if test ${lt_cv_aix_libpath_+y}
10035then :
10036  printf %s "(cached) " >&6
10037else $as_nop
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040
10041int
10042main (void)
10043{
10044
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"
10050then :
10051
10052  lt_aix_libpath_sed='
10053      /Import File Strings/,/^$/ {
10054	  /^0/ {
10055	      s/^0  *\([^ ]*\) *$/\1/
10056	      p
10057	  }
10058      }'
10059  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10060  # Check for a 64-bit object if we didn't find anything.
10061  if test -z "$lt_cv_aix_libpath_"; then
10062    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10063  fi
10064fi
10065rm -f core conftest.err conftest.$ac_objext conftest.beam \
10066    conftest$ac_exeext conftest.$ac_ext
10067  if test -z "$lt_cv_aix_libpath_"; then
10068    lt_cv_aix_libpath_=/usr/lib:/lib
10069  fi
10070
10071fi
10072
10073  aix_libpath=$lt_cv_aix_libpath_
10074fi
10075
10076        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10077        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
10078      else
10079	if test ia64 = "$host_cpu"; then
10080	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10081	  allow_undefined_flag="-z nodefs"
10082	  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"
10083	else
10084	 # Determine the default libpath from the value encoded in an
10085	 # empty executable.
10086	 if test set = "${lt_cv_aix_libpath+set}"; then
10087  aix_libpath=$lt_cv_aix_libpath
10088else
10089  if test ${lt_cv_aix_libpath_+y}
10090then :
10091  printf %s "(cached) " >&6
10092else $as_nop
10093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095
10096int
10097main (void)
10098{
10099
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"
10105then :
10106
10107  lt_aix_libpath_sed='
10108      /Import File Strings/,/^$/ {
10109	  /^0/ {
10110	      s/^0  *\([^ ]*\) *$/\1/
10111	      p
10112	  }
10113      }'
10114  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10115  # Check for a 64-bit object if we didn't find anything.
10116  if test -z "$lt_cv_aix_libpath_"; then
10117    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10118  fi
10119fi
10120rm -f core conftest.err conftest.$ac_objext conftest.beam \
10121    conftest$ac_exeext conftest.$ac_ext
10122  if test -z "$lt_cv_aix_libpath_"; then
10123    lt_cv_aix_libpath_=/usr/lib:/lib
10124  fi
10125
10126fi
10127
10128  aix_libpath=$lt_cv_aix_libpath_
10129fi
10130
10131	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10132	  # Warning - without using the other run time loading flags,
10133	  # -berok will link without error, but may produce a broken library.
10134	  no_undefined_flag=' $wl-bernotok'
10135	  allow_undefined_flag=' $wl-berok'
10136	  if test yes = "$with_gnu_ld"; then
10137	    # We only use this code for GNU lds that support --whole-archive.
10138	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10139	  else
10140	    # Exported symbols can be pulled into shared objects from archives
10141	    whole_archive_flag_spec='$convenience'
10142	  fi
10143	  archive_cmds_need_lc=yes
10144	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10145	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10146	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10147	  if test svr4 != "$with_aix_soname"; then
10148	    # This is similar to how AIX traditionally builds its shared libraries.
10149	    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'
10150	  fi
10151	  if test aix != "$with_aix_soname"; then
10152	    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'
10153	  else
10154	    # used by -dlpreopen to get the symbols
10155	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10156	  fi
10157	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10158	fi
10159      fi
10160      ;;
10161
10162    amigaos*)
10163      case $host_cpu in
10164      powerpc)
10165            # see comment about AmigaOS4 .so support
10166            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10167            archive_expsym_cmds=''
10168        ;;
10169      m68k)
10170            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)'
10171            hardcode_libdir_flag_spec='-L$libdir'
10172            hardcode_minus_L=yes
10173        ;;
10174      esac
10175      ;;
10176
10177    bsdi[45]*)
10178      export_dynamic_flag_spec=-rdynamic
10179      ;;
10180
10181    cygwin* | mingw* | pw32* | cegcc*)
10182      # When not using gcc, we currently assume that we are using
10183      # Microsoft Visual C++.
10184      # hardcode_libdir_flag_spec is actually meaningless, as there is
10185      # no search path for DLLs.
10186      case $cc_basename in
10187      cl*)
10188	# Native MSVC
10189	hardcode_libdir_flag_spec=' '
10190	allow_undefined_flag=unsupported
10191	always_export_symbols=yes
10192	file_list_spec='@'
10193	# Tell ltmain to make .lib files, not .a files.
10194	libext=lib
10195	# Tell ltmain to make .dll files, not .so files.
10196	shrext_cmds=.dll
10197	# FIXME: Setting linknames here is a bad hack.
10198	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10199	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10200            cp "$export_symbols" "$output_objdir/$soname.def";
10201            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10202          else
10203            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10204          fi~
10205          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10206          linknames='
10207	# The linker will not automatically build a static lib if we build a DLL.
10208	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10209	enable_shared_with_static_runtimes=yes
10210	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10211	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10212	# Don't use ranlib
10213	old_postinstall_cmds='chmod 644 $oldlib'
10214	postlink_cmds='lt_outputfile="@OUTPUT@"~
10215          lt_tool_outputfile="@TOOL_OUTPUT@"~
10216          case $lt_outputfile in
10217            *.exe|*.EXE) ;;
10218            *)
10219              lt_outputfile=$lt_outputfile.exe
10220              lt_tool_outputfile=$lt_tool_outputfile.exe
10221              ;;
10222          esac~
10223          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10224            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10225            $RM "$lt_outputfile.manifest";
10226          fi'
10227	;;
10228      *)
10229	# Assume MSVC wrapper
10230	hardcode_libdir_flag_spec=' '
10231	allow_undefined_flag=unsupported
10232	# Tell ltmain to make .lib files, not .a files.
10233	libext=lib
10234	# Tell ltmain to make .dll files, not .so files.
10235	shrext_cmds=.dll
10236	# FIXME: Setting linknames here is a bad hack.
10237	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10238	# The linker will automatically build a .lib file if we build a DLL.
10239	old_archive_from_new_cmds='true'
10240	# FIXME: Should let the user specify the lib program.
10241	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10242	enable_shared_with_static_runtimes=yes
10243	;;
10244      esac
10245      ;;
10246
10247    darwin* | rhapsody*)
10248
10249
10250  archive_cmds_need_lc=no
10251  hardcode_direct=no
10252  hardcode_automatic=yes
10253  hardcode_shlibpath_var=unsupported
10254  if test yes = "$lt_cv_ld_force_load"; then
10255    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\"`'
10256
10257  else
10258    whole_archive_flag_spec=''
10259  fi
10260  link_all_deplibs=yes
10261  allow_undefined_flag=$_lt_dar_allow_undefined
10262  case $cc_basename in
10263     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10264     *) _lt_dar_can_shared=$GCC ;;
10265  esac
10266  if test yes = "$_lt_dar_can_shared"; then
10267    output_verbose_link_cmd=func_echo_all
10268    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10269    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10270    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"
10271    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"
10272
10273  else
10274  ld_shlibs=no
10275  fi
10276
10277      ;;
10278
10279    dgux*)
10280      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281      hardcode_libdir_flag_spec='-L$libdir'
10282      hardcode_shlibpath_var=no
10283      ;;
10284
10285    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10286    # support.  Future versions do this automatically, but an explicit c++rt0.o
10287    # does not break anything, and helps significantly (at the cost of a little
10288    # extra space).
10289    freebsd2.2*)
10290      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10291      hardcode_libdir_flag_spec='-R$libdir'
10292      hardcode_direct=yes
10293      hardcode_shlibpath_var=no
10294      ;;
10295
10296    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10297    freebsd2.*)
10298      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10299      hardcode_direct=yes
10300      hardcode_minus_L=yes
10301      hardcode_shlibpath_var=no
10302      ;;
10303
10304    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10305    freebsd* | dragonfly*)
10306      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10307      hardcode_libdir_flag_spec='-R$libdir'
10308      hardcode_direct=yes
10309      hardcode_shlibpath_var=no
10310      ;;
10311
10312    hpux9*)
10313      if test yes = "$GCC"; then
10314	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'
10315      else
10316	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'
10317      fi
10318      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10319      hardcode_libdir_separator=:
10320      hardcode_direct=yes
10321
10322      # hardcode_minus_L: Not really in the search PATH,
10323      # but as the default location of the library.
10324      hardcode_minus_L=yes
10325      export_dynamic_flag_spec='$wl-E'
10326      ;;
10327
10328    hpux10*)
10329      if test yes,no = "$GCC,$with_gnu_ld"; then
10330	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10331      else
10332	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10333      fi
10334      if test no = "$with_gnu_ld"; then
10335	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10336	hardcode_libdir_separator=:
10337	hardcode_direct=yes
10338	hardcode_direct_absolute=yes
10339	export_dynamic_flag_spec='$wl-E'
10340	# hardcode_minus_L: Not really in the search PATH,
10341	# but as the default location of the library.
10342	hardcode_minus_L=yes
10343      fi
10344      ;;
10345
10346    hpux11*)
10347      if test yes,no = "$GCC,$with_gnu_ld"; then
10348	case $host_cpu in
10349	hppa*64*)
10350	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10351	  ;;
10352	ia64*)
10353	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10354	  ;;
10355	*)
10356	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10357	  ;;
10358	esac
10359      else
10360	case $host_cpu in
10361	hppa*64*)
10362	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10363	  ;;
10364	ia64*)
10365	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10366	  ;;
10367	*)
10368
10369	  # Older versions of the 11.00 compiler do not understand -b yet
10370	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10371	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10372printf %s "checking if $CC understands -b... " >&6; }
10373if test ${lt_cv_prog_compiler__b+y}
10374then :
10375  printf %s "(cached) " >&6
10376else $as_nop
10377  lt_cv_prog_compiler__b=no
10378   save_LDFLAGS=$LDFLAGS
10379   LDFLAGS="$LDFLAGS -b"
10380   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10381   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10382     # The linker can only warn and ignore the option if not recognized
10383     # So say no if there are warnings
10384     if test -s conftest.err; then
10385       # Append any errors to the config.log.
10386       cat conftest.err 1>&5
10387       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10388       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10389       if diff conftest.exp conftest.er2 >/dev/null; then
10390         lt_cv_prog_compiler__b=yes
10391       fi
10392     else
10393       lt_cv_prog_compiler__b=yes
10394     fi
10395   fi
10396   $RM -r conftest*
10397   LDFLAGS=$save_LDFLAGS
10398
10399fi
10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10401printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10402
10403if test yes = "$lt_cv_prog_compiler__b"; then
10404    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10405else
10406    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10407fi
10408
10409	  ;;
10410	esac
10411      fi
10412      if test no = "$with_gnu_ld"; then
10413	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10414	hardcode_libdir_separator=:
10415
10416	case $host_cpu in
10417	hppa*64*|ia64*)
10418	  hardcode_direct=no
10419	  hardcode_shlibpath_var=no
10420	  ;;
10421	*)
10422	  hardcode_direct=yes
10423	  hardcode_direct_absolute=yes
10424	  export_dynamic_flag_spec='$wl-E'
10425
10426	  # hardcode_minus_L: Not really in the search PATH,
10427	  # but as the default location of the library.
10428	  hardcode_minus_L=yes
10429	  ;;
10430	esac
10431      fi
10432      ;;
10433
10434    irix5* | irix6* | nonstopux*)
10435      if test yes = "$GCC"; then
10436	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'
10437	# Try to use the -exported_symbol ld option, if it does not
10438	# work, assume that -exports_file does not work either and
10439	# implicitly export all symbols.
10440	# This should be the same for all languages, so no per-tag cache variable.
10441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10442printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10443if test ${lt_cv_irix_exported_symbol+y}
10444then :
10445  printf %s "(cached) " >&6
10446else $as_nop
10447  save_LDFLAGS=$LDFLAGS
10448	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10449	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451int foo (void) { return 0; }
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"
10454then :
10455  lt_cv_irix_exported_symbol=yes
10456else $as_nop
10457  lt_cv_irix_exported_symbol=no
10458fi
10459rm -f core conftest.err conftest.$ac_objext conftest.beam \
10460    conftest$ac_exeext conftest.$ac_ext
10461           LDFLAGS=$save_LDFLAGS
10462fi
10463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10464printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10465	if test yes = "$lt_cv_irix_exported_symbol"; then
10466          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'
10467	fi
10468      else
10469	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'
10470	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'
10471      fi
10472      archive_cmds_need_lc='no'
10473      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10474      hardcode_libdir_separator=:
10475      inherit_rpath=yes
10476      link_all_deplibs=yes
10477      ;;
10478
10479    linux*)
10480      case $cc_basename in
10481      tcc*)
10482	# Fabrice Bellard et al's Tiny C Compiler
10483	ld_shlibs=yes
10484	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10485	;;
10486      esac
10487      ;;
10488
10489    netbsd*)
10490      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10491	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10492      else
10493	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10494      fi
10495      hardcode_libdir_flag_spec='-R$libdir'
10496      hardcode_direct=yes
10497      hardcode_shlibpath_var=no
10498      ;;
10499
10500    newsos6)
10501      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10502      hardcode_direct=yes
10503      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10504      hardcode_libdir_separator=:
10505      hardcode_shlibpath_var=no
10506      ;;
10507
10508    *nto* | *qnx*)
10509      ;;
10510
10511    openbsd* | bitrig*)
10512      if test -f /usr/libexec/ld.so; then
10513	hardcode_direct=yes
10514	hardcode_shlibpath_var=no
10515	hardcode_direct_absolute=yes
10516	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10517	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10518	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10519	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10520	  export_dynamic_flag_spec='$wl-E'
10521	else
10522	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10523	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10524	fi
10525      else
10526	ld_shlibs=no
10527      fi
10528      ;;
10529
10530    os2*)
10531      hardcode_libdir_flag_spec='-L$libdir'
10532      hardcode_minus_L=yes
10533      allow_undefined_flag=unsupported
10534      shrext_cmds=.dll
10535      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10536	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10537	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10538	$ECHO EXPORTS >> $output_objdir/$libname.def~
10539	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10540	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10541	emximp -o $lib $output_objdir/$libname.def'
10542      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10543	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10544	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10545	$ECHO EXPORTS >> $output_objdir/$libname.def~
10546	prefix_cmds="$SED"~
10547	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10548	  prefix_cmds="$prefix_cmds -e 1d";
10549	fi~
10550	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10551	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10552	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10553	emximp -o $lib $output_objdir/$libname.def'
10554      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10555      enable_shared_with_static_runtimes=yes
10556      ;;
10557
10558    osf3*)
10559      if test yes = "$GCC"; then
10560	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10561	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'
10562      else
10563	allow_undefined_flag=' -expect_unresolved \*'
10564	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'
10565      fi
10566      archive_cmds_need_lc='no'
10567      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10568      hardcode_libdir_separator=:
10569      ;;
10570
10571    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10572      if test yes = "$GCC"; then
10573	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10574	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'
10575	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10576      else
10577	allow_undefined_flag=' -expect_unresolved \*'
10578	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'
10579	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~
10580          $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'
10581
10582	# Both c and cxx compiler support -rpath directly
10583	hardcode_libdir_flag_spec='-rpath $libdir'
10584      fi
10585      archive_cmds_need_lc='no'
10586      hardcode_libdir_separator=:
10587      ;;
10588
10589    solaris*)
10590      no_undefined_flag=' -z defs'
10591      if test yes = "$GCC"; then
10592	wlarc='$wl'
10593	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10594	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10595          $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'
10596      else
10597	case `$CC -V 2>&1` in
10598	*"Compilers 5.0"*)
10599	  wlarc=''
10600	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10602            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10603	  ;;
10604	*)
10605	  wlarc='$wl'
10606	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10607	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10608            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10609	  ;;
10610	esac
10611      fi
10612      hardcode_libdir_flag_spec='-R$libdir'
10613      hardcode_shlibpath_var=no
10614      case $host_os in
10615      solaris2.[0-5] | solaris2.[0-5].*) ;;
10616      *)
10617	# The compiler driver will combine and reorder linker options,
10618	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10619	# but is careful enough not to reorder.
10620	# Supported since Solaris 2.6 (maybe 2.5.1?)
10621	if test yes = "$GCC"; then
10622	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10623	else
10624	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10625	fi
10626	;;
10627      esac
10628      link_all_deplibs=yes
10629      ;;
10630
10631    sunos4*)
10632      if test sequent = "$host_vendor"; then
10633	# Use $CC to link under sequent, because it throws in some extra .o
10634	# files that make .init and .fini sections work.
10635	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10636      else
10637	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10638      fi
10639      hardcode_libdir_flag_spec='-L$libdir'
10640      hardcode_direct=yes
10641      hardcode_minus_L=yes
10642      hardcode_shlibpath_var=no
10643      ;;
10644
10645    sysv4)
10646      case $host_vendor in
10647	sni)
10648	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649	  hardcode_direct=yes # is this really true???
10650	;;
10651	siemens)
10652	  ## LD is ld it makes a PLAMLIB
10653	  ## CC just makes a GrossModule.
10654	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10655	  reload_cmds='$CC -r -o $output$reload_objs'
10656	  hardcode_direct=no
10657        ;;
10658	motorola)
10659	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10661	;;
10662      esac
10663      runpath_var='LD_RUN_PATH'
10664      hardcode_shlibpath_var=no
10665      ;;
10666
10667    sysv4.3*)
10668      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10669      hardcode_shlibpath_var=no
10670      export_dynamic_flag_spec='-Bexport'
10671      ;;
10672
10673    sysv4*MP*)
10674      if test -d /usr/nec; then
10675	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10676	hardcode_shlibpath_var=no
10677	runpath_var=LD_RUN_PATH
10678	hardcode_runpath_var=yes
10679	ld_shlibs=yes
10680      fi
10681      ;;
10682
10683    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10684      no_undefined_flag='$wl-z,text'
10685      archive_cmds_need_lc=no
10686      hardcode_shlibpath_var=no
10687      runpath_var='LD_RUN_PATH'
10688
10689      if test yes = "$GCC"; then
10690	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692      else
10693	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695      fi
10696      ;;
10697
10698    sysv5* | sco3.2v5* | sco5v6*)
10699      # Note: We CANNOT use -z defs as we might desire, because we do not
10700      # link with -lc, and that would cause any symbols used from libc to
10701      # always be unresolved, which means just about no library would
10702      # ever link correctly.  If we're not using GNU ld we use -z text
10703      # though, which does catch some bad symbols but isn't as heavy-handed
10704      # as -z defs.
10705      no_undefined_flag='$wl-z,text'
10706      allow_undefined_flag='$wl-z,nodefs'
10707      archive_cmds_need_lc=no
10708      hardcode_shlibpath_var=no
10709      hardcode_libdir_flag_spec='$wl-R,$libdir'
10710      hardcode_libdir_separator=':'
10711      link_all_deplibs=yes
10712      export_dynamic_flag_spec='$wl-Bexport'
10713      runpath_var='LD_RUN_PATH'
10714
10715      if test yes = "$GCC"; then
10716	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10718      else
10719	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10720	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10721      fi
10722      ;;
10723
10724    uts4*)
10725      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10726      hardcode_libdir_flag_spec='-L$libdir'
10727      hardcode_shlibpath_var=no
10728      ;;
10729
10730    *)
10731      ld_shlibs=no
10732      ;;
10733    esac
10734
10735    if test sni = "$host_vendor"; then
10736      case $host in
10737      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10738	export_dynamic_flag_spec='$wl-Blargedynsym'
10739	;;
10740      esac
10741    fi
10742  fi
10743
10744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10745printf "%s\n" "$ld_shlibs" >&6; }
10746test no = "$ld_shlibs" && can_build_shared=no
10747
10748with_gnu_ld=$with_gnu_ld
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764#
10765# Do we need to explicitly link libc?
10766#
10767case "x$archive_cmds_need_lc" in
10768x|xyes)
10769  # Assume -lc should be added
10770  archive_cmds_need_lc=yes
10771
10772  if test yes,yes = "$GCC,$enable_shared"; then
10773    case $archive_cmds in
10774    *'~'*)
10775      # FIXME: we may have to deal with multi-command sequences.
10776      ;;
10777    '$CC '*)
10778      # Test whether the compiler implicitly links with -lc since on some
10779      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10780      # to ld, don't add -lc before -lgcc.
10781      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10782printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10783if test ${lt_cv_archive_cmds_need_lc+y}
10784then :
10785  printf %s "(cached) " >&6
10786else $as_nop
10787  $RM conftest*
10788	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10789
10790	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10791  (eval $ac_compile) 2>&5
10792  ac_status=$?
10793  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10794  test $ac_status = 0; } 2>conftest.err; then
10795	  soname=conftest
10796	  lib=conftest
10797	  libobjs=conftest.$ac_objext
10798	  deplibs=
10799	  wl=$lt_prog_compiler_wl
10800	  pic_flag=$lt_prog_compiler_pic
10801	  compiler_flags=-v
10802	  linker_flags=-v
10803	  verstring=
10804	  output_objdir=.
10805	  libname=conftest
10806	  lt_save_allow_undefined_flag=$allow_undefined_flag
10807	  allow_undefined_flag=
10808	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10809  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10810  ac_status=$?
10811  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10812  test $ac_status = 0; }
10813	  then
10814	    lt_cv_archive_cmds_need_lc=no
10815	  else
10816	    lt_cv_archive_cmds_need_lc=yes
10817	  fi
10818	  allow_undefined_flag=$lt_save_allow_undefined_flag
10819	else
10820	  cat conftest.err 1>&5
10821	fi
10822	$RM conftest*
10823
10824fi
10825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10826printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10827      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10828      ;;
10829    esac
10830  fi
10831  ;;
10832esac
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
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10986printf %s "checking dynamic linker characteristics... " >&6; }
10987
10988if test yes = "$GCC"; then
10989  case $host_os in
10990    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10991    *) lt_awk_arg='/^libraries:/' ;;
10992  esac
10993  case $host_os in
10994    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10995    *) lt_sed_strip_eq='s|=/|/|g' ;;
10996  esac
10997  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10998  case $lt_search_path_spec in
10999  *\;*)
11000    # if the path contains ";" then we assume it to be the separator
11001    # otherwise default to the standard path separator (i.e. ":") - it is
11002    # assumed that no part of a normal pathname contains ";" but that should
11003    # okay in the real world where ";" in dirpaths is itself problematic.
11004    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11005    ;;
11006  *)
11007    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11008    ;;
11009  esac
11010  # Ok, now we have the path, separated by spaces, we can step through it
11011  # and add multilib dir if necessary...
11012  lt_tmp_lt_search_path_spec=
11013  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11014  # ...but if some path component already ends with the multilib dir we assume
11015  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11016  case "$lt_multi_os_dir; $lt_search_path_spec " in
11017  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11018    lt_multi_os_dir=
11019    ;;
11020  esac
11021  for lt_sys_path in $lt_search_path_spec; do
11022    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11023      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11024    elif test -n "$lt_multi_os_dir"; then
11025      test -d "$lt_sys_path" && \
11026	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11027    fi
11028  done
11029  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11030BEGIN {RS = " "; FS = "/|\n";} {
11031  lt_foo = "";
11032  lt_count = 0;
11033  for (lt_i = NF; lt_i > 0; lt_i--) {
11034    if ($lt_i != "" && $lt_i != ".") {
11035      if ($lt_i == "..") {
11036        lt_count++;
11037      } else {
11038        if (lt_count == 0) {
11039          lt_foo = "/" $lt_i lt_foo;
11040        } else {
11041          lt_count--;
11042        }
11043      }
11044    }
11045  }
11046  if (lt_foo != "") { lt_freq[lt_foo]++; }
11047  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11048}'`
11049  # AWK program above erroneously prepends '/' to C:/dos/paths
11050  # for these hosts.
11051  case $host_os in
11052    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11053      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11054  esac
11055  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11056else
11057  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11058fi
11059library_names_spec=
11060libname_spec='lib$name'
11061soname_spec=
11062shrext_cmds=.so
11063postinstall_cmds=
11064postuninstall_cmds=
11065finish_cmds=
11066finish_eval=
11067shlibpath_var=
11068shlibpath_overrides_runpath=unknown
11069version_type=none
11070dynamic_linker="$host_os ld.so"
11071sys_lib_dlsearch_path_spec="/lib /usr/lib"
11072need_lib_prefix=unknown
11073hardcode_into_libs=no
11074
11075# when you set need_version to no, make sure it does not cause -set_version
11076# flags to be left without arguments
11077need_version=unknown
11078
11079
11080
11081case $host_os in
11082aix3*)
11083  version_type=linux # correct to gnu/linux during the next big refactor
11084  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11085  shlibpath_var=LIBPATH
11086
11087  # AIX 3 has no versioning support, so we append a major version to the name.
11088  soname_spec='$libname$release$shared_ext$major'
11089  ;;
11090
11091aix[4-9]*)
11092  version_type=linux # correct to gnu/linux during the next big refactor
11093  need_lib_prefix=no
11094  need_version=no
11095  hardcode_into_libs=yes
11096  if test ia64 = "$host_cpu"; then
11097    # AIX 5 supports IA64
11098    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11099    shlibpath_var=LD_LIBRARY_PATH
11100  else
11101    # With GCC up to 2.95.x, collect2 would create an import file
11102    # for dependence libraries.  The import file would start with
11103    # the line '#! .'.  This would cause the generated library to
11104    # depend on '.', always an invalid library.  This was fixed in
11105    # development snapshots of GCC prior to 3.0.
11106    case $host_os in
11107      aix4 | aix4.[01] | aix4.[01].*)
11108      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11109	   echo ' yes '
11110	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11111	:
11112      else
11113	can_build_shared=no
11114      fi
11115      ;;
11116    esac
11117    # Using Import Files as archive members, it is possible to support
11118    # filename-based versioning of shared library archives on AIX. While
11119    # this would work for both with and without runtime linking, it will
11120    # prevent static linking of such archives. So we do filename-based
11121    # shared library versioning with .so extension only, which is used
11122    # when both runtime linking and shared linking is enabled.
11123    # Unfortunately, runtime linking may impact performance, so we do
11124    # not want this to be the default eventually. Also, we use the
11125    # versioned .so libs for executables only if there is the -brtl
11126    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11127    # To allow for filename-based versioning support, we need to create
11128    # libNAME.so.V as an archive file, containing:
11129    # *) an Import File, referring to the versioned filename of the
11130    #    archive as well as the shared archive member, telling the
11131    #    bitwidth (32 or 64) of that shared object, and providing the
11132    #    list of exported symbols of that shared object, eventually
11133    #    decorated with the 'weak' keyword
11134    # *) the shared object with the F_LOADONLY flag set, to really avoid
11135    #    it being seen by the linker.
11136    # At run time we better use the real file rather than another symlink,
11137    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11138
11139    case $with_aix_soname,$aix_use_runtimelinking in
11140    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11141    # soname into executable. Probably we can add versioning support to
11142    # collect2, so additional links can be useful in future.
11143    aix,yes) # traditional libtool
11144      dynamic_linker='AIX unversionable lib.so'
11145      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11146      # instead of lib<name>.a to let people know that these are not
11147      # typical AIX shared libraries.
11148      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11149      ;;
11150    aix,no) # traditional AIX only
11151      dynamic_linker='AIX lib.a(lib.so.V)'
11152      # We preserve .a as extension for shared libraries through AIX4.2
11153      # and later when we are not doing run time linking.
11154      library_names_spec='$libname$release.a $libname.a'
11155      soname_spec='$libname$release$shared_ext$major'
11156      ;;
11157    svr4,*) # full svr4 only
11158      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11159      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11160      # We do not specify a path in Import Files, so LIBPATH fires.
11161      shlibpath_overrides_runpath=yes
11162      ;;
11163    *,yes) # both, prefer svr4
11164      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11165      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11166      # unpreferred sharedlib libNAME.a needs extra handling
11167      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"'
11168      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"'
11169      # We do not specify a path in Import Files, so LIBPATH fires.
11170      shlibpath_overrides_runpath=yes
11171      ;;
11172    *,no) # both, prefer aix
11173      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11174      library_names_spec='$libname$release.a $libname.a'
11175      soname_spec='$libname$release$shared_ext$major'
11176      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11177      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)'
11178      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"'
11179      ;;
11180    esac
11181    shlibpath_var=LIBPATH
11182  fi
11183  ;;
11184
11185amigaos*)
11186  case $host_cpu in
11187  powerpc)
11188    # Since July 2007 AmigaOS4 officially supports .so libraries.
11189    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11190    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191    ;;
11192  m68k)
11193    library_names_spec='$libname.ixlibrary $libname.a'
11194    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11195    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'
11196    ;;
11197  esac
11198  ;;
11199
11200beos*)
11201  library_names_spec='$libname$shared_ext'
11202  dynamic_linker="$host_os ld.so"
11203  shlibpath_var=LIBRARY_PATH
11204  ;;
11205
11206bsdi[45]*)
11207  version_type=linux # correct to gnu/linux during the next big refactor
11208  need_version=no
11209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11210  soname_spec='$libname$release$shared_ext$major'
11211  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11212  shlibpath_var=LD_LIBRARY_PATH
11213  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11214  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11215  # the default ld.so.conf also contains /usr/contrib/lib and
11216  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11217  # libtool to hard-code these into programs
11218  ;;
11219
11220cygwin* | mingw* | pw32* | cegcc*)
11221  version_type=windows
11222  shrext_cmds=.dll
11223  need_version=no
11224  need_lib_prefix=no
11225
11226  case $GCC,$cc_basename in
11227  yes,*)
11228    # gcc
11229    library_names_spec='$libname.dll.a'
11230    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11231    postinstall_cmds='base_file=`basename \$file`~
11232      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11233      dldir=$destdir/`dirname \$dlpath`~
11234      test -d \$dldir || mkdir -p \$dldir~
11235      $install_prog $dir/$dlname \$dldir/$dlname~
11236      chmod a+x \$dldir/$dlname~
11237      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11238        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11239      fi'
11240    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11241      dlpath=$dir/\$dldll~
11242       $RM \$dlpath'
11243    shlibpath_overrides_runpath=yes
11244
11245    case $host_os in
11246    cygwin*)
11247      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11248      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11249
11250      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11251      ;;
11252    mingw* | cegcc*)
11253      # MinGW DLLs use traditional 'lib' prefix
11254      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11255      ;;
11256    pw32*)
11257      # pw32 DLLs use 'pw' prefix rather than 'lib'
11258      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11259      ;;
11260    esac
11261    dynamic_linker='Win32 ld.exe'
11262    ;;
11263
11264  *,cl*)
11265    # Native MSVC
11266    libname_spec='$name'
11267    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11268    library_names_spec='$libname.dll.lib'
11269
11270    case $build_os in
11271    mingw*)
11272      sys_lib_search_path_spec=
11273      lt_save_ifs=$IFS
11274      IFS=';'
11275      for lt_path in $LIB
11276      do
11277        IFS=$lt_save_ifs
11278        # Let DOS variable expansion print the short 8.3 style file name.
11279        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11280        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11281      done
11282      IFS=$lt_save_ifs
11283      # Convert to MSYS style.
11284      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11285      ;;
11286    cygwin*)
11287      # Convert to unix form, then to dos form, then back to unix form
11288      # but this time dos style (no spaces!) so that the unix form looks
11289      # like /cygdrive/c/PROGRA~1:/cygdr...
11290      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11291      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11292      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11293      ;;
11294    *)
11295      sys_lib_search_path_spec=$LIB
11296      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11297        # It is most probably a Windows format PATH.
11298        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11299      else
11300        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11301      fi
11302      # FIXME: find the short name or the path components, as spaces are
11303      # common. (e.g. "Program Files" -> "PROGRA~1")
11304      ;;
11305    esac
11306
11307    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11308    postinstall_cmds='base_file=`basename \$file`~
11309      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11310      dldir=$destdir/`dirname \$dlpath`~
11311      test -d \$dldir || mkdir -p \$dldir~
11312      $install_prog $dir/$dlname \$dldir/$dlname'
11313    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11314      dlpath=$dir/\$dldll~
11315       $RM \$dlpath'
11316    shlibpath_overrides_runpath=yes
11317    dynamic_linker='Win32 link.exe'
11318    ;;
11319
11320  *)
11321    # Assume MSVC wrapper
11322    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11323    dynamic_linker='Win32 ld.exe'
11324    ;;
11325  esac
11326  # FIXME: first we should search . and the directory the executable is in
11327  shlibpath_var=PATH
11328  ;;
11329
11330darwin* | rhapsody*)
11331  dynamic_linker="$host_os dyld"
11332  version_type=darwin
11333  need_lib_prefix=no
11334  need_version=no
11335  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11336  soname_spec='$libname$release$major$shared_ext'
11337  shlibpath_overrides_runpath=yes
11338  shlibpath_var=DYLD_LIBRARY_PATH
11339  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11340
11341  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11342  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11343  ;;
11344
11345dgux*)
11346  version_type=linux # correct to gnu/linux during the next big refactor
11347  need_lib_prefix=no
11348  need_version=no
11349  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11350  soname_spec='$libname$release$shared_ext$major'
11351  shlibpath_var=LD_LIBRARY_PATH
11352  ;;
11353
11354freebsd* | dragonfly*)
11355  # DragonFly does not have aout.  When/if they implement a new
11356  # versioning mechanism, adjust this.
11357  if test -x /usr/bin/objformat; then
11358    objformat=`/usr/bin/objformat`
11359  else
11360    case $host_os in
11361    freebsd[23].*) objformat=aout ;;
11362    *) objformat=elf ;;
11363    esac
11364  fi
11365  version_type=freebsd-$objformat
11366  case $version_type in
11367    freebsd-elf*)
11368      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11369      soname_spec='$libname$release$shared_ext$major'
11370      need_version=no
11371      need_lib_prefix=no
11372      ;;
11373    freebsd-*)
11374      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11375      need_version=yes
11376      ;;
11377  esac
11378  shlibpath_var=LD_LIBRARY_PATH
11379  case $host_os in
11380  freebsd2.*)
11381    shlibpath_overrides_runpath=yes
11382    ;;
11383  freebsd3.[01]* | freebsdelf3.[01]*)
11384    shlibpath_overrides_runpath=yes
11385    hardcode_into_libs=yes
11386    ;;
11387  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11388  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11389    shlibpath_overrides_runpath=no
11390    hardcode_into_libs=yes
11391    ;;
11392  *) # from 4.6 on, and DragonFly
11393    shlibpath_overrides_runpath=yes
11394    hardcode_into_libs=yes
11395    ;;
11396  esac
11397  ;;
11398
11399haiku*)
11400  version_type=linux # correct to gnu/linux during the next big refactor
11401  need_lib_prefix=no
11402  need_version=no
11403  dynamic_linker="$host_os runtime_loader"
11404  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11405  soname_spec='$libname$release$shared_ext$major'
11406  shlibpath_var=LIBRARY_PATH
11407  shlibpath_overrides_runpath=no
11408  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11409  hardcode_into_libs=yes
11410  ;;
11411
11412hpux9* | hpux10* | hpux11*)
11413  # Give a soname corresponding to the major version so that dld.sl refuses to
11414  # link against other versions.
11415  version_type=sunos
11416  need_lib_prefix=no
11417  need_version=no
11418  case $host_cpu in
11419  ia64*)
11420    shrext_cmds='.so'
11421    hardcode_into_libs=yes
11422    dynamic_linker="$host_os dld.so"
11423    shlibpath_var=LD_LIBRARY_PATH
11424    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11425    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426    soname_spec='$libname$release$shared_ext$major'
11427    if test 32 = "$HPUX_IA64_MODE"; then
11428      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11429      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11430    else
11431      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11432      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11433    fi
11434    ;;
11435  hppa*64*)
11436    shrext_cmds='.sl'
11437    hardcode_into_libs=yes
11438    dynamic_linker="$host_os dld.sl"
11439    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11440    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11441    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442    soname_spec='$libname$release$shared_ext$major'
11443    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11444    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11445    ;;
11446  *)
11447    shrext_cmds='.sl'
11448    dynamic_linker="$host_os dld.sl"
11449    shlibpath_var=SHLIB_PATH
11450    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11451    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11452    soname_spec='$libname$release$shared_ext$major'
11453    ;;
11454  esac
11455  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11456  postinstall_cmds='chmod 555 $lib'
11457  # or fails outright, so override atomically:
11458  install_override_mode=555
11459  ;;
11460
11461interix[3-9]*)
11462  version_type=linux # correct to gnu/linux during the next big refactor
11463  need_lib_prefix=no
11464  need_version=no
11465  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11466  soname_spec='$libname$release$shared_ext$major'
11467  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11468  shlibpath_var=LD_LIBRARY_PATH
11469  shlibpath_overrides_runpath=no
11470  hardcode_into_libs=yes
11471  ;;
11472
11473irix5* | irix6* | nonstopux*)
11474  case $host_os in
11475    nonstopux*) version_type=nonstopux ;;
11476    *)
11477	if test yes = "$lt_cv_prog_gnu_ld"; then
11478		version_type=linux # correct to gnu/linux during the next big refactor
11479	else
11480		version_type=irix
11481	fi ;;
11482  esac
11483  need_lib_prefix=no
11484  need_version=no
11485  soname_spec='$libname$release$shared_ext$major'
11486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11487  case $host_os in
11488  irix5* | nonstopux*)
11489    libsuff= shlibsuff=
11490    ;;
11491  *)
11492    case $LD in # libtool.m4 will add one of these switches to LD
11493    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11494      libsuff= shlibsuff= libmagic=32-bit;;
11495    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11496      libsuff=32 shlibsuff=N32 libmagic=N32;;
11497    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11498      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11499    *) libsuff= shlibsuff= libmagic=never-match;;
11500    esac
11501    ;;
11502  esac
11503  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11504  shlibpath_overrides_runpath=no
11505  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11506  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11507  hardcode_into_libs=yes
11508  ;;
11509
11510# No shared lib support for Linux oldld, aout, or coff.
11511linux*oldld* | linux*aout* | linux*coff*)
11512  dynamic_linker=no
11513  ;;
11514
11515linux*android*)
11516  version_type=none # Android doesn't support versioned libraries.
11517  need_lib_prefix=no
11518  need_version=no
11519  library_names_spec='$libname$release$shared_ext'
11520  soname_spec='$libname$release$shared_ext'
11521  finish_cmds=
11522  shlibpath_var=LD_LIBRARY_PATH
11523  shlibpath_overrides_runpath=yes
11524
11525  # This implies no fast_install, which is unacceptable.
11526  # Some rework will be needed to allow for fast_install
11527  # before this can be enabled.
11528  hardcode_into_libs=yes
11529
11530  dynamic_linker='Android linker'
11531  # Don't embed -rpath directories since the linker doesn't support them.
11532  hardcode_libdir_flag_spec='-L$libdir'
11533  ;;
11534
11535# This must be glibc/ELF.
11536linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11537  version_type=linux # correct to gnu/linux during the next big refactor
11538  need_lib_prefix=no
11539  need_version=no
11540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541  soname_spec='$libname$release$shared_ext$major'
11542  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11543  shlibpath_var=LD_LIBRARY_PATH
11544  shlibpath_overrides_runpath=no
11545
11546  # Some binutils ld are patched to set DT_RUNPATH
11547  if test ${lt_cv_shlibpath_overrides_runpath+y}
11548then :
11549  printf %s "(cached) " >&6
11550else $as_nop
11551  lt_cv_shlibpath_overrides_runpath=no
11552    save_LDFLAGS=$LDFLAGS
11553    save_libdir=$libdir
11554    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11555	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11556    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h.  */
11558
11559int
11560main (void)
11561{
11562
11563  ;
11564  return 0;
11565}
11566_ACEOF
11567if ac_fn_c_try_link "$LINENO"
11568then :
11569  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11570then :
11571  lt_cv_shlibpath_overrides_runpath=yes
11572fi
11573fi
11574rm -f core conftest.err conftest.$ac_objext conftest.beam \
11575    conftest$ac_exeext conftest.$ac_ext
11576    LDFLAGS=$save_LDFLAGS
11577    libdir=$save_libdir
11578
11579fi
11580
11581  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11582
11583  # This implies no fast_install, which is unacceptable.
11584  # Some rework will be needed to allow for fast_install
11585  # before this can be enabled.
11586  hardcode_into_libs=yes
11587
11588  # Ideally, we could use ldconfig to report *all* directores which are
11589  # searched for libraries, however this is still not possible.  Aside from not
11590  # being certain /sbin/ldconfig is available, command
11591  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11592  # even though it is searched at run-time.  Try to do the best guess by
11593  # appending ld.so.conf contents (and includes) to the search path.
11594  if test -f /etc/ld.so.conf; then
11595    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' ' '`
11596    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11597  fi
11598
11599  # We used to test for /lib/ld.so.1 and disable shared libraries on
11600  # powerpc, because MkLinux only supported shared libraries with the
11601  # GNU dynamic linker.  Since this was broken with cross compilers,
11602  # most powerpc-linux boxes support dynamic linking these days and
11603  # people can always --disable-shared, the test was removed, and we
11604  # assume the GNU/Linux dynamic linker is in use.
11605  dynamic_linker='GNU/Linux ld.so'
11606  ;;
11607
11608netbsd*)
11609  version_type=sunos
11610  need_lib_prefix=no
11611  need_version=no
11612  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11613    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11614    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615    dynamic_linker='NetBSD (a.out) ld.so'
11616  else
11617    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618    soname_spec='$libname$release$shared_ext$major'
11619    dynamic_linker='NetBSD ld.elf_so'
11620  fi
11621  shlibpath_var=LD_LIBRARY_PATH
11622  shlibpath_overrides_runpath=yes
11623  hardcode_into_libs=yes
11624  ;;
11625
11626newsos6)
11627  version_type=linux # correct to gnu/linux during the next big refactor
11628  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629  shlibpath_var=LD_LIBRARY_PATH
11630  shlibpath_overrides_runpath=yes
11631  ;;
11632
11633*nto* | *qnx*)
11634  version_type=qnx
11635  need_lib_prefix=no
11636  need_version=no
11637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638  soname_spec='$libname$release$shared_ext$major'
11639  shlibpath_var=LD_LIBRARY_PATH
11640  shlibpath_overrides_runpath=no
11641  hardcode_into_libs=yes
11642  dynamic_linker='ldqnx.so'
11643  ;;
11644
11645openbsd* | bitrig*)
11646  version_type=sunos
11647  sys_lib_dlsearch_path_spec=/usr/lib
11648  need_lib_prefix=no
11649  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11650    need_version=no
11651  else
11652    need_version=yes
11653  fi
11654  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11655  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656  shlibpath_var=LD_LIBRARY_PATH
11657  shlibpath_overrides_runpath=yes
11658  ;;
11659
11660os2*)
11661  libname_spec='$name'
11662  version_type=windows
11663  shrext_cmds=.dll
11664  need_version=no
11665  need_lib_prefix=no
11666  # OS/2 can only load a DLL with a base name of 8 characters or less.
11667  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11668    v=$($ECHO $release$versuffix | tr -d .-);
11669    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11670    $ECHO $n$v`$shared_ext'
11671  library_names_spec='${libname}_dll.$libext'
11672  dynamic_linker='OS/2 ld.exe'
11673  shlibpath_var=BEGINLIBPATH
11674  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11675  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11676  postinstall_cmds='base_file=`basename \$file`~
11677    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11678    dldir=$destdir/`dirname \$dlpath`~
11679    test -d \$dldir || mkdir -p \$dldir~
11680    $install_prog $dir/$dlname \$dldir/$dlname~
11681    chmod a+x \$dldir/$dlname~
11682    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11683      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11684    fi'
11685  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11686    dlpath=$dir/\$dldll~
11687    $RM \$dlpath'
11688  ;;
11689
11690osf3* | osf4* | osf5*)
11691  version_type=osf
11692  need_lib_prefix=no
11693  need_version=no
11694  soname_spec='$libname$release$shared_ext$major'
11695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696  shlibpath_var=LD_LIBRARY_PATH
11697  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11698  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11699  ;;
11700
11701rdos*)
11702  dynamic_linker=no
11703  ;;
11704
11705solaris*)
11706  version_type=linux # correct to gnu/linux during the next big refactor
11707  need_lib_prefix=no
11708  need_version=no
11709  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710  soname_spec='$libname$release$shared_ext$major'
11711  shlibpath_var=LD_LIBRARY_PATH
11712  shlibpath_overrides_runpath=yes
11713  hardcode_into_libs=yes
11714  # ldd complains unless libraries are executable
11715  postinstall_cmds='chmod +x $lib'
11716  ;;
11717
11718sunos4*)
11719  version_type=sunos
11720  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11721  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11722  shlibpath_var=LD_LIBRARY_PATH
11723  shlibpath_overrides_runpath=yes
11724  if test yes = "$with_gnu_ld"; then
11725    need_lib_prefix=no
11726  fi
11727  need_version=yes
11728  ;;
11729
11730sysv4 | sysv4.3*)
11731  version_type=linux # correct to gnu/linux during the next big refactor
11732  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11733  soname_spec='$libname$release$shared_ext$major'
11734  shlibpath_var=LD_LIBRARY_PATH
11735  case $host_vendor in
11736    sni)
11737      shlibpath_overrides_runpath=no
11738      need_lib_prefix=no
11739      runpath_var=LD_RUN_PATH
11740      ;;
11741    siemens)
11742      need_lib_prefix=no
11743      ;;
11744    motorola)
11745      need_lib_prefix=no
11746      need_version=no
11747      shlibpath_overrides_runpath=no
11748      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11749      ;;
11750  esac
11751  ;;
11752
11753sysv4*MP*)
11754  if test -d /usr/nec; then
11755    version_type=linux # correct to gnu/linux during the next big refactor
11756    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11757    soname_spec='$libname$shared_ext.$major'
11758    shlibpath_var=LD_LIBRARY_PATH
11759  fi
11760  ;;
11761
11762sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11763  version_type=sco
11764  need_lib_prefix=no
11765  need_version=no
11766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11767  soname_spec='$libname$release$shared_ext$major'
11768  shlibpath_var=LD_LIBRARY_PATH
11769  shlibpath_overrides_runpath=yes
11770  hardcode_into_libs=yes
11771  if test yes = "$with_gnu_ld"; then
11772    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11773  else
11774    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11775    case $host_os in
11776      sco3.2v5*)
11777        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11778	;;
11779    esac
11780  fi
11781  sys_lib_dlsearch_path_spec='/usr/lib'
11782  ;;
11783
11784tpf*)
11785  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11786  version_type=linux # correct to gnu/linux during the next big refactor
11787  need_lib_prefix=no
11788  need_version=no
11789  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11790  shlibpath_var=LD_LIBRARY_PATH
11791  shlibpath_overrides_runpath=no
11792  hardcode_into_libs=yes
11793  ;;
11794
11795uts4*)
11796  version_type=linux # correct to gnu/linux during the next big refactor
11797  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11798  soname_spec='$libname$release$shared_ext$major'
11799  shlibpath_var=LD_LIBRARY_PATH
11800  ;;
11801
11802*)
11803  dynamic_linker=no
11804  ;;
11805esac
11806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11807printf "%s\n" "$dynamic_linker" >&6; }
11808test no = "$dynamic_linker" && can_build_shared=no
11809
11810variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11811if test yes = "$GCC"; then
11812  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11813fi
11814
11815if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11816  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11817fi
11818
11819if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11820  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11821fi
11822
11823# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11824configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11825
11826# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11827func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11828
11829# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11830configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11929printf %s "checking how to hardcode library paths into programs... " >&6; }
11930hardcode_action=
11931if test -n "$hardcode_libdir_flag_spec" ||
11932   test -n "$runpath_var" ||
11933   test yes = "$hardcode_automatic"; then
11934
11935  # We can hardcode non-existent directories.
11936  if test no != "$hardcode_direct" &&
11937     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11938     # have to relink, otherwise we might link with an installed library
11939     # when we should be linking with a yet-to-be-installed one
11940     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11941     test no != "$hardcode_minus_L"; then
11942    # Linking always hardcodes the temporary library directory.
11943    hardcode_action=relink
11944  else
11945    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11946    hardcode_action=immediate
11947  fi
11948else
11949  # We cannot hardcode anything, or else we can only hardcode existing
11950  # directories.
11951  hardcode_action=unsupported
11952fi
11953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11954printf "%s\n" "$hardcode_action" >&6; }
11955
11956if test relink = "$hardcode_action" ||
11957   test yes = "$inherit_rpath"; then
11958  # Fast installation is not supported
11959  enable_fast_install=no
11960elif test yes = "$shlibpath_overrides_runpath" ||
11961     test no = "$enable_shared"; then
11962  # Fast installation is not necessary
11963  enable_fast_install=needless
11964fi
11965
11966
11967
11968
11969
11970
11971  if test yes != "$enable_dlopen"; then
11972  enable_dlopen=unknown
11973  enable_dlopen_self=unknown
11974  enable_dlopen_self_static=unknown
11975else
11976  lt_cv_dlopen=no
11977  lt_cv_dlopen_libs=
11978
11979  case $host_os in
11980  beos*)
11981    lt_cv_dlopen=load_add_on
11982    lt_cv_dlopen_libs=
11983    lt_cv_dlopen_self=yes
11984    ;;
11985
11986  mingw* | pw32* | cegcc*)
11987    lt_cv_dlopen=LoadLibrary
11988    lt_cv_dlopen_libs=
11989    ;;
11990
11991  cygwin*)
11992    lt_cv_dlopen=dlopen
11993    lt_cv_dlopen_libs=
11994    ;;
11995
11996  darwin*)
11997    # if libdl is installed we need to link against it
11998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11999printf %s "checking for dlopen in -ldl... " >&6; }
12000if test ${ac_cv_lib_dl_dlopen+y}
12001then :
12002  printf %s "(cached) " >&6
12003else $as_nop
12004  ac_check_lib_save_LIBS=$LIBS
12005LIBS="-ldl  $LIBS"
12006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007/* end confdefs.h.  */
12008
12009/* Override any GCC internal prototype to avoid an error.
12010   Use char because int might match the return type of a GCC
12011   builtin and then its argument prototype would still apply.  */
12012char dlopen ();
12013int
12014main (void)
12015{
12016return dlopen ();
12017  ;
12018  return 0;
12019}
12020_ACEOF
12021if ac_fn_c_try_link "$LINENO"
12022then :
12023  ac_cv_lib_dl_dlopen=yes
12024else $as_nop
12025  ac_cv_lib_dl_dlopen=no
12026fi
12027rm -f core conftest.err conftest.$ac_objext conftest.beam \
12028    conftest$ac_exeext conftest.$ac_ext
12029LIBS=$ac_check_lib_save_LIBS
12030fi
12031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12032printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12033if test "x$ac_cv_lib_dl_dlopen" = xyes
12034then :
12035  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12036else $as_nop
12037
12038    lt_cv_dlopen=dyld
12039    lt_cv_dlopen_libs=
12040    lt_cv_dlopen_self=yes
12041
12042fi
12043
12044    ;;
12045
12046  tpf*)
12047    # Don't try to run any link tests for TPF.  We know it's impossible
12048    # because TPF is a cross-compiler, and we know how we open DSOs.
12049    lt_cv_dlopen=dlopen
12050    lt_cv_dlopen_libs=
12051    lt_cv_dlopen_self=no
12052    ;;
12053
12054  *)
12055    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12056if test "x$ac_cv_func_shl_load" = xyes
12057then :
12058  lt_cv_dlopen=shl_load
12059else $as_nop
12060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12061printf %s "checking for shl_load in -ldld... " >&6; }
12062if test ${ac_cv_lib_dld_shl_load+y}
12063then :
12064  printf %s "(cached) " >&6
12065else $as_nop
12066  ac_check_lib_save_LIBS=$LIBS
12067LIBS="-ldld  $LIBS"
12068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h.  */
12070
12071/* Override any GCC internal prototype to avoid an error.
12072   Use char because int might match the return type of a GCC
12073   builtin and then its argument prototype would still apply.  */
12074char shl_load ();
12075int
12076main (void)
12077{
12078return shl_load ();
12079  ;
12080  return 0;
12081}
12082_ACEOF
12083if ac_fn_c_try_link "$LINENO"
12084then :
12085  ac_cv_lib_dld_shl_load=yes
12086else $as_nop
12087  ac_cv_lib_dld_shl_load=no
12088fi
12089rm -f core conftest.err conftest.$ac_objext conftest.beam \
12090    conftest$ac_exeext conftest.$ac_ext
12091LIBS=$ac_check_lib_save_LIBS
12092fi
12093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12094printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12095if test "x$ac_cv_lib_dld_shl_load" = xyes
12096then :
12097  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12098else $as_nop
12099  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12100if test "x$ac_cv_func_dlopen" = xyes
12101then :
12102  lt_cv_dlopen=dlopen
12103else $as_nop
12104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12105printf %s "checking for dlopen in -ldl... " >&6; }
12106if test ${ac_cv_lib_dl_dlopen+y}
12107then :
12108  printf %s "(cached) " >&6
12109else $as_nop
12110  ac_check_lib_save_LIBS=$LIBS
12111LIBS="-ldl  $LIBS"
12112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113/* end confdefs.h.  */
12114
12115/* Override any GCC internal prototype to avoid an error.
12116   Use char because int might match the return type of a GCC
12117   builtin and then its argument prototype would still apply.  */
12118char dlopen ();
12119int
12120main (void)
12121{
12122return dlopen ();
12123  ;
12124  return 0;
12125}
12126_ACEOF
12127if ac_fn_c_try_link "$LINENO"
12128then :
12129  ac_cv_lib_dl_dlopen=yes
12130else $as_nop
12131  ac_cv_lib_dl_dlopen=no
12132fi
12133rm -f core conftest.err conftest.$ac_objext conftest.beam \
12134    conftest$ac_exeext conftest.$ac_ext
12135LIBS=$ac_check_lib_save_LIBS
12136fi
12137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12138printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12139if test "x$ac_cv_lib_dl_dlopen" = xyes
12140then :
12141  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12142else $as_nop
12143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12144printf %s "checking for dlopen in -lsvld... " >&6; }
12145if test ${ac_cv_lib_svld_dlopen+y}
12146then :
12147  printf %s "(cached) " >&6
12148else $as_nop
12149  ac_check_lib_save_LIBS=$LIBS
12150LIBS="-lsvld  $LIBS"
12151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152/* end confdefs.h.  */
12153
12154/* Override any GCC internal prototype to avoid an error.
12155   Use char because int might match the return type of a GCC
12156   builtin and then its argument prototype would still apply.  */
12157char dlopen ();
12158int
12159main (void)
12160{
12161return dlopen ();
12162  ;
12163  return 0;
12164}
12165_ACEOF
12166if ac_fn_c_try_link "$LINENO"
12167then :
12168  ac_cv_lib_svld_dlopen=yes
12169else $as_nop
12170  ac_cv_lib_svld_dlopen=no
12171fi
12172rm -f core conftest.err conftest.$ac_objext conftest.beam \
12173    conftest$ac_exeext conftest.$ac_ext
12174LIBS=$ac_check_lib_save_LIBS
12175fi
12176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12177printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12178if test "x$ac_cv_lib_svld_dlopen" = xyes
12179then :
12180  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12181else $as_nop
12182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12183printf %s "checking for dld_link in -ldld... " >&6; }
12184if test ${ac_cv_lib_dld_dld_link+y}
12185then :
12186  printf %s "(cached) " >&6
12187else $as_nop
12188  ac_check_lib_save_LIBS=$LIBS
12189LIBS="-ldld  $LIBS"
12190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191/* end confdefs.h.  */
12192
12193/* Override any GCC internal prototype to avoid an error.
12194   Use char because int might match the return type of a GCC
12195   builtin and then its argument prototype would still apply.  */
12196char dld_link ();
12197int
12198main (void)
12199{
12200return dld_link ();
12201  ;
12202  return 0;
12203}
12204_ACEOF
12205if ac_fn_c_try_link "$LINENO"
12206then :
12207  ac_cv_lib_dld_dld_link=yes
12208else $as_nop
12209  ac_cv_lib_dld_dld_link=no
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.beam \
12212    conftest$ac_exeext conftest.$ac_ext
12213LIBS=$ac_check_lib_save_LIBS
12214fi
12215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12216printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12217if test "x$ac_cv_lib_dld_dld_link" = xyes
12218then :
12219  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12220fi
12221
12222
12223fi
12224
12225
12226fi
12227
12228
12229fi
12230
12231
12232fi
12233
12234
12235fi
12236
12237    ;;
12238  esac
12239
12240  if test no = "$lt_cv_dlopen"; then
12241    enable_dlopen=no
12242  else
12243    enable_dlopen=yes
12244  fi
12245
12246  case $lt_cv_dlopen in
12247  dlopen)
12248    save_CPPFLAGS=$CPPFLAGS
12249    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12250
12251    save_LDFLAGS=$LDFLAGS
12252    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12253
12254    save_LIBS=$LIBS
12255    LIBS="$lt_cv_dlopen_libs $LIBS"
12256
12257    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12258printf %s "checking whether a program can dlopen itself... " >&6; }
12259if test ${lt_cv_dlopen_self+y}
12260then :
12261  printf %s "(cached) " >&6
12262else $as_nop
12263  	  if test yes = "$cross_compiling"; then :
12264  lt_cv_dlopen_self=cross
12265else
12266  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12267  lt_status=$lt_dlunknown
12268  cat > conftest.$ac_ext <<_LT_EOF
12269#line $LINENO "configure"
12270#include "confdefs.h"
12271
12272#if HAVE_DLFCN_H
12273#include <dlfcn.h>
12274#endif
12275
12276#include <stdio.h>
12277
12278#ifdef RTLD_GLOBAL
12279#  define LT_DLGLOBAL		RTLD_GLOBAL
12280#else
12281#  ifdef DL_GLOBAL
12282#    define LT_DLGLOBAL		DL_GLOBAL
12283#  else
12284#    define LT_DLGLOBAL		0
12285#  endif
12286#endif
12287
12288/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12289   find out it does not work in some platform. */
12290#ifndef LT_DLLAZY_OR_NOW
12291#  ifdef RTLD_LAZY
12292#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12293#  else
12294#    ifdef DL_LAZY
12295#      define LT_DLLAZY_OR_NOW		DL_LAZY
12296#    else
12297#      ifdef RTLD_NOW
12298#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12299#      else
12300#        ifdef DL_NOW
12301#          define LT_DLLAZY_OR_NOW	DL_NOW
12302#        else
12303#          define LT_DLLAZY_OR_NOW	0
12304#        endif
12305#      endif
12306#    endif
12307#  endif
12308#endif
12309
12310/* When -fvisibility=hidden is used, assume the code has been annotated
12311   correspondingly for the symbols needed.  */
12312#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12313int fnord () __attribute__((visibility("default")));
12314#endif
12315
12316int fnord () { return 42; }
12317int main ()
12318{
12319  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12320  int status = $lt_dlunknown;
12321
12322  if (self)
12323    {
12324      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12325      else
12326        {
12327	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12328          else puts (dlerror ());
12329	}
12330      /* dlclose (self); */
12331    }
12332  else
12333    puts (dlerror ());
12334
12335  return status;
12336}
12337_LT_EOF
12338  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12339  (eval $ac_link) 2>&5
12340  ac_status=$?
12341  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12343    (./conftest; exit; ) >&5 2>/dev/null
12344    lt_status=$?
12345    case x$lt_status in
12346      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12347      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12348      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12349    esac
12350  else :
12351    # compilation failed
12352    lt_cv_dlopen_self=no
12353  fi
12354fi
12355rm -fr conftest*
12356
12357
12358fi
12359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12360printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12361
12362    if test yes = "$lt_cv_dlopen_self"; then
12363      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12364      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12365printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12366if test ${lt_cv_dlopen_self_static+y}
12367then :
12368  printf %s "(cached) " >&6
12369else $as_nop
12370  	  if test yes = "$cross_compiling"; then :
12371  lt_cv_dlopen_self_static=cross
12372else
12373  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12374  lt_status=$lt_dlunknown
12375  cat > conftest.$ac_ext <<_LT_EOF
12376#line $LINENO "configure"
12377#include "confdefs.h"
12378
12379#if HAVE_DLFCN_H
12380#include <dlfcn.h>
12381#endif
12382
12383#include <stdio.h>
12384
12385#ifdef RTLD_GLOBAL
12386#  define LT_DLGLOBAL		RTLD_GLOBAL
12387#else
12388#  ifdef DL_GLOBAL
12389#    define LT_DLGLOBAL		DL_GLOBAL
12390#  else
12391#    define LT_DLGLOBAL		0
12392#  endif
12393#endif
12394
12395/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12396   find out it does not work in some platform. */
12397#ifndef LT_DLLAZY_OR_NOW
12398#  ifdef RTLD_LAZY
12399#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12400#  else
12401#    ifdef DL_LAZY
12402#      define LT_DLLAZY_OR_NOW		DL_LAZY
12403#    else
12404#      ifdef RTLD_NOW
12405#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12406#      else
12407#        ifdef DL_NOW
12408#          define LT_DLLAZY_OR_NOW	DL_NOW
12409#        else
12410#          define LT_DLLAZY_OR_NOW	0
12411#        endif
12412#      endif
12413#    endif
12414#  endif
12415#endif
12416
12417/* When -fvisibility=hidden is used, assume the code has been annotated
12418   correspondingly for the symbols needed.  */
12419#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12420int fnord () __attribute__((visibility("default")));
12421#endif
12422
12423int fnord () { return 42; }
12424int main ()
12425{
12426  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12427  int status = $lt_dlunknown;
12428
12429  if (self)
12430    {
12431      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12432      else
12433        {
12434	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12435          else puts (dlerror ());
12436	}
12437      /* dlclose (self); */
12438    }
12439  else
12440    puts (dlerror ());
12441
12442  return status;
12443}
12444_LT_EOF
12445  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12446  (eval $ac_link) 2>&5
12447  ac_status=$?
12448  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12449  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12450    (./conftest; exit; ) >&5 2>/dev/null
12451    lt_status=$?
12452    case x$lt_status in
12453      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12454      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12455      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12456    esac
12457  else :
12458    # compilation failed
12459    lt_cv_dlopen_self_static=no
12460  fi
12461fi
12462rm -fr conftest*
12463
12464
12465fi
12466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12467printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12468    fi
12469
12470    CPPFLAGS=$save_CPPFLAGS
12471    LDFLAGS=$save_LDFLAGS
12472    LIBS=$save_LIBS
12473    ;;
12474  esac
12475
12476  case $lt_cv_dlopen_self in
12477  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12478  *) enable_dlopen_self=unknown ;;
12479  esac
12480
12481  case $lt_cv_dlopen_self_static in
12482  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12483  *) enable_dlopen_self_static=unknown ;;
12484  esac
12485fi
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503striplib=
12504old_striplib=
12505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12506printf %s "checking whether stripping libraries is possible... " >&6; }
12507if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12508  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12509  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12511printf "%s\n" "yes" >&6; }
12512else
12513# FIXME - insert some real tests, host_os isn't really good enough
12514  case $host_os in
12515  darwin*)
12516    if test -n "$STRIP"; then
12517      striplib="$STRIP -x"
12518      old_striplib="$STRIP -S"
12519      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12520printf "%s\n" "yes" >&6; }
12521    else
12522      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523printf "%s\n" "no" >&6; }
12524    fi
12525    ;;
12526  *)
12527    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528printf "%s\n" "no" >&6; }
12529    ;;
12530  esac
12531fi
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544  # Report what library types will actually be built
12545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12546printf %s "checking if libtool supports shared libraries... " >&6; }
12547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12548printf "%s\n" "$can_build_shared" >&6; }
12549
12550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12551printf %s "checking whether to build shared libraries... " >&6; }
12552  test no = "$can_build_shared" && enable_shared=no
12553
12554  # On AIX, shared libraries and static libraries use the same namespace, and
12555  # are all built from PIC.
12556  case $host_os in
12557  aix3*)
12558    test yes = "$enable_shared" && enable_static=no
12559    if test -n "$RANLIB"; then
12560      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12561      postinstall_cmds='$RANLIB $lib'
12562    fi
12563    ;;
12564
12565  aix[4-9]*)
12566    if test ia64 != "$host_cpu"; then
12567      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12568      yes,aix,yes) ;;			# shared object as lib.so file only
12569      yes,svr4,*) ;;			# shared object as lib.so archive member only
12570      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12571      esac
12572    fi
12573    ;;
12574  esac
12575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12576printf "%s\n" "$enable_shared" >&6; }
12577
12578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12579printf %s "checking whether to build static libraries... " >&6; }
12580  # Make sure either enable_shared or enable_static is yes.
12581  test yes = "$enable_shared" || enable_static=yes
12582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12583printf "%s\n" "$enable_static" >&6; }
12584
12585
12586
12587
12588fi
12589ac_ext=c
12590ac_cpp='$CPP $CPPFLAGS'
12591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12593ac_compiler_gnu=$ac_cv_c_compiler_gnu
12594
12595CC=$lt_save_CC
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611        ac_config_commands="$ac_config_commands libtool"
12612
12613
12614
12615
12616# Only expand once:
12617
12618
12619
12620
12621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12622printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12623    # Check whether --enable-maintainer-mode was given.
12624if test ${enable_maintainer_mode+y}
12625then :
12626  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12627else $as_nop
12628  USE_MAINTAINER_MODE=no
12629fi
12630
12631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12632printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12633   if test $USE_MAINTAINER_MODE = yes; then
12634  MAINTAINER_MODE_TRUE=
12635  MAINTAINER_MODE_FALSE='#'
12636else
12637  MAINTAINER_MODE_TRUE='#'
12638  MAINTAINER_MODE_FALSE=
12639fi
12640
12641  MAINT=$MAINTAINER_MODE_TRUE
12642
12643
12644ac_config_headers="$ac_config_headers src/iperf_config.h"
12645
12646
12647
12648
12649# Checks for tools: c compiler, ranlib (used for creating static libraries),
12650# symlinks and libtool
12651ac_ext=c
12652ac_cpp='$CPP $CPPFLAGS'
12653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655ac_compiler_gnu=$ac_cv_c_compiler_gnu
12656if test -n "$ac_tool_prefix"; then
12657  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12658set dummy ${ac_tool_prefix}gcc; ac_word=$2
12659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660printf %s "checking for $ac_word... " >&6; }
12661if test ${ac_cv_prog_CC+y}
12662then :
12663  printf %s "(cached) " >&6
12664else $as_nop
12665  if test -n "$CC"; then
12666  ac_cv_prog_CC="$CC" # Let the user override the test.
12667else
12668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669for as_dir in $PATH
12670do
12671  IFS=$as_save_IFS
12672  case $as_dir in #(((
12673    '') as_dir=./ ;;
12674    */) ;;
12675    *) as_dir=$as_dir/ ;;
12676  esac
12677    for ac_exec_ext in '' $ac_executable_extensions; do
12678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12679    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12681    break 2
12682  fi
12683done
12684  done
12685IFS=$as_save_IFS
12686
12687fi
12688fi
12689CC=$ac_cv_prog_CC
12690if test -n "$CC"; then
12691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12692printf "%s\n" "$CC" >&6; }
12693else
12694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695printf "%s\n" "no" >&6; }
12696fi
12697
12698
12699fi
12700if test -z "$ac_cv_prog_CC"; then
12701  ac_ct_CC=$CC
12702  # Extract the first word of "gcc", so it can be a program name with args.
12703set dummy gcc; ac_word=$2
12704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705printf %s "checking for $ac_word... " >&6; }
12706if test ${ac_cv_prog_ac_ct_CC+y}
12707then :
12708  printf %s "(cached) " >&6
12709else $as_nop
12710  if test -n "$ac_ct_CC"; then
12711  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12712else
12713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714for as_dir in $PATH
12715do
12716  IFS=$as_save_IFS
12717  case $as_dir in #(((
12718    '') as_dir=./ ;;
12719    */) ;;
12720    *) as_dir=$as_dir/ ;;
12721  esac
12722    for ac_exec_ext in '' $ac_executable_extensions; do
12723  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12724    ac_cv_prog_ac_ct_CC="gcc"
12725    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12726    break 2
12727  fi
12728done
12729  done
12730IFS=$as_save_IFS
12731
12732fi
12733fi
12734ac_ct_CC=$ac_cv_prog_ac_ct_CC
12735if test -n "$ac_ct_CC"; then
12736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12737printf "%s\n" "$ac_ct_CC" >&6; }
12738else
12739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740printf "%s\n" "no" >&6; }
12741fi
12742
12743  if test "x$ac_ct_CC" = x; then
12744    CC=""
12745  else
12746    case $cross_compiling:$ac_tool_warned in
12747yes:)
12748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12749printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12750ac_tool_warned=yes ;;
12751esac
12752    CC=$ac_ct_CC
12753  fi
12754else
12755  CC="$ac_cv_prog_CC"
12756fi
12757
12758if test -z "$CC"; then
12759          if test -n "$ac_tool_prefix"; then
12760    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12761set dummy ${ac_tool_prefix}cc; ac_word=$2
12762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763printf %s "checking for $ac_word... " >&6; }
12764if test ${ac_cv_prog_CC+y}
12765then :
12766  printf %s "(cached) " >&6
12767else $as_nop
12768  if test -n "$CC"; then
12769  ac_cv_prog_CC="$CC" # Let the user override the test.
12770else
12771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772for as_dir in $PATH
12773do
12774  IFS=$as_save_IFS
12775  case $as_dir in #(((
12776    '') as_dir=./ ;;
12777    */) ;;
12778    *) as_dir=$as_dir/ ;;
12779  esac
12780    for ac_exec_ext in '' $ac_executable_extensions; do
12781  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12782    ac_cv_prog_CC="${ac_tool_prefix}cc"
12783    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12784    break 2
12785  fi
12786done
12787  done
12788IFS=$as_save_IFS
12789
12790fi
12791fi
12792CC=$ac_cv_prog_CC
12793if test -n "$CC"; then
12794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12795printf "%s\n" "$CC" >&6; }
12796else
12797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798printf "%s\n" "no" >&6; }
12799fi
12800
12801
12802  fi
12803fi
12804if test -z "$CC"; then
12805  # Extract the first word of "cc", so it can be a program name with args.
12806set dummy cc; ac_word=$2
12807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808printf %s "checking for $ac_word... " >&6; }
12809if test ${ac_cv_prog_CC+y}
12810then :
12811  printf %s "(cached) " >&6
12812else $as_nop
12813  if test -n "$CC"; then
12814  ac_cv_prog_CC="$CC" # Let the user override the test.
12815else
12816  ac_prog_rejected=no
12817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $PATH
12819do
12820  IFS=$as_save_IFS
12821  case $as_dir in #(((
12822    '') as_dir=./ ;;
12823    */) ;;
12824    *) as_dir=$as_dir/ ;;
12825  esac
12826    for ac_exec_ext in '' $ac_executable_extensions; do
12827  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12828    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12829       ac_prog_rejected=yes
12830       continue
12831     fi
12832    ac_cv_prog_CC="cc"
12833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12834    break 2
12835  fi
12836done
12837  done
12838IFS=$as_save_IFS
12839
12840if test $ac_prog_rejected = yes; then
12841  # We found a bogon in the path, so make sure we never use it.
12842  set dummy $ac_cv_prog_CC
12843  shift
12844  if test $# != 0; then
12845    # We chose a different compiler from the bogus one.
12846    # However, it has the same basename, so the bogon will be chosen
12847    # first if we set CC to just the basename; use the full file name.
12848    shift
12849    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12850  fi
12851fi
12852fi
12853fi
12854CC=$ac_cv_prog_CC
12855if test -n "$CC"; then
12856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12857printf "%s\n" "$CC" >&6; }
12858else
12859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860printf "%s\n" "no" >&6; }
12861fi
12862
12863
12864fi
12865if test -z "$CC"; then
12866  if test -n "$ac_tool_prefix"; then
12867  for ac_prog in cl.exe
12868  do
12869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872printf %s "checking for $ac_word... " >&6; }
12873if test ${ac_cv_prog_CC+y}
12874then :
12875  printf %s "(cached) " >&6
12876else $as_nop
12877  if test -n "$CC"; then
12878  ac_cv_prog_CC="$CC" # Let the user override the test.
12879else
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883  IFS=$as_save_IFS
12884  case $as_dir in #(((
12885    '') as_dir=./ ;;
12886    */) ;;
12887    *) as_dir=$as_dir/ ;;
12888  esac
12889    for ac_exec_ext in '' $ac_executable_extensions; do
12890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12891    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12893    break 2
12894  fi
12895done
12896  done
12897IFS=$as_save_IFS
12898
12899fi
12900fi
12901CC=$ac_cv_prog_CC
12902if test -n "$CC"; then
12903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12904printf "%s\n" "$CC" >&6; }
12905else
12906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907printf "%s\n" "no" >&6; }
12908fi
12909
12910
12911    test -n "$CC" && break
12912  done
12913fi
12914if test -z "$CC"; then
12915  ac_ct_CC=$CC
12916  for ac_prog in cl.exe
12917do
12918  # Extract the first word of "$ac_prog", so it can be a program name with args.
12919set dummy $ac_prog; ac_word=$2
12920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921printf %s "checking for $ac_word... " >&6; }
12922if test ${ac_cv_prog_ac_ct_CC+y}
12923then :
12924  printf %s "(cached) " >&6
12925else $as_nop
12926  if test -n "$ac_ct_CC"; then
12927  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12928else
12929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930for as_dir in $PATH
12931do
12932  IFS=$as_save_IFS
12933  case $as_dir in #(((
12934    '') as_dir=./ ;;
12935    */) ;;
12936    *) as_dir=$as_dir/ ;;
12937  esac
12938    for ac_exec_ext in '' $ac_executable_extensions; do
12939  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12940    ac_cv_prog_ac_ct_CC="$ac_prog"
12941    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12942    break 2
12943  fi
12944done
12945  done
12946IFS=$as_save_IFS
12947
12948fi
12949fi
12950ac_ct_CC=$ac_cv_prog_ac_ct_CC
12951if test -n "$ac_ct_CC"; then
12952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12953printf "%s\n" "$ac_ct_CC" >&6; }
12954else
12955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956printf "%s\n" "no" >&6; }
12957fi
12958
12959
12960  test -n "$ac_ct_CC" && break
12961done
12962
12963  if test "x$ac_ct_CC" = x; then
12964    CC=""
12965  else
12966    case $cross_compiling:$ac_tool_warned in
12967yes:)
12968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12970ac_tool_warned=yes ;;
12971esac
12972    CC=$ac_ct_CC
12973  fi
12974fi
12975
12976fi
12977if test -z "$CC"; then
12978  if test -n "$ac_tool_prefix"; then
12979  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12980set dummy ${ac_tool_prefix}clang; ac_word=$2
12981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982printf %s "checking for $ac_word... " >&6; }
12983if test ${ac_cv_prog_CC+y}
12984then :
12985  printf %s "(cached) " >&6
12986else $as_nop
12987  if test -n "$CC"; then
12988  ac_cv_prog_CC="$CC" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993  IFS=$as_save_IFS
12994  case $as_dir in #(((
12995    '') as_dir=./ ;;
12996    */) ;;
12997    *) as_dir=$as_dir/ ;;
12998  esac
12999    for ac_exec_ext in '' $ac_executable_extensions; do
13000  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13001    ac_cv_prog_CC="${ac_tool_prefix}clang"
13002    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13003    break 2
13004  fi
13005done
13006  done
13007IFS=$as_save_IFS
13008
13009fi
13010fi
13011CC=$ac_cv_prog_CC
13012if test -n "$CC"; then
13013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13014printf "%s\n" "$CC" >&6; }
13015else
13016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017printf "%s\n" "no" >&6; }
13018fi
13019
13020
13021fi
13022if test -z "$ac_cv_prog_CC"; then
13023  ac_ct_CC=$CC
13024  # Extract the first word of "clang", so it can be a program name with args.
13025set dummy clang; ac_word=$2
13026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027printf %s "checking for $ac_word... " >&6; }
13028if test ${ac_cv_prog_ac_ct_CC+y}
13029then :
13030  printf %s "(cached) " >&6
13031else $as_nop
13032  if test -n "$ac_ct_CC"; then
13033  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13034else
13035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036for as_dir in $PATH
13037do
13038  IFS=$as_save_IFS
13039  case $as_dir in #(((
13040    '') as_dir=./ ;;
13041    */) ;;
13042    *) as_dir=$as_dir/ ;;
13043  esac
13044    for ac_exec_ext in '' $ac_executable_extensions; do
13045  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13046    ac_cv_prog_ac_ct_CC="clang"
13047    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13048    break 2
13049  fi
13050done
13051  done
13052IFS=$as_save_IFS
13053
13054fi
13055fi
13056ac_ct_CC=$ac_cv_prog_ac_ct_CC
13057if test -n "$ac_ct_CC"; then
13058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13059printf "%s\n" "$ac_ct_CC" >&6; }
13060else
13061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062printf "%s\n" "no" >&6; }
13063fi
13064
13065  if test "x$ac_ct_CC" = x; then
13066    CC=""
13067  else
13068    case $cross_compiling:$ac_tool_warned in
13069yes:)
13070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13071printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13072ac_tool_warned=yes ;;
13073esac
13074    CC=$ac_ct_CC
13075  fi
13076else
13077  CC="$ac_cv_prog_CC"
13078fi
13079
13080fi
13081
13082
13083test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13085as_fn_error $? "no acceptable C compiler found in \$PATH
13086See \`config.log' for more details" "$LINENO" 5; }
13087
13088# Provide some information about the compiler.
13089printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13090set X $ac_compile
13091ac_compiler=$2
13092for ac_option in --version -v -V -qversion -version; do
13093  { { ac_try="$ac_compiler $ac_option >&5"
13094case "(($ac_try" in
13095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096  *) ac_try_echo=$ac_try;;
13097esac
13098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13099printf "%s\n" "$ac_try_echo"; } >&5
13100  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13101  ac_status=$?
13102  if test -s conftest.err; then
13103    sed '10a\
13104... rest of stderr output deleted ...
13105         10q' conftest.err >conftest.er1
13106    cat conftest.er1 >&5
13107  fi
13108  rm -f conftest.er1 conftest.err
13109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13110  test $ac_status = 0; }
13111done
13112
13113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13114printf %s "checking whether the compiler supports GNU C... " >&6; }
13115if test ${ac_cv_c_compiler_gnu+y}
13116then :
13117  printf %s "(cached) " >&6
13118else $as_nop
13119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120/* end confdefs.h.  */
13121
13122int
13123main (void)
13124{
13125#ifndef __GNUC__
13126       choke me
13127#endif
13128
13129  ;
13130  return 0;
13131}
13132_ACEOF
13133if ac_fn_c_try_compile "$LINENO"
13134then :
13135  ac_compiler_gnu=yes
13136else $as_nop
13137  ac_compiler_gnu=no
13138fi
13139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13140ac_cv_c_compiler_gnu=$ac_compiler_gnu
13141
13142fi
13143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13144printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13145ac_compiler_gnu=$ac_cv_c_compiler_gnu
13146
13147if test $ac_compiler_gnu = yes; then
13148  GCC=yes
13149else
13150  GCC=
13151fi
13152ac_test_CFLAGS=${CFLAGS+y}
13153ac_save_CFLAGS=$CFLAGS
13154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13155printf %s "checking whether $CC accepts -g... " >&6; }
13156if test ${ac_cv_prog_cc_g+y}
13157then :
13158  printf %s "(cached) " >&6
13159else $as_nop
13160  ac_save_c_werror_flag=$ac_c_werror_flag
13161   ac_c_werror_flag=yes
13162   ac_cv_prog_cc_g=no
13163   CFLAGS="-g"
13164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165/* end confdefs.h.  */
13166
13167int
13168main (void)
13169{
13170
13171  ;
13172  return 0;
13173}
13174_ACEOF
13175if ac_fn_c_try_compile "$LINENO"
13176then :
13177  ac_cv_prog_cc_g=yes
13178else $as_nop
13179  CFLAGS=""
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
13194else $as_nop
13195  ac_c_werror_flag=$ac_save_c_werror_flag
13196	 CFLAGS="-g"
13197	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198/* end confdefs.h.  */
13199
13200int
13201main (void)
13202{
13203
13204  ;
13205  return 0;
13206}
13207_ACEOF
13208if ac_fn_c_try_compile "$LINENO"
13209then :
13210  ac_cv_prog_cc_g=yes
13211fi
13212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13213fi
13214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13215fi
13216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13217   ac_c_werror_flag=$ac_save_c_werror_flag
13218fi
13219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13220printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13221if test $ac_test_CFLAGS; then
13222  CFLAGS=$ac_save_CFLAGS
13223elif test $ac_cv_prog_cc_g = yes; then
13224  if test "$GCC" = yes; then
13225    CFLAGS="-g -O2"
13226  else
13227    CFLAGS="-g"
13228  fi
13229else
13230  if test "$GCC" = yes; then
13231    CFLAGS="-O2"
13232  else
13233    CFLAGS=
13234  fi
13235fi
13236ac_prog_cc_stdc=no
13237if test x$ac_prog_cc_stdc = xno
13238then :
13239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13240printf %s "checking for $CC option to enable C11 features... " >&6; }
13241if test ${ac_cv_prog_cc_c11+y}
13242then :
13243  printf %s "(cached) " >&6
13244else $as_nop
13245  ac_cv_prog_cc_c11=no
13246ac_save_CC=$CC
13247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h.  */
13249$ac_c_conftest_c11_program
13250_ACEOF
13251for ac_arg in '' -std=gnu11
13252do
13253  CC="$ac_save_CC $ac_arg"
13254  if ac_fn_c_try_compile "$LINENO"
13255then :
13256  ac_cv_prog_cc_c11=$ac_arg
13257fi
13258rm -f core conftest.err conftest.$ac_objext conftest.beam
13259  test "x$ac_cv_prog_cc_c11" != "xno" && break
13260done
13261rm -f conftest.$ac_ext
13262CC=$ac_save_CC
13263fi
13264
13265if test "x$ac_cv_prog_cc_c11" = xno
13266then :
13267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13268printf "%s\n" "unsupported" >&6; }
13269else $as_nop
13270  if test "x$ac_cv_prog_cc_c11" = x
13271then :
13272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13273printf "%s\n" "none needed" >&6; }
13274else $as_nop
13275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13276printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13277     CC="$CC $ac_cv_prog_cc_c11"
13278fi
13279  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13280  ac_prog_cc_stdc=c11
13281fi
13282fi
13283if test x$ac_prog_cc_stdc = xno
13284then :
13285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13286printf %s "checking for $CC option to enable C99 features... " >&6; }
13287if test ${ac_cv_prog_cc_c99+y}
13288then :
13289  printf %s "(cached) " >&6
13290else $as_nop
13291  ac_cv_prog_cc_c99=no
13292ac_save_CC=$CC
13293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294/* end confdefs.h.  */
13295$ac_c_conftest_c99_program
13296_ACEOF
13297for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13298do
13299  CC="$ac_save_CC $ac_arg"
13300  if ac_fn_c_try_compile "$LINENO"
13301then :
13302  ac_cv_prog_cc_c99=$ac_arg
13303fi
13304rm -f core conftest.err conftest.$ac_objext conftest.beam
13305  test "x$ac_cv_prog_cc_c99" != "xno" && break
13306done
13307rm -f conftest.$ac_ext
13308CC=$ac_save_CC
13309fi
13310
13311if test "x$ac_cv_prog_cc_c99" = xno
13312then :
13313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13314printf "%s\n" "unsupported" >&6; }
13315else $as_nop
13316  if test "x$ac_cv_prog_cc_c99" = x
13317then :
13318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13319printf "%s\n" "none needed" >&6; }
13320else $as_nop
13321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13322printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13323     CC="$CC $ac_cv_prog_cc_c99"
13324fi
13325  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13326  ac_prog_cc_stdc=c99
13327fi
13328fi
13329if test x$ac_prog_cc_stdc = xno
13330then :
13331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13332printf %s "checking for $CC option to enable C89 features... " >&6; }
13333if test ${ac_cv_prog_cc_c89+y}
13334then :
13335  printf %s "(cached) " >&6
13336else $as_nop
13337  ac_cv_prog_cc_c89=no
13338ac_save_CC=$CC
13339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340/* end confdefs.h.  */
13341$ac_c_conftest_c89_program
13342_ACEOF
13343for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13344do
13345  CC="$ac_save_CC $ac_arg"
13346  if ac_fn_c_try_compile "$LINENO"
13347then :
13348  ac_cv_prog_cc_c89=$ac_arg
13349fi
13350rm -f core conftest.err conftest.$ac_objext conftest.beam
13351  test "x$ac_cv_prog_cc_c89" != "xno" && break
13352done
13353rm -f conftest.$ac_ext
13354CC=$ac_save_CC
13355fi
13356
13357if test "x$ac_cv_prog_cc_c89" = xno
13358then :
13359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13360printf "%s\n" "unsupported" >&6; }
13361else $as_nop
13362  if test "x$ac_cv_prog_cc_c89" = x
13363then :
13364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13365printf "%s\n" "none needed" >&6; }
13366else $as_nop
13367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13368printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13369     CC="$CC $ac_cv_prog_cc_c89"
13370fi
13371  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13372  ac_prog_cc_stdc=c89
13373fi
13374fi
13375
13376ac_ext=c
13377ac_cpp='$CPP $CPPFLAGS'
13378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13380ac_compiler_gnu=$ac_cv_c_compiler_gnu
13381
13382
13383  ac_ext=c
13384ac_cpp='$CPP $CPPFLAGS'
13385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13387ac_compiler_gnu=$ac_cv_c_compiler_gnu
13388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13389printf %s "checking whether $CC understands -c and -o together... " >&6; }
13390if test ${am_cv_prog_cc_c_o+y}
13391then :
13392  printf %s "(cached) " >&6
13393else $as_nop
13394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395/* end confdefs.h.  */
13396
13397int
13398main (void)
13399{
13400
13401  ;
13402  return 0;
13403}
13404_ACEOF
13405  # Make sure it works both with $CC and with simple cc.
13406  # Following AC_PROG_CC_C_O, we do the test twice because some
13407  # compilers refuse to overwrite an existing .o file with -o,
13408  # though they will create one.
13409  am_cv_prog_cc_c_o=yes
13410  for am_i in 1 2; do
13411    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13412   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } \
13416         && test -f conftest2.$ac_objext; then
13417      : OK
13418    else
13419      am_cv_prog_cc_c_o=no
13420      break
13421    fi
13422  done
13423  rm -f core conftest*
13424  unset am_i
13425fi
13426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13427printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13428if test "$am_cv_prog_cc_c_o" != yes; then
13429   # Losing compiler, so override with the script.
13430   # FIXME: It is wrong to rewrite CC.
13431   # But if we don't then we get into trouble of one sort or another.
13432   # A longer-term fix would be to have automake use am__CC in this case,
13433   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13434   CC="$am_aux_dir/compile $CC"
13435fi
13436ac_ext=c
13437ac_cpp='$CPP $CPPFLAGS'
13438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440ac_compiler_gnu=$ac_cv_c_compiler_gnu
13441
13442
13443depcc="$CC"   am_compiler_list=
13444
13445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13446printf %s "checking dependency style of $depcc... " >&6; }
13447if test ${am_cv_CC_dependencies_compiler_type+y}
13448then :
13449  printf %s "(cached) " >&6
13450else $as_nop
13451  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13452  # We make a subdir and do the tests there.  Otherwise we can end up
13453  # making bogus files that we don't know about and never remove.  For
13454  # instance it was reported that on HP-UX the gcc test will end up
13455  # making a dummy file named 'D' -- because '-MD' means "put the output
13456  # in D".
13457  rm -rf conftest.dir
13458  mkdir conftest.dir
13459  # Copy depcomp to subdir because otherwise we won't find it if we're
13460  # using a relative directory.
13461  cp "$am_depcomp" conftest.dir
13462  cd conftest.dir
13463  # We will build objects and dependencies in a subdirectory because
13464  # it helps to detect inapplicable dependency modes.  For instance
13465  # both Tru64's cc and ICC support -MD to output dependencies as a
13466  # side effect of compilation, but ICC will put the dependencies in
13467  # the current directory while Tru64 will put them in the object
13468  # directory.
13469  mkdir sub
13470
13471  am_cv_CC_dependencies_compiler_type=none
13472  if test "$am_compiler_list" = ""; then
13473     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13474  fi
13475  am__universal=false
13476  case " $depcc " in #(
13477     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13478     esac
13479
13480  for depmode in $am_compiler_list; do
13481    # Setup a source with many dependencies, because some compilers
13482    # like to wrap large dependency lists on column 80 (with \), and
13483    # we should not choose a depcomp mode which is confused by this.
13484    #
13485    # We need to recreate these files for each test, as the compiler may
13486    # overwrite some of them when testing with obscure command lines.
13487    # This happens at least with the AIX C compiler.
13488    : > sub/conftest.c
13489    for i in 1 2 3 4 5 6; do
13490      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13491      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13492      # Solaris 10 /bin/sh.
13493      echo '/* dummy */' > sub/conftst$i.h
13494    done
13495    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13496
13497    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13498    # mode.  It turns out that the SunPro C++ compiler does not properly
13499    # handle '-M -o', and we need to detect this.  Also, some Intel
13500    # versions had trouble with output in subdirs.
13501    am__obj=sub/conftest.${OBJEXT-o}
13502    am__minus_obj="-o $am__obj"
13503    case $depmode in
13504    gcc)
13505      # This depmode causes a compiler race in universal mode.
13506      test "$am__universal" = false || continue
13507      ;;
13508    nosideeffect)
13509      # After this tag, mechanisms are not by side-effect, so they'll
13510      # only be used when explicitly requested.
13511      if test "x$enable_dependency_tracking" = xyes; then
13512	continue
13513      else
13514	break
13515      fi
13516      ;;
13517    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13518      # This compiler won't grok '-c -o', but also, the minuso test has
13519      # not run yet.  These depmodes are late enough in the game, and
13520      # so weak that their functioning should not be impacted.
13521      am__obj=conftest.${OBJEXT-o}
13522      am__minus_obj=
13523      ;;
13524    none) break ;;
13525    esac
13526    if depmode=$depmode \
13527       source=sub/conftest.c object=$am__obj \
13528       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13529       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13530         >/dev/null 2>conftest.err &&
13531       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13532       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13533       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13534       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13535      # icc doesn't choke on unknown options, it will just issue warnings
13536      # or remarks (even with -Werror).  So we grep stderr for any message
13537      # that says an option was ignored or not supported.
13538      # When given -MP, icc 7.0 and 7.1 complain thusly:
13539      #   icc: Command line warning: ignoring option '-M'; no argument required
13540      # The diagnosis changed in icc 8.0:
13541      #   icc: Command line remark: option '-MP' not supported
13542      if (grep 'ignoring option' conftest.err ||
13543          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13544        am_cv_CC_dependencies_compiler_type=$depmode
13545        break
13546      fi
13547    fi
13548  done
13549
13550  cd ..
13551  rm -rf conftest.dir
13552else
13553  am_cv_CC_dependencies_compiler_type=none
13554fi
13555
13556fi
13557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13558printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13559CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13560
13561 if
13562  test "x$enable_dependency_tracking" != xno \
13563  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13564  am__fastdepCC_TRUE=
13565  am__fastdepCC_FALSE='#'
13566else
13567  am__fastdepCC_TRUE='#'
13568  am__fastdepCC_FALSE=
13569fi
13570
13571
13572if test -n "$ac_tool_prefix"; then
13573  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13574set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576printf %s "checking for $ac_word... " >&6; }
13577if test ${ac_cv_prog_RANLIB+y}
13578then :
13579  printf %s "(cached) " >&6
13580else $as_nop
13581  if test -n "$RANLIB"; then
13582  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13583else
13584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585for as_dir in $PATH
13586do
13587  IFS=$as_save_IFS
13588  case $as_dir in #(((
13589    '') as_dir=./ ;;
13590    */) ;;
13591    *) as_dir=$as_dir/ ;;
13592  esac
13593    for ac_exec_ext in '' $ac_executable_extensions; do
13594  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13595    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13596    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13597    break 2
13598  fi
13599done
13600  done
13601IFS=$as_save_IFS
13602
13603fi
13604fi
13605RANLIB=$ac_cv_prog_RANLIB
13606if test -n "$RANLIB"; then
13607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13608printf "%s\n" "$RANLIB" >&6; }
13609else
13610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611printf "%s\n" "no" >&6; }
13612fi
13613
13614
13615fi
13616if test -z "$ac_cv_prog_RANLIB"; then
13617  ac_ct_RANLIB=$RANLIB
13618  # Extract the first word of "ranlib", so it can be a program name with args.
13619set dummy ranlib; ac_word=$2
13620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621printf %s "checking for $ac_word... " >&6; }
13622if test ${ac_cv_prog_ac_ct_RANLIB+y}
13623then :
13624  printf %s "(cached) " >&6
13625else $as_nop
13626  if test -n "$ac_ct_RANLIB"; then
13627  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13628else
13629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630for as_dir in $PATH
13631do
13632  IFS=$as_save_IFS
13633  case $as_dir in #(((
13634    '') as_dir=./ ;;
13635    */) ;;
13636    *) as_dir=$as_dir/ ;;
13637  esac
13638    for ac_exec_ext in '' $ac_executable_extensions; do
13639  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13640    ac_cv_prog_ac_ct_RANLIB="ranlib"
13641    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13642    break 2
13643  fi
13644done
13645  done
13646IFS=$as_save_IFS
13647
13648fi
13649fi
13650ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13651if test -n "$ac_ct_RANLIB"; then
13652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13653printf "%s\n" "$ac_ct_RANLIB" >&6; }
13654else
13655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656printf "%s\n" "no" >&6; }
13657fi
13658
13659  if test "x$ac_ct_RANLIB" = x; then
13660    RANLIB=":"
13661  else
13662    case $cross_compiling:$ac_tool_warned in
13663yes:)
13664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13665printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13666ac_tool_warned=yes ;;
13667esac
13668    RANLIB=$ac_ct_RANLIB
13669  fi
13670else
13671  RANLIB="$ac_cv_prog_RANLIB"
13672fi
13673
13674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13675printf %s "checking whether ln -s works... " >&6; }
13676LN_S=$as_ln_s
13677if test "$LN_S" = "ln -s"; then
13678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679printf "%s\n" "yes" >&6; }
13680else
13681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13682printf "%s\n" "no, using $LN_S" >&6; }
13683fi
13684
13685
13686
13687# Add -Wall if we are using GCC.
13688if test "x$GCC" = "xyes"; then
13689  CFLAGS="$CFLAGS -Wall"
13690fi
13691
13692# Check if enable profiling
13693# Check whether --enable-profiling was given.
13694if test ${enable_profiling+y}
13695then :
13696  enableval=$enable_profiling;
13697fi
13698
13699 if test x$enable_profiling = xyes; then
13700  ENABLE_PROFILING_TRUE=
13701  ENABLE_PROFILING_FALSE='#'
13702else
13703  ENABLE_PROFILING_TRUE='#'
13704  ENABLE_PROFILING_FALSE=
13705fi
13706
13707
13708# Check for the math library (needed by cjson on some platforms)
13709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13710printf %s "checking for library containing floor... " >&6; }
13711if test ${ac_cv_search_floor+y}
13712then :
13713  printf %s "(cached) " >&6
13714else $as_nop
13715  ac_func_search_save_LIBS=$LIBS
13716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717/* end confdefs.h.  */
13718
13719/* Override any GCC internal prototype to avoid an error.
13720   Use char because int might match the return type of a GCC
13721   builtin and then its argument prototype would still apply.  */
13722char floor ();
13723int
13724main (void)
13725{
13726return floor ();
13727  ;
13728  return 0;
13729}
13730_ACEOF
13731for ac_lib in '' m
13732do
13733  if test -z "$ac_lib"; then
13734    ac_res="none required"
13735  else
13736    ac_res=-l$ac_lib
13737    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13738  fi
13739  if ac_fn_c_try_link "$LINENO"
13740then :
13741  ac_cv_search_floor=$ac_res
13742fi
13743rm -f core conftest.err conftest.$ac_objext conftest.beam \
13744    conftest$ac_exeext
13745  if test ${ac_cv_search_floor+y}
13746then :
13747  break
13748fi
13749done
13750if test ${ac_cv_search_floor+y}
13751then :
13752
13753else $as_nop
13754  ac_cv_search_floor=no
13755fi
13756rm conftest.$ac_ext
13757LIBS=$ac_func_search_save_LIBS
13758fi
13759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13760printf "%s\n" "$ac_cv_search_floor" >&6; }
13761ac_res=$ac_cv_search_floor
13762if test "$ac_res" != no
13763then :
13764  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13765
13766else $as_nop
13767
13768echo "floor()"
13769exit 1
13770
13771fi
13772
13773
13774# On illumos we need -lsocket
13775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13776printf %s "checking for library containing socket... " >&6; }
13777if test ${ac_cv_search_socket+y}
13778then :
13779  printf %s "(cached) " >&6
13780else $as_nop
13781  ac_func_search_save_LIBS=$LIBS
13782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784
13785/* Override any GCC internal prototype to avoid an error.
13786   Use char because int might match the return type of a GCC
13787   builtin and then its argument prototype would still apply.  */
13788char socket ();
13789int
13790main (void)
13791{
13792return socket ();
13793  ;
13794  return 0;
13795}
13796_ACEOF
13797for ac_lib in '' socket
13798do
13799  if test -z "$ac_lib"; then
13800    ac_res="none required"
13801  else
13802    ac_res=-l$ac_lib
13803    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13804  fi
13805  if ac_fn_c_try_link "$LINENO"
13806then :
13807  ac_cv_search_socket=$ac_res
13808fi
13809rm -f core conftest.err conftest.$ac_objext conftest.beam \
13810    conftest$ac_exeext
13811  if test ${ac_cv_search_socket+y}
13812then :
13813  break
13814fi
13815done
13816if test ${ac_cv_search_socket+y}
13817then :
13818
13819else $as_nop
13820  ac_cv_search_socket=no
13821fi
13822rm conftest.$ac_ext
13823LIBS=$ac_func_search_save_LIBS
13824fi
13825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13826printf "%s\n" "$ac_cv_search_socket" >&6; }
13827ac_res=$ac_cv_search_socket
13828if test "$ac_res" != no
13829then :
13830  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13831
13832else $as_nop
13833
13834echo "socket()"
13835exit 1
13836
13837fi
13838
13839
13840# On illumos inet_ntop in in -lnsl
13841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13842printf %s "checking for library containing inet_ntop... " >&6; }
13843if test ${ac_cv_search_inet_ntop+y}
13844then :
13845  printf %s "(cached) " >&6
13846else $as_nop
13847  ac_func_search_save_LIBS=$LIBS
13848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849/* end confdefs.h.  */
13850
13851/* Override any GCC internal prototype to avoid an error.
13852   Use char because int might match the return type of a GCC
13853   builtin and then its argument prototype would still apply.  */
13854char inet_ntop ();
13855int
13856main (void)
13857{
13858return inet_ntop ();
13859  ;
13860  return 0;
13861}
13862_ACEOF
13863for ac_lib in '' nsl
13864do
13865  if test -z "$ac_lib"; then
13866    ac_res="none required"
13867  else
13868    ac_res=-l$ac_lib
13869    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13870  fi
13871  if ac_fn_c_try_link "$LINENO"
13872then :
13873  ac_cv_search_inet_ntop=$ac_res
13874fi
13875rm -f core conftest.err conftest.$ac_objext conftest.beam \
13876    conftest$ac_exeext
13877  if test ${ac_cv_search_inet_ntop+y}
13878then :
13879  break
13880fi
13881done
13882if test ${ac_cv_search_inet_ntop+y}
13883then :
13884
13885else $as_nop
13886  ac_cv_search_inet_ntop=no
13887fi
13888rm conftest.$ac_ext
13889LIBS=$ac_func_search_save_LIBS
13890fi
13891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13892printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
13893ac_res=$ac_cv_search_inet_ntop
13894if test "$ac_res" != no
13895then :
13896  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13897
13898else $as_nop
13899
13900echo "inet_ntop()"
13901exit 1
13902
13903fi
13904
13905
13906# Checks for typedefs, structures, and compiler characteristics.
13907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13908printf %s "checking for an ANSI C-conforming const... " >&6; }
13909if test ${ac_cv_c_const+y}
13910then :
13911  printf %s "(cached) " >&6
13912else $as_nop
13913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914/* end confdefs.h.  */
13915
13916int
13917main (void)
13918{
13919
13920#ifndef __cplusplus
13921  /* Ultrix mips cc rejects this sort of thing.  */
13922  typedef int charset[2];
13923  const charset cs = { 0, 0 };
13924  /* SunOS 4.1.1 cc rejects this.  */
13925  char const *const *pcpcc;
13926  char **ppc;
13927  /* NEC SVR4.0.2 mips cc rejects this.  */
13928  struct point {int x, y;};
13929  static struct point const zero = {0,0};
13930  /* IBM XL C 1.02.0.0 rejects this.
13931     It does not let you subtract one const X* pointer from another in
13932     an arm of an if-expression whose if-part is not a constant
13933     expression */
13934  const char *g = "string";
13935  pcpcc = &g + (g ? g-g : 0);
13936  /* HPUX 7.0 cc rejects these. */
13937  ++pcpcc;
13938  ppc = (char**) pcpcc;
13939  pcpcc = (char const *const *) ppc;
13940  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13941    char tx;
13942    char *t = &tx;
13943    char const *s = 0 ? (char *) 0 : (char const *) 0;
13944
13945    *t++ = 0;
13946    if (s) return 0;
13947  }
13948  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13949    int x[] = {25, 17};
13950    const int *foo = &x[0];
13951    ++foo;
13952  }
13953  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13954    typedef const int *iptr;
13955    iptr p = 0;
13956    ++p;
13957  }
13958  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13959       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13960    struct s { int j; const int *ap[3]; } bx;
13961    struct s *b = &bx; b->j = 5;
13962  }
13963  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13964    const int foo = 10;
13965    if (!foo) return 0;
13966  }
13967  return !cs[0] && !zero.x;
13968#endif
13969
13970  ;
13971  return 0;
13972}
13973_ACEOF
13974if ac_fn_c_try_compile "$LINENO"
13975then :
13976  ac_cv_c_const=yes
13977else $as_nop
13978  ac_cv_c_const=no
13979fi
13980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13981fi
13982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13983printf "%s\n" "$ac_cv_c_const" >&6; }
13984if test $ac_cv_c_const = no; then
13985
13986printf "%s\n" "#define const /**/" >>confdefs.h
13987
13988fi
13989
13990
13991# Check for poll.h (it's in POSIX so everyone should have it?)
13992ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13993if test "x$ac_cv_header_poll_h" = xyes
13994then :
13995  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
13996
13997fi
13998
13999
14000# SCTP.  Allow user to disable SCTP support with --without-sctp.
14001# Otherwise we try to find whatever support is required.
14002try_sctp=true
14003
14004# Check whether --with-sctp was given.
14005if test ${with_sctp+y}
14006then :
14007  withval=$with_sctp;
14008        case "$withval" in
14009	y | ye | yes)
14010	  ;;
14011	n | no)
14012	try_sctp=false
14013	  ;;
14014	*)
14015	as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
14016	  ;;
14017	esac
14018
14019else $as_nop
14020
14021        try_sctp=true
14022
14023
14024fi
14025
14026
14027ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
14028if test "x$ac_cv_header_linux_tcp_h" = xyes
14029then :
14030  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
14031
14032fi
14033
14034
14035# Check for SCTP support
14036if $try_sctp; then
14037ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14038if test "x$ac_cv_header_sys_socket_h" = xyes
14039then :
14040  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
14041
14042fi
14043
14044       for ac_header in netinet/sctp.h
14045do :
14046  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
14047#include <sys/socket.h>
14048#endif
14049
14050"
14051if test "x$ac_cv_header_netinet_sctp_h" = xyes
14052then :
14053  printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h
14054
14055printf "%s\n" "#define HAVE_SCTP_H 1" >>confdefs.h
14056
14057		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
14058printf %s "checking for library containing sctp_bindx... " >&6; }
14059if test ${ac_cv_search_sctp_bindx+y}
14060then :
14061  printf %s "(cached) " >&6
14062else $as_nop
14063  ac_func_search_save_LIBS=$LIBS
14064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065/* end confdefs.h.  */
14066
14067/* Override any GCC internal prototype to avoid an error.
14068   Use char because int might match the return type of a GCC
14069   builtin and then its argument prototype would still apply.  */
14070char sctp_bindx ();
14071int
14072main (void)
14073{
14074return sctp_bindx ();
14075  ;
14076  return 0;
14077}
14078_ACEOF
14079for ac_lib in '' sctp
14080do
14081  if test -z "$ac_lib"; then
14082    ac_res="none required"
14083  else
14084    ac_res=-l$ac_lib
14085    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14086  fi
14087  if ac_fn_c_try_link "$LINENO"
14088then :
14089  ac_cv_search_sctp_bindx=$ac_res
14090fi
14091rm -f core conftest.err conftest.$ac_objext conftest.beam \
14092    conftest$ac_exeext
14093  if test ${ac_cv_search_sctp_bindx+y}
14094then :
14095  break
14096fi
14097done
14098if test ${ac_cv_search_sctp_bindx+y}
14099then :
14100
14101else $as_nop
14102  ac_cv_search_sctp_bindx=no
14103fi
14104rm conftest.$ac_ext
14105LIBS=$ac_func_search_save_LIBS
14106fi
14107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
14108printf "%s\n" "$ac_cv_search_sctp_bindx" >&6; }
14109ac_res=$ac_cv_search_sctp_bindx
14110if test "$ac_res" != no
14111then :
14112  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14113
14114fi
14115
14116
14117# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
14118# -------------------------------------------
14119# Tests whether TYPE exists after having included INCLUDES, setting cache
14120# variable VAR accordingly.
14121ac_fn_c_check_type ()
14122{
14123  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
14125printf %s "checking for $2... " >&6; }
14126if eval test \${$3+y}
14127then :
14128  printf %s "(cached) " >&6
14129else $as_nop
14130  eval "$3=no"
14131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h.  */
14133$4
14134int
14135main (void)
14136{
14137if (sizeof ($2))
14138	 return 0;
14139  ;
14140  return 0;
14141}
14142_ACEOF
14143if ac_fn_c_try_compile "$LINENO"
14144then :
14145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146/* end confdefs.h.  */
14147$4
14148int
14149main (void)
14150{
14151if (sizeof (($2)))
14152	    return 0;
14153  ;
14154  return 0;
14155}
14156_ACEOF
14157if ac_fn_c_try_compile "$LINENO"
14158then :
14159
14160else $as_nop
14161  eval "$3=yes"
14162fi
14163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14164fi
14165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14166fi
14167eval ac_res=\$$3
14168	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14169printf "%s\n" "$ac_res" >&6; }
14170  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14171
14172} # ac_fn_c_check_type
14173ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
14174"
14175if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes
14176then :
14177
14178printf "%s\n" "#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1" >>confdefs.h
14179
14180
14181fi
14182
14183fi
14184
14185done
14186fi
14187
14188ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
14189if test "x$ac_cv_header_endian_h" = xyes
14190then :
14191
14192printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
14193
14194else $as_nop
14195  ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
14196if test "x$ac_cv_header_sys_endian_h" = xyes
14197then :
14198
14199printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
14200
14201else $as_nop
14202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
14203printf "%s\n" "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
14204
14205fi
14206
14207
14208fi
14209
14210
14211if test "x$with_openssl" = "xno"; then
14212    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
14213printf "%s\n" "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
14214else
14215    # Check for OPENSSL support
14216    havs_ssl=false
14217
14218    found=false
14219
14220# Check whether --with-openssl was given.
14221if test ${with_openssl+y}
14222then :
14223  withval=$with_openssl;
14224            case "$withval" in
14225            "" | y | ye | yes | n | no)
14226            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
14227              ;;
14228            *) ssldirs="$withval"
14229              ;;
14230            esac
14231
14232else $as_nop
14233
14234            # if pkg-config is installed and openssl has installed a .pc file,
14235            # then use that information and don't search ssldirs
14236            if test -n "$ac_tool_prefix"; then
14237  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14238set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240printf %s "checking for $ac_word... " >&6; }
14241if test ${ac_cv_prog_PKG_CONFIG+y}
14242then :
14243  printf %s "(cached) " >&6
14244else $as_nop
14245  if test -n "$PKG_CONFIG"; then
14246  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
14247else
14248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249for as_dir in $PATH
14250do
14251  IFS=$as_save_IFS
14252  case $as_dir in #(((
14253    '') as_dir=./ ;;
14254    */) ;;
14255    *) as_dir=$as_dir/ ;;
14256  esac
14257    for ac_exec_ext in '' $ac_executable_extensions; do
14258  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14259    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
14260    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14261    break 2
14262  fi
14263done
14264  done
14265IFS=$as_save_IFS
14266
14267fi
14268fi
14269PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
14270if test -n "$PKG_CONFIG"; then
14271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14272printf "%s\n" "$PKG_CONFIG" >&6; }
14273else
14274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275printf "%s\n" "no" >&6; }
14276fi
14277
14278
14279fi
14280if test -z "$ac_cv_prog_PKG_CONFIG"; then
14281  ac_ct_PKG_CONFIG=$PKG_CONFIG
14282  # Extract the first word of "pkg-config", so it can be a program name with args.
14283set dummy pkg-config; ac_word=$2
14284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285printf %s "checking for $ac_word... " >&6; }
14286if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
14287then :
14288  printf %s "(cached) " >&6
14289else $as_nop
14290  if test -n "$ac_ct_PKG_CONFIG"; then
14291  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
14292else
14293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294for as_dir in $PATH
14295do
14296  IFS=$as_save_IFS
14297  case $as_dir in #(((
14298    '') as_dir=./ ;;
14299    */) ;;
14300    *) as_dir=$as_dir/ ;;
14301  esac
14302    for ac_exec_ext in '' $ac_executable_extensions; do
14303  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14304    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
14305    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14306    break 2
14307  fi
14308done
14309  done
14310IFS=$as_save_IFS
14311
14312fi
14313fi
14314ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
14315if test -n "$ac_ct_PKG_CONFIG"; then
14316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
14317printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
14318else
14319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320printf "%s\n" "no" >&6; }
14321fi
14322
14323  if test "x$ac_ct_PKG_CONFIG" = x; then
14324    PKG_CONFIG=""
14325  else
14326    case $cross_compiling:$ac_tool_warned in
14327yes:)
14328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14329printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14330ac_tool_warned=yes ;;
14331esac
14332    PKG_CONFIG=$ac_ct_PKG_CONFIG
14333  fi
14334else
14335  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
14336fi
14337
14338            if test x"$PKG_CONFIG" != x""; then
14339                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
14340                if test $? = 0; then
14341                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
14342                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
14343                    found=true
14344                fi
14345            fi
14346
14347            # no such luck; use some default ssldirs
14348            if ! $found; then
14349                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14350            fi
14351
14352
14353fi
14354
14355
14356
14357    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
14358    # an 'openssl' subdirectory
14359
14360    if ! $found; then
14361        OPENSSL_INCLUDES=
14362        for ssldir in $ssldirs; do
14363            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
14364printf %s "checking for openssl/ssl.h in $ssldir... " >&6; }
14365            if test -f "$ssldir/include/openssl/ssl.h"; then
14366                OPENSSL_INCLUDES="-I$ssldir/include"
14367                OPENSSL_LDFLAGS="-L$ssldir/lib"
14368                OPENSSL_LIBS="-lssl -lcrypto"
14369                found=true
14370                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14371printf "%s\n" "yes" >&6; }
14372                break
14373            else
14374                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375printf "%s\n" "no" >&6; }
14376            fi
14377        done
14378
14379        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
14380        # it will just work!
14381    fi
14382
14383    # try the preprocessor and linker with our new flags,
14384    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14385
14386    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
14387printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
14388    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
14389        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
14390
14391    save_LIBS="$LIBS"
14392    save_LDFLAGS="$LDFLAGS"
14393    save_CPPFLAGS="$CPPFLAGS"
14394    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14395    LIBS="$OPENSSL_LIBS $LIBS"
14396    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398/* end confdefs.h.  */
14399#include <openssl/ssl.h>
14400int
14401main (void)
14402{
14403SSL_new(NULL)
14404  ;
14405  return 0;
14406}
14407_ACEOF
14408if ac_fn_c_try_link "$LINENO"
14409then :
14410
14411            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14412printf "%s\n" "yes" >&6; }
14413
14414printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
14415
14416          have_ssl=true
14417
14418else $as_nop
14419
14420            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421printf "%s\n" "no" >&6; }
14422             if test "x$with_openssl" != "x"; then
14423	  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14424printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14425as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
14426See \`config.log' for more details" "$LINENO" 5; }
14427	  fi
14428
14429
14430fi
14431rm -f core conftest.err conftest.$ac_objext conftest.beam \
14432    conftest$ac_exeext conftest.$ac_ext
14433    CPPFLAGS="$save_CPPFLAGS"
14434    LDFLAGS="$save_LDFLAGS"
14435    LIBS="$save_LIBS"
14436
14437
14438
14439
14440
14441    if $have_ssl; then
14442        case $host in
14443           *-*-cygwin)
14444             CFLAGS="$CFLAGS -DNOCRYPT"
14445             ;;
14446        esac
14447        LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14448        LIBS="$OPENSSL_LIBS $LIBS"
14449        CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14450    fi
14451fi
14452
14453# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
14454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
14455printf %s "checking TCP_CONGESTION socket option... " >&6; }
14456if test ${iperf3_cv_header_tcp_congestion+y}
14457then :
14458  printf %s "(cached) " >&6
14459else $as_nop
14460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461/* end confdefs.h.  */
14462#include <netinet/tcp.h>
14463int
14464main (void)
14465{
14466int foo = TCP_CONGESTION;
14467  ;
14468  return 0;
14469}
14470_ACEOF
14471if ac_fn_c_try_compile "$LINENO"
14472then :
14473  iperf3_cv_header_tcp_congestion=yes
14474else $as_nop
14475  iperf3_cv_header_tcp_congestion=no
14476fi
14477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14478fi
14479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
14480printf "%s\n" "$iperf3_cv_header_tcp_congestion" >&6; }
14481if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
14482
14483printf "%s\n" "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
14484
14485fi
14486
14487# Check for IPv6 flowlabel support (believed to be Linux only)
14488# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
14489# don't use that file directly (we have our own stripped-down
14490# copy, see src/flowlabel.h for more details).
14491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
14492printf %s "checking IPv6 flowlabel support... " >&6; }
14493if test ${iperf3_cv_header_flowlabel+y}
14494then :
14495  printf %s "(cached) " >&6
14496else $as_nop
14497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h.  */
14499#include <sys/types.h>
14500                     #include <linux/in6.h>
14501int
14502main (void)
14503{
14504int foo = IPV6_FLOWLABEL_MGR;
14505  ;
14506  return 0;
14507}
14508_ACEOF
14509if ac_fn_c_try_compile "$LINENO"
14510then :
14511  iperf3_cv_header_flowlabel=yes
14512else $as_nop
14513  iperf3_cv_header_flowlabel=no
14514fi
14515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14516fi
14517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
14518printf "%s\n" "$iperf3_cv_header_flowlabel" >&6; }
14519if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
14520
14521printf "%s\n" "#define HAVE_FLOWLABEL 1" >>confdefs.h
14522
14523fi
14524
14525# Check for CPU affinity support.  FreeBSD and Linux do this differently
14526# unfortunately so we have to check separately for each of them.
14527# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
14528# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
14529# generic concept is available.
14530
14531  for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
14532do :
14533  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
14534ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14535if eval test \"x\$"$as_ac_var"\" = x"yes"
14536then :
14537  cat >>confdefs.h <<_ACEOF
14538#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
14539_ACEOF
14540
14541printf "%s\n" "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
14542
14543fi
14544
14545done
14546
14547# Check for daemon().  Most systems have this but a few (IRIX) don't.
14548ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
14549if test "x$ac_cv_func_daemon" = xyes
14550then :
14551  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
14552
14553fi
14554
14555
14556# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
14557# this system call, but they're all different in terms of what headers
14558# it needs and what arguments it expects.
14559ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14560if test "x$ac_cv_func_sendfile" = xyes
14561then :
14562  printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
14563
14564fi
14565
14566
14567# Check for getline support, used as a part of authenticated
14568# connections.
14569ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14570if test "x$ac_cv_func_getline" = xyes
14571then :
14572  printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
14573
14574fi
14575
14576
14577# Check for packet pacing socket option (Linux only for now).
14578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
14579printf %s "checking SO_MAX_PACING_RATE socket option... " >&6; }
14580if test ${iperf3_cv_header_so_max_pacing_rate+y}
14581then :
14582  printf %s "(cached) " >&6
14583else $as_nop
14584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585/* end confdefs.h.  */
14586#include <sys/socket.h>
14587int
14588main (void)
14589{
14590int foo = SO_MAX_PACING_RATE;
14591  ;
14592  return 0;
14593}
14594_ACEOF
14595if ac_fn_c_try_compile "$LINENO"
14596then :
14597  iperf3_cv_header_so_max_pacing_rate=yes
14598else $as_nop
14599  iperf3_cv_header_so_max_pacing_rate=no
14600fi
14601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14602fi
14603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
14604printf "%s\n" "$iperf3_cv_header_so_max_pacing_rate" >&6; }
14605if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
14606
14607printf "%s\n" "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
14608
14609fi
14610
14611# Check for SO_BINDTODEVICE sockopt (believed to be Linux only)
14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5
14613printf %s "checking SO_BINDTODEVICE socket option... " >&6; }
14614if test ${iperf3_cv_header_so_bindtodevice+y}
14615then :
14616  printf %s "(cached) " >&6
14617else $as_nop
14618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619/* end confdefs.h.  */
14620#include <sys/socket.h>
14621int
14622main (void)
14623{
14624int foo = SO_BINDTODEVICE;
14625  ;
14626  return 0;
14627}
14628_ACEOF
14629if ac_fn_c_try_compile "$LINENO"
14630then :
14631  iperf3_cv_header_so_bindtodevice=yes
14632else $as_nop
14633  iperf3_cv_header_so_bindtodevice=no
14634fi
14635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14636fi
14637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5
14638printf "%s\n" "$iperf3_cv_header_so_bindtodevice" >&6; }
14639if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then
14640
14641printf "%s\n" "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h
14642
14643fi
14644
14645# Check for IP_MTU_DISCOVER (mostly on Linux)
14646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_MTU_DISCOVER socket option" >&5
14647printf %s "checking IP_MTU_DISCOVER socket option... " >&6; }
14648if test ${iperf3_cv_header_ip_mtu_discover+y}
14649then :
14650  printf %s "(cached) " >&6
14651else $as_nop
14652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653/* end confdefs.h.  */
14654#include <sys/types.h>
14655                     #include <sys/socket.h>
14656                     #include <netinet/in.h>
14657int
14658main (void)
14659{
14660int foo = IP_MTU_DISCOVER;
14661  ;
14662  return 0;
14663}
14664_ACEOF
14665if ac_fn_c_try_compile "$LINENO"
14666then :
14667  iperf3_cv_header_ip_mtu_discover=yes
14668else $as_nop
14669  iperf3_cv_header_ip_mtu_discover=no
14670fi
14671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14672fi
14673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_mtu_discover" >&5
14674printf "%s\n" "$iperf3_cv_header_ip_mtu_discover" >&6; }
14675if test "x$iperf3_cv_header_ip_mtu_discover" = "xyes"; then
14676
14677printf "%s\n" "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
14678
14679fi
14680
14681# Check for IP_DONTFRAG (BSD?)
14682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAG socket option" >&5
14683printf %s "checking IP_DONTFRAG socket option... " >&6; }
14684if test ${iperf3_cv_header_ip_dontfrag+y}
14685then :
14686  printf %s "(cached) " >&6
14687else $as_nop
14688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689/* end confdefs.h.  */
14690#include <sys/types.h>
14691                     #include <sys/socket.h>
14692                     #include <netinet/in.h>
14693int
14694main (void)
14695{
14696int foo = IP_DONTFRAG;
14697  ;
14698  return 0;
14699}
14700_ACEOF
14701if ac_fn_c_try_compile "$LINENO"
14702then :
14703  iperf3_cv_header_ip_dontfrag=yes
14704else $as_nop
14705  iperf3_cv_header_ip_dontfrag=no
14706fi
14707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14708fi
14709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfrag" >&5
14710printf "%s\n" "$iperf3_cv_header_ip_dontfrag" >&6; }
14711if test "x$iperf3_cv_header_ip_dontfrag" = "xyes"; then
14712
14713printf "%s\n" "#define HAVE_IP_DONTFRAG 1" >>confdefs.h
14714
14715fi
14716
14717# Check for IP_DONTFRAGMENT (Windows?)
14718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_DONTFRAGMENT socket option" >&5
14719printf %s "checking IP_DONTFRAGMENT socket option... " >&6; }
14720if test ${iperf3_cv_header_ip_dontfragment+y}
14721then :
14722  printf %s "(cached) " >&6
14723else $as_nop
14724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725/* end confdefs.h.  */
14726#include <sys/types.h>
14727                     #include <sys/socket.h>
14728                     #include <netinet/in.h>
14729int
14730main (void)
14731{
14732int foo = IP_DONTFRAGMENT;
14733  ;
14734  return 0;
14735}
14736_ACEOF
14737if ac_fn_c_try_compile "$LINENO"
14738then :
14739  iperf3_cv_header_ip_dontfragment=yes
14740else $as_nop
14741  iperf3_cv_header_ip_dontfragment=no
14742fi
14743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14744fi
14745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_ip_dontfragment" >&5
14746printf "%s\n" "$iperf3_cv_header_ip_dontfragment" >&6; }
14747if test "x$iperf3_cv_header_ip_dontfragment" = "xyes"; then
14748
14749printf "%s\n" "#define HAVE_IP_DONTFRAGMENT 1" >>confdefs.h
14750
14751fi
14752
14753# Check for IP DF support
14754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking any kind of DF socket option" >&5
14755printf %s "checking any kind of DF socket option... " >&6; }
14756if test ${iperf3_cv_header_dontfragment+y}
14757then :
14758  printf %s "(cached) " >&6
14759else $as_nop
14760  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
14761  iperf3_cv_header_dontfragment=yes
14762else
14763  iperf3_cv_header_dontfragment=no
14764fi
14765fi
14766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_dontfragment" >&5
14767printf "%s\n" "$iperf3_cv_header_dontfragment" >&6; }
14768
14769if test "x$iperf3_cv_header_dontfragment" = "xyes"; then
14770
14771printf "%s\n" "#define HAVE_DONT_FRAGMENT 1" >>confdefs.h
14772
14773fi
14774
14775#
14776# Check for tcpi_snd_wnd in struct tcp_info
14777#
14778ac_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
14779#include <linux/tcp.h>
14780#else
14781#include <netinet/tcp.h>
14782#endif
14783
14784"
14785if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_wnd" = xyes
14786then :
14787  iperf3_cv_header_tcp_info_snd_wnd=yes
14788else $as_nop
14789  iperf3_cv_header_tcp_info_snd_wnd=no
14790fi
14791
14792
14793if test "x$iperf3_cv_header_tcp_info_snd_wnd" = "xyes"; then
14794
14795printf "%s\n" "#define HAVE_TCP_INFO_SND_WND 1" >>confdefs.h
14796
14797fi
14798
14799# Check if we need -lrt for clock_gettime
14800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14801printf %s "checking for library containing clock_gettime... " >&6; }
14802if test ${ac_cv_search_clock_gettime+y}
14803then :
14804  printf %s "(cached) " >&6
14805else $as_nop
14806  ac_func_search_save_LIBS=$LIBS
14807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808/* end confdefs.h.  */
14809
14810/* Override any GCC internal prototype to avoid an error.
14811   Use char because int might match the return type of a GCC
14812   builtin and then its argument prototype would still apply.  */
14813char clock_gettime ();
14814int
14815main (void)
14816{
14817return clock_gettime ();
14818  ;
14819  return 0;
14820}
14821_ACEOF
14822for ac_lib in '' rt posix4
14823do
14824  if test -z "$ac_lib"; then
14825    ac_res="none required"
14826  else
14827    ac_res=-l$ac_lib
14828    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14829  fi
14830  if ac_fn_c_try_link "$LINENO"
14831then :
14832  ac_cv_search_clock_gettime=$ac_res
14833fi
14834rm -f core conftest.err conftest.$ac_objext conftest.beam \
14835    conftest$ac_exeext
14836  if test ${ac_cv_search_clock_gettime+y}
14837then :
14838  break
14839fi
14840done
14841if test ${ac_cv_search_clock_gettime+y}
14842then :
14843
14844else $as_nop
14845  ac_cv_search_clock_gettime=no
14846fi
14847rm conftest.$ac_ext
14848LIBS=$ac_func_search_save_LIBS
14849fi
14850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14851printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14852ac_res=$ac_cv_search_clock_gettime
14853if test "$ac_res" != no
14854then :
14855  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14856
14857fi
14858
14859# Check for clock_gettime support
14860ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14861if test "x$ac_cv_func_clock_gettime" = xyes
14862then :
14863  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14864
14865fi
14866
14867
14868ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
14869
14870cat >confcache <<\_ACEOF
14871# This file is a shell script that caches the results of configure
14872# tests run on this system so they can be shared between configure
14873# scripts and configure runs, see configure's option --config-cache.
14874# It is not useful on other systems.  If it contains results you don't
14875# want to keep, you may remove or edit it.
14876#
14877# config.status only pays attention to the cache file if you give it
14878# the --recheck option to rerun configure.
14879#
14880# `ac_cv_env_foo' variables (set or unset) will be overridden when
14881# loading this file, other *unset* `ac_cv_foo' will be assigned the
14882# following values.
14883
14884_ACEOF
14885
14886# The following way of writing the cache mishandles newlines in values,
14887# but we know of no workaround that is simple, portable, and efficient.
14888# So, we kill variables containing newlines.
14889# Ultrix sh set writes to stderr and can't be redirected directly,
14890# and sets the high bit in the cache file unless we assign to the vars.
14891(
14892  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14893    eval ac_val=\$$ac_var
14894    case $ac_val in #(
14895    *${as_nl}*)
14896      case $ac_var in #(
14897      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14898printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14899      esac
14900      case $ac_var in #(
14901      _ | IFS | as_nl) ;; #(
14902      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14903      *) { eval $ac_var=; unset $ac_var;} ;;
14904      esac ;;
14905    esac
14906  done
14907
14908  (set) 2>&1 |
14909    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14910    *${as_nl}ac_space=\ *)
14911      # `set' does not quote correctly, so add quotes: double-quote
14912      # substitution turns \\\\ into \\, and sed turns \\ into \.
14913      sed -n \
14914	"s/'/'\\\\''/g;
14915	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14916      ;; #(
14917    *)
14918      # `set' quotes correctly as required by POSIX, so do not add quotes.
14919      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14920      ;;
14921    esac |
14922    sort
14923) |
14924  sed '
14925     /^ac_cv_env_/b end
14926     t clear
14927     :clear
14928     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14929     t end
14930     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14931     :end' >>confcache
14932if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14933  if test -w "$cache_file"; then
14934    if test "x$cache_file" != "x/dev/null"; then
14935      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14936printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14937      if test ! -f "$cache_file" || test -h "$cache_file"; then
14938	cat confcache >"$cache_file"
14939      else
14940        case $cache_file in #(
14941        */* | ?:*)
14942	  mv -f confcache "$cache_file"$$ &&
14943	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14944        *)
14945	  mv -f confcache "$cache_file" ;;
14946	esac
14947      fi
14948    fi
14949  else
14950    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14951printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14952  fi
14953fi
14954rm -f confcache
14955
14956test "x$prefix" = xNONE && prefix=$ac_default_prefix
14957# Let make expand exec_prefix.
14958test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14959
14960DEFS=-DHAVE_CONFIG_H
14961
14962ac_libobjs=
14963ac_ltlibobjs=
14964U=
14965for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14966  # 1. Remove the extension, and $U if already installed.
14967  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14968  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14969  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14970  #    will be set to the directory where LIBOBJS objects are built.
14971  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14972  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14973done
14974LIBOBJS=$ac_libobjs
14975
14976LTLIBOBJS=$ac_ltlibobjs
14977
14978
14979if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
14980  as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
14981Usually this means the macro was only invoked conditionally." "$LINENO" 5
14982fi
14983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14984printf %s "checking that generated files are newer than configure... " >&6; }
14985   if test -n "$am_sleep_pid"; then
14986     # Hide warnings about reused PIDs.
14987     wait $am_sleep_pid 2>/dev/null
14988   fi
14989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14990printf "%s\n" "done" >&6; }
14991 if test -n "$EXEEXT"; then
14992  am__EXEEXT_TRUE=
14993  am__EXEEXT_FALSE='#'
14994else
14995  am__EXEEXT_TRUE='#'
14996  am__EXEEXT_FALSE=
14997fi
14998
14999if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15000  as_fn_error $? "conditional \"AMDEP\" was never defined.
15001Usually this means the macro was only invoked conditionally." "$LINENO" 5
15002fi
15003if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15004  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15005Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006fi
15007if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15008  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15009Usually this means the macro was only invoked conditionally." "$LINENO" 5
15010fi
15011if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15012  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15013Usually this means the macro was only invoked conditionally." "$LINENO" 5
15014fi
15015if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
15016  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
15017Usually this means the macro was only invoked conditionally." "$LINENO" 5
15018fi
15019
15020: "${CONFIG_STATUS=./config.status}"
15021ac_write_fail=0
15022ac_clean_files_save=$ac_clean_files
15023ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15025printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15026as_write_fail=0
15027cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15028#! $SHELL
15029# Generated by $as_me.
15030# Run this file to recreate the current configuration.
15031# Compiler output produced by configure, useful for debugging
15032# configure, is in config.log if it exists.
15033
15034debug=false
15035ac_cs_recheck=false
15036ac_cs_silent=false
15037
15038SHELL=\${CONFIG_SHELL-$SHELL}
15039export SHELL
15040_ASEOF
15041cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15042## -------------------- ##
15043## M4sh Initialization. ##
15044## -------------------- ##
15045
15046# Be more Bourne compatible
15047DUALCASE=1; export DUALCASE # for MKS sh
15048as_nop=:
15049if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15050then :
15051  emulate sh
15052  NULLCMD=:
15053  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15054  # is contrary to our usage.  Disable this feature.
15055  alias -g '${1+"$@"}'='"$@"'
15056  setopt NO_GLOB_SUBST
15057else $as_nop
15058  case `(set -o) 2>/dev/null` in #(
15059  *posix*) :
15060    set -o posix ;; #(
15061  *) :
15062     ;;
15063esac
15064fi
15065
15066
15067
15068# Reset variables that may have inherited troublesome values from
15069# the environment.
15070
15071# IFS needs to be set, to space, tab, and newline, in precisely that order.
15072# (If _AS_PATH_WALK were called with IFS unset, it would have the
15073# side effect of setting IFS to empty, thus disabling word splitting.)
15074# Quoting is to prevent editors from complaining about space-tab.
15075as_nl='
15076'
15077export as_nl
15078IFS=" ""	$as_nl"
15079
15080PS1='$ '
15081PS2='> '
15082PS4='+ '
15083
15084# Ensure predictable behavior from utilities with locale-dependent output.
15085LC_ALL=C
15086export LC_ALL
15087LANGUAGE=C
15088export LANGUAGE
15089
15090# We cannot yet rely on "unset" to work, but we need these variables
15091# to be unset--not just set to an empty or harmless value--now, to
15092# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15093# also avoids known problems related to "unset" and subshell syntax
15094# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15095for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15096do eval test \${$as_var+y} \
15097  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15098done
15099
15100# Ensure that fds 0, 1, and 2 are open.
15101if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15102if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15103if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15104
15105# The user is always right.
15106if ${PATH_SEPARATOR+false} :; then
15107  PATH_SEPARATOR=:
15108  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15109    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15110      PATH_SEPARATOR=';'
15111  }
15112fi
15113
15114
15115# Find who we are.  Look in the path if we contain no directory separator.
15116as_myself=
15117case $0 in #((
15118  *[\\/]* ) as_myself=$0 ;;
15119  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120for as_dir in $PATH
15121do
15122  IFS=$as_save_IFS
15123  case $as_dir in #(((
15124    '') as_dir=./ ;;
15125    */) ;;
15126    *) as_dir=$as_dir/ ;;
15127  esac
15128    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15129  done
15130IFS=$as_save_IFS
15131
15132     ;;
15133esac
15134# We did not find ourselves, most probably we were run as `sh COMMAND'
15135# in which case we are not to be found in the path.
15136if test "x$as_myself" = x; then
15137  as_myself=$0
15138fi
15139if test ! -f "$as_myself"; then
15140  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15141  exit 1
15142fi
15143
15144
15145
15146# as_fn_error STATUS ERROR [LINENO LOG_FD]
15147# ----------------------------------------
15148# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15149# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15150# script with STATUS, using 1 if that was 0.
15151as_fn_error ()
15152{
15153  as_status=$1; test $as_status -eq 0 && as_status=1
15154  if test "$4"; then
15155    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15156    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15157  fi
15158  printf "%s\n" "$as_me: error: $2" >&2
15159  as_fn_exit $as_status
15160} # as_fn_error
15161
15162
15163
15164# as_fn_set_status STATUS
15165# -----------------------
15166# Set $? to STATUS, without forking.
15167as_fn_set_status ()
15168{
15169  return $1
15170} # as_fn_set_status
15171
15172# as_fn_exit STATUS
15173# -----------------
15174# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15175as_fn_exit ()
15176{
15177  set +e
15178  as_fn_set_status $1
15179  exit $1
15180} # as_fn_exit
15181
15182# as_fn_unset VAR
15183# ---------------
15184# Portably unset VAR.
15185as_fn_unset ()
15186{
15187  { eval $1=; unset $1;}
15188}
15189as_unset=as_fn_unset
15190
15191# as_fn_append VAR VALUE
15192# ----------------------
15193# Append the text in VALUE to the end of the definition contained in VAR. Take
15194# advantage of any shell optimizations that allow amortized linear growth over
15195# repeated appends, instead of the typical quadratic growth present in naive
15196# implementations.
15197if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15198then :
15199  eval 'as_fn_append ()
15200  {
15201    eval $1+=\$2
15202  }'
15203else $as_nop
15204  as_fn_append ()
15205  {
15206    eval $1=\$$1\$2
15207  }
15208fi # as_fn_append
15209
15210# as_fn_arith ARG...
15211# ------------------
15212# Perform arithmetic evaluation on the ARGs, and store the result in the
15213# global $as_val. Take advantage of shells that can avoid forks. The arguments
15214# must be portable across $(()) and expr.
15215if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15216then :
15217  eval 'as_fn_arith ()
15218  {
15219    as_val=$(( $* ))
15220  }'
15221else $as_nop
15222  as_fn_arith ()
15223  {
15224    as_val=`expr "$@" || test $? -eq 1`
15225  }
15226fi # as_fn_arith
15227
15228
15229if expr a : '\(a\)' >/dev/null 2>&1 &&
15230   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15231  as_expr=expr
15232else
15233  as_expr=false
15234fi
15235
15236if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15237  as_basename=basename
15238else
15239  as_basename=false
15240fi
15241
15242if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15243  as_dirname=dirname
15244else
15245  as_dirname=false
15246fi
15247
15248as_me=`$as_basename -- "$0" ||
15249$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15250	 X"$0" : 'X\(//\)$' \| \
15251	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15252printf "%s\n" X/"$0" |
15253    sed '/^.*\/\([^/][^/]*\)\/*$/{
15254	    s//\1/
15255	    q
15256	  }
15257	  /^X\/\(\/\/\)$/{
15258	    s//\1/
15259	    q
15260	  }
15261	  /^X\/\(\/\).*/{
15262	    s//\1/
15263	    q
15264	  }
15265	  s/.*/./; q'`
15266
15267# Avoid depending upon Character Ranges.
15268as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15269as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15270as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15271as_cr_digits='0123456789'
15272as_cr_alnum=$as_cr_Letters$as_cr_digits
15273
15274
15275# Determine whether it's possible to make 'echo' print without a newline.
15276# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15277# for compatibility with existing Makefiles.
15278ECHO_C= ECHO_N= ECHO_T=
15279case `echo -n x` in #(((((
15280-n*)
15281  case `echo 'xy\c'` in
15282  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15283  xy)  ECHO_C='\c';;
15284  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15285       ECHO_T='	';;
15286  esac;;
15287*)
15288  ECHO_N='-n';;
15289esac
15290
15291# For backward compatibility with old third-party macros, we provide
15292# the shell variables $as_echo and $as_echo_n.  New code should use
15293# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15294as_echo='printf %s\n'
15295as_echo_n='printf %s'
15296
15297rm -f conf$$ conf$$.exe conf$$.file
15298if test -d conf$$.dir; then
15299  rm -f conf$$.dir/conf$$.file
15300else
15301  rm -f conf$$.dir
15302  mkdir conf$$.dir 2>/dev/null
15303fi
15304if (echo >conf$$.file) 2>/dev/null; then
15305  if ln -s conf$$.file conf$$ 2>/dev/null; then
15306    as_ln_s='ln -s'
15307    # ... but there are two gotchas:
15308    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15309    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15310    # In both cases, we have to default to `cp -pR'.
15311    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15312      as_ln_s='cp -pR'
15313  elif ln conf$$.file conf$$ 2>/dev/null; then
15314    as_ln_s=ln
15315  else
15316    as_ln_s='cp -pR'
15317  fi
15318else
15319  as_ln_s='cp -pR'
15320fi
15321rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15322rmdir conf$$.dir 2>/dev/null
15323
15324
15325# as_fn_mkdir_p
15326# -------------
15327# Create "$as_dir" as a directory, including parents if necessary.
15328as_fn_mkdir_p ()
15329{
15330
15331  case $as_dir in #(
15332  -*) as_dir=./$as_dir;;
15333  esac
15334  test -d "$as_dir" || eval $as_mkdir_p || {
15335    as_dirs=
15336    while :; do
15337      case $as_dir in #(
15338      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15339      *) as_qdir=$as_dir;;
15340      esac
15341      as_dirs="'$as_qdir' $as_dirs"
15342      as_dir=`$as_dirname -- "$as_dir" ||
15343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15344	 X"$as_dir" : 'X\(//\)[^/]' \| \
15345	 X"$as_dir" : 'X\(//\)$' \| \
15346	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15347printf "%s\n" X"$as_dir" |
15348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15349	    s//\1/
15350	    q
15351	  }
15352	  /^X\(\/\/\)[^/].*/{
15353	    s//\1/
15354	    q
15355	  }
15356	  /^X\(\/\/\)$/{
15357	    s//\1/
15358	    q
15359	  }
15360	  /^X\(\/\).*/{
15361	    s//\1/
15362	    q
15363	  }
15364	  s/.*/./; q'`
15365      test -d "$as_dir" && break
15366    done
15367    test -z "$as_dirs" || eval "mkdir $as_dirs"
15368  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15369
15370
15371} # as_fn_mkdir_p
15372if mkdir -p . 2>/dev/null; then
15373  as_mkdir_p='mkdir -p "$as_dir"'
15374else
15375  test -d ./-p && rmdir ./-p
15376  as_mkdir_p=false
15377fi
15378
15379
15380# as_fn_executable_p FILE
15381# -----------------------
15382# Test if FILE is an executable regular file.
15383as_fn_executable_p ()
15384{
15385  test -f "$1" && test -x "$1"
15386} # as_fn_executable_p
15387as_test_x='test -x'
15388as_executable_p=as_fn_executable_p
15389
15390# Sed expression to map a string onto a valid CPP name.
15391as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15392
15393# Sed expression to map a string onto a valid variable name.
15394as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15395
15396
15397exec 6>&1
15398## ----------------------------------- ##
15399## Main body of $CONFIG_STATUS script. ##
15400## ----------------------------------- ##
15401_ASEOF
15402test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15403
15404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405# Save the log message, to keep $0 and so on meaningful, and to
15406# report actual input values of CONFIG_FILES etc. instead of their
15407# values after options handling.
15408ac_log="
15409This file was extended by iperf $as_me 3.11, which was
15410generated by GNU Autoconf 2.71.  Invocation command line was
15411
15412  CONFIG_FILES    = $CONFIG_FILES
15413  CONFIG_HEADERS  = $CONFIG_HEADERS
15414  CONFIG_LINKS    = $CONFIG_LINKS
15415  CONFIG_COMMANDS = $CONFIG_COMMANDS
15416  $ $0 $@
15417
15418on `(hostname || uname -n) 2>/dev/null | sed 1q`
15419"
15420
15421_ACEOF
15422
15423case $ac_config_files in *"
15424"*) set x $ac_config_files; shift; ac_config_files=$*;;
15425esac
15426
15427case $ac_config_headers in *"
15428"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15429esac
15430
15431
15432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15433# Files that config.status was made for.
15434config_files="$ac_config_files"
15435config_headers="$ac_config_headers"
15436config_commands="$ac_config_commands"
15437
15438_ACEOF
15439
15440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441ac_cs_usage="\
15442\`$as_me' instantiates files and other configuration actions
15443from templates according to the current configuration.  Unless the files
15444and actions are specified as TAGs, all are instantiated by default.
15445
15446Usage: $0 [OPTION]... [TAG]...
15447
15448  -h, --help       print this help, then exit
15449  -V, --version    print version number and configuration settings, then exit
15450      --config     print configuration, then exit
15451  -q, --quiet, --silent
15452                   do not print progress messages
15453  -d, --debug      don't remove temporary files
15454      --recheck    update $as_me by reconfiguring in the same conditions
15455      --file=FILE[:TEMPLATE]
15456                   instantiate the configuration file FILE
15457      --header=FILE[:TEMPLATE]
15458                   instantiate the configuration header FILE
15459
15460Configuration files:
15461$config_files
15462
15463Configuration headers:
15464$config_headers
15465
15466Configuration commands:
15467$config_commands
15468
15469Report bugs to <https://github.com/esnet/iperf>.
15470iperf home page: <https://software.es.net/iperf/>."
15471
15472_ACEOF
15473ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15474ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15476ac_cs_config='$ac_cs_config_escaped'
15477ac_cs_version="\\
15478iperf config.status 3.11
15479configured by $0, generated by GNU Autoconf 2.71,
15480  with options \\"\$ac_cs_config\\"
15481
15482Copyright (C) 2021 Free Software Foundation, Inc.
15483This config.status script is free software; the Free Software Foundation
15484gives unlimited permission to copy, distribute and modify it."
15485
15486ac_pwd='$ac_pwd'
15487srcdir='$srcdir'
15488INSTALL='$INSTALL'
15489MKDIR_P='$MKDIR_P'
15490AWK='$AWK'
15491test -n "\$AWK" || AWK=awk
15492_ACEOF
15493
15494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15495# The default lists apply if the user does not specify any file.
15496ac_need_defaults=:
15497while test $# != 0
15498do
15499  case $1 in
15500  --*=?*)
15501    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15502    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15503    ac_shift=:
15504    ;;
15505  --*=)
15506    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15507    ac_optarg=
15508    ac_shift=:
15509    ;;
15510  *)
15511    ac_option=$1
15512    ac_optarg=$2
15513    ac_shift=shift
15514    ;;
15515  esac
15516
15517  case $ac_option in
15518  # Handling of the options.
15519  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15520    ac_cs_recheck=: ;;
15521  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15522    printf "%s\n" "$ac_cs_version"; exit ;;
15523  --config | --confi | --conf | --con | --co | --c )
15524    printf "%s\n" "$ac_cs_config"; exit ;;
15525  --debug | --debu | --deb | --de | --d | -d )
15526    debug=: ;;
15527  --file | --fil | --fi | --f )
15528    $ac_shift
15529    case $ac_optarg in
15530    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15531    '') as_fn_error $? "missing file argument" ;;
15532    esac
15533    as_fn_append CONFIG_FILES " '$ac_optarg'"
15534    ac_need_defaults=false;;
15535  --header | --heade | --head | --hea )
15536    $ac_shift
15537    case $ac_optarg in
15538    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15539    esac
15540    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15541    ac_need_defaults=false;;
15542  --he | --h)
15543    # Conflict between --help and --header
15544    as_fn_error $? "ambiguous option: \`$1'
15545Try \`$0 --help' for more information.";;
15546  --help | --hel | -h )
15547    printf "%s\n" "$ac_cs_usage"; exit ;;
15548  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15549  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15550    ac_cs_silent=: ;;
15551
15552  # This is an error.
15553  -*) as_fn_error $? "unrecognized option: \`$1'
15554Try \`$0 --help' for more information." ;;
15555
15556  *) as_fn_append ac_config_targets " $1"
15557     ac_need_defaults=false ;;
15558
15559  esac
15560  shift
15561done
15562
15563ac_configure_extra_args=
15564
15565if $ac_cs_silent; then
15566  exec 6>/dev/null
15567  ac_configure_extra_args="$ac_configure_extra_args --silent"
15568fi
15569
15570_ACEOF
15571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572if \$ac_cs_recheck; then
15573  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15574  shift
15575  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15576  CONFIG_SHELL='$SHELL'
15577  export CONFIG_SHELL
15578  exec "\$@"
15579fi
15580
15581_ACEOF
15582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583exec 5>>config.log
15584{
15585  echo
15586  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15587## Running $as_me. ##
15588_ASBOX
15589  printf "%s\n" "$ac_log"
15590} >&5
15591
15592_ACEOF
15593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594#
15595# INIT-COMMANDS
15596#
15597AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15598
15599
15600# The HP-UX ksh and POSIX shell print the target directory to stdout
15601# if CDPATH is set.
15602(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15603
15604sed_quote_subst='$sed_quote_subst'
15605double_quote_subst='$double_quote_subst'
15606delay_variable_subst='$delay_variable_subst'
15607macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15608macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15609enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15610enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15611pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15612enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15613shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15614SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15615ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15616PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15617host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15618host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15619host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15620build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15621build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15622build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15623SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15624Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15625GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15626EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15627FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15628LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15629NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15630LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15631max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15632ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15633exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15634lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15635lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15636lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15637lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15638lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15639reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15640reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15641OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15642deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15643file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15644file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15645want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15646DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15647sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15648AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15649AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15650archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15651STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15652RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15653old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15654old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15655old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15656lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15657CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15658CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15659compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15660GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15661lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15662lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15663lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15664lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15665lt_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"`'
15666lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15667nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15668lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15669lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15670objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15671MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15672lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15673lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15674lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15675lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15676lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15677need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15678MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15679DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15680NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15681LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15682OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15683OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15684libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15685shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15686extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15687archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15688enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15689export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15690whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15691compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15692old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15693old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15694archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15695archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15696module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15697module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15698with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15699allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15700no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15701hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15702hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15703hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15704hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15705hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15706hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15707hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15708inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15709link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15710always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15711export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15712exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15713include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15714prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15715postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15716file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15717variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15718need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15719need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15720version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15721runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15722shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15723shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15724libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15725library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15726soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15727install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15728postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15729postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15730finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15731finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15732hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15733sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15734configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15735configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15736hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15737enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15738enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15739enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15740old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15741striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15742
15743LTCC='$LTCC'
15744LTCFLAGS='$LTCFLAGS'
15745compiler='$compiler_DEFAULT'
15746
15747# A function that is used when there is no print builtin or printf.
15748func_fallback_echo ()
15749{
15750  eval 'cat <<_LTECHO_EOF
15751\$1
15752_LTECHO_EOF'
15753}
15754
15755# Quote evaled strings.
15756for var in SHELL \
15757ECHO \
15758PATH_SEPARATOR \
15759SED \
15760GREP \
15761EGREP \
15762FGREP \
15763LD \
15764NM \
15765LN_S \
15766lt_SP2NL \
15767lt_NL2SP \
15768reload_flag \
15769OBJDUMP \
15770deplibs_check_method \
15771file_magic_cmd \
15772file_magic_glob \
15773want_nocaseglob \
15774DLLTOOL \
15775sharedlib_from_linklib_cmd \
15776AR \
15777AR_FLAGS \
15778archiver_list_spec \
15779STRIP \
15780RANLIB \
15781CC \
15782CFLAGS \
15783compiler \
15784lt_cv_sys_global_symbol_pipe \
15785lt_cv_sys_global_symbol_to_cdecl \
15786lt_cv_sys_global_symbol_to_import \
15787lt_cv_sys_global_symbol_to_c_name_address \
15788lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15789lt_cv_nm_interface \
15790nm_file_list_spec \
15791lt_cv_truncate_bin \
15792lt_prog_compiler_no_builtin_flag \
15793lt_prog_compiler_pic \
15794lt_prog_compiler_wl \
15795lt_prog_compiler_static \
15796lt_cv_prog_compiler_c_o \
15797need_locks \
15798MANIFEST_TOOL \
15799DSYMUTIL \
15800NMEDIT \
15801LIPO \
15802OTOOL \
15803OTOOL64 \
15804shrext_cmds \
15805export_dynamic_flag_spec \
15806whole_archive_flag_spec \
15807compiler_needs_object \
15808with_gnu_ld \
15809allow_undefined_flag \
15810no_undefined_flag \
15811hardcode_libdir_flag_spec \
15812hardcode_libdir_separator \
15813exclude_expsyms \
15814include_expsyms \
15815file_list_spec \
15816variables_saved_for_relink \
15817libname_spec \
15818library_names_spec \
15819soname_spec \
15820install_override_mode \
15821finish_eval \
15822old_striplib \
15823striplib; do
15824    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15825    *[\\\\\\\`\\"\\\$]*)
15826      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15827      ;;
15828    *)
15829      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15830      ;;
15831    esac
15832done
15833
15834# Double-quote double-evaled strings.
15835for var in reload_cmds \
15836old_postinstall_cmds \
15837old_postuninstall_cmds \
15838old_archive_cmds \
15839extract_expsyms_cmds \
15840old_archive_from_new_cmds \
15841old_archive_from_expsyms_cmds \
15842archive_cmds \
15843archive_expsym_cmds \
15844module_cmds \
15845module_expsym_cmds \
15846export_symbols_cmds \
15847prelink_cmds \
15848postlink_cmds \
15849postinstall_cmds \
15850postuninstall_cmds \
15851finish_cmds \
15852sys_lib_search_path_spec \
15853configure_time_dlsearch_path \
15854configure_time_lt_sys_library_path; do
15855    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15856    *[\\\\\\\`\\"\\\$]*)
15857      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15858      ;;
15859    *)
15860      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15861      ;;
15862    esac
15863done
15864
15865ac_aux_dir='$ac_aux_dir'
15866
15867# See if we are running on zsh, and set the options that allow our
15868# commands through without removal of \ escapes INIT.
15869if test -n "\${ZSH_VERSION+set}"; then
15870   setopt NO_GLOB_SUBST
15871fi
15872
15873
15874    PACKAGE='$PACKAGE'
15875    VERSION='$VERSION'
15876    RM='$RM'
15877    ofile='$ofile'
15878
15879
15880
15881
15882_ACEOF
15883
15884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15885
15886# Handling of arguments.
15887for ac_config_target in $ac_config_targets
15888do
15889  case $ac_config_target in
15890    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15891    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15892    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
15893    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15894    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15895    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
15896    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15897    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
15898
15899  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15900  esac
15901done
15902
15903
15904# If the user did not use the arguments to specify the items to instantiate,
15905# then the envvar interface is used.  Set only those that are not.
15906# We use the long form for the default assignment because of an extremely
15907# bizarre bug on SunOS 4.1.3.
15908if $ac_need_defaults; then
15909  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15910  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15911  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15912fi
15913
15914# Have a temporary directory for convenience.  Make it in the build tree
15915# simply because there is no reason against having it here, and in addition,
15916# creating and moving files from /tmp can sometimes cause problems.
15917# Hook for its removal unless debugging.
15918# Note that there is a small window in which the directory will not be cleaned:
15919# after its creation but before its name has been assigned to `$tmp'.
15920$debug ||
15921{
15922  tmp= ac_tmp=
15923  trap 'exit_status=$?
15924  : "${ac_tmp:=$tmp}"
15925  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15926' 0
15927  trap 'as_fn_exit 1' 1 2 13 15
15928}
15929# Create a (secure) tmp directory for tmp files.
15930
15931{
15932  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15933  test -d "$tmp"
15934}  ||
15935{
15936  tmp=./conf$$-$RANDOM
15937  (umask 077 && mkdir "$tmp")
15938} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15939ac_tmp=$tmp
15940
15941# Set up the scripts for CONFIG_FILES section.
15942# No need to generate them if there are no CONFIG_FILES.
15943# This happens for instance with `./config.status config.h'.
15944if test -n "$CONFIG_FILES"; then
15945
15946
15947ac_cr=`echo X | tr X '\015'`
15948# On cygwin, bash can eat \r inside `` if the user requested igncr.
15949# But we know of no other shell where ac_cr would be empty at this
15950# point, so we can use a bashism as a fallback.
15951if test "x$ac_cr" = x; then
15952  eval ac_cr=\$\'\\r\'
15953fi
15954ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15955if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15956  ac_cs_awk_cr='\\r'
15957else
15958  ac_cs_awk_cr=$ac_cr
15959fi
15960
15961echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15962_ACEOF
15963
15964
15965{
15966  echo "cat >conf$$subs.awk <<_ACEOF" &&
15967  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15968  echo "_ACEOF"
15969} >conf$$subs.sh ||
15970  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15971ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15972ac_delim='%!_!# '
15973for ac_last_try in false false false false false :; do
15974  . ./conf$$subs.sh ||
15975    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15976
15977  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15978  if test $ac_delim_n = $ac_delim_num; then
15979    break
15980  elif $ac_last_try; then
15981    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15982  else
15983    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15984  fi
15985done
15986rm -f conf$$subs.sh
15987
15988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15989cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15990_ACEOF
15991sed -n '
15992h
15993s/^/S["/; s/!.*/"]=/
15994p
15995g
15996s/^[^!]*!//
15997:repl
15998t repl
15999s/'"$ac_delim"'$//
16000t delim
16001:nl
16002h
16003s/\(.\{148\}\)..*/\1/
16004t more1
16005s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16006p
16007n
16008b repl
16009:more1
16010s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16011p
16012g
16013s/.\{148\}//
16014t nl
16015:delim
16016h
16017s/\(.\{148\}\)..*/\1/
16018t more2
16019s/["\\]/\\&/g; s/^/"/; s/$/"/
16020p
16021b
16022:more2
16023s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16024p
16025g
16026s/.\{148\}//
16027t delim
16028' <conf$$subs.awk | sed '
16029/^[^""]/{
16030  N
16031  s/\n//
16032}
16033' >>$CONFIG_STATUS || ac_write_fail=1
16034rm -f conf$$subs.awk
16035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16036_ACAWK
16037cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16038  for (key in S) S_is_set[key] = 1
16039  FS = ""
16040
16041}
16042{
16043  line = $ 0
16044  nfields = split(line, field, "@")
16045  substed = 0
16046  len = length(field[1])
16047  for (i = 2; i < nfields; i++) {
16048    key = field[i]
16049    keylen = length(key)
16050    if (S_is_set[key]) {
16051      value = S[key]
16052      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16053      len += length(value) + length(field[++i])
16054      substed = 1
16055    } else
16056      len += 1 + keylen
16057  }
16058
16059  print line
16060}
16061
16062_ACAWK
16063_ACEOF
16064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16065if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16066  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16067else
16068  cat
16069fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16070  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16071_ACEOF
16072
16073# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16074# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16075# trailing colons and then remove the whole line if VPATH becomes empty
16076# (actually we leave an empty line to preserve line numbers).
16077if test "x$srcdir" = x.; then
16078  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16079h
16080s///
16081s/^/:/
16082s/[	 ]*$/:/
16083s/:\$(srcdir):/:/g
16084s/:\${srcdir}:/:/g
16085s/:@srcdir@:/:/g
16086s/^:*//
16087s/:*$//
16088x
16089s/\(=[	 ]*\).*/\1/
16090G
16091s/\n//
16092s/^[^=]*=[	 ]*$//
16093}'
16094fi
16095
16096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16097fi # test -n "$CONFIG_FILES"
16098
16099# Set up the scripts for CONFIG_HEADERS section.
16100# No need to generate them if there are no CONFIG_HEADERS.
16101# This happens for instance with `./config.status Makefile'.
16102if test -n "$CONFIG_HEADERS"; then
16103cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16104BEGIN {
16105_ACEOF
16106
16107# Transform confdefs.h into an awk script `defines.awk', embedded as
16108# here-document in config.status, that substitutes the proper values into
16109# config.h.in to produce config.h.
16110
16111# Create a delimiter string that does not exist in confdefs.h, to ease
16112# handling of long lines.
16113ac_delim='%!_!# '
16114for ac_last_try in false false :; do
16115  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16116  if test -z "$ac_tt"; then
16117    break
16118  elif $ac_last_try; then
16119    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16120  else
16121    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16122  fi
16123done
16124
16125# For the awk script, D is an array of macro values keyed by name,
16126# likewise P contains macro parameters if any.  Preserve backslash
16127# newline sequences.
16128
16129ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16130sed -n '
16131s/.\{148\}/&'"$ac_delim"'/g
16132t rset
16133:rset
16134s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16135t def
16136d
16137:def
16138s/\\$//
16139t bsnl
16140s/["\\]/\\&/g
16141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16142D["\1"]=" \3"/p
16143s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16144d
16145:bsnl
16146s/["\\]/\\&/g
16147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16148D["\1"]=" \3\\\\\\n"\\/p
16149t cont
16150s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16151t cont
16152d
16153:cont
16154n
16155s/.\{148\}/&'"$ac_delim"'/g
16156t clear
16157:clear
16158s/\\$//
16159t bsnlc
16160s/["\\]/\\&/g; s/^/"/; s/$/"/p
16161d
16162:bsnlc
16163s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16164b cont
16165' <confdefs.h | sed '
16166s/'"$ac_delim"'/"\\\
16167"/g' >>$CONFIG_STATUS || ac_write_fail=1
16168
16169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16170  for (key in D) D_is_set[key] = 1
16171  FS = ""
16172}
16173/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16174  line = \$ 0
16175  split(line, arg, " ")
16176  if (arg[1] == "#") {
16177    defundef = arg[2]
16178    mac1 = arg[3]
16179  } else {
16180    defundef = substr(arg[1], 2)
16181    mac1 = arg[2]
16182  }
16183  split(mac1, mac2, "(") #)
16184  macro = mac2[1]
16185  prefix = substr(line, 1, index(line, defundef) - 1)
16186  if (D_is_set[macro]) {
16187    # Preserve the white space surrounding the "#".
16188    print prefix "define", macro P[macro] D[macro]
16189    next
16190  } else {
16191    # Replace #undef with comments.  This is necessary, for example,
16192    # in the case of _POSIX_SOURCE, which is predefined and required
16193    # on some systems where configure will not decide to define it.
16194    if (defundef == "undef") {
16195      print "/*", prefix defundef, macro, "*/"
16196      next
16197    }
16198  }
16199}
16200{ print }
16201_ACAWK
16202_ACEOF
16203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16205fi # test -n "$CONFIG_HEADERS"
16206
16207
16208eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16209shift
16210for ac_tag
16211do
16212  case $ac_tag in
16213  :[FHLC]) ac_mode=$ac_tag; continue;;
16214  esac
16215  case $ac_mode$ac_tag in
16216  :[FHL]*:*);;
16217  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16218  :[FH]-) ac_tag=-:-;;
16219  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16220  esac
16221  ac_save_IFS=$IFS
16222  IFS=:
16223  set x $ac_tag
16224  IFS=$ac_save_IFS
16225  shift
16226  ac_file=$1
16227  shift
16228
16229  case $ac_mode in
16230  :L) ac_source=$1;;
16231  :[FH])
16232    ac_file_inputs=
16233    for ac_f
16234    do
16235      case $ac_f in
16236      -) ac_f="$ac_tmp/stdin";;
16237      *) # Look for the file first in the build tree, then in the source tree
16238	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16239	 # because $ac_f cannot contain `:'.
16240	 test -f "$ac_f" ||
16241	   case $ac_f in
16242	   [\\/$]*) false;;
16243	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16244	   esac ||
16245	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16246      esac
16247      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16248      as_fn_append ac_file_inputs " '$ac_f'"
16249    done
16250
16251    # Let's still pretend it is `configure' which instantiates (i.e., don't
16252    # use $as_me), people would be surprised to read:
16253    #    /* config.h.  Generated by config.status.  */
16254    configure_input='Generated from '`
16255	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16256	`' by configure.'
16257    if test x"$ac_file" != x-; then
16258      configure_input="$ac_file.  $configure_input"
16259      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16260printf "%s\n" "$as_me: creating $ac_file" >&6;}
16261    fi
16262    # Neutralize special characters interpreted by sed in replacement strings.
16263    case $configure_input in #(
16264    *\&* | *\|* | *\\* )
16265       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16266       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16267    *) ac_sed_conf_input=$configure_input;;
16268    esac
16269
16270    case $ac_tag in
16271    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16272      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16273    esac
16274    ;;
16275  esac
16276
16277  ac_dir=`$as_dirname -- "$ac_file" ||
16278$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16279	 X"$ac_file" : 'X\(//\)[^/]' \| \
16280	 X"$ac_file" : 'X\(//\)$' \| \
16281	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16282printf "%s\n" X"$ac_file" |
16283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16284	    s//\1/
16285	    q
16286	  }
16287	  /^X\(\/\/\)[^/].*/{
16288	    s//\1/
16289	    q
16290	  }
16291	  /^X\(\/\/\)$/{
16292	    s//\1/
16293	    q
16294	  }
16295	  /^X\(\/\).*/{
16296	    s//\1/
16297	    q
16298	  }
16299	  s/.*/./; q'`
16300  as_dir="$ac_dir"; as_fn_mkdir_p
16301  ac_builddir=.
16302
16303case "$ac_dir" in
16304.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16305*)
16306  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16307  # A ".." for each directory in $ac_dir_suffix.
16308  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16309  case $ac_top_builddir_sub in
16310  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16311  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16312  esac ;;
16313esac
16314ac_abs_top_builddir=$ac_pwd
16315ac_abs_builddir=$ac_pwd$ac_dir_suffix
16316# for backward compatibility:
16317ac_top_builddir=$ac_top_build_prefix
16318
16319case $srcdir in
16320  .)  # We are building in place.
16321    ac_srcdir=.
16322    ac_top_srcdir=$ac_top_builddir_sub
16323    ac_abs_top_srcdir=$ac_pwd ;;
16324  [\\/]* | ?:[\\/]* )  # Absolute name.
16325    ac_srcdir=$srcdir$ac_dir_suffix;
16326    ac_top_srcdir=$srcdir
16327    ac_abs_top_srcdir=$srcdir ;;
16328  *) # Relative name.
16329    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16330    ac_top_srcdir=$ac_top_build_prefix$srcdir
16331    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16332esac
16333ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16334
16335
16336  case $ac_mode in
16337  :F)
16338  #
16339  # CONFIG_FILE
16340  #
16341
16342  case $INSTALL in
16343  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16344  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16345  esac
16346  ac_MKDIR_P=$MKDIR_P
16347  case $MKDIR_P in
16348  [\\/$]* | ?:[\\/]* ) ;;
16349  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16350  esac
16351_ACEOF
16352
16353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16354# If the template does not know about datarootdir, expand it.
16355# FIXME: This hack should be removed a few years after 2.60.
16356ac_datarootdir_hack=; ac_datarootdir_seen=
16357ac_sed_dataroot='
16358/datarootdir/ {
16359  p
16360  q
16361}
16362/@datadir@/p
16363/@docdir@/p
16364/@infodir@/p
16365/@localedir@/p
16366/@mandir@/p'
16367case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16368*datarootdir*) ac_datarootdir_seen=yes;;
16369*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16371printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16372_ACEOF
16373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16374  ac_datarootdir_hack='
16375  s&@datadir@&$datadir&g
16376  s&@docdir@&$docdir&g
16377  s&@infodir@&$infodir&g
16378  s&@localedir@&$localedir&g
16379  s&@mandir@&$mandir&g
16380  s&\\\${datarootdir}&$datarootdir&g' ;;
16381esac
16382_ACEOF
16383
16384# Neutralize VPATH when `$srcdir' = `.'.
16385# Shell code in configure.ac might set extrasub.
16386# FIXME: do we really want to maintain this feature?
16387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16388ac_sed_extra="$ac_vpsub
16389$extrasub
16390_ACEOF
16391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16392:t
16393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16394s|@configure_input@|$ac_sed_conf_input|;t t
16395s&@top_builddir@&$ac_top_builddir_sub&;t t
16396s&@top_build_prefix@&$ac_top_build_prefix&;t t
16397s&@srcdir@&$ac_srcdir&;t t
16398s&@abs_srcdir@&$ac_abs_srcdir&;t t
16399s&@top_srcdir@&$ac_top_srcdir&;t t
16400s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16401s&@builddir@&$ac_builddir&;t t
16402s&@abs_builddir@&$ac_abs_builddir&;t t
16403s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16404s&@INSTALL@&$ac_INSTALL&;t t
16405s&@MKDIR_P@&$ac_MKDIR_P&;t t
16406$ac_datarootdir_hack
16407"
16408eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16409  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16410
16411test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16412  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16413  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16414      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16416which seems to be undefined.  Please make sure it is defined" >&5
16417printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16418which seems to be undefined.  Please make sure it is defined" >&2;}
16419
16420  rm -f "$ac_tmp/stdin"
16421  case $ac_file in
16422  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16423  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16424  esac \
16425  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16426 ;;
16427  :H)
16428  #
16429  # CONFIG_HEADER
16430  #
16431  if test x"$ac_file" != x-; then
16432    {
16433      printf "%s\n" "/* $configure_input  */" >&1 \
16434      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16435    } >"$ac_tmp/config.h" \
16436      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16437    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16438      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16439printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16440    else
16441      rm -f "$ac_file"
16442      mv "$ac_tmp/config.h" "$ac_file" \
16443	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16444    fi
16445  else
16446    printf "%s\n" "/* $configure_input  */" >&1 \
16447      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16448      || as_fn_error $? "could not create -" "$LINENO" 5
16449  fi
16450# Compute "$ac_file"'s index in $config_headers.
16451_am_arg="$ac_file"
16452_am_stamp_count=1
16453for _am_header in $config_headers :; do
16454  case $_am_header in
16455    $_am_arg | $_am_arg:* )
16456      break ;;
16457    * )
16458      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16459  esac
16460done
16461echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16462$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16463	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16464	 X"$_am_arg" : 'X\(//\)$' \| \
16465	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16466printf "%s\n" X"$_am_arg" |
16467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16468	    s//\1/
16469	    q
16470	  }
16471	  /^X\(\/\/\)[^/].*/{
16472	    s//\1/
16473	    q
16474	  }
16475	  /^X\(\/\/\)$/{
16476	    s//\1/
16477	    q
16478	  }
16479	  /^X\(\/\).*/{
16480	    s//\1/
16481	    q
16482	  }
16483	  s/.*/./; q'`/stamp-h$_am_stamp_count
16484 ;;
16485
16486  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16487printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16488 ;;
16489  esac
16490
16491
16492  case $ac_file$ac_mode in
16493    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16494  # Older Autoconf quotes --file arguments for eval, but not when files
16495  # are listed without --file.  Let's play safe and only enable the eval
16496  # if we detect the quoting.
16497  # TODO: see whether this extra hack can be removed once we start
16498  # requiring Autoconf 2.70 or later.
16499  case $CONFIG_FILES in #(
16500  *\'*) :
16501    eval set x "$CONFIG_FILES" ;; #(
16502  *) :
16503    set x $CONFIG_FILES ;; #(
16504  *) :
16505     ;;
16506esac
16507  shift
16508  # Used to flag and report bootstrapping failures.
16509  am_rc=0
16510  for am_mf
16511  do
16512    # Strip MF so we end up with the name of the file.
16513    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16514    # Check whether this is an Automake generated Makefile which includes
16515    # dependency-tracking related rules and includes.
16516    # Grep'ing the whole file directly is not great: AIX grep has a line
16517    # limit of 2048, but all sed's we know have understand at least 4000.
16518    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16519      || continue
16520    am_dirpart=`$as_dirname -- "$am_mf" ||
16521$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16522	 X"$am_mf" : 'X\(//\)[^/]' \| \
16523	 X"$am_mf" : 'X\(//\)$' \| \
16524	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16525printf "%s\n" X"$am_mf" |
16526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16527	    s//\1/
16528	    q
16529	  }
16530	  /^X\(\/\/\)[^/].*/{
16531	    s//\1/
16532	    q
16533	  }
16534	  /^X\(\/\/\)$/{
16535	    s//\1/
16536	    q
16537	  }
16538	  /^X\(\/\).*/{
16539	    s//\1/
16540	    q
16541	  }
16542	  s/.*/./; q'`
16543    am_filepart=`$as_basename -- "$am_mf" ||
16544$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16545	 X"$am_mf" : 'X\(//\)$' \| \
16546	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16547printf "%s\n" X/"$am_mf" |
16548    sed '/^.*\/\([^/][^/]*\)\/*$/{
16549	    s//\1/
16550	    q
16551	  }
16552	  /^X\/\(\/\/\)$/{
16553	    s//\1/
16554	    q
16555	  }
16556	  /^X\/\(\/\).*/{
16557	    s//\1/
16558	    q
16559	  }
16560	  s/.*/./; q'`
16561    { echo "$as_me:$LINENO: cd "$am_dirpart" \
16562      && sed -e '/# am--include-marker/d' "$am_filepart" \
16563        | $MAKE -f - am--depfiles" >&5
16564   (cd "$am_dirpart" \
16565      && sed -e '/# am--include-marker/d' "$am_filepart" \
16566        | $MAKE -f - am--depfiles) >&5 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } || am_rc=$?
16570  done
16571  if test $am_rc -ne 0; then
16572    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16573printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16574as_fn_error $? "Something went wrong bootstrapping makefile fragments
16575    for automatic dependency tracking.  If GNU make was not used, consider
16576    re-running the configure script with MAKE=\"gmake\" (or whatever is
16577    necessary).  You can also try re-running configure with the
16578    '--disable-dependency-tracking' option to at least be able to build
16579    the package (albeit without support for automatic dependency tracking).
16580See \`config.log' for more details" "$LINENO" 5; }
16581  fi
16582  { am_dirpart=; unset am_dirpart;}
16583  { am_filepart=; unset am_filepart;}
16584  { am_mf=; unset am_mf;}
16585  { am_rc=; unset am_rc;}
16586  rm -f conftest-deps.mk
16587}
16588 ;;
16589    "libtool":C)
16590
16591    # See if we are running on zsh, and set the options that allow our
16592    # commands through without removal of \ escapes.
16593    if test -n "${ZSH_VERSION+set}"; then
16594      setopt NO_GLOB_SUBST
16595    fi
16596
16597    cfgfile=${ofile}T
16598    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16599    $RM "$cfgfile"
16600
16601    cat <<_LT_EOF >> "$cfgfile"
16602#! $SHELL
16603# Generated automatically by $as_me ($PACKAGE) $VERSION
16604# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16605# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16606
16607# Provide generalized library-building support services.
16608# Written by Gordon Matzigkeit, 1996
16609
16610# Copyright (C) 2014 Free Software Foundation, Inc.
16611# This is free software; see the source for copying conditions.  There is NO
16612# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16613
16614# GNU Libtool is free software; you can redistribute it and/or modify
16615# it under the terms of the GNU General Public License as published by
16616# the Free Software Foundation; either version 2 of of the License, or
16617# (at your option) any later version.
16618#
16619# As a special exception to the GNU General Public License, if you
16620# distribute this file as part of a program or library that is built
16621# using GNU Libtool, you may include this file under the  same
16622# distribution terms that you use for the rest of that program.
16623#
16624# GNU Libtool is distributed in the hope that it will be useful, but
16625# WITHOUT ANY WARRANTY; without even the implied warranty of
16626# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16627# GNU General Public License for more details.
16628#
16629# You should have received a copy of the GNU General Public License
16630# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16631
16632
16633# The names of the tagged configurations supported by this script.
16634available_tags=''
16635
16636# Configured defaults for sys_lib_dlsearch_path munging.
16637: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16638
16639# ### BEGIN LIBTOOL CONFIG
16640
16641# Which release of libtool.m4 was used?
16642macro_version=$macro_version
16643macro_revision=$macro_revision
16644
16645# Whether or not to build shared libraries.
16646build_libtool_libs=$enable_shared
16647
16648# Whether or not to build static libraries.
16649build_old_libs=$enable_static
16650
16651# What type of objects to build.
16652pic_mode=$pic_mode
16653
16654# Whether or not to optimize for fast installation.
16655fast_install=$enable_fast_install
16656
16657# Shared archive member basename,for filename based shared library versioning on AIX.
16658shared_archive_member_spec=$shared_archive_member_spec
16659
16660# Shell to use when invoking shell scripts.
16661SHELL=$lt_SHELL
16662
16663# An echo program that protects backslashes.
16664ECHO=$lt_ECHO
16665
16666# The PATH separator for the build system.
16667PATH_SEPARATOR=$lt_PATH_SEPARATOR
16668
16669# The host system.
16670host_alias=$host_alias
16671host=$host
16672host_os=$host_os
16673
16674# The build system.
16675build_alias=$build_alias
16676build=$build
16677build_os=$build_os
16678
16679# A sed program that does not truncate output.
16680SED=$lt_SED
16681
16682# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16683Xsed="\$SED -e 1s/^X//"
16684
16685# A grep program that handles long lines.
16686GREP=$lt_GREP
16687
16688# An ERE matcher.
16689EGREP=$lt_EGREP
16690
16691# A literal string matcher.
16692FGREP=$lt_FGREP
16693
16694# A BSD- or MS-compatible name lister.
16695NM=$lt_NM
16696
16697# Whether we need soft or hard links.
16698LN_S=$lt_LN_S
16699
16700# What is the maximum length of a command?
16701max_cmd_len=$max_cmd_len
16702
16703# Object file suffix (normally "o").
16704objext=$ac_objext
16705
16706# Executable file suffix (normally "").
16707exeext=$exeext
16708
16709# whether the shell understands "unset".
16710lt_unset=$lt_unset
16711
16712# turn spaces into newlines.
16713SP2NL=$lt_lt_SP2NL
16714
16715# turn newlines into spaces.
16716NL2SP=$lt_lt_NL2SP
16717
16718# convert \$build file names to \$host format.
16719to_host_file_cmd=$lt_cv_to_host_file_cmd
16720
16721# convert \$build files to toolchain format.
16722to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16723
16724# An object symbol dumper.
16725OBJDUMP=$lt_OBJDUMP
16726
16727# Method to check whether dependent libraries are shared objects.
16728deplibs_check_method=$lt_deplibs_check_method
16729
16730# Command to use when deplibs_check_method = "file_magic".
16731file_magic_cmd=$lt_file_magic_cmd
16732
16733# How to find potential files when deplibs_check_method = "file_magic".
16734file_magic_glob=$lt_file_magic_glob
16735
16736# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16737want_nocaseglob=$lt_want_nocaseglob
16738
16739# DLL creation program.
16740DLLTOOL=$lt_DLLTOOL
16741
16742# Command to associate shared and link libraries.
16743sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16744
16745# The archiver.
16746AR=$lt_AR
16747
16748# Flags to create an archive.
16749AR_FLAGS=$lt_AR_FLAGS
16750
16751# How to feed a file listing to the archiver.
16752archiver_list_spec=$lt_archiver_list_spec
16753
16754# A symbol stripping program.
16755STRIP=$lt_STRIP
16756
16757# Commands used to install an old-style archive.
16758RANLIB=$lt_RANLIB
16759old_postinstall_cmds=$lt_old_postinstall_cmds
16760old_postuninstall_cmds=$lt_old_postuninstall_cmds
16761
16762# Whether to use a lock for old archive extraction.
16763lock_old_archive_extraction=$lock_old_archive_extraction
16764
16765# A C compiler.
16766LTCC=$lt_CC
16767
16768# LTCC compiler flags.
16769LTCFLAGS=$lt_CFLAGS
16770
16771# Take the output of nm and produce a listing of raw symbols and C names.
16772global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16773
16774# Transform the output of nm in a proper C declaration.
16775global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16776
16777# Transform the output of nm into a list of symbols to manually relocate.
16778global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16779
16780# Transform the output of nm in a C name address pair.
16781global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16782
16783# Transform the output of nm in a C name address pair when lib prefix is needed.
16784global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16785
16786# The name lister interface.
16787nm_interface=$lt_lt_cv_nm_interface
16788
16789# Specify filename containing input files for \$NM.
16790nm_file_list_spec=$lt_nm_file_list_spec
16791
16792# The root where to search for dependent libraries,and where our libraries should be installed.
16793lt_sysroot=$lt_sysroot
16794
16795# Command to truncate a binary pipe.
16796lt_truncate_bin=$lt_lt_cv_truncate_bin
16797
16798# The name of the directory that contains temporary libtool files.
16799objdir=$objdir
16800
16801# Used to examine libraries when file_magic_cmd begins with "file".
16802MAGIC_CMD=$MAGIC_CMD
16803
16804# Must we lock files when doing compilation?
16805need_locks=$lt_need_locks
16806
16807# Manifest tool.
16808MANIFEST_TOOL=$lt_MANIFEST_TOOL
16809
16810# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16811DSYMUTIL=$lt_DSYMUTIL
16812
16813# Tool to change global to local symbols on Mac OS X.
16814NMEDIT=$lt_NMEDIT
16815
16816# Tool to manipulate fat objects and archives on Mac OS X.
16817LIPO=$lt_LIPO
16818
16819# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16820OTOOL=$lt_OTOOL
16821
16822# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16823OTOOL64=$lt_OTOOL64
16824
16825# Old archive suffix (normally "a").
16826libext=$libext
16827
16828# Shared library suffix (normally ".so").
16829shrext_cmds=$lt_shrext_cmds
16830
16831# The commands to extract the exported symbol list from a shared archive.
16832extract_expsyms_cmds=$lt_extract_expsyms_cmds
16833
16834# Variables whose values should be saved in libtool wrapper scripts and
16835# restored at link time.
16836variables_saved_for_relink=$lt_variables_saved_for_relink
16837
16838# Do we need the "lib" prefix for modules?
16839need_lib_prefix=$need_lib_prefix
16840
16841# Do we need a version for libraries?
16842need_version=$need_version
16843
16844# Library versioning type.
16845version_type=$version_type
16846
16847# Shared library runtime path variable.
16848runpath_var=$runpath_var
16849
16850# Shared library path variable.
16851shlibpath_var=$shlibpath_var
16852
16853# Is shlibpath searched before the hard-coded library search path?
16854shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16855
16856# Format of library name prefix.
16857libname_spec=$lt_libname_spec
16858
16859# List of archive names.  First name is the real one, the rest are links.
16860# The last name is the one that the linker finds with -lNAME
16861library_names_spec=$lt_library_names_spec
16862
16863# The coded name of the library, if different from the real name.
16864soname_spec=$lt_soname_spec
16865
16866# Permission mode override for installation of shared libraries.
16867install_override_mode=$lt_install_override_mode
16868
16869# Command to use after installation of a shared archive.
16870postinstall_cmds=$lt_postinstall_cmds
16871
16872# Command to use after uninstallation of a shared archive.
16873postuninstall_cmds=$lt_postuninstall_cmds
16874
16875# Commands used to finish a libtool library installation in a directory.
16876finish_cmds=$lt_finish_cmds
16877
16878# As "finish_cmds", except a single script fragment to be evaled but
16879# not shown.
16880finish_eval=$lt_finish_eval
16881
16882# Whether we should hardcode library paths into libraries.
16883hardcode_into_libs=$hardcode_into_libs
16884
16885# Compile-time system search path for libraries.
16886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16887
16888# Detected run-time system search path for libraries.
16889sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16890
16891# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16892configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16893
16894# Whether dlopen is supported.
16895dlopen_support=$enable_dlopen
16896
16897# Whether dlopen of programs is supported.
16898dlopen_self=$enable_dlopen_self
16899
16900# Whether dlopen of statically linked programs is supported.
16901dlopen_self_static=$enable_dlopen_self_static
16902
16903# Commands to strip libraries.
16904old_striplib=$lt_old_striplib
16905striplib=$lt_striplib
16906
16907
16908# The linker used to build libraries.
16909LD=$lt_LD
16910
16911# How to create reloadable object files.
16912reload_flag=$lt_reload_flag
16913reload_cmds=$lt_reload_cmds
16914
16915# Commands used to build an old-style archive.
16916old_archive_cmds=$lt_old_archive_cmds
16917
16918# A language specific compiler.
16919CC=$lt_compiler
16920
16921# Is the compiler the GNU compiler?
16922with_gcc=$GCC
16923
16924# Compiler flag to turn off builtin functions.
16925no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16926
16927# Additional compiler flags for building library objects.
16928pic_flag=$lt_lt_prog_compiler_pic
16929
16930# How to pass a linker flag through the compiler.
16931wl=$lt_lt_prog_compiler_wl
16932
16933# Compiler flag to prevent dynamic linking.
16934link_static_flag=$lt_lt_prog_compiler_static
16935
16936# Does compiler simultaneously support -c and -o options?
16937compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16938
16939# Whether or not to add -lc for building shared libraries.
16940build_libtool_need_lc=$archive_cmds_need_lc
16941
16942# Whether or not to disallow shared libs when runtime libs are static.
16943allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16944
16945# Compiler flag to allow reflexive dlopens.
16946export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16947
16948# Compiler flag to generate shared objects directly from archives.
16949whole_archive_flag_spec=$lt_whole_archive_flag_spec
16950
16951# Whether the compiler copes with passing no objects directly.
16952compiler_needs_object=$lt_compiler_needs_object
16953
16954# Create an old-style archive from a shared archive.
16955old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16956
16957# Create a temporary old-style archive to link instead of a shared archive.
16958old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16959
16960# Commands used to build a shared archive.
16961archive_cmds=$lt_archive_cmds
16962archive_expsym_cmds=$lt_archive_expsym_cmds
16963
16964# Commands used to build a loadable module if different from building
16965# a shared archive.
16966module_cmds=$lt_module_cmds
16967module_expsym_cmds=$lt_module_expsym_cmds
16968
16969# Whether we are building with GNU ld or not.
16970with_gnu_ld=$lt_with_gnu_ld
16971
16972# Flag that allows shared libraries with undefined symbols to be built.
16973allow_undefined_flag=$lt_allow_undefined_flag
16974
16975# Flag that enforces no undefined symbols.
16976no_undefined_flag=$lt_no_undefined_flag
16977
16978# Flag to hardcode \$libdir into a binary during linking.
16979# This must work even if \$libdir does not exist
16980hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16981
16982# Whether we need a single "-rpath" flag with a separated argument.
16983hardcode_libdir_separator=$lt_hardcode_libdir_separator
16984
16985# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16986# DIR into the resulting binary.
16987hardcode_direct=$hardcode_direct
16988
16989# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16990# DIR into the resulting binary and the resulting library dependency is
16991# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16992# library is relocated.
16993hardcode_direct_absolute=$hardcode_direct_absolute
16994
16995# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16996# into the resulting binary.
16997hardcode_minus_L=$hardcode_minus_L
16998
16999# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17000# into the resulting binary.
17001hardcode_shlibpath_var=$hardcode_shlibpath_var
17002
17003# Set to "yes" if building a shared library automatically hardcodes DIR
17004# into the library and all subsequent libraries and executables linked
17005# against it.
17006hardcode_automatic=$hardcode_automatic
17007
17008# Set to yes if linker adds runtime paths of dependent libraries
17009# to runtime path list.
17010inherit_rpath=$inherit_rpath
17011
17012# Whether libtool must link a program against all its dependency libraries.
17013link_all_deplibs=$link_all_deplibs
17014
17015# Set to "yes" if exported symbols are required.
17016always_export_symbols=$always_export_symbols
17017
17018# The commands to list exported symbols.
17019export_symbols_cmds=$lt_export_symbols_cmds
17020
17021# Symbols that should not be listed in the preloaded symbols.
17022exclude_expsyms=$lt_exclude_expsyms
17023
17024# Symbols that must always be exported.
17025include_expsyms=$lt_include_expsyms
17026
17027# Commands necessary for linking programs (against libraries) with templates.
17028prelink_cmds=$lt_prelink_cmds
17029
17030# Commands necessary for finishing linking programs.
17031postlink_cmds=$lt_postlink_cmds
17032
17033# Specify filename containing input files.
17034file_list_spec=$lt_file_list_spec
17035
17036# How to hardcode a shared library path into an executable.
17037hardcode_action=$hardcode_action
17038
17039# ### END LIBTOOL CONFIG
17040
17041_LT_EOF
17042
17043    cat <<'_LT_EOF' >> "$cfgfile"
17044
17045# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17046
17047# func_munge_path_list VARIABLE PATH
17048# -----------------------------------
17049# VARIABLE is name of variable containing _space_ separated list of
17050# directories to be munged by the contents of PATH, which is string
17051# having a format:
17052# "DIR[:DIR]:"
17053#       string "DIR[ DIR]" will be prepended to VARIABLE
17054# ":DIR[:DIR]"
17055#       string "DIR[ DIR]" will be appended to VARIABLE
17056# "DIRP[:DIRP]::[DIRA:]DIRA"
17057#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17058#       "DIRA[ DIRA]" will be appended to VARIABLE
17059# "DIR[:DIR]"
17060#       VARIABLE will be replaced by "DIR[ DIR]"
17061func_munge_path_list ()
17062{
17063    case x$2 in
17064    x)
17065        ;;
17066    *:)
17067        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17068        ;;
17069    x:*)
17070        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17071        ;;
17072    *::*)
17073        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17074        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17075        ;;
17076    *)
17077        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17078        ;;
17079    esac
17080}
17081
17082
17083# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17084func_cc_basename ()
17085{
17086    for cc_temp in $*""; do
17087      case $cc_temp in
17088        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17089        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17090        \-*) ;;
17091        *) break;;
17092      esac
17093    done
17094    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17095}
17096
17097
17098# ### END FUNCTIONS SHARED WITH CONFIGURE
17099
17100_LT_EOF
17101
17102  case $host_os in
17103  aix3*)
17104    cat <<\_LT_EOF >> "$cfgfile"
17105# AIX sometimes has problems with the GCC collect2 program.  For some
17106# reason, if we set the COLLECT_NAMES environment variable, the problems
17107# vanish in a puff of smoke.
17108if test set != "${COLLECT_NAMES+set}"; then
17109  COLLECT_NAMES=
17110  export COLLECT_NAMES
17111fi
17112_LT_EOF
17113    ;;
17114  esac
17115
17116
17117
17118ltmain=$ac_aux_dir/ltmain.sh
17119
17120
17121  # We use sed instead of cat because bash on DJGPP gets confused if
17122  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17123  # text mode, it properly converts lines to CR/LF.  This bash problem
17124  # is reportedly fixed, but why not run on old versions too?
17125  sed '$q' "$ltmain" >> "$cfgfile" \
17126     || (rm -f "$cfgfile"; exit 1)
17127
17128   mv -f "$cfgfile" "$ofile" ||
17129    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17130  chmod +x "$ofile"
17131
17132 ;;
17133
17134  esac
17135done # for ac_tag
17136
17137
17138as_fn_exit 0
17139_ACEOF
17140ac_clean_files=$ac_clean_files_save
17141
17142test $ac_write_fail = 0 ||
17143  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17144
17145
17146# configure is writing to config.log, and then calls config.status.
17147# config.status does its own redirection, appending to config.log.
17148# Unfortunately, on DOS this fails, as config.log is still kept open
17149# by configure, so config.status won't be able to write to it; its
17150# output is simply discarded.  So we exec the FD to /dev/null,
17151# effectively closing config.log, so it can be properly (re)opened and
17152# appended to by config.status.  When coming back to configure, we
17153# need to make the FD available again.
17154if test "$no_create" != yes; then
17155  ac_cs_success=:
17156  ac_config_status_args=
17157  test "$silent" = yes &&
17158    ac_config_status_args="$ac_config_status_args --quiet"
17159  exec 5>/dev/null
17160  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17161  exec 5>>config.log
17162  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17163  # would make configure fail if this is the last instruction.
17164  $ac_cs_success || as_fn_exit 1
17165fi
17166if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17168printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17169fi
17170
17171
17172