• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for iperf 3.10.
4#
5# Report bugs to <https://github.com/esnet/iperf>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://github.com/esnet/iperf about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='iperf'
623PACKAGE_TARNAME='iperf'
624PACKAGE_VERSION='3.10'
625PACKAGE_STRING='iperf 3.10'
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
665CPP
666OPENSSL_LDFLAGS
667OPENSSL_LIBS
668OPENSSL_INCLUDES
669PKG_CONFIG
670ENABLE_PROFILING_FALSE
671ENABLE_PROFILING_TRUE
672MAINT
673MAINTAINER_MODE_FALSE
674MAINTAINER_MODE_TRUE
675LT_SYS_LIBRARY_PATH
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685DLLTOOL
686OBJDUMP
687LN_S
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LD
692FGREP
693EGREP
694GREP
695SED
696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
699am__nodep
700AMDEPBACKSLASH
701AMDEP_FALSE
702AMDEP_TRUE
703am__include
704DEPDIR
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
720LIBTOOL
721AM_BACKSLASH
722AM_DEFAULT_VERBOSITY
723AM_DEFAULT_V
724AM_V
725am__untar
726am__tar
727AMTAR
728am__leading_dot
729SET_MAKE
730AWK
731mkdir_p
732MKDIR_P
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
748ENABLE_STATIC_BIN_FALSE
749ENABLE_STATIC_BIN_TRUE
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769runstatedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL
789am__quote'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_static_bin
794enable_silent_rules
795enable_shared
796enable_static
797with_pic
798enable_fast_install
799with_aix_soname
800enable_dependency_tracking
801with_gnu_ld
802with_sysroot
803enable_libtool_lock
804enable_maintainer_mode
805enable_profiling
806with_sctp
807with_openssl
808'
809      ac_precious_vars='build_alias
810host_alias
811target_alias
812CC
813CFLAGS
814LDFLAGS
815LIBS
816CPPFLAGS
817LT_SYS_LIBRARY_PATH
818CPP'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857runstatedir='${localstatedir}/run'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874  # If the previous option needs an argument, assign it.
875  if test -n "$ac_prev"; then
876    eval $ac_prev=\$ac_option
877    ac_prev=
878    continue
879  fi
880
881  case $ac_option in
882  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883  *=)   ac_optarg= ;;
884  *)    ac_optarg=yes ;;
885  esac
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error $? "invalid feature name: \`$ac_useropt'"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=no ;;
938
939  -docdir | --docdir | --docdi | --doc | --do)
940    ac_prev=docdir ;;
941  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942    docdir=$ac_optarg ;;
943
944  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945    ac_prev=dvidir ;;
946  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947    dvidir=$ac_optarg ;;
948
949  -enable-* | --enable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: \`$ac_useropt'"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=\$ac_optarg ;;
964
965  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967  | --exec | --exe | --ex)
968    ac_prev=exec_prefix ;;
969  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971  | --exec=* | --exe=* | --ex=*)
972    exec_prefix=$ac_optarg ;;
973
974  -gas | --gas | --ga | --g)
975    # Obsolete; use --with-gas.
976    with_gas=yes ;;
977
978  -help | --help | --hel | --he | -h)
979    ac_init_help=long ;;
980  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981    ac_init_help=recursive ;;
982  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983    ac_init_help=short ;;
984
985  -host | --host | --hos | --ho)
986    ac_prev=host_alias ;;
987  -host=* | --host=* | --hos=* | --ho=*)
988    host_alias=$ac_optarg ;;
989
990  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991    ac_prev=htmldir ;;
992  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993  | --ht=*)
994    htmldir=$ac_optarg ;;
995
996  -includedir | --includedir | --includedi | --included | --include \
997  | --includ | --inclu | --incl | --inc)
998    ac_prev=includedir ;;
999  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001    includedir=$ac_optarg ;;
1002
1003  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004    ac_prev=infodir ;;
1005  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006    infodir=$ac_optarg ;;
1007
1008  -libdir | --libdir | --libdi | --libd)
1009    ac_prev=libdir ;;
1010  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011    libdir=$ac_optarg ;;
1012
1013  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014  | --libexe | --libex | --libe)
1015    ac_prev=libexecdir ;;
1016  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017  | --libexe=* | --libex=* | --libe=*)
1018    libexecdir=$ac_optarg ;;
1019
1020  -localedir | --localedir | --localedi | --localed | --locale)
1021    ac_prev=localedir ;;
1022  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023    localedir=$ac_optarg ;;
1024
1025  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026  | --localstate | --localstat | --localsta | --localst | --locals)
1027    ac_prev=localstatedir ;;
1028  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030    localstatedir=$ac_optarg ;;
1031
1032  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033    ac_prev=mandir ;;
1034  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035    mandir=$ac_optarg ;;
1036
1037  -nfp | --nfp | --nf)
1038    # Obsolete; use --without-fp.
1039    with_fp=no ;;
1040
1041  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042  | --no-cr | --no-c | -n)
1043    no_create=yes ;;
1044
1045  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047    no_recursion=yes ;;
1048
1049  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051  | --oldin | --oldi | --old | --ol | --o)
1052    ac_prev=oldincludedir ;;
1053  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056    oldincludedir=$ac_optarg ;;
1057
1058  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059    ac_prev=prefix ;;
1060  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061    prefix=$ac_optarg ;;
1062
1063  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064  | --program-pre | --program-pr | --program-p)
1065    ac_prev=program_prefix ;;
1066  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068    program_prefix=$ac_optarg ;;
1069
1070  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071  | --program-suf | --program-su | --program-s)
1072    ac_prev=program_suffix ;;
1073  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075    program_suffix=$ac_optarg ;;
1076
1077  -program-transform-name | --program-transform-name \
1078  | --program-transform-nam | --program-transform-na \
1079  | --program-transform-n | --program-transform- \
1080  | --program-transform | --program-transfor \
1081  | --program-transfo | --program-transf \
1082  | --program-trans | --program-tran \
1083  | --progr-tra | --program-tr | --program-t)
1084    ac_prev=program_transform_name ;;
1085  -program-transform-name=* | --program-transform-name=* \
1086  | --program-transform-nam=* | --program-transform-na=* \
1087  | --program-transform-n=* | --program-transform-=* \
1088  | --program-transform=* | --program-transfor=* \
1089  | --program-transfo=* | --program-transf=* \
1090  | --program-trans=* | --program-tran=* \
1091  | --progr-tra=* | --program-tr=* | --program-t=*)
1092    program_transform_name=$ac_optarg ;;
1093
1094  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095    ac_prev=pdfdir ;;
1096  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097    pdfdir=$ac_optarg ;;
1098
1099  -psdir | --psdir | --psdi | --psd | --ps)
1100    ac_prev=psdir ;;
1101  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102    psdir=$ac_optarg ;;
1103
1104  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105  | -silent | --silent | --silen | --sile | --sil)
1106    silent=yes ;;
1107
1108  -runstatedir | --runstatedir | --runstatedi | --runstated \
1109  | --runstate | --runstat | --runsta | --runst | --runs \
1110  | --run | --ru | --r)
1111    ac_prev=runstatedir ;;
1112  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1113  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1114  | --run=* | --ru=* | --r=*)
1115    runstatedir=$ac_optarg ;;
1116
1117  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118    ac_prev=sbindir ;;
1119  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120  | --sbi=* | --sb=*)
1121    sbindir=$ac_optarg ;;
1122
1123  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125  | --sharedst | --shareds | --shared | --share | --shar \
1126  | --sha | --sh)
1127    ac_prev=sharedstatedir ;;
1128  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131  | --sha=* | --sh=*)
1132    sharedstatedir=$ac_optarg ;;
1133
1134  -site | --site | --sit)
1135    ac_prev=site ;;
1136  -site=* | --site=* | --sit=*)
1137    site=$ac_optarg ;;
1138
1139  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140    ac_prev=srcdir ;;
1141  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142    srcdir=$ac_optarg ;;
1143
1144  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145  | --syscon | --sysco | --sysc | --sys | --sy)
1146    ac_prev=sysconfdir ;;
1147  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149    sysconfdir=$ac_optarg ;;
1150
1151  -target | --target | --targe | --targ | --tar | --ta | --t)
1152    ac_prev=target_alias ;;
1153  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154    target_alias=$ac_optarg ;;
1155
1156  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157    verbose=yes ;;
1158
1159  -version | --version | --versio | --versi | --vers | -V)
1160    ac_init_version=: ;;
1161
1162  -with-* | --with-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: \`$ac_useropt'"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=\$ac_optarg ;;
1177
1178  -without-* | --without-*)
1179    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182      as_fn_error $? "invalid package name: \`$ac_useropt'"
1183    ac_useropt_orig=$ac_useropt
1184    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185    case $ac_user_opts in
1186      *"
1187"with_$ac_useropt"
1188"*) ;;
1189      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190	 ac_unrecognized_sep=', ';;
1191    esac
1192    eval with_$ac_useropt=no ;;
1193
1194  --x)
1195    # Obsolete; use --with-x.
1196    with_x=yes ;;
1197
1198  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199  | --x-incl | --x-inc | --x-in | --x-i)
1200    ac_prev=x_includes ;;
1201  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203    x_includes=$ac_optarg ;;
1204
1205  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207    ac_prev=x_libraries ;;
1208  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210    x_libraries=$ac_optarg ;;
1211
1212  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information"
1214    ;;
1215
1216  *=*)
1217    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218    # Reject names that are not valid shell variable names.
1219    case $ac_envvar in #(
1220      '' | [0-9]* | *[!_$as_cr_alnum]* )
1221      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222    esac
1223    eval $ac_envvar=\$ac_optarg
1224    export $ac_envvar ;;
1225
1226  *)
1227    # FIXME: should be removed in autoconf 3.0.
1228    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1229    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1231    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232    ;;
1233
1234  esac
1235done
1236
1237if test -n "$ac_prev"; then
1238  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239  as_fn_error $? "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243  case $enable_option_checking in
1244    no) ;;
1245    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247  esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252		datadir sysconfdir sharedstatedir localstatedir includedir \
1253		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254		libdir localedir mandir runstatedir
1255do
1256  eval ac_val=\$$ac_var
1257  # Remove trailing slashes.
1258  case $ac_val in
1259    */ )
1260      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261      eval $ac_var=\$ac_val;;
1262  esac
1263  # Be sure to have absolute directory names.
1264  case $ac_val in
1265    [\\/$]* | ?:[\\/]* )  continue;;
1266    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267  esac
1268  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280  if test "x$build_alias" = x; then
1281    cross_compiling=maybe
1282  elif test "x$build_alias" != "x$host_alias"; then
1283    cross_compiling=yes
1284  fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
1291
1292
1293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296  as_fn_error $? "working directory cannot be determined"
1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298  as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303  ac_srcdir_defaulted=yes
1304  # Try the directory containing this script, then the parent directory.
1305  ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307	 X"$as_myself" : 'X\(//\)[^/]' \| \
1308	 X"$as_myself" : 'X\(//\)$' \| \
1309	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310printf "%s\n" X"$as_myself" |
1311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\/\)[^/].*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  /^X\(\/\/\)$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\).*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  s/.*/./; q'`
1328  srcdir=$ac_confdir
1329  if test ! -r "$srcdir/$ac_unique_file"; then
1330    srcdir=..
1331  fi
1332else
1333  ac_srcdir_defaulted=no
1334fi
1335if test ! -r "$srcdir/$ac_unique_file"; then
1336  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
1341	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342	pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345  srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355  eval ac_env_${ac_var}_value=\$${ac_var}
1356  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
1359
1360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364  # Omit some internal or obsolete options to make the list less imposing.
1365  # This message is too long to be a string in the A/UX 3.1 sh.
1366  cat <<_ACEOF
1367\`configure' configures iperf 3.10 to adapt to many kinds of systems.
1368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE.  See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377  -h, --help              display this help and exit
1378      --help=short        display options specific to this package
1379      --help=recursive    display the short help of all the included packages
1380  -V, --version           display version information and exit
1381  -q, --quiet, --silent   do not print \`checking ...' messages
1382      --cache-file=FILE   cache test results in FILE [disabled]
1383  -C, --config-cache      alias for \`--cache-file=config.cache'
1384  -n, --no-create         do not create output files
1385      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386
1387Installation directories:
1388  --prefix=PREFIX         install architecture-independent files in PREFIX
1389                          [$ac_default_prefix]
1390  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391                          [PREFIX]
1392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
1401  --bindir=DIR            user executables [EPREFIX/bin]
1402  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403  --libexecdir=DIR        program executables [EPREFIX/libexec]
1404  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1408  --libdir=DIR            object code libraries [EPREFIX/lib]
1409  --includedir=DIR        C header files [PREFIX/include]
1410  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413  --infodir=DIR           info documentation [DATAROOTDIR/info]
1414  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415  --mandir=DIR            man documentation [DATAROOTDIR/man]
1416  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1417  --htmldir=DIR           html documentation [DOCDIR]
1418  --dvidir=DIR            dvi documentation [DOCDIR]
1419  --pdfdir=DIR            pdf documentation [DOCDIR]
1420  --psdir=DIR             ps documentation [DOCDIR]
1421_ACEOF
1422
1423  cat <<\_ACEOF
1424
1425Program names:
1426  --program-prefix=PREFIX            prepend PREFIX to installed program names
1427  --program-suffix=SUFFIX            append SUFFIX to installed program names
1428  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1429
1430System types:
1431  --build=BUILD     configure for building on BUILD [guessed]
1432  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1433_ACEOF
1434fi
1435
1436if test -n "$ac_init_help"; then
1437  case $ac_init_help in
1438     short | recursive ) echo "Configuration of iperf 3.10:";;
1439   esac
1440  cat <<\_ACEOF
1441
1442Optional Features:
1443  --disable-option-checking  ignore unrecognized --enable/--with options
1444  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1445  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1446  --enable-static-bin     link iperf3 binary statically
1447  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448  --disable-silent-rules  verbose build output (undo: "make V=0")
1449  --enable-shared[=PKGS]  build shared libraries [default=yes]
1450  --enable-static[=PKGS]  build static libraries [default=yes]
1451  --enable-fast-install[=PKGS]
1452                          optimize for fast installation [default=yes]
1453  --enable-dependency-tracking
1454                          do not reject slow dependency extractors
1455  --disable-dependency-tracking
1456                          speeds up one-time build
1457  --disable-libtool-lock  avoid locking (might break parallel builds)
1458  --enable-maintainer-mode
1459                          enable make rules and dependencies not useful (and
1460                          sometimes confusing) to the casual installer
1461  --enable-profiling      Enable iperf3 profiling binary
1462
1463Optional Packages:
1464  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1467                          both]
1468  --with-aix-soname=aix|svr4|both
1469                          shared library versioning (aka "SONAME") variant to
1470                          provide on AIX, [default=aix].
1471  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1472  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1473                          compiler's sysroot if not specified).
1474  --without-sctp          disable SCTP
1475  --with-openssl=DIR      root of the OpenSSL directory
1476
1477Some influential environment variables:
1478  CC          C compiler command
1479  CFLAGS      C compiler flags
1480  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1481              nonstandard directory <lib dir>
1482  LIBS        libraries to pass to the linker, e.g. -l<library>
1483  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484              you have headers in a nonstandard directory <include dir>
1485  LT_SYS_LIBRARY_PATH
1486              User-defined run-time library search path.
1487
1488Use these variables to override the choices made by `configure' or to help
1489it to find libraries and programs with nonstandard names/locations.
1490
1491Report bugs to <https://github.com/esnet/iperf>.
1492iperf home page: <https://software.es.net/iperf/>.
1493_ACEOF
1494ac_status=$?
1495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498  # If there are subdirs, report their specific --help.
1499  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500    test -d "$ac_dir" ||
1501      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502      continue
1503    ac_builddir=.
1504
1505case "$ac_dir" in
1506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507*)
1508  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1509  # A ".." for each directory in $ac_dir_suffix.
1510  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511  case $ac_top_builddir_sub in
1512  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514  esac ;;
1515esac
1516ac_abs_top_builddir=$ac_pwd
1517ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518# for backward compatibility:
1519ac_top_builddir=$ac_top_build_prefix
1520
1521case $srcdir in
1522  .)  # We are building in place.
1523    ac_srcdir=.
1524    ac_top_srcdir=$ac_top_builddir_sub
1525    ac_abs_top_srcdir=$ac_pwd ;;
1526  [\\/]* | ?:[\\/]* )  # Absolute name.
1527    ac_srcdir=$srcdir$ac_dir_suffix;
1528    ac_top_srcdir=$srcdir
1529    ac_abs_top_srcdir=$srcdir ;;
1530  *) # Relative name.
1531    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532    ac_top_srcdir=$ac_top_build_prefix$srcdir
1533    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534esac
1535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537    cd "$ac_dir" || { ac_status=$?; continue; }
1538    # Check for configure.gnu first; this name is used for a wrapper for
1539    # Metaconfig's "Configure" on case-insensitive file systems.
1540    if test -f "$ac_srcdir/configure.gnu"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543    elif test -f "$ac_srcdir/configure"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure" --help=recursive
1546    else
1547      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548    fi || ac_status=$?
1549    cd "$ac_pwd" || { ac_status=$?; break; }
1550  done
1551fi
1552
1553test -n "$ac_init_help" && exit $ac_status
1554if $ac_init_version; then
1555  cat <<\_ACEOF
1556iperf configure 3.10
1557generated by GNU Autoconf 2.71
1558
1559Copyright (C) 2021 Free Software Foundation, Inc.
1560This configure script is free software; the Free Software Foundation
1561gives unlimited permission to copy, distribute and modify it.
1562_ACEOF
1563  exit
1564fi
1565
1566## ------------------------ ##
1567## Autoconf initialization. ##
1568## ------------------------ ##
1569
1570# ac_fn_c_try_compile LINENO
1571# --------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_compile ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext conftest.beam
1577  if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583printf "%s\n" "$ac_try_echo"; } >&5
1584  (eval "$ac_compile") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest.$ac_objext
1596then :
1597  ac_retval=0
1598else $as_nop
1599  printf "%s\n" "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602	ac_retval=1
1603fi
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605  as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_compile
1608
1609# ac_fn_c_try_link LINENO
1610# -----------------------
1611# Try to link conftest.$ac_ext, and return whether this succeeded.
1612ac_fn_c_try_link ()
1613{
1614  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1616  if { { ac_try="$ac_link"
1617case "(($ac_try" in
1618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619  *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622printf "%s\n" "$ac_try_echo"; } >&5
1623  (eval "$ac_link") 2>conftest.err
1624  ac_status=$?
1625  if test -s conftest.err; then
1626    grep -v '^ *+' conftest.err >conftest.er1
1627    cat conftest.er1 >&5
1628    mv -f conftest.er1 conftest.err
1629  fi
1630  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; } && {
1632	 test -z "$ac_c_werror_flag" ||
1633	 test ! -s conftest.err
1634       } && test -s conftest$ac_exeext && {
1635	 test "$cross_compiling" = yes ||
1636	 test -x conftest$ac_exeext
1637       }
1638then :
1639  ac_retval=0
1640else $as_nop
1641  printf "%s\n" "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644	ac_retval=1
1645fi
1646  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1648  # interfere with the next link command; also delete a directory that is
1649  # left behind by Apple's compiler.  We do this before executing the actions.
1650  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_link
1655
1656# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657# -------------------------------------------------------
1658# Tests whether HEADER exists and can be compiled using the include files in
1659# INCLUDES, setting the cache variable VAR accordingly.
1660ac_fn_c_check_header_compile ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664printf %s "checking for $2... " >&6; }
1665if eval test \${$3+y}
1666then :
1667  printf %s "(cached) " >&6
1668else $as_nop
1669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671$4
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"
1675then :
1676  eval "$3=yes"
1677else $as_nop
1678  eval "$3=no"
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1681fi
1682eval ac_res=\$$3
1683	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684printf "%s\n" "$ac_res" >&6; }
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_header_compile
1688
1689# ac_fn_c_check_func LINENO FUNC VAR
1690# ----------------------------------
1691# Tests whether FUNC exists, setting the cache variable VAR accordingly
1692ac_fn_c_check_func ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696printf %s "checking for $2... " >&6; }
1697if eval test \${$3+y}
1698then :
1699  printf %s "(cached) " >&6
1700else $as_nop
1701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1704   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1705#define $2 innocuous_$2
1706
1707/* System header to define __stub macros and hopefully few prototypes,
1708   which can conflict with char $2 (); below.  */
1709
1710#include <limits.h>
1711#undef $2
1712
1713/* Override any GCC internal prototype to avoid an error.
1714   Use char because int might match the return type of a GCC
1715   builtin and then its argument prototype would still apply.  */
1716#ifdef __cplusplus
1717extern "C"
1718#endif
1719char $2 ();
1720/* The GNU C library defines this for functions which it implements
1721    to always fail with ENOSYS.  Some functions are actually named
1722    something starting with __ and the normal name is an alias.  */
1723#if defined __stub_$2 || defined __stub___$2
1724choke me
1725#endif
1726
1727int
1728main (void)
1729{
1730return $2 ();
1731  ;
1732  return 0;
1733}
1734_ACEOF
1735if ac_fn_c_try_link "$LINENO"
1736then :
1737  eval "$3=yes"
1738else $as_nop
1739  eval "$3=no"
1740fi
1741rm -f core conftest.err conftest.$ac_objext conftest.beam \
1742    conftest$ac_exeext conftest.$ac_ext
1743fi
1744eval ac_res=\$$3
1745	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746printf "%s\n" "$ac_res" >&6; }
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749} # ac_fn_c_check_func
1750
1751# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1752# ----------------------------------------------------
1753# Tries to find if the field MEMBER exists in type AGGR, after including
1754# INCLUDES, setting cache variable VAR accordingly.
1755ac_fn_c_check_member ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1759printf %s "checking for $2.$3... " >&6; }
1760if eval test \${$4+y}
1761then :
1762  printf %s "(cached) " >&6
1763else $as_nop
1764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766$5
1767int
1768main (void)
1769{
1770static $2 ac_aggr;
1771if (ac_aggr.$3)
1772return 0;
1773  ;
1774  return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"
1778then :
1779  eval "$4=yes"
1780else $as_nop
1781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783$5
1784int
1785main (void)
1786{
1787static $2 ac_aggr;
1788if (sizeof ac_aggr.$3)
1789return 0;
1790  ;
1791  return 0;
1792}
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"
1795then :
1796  eval "$4=yes"
1797else $as_nop
1798  eval "$4=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1803fi
1804eval ac_res=\$$4
1805	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806printf "%s\n" "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_member
1810ac_configure_args_raw=
1811for ac_arg
1812do
1813  case $ac_arg in
1814  *\'*)
1815    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816  esac
1817  as_fn_append ac_configure_args_raw " '$ac_arg'"
1818done
1819
1820case $ac_configure_args_raw in
1821  *$as_nl*)
1822    ac_safe_unquote= ;;
1823  *)
1824    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1825    ac_unsafe_a="$ac_unsafe_z#~"
1826    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1827    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1828esac
1829
1830cat >config.log <<_ACEOF
1831This file contains any messages produced by compilers while
1832running configure, to aid debugging if configure makes a mistake.
1833
1834It was created by iperf $as_me 3.10, which was
1835generated by GNU Autoconf 2.71.  Invocation command line was
1836
1837  $ $0$ac_configure_args_raw
1838
1839_ACEOF
1840exec 5>>config.log
1841{
1842cat <<_ASUNAME
1843## --------- ##
1844## Platform. ##
1845## --------- ##
1846
1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852
1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1855
1856/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1857/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1860/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1861/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1862/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1863
1864_ASUNAME
1865
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869  IFS=$as_save_IFS
1870  case $as_dir in #(((
1871    '') as_dir=./ ;;
1872    */) ;;
1873    *) as_dir=$as_dir/ ;;
1874  esac
1875    printf "%s\n" "PATH: $as_dir"
1876  done
1877IFS=$as_save_IFS
1878
1879} >&5
1880
1881cat >&5 <<_ACEOF
1882
1883
1884## ----------- ##
1885## Core tests. ##
1886## ----------- ##
1887
1888_ACEOF
1889
1890
1891# Keep a trace of the command line.
1892# Strip out --no-create and --no-recursion so they do not pile up.
1893# Strip out --silent because we don't want to record it for future runs.
1894# Also quote any args containing shell meta-characters.
1895# Make two passes to allow for proper duplicate-argument suppression.
1896ac_configure_args=
1897ac_configure_args0=
1898ac_configure_args1=
1899ac_must_keep_next=false
1900for ac_pass in 1 2
1901do
1902  for ac_arg
1903  do
1904    case $ac_arg in
1905    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907    | -silent | --silent | --silen | --sile | --sil)
1908      continue ;;
1909    *\'*)
1910      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1911    esac
1912    case $ac_pass in
1913    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1914    2)
1915      as_fn_append ac_configure_args1 " '$ac_arg'"
1916      if test $ac_must_keep_next = true; then
1917	ac_must_keep_next=false # Got value, back to normal.
1918      else
1919	case $ac_arg in
1920	  *=* | --config-cache | -C | -disable-* | --disable-* \
1921	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923	  | -with-* | --with-* | -without-* | --without-* | --x)
1924	    case "$ac_configure_args0 " in
1925	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1926	    esac
1927	    ;;
1928	  -* ) ac_must_keep_next=true ;;
1929	esac
1930      fi
1931      as_fn_append ac_configure_args " '$ac_arg'"
1932      ;;
1933    esac
1934  done
1935done
1936{ ac_configure_args0=; unset ac_configure_args0;}
1937{ ac_configure_args1=; unset ac_configure_args1;}
1938
1939# When interrupted or exit'd, cleanup temporary files, and complete
1940# config.log.  We remove comments because anyway the quotes in there
1941# would cause problems or look ugly.
1942# WARNING: Use '\'' to represent an apostrophe within the trap.
1943# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944trap 'exit_status=$?
1945  # Sanitize IFS.
1946  IFS=" ""	$as_nl"
1947  # Save into config.log some information that might help in debugging.
1948  {
1949    echo
1950
1951    printf "%s\n" "## ---------------- ##
1952## Cache variables. ##
1953## ---------------- ##"
1954    echo
1955    # The following way of writing the cache mishandles newlines in values,
1956(
1957  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1958    eval ac_val=\$$ac_var
1959    case $ac_val in #(
1960    *${as_nl}*)
1961      case $ac_var in #(
1962      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1963printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1964      esac
1965      case $ac_var in #(
1966      _ | IFS | as_nl) ;; #(
1967      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1968      *) { eval $ac_var=; unset $ac_var;} ;;
1969      esac ;;
1970    esac
1971  done
1972  (set) 2>&1 |
1973    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1974    *${as_nl}ac_space=\ *)
1975      sed -n \
1976	"s/'\''/'\''\\\\'\'''\''/g;
1977	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1978      ;; #(
1979    *)
1980      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1981      ;;
1982    esac |
1983    sort
1984)
1985    echo
1986
1987    printf "%s\n" "## ----------------- ##
1988## Output variables. ##
1989## ----------------- ##"
1990    echo
1991    for ac_var in $ac_subst_vars
1992    do
1993      eval ac_val=\$$ac_var
1994      case $ac_val in
1995      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996      esac
1997      printf "%s\n" "$ac_var='\''$ac_val'\''"
1998    done | sort
1999    echo
2000
2001    if test -n "$ac_subst_files"; then
2002      printf "%s\n" "## ------------------- ##
2003## File substitutions. ##
2004## ------------------- ##"
2005      echo
2006      for ac_var in $ac_subst_files
2007      do
2008	eval ac_val=\$$ac_var
2009	case $ac_val in
2010	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011	esac
2012	printf "%s\n" "$ac_var='\''$ac_val'\''"
2013      done | sort
2014      echo
2015    fi
2016
2017    if test -s confdefs.h; then
2018      printf "%s\n" "## ----------- ##
2019## confdefs.h. ##
2020## ----------- ##"
2021      echo
2022      cat confdefs.h
2023      echo
2024    fi
2025    test "$ac_signal" != 0 &&
2026      printf "%s\n" "$as_me: caught signal $ac_signal"
2027    printf "%s\n" "$as_me: exit $exit_status"
2028  } >&5
2029  rm -f core *.core core.conftest.* &&
2030    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031    exit $exit_status
2032' 0
2033for ac_signal in 1 2 13 15; do
2034  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035done
2036ac_signal=0
2037
2038# confdefs.h avoids OS command line length limits that DEFS can exceed.
2039rm -f -r conftest* confdefs.h
2040
2041printf "%s\n" "/* confdefs.h */" > confdefs.h
2042
2043# Predefined preprocessor variables.
2044
2045printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2046
2047printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2048
2049printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2050
2051printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2052
2053printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2054
2055printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2056
2057
2058# Let the site file select an alternate cache file if it wants to.
2059# Prefer an explicitly selected file to automatically selected ones.
2060if test -n "$CONFIG_SITE"; then
2061  ac_site_files="$CONFIG_SITE"
2062elif test "x$prefix" != xNONE; then
2063  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2064else
2065  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2066fi
2067
2068for ac_site_file in $ac_site_files
2069do
2070  case $ac_site_file in #(
2071  */*) :
2072     ;; #(
2073  *) :
2074    ac_site_file=./$ac_site_file ;;
2075esac
2076  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2077    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2079    sed 's/^/| /' "$ac_site_file" >&5
2080    . "$ac_site_file" \
2081      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2082printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2083as_fn_error $? "failed to load site script $ac_site_file
2084See \`config.log' for more details" "$LINENO" 5; }
2085  fi
2086done
2087
2088if test -r "$cache_file"; then
2089  # Some versions of bash will fail to source /dev/null (special files
2090  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2091  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2094    case $cache_file in
2095      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096      *)                      . "./$cache_file";;
2097    esac
2098  fi
2099else
2100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2102  >$cache_file
2103fi
2104
2105# Test code for whether the C compiler supports C89 (global declarations)
2106ac_c_conftest_c89_globals='
2107/* Does the compiler advertise C89 conformance?
2108   Do not test the value of __STDC__, because some compilers set it to 0
2109   while being otherwise adequately conformant. */
2110#if !defined __STDC__
2111# error "Compiler does not advertise C89 conformance"
2112#endif
2113
2114#include <stddef.h>
2115#include <stdarg.h>
2116struct stat;
2117/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2118struct buf { int x; };
2119struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2120static char *e (p, i)
2121     char **p;
2122     int i;
2123{
2124  return p[i];
2125}
2126static char *f (char * (*g) (char **, int), char **p, ...)
2127{
2128  char *s;
2129  va_list v;
2130  va_start (v,p);
2131  s = g (p, va_arg (v,int));
2132  va_end (v);
2133  return s;
2134}
2135
2136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2137   function prototypes and stuff, but not \xHH hex character constants.
2138   These do not provoke an error unfortunately, instead are silently treated
2139   as an "x".  The following induces an error, until -std is added to get
2140   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2141   array size at least.  It is necessary to write \x00 == 0 to get something
2142   that is true only with -std.  */
2143int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2144
2145/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2146   inside strings and character constants.  */
2147#define FOO(x) '\''x'\''
2148int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2149
2150int test (int i, double x);
2151struct s1 {int (*f) (int a);};
2152struct s2 {int (*f) (double a);};
2153int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2154               int, int);'
2155
2156# Test code for whether the C compiler supports C89 (body of main).
2157ac_c_conftest_c89_main='
2158ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2159'
2160
2161# Test code for whether the C compiler supports C99 (global declarations)
2162ac_c_conftest_c99_globals='
2163// Does the compiler advertise C99 conformance?
2164#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2165# error "Compiler does not advertise C99 conformance"
2166#endif
2167
2168#include <stdbool.h>
2169extern int puts (const char *);
2170extern int printf (const char *, ...);
2171extern int dprintf (int, const char *, ...);
2172extern void *malloc (size_t);
2173
2174// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2175// dprintf is used instead of fprintf to avoid needing to declare
2176// FILE and stderr.
2177#define debug(...) dprintf (2, __VA_ARGS__)
2178#define showlist(...) puts (#__VA_ARGS__)
2179#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2180static void
2181test_varargs_macros (void)
2182{
2183  int x = 1234;
2184  int y = 5678;
2185  debug ("Flag");
2186  debug ("X = %d\n", x);
2187  showlist (The first, second, and third items.);
2188  report (x>y, "x is %d but y is %d", x, y);
2189}
2190
2191// Check long long types.
2192#define BIG64 18446744073709551615ull
2193#define BIG32 4294967295ul
2194#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2195#if !BIG_OK
2196  #error "your preprocessor is broken"
2197#endif
2198#if BIG_OK
2199#else
2200  #error "your preprocessor is broken"
2201#endif
2202static long long int bignum = -9223372036854775807LL;
2203static unsigned long long int ubignum = BIG64;
2204
2205struct incomplete_array
2206{
2207  int datasize;
2208  double data[];
2209};
2210
2211struct named_init {
2212  int number;
2213  const wchar_t *name;
2214  double average;
2215};
2216
2217typedef const char *ccp;
2218
2219static inline int
2220test_restrict (ccp restrict text)
2221{
2222  // See if C++-style comments work.
2223  // Iterate through items via the restricted pointer.
2224  // Also check for declarations in for loops.
2225  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2226    continue;
2227  return 0;
2228}
2229
2230// Check varargs and va_copy.
2231static bool
2232test_varargs (const char *format, ...)
2233{
2234  va_list args;
2235  va_start (args, format);
2236  va_list args_copy;
2237  va_copy (args_copy, args);
2238
2239  const char *str = "";
2240  int number = 0;
2241  float fnumber = 0;
2242
2243  while (*format)
2244    {
2245      switch (*format++)
2246	{
2247	case '\''s'\'': // string
2248	  str = va_arg (args_copy, const char *);
2249	  break;
2250	case '\''d'\'': // int
2251	  number = va_arg (args_copy, int);
2252	  break;
2253	case '\''f'\'': // float
2254	  fnumber = va_arg (args_copy, double);
2255	  break;
2256	default:
2257	  break;
2258	}
2259    }
2260  va_end (args_copy);
2261  va_end (args);
2262
2263  return *str && number && fnumber;
2264}
2265'
2266
2267# Test code for whether the C compiler supports C99 (body of main).
2268ac_c_conftest_c99_main='
2269  // Check bool.
2270  _Bool success = false;
2271  success |= (argc != 0);
2272
2273  // Check restrict.
2274  if (test_restrict ("String literal") == 0)
2275    success = true;
2276  char *restrict newvar = "Another string";
2277
2278  // Check varargs.
2279  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2280  test_varargs_macros ();
2281
2282  // Check flexible array members.
2283  struct incomplete_array *ia =
2284    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2285  ia->datasize = 10;
2286  for (int i = 0; i < ia->datasize; ++i)
2287    ia->data[i] = i * 1.234;
2288
2289  // Check named initializers.
2290  struct named_init ni = {
2291    .number = 34,
2292    .name = L"Test wide string",
2293    .average = 543.34343,
2294  };
2295
2296  ni.number = 58;
2297
2298  int dynamic_array[ni.number];
2299  dynamic_array[0] = argv[0][0];
2300  dynamic_array[ni.number - 1] = 543;
2301
2302  // work around unused variable warnings
2303  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2304	 || dynamic_array[ni.number - 1] != 543);
2305'
2306
2307# Test code for whether the C compiler supports C11 (global declarations)
2308ac_c_conftest_c11_globals='
2309// Does the compiler advertise C11 conformance?
2310#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2311# error "Compiler does not advertise C11 conformance"
2312#endif
2313
2314// Check _Alignas.
2315char _Alignas (double) aligned_as_double;
2316char _Alignas (0) no_special_alignment;
2317extern char aligned_as_int;
2318char _Alignas (0) _Alignas (int) aligned_as_int;
2319
2320// Check _Alignof.
2321enum
2322{
2323  int_alignment = _Alignof (int),
2324  int_array_alignment = _Alignof (int[100]),
2325  char_alignment = _Alignof (char)
2326};
2327_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2328
2329// Check _Noreturn.
2330int _Noreturn does_not_return (void) { for (;;) continue; }
2331
2332// Check _Static_assert.
2333struct test_static_assert
2334{
2335  int x;
2336  _Static_assert (sizeof (int) <= sizeof (long int),
2337                  "_Static_assert does not work in struct");
2338  long int y;
2339};
2340
2341// Check UTF-8 literals.
2342#define u8 syntax error!
2343char const utf8_literal[] = u8"happens to be ASCII" "another string";
2344
2345// Check duplicate typedefs.
2346typedef long *long_ptr;
2347typedef long int *long_ptr;
2348typedef long_ptr long_ptr;
2349
2350// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2351struct anonymous
2352{
2353  union {
2354    struct { int i; int j; };
2355    struct { int k; long int l; } w;
2356  };
2357  int m;
2358} v1;
2359'
2360
2361# Test code for whether the C compiler supports C11 (body of main).
2362ac_c_conftest_c11_main='
2363  _Static_assert ((offsetof (struct anonymous, i)
2364		   == offsetof (struct anonymous, w.k)),
2365		  "Anonymous union alignment botch");
2366  v1.i = 2;
2367  v1.w.k = 5;
2368  ok |= v1.i != 5;
2369'
2370
2371# Test code for whether the C compiler supports C11 (complete).
2372ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2373${ac_c_conftest_c99_globals}
2374${ac_c_conftest_c11_globals}
2375
2376int
2377main (int argc, char **argv)
2378{
2379  int ok = 0;
2380  ${ac_c_conftest_c89_main}
2381  ${ac_c_conftest_c99_main}
2382  ${ac_c_conftest_c11_main}
2383  return ok;
2384}
2385"
2386
2387# Test code for whether the C compiler supports C99 (complete).
2388ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2389${ac_c_conftest_c99_globals}
2390
2391int
2392main (int argc, char **argv)
2393{
2394  int ok = 0;
2395  ${ac_c_conftest_c89_main}
2396  ${ac_c_conftest_c99_main}
2397  return ok;
2398}
2399"
2400
2401# Test code for whether the C compiler supports C89 (complete).
2402ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2403
2404int
2405main (int argc, char **argv)
2406{
2407  int ok = 0;
2408  ${ac_c_conftest_c89_main}
2409  return ok;
2410}
2411"
2412
2413as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2414as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2415as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2416as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2417as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2418as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2419as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2420as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2421as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2422
2423# Auxiliary files required by this configure script.
2424ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2425
2426# Locations in which to look for auxiliary files.
2427ac_aux_dir_candidates="${srcdir}/config"
2428
2429# Search for a directory containing all of the required auxiliary files,
2430# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2431# If we don't find one directory that contains all the files we need,
2432# we report the set of missing files from the *first* directory in
2433# $ac_aux_dir_candidates and give up.
2434ac_missing_aux_files=""
2435ac_first_candidate=:
2436printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438as_found=false
2439for as_dir in $ac_aux_dir_candidates
2440do
2441  IFS=$as_save_IFS
2442  case $as_dir in #(((
2443    '') as_dir=./ ;;
2444    */) ;;
2445    *) as_dir=$as_dir/ ;;
2446  esac
2447  as_found=:
2448
2449  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2450  ac_aux_dir_found=yes
2451  ac_install_sh=
2452  for ac_aux in $ac_aux_files
2453  do
2454    # As a special case, if "install-sh" is required, that requirement
2455    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2456    # and $ac_install_sh is set appropriately for whichever one is found.
2457    if test x"$ac_aux" = x"install-sh"
2458    then
2459      if test -f "${as_dir}install-sh"; then
2460        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2461        ac_install_sh="${as_dir}install-sh -c"
2462      elif test -f "${as_dir}install.sh"; then
2463        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2464        ac_install_sh="${as_dir}install.sh -c"
2465      elif test -f "${as_dir}shtool"; then
2466        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2467        ac_install_sh="${as_dir}shtool install -c"
2468      else
2469        ac_aux_dir_found=no
2470        if $ac_first_candidate; then
2471          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2472        else
2473          break
2474        fi
2475      fi
2476    else
2477      if test -f "${as_dir}${ac_aux}"; then
2478        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2479      else
2480        ac_aux_dir_found=no
2481        if $ac_first_candidate; then
2482          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2483        else
2484          break
2485        fi
2486      fi
2487    fi
2488  done
2489  if test "$ac_aux_dir_found" = yes; then
2490    ac_aux_dir="$as_dir"
2491    break
2492  fi
2493  ac_first_candidate=false
2494
2495  as_found=false
2496done
2497IFS=$as_save_IFS
2498if $as_found
2499then :
2500
2501else $as_nop
2502  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2503fi
2504
2505
2506# These three variables are undocumented and unsupported,
2507# and are intended to be withdrawn in a future Autoconf release.
2508# They can cause serious problems if a builder's source tree is in a directory
2509# whose full name contains unusual characters.
2510if test -f "${ac_aux_dir}config.guess"; then
2511  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2512fi
2513if test -f "${ac_aux_dir}config.sub"; then
2514  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2515fi
2516if test -f "$ac_aux_dir/configure"; then
2517  ac_configure="$SHELL ${ac_aux_dir}configure"
2518fi
2519
2520# Check that the precious variables saved in the cache have kept the same
2521# value.
2522ac_cache_corrupted=false
2523for ac_var in $ac_precious_vars; do
2524  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525  eval ac_new_set=\$ac_env_${ac_var}_set
2526  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527  eval ac_new_val=\$ac_env_${ac_var}_value
2528  case $ac_old_set,$ac_new_set in
2529    set,)
2530      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532      ac_cache_corrupted=: ;;
2533    ,set)
2534      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536      ac_cache_corrupted=: ;;
2537    ,);;
2538    *)
2539      if test "x$ac_old_val" != "x$ac_new_val"; then
2540	# differences in whitespace do not lead to failure.
2541	ac_old_val_w=`echo x $ac_old_val`
2542	ac_new_val_w=`echo x $ac_new_val`
2543	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546	  ac_cache_corrupted=:
2547	else
2548	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550	  eval $ac_var=\$ac_old_val
2551	fi
2552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2553printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2555printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2556      fi;;
2557  esac
2558  # Pass precious variables to config.status.
2559  if test "$ac_new_set" = set; then
2560    case $ac_new_val in
2561    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562    *) ac_arg=$ac_var=$ac_new_val ;;
2563    esac
2564    case " $ac_configure_args " in
2565      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2566      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2567    esac
2568  fi
2569done
2570if $ac_cache_corrupted; then
2571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2575  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2576	    and start over" "$LINENO" 5
2577fi
2578## -------------------- ##
2579## Main body of script. ##
2580## -------------------- ##
2581
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587
2588
2589# ===========================================================================
2590#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2591# ===========================================================================
2592#
2593# SYNOPSIS
2594#
2595#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2596#
2597# DESCRIPTION
2598#
2599#   Look for OpenSSL in a number of default spots, or in a user-selected
2600#   spot (via --with-openssl).  Sets
2601#
2602#     OPENSSL_INCLUDES to the include directives required
2603#     OPENSSL_LIBS to the -l directives required
2604#     OPENSSL_LDFLAGS to the -L or -R flags required
2605#
2606#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2607#
2608#   This macro sets OPENSSL_INCLUDES such that source files should use the
2609#   openssl/ directory in include directives:
2610#
2611#     #include <openssl/hmac.h>
2612#
2613# LICENSE
2614#
2615#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2616#   Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
2617#
2618#   Copying and distribution of this file, with or without modification, are
2619#   permitted in any medium without royalty provided the copyright notice
2620#   and this notice are preserved. This file is offered as-is, without any
2621#   warranty.
2622
2623#serial 10
2624
2625# This is what autoupdate's m4 run will expand.  It fires the warning
2626# (with _au_warn_XXX), outputs it into the updated configure.ac (with
2627# m4_warn), and then outputs the replacement expansion.  We need extra
2628# quotation around the m4_warn and dnl so they will be written
2629# unexpanded into the updated configure.ac.
2630
2631
2632# This is an auxiliary macro that is also run when
2633# autoupdate runs m4.  It simply calls m4_warning, but
2634# we need a wrapper so that each warning is emitted only
2635# once.  We break the quoting in m4_warning's argument in
2636# order to expand this macro's arguments, not AU_DEFUN's.
2637
2638
2639# Finally, this is the expansion that is picked up by
2640# autoconf, causing NAME to expand to NEW-CODE, plus
2641# (if SILENT is not "silent") a m4_warning telling the
2642# maintainer to run autoupdate.  We don't issue MESSAGE
2643# from autoconf, because that's instructions for what
2644# to do *after* running autoupdate.
2645
2646
2647
2648# Also link binaries as static
2649# Check whether --enable-static-bin was given.
2650if test ${enable_static_bin+y}
2651then :
2652  enableval=$enable_static_bin; enable_static=yes
2653     enable_shared=no
2654     enable_static_bin=yes
2655else $as_nop
2656  :
2657fi
2658
2659 if test x$enable_static_bin = xno; then
2660  ENABLE_STATIC_BIN_TRUE=
2661  ENABLE_STATIC_BIN_FALSE='#'
2662else
2663  ENABLE_STATIC_BIN_TRUE='#'
2664  ENABLE_STATIC_BIN_FALSE=
2665fi
2666
2667
2668if test "x$enable_static_bin" == xyes
2669then :
2670  LDFLAGS="$LDFLAGS --static"
2671
2672fi
2673
2674ac_ext=c
2675ac_cpp='$CPP $CPPFLAGS'
2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
2680
2681# Specify where the auxiliary files created by configure should go. The config
2682# directory is picked so that they don't clutter up more useful directories.
2683
2684
2685
2686# Initialize the automake system
2687am__api_version='1.16'
2688
2689
2690
2691  # Find a good install program.  We prefer a C program (faster),
2692# so one script is as good as another.  But avoid the broken or
2693# incompatible versions:
2694# SysV /etc/install, /usr/sbin/install
2695# SunOS /usr/etc/install
2696# IRIX /sbin/install
2697# AIX /bin/install
2698# AmigaOS /C/install, which installs bootblocks on floppy discs
2699# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2700# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2701# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2702# OS/2's system install, which has a completely different semantic
2703# ./install, which can be erroneously created by make from ./install.sh.
2704# Reject install programs that cannot install multiple files.
2705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2706printf %s "checking for a BSD-compatible install... " >&6; }
2707if test -z "$INSTALL"; then
2708if test ${ac_cv_path_install+y}
2709then :
2710  printf %s "(cached) " >&6
2711else $as_nop
2712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  case $as_dir in #(((
2717    '') as_dir=./ ;;
2718    */) ;;
2719    *) as_dir=$as_dir/ ;;
2720  esac
2721    # Account for fact that we put trailing slashes in our PATH walk.
2722case $as_dir in #((
2723  ./ | /[cC]/* | \
2724  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2725  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2726  /usr/ucb/* ) ;;
2727  *)
2728    # OSF1 and SCO ODT 3.0 have their own names for install.
2729    # Don't use installbsd from OSF since it installs stuff as root
2730    # by default.
2731    for ac_prog in ginstall scoinst install; do
2732      for ac_exec_ext in '' $ac_executable_extensions; do
2733	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2734	  if test $ac_prog = install &&
2735	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2736	    # AIX install.  It has an incompatible calling convention.
2737	    :
2738	  elif test $ac_prog = install &&
2739	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2740	    # program-specific install script used by HP pwplus--don't use.
2741	    :
2742	  else
2743	    rm -rf conftest.one conftest.two conftest.dir
2744	    echo one > conftest.one
2745	    echo two > conftest.two
2746	    mkdir conftest.dir
2747	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2748	      test -s conftest.one && test -s conftest.two &&
2749	      test -s conftest.dir/conftest.one &&
2750	      test -s conftest.dir/conftest.two
2751	    then
2752	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2753	      break 3
2754	    fi
2755	  fi
2756	fi
2757      done
2758    done
2759    ;;
2760esac
2761
2762  done
2763IFS=$as_save_IFS
2764
2765rm -rf conftest.one conftest.two conftest.dir
2766
2767fi
2768  if test ${ac_cv_path_install+y}; then
2769    INSTALL=$ac_cv_path_install
2770  else
2771    # As a last resort, use the slow shell script.  Don't cache a
2772    # value for INSTALL within a source directory, because that will
2773    # break other packages using the cache if that directory is
2774    # removed, or if the value is a relative name.
2775    INSTALL=$ac_install_sh
2776  fi
2777fi
2778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2779printf "%s\n" "$INSTALL" >&6; }
2780
2781# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2782# It thinks the first close brace ends the variable substitution.
2783test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2784
2785test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2786
2787test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2788
2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2790printf %s "checking whether build environment is sane... " >&6; }
2791# Reject unsafe characters in $srcdir or the absolute working directory
2792# name.  Accept space and tab only in the latter.
2793am_lf='
2794'
2795case `pwd` in
2796  *[\\\"\#\$\&\'\`$am_lf]*)
2797    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2798esac
2799case $srcdir in
2800  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2801    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2802esac
2803
2804# Do 'set' in a subshell so we don't clobber the current shell's
2805# arguments.  Must try -L first in case configure is actually a
2806# symlink; some systems play weird games with the mod time of symlinks
2807# (eg FreeBSD returns the mod time of the symlink's containing
2808# directory).
2809if (
2810   am_has_slept=no
2811   for am_try in 1 2; do
2812     echo "timestamp, slept: $am_has_slept" > conftest.file
2813     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2814     if test "$*" = "X"; then
2815	# -L didn't work.
2816	set X `ls -t "$srcdir/configure" conftest.file`
2817     fi
2818     if test "$*" != "X $srcdir/configure conftest.file" \
2819	&& test "$*" != "X conftest.file $srcdir/configure"; then
2820
2821	# If neither matched, then we have a broken ls.  This can happen
2822	# if, for instance, CONFIG_SHELL is bash and it inherits a
2823	# broken ls alias from the environment.  This has actually
2824	# happened.  Such a system could not be considered "sane".
2825	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2826  alias in your environment" "$LINENO" 5
2827     fi
2828     if test "$2" = conftest.file || test $am_try -eq 2; then
2829       break
2830     fi
2831     # Just in case.
2832     sleep 1
2833     am_has_slept=yes
2834   done
2835   test "$2" = conftest.file
2836   )
2837then
2838   # Ok.
2839   :
2840else
2841   as_fn_error $? "newly created file is older than distributed files!
2842Check your system clock" "$LINENO" 5
2843fi
2844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845printf "%s\n" "yes" >&6; }
2846# If we didn't sleep, we still need to ensure time stamps of config.status and
2847# generated files are strictly newer.
2848am_sleep_pid=
2849if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2850  ( sleep 1 ) &
2851  am_sleep_pid=$!
2852fi
2853
2854rm -f conftest.file
2855
2856test "$program_prefix" != NONE &&
2857  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2858# Use a double $ so make ignores it.
2859test "$program_suffix" != NONE &&
2860  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2861# Double any \ or $.
2862# By default was `s,x,x', remove it if useless.
2863ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2864program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2865
2866
2867# Expand $ac_aux_dir to an absolute path.
2868am_aux_dir=`cd "$ac_aux_dir" && pwd`
2869
2870
2871  if test x"${MISSING+set}" != xset; then
2872  MISSING="\${SHELL} '$am_aux_dir/missing'"
2873fi
2874# Use eval to expand $SHELL
2875if eval "$MISSING --is-lightweight"; then
2876  am_missing_run="$MISSING "
2877else
2878  am_missing_run=
2879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2880printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2881fi
2882
2883if test x"${install_sh+set}" != xset; then
2884  case $am_aux_dir in
2885  *\ * | *\	*)
2886    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887  *)
2888    install_sh="\${SHELL} $am_aux_dir/install-sh"
2889  esac
2890fi
2891
2892# Installed binaries are usually stripped using 'strip' when the user
2893# run "make install-strip".  However 'strip' might not be the right
2894# tool to use in cross-compilation environments, therefore Automake
2895# will honor the 'STRIP' environment variable to overrule this program.
2896if test "$cross_compiling" != no; then
2897  if test -n "$ac_tool_prefix"; then
2898  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}strip; ac_word=$2
2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901printf %s "checking for $ac_word... " >&6; }
2902if test ${ac_cv_prog_STRIP+y}
2903then :
2904  printf %s "(cached) " >&6
2905else $as_nop
2906  if test -n "$STRIP"; then
2907  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  case $as_dir in #(((
2914    '') as_dir=./ ;;
2915    */) ;;
2916    *) as_dir=$as_dir/ ;;
2917  esac
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2920    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930STRIP=$ac_cv_prog_STRIP
2931if test -n "$STRIP"; then
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2933printf "%s\n" "$STRIP" >&6; }
2934else
2935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936printf "%s\n" "no" >&6; }
2937fi
2938
2939
2940fi
2941if test -z "$ac_cv_prog_STRIP"; then
2942  ac_ct_STRIP=$STRIP
2943  # Extract the first word of "strip", so it can be a program name with args.
2944set dummy strip; ac_word=$2
2945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946printf %s "checking for $ac_word... " >&6; }
2947if test ${ac_cv_prog_ac_ct_STRIP+y}
2948then :
2949  printf %s "(cached) " >&6
2950else $as_nop
2951  if test -n "$ac_ct_STRIP"; then
2952  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  case $as_dir in #(((
2959    '') as_dir=./ ;;
2960    */) ;;
2961    *) as_dir=$as_dir/ ;;
2962  esac
2963    for ac_exec_ext in '' $ac_executable_extensions; do
2964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2965    ac_cv_prog_ac_ct_STRIP="strip"
2966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973fi
2974fi
2975ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2976if test -n "$ac_ct_STRIP"; then
2977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978printf "%s\n" "$ac_ct_STRIP" >&6; }
2979else
2980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981printf "%s\n" "no" >&6; }
2982fi
2983
2984  if test "x$ac_ct_STRIP" = x; then
2985    STRIP=":"
2986  else
2987    case $cross_compiling:$ac_tool_warned in
2988yes:)
2989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991ac_tool_warned=yes ;;
2992esac
2993    STRIP=$ac_ct_STRIP
2994  fi
2995else
2996  STRIP="$ac_cv_prog_STRIP"
2997fi
2998
2999fi
3000INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3001
3002
3003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3004printf %s "checking for a race-free mkdir -p... " >&6; }
3005if test -z "$MKDIR_P"; then
3006  if test ${ac_cv_path_mkdir+y}
3007then :
3008  printf %s "(cached) " >&6
3009else $as_nop
3010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3012do
3013  IFS=$as_save_IFS
3014  case $as_dir in #(((
3015    '') as_dir=./ ;;
3016    */) ;;
3017    *) as_dir=$as_dir/ ;;
3018  esac
3019    for ac_prog in mkdir gmkdir; do
3020	 for ac_exec_ext in '' $ac_executable_extensions; do
3021	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3022	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3023	     'mkdir ('*'coreutils) '* | \
3024	     'BusyBox '* | \
3025	     'mkdir (fileutils) '4.1*)
3026	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3027	       break 3;;
3028	   esac
3029	 done
3030       done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035
3036  test -d ./--version && rmdir ./--version
3037  if test ${ac_cv_path_mkdir+y}; then
3038    MKDIR_P="$ac_cv_path_mkdir -p"
3039  else
3040    # As a last resort, use the slow shell script.  Don't cache a
3041    # value for MKDIR_P within a source directory, because that will
3042    # break other packages using the cache if that directory is
3043    # removed, or if the value is a relative name.
3044    MKDIR_P="$ac_install_sh -d"
3045  fi
3046fi
3047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3048printf "%s\n" "$MKDIR_P" >&6; }
3049
3050for ac_prog in gawk mawk nawk awk
3051do
3052  # Extract the first word of "$ac_prog", so it can be a program name with args.
3053set dummy $ac_prog; ac_word=$2
3054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055printf %s "checking for $ac_word... " >&6; }
3056if test ${ac_cv_prog_AWK+y}
3057then :
3058  printf %s "(cached) " >&6
3059else $as_nop
3060  if test -n "$AWK"; then
3061  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  case $as_dir in #(((
3068    '') as_dir=./ ;;
3069    */) ;;
3070    *) as_dir=$as_dir/ ;;
3071  esac
3072    for ac_exec_ext in '' $ac_executable_extensions; do
3073  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3074    ac_cv_prog_AWK="$ac_prog"
3075    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3076    break 2
3077  fi
3078done
3079  done
3080IFS=$as_save_IFS
3081
3082fi
3083fi
3084AWK=$ac_cv_prog_AWK
3085if test -n "$AWK"; then
3086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3087printf "%s\n" "$AWK" >&6; }
3088else
3089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090printf "%s\n" "no" >&6; }
3091fi
3092
3093
3094  test -n "$AWK" && break
3095done
3096
3097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3098printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3099set x ${MAKE-make}
3100ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3101if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3102then :
3103  printf %s "(cached) " >&6
3104else $as_nop
3105  cat >conftest.make <<\_ACEOF
3106SHELL = /bin/sh
3107all:
3108	@echo '@@@%%%=$(MAKE)=@@@%%%'
3109_ACEOF
3110# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3111case `${MAKE-make} -f conftest.make 2>/dev/null` in
3112  *@@@%%%=?*=@@@%%%*)
3113    eval ac_cv_prog_make_${ac_make}_set=yes;;
3114  *)
3115    eval ac_cv_prog_make_${ac_make}_set=no;;
3116esac
3117rm -f conftest.make
3118fi
3119if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121printf "%s\n" "yes" >&6; }
3122  SET_MAKE=
3123else
3124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125printf "%s\n" "no" >&6; }
3126  SET_MAKE="MAKE=${MAKE-make}"
3127fi
3128
3129rm -rf .tst 2>/dev/null
3130mkdir .tst 2>/dev/null
3131if test -d .tst; then
3132  am__leading_dot=.
3133else
3134  am__leading_dot=_
3135fi
3136rmdir .tst 2>/dev/null
3137
3138# Check whether --enable-silent-rules was given.
3139if test ${enable_silent_rules+y}
3140then :
3141  enableval=$enable_silent_rules;
3142fi
3143
3144case $enable_silent_rules in # (((
3145  yes) AM_DEFAULT_VERBOSITY=0;;
3146   no) AM_DEFAULT_VERBOSITY=1;;
3147    *) AM_DEFAULT_VERBOSITY=1;;
3148esac
3149am_make=${MAKE-make}
3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3151printf %s "checking whether $am_make supports nested variables... " >&6; }
3152if test ${am_cv_make_support_nested_variables+y}
3153then :
3154  printf %s "(cached) " >&6
3155else $as_nop
3156  if printf "%s\n" 'TRUE=$(BAR$(V))
3157BAR0=false
3158BAR1=true
3159V=1
3160am__doit:
3161	@$(TRUE)
3162.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3163  am_cv_make_support_nested_variables=yes
3164else
3165  am_cv_make_support_nested_variables=no
3166fi
3167fi
3168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3169printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3170if test $am_cv_make_support_nested_variables = yes; then
3171    AM_V='$(V)'
3172  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3173else
3174  AM_V=$AM_DEFAULT_VERBOSITY
3175  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3176fi
3177AM_BACKSLASH='\'
3178
3179if test "`cd $srcdir && pwd`" != "`pwd`"; then
3180  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3181  # is not polluted with repeated "-I."
3182  am__isrc=' -I$(srcdir)'
3183  # test to see if srcdir already configured
3184  if test -f $srcdir/config.status; then
3185    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3186  fi
3187fi
3188
3189# test whether we have cygpath
3190if test -z "$CYGPATH_W"; then
3191  if (cygpath --version) >/dev/null 2>/dev/null; then
3192    CYGPATH_W='cygpath -w'
3193  else
3194    CYGPATH_W=echo
3195  fi
3196fi
3197
3198
3199# Define the identity of the package.
3200 PACKAGE='iperf'
3201 VERSION='3.10'
3202
3203
3204printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3205
3206
3207printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3208
3209# Some tools Automake needs.
3210
3211ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3212
3213
3214AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3215
3216
3217AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3218
3219
3220AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3221
3222
3223MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3224
3225# For better backward compatibility.  To be removed once Automake 1.9.x
3226# dies out for good.  For more background, see:
3227# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3228# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3229mkdir_p='$(MKDIR_P)'
3230
3231# We need awk for the "check" target (and possibly the TAP driver).  The
3232# system "awk" is bad on some platforms.
3233# Always define AMTAR for backward compatibility.  Yes, it's still used
3234# in the wild :-(  We should find a proper way to deprecate it ...
3235AMTAR='$${TAR-tar}'
3236
3237
3238# We'll loop over all known methods to create a tar archive until one works.
3239_am_tools='gnutar  pax cpio none'
3240
3241am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3242
3243
3244
3245
3246
3247
3248# POSIX will say in a future version that running "rm -f" with no argument
3249# is OK; and we want to be able to make that assumption in our Makefile
3250# recipes.  So use an aggressive probe to check that the usage we want is
3251# actually supported "in the wild" to an acceptable degree.
3252# See automake bug#10828.
3253# To make any issue more visible, cause the running configure to be aborted
3254# by default if the 'rm' program in use doesn't match our expectations; the
3255# user can still override this though.
3256if rm -f && rm -fr && rm -rf; then : OK; else
3257  cat >&2 <<'END'
3258Oops!
3259
3260Your 'rm' program seems unable to run without file operands specified
3261on the command line, even when the '-f' option is present.  This is contrary
3262to the behaviour of most rm programs out there, and not conforming with
3263the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3264
3265Please tell bug-automake@gnu.org about your system, including the value
3266of your $PATH and any error possibly output before this message.  This
3267can help us improve future automake versions.
3268
3269END
3270  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3271    echo 'Configuration will proceed anyway, since you have set the' >&2
3272    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3273    echo >&2
3274  else
3275    cat >&2 <<'END'
3276Aborting the configuration process, to ensure you take notice of the issue.
3277
3278You can download and install GNU coreutils to get an 'rm' implementation
3279that behaves properly: <https://www.gnu.org/software/coreutils/>.
3280
3281If you want to complete the configuration process using your problematic
3282'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3283to "yes", and re-run configure.
3284
3285END
3286    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3287  fi
3288fi
3289
3290# Check whether --enable-silent-rules was given.
3291if test ${enable_silent_rules+y}
3292then :
3293  enableval=$enable_silent_rules;
3294fi
3295
3296case $enable_silent_rules in # (((
3297  yes) AM_DEFAULT_VERBOSITY=0;;
3298   no) AM_DEFAULT_VERBOSITY=1;;
3299    *) AM_DEFAULT_VERBOSITY=0;;
3300esac
3301am_make=${MAKE-make}
3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3303printf %s "checking whether $am_make supports nested variables... " >&6; }
3304if test ${am_cv_make_support_nested_variables+y}
3305then :
3306  printf %s "(cached) " >&6
3307else $as_nop
3308  if printf "%s\n" 'TRUE=$(BAR$(V))
3309BAR0=false
3310BAR1=true
3311V=1
3312am__doit:
3313	@$(TRUE)
3314.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3315  am_cv_make_support_nested_variables=yes
3316else
3317  am_cv_make_support_nested_variables=no
3318fi
3319fi
3320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3321printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3322if test $am_cv_make_support_nested_variables = yes; then
3323    AM_V='$(V)'
3324  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3325else
3326  AM_V=$AM_DEFAULT_VERBOSITY
3327  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3328fi
3329AM_BACKSLASH='\'
3330
3331case `pwd` in
3332  *\ * | *\	*)
3333    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3334printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3335esac
3336
3337
3338
3339macro_version='2.4.6'
3340macro_revision='2.4.6'
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355ltmain=$ac_aux_dir/ltmain.sh
3356
3357
3358
3359  # Make sure we can run config.sub.
3360$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3361  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3362
3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3364printf %s "checking build system type... " >&6; }
3365if test ${ac_cv_build+y}
3366then :
3367  printf %s "(cached) " >&6
3368else $as_nop
3369  ac_build_alias=$build_alias
3370test "x$ac_build_alias" = x &&
3371  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3372test "x$ac_build_alias" = x &&
3373  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3374ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3375  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3376
3377fi
3378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3379printf "%s\n" "$ac_cv_build" >&6; }
3380case $ac_cv_build in
3381*-*-*) ;;
3382*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3383esac
3384build=$ac_cv_build
3385ac_save_IFS=$IFS; IFS='-'
3386set x $ac_cv_build
3387shift
3388build_cpu=$1
3389build_vendor=$2
3390shift; shift
3391# Remember, the first character of IFS is used to create $*,
3392# except with old shells:
3393build_os=$*
3394IFS=$ac_save_IFS
3395case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3396
3397
3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3399printf %s "checking host system type... " >&6; }
3400if test ${ac_cv_host+y}
3401then :
3402  printf %s "(cached) " >&6
3403else $as_nop
3404  if test "x$host_alias" = x; then
3405  ac_cv_host=$ac_cv_build
3406else
3407  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3408    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3409fi
3410
3411fi
3412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3413printf "%s\n" "$ac_cv_host" >&6; }
3414case $ac_cv_host in
3415*-*-*) ;;
3416*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3417esac
3418host=$ac_cv_host
3419ac_save_IFS=$IFS; IFS='-'
3420set x $ac_cv_host
3421shift
3422host_cpu=$1
3423host_vendor=$2
3424shift; shift
3425# Remember, the first character of IFS is used to create $*,
3426# except with old shells:
3427host_os=$*
3428IFS=$ac_save_IFS
3429case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3430
3431
3432# Backslashify metacharacters that are still active within
3433# double-quoted strings.
3434sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3435
3436# Same as above, but do not quote variable references.
3437double_quote_subst='s/\(["`\\]\)/\\\1/g'
3438
3439# Sed substitution to delay expansion of an escaped shell variable in a
3440# double_quote_subst'ed string.
3441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3442
3443# Sed substitution to delay expansion of an escaped single quote.
3444delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3445
3446# Sed substitution to avoid accidental globbing in evaled expressions
3447no_glob_subst='s/\*/\\\*/g'
3448
3449ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3450ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3452
3453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3454printf %s "checking how to print strings... " >&6; }
3455# Test print first, because it will be a builtin if present.
3456if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3457   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3458  ECHO='print -r --'
3459elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3460  ECHO='printf %s\n'
3461else
3462  # Use this function as a fallback that always works.
3463  func_fallback_echo ()
3464  {
3465    eval 'cat <<_LTECHO_EOF
3466$1
3467_LTECHO_EOF'
3468  }
3469  ECHO='func_fallback_echo'
3470fi
3471
3472# func_echo_all arg...
3473# Invoke $ECHO with all args, space-separated.
3474func_echo_all ()
3475{
3476    $ECHO ""
3477}
3478
3479case $ECHO in
3480  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3481printf "%s\n" "printf" >&6; } ;;
3482  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3483printf "%s\n" "print -r" >&6; } ;;
3484  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3485printf "%s\n" "cat" >&6; } ;;
3486esac
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510DEPDIR="${am__leading_dot}deps"
3511
3512ac_config_commands="$ac_config_commands depfiles"
3513
3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3515printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3516cat > confinc.mk << 'END'
3517am__doit:
3518	@echo this is the am__doit target >confinc.out
3519.PHONY: am__doit
3520END
3521am__include="#"
3522am__quote=
3523# BSD make does it like this.
3524echo '.include "confinc.mk" # ignored' > confmf.BSD
3525# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3526echo 'include confinc.mk # ignored' > confmf.GNU
3527_am_result=no
3528for s in GNU BSD; do
3529  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3530   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }
3534  case $?:`cat confinc.out 2>/dev/null` in #(
3535  '0:this is the am__doit target') :
3536    case $s in #(
3537  BSD) :
3538    am__include='.include' am__quote='"' ;; #(
3539  *) :
3540    am__include='include' am__quote='' ;;
3541esac ;; #(
3542  *) :
3543     ;;
3544esac
3545  if test "$am__include" != "#"; then
3546    _am_result="yes ($s style)"
3547    break
3548  fi
3549done
3550rm -f confinc.* confmf.*
3551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3552printf "%s\n" "${_am_result}" >&6; }
3553
3554# Check whether --enable-dependency-tracking was given.
3555if test ${enable_dependency_tracking+y}
3556then :
3557  enableval=$enable_dependency_tracking;
3558fi
3559
3560if test "x$enable_dependency_tracking" != xno; then
3561  am_depcomp="$ac_aux_dir/depcomp"
3562  AMDEPBACKSLASH='\'
3563  am__nodep='_no'
3564fi
3565 if test "x$enable_dependency_tracking" != xno; then
3566  AMDEP_TRUE=
3567  AMDEP_FALSE='#'
3568else
3569  AMDEP_TRUE='#'
3570  AMDEP_FALSE=
3571fi
3572
3573
3574ac_ext=c
3575ac_cpp='$CPP $CPPFLAGS'
3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579if test -n "$ac_tool_prefix"; then
3580  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3581set dummy ${ac_tool_prefix}gcc; ac_word=$2
3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583printf %s "checking for $ac_word... " >&6; }
3584if test ${ac_cv_prog_CC+y}
3585then :
3586  printf %s "(cached) " >&6
3587else $as_nop
3588  if test -n "$CC"; then
3589  ac_cv_prog_CC="$CC" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594  IFS=$as_save_IFS
3595  case $as_dir in #(((
3596    '') as_dir=./ ;;
3597    */) ;;
3598    *) as_dir=$as_dir/ ;;
3599  esac
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3602    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3603    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3604    break 2
3605  fi
3606done
3607  done
3608IFS=$as_save_IFS
3609
3610fi
3611fi
3612CC=$ac_cv_prog_CC
3613if test -n "$CC"; then
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615printf "%s\n" "$CC" >&6; }
3616else
3617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618printf "%s\n" "no" >&6; }
3619fi
3620
3621
3622fi
3623if test -z "$ac_cv_prog_CC"; then
3624  ac_ct_CC=$CC
3625  # Extract the first word of "gcc", so it can be a program name with args.
3626set dummy gcc; ac_word=$2
3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628printf %s "checking for $ac_word... " >&6; }
3629if test ${ac_cv_prog_ac_ct_CC+y}
3630then :
3631  printf %s "(cached) " >&6
3632else $as_nop
3633  if test -n "$ac_ct_CC"; then
3634  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  case $as_dir in #(((
3641    '') as_dir=./ ;;
3642    */) ;;
3643    *) as_dir=$as_dir/ ;;
3644  esac
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3647    ac_cv_prog_ac_ct_CC="gcc"
3648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3649    break 2
3650  fi
3651done
3652  done
3653IFS=$as_save_IFS
3654
3655fi
3656fi
3657ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658if test -n "$ac_ct_CC"; then
3659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660printf "%s\n" "$ac_ct_CC" >&6; }
3661else
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663printf "%s\n" "no" >&6; }
3664fi
3665
3666  if test "x$ac_ct_CC" = x; then
3667    CC=""
3668  else
3669    case $cross_compiling:$ac_tool_warned in
3670yes:)
3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673ac_tool_warned=yes ;;
3674esac
3675    CC=$ac_ct_CC
3676  fi
3677else
3678  CC="$ac_cv_prog_CC"
3679fi
3680
3681if test -z "$CC"; then
3682          if test -n "$ac_tool_prefix"; then
3683    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3684set dummy ${ac_tool_prefix}cc; ac_word=$2
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686printf %s "checking for $ac_word... " >&6; }
3687if test ${ac_cv_prog_CC+y}
3688then :
3689  printf %s "(cached) " >&6
3690else $as_nop
3691  if test -n "$CC"; then
3692  ac_cv_prog_CC="$CC" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697  IFS=$as_save_IFS
3698  case $as_dir in #(((
3699    '') as_dir=./ ;;
3700    */) ;;
3701    *) as_dir=$as_dir/ ;;
3702  esac
3703    for ac_exec_ext in '' $ac_executable_extensions; do
3704  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3705    ac_cv_prog_CC="${ac_tool_prefix}cc"
3706    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3707    break 2
3708  fi
3709done
3710  done
3711IFS=$as_save_IFS
3712
3713fi
3714fi
3715CC=$ac_cv_prog_CC
3716if test -n "$CC"; then
3717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718printf "%s\n" "$CC" >&6; }
3719else
3720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721printf "%s\n" "no" >&6; }
3722fi
3723
3724
3725  fi
3726fi
3727if test -z "$CC"; then
3728  # Extract the first word of "cc", so it can be a program name with args.
3729set dummy cc; ac_word=$2
3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731printf %s "checking for $ac_word... " >&6; }
3732if test ${ac_cv_prog_CC+y}
3733then :
3734  printf %s "(cached) " >&6
3735else $as_nop
3736  if test -n "$CC"; then
3737  ac_cv_prog_CC="$CC" # Let the user override the test.
3738else
3739  ac_prog_rejected=no
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743  IFS=$as_save_IFS
3744  case $as_dir in #(((
3745    '') as_dir=./ ;;
3746    */) ;;
3747    *) as_dir=$as_dir/ ;;
3748  esac
3749    for ac_exec_ext in '' $ac_executable_extensions; do
3750  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3751    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3752       ac_prog_rejected=yes
3753       continue
3754     fi
3755    ac_cv_prog_CC="cc"
3756    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3757    break 2
3758  fi
3759done
3760  done
3761IFS=$as_save_IFS
3762
3763if test $ac_prog_rejected = yes; then
3764  # We found a bogon in the path, so make sure we never use it.
3765  set dummy $ac_cv_prog_CC
3766  shift
3767  if test $# != 0; then
3768    # We chose a different compiler from the bogus one.
3769    # However, it has the same basename, so the bogon will be chosen
3770    # first if we set CC to just the basename; use the full file name.
3771    shift
3772    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3773  fi
3774fi
3775fi
3776fi
3777CC=$ac_cv_prog_CC
3778if test -n "$CC"; then
3779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780printf "%s\n" "$CC" >&6; }
3781else
3782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783printf "%s\n" "no" >&6; }
3784fi
3785
3786
3787fi
3788if test -z "$CC"; then
3789  if test -n "$ac_tool_prefix"; then
3790  for ac_prog in cl.exe
3791  do
3792    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3793set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795printf %s "checking for $ac_word... " >&6; }
3796if test ${ac_cv_prog_CC+y}
3797then :
3798  printf %s "(cached) " >&6
3799else $as_nop
3800  if test -n "$CC"; then
3801  ac_cv_prog_CC="$CC" # Let the user override the test.
3802else
3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH
3805do
3806  IFS=$as_save_IFS
3807  case $as_dir in #(((
3808    '') as_dir=./ ;;
3809    */) ;;
3810    *) as_dir=$as_dir/ ;;
3811  esac
3812    for ac_exec_ext in '' $ac_executable_extensions; do
3813  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3814    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3815    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3816    break 2
3817  fi
3818done
3819  done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824CC=$ac_cv_prog_CC
3825if test -n "$CC"; then
3826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3827printf "%s\n" "$CC" >&6; }
3828else
3829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830printf "%s\n" "no" >&6; }
3831fi
3832
3833
3834    test -n "$CC" && break
3835  done
3836fi
3837if test -z "$CC"; then
3838  ac_ct_CC=$CC
3839  for ac_prog in cl.exe
3840do
3841  # Extract the first word of "$ac_prog", so it can be a program name with args.
3842set dummy $ac_prog; ac_word=$2
3843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844printf %s "checking for $ac_word... " >&6; }
3845if test ${ac_cv_prog_ac_ct_CC+y}
3846then :
3847  printf %s "(cached) " >&6
3848else $as_nop
3849  if test -n "$ac_ct_CC"; then
3850  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  case $as_dir in #(((
3857    '') as_dir=./ ;;
3858    */) ;;
3859    *) as_dir=$as_dir/ ;;
3860  esac
3861    for ac_exec_ext in '' $ac_executable_extensions; do
3862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3863    ac_cv_prog_ac_ct_CC="$ac_prog"
3864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3865    break 2
3866  fi
3867done
3868  done
3869IFS=$as_save_IFS
3870
3871fi
3872fi
3873ac_ct_CC=$ac_cv_prog_ac_ct_CC
3874if test -n "$ac_ct_CC"; then
3875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3876printf "%s\n" "$ac_ct_CC" >&6; }
3877else
3878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879printf "%s\n" "no" >&6; }
3880fi
3881
3882
3883  test -n "$ac_ct_CC" && break
3884done
3885
3886  if test "x$ac_ct_CC" = x; then
3887    CC=""
3888  else
3889    case $cross_compiling:$ac_tool_warned in
3890yes:)
3891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3892printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3893ac_tool_warned=yes ;;
3894esac
3895    CC=$ac_ct_CC
3896  fi
3897fi
3898
3899fi
3900if test -z "$CC"; then
3901  if test -n "$ac_tool_prefix"; then
3902  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3903set dummy ${ac_tool_prefix}clang; ac_word=$2
3904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905printf %s "checking for $ac_word... " >&6; }
3906if test ${ac_cv_prog_CC+y}
3907then :
3908  printf %s "(cached) " >&6
3909else $as_nop
3910  if test -n "$CC"; then
3911  ac_cv_prog_CC="$CC" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916  IFS=$as_save_IFS
3917  case $as_dir in #(((
3918    '') as_dir=./ ;;
3919    */) ;;
3920    *) as_dir=$as_dir/ ;;
3921  esac
3922    for ac_exec_ext in '' $ac_executable_extensions; do
3923  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3924    ac_cv_prog_CC="${ac_tool_prefix}clang"
3925    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3926    break 2
3927  fi
3928done
3929  done
3930IFS=$as_save_IFS
3931
3932fi
3933fi
3934CC=$ac_cv_prog_CC
3935if test -n "$CC"; then
3936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937printf "%s\n" "$CC" >&6; }
3938else
3939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940printf "%s\n" "no" >&6; }
3941fi
3942
3943
3944fi
3945if test -z "$ac_cv_prog_CC"; then
3946  ac_ct_CC=$CC
3947  # Extract the first word of "clang", so it can be a program name with args.
3948set dummy clang; ac_word=$2
3949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950printf %s "checking for $ac_word... " >&6; }
3951if test ${ac_cv_prog_ac_ct_CC+y}
3952then :
3953  printf %s "(cached) " >&6
3954else $as_nop
3955  if test -n "$ac_ct_CC"; then
3956  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  case $as_dir in #(((
3963    '') as_dir=./ ;;
3964    */) ;;
3965    *) as_dir=$as_dir/ ;;
3966  esac
3967    for ac_exec_ext in '' $ac_executable_extensions; do
3968  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3969    ac_cv_prog_ac_ct_CC="clang"
3970    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3971    break 2
3972  fi
3973done
3974  done
3975IFS=$as_save_IFS
3976
3977fi
3978fi
3979ac_ct_CC=$ac_cv_prog_ac_ct_CC
3980if test -n "$ac_ct_CC"; then
3981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3982printf "%s\n" "$ac_ct_CC" >&6; }
3983else
3984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985printf "%s\n" "no" >&6; }
3986fi
3987
3988  if test "x$ac_ct_CC" = x; then
3989    CC=""
3990  else
3991    case $cross_compiling:$ac_tool_warned in
3992yes:)
3993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3994printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3995ac_tool_warned=yes ;;
3996esac
3997    CC=$ac_ct_CC
3998  fi
3999else
4000  CC="$ac_cv_prog_CC"
4001fi
4002
4003fi
4004
4005
4006test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4008as_fn_error $? "no acceptable C compiler found in \$PATH
4009See \`config.log' for more details" "$LINENO" 5; }
4010
4011# Provide some information about the compiler.
4012printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4013set X $ac_compile
4014ac_compiler=$2
4015for ac_option in --version -v -V -qversion -version; do
4016  { { ac_try="$ac_compiler $ac_option >&5"
4017case "(($ac_try" in
4018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019  *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022printf "%s\n" "$ac_try_echo"; } >&5
4023  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4024  ac_status=$?
4025  if test -s conftest.err; then
4026    sed '10a\
4027... rest of stderr output deleted ...
4028         10q' conftest.err >conftest.er1
4029    cat conftest.er1 >&5
4030  fi
4031  rm -f conftest.er1 conftest.err
4032  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033  test $ac_status = 0; }
4034done
4035
4036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h.  */
4038
4039int
4040main (void)
4041{
4042
4043  ;
4044  return 0;
4045}
4046_ACEOF
4047ac_clean_files_save=$ac_clean_files
4048ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4049# Try to create an executable without -o first, disregard a.out.
4050# It will help us diagnose broken compilers, and finding out an intuition
4051# of exeext.
4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4053printf %s "checking whether the C compiler works... " >&6; }
4054ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4055
4056# The possible output files:
4057ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4058
4059ac_rmfiles=
4060for ac_file in $ac_files
4061do
4062  case $ac_file in
4063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4064    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4065  esac
4066done
4067rm -f $ac_rmfiles
4068
4069if { { ac_try="$ac_link_default"
4070case "(($ac_try" in
4071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072  *) ac_try_echo=$ac_try;;
4073esac
4074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075printf "%s\n" "$ac_try_echo"; } >&5
4076  (eval "$ac_link_default") 2>&5
4077  ac_status=$?
4078  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079  test $ac_status = 0; }
4080then :
4081  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4082# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4083# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4084# so that the user can short-circuit this test for compilers unknown to
4085# Autoconf.
4086for ac_file in $ac_files ''
4087do
4088  test -f "$ac_file" || continue
4089  case $ac_file in
4090    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4091	;;
4092    [ab].out )
4093	# We found the default executable, but exeext='' is most
4094	# certainly right.
4095	break;;
4096    *.* )
4097	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4098	then :; else
4099	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4100	fi
4101	# We set ac_cv_exeext here because the later test for it is not
4102	# safe: cross compilers may not add the suffix if given an `-o'
4103	# argument, so we may need to know it at that point already.
4104	# Even if this section looks crufty: it has the advantage of
4105	# actually working.
4106	break;;
4107    * )
4108	break;;
4109  esac
4110done
4111test "$ac_cv_exeext" = no && ac_cv_exeext=
4112
4113else $as_nop
4114  ac_file=''
4115fi
4116if test -z "$ac_file"
4117then :
4118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119printf "%s\n" "no" >&6; }
4120printf "%s\n" "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4125as_fn_error 77 "C compiler cannot create executables
4126See \`config.log' for more details" "$LINENO" 5; }
4127else $as_nop
4128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129printf "%s\n" "yes" >&6; }
4130fi
4131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4132printf %s "checking for C compiler default output file name... " >&6; }
4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4134printf "%s\n" "$ac_file" >&6; }
4135ac_exeext=$ac_cv_exeext
4136
4137rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4138ac_clean_files=$ac_clean_files_save
4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4140printf %s "checking for suffix of executables... " >&6; }
4141if { { ac_try="$ac_link"
4142case "(($ac_try" in
4143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144  *) ac_try_echo=$ac_try;;
4145esac
4146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147printf "%s\n" "$ac_try_echo"; } >&5
4148  (eval "$ac_link") 2>&5
4149  ac_status=$?
4150  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151  test $ac_status = 0; }
4152then :
4153  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4154# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4155# work properly (i.e., refer to `conftest.exe'), while it won't with
4156# `rm'.
4157for ac_file in conftest.exe conftest conftest.*; do
4158  test -f "$ac_file" || continue
4159  case $ac_file in
4160    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4161    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4162	  break;;
4163    * ) break;;
4164  esac
4165done
4166else $as_nop
4167  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4169as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4170See \`config.log' for more details" "$LINENO" 5; }
4171fi
4172rm -f conftest conftest$ac_cv_exeext
4173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4174printf "%s\n" "$ac_cv_exeext" >&6; }
4175
4176rm -f conftest.$ac_ext
4177EXEEXT=$ac_cv_exeext
4178ac_exeext=$EXEEXT
4179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h.  */
4181#include <stdio.h>
4182int
4183main (void)
4184{
4185FILE *f = fopen ("conftest.out", "w");
4186 return ferror (f) || fclose (f) != 0;
4187
4188  ;
4189  return 0;
4190}
4191_ACEOF
4192ac_clean_files="$ac_clean_files conftest.out"
4193# Check that the compiler produces executables we can run.  If not, either
4194# the compiler is broken, or we cross compile.
4195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196printf %s "checking whether we are cross compiling... " >&6; }
4197if test "$cross_compiling" != yes; then
4198  { { ac_try="$ac_link"
4199case "(($ac_try" in
4200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201  *) ac_try_echo=$ac_try;;
4202esac
4203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204printf "%s\n" "$ac_try_echo"; } >&5
4205  (eval "$ac_link") 2>&5
4206  ac_status=$?
4207  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208  test $ac_status = 0; }
4209  if { ac_try='./conftest$ac_cv_exeext'
4210  { { case "(($ac_try" in
4211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212  *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215printf "%s\n" "$ac_try_echo"; } >&5
4216  (eval "$ac_try") 2>&5
4217  ac_status=$?
4218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219  test $ac_status = 0; }; }; then
4220    cross_compiling=no
4221  else
4222    if test "$cross_compiling" = maybe; then
4223	cross_compiling=yes
4224    else
4225	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4227as_fn_error 77 "cannot run C compiled programs.
4228If you meant to cross compile, use \`--host'.
4229See \`config.log' for more details" "$LINENO" 5; }
4230    fi
4231  fi
4232fi
4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234printf "%s\n" "$cross_compiling" >&6; }
4235
4236rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4237ac_clean_files=$ac_clean_files_save
4238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4239printf %s "checking for suffix of object files... " >&6; }
4240if test ${ac_cv_objext+y}
4241then :
4242  printf %s "(cached) " >&6
4243else $as_nop
4244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h.  */
4246
4247int
4248main (void)
4249{
4250
4251  ;
4252  return 0;
4253}
4254_ACEOF
4255rm -f conftest.o conftest.obj
4256if { { ac_try="$ac_compile"
4257case "(($ac_try" in
4258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259  *) ac_try_echo=$ac_try;;
4260esac
4261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262printf "%s\n" "$ac_try_echo"; } >&5
4263  (eval "$ac_compile") 2>&5
4264  ac_status=$?
4265  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266  test $ac_status = 0; }
4267then :
4268  for ac_file in conftest.o conftest.obj conftest.*; do
4269  test -f "$ac_file" || continue;
4270  case $ac_file in
4271    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4272    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4273       break;;
4274  esac
4275done
4276else $as_nop
4277  printf "%s\n" "$as_me: failed program was:" >&5
4278sed 's/^/| /' conftest.$ac_ext >&5
4279
4280{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4282as_fn_error $? "cannot compute suffix of object files: cannot compile
4283See \`config.log' for more details" "$LINENO" 5; }
4284fi
4285rm -f conftest.$ac_cv_objext conftest.$ac_ext
4286fi
4287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4288printf "%s\n" "$ac_cv_objext" >&6; }
4289OBJEXT=$ac_cv_objext
4290ac_objext=$OBJEXT
4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4292printf %s "checking whether the compiler supports GNU C... " >&6; }
4293if test ${ac_cv_c_compiler_gnu+y}
4294then :
4295  printf %s "(cached) " >&6
4296else $as_nop
4297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298/* end confdefs.h.  */
4299
4300int
4301main (void)
4302{
4303#ifndef __GNUC__
4304       choke me
4305#endif
4306
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311if ac_fn_c_try_compile "$LINENO"
4312then :
4313  ac_compiler_gnu=yes
4314else $as_nop
4315  ac_compiler_gnu=no
4316fi
4317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4318ac_cv_c_compiler_gnu=$ac_compiler_gnu
4319
4320fi
4321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4322printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325if test $ac_compiler_gnu = yes; then
4326  GCC=yes
4327else
4328  GCC=
4329fi
4330ac_test_CFLAGS=${CFLAGS+y}
4331ac_save_CFLAGS=$CFLAGS
4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4333printf %s "checking whether $CC accepts -g... " >&6; }
4334if test ${ac_cv_prog_cc_g+y}
4335then :
4336  printf %s "(cached) " >&6
4337else $as_nop
4338  ac_save_c_werror_flag=$ac_c_werror_flag
4339   ac_c_werror_flag=yes
4340   ac_cv_prog_cc_g=no
4341   CFLAGS="-g"
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344
4345int
4346main (void)
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353if ac_fn_c_try_compile "$LINENO"
4354then :
4355  ac_cv_prog_cc_g=yes
4356else $as_nop
4357  CFLAGS=""
4358      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h.  */
4360
4361int
4362main (void)
4363{
4364
4365  ;
4366  return 0;
4367}
4368_ACEOF
4369if ac_fn_c_try_compile "$LINENO"
4370then :
4371
4372else $as_nop
4373  ac_c_werror_flag=$ac_save_c_werror_flag
4374	 CFLAGS="-g"
4375	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h.  */
4377
4378int
4379main (void)
4380{
4381
4382  ;
4383  return 0;
4384}
4385_ACEOF
4386if ac_fn_c_try_compile "$LINENO"
4387then :
4388  ac_cv_prog_cc_g=yes
4389fi
4390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4391fi
4392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4395   ac_c_werror_flag=$ac_save_c_werror_flag
4396fi
4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4398printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4399if test $ac_test_CFLAGS; then
4400  CFLAGS=$ac_save_CFLAGS
4401elif test $ac_cv_prog_cc_g = yes; then
4402  if test "$GCC" = yes; then
4403    CFLAGS="-g -O2"
4404  else
4405    CFLAGS="-g"
4406  fi
4407else
4408  if test "$GCC" = yes; then
4409    CFLAGS="-O2"
4410  else
4411    CFLAGS=
4412  fi
4413fi
4414ac_prog_cc_stdc=no
4415if test x$ac_prog_cc_stdc = xno
4416then :
4417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4418printf %s "checking for $CC option to enable C11 features... " >&6; }
4419if test ${ac_cv_prog_cc_c11+y}
4420then :
4421  printf %s "(cached) " >&6
4422else $as_nop
4423  ac_cv_prog_cc_c11=no
4424ac_save_CC=$CC
4425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426/* end confdefs.h.  */
4427$ac_c_conftest_c11_program
4428_ACEOF
4429for ac_arg in '' -std=gnu11
4430do
4431  CC="$ac_save_CC $ac_arg"
4432  if ac_fn_c_try_compile "$LINENO"
4433then :
4434  ac_cv_prog_cc_c11=$ac_arg
4435fi
4436rm -f core conftest.err conftest.$ac_objext conftest.beam
4437  test "x$ac_cv_prog_cc_c11" != "xno" && break
4438done
4439rm -f conftest.$ac_ext
4440CC=$ac_save_CC
4441fi
4442
4443if test "x$ac_cv_prog_cc_c11" = xno
4444then :
4445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4446printf "%s\n" "unsupported" >&6; }
4447else $as_nop
4448  if test "x$ac_cv_prog_cc_c11" = x
4449then :
4450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4451printf "%s\n" "none needed" >&6; }
4452else $as_nop
4453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4454printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4455     CC="$CC $ac_cv_prog_cc_c11"
4456fi
4457  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4458  ac_prog_cc_stdc=c11
4459fi
4460fi
4461if test x$ac_prog_cc_stdc = xno
4462then :
4463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4464printf %s "checking for $CC option to enable C99 features... " >&6; }
4465if test ${ac_cv_prog_cc_c99+y}
4466then :
4467  printf %s "(cached) " >&6
4468else $as_nop
4469  ac_cv_prog_cc_c99=no
4470ac_save_CC=$CC
4471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472/* end confdefs.h.  */
4473$ac_c_conftest_c99_program
4474_ACEOF
4475for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4476do
4477  CC="$ac_save_CC $ac_arg"
4478  if ac_fn_c_try_compile "$LINENO"
4479then :
4480  ac_cv_prog_cc_c99=$ac_arg
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.beam
4483  test "x$ac_cv_prog_cc_c99" != "xno" && break
4484done
4485rm -f conftest.$ac_ext
4486CC=$ac_save_CC
4487fi
4488
4489if test "x$ac_cv_prog_cc_c99" = xno
4490then :
4491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4492printf "%s\n" "unsupported" >&6; }
4493else $as_nop
4494  if test "x$ac_cv_prog_cc_c99" = x
4495then :
4496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4497printf "%s\n" "none needed" >&6; }
4498else $as_nop
4499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4500printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4501     CC="$CC $ac_cv_prog_cc_c99"
4502fi
4503  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4504  ac_prog_cc_stdc=c99
4505fi
4506fi
4507if test x$ac_prog_cc_stdc = xno
4508then :
4509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4510printf %s "checking for $CC option to enable C89 features... " >&6; }
4511if test ${ac_cv_prog_cc_c89+y}
4512then :
4513  printf %s "(cached) " >&6
4514else $as_nop
4515  ac_cv_prog_cc_c89=no
4516ac_save_CC=$CC
4517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519$ac_c_conftest_c89_program
4520_ACEOF
4521for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4522do
4523  CC="$ac_save_CC $ac_arg"
4524  if ac_fn_c_try_compile "$LINENO"
4525then :
4526  ac_cv_prog_cc_c89=$ac_arg
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.beam
4529  test "x$ac_cv_prog_cc_c89" != "xno" && break
4530done
4531rm -f conftest.$ac_ext
4532CC=$ac_save_CC
4533fi
4534
4535if test "x$ac_cv_prog_cc_c89" = xno
4536then :
4537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4538printf "%s\n" "unsupported" >&6; }
4539else $as_nop
4540  if test "x$ac_cv_prog_cc_c89" = x
4541then :
4542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4543printf "%s\n" "none needed" >&6; }
4544else $as_nop
4545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4546printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4547     CC="$CC $ac_cv_prog_cc_c89"
4548fi
4549  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4550  ac_prog_cc_stdc=c89
4551fi
4552fi
4553
4554ac_ext=c
4555ac_cpp='$CPP $CPPFLAGS'
4556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560
4561  ac_ext=c
4562ac_cpp='$CPP $CPPFLAGS'
4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4567printf %s "checking whether $CC understands -c and -o together... " >&6; }
4568if test ${am_cv_prog_cc_c_o+y}
4569then :
4570  printf %s "(cached) " >&6
4571else $as_nop
4572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574
4575int
4576main (void)
4577{
4578
4579  ;
4580  return 0;
4581}
4582_ACEOF
4583  # Make sure it works both with $CC and with simple cc.
4584  # Following AC_PROG_CC_C_O, we do the test twice because some
4585  # compilers refuse to overwrite an existing .o file with -o,
4586  # though they will create one.
4587  am_cv_prog_cc_c_o=yes
4588  for am_i in 1 2; do
4589    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4590   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); } \
4594         && test -f conftest2.$ac_objext; then
4595      : OK
4596    else
4597      am_cv_prog_cc_c_o=no
4598      break
4599    fi
4600  done
4601  rm -f core conftest*
4602  unset am_i
4603fi
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4605printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4606if test "$am_cv_prog_cc_c_o" != yes; then
4607   # Losing compiler, so override with the script.
4608   # FIXME: It is wrong to rewrite CC.
4609   # But if we don't then we get into trouble of one sort or another.
4610   # A longer-term fix would be to have automake use am__CC in this case,
4611   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4612   CC="$am_aux_dir/compile $CC"
4613fi
4614ac_ext=c
4615ac_cpp='$CPP $CPPFLAGS'
4616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619
4620
4621depcc="$CC"   am_compiler_list=
4622
4623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4624printf %s "checking dependency style of $depcc... " >&6; }
4625if test ${am_cv_CC_dependencies_compiler_type+y}
4626then :
4627  printf %s "(cached) " >&6
4628else $as_nop
4629  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630  # We make a subdir and do the tests there.  Otherwise we can end up
4631  # making bogus files that we don't know about and never remove.  For
4632  # instance it was reported that on HP-UX the gcc test will end up
4633  # making a dummy file named 'D' -- because '-MD' means "put the output
4634  # in D".
4635  rm -rf conftest.dir
4636  mkdir conftest.dir
4637  # Copy depcomp to subdir because otherwise we won't find it if we're
4638  # using a relative directory.
4639  cp "$am_depcomp" conftest.dir
4640  cd conftest.dir
4641  # We will build objects and dependencies in a subdirectory because
4642  # it helps to detect inapplicable dependency modes.  For instance
4643  # both Tru64's cc and ICC support -MD to output dependencies as a
4644  # side effect of compilation, but ICC will put the dependencies in
4645  # the current directory while Tru64 will put them in the object
4646  # directory.
4647  mkdir sub
4648
4649  am_cv_CC_dependencies_compiler_type=none
4650  if test "$am_compiler_list" = ""; then
4651     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652  fi
4653  am__universal=false
4654  case " $depcc " in #(
4655     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4656     esac
4657
4658  for depmode in $am_compiler_list; do
4659    # Setup a source with many dependencies, because some compilers
4660    # like to wrap large dependency lists on column 80 (with \), and
4661    # we should not choose a depcomp mode which is confused by this.
4662    #
4663    # We need to recreate these files for each test, as the compiler may
4664    # overwrite some of them when testing with obscure command lines.
4665    # This happens at least with the AIX C compiler.
4666    : > sub/conftest.c
4667    for i in 1 2 3 4 5 6; do
4668      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4670      # Solaris 10 /bin/sh.
4671      echo '/* dummy */' > sub/conftst$i.h
4672    done
4673    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4674
4675    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4676    # mode.  It turns out that the SunPro C++ compiler does not properly
4677    # handle '-M -o', and we need to detect this.  Also, some Intel
4678    # versions had trouble with output in subdirs.
4679    am__obj=sub/conftest.${OBJEXT-o}
4680    am__minus_obj="-o $am__obj"
4681    case $depmode in
4682    gcc)
4683      # This depmode causes a compiler race in universal mode.
4684      test "$am__universal" = false || continue
4685      ;;
4686    nosideeffect)
4687      # After this tag, mechanisms are not by side-effect, so they'll
4688      # only be used when explicitly requested.
4689      if test "x$enable_dependency_tracking" = xyes; then
4690	continue
4691      else
4692	break
4693      fi
4694      ;;
4695    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4696      # This compiler won't grok '-c -o', but also, the minuso test has
4697      # not run yet.  These depmodes are late enough in the game, and
4698      # so weak that their functioning should not be impacted.
4699      am__obj=conftest.${OBJEXT-o}
4700      am__minus_obj=
4701      ;;
4702    none) break ;;
4703    esac
4704    if depmode=$depmode \
4705       source=sub/conftest.c object=$am__obj \
4706       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4708         >/dev/null 2>conftest.err &&
4709       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4710       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4712       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713      # icc doesn't choke on unknown options, it will just issue warnings
4714      # or remarks (even with -Werror).  So we grep stderr for any message
4715      # that says an option was ignored or not supported.
4716      # When given -MP, icc 7.0 and 7.1 complain thusly:
4717      #   icc: Command line warning: ignoring option '-M'; no argument required
4718      # The diagnosis changed in icc 8.0:
4719      #   icc: Command line remark: option '-MP' not supported
4720      if (grep 'ignoring option' conftest.err ||
4721          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722        am_cv_CC_dependencies_compiler_type=$depmode
4723        break
4724      fi
4725    fi
4726  done
4727
4728  cd ..
4729  rm -rf conftest.dir
4730else
4731  am_cv_CC_dependencies_compiler_type=none
4732fi
4733
4734fi
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4736printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4737CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4738
4739 if
4740  test "x$enable_dependency_tracking" != xno \
4741  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4742  am__fastdepCC_TRUE=
4743  am__fastdepCC_FALSE='#'
4744else
4745  am__fastdepCC_TRUE='#'
4746  am__fastdepCC_FALSE=
4747fi
4748
4749
4750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4751printf %s "checking for a sed that does not truncate output... " >&6; }
4752if test ${ac_cv_path_SED+y}
4753then :
4754  printf %s "(cached) " >&6
4755else $as_nop
4756            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4757     for ac_i in 1 2 3 4 5 6 7; do
4758       ac_script="$ac_script$as_nl$ac_script"
4759     done
4760     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4761     { ac_script=; unset ac_script;}
4762     if test -z "$SED"; then
4763  ac_path_SED_found=false
4764  # Loop through the user's path and test for each of PROGNAME-LIST
4765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH
4767do
4768  IFS=$as_save_IFS
4769  case $as_dir in #(((
4770    '') as_dir=./ ;;
4771    */) ;;
4772    *) as_dir=$as_dir/ ;;
4773  esac
4774    for ac_prog in sed gsed
4775   do
4776    for ac_exec_ext in '' $ac_executable_extensions; do
4777      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4778      as_fn_executable_p "$ac_path_SED" || continue
4779# Check for GNU ac_path_SED and select it if it is found.
4780  # Check for GNU $ac_path_SED
4781case `"$ac_path_SED" --version 2>&1` in
4782*GNU*)
4783  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4784*)
4785  ac_count=0
4786  printf %s 0123456789 >"conftest.in"
4787  while :
4788  do
4789    cat "conftest.in" "conftest.in" >"conftest.tmp"
4790    mv "conftest.tmp" "conftest.in"
4791    cp "conftest.in" "conftest.nl"
4792    printf "%s\n" '' >> "conftest.nl"
4793    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795    as_fn_arith $ac_count + 1 && ac_count=$as_val
4796    if test $ac_count -gt ${ac_path_SED_max-0}; then
4797      # Best one so far, save it but keep looking for a better one
4798      ac_cv_path_SED="$ac_path_SED"
4799      ac_path_SED_max=$ac_count
4800    fi
4801    # 10*(2^10) chars as input seems more than enough
4802    test $ac_count -gt 10 && break
4803  done
4804  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805esac
4806
4807      $ac_path_SED_found && break 3
4808    done
4809  done
4810  done
4811IFS=$as_save_IFS
4812  if test -z "$ac_cv_path_SED"; then
4813    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4814  fi
4815else
4816  ac_cv_path_SED=$SED
4817fi
4818
4819fi
4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4821printf "%s\n" "$ac_cv_path_SED" >&6; }
4822 SED="$ac_cv_path_SED"
4823  rm -f conftest.sed
4824
4825test -z "$SED" && SED=sed
4826Xsed="$SED -e 1s/^X//"
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4839printf %s "checking for grep that handles long lines and -e... " >&6; }
4840if test ${ac_cv_path_GREP+y}
4841then :
4842  printf %s "(cached) " >&6
4843else $as_nop
4844  if test -z "$GREP"; then
4845  ac_path_GREP_found=false
4846  # Loop through the user's path and test for each of PROGNAME-LIST
4847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4849do
4850  IFS=$as_save_IFS
4851  case $as_dir in #(((
4852    '') as_dir=./ ;;
4853    */) ;;
4854    *) as_dir=$as_dir/ ;;
4855  esac
4856    for ac_prog in grep ggrep
4857   do
4858    for ac_exec_ext in '' $ac_executable_extensions; do
4859      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4860      as_fn_executable_p "$ac_path_GREP" || continue
4861# Check for GNU ac_path_GREP and select it if it is found.
4862  # Check for GNU $ac_path_GREP
4863case `"$ac_path_GREP" --version 2>&1` in
4864*GNU*)
4865  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4866*)
4867  ac_count=0
4868  printf %s 0123456789 >"conftest.in"
4869  while :
4870  do
4871    cat "conftest.in" "conftest.in" >"conftest.tmp"
4872    mv "conftest.tmp" "conftest.in"
4873    cp "conftest.in" "conftest.nl"
4874    printf "%s\n" 'GREP' >> "conftest.nl"
4875    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4876    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4877    as_fn_arith $ac_count + 1 && ac_count=$as_val
4878    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4879      # Best one so far, save it but keep looking for a better one
4880      ac_cv_path_GREP="$ac_path_GREP"
4881      ac_path_GREP_max=$ac_count
4882    fi
4883    # 10*(2^10) chars as input seems more than enough
4884    test $ac_count -gt 10 && break
4885  done
4886  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4887esac
4888
4889      $ac_path_GREP_found && break 3
4890    done
4891  done
4892  done
4893IFS=$as_save_IFS
4894  if test -z "$ac_cv_path_GREP"; then
4895    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4896  fi
4897else
4898  ac_cv_path_GREP=$GREP
4899fi
4900
4901fi
4902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4903printf "%s\n" "$ac_cv_path_GREP" >&6; }
4904 GREP="$ac_cv_path_GREP"
4905
4906
4907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4908printf %s "checking for egrep... " >&6; }
4909if test ${ac_cv_path_EGREP+y}
4910then :
4911  printf %s "(cached) " >&6
4912else $as_nop
4913  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4914   then ac_cv_path_EGREP="$GREP -E"
4915   else
4916     if test -z "$EGREP"; then
4917  ac_path_EGREP_found=false
4918  # Loop through the user's path and test for each of PROGNAME-LIST
4919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4921do
4922  IFS=$as_save_IFS
4923  case $as_dir in #(((
4924    '') as_dir=./ ;;
4925    */) ;;
4926    *) as_dir=$as_dir/ ;;
4927  esac
4928    for ac_prog in egrep
4929   do
4930    for ac_exec_ext in '' $ac_executable_extensions; do
4931      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4932      as_fn_executable_p "$ac_path_EGREP" || continue
4933# Check for GNU ac_path_EGREP and select it if it is found.
4934  # Check for GNU $ac_path_EGREP
4935case `"$ac_path_EGREP" --version 2>&1` in
4936*GNU*)
4937  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4938*)
4939  ac_count=0
4940  printf %s 0123456789 >"conftest.in"
4941  while :
4942  do
4943    cat "conftest.in" "conftest.in" >"conftest.tmp"
4944    mv "conftest.tmp" "conftest.in"
4945    cp "conftest.in" "conftest.nl"
4946    printf "%s\n" 'EGREP' >> "conftest.nl"
4947    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4949    as_fn_arith $ac_count + 1 && ac_count=$as_val
4950    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4951      # Best one so far, save it but keep looking for a better one
4952      ac_cv_path_EGREP="$ac_path_EGREP"
4953      ac_path_EGREP_max=$ac_count
4954    fi
4955    # 10*(2^10) chars as input seems more than enough
4956    test $ac_count -gt 10 && break
4957  done
4958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4959esac
4960
4961      $ac_path_EGREP_found && break 3
4962    done
4963  done
4964  done
4965IFS=$as_save_IFS
4966  if test -z "$ac_cv_path_EGREP"; then
4967    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4968  fi
4969else
4970  ac_cv_path_EGREP=$EGREP
4971fi
4972
4973   fi
4974fi
4975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4976printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4977 EGREP="$ac_cv_path_EGREP"
4978
4979
4980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4981printf %s "checking for fgrep... " >&6; }
4982if test ${ac_cv_path_FGREP+y}
4983then :
4984  printf %s "(cached) " >&6
4985else $as_nop
4986  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4987   then ac_cv_path_FGREP="$GREP -F"
4988   else
4989     if test -z "$FGREP"; then
4990  ac_path_FGREP_found=false
4991  # Loop through the user's path and test for each of PROGNAME-LIST
4992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994do
4995  IFS=$as_save_IFS
4996  case $as_dir in #(((
4997    '') as_dir=./ ;;
4998    */) ;;
4999    *) as_dir=$as_dir/ ;;
5000  esac
5001    for ac_prog in fgrep
5002   do
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5005      as_fn_executable_p "$ac_path_FGREP" || continue
5006# Check for GNU ac_path_FGREP and select it if it is found.
5007  # Check for GNU $ac_path_FGREP
5008case `"$ac_path_FGREP" --version 2>&1` in
5009*GNU*)
5010  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5011*)
5012  ac_count=0
5013  printf %s 0123456789 >"conftest.in"
5014  while :
5015  do
5016    cat "conftest.in" "conftest.in" >"conftest.tmp"
5017    mv "conftest.tmp" "conftest.in"
5018    cp "conftest.in" "conftest.nl"
5019    printf "%s\n" 'FGREP' >> "conftest.nl"
5020    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022    as_fn_arith $ac_count + 1 && ac_count=$as_val
5023    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5024      # Best one so far, save it but keep looking for a better one
5025      ac_cv_path_FGREP="$ac_path_FGREP"
5026      ac_path_FGREP_max=$ac_count
5027    fi
5028    # 10*(2^10) chars as input seems more than enough
5029    test $ac_count -gt 10 && break
5030  done
5031  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032esac
5033
5034      $ac_path_FGREP_found && break 3
5035    done
5036  done
5037  done
5038IFS=$as_save_IFS
5039  if test -z "$ac_cv_path_FGREP"; then
5040    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041  fi
5042else
5043  ac_cv_path_FGREP=$FGREP
5044fi
5045
5046   fi
5047fi
5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5049printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5050 FGREP="$ac_cv_path_FGREP"
5051
5052
5053test -z "$GREP" && GREP=grep
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073# Check whether --with-gnu-ld was given.
5074if test ${with_gnu_ld+y}
5075then :
5076  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5077else $as_nop
5078  with_gnu_ld=no
5079fi
5080
5081ac_prog=ld
5082if test yes = "$GCC"; then
5083  # Check if gcc -print-prog-name=ld gives a path.
5084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5085printf %s "checking for ld used by $CC... " >&6; }
5086  case $host in
5087  *-*-mingw*)
5088    # gcc leaves a trailing carriage return, which upsets mingw
5089    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5090  *)
5091    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5092  esac
5093  case $ac_prog in
5094    # Accept absolute paths.
5095    [\\/]* | ?:[\\/]*)
5096      re_direlt='/[^/][^/]*/\.\./'
5097      # Canonicalize the pathname of ld
5098      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5099      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5100	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5101      done
5102      test -z "$LD" && LD=$ac_prog
5103      ;;
5104  "")
5105    # If it fails, then pretend we aren't using GCC.
5106    ac_prog=ld
5107    ;;
5108  *)
5109    # If it is relative, then search for the first ld in PATH.
5110    with_gnu_ld=unknown
5111    ;;
5112  esac
5113elif test yes = "$with_gnu_ld"; then
5114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5115printf %s "checking for GNU ld... " >&6; }
5116else
5117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5118printf %s "checking for non-GNU ld... " >&6; }
5119fi
5120if test ${lt_cv_path_LD+y}
5121then :
5122  printf %s "(cached) " >&6
5123else $as_nop
5124  if test -z "$LD"; then
5125  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5126  for ac_dir in $PATH; do
5127    IFS=$lt_save_ifs
5128    test -z "$ac_dir" && ac_dir=.
5129    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5130      lt_cv_path_LD=$ac_dir/$ac_prog
5131      # Check to see if the program is GNU ld.  I'd rather use --version,
5132      # but apparently some variants of GNU ld only accept -v.
5133      # Break only if it was the GNU/non-GNU ld that we prefer.
5134      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5135      *GNU* | *'with BFD'*)
5136	test no != "$with_gnu_ld" && break
5137	;;
5138      *)
5139	test yes != "$with_gnu_ld" && break
5140	;;
5141      esac
5142    fi
5143  done
5144  IFS=$lt_save_ifs
5145else
5146  lt_cv_path_LD=$LD # Let the user override the test with a path.
5147fi
5148fi
5149
5150LD=$lt_cv_path_LD
5151if test -n "$LD"; then
5152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5153printf "%s\n" "$LD" >&6; }
5154else
5155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156printf "%s\n" "no" >&6; }
5157fi
5158test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5160printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5161if test ${lt_cv_prog_gnu_ld+y}
5162then :
5163  printf %s "(cached) " >&6
5164else $as_nop
5165  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5166case `$LD -v 2>&1 </dev/null` in
5167*GNU* | *'with BFD'*)
5168  lt_cv_prog_gnu_ld=yes
5169  ;;
5170*)
5171  lt_cv_prog_gnu_ld=no
5172  ;;
5173esac
5174fi
5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5176printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5177with_gnu_ld=$lt_cv_prog_gnu_ld
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5188printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5189if test ${lt_cv_path_NM+y}
5190then :
5191  printf %s "(cached) " >&6
5192else $as_nop
5193  if test -n "$NM"; then
5194  # Let the user override the test.
5195  lt_cv_path_NM=$NM
5196else
5197  lt_nm_to_check=${ac_tool_prefix}nm
5198  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5199    lt_nm_to_check="$lt_nm_to_check nm"
5200  fi
5201  for lt_tmp_nm in $lt_nm_to_check; do
5202    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5203    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5204      IFS=$lt_save_ifs
5205      test -z "$ac_dir" && ac_dir=.
5206      tmp_nm=$ac_dir/$lt_tmp_nm
5207      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5208	# Check to see if the nm accepts a BSD-compat flag.
5209	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5210	#   nm: unknown option "B" ignored
5211	# Tru64's nm complains that /dev/null is an invalid object file
5212	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5213	case $build_os in
5214	mingw*) lt_bad_file=conftest.nm/nofile ;;
5215	*) lt_bad_file=/dev/null ;;
5216	esac
5217	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5218	*$lt_bad_file* | *'Invalid file or object type'*)
5219	  lt_cv_path_NM="$tmp_nm -B"
5220	  break 2
5221	  ;;
5222	*)
5223	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5224	  */dev/null*)
5225	    lt_cv_path_NM="$tmp_nm -p"
5226	    break 2
5227	    ;;
5228	  *)
5229	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5230	    continue # so that we can try to find one that supports BSD flags
5231	    ;;
5232	  esac
5233	  ;;
5234	esac
5235      fi
5236    done
5237    IFS=$lt_save_ifs
5238  done
5239  : ${lt_cv_path_NM=no}
5240fi
5241fi
5242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5243printf "%s\n" "$lt_cv_path_NM" >&6; }
5244if test no != "$lt_cv_path_NM"; then
5245  NM=$lt_cv_path_NM
5246else
5247  # Didn't find any BSD compatible name lister, look for dumpbin.
5248  if test -n "$DUMPBIN"; then :
5249    # Let the user override the test.
5250  else
5251    if test -n "$ac_tool_prefix"; then
5252  for ac_prog in dumpbin "link -dump"
5253  do
5254    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257printf %s "checking for $ac_word... " >&6; }
5258if test ${ac_cv_prog_DUMPBIN+y}
5259then :
5260  printf %s "(cached) " >&6
5261else $as_nop
5262  if test -n "$DUMPBIN"; then
5263  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  case $as_dir in #(((
5270    '') as_dir=./ ;;
5271    */) ;;
5272    *) as_dir=$as_dir/ ;;
5273  esac
5274    for ac_exec_ext in '' $ac_executable_extensions; do
5275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5276    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5278    break 2
5279  fi
5280done
5281  done
5282IFS=$as_save_IFS
5283
5284fi
5285fi
5286DUMPBIN=$ac_cv_prog_DUMPBIN
5287if test -n "$DUMPBIN"; then
5288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5289printf "%s\n" "$DUMPBIN" >&6; }
5290else
5291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292printf "%s\n" "no" >&6; }
5293fi
5294
5295
5296    test -n "$DUMPBIN" && break
5297  done
5298fi
5299if test -z "$DUMPBIN"; then
5300  ac_ct_DUMPBIN=$DUMPBIN
5301  for ac_prog in dumpbin "link -dump"
5302do
5303  # Extract the first word of "$ac_prog", so it can be a program name with args.
5304set dummy $ac_prog; ac_word=$2
5305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306printf %s "checking for $ac_word... " >&6; }
5307if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5308then :
5309  printf %s "(cached) " >&6
5310else $as_nop
5311  if test -n "$ac_ct_DUMPBIN"; then
5312  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317  IFS=$as_save_IFS
5318  case $as_dir in #(((
5319    '') as_dir=./ ;;
5320    */) ;;
5321    *) as_dir=$as_dir/ ;;
5322  esac
5323    for ac_exec_ext in '' $ac_executable_extensions; do
5324  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5325    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5326    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5327    break 2
5328  fi
5329done
5330  done
5331IFS=$as_save_IFS
5332
5333fi
5334fi
5335ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5336if test -n "$ac_ct_DUMPBIN"; then
5337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5338printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5339else
5340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341printf "%s\n" "no" >&6; }
5342fi
5343
5344
5345  test -n "$ac_ct_DUMPBIN" && break
5346done
5347
5348  if test "x$ac_ct_DUMPBIN" = x; then
5349    DUMPBIN=":"
5350  else
5351    case $cross_compiling:$ac_tool_warned in
5352yes:)
5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355ac_tool_warned=yes ;;
5356esac
5357    DUMPBIN=$ac_ct_DUMPBIN
5358  fi
5359fi
5360
5361    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5362    *COFF*)
5363      DUMPBIN="$DUMPBIN -symbols -headers"
5364      ;;
5365    *)
5366      DUMPBIN=:
5367      ;;
5368    esac
5369  fi
5370
5371  if test : != "$DUMPBIN"; then
5372    NM=$DUMPBIN
5373  fi
5374fi
5375test -z "$NM" && NM=nm
5376
5377
5378
5379
5380
5381
5382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5383printf %s "checking the name lister ($NM) interface... " >&6; }
5384if test ${lt_cv_nm_interface+y}
5385then :
5386  printf %s "(cached) " >&6
5387else $as_nop
5388  lt_cv_nm_interface="BSD nm"
5389  echo "int some_variable = 0;" > conftest.$ac_ext
5390  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5391  (eval "$ac_compile" 2>conftest.err)
5392  cat conftest.err >&5
5393  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5394  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5395  cat conftest.err >&5
5396  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5397  cat conftest.out >&5
5398  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5399    lt_cv_nm_interface="MS dumpbin"
5400  fi
5401  rm -f conftest*
5402fi
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5404printf "%s\n" "$lt_cv_nm_interface" >&6; }
5405
5406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5407printf %s "checking whether ln -s works... " >&6; }
5408LN_S=$as_ln_s
5409if test "$LN_S" = "ln -s"; then
5410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5411printf "%s\n" "yes" >&6; }
5412else
5413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5414printf "%s\n" "no, using $LN_S" >&6; }
5415fi
5416
5417# find the maximum length of command line arguments
5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5419printf %s "checking the maximum length of command line arguments... " >&6; }
5420if test ${lt_cv_sys_max_cmd_len+y}
5421then :
5422  printf %s "(cached) " >&6
5423else $as_nop
5424    i=0
5425  teststring=ABCD
5426
5427  case $build_os in
5428  msdosdjgpp*)
5429    # On DJGPP, this test can blow up pretty badly due to problems in libc
5430    # (any single argument exceeding 2000 bytes causes a buffer overrun
5431    # during glob expansion).  Even if it were fixed, the result of this
5432    # check would be larger than it should be.
5433    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5434    ;;
5435
5436  gnu*)
5437    # Under GNU Hurd, this test is not required because there is
5438    # no limit to the length of command line arguments.
5439    # Libtool will interpret -1 as no limit whatsoever
5440    lt_cv_sys_max_cmd_len=-1;
5441    ;;
5442
5443  cygwin* | mingw* | cegcc*)
5444    # On Win9x/ME, this test blows up -- it succeeds, but takes
5445    # about 5 minutes as the teststring grows exponentially.
5446    # Worse, since 9x/ME are not pre-emptively multitasking,
5447    # you end up with a "frozen" computer, even though with patience
5448    # the test eventually succeeds (with a max line length of 256k).
5449    # Instead, let's just punt: use the minimum linelength reported by
5450    # all of the supported platforms: 8192 (on NT/2K/XP).
5451    lt_cv_sys_max_cmd_len=8192;
5452    ;;
5453
5454  mint*)
5455    # On MiNT this can take a long time and run out of memory.
5456    lt_cv_sys_max_cmd_len=8192;
5457    ;;
5458
5459  amigaos*)
5460    # On AmigaOS with pdksh, this test takes hours, literally.
5461    # So we just punt and use a minimum line length of 8192.
5462    lt_cv_sys_max_cmd_len=8192;
5463    ;;
5464
5465  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5466    # This has been around since 386BSD, at least.  Likely further.
5467    if test -x /sbin/sysctl; then
5468      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5469    elif test -x /usr/sbin/sysctl; then
5470      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5471    else
5472      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5473    fi
5474    # And add a safety zone
5475    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5476    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5477    ;;
5478
5479  interix*)
5480    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5481    lt_cv_sys_max_cmd_len=196608
5482    ;;
5483
5484  os2*)
5485    # The test takes a long time on OS/2.
5486    lt_cv_sys_max_cmd_len=8192
5487    ;;
5488
5489  osf*)
5490    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5491    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5492    # nice to cause kernel panics so lets avoid the loop below.
5493    # First set a reasonable default.
5494    lt_cv_sys_max_cmd_len=16384
5495    #
5496    if test -x /sbin/sysconfig; then
5497      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5498        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5499      esac
5500    fi
5501    ;;
5502  sco3.2v5*)
5503    lt_cv_sys_max_cmd_len=102400
5504    ;;
5505  sysv5* | sco5v6* | sysv4.2uw2*)
5506    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5507    if test -n "$kargmax"; then
5508      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5509    else
5510      lt_cv_sys_max_cmd_len=32768
5511    fi
5512    ;;
5513  *)
5514    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5515    if test -n "$lt_cv_sys_max_cmd_len" && \
5516       test undefined != "$lt_cv_sys_max_cmd_len"; then
5517      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5518      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5519    else
5520      # Make teststring a little bigger before we do anything with it.
5521      # a 1K string should be a reasonable start.
5522      for i in 1 2 3 4 5 6 7 8; do
5523        teststring=$teststring$teststring
5524      done
5525      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5526      # If test is not a shell built-in, we'll probably end up computing a
5527      # maximum length that is only half of the actual maximum length, but
5528      # we can't tell.
5529      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5530	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5531	      test 17 != "$i" # 1/2 MB should be enough
5532      do
5533        i=`expr $i + 1`
5534        teststring=$teststring$teststring
5535      done
5536      # Only check the string length outside the loop.
5537      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5538      teststring=
5539      # Add a significant safety factor because C++ compilers can tack on
5540      # massive amounts of additional arguments before passing them to the
5541      # linker.  It appears as though 1/2 is a usable value.
5542      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5543    fi
5544    ;;
5545  esac
5546
5547fi
5548
5549if test -n "$lt_cv_sys_max_cmd_len"; then
5550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5551printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5552else
5553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5554printf "%s\n" "none" >&6; }
5555fi
5556max_cmd_len=$lt_cv_sys_max_cmd_len
5557
5558
5559
5560
5561
5562
5563: ${CP="cp -f"}
5564: ${MV="mv -f"}
5565: ${RM="rm -f"}
5566
5567if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5568  lt_unset=unset
5569else
5570  lt_unset=false
5571fi
5572
5573
5574
5575
5576
5577# test EBCDIC or ASCII
5578case `echo X|tr X '\101'` in
5579 A) # ASCII based system
5580    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5581  lt_SP2NL='tr \040 \012'
5582  lt_NL2SP='tr \015\012 \040\040'
5583  ;;
5584 *) # EBCDIC based system
5585  lt_SP2NL='tr \100 \n'
5586  lt_NL2SP='tr \r\n \100\100'
5587  ;;
5588esac
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5599printf %s "checking how to convert $build file names to $host format... " >&6; }
5600if test ${lt_cv_to_host_file_cmd+y}
5601then :
5602  printf %s "(cached) " >&6
5603else $as_nop
5604  case $host in
5605  *-*-mingw* )
5606    case $build in
5607      *-*-mingw* ) # actually msys
5608        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5609        ;;
5610      *-*-cygwin* )
5611        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5612        ;;
5613      * ) # otherwise, assume *nix
5614        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5615        ;;
5616    esac
5617    ;;
5618  *-*-cygwin* )
5619    case $build in
5620      *-*-mingw* ) # actually msys
5621        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5622        ;;
5623      *-*-cygwin* )
5624        lt_cv_to_host_file_cmd=func_convert_file_noop
5625        ;;
5626      * ) # otherwise, assume *nix
5627        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5628        ;;
5629    esac
5630    ;;
5631  * ) # unhandled hosts (and "normal" native builds)
5632    lt_cv_to_host_file_cmd=func_convert_file_noop
5633    ;;
5634esac
5635
5636fi
5637
5638to_host_file_cmd=$lt_cv_to_host_file_cmd
5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5640printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5641
5642
5643
5644
5645
5646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5647printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5648if test ${lt_cv_to_tool_file_cmd+y}
5649then :
5650  printf %s "(cached) " >&6
5651else $as_nop
5652  #assume ordinary cross tools, or native build.
5653lt_cv_to_tool_file_cmd=func_convert_file_noop
5654case $host in
5655  *-*-mingw* )
5656    case $build in
5657      *-*-mingw* ) # actually msys
5658        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5659        ;;
5660    esac
5661    ;;
5662esac
5663
5664fi
5665
5666to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5668printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5669
5670
5671
5672
5673
5674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5675printf %s "checking for $LD option to reload object files... " >&6; }
5676if test ${lt_cv_ld_reload_flag+y}
5677then :
5678  printf %s "(cached) " >&6
5679else $as_nop
5680  lt_cv_ld_reload_flag='-r'
5681fi
5682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5683printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5684reload_flag=$lt_cv_ld_reload_flag
5685case $reload_flag in
5686"" | " "*) ;;
5687*) reload_flag=" $reload_flag" ;;
5688esac
5689reload_cmds='$LD$reload_flag -o $output$reload_objs'
5690case $host_os in
5691  cygwin* | mingw* | pw32* | cegcc*)
5692    if test yes != "$GCC"; then
5693      reload_cmds=false
5694    fi
5695    ;;
5696  darwin*)
5697    if test yes = "$GCC"; then
5698      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5699    else
5700      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5701    fi
5702    ;;
5703esac
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713if test -n "$ac_tool_prefix"; then
5714  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5715set dummy ${ac_tool_prefix}objdump; ac_word=$2
5716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717printf %s "checking for $ac_word... " >&6; }
5718if test ${ac_cv_prog_OBJDUMP+y}
5719then :
5720  printf %s "(cached) " >&6
5721else $as_nop
5722  if test -n "$OBJDUMP"; then
5723  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  case $as_dir in #(((
5730    '') as_dir=./ ;;
5731    */) ;;
5732    *) as_dir=$as_dir/ ;;
5733  esac
5734    for ac_exec_ext in '' $ac_executable_extensions; do
5735  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5736    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5737    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5738    break 2
5739  fi
5740done
5741  done
5742IFS=$as_save_IFS
5743
5744fi
5745fi
5746OBJDUMP=$ac_cv_prog_OBJDUMP
5747if test -n "$OBJDUMP"; then
5748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5749printf "%s\n" "$OBJDUMP" >&6; }
5750else
5751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752printf "%s\n" "no" >&6; }
5753fi
5754
5755
5756fi
5757if test -z "$ac_cv_prog_OBJDUMP"; then
5758  ac_ct_OBJDUMP=$OBJDUMP
5759  # Extract the first word of "objdump", so it can be a program name with args.
5760set dummy objdump; ac_word=$2
5761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762printf %s "checking for $ac_word... " >&6; }
5763if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5764then :
5765  printf %s "(cached) " >&6
5766else $as_nop
5767  if test -n "$ac_ct_OBJDUMP"; then
5768  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773  IFS=$as_save_IFS
5774  case $as_dir in #(((
5775    '') as_dir=./ ;;
5776    */) ;;
5777    *) as_dir=$as_dir/ ;;
5778  esac
5779    for ac_exec_ext in '' $ac_executable_extensions; do
5780  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5781    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5782    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5783    break 2
5784  fi
5785done
5786  done
5787IFS=$as_save_IFS
5788
5789fi
5790fi
5791ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5792if test -n "$ac_ct_OBJDUMP"; then
5793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5794printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5795else
5796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797printf "%s\n" "no" >&6; }
5798fi
5799
5800  if test "x$ac_ct_OBJDUMP" = x; then
5801    OBJDUMP="false"
5802  else
5803    case $cross_compiling:$ac_tool_warned in
5804yes:)
5805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807ac_tool_warned=yes ;;
5808esac
5809    OBJDUMP=$ac_ct_OBJDUMP
5810  fi
5811else
5812  OBJDUMP="$ac_cv_prog_OBJDUMP"
5813fi
5814
5815test -z "$OBJDUMP" && OBJDUMP=objdump
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5826printf %s "checking how to recognize dependent libraries... " >&6; }
5827if test ${lt_cv_deplibs_check_method+y}
5828then :
5829  printf %s "(cached) " >&6
5830else $as_nop
5831  lt_cv_file_magic_cmd='$MAGIC_CMD'
5832lt_cv_file_magic_test_file=
5833lt_cv_deplibs_check_method='unknown'
5834# Need to set the preceding variable on all platforms that support
5835# interlibrary dependencies.
5836# 'none' -- dependencies not supported.
5837# 'unknown' -- same as none, but documents that we really don't know.
5838# 'pass_all' -- all dependencies passed with no checks.
5839# 'test_compile' -- check by making test program.
5840# 'file_magic [[regex]]' -- check by looking for files in library path
5841# that responds to the $file_magic_cmd with a given extended regex.
5842# If you have 'file' or equivalent on your system and you're not sure
5843# whether 'pass_all' will *always* work, you probably want this one.
5844
5845case $host_os in
5846aix[4-9]*)
5847  lt_cv_deplibs_check_method=pass_all
5848  ;;
5849
5850beos*)
5851  lt_cv_deplibs_check_method=pass_all
5852  ;;
5853
5854bsdi[45]*)
5855  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5856  lt_cv_file_magic_cmd='/usr/bin/file -L'
5857  lt_cv_file_magic_test_file=/shlib/libc.so
5858  ;;
5859
5860cygwin*)
5861  # func_win32_libid is a shell function defined in ltmain.sh
5862  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5863  lt_cv_file_magic_cmd='func_win32_libid'
5864  ;;
5865
5866mingw* | pw32*)
5867  # Base MSYS/MinGW do not provide the 'file' command needed by
5868  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5869  # unless we find 'file', for example because we are cross-compiling.
5870  if ( file / ) >/dev/null 2>&1; then
5871    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5872    lt_cv_file_magic_cmd='func_win32_libid'
5873  else
5874    # Keep this pattern in sync with the one in func_win32_libid.
5875    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5876    lt_cv_file_magic_cmd='$OBJDUMP -f'
5877  fi
5878  ;;
5879
5880cegcc*)
5881  # use the weaker test based on 'objdump'. See mingw*.
5882  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5883  lt_cv_file_magic_cmd='$OBJDUMP -f'
5884  ;;
5885
5886darwin* | rhapsody*)
5887  lt_cv_deplibs_check_method=pass_all
5888  ;;
5889
5890freebsd* | dragonfly*)
5891  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5892    case $host_cpu in
5893    i*86 )
5894      # Not sure whether the presence of OpenBSD here was a mistake.
5895      # Let's accept both of them until this is cleared up.
5896      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5897      lt_cv_file_magic_cmd=/usr/bin/file
5898      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5899      ;;
5900    esac
5901  else
5902    lt_cv_deplibs_check_method=pass_all
5903  fi
5904  ;;
5905
5906haiku*)
5907  lt_cv_deplibs_check_method=pass_all
5908  ;;
5909
5910hpux10.20* | hpux11*)
5911  lt_cv_file_magic_cmd=/usr/bin/file
5912  case $host_cpu in
5913  ia64*)
5914    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5915    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5916    ;;
5917  hppa*64*)
5918    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]'
5919    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5920    ;;
5921  *)
5922    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5923    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5924    ;;
5925  esac
5926  ;;
5927
5928interix[3-9]*)
5929  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5930  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5931  ;;
5932
5933irix5* | irix6* | nonstopux*)
5934  case $LD in
5935  *-32|*"-32 ") libmagic=32-bit;;
5936  *-n32|*"-n32 ") libmagic=N32;;
5937  *-64|*"-64 ") libmagic=64-bit;;
5938  *) libmagic=never-match;;
5939  esac
5940  lt_cv_deplibs_check_method=pass_all
5941  ;;
5942
5943# This must be glibc/ELF.
5944linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5945  lt_cv_deplibs_check_method=pass_all
5946  ;;
5947
5948netbsd*)
5949  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5951  else
5952    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5953  fi
5954  ;;
5955
5956newos6*)
5957  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5958  lt_cv_file_magic_cmd=/usr/bin/file
5959  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5960  ;;
5961
5962*nto* | *qnx*)
5963  lt_cv_deplibs_check_method=pass_all
5964  ;;
5965
5966openbsd* | bitrig*)
5967  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5968    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5969  else
5970    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5971  fi
5972  ;;
5973
5974osf3* | osf4* | osf5*)
5975  lt_cv_deplibs_check_method=pass_all
5976  ;;
5977
5978rdos*)
5979  lt_cv_deplibs_check_method=pass_all
5980  ;;
5981
5982solaris*)
5983  lt_cv_deplibs_check_method=pass_all
5984  ;;
5985
5986sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5987  lt_cv_deplibs_check_method=pass_all
5988  ;;
5989
5990sysv4 | sysv4.3*)
5991  case $host_vendor in
5992  motorola)
5993    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]'
5994    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5995    ;;
5996  ncr)
5997    lt_cv_deplibs_check_method=pass_all
5998    ;;
5999  sequent)
6000    lt_cv_file_magic_cmd='/bin/file'
6001    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6002    ;;
6003  sni)
6004    lt_cv_file_magic_cmd='/bin/file'
6005    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6006    lt_cv_file_magic_test_file=/lib/libc.so
6007    ;;
6008  siemens)
6009    lt_cv_deplibs_check_method=pass_all
6010    ;;
6011  pc)
6012    lt_cv_deplibs_check_method=pass_all
6013    ;;
6014  esac
6015  ;;
6016
6017tpf*)
6018  lt_cv_deplibs_check_method=pass_all
6019  ;;
6020os2*)
6021  lt_cv_deplibs_check_method=pass_all
6022  ;;
6023esac
6024
6025fi
6026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6027printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6028
6029file_magic_glob=
6030want_nocaseglob=no
6031if test "$build" = "$host"; then
6032  case $host_os in
6033  mingw* | pw32*)
6034    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6035      want_nocaseglob=yes
6036    else
6037      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6038    fi
6039    ;;
6040  esac
6041fi
6042
6043file_magic_cmd=$lt_cv_file_magic_cmd
6044deplibs_check_method=$lt_cv_deplibs_check_method
6045test -z "$deplibs_check_method" && deplibs_check_method=unknown
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068if test -n "$ac_tool_prefix"; then
6069  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6070set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072printf %s "checking for $ac_word... " >&6; }
6073if test ${ac_cv_prog_DLLTOOL+y}
6074then :
6075  printf %s "(cached) " >&6
6076else $as_nop
6077  if test -n "$DLLTOOL"; then
6078  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083  IFS=$as_save_IFS
6084  case $as_dir in #(((
6085    '') as_dir=./ ;;
6086    */) ;;
6087    *) as_dir=$as_dir/ ;;
6088  esac
6089    for ac_exec_ext in '' $ac_executable_extensions; do
6090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6091    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6093    break 2
6094  fi
6095done
6096  done
6097IFS=$as_save_IFS
6098
6099fi
6100fi
6101DLLTOOL=$ac_cv_prog_DLLTOOL
6102if test -n "$DLLTOOL"; then
6103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6104printf "%s\n" "$DLLTOOL" >&6; }
6105else
6106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107printf "%s\n" "no" >&6; }
6108fi
6109
6110
6111fi
6112if test -z "$ac_cv_prog_DLLTOOL"; then
6113  ac_ct_DLLTOOL=$DLLTOOL
6114  # Extract the first word of "dlltool", so it can be a program name with args.
6115set dummy dlltool; ac_word=$2
6116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117printf %s "checking for $ac_word... " >&6; }
6118if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6119then :
6120  printf %s "(cached) " >&6
6121else $as_nop
6122  if test -n "$ac_ct_DLLTOOL"; then
6123  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128  IFS=$as_save_IFS
6129  case $as_dir in #(((
6130    '') as_dir=./ ;;
6131    */) ;;
6132    *) as_dir=$as_dir/ ;;
6133  esac
6134    for ac_exec_ext in '' $ac_executable_extensions; do
6135  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6136    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6137    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6138    break 2
6139  fi
6140done
6141  done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6147if test -n "$ac_ct_DLLTOOL"; then
6148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6149printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6150else
6151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152printf "%s\n" "no" >&6; }
6153fi
6154
6155  if test "x$ac_ct_DLLTOOL" = x; then
6156    DLLTOOL="false"
6157  else
6158    case $cross_compiling:$ac_tool_warned in
6159yes:)
6160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162ac_tool_warned=yes ;;
6163esac
6164    DLLTOOL=$ac_ct_DLLTOOL
6165  fi
6166else
6167  DLLTOOL="$ac_cv_prog_DLLTOOL"
6168fi
6169
6170test -z "$DLLTOOL" && DLLTOOL=dlltool
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6182printf %s "checking how to associate runtime and link libraries... " >&6; }
6183if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6184then :
6185  printf %s "(cached) " >&6
6186else $as_nop
6187  lt_cv_sharedlib_from_linklib_cmd='unknown'
6188
6189case $host_os in
6190cygwin* | mingw* | pw32* | cegcc*)
6191  # two different shell functions defined in ltmain.sh;
6192  # decide which one to use based on capabilities of $DLLTOOL
6193  case `$DLLTOOL --help 2>&1` in
6194  *--identify-strict*)
6195    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6196    ;;
6197  *)
6198    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6199    ;;
6200  esac
6201  ;;
6202*)
6203  # fallback: assume linklib IS sharedlib
6204  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6205  ;;
6206esac
6207
6208fi
6209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6210printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6211sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6212test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6213
6214
6215
6216
6217
6218
6219
6220
6221if test -n "$ac_tool_prefix"; then
6222  for ac_prog in ar
6223  do
6224    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227printf %s "checking for $ac_word... " >&6; }
6228if test ${ac_cv_prog_AR+y}
6229then :
6230  printf %s "(cached) " >&6
6231else $as_nop
6232  if test -n "$AR"; then
6233  ac_cv_prog_AR="$AR" # Let the user override the test.
6234else
6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236for as_dir in $PATH
6237do
6238  IFS=$as_save_IFS
6239  case $as_dir in #(((
6240    '') as_dir=./ ;;
6241    */) ;;
6242    *) as_dir=$as_dir/ ;;
6243  esac
6244    for ac_exec_ext in '' $ac_executable_extensions; do
6245  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6246    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6247    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6248    break 2
6249  fi
6250done
6251  done
6252IFS=$as_save_IFS
6253
6254fi
6255fi
6256AR=$ac_cv_prog_AR
6257if test -n "$AR"; then
6258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6259printf "%s\n" "$AR" >&6; }
6260else
6261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262printf "%s\n" "no" >&6; }
6263fi
6264
6265
6266    test -n "$AR" && break
6267  done
6268fi
6269if test -z "$AR"; then
6270  ac_ct_AR=$AR
6271  for ac_prog in ar
6272do
6273  # Extract the first word of "$ac_prog", so it can be a program name with args.
6274set dummy $ac_prog; ac_word=$2
6275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276printf %s "checking for $ac_word... " >&6; }
6277if test ${ac_cv_prog_ac_ct_AR+y}
6278then :
6279  printf %s "(cached) " >&6
6280else $as_nop
6281  if test -n "$ac_ct_AR"; then
6282  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287  IFS=$as_save_IFS
6288  case $as_dir in #(((
6289    '') as_dir=./ ;;
6290    */) ;;
6291    *) as_dir=$as_dir/ ;;
6292  esac
6293    for ac_exec_ext in '' $ac_executable_extensions; do
6294  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6295    ac_cv_prog_ac_ct_AR="$ac_prog"
6296    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300  done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305ac_ct_AR=$ac_cv_prog_ac_ct_AR
6306if test -n "$ac_ct_AR"; then
6307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6308printf "%s\n" "$ac_ct_AR" >&6; }
6309else
6310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311printf "%s\n" "no" >&6; }
6312fi
6313
6314
6315  test -n "$ac_ct_AR" && break
6316done
6317
6318  if test "x$ac_ct_AR" = x; then
6319    AR="false"
6320  else
6321    case $cross_compiling:$ac_tool_warned in
6322yes:)
6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325ac_tool_warned=yes ;;
6326esac
6327    AR=$ac_ct_AR
6328  fi
6329fi
6330
6331: ${AR=ar}
6332: ${AR_FLAGS=cru}
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6345printf %s "checking for archiver @FILE support... " >&6; }
6346if test ${lt_cv_ar_at_file+y}
6347then :
6348  printf %s "(cached) " >&6
6349else $as_nop
6350  lt_cv_ar_at_file=no
6351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h.  */
6353
6354int
6355main (void)
6356{
6357
6358  ;
6359  return 0;
6360}
6361_ACEOF
6362if ac_fn_c_try_compile "$LINENO"
6363then :
6364  echo conftest.$ac_objext > conftest.lst
6365      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6366      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6367  (eval $lt_ar_try) 2>&5
6368  ac_status=$?
6369  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370  test $ac_status = 0; }
6371      if test 0 -eq "$ac_status"; then
6372	# Ensure the archiver fails upon bogus file names.
6373	rm -f conftest.$ac_objext libconftest.a
6374	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6375  (eval $lt_ar_try) 2>&5
6376  ac_status=$?
6377  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6378  test $ac_status = 0; }
6379	if test 0 -ne "$ac_status"; then
6380          lt_cv_ar_at_file=@
6381        fi
6382      fi
6383      rm -f conftest.* libconftest.a
6384
6385fi
6386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6387
6388fi
6389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6390printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6391
6392if test no = "$lt_cv_ar_at_file"; then
6393  archiver_list_spec=
6394else
6395  archiver_list_spec=$lt_cv_ar_at_file
6396fi
6397
6398
6399
6400
6401
6402
6403
6404if test -n "$ac_tool_prefix"; then
6405  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6406set dummy ${ac_tool_prefix}strip; ac_word=$2
6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408printf %s "checking for $ac_word... " >&6; }
6409if test ${ac_cv_prog_STRIP+y}
6410then :
6411  printf %s "(cached) " >&6
6412else $as_nop
6413  if test -n "$STRIP"; then
6414  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  case $as_dir in #(((
6421    '') as_dir=./ ;;
6422    */) ;;
6423    *) as_dir=$as_dir/ ;;
6424  esac
6425    for ac_exec_ext in '' $ac_executable_extensions; do
6426  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6427    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6428    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6429    break 2
6430  fi
6431done
6432  done
6433IFS=$as_save_IFS
6434
6435fi
6436fi
6437STRIP=$ac_cv_prog_STRIP
6438if test -n "$STRIP"; then
6439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6440printf "%s\n" "$STRIP" >&6; }
6441else
6442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443printf "%s\n" "no" >&6; }
6444fi
6445
6446
6447fi
6448if test -z "$ac_cv_prog_STRIP"; then
6449  ac_ct_STRIP=$STRIP
6450  # Extract the first word of "strip", so it can be a program name with args.
6451set dummy strip; ac_word=$2
6452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453printf %s "checking for $ac_word... " >&6; }
6454if test ${ac_cv_prog_ac_ct_STRIP+y}
6455then :
6456  printf %s "(cached) " >&6
6457else $as_nop
6458  if test -n "$ac_ct_STRIP"; then
6459  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464  IFS=$as_save_IFS
6465  case $as_dir in #(((
6466    '') as_dir=./ ;;
6467    */) ;;
6468    *) as_dir=$as_dir/ ;;
6469  esac
6470    for ac_exec_ext in '' $ac_executable_extensions; do
6471  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6472    ac_cv_prog_ac_ct_STRIP="strip"
6473    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6474    break 2
6475  fi
6476done
6477  done
6478IFS=$as_save_IFS
6479
6480fi
6481fi
6482ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6483if test -n "$ac_ct_STRIP"; then
6484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6485printf "%s\n" "$ac_ct_STRIP" >&6; }
6486else
6487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488printf "%s\n" "no" >&6; }
6489fi
6490
6491  if test "x$ac_ct_STRIP" = x; then
6492    STRIP=":"
6493  else
6494    case $cross_compiling:$ac_tool_warned in
6495yes:)
6496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498ac_tool_warned=yes ;;
6499esac
6500    STRIP=$ac_ct_STRIP
6501  fi
6502else
6503  STRIP="$ac_cv_prog_STRIP"
6504fi
6505
6506test -z "$STRIP" && STRIP=:
6507
6508
6509
6510
6511
6512
6513if test -n "$ac_tool_prefix"; then
6514  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517printf %s "checking for $ac_word... " >&6; }
6518if test ${ac_cv_prog_RANLIB+y}
6519then :
6520  printf %s "(cached) " >&6
6521else $as_nop
6522  if test -n "$RANLIB"; then
6523  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6524else
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528  IFS=$as_save_IFS
6529  case $as_dir in #(((
6530    '') as_dir=./ ;;
6531    */) ;;
6532    *) as_dir=$as_dir/ ;;
6533  esac
6534    for ac_exec_ext in '' $ac_executable_extensions; do
6535  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6536    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6537    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6538    break 2
6539  fi
6540done
6541  done
6542IFS=$as_save_IFS
6543
6544fi
6545fi
6546RANLIB=$ac_cv_prog_RANLIB
6547if test -n "$RANLIB"; then
6548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6549printf "%s\n" "$RANLIB" >&6; }
6550else
6551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552printf "%s\n" "no" >&6; }
6553fi
6554
6555
6556fi
6557if test -z "$ac_cv_prog_RANLIB"; then
6558  ac_ct_RANLIB=$RANLIB
6559  # Extract the first word of "ranlib", so it can be a program name with args.
6560set dummy ranlib; ac_word=$2
6561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562printf %s "checking for $ac_word... " >&6; }
6563if test ${ac_cv_prog_ac_ct_RANLIB+y}
6564then :
6565  printf %s "(cached) " >&6
6566else $as_nop
6567  if test -n "$ac_ct_RANLIB"; then
6568  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6569else
6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573  IFS=$as_save_IFS
6574  case $as_dir in #(((
6575    '') as_dir=./ ;;
6576    */) ;;
6577    *) as_dir=$as_dir/ ;;
6578  esac
6579    for ac_exec_ext in '' $ac_executable_extensions; do
6580  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6581    ac_cv_prog_ac_ct_RANLIB="ranlib"
6582    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6583    break 2
6584  fi
6585done
6586  done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6592if test -n "$ac_ct_RANLIB"; then
6593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6594printf "%s\n" "$ac_ct_RANLIB" >&6; }
6595else
6596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597printf "%s\n" "no" >&6; }
6598fi
6599
6600  if test "x$ac_ct_RANLIB" = x; then
6601    RANLIB=":"
6602  else
6603    case $cross_compiling:$ac_tool_warned in
6604yes:)
6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607ac_tool_warned=yes ;;
6608esac
6609    RANLIB=$ac_ct_RANLIB
6610  fi
6611else
6612  RANLIB="$ac_cv_prog_RANLIB"
6613fi
6614
6615test -z "$RANLIB" && RANLIB=:
6616
6617
6618
6619
6620
6621
6622# Determine commands to create old-style static archives.
6623old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6624old_postinstall_cmds='chmod 644 $oldlib'
6625old_postuninstall_cmds=
6626
6627if test -n "$RANLIB"; then
6628  case $host_os in
6629  bitrig* | openbsd*)
6630    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6631    ;;
6632  *)
6633    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6634    ;;
6635  esac
6636  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6637fi
6638
6639case $host_os in
6640  darwin*)
6641    lock_old_archive_extraction=yes ;;
6642  *)
6643    lock_old_archive_extraction=no ;;
6644esac
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684# If no C compiler was specified, use CC.
6685LTCC=${LTCC-"$CC"}
6686
6687# If no C compiler flags were specified, use CFLAGS.
6688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6689
6690# Allow CC to be a program name with arguments.
6691compiler=$CC
6692
6693
6694# Check for command to grab the raw symbol name followed by C symbol from nm.
6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6696printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6697if test ${lt_cv_sys_global_symbol_pipe+y}
6698then :
6699  printf %s "(cached) " >&6
6700else $as_nop
6701
6702# These are sane defaults that work on at least a few old systems.
6703# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6704
6705# Character class describing NM global symbol codes.
6706symcode='[BCDEGRST]'
6707
6708# Regexp to match symbols that can be accessed directly from C.
6709sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6710
6711# Define system-specific variables.
6712case $host_os in
6713aix*)
6714  symcode='[BCDT]'
6715  ;;
6716cygwin* | mingw* | pw32* | cegcc*)
6717  symcode='[ABCDGISTW]'
6718  ;;
6719hpux*)
6720  if test ia64 = "$host_cpu"; then
6721    symcode='[ABCDEGRST]'
6722  fi
6723  ;;
6724irix* | nonstopux*)
6725  symcode='[BCDEGRST]'
6726  ;;
6727osf*)
6728  symcode='[BCDEGQRST]'
6729  ;;
6730solaris*)
6731  symcode='[BDRT]'
6732  ;;
6733sco3.2v5*)
6734  symcode='[DT]'
6735  ;;
6736sysv4.2uw2*)
6737  symcode='[DT]'
6738  ;;
6739sysv5* | sco5v6* | unixware* | OpenUNIX*)
6740  symcode='[ABDT]'
6741  ;;
6742sysv4)
6743  symcode='[DFNSTU]'
6744  ;;
6745esac
6746
6747# If we're using GNU nm, then use its standard symbol codes.
6748case `$NM -V 2>&1` in
6749*GNU* | *'with BFD'*)
6750  symcode='[ABCDGIRSTW]' ;;
6751esac
6752
6753if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6754  # Gets list of data symbols to import.
6755  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6756  # Adjust the below global symbol transforms to fixup imported variables.
6757  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6758  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6759  lt_c_name_lib_hook="\
6760  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6761  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6762else
6763  # Disable hooks by default.
6764  lt_cv_sys_global_symbol_to_import=
6765  lt_cdecl_hook=
6766  lt_c_name_hook=
6767  lt_c_name_lib_hook=
6768fi
6769
6770# Transform an extracted symbol line into a proper C declaration.
6771# Some systems (esp. on ia64) link data and code symbols differently,
6772# so use this general approach.
6773lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6774$lt_cdecl_hook\
6775" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6776" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6777
6778# Transform an extracted symbol line into symbol name and symbol address
6779lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6780$lt_c_name_hook\
6781" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6782" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6783
6784# Transform an extracted symbol line into symbol name with lib prefix and
6785# symbol address.
6786lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6787$lt_c_name_lib_hook\
6788" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6789" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6790" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6791
6792# Handle CRLF in mingw tool chain
6793opt_cr=
6794case $build_os in
6795mingw*)
6796  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6797  ;;
6798esac
6799
6800# Try without a prefix underscore, then with it.
6801for ac_symprfx in "" "_"; do
6802
6803  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6804  symxfrm="\\1 $ac_symprfx\\2 \\2"
6805
6806  # Write the raw and C identifiers.
6807  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6808    # Fake it for dumpbin and say T for any non-static function,
6809    # D for any global variable and I for any imported variable.
6810    # Also find C++ and __fastcall symbols from MSVC++,
6811    # which start with @ or ?.
6812    lt_cv_sys_global_symbol_pipe="$AWK '"\
6813"     {last_section=section; section=\$ 3};"\
6814"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6815"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6816"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6817"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6818"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6819"     \$ 0!~/External *\|/{next};"\
6820"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6821"     {if(hide[section]) next};"\
6822"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6823"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6824"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6825"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6826"     ' prfx=^$ac_symprfx"
6827  else
6828    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6829  fi
6830  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6831
6832  # Check to see that the pipe works correctly.
6833  pipe_works=no
6834
6835  rm -f conftest*
6836  cat > conftest.$ac_ext <<_LT_EOF
6837#ifdef __cplusplus
6838extern "C" {
6839#endif
6840char nm_test_var;
6841void nm_test_func(void);
6842void nm_test_func(void){}
6843#ifdef __cplusplus
6844}
6845#endif
6846int main(){nm_test_var='a';nm_test_func();return(0);}
6847_LT_EOF
6848
6849  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850  (eval $ac_compile) 2>&5
6851  ac_status=$?
6852  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853  test $ac_status = 0; }; then
6854    # Now try to grab the symbols.
6855    nlist=conftest.nm
6856    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6857  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6858  ac_status=$?
6859  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860  test $ac_status = 0; } && test -s "$nlist"; then
6861      # Try sorting and uniquifying the output.
6862      if sort "$nlist" | uniq > "$nlist"T; then
6863	mv -f "$nlist"T "$nlist"
6864      else
6865	rm -f "$nlist"T
6866      fi
6867
6868      # Make sure that we snagged all the symbols we need.
6869      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6870	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6871	  cat <<_LT_EOF > conftest.$ac_ext
6872/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6873#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6874/* DATA imports from DLLs on WIN32 can't be const, because runtime
6875   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6876# define LT_DLSYM_CONST
6877#elif defined __osf__
6878/* This system does not cope well with relocations in const data.  */
6879# define LT_DLSYM_CONST
6880#else
6881# define LT_DLSYM_CONST const
6882#endif
6883
6884#ifdef __cplusplus
6885extern "C" {
6886#endif
6887
6888_LT_EOF
6889	  # Now generate the symbol file.
6890	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6891
6892	  cat <<_LT_EOF >> conftest.$ac_ext
6893
6894/* The mapping between symbol names and symbols.  */
6895LT_DLSYM_CONST struct {
6896  const char *name;
6897  void       *address;
6898}
6899lt__PROGRAM__LTX_preloaded_symbols[] =
6900{
6901  { "@PROGRAM@", (void *) 0 },
6902_LT_EOF
6903	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6904	  cat <<\_LT_EOF >> conftest.$ac_ext
6905  {0, (void *) 0}
6906};
6907
6908/* This works around a problem in FreeBSD linker */
6909#ifdef FREEBSD_WORKAROUND
6910static const void *lt_preloaded_setup() {
6911  return lt__PROGRAM__LTX_preloaded_symbols;
6912}
6913#endif
6914
6915#ifdef __cplusplus
6916}
6917#endif
6918_LT_EOF
6919	  # Now try linking the two files.
6920	  mv conftest.$ac_objext conftstm.$ac_objext
6921	  lt_globsym_save_LIBS=$LIBS
6922	  lt_globsym_save_CFLAGS=$CFLAGS
6923	  LIBS=conftstm.$ac_objext
6924	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6925	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6926  (eval $ac_link) 2>&5
6927  ac_status=$?
6928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6930	    pipe_works=yes
6931	  fi
6932	  LIBS=$lt_globsym_save_LIBS
6933	  CFLAGS=$lt_globsym_save_CFLAGS
6934	else
6935	  echo "cannot find nm_test_func in $nlist" >&5
6936	fi
6937      else
6938	echo "cannot find nm_test_var in $nlist" >&5
6939      fi
6940    else
6941      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6942    fi
6943  else
6944    echo "$progname: failed program was:" >&5
6945    cat conftest.$ac_ext >&5
6946  fi
6947  rm -rf conftest* conftst*
6948
6949  # Do not use the global_symbol_pipe unless it works.
6950  if test yes = "$pipe_works"; then
6951    break
6952  else
6953    lt_cv_sys_global_symbol_pipe=
6954  fi
6955done
6956
6957fi
6958
6959if test -z "$lt_cv_sys_global_symbol_pipe"; then
6960  lt_cv_sys_global_symbol_to_cdecl=
6961fi
6962if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6964printf "%s\n" "failed" >&6; }
6965else
6966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6967printf "%s\n" "ok" >&6; }
6968fi
6969
6970# Response file support.
6971if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6972  nm_file_list_spec='@'
6973elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6974  nm_file_list_spec='@'
6975fi
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7014printf %s "checking for sysroot... " >&6; }
7015
7016# Check whether --with-sysroot was given.
7017if test ${with_sysroot+y}
7018then :
7019  withval=$with_sysroot;
7020else $as_nop
7021  with_sysroot=no
7022fi
7023
7024
7025lt_sysroot=
7026case $with_sysroot in #(
7027 yes)
7028   if test yes = "$GCC"; then
7029     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7030   fi
7031   ;; #(
7032 /*)
7033   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7034   ;; #(
7035 no|'')
7036   ;; #(
7037 *)
7038   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7039printf "%s\n" "$with_sysroot" >&6; }
7040   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7041   ;;
7042esac
7043
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7045printf "%s\n" "${lt_sysroot:-no}" >&6; }
7046
7047
7048
7049
7050
7051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7052printf %s "checking for a working dd... " >&6; }
7053if test ${ac_cv_path_lt_DD+y}
7054then :
7055  printf %s "(cached) " >&6
7056else $as_nop
7057  printf 0123456789abcdef0123456789abcdef >conftest.i
7058cat conftest.i conftest.i >conftest2.i
7059: ${lt_DD:=$DD}
7060if test -z "$lt_DD"; then
7061  ac_path_lt_DD_found=false
7062  # Loop through the user's path and test for each of PROGNAME-LIST
7063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066  IFS=$as_save_IFS
7067  case $as_dir in #(((
7068    '') as_dir=./ ;;
7069    */) ;;
7070    *) as_dir=$as_dir/ ;;
7071  esac
7072    for ac_prog in dd
7073   do
7074    for ac_exec_ext in '' $ac_executable_extensions; do
7075      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7076      as_fn_executable_p "$ac_path_lt_DD" || continue
7077if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7078  cmp -s conftest.i conftest.out \
7079  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7080fi
7081      $ac_path_lt_DD_found && break 3
7082    done
7083  done
7084  done
7085IFS=$as_save_IFS
7086  if test -z "$ac_cv_path_lt_DD"; then
7087    :
7088  fi
7089else
7090  ac_cv_path_lt_DD=$lt_DD
7091fi
7092
7093rm -f conftest.i conftest2.i conftest.out
7094fi
7095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7096printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7097
7098
7099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7100printf %s "checking how to truncate binary pipes... " >&6; }
7101if test ${lt_cv_truncate_bin+y}
7102then :
7103  printf %s "(cached) " >&6
7104else $as_nop
7105  printf 0123456789abcdef0123456789abcdef >conftest.i
7106cat conftest.i conftest.i >conftest2.i
7107lt_cv_truncate_bin=
7108if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7109  cmp -s conftest.i conftest.out \
7110  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7111fi
7112rm -f conftest.i conftest2.i conftest.out
7113test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7114fi
7115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7116printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7117
7118
7119
7120
7121
7122
7123
7124# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7125func_cc_basename ()
7126{
7127    for cc_temp in $*""; do
7128      case $cc_temp in
7129        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7130        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7131        \-*) ;;
7132        *) break;;
7133      esac
7134    done
7135    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7136}
7137
7138# Check whether --enable-libtool-lock was given.
7139if test ${enable_libtool_lock+y}
7140then :
7141  enableval=$enable_libtool_lock;
7142fi
7143
7144test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7145
7146# Some flags need to be propagated to the compiler or linker for good
7147# libtool support.
7148case $host in
7149ia64-*-hpux*)
7150  # Find out what ABI is being produced by ac_compile, and set mode
7151  # options accordingly.
7152  echo 'int i;' > conftest.$ac_ext
7153  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154  (eval $ac_compile) 2>&5
7155  ac_status=$?
7156  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157  test $ac_status = 0; }; then
7158    case `/usr/bin/file conftest.$ac_objext` in
7159      *ELF-32*)
7160	HPUX_IA64_MODE=32
7161	;;
7162      *ELF-64*)
7163	HPUX_IA64_MODE=64
7164	;;
7165    esac
7166  fi
7167  rm -rf conftest*
7168  ;;
7169*-*-irix6*)
7170  # Find out what ABI is being produced by ac_compile, and set linker
7171  # options accordingly.
7172  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7173  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174  (eval $ac_compile) 2>&5
7175  ac_status=$?
7176  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177  test $ac_status = 0; }; then
7178    if test yes = "$lt_cv_prog_gnu_ld"; then
7179      case `/usr/bin/file conftest.$ac_objext` in
7180	*32-bit*)
7181	  LD="${LD-ld} -melf32bsmip"
7182	  ;;
7183	*N32*)
7184	  LD="${LD-ld} -melf32bmipn32"
7185	  ;;
7186	*64-bit*)
7187	  LD="${LD-ld} -melf64bmip"
7188	;;
7189      esac
7190    else
7191      case `/usr/bin/file conftest.$ac_objext` in
7192	*32-bit*)
7193	  LD="${LD-ld} -32"
7194	  ;;
7195	*N32*)
7196	  LD="${LD-ld} -n32"
7197	  ;;
7198	*64-bit*)
7199	  LD="${LD-ld} -64"
7200	  ;;
7201      esac
7202    fi
7203  fi
7204  rm -rf conftest*
7205  ;;
7206
7207mips64*-*linux*)
7208  # Find out what ABI is being produced by ac_compile, and set linker
7209  # options accordingly.
7210  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7211  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7212  (eval $ac_compile) 2>&5
7213  ac_status=$?
7214  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215  test $ac_status = 0; }; then
7216    emul=elf
7217    case `/usr/bin/file conftest.$ac_objext` in
7218      *32-bit*)
7219	emul="${emul}32"
7220	;;
7221      *64-bit*)
7222	emul="${emul}64"
7223	;;
7224    esac
7225    case `/usr/bin/file conftest.$ac_objext` in
7226      *MSB*)
7227	emul="${emul}btsmip"
7228	;;
7229      *LSB*)
7230	emul="${emul}ltsmip"
7231	;;
7232    esac
7233    case `/usr/bin/file conftest.$ac_objext` in
7234      *N32*)
7235	emul="${emul}n32"
7236	;;
7237    esac
7238    LD="${LD-ld} -m $emul"
7239  fi
7240  rm -rf conftest*
7241  ;;
7242
7243x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7244s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7245  # Find out what ABI is being produced by ac_compile, and set linker
7246  # options accordingly.  Note that the listed cases only cover the
7247  # situations where additional linker options are needed (such as when
7248  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7249  # vice versa); the common cases where no linker options are needed do
7250  # not appear in the list.
7251  echo 'int i;' > conftest.$ac_ext
7252  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253  (eval $ac_compile) 2>&5
7254  ac_status=$?
7255  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256  test $ac_status = 0; }; then
7257    case `/usr/bin/file conftest.o` in
7258      *32-bit*)
7259	case $host in
7260	  x86_64-*kfreebsd*-gnu)
7261	    LD="${LD-ld} -m elf_i386_fbsd"
7262	    ;;
7263	  x86_64-*linux*)
7264	    case `/usr/bin/file conftest.o` in
7265	      *x86-64*)
7266		LD="${LD-ld} -m elf32_x86_64"
7267		;;
7268	      *)
7269		LD="${LD-ld} -m elf_i386"
7270		;;
7271	    esac
7272	    ;;
7273	  powerpc64le-*linux*)
7274	    LD="${LD-ld} -m elf32lppclinux"
7275	    ;;
7276	  powerpc64-*linux*)
7277	    LD="${LD-ld} -m elf32ppclinux"
7278	    ;;
7279	  s390x-*linux*)
7280	    LD="${LD-ld} -m elf_s390"
7281	    ;;
7282	  sparc64-*linux*)
7283	    LD="${LD-ld} -m elf32_sparc"
7284	    ;;
7285	esac
7286	;;
7287      *64-bit*)
7288	case $host in
7289	  x86_64-*kfreebsd*-gnu)
7290	    LD="${LD-ld} -m elf_x86_64_fbsd"
7291	    ;;
7292	  x86_64-*linux*)
7293	    LD="${LD-ld} -m elf_x86_64"
7294	    ;;
7295	  powerpcle-*linux*)
7296	    LD="${LD-ld} -m elf64lppc"
7297	    ;;
7298	  powerpc-*linux*)
7299	    LD="${LD-ld} -m elf64ppc"
7300	    ;;
7301	  s390*-*linux*|s390*-*tpf*)
7302	    LD="${LD-ld} -m elf64_s390"
7303	    ;;
7304	  sparc*-*linux*)
7305	    LD="${LD-ld} -m elf64_sparc"
7306	    ;;
7307	esac
7308	;;
7309    esac
7310  fi
7311  rm -rf conftest*
7312  ;;
7313
7314*-*-sco3.2v5*)
7315  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7316  SAVE_CFLAGS=$CFLAGS
7317  CFLAGS="$CFLAGS -belf"
7318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7319printf %s "checking whether the C compiler needs -belf... " >&6; }
7320if test ${lt_cv_cc_needs_belf+y}
7321then :
7322  printf %s "(cached) " >&6
7323else $as_nop
7324  ac_ext=c
7325ac_cpp='$CPP $CPPFLAGS'
7326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332
7333int
7334main (void)
7335{
7336
7337  ;
7338  return 0;
7339}
7340_ACEOF
7341if ac_fn_c_try_link "$LINENO"
7342then :
7343  lt_cv_cc_needs_belf=yes
7344else $as_nop
7345  lt_cv_cc_needs_belf=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.beam \
7348    conftest$ac_exeext conftest.$ac_ext
7349     ac_ext=c
7350ac_cpp='$CPP $CPPFLAGS'
7351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354
7355fi
7356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7357printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7358  if test yes != "$lt_cv_cc_needs_belf"; then
7359    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7360    CFLAGS=$SAVE_CFLAGS
7361  fi
7362  ;;
7363*-*solaris*)
7364  # Find out what ABI is being produced by ac_compile, and set linker
7365  # options accordingly.
7366  echo 'int i;' > conftest.$ac_ext
7367  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7368  (eval $ac_compile) 2>&5
7369  ac_status=$?
7370  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371  test $ac_status = 0; }; then
7372    case `/usr/bin/file conftest.o` in
7373    *64-bit*)
7374      case $lt_cv_prog_gnu_ld in
7375      yes*)
7376        case $host in
7377        i?86-*-solaris*|x86_64-*-solaris*)
7378          LD="${LD-ld} -m elf_x86_64"
7379          ;;
7380        sparc*-*-solaris*)
7381          LD="${LD-ld} -m elf64_sparc"
7382          ;;
7383        esac
7384        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7385        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7386          LD=${LD-ld}_sol2
7387        fi
7388        ;;
7389      *)
7390	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7391	  LD="${LD-ld} -64"
7392	fi
7393	;;
7394      esac
7395      ;;
7396    esac
7397  fi
7398  rm -rf conftest*
7399  ;;
7400esac
7401
7402need_locks=$enable_libtool_lock
7403
7404if test -n "$ac_tool_prefix"; then
7405  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7406set dummy ${ac_tool_prefix}mt; ac_word=$2
7407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408printf %s "checking for $ac_word... " >&6; }
7409if test ${ac_cv_prog_MANIFEST_TOOL+y}
7410then :
7411  printf %s "(cached) " >&6
7412else $as_nop
7413  if test -n "$MANIFEST_TOOL"; then
7414  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419  IFS=$as_save_IFS
7420  case $as_dir in #(((
7421    '') as_dir=./ ;;
7422    */) ;;
7423    *) as_dir=$as_dir/ ;;
7424  esac
7425    for ac_exec_ext in '' $ac_executable_extensions; do
7426  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7427    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7428    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7429    break 2
7430  fi
7431done
7432  done
7433IFS=$as_save_IFS
7434
7435fi
7436fi
7437MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7438if test -n "$MANIFEST_TOOL"; then
7439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7440printf "%s\n" "$MANIFEST_TOOL" >&6; }
7441else
7442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443printf "%s\n" "no" >&6; }
7444fi
7445
7446
7447fi
7448if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7449  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7450  # Extract the first word of "mt", so it can be a program name with args.
7451set dummy mt; ac_word=$2
7452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453printf %s "checking for $ac_word... " >&6; }
7454if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7455then :
7456  printf %s "(cached) " >&6
7457else $as_nop
7458  if test -n "$ac_ct_MANIFEST_TOOL"; then
7459  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  case $as_dir in #(((
7466    '') as_dir=./ ;;
7467    */) ;;
7468    *) as_dir=$as_dir/ ;;
7469  esac
7470    for ac_exec_ext in '' $ac_executable_extensions; do
7471  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7472    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7473    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7474    break 2
7475  fi
7476done
7477  done
7478IFS=$as_save_IFS
7479
7480fi
7481fi
7482ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7483if test -n "$ac_ct_MANIFEST_TOOL"; then
7484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7485printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7486else
7487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488printf "%s\n" "no" >&6; }
7489fi
7490
7491  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7492    MANIFEST_TOOL=":"
7493  else
7494    case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498ac_tool_warned=yes ;;
7499esac
7500    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7501  fi
7502else
7503  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7504fi
7505
7506test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7508printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7509if test ${lt_cv_path_mainfest_tool+y}
7510then :
7511  printf %s "(cached) " >&6
7512else $as_nop
7513  lt_cv_path_mainfest_tool=no
7514  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7515  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7516  cat conftest.err >&5
7517  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7518    lt_cv_path_mainfest_tool=yes
7519  fi
7520  rm -f conftest*
7521fi
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7523printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7524if test yes != "$lt_cv_path_mainfest_tool"; then
7525  MANIFEST_TOOL=:
7526fi
7527
7528
7529
7530
7531
7532
7533  case $host_os in
7534    rhapsody* | darwin*)
7535    if test -n "$ac_tool_prefix"; then
7536  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7537set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539printf %s "checking for $ac_word... " >&6; }
7540if test ${ac_cv_prog_DSYMUTIL+y}
7541then :
7542  printf %s "(cached) " >&6
7543else $as_nop
7544  if test -n "$DSYMUTIL"; then
7545  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  case $as_dir in #(((
7552    '') as_dir=./ ;;
7553    */) ;;
7554    *) as_dir=$as_dir/ ;;
7555  esac
7556    for ac_exec_ext in '' $ac_executable_extensions; do
7557  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7558    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7559    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7560    break 2
7561  fi
7562done
7563  done
7564IFS=$as_save_IFS
7565
7566fi
7567fi
7568DSYMUTIL=$ac_cv_prog_DSYMUTIL
7569if test -n "$DSYMUTIL"; then
7570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7571printf "%s\n" "$DSYMUTIL" >&6; }
7572else
7573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574printf "%s\n" "no" >&6; }
7575fi
7576
7577
7578fi
7579if test -z "$ac_cv_prog_DSYMUTIL"; then
7580  ac_ct_DSYMUTIL=$DSYMUTIL
7581  # Extract the first word of "dsymutil", so it can be a program name with args.
7582set dummy dsymutil; ac_word=$2
7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584printf %s "checking for $ac_word... " >&6; }
7585if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7586then :
7587  printf %s "(cached) " >&6
7588else $as_nop
7589  if test -n "$ac_ct_DSYMUTIL"; then
7590  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7591else
7592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595  IFS=$as_save_IFS
7596  case $as_dir in #(((
7597    '') as_dir=./ ;;
7598    */) ;;
7599    *) as_dir=$as_dir/ ;;
7600  esac
7601    for ac_exec_ext in '' $ac_executable_extensions; do
7602  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7603    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7604    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7605    break 2
7606  fi
7607done
7608  done
7609IFS=$as_save_IFS
7610
7611fi
7612fi
7613ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7614if test -n "$ac_ct_DSYMUTIL"; then
7615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7616printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7617else
7618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619printf "%s\n" "no" >&6; }
7620fi
7621
7622  if test "x$ac_ct_DSYMUTIL" = x; then
7623    DSYMUTIL=":"
7624  else
7625    case $cross_compiling:$ac_tool_warned in
7626yes:)
7627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629ac_tool_warned=yes ;;
7630esac
7631    DSYMUTIL=$ac_ct_DSYMUTIL
7632  fi
7633else
7634  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7635fi
7636
7637    if test -n "$ac_tool_prefix"; then
7638  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7639set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641printf %s "checking for $ac_word... " >&6; }
7642if test ${ac_cv_prog_NMEDIT+y}
7643then :
7644  printf %s "(cached) " >&6
7645else $as_nop
7646  if test -n "$NMEDIT"; then
7647  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7648else
7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652  IFS=$as_save_IFS
7653  case $as_dir in #(((
7654    '') as_dir=./ ;;
7655    */) ;;
7656    *) as_dir=$as_dir/ ;;
7657  esac
7658    for ac_exec_ext in '' $ac_executable_extensions; do
7659  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7660    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7661    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7662    break 2
7663  fi
7664done
7665  done
7666IFS=$as_save_IFS
7667
7668fi
7669fi
7670NMEDIT=$ac_cv_prog_NMEDIT
7671if test -n "$NMEDIT"; then
7672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7673printf "%s\n" "$NMEDIT" >&6; }
7674else
7675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676printf "%s\n" "no" >&6; }
7677fi
7678
7679
7680fi
7681if test -z "$ac_cv_prog_NMEDIT"; then
7682  ac_ct_NMEDIT=$NMEDIT
7683  # Extract the first word of "nmedit", so it can be a program name with args.
7684set dummy nmedit; ac_word=$2
7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686printf %s "checking for $ac_word... " >&6; }
7687if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7688then :
7689  printf %s "(cached) " >&6
7690else $as_nop
7691  if test -n "$ac_ct_NMEDIT"; then
7692  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7693else
7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697  IFS=$as_save_IFS
7698  case $as_dir in #(((
7699    '') as_dir=./ ;;
7700    */) ;;
7701    *) as_dir=$as_dir/ ;;
7702  esac
7703    for ac_exec_ext in '' $ac_executable_extensions; do
7704  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7705    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7706    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7707    break 2
7708  fi
7709done
7710  done
7711IFS=$as_save_IFS
7712
7713fi
7714fi
7715ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7716if test -n "$ac_ct_NMEDIT"; then
7717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7718printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7719else
7720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721printf "%s\n" "no" >&6; }
7722fi
7723
7724  if test "x$ac_ct_NMEDIT" = x; then
7725    NMEDIT=":"
7726  else
7727    case $cross_compiling:$ac_tool_warned in
7728yes:)
7729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731ac_tool_warned=yes ;;
7732esac
7733    NMEDIT=$ac_ct_NMEDIT
7734  fi
7735else
7736  NMEDIT="$ac_cv_prog_NMEDIT"
7737fi
7738
7739    if test -n "$ac_tool_prefix"; then
7740  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7741set dummy ${ac_tool_prefix}lipo; ac_word=$2
7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743printf %s "checking for $ac_word... " >&6; }
7744if test ${ac_cv_prog_LIPO+y}
7745then :
7746  printf %s "(cached) " >&6
7747else $as_nop
7748  if test -n "$LIPO"; then
7749  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754  IFS=$as_save_IFS
7755  case $as_dir in #(((
7756    '') as_dir=./ ;;
7757    */) ;;
7758    *) as_dir=$as_dir/ ;;
7759  esac
7760    for ac_exec_ext in '' $ac_executable_extensions; do
7761  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7762    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7763    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7764    break 2
7765  fi
7766done
7767  done
7768IFS=$as_save_IFS
7769
7770fi
7771fi
7772LIPO=$ac_cv_prog_LIPO
7773if test -n "$LIPO"; then
7774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7775printf "%s\n" "$LIPO" >&6; }
7776else
7777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778printf "%s\n" "no" >&6; }
7779fi
7780
7781
7782fi
7783if test -z "$ac_cv_prog_LIPO"; then
7784  ac_ct_LIPO=$LIPO
7785  # Extract the first word of "lipo", so it can be a program name with args.
7786set dummy lipo; ac_word=$2
7787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788printf %s "checking for $ac_word... " >&6; }
7789if test ${ac_cv_prog_ac_ct_LIPO+y}
7790then :
7791  printf %s "(cached) " >&6
7792else $as_nop
7793  if test -n "$ac_ct_LIPO"; then
7794  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7795else
7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797for as_dir in $PATH
7798do
7799  IFS=$as_save_IFS
7800  case $as_dir in #(((
7801    '') as_dir=./ ;;
7802    */) ;;
7803    *) as_dir=$as_dir/ ;;
7804  esac
7805    for ac_exec_ext in '' $ac_executable_extensions; do
7806  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7807    ac_cv_prog_ac_ct_LIPO="lipo"
7808    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7809    break 2
7810  fi
7811done
7812  done
7813IFS=$as_save_IFS
7814
7815fi
7816fi
7817ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7818if test -n "$ac_ct_LIPO"; then
7819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7820printf "%s\n" "$ac_ct_LIPO" >&6; }
7821else
7822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823printf "%s\n" "no" >&6; }
7824fi
7825
7826  if test "x$ac_ct_LIPO" = x; then
7827    LIPO=":"
7828  else
7829    case $cross_compiling:$ac_tool_warned in
7830yes:)
7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833ac_tool_warned=yes ;;
7834esac
7835    LIPO=$ac_ct_LIPO
7836  fi
7837else
7838  LIPO="$ac_cv_prog_LIPO"
7839fi
7840
7841    if test -n "$ac_tool_prefix"; then
7842  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7843set dummy ${ac_tool_prefix}otool; ac_word=$2
7844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845printf %s "checking for $ac_word... " >&6; }
7846if test ${ac_cv_prog_OTOOL+y}
7847then :
7848  printf %s "(cached) " >&6
7849else $as_nop
7850  if test -n "$OTOOL"; then
7851  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856  IFS=$as_save_IFS
7857  case $as_dir in #(((
7858    '') as_dir=./ ;;
7859    */) ;;
7860    *) as_dir=$as_dir/ ;;
7861  esac
7862    for ac_exec_ext in '' $ac_executable_extensions; do
7863  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7864    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7865    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869  done
7870IFS=$as_save_IFS
7871
7872fi
7873fi
7874OTOOL=$ac_cv_prog_OTOOL
7875if test -n "$OTOOL"; then
7876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7877printf "%s\n" "$OTOOL" >&6; }
7878else
7879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880printf "%s\n" "no" >&6; }
7881fi
7882
7883
7884fi
7885if test -z "$ac_cv_prog_OTOOL"; then
7886  ac_ct_OTOOL=$OTOOL
7887  # Extract the first word of "otool", so it can be a program name with args.
7888set dummy otool; ac_word=$2
7889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890printf %s "checking for $ac_word... " >&6; }
7891if test ${ac_cv_prog_ac_ct_OTOOL+y}
7892then :
7893  printf %s "(cached) " >&6
7894else $as_nop
7895  if test -n "$ac_ct_OTOOL"; then
7896  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901  IFS=$as_save_IFS
7902  case $as_dir in #(((
7903    '') as_dir=./ ;;
7904    */) ;;
7905    *) as_dir=$as_dir/ ;;
7906  esac
7907    for ac_exec_ext in '' $ac_executable_extensions; do
7908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7909    ac_cv_prog_ac_ct_OTOOL="otool"
7910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7911    break 2
7912  fi
7913done
7914  done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7920if test -n "$ac_ct_OTOOL"; then
7921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7922printf "%s\n" "$ac_ct_OTOOL" >&6; }
7923else
7924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925printf "%s\n" "no" >&6; }
7926fi
7927
7928  if test "x$ac_ct_OTOOL" = x; then
7929    OTOOL=":"
7930  else
7931    case $cross_compiling:$ac_tool_warned in
7932yes:)
7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935ac_tool_warned=yes ;;
7936esac
7937    OTOOL=$ac_ct_OTOOL
7938  fi
7939else
7940  OTOOL="$ac_cv_prog_OTOOL"
7941fi
7942
7943    if test -n "$ac_tool_prefix"; then
7944  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7945set dummy ${ac_tool_prefix}otool64; ac_word=$2
7946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947printf %s "checking for $ac_word... " >&6; }
7948if test ${ac_cv_prog_OTOOL64+y}
7949then :
7950  printf %s "(cached) " >&6
7951else $as_nop
7952  if test -n "$OTOOL64"; then
7953  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7954else
7955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958  IFS=$as_save_IFS
7959  case $as_dir in #(((
7960    '') as_dir=./ ;;
7961    */) ;;
7962    *) as_dir=$as_dir/ ;;
7963  esac
7964    for ac_exec_ext in '' $ac_executable_extensions; do
7965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7966    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7968    break 2
7969  fi
7970done
7971  done
7972IFS=$as_save_IFS
7973
7974fi
7975fi
7976OTOOL64=$ac_cv_prog_OTOOL64
7977if test -n "$OTOOL64"; then
7978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7979printf "%s\n" "$OTOOL64" >&6; }
7980else
7981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982printf "%s\n" "no" >&6; }
7983fi
7984
7985
7986fi
7987if test -z "$ac_cv_prog_OTOOL64"; then
7988  ac_ct_OTOOL64=$OTOOL64
7989  # Extract the first word of "otool64", so it can be a program name with args.
7990set dummy otool64; ac_word=$2
7991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992printf %s "checking for $ac_word... " >&6; }
7993if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7994then :
7995  printf %s "(cached) " >&6
7996else $as_nop
7997  if test -n "$ac_ct_OTOOL64"; then
7998  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003  IFS=$as_save_IFS
8004  case $as_dir in #(((
8005    '') as_dir=./ ;;
8006    */) ;;
8007    *) as_dir=$as_dir/ ;;
8008  esac
8009    for ac_exec_ext in '' $ac_executable_extensions; do
8010  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8011    ac_cv_prog_ac_ct_OTOOL64="otool64"
8012    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8013    break 2
8014  fi
8015done
8016  done
8017IFS=$as_save_IFS
8018
8019fi
8020fi
8021ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8022if test -n "$ac_ct_OTOOL64"; then
8023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8024printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8025else
8026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027printf "%s\n" "no" >&6; }
8028fi
8029
8030  if test "x$ac_ct_OTOOL64" = x; then
8031    OTOOL64=":"
8032  else
8033    case $cross_compiling:$ac_tool_warned in
8034yes:)
8035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037ac_tool_warned=yes ;;
8038esac
8039    OTOOL64=$ac_ct_OTOOL64
8040  fi
8041else
8042  OTOOL64="$ac_cv_prog_OTOOL64"
8043fi
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8072printf %s "checking for -single_module linker flag... " >&6; }
8073if test ${lt_cv_apple_cc_single_mod+y}
8074then :
8075  printf %s "(cached) " >&6
8076else $as_nop
8077  lt_cv_apple_cc_single_mod=no
8078      if test -z "$LT_MULTI_MODULE"; then
8079	# By default we will add the -single_module flag. You can override
8080	# by either setting the environment variable LT_MULTI_MODULE
8081	# non-empty at configure time, or by adding -multi_module to the
8082	# link flags.
8083	rm -rf libconftest.dylib*
8084	echo "int foo(void){return 1;}" > conftest.c
8085	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8086-dynamiclib -Wl,-single_module conftest.c" >&5
8087	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8088	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8089        _lt_result=$?
8090	# If there is a non-empty error log, and "single_module"
8091	# appears in it, assume the flag caused a linker warning
8092        if test -s conftest.err && $GREP single_module conftest.err; then
8093	  cat conftest.err >&5
8094	# Otherwise, if the output was created with a 0 exit code from
8095	# the compiler, it worked.
8096	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8097	  lt_cv_apple_cc_single_mod=yes
8098	else
8099	  cat conftest.err >&5
8100	fi
8101	rm -rf libconftest.dylib*
8102	rm -f conftest.*
8103      fi
8104fi
8105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8106printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8107
8108    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8109printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8110if test ${lt_cv_ld_exported_symbols_list+y}
8111then :
8112  printf %s "(cached) " >&6
8113else $as_nop
8114  lt_cv_ld_exported_symbols_list=no
8115      save_LDFLAGS=$LDFLAGS
8116      echo "_main" > conftest.sym
8117      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120
8121int
8122main (void)
8123{
8124
8125  ;
8126  return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_link "$LINENO"
8130then :
8131  lt_cv_ld_exported_symbols_list=yes
8132else $as_nop
8133  lt_cv_ld_exported_symbols_list=no
8134fi
8135rm -f core conftest.err conftest.$ac_objext conftest.beam \
8136    conftest$ac_exeext conftest.$ac_ext
8137	LDFLAGS=$save_LDFLAGS
8138
8139fi
8140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8141printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8142
8143    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8144printf %s "checking for -force_load linker flag... " >&6; }
8145if test ${lt_cv_ld_force_load+y}
8146then :
8147  printf %s "(cached) " >&6
8148else $as_nop
8149  lt_cv_ld_force_load=no
8150      cat > conftest.c << _LT_EOF
8151int forced_loaded() { return 2;}
8152_LT_EOF
8153      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8154      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8155      echo "$AR cru libconftest.a conftest.o" >&5
8156      $AR cru libconftest.a conftest.o 2>&5
8157      echo "$RANLIB libconftest.a" >&5
8158      $RANLIB libconftest.a 2>&5
8159      cat > conftest.c << _LT_EOF
8160int main() { return 0;}
8161_LT_EOF
8162      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8163      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8164      _lt_result=$?
8165      if test -s conftest.err && $GREP force_load conftest.err; then
8166	cat conftest.err >&5
8167      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8168	lt_cv_ld_force_load=yes
8169      else
8170	cat conftest.err >&5
8171      fi
8172        rm -f conftest.err libconftest.a conftest conftest.c
8173        rm -rf conftest.dSYM
8174
8175fi
8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8177printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8178    case $host_os in
8179    rhapsody* | darwin1.[012])
8180      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8181    darwin1.*)
8182      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8183    darwin*)
8184      case ${MACOSX_DEPLOYMENT_TARGET},$host in
8185	10.[012],*|,*powerpc*)
8186	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8187	*)
8188	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8189      esac
8190    ;;
8191  esac
8192    if test yes = "$lt_cv_apple_cc_single_mod"; then
8193      _lt_dar_single_mod='$single_module'
8194    fi
8195    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8196      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8197    else
8198      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8199    fi
8200    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8201      _lt_dsymutil='~$DSYMUTIL $lib || :'
8202    else
8203      _lt_dsymutil=
8204    fi
8205    ;;
8206  esac
8207
8208# func_munge_path_list VARIABLE PATH
8209# -----------------------------------
8210# VARIABLE is name of variable containing _space_ separated list of
8211# directories to be munged by the contents of PATH, which is string
8212# having a format:
8213# "DIR[:DIR]:"
8214#       string "DIR[ DIR]" will be prepended to VARIABLE
8215# ":DIR[:DIR]"
8216#       string "DIR[ DIR]" will be appended to VARIABLE
8217# "DIRP[:DIRP]::[DIRA:]DIRA"
8218#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8219#       "DIRA[ DIRA]" will be appended to VARIABLE
8220# "DIR[:DIR]"
8221#       VARIABLE will be replaced by "DIR[ DIR]"
8222func_munge_path_list ()
8223{
8224    case x$2 in
8225    x)
8226        ;;
8227    *:)
8228        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8229        ;;
8230    x:*)
8231        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8232        ;;
8233    *::*)
8234        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8235        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8236        ;;
8237    *)
8238        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8239        ;;
8240    esac
8241}
8242
8243ac_header= ac_cache=
8244for ac_item in $ac_header_c_list
8245do
8246  if test $ac_cache; then
8247    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8248    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8249      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8250    fi
8251    ac_header= ac_cache=
8252  elif test $ac_header; then
8253    ac_cache=$ac_item
8254  else
8255    ac_header=$ac_item
8256  fi
8257done
8258
8259
8260
8261
8262
8263
8264
8265
8266if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8267then :
8268
8269printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8270
8271fi
8272ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8273"
8274if test "x$ac_cv_header_dlfcn_h" = xyes
8275then :
8276  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8277
8278fi
8279
8280
8281
8282
8283
8284# Set options
8285
8286
8287
8288        enable_dlopen=no
8289
8290
8291  enable_win32_dll=no
8292
8293
8294            # Check whether --enable-shared was given.
8295if test ${enable_shared+y}
8296then :
8297  enableval=$enable_shared; p=${PACKAGE-default}
8298    case $enableval in
8299    yes) enable_shared=yes ;;
8300    no) enable_shared=no ;;
8301    *)
8302      enable_shared=no
8303      # Look at the argument we got.  We use all the common list separators.
8304      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8305      for pkg in $enableval; do
8306	IFS=$lt_save_ifs
8307	if test "X$pkg" = "X$p"; then
8308	  enable_shared=yes
8309	fi
8310      done
8311      IFS=$lt_save_ifs
8312      ;;
8313    esac
8314else $as_nop
8315  enable_shared=yes
8316fi
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326  # Check whether --enable-static was given.
8327if test ${enable_static+y}
8328then :
8329  enableval=$enable_static; p=${PACKAGE-default}
8330    case $enableval in
8331    yes) enable_static=yes ;;
8332    no) enable_static=no ;;
8333    *)
8334     enable_static=no
8335      # Look at the argument we got.  We use all the common list separators.
8336      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8337      for pkg in $enableval; do
8338	IFS=$lt_save_ifs
8339	if test "X$pkg" = "X$p"; then
8340	  enable_static=yes
8341	fi
8342      done
8343      IFS=$lt_save_ifs
8344      ;;
8345    esac
8346else $as_nop
8347  enable_static=yes
8348fi
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359# Check whether --with-pic was given.
8360if test ${with_pic+y}
8361then :
8362  withval=$with_pic; lt_p=${PACKAGE-default}
8363    case $withval in
8364    yes|no) pic_mode=$withval ;;
8365    *)
8366      pic_mode=default
8367      # Look at the argument we got.  We use all the common list separators.
8368      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8369      for lt_pkg in $withval; do
8370	IFS=$lt_save_ifs
8371	if test "X$lt_pkg" = "X$lt_p"; then
8372	  pic_mode=yes
8373	fi
8374      done
8375      IFS=$lt_save_ifs
8376      ;;
8377    esac
8378else $as_nop
8379  pic_mode=default
8380fi
8381
8382
8383
8384
8385
8386
8387
8388
8389  # Check whether --enable-fast-install was given.
8390if test ${enable_fast_install+y}
8391then :
8392  enableval=$enable_fast_install; p=${PACKAGE-default}
8393    case $enableval in
8394    yes) enable_fast_install=yes ;;
8395    no) enable_fast_install=no ;;
8396    *)
8397      enable_fast_install=no
8398      # Look at the argument we got.  We use all the common list separators.
8399      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8400      for pkg in $enableval; do
8401	IFS=$lt_save_ifs
8402	if test "X$pkg" = "X$p"; then
8403	  enable_fast_install=yes
8404	fi
8405      done
8406      IFS=$lt_save_ifs
8407      ;;
8408    esac
8409else $as_nop
8410  enable_fast_install=yes
8411fi
8412
8413
8414
8415
8416
8417
8418
8419
8420  shared_archive_member_spec=
8421case $host,$enable_shared in
8422power*-*-aix[5-9]*,yes)
8423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8424printf %s "checking which variant of shared library versioning to provide... " >&6; }
8425
8426# Check whether --with-aix-soname was given.
8427if test ${with_aix_soname+y}
8428then :
8429  withval=$with_aix_soname; case $withval in
8430    aix|svr4|both)
8431      ;;
8432    *)
8433      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8434      ;;
8435    esac
8436    lt_cv_with_aix_soname=$with_aix_soname
8437else $as_nop
8438  if test ${lt_cv_with_aix_soname+y}
8439then :
8440  printf %s "(cached) " >&6
8441else $as_nop
8442  lt_cv_with_aix_soname=aix
8443fi
8444
8445    with_aix_soname=$lt_cv_with_aix_soname
8446fi
8447
8448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8449printf "%s\n" "$with_aix_soname" >&6; }
8450  if test aix != "$with_aix_soname"; then
8451    # For the AIX way of multilib, we name the shared archive member
8452    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8453    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8454    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8455    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8456    if test 64 = "${OBJECT_MODE-32}"; then
8457      shared_archive_member_spec=shr_64
8458    else
8459      shared_archive_member_spec=shr
8460    fi
8461  fi
8462  ;;
8463*)
8464  with_aix_soname=aix
8465  ;;
8466esac
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477# This can be used to rebuild libtool when needed
8478LIBTOOL_DEPS=$ltmain
8479
8480# Always use our own libtool.
8481LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512test -z "$LN_S" && LN_S="ln -s"
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527if test -n "${ZSH_VERSION+set}"; then
8528   setopt NO_GLOB_SUBST
8529fi
8530
8531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8532printf %s "checking for objdir... " >&6; }
8533if test ${lt_cv_objdir+y}
8534then :
8535  printf %s "(cached) " >&6
8536else $as_nop
8537  rm -f .libs 2>/dev/null
8538mkdir .libs 2>/dev/null
8539if test -d .libs; then
8540  lt_cv_objdir=.libs
8541else
8542  # MS-DOS does not allow filenames that begin with a dot.
8543  lt_cv_objdir=_libs
8544fi
8545rmdir .libs 2>/dev/null
8546fi
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8548printf "%s\n" "$lt_cv_objdir" >&6; }
8549objdir=$lt_cv_objdir
8550
8551
8552
8553
8554
8555printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8556
8557
8558
8559
8560case $host_os in
8561aix3*)
8562  # AIX sometimes has problems with the GCC collect2 program.  For some
8563  # reason, if we set the COLLECT_NAMES environment variable, the problems
8564  # vanish in a puff of smoke.
8565  if test set != "${COLLECT_NAMES+set}"; then
8566    COLLECT_NAMES=
8567    export COLLECT_NAMES
8568  fi
8569  ;;
8570esac
8571
8572# Global variables:
8573ofile=libtool
8574can_build_shared=yes
8575
8576# All known linkers require a '.a' archive for static linking (except MSVC,
8577# which needs '.lib').
8578libext=a
8579
8580with_gnu_ld=$lt_cv_prog_gnu_ld
8581
8582old_CC=$CC
8583old_CFLAGS=$CFLAGS
8584
8585# Set sane defaults for various variables
8586test -z "$CC" && CC=cc
8587test -z "$LTCC" && LTCC=$CC
8588test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8589test -z "$LD" && LD=ld
8590test -z "$ac_objext" && ac_objext=o
8591
8592func_cc_basename $compiler
8593cc_basename=$func_cc_basename_result
8594
8595
8596# Only perform the check for file, if the check method requires it
8597test -z "$MAGIC_CMD" && MAGIC_CMD=file
8598case $deplibs_check_method in
8599file_magic*)
8600  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8601    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8602printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8603if test ${lt_cv_path_MAGIC_CMD+y}
8604then :
8605  printf %s "(cached) " >&6
8606else $as_nop
8607  case $MAGIC_CMD in
8608[\\/*] |  ?:[\\/]*)
8609  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8610  ;;
8611*)
8612  lt_save_MAGIC_CMD=$MAGIC_CMD
8613  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8614  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8615  for ac_dir in $ac_dummy; do
8616    IFS=$lt_save_ifs
8617    test -z "$ac_dir" && ac_dir=.
8618    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8619      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8620      if test -n "$file_magic_test_file"; then
8621	case $deplibs_check_method in
8622	"file_magic "*)
8623	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8624	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8625	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8626	    $EGREP "$file_magic_regex" > /dev/null; then
8627	    :
8628	  else
8629	    cat <<_LT_EOF 1>&2
8630
8631*** Warning: the command libtool uses to detect shared libraries,
8632*** $file_magic_cmd, produces output that libtool cannot recognize.
8633*** The result is that libtool may fail to recognize shared libraries
8634*** as such.  This will affect the creation of libtool libraries that
8635*** depend on shared libraries, but programs linked with such libtool
8636*** libraries will work regardless of this problem.  Nevertheless, you
8637*** may want to report the problem to your system manager and/or to
8638*** bug-libtool@gnu.org
8639
8640_LT_EOF
8641	  fi ;;
8642	esac
8643      fi
8644      break
8645    fi
8646  done
8647  IFS=$lt_save_ifs
8648  MAGIC_CMD=$lt_save_MAGIC_CMD
8649  ;;
8650esac
8651fi
8652
8653MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8654if test -n "$MAGIC_CMD"; then
8655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8656printf "%s\n" "$MAGIC_CMD" >&6; }
8657else
8658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659printf "%s\n" "no" >&6; }
8660fi
8661
8662
8663
8664
8665
8666if test -z "$lt_cv_path_MAGIC_CMD"; then
8667  if test -n "$ac_tool_prefix"; then
8668    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8669printf %s "checking for file... " >&6; }
8670if test ${lt_cv_path_MAGIC_CMD+y}
8671then :
8672  printf %s "(cached) " >&6
8673else $as_nop
8674  case $MAGIC_CMD in
8675[\\/*] |  ?:[\\/]*)
8676  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8677  ;;
8678*)
8679  lt_save_MAGIC_CMD=$MAGIC_CMD
8680  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8681  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8682  for ac_dir in $ac_dummy; do
8683    IFS=$lt_save_ifs
8684    test -z "$ac_dir" && ac_dir=.
8685    if test -f "$ac_dir/file"; then
8686      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8687      if test -n "$file_magic_test_file"; then
8688	case $deplibs_check_method in
8689	"file_magic "*)
8690	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8691	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8692	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8693	    $EGREP "$file_magic_regex" > /dev/null; then
8694	    :
8695	  else
8696	    cat <<_LT_EOF 1>&2
8697
8698*** Warning: the command libtool uses to detect shared libraries,
8699*** $file_magic_cmd, produces output that libtool cannot recognize.
8700*** The result is that libtool may fail to recognize shared libraries
8701*** as such.  This will affect the creation of libtool libraries that
8702*** depend on shared libraries, but programs linked with such libtool
8703*** libraries will work regardless of this problem.  Nevertheless, you
8704*** may want to report the problem to your system manager and/or to
8705*** bug-libtool@gnu.org
8706
8707_LT_EOF
8708	  fi ;;
8709	esac
8710      fi
8711      break
8712    fi
8713  done
8714  IFS=$lt_save_ifs
8715  MAGIC_CMD=$lt_save_MAGIC_CMD
8716  ;;
8717esac
8718fi
8719
8720MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8721if test -n "$MAGIC_CMD"; then
8722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8723printf "%s\n" "$MAGIC_CMD" >&6; }
8724else
8725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726printf "%s\n" "no" >&6; }
8727fi
8728
8729
8730  else
8731    MAGIC_CMD=:
8732  fi
8733fi
8734
8735  fi
8736  ;;
8737esac
8738
8739# Use C for the default configuration in the libtool script
8740
8741lt_save_CC=$CC
8742ac_ext=c
8743ac_cpp='$CPP $CPPFLAGS'
8744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746ac_compiler_gnu=$ac_cv_c_compiler_gnu
8747
8748
8749# Source file extension for C test sources.
8750ac_ext=c
8751
8752# Object file extension for compiled C test sources.
8753objext=o
8754objext=$objext
8755
8756# Code to be used in simple compile tests
8757lt_simple_compile_test_code="int some_variable = 0;"
8758
8759# Code to be used in simple link tests
8760lt_simple_link_test_code='int main(){return(0);}'
8761
8762
8763
8764
8765
8766
8767
8768# If no C compiler was specified, use CC.
8769LTCC=${LTCC-"$CC"}
8770
8771# If no C compiler flags were specified, use CFLAGS.
8772LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8773
8774# Allow CC to be a program name with arguments.
8775compiler=$CC
8776
8777# Save the default compiler, since it gets overwritten when the other
8778# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8779compiler_DEFAULT=$CC
8780
8781# save warnings/boilerplate of simple test code
8782ac_outfile=conftest.$ac_objext
8783echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8784eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8785_lt_compiler_boilerplate=`cat conftest.err`
8786$RM conftest*
8787
8788ac_outfile=conftest.$ac_objext
8789echo "$lt_simple_link_test_code" >conftest.$ac_ext
8790eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8791_lt_linker_boilerplate=`cat conftest.err`
8792$RM -r conftest*
8793
8794
8795if test -n "$compiler"; then
8796
8797lt_prog_compiler_no_builtin_flag=
8798
8799if test yes = "$GCC"; then
8800  case $cc_basename in
8801  nvcc*)
8802    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8803  *)
8804    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8805  esac
8806
8807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8808printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8809if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8810then :
8811  printf %s "(cached) " >&6
8812else $as_nop
8813  lt_cv_prog_compiler_rtti_exceptions=no
8814   ac_outfile=conftest.$ac_objext
8815   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8816   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8817   # Insert the option either (1) after the last *FLAGS variable, or
8818   # (2) before a word containing "conftest.", or (3) at the end.
8819   # Note that $ac_compile itself does not contain backslashes and begins
8820   # with a dollar sign (not a hyphen), so the echo should work correctly.
8821   # The option is referenced via a variable to avoid confusing sed.
8822   lt_compile=`echo "$ac_compile" | $SED \
8823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8825   -e 's:$: $lt_compiler_flag:'`
8826   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8827   (eval "$lt_compile" 2>conftest.err)
8828   ac_status=$?
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   if (exit $ac_status) && test -s "$ac_outfile"; then
8832     # The compiler can only warn and ignore the option if not recognized
8833     # So say no if there are warnings other than the usual output.
8834     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8835     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8836     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8837       lt_cv_prog_compiler_rtti_exceptions=yes
8838     fi
8839   fi
8840   $RM conftest*
8841
8842fi
8843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8844printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8845
8846if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8847    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8848else
8849    :
8850fi
8851
8852fi
8853
8854
8855
8856
8857
8858
8859  lt_prog_compiler_wl=
8860lt_prog_compiler_pic=
8861lt_prog_compiler_static=
8862
8863
8864  if test yes = "$GCC"; then
8865    lt_prog_compiler_wl='-Wl,'
8866    lt_prog_compiler_static='-static'
8867
8868    case $host_os in
8869      aix*)
8870      # All AIX code is PIC.
8871      if test ia64 = "$host_cpu"; then
8872	# AIX 5 now supports IA64 processor
8873	lt_prog_compiler_static='-Bstatic'
8874      fi
8875      lt_prog_compiler_pic='-fPIC'
8876      ;;
8877
8878    amigaos*)
8879      case $host_cpu in
8880      powerpc)
8881            # see comment about AmigaOS4 .so support
8882            lt_prog_compiler_pic='-fPIC'
8883        ;;
8884      m68k)
8885            # FIXME: we need at least 68020 code to build shared libraries, but
8886            # adding the '-m68020' flag to GCC prevents building anything better,
8887            # like '-m68040'.
8888            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8889        ;;
8890      esac
8891      ;;
8892
8893    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8894      # PIC is the default for these OSes.
8895      ;;
8896
8897    mingw* | cygwin* | pw32* | os2* | cegcc*)
8898      # This hack is so that the source file can tell whether it is being
8899      # built for inclusion in a dll (and should export symbols for example).
8900      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8901      # (--disable-auto-import) libraries
8902      lt_prog_compiler_pic='-DDLL_EXPORT'
8903      case $host_os in
8904      os2*)
8905	lt_prog_compiler_static='$wl-static'
8906	;;
8907      esac
8908      ;;
8909
8910    darwin* | rhapsody*)
8911      # PIC is the default on this platform
8912      # Common symbols not allowed in MH_DYLIB files
8913      lt_prog_compiler_pic='-fno-common'
8914      ;;
8915
8916    haiku*)
8917      # PIC is the default for Haiku.
8918      # The "-static" flag exists, but is broken.
8919      lt_prog_compiler_static=
8920      ;;
8921
8922    hpux*)
8923      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8924      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8925      # sets the default TLS model and affects inlining.
8926      case $host_cpu in
8927      hppa*64*)
8928	# +Z the default
8929	;;
8930      *)
8931	lt_prog_compiler_pic='-fPIC'
8932	;;
8933      esac
8934      ;;
8935
8936    interix[3-9]*)
8937      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8938      # Instead, we relocate shared libraries at runtime.
8939      ;;
8940
8941    msdosdjgpp*)
8942      # Just because we use GCC doesn't mean we suddenly get shared libraries
8943      # on systems that don't support them.
8944      lt_prog_compiler_can_build_shared=no
8945      enable_shared=no
8946      ;;
8947
8948    *nto* | *qnx*)
8949      # QNX uses GNU C++, but need to define -shared option too, otherwise
8950      # it will coredump.
8951      lt_prog_compiler_pic='-fPIC -shared'
8952      ;;
8953
8954    sysv4*MP*)
8955      if test -d /usr/nec; then
8956	lt_prog_compiler_pic=-Kconform_pic
8957      fi
8958      ;;
8959
8960    *)
8961      lt_prog_compiler_pic='-fPIC'
8962      ;;
8963    esac
8964
8965    case $cc_basename in
8966    nvcc*) # Cuda Compiler Driver 2.2
8967      lt_prog_compiler_wl='-Xlinker '
8968      if test -n "$lt_prog_compiler_pic"; then
8969        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8970      fi
8971      ;;
8972    esac
8973  else
8974    # PORTME Check for flag to pass linker flags through the system compiler.
8975    case $host_os in
8976    aix*)
8977      lt_prog_compiler_wl='-Wl,'
8978      if test ia64 = "$host_cpu"; then
8979	# AIX 5 now supports IA64 processor
8980	lt_prog_compiler_static='-Bstatic'
8981      else
8982	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8983      fi
8984      ;;
8985
8986    darwin* | rhapsody*)
8987      # PIC is the default on this platform
8988      # Common symbols not allowed in MH_DYLIB files
8989      lt_prog_compiler_pic='-fno-common'
8990      case $cc_basename in
8991      nagfor*)
8992        # NAG Fortran compiler
8993        lt_prog_compiler_wl='-Wl,-Wl,,'
8994        lt_prog_compiler_pic='-PIC'
8995        lt_prog_compiler_static='-Bstatic'
8996        ;;
8997      esac
8998      ;;
8999
9000    mingw* | cygwin* | pw32* | os2* | cegcc*)
9001      # This hack is so that the source file can tell whether it is being
9002      # built for inclusion in a dll (and should export symbols for example).
9003      lt_prog_compiler_pic='-DDLL_EXPORT'
9004      case $host_os in
9005      os2*)
9006	lt_prog_compiler_static='$wl-static'
9007	;;
9008      esac
9009      ;;
9010
9011    hpux9* | hpux10* | hpux11*)
9012      lt_prog_compiler_wl='-Wl,'
9013      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9014      # not for PA HP-UX.
9015      case $host_cpu in
9016      hppa*64*|ia64*)
9017	# +Z the default
9018	;;
9019      *)
9020	lt_prog_compiler_pic='+Z'
9021	;;
9022      esac
9023      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9024      lt_prog_compiler_static='$wl-a ${wl}archive'
9025      ;;
9026
9027    irix5* | irix6* | nonstopux*)
9028      lt_prog_compiler_wl='-Wl,'
9029      # PIC (with -KPIC) is the default.
9030      lt_prog_compiler_static='-non_shared'
9031      ;;
9032
9033    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9034      case $cc_basename in
9035      # old Intel for x86_64, which still supported -KPIC.
9036      ecc*)
9037	lt_prog_compiler_wl='-Wl,'
9038	lt_prog_compiler_pic='-KPIC'
9039	lt_prog_compiler_static='-static'
9040        ;;
9041      # icc used to be incompatible with GCC.
9042      # ICC 10 doesn't accept -KPIC any more.
9043      icc* | ifort*)
9044	lt_prog_compiler_wl='-Wl,'
9045	lt_prog_compiler_pic='-fPIC'
9046	lt_prog_compiler_static='-static'
9047        ;;
9048      # Lahey Fortran 8.1.
9049      lf95*)
9050	lt_prog_compiler_wl='-Wl,'
9051	lt_prog_compiler_pic='--shared'
9052	lt_prog_compiler_static='--static'
9053	;;
9054      nagfor*)
9055	# NAG Fortran compiler
9056	lt_prog_compiler_wl='-Wl,-Wl,,'
9057	lt_prog_compiler_pic='-PIC'
9058	lt_prog_compiler_static='-Bstatic'
9059	;;
9060      tcc*)
9061	# Fabrice Bellard et al's Tiny C Compiler
9062	lt_prog_compiler_wl='-Wl,'
9063	lt_prog_compiler_pic='-fPIC'
9064	lt_prog_compiler_static='-static'
9065	;;
9066      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9067        # Portland Group compilers (*not* the Pentium gcc compiler,
9068	# which looks to be a dead project)
9069	lt_prog_compiler_wl='-Wl,'
9070	lt_prog_compiler_pic='-fpic'
9071	lt_prog_compiler_static='-Bstatic'
9072        ;;
9073      ccc*)
9074        lt_prog_compiler_wl='-Wl,'
9075        # All Alpha code is PIC.
9076        lt_prog_compiler_static='-non_shared'
9077        ;;
9078      xl* | bgxl* | bgf* | mpixl*)
9079	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9080	lt_prog_compiler_wl='-Wl,'
9081	lt_prog_compiler_pic='-qpic'
9082	lt_prog_compiler_static='-qstaticlink'
9083	;;
9084      *)
9085	case `$CC -V 2>&1 | sed 5q` in
9086	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9087	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9088	  lt_prog_compiler_pic='-KPIC'
9089	  lt_prog_compiler_static='-Bstatic'
9090	  lt_prog_compiler_wl=''
9091	  ;;
9092	*Sun\ F* | *Sun*Fortran*)
9093	  lt_prog_compiler_pic='-KPIC'
9094	  lt_prog_compiler_static='-Bstatic'
9095	  lt_prog_compiler_wl='-Qoption ld '
9096	  ;;
9097	*Sun\ C*)
9098	  # Sun C 5.9
9099	  lt_prog_compiler_pic='-KPIC'
9100	  lt_prog_compiler_static='-Bstatic'
9101	  lt_prog_compiler_wl='-Wl,'
9102	  ;;
9103        *Intel*\ [CF]*Compiler*)
9104	  lt_prog_compiler_wl='-Wl,'
9105	  lt_prog_compiler_pic='-fPIC'
9106	  lt_prog_compiler_static='-static'
9107	  ;;
9108	*Portland\ Group*)
9109	  lt_prog_compiler_wl='-Wl,'
9110	  lt_prog_compiler_pic='-fpic'
9111	  lt_prog_compiler_static='-Bstatic'
9112	  ;;
9113	esac
9114	;;
9115      esac
9116      ;;
9117
9118    newsos6)
9119      lt_prog_compiler_pic='-KPIC'
9120      lt_prog_compiler_static='-Bstatic'
9121      ;;
9122
9123    *nto* | *qnx*)
9124      # QNX uses GNU C++, but need to define -shared option too, otherwise
9125      # it will coredump.
9126      lt_prog_compiler_pic='-fPIC -shared'
9127      ;;
9128
9129    osf3* | osf4* | osf5*)
9130      lt_prog_compiler_wl='-Wl,'
9131      # All OSF/1 code is PIC.
9132      lt_prog_compiler_static='-non_shared'
9133      ;;
9134
9135    rdos*)
9136      lt_prog_compiler_static='-non_shared'
9137      ;;
9138
9139    solaris*)
9140      lt_prog_compiler_pic='-KPIC'
9141      lt_prog_compiler_static='-Bstatic'
9142      case $cc_basename in
9143      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9144	lt_prog_compiler_wl='-Qoption ld ';;
9145      *)
9146	lt_prog_compiler_wl='-Wl,';;
9147      esac
9148      ;;
9149
9150    sunos4*)
9151      lt_prog_compiler_wl='-Qoption ld '
9152      lt_prog_compiler_pic='-PIC'
9153      lt_prog_compiler_static='-Bstatic'
9154      ;;
9155
9156    sysv4 | sysv4.2uw2* | sysv4.3*)
9157      lt_prog_compiler_wl='-Wl,'
9158      lt_prog_compiler_pic='-KPIC'
9159      lt_prog_compiler_static='-Bstatic'
9160      ;;
9161
9162    sysv4*MP*)
9163      if test -d /usr/nec; then
9164	lt_prog_compiler_pic='-Kconform_pic'
9165	lt_prog_compiler_static='-Bstatic'
9166      fi
9167      ;;
9168
9169    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9170      lt_prog_compiler_wl='-Wl,'
9171      lt_prog_compiler_pic='-KPIC'
9172      lt_prog_compiler_static='-Bstatic'
9173      ;;
9174
9175    unicos*)
9176      lt_prog_compiler_wl='-Wl,'
9177      lt_prog_compiler_can_build_shared=no
9178      ;;
9179
9180    uts4*)
9181      lt_prog_compiler_pic='-pic'
9182      lt_prog_compiler_static='-Bstatic'
9183      ;;
9184
9185    *)
9186      lt_prog_compiler_can_build_shared=no
9187      ;;
9188    esac
9189  fi
9190
9191case $host_os in
9192  # For platforms that do not support PIC, -DPIC is meaningless:
9193  *djgpp*)
9194    lt_prog_compiler_pic=
9195    ;;
9196  *)
9197    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9198    ;;
9199esac
9200
9201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9202printf %s "checking for $compiler option to produce PIC... " >&6; }
9203if test ${lt_cv_prog_compiler_pic+y}
9204then :
9205  printf %s "(cached) " >&6
9206else $as_nop
9207  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9208fi
9209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9210printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9211lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9212
9213#
9214# Check to make sure the PIC flag actually works.
9215#
9216if test -n "$lt_prog_compiler_pic"; then
9217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9218printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9219if test ${lt_cv_prog_compiler_pic_works+y}
9220then :
9221  printf %s "(cached) " >&6
9222else $as_nop
9223  lt_cv_prog_compiler_pic_works=no
9224   ac_outfile=conftest.$ac_objext
9225   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9226   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9227   # Insert the option either (1) after the last *FLAGS variable, or
9228   # (2) before a word containing "conftest.", or (3) at the end.
9229   # Note that $ac_compile itself does not contain backslashes and begins
9230   # with a dollar sign (not a hyphen), so the echo should work correctly.
9231   # The option is referenced via a variable to avoid confusing sed.
9232   lt_compile=`echo "$ac_compile" | $SED \
9233   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9234   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9235   -e 's:$: $lt_compiler_flag:'`
9236   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9237   (eval "$lt_compile" 2>conftest.err)
9238   ac_status=$?
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   if (exit $ac_status) && test -s "$ac_outfile"; then
9242     # The compiler can only warn and ignore the option if not recognized
9243     # So say no if there are warnings other than the usual output.
9244     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9245     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9246     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9247       lt_cv_prog_compiler_pic_works=yes
9248     fi
9249   fi
9250   $RM conftest*
9251
9252fi
9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9254printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9255
9256if test yes = "$lt_cv_prog_compiler_pic_works"; then
9257    case $lt_prog_compiler_pic in
9258     "" | " "*) ;;
9259     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9260     esac
9261else
9262    lt_prog_compiler_pic=
9263     lt_prog_compiler_can_build_shared=no
9264fi
9265
9266fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278#
9279# Check to make sure the static flag actually works.
9280#
9281wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9283printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9284if test ${lt_cv_prog_compiler_static_works+y}
9285then :
9286  printf %s "(cached) " >&6
9287else $as_nop
9288  lt_cv_prog_compiler_static_works=no
9289   save_LDFLAGS=$LDFLAGS
9290   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9291   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9292   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9293     # The linker can only warn and ignore the option if not recognized
9294     # So say no if there are warnings
9295     if test -s conftest.err; then
9296       # Append any errors to the config.log.
9297       cat conftest.err 1>&5
9298       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9299       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9300       if diff conftest.exp conftest.er2 >/dev/null; then
9301         lt_cv_prog_compiler_static_works=yes
9302       fi
9303     else
9304       lt_cv_prog_compiler_static_works=yes
9305     fi
9306   fi
9307   $RM -r conftest*
9308   LDFLAGS=$save_LDFLAGS
9309
9310fi
9311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9312printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9313
9314if test yes = "$lt_cv_prog_compiler_static_works"; then
9315    :
9316else
9317    lt_prog_compiler_static=
9318fi
9319
9320
9321
9322
9323
9324
9325
9326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9327printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9328if test ${lt_cv_prog_compiler_c_o+y}
9329then :
9330  printf %s "(cached) " >&6
9331else $as_nop
9332  lt_cv_prog_compiler_c_o=no
9333   $RM -r conftest 2>/dev/null
9334   mkdir conftest
9335   cd conftest
9336   mkdir out
9337   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9338
9339   lt_compiler_flag="-o out/conftest2.$ac_objext"
9340   # Insert the option either (1) after the last *FLAGS variable, or
9341   # (2) before a word containing "conftest.", or (3) at the end.
9342   # Note that $ac_compile itself does not contain backslashes and begins
9343   # with a dollar sign (not a hyphen), so the echo should work correctly.
9344   lt_compile=`echo "$ac_compile" | $SED \
9345   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9347   -e 's:$: $lt_compiler_flag:'`
9348   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9349   (eval "$lt_compile" 2>out/conftest.err)
9350   ac_status=$?
9351   cat out/conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9354   then
9355     # The compiler can only warn and ignore the option if not recognized
9356     # So say no if there are warnings
9357     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9358     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9359     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9360       lt_cv_prog_compiler_c_o=yes
9361     fi
9362   fi
9363   chmod u+w . 2>&5
9364   $RM conftest*
9365   # SGI C++ compiler will create directory out/ii_files/ for
9366   # template instantiation
9367   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9368   $RM out/* && rmdir out
9369   cd ..
9370   $RM -r conftest
9371   $RM conftest*
9372
9373fi
9374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9375printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9376
9377
9378
9379
9380
9381
9382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9383printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9384if test ${lt_cv_prog_compiler_c_o+y}
9385then :
9386  printf %s "(cached) " >&6
9387else $as_nop
9388  lt_cv_prog_compiler_c_o=no
9389   $RM -r conftest 2>/dev/null
9390   mkdir conftest
9391   cd conftest
9392   mkdir out
9393   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9394
9395   lt_compiler_flag="-o out/conftest2.$ac_objext"
9396   # Insert the option either (1) after the last *FLAGS variable, or
9397   # (2) before a word containing "conftest.", or (3) at the end.
9398   # Note that $ac_compile itself does not contain backslashes and begins
9399   # with a dollar sign (not a hyphen), so the echo should work correctly.
9400   lt_compile=`echo "$ac_compile" | $SED \
9401   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9402   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9403   -e 's:$: $lt_compiler_flag:'`
9404   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9405   (eval "$lt_compile" 2>out/conftest.err)
9406   ac_status=$?
9407   cat out/conftest.err >&5
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9410   then
9411     # The compiler can only warn and ignore the option if not recognized
9412     # So say no if there are warnings
9413     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9414     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9415     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9416       lt_cv_prog_compiler_c_o=yes
9417     fi
9418   fi
9419   chmod u+w . 2>&5
9420   $RM conftest*
9421   # SGI C++ compiler will create directory out/ii_files/ for
9422   # template instantiation
9423   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9424   $RM out/* && rmdir out
9425   cd ..
9426   $RM -r conftest
9427   $RM conftest*
9428
9429fi
9430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9431printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9432
9433
9434
9435
9436hard_links=nottested
9437if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9438  # do not overwrite the value of need_locks provided by the user
9439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9440printf %s "checking if we can lock with hard links... " >&6; }
9441  hard_links=yes
9442  $RM conftest*
9443  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9444  touch conftest.a
9445  ln conftest.a conftest.b 2>&5 || hard_links=no
9446  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9448printf "%s\n" "$hard_links" >&6; }
9449  if test no = "$hard_links"; then
9450    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9451printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9452    need_locks=warn
9453  fi
9454else
9455  need_locks=no
9456fi
9457
9458
9459
9460
9461
9462
9463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9464printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9465
9466  runpath_var=
9467  allow_undefined_flag=
9468  always_export_symbols=no
9469  archive_cmds=
9470  archive_expsym_cmds=
9471  compiler_needs_object=no
9472  enable_shared_with_static_runtimes=no
9473  export_dynamic_flag_spec=
9474  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9475  hardcode_automatic=no
9476  hardcode_direct=no
9477  hardcode_direct_absolute=no
9478  hardcode_libdir_flag_spec=
9479  hardcode_libdir_separator=
9480  hardcode_minus_L=no
9481  hardcode_shlibpath_var=unsupported
9482  inherit_rpath=no
9483  link_all_deplibs=unknown
9484  module_cmds=
9485  module_expsym_cmds=
9486  old_archive_from_new_cmds=
9487  old_archive_from_expsyms_cmds=
9488  thread_safe_flag_spec=
9489  whole_archive_flag_spec=
9490  # include_expsyms should be a list of space-separated symbols to be *always*
9491  # included in the symbol list
9492  include_expsyms=
9493  # exclude_expsyms can be an extended regexp of symbols to exclude
9494  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9495  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9496  # as well as any symbol that contains 'd'.
9497  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9498  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9499  # platforms (ab)use it in PIC code, but their linkers get confused if
9500  # the symbol is explicitly referenced.  Since portable code cannot
9501  # rely on this symbol name, it's probably fine to never include it in
9502  # preloaded symbol tables.
9503  # Exclude shared library initialization/finalization symbols.
9504  extract_expsyms_cmds=
9505
9506  case $host_os in
9507  cygwin* | mingw* | pw32* | cegcc*)
9508    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9509    # When not using gcc, we currently assume that we are using
9510    # Microsoft Visual C++.
9511    if test yes != "$GCC"; then
9512      with_gnu_ld=no
9513    fi
9514    ;;
9515  interix*)
9516    # we just hope/assume this is gcc and not c89 (= MSVC++)
9517    with_gnu_ld=yes
9518    ;;
9519  openbsd* | bitrig*)
9520    with_gnu_ld=no
9521    ;;
9522  esac
9523
9524  ld_shlibs=yes
9525
9526  # On some targets, GNU ld is compatible enough with the native linker
9527  # that we're better off using the native interface for both.
9528  lt_use_gnu_ld_interface=no
9529  if test yes = "$with_gnu_ld"; then
9530    case $host_os in
9531      aix*)
9532	# The AIX port of GNU ld has always aspired to compatibility
9533	# with the native linker.  However, as the warning in the GNU ld
9534	# block says, versions before 2.19.5* couldn't really create working
9535	# shared libraries, regardless of the interface used.
9536	case `$LD -v 2>&1` in
9537	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9538	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9539	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9540	  *)
9541	    lt_use_gnu_ld_interface=yes
9542	    ;;
9543	esac
9544	;;
9545      *)
9546	lt_use_gnu_ld_interface=yes
9547	;;
9548    esac
9549  fi
9550
9551  if test yes = "$lt_use_gnu_ld_interface"; then
9552    # If archive_cmds runs LD, not CC, wlarc should be empty
9553    wlarc='$wl'
9554
9555    # Set some defaults for GNU ld with shared library support. These
9556    # are reset later if shared libraries are not supported. Putting them
9557    # here allows them to be overridden if necessary.
9558    runpath_var=LD_RUN_PATH
9559    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9560    export_dynamic_flag_spec='$wl--export-dynamic'
9561    # ancient GNU ld didn't support --whole-archive et. al.
9562    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9563      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9564    else
9565      whole_archive_flag_spec=
9566    fi
9567    supports_anon_versioning=no
9568    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9569      *GNU\ gold*) supports_anon_versioning=yes ;;
9570      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9571      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9572      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9573      *\ 2.11.*) ;; # other 2.11 versions
9574      *) supports_anon_versioning=yes ;;
9575    esac
9576
9577    # See if GNU ld supports shared libraries.
9578    case $host_os in
9579    aix[3-9]*)
9580      # On AIX/PPC, the GNU linker is very broken
9581      if test ia64 != "$host_cpu"; then
9582	ld_shlibs=no
9583	cat <<_LT_EOF 1>&2
9584
9585*** Warning: the GNU linker, at least up to release 2.19, is reported
9586*** to be unable to reliably create shared libraries on AIX.
9587*** Therefore, libtool is disabling shared libraries support.  If you
9588*** really care for shared libraries, you may want to install binutils
9589*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9590*** You will then need to restart the configuration process.
9591
9592_LT_EOF
9593      fi
9594      ;;
9595
9596    amigaos*)
9597      case $host_cpu in
9598      powerpc)
9599            # see comment about AmigaOS4 .so support
9600            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9601            archive_expsym_cmds=''
9602        ;;
9603      m68k)
9604            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)'
9605            hardcode_libdir_flag_spec='-L$libdir'
9606            hardcode_minus_L=yes
9607        ;;
9608      esac
9609      ;;
9610
9611    beos*)
9612      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9613	allow_undefined_flag=unsupported
9614	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9615	# support --undefined.  This deserves some investigation.  FIXME
9616	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9617      else
9618	ld_shlibs=no
9619      fi
9620      ;;
9621
9622    cygwin* | mingw* | pw32* | cegcc*)
9623      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9624      # as there is no search path for DLLs.
9625      hardcode_libdir_flag_spec='-L$libdir'
9626      export_dynamic_flag_spec='$wl--export-all-symbols'
9627      allow_undefined_flag=unsupported
9628      always_export_symbols=no
9629      enable_shared_with_static_runtimes=yes
9630      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'
9631      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9632
9633      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9634        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9635	# If the export-symbols file already is a .def file, use it as
9636	# is; otherwise, prepend EXPORTS...
9637	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9638          cp $export_symbols $output_objdir/$soname.def;
9639        else
9640          echo EXPORTS > $output_objdir/$soname.def;
9641          cat $export_symbols >> $output_objdir/$soname.def;
9642        fi~
9643        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9644      else
9645	ld_shlibs=no
9646      fi
9647      ;;
9648
9649    haiku*)
9650      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9651      link_all_deplibs=yes
9652      ;;
9653
9654    os2*)
9655      hardcode_libdir_flag_spec='-L$libdir'
9656      hardcode_minus_L=yes
9657      allow_undefined_flag=unsupported
9658      shrext_cmds=.dll
9659      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9660	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9661	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9662	$ECHO EXPORTS >> $output_objdir/$libname.def~
9663	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9664	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9665	emximp -o $lib $output_objdir/$libname.def'
9666      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9667	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9668	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9669	$ECHO EXPORTS >> $output_objdir/$libname.def~
9670	prefix_cmds="$SED"~
9671	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9672	  prefix_cmds="$prefix_cmds -e 1d";
9673	fi~
9674	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9675	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9676	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9677	emximp -o $lib $output_objdir/$libname.def'
9678      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9679      enable_shared_with_static_runtimes=yes
9680      ;;
9681
9682    interix[3-9]*)
9683      hardcode_direct=no
9684      hardcode_shlibpath_var=no
9685      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9686      export_dynamic_flag_spec='$wl-E'
9687      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9688      # Instead, shared libraries are loaded at an image base (0x10000000 by
9689      # default) and relocated if they conflict, which is a slow very memory
9690      # consuming and fragmenting process.  To avoid this, we pick a random,
9691      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9692      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9693      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9694      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'
9695      ;;
9696
9697    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9698      tmp_diet=no
9699      if test linux-dietlibc = "$host_os"; then
9700	case $cc_basename in
9701	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9702	esac
9703      fi
9704      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9705	 && test no = "$tmp_diet"
9706      then
9707	tmp_addflag=' $pic_flag'
9708	tmp_sharedflag='-shared'
9709	case $cc_basename,$host_cpu in
9710        pgcc*)				# Portland Group C compiler
9711	  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'
9712	  tmp_addflag=' $pic_flag'
9713	  ;;
9714	pgf77* | pgf90* | pgf95* | pgfortran*)
9715					# Portland Group f77 and f90 compilers
9716	  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'
9717	  tmp_addflag=' $pic_flag -Mnomain' ;;
9718	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9719	  tmp_addflag=' -i_dynamic' ;;
9720	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9721	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9722	ifc* | ifort*)			# Intel Fortran compiler
9723	  tmp_addflag=' -nofor_main' ;;
9724	lf95*)				# Lahey Fortran 8.1
9725	  whole_archive_flag_spec=
9726	  tmp_sharedflag='--shared' ;;
9727        nagfor*)                        # NAGFOR 5.3
9728          tmp_sharedflag='-Wl,-shared' ;;
9729	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9730	  tmp_sharedflag='-qmkshrobj'
9731	  tmp_addflag= ;;
9732	nvcc*)	# Cuda Compiler Driver 2.2
9733	  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'
9734	  compiler_needs_object=yes
9735	  ;;
9736	esac
9737	case `$CC -V 2>&1 | sed 5q` in
9738	*Sun\ C*)			# Sun C 5.9
9739	  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'
9740	  compiler_needs_object=yes
9741	  tmp_sharedflag='-G' ;;
9742	*Sun\ F*)			# Sun Fortran 8.3
9743	  tmp_sharedflag='-G' ;;
9744	esac
9745	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9746
9747        if test yes = "$supports_anon_versioning"; then
9748          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9749            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9750            echo "local: *; };" >> $output_objdir/$libname.ver~
9751            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9752        fi
9753
9754	case $cc_basename in
9755	tcc*)
9756	  export_dynamic_flag_spec='-rdynamic'
9757	  ;;
9758	xlf* | bgf* | bgxlf* | mpixlf*)
9759	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9760	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9761	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9762	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9763	  if test yes = "$supports_anon_versioning"; then
9764	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9765              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9766              echo "local: *; };" >> $output_objdir/$libname.ver~
9767              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9768	  fi
9769	  ;;
9770	esac
9771      else
9772        ld_shlibs=no
9773      fi
9774      ;;
9775
9776    netbsd*)
9777      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9778	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9779	wlarc=
9780      else
9781	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9782	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9783      fi
9784      ;;
9785
9786    solaris*)
9787      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9788	ld_shlibs=no
9789	cat <<_LT_EOF 1>&2
9790
9791*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9792*** create shared libraries on Solaris systems.  Therefore, libtool
9793*** is disabling shared libraries support.  We urge you to upgrade GNU
9794*** binutils to release 2.9.1 or newer.  Another option is to modify
9795*** your PATH or compiler configuration so that the native linker is
9796*** used, and then restart.
9797
9798_LT_EOF
9799      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9801	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9802      else
9803	ld_shlibs=no
9804      fi
9805      ;;
9806
9807    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9808      case `$LD -v 2>&1` in
9809        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9810	ld_shlibs=no
9811	cat <<_LT_EOF 1>&2
9812
9813*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9814*** reliably create shared libraries on SCO systems.  Therefore, libtool
9815*** is disabling shared libraries support.  We urge you to upgrade GNU
9816*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9817*** your PATH or compiler configuration so that the native linker is
9818*** used, and then restart.
9819
9820_LT_EOF
9821	;;
9822	*)
9823	  # For security reasons, it is highly recommended that you always
9824	  # use absolute paths for naming shared libraries, and exclude the
9825	  # DT_RUNPATH tag from executables and libraries.  But doing so
9826	  # requires that you compile everything twice, which is a pain.
9827	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9828	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9829	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9830	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9831	  else
9832	    ld_shlibs=no
9833	  fi
9834	;;
9835      esac
9836      ;;
9837
9838    sunos4*)
9839      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9840      wlarc=
9841      hardcode_direct=yes
9842      hardcode_shlibpath_var=no
9843      ;;
9844
9845    *)
9846      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9847	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9848	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9849      else
9850	ld_shlibs=no
9851      fi
9852      ;;
9853    esac
9854
9855    if test no = "$ld_shlibs"; then
9856      runpath_var=
9857      hardcode_libdir_flag_spec=
9858      export_dynamic_flag_spec=
9859      whole_archive_flag_spec=
9860    fi
9861  else
9862    # PORTME fill in a description of your system's linker (not GNU ld)
9863    case $host_os in
9864    aix3*)
9865      allow_undefined_flag=unsupported
9866      always_export_symbols=yes
9867      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'
9868      # Note: this linker hardcodes the directories in LIBPATH if there
9869      # are no directories specified by -L.
9870      hardcode_minus_L=yes
9871      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9872	# Neither direct hardcoding nor static linking is supported with a
9873	# broken collect2.
9874	hardcode_direct=unsupported
9875      fi
9876      ;;
9877
9878    aix[4-9]*)
9879      if test ia64 = "$host_cpu"; then
9880	# On IA64, the linker does run time linking by default, so we don't
9881	# have to do anything special.
9882	aix_use_runtimelinking=no
9883	exp_sym_flag='-Bexport'
9884	no_entry_flag=
9885      else
9886	# If we're using GNU nm, then we don't want the "-C" option.
9887	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9888	# Without the "-l" option, or with the "-B" option, AIX nm treats
9889	# weak defined symbols like other global defined symbols, whereas
9890	# GNU nm marks them as "W".
9891	# While the 'weak' keyword is ignored in the Export File, we need
9892	# it in the Import File for the 'aix-soname' feature, so we have
9893	# to replace the "-B" option with "-P" for AIX nm.
9894	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9895	  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'
9896	else
9897	  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'
9898	fi
9899	aix_use_runtimelinking=no
9900
9901	# Test if we are trying to use run time linking or normal
9902	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9903	# have runtime linking enabled, and use it for executables.
9904	# For shared libraries, we enable/disable runtime linking
9905	# depending on the kind of the shared library created -
9906	# when "with_aix_soname,aix_use_runtimelinking" is:
9907	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9908	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9909	#            lib.a           static archive
9910	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9911	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9912	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9913	#            lib.a(lib.so.V) shared, rtl:no
9914	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9915	#            lib.a           static archive
9916	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9917	  for ld_flag in $LDFLAGS; do
9918	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9919	    aix_use_runtimelinking=yes
9920	    break
9921	  fi
9922	  done
9923	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9924	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9925	    # so we don't have lib.a shared libs to link our executables.
9926	    # We have to force runtime linking in this case.
9927	    aix_use_runtimelinking=yes
9928	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9929	  fi
9930	  ;;
9931	esac
9932
9933	exp_sym_flag='-bexport'
9934	no_entry_flag='-bnoentry'
9935      fi
9936
9937      # When large executables or shared objects are built, AIX ld can
9938      # have problems creating the table of contents.  If linking a library
9939      # or program results in "error TOC overflow" add -mminimal-toc to
9940      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9941      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9942
9943      archive_cmds=''
9944      hardcode_direct=yes
9945      hardcode_direct_absolute=yes
9946      hardcode_libdir_separator=':'
9947      link_all_deplibs=yes
9948      file_list_spec='$wl-f,'
9949      case $with_aix_soname,$aix_use_runtimelinking in
9950      aix,*) ;; # traditional, no import file
9951      svr4,* | *,yes) # use import file
9952	# The Import File defines what to hardcode.
9953	hardcode_direct=no
9954	hardcode_direct_absolute=no
9955	;;
9956      esac
9957
9958      if test yes = "$GCC"; then
9959	case $host_os in aix4.[012]|aix4.[012].*)
9960	# We only want to do this on AIX 4.2 and lower, the check
9961	# below for broken collect2 doesn't work under 4.3+
9962	  collect2name=`$CC -print-prog-name=collect2`
9963	  if test -f "$collect2name" &&
9964	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9965	  then
9966	  # We have reworked collect2
9967	  :
9968	  else
9969	  # We have old collect2
9970	  hardcode_direct=unsupported
9971	  # It fails to find uninstalled libraries when the uninstalled
9972	  # path is not listed in the libpath.  Setting hardcode_minus_L
9973	  # to unsupported forces relinking
9974	  hardcode_minus_L=yes
9975	  hardcode_libdir_flag_spec='-L$libdir'
9976	  hardcode_libdir_separator=
9977	  fi
9978	  ;;
9979	esac
9980	shared_flag='-shared'
9981	if test yes = "$aix_use_runtimelinking"; then
9982	  shared_flag="$shared_flag "'$wl-G'
9983	fi
9984	# Need to ensure runtime linking is disabled for the traditional
9985	# shared library, or the linker may eventually find shared libraries
9986	# /with/ Import File - we do not want to mix them.
9987	shared_flag_aix='-shared'
9988	shared_flag_svr4='-shared $wl-G'
9989      else
9990	# not using gcc
9991	if test ia64 = "$host_cpu"; then
9992	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9993	# chokes on -Wl,-G. The following line is correct:
9994	  shared_flag='-G'
9995	else
9996	  if test yes = "$aix_use_runtimelinking"; then
9997	    shared_flag='$wl-G'
9998	  else
9999	    shared_flag='$wl-bM:SRE'
10000	  fi
10001	  shared_flag_aix='$wl-bM:SRE'
10002	  shared_flag_svr4='$wl-G'
10003	fi
10004      fi
10005
10006      export_dynamic_flag_spec='$wl-bexpall'
10007      # It seems that -bexpall does not export symbols beginning with
10008      # underscore (_), so it is better to generate a list of symbols to export.
10009      always_export_symbols=yes
10010      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10011	# Warning - without using the other runtime loading flags (-brtl),
10012	# -berok will link without error, but may produce a broken library.
10013	allow_undefined_flag='-berok'
10014        # Determine the default libpath from the value encoded in an
10015        # empty executable.
10016        if test set = "${lt_cv_aix_libpath+set}"; then
10017  aix_libpath=$lt_cv_aix_libpath
10018else
10019  if test ${lt_cv_aix_libpath_+y}
10020then :
10021  printf %s "(cached) " >&6
10022else $as_nop
10023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025
10026int
10027main (void)
10028{
10029
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034if ac_fn_c_try_link "$LINENO"
10035then :
10036
10037  lt_aix_libpath_sed='
10038      /Import File Strings/,/^$/ {
10039	  /^0/ {
10040	      s/^0  *\([^ ]*\) *$/\1/
10041	      p
10042	  }
10043      }'
10044  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10045  # Check for a 64-bit object if we didn't find anything.
10046  if test -z "$lt_cv_aix_libpath_"; then
10047    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10048  fi
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.beam \
10051    conftest$ac_exeext conftest.$ac_ext
10052  if test -z "$lt_cv_aix_libpath_"; then
10053    lt_cv_aix_libpath_=/usr/lib:/lib
10054  fi
10055
10056fi
10057
10058  aix_libpath=$lt_cv_aix_libpath_
10059fi
10060
10061        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10062        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
10063      else
10064	if test ia64 = "$host_cpu"; then
10065	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10066	  allow_undefined_flag="-z nodefs"
10067	  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"
10068	else
10069	 # Determine the default libpath from the value encoded in an
10070	 # empty executable.
10071	 if test set = "${lt_cv_aix_libpath+set}"; then
10072  aix_libpath=$lt_cv_aix_libpath
10073else
10074  if test ${lt_cv_aix_libpath_+y}
10075then :
10076  printf %s "(cached) " >&6
10077else $as_nop
10078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079/* end confdefs.h.  */
10080
10081int
10082main (void)
10083{
10084
10085  ;
10086  return 0;
10087}
10088_ACEOF
10089if ac_fn_c_try_link "$LINENO"
10090then :
10091
10092  lt_aix_libpath_sed='
10093      /Import File Strings/,/^$/ {
10094	  /^0/ {
10095	      s/^0  *\([^ ]*\) *$/\1/
10096	      p
10097	  }
10098      }'
10099  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10100  # Check for a 64-bit object if we didn't find anything.
10101  if test -z "$lt_cv_aix_libpath_"; then
10102    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10103  fi
10104fi
10105rm -f core conftest.err conftest.$ac_objext conftest.beam \
10106    conftest$ac_exeext conftest.$ac_ext
10107  if test -z "$lt_cv_aix_libpath_"; then
10108    lt_cv_aix_libpath_=/usr/lib:/lib
10109  fi
10110
10111fi
10112
10113  aix_libpath=$lt_cv_aix_libpath_
10114fi
10115
10116	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10117	  # Warning - without using the other run time loading flags,
10118	  # -berok will link without error, but may produce a broken library.
10119	  no_undefined_flag=' $wl-bernotok'
10120	  allow_undefined_flag=' $wl-berok'
10121	  if test yes = "$with_gnu_ld"; then
10122	    # We only use this code for GNU lds that support --whole-archive.
10123	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10124	  else
10125	    # Exported symbols can be pulled into shared objects from archives
10126	    whole_archive_flag_spec='$convenience'
10127	  fi
10128	  archive_cmds_need_lc=yes
10129	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10130	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10131	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10132	  if test svr4 != "$with_aix_soname"; then
10133	    # This is similar to how AIX traditionally builds its shared libraries.
10134	    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'
10135	  fi
10136	  if test aix != "$with_aix_soname"; then
10137	    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'
10138	  else
10139	    # used by -dlpreopen to get the symbols
10140	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10141	  fi
10142	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10143	fi
10144      fi
10145      ;;
10146
10147    amigaos*)
10148      case $host_cpu in
10149      powerpc)
10150            # see comment about AmigaOS4 .so support
10151            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10152            archive_expsym_cmds=''
10153        ;;
10154      m68k)
10155            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)'
10156            hardcode_libdir_flag_spec='-L$libdir'
10157            hardcode_minus_L=yes
10158        ;;
10159      esac
10160      ;;
10161
10162    bsdi[45]*)
10163      export_dynamic_flag_spec=-rdynamic
10164      ;;
10165
10166    cygwin* | mingw* | pw32* | cegcc*)
10167      # When not using gcc, we currently assume that we are using
10168      # Microsoft Visual C++.
10169      # hardcode_libdir_flag_spec is actually meaningless, as there is
10170      # no search path for DLLs.
10171      case $cc_basename in
10172      cl*)
10173	# Native MSVC
10174	hardcode_libdir_flag_spec=' '
10175	allow_undefined_flag=unsupported
10176	always_export_symbols=yes
10177	file_list_spec='@'
10178	# Tell ltmain to make .lib files, not .a files.
10179	libext=lib
10180	# Tell ltmain to make .dll files, not .so files.
10181	shrext_cmds=.dll
10182	# FIXME: Setting linknames here is a bad hack.
10183	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10184	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10185            cp "$export_symbols" "$output_objdir/$soname.def";
10186            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10187          else
10188            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10189          fi~
10190          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10191          linknames='
10192	# The linker will not automatically build a static lib if we build a DLL.
10193	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10194	enable_shared_with_static_runtimes=yes
10195	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10196	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10197	# Don't use ranlib
10198	old_postinstall_cmds='chmod 644 $oldlib'
10199	postlink_cmds='lt_outputfile="@OUTPUT@"~
10200          lt_tool_outputfile="@TOOL_OUTPUT@"~
10201          case $lt_outputfile in
10202            *.exe|*.EXE) ;;
10203            *)
10204              lt_outputfile=$lt_outputfile.exe
10205              lt_tool_outputfile=$lt_tool_outputfile.exe
10206              ;;
10207          esac~
10208          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10209            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10210            $RM "$lt_outputfile.manifest";
10211          fi'
10212	;;
10213      *)
10214	# Assume MSVC wrapper
10215	hardcode_libdir_flag_spec=' '
10216	allow_undefined_flag=unsupported
10217	# Tell ltmain to make .lib files, not .a files.
10218	libext=lib
10219	# Tell ltmain to make .dll files, not .so files.
10220	shrext_cmds=.dll
10221	# FIXME: Setting linknames here is a bad hack.
10222	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10223	# The linker will automatically build a .lib file if we build a DLL.
10224	old_archive_from_new_cmds='true'
10225	# FIXME: Should let the user specify the lib program.
10226	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10227	enable_shared_with_static_runtimes=yes
10228	;;
10229      esac
10230      ;;
10231
10232    darwin* | rhapsody*)
10233
10234
10235  archive_cmds_need_lc=no
10236  hardcode_direct=no
10237  hardcode_automatic=yes
10238  hardcode_shlibpath_var=unsupported
10239  if test yes = "$lt_cv_ld_force_load"; then
10240    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\"`'
10241
10242  else
10243    whole_archive_flag_spec=''
10244  fi
10245  link_all_deplibs=yes
10246  allow_undefined_flag=$_lt_dar_allow_undefined
10247  case $cc_basename in
10248     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10249     *) _lt_dar_can_shared=$GCC ;;
10250  esac
10251  if test yes = "$_lt_dar_can_shared"; then
10252    output_verbose_link_cmd=func_echo_all
10253    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10254    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10255    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"
10256    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"
10257
10258  else
10259  ld_shlibs=no
10260  fi
10261
10262      ;;
10263
10264    dgux*)
10265      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266      hardcode_libdir_flag_spec='-L$libdir'
10267      hardcode_shlibpath_var=no
10268      ;;
10269
10270    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10271    # support.  Future versions do this automatically, but an explicit c++rt0.o
10272    # does not break anything, and helps significantly (at the cost of a little
10273    # extra space).
10274    freebsd2.2*)
10275      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10276      hardcode_libdir_flag_spec='-R$libdir'
10277      hardcode_direct=yes
10278      hardcode_shlibpath_var=no
10279      ;;
10280
10281    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10282    freebsd2.*)
10283      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10284      hardcode_direct=yes
10285      hardcode_minus_L=yes
10286      hardcode_shlibpath_var=no
10287      ;;
10288
10289    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10290    freebsd* | dragonfly*)
10291      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10292      hardcode_libdir_flag_spec='-R$libdir'
10293      hardcode_direct=yes
10294      hardcode_shlibpath_var=no
10295      ;;
10296
10297    hpux9*)
10298      if test yes = "$GCC"; then
10299	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'
10300      else
10301	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'
10302      fi
10303      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10304      hardcode_libdir_separator=:
10305      hardcode_direct=yes
10306
10307      # hardcode_minus_L: Not really in the search PATH,
10308      # but as the default location of the library.
10309      hardcode_minus_L=yes
10310      export_dynamic_flag_spec='$wl-E'
10311      ;;
10312
10313    hpux10*)
10314      if test yes,no = "$GCC,$with_gnu_ld"; then
10315	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10316      else
10317	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10318      fi
10319      if test no = "$with_gnu_ld"; then
10320	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10321	hardcode_libdir_separator=:
10322	hardcode_direct=yes
10323	hardcode_direct_absolute=yes
10324	export_dynamic_flag_spec='$wl-E'
10325	# hardcode_minus_L: Not really in the search PATH,
10326	# but as the default location of the library.
10327	hardcode_minus_L=yes
10328      fi
10329      ;;
10330
10331    hpux11*)
10332      if test yes,no = "$GCC,$with_gnu_ld"; then
10333	case $host_cpu in
10334	hppa*64*)
10335	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10336	  ;;
10337	ia64*)
10338	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10339	  ;;
10340	*)
10341	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10342	  ;;
10343	esac
10344      else
10345	case $host_cpu in
10346	hppa*64*)
10347	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10348	  ;;
10349	ia64*)
10350	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10351	  ;;
10352	*)
10353
10354	  # Older versions of the 11.00 compiler do not understand -b yet
10355	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10356	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10357printf %s "checking if $CC understands -b... " >&6; }
10358if test ${lt_cv_prog_compiler__b+y}
10359then :
10360  printf %s "(cached) " >&6
10361else $as_nop
10362  lt_cv_prog_compiler__b=no
10363   save_LDFLAGS=$LDFLAGS
10364   LDFLAGS="$LDFLAGS -b"
10365   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10366   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10367     # The linker can only warn and ignore the option if not recognized
10368     # So say no if there are warnings
10369     if test -s conftest.err; then
10370       # Append any errors to the config.log.
10371       cat conftest.err 1>&5
10372       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10373       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10374       if diff conftest.exp conftest.er2 >/dev/null; then
10375         lt_cv_prog_compiler__b=yes
10376       fi
10377     else
10378       lt_cv_prog_compiler__b=yes
10379     fi
10380   fi
10381   $RM -r conftest*
10382   LDFLAGS=$save_LDFLAGS
10383
10384fi
10385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10386printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10387
10388if test yes = "$lt_cv_prog_compiler__b"; then
10389    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10390else
10391    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10392fi
10393
10394	  ;;
10395	esac
10396      fi
10397      if test no = "$with_gnu_ld"; then
10398	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10399	hardcode_libdir_separator=:
10400
10401	case $host_cpu in
10402	hppa*64*|ia64*)
10403	  hardcode_direct=no
10404	  hardcode_shlibpath_var=no
10405	  ;;
10406	*)
10407	  hardcode_direct=yes
10408	  hardcode_direct_absolute=yes
10409	  export_dynamic_flag_spec='$wl-E'
10410
10411	  # hardcode_minus_L: Not really in the search PATH,
10412	  # but as the default location of the library.
10413	  hardcode_minus_L=yes
10414	  ;;
10415	esac
10416      fi
10417      ;;
10418
10419    irix5* | irix6* | nonstopux*)
10420      if test yes = "$GCC"; then
10421	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'
10422	# Try to use the -exported_symbol ld option, if it does not
10423	# work, assume that -exports_file does not work either and
10424	# implicitly export all symbols.
10425	# This should be the same for all languages, so no per-tag cache variable.
10426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10427printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10428if test ${lt_cv_irix_exported_symbol+y}
10429then :
10430  printf %s "(cached) " >&6
10431else $as_nop
10432  save_LDFLAGS=$LDFLAGS
10433	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10434	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436int foo (void) { return 0; }
10437_ACEOF
10438if ac_fn_c_try_link "$LINENO"
10439then :
10440  lt_cv_irix_exported_symbol=yes
10441else $as_nop
10442  lt_cv_irix_exported_symbol=no
10443fi
10444rm -f core conftest.err conftest.$ac_objext conftest.beam \
10445    conftest$ac_exeext conftest.$ac_ext
10446           LDFLAGS=$save_LDFLAGS
10447fi
10448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10449printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10450	if test yes = "$lt_cv_irix_exported_symbol"; then
10451          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'
10452	fi
10453      else
10454	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'
10455	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'
10456      fi
10457      archive_cmds_need_lc='no'
10458      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10459      hardcode_libdir_separator=:
10460      inherit_rpath=yes
10461      link_all_deplibs=yes
10462      ;;
10463
10464    linux*)
10465      case $cc_basename in
10466      tcc*)
10467	# Fabrice Bellard et al's Tiny C Compiler
10468	ld_shlibs=yes
10469	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10470	;;
10471      esac
10472      ;;
10473
10474    netbsd*)
10475      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10476	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10477      else
10478	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10479      fi
10480      hardcode_libdir_flag_spec='-R$libdir'
10481      hardcode_direct=yes
10482      hardcode_shlibpath_var=no
10483      ;;
10484
10485    newsos6)
10486      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487      hardcode_direct=yes
10488      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10489      hardcode_libdir_separator=:
10490      hardcode_shlibpath_var=no
10491      ;;
10492
10493    *nto* | *qnx*)
10494      ;;
10495
10496    openbsd* | bitrig*)
10497      if test -f /usr/libexec/ld.so; then
10498	hardcode_direct=yes
10499	hardcode_shlibpath_var=no
10500	hardcode_direct_absolute=yes
10501	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10502	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10503	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10504	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10505	  export_dynamic_flag_spec='$wl-E'
10506	else
10507	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10508	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10509	fi
10510      else
10511	ld_shlibs=no
10512      fi
10513      ;;
10514
10515    os2*)
10516      hardcode_libdir_flag_spec='-L$libdir'
10517      hardcode_minus_L=yes
10518      allow_undefined_flag=unsupported
10519      shrext_cmds=.dll
10520      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10521	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10522	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10523	$ECHO EXPORTS >> $output_objdir/$libname.def~
10524	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10525	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10526	emximp -o $lib $output_objdir/$libname.def'
10527      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10528	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10529	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10530	$ECHO EXPORTS >> $output_objdir/$libname.def~
10531	prefix_cmds="$SED"~
10532	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10533	  prefix_cmds="$prefix_cmds -e 1d";
10534	fi~
10535	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10536	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10537	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10538	emximp -o $lib $output_objdir/$libname.def'
10539      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10540      enable_shared_with_static_runtimes=yes
10541      ;;
10542
10543    osf3*)
10544      if test yes = "$GCC"; then
10545	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10546	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'
10547      else
10548	allow_undefined_flag=' -expect_unresolved \*'
10549	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'
10550      fi
10551      archive_cmds_need_lc='no'
10552      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10553      hardcode_libdir_separator=:
10554      ;;
10555
10556    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10557      if test yes = "$GCC"; then
10558	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10559	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'
10560	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10561      else
10562	allow_undefined_flag=' -expect_unresolved \*'
10563	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'
10564	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~
10565          $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'
10566
10567	# Both c and cxx compiler support -rpath directly
10568	hardcode_libdir_flag_spec='-rpath $libdir'
10569      fi
10570      archive_cmds_need_lc='no'
10571      hardcode_libdir_separator=:
10572      ;;
10573
10574    solaris*)
10575      no_undefined_flag=' -z defs'
10576      if test yes = "$GCC"; then
10577	wlarc='$wl'
10578	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10579	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10580          $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'
10581      else
10582	case `$CC -V 2>&1` in
10583	*"Compilers 5.0"*)
10584	  wlarc=''
10585	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10586	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10587            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10588	  ;;
10589	*)
10590	  wlarc='$wl'
10591	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10592	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10593            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10594	  ;;
10595	esac
10596      fi
10597      hardcode_libdir_flag_spec='-R$libdir'
10598      hardcode_shlibpath_var=no
10599      case $host_os in
10600      solaris2.[0-5] | solaris2.[0-5].*) ;;
10601      *)
10602	# The compiler driver will combine and reorder linker options,
10603	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10604	# but is careful enough not to reorder.
10605	# Supported since Solaris 2.6 (maybe 2.5.1?)
10606	if test yes = "$GCC"; then
10607	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10608	else
10609	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10610	fi
10611	;;
10612      esac
10613      link_all_deplibs=yes
10614      ;;
10615
10616    sunos4*)
10617      if test sequent = "$host_vendor"; then
10618	# Use $CC to link under sequent, because it throws in some extra .o
10619	# files that make .init and .fini sections work.
10620	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10621      else
10622	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10623      fi
10624      hardcode_libdir_flag_spec='-L$libdir'
10625      hardcode_direct=yes
10626      hardcode_minus_L=yes
10627      hardcode_shlibpath_var=no
10628      ;;
10629
10630    sysv4)
10631      case $host_vendor in
10632	sni)
10633	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634	  hardcode_direct=yes # is this really true???
10635	;;
10636	siemens)
10637	  ## LD is ld it makes a PLAMLIB
10638	  ## CC just makes a GrossModule.
10639	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10640	  reload_cmds='$CC -r -o $output$reload_objs'
10641	  hardcode_direct=no
10642        ;;
10643	motorola)
10644	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10645	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10646	;;
10647      esac
10648      runpath_var='LD_RUN_PATH'
10649      hardcode_shlibpath_var=no
10650      ;;
10651
10652    sysv4.3*)
10653      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654      hardcode_shlibpath_var=no
10655      export_dynamic_flag_spec='-Bexport'
10656      ;;
10657
10658    sysv4*MP*)
10659      if test -d /usr/nec; then
10660	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661	hardcode_shlibpath_var=no
10662	runpath_var=LD_RUN_PATH
10663	hardcode_runpath_var=yes
10664	ld_shlibs=yes
10665      fi
10666      ;;
10667
10668    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10669      no_undefined_flag='$wl-z,text'
10670      archive_cmds_need_lc=no
10671      hardcode_shlibpath_var=no
10672      runpath_var='LD_RUN_PATH'
10673
10674      if test yes = "$GCC"; then
10675	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10677      else
10678	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680      fi
10681      ;;
10682
10683    sysv5* | sco3.2v5* | sco5v6*)
10684      # Note: We CANNOT use -z defs as we might desire, because we do not
10685      # link with -lc, and that would cause any symbols used from libc to
10686      # always be unresolved, which means just about no library would
10687      # ever link correctly.  If we're not using GNU ld we use -z text
10688      # though, which does catch some bad symbols but isn't as heavy-handed
10689      # as -z defs.
10690      no_undefined_flag='$wl-z,text'
10691      allow_undefined_flag='$wl-z,nodefs'
10692      archive_cmds_need_lc=no
10693      hardcode_shlibpath_var=no
10694      hardcode_libdir_flag_spec='$wl-R,$libdir'
10695      hardcode_libdir_separator=':'
10696      link_all_deplibs=yes
10697      export_dynamic_flag_spec='$wl-Bexport'
10698      runpath_var='LD_RUN_PATH'
10699
10700      if test yes = "$GCC"; then
10701	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10702	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703      else
10704	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10706      fi
10707      ;;
10708
10709    uts4*)
10710      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711      hardcode_libdir_flag_spec='-L$libdir'
10712      hardcode_shlibpath_var=no
10713      ;;
10714
10715    *)
10716      ld_shlibs=no
10717      ;;
10718    esac
10719
10720    if test sni = "$host_vendor"; then
10721      case $host in
10722      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10723	export_dynamic_flag_spec='$wl-Blargedynsym'
10724	;;
10725      esac
10726    fi
10727  fi
10728
10729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10730printf "%s\n" "$ld_shlibs" >&6; }
10731test no = "$ld_shlibs" && can_build_shared=no
10732
10733with_gnu_ld=$with_gnu_ld
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749#
10750# Do we need to explicitly link libc?
10751#
10752case "x$archive_cmds_need_lc" in
10753x|xyes)
10754  # Assume -lc should be added
10755  archive_cmds_need_lc=yes
10756
10757  if test yes,yes = "$GCC,$enable_shared"; then
10758    case $archive_cmds in
10759    *'~'*)
10760      # FIXME: we may have to deal with multi-command sequences.
10761      ;;
10762    '$CC '*)
10763      # Test whether the compiler implicitly links with -lc since on some
10764      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10765      # to ld, don't add -lc before -lgcc.
10766      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10767printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10768if test ${lt_cv_archive_cmds_need_lc+y}
10769then :
10770  printf %s "(cached) " >&6
10771else $as_nop
10772  $RM conftest*
10773	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10774
10775	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10776  (eval $ac_compile) 2>&5
10777  ac_status=$?
10778  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10779  test $ac_status = 0; } 2>conftest.err; then
10780	  soname=conftest
10781	  lib=conftest
10782	  libobjs=conftest.$ac_objext
10783	  deplibs=
10784	  wl=$lt_prog_compiler_wl
10785	  pic_flag=$lt_prog_compiler_pic
10786	  compiler_flags=-v
10787	  linker_flags=-v
10788	  verstring=
10789	  output_objdir=.
10790	  libname=conftest
10791	  lt_save_allow_undefined_flag=$allow_undefined_flag
10792	  allow_undefined_flag=
10793	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10794  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10795  ac_status=$?
10796  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10797  test $ac_status = 0; }
10798	  then
10799	    lt_cv_archive_cmds_need_lc=no
10800	  else
10801	    lt_cv_archive_cmds_need_lc=yes
10802	  fi
10803	  allow_undefined_flag=$lt_save_allow_undefined_flag
10804	else
10805	  cat conftest.err 1>&5
10806	fi
10807	$RM conftest*
10808
10809fi
10810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10811printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10812      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10813      ;;
10814    esac
10815  fi
10816  ;;
10817esac
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10971printf %s "checking dynamic linker characteristics... " >&6; }
10972
10973if test yes = "$GCC"; then
10974  case $host_os in
10975    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10976    *) lt_awk_arg='/^libraries:/' ;;
10977  esac
10978  case $host_os in
10979    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10980    *) lt_sed_strip_eq='s|=/|/|g' ;;
10981  esac
10982  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10983  case $lt_search_path_spec in
10984  *\;*)
10985    # if the path contains ";" then we assume it to be the separator
10986    # otherwise default to the standard path separator (i.e. ":") - it is
10987    # assumed that no part of a normal pathname contains ";" but that should
10988    # okay in the real world where ";" in dirpaths is itself problematic.
10989    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10990    ;;
10991  *)
10992    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10993    ;;
10994  esac
10995  # Ok, now we have the path, separated by spaces, we can step through it
10996  # and add multilib dir if necessary...
10997  lt_tmp_lt_search_path_spec=
10998  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10999  # ...but if some path component already ends with the multilib dir we assume
11000  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11001  case "$lt_multi_os_dir; $lt_search_path_spec " in
11002  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11003    lt_multi_os_dir=
11004    ;;
11005  esac
11006  for lt_sys_path in $lt_search_path_spec; do
11007    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11008      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11009    elif test -n "$lt_multi_os_dir"; then
11010      test -d "$lt_sys_path" && \
11011	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11012    fi
11013  done
11014  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11015BEGIN {RS = " "; FS = "/|\n";} {
11016  lt_foo = "";
11017  lt_count = 0;
11018  for (lt_i = NF; lt_i > 0; lt_i--) {
11019    if ($lt_i != "" && $lt_i != ".") {
11020      if ($lt_i == "..") {
11021        lt_count++;
11022      } else {
11023        if (lt_count == 0) {
11024          lt_foo = "/" $lt_i lt_foo;
11025        } else {
11026          lt_count--;
11027        }
11028      }
11029    }
11030  }
11031  if (lt_foo != "") { lt_freq[lt_foo]++; }
11032  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11033}'`
11034  # AWK program above erroneously prepends '/' to C:/dos/paths
11035  # for these hosts.
11036  case $host_os in
11037    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11038      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11039  esac
11040  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11041else
11042  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11043fi
11044library_names_spec=
11045libname_spec='lib$name'
11046soname_spec=
11047shrext_cmds=.so
11048postinstall_cmds=
11049postuninstall_cmds=
11050finish_cmds=
11051finish_eval=
11052shlibpath_var=
11053shlibpath_overrides_runpath=unknown
11054version_type=none
11055dynamic_linker="$host_os ld.so"
11056sys_lib_dlsearch_path_spec="/lib /usr/lib"
11057need_lib_prefix=unknown
11058hardcode_into_libs=no
11059
11060# when you set need_version to no, make sure it does not cause -set_version
11061# flags to be left without arguments
11062need_version=unknown
11063
11064
11065
11066case $host_os in
11067aix3*)
11068  version_type=linux # correct to gnu/linux during the next big refactor
11069  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11070  shlibpath_var=LIBPATH
11071
11072  # AIX 3 has no versioning support, so we append a major version to the name.
11073  soname_spec='$libname$release$shared_ext$major'
11074  ;;
11075
11076aix[4-9]*)
11077  version_type=linux # correct to gnu/linux during the next big refactor
11078  need_lib_prefix=no
11079  need_version=no
11080  hardcode_into_libs=yes
11081  if test ia64 = "$host_cpu"; then
11082    # AIX 5 supports IA64
11083    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11084    shlibpath_var=LD_LIBRARY_PATH
11085  else
11086    # With GCC up to 2.95.x, collect2 would create an import file
11087    # for dependence libraries.  The import file would start with
11088    # the line '#! .'.  This would cause the generated library to
11089    # depend on '.', always an invalid library.  This was fixed in
11090    # development snapshots of GCC prior to 3.0.
11091    case $host_os in
11092      aix4 | aix4.[01] | aix4.[01].*)
11093      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11094	   echo ' yes '
11095	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11096	:
11097      else
11098	can_build_shared=no
11099      fi
11100      ;;
11101    esac
11102    # Using Import Files as archive members, it is possible to support
11103    # filename-based versioning of shared library archives on AIX. While
11104    # this would work for both with and without runtime linking, it will
11105    # prevent static linking of such archives. So we do filename-based
11106    # shared library versioning with .so extension only, which is used
11107    # when both runtime linking and shared linking is enabled.
11108    # Unfortunately, runtime linking may impact performance, so we do
11109    # not want this to be the default eventually. Also, we use the
11110    # versioned .so libs for executables only if there is the -brtl
11111    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11112    # To allow for filename-based versioning support, we need to create
11113    # libNAME.so.V as an archive file, containing:
11114    # *) an Import File, referring to the versioned filename of the
11115    #    archive as well as the shared archive member, telling the
11116    #    bitwidth (32 or 64) of that shared object, and providing the
11117    #    list of exported symbols of that shared object, eventually
11118    #    decorated with the 'weak' keyword
11119    # *) the shared object with the F_LOADONLY flag set, to really avoid
11120    #    it being seen by the linker.
11121    # At run time we better use the real file rather than another symlink,
11122    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11123
11124    case $with_aix_soname,$aix_use_runtimelinking in
11125    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11126    # soname into executable. Probably we can add versioning support to
11127    # collect2, so additional links can be useful in future.
11128    aix,yes) # traditional libtool
11129      dynamic_linker='AIX unversionable lib.so'
11130      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11131      # instead of lib<name>.a to let people know that these are not
11132      # typical AIX shared libraries.
11133      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134      ;;
11135    aix,no) # traditional AIX only
11136      dynamic_linker='AIX lib.a(lib.so.V)'
11137      # We preserve .a as extension for shared libraries through AIX4.2
11138      # and later when we are not doing run time linking.
11139      library_names_spec='$libname$release.a $libname.a'
11140      soname_spec='$libname$release$shared_ext$major'
11141      ;;
11142    svr4,*) # full svr4 only
11143      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11144      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11145      # We do not specify a path in Import Files, so LIBPATH fires.
11146      shlibpath_overrides_runpath=yes
11147      ;;
11148    *,yes) # both, prefer svr4
11149      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11150      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11151      # unpreferred sharedlib libNAME.a needs extra handling
11152      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"'
11153      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"'
11154      # We do not specify a path in Import Files, so LIBPATH fires.
11155      shlibpath_overrides_runpath=yes
11156      ;;
11157    *,no) # both, prefer aix
11158      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11159      library_names_spec='$libname$release.a $libname.a'
11160      soname_spec='$libname$release$shared_ext$major'
11161      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11162      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)'
11163      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"'
11164      ;;
11165    esac
11166    shlibpath_var=LIBPATH
11167  fi
11168  ;;
11169
11170amigaos*)
11171  case $host_cpu in
11172  powerpc)
11173    # Since July 2007 AmigaOS4 officially supports .so libraries.
11174    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11175    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176    ;;
11177  m68k)
11178    library_names_spec='$libname.ixlibrary $libname.a'
11179    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11180    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'
11181    ;;
11182  esac
11183  ;;
11184
11185beos*)
11186  library_names_spec='$libname$shared_ext'
11187  dynamic_linker="$host_os ld.so"
11188  shlibpath_var=LIBRARY_PATH
11189  ;;
11190
11191bsdi[45]*)
11192  version_type=linux # correct to gnu/linux during the next big refactor
11193  need_version=no
11194  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195  soname_spec='$libname$release$shared_ext$major'
11196  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11197  shlibpath_var=LD_LIBRARY_PATH
11198  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11199  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11200  # the default ld.so.conf also contains /usr/contrib/lib and
11201  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11202  # libtool to hard-code these into programs
11203  ;;
11204
11205cygwin* | mingw* | pw32* | cegcc*)
11206  version_type=windows
11207  shrext_cmds=.dll
11208  need_version=no
11209  need_lib_prefix=no
11210
11211  case $GCC,$cc_basename in
11212  yes,*)
11213    # gcc
11214    library_names_spec='$libname.dll.a'
11215    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11216    postinstall_cmds='base_file=`basename \$file`~
11217      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11218      dldir=$destdir/`dirname \$dlpath`~
11219      test -d \$dldir || mkdir -p \$dldir~
11220      $install_prog $dir/$dlname \$dldir/$dlname~
11221      chmod a+x \$dldir/$dlname~
11222      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11223        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11224      fi'
11225    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226      dlpath=$dir/\$dldll~
11227       $RM \$dlpath'
11228    shlibpath_overrides_runpath=yes
11229
11230    case $host_os in
11231    cygwin*)
11232      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11233      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11234
11235      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11236      ;;
11237    mingw* | cegcc*)
11238      # MinGW DLLs use traditional 'lib' prefix
11239      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11240      ;;
11241    pw32*)
11242      # pw32 DLLs use 'pw' prefix rather than 'lib'
11243      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11244      ;;
11245    esac
11246    dynamic_linker='Win32 ld.exe'
11247    ;;
11248
11249  *,cl*)
11250    # Native MSVC
11251    libname_spec='$name'
11252    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11253    library_names_spec='$libname.dll.lib'
11254
11255    case $build_os in
11256    mingw*)
11257      sys_lib_search_path_spec=
11258      lt_save_ifs=$IFS
11259      IFS=';'
11260      for lt_path in $LIB
11261      do
11262        IFS=$lt_save_ifs
11263        # Let DOS variable expansion print the short 8.3 style file name.
11264        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11265        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11266      done
11267      IFS=$lt_save_ifs
11268      # Convert to MSYS style.
11269      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11270      ;;
11271    cygwin*)
11272      # Convert to unix form, then to dos form, then back to unix form
11273      # but this time dos style (no spaces!) so that the unix form looks
11274      # like /cygdrive/c/PROGRA~1:/cygdr...
11275      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11276      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11277      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11278      ;;
11279    *)
11280      sys_lib_search_path_spec=$LIB
11281      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11282        # It is most probably a Windows format PATH.
11283        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11284      else
11285        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11286      fi
11287      # FIXME: find the short name or the path components, as spaces are
11288      # common. (e.g. "Program Files" -> "PROGRA~1")
11289      ;;
11290    esac
11291
11292    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11293    postinstall_cmds='base_file=`basename \$file`~
11294      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11295      dldir=$destdir/`dirname \$dlpath`~
11296      test -d \$dldir || mkdir -p \$dldir~
11297      $install_prog $dir/$dlname \$dldir/$dlname'
11298    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11299      dlpath=$dir/\$dldll~
11300       $RM \$dlpath'
11301    shlibpath_overrides_runpath=yes
11302    dynamic_linker='Win32 link.exe'
11303    ;;
11304
11305  *)
11306    # Assume MSVC wrapper
11307    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11308    dynamic_linker='Win32 ld.exe'
11309    ;;
11310  esac
11311  # FIXME: first we should search . and the directory the executable is in
11312  shlibpath_var=PATH
11313  ;;
11314
11315darwin* | rhapsody*)
11316  dynamic_linker="$host_os dyld"
11317  version_type=darwin
11318  need_lib_prefix=no
11319  need_version=no
11320  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11321  soname_spec='$libname$release$major$shared_ext'
11322  shlibpath_overrides_runpath=yes
11323  shlibpath_var=DYLD_LIBRARY_PATH
11324  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11325
11326  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11327  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11328  ;;
11329
11330dgux*)
11331  version_type=linux # correct to gnu/linux during the next big refactor
11332  need_lib_prefix=no
11333  need_version=no
11334  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335  soname_spec='$libname$release$shared_ext$major'
11336  shlibpath_var=LD_LIBRARY_PATH
11337  ;;
11338
11339freebsd* | dragonfly*)
11340  # DragonFly does not have aout.  When/if they implement a new
11341  # versioning mechanism, adjust this.
11342  if test -x /usr/bin/objformat; then
11343    objformat=`/usr/bin/objformat`
11344  else
11345    case $host_os in
11346    freebsd[23].*) objformat=aout ;;
11347    *) objformat=elf ;;
11348    esac
11349  fi
11350  version_type=freebsd-$objformat
11351  case $version_type in
11352    freebsd-elf*)
11353      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11354      soname_spec='$libname$release$shared_ext$major'
11355      need_version=no
11356      need_lib_prefix=no
11357      ;;
11358    freebsd-*)
11359      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11360      need_version=yes
11361      ;;
11362  esac
11363  shlibpath_var=LD_LIBRARY_PATH
11364  case $host_os in
11365  freebsd2.*)
11366    shlibpath_overrides_runpath=yes
11367    ;;
11368  freebsd3.[01]* | freebsdelf3.[01]*)
11369    shlibpath_overrides_runpath=yes
11370    hardcode_into_libs=yes
11371    ;;
11372  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11373  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11374    shlibpath_overrides_runpath=no
11375    hardcode_into_libs=yes
11376    ;;
11377  *) # from 4.6 on, and DragonFly
11378    shlibpath_overrides_runpath=yes
11379    hardcode_into_libs=yes
11380    ;;
11381  esac
11382  ;;
11383
11384haiku*)
11385  version_type=linux # correct to gnu/linux during the next big refactor
11386  need_lib_prefix=no
11387  need_version=no
11388  dynamic_linker="$host_os runtime_loader"
11389  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11390  soname_spec='$libname$release$shared_ext$major'
11391  shlibpath_var=LIBRARY_PATH
11392  shlibpath_overrides_runpath=no
11393  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11394  hardcode_into_libs=yes
11395  ;;
11396
11397hpux9* | hpux10* | hpux11*)
11398  # Give a soname corresponding to the major version so that dld.sl refuses to
11399  # link against other versions.
11400  version_type=sunos
11401  need_lib_prefix=no
11402  need_version=no
11403  case $host_cpu in
11404  ia64*)
11405    shrext_cmds='.so'
11406    hardcode_into_libs=yes
11407    dynamic_linker="$host_os dld.so"
11408    shlibpath_var=LD_LIBRARY_PATH
11409    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11410    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411    soname_spec='$libname$release$shared_ext$major'
11412    if test 32 = "$HPUX_IA64_MODE"; then
11413      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11414      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11415    else
11416      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11417      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11418    fi
11419    ;;
11420  hppa*64*)
11421    shrext_cmds='.sl'
11422    hardcode_into_libs=yes
11423    dynamic_linker="$host_os dld.sl"
11424    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11425    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11426    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427    soname_spec='$libname$release$shared_ext$major'
11428    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11429    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11430    ;;
11431  *)
11432    shrext_cmds='.sl'
11433    dynamic_linker="$host_os dld.sl"
11434    shlibpath_var=SHLIB_PATH
11435    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11436    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437    soname_spec='$libname$release$shared_ext$major'
11438    ;;
11439  esac
11440  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11441  postinstall_cmds='chmod 555 $lib'
11442  # or fails outright, so override atomically:
11443  install_override_mode=555
11444  ;;
11445
11446interix[3-9]*)
11447  version_type=linux # correct to gnu/linux during the next big refactor
11448  need_lib_prefix=no
11449  need_version=no
11450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451  soname_spec='$libname$release$shared_ext$major'
11452  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11453  shlibpath_var=LD_LIBRARY_PATH
11454  shlibpath_overrides_runpath=no
11455  hardcode_into_libs=yes
11456  ;;
11457
11458irix5* | irix6* | nonstopux*)
11459  case $host_os in
11460    nonstopux*) version_type=nonstopux ;;
11461    *)
11462	if test yes = "$lt_cv_prog_gnu_ld"; then
11463		version_type=linux # correct to gnu/linux during the next big refactor
11464	else
11465		version_type=irix
11466	fi ;;
11467  esac
11468  need_lib_prefix=no
11469  need_version=no
11470  soname_spec='$libname$release$shared_ext$major'
11471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11472  case $host_os in
11473  irix5* | nonstopux*)
11474    libsuff= shlibsuff=
11475    ;;
11476  *)
11477    case $LD in # libtool.m4 will add one of these switches to LD
11478    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11479      libsuff= shlibsuff= libmagic=32-bit;;
11480    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11481      libsuff=32 shlibsuff=N32 libmagic=N32;;
11482    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11483      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11484    *) libsuff= shlibsuff= libmagic=never-match;;
11485    esac
11486    ;;
11487  esac
11488  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11489  shlibpath_overrides_runpath=no
11490  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11491  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11492  hardcode_into_libs=yes
11493  ;;
11494
11495# No shared lib support for Linux oldld, aout, or coff.
11496linux*oldld* | linux*aout* | linux*coff*)
11497  dynamic_linker=no
11498  ;;
11499
11500linux*android*)
11501  version_type=none # Android doesn't support versioned libraries.
11502  need_lib_prefix=no
11503  need_version=no
11504  library_names_spec='$libname$release$shared_ext'
11505  soname_spec='$libname$release$shared_ext'
11506  finish_cmds=
11507  shlibpath_var=LD_LIBRARY_PATH
11508  shlibpath_overrides_runpath=yes
11509
11510  # This implies no fast_install, which is unacceptable.
11511  # Some rework will be needed to allow for fast_install
11512  # before this can be enabled.
11513  hardcode_into_libs=yes
11514
11515  dynamic_linker='Android linker'
11516  # Don't embed -rpath directories since the linker doesn't support them.
11517  hardcode_libdir_flag_spec='-L$libdir'
11518  ;;
11519
11520# This must be glibc/ELF.
11521linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11522  version_type=linux # correct to gnu/linux during the next big refactor
11523  need_lib_prefix=no
11524  need_version=no
11525  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526  soname_spec='$libname$release$shared_ext$major'
11527  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11528  shlibpath_var=LD_LIBRARY_PATH
11529  shlibpath_overrides_runpath=no
11530
11531  # Some binutils ld are patched to set DT_RUNPATH
11532  if test ${lt_cv_shlibpath_overrides_runpath+y}
11533then :
11534  printf %s "(cached) " >&6
11535else $as_nop
11536  lt_cv_shlibpath_overrides_runpath=no
11537    save_LDFLAGS=$LDFLAGS
11538    save_libdir=$libdir
11539    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11540	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11541    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542/* end confdefs.h.  */
11543
11544int
11545main (void)
11546{
11547
11548  ;
11549  return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_link "$LINENO"
11553then :
11554  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11555then :
11556  lt_cv_shlibpath_overrides_runpath=yes
11557fi
11558fi
11559rm -f core conftest.err conftest.$ac_objext conftest.beam \
11560    conftest$ac_exeext conftest.$ac_ext
11561    LDFLAGS=$save_LDFLAGS
11562    libdir=$save_libdir
11563
11564fi
11565
11566  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11567
11568  # This implies no fast_install, which is unacceptable.
11569  # Some rework will be needed to allow for fast_install
11570  # before this can be enabled.
11571  hardcode_into_libs=yes
11572
11573  # Ideally, we could use ldconfig to report *all* directores which are
11574  # searched for libraries, however this is still not possible.  Aside from not
11575  # being certain /sbin/ldconfig is available, command
11576  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11577  # even though it is searched at run-time.  Try to do the best guess by
11578  # appending ld.so.conf contents (and includes) to the search path.
11579  if test -f /etc/ld.so.conf; then
11580    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' ' '`
11581    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11582  fi
11583
11584  # We used to test for /lib/ld.so.1 and disable shared libraries on
11585  # powerpc, because MkLinux only supported shared libraries with the
11586  # GNU dynamic linker.  Since this was broken with cross compilers,
11587  # most powerpc-linux boxes support dynamic linking these days and
11588  # people can always --disable-shared, the test was removed, and we
11589  # assume the GNU/Linux dynamic linker is in use.
11590  dynamic_linker='GNU/Linux ld.so'
11591  ;;
11592
11593netbsd*)
11594  version_type=sunos
11595  need_lib_prefix=no
11596  need_version=no
11597  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11598    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11599    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11600    dynamic_linker='NetBSD (a.out) ld.so'
11601  else
11602    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603    soname_spec='$libname$release$shared_ext$major'
11604    dynamic_linker='NetBSD ld.elf_so'
11605  fi
11606  shlibpath_var=LD_LIBRARY_PATH
11607  shlibpath_overrides_runpath=yes
11608  hardcode_into_libs=yes
11609  ;;
11610
11611newsos6)
11612  version_type=linux # correct to gnu/linux during the next big refactor
11613  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11614  shlibpath_var=LD_LIBRARY_PATH
11615  shlibpath_overrides_runpath=yes
11616  ;;
11617
11618*nto* | *qnx*)
11619  version_type=qnx
11620  need_lib_prefix=no
11621  need_version=no
11622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623  soname_spec='$libname$release$shared_ext$major'
11624  shlibpath_var=LD_LIBRARY_PATH
11625  shlibpath_overrides_runpath=no
11626  hardcode_into_libs=yes
11627  dynamic_linker='ldqnx.so'
11628  ;;
11629
11630openbsd* | bitrig*)
11631  version_type=sunos
11632  sys_lib_dlsearch_path_spec=/usr/lib
11633  need_lib_prefix=no
11634  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11635    need_version=no
11636  else
11637    need_version=yes
11638  fi
11639  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11640  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11641  shlibpath_var=LD_LIBRARY_PATH
11642  shlibpath_overrides_runpath=yes
11643  ;;
11644
11645os2*)
11646  libname_spec='$name'
11647  version_type=windows
11648  shrext_cmds=.dll
11649  need_version=no
11650  need_lib_prefix=no
11651  # OS/2 can only load a DLL with a base name of 8 characters or less.
11652  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11653    v=$($ECHO $release$versuffix | tr -d .-);
11654    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11655    $ECHO $n$v`$shared_ext'
11656  library_names_spec='${libname}_dll.$libext'
11657  dynamic_linker='OS/2 ld.exe'
11658  shlibpath_var=BEGINLIBPATH
11659  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11660  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11661  postinstall_cmds='base_file=`basename \$file`~
11662    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11663    dldir=$destdir/`dirname \$dlpath`~
11664    test -d \$dldir || mkdir -p \$dldir~
11665    $install_prog $dir/$dlname \$dldir/$dlname~
11666    chmod a+x \$dldir/$dlname~
11667    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11668      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11669    fi'
11670  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11671    dlpath=$dir/\$dldll~
11672    $RM \$dlpath'
11673  ;;
11674
11675osf3* | osf4* | osf5*)
11676  version_type=osf
11677  need_lib_prefix=no
11678  need_version=no
11679  soname_spec='$libname$release$shared_ext$major'
11680  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11681  shlibpath_var=LD_LIBRARY_PATH
11682  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11683  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11684  ;;
11685
11686rdos*)
11687  dynamic_linker=no
11688  ;;
11689
11690solaris*)
11691  version_type=linux # correct to gnu/linux during the next big refactor
11692  need_lib_prefix=no
11693  need_version=no
11694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695  soname_spec='$libname$release$shared_ext$major'
11696  shlibpath_var=LD_LIBRARY_PATH
11697  shlibpath_overrides_runpath=yes
11698  hardcode_into_libs=yes
11699  # ldd complains unless libraries are executable
11700  postinstall_cmds='chmod +x $lib'
11701  ;;
11702
11703sunos4*)
11704  version_type=sunos
11705  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11706  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11707  shlibpath_var=LD_LIBRARY_PATH
11708  shlibpath_overrides_runpath=yes
11709  if test yes = "$with_gnu_ld"; then
11710    need_lib_prefix=no
11711  fi
11712  need_version=yes
11713  ;;
11714
11715sysv4 | sysv4.3*)
11716  version_type=linux # correct to gnu/linux during the next big refactor
11717  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11718  soname_spec='$libname$release$shared_ext$major'
11719  shlibpath_var=LD_LIBRARY_PATH
11720  case $host_vendor in
11721    sni)
11722      shlibpath_overrides_runpath=no
11723      need_lib_prefix=no
11724      runpath_var=LD_RUN_PATH
11725      ;;
11726    siemens)
11727      need_lib_prefix=no
11728      ;;
11729    motorola)
11730      need_lib_prefix=no
11731      need_version=no
11732      shlibpath_overrides_runpath=no
11733      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11734      ;;
11735  esac
11736  ;;
11737
11738sysv4*MP*)
11739  if test -d /usr/nec; then
11740    version_type=linux # correct to gnu/linux during the next big refactor
11741    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11742    soname_spec='$libname$shared_ext.$major'
11743    shlibpath_var=LD_LIBRARY_PATH
11744  fi
11745  ;;
11746
11747sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11748  version_type=sco
11749  need_lib_prefix=no
11750  need_version=no
11751  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11752  soname_spec='$libname$release$shared_ext$major'
11753  shlibpath_var=LD_LIBRARY_PATH
11754  shlibpath_overrides_runpath=yes
11755  hardcode_into_libs=yes
11756  if test yes = "$with_gnu_ld"; then
11757    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11758  else
11759    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11760    case $host_os in
11761      sco3.2v5*)
11762        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11763	;;
11764    esac
11765  fi
11766  sys_lib_dlsearch_path_spec='/usr/lib'
11767  ;;
11768
11769tpf*)
11770  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11771  version_type=linux # correct to gnu/linux during the next big refactor
11772  need_lib_prefix=no
11773  need_version=no
11774  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775  shlibpath_var=LD_LIBRARY_PATH
11776  shlibpath_overrides_runpath=no
11777  hardcode_into_libs=yes
11778  ;;
11779
11780uts4*)
11781  version_type=linux # correct to gnu/linux during the next big refactor
11782  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783  soname_spec='$libname$release$shared_ext$major'
11784  shlibpath_var=LD_LIBRARY_PATH
11785  ;;
11786
11787*)
11788  dynamic_linker=no
11789  ;;
11790esac
11791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11792printf "%s\n" "$dynamic_linker" >&6; }
11793test no = "$dynamic_linker" && can_build_shared=no
11794
11795variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11796if test yes = "$GCC"; then
11797  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11798fi
11799
11800if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11801  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11802fi
11803
11804if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11805  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11806fi
11807
11808# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11809configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11810
11811# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11812func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11813
11814# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11815configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11914printf %s "checking how to hardcode library paths into programs... " >&6; }
11915hardcode_action=
11916if test -n "$hardcode_libdir_flag_spec" ||
11917   test -n "$runpath_var" ||
11918   test yes = "$hardcode_automatic"; then
11919
11920  # We can hardcode non-existent directories.
11921  if test no != "$hardcode_direct" &&
11922     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11923     # have to relink, otherwise we might link with an installed library
11924     # when we should be linking with a yet-to-be-installed one
11925     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11926     test no != "$hardcode_minus_L"; then
11927    # Linking always hardcodes the temporary library directory.
11928    hardcode_action=relink
11929  else
11930    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11931    hardcode_action=immediate
11932  fi
11933else
11934  # We cannot hardcode anything, or else we can only hardcode existing
11935  # directories.
11936  hardcode_action=unsupported
11937fi
11938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11939printf "%s\n" "$hardcode_action" >&6; }
11940
11941if test relink = "$hardcode_action" ||
11942   test yes = "$inherit_rpath"; then
11943  # Fast installation is not supported
11944  enable_fast_install=no
11945elif test yes = "$shlibpath_overrides_runpath" ||
11946     test no = "$enable_shared"; then
11947  # Fast installation is not necessary
11948  enable_fast_install=needless
11949fi
11950
11951
11952
11953
11954
11955
11956  if test yes != "$enable_dlopen"; then
11957  enable_dlopen=unknown
11958  enable_dlopen_self=unknown
11959  enable_dlopen_self_static=unknown
11960else
11961  lt_cv_dlopen=no
11962  lt_cv_dlopen_libs=
11963
11964  case $host_os in
11965  beos*)
11966    lt_cv_dlopen=load_add_on
11967    lt_cv_dlopen_libs=
11968    lt_cv_dlopen_self=yes
11969    ;;
11970
11971  mingw* | pw32* | cegcc*)
11972    lt_cv_dlopen=LoadLibrary
11973    lt_cv_dlopen_libs=
11974    ;;
11975
11976  cygwin*)
11977    lt_cv_dlopen=dlopen
11978    lt_cv_dlopen_libs=
11979    ;;
11980
11981  darwin*)
11982    # if libdl is installed we need to link against it
11983    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11984printf %s "checking for dlopen in -ldl... " >&6; }
11985if test ${ac_cv_lib_dl_dlopen+y}
11986then :
11987  printf %s "(cached) " >&6
11988else $as_nop
11989  ac_check_lib_save_LIBS=$LIBS
11990LIBS="-ldl  $LIBS"
11991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993
11994/* Override any GCC internal prototype to avoid an error.
11995   Use char because int might match the return type of a GCC
11996   builtin and then its argument prototype would still apply.  */
11997char dlopen ();
11998int
11999main (void)
12000{
12001return dlopen ();
12002  ;
12003  return 0;
12004}
12005_ACEOF
12006if ac_fn_c_try_link "$LINENO"
12007then :
12008  ac_cv_lib_dl_dlopen=yes
12009else $as_nop
12010  ac_cv_lib_dl_dlopen=no
12011fi
12012rm -f core conftest.err conftest.$ac_objext conftest.beam \
12013    conftest$ac_exeext conftest.$ac_ext
12014LIBS=$ac_check_lib_save_LIBS
12015fi
12016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12017printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12018if test "x$ac_cv_lib_dl_dlopen" = xyes
12019then :
12020  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12021else $as_nop
12022
12023    lt_cv_dlopen=dyld
12024    lt_cv_dlopen_libs=
12025    lt_cv_dlopen_self=yes
12026
12027fi
12028
12029    ;;
12030
12031  tpf*)
12032    # Don't try to run any link tests for TPF.  We know it's impossible
12033    # because TPF is a cross-compiler, and we know how we open DSOs.
12034    lt_cv_dlopen=dlopen
12035    lt_cv_dlopen_libs=
12036    lt_cv_dlopen_self=no
12037    ;;
12038
12039  *)
12040    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12041if test "x$ac_cv_func_shl_load" = xyes
12042then :
12043  lt_cv_dlopen=shl_load
12044else $as_nop
12045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12046printf %s "checking for shl_load in -ldld... " >&6; }
12047if test ${ac_cv_lib_dld_shl_load+y}
12048then :
12049  printf %s "(cached) " >&6
12050else $as_nop
12051  ac_check_lib_save_LIBS=$LIBS
12052LIBS="-ldld  $LIBS"
12053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054/* end confdefs.h.  */
12055
12056/* Override any GCC internal prototype to avoid an error.
12057   Use char because int might match the return type of a GCC
12058   builtin and then its argument prototype would still apply.  */
12059char shl_load ();
12060int
12061main (void)
12062{
12063return shl_load ();
12064  ;
12065  return 0;
12066}
12067_ACEOF
12068if ac_fn_c_try_link "$LINENO"
12069then :
12070  ac_cv_lib_dld_shl_load=yes
12071else $as_nop
12072  ac_cv_lib_dld_shl_load=no
12073fi
12074rm -f core conftest.err conftest.$ac_objext conftest.beam \
12075    conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12079printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12080if test "x$ac_cv_lib_dld_shl_load" = xyes
12081then :
12082  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12083else $as_nop
12084  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12085if test "x$ac_cv_func_dlopen" = xyes
12086then :
12087  lt_cv_dlopen=dlopen
12088else $as_nop
12089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12090printf %s "checking for dlopen in -ldl... " >&6; }
12091if test ${ac_cv_lib_dl_dlopen+y}
12092then :
12093  printf %s "(cached) " >&6
12094else $as_nop
12095  ac_check_lib_save_LIBS=$LIBS
12096LIBS="-ldl  $LIBS"
12097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h.  */
12099
12100/* Override any GCC internal prototype to avoid an error.
12101   Use char because int might match the return type of a GCC
12102   builtin and then its argument prototype would still apply.  */
12103char dlopen ();
12104int
12105main (void)
12106{
12107return dlopen ();
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112if ac_fn_c_try_link "$LINENO"
12113then :
12114  ac_cv_lib_dl_dlopen=yes
12115else $as_nop
12116  ac_cv_lib_dl_dlopen=no
12117fi
12118rm -f core conftest.err conftest.$ac_objext conftest.beam \
12119    conftest$ac_exeext conftest.$ac_ext
12120LIBS=$ac_check_lib_save_LIBS
12121fi
12122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12123printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12124if test "x$ac_cv_lib_dl_dlopen" = xyes
12125then :
12126  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12127else $as_nop
12128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12129printf %s "checking for dlopen in -lsvld... " >&6; }
12130if test ${ac_cv_lib_svld_dlopen+y}
12131then :
12132  printf %s "(cached) " >&6
12133else $as_nop
12134  ac_check_lib_save_LIBS=$LIBS
12135LIBS="-lsvld  $LIBS"
12136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137/* end confdefs.h.  */
12138
12139/* Override any GCC internal prototype to avoid an error.
12140   Use char because int might match the return type of a GCC
12141   builtin and then its argument prototype would still apply.  */
12142char dlopen ();
12143int
12144main (void)
12145{
12146return dlopen ();
12147  ;
12148  return 0;
12149}
12150_ACEOF
12151if ac_fn_c_try_link "$LINENO"
12152then :
12153  ac_cv_lib_svld_dlopen=yes
12154else $as_nop
12155  ac_cv_lib_svld_dlopen=no
12156fi
12157rm -f core conftest.err conftest.$ac_objext conftest.beam \
12158    conftest$ac_exeext conftest.$ac_ext
12159LIBS=$ac_check_lib_save_LIBS
12160fi
12161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12162printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12163if test "x$ac_cv_lib_svld_dlopen" = xyes
12164then :
12165  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12166else $as_nop
12167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12168printf %s "checking for dld_link in -ldld... " >&6; }
12169if test ${ac_cv_lib_dld_dld_link+y}
12170then :
12171  printf %s "(cached) " >&6
12172else $as_nop
12173  ac_check_lib_save_LIBS=$LIBS
12174LIBS="-ldld  $LIBS"
12175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176/* end confdefs.h.  */
12177
12178/* Override any GCC internal prototype to avoid an error.
12179   Use char because int might match the return type of a GCC
12180   builtin and then its argument prototype would still apply.  */
12181char dld_link ();
12182int
12183main (void)
12184{
12185return dld_link ();
12186  ;
12187  return 0;
12188}
12189_ACEOF
12190if ac_fn_c_try_link "$LINENO"
12191then :
12192  ac_cv_lib_dld_dld_link=yes
12193else $as_nop
12194  ac_cv_lib_dld_dld_link=no
12195fi
12196rm -f core conftest.err conftest.$ac_objext conftest.beam \
12197    conftest$ac_exeext conftest.$ac_ext
12198LIBS=$ac_check_lib_save_LIBS
12199fi
12200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12201printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12202if test "x$ac_cv_lib_dld_dld_link" = xyes
12203then :
12204  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12205fi
12206
12207
12208fi
12209
12210
12211fi
12212
12213
12214fi
12215
12216
12217fi
12218
12219
12220fi
12221
12222    ;;
12223  esac
12224
12225  if test no = "$lt_cv_dlopen"; then
12226    enable_dlopen=no
12227  else
12228    enable_dlopen=yes
12229  fi
12230
12231  case $lt_cv_dlopen in
12232  dlopen)
12233    save_CPPFLAGS=$CPPFLAGS
12234    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12235
12236    save_LDFLAGS=$LDFLAGS
12237    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12238
12239    save_LIBS=$LIBS
12240    LIBS="$lt_cv_dlopen_libs $LIBS"
12241
12242    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12243printf %s "checking whether a program can dlopen itself... " >&6; }
12244if test ${lt_cv_dlopen_self+y}
12245then :
12246  printf %s "(cached) " >&6
12247else $as_nop
12248  	  if test yes = "$cross_compiling"; then :
12249  lt_cv_dlopen_self=cross
12250else
12251  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12252  lt_status=$lt_dlunknown
12253  cat > conftest.$ac_ext <<_LT_EOF
12254#line $LINENO "configure"
12255#include "confdefs.h"
12256
12257#if HAVE_DLFCN_H
12258#include <dlfcn.h>
12259#endif
12260
12261#include <stdio.h>
12262
12263#ifdef RTLD_GLOBAL
12264#  define LT_DLGLOBAL		RTLD_GLOBAL
12265#else
12266#  ifdef DL_GLOBAL
12267#    define LT_DLGLOBAL		DL_GLOBAL
12268#  else
12269#    define LT_DLGLOBAL		0
12270#  endif
12271#endif
12272
12273/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12274   find out it does not work in some platform. */
12275#ifndef LT_DLLAZY_OR_NOW
12276#  ifdef RTLD_LAZY
12277#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12278#  else
12279#    ifdef DL_LAZY
12280#      define LT_DLLAZY_OR_NOW		DL_LAZY
12281#    else
12282#      ifdef RTLD_NOW
12283#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12284#      else
12285#        ifdef DL_NOW
12286#          define LT_DLLAZY_OR_NOW	DL_NOW
12287#        else
12288#          define LT_DLLAZY_OR_NOW	0
12289#        endif
12290#      endif
12291#    endif
12292#  endif
12293#endif
12294
12295/* When -fvisibility=hidden is used, assume the code has been annotated
12296   correspondingly for the symbols needed.  */
12297#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12298int fnord () __attribute__((visibility("default")));
12299#endif
12300
12301int fnord () { return 42; }
12302int main ()
12303{
12304  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12305  int status = $lt_dlunknown;
12306
12307  if (self)
12308    {
12309      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12310      else
12311        {
12312	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12313          else puts (dlerror ());
12314	}
12315      /* dlclose (self); */
12316    }
12317  else
12318    puts (dlerror ());
12319
12320  return status;
12321}
12322_LT_EOF
12323  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12324  (eval $ac_link) 2>&5
12325  ac_status=$?
12326  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12327  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12328    (./conftest; exit; ) >&5 2>/dev/null
12329    lt_status=$?
12330    case x$lt_status in
12331      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12332      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12333      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12334    esac
12335  else :
12336    # compilation failed
12337    lt_cv_dlopen_self=no
12338  fi
12339fi
12340rm -fr conftest*
12341
12342
12343fi
12344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12345printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12346
12347    if test yes = "$lt_cv_dlopen_self"; then
12348      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12349      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12350printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12351if test ${lt_cv_dlopen_self_static+y}
12352then :
12353  printf %s "(cached) " >&6
12354else $as_nop
12355  	  if test yes = "$cross_compiling"; then :
12356  lt_cv_dlopen_self_static=cross
12357else
12358  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12359  lt_status=$lt_dlunknown
12360  cat > conftest.$ac_ext <<_LT_EOF
12361#line $LINENO "configure"
12362#include "confdefs.h"
12363
12364#if HAVE_DLFCN_H
12365#include <dlfcn.h>
12366#endif
12367
12368#include <stdio.h>
12369
12370#ifdef RTLD_GLOBAL
12371#  define LT_DLGLOBAL		RTLD_GLOBAL
12372#else
12373#  ifdef DL_GLOBAL
12374#    define LT_DLGLOBAL		DL_GLOBAL
12375#  else
12376#    define LT_DLGLOBAL		0
12377#  endif
12378#endif
12379
12380/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12381   find out it does not work in some platform. */
12382#ifndef LT_DLLAZY_OR_NOW
12383#  ifdef RTLD_LAZY
12384#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12385#  else
12386#    ifdef DL_LAZY
12387#      define LT_DLLAZY_OR_NOW		DL_LAZY
12388#    else
12389#      ifdef RTLD_NOW
12390#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12391#      else
12392#        ifdef DL_NOW
12393#          define LT_DLLAZY_OR_NOW	DL_NOW
12394#        else
12395#          define LT_DLLAZY_OR_NOW	0
12396#        endif
12397#      endif
12398#    endif
12399#  endif
12400#endif
12401
12402/* When -fvisibility=hidden is used, assume the code has been annotated
12403   correspondingly for the symbols needed.  */
12404#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12405int fnord () __attribute__((visibility("default")));
12406#endif
12407
12408int fnord () { return 42; }
12409int main ()
12410{
12411  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12412  int status = $lt_dlunknown;
12413
12414  if (self)
12415    {
12416      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12417      else
12418        {
12419	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12420          else puts (dlerror ());
12421	}
12422      /* dlclose (self); */
12423    }
12424  else
12425    puts (dlerror ());
12426
12427  return status;
12428}
12429_LT_EOF
12430  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12431  (eval $ac_link) 2>&5
12432  ac_status=$?
12433  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12435    (./conftest; exit; ) >&5 2>/dev/null
12436    lt_status=$?
12437    case x$lt_status in
12438      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12439      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12440      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12441    esac
12442  else :
12443    # compilation failed
12444    lt_cv_dlopen_self_static=no
12445  fi
12446fi
12447rm -fr conftest*
12448
12449
12450fi
12451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12452printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12453    fi
12454
12455    CPPFLAGS=$save_CPPFLAGS
12456    LDFLAGS=$save_LDFLAGS
12457    LIBS=$save_LIBS
12458    ;;
12459  esac
12460
12461  case $lt_cv_dlopen_self in
12462  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12463  *) enable_dlopen_self=unknown ;;
12464  esac
12465
12466  case $lt_cv_dlopen_self_static in
12467  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12468  *) enable_dlopen_self_static=unknown ;;
12469  esac
12470fi
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488striplib=
12489old_striplib=
12490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12491printf %s "checking whether stripping libraries is possible... " >&6; }
12492if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12493  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12494  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12496printf "%s\n" "yes" >&6; }
12497else
12498# FIXME - insert some real tests, host_os isn't really good enough
12499  case $host_os in
12500  darwin*)
12501    if test -n "$STRIP"; then
12502      striplib="$STRIP -x"
12503      old_striplib="$STRIP -S"
12504      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12505printf "%s\n" "yes" >&6; }
12506    else
12507      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508printf "%s\n" "no" >&6; }
12509    fi
12510    ;;
12511  *)
12512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513printf "%s\n" "no" >&6; }
12514    ;;
12515  esac
12516fi
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529  # Report what library types will actually be built
12530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12531printf %s "checking if libtool supports shared libraries... " >&6; }
12532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12533printf "%s\n" "$can_build_shared" >&6; }
12534
12535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12536printf %s "checking whether to build shared libraries... " >&6; }
12537  test no = "$can_build_shared" && enable_shared=no
12538
12539  # On AIX, shared libraries and static libraries use the same namespace, and
12540  # are all built from PIC.
12541  case $host_os in
12542  aix3*)
12543    test yes = "$enable_shared" && enable_static=no
12544    if test -n "$RANLIB"; then
12545      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12546      postinstall_cmds='$RANLIB $lib'
12547    fi
12548    ;;
12549
12550  aix[4-9]*)
12551    if test ia64 != "$host_cpu"; then
12552      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12553      yes,aix,yes) ;;			# shared object as lib.so file only
12554      yes,svr4,*) ;;			# shared object as lib.so archive member only
12555      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12556      esac
12557    fi
12558    ;;
12559  esac
12560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12561printf "%s\n" "$enable_shared" >&6; }
12562
12563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12564printf %s "checking whether to build static libraries... " >&6; }
12565  # Make sure either enable_shared or enable_static is yes.
12566  test yes = "$enable_shared" || enable_static=yes
12567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12568printf "%s\n" "$enable_static" >&6; }
12569
12570
12571
12572
12573fi
12574ac_ext=c
12575ac_cpp='$CPP $CPPFLAGS'
12576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12578ac_compiler_gnu=$ac_cv_c_compiler_gnu
12579
12580CC=$lt_save_CC
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596        ac_config_commands="$ac_config_commands libtool"
12597
12598
12599
12600
12601# Only expand once:
12602
12603
12604
12605
12606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12607printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12608    # Check whether --enable-maintainer-mode was given.
12609if test ${enable_maintainer_mode+y}
12610then :
12611  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12612else $as_nop
12613  USE_MAINTAINER_MODE=no
12614fi
12615
12616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12617printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12618   if test $USE_MAINTAINER_MODE = yes; then
12619  MAINTAINER_MODE_TRUE=
12620  MAINTAINER_MODE_FALSE='#'
12621else
12622  MAINTAINER_MODE_TRUE='#'
12623  MAINTAINER_MODE_FALSE=
12624fi
12625
12626  MAINT=$MAINTAINER_MODE_TRUE
12627
12628
12629ac_config_headers="$ac_config_headers src/iperf_config.h"
12630
12631
12632
12633
12634# Checks for tools: c compiler, ranlib (used for creating static libraries),
12635# symlinks and libtool
12636ac_ext=c
12637ac_cpp='$CPP $CPPFLAGS'
12638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12640ac_compiler_gnu=$ac_cv_c_compiler_gnu
12641if test -n "$ac_tool_prefix"; then
12642  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12643set dummy ${ac_tool_prefix}gcc; ac_word=$2
12644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645printf %s "checking for $ac_word... " >&6; }
12646if test ${ac_cv_prog_CC+y}
12647then :
12648  printf %s "(cached) " >&6
12649else $as_nop
12650  if test -n "$CC"; then
12651  ac_cv_prog_CC="$CC" # Let the user override the test.
12652else
12653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654for as_dir in $PATH
12655do
12656  IFS=$as_save_IFS
12657  case $as_dir in #(((
12658    '') as_dir=./ ;;
12659    */) ;;
12660    *) as_dir=$as_dir/ ;;
12661  esac
12662    for ac_exec_ext in '' $ac_executable_extensions; do
12663  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12664    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12665    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12666    break 2
12667  fi
12668done
12669  done
12670IFS=$as_save_IFS
12671
12672fi
12673fi
12674CC=$ac_cv_prog_CC
12675if test -n "$CC"; then
12676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12677printf "%s\n" "$CC" >&6; }
12678else
12679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680printf "%s\n" "no" >&6; }
12681fi
12682
12683
12684fi
12685if test -z "$ac_cv_prog_CC"; then
12686  ac_ct_CC=$CC
12687  # Extract the first word of "gcc", so it can be a program name with args.
12688set dummy gcc; ac_word=$2
12689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690printf %s "checking for $ac_word... " >&6; }
12691if test ${ac_cv_prog_ac_ct_CC+y}
12692then :
12693  printf %s "(cached) " >&6
12694else $as_nop
12695  if test -n "$ac_ct_CC"; then
12696  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12697else
12698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699for as_dir in $PATH
12700do
12701  IFS=$as_save_IFS
12702  case $as_dir in #(((
12703    '') as_dir=./ ;;
12704    */) ;;
12705    *) as_dir=$as_dir/ ;;
12706  esac
12707    for ac_exec_ext in '' $ac_executable_extensions; do
12708  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12709    ac_cv_prog_ac_ct_CC="gcc"
12710    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12711    break 2
12712  fi
12713done
12714  done
12715IFS=$as_save_IFS
12716
12717fi
12718fi
12719ac_ct_CC=$ac_cv_prog_ac_ct_CC
12720if test -n "$ac_ct_CC"; then
12721  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12722printf "%s\n" "$ac_ct_CC" >&6; }
12723else
12724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725printf "%s\n" "no" >&6; }
12726fi
12727
12728  if test "x$ac_ct_CC" = x; then
12729    CC=""
12730  else
12731    case $cross_compiling:$ac_tool_warned in
12732yes:)
12733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12734printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12735ac_tool_warned=yes ;;
12736esac
12737    CC=$ac_ct_CC
12738  fi
12739else
12740  CC="$ac_cv_prog_CC"
12741fi
12742
12743if test -z "$CC"; then
12744          if test -n "$ac_tool_prefix"; then
12745    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12746set dummy ${ac_tool_prefix}cc; ac_word=$2
12747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748printf %s "checking for $ac_word... " >&6; }
12749if test ${ac_cv_prog_CC+y}
12750then :
12751  printf %s "(cached) " >&6
12752else $as_nop
12753  if test -n "$CC"; then
12754  ac_cv_prog_CC="$CC" # Let the user override the test.
12755else
12756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757for as_dir in $PATH
12758do
12759  IFS=$as_save_IFS
12760  case $as_dir in #(((
12761    '') as_dir=./ ;;
12762    */) ;;
12763    *) as_dir=$as_dir/ ;;
12764  esac
12765    for ac_exec_ext in '' $ac_executable_extensions; do
12766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12767    ac_cv_prog_CC="${ac_tool_prefix}cc"
12768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12769    break 2
12770  fi
12771done
12772  done
12773IFS=$as_save_IFS
12774
12775fi
12776fi
12777CC=$ac_cv_prog_CC
12778if test -n "$CC"; then
12779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12780printf "%s\n" "$CC" >&6; }
12781else
12782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783printf "%s\n" "no" >&6; }
12784fi
12785
12786
12787  fi
12788fi
12789if test -z "$CC"; then
12790  # Extract the first word of "cc", so it can be a program name with args.
12791set dummy cc; ac_word=$2
12792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793printf %s "checking for $ac_word... " >&6; }
12794if test ${ac_cv_prog_CC+y}
12795then :
12796  printf %s "(cached) " >&6
12797else $as_nop
12798  if test -n "$CC"; then
12799  ac_cv_prog_CC="$CC" # Let the user override the test.
12800else
12801  ac_prog_rejected=no
12802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803for as_dir in $PATH
12804do
12805  IFS=$as_save_IFS
12806  case $as_dir in #(((
12807    '') as_dir=./ ;;
12808    */) ;;
12809    *) as_dir=$as_dir/ ;;
12810  esac
12811    for ac_exec_ext in '' $ac_executable_extensions; do
12812  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12813    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12814       ac_prog_rejected=yes
12815       continue
12816     fi
12817    ac_cv_prog_CC="cc"
12818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12819    break 2
12820  fi
12821done
12822  done
12823IFS=$as_save_IFS
12824
12825if test $ac_prog_rejected = yes; then
12826  # We found a bogon in the path, so make sure we never use it.
12827  set dummy $ac_cv_prog_CC
12828  shift
12829  if test $# != 0; then
12830    # We chose a different compiler from the bogus one.
12831    # However, it has the same basename, so the bogon will be chosen
12832    # first if we set CC to just the basename; use the full file name.
12833    shift
12834    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12835  fi
12836fi
12837fi
12838fi
12839CC=$ac_cv_prog_CC
12840if test -n "$CC"; then
12841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12842printf "%s\n" "$CC" >&6; }
12843else
12844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845printf "%s\n" "no" >&6; }
12846fi
12847
12848
12849fi
12850if test -z "$CC"; then
12851  if test -n "$ac_tool_prefix"; then
12852  for ac_prog in cl.exe
12853  do
12854    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12855set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857printf %s "checking for $ac_word... " >&6; }
12858if test ${ac_cv_prog_CC+y}
12859then :
12860  printf %s "(cached) " >&6
12861else $as_nop
12862  if test -n "$CC"; then
12863  ac_cv_prog_CC="$CC" # Let the user override the test.
12864else
12865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866for as_dir in $PATH
12867do
12868  IFS=$as_save_IFS
12869  case $as_dir in #(((
12870    '') as_dir=./ ;;
12871    */) ;;
12872    *) as_dir=$as_dir/ ;;
12873  esac
12874    for ac_exec_ext in '' $ac_executable_extensions; do
12875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12876    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12878    break 2
12879  fi
12880done
12881  done
12882IFS=$as_save_IFS
12883
12884fi
12885fi
12886CC=$ac_cv_prog_CC
12887if test -n "$CC"; then
12888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12889printf "%s\n" "$CC" >&6; }
12890else
12891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892printf "%s\n" "no" >&6; }
12893fi
12894
12895
12896    test -n "$CC" && break
12897  done
12898fi
12899if test -z "$CC"; then
12900  ac_ct_CC=$CC
12901  for ac_prog in cl.exe
12902do
12903  # Extract the first word of "$ac_prog", so it can be a program name with args.
12904set dummy $ac_prog; ac_word=$2
12905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906printf %s "checking for $ac_word... " >&6; }
12907if test ${ac_cv_prog_ac_ct_CC+y}
12908then :
12909  printf %s "(cached) " >&6
12910else $as_nop
12911  if test -n "$ac_ct_CC"; then
12912  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12913else
12914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915for as_dir in $PATH
12916do
12917  IFS=$as_save_IFS
12918  case $as_dir in #(((
12919    '') as_dir=./ ;;
12920    */) ;;
12921    *) as_dir=$as_dir/ ;;
12922  esac
12923    for ac_exec_ext in '' $ac_executable_extensions; do
12924  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12925    ac_cv_prog_ac_ct_CC="$ac_prog"
12926    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12927    break 2
12928  fi
12929done
12930  done
12931IFS=$as_save_IFS
12932
12933fi
12934fi
12935ac_ct_CC=$ac_cv_prog_ac_ct_CC
12936if test -n "$ac_ct_CC"; then
12937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12938printf "%s\n" "$ac_ct_CC" >&6; }
12939else
12940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941printf "%s\n" "no" >&6; }
12942fi
12943
12944
12945  test -n "$ac_ct_CC" && break
12946done
12947
12948  if test "x$ac_ct_CC" = x; then
12949    CC=""
12950  else
12951    case $cross_compiling:$ac_tool_warned in
12952yes:)
12953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12954printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12955ac_tool_warned=yes ;;
12956esac
12957    CC=$ac_ct_CC
12958  fi
12959fi
12960
12961fi
12962if test -z "$CC"; then
12963  if test -n "$ac_tool_prefix"; then
12964  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12965set dummy ${ac_tool_prefix}clang; ac_word=$2
12966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967printf %s "checking for $ac_word... " >&6; }
12968if test ${ac_cv_prog_CC+y}
12969then :
12970  printf %s "(cached) " >&6
12971else $as_nop
12972  if test -n "$CC"; then
12973  ac_cv_prog_CC="$CC" # Let the user override the test.
12974else
12975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976for as_dir in $PATH
12977do
12978  IFS=$as_save_IFS
12979  case $as_dir in #(((
12980    '') as_dir=./ ;;
12981    */) ;;
12982    *) as_dir=$as_dir/ ;;
12983  esac
12984    for ac_exec_ext in '' $ac_executable_extensions; do
12985  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12986    ac_cv_prog_CC="${ac_tool_prefix}clang"
12987    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12988    break 2
12989  fi
12990done
12991  done
12992IFS=$as_save_IFS
12993
12994fi
12995fi
12996CC=$ac_cv_prog_CC
12997if test -n "$CC"; then
12998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12999printf "%s\n" "$CC" >&6; }
13000else
13001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002printf "%s\n" "no" >&6; }
13003fi
13004
13005
13006fi
13007if test -z "$ac_cv_prog_CC"; then
13008  ac_ct_CC=$CC
13009  # Extract the first word of "clang", so it can be a program name with args.
13010set dummy clang; ac_word=$2
13011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012printf %s "checking for $ac_word... " >&6; }
13013if test ${ac_cv_prog_ac_ct_CC+y}
13014then :
13015  printf %s "(cached) " >&6
13016else $as_nop
13017  if test -n "$ac_ct_CC"; then
13018  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13019else
13020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021for as_dir in $PATH
13022do
13023  IFS=$as_save_IFS
13024  case $as_dir in #(((
13025    '') as_dir=./ ;;
13026    */) ;;
13027    *) as_dir=$as_dir/ ;;
13028  esac
13029    for ac_exec_ext in '' $ac_executable_extensions; do
13030  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13031    ac_cv_prog_ac_ct_CC="clang"
13032    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13033    break 2
13034  fi
13035done
13036  done
13037IFS=$as_save_IFS
13038
13039fi
13040fi
13041ac_ct_CC=$ac_cv_prog_ac_ct_CC
13042if test -n "$ac_ct_CC"; then
13043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13044printf "%s\n" "$ac_ct_CC" >&6; }
13045else
13046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047printf "%s\n" "no" >&6; }
13048fi
13049
13050  if test "x$ac_ct_CC" = x; then
13051    CC=""
13052  else
13053    case $cross_compiling:$ac_tool_warned in
13054yes:)
13055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13056printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13057ac_tool_warned=yes ;;
13058esac
13059    CC=$ac_ct_CC
13060  fi
13061else
13062  CC="$ac_cv_prog_CC"
13063fi
13064
13065fi
13066
13067
13068test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13069printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13070as_fn_error $? "no acceptable C compiler found in \$PATH
13071See \`config.log' for more details" "$LINENO" 5; }
13072
13073# Provide some information about the compiler.
13074printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13075set X $ac_compile
13076ac_compiler=$2
13077for ac_option in --version -v -V -qversion -version; do
13078  { { ac_try="$ac_compiler $ac_option >&5"
13079case "(($ac_try" in
13080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081  *) ac_try_echo=$ac_try;;
13082esac
13083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13084printf "%s\n" "$ac_try_echo"; } >&5
13085  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13086  ac_status=$?
13087  if test -s conftest.err; then
13088    sed '10a\
13089... rest of stderr output deleted ...
13090         10q' conftest.err >conftest.er1
13091    cat conftest.er1 >&5
13092  fi
13093  rm -f conftest.er1 conftest.err
13094  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095  test $ac_status = 0; }
13096done
13097
13098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13099printf %s "checking whether the compiler supports GNU C... " >&6; }
13100if test ${ac_cv_c_compiler_gnu+y}
13101then :
13102  printf %s "(cached) " >&6
13103else $as_nop
13104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h.  */
13106
13107int
13108main (void)
13109{
13110#ifndef __GNUC__
13111       choke me
13112#endif
13113
13114  ;
13115  return 0;
13116}
13117_ACEOF
13118if ac_fn_c_try_compile "$LINENO"
13119then :
13120  ac_compiler_gnu=yes
13121else $as_nop
13122  ac_compiler_gnu=no
13123fi
13124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13125ac_cv_c_compiler_gnu=$ac_compiler_gnu
13126
13127fi
13128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13129printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13130ac_compiler_gnu=$ac_cv_c_compiler_gnu
13131
13132if test $ac_compiler_gnu = yes; then
13133  GCC=yes
13134else
13135  GCC=
13136fi
13137ac_test_CFLAGS=${CFLAGS+y}
13138ac_save_CFLAGS=$CFLAGS
13139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13140printf %s "checking whether $CC accepts -g... " >&6; }
13141if test ${ac_cv_prog_cc_g+y}
13142then :
13143  printf %s "(cached) " >&6
13144else $as_nop
13145  ac_save_c_werror_flag=$ac_c_werror_flag
13146   ac_c_werror_flag=yes
13147   ac_cv_prog_cc_g=no
13148   CFLAGS="-g"
13149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h.  */
13151
13152int
13153main (void)
13154{
13155
13156  ;
13157  return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_compile "$LINENO"
13161then :
13162  ac_cv_prog_cc_g=yes
13163else $as_nop
13164  CFLAGS=""
13165      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166/* end confdefs.h.  */
13167
13168int
13169main (void)
13170{
13171
13172  ;
13173  return 0;
13174}
13175_ACEOF
13176if ac_fn_c_try_compile "$LINENO"
13177then :
13178
13179else $as_nop
13180  ac_c_werror_flag=$ac_save_c_werror_flag
13181	 CFLAGS="-g"
13182	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183/* end confdefs.h.  */
13184
13185int
13186main (void)
13187{
13188
13189  ;
13190  return 0;
13191}
13192_ACEOF
13193if ac_fn_c_try_compile "$LINENO"
13194then :
13195  ac_cv_prog_cc_g=yes
13196fi
13197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13198fi
13199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13200fi
13201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13202   ac_c_werror_flag=$ac_save_c_werror_flag
13203fi
13204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13205printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13206if test $ac_test_CFLAGS; then
13207  CFLAGS=$ac_save_CFLAGS
13208elif test $ac_cv_prog_cc_g = yes; then
13209  if test "$GCC" = yes; then
13210    CFLAGS="-g -O2"
13211  else
13212    CFLAGS="-g"
13213  fi
13214else
13215  if test "$GCC" = yes; then
13216    CFLAGS="-O2"
13217  else
13218    CFLAGS=
13219  fi
13220fi
13221ac_prog_cc_stdc=no
13222if test x$ac_prog_cc_stdc = xno
13223then :
13224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13225printf %s "checking for $CC option to enable C11 features... " >&6; }
13226if test ${ac_cv_prog_cc_c11+y}
13227then :
13228  printf %s "(cached) " >&6
13229else $as_nop
13230  ac_cv_prog_cc_c11=no
13231ac_save_CC=$CC
13232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233/* end confdefs.h.  */
13234$ac_c_conftest_c11_program
13235_ACEOF
13236for ac_arg in '' -std=gnu11
13237do
13238  CC="$ac_save_CC $ac_arg"
13239  if ac_fn_c_try_compile "$LINENO"
13240then :
13241  ac_cv_prog_cc_c11=$ac_arg
13242fi
13243rm -f core conftest.err conftest.$ac_objext conftest.beam
13244  test "x$ac_cv_prog_cc_c11" != "xno" && break
13245done
13246rm -f conftest.$ac_ext
13247CC=$ac_save_CC
13248fi
13249
13250if test "x$ac_cv_prog_cc_c11" = xno
13251then :
13252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13253printf "%s\n" "unsupported" >&6; }
13254else $as_nop
13255  if test "x$ac_cv_prog_cc_c11" = x
13256then :
13257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13258printf "%s\n" "none needed" >&6; }
13259else $as_nop
13260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13261printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13262     CC="$CC $ac_cv_prog_cc_c11"
13263fi
13264  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13265  ac_prog_cc_stdc=c11
13266fi
13267fi
13268if test x$ac_prog_cc_stdc = xno
13269then :
13270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13271printf %s "checking for $CC option to enable C99 features... " >&6; }
13272if test ${ac_cv_prog_cc_c99+y}
13273then :
13274  printf %s "(cached) " >&6
13275else $as_nop
13276  ac_cv_prog_cc_c99=no
13277ac_save_CC=$CC
13278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279/* end confdefs.h.  */
13280$ac_c_conftest_c99_program
13281_ACEOF
13282for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13283do
13284  CC="$ac_save_CC $ac_arg"
13285  if ac_fn_c_try_compile "$LINENO"
13286then :
13287  ac_cv_prog_cc_c99=$ac_arg
13288fi
13289rm -f core conftest.err conftest.$ac_objext conftest.beam
13290  test "x$ac_cv_prog_cc_c99" != "xno" && break
13291done
13292rm -f conftest.$ac_ext
13293CC=$ac_save_CC
13294fi
13295
13296if test "x$ac_cv_prog_cc_c99" = xno
13297then :
13298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13299printf "%s\n" "unsupported" >&6; }
13300else $as_nop
13301  if test "x$ac_cv_prog_cc_c99" = x
13302then :
13303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13304printf "%s\n" "none needed" >&6; }
13305else $as_nop
13306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13307printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13308     CC="$CC $ac_cv_prog_cc_c99"
13309fi
13310  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13311  ac_prog_cc_stdc=c99
13312fi
13313fi
13314if test x$ac_prog_cc_stdc = xno
13315then :
13316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13317printf %s "checking for $CC option to enable C89 features... " >&6; }
13318if test ${ac_cv_prog_cc_c89+y}
13319then :
13320  printf %s "(cached) " >&6
13321else $as_nop
13322  ac_cv_prog_cc_c89=no
13323ac_save_CC=$CC
13324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h.  */
13326$ac_c_conftest_c89_program
13327_ACEOF
13328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13329do
13330  CC="$ac_save_CC $ac_arg"
13331  if ac_fn_c_try_compile "$LINENO"
13332then :
13333  ac_cv_prog_cc_c89=$ac_arg
13334fi
13335rm -f core conftest.err conftest.$ac_objext conftest.beam
13336  test "x$ac_cv_prog_cc_c89" != "xno" && break
13337done
13338rm -f conftest.$ac_ext
13339CC=$ac_save_CC
13340fi
13341
13342if test "x$ac_cv_prog_cc_c89" = xno
13343then :
13344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13345printf "%s\n" "unsupported" >&6; }
13346else $as_nop
13347  if test "x$ac_cv_prog_cc_c89" = x
13348then :
13349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13350printf "%s\n" "none needed" >&6; }
13351else $as_nop
13352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13353printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13354     CC="$CC $ac_cv_prog_cc_c89"
13355fi
13356  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13357  ac_prog_cc_stdc=c89
13358fi
13359fi
13360
13361ac_ext=c
13362ac_cpp='$CPP $CPPFLAGS'
13363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13365ac_compiler_gnu=$ac_cv_c_compiler_gnu
13366
13367
13368  ac_ext=c
13369ac_cpp='$CPP $CPPFLAGS'
13370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13372ac_compiler_gnu=$ac_cv_c_compiler_gnu
13373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13374printf %s "checking whether $CC understands -c and -o together... " >&6; }
13375if test ${am_cv_prog_cc_c_o+y}
13376then :
13377  printf %s "(cached) " >&6
13378else $as_nop
13379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380/* end confdefs.h.  */
13381
13382int
13383main (void)
13384{
13385
13386  ;
13387  return 0;
13388}
13389_ACEOF
13390  # Make sure it works both with $CC and with simple cc.
13391  # Following AC_PROG_CC_C_O, we do the test twice because some
13392  # compilers refuse to overwrite an existing .o file with -o,
13393  # though they will create one.
13394  am_cv_prog_cc_c_o=yes
13395  for am_i in 1 2; do
13396    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13397   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } \
13401         && test -f conftest2.$ac_objext; then
13402      : OK
13403    else
13404      am_cv_prog_cc_c_o=no
13405      break
13406    fi
13407  done
13408  rm -f core conftest*
13409  unset am_i
13410fi
13411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13412printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13413if test "$am_cv_prog_cc_c_o" != yes; then
13414   # Losing compiler, so override with the script.
13415   # FIXME: It is wrong to rewrite CC.
13416   # But if we don't then we get into trouble of one sort or another.
13417   # A longer-term fix would be to have automake use am__CC in this case,
13418   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13419   CC="$am_aux_dir/compile $CC"
13420fi
13421ac_ext=c
13422ac_cpp='$CPP $CPPFLAGS'
13423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426
13427
13428depcc="$CC"   am_compiler_list=
13429
13430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13431printf %s "checking dependency style of $depcc... " >&6; }
13432if test ${am_cv_CC_dependencies_compiler_type+y}
13433then :
13434  printf %s "(cached) " >&6
13435else $as_nop
13436  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13437  # We make a subdir and do the tests there.  Otherwise we can end up
13438  # making bogus files that we don't know about and never remove.  For
13439  # instance it was reported that on HP-UX the gcc test will end up
13440  # making a dummy file named 'D' -- because '-MD' means "put the output
13441  # in D".
13442  rm -rf conftest.dir
13443  mkdir conftest.dir
13444  # Copy depcomp to subdir because otherwise we won't find it if we're
13445  # using a relative directory.
13446  cp "$am_depcomp" conftest.dir
13447  cd conftest.dir
13448  # We will build objects and dependencies in a subdirectory because
13449  # it helps to detect inapplicable dependency modes.  For instance
13450  # both Tru64's cc and ICC support -MD to output dependencies as a
13451  # side effect of compilation, but ICC will put the dependencies in
13452  # the current directory while Tru64 will put them in the object
13453  # directory.
13454  mkdir sub
13455
13456  am_cv_CC_dependencies_compiler_type=none
13457  if test "$am_compiler_list" = ""; then
13458     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13459  fi
13460  am__universal=false
13461  case " $depcc " in #(
13462     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13463     esac
13464
13465  for depmode in $am_compiler_list; do
13466    # Setup a source with many dependencies, because some compilers
13467    # like to wrap large dependency lists on column 80 (with \), and
13468    # we should not choose a depcomp mode which is confused by this.
13469    #
13470    # We need to recreate these files for each test, as the compiler may
13471    # overwrite some of them when testing with obscure command lines.
13472    # This happens at least with the AIX C compiler.
13473    : > sub/conftest.c
13474    for i in 1 2 3 4 5 6; do
13475      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13476      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13477      # Solaris 10 /bin/sh.
13478      echo '/* dummy */' > sub/conftst$i.h
13479    done
13480    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13481
13482    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13483    # mode.  It turns out that the SunPro C++ compiler does not properly
13484    # handle '-M -o', and we need to detect this.  Also, some Intel
13485    # versions had trouble with output in subdirs.
13486    am__obj=sub/conftest.${OBJEXT-o}
13487    am__minus_obj="-o $am__obj"
13488    case $depmode in
13489    gcc)
13490      # This depmode causes a compiler race in universal mode.
13491      test "$am__universal" = false || continue
13492      ;;
13493    nosideeffect)
13494      # After this tag, mechanisms are not by side-effect, so they'll
13495      # only be used when explicitly requested.
13496      if test "x$enable_dependency_tracking" = xyes; then
13497	continue
13498      else
13499	break
13500      fi
13501      ;;
13502    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13503      # This compiler won't grok '-c -o', but also, the minuso test has
13504      # not run yet.  These depmodes are late enough in the game, and
13505      # so weak that their functioning should not be impacted.
13506      am__obj=conftest.${OBJEXT-o}
13507      am__minus_obj=
13508      ;;
13509    none) break ;;
13510    esac
13511    if depmode=$depmode \
13512       source=sub/conftest.c object=$am__obj \
13513       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13514       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13515         >/dev/null 2>conftest.err &&
13516       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13517       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13518       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13519       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13520      # icc doesn't choke on unknown options, it will just issue warnings
13521      # or remarks (even with -Werror).  So we grep stderr for any message
13522      # that says an option was ignored or not supported.
13523      # When given -MP, icc 7.0 and 7.1 complain thusly:
13524      #   icc: Command line warning: ignoring option '-M'; no argument required
13525      # The diagnosis changed in icc 8.0:
13526      #   icc: Command line remark: option '-MP' not supported
13527      if (grep 'ignoring option' conftest.err ||
13528          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13529        am_cv_CC_dependencies_compiler_type=$depmode
13530        break
13531      fi
13532    fi
13533  done
13534
13535  cd ..
13536  rm -rf conftest.dir
13537else
13538  am_cv_CC_dependencies_compiler_type=none
13539fi
13540
13541fi
13542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13543printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13544CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13545
13546 if
13547  test "x$enable_dependency_tracking" != xno \
13548  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13549  am__fastdepCC_TRUE=
13550  am__fastdepCC_FALSE='#'
13551else
13552  am__fastdepCC_TRUE='#'
13553  am__fastdepCC_FALSE=
13554fi
13555
13556
13557if test -n "$ac_tool_prefix"; then
13558  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13559set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561printf %s "checking for $ac_word... " >&6; }
13562if test ${ac_cv_prog_RANLIB+y}
13563then :
13564  printf %s "(cached) " >&6
13565else $as_nop
13566  if test -n "$RANLIB"; then
13567  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13568else
13569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570for as_dir in $PATH
13571do
13572  IFS=$as_save_IFS
13573  case $as_dir in #(((
13574    '') as_dir=./ ;;
13575    */) ;;
13576    *) as_dir=$as_dir/ ;;
13577  esac
13578    for ac_exec_ext in '' $ac_executable_extensions; do
13579  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13580    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13581    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13582    break 2
13583  fi
13584done
13585  done
13586IFS=$as_save_IFS
13587
13588fi
13589fi
13590RANLIB=$ac_cv_prog_RANLIB
13591if test -n "$RANLIB"; then
13592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13593printf "%s\n" "$RANLIB" >&6; }
13594else
13595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596printf "%s\n" "no" >&6; }
13597fi
13598
13599
13600fi
13601if test -z "$ac_cv_prog_RANLIB"; then
13602  ac_ct_RANLIB=$RANLIB
13603  # Extract the first word of "ranlib", so it can be a program name with args.
13604set dummy ranlib; ac_word=$2
13605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606printf %s "checking for $ac_word... " >&6; }
13607if test ${ac_cv_prog_ac_ct_RANLIB+y}
13608then :
13609  printf %s "(cached) " >&6
13610else $as_nop
13611  if test -n "$ac_ct_RANLIB"; then
13612  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13613else
13614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615for as_dir in $PATH
13616do
13617  IFS=$as_save_IFS
13618  case $as_dir in #(((
13619    '') as_dir=./ ;;
13620    */) ;;
13621    *) as_dir=$as_dir/ ;;
13622  esac
13623    for ac_exec_ext in '' $ac_executable_extensions; do
13624  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13625    ac_cv_prog_ac_ct_RANLIB="ranlib"
13626    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13627    break 2
13628  fi
13629done
13630  done
13631IFS=$as_save_IFS
13632
13633fi
13634fi
13635ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13636if test -n "$ac_ct_RANLIB"; then
13637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13638printf "%s\n" "$ac_ct_RANLIB" >&6; }
13639else
13640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641printf "%s\n" "no" >&6; }
13642fi
13643
13644  if test "x$ac_ct_RANLIB" = x; then
13645    RANLIB=":"
13646  else
13647    case $cross_compiling:$ac_tool_warned in
13648yes:)
13649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13650printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13651ac_tool_warned=yes ;;
13652esac
13653    RANLIB=$ac_ct_RANLIB
13654  fi
13655else
13656  RANLIB="$ac_cv_prog_RANLIB"
13657fi
13658
13659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13660printf %s "checking whether ln -s works... " >&6; }
13661LN_S=$as_ln_s
13662if test "$LN_S" = "ln -s"; then
13663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13664printf "%s\n" "yes" >&6; }
13665else
13666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13667printf "%s\n" "no, using $LN_S" >&6; }
13668fi
13669
13670
13671
13672# Add -Wall if we are using GCC.
13673if test "x$GCC" = "xyes"; then
13674  CFLAGS="$CFLAGS -Wall"
13675fi
13676
13677# Check if enable profiling
13678# Check whether --enable-profiling was given.
13679if test ${enable_profiling+y}
13680then :
13681  enableval=$enable_profiling;
13682fi
13683
13684 if test x$enable_profiling = xyes; then
13685  ENABLE_PROFILING_TRUE=
13686  ENABLE_PROFILING_FALSE='#'
13687else
13688  ENABLE_PROFILING_TRUE='#'
13689  ENABLE_PROFILING_FALSE=
13690fi
13691
13692
13693# Checks for header files.
13694# Autoupdate added the next two lines to ensure that your configure
13695# script's behavior did not change.  They are probably safe to remove.
13696
13697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13698printf %s "checking for egrep... " >&6; }
13699if test ${ac_cv_path_EGREP+y}
13700then :
13701  printf %s "(cached) " >&6
13702else $as_nop
13703  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13704   then ac_cv_path_EGREP="$GREP -E"
13705   else
13706     if test -z "$EGREP"; then
13707  ac_path_EGREP_found=false
13708  # Loop through the user's path and test for each of PROGNAME-LIST
13709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13711do
13712  IFS=$as_save_IFS
13713  case $as_dir in #(((
13714    '') as_dir=./ ;;
13715    */) ;;
13716    *) as_dir=$as_dir/ ;;
13717  esac
13718    for ac_prog in egrep
13719   do
13720    for ac_exec_ext in '' $ac_executable_extensions; do
13721      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13722      as_fn_executable_p "$ac_path_EGREP" || continue
13723# Check for GNU ac_path_EGREP and select it if it is found.
13724  # Check for GNU $ac_path_EGREP
13725case `"$ac_path_EGREP" --version 2>&1` in
13726*GNU*)
13727  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13728*)
13729  ac_count=0
13730  printf %s 0123456789 >"conftest.in"
13731  while :
13732  do
13733    cat "conftest.in" "conftest.in" >"conftest.tmp"
13734    mv "conftest.tmp" "conftest.in"
13735    cp "conftest.in" "conftest.nl"
13736    printf "%s\n" 'EGREP' >> "conftest.nl"
13737    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13738    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13739    as_fn_arith $ac_count + 1 && ac_count=$as_val
13740    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13741      # Best one so far, save it but keep looking for a better one
13742      ac_cv_path_EGREP="$ac_path_EGREP"
13743      ac_path_EGREP_max=$ac_count
13744    fi
13745    # 10*(2^10) chars as input seems more than enough
13746    test $ac_count -gt 10 && break
13747  done
13748  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13749esac
13750
13751      $ac_path_EGREP_found && break 3
13752    done
13753  done
13754  done
13755IFS=$as_save_IFS
13756  if test -z "$ac_cv_path_EGREP"; then
13757    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13758  fi
13759else
13760  ac_cv_path_EGREP=$EGREP
13761fi
13762
13763   fi
13764fi
13765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13766printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13767 EGREP="$ac_cv_path_EGREP"
13768
13769
13770
13771
13772# Check for systems which need -lsocket and -lnsl
13773#AX_LIB_SOCKET_NSL
13774
13775# Check for the math library (needed by cjson on some platforms)
13776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13777printf %s "checking for library containing floor... " >&6; }
13778if test ${ac_cv_search_floor+y}
13779then :
13780  printf %s "(cached) " >&6
13781else $as_nop
13782  ac_func_search_save_LIBS=$LIBS
13783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784/* end confdefs.h.  */
13785
13786/* Override any GCC internal prototype to avoid an error.
13787   Use char because int might match the return type of a GCC
13788   builtin and then its argument prototype would still apply.  */
13789char floor ();
13790int
13791main (void)
13792{
13793return floor ();
13794  ;
13795  return 0;
13796}
13797_ACEOF
13798for ac_lib in '' m
13799do
13800  if test -z "$ac_lib"; then
13801    ac_res="none required"
13802  else
13803    ac_res=-l$ac_lib
13804    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13805  fi
13806  if ac_fn_c_try_link "$LINENO"
13807then :
13808  ac_cv_search_floor=$ac_res
13809fi
13810rm -f core conftest.err conftest.$ac_objext conftest.beam \
13811    conftest$ac_exeext
13812  if test ${ac_cv_search_floor+y}
13813then :
13814  break
13815fi
13816done
13817if test ${ac_cv_search_floor+y}
13818then :
13819
13820else $as_nop
13821  ac_cv_search_floor=no
13822fi
13823rm conftest.$ac_ext
13824LIBS=$ac_func_search_save_LIBS
13825fi
13826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13827printf "%s\n" "$ac_cv_search_floor" >&6; }
13828ac_res=$ac_cv_search_floor
13829if test "$ac_res" != no
13830then :
13831  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13832
13833else $as_nop
13834
13835echo "floor()"
13836exit 1
13837
13838fi
13839
13840
13841# On illumos we need -lsocket
13842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13843printf %s "checking for library containing socket... " >&6; }
13844if test ${ac_cv_search_socket+y}
13845then :
13846  printf %s "(cached) " >&6
13847else $as_nop
13848  ac_func_search_save_LIBS=$LIBS
13849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850/* end confdefs.h.  */
13851
13852/* Override any GCC internal prototype to avoid an error.
13853   Use char because int might match the return type of a GCC
13854   builtin and then its argument prototype would still apply.  */
13855char socket ();
13856int
13857main (void)
13858{
13859return socket ();
13860  ;
13861  return 0;
13862}
13863_ACEOF
13864for ac_lib in '' socket
13865do
13866  if test -z "$ac_lib"; then
13867    ac_res="none required"
13868  else
13869    ac_res=-l$ac_lib
13870    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13871  fi
13872  if ac_fn_c_try_link "$LINENO"
13873then :
13874  ac_cv_search_socket=$ac_res
13875fi
13876rm -f core conftest.err conftest.$ac_objext conftest.beam \
13877    conftest$ac_exeext
13878  if test ${ac_cv_search_socket+y}
13879then :
13880  break
13881fi
13882done
13883if test ${ac_cv_search_socket+y}
13884then :
13885
13886else $as_nop
13887  ac_cv_search_socket=no
13888fi
13889rm conftest.$ac_ext
13890LIBS=$ac_func_search_save_LIBS
13891fi
13892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13893printf "%s\n" "$ac_cv_search_socket" >&6; }
13894ac_res=$ac_cv_search_socket
13895if test "$ac_res" != no
13896then :
13897  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13898
13899else $as_nop
13900
13901echo "socket()"
13902exit 1
13903
13904fi
13905
13906
13907# On illumos inet_ntop in in -lnsl
13908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13909printf %s "checking for library containing inet_ntop... " >&6; }
13910if test ${ac_cv_search_inet_ntop+y}
13911then :
13912  printf %s "(cached) " >&6
13913else $as_nop
13914  ac_func_search_save_LIBS=$LIBS
13915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916/* end confdefs.h.  */
13917
13918/* Override any GCC internal prototype to avoid an error.
13919   Use char because int might match the return type of a GCC
13920   builtin and then its argument prototype would still apply.  */
13921char inet_ntop ();
13922int
13923main (void)
13924{
13925return inet_ntop ();
13926  ;
13927  return 0;
13928}
13929_ACEOF
13930for ac_lib in '' nsl
13931do
13932  if test -z "$ac_lib"; then
13933    ac_res="none required"
13934  else
13935    ac_res=-l$ac_lib
13936    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13937  fi
13938  if ac_fn_c_try_link "$LINENO"
13939then :
13940  ac_cv_search_inet_ntop=$ac_res
13941fi
13942rm -f core conftest.err conftest.$ac_objext conftest.beam \
13943    conftest$ac_exeext
13944  if test ${ac_cv_search_inet_ntop+y}
13945then :
13946  break
13947fi
13948done
13949if test ${ac_cv_search_inet_ntop+y}
13950then :
13951
13952else $as_nop
13953  ac_cv_search_inet_ntop=no
13954fi
13955rm conftest.$ac_ext
13956LIBS=$ac_func_search_save_LIBS
13957fi
13958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13959printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
13960ac_res=$ac_cv_search_inet_ntop
13961if test "$ac_res" != no
13962then :
13963  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13964
13965else $as_nop
13966
13967echo "inet_ntop()"
13968exit 1
13969
13970fi
13971
13972
13973# Checks for typedefs, structures, and compiler characteristics.
13974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13975printf %s "checking for an ANSI C-conforming const... " >&6; }
13976if test ${ac_cv_c_const+y}
13977then :
13978  printf %s "(cached) " >&6
13979else $as_nop
13980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981/* end confdefs.h.  */
13982
13983int
13984main (void)
13985{
13986
13987#ifndef __cplusplus
13988  /* Ultrix mips cc rejects this sort of thing.  */
13989  typedef int charset[2];
13990  const charset cs = { 0, 0 };
13991  /* SunOS 4.1.1 cc rejects this.  */
13992  char const *const *pcpcc;
13993  char **ppc;
13994  /* NEC SVR4.0.2 mips cc rejects this.  */
13995  struct point {int x, y;};
13996  static struct point const zero = {0,0};
13997  /* IBM XL C 1.02.0.0 rejects this.
13998     It does not let you subtract one const X* pointer from another in
13999     an arm of an if-expression whose if-part is not a constant
14000     expression */
14001  const char *g = "string";
14002  pcpcc = &g + (g ? g-g : 0);
14003  /* HPUX 7.0 cc rejects these. */
14004  ++pcpcc;
14005  ppc = (char**) pcpcc;
14006  pcpcc = (char const *const *) ppc;
14007  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14008    char tx;
14009    char *t = &tx;
14010    char const *s = 0 ? (char *) 0 : (char const *) 0;
14011
14012    *t++ = 0;
14013    if (s) return 0;
14014  }
14015  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14016    int x[] = {25, 17};
14017    const int *foo = &x[0];
14018    ++foo;
14019  }
14020  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14021    typedef const int *iptr;
14022    iptr p = 0;
14023    ++p;
14024  }
14025  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14026       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14027    struct s { int j; const int *ap[3]; } bx;
14028    struct s *b = &bx; b->j = 5;
14029  }
14030  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14031    const int foo = 10;
14032    if (!foo) return 0;
14033  }
14034  return !cs[0] && !zero.x;
14035#endif
14036
14037  ;
14038  return 0;
14039}
14040_ACEOF
14041if ac_fn_c_try_compile "$LINENO"
14042then :
14043  ac_cv_c_const=yes
14044else $as_nop
14045  ac_cv_c_const=no
14046fi
14047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14048fi
14049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14050printf "%s\n" "$ac_cv_c_const" >&6; }
14051if test $ac_cv_c_const = no; then
14052
14053printf "%s\n" "#define const /**/" >>confdefs.h
14054
14055fi
14056
14057
14058# Check for poll.h (it's in POSIX so everyone should have it?)
14059ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
14060if test "x$ac_cv_header_poll_h" = xyes
14061then :
14062  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
14063
14064fi
14065
14066
14067# SCTP.  Allow user to disable SCTP support with --without-sctp.
14068# Otherwise we try to find whatever support is required.
14069try_sctp=true
14070
14071# Check whether --with-sctp was given.
14072if test ${with_sctp+y}
14073then :
14074  withval=$with_sctp;
14075        case "$withval" in
14076	y | ye | yes)
14077	  ;;
14078	n | no)
14079	try_sctp=false
14080	  ;;
14081	*)
14082	as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
14083	  ;;
14084	esac
14085
14086else $as_nop
14087
14088        try_sctp=true
14089
14090
14091fi
14092
14093
14094ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
14095if test "x$ac_cv_header_linux_tcp_h" = xyes
14096then :
14097  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
14098
14099fi
14100
14101
14102# Check for SCTP support
14103if $try_sctp; then
14104ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
14105if test "x$ac_cv_header_sys_socket_h" = xyes
14106then :
14107  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
14108
14109fi
14110
14111       for ac_header in netinet/sctp.h
14112do :
14113  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
14114#include <sys/socket.h>
14115#endif
14116
14117"
14118if test "x$ac_cv_header_netinet_sctp_h" = xyes
14119then :
14120  printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h
14121
14122printf "%s\n" "#define HAVE_SCTP_H 1" >>confdefs.h
14123
14124		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
14125printf %s "checking for library containing sctp_bindx... " >&6; }
14126if test ${ac_cv_search_sctp_bindx+y}
14127then :
14128  printf %s "(cached) " >&6
14129else $as_nop
14130  ac_func_search_save_LIBS=$LIBS
14131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h.  */
14133
14134/* Override any GCC internal prototype to avoid an error.
14135   Use char because int might match the return type of a GCC
14136   builtin and then its argument prototype would still apply.  */
14137char sctp_bindx ();
14138int
14139main (void)
14140{
14141return sctp_bindx ();
14142  ;
14143  return 0;
14144}
14145_ACEOF
14146for ac_lib in '' sctp
14147do
14148  if test -z "$ac_lib"; then
14149    ac_res="none required"
14150  else
14151    ac_res=-l$ac_lib
14152    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14153  fi
14154  if ac_fn_c_try_link "$LINENO"
14155then :
14156  ac_cv_search_sctp_bindx=$ac_res
14157fi
14158rm -f core conftest.err conftest.$ac_objext conftest.beam \
14159    conftest$ac_exeext
14160  if test ${ac_cv_search_sctp_bindx+y}
14161then :
14162  break
14163fi
14164done
14165if test ${ac_cv_search_sctp_bindx+y}
14166then :
14167
14168else $as_nop
14169  ac_cv_search_sctp_bindx=no
14170fi
14171rm conftest.$ac_ext
14172LIBS=$ac_func_search_save_LIBS
14173fi
14174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
14175printf "%s\n" "$ac_cv_search_sctp_bindx" >&6; }
14176ac_res=$ac_cv_search_sctp_bindx
14177if test "$ac_res" != no
14178then :
14179  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14180
14181fi
14182
14183
14184# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
14185# -------------------------------------------
14186# Tests whether TYPE exists after having included INCLUDES, setting cache
14187# variable VAR accordingly.
14188ac_fn_c_check_type ()
14189{
14190  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
14192printf %s "checking for $2... " >&6; }
14193if eval test \${$3+y}
14194then :
14195  printf %s "(cached) " >&6
14196else $as_nop
14197  eval "$3=no"
14198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200$4
14201int
14202main (void)
14203{
14204if (sizeof ($2))
14205	 return 0;
14206  ;
14207  return 0;
14208}
14209_ACEOF
14210if ac_fn_c_try_compile "$LINENO"
14211then :
14212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214$4
14215int
14216main (void)
14217{
14218if (sizeof (($2)))
14219	    return 0;
14220  ;
14221  return 0;
14222}
14223_ACEOF
14224if ac_fn_c_try_compile "$LINENO"
14225then :
14226
14227else $as_nop
14228  eval "$3=yes"
14229fi
14230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14233fi
14234eval ac_res=\$$3
14235	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14236printf "%s\n" "$ac_res" >&6; }
14237  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14238
14239} # ac_fn_c_check_type
14240ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
14241"
14242if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes
14243then :
14244
14245printf "%s\n" "#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1" >>confdefs.h
14246
14247
14248fi
14249
14250fi
14251
14252done
14253fi
14254
14255ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
14256if test "x$ac_cv_header_endian_h" = xyes
14257then :
14258
14259printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
14260
14261else $as_nop
14262  ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
14263if test "x$ac_cv_header_sys_endian_h" = xyes
14264then :
14265
14266printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
14267
14268else $as_nop
14269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
14270printf "%s\n" "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
14271
14272fi
14273
14274
14275fi
14276
14277
14278if test "x$with_openssl" = "xno"; then
14279    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
14280printf "%s\n" "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
14281else
14282    # Check for OPENSSL support
14283    havs_ssl=false
14284
14285    found=false
14286
14287# Check whether --with-openssl was given.
14288if test ${with_openssl+y}
14289then :
14290  withval=$with_openssl;
14291            case "$withval" in
14292            "" | y | ye | yes | n | no)
14293            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
14294              ;;
14295            *) ssldirs="$withval"
14296              ;;
14297            esac
14298
14299else $as_nop
14300
14301            # if pkg-config is installed and openssl has installed a .pc file,
14302            # then use that information and don't search ssldirs
14303            if test -n "$ac_tool_prefix"; then
14304  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14305set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307printf %s "checking for $ac_word... " >&6; }
14308if test ${ac_cv_prog_PKG_CONFIG+y}
14309then :
14310  printf %s "(cached) " >&6
14311else $as_nop
14312  if test -n "$PKG_CONFIG"; then
14313  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
14314else
14315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316for as_dir in $PATH
14317do
14318  IFS=$as_save_IFS
14319  case $as_dir in #(((
14320    '') as_dir=./ ;;
14321    */) ;;
14322    *) as_dir=$as_dir/ ;;
14323  esac
14324    for ac_exec_ext in '' $ac_executable_extensions; do
14325  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14326    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
14327    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14328    break 2
14329  fi
14330done
14331  done
14332IFS=$as_save_IFS
14333
14334fi
14335fi
14336PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
14337if test -n "$PKG_CONFIG"; then
14338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14339printf "%s\n" "$PKG_CONFIG" >&6; }
14340else
14341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342printf "%s\n" "no" >&6; }
14343fi
14344
14345
14346fi
14347if test -z "$ac_cv_prog_PKG_CONFIG"; then
14348  ac_ct_PKG_CONFIG=$PKG_CONFIG
14349  # Extract the first word of "pkg-config", so it can be a program name with args.
14350set dummy pkg-config; ac_word=$2
14351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352printf %s "checking for $ac_word... " >&6; }
14353if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
14354then :
14355  printf %s "(cached) " >&6
14356else $as_nop
14357  if test -n "$ac_ct_PKG_CONFIG"; then
14358  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
14359else
14360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361for as_dir in $PATH
14362do
14363  IFS=$as_save_IFS
14364  case $as_dir in #(((
14365    '') as_dir=./ ;;
14366    */) ;;
14367    *) as_dir=$as_dir/ ;;
14368  esac
14369    for ac_exec_ext in '' $ac_executable_extensions; do
14370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14371    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
14372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14373    break 2
14374  fi
14375done
14376  done
14377IFS=$as_save_IFS
14378
14379fi
14380fi
14381ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
14382if test -n "$ac_ct_PKG_CONFIG"; then
14383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
14384printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
14385else
14386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14387printf "%s\n" "no" >&6; }
14388fi
14389
14390  if test "x$ac_ct_PKG_CONFIG" = x; then
14391    PKG_CONFIG=""
14392  else
14393    case $cross_compiling:$ac_tool_warned in
14394yes:)
14395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14396printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14397ac_tool_warned=yes ;;
14398esac
14399    PKG_CONFIG=$ac_ct_PKG_CONFIG
14400  fi
14401else
14402  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
14403fi
14404
14405            if test x"$PKG_CONFIG" != x""; then
14406                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
14407                if test $? = 0; then
14408                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
14409                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
14410                    found=true
14411                fi
14412            fi
14413
14414            # no such luck; use some default ssldirs
14415            if ! $found; then
14416                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
14417            fi
14418
14419
14420fi
14421
14422
14423
14424    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
14425    # an 'openssl' subdirectory
14426
14427    if ! $found; then
14428        OPENSSL_INCLUDES=
14429        for ssldir in $ssldirs; do
14430            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
14431printf %s "checking for openssl/ssl.h in $ssldir... " >&6; }
14432            if test -f "$ssldir/include/openssl/ssl.h"; then
14433                OPENSSL_INCLUDES="-I$ssldir/include"
14434                OPENSSL_LDFLAGS="-L$ssldir/lib"
14435                OPENSSL_LIBS="-lssl -lcrypto"
14436                found=true
14437                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14438printf "%s\n" "yes" >&6; }
14439                break
14440            else
14441                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442printf "%s\n" "no" >&6; }
14443            fi
14444        done
14445
14446        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
14447        # it will just work!
14448    fi
14449
14450    # try the preprocessor and linker with our new flags,
14451    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
14452
14453    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
14454printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
14455    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
14456        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
14457
14458    save_LIBS="$LIBS"
14459    save_LDFLAGS="$LDFLAGS"
14460    save_CPPFLAGS="$CPPFLAGS"
14461    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14462    LIBS="$OPENSSL_LIBS $LIBS"
14463    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465/* end confdefs.h.  */
14466#include <openssl/ssl.h>
14467int
14468main (void)
14469{
14470SSL_new(NULL)
14471  ;
14472  return 0;
14473}
14474_ACEOF
14475if ac_fn_c_try_link "$LINENO"
14476then :
14477
14478            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14479printf "%s\n" "yes" >&6; }
14480
14481printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
14482
14483          have_ssl=true
14484
14485else $as_nop
14486
14487            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488printf "%s\n" "no" >&6; }
14489             if test "x$with_openssl" != "x"; then
14490	  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14491printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14492as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
14493See \`config.log' for more details" "$LINENO" 5; }
14494	  fi
14495
14496
14497fi
14498rm -f core conftest.err conftest.$ac_objext conftest.beam \
14499    conftest$ac_exeext conftest.$ac_ext
14500    CPPFLAGS="$save_CPPFLAGS"
14501    LDFLAGS="$save_LDFLAGS"
14502    LIBS="$save_LIBS"
14503
14504
14505
14506
14507
14508    if $have_ssl; then
14509        case $host in
14510           *-*-cygwin)
14511             CFLAGS="$CFLAGS -DNOCRYPT"
14512             ;;
14513        esac
14514        LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
14515        LIBS="$OPENSSL_LIBS $LIBS"
14516        CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
14517    fi
14518fi
14519
14520# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
14521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
14522printf %s "checking TCP_CONGESTION socket option... " >&6; }
14523if test ${iperf3_cv_header_tcp_congestion+y}
14524then :
14525  printf %s "(cached) " >&6
14526else $as_nop
14527    CPP         C preprocessor
14528ac_ext=c
14529ac_cpp='$CPP $CPPFLAGS'
14530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14532ac_compiler_gnu=$ac_cv_c_compiler_gnu
14533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14534printf %s "checking how to run the C preprocessor... " >&6; }
14535# On Suns, sometimes $CPP names a directory.
14536if test -n "$CPP" && test -d "$CPP"; then
14537  CPP=
14538fi
14539if test -z "$CPP"; then
14540  if test ${ac_cv_prog_CPP+y}
14541then :
14542  printf %s "(cached) " >&6
14543else $as_nop
14544      # Double quotes because $CC needs to be expanded
14545    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14546    do
14547      ac_preproc_ok=false
14548for ac_c_preproc_warn_flag in '' yes
14549do
14550  # Use a header file that comes with gcc, so configuring glibc
14551  # with a fresh cross-compiler works.
14552  # On the NeXT, cc -E runs the code through the compiler's parser,
14553  # not just through cpp. "Syntax error" is here to catch this case.
14554
14555# ac_fn_c_try_cpp LINENO
14556# ----------------------
14557# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
14558ac_fn_c_try_cpp ()
14559{
14560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14561  if { { ac_try="$ac_cpp conftest.$ac_ext"
14562case "(($ac_try" in
14563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564  *) ac_try_echo=$ac_try;;
14565esac
14566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14567printf "%s\n" "$ac_try_echo"; } >&5
14568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
14569  ac_status=$?
14570  if test -s conftest.err; then
14571    grep -v '^ *+' conftest.err >conftest.er1
14572    cat conftest.er1 >&5
14573    mv -f conftest.er1 conftest.err
14574  fi
14575  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576  test $ac_status = 0; } > conftest.i && {
14577	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14578	 test ! -s conftest.err
14579       }
14580then :
14581  ac_retval=0
14582else $as_nop
14583  printf "%s\n" "$as_me: failed program was:" >&5
14584sed 's/^/| /' conftest.$ac_ext >&5
14585
14586    ac_retval=1
14587fi
14588  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14589  as_fn_set_status $ac_retval
14590
14591} # ac_fn_c_try_cpp
14592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593/* end confdefs.h.  */
14594#include <limits.h>
14595		     Syntax error
14596_ACEOF
14597if ac_fn_c_try_cpp "$LINENO"
14598then :
14599
14600else $as_nop
14601  # Broken: fails on valid input.
14602continue
14603fi
14604rm -f conftest.err conftest.i conftest.$ac_ext
14605
14606  # OK, works on sane cases.  Now check whether nonexistent headers
14607  # can be detected and how.
14608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609/* end confdefs.h.  */
14610#include <ac_nonexistent.h>
14611_ACEOF
14612if ac_fn_c_try_cpp "$LINENO"
14613then :
14614  # Broken: success on invalid input.
14615continue
14616else $as_nop
14617  # Passes both tests.
14618ac_preproc_ok=:
14619break
14620fi
14621rm -f conftest.err conftest.i conftest.$ac_ext
14622
14623done
14624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14625rm -f conftest.i conftest.err conftest.$ac_ext
14626if $ac_preproc_ok
14627then :
14628  break
14629fi
14630
14631    done
14632    ac_cv_prog_CPP=$CPP
14633
14634fi
14635  CPP=$ac_cv_prog_CPP
14636else
14637  ac_cv_prog_CPP=$CPP
14638fi
14639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14640printf "%s\n" "$CPP" >&6; }
14641ac_preproc_ok=false
14642for ac_c_preproc_warn_flag in '' yes
14643do
14644  # Use a header file that comes with gcc, so configuring glibc
14645  # with a fresh cross-compiler works.
14646  # On the NeXT, cc -E runs the code through the compiler's parser,
14647  # not just through cpp. "Syntax error" is here to catch this case.
14648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h.  */
14650#include <limits.h>
14651		     Syntax error
14652_ACEOF
14653if ac_fn_c_try_cpp "$LINENO"
14654then :
14655
14656else $as_nop
14657  # Broken: fails on valid input.
14658continue
14659fi
14660rm -f conftest.err conftest.i conftest.$ac_ext
14661
14662  # OK, works on sane cases.  Now check whether nonexistent headers
14663  # can be detected and how.
14664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666#include <ac_nonexistent.h>
14667_ACEOF
14668if ac_fn_c_try_cpp "$LINENO"
14669then :
14670  # Broken: success on invalid input.
14671continue
14672else $as_nop
14673  # Passes both tests.
14674ac_preproc_ok=:
14675break
14676fi
14677rm -f conftest.err conftest.i conftest.$ac_ext
14678
14679done
14680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14681rm -f conftest.i conftest.err conftest.$ac_ext
14682if $ac_preproc_ok
14683then :
14684
14685else $as_nop
14686  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14687printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14688as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14689See \`config.log' for more details" "$LINENO" 5; }
14690fi
14691
14692ac_ext=c
14693ac_cpp='$CPP $CPPFLAGS'
14694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14696ac_compiler_gnu=$ac_cv_c_compiler_gnu
14697
14698
14699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h.  */
14701#include <netinet/tcp.h>
14702#ifdef TCP_CONGESTION
14703  yes
14704#endif
14705
14706_ACEOF
14707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14708  $EGREP "yes" >/dev/null 2>&1
14709then :
14710  iperf3_cv_header_tcp_congestion=yes
14711else $as_nop
14712  iperf3_cv_header_tcp_congestion=no
14713fi
14714rm -rf conftest*
14715
14716fi
14717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
14718printf "%s\n" "$iperf3_cv_header_tcp_congestion" >&6; }
14719if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
14720
14721printf "%s\n" "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
14722
14723fi
14724
14725# Check for IPv6 flowlabel support (believed to be Linux only)
14726# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
14727# don't use that file directly (we have our own stripped-down
14728# copy, see src/flowlabel.h for more details).
14729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
14730printf %s "checking IPv6 flowlabel support... " >&6; }
14731if test ${iperf3_cv_header_flowlabel+y}
14732then :
14733  printf %s "(cached) " >&6
14734else $as_nop
14735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736/* end confdefs.h.  */
14737#include <sys/types.h>
14738#include <linux/in6.h>
14739#ifdef IPV6_FLOWLABEL_MGR
14740  yes
14741#endif
14742
14743_ACEOF
14744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14745  $EGREP "yes" >/dev/null 2>&1
14746then :
14747  iperf3_cv_header_flowlabel=yes
14748else $as_nop
14749  iperf3_cv_header_flowlabel=no
14750fi
14751rm -rf conftest*
14752
14753fi
14754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
14755printf "%s\n" "$iperf3_cv_header_flowlabel" >&6; }
14756if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
14757
14758printf "%s\n" "#define HAVE_FLOWLABEL 1" >>confdefs.h
14759
14760fi
14761
14762# Check for CPU affinity support.  FreeBSD and Linux do this differently
14763# unfortunately so we have to check separately for each of them.
14764# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
14765# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
14766# generic concept is available.
14767
14768  for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
14769do :
14770  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
14771ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14772if eval test \"x\$"$as_ac_var"\" = x"yes"
14773then :
14774  cat >>confdefs.h <<_ACEOF
14775#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
14776_ACEOF
14777
14778printf "%s\n" "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
14779
14780fi
14781
14782done
14783
14784# Check for daemon().  Most systems have this but a few (IRIX) don't.
14785ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
14786if test "x$ac_cv_func_daemon" = xyes
14787then :
14788  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
14789
14790fi
14791
14792
14793# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
14794# this system call, but they're all different in terms of what headers
14795# it needs and what arguments it expects.
14796ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14797if test "x$ac_cv_func_sendfile" = xyes
14798then :
14799  printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
14800
14801fi
14802
14803
14804# Check for getline support, used as a part of authenticated
14805# connections.
14806ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14807if test "x$ac_cv_func_getline" = xyes
14808then :
14809  printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
14810
14811fi
14812
14813
14814# Check for packet pacing socket option (Linux only for now).
14815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
14816printf %s "checking SO_MAX_PACING_RATE socket option... " >&6; }
14817if test ${iperf3_cv_header_so_max_pacing_rate+y}
14818then :
14819  printf %s "(cached) " >&6
14820else $as_nop
14821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822/* end confdefs.h.  */
14823#include <sys/socket.h>
14824#ifdef SO_MAX_PACING_RATE
14825  yes
14826#endif
14827
14828_ACEOF
14829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14830  $EGREP "yes" >/dev/null 2>&1
14831then :
14832  iperf3_cv_header_so_max_pacing_rate=yes
14833else $as_nop
14834  iperf3_cv_header_so_max_pacing_rate=no
14835fi
14836rm -rf conftest*
14837
14838fi
14839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
14840printf "%s\n" "$iperf3_cv_header_so_max_pacing_rate" >&6; }
14841if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
14842
14843printf "%s\n" "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
14844
14845fi
14846
14847# Check for SO_BINDTODEVICE sockopt (believed to be Linux only)
14848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5
14849printf %s "checking SO_BINDTODEVICE socket option... " >&6; }
14850if test ${iperf3_cv_header_so_bindtodevice+y}
14851then :
14852  printf %s "(cached) " >&6
14853else $as_nop
14854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h.  */
14856#include <sys/socket.h>
14857#ifdef SO_BINDTODEVICE
14858  yes
14859#endif
14860
14861_ACEOF
14862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14863  $EGREP "yes" >/dev/null 2>&1
14864then :
14865  iperf3_cv_header_so_bindtodevice=yes
14866else $as_nop
14867  iperf3_cv_header_so_bindtodevice=no
14868fi
14869rm -rf conftest*
14870
14871fi
14872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5
14873printf "%s\n" "$iperf3_cv_header_so_bindtodevice" >&6; }
14874if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then
14875
14876printf "%s\n" "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h
14877
14878fi
14879
14880# Check for IP DF support
14881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IP_MTU_DISCOVER or IP_DONTFRAG socket option" >&5
14882printf %s "checking IP_MTU_DISCOVER or IP_DONTFRAG socket option... " >&6; }
14883if test ${iperf3_cv_header_dontfragment+y}
14884then :
14885  printf %s "(cached) " >&6
14886else $as_nop
14887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h.  */
14889#include <sys/socket.h>
14890#include <netinet/ip.h>
14891#include <netinet/in.h>
14892#ifdef IP_MTU_DISCOVER
14893  yes
14894#endif
14895#ifdef IP_DONTFRAG
14896  yes
14897#endif
14898#ifdef IP_DONTFRAGMENT
14899  yes
14900#endif
14901
14902_ACEOF
14903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14904  $EGREP "yes" >/dev/null 2>&1
14905then :
14906  iperf3_cv_header_dontfragment=yes
14907else $as_nop
14908  iperf3_cv_header_dontfragment=no
14909fi
14910rm -rf conftest*
14911
14912fi
14913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_dontfragment" >&5
14914printf "%s\n" "$iperf3_cv_header_dontfragment" >&6; }
14915if test "x$iperf3_cv_header_dontfragment" = "xyes"; then
14916
14917printf "%s\n" "#define HAVE_DONT_FRAGMENT 1" >>confdefs.h
14918
14919fi
14920
14921ac_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
14922#include <linux/tcp.h>
14923#else
14924#include <netinet/tcp.h>
14925#endif
14926
14927"
14928if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_wnd" = xyes
14929then :
14930  iperf3_cv_header_tcp_info_snd_wnd=yes
14931else $as_nop
14932  iperf3_cv_header_tcp_info_snd_wnd=no
14933fi
14934
14935
14936if test "x$iperf3_cv_header_tcp_info_snd_wnd" = "xyes"; then
14937
14938printf "%s\n" "#define HAVE_TCP_INFO_SND_WND 1" >>confdefs.h
14939
14940fi
14941
14942# Check if we need -lrt for clock_gettime
14943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14944printf %s "checking for library containing clock_gettime... " >&6; }
14945if test ${ac_cv_search_clock_gettime+y}
14946then :
14947  printf %s "(cached) " >&6
14948else $as_nop
14949  ac_func_search_save_LIBS=$LIBS
14950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951/* end confdefs.h.  */
14952
14953/* Override any GCC internal prototype to avoid an error.
14954   Use char because int might match the return type of a GCC
14955   builtin and then its argument prototype would still apply.  */
14956char clock_gettime ();
14957int
14958main (void)
14959{
14960return clock_gettime ();
14961  ;
14962  return 0;
14963}
14964_ACEOF
14965for ac_lib in '' rt posix4
14966do
14967  if test -z "$ac_lib"; then
14968    ac_res="none required"
14969  else
14970    ac_res=-l$ac_lib
14971    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14972  fi
14973  if ac_fn_c_try_link "$LINENO"
14974then :
14975  ac_cv_search_clock_gettime=$ac_res
14976fi
14977rm -f core conftest.err conftest.$ac_objext conftest.beam \
14978    conftest$ac_exeext
14979  if test ${ac_cv_search_clock_gettime+y}
14980then :
14981  break
14982fi
14983done
14984if test ${ac_cv_search_clock_gettime+y}
14985then :
14986
14987else $as_nop
14988  ac_cv_search_clock_gettime=no
14989fi
14990rm conftest.$ac_ext
14991LIBS=$ac_func_search_save_LIBS
14992fi
14993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14994printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14995ac_res=$ac_cv_search_clock_gettime
14996if test "$ac_res" != no
14997then :
14998  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14999
15000fi
15001
15002# Check for clock_gettime support
15003ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15004if test "x$ac_cv_func_clock_gettime" = xyes
15005then :
15006  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15007
15008fi
15009
15010
15011ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
15012
15013cat >confcache <<\_ACEOF
15014# This file is a shell script that caches the results of configure
15015# tests run on this system so they can be shared between configure
15016# scripts and configure runs, see configure's option --config-cache.
15017# It is not useful on other systems.  If it contains results you don't
15018# want to keep, you may remove or edit it.
15019#
15020# config.status only pays attention to the cache file if you give it
15021# the --recheck option to rerun configure.
15022#
15023# `ac_cv_env_foo' variables (set or unset) will be overridden when
15024# loading this file, other *unset* `ac_cv_foo' will be assigned the
15025# following values.
15026
15027_ACEOF
15028
15029# The following way of writing the cache mishandles newlines in values,
15030# but we know of no workaround that is simple, portable, and efficient.
15031# So, we kill variables containing newlines.
15032# Ultrix sh set writes to stderr and can't be redirected directly,
15033# and sets the high bit in the cache file unless we assign to the vars.
15034(
15035  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15036    eval ac_val=\$$ac_var
15037    case $ac_val in #(
15038    *${as_nl}*)
15039      case $ac_var in #(
15040      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15041printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15042      esac
15043      case $ac_var in #(
15044      _ | IFS | as_nl) ;; #(
15045      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15046      *) { eval $ac_var=; unset $ac_var;} ;;
15047      esac ;;
15048    esac
15049  done
15050
15051  (set) 2>&1 |
15052    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15053    *${as_nl}ac_space=\ *)
15054      # `set' does not quote correctly, so add quotes: double-quote
15055      # substitution turns \\\\ into \\, and sed turns \\ into \.
15056      sed -n \
15057	"s/'/'\\\\''/g;
15058	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15059      ;; #(
15060    *)
15061      # `set' quotes correctly as required by POSIX, so do not add quotes.
15062      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15063      ;;
15064    esac |
15065    sort
15066) |
15067  sed '
15068     /^ac_cv_env_/b end
15069     t clear
15070     :clear
15071     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15072     t end
15073     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15074     :end' >>confcache
15075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15076  if test -w "$cache_file"; then
15077    if test "x$cache_file" != "x/dev/null"; then
15078      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15079printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15080      if test ! -f "$cache_file" || test -h "$cache_file"; then
15081	cat confcache >"$cache_file"
15082      else
15083        case $cache_file in #(
15084        */* | ?:*)
15085	  mv -f confcache "$cache_file"$$ &&
15086	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15087        *)
15088	  mv -f confcache "$cache_file" ;;
15089	esac
15090      fi
15091    fi
15092  else
15093    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15094printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15095  fi
15096fi
15097rm -f confcache
15098
15099test "x$prefix" = xNONE && prefix=$ac_default_prefix
15100# Let make expand exec_prefix.
15101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15102
15103DEFS=-DHAVE_CONFIG_H
15104
15105ac_libobjs=
15106ac_ltlibobjs=
15107for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15108  # 1. Remove the extension, and $U if already installed.
15109  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15110  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15111  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15112  #    will be set to the directory where LIBOBJS objects are built.
15113  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15114  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15115done
15116LIBOBJS=$ac_libobjs
15117
15118LTLIBOBJS=$ac_ltlibobjs
15119
15120
15121if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
15122  as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
15123Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124fi
15125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15126printf %s "checking that generated files are newer than configure... " >&6; }
15127   if test -n "$am_sleep_pid"; then
15128     # Hide warnings about reused PIDs.
15129     wait $am_sleep_pid 2>/dev/null
15130   fi
15131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15132printf "%s\n" "done" >&6; }
15133 if test -n "$EXEEXT"; then
15134  am__EXEEXT_TRUE=
15135  am__EXEEXT_FALSE='#'
15136else
15137  am__EXEEXT_TRUE='#'
15138  am__EXEEXT_FALSE=
15139fi
15140
15141if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15142  as_fn_error $? "conditional \"AMDEP\" was never defined.
15143Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144fi
15145if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15146  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15147Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148fi
15149if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15150  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15151Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152fi
15153if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15154  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15155Usually this means the macro was only invoked conditionally." "$LINENO" 5
15156fi
15157if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
15158  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
15159Usually this means the macro was only invoked conditionally." "$LINENO" 5
15160fi
15161
15162: "${CONFIG_STATUS=./config.status}"
15163ac_write_fail=0
15164ac_clean_files_save=$ac_clean_files
15165ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15167printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15168as_write_fail=0
15169cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15170#! $SHELL
15171# Generated by $as_me.
15172# Run this file to recreate the current configuration.
15173# Compiler output produced by configure, useful for debugging
15174# configure, is in config.log if it exists.
15175
15176debug=false
15177ac_cs_recheck=false
15178ac_cs_silent=false
15179
15180SHELL=\${CONFIG_SHELL-$SHELL}
15181export SHELL
15182_ASEOF
15183cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15184## -------------------- ##
15185## M4sh Initialization. ##
15186## -------------------- ##
15187
15188# Be more Bourne compatible
15189DUALCASE=1; export DUALCASE # for MKS sh
15190as_nop=:
15191if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15192then :
15193  emulate sh
15194  NULLCMD=:
15195  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15196  # is contrary to our usage.  Disable this feature.
15197  alias -g '${1+"$@"}'='"$@"'
15198  setopt NO_GLOB_SUBST
15199else $as_nop
15200  case `(set -o) 2>/dev/null` in #(
15201  *posix*) :
15202    set -o posix ;; #(
15203  *) :
15204     ;;
15205esac
15206fi
15207
15208
15209
15210# Reset variables that may have inherited troublesome values from
15211# the environment.
15212
15213# IFS needs to be set, to space, tab, and newline, in precisely that order.
15214# (If _AS_PATH_WALK were called with IFS unset, it would have the
15215# side effect of setting IFS to empty, thus disabling word splitting.)
15216# Quoting is to prevent editors from complaining about space-tab.
15217as_nl='
15218'
15219export as_nl
15220IFS=" ""	$as_nl"
15221
15222PS1='$ '
15223PS2='> '
15224PS4='+ '
15225
15226# Ensure predictable behavior from utilities with locale-dependent output.
15227LC_ALL=C
15228export LC_ALL
15229LANGUAGE=C
15230export LANGUAGE
15231
15232# We cannot yet rely on "unset" to work, but we need these variables
15233# to be unset--not just set to an empty or harmless value--now, to
15234# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15235# also avoids known problems related to "unset" and subshell syntax
15236# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15237for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15238do eval test \${$as_var+y} \
15239  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15240done
15241
15242# Ensure that fds 0, 1, and 2 are open.
15243if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15244if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15245if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15246
15247# The user is always right.
15248if ${PATH_SEPARATOR+false} :; then
15249  PATH_SEPARATOR=:
15250  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15251    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15252      PATH_SEPARATOR=';'
15253  }
15254fi
15255
15256
15257# Find who we are.  Look in the path if we contain no directory separator.
15258as_myself=
15259case $0 in #((
15260  *[\\/]* ) as_myself=$0 ;;
15261  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15262for as_dir in $PATH
15263do
15264  IFS=$as_save_IFS
15265  case $as_dir in #(((
15266    '') as_dir=./ ;;
15267    */) ;;
15268    *) as_dir=$as_dir/ ;;
15269  esac
15270    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15271  done
15272IFS=$as_save_IFS
15273
15274     ;;
15275esac
15276# We did not find ourselves, most probably we were run as `sh COMMAND'
15277# in which case we are not to be found in the path.
15278if test "x$as_myself" = x; then
15279  as_myself=$0
15280fi
15281if test ! -f "$as_myself"; then
15282  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15283  exit 1
15284fi
15285
15286
15287
15288# as_fn_error STATUS ERROR [LINENO LOG_FD]
15289# ----------------------------------------
15290# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15291# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15292# script with STATUS, using 1 if that was 0.
15293as_fn_error ()
15294{
15295  as_status=$1; test $as_status -eq 0 && as_status=1
15296  if test "$4"; then
15297    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15298    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15299  fi
15300  printf "%s\n" "$as_me: error: $2" >&2
15301  as_fn_exit $as_status
15302} # as_fn_error
15303
15304
15305
15306# as_fn_set_status STATUS
15307# -----------------------
15308# Set $? to STATUS, without forking.
15309as_fn_set_status ()
15310{
15311  return $1
15312} # as_fn_set_status
15313
15314# as_fn_exit STATUS
15315# -----------------
15316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15317as_fn_exit ()
15318{
15319  set +e
15320  as_fn_set_status $1
15321  exit $1
15322} # as_fn_exit
15323
15324# as_fn_unset VAR
15325# ---------------
15326# Portably unset VAR.
15327as_fn_unset ()
15328{
15329  { eval $1=; unset $1;}
15330}
15331as_unset=as_fn_unset
15332
15333# as_fn_append VAR VALUE
15334# ----------------------
15335# Append the text in VALUE to the end of the definition contained in VAR. Take
15336# advantage of any shell optimizations that allow amortized linear growth over
15337# repeated appends, instead of the typical quadratic growth present in naive
15338# implementations.
15339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15340then :
15341  eval 'as_fn_append ()
15342  {
15343    eval $1+=\$2
15344  }'
15345else $as_nop
15346  as_fn_append ()
15347  {
15348    eval $1=\$$1\$2
15349  }
15350fi # as_fn_append
15351
15352# as_fn_arith ARG...
15353# ------------------
15354# Perform arithmetic evaluation on the ARGs, and store the result in the
15355# global $as_val. Take advantage of shells that can avoid forks. The arguments
15356# must be portable across $(()) and expr.
15357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15358then :
15359  eval 'as_fn_arith ()
15360  {
15361    as_val=$(( $* ))
15362  }'
15363else $as_nop
15364  as_fn_arith ()
15365  {
15366    as_val=`expr "$@" || test $? -eq 1`
15367  }
15368fi # as_fn_arith
15369
15370
15371if expr a : '\(a\)' >/dev/null 2>&1 &&
15372   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15373  as_expr=expr
15374else
15375  as_expr=false
15376fi
15377
15378if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15379  as_basename=basename
15380else
15381  as_basename=false
15382fi
15383
15384if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15385  as_dirname=dirname
15386else
15387  as_dirname=false
15388fi
15389
15390as_me=`$as_basename -- "$0" ||
15391$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15392	 X"$0" : 'X\(//\)$' \| \
15393	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15394printf "%s\n" X/"$0" |
15395    sed '/^.*\/\([^/][^/]*\)\/*$/{
15396	    s//\1/
15397	    q
15398	  }
15399	  /^X\/\(\/\/\)$/{
15400	    s//\1/
15401	    q
15402	  }
15403	  /^X\/\(\/\).*/{
15404	    s//\1/
15405	    q
15406	  }
15407	  s/.*/./; q'`
15408
15409# Avoid depending upon Character Ranges.
15410as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15411as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15412as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15413as_cr_digits='0123456789'
15414as_cr_alnum=$as_cr_Letters$as_cr_digits
15415
15416
15417# Determine whether it's possible to make 'echo' print without a newline.
15418# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15419# for compatibility with existing Makefiles.
15420ECHO_C= ECHO_N= ECHO_T=
15421case `echo -n x` in #(((((
15422-n*)
15423  case `echo 'xy\c'` in
15424  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15425  xy)  ECHO_C='\c';;
15426  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15427       ECHO_T='	';;
15428  esac;;
15429*)
15430  ECHO_N='-n';;
15431esac
15432
15433# For backward compatibility with old third-party macros, we provide
15434# the shell variables $as_echo and $as_echo_n.  New code should use
15435# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15436as_echo='printf %s\n'
15437as_echo_n='printf %s'
15438
15439rm -f conf$$ conf$$.exe conf$$.file
15440if test -d conf$$.dir; then
15441  rm -f conf$$.dir/conf$$.file
15442else
15443  rm -f conf$$.dir
15444  mkdir conf$$.dir 2>/dev/null
15445fi
15446if (echo >conf$$.file) 2>/dev/null; then
15447  if ln -s conf$$.file conf$$ 2>/dev/null; then
15448    as_ln_s='ln -s'
15449    # ... but there are two gotchas:
15450    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15451    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15452    # In both cases, we have to default to `cp -pR'.
15453    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15454      as_ln_s='cp -pR'
15455  elif ln conf$$.file conf$$ 2>/dev/null; then
15456    as_ln_s=ln
15457  else
15458    as_ln_s='cp -pR'
15459  fi
15460else
15461  as_ln_s='cp -pR'
15462fi
15463rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15464rmdir conf$$.dir 2>/dev/null
15465
15466
15467# as_fn_mkdir_p
15468# -------------
15469# Create "$as_dir" as a directory, including parents if necessary.
15470as_fn_mkdir_p ()
15471{
15472
15473  case $as_dir in #(
15474  -*) as_dir=./$as_dir;;
15475  esac
15476  test -d "$as_dir" || eval $as_mkdir_p || {
15477    as_dirs=
15478    while :; do
15479      case $as_dir in #(
15480      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15481      *) as_qdir=$as_dir;;
15482      esac
15483      as_dirs="'$as_qdir' $as_dirs"
15484      as_dir=`$as_dirname -- "$as_dir" ||
15485$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15486	 X"$as_dir" : 'X\(//\)[^/]' \| \
15487	 X"$as_dir" : 'X\(//\)$' \| \
15488	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15489printf "%s\n" X"$as_dir" |
15490    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15491	    s//\1/
15492	    q
15493	  }
15494	  /^X\(\/\/\)[^/].*/{
15495	    s//\1/
15496	    q
15497	  }
15498	  /^X\(\/\/\)$/{
15499	    s//\1/
15500	    q
15501	  }
15502	  /^X\(\/\).*/{
15503	    s//\1/
15504	    q
15505	  }
15506	  s/.*/./; q'`
15507      test -d "$as_dir" && break
15508    done
15509    test -z "$as_dirs" || eval "mkdir $as_dirs"
15510  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15511
15512
15513} # as_fn_mkdir_p
15514if mkdir -p . 2>/dev/null; then
15515  as_mkdir_p='mkdir -p "$as_dir"'
15516else
15517  test -d ./-p && rmdir ./-p
15518  as_mkdir_p=false
15519fi
15520
15521
15522# as_fn_executable_p FILE
15523# -----------------------
15524# Test if FILE is an executable regular file.
15525as_fn_executable_p ()
15526{
15527  test -f "$1" && test -x "$1"
15528} # as_fn_executable_p
15529as_test_x='test -x'
15530as_executable_p=as_fn_executable_p
15531
15532# Sed expression to map a string onto a valid CPP name.
15533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15534
15535# Sed expression to map a string onto a valid variable name.
15536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15537
15538
15539exec 6>&1
15540## ----------------------------------- ##
15541## Main body of $CONFIG_STATUS script. ##
15542## ----------------------------------- ##
15543_ASEOF
15544test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15545
15546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15547# Save the log message, to keep $0 and so on meaningful, and to
15548# report actual input values of CONFIG_FILES etc. instead of their
15549# values after options handling.
15550ac_log="
15551This file was extended by iperf $as_me 3.10, which was
15552generated by GNU Autoconf 2.71.  Invocation command line was
15553
15554  CONFIG_FILES    = $CONFIG_FILES
15555  CONFIG_HEADERS  = $CONFIG_HEADERS
15556  CONFIG_LINKS    = $CONFIG_LINKS
15557  CONFIG_COMMANDS = $CONFIG_COMMANDS
15558  $ $0 $@
15559
15560on `(hostname || uname -n) 2>/dev/null | sed 1q`
15561"
15562
15563_ACEOF
15564
15565case $ac_config_files in *"
15566"*) set x $ac_config_files; shift; ac_config_files=$*;;
15567esac
15568
15569case $ac_config_headers in *"
15570"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15571esac
15572
15573
15574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575# Files that config.status was made for.
15576config_files="$ac_config_files"
15577config_headers="$ac_config_headers"
15578config_commands="$ac_config_commands"
15579
15580_ACEOF
15581
15582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583ac_cs_usage="\
15584\`$as_me' instantiates files and other configuration actions
15585from templates according to the current configuration.  Unless the files
15586and actions are specified as TAGs, all are instantiated by default.
15587
15588Usage: $0 [OPTION]... [TAG]...
15589
15590  -h, --help       print this help, then exit
15591  -V, --version    print version number and configuration settings, then exit
15592      --config     print configuration, then exit
15593  -q, --quiet, --silent
15594                   do not print progress messages
15595  -d, --debug      don't remove temporary files
15596      --recheck    update $as_me by reconfiguring in the same conditions
15597      --file=FILE[:TEMPLATE]
15598                   instantiate the configuration file FILE
15599      --header=FILE[:TEMPLATE]
15600                   instantiate the configuration header FILE
15601
15602Configuration files:
15603$config_files
15604
15605Configuration headers:
15606$config_headers
15607
15608Configuration commands:
15609$config_commands
15610
15611Report bugs to <https://github.com/esnet/iperf>.
15612iperf home page: <https://software.es.net/iperf/>."
15613
15614_ACEOF
15615ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15616ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15618ac_cs_config='$ac_cs_config_escaped'
15619ac_cs_version="\\
15620iperf config.status 3.10
15621configured by $0, generated by GNU Autoconf 2.71,
15622  with options \\"\$ac_cs_config\\"
15623
15624Copyright (C) 2021 Free Software Foundation, Inc.
15625This config.status script is free software; the Free Software Foundation
15626gives unlimited permission to copy, distribute and modify it."
15627
15628ac_pwd='$ac_pwd'
15629srcdir='$srcdir'
15630INSTALL='$INSTALL'
15631MKDIR_P='$MKDIR_P'
15632AWK='$AWK'
15633test -n "\$AWK" || AWK=awk
15634_ACEOF
15635
15636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15637# The default lists apply if the user does not specify any file.
15638ac_need_defaults=:
15639while test $# != 0
15640do
15641  case $1 in
15642  --*=?*)
15643    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15644    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15645    ac_shift=:
15646    ;;
15647  --*=)
15648    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15649    ac_optarg=
15650    ac_shift=:
15651    ;;
15652  *)
15653    ac_option=$1
15654    ac_optarg=$2
15655    ac_shift=shift
15656    ;;
15657  esac
15658
15659  case $ac_option in
15660  # Handling of the options.
15661  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15662    ac_cs_recheck=: ;;
15663  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15664    printf "%s\n" "$ac_cs_version"; exit ;;
15665  --config | --confi | --conf | --con | --co | --c )
15666    printf "%s\n" "$ac_cs_config"; exit ;;
15667  --debug | --debu | --deb | --de | --d | -d )
15668    debug=: ;;
15669  --file | --fil | --fi | --f )
15670    $ac_shift
15671    case $ac_optarg in
15672    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15673    '') as_fn_error $? "missing file argument" ;;
15674    esac
15675    as_fn_append CONFIG_FILES " '$ac_optarg'"
15676    ac_need_defaults=false;;
15677  --header | --heade | --head | --hea )
15678    $ac_shift
15679    case $ac_optarg in
15680    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15681    esac
15682    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15683    ac_need_defaults=false;;
15684  --he | --h)
15685    # Conflict between --help and --header
15686    as_fn_error $? "ambiguous option: \`$1'
15687Try \`$0 --help' for more information.";;
15688  --help | --hel | -h )
15689    printf "%s\n" "$ac_cs_usage"; exit ;;
15690  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15691  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15692    ac_cs_silent=: ;;
15693
15694  # This is an error.
15695  -*) as_fn_error $? "unrecognized option: \`$1'
15696Try \`$0 --help' for more information." ;;
15697
15698  *) as_fn_append ac_config_targets " $1"
15699     ac_need_defaults=false ;;
15700
15701  esac
15702  shift
15703done
15704
15705ac_configure_extra_args=
15706
15707if $ac_cs_silent; then
15708  exec 6>/dev/null
15709  ac_configure_extra_args="$ac_configure_extra_args --silent"
15710fi
15711
15712_ACEOF
15713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15714if \$ac_cs_recheck; then
15715  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15716  shift
15717  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15718  CONFIG_SHELL='$SHELL'
15719  export CONFIG_SHELL
15720  exec "\$@"
15721fi
15722
15723_ACEOF
15724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725exec 5>>config.log
15726{
15727  echo
15728  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15729## Running $as_me. ##
15730_ASBOX
15731  printf "%s\n" "$ac_log"
15732} >&5
15733
15734_ACEOF
15735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15736#
15737# INIT-COMMANDS
15738#
15739AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15740
15741
15742# The HP-UX ksh and POSIX shell print the target directory to stdout
15743# if CDPATH is set.
15744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15745
15746sed_quote_subst='$sed_quote_subst'
15747double_quote_subst='$double_quote_subst'
15748delay_variable_subst='$delay_variable_subst'
15749macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15750macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15751enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15752enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15753pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15754enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15755shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15756SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15757ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15758PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15759host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15760host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15761host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15762build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15763build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15764build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15765SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15766Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15767GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15768EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15769FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15770LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15771NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15772LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15773max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15774ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15775exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15776lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15777lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15778lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15779lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15780lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15781reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15782reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15783OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15784deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15785file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15786file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15787want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15788DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15789sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15790AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15791AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15792archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15793STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15794RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15795old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15796old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15797old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15798lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15799CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15800CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15801compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15802GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15803lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15804lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15805lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15806lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15807lt_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"`'
15808lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15809nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15810lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15811lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15812objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15813MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15814lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15815lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15816lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15817lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15818lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15819need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15820MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15821DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15822NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15823LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15824OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15825OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15826libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15827shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15828extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15829archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15830enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15831export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15832whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15833compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15834old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15835old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15836archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15837archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15838module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15839module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15840with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15841allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15842no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15843hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15844hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15845hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15846hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15847hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15848hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15849hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15850inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15851link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15852always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15853export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15854exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15855include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15856prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15857postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15858file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15859variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15860need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15861need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15862version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15863runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15864shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15865shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15866libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15867library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15868soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15869install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15870postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15871postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15872finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15873finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15874hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15875sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15876configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15877configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15878hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15879enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15880enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15881enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15882old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15883striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15884
15885LTCC='$LTCC'
15886LTCFLAGS='$LTCFLAGS'
15887compiler='$compiler_DEFAULT'
15888
15889# A function that is used when there is no print builtin or printf.
15890func_fallback_echo ()
15891{
15892  eval 'cat <<_LTECHO_EOF
15893\$1
15894_LTECHO_EOF'
15895}
15896
15897# Quote evaled strings.
15898for var in SHELL \
15899ECHO \
15900PATH_SEPARATOR \
15901SED \
15902GREP \
15903EGREP \
15904FGREP \
15905LD \
15906NM \
15907LN_S \
15908lt_SP2NL \
15909lt_NL2SP \
15910reload_flag \
15911OBJDUMP \
15912deplibs_check_method \
15913file_magic_cmd \
15914file_magic_glob \
15915want_nocaseglob \
15916DLLTOOL \
15917sharedlib_from_linklib_cmd \
15918AR \
15919AR_FLAGS \
15920archiver_list_spec \
15921STRIP \
15922RANLIB \
15923CC \
15924CFLAGS \
15925compiler \
15926lt_cv_sys_global_symbol_pipe \
15927lt_cv_sys_global_symbol_to_cdecl \
15928lt_cv_sys_global_symbol_to_import \
15929lt_cv_sys_global_symbol_to_c_name_address \
15930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15931lt_cv_nm_interface \
15932nm_file_list_spec \
15933lt_cv_truncate_bin \
15934lt_prog_compiler_no_builtin_flag \
15935lt_prog_compiler_pic \
15936lt_prog_compiler_wl \
15937lt_prog_compiler_static \
15938lt_cv_prog_compiler_c_o \
15939need_locks \
15940MANIFEST_TOOL \
15941DSYMUTIL \
15942NMEDIT \
15943LIPO \
15944OTOOL \
15945OTOOL64 \
15946shrext_cmds \
15947export_dynamic_flag_spec \
15948whole_archive_flag_spec \
15949compiler_needs_object \
15950with_gnu_ld \
15951allow_undefined_flag \
15952no_undefined_flag \
15953hardcode_libdir_flag_spec \
15954hardcode_libdir_separator \
15955exclude_expsyms \
15956include_expsyms \
15957file_list_spec \
15958variables_saved_for_relink \
15959libname_spec \
15960library_names_spec \
15961soname_spec \
15962install_override_mode \
15963finish_eval \
15964old_striplib \
15965striplib; do
15966    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15967    *[\\\\\\\`\\"\\\$]*)
15968      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15969      ;;
15970    *)
15971      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15972      ;;
15973    esac
15974done
15975
15976# Double-quote double-evaled strings.
15977for var in reload_cmds \
15978old_postinstall_cmds \
15979old_postuninstall_cmds \
15980old_archive_cmds \
15981extract_expsyms_cmds \
15982old_archive_from_new_cmds \
15983old_archive_from_expsyms_cmds \
15984archive_cmds \
15985archive_expsym_cmds \
15986module_cmds \
15987module_expsym_cmds \
15988export_symbols_cmds \
15989prelink_cmds \
15990postlink_cmds \
15991postinstall_cmds \
15992postuninstall_cmds \
15993finish_cmds \
15994sys_lib_search_path_spec \
15995configure_time_dlsearch_path \
15996configure_time_lt_sys_library_path; do
15997    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15998    *[\\\\\\\`\\"\\\$]*)
15999      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16000      ;;
16001    *)
16002      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16003      ;;
16004    esac
16005done
16006
16007ac_aux_dir='$ac_aux_dir'
16008
16009# See if we are running on zsh, and set the options that allow our
16010# commands through without removal of \ escapes INIT.
16011if test -n "\${ZSH_VERSION+set}"; then
16012   setopt NO_GLOB_SUBST
16013fi
16014
16015
16016    PACKAGE='$PACKAGE'
16017    VERSION='$VERSION'
16018    RM='$RM'
16019    ofile='$ofile'
16020
16021
16022
16023
16024_ACEOF
16025
16026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027
16028# Handling of arguments.
16029for ac_config_target in $ac_config_targets
16030do
16031  case $ac_config_target in
16032    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16033    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16034    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
16035    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16036    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16037    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
16038    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16039    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
16040
16041  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16042  esac
16043done
16044
16045
16046# If the user did not use the arguments to specify the items to instantiate,
16047# then the envvar interface is used.  Set only those that are not.
16048# We use the long form for the default assignment because of an extremely
16049# bizarre bug on SunOS 4.1.3.
16050if $ac_need_defaults; then
16051  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16052  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16053  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16054fi
16055
16056# Have a temporary directory for convenience.  Make it in the build tree
16057# simply because there is no reason against having it here, and in addition,
16058# creating and moving files from /tmp can sometimes cause problems.
16059# Hook for its removal unless debugging.
16060# Note that there is a small window in which the directory will not be cleaned:
16061# after its creation but before its name has been assigned to `$tmp'.
16062$debug ||
16063{
16064  tmp= ac_tmp=
16065  trap 'exit_status=$?
16066  : "${ac_tmp:=$tmp}"
16067  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16068' 0
16069  trap 'as_fn_exit 1' 1 2 13 15
16070}
16071# Create a (secure) tmp directory for tmp files.
16072
16073{
16074  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16075  test -d "$tmp"
16076}  ||
16077{
16078  tmp=./conf$$-$RANDOM
16079  (umask 077 && mkdir "$tmp")
16080} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16081ac_tmp=$tmp
16082
16083# Set up the scripts for CONFIG_FILES section.
16084# No need to generate them if there are no CONFIG_FILES.
16085# This happens for instance with `./config.status config.h'.
16086if test -n "$CONFIG_FILES"; then
16087
16088
16089ac_cr=`echo X | tr X '\015'`
16090# On cygwin, bash can eat \r inside `` if the user requested igncr.
16091# But we know of no other shell where ac_cr would be empty at this
16092# point, so we can use a bashism as a fallback.
16093if test "x$ac_cr" = x; then
16094  eval ac_cr=\$\'\\r\'
16095fi
16096ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16097if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16098  ac_cs_awk_cr='\\r'
16099else
16100  ac_cs_awk_cr=$ac_cr
16101fi
16102
16103echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16104_ACEOF
16105
16106
16107{
16108  echo "cat >conf$$subs.awk <<_ACEOF" &&
16109  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16110  echo "_ACEOF"
16111} >conf$$subs.sh ||
16112  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16113ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16114ac_delim='%!_!# '
16115for ac_last_try in false false false false false :; do
16116  . ./conf$$subs.sh ||
16117    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16118
16119  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16120  if test $ac_delim_n = $ac_delim_num; then
16121    break
16122  elif $ac_last_try; then
16123    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16124  else
16125    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16126  fi
16127done
16128rm -f conf$$subs.sh
16129
16130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16132_ACEOF
16133sed -n '
16134h
16135s/^/S["/; s/!.*/"]=/
16136p
16137g
16138s/^[^!]*!//
16139:repl
16140t repl
16141s/'"$ac_delim"'$//
16142t delim
16143:nl
16144h
16145s/\(.\{148\}\)..*/\1/
16146t more1
16147s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16148p
16149n
16150b repl
16151:more1
16152s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16153p
16154g
16155s/.\{148\}//
16156t nl
16157:delim
16158h
16159s/\(.\{148\}\)..*/\1/
16160t more2
16161s/["\\]/\\&/g; s/^/"/; s/$/"/
16162p
16163b
16164:more2
16165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16166p
16167g
16168s/.\{148\}//
16169t delim
16170' <conf$$subs.awk | sed '
16171/^[^""]/{
16172  N
16173  s/\n//
16174}
16175' >>$CONFIG_STATUS || ac_write_fail=1
16176rm -f conf$$subs.awk
16177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178_ACAWK
16179cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16180  for (key in S) S_is_set[key] = 1
16181  FS = ""
16182
16183}
16184{
16185  line = $ 0
16186  nfields = split(line, field, "@")
16187  substed = 0
16188  len = length(field[1])
16189  for (i = 2; i < nfields; i++) {
16190    key = field[i]
16191    keylen = length(key)
16192    if (S_is_set[key]) {
16193      value = S[key]
16194      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16195      len += length(value) + length(field[++i])
16196      substed = 1
16197    } else
16198      len += 1 + keylen
16199  }
16200
16201  print line
16202}
16203
16204_ACAWK
16205_ACEOF
16206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16207if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16208  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16209else
16210  cat
16211fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16212  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16213_ACEOF
16214
16215# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16216# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16217# trailing colons and then remove the whole line if VPATH becomes empty
16218# (actually we leave an empty line to preserve line numbers).
16219if test "x$srcdir" = x.; then
16220  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16221h
16222s///
16223s/^/:/
16224s/[	 ]*$/:/
16225s/:\$(srcdir):/:/g
16226s/:\${srcdir}:/:/g
16227s/:@srcdir@:/:/g
16228s/^:*//
16229s/:*$//
16230x
16231s/\(=[	 ]*\).*/\1/
16232G
16233s/\n//
16234s/^[^=]*=[	 ]*$//
16235}'
16236fi
16237
16238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239fi # test -n "$CONFIG_FILES"
16240
16241# Set up the scripts for CONFIG_HEADERS section.
16242# No need to generate them if there are no CONFIG_HEADERS.
16243# This happens for instance with `./config.status Makefile'.
16244if test -n "$CONFIG_HEADERS"; then
16245cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16246BEGIN {
16247_ACEOF
16248
16249# Transform confdefs.h into an awk script `defines.awk', embedded as
16250# here-document in config.status, that substitutes the proper values into
16251# config.h.in to produce config.h.
16252
16253# Create a delimiter string that does not exist in confdefs.h, to ease
16254# handling of long lines.
16255ac_delim='%!_!# '
16256for ac_last_try in false false :; do
16257  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16258  if test -z "$ac_tt"; then
16259    break
16260  elif $ac_last_try; then
16261    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16262  else
16263    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16264  fi
16265done
16266
16267# For the awk script, D is an array of macro values keyed by name,
16268# likewise P contains macro parameters if any.  Preserve backslash
16269# newline sequences.
16270
16271ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16272sed -n '
16273s/.\{148\}/&'"$ac_delim"'/g
16274t rset
16275:rset
16276s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16277t def
16278d
16279:def
16280s/\\$//
16281t bsnl
16282s/["\\]/\\&/g
16283s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16284D["\1"]=" \3"/p
16285s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16286d
16287:bsnl
16288s/["\\]/\\&/g
16289s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16290D["\1"]=" \3\\\\\\n"\\/p
16291t cont
16292s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16293t cont
16294d
16295:cont
16296n
16297s/.\{148\}/&'"$ac_delim"'/g
16298t clear
16299:clear
16300s/\\$//
16301t bsnlc
16302s/["\\]/\\&/g; s/^/"/; s/$/"/p
16303d
16304:bsnlc
16305s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16306b cont
16307' <confdefs.h | sed '
16308s/'"$ac_delim"'/"\\\
16309"/g' >>$CONFIG_STATUS || ac_write_fail=1
16310
16311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16312  for (key in D) D_is_set[key] = 1
16313  FS = ""
16314}
16315/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16316  line = \$ 0
16317  split(line, arg, " ")
16318  if (arg[1] == "#") {
16319    defundef = arg[2]
16320    mac1 = arg[3]
16321  } else {
16322    defundef = substr(arg[1], 2)
16323    mac1 = arg[2]
16324  }
16325  split(mac1, mac2, "(") #)
16326  macro = mac2[1]
16327  prefix = substr(line, 1, index(line, defundef) - 1)
16328  if (D_is_set[macro]) {
16329    # Preserve the white space surrounding the "#".
16330    print prefix "define", macro P[macro] D[macro]
16331    next
16332  } else {
16333    # Replace #undef with comments.  This is necessary, for example,
16334    # in the case of _POSIX_SOURCE, which is predefined and required
16335    # on some systems where configure will not decide to define it.
16336    if (defundef == "undef") {
16337      print "/*", prefix defundef, macro, "*/"
16338      next
16339    }
16340  }
16341}
16342{ print }
16343_ACAWK
16344_ACEOF
16345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16346  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16347fi # test -n "$CONFIG_HEADERS"
16348
16349
16350eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16351shift
16352for ac_tag
16353do
16354  case $ac_tag in
16355  :[FHLC]) ac_mode=$ac_tag; continue;;
16356  esac
16357  case $ac_mode$ac_tag in
16358  :[FHL]*:*);;
16359  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16360  :[FH]-) ac_tag=-:-;;
16361  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16362  esac
16363  ac_save_IFS=$IFS
16364  IFS=:
16365  set x $ac_tag
16366  IFS=$ac_save_IFS
16367  shift
16368  ac_file=$1
16369  shift
16370
16371  case $ac_mode in
16372  :L) ac_source=$1;;
16373  :[FH])
16374    ac_file_inputs=
16375    for ac_f
16376    do
16377      case $ac_f in
16378      -) ac_f="$ac_tmp/stdin";;
16379      *) # Look for the file first in the build tree, then in the source tree
16380	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16381	 # because $ac_f cannot contain `:'.
16382	 test -f "$ac_f" ||
16383	   case $ac_f in
16384	   [\\/$]*) false;;
16385	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16386	   esac ||
16387	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16388      esac
16389      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16390      as_fn_append ac_file_inputs " '$ac_f'"
16391    done
16392
16393    # Let's still pretend it is `configure' which instantiates (i.e., don't
16394    # use $as_me), people would be surprised to read:
16395    #    /* config.h.  Generated by config.status.  */
16396    configure_input='Generated from '`
16397	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16398	`' by configure.'
16399    if test x"$ac_file" != x-; then
16400      configure_input="$ac_file.  $configure_input"
16401      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16402printf "%s\n" "$as_me: creating $ac_file" >&6;}
16403    fi
16404    # Neutralize special characters interpreted by sed in replacement strings.
16405    case $configure_input in #(
16406    *\&* | *\|* | *\\* )
16407       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16408       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16409    *) ac_sed_conf_input=$configure_input;;
16410    esac
16411
16412    case $ac_tag in
16413    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16414      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16415    esac
16416    ;;
16417  esac
16418
16419  ac_dir=`$as_dirname -- "$ac_file" ||
16420$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16421	 X"$ac_file" : 'X\(//\)[^/]' \| \
16422	 X"$ac_file" : 'X\(//\)$' \| \
16423	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16424printf "%s\n" X"$ac_file" |
16425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16426	    s//\1/
16427	    q
16428	  }
16429	  /^X\(\/\/\)[^/].*/{
16430	    s//\1/
16431	    q
16432	  }
16433	  /^X\(\/\/\)$/{
16434	    s//\1/
16435	    q
16436	  }
16437	  /^X\(\/\).*/{
16438	    s//\1/
16439	    q
16440	  }
16441	  s/.*/./; q'`
16442  as_dir="$ac_dir"; as_fn_mkdir_p
16443  ac_builddir=.
16444
16445case "$ac_dir" in
16446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16447*)
16448  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16449  # A ".." for each directory in $ac_dir_suffix.
16450  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16451  case $ac_top_builddir_sub in
16452  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16453  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16454  esac ;;
16455esac
16456ac_abs_top_builddir=$ac_pwd
16457ac_abs_builddir=$ac_pwd$ac_dir_suffix
16458# for backward compatibility:
16459ac_top_builddir=$ac_top_build_prefix
16460
16461case $srcdir in
16462  .)  # We are building in place.
16463    ac_srcdir=.
16464    ac_top_srcdir=$ac_top_builddir_sub
16465    ac_abs_top_srcdir=$ac_pwd ;;
16466  [\\/]* | ?:[\\/]* )  # Absolute name.
16467    ac_srcdir=$srcdir$ac_dir_suffix;
16468    ac_top_srcdir=$srcdir
16469    ac_abs_top_srcdir=$srcdir ;;
16470  *) # Relative name.
16471    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16472    ac_top_srcdir=$ac_top_build_prefix$srcdir
16473    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16474esac
16475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16476
16477
16478  case $ac_mode in
16479  :F)
16480  #
16481  # CONFIG_FILE
16482  #
16483
16484  case $INSTALL in
16485  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16486  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16487  esac
16488  ac_MKDIR_P=$MKDIR_P
16489  case $MKDIR_P in
16490  [\\/$]* | ?:[\\/]* ) ;;
16491  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16492  esac
16493_ACEOF
16494
16495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16496# If the template does not know about datarootdir, expand it.
16497# FIXME: This hack should be removed a few years after 2.60.
16498ac_datarootdir_hack=; ac_datarootdir_seen=
16499ac_sed_dataroot='
16500/datarootdir/ {
16501  p
16502  q
16503}
16504/@datadir@/p
16505/@docdir@/p
16506/@infodir@/p
16507/@localedir@/p
16508/@mandir@/p'
16509case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16510*datarootdir*) ac_datarootdir_seen=yes;;
16511*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16513printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16514_ACEOF
16515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16516  ac_datarootdir_hack='
16517  s&@datadir@&$datadir&g
16518  s&@docdir@&$docdir&g
16519  s&@infodir@&$infodir&g
16520  s&@localedir@&$localedir&g
16521  s&@mandir@&$mandir&g
16522  s&\\\${datarootdir}&$datarootdir&g' ;;
16523esac
16524_ACEOF
16525
16526# Neutralize VPATH when `$srcdir' = `.'.
16527# Shell code in configure.ac might set extrasub.
16528# FIXME: do we really want to maintain this feature?
16529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16530ac_sed_extra="$ac_vpsub
16531$extrasub
16532_ACEOF
16533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16534:t
16535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16536s|@configure_input@|$ac_sed_conf_input|;t t
16537s&@top_builddir@&$ac_top_builddir_sub&;t t
16538s&@top_build_prefix@&$ac_top_build_prefix&;t t
16539s&@srcdir@&$ac_srcdir&;t t
16540s&@abs_srcdir@&$ac_abs_srcdir&;t t
16541s&@top_srcdir@&$ac_top_srcdir&;t t
16542s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16543s&@builddir@&$ac_builddir&;t t
16544s&@abs_builddir@&$ac_abs_builddir&;t t
16545s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16546s&@INSTALL@&$ac_INSTALL&;t t
16547s&@MKDIR_P@&$ac_MKDIR_P&;t t
16548$ac_datarootdir_hack
16549"
16550eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16551  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16552
16553test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16554  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16555  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16556      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16558which seems to be undefined.  Please make sure it is defined" >&5
16559printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16560which seems to be undefined.  Please make sure it is defined" >&2;}
16561
16562  rm -f "$ac_tmp/stdin"
16563  case $ac_file in
16564  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16565  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16566  esac \
16567  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16568 ;;
16569  :H)
16570  #
16571  # CONFIG_HEADER
16572  #
16573  if test x"$ac_file" != x-; then
16574    {
16575      printf "%s\n" "/* $configure_input  */" >&1 \
16576      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16577    } >"$ac_tmp/config.h" \
16578      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16579    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16580      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16581printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16582    else
16583      rm -f "$ac_file"
16584      mv "$ac_tmp/config.h" "$ac_file" \
16585	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16586    fi
16587  else
16588    printf "%s\n" "/* $configure_input  */" >&1 \
16589      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16590      || as_fn_error $? "could not create -" "$LINENO" 5
16591  fi
16592# Compute "$ac_file"'s index in $config_headers.
16593_am_arg="$ac_file"
16594_am_stamp_count=1
16595for _am_header in $config_headers :; do
16596  case $_am_header in
16597    $_am_arg | $_am_arg:* )
16598      break ;;
16599    * )
16600      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16601  esac
16602done
16603echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16604$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16605	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16606	 X"$_am_arg" : 'X\(//\)$' \| \
16607	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16608printf "%s\n" X"$_am_arg" |
16609    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16610	    s//\1/
16611	    q
16612	  }
16613	  /^X\(\/\/\)[^/].*/{
16614	    s//\1/
16615	    q
16616	  }
16617	  /^X\(\/\/\)$/{
16618	    s//\1/
16619	    q
16620	  }
16621	  /^X\(\/\).*/{
16622	    s//\1/
16623	    q
16624	  }
16625	  s/.*/./; q'`/stamp-h$_am_stamp_count
16626 ;;
16627
16628  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16629printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16630 ;;
16631  esac
16632
16633
16634  case $ac_file$ac_mode in
16635    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16636  # Older Autoconf quotes --file arguments for eval, but not when files
16637  # are listed without --file.  Let's play safe and only enable the eval
16638  # if we detect the quoting.
16639  # TODO: see whether this extra hack can be removed once we start
16640  # requiring Autoconf 2.70 or later.
16641  case $CONFIG_FILES in #(
16642  *\'*) :
16643    eval set x "$CONFIG_FILES" ;; #(
16644  *) :
16645    set x $CONFIG_FILES ;; #(
16646  *) :
16647     ;;
16648esac
16649  shift
16650  # Used to flag and report bootstrapping failures.
16651  am_rc=0
16652  for am_mf
16653  do
16654    # Strip MF so we end up with the name of the file.
16655    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16656    # Check whether this is an Automake generated Makefile which includes
16657    # dependency-tracking related rules and includes.
16658    # Grep'ing the whole file directly is not great: AIX grep has a line
16659    # limit of 2048, but all sed's we know have understand at least 4000.
16660    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16661      || continue
16662    am_dirpart=`$as_dirname -- "$am_mf" ||
16663$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16664	 X"$am_mf" : 'X\(//\)[^/]' \| \
16665	 X"$am_mf" : 'X\(//\)$' \| \
16666	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16667printf "%s\n" X"$am_mf" |
16668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16669	    s//\1/
16670	    q
16671	  }
16672	  /^X\(\/\/\)[^/].*/{
16673	    s//\1/
16674	    q
16675	  }
16676	  /^X\(\/\/\)$/{
16677	    s//\1/
16678	    q
16679	  }
16680	  /^X\(\/\).*/{
16681	    s//\1/
16682	    q
16683	  }
16684	  s/.*/./; q'`
16685    am_filepart=`$as_basename -- "$am_mf" ||
16686$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16687	 X"$am_mf" : 'X\(//\)$' \| \
16688	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16689printf "%s\n" X/"$am_mf" |
16690    sed '/^.*\/\([^/][^/]*\)\/*$/{
16691	    s//\1/
16692	    q
16693	  }
16694	  /^X\/\(\/\/\)$/{
16695	    s//\1/
16696	    q
16697	  }
16698	  /^X\/\(\/\).*/{
16699	    s//\1/
16700	    q
16701	  }
16702	  s/.*/./; q'`
16703    { echo "$as_me:$LINENO: cd "$am_dirpart" \
16704      && sed -e '/# am--include-marker/d' "$am_filepart" \
16705        | $MAKE -f - am--depfiles" >&5
16706   (cd "$am_dirpart" \
16707      && sed -e '/# am--include-marker/d' "$am_filepart" \
16708        | $MAKE -f - am--depfiles) >&5 2>&5
16709   ac_status=$?
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); } || am_rc=$?
16712  done
16713  if test $am_rc -ne 0; then
16714    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16715printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16716as_fn_error $? "Something went wrong bootstrapping makefile fragments
16717    for automatic dependency tracking.  If GNU make was not used, consider
16718    re-running the configure script with MAKE=\"gmake\" (or whatever is
16719    necessary).  You can also try re-running configure with the
16720    '--disable-dependency-tracking' option to at least be able to build
16721    the package (albeit without support for automatic dependency tracking).
16722See \`config.log' for more details" "$LINENO" 5; }
16723  fi
16724  { am_dirpart=; unset am_dirpart;}
16725  { am_filepart=; unset am_filepart;}
16726  { am_mf=; unset am_mf;}
16727  { am_rc=; unset am_rc;}
16728  rm -f conftest-deps.mk
16729}
16730 ;;
16731    "libtool":C)
16732
16733    # See if we are running on zsh, and set the options that allow our
16734    # commands through without removal of \ escapes.
16735    if test -n "${ZSH_VERSION+set}"; then
16736      setopt NO_GLOB_SUBST
16737    fi
16738
16739    cfgfile=${ofile}T
16740    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16741    $RM "$cfgfile"
16742
16743    cat <<_LT_EOF >> "$cfgfile"
16744#! $SHELL
16745# Generated automatically by $as_me ($PACKAGE) $VERSION
16746# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16747# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16748
16749# Provide generalized library-building support services.
16750# Written by Gordon Matzigkeit, 1996
16751
16752# Copyright (C) 2014 Free Software Foundation, Inc.
16753# This is free software; see the source for copying conditions.  There is NO
16754# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16755
16756# GNU Libtool is free software; you can redistribute it and/or modify
16757# it under the terms of the GNU General Public License as published by
16758# the Free Software Foundation; either version 2 of of the License, or
16759# (at your option) any later version.
16760#
16761# As a special exception to the GNU General Public License, if you
16762# distribute this file as part of a program or library that is built
16763# using GNU Libtool, you may include this file under the  same
16764# distribution terms that you use for the rest of that program.
16765#
16766# GNU Libtool is distributed in the hope that it will be useful, but
16767# WITHOUT ANY WARRANTY; without even the implied warranty of
16768# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16769# GNU General Public License for more details.
16770#
16771# You should have received a copy of the GNU General Public License
16772# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16773
16774
16775# The names of the tagged configurations supported by this script.
16776available_tags=''
16777
16778# Configured defaults for sys_lib_dlsearch_path munging.
16779: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16780
16781# ### BEGIN LIBTOOL CONFIG
16782
16783# Which release of libtool.m4 was used?
16784macro_version=$macro_version
16785macro_revision=$macro_revision
16786
16787# Whether or not to build shared libraries.
16788build_libtool_libs=$enable_shared
16789
16790# Whether or not to build static libraries.
16791build_old_libs=$enable_static
16792
16793# What type of objects to build.
16794pic_mode=$pic_mode
16795
16796# Whether or not to optimize for fast installation.
16797fast_install=$enable_fast_install
16798
16799# Shared archive member basename,for filename based shared library versioning on AIX.
16800shared_archive_member_spec=$shared_archive_member_spec
16801
16802# Shell to use when invoking shell scripts.
16803SHELL=$lt_SHELL
16804
16805# An echo program that protects backslashes.
16806ECHO=$lt_ECHO
16807
16808# The PATH separator for the build system.
16809PATH_SEPARATOR=$lt_PATH_SEPARATOR
16810
16811# The host system.
16812host_alias=$host_alias
16813host=$host
16814host_os=$host_os
16815
16816# The build system.
16817build_alias=$build_alias
16818build=$build
16819build_os=$build_os
16820
16821# A sed program that does not truncate output.
16822SED=$lt_SED
16823
16824# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16825Xsed="\$SED -e 1s/^X//"
16826
16827# A grep program that handles long lines.
16828GREP=$lt_GREP
16829
16830# An ERE matcher.
16831EGREP=$lt_EGREP
16832
16833# A literal string matcher.
16834FGREP=$lt_FGREP
16835
16836# A BSD- or MS-compatible name lister.
16837NM=$lt_NM
16838
16839# Whether we need soft or hard links.
16840LN_S=$lt_LN_S
16841
16842# What is the maximum length of a command?
16843max_cmd_len=$max_cmd_len
16844
16845# Object file suffix (normally "o").
16846objext=$ac_objext
16847
16848# Executable file suffix (normally "").
16849exeext=$exeext
16850
16851# whether the shell understands "unset".
16852lt_unset=$lt_unset
16853
16854# turn spaces into newlines.
16855SP2NL=$lt_lt_SP2NL
16856
16857# turn newlines into spaces.
16858NL2SP=$lt_lt_NL2SP
16859
16860# convert \$build file names to \$host format.
16861to_host_file_cmd=$lt_cv_to_host_file_cmd
16862
16863# convert \$build files to toolchain format.
16864to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16865
16866# An object symbol dumper.
16867OBJDUMP=$lt_OBJDUMP
16868
16869# Method to check whether dependent libraries are shared objects.
16870deplibs_check_method=$lt_deplibs_check_method
16871
16872# Command to use when deplibs_check_method = "file_magic".
16873file_magic_cmd=$lt_file_magic_cmd
16874
16875# How to find potential files when deplibs_check_method = "file_magic".
16876file_magic_glob=$lt_file_magic_glob
16877
16878# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16879want_nocaseglob=$lt_want_nocaseglob
16880
16881# DLL creation program.
16882DLLTOOL=$lt_DLLTOOL
16883
16884# Command to associate shared and link libraries.
16885sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16886
16887# The archiver.
16888AR=$lt_AR
16889
16890# Flags to create an archive.
16891AR_FLAGS=$lt_AR_FLAGS
16892
16893# How to feed a file listing to the archiver.
16894archiver_list_spec=$lt_archiver_list_spec
16895
16896# A symbol stripping program.
16897STRIP=$lt_STRIP
16898
16899# Commands used to install an old-style archive.
16900RANLIB=$lt_RANLIB
16901old_postinstall_cmds=$lt_old_postinstall_cmds
16902old_postuninstall_cmds=$lt_old_postuninstall_cmds
16903
16904# Whether to use a lock for old archive extraction.
16905lock_old_archive_extraction=$lock_old_archive_extraction
16906
16907# A C compiler.
16908LTCC=$lt_CC
16909
16910# LTCC compiler flags.
16911LTCFLAGS=$lt_CFLAGS
16912
16913# Take the output of nm and produce a listing of raw symbols and C names.
16914global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16915
16916# Transform the output of nm in a proper C declaration.
16917global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16918
16919# Transform the output of nm into a list of symbols to manually relocate.
16920global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16921
16922# Transform the output of nm in a C name address pair.
16923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16924
16925# Transform the output of nm in a C name address pair when lib prefix is needed.
16926global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16927
16928# The name lister interface.
16929nm_interface=$lt_lt_cv_nm_interface
16930
16931# Specify filename containing input files for \$NM.
16932nm_file_list_spec=$lt_nm_file_list_spec
16933
16934# The root where to search for dependent libraries,and where our libraries should be installed.
16935lt_sysroot=$lt_sysroot
16936
16937# Command to truncate a binary pipe.
16938lt_truncate_bin=$lt_lt_cv_truncate_bin
16939
16940# The name of the directory that contains temporary libtool files.
16941objdir=$objdir
16942
16943# Used to examine libraries when file_magic_cmd begins with "file".
16944MAGIC_CMD=$MAGIC_CMD
16945
16946# Must we lock files when doing compilation?
16947need_locks=$lt_need_locks
16948
16949# Manifest tool.
16950MANIFEST_TOOL=$lt_MANIFEST_TOOL
16951
16952# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16953DSYMUTIL=$lt_DSYMUTIL
16954
16955# Tool to change global to local symbols on Mac OS X.
16956NMEDIT=$lt_NMEDIT
16957
16958# Tool to manipulate fat objects and archives on Mac OS X.
16959LIPO=$lt_LIPO
16960
16961# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16962OTOOL=$lt_OTOOL
16963
16964# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16965OTOOL64=$lt_OTOOL64
16966
16967# Old archive suffix (normally "a").
16968libext=$libext
16969
16970# Shared library suffix (normally ".so").
16971shrext_cmds=$lt_shrext_cmds
16972
16973# The commands to extract the exported symbol list from a shared archive.
16974extract_expsyms_cmds=$lt_extract_expsyms_cmds
16975
16976# Variables whose values should be saved in libtool wrapper scripts and
16977# restored at link time.
16978variables_saved_for_relink=$lt_variables_saved_for_relink
16979
16980# Do we need the "lib" prefix for modules?
16981need_lib_prefix=$need_lib_prefix
16982
16983# Do we need a version for libraries?
16984need_version=$need_version
16985
16986# Library versioning type.
16987version_type=$version_type
16988
16989# Shared library runtime path variable.
16990runpath_var=$runpath_var
16991
16992# Shared library path variable.
16993shlibpath_var=$shlibpath_var
16994
16995# Is shlibpath searched before the hard-coded library search path?
16996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16997
16998# Format of library name prefix.
16999libname_spec=$lt_libname_spec
17000
17001# List of archive names.  First name is the real one, the rest are links.
17002# The last name is the one that the linker finds with -lNAME
17003library_names_spec=$lt_library_names_spec
17004
17005# The coded name of the library, if different from the real name.
17006soname_spec=$lt_soname_spec
17007
17008# Permission mode override for installation of shared libraries.
17009install_override_mode=$lt_install_override_mode
17010
17011# Command to use after installation of a shared archive.
17012postinstall_cmds=$lt_postinstall_cmds
17013
17014# Command to use after uninstallation of a shared archive.
17015postuninstall_cmds=$lt_postuninstall_cmds
17016
17017# Commands used to finish a libtool library installation in a directory.
17018finish_cmds=$lt_finish_cmds
17019
17020# As "finish_cmds", except a single script fragment to be evaled but
17021# not shown.
17022finish_eval=$lt_finish_eval
17023
17024# Whether we should hardcode library paths into libraries.
17025hardcode_into_libs=$hardcode_into_libs
17026
17027# Compile-time system search path for libraries.
17028sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17029
17030# Detected run-time system search path for libraries.
17031sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17032
17033# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17034configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17035
17036# Whether dlopen is supported.
17037dlopen_support=$enable_dlopen
17038
17039# Whether dlopen of programs is supported.
17040dlopen_self=$enable_dlopen_self
17041
17042# Whether dlopen of statically linked programs is supported.
17043dlopen_self_static=$enable_dlopen_self_static
17044
17045# Commands to strip libraries.
17046old_striplib=$lt_old_striplib
17047striplib=$lt_striplib
17048
17049
17050# The linker used to build libraries.
17051LD=$lt_LD
17052
17053# How to create reloadable object files.
17054reload_flag=$lt_reload_flag
17055reload_cmds=$lt_reload_cmds
17056
17057# Commands used to build an old-style archive.
17058old_archive_cmds=$lt_old_archive_cmds
17059
17060# A language specific compiler.
17061CC=$lt_compiler
17062
17063# Is the compiler the GNU compiler?
17064with_gcc=$GCC
17065
17066# Compiler flag to turn off builtin functions.
17067no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17068
17069# Additional compiler flags for building library objects.
17070pic_flag=$lt_lt_prog_compiler_pic
17071
17072# How to pass a linker flag through the compiler.
17073wl=$lt_lt_prog_compiler_wl
17074
17075# Compiler flag to prevent dynamic linking.
17076link_static_flag=$lt_lt_prog_compiler_static
17077
17078# Does compiler simultaneously support -c and -o options?
17079compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17080
17081# Whether or not to add -lc for building shared libraries.
17082build_libtool_need_lc=$archive_cmds_need_lc
17083
17084# Whether or not to disallow shared libs when runtime libs are static.
17085allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17086
17087# Compiler flag to allow reflexive dlopens.
17088export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17089
17090# Compiler flag to generate shared objects directly from archives.
17091whole_archive_flag_spec=$lt_whole_archive_flag_spec
17092
17093# Whether the compiler copes with passing no objects directly.
17094compiler_needs_object=$lt_compiler_needs_object
17095
17096# Create an old-style archive from a shared archive.
17097old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17098
17099# Create a temporary old-style archive to link instead of a shared archive.
17100old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17101
17102# Commands used to build a shared archive.
17103archive_cmds=$lt_archive_cmds
17104archive_expsym_cmds=$lt_archive_expsym_cmds
17105
17106# Commands used to build a loadable module if different from building
17107# a shared archive.
17108module_cmds=$lt_module_cmds
17109module_expsym_cmds=$lt_module_expsym_cmds
17110
17111# Whether we are building with GNU ld or not.
17112with_gnu_ld=$lt_with_gnu_ld
17113
17114# Flag that allows shared libraries with undefined symbols to be built.
17115allow_undefined_flag=$lt_allow_undefined_flag
17116
17117# Flag that enforces no undefined symbols.
17118no_undefined_flag=$lt_no_undefined_flag
17119
17120# Flag to hardcode \$libdir into a binary during linking.
17121# This must work even if \$libdir does not exist
17122hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17123
17124# Whether we need a single "-rpath" flag with a separated argument.
17125hardcode_libdir_separator=$lt_hardcode_libdir_separator
17126
17127# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17128# DIR into the resulting binary.
17129hardcode_direct=$hardcode_direct
17130
17131# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17132# DIR into the resulting binary and the resulting library dependency is
17133# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17134# library is relocated.
17135hardcode_direct_absolute=$hardcode_direct_absolute
17136
17137# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17138# into the resulting binary.
17139hardcode_minus_L=$hardcode_minus_L
17140
17141# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17142# into the resulting binary.
17143hardcode_shlibpath_var=$hardcode_shlibpath_var
17144
17145# Set to "yes" if building a shared library automatically hardcodes DIR
17146# into the library and all subsequent libraries and executables linked
17147# against it.
17148hardcode_automatic=$hardcode_automatic
17149
17150# Set to yes if linker adds runtime paths of dependent libraries
17151# to runtime path list.
17152inherit_rpath=$inherit_rpath
17153
17154# Whether libtool must link a program against all its dependency libraries.
17155link_all_deplibs=$link_all_deplibs
17156
17157# Set to "yes" if exported symbols are required.
17158always_export_symbols=$always_export_symbols
17159
17160# The commands to list exported symbols.
17161export_symbols_cmds=$lt_export_symbols_cmds
17162
17163# Symbols that should not be listed in the preloaded symbols.
17164exclude_expsyms=$lt_exclude_expsyms
17165
17166# Symbols that must always be exported.
17167include_expsyms=$lt_include_expsyms
17168
17169# Commands necessary for linking programs (against libraries) with templates.
17170prelink_cmds=$lt_prelink_cmds
17171
17172# Commands necessary for finishing linking programs.
17173postlink_cmds=$lt_postlink_cmds
17174
17175# Specify filename containing input files.
17176file_list_spec=$lt_file_list_spec
17177
17178# How to hardcode a shared library path into an executable.
17179hardcode_action=$hardcode_action
17180
17181# ### END LIBTOOL CONFIG
17182
17183_LT_EOF
17184
17185    cat <<'_LT_EOF' >> "$cfgfile"
17186
17187# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17188
17189# func_munge_path_list VARIABLE PATH
17190# -----------------------------------
17191# VARIABLE is name of variable containing _space_ separated list of
17192# directories to be munged by the contents of PATH, which is string
17193# having a format:
17194# "DIR[:DIR]:"
17195#       string "DIR[ DIR]" will be prepended to VARIABLE
17196# ":DIR[:DIR]"
17197#       string "DIR[ DIR]" will be appended to VARIABLE
17198# "DIRP[:DIRP]::[DIRA:]DIRA"
17199#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17200#       "DIRA[ DIRA]" will be appended to VARIABLE
17201# "DIR[:DIR]"
17202#       VARIABLE will be replaced by "DIR[ DIR]"
17203func_munge_path_list ()
17204{
17205    case x$2 in
17206    x)
17207        ;;
17208    *:)
17209        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17210        ;;
17211    x:*)
17212        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17213        ;;
17214    *::*)
17215        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17216        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17217        ;;
17218    *)
17219        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17220        ;;
17221    esac
17222}
17223
17224
17225# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17226func_cc_basename ()
17227{
17228    for cc_temp in $*""; do
17229      case $cc_temp in
17230        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17231        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17232        \-*) ;;
17233        *) break;;
17234      esac
17235    done
17236    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17237}
17238
17239
17240# ### END FUNCTIONS SHARED WITH CONFIGURE
17241
17242_LT_EOF
17243
17244  case $host_os in
17245  aix3*)
17246    cat <<\_LT_EOF >> "$cfgfile"
17247# AIX sometimes has problems with the GCC collect2 program.  For some
17248# reason, if we set the COLLECT_NAMES environment variable, the problems
17249# vanish in a puff of smoke.
17250if test set != "${COLLECT_NAMES+set}"; then
17251  COLLECT_NAMES=
17252  export COLLECT_NAMES
17253fi
17254_LT_EOF
17255    ;;
17256  esac
17257
17258
17259
17260ltmain=$ac_aux_dir/ltmain.sh
17261
17262
17263  # We use sed instead of cat because bash on DJGPP gets confused if
17264  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17265  # text mode, it properly converts lines to CR/LF.  This bash problem
17266  # is reportedly fixed, but why not run on old versions too?
17267  sed '$q' "$ltmain" >> "$cfgfile" \
17268     || (rm -f "$cfgfile"; exit 1)
17269
17270   mv -f "$cfgfile" "$ofile" ||
17271    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17272  chmod +x "$ofile"
17273
17274 ;;
17275
17276  esac
17277done # for ac_tag
17278
17279
17280as_fn_exit 0
17281_ACEOF
17282ac_clean_files=$ac_clean_files_save
17283
17284test $ac_write_fail = 0 ||
17285  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17286
17287
17288# configure is writing to config.log, and then calls config.status.
17289# config.status does its own redirection, appending to config.log.
17290# Unfortunately, on DOS this fails, as config.log is still kept open
17291# by configure, so config.status won't be able to write to it; its
17292# output is simply discarded.  So we exec the FD to /dev/null,
17293# effectively closing config.log, so it can be properly (re)opened and
17294# appended to by config.status.  When coming back to configure, we
17295# need to make the FD available again.
17296if test "$no_create" != yes; then
17297  ac_cs_success=:
17298  ac_config_status_args=
17299  test "$silent" = yes &&
17300    ac_config_status_args="$ac_config_status_args --quiet"
17301  exec 5>/dev/null
17302  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17303  exec 5>>config.log
17304  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17305  # would make configure fail if this is the last instruction.
17306  $ac_cs_success || as_fn_exit 1
17307fi
17308if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17310printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17311fi
17312
17313
17314