xref: /iperf/configure (revision ff1ea4e5)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for iperf 3.5.
4#
5# Report bugs to <https://github.com/esnet/iperf>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell [email protected] and
278$0: https://github.com/esnet/iperf about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='iperf'
592PACKAGE_TARNAME='iperf'
593PACKAGE_VERSION='3.5'
594PACKAGE_STRING='iperf 3.5'
595PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
596PACKAGE_URL='http://software.es.net/iperf/'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638OPENSSL_LDFLAGS
639OPENSSL_LIBS
640OPENSSL_INCLUDES
641PKG_CONFIG
642CPP
643LT_SYS_LIBRARY_PATH
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650ac_ct_AR
651AR
652DLLTOOL
653OBJDUMP
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659EGREP
660GREP
661SED
662LIBTOOL
663LN_S
664RANLIB
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668am__nodep
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__include
673DEPDIR
674OBJEXT
675EXEEXT
676ac_ct_CC
677CPPFLAGS
678LDFLAGS
679CFLAGS
680CC
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689MAINT
690MAINTAINER_MODE_FALSE
691MAINTAINER_MODE_TRUE
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL
757am__quote'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_silent_rules
762enable_maintainer_mode
763enable_dependency_tracking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_aix_soname
769with_gnu_ld
770with_sysroot
771enable_libtool_lock
772with_openssl
773'
774      ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782LT_SYS_LIBRARY_PATH
783CPP'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239  elif test "x$build_alias" != "x$host_alias"; then
1240    cross_compiling=yes
1241  fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253  as_fn_error $? "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255  as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260  ac_srcdir_defaulted=yes
1261  # Try the directory containing this script, then the parent directory.
1262  ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265	 X"$as_myself" : 'X\(//\)$' \| \
1266	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)[^/].*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\/\)$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\).*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  s/.*/./; q'`
1285  srcdir=$ac_confdir
1286  if test ! -r "$srcdir/$ac_unique_file"; then
1287    srcdir=..
1288  fi
1289else
1290  ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299	pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302  srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_env_${ac_var}_value=\$${ac_var}
1313  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321  # Omit some internal or obsolete options to make the list less imposing.
1322  # This message is too long to be a string in the A/UX 3.1 sh.
1323  cat <<_ACEOF
1324\`configure' configures iperf 3.5 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334  -h, --help              display this help and exit
1335      --help=short        display options specific to this package
1336      --help=recursive    display the short help of all the included packages
1337  -V, --version           display version information and exit
1338  -q, --quiet, --silent   do not print \`checking ...' messages
1339      --cache-file=FILE   cache test results in FILE [disabled]
1340  -C, --config-cache      alias for \`--cache-file=config.cache'
1341  -n, --no-create         do not create output files
1342      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345  --prefix=PREFIX         install architecture-independent files in PREFIX
1346                          [$ac_default_prefix]
1347  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                          [PREFIX]
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
1358  --bindir=DIR            user executables [EPREFIX/bin]
1359  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360  --libexecdir=DIR        program executables [EPREFIX/libexec]
1361  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364  --libdir=DIR            object code libraries [EPREFIX/lib]
1365  --includedir=DIR        C header files [PREFIX/include]
1366  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369  --infodir=DIR           info documentation [DATAROOTDIR/info]
1370  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371  --mandir=DIR            man documentation [DATAROOTDIR/man]
1372  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1373  --htmldir=DIR           html documentation [DOCDIR]
1374  --dvidir=DIR            dvi documentation [DOCDIR]
1375  --pdfdir=DIR            pdf documentation [DOCDIR]
1376  --psdir=DIR             ps documentation [DOCDIR]
1377_ACEOF
1378
1379  cat <<\_ACEOF
1380
1381Program names:
1382  --program-prefix=PREFIX            prepend PREFIX to installed program names
1383  --program-suffix=SUFFIX            append SUFFIX to installed program names
1384  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386System types:
1387  --build=BUILD     configure for building on BUILD [guessed]
1388  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393  case $ac_init_help in
1394     short | recursive ) echo "Configuration of iperf 3.5:";;
1395   esac
1396  cat <<\_ACEOF
1397
1398Optional Features:
1399  --disable-option-checking  ignore unrecognized --enable/--with options
1400  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402  --enable-silent-rules   less verbose build output (undo: "make V=1")
1403  --disable-silent-rules  verbose build output (undo: "make V=0")
1404  --enable-maintainer-mode
1405                          enable make rules and dependencies not useful (and
1406                          sometimes confusing) to the casual installer
1407  --enable-dependency-tracking
1408                          do not reject slow dependency extractors
1409  --disable-dependency-tracking
1410                          speeds up one-time build
1411  --enable-shared[=PKGS]  build shared libraries [default=yes]
1412  --enable-static[=PKGS]  build static libraries [default=yes]
1413  --enable-fast-install[=PKGS]
1414                          optimize for fast installation [default=yes]
1415  --disable-libtool-lock  avoid locking (might break parallel builds)
1416
1417Optional Packages:
1418  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1419  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1420  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1421                          both]
1422  --with-aix-soname=aix|svr4|both
1423                          shared library versioning (aka "SONAME") variant to
1424                          provide on AIX, [default=aix].
1425  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1426  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1427                          compiler's sysroot if not specified).
1428  --with-openssl=DIR      root of the OpenSSL directory
1429
1430Some influential environment variables:
1431  CC          C compiler command
1432  CFLAGS      C compiler flags
1433  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1434              nonstandard directory <lib dir>
1435  LIBS        libraries to pass to the linker, e.g. -l<library>
1436  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1437              you have headers in a nonstandard directory <include dir>
1438  LT_SYS_LIBRARY_PATH
1439              User-defined run-time library search path.
1440  CPP         C preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to <https://github.com/esnet/iperf>.
1446iperf home page: <http://software.es.net/iperf/>.
1447_ACEOF
1448ac_status=$?
1449fi
1450
1451if test "$ac_init_help" = "recursive"; then
1452  # If there are subdirs, report their specific --help.
1453  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454    test -d "$ac_dir" ||
1455      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456      continue
1457    ac_builddir=.
1458
1459case "$ac_dir" in
1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461*)
1462  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463  # A ".." for each directory in $ac_dir_suffix.
1464  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465  case $ac_top_builddir_sub in
1466  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468  esac ;;
1469esac
1470ac_abs_top_builddir=$ac_pwd
1471ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472# for backward compatibility:
1473ac_top_builddir=$ac_top_build_prefix
1474
1475case $srcdir in
1476  .)  # We are building in place.
1477    ac_srcdir=.
1478    ac_top_srcdir=$ac_top_builddir_sub
1479    ac_abs_top_srcdir=$ac_pwd ;;
1480  [\\/]* | ?:[\\/]* )  # Absolute name.
1481    ac_srcdir=$srcdir$ac_dir_suffix;
1482    ac_top_srcdir=$srcdir
1483    ac_abs_top_srcdir=$srcdir ;;
1484  *) # Relative name.
1485    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486    ac_top_srcdir=$ac_top_build_prefix$srcdir
1487    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488esac
1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491    cd "$ac_dir" || { ac_status=$?; continue; }
1492    # Check for guested configure.
1493    if test -f "$ac_srcdir/configure.gnu"; then
1494      echo &&
1495      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496    elif test -f "$ac_srcdir/configure"; then
1497      echo &&
1498      $SHELL "$ac_srcdir/configure" --help=recursive
1499    else
1500      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501    fi || ac_status=$?
1502    cd "$ac_pwd" || { ac_status=$?; break; }
1503  done
1504fi
1505
1506test -n "$ac_init_help" && exit $ac_status
1507if $ac_init_version; then
1508  cat <<\_ACEOF
1509iperf configure 3.5
1510generated by GNU Autoconf 2.69
1511
1512Copyright (C) 2012 Free Software Foundation, Inc.
1513This configure script is free software; the Free Software Foundation
1514gives unlimited permission to copy, distribute and modify it.
1515_ACEOF
1516  exit
1517fi
1518
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
1522
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
1527{
1528  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529  rm -f conftest.$ac_objext
1530  if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533  *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537  (eval "$ac_compile") 2>conftest.err
1538  ac_status=$?
1539  if test -s conftest.err; then
1540    grep -v '^ *+' conftest.err >conftest.er1
1541    cat conftest.er1 >&5
1542    mv -f conftest.er1 conftest.err
1543  fi
1544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545  test $ac_status = 0; } && {
1546	 test -z "$ac_c_werror_flag" ||
1547	 test ! -s conftest.err
1548       } && test -s conftest.$ac_objext; then :
1549  ac_retval=0
1550else
1551  $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554	ac_retval=1
1555fi
1556  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557  as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_compile
1560
1561# ac_fn_c_try_link LINENO
1562# -----------------------
1563# Try to link conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_link ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  rm -f conftest.$ac_objext conftest$ac_exeext
1568  if { { ac_try="$ac_link"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_link") 2>conftest.err
1576  ac_status=$?
1577  if test -s conftest.err; then
1578    grep -v '^ *+' conftest.err >conftest.er1
1579    cat conftest.er1 >&5
1580    mv -f conftest.er1 conftest.err
1581  fi
1582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583  test $ac_status = 0; } && {
1584	 test -z "$ac_c_werror_flag" ||
1585	 test ! -s conftest.err
1586       } && test -s conftest$ac_exeext && {
1587	 test "$cross_compiling" = yes ||
1588	 test -x conftest$ac_exeext
1589       }; then :
1590  ac_retval=0
1591else
1592  $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595	ac_retval=1
1596fi
1597  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599  # interfere with the next link command; also delete a directory that is
1600  # left behind by Apple's compiler.  We do this before executing the actions.
1601  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603  as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_link
1606
1607# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608# -------------------------------------------------------
1609# Tests whether HEADER exists and can be compiled using the include files in
1610# INCLUDES, setting the cache variable VAR accordingly.
1611ac_fn_c_check_header_compile ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615$as_echo_n "checking for $2... " >&6; }
1616if eval \${$3+:} false; then :
1617  $as_echo_n "(cached) " >&6
1618else
1619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h.  */
1621$4
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625  eval "$3=yes"
1626else
1627  eval "$3=no"
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630fi
1631eval ac_res=\$$3
1632	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633$as_echo "$ac_res" >&6; }
1634  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636} # ac_fn_c_check_header_compile
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } > conftest.i && {
1660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       }; then :
1663  ac_retval=0
1664else
1665  $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668    ac_retval=1
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671  as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689  (eval "$ac_link") 2>&5
1690  ac_status=$?
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693  { { case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_try") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; }; }; then :
1703  ac_retval=0
1704else
1705  $as_echo "$as_me: program exited with status $ac_status" >&5
1706       $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709       ac_retval=$ac_status
1710fi
1711  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_func LINENO FUNC VAR
1718# ----------------------------------
1719# Tests whether FUNC exists, setting the cache variable VAR accordingly
1720ac_fn_c_check_func ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726  $as_echo_n "(cached) " >&6
1727else
1728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1732#define $2 innocuous_$2
1733
1734/* System header to define __stub macros and hopefully few prototypes,
1735    which can conflict with char $2 (); below.
1736    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737    <limits.h> exists even on freestanding compilers.  */
1738
1739#ifdef __STDC__
1740# include <limits.h>
1741#else
1742# include <assert.h>
1743#endif
1744
1745#undef $2
1746
1747/* Override any GCC internal prototype to avoid an error.
1748   Use char because int might match the return type of a GCC
1749   builtin and then its argument prototype would still apply.  */
1750#ifdef __cplusplus
1751extern "C"
1752#endif
1753char $2 ();
1754/* The GNU C library defines this for functions which it implements
1755    to always fail with ENOSYS.  Some functions are actually named
1756    something starting with __ and the normal name is an alias.  */
1757#if defined __stub_$2 || defined __stub___$2
1758choke me
1759#endif
1760
1761int
1762main ()
1763{
1764return $2 ();
1765  ;
1766  return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_link "$LINENO"; then :
1770  eval "$3=yes"
1771else
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext \
1775    conftest$ac_exeext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_func
1783
1784# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1787# the include files in INCLUDES and setting the cache variable VAR
1788# accordingly.
1789ac_fn_c_check_header_mongrel ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  if eval \${$3+:} false; then :
1793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
1795if eval \${$3+:} false; then :
1796  $as_echo_n "(cached) " >&6
1797fi
1798eval ac_res=\$$3
1799	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801else
1802  # Is the header compilable?
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1804$as_echo_n "checking $2 usability... " >&6; }
1805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807$4
1808#include <$2>
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"; then :
1811  ac_header_compiler=yes
1812else
1813  ac_header_compiler=no
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1817$as_echo "$ac_header_compiler" >&6; }
1818
1819# Is the header present?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1821$as_echo_n "checking $2 presence... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_cpp "$LINENO"; then :
1827  ac_header_preproc=yes
1828else
1829  ac_header_preproc=no
1830fi
1831rm -f conftest.err conftest.i conftest.$ac_ext
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1833$as_echo "$ac_header_preproc" >&6; }
1834
1835# So?  What about this header?
1836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1837  yes:no: )
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1839$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842    ;;
1843  no:yes:* )
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1845$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1847$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1849$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1851$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854( $as_echo "## --------------------------------------------- ##
1855## Report this to https://github.com/esnet/iperf ##
1856## --------------------------------------------- ##"
1857     ) | sed "s/^/$as_me: WARNING:     /" >&2
1858    ;;
1859esac
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  eval "$3=\$ac_header_compiler"
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870fi
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873} # ac_fn_c_check_header_mongrel
1874cat >config.log <<_ACEOF
1875This file contains any messages produced by compilers while
1876running configure, to aid debugging if configure makes a mistake.
1877
1878It was created by iperf $as_me 3.5, which was
1879generated by GNU Autoconf 2.69.  Invocation command line was
1880
1881  $ $0 $@
1882
1883_ACEOF
1884exec 5>>config.log
1885{
1886cat <<_ASUNAME
1887## --------- ##
1888## Platform. ##
1889## --------- ##
1890
1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1899
1900/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1901/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1904/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1905/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1906/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1907
1908_ASUNAME
1909
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913  IFS=$as_save_IFS
1914  test -z "$as_dir" && as_dir=.
1915    $as_echo "PATH: $as_dir"
1916  done
1917IFS=$as_save_IFS
1918
1919} >&5
1920
1921cat >&5 <<_ACEOF
1922
1923
1924## ----------- ##
1925## Core tests. ##
1926## ----------- ##
1927
1928_ACEOF
1929
1930
1931# Keep a trace of the command line.
1932# Strip out --no-create and --no-recursion so they do not pile up.
1933# Strip out --silent because we don't want to record it for future runs.
1934# Also quote any args containing shell meta-characters.
1935# Make two passes to allow for proper duplicate-argument suppression.
1936ac_configure_args=
1937ac_configure_args0=
1938ac_configure_args1=
1939ac_must_keep_next=false
1940for ac_pass in 1 2
1941do
1942  for ac_arg
1943  do
1944    case $ac_arg in
1945    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947    | -silent | --silent | --silen | --sile | --sil)
1948      continue ;;
1949    *\'*)
1950      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951    esac
1952    case $ac_pass in
1953    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954    2)
1955      as_fn_append ac_configure_args1 " '$ac_arg'"
1956      if test $ac_must_keep_next = true; then
1957	ac_must_keep_next=false # Got value, back to normal.
1958      else
1959	case $ac_arg in
1960	  *=* | --config-cache | -C | -disable-* | --disable-* \
1961	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963	  | -with-* | --with-* | -without-* | --without-* | --x)
1964	    case "$ac_configure_args0 " in
1965	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966	    esac
1967	    ;;
1968	  -* ) ac_must_keep_next=true ;;
1969	esac
1970      fi
1971      as_fn_append ac_configure_args " '$ac_arg'"
1972      ;;
1973    esac
1974  done
1975done
1976{ ac_configure_args0=; unset ac_configure_args0;}
1977{ ac_configure_args1=; unset ac_configure_args1;}
1978
1979# When interrupted or exit'd, cleanup temporary files, and complete
1980# config.log.  We remove comments because anyway the quotes in there
1981# would cause problems or look ugly.
1982# WARNING: Use '\'' to represent an apostrophe within the trap.
1983# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984trap 'exit_status=$?
1985  # Save into config.log some information that might help in debugging.
1986  {
1987    echo
1988
1989    $as_echo "## ---------------- ##
1990## Cache variables. ##
1991## ---------------- ##"
1992    echo
1993    # The following way of writing the cache mishandles newlines in values,
1994(
1995  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996    eval ac_val=\$$ac_var
1997    case $ac_val in #(
1998    *${as_nl}*)
1999      case $ac_var in #(
2000      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002      esac
2003      case $ac_var in #(
2004      _ | IFS | as_nl) ;; #(
2005      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006      *) { eval $ac_var=; unset $ac_var;} ;;
2007      esac ;;
2008    esac
2009  done
2010  (set) 2>&1 |
2011    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012    *${as_nl}ac_space=\ *)
2013      sed -n \
2014	"s/'\''/'\''\\\\'\'''\''/g;
2015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016      ;; #(
2017    *)
2018      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019      ;;
2020    esac |
2021    sort
2022)
2023    echo
2024
2025    $as_echo "## ----------------- ##
2026## Output variables. ##
2027## ----------------- ##"
2028    echo
2029    for ac_var in $ac_subst_vars
2030    do
2031      eval ac_val=\$$ac_var
2032      case $ac_val in
2033      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034      esac
2035      $as_echo "$ac_var='\''$ac_val'\''"
2036    done | sort
2037    echo
2038
2039    if test -n "$ac_subst_files"; then
2040      $as_echo "## ------------------- ##
2041## File substitutions. ##
2042## ------------------- ##"
2043      echo
2044      for ac_var in $ac_subst_files
2045      do
2046	eval ac_val=\$$ac_var
2047	case $ac_val in
2048	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049	esac
2050	$as_echo "$ac_var='\''$ac_val'\''"
2051      done | sort
2052      echo
2053    fi
2054
2055    if test -s confdefs.h; then
2056      $as_echo "## ----------- ##
2057## confdefs.h. ##
2058## ----------- ##"
2059      echo
2060      cat confdefs.h
2061      echo
2062    fi
2063    test "$ac_signal" != 0 &&
2064      $as_echo "$as_me: caught signal $ac_signal"
2065    $as_echo "$as_me: exit $exit_status"
2066  } >&5
2067  rm -f core *.core core.conftest.* &&
2068    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069    exit $exit_status
2070' 0
2071for ac_signal in 1 2 13 15; do
2072  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073done
2074ac_signal=0
2075
2076# confdefs.h avoids OS command line length limits that DEFS can exceed.
2077rm -f -r conftest* confdefs.h
2078
2079$as_echo "/* confdefs.h */" > confdefs.h
2080
2081# Predefined preprocessor variables.
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_NAME "$PACKAGE_NAME"
2085_ACEOF
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_VERSION "$PACKAGE_VERSION"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_STRING "$PACKAGE_STRING"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_URL "$PACKAGE_URL"
2105_ACEOF
2106
2107
2108# Let the site file select an alternate cache file if it wants to.
2109# Prefer an explicitly selected file to automatically selected ones.
2110ac_site_file1=NONE
2111ac_site_file2=NONE
2112if test -n "$CONFIG_SITE"; then
2113  # We do not want a PATH search for config.site.
2114  case $CONFIG_SITE in #((
2115    -*)  ac_site_file1=./$CONFIG_SITE;;
2116    */*) ac_site_file1=$CONFIG_SITE;;
2117    *)   ac_site_file1=./$CONFIG_SITE;;
2118  esac
2119elif test "x$prefix" != xNONE; then
2120  ac_site_file1=$prefix/share/config.site
2121  ac_site_file2=$prefix/etc/config.site
2122else
2123  ac_site_file1=$ac_default_prefix/share/config.site
2124  ac_site_file2=$ac_default_prefix/etc/config.site
2125fi
2126for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2127do
2128  test "x$ac_site_file" = xNONE && continue
2129  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2130    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2132    sed 's/^/| /' "$ac_site_file" >&5
2133    . "$ac_site_file" \
2134      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136as_fn_error $? "failed to load site script $ac_site_file
2137See \`config.log' for more details" "$LINENO" 5; }
2138  fi
2139done
2140
2141if test -r "$cache_file"; then
2142  # Some versions of bash will fail to source /dev/null (special files
2143  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2144  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2145    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2146$as_echo "$as_me: loading cache $cache_file" >&6;}
2147    case $cache_file in
2148      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2149      *)                      . "./$cache_file";;
2150    esac
2151  fi
2152else
2153  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2154$as_echo "$as_me: creating cache $cache_file" >&6;}
2155  >$cache_file
2156fi
2157
2158# Check that the precious variables saved in the cache have kept the same
2159# value.
2160ac_cache_corrupted=false
2161for ac_var in $ac_precious_vars; do
2162  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2163  eval ac_new_set=\$ac_env_${ac_var}_set
2164  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2165  eval ac_new_val=\$ac_env_${ac_var}_value
2166  case $ac_old_set,$ac_new_set in
2167    set,)
2168      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2169$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2170      ac_cache_corrupted=: ;;
2171    ,set)
2172      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2173$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2174      ac_cache_corrupted=: ;;
2175    ,);;
2176    *)
2177      if test "x$ac_old_val" != "x$ac_new_val"; then
2178	# differences in whitespace do not lead to failure.
2179	ac_old_val_w=`echo x $ac_old_val`
2180	ac_new_val_w=`echo x $ac_new_val`
2181	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2182	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2183$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2184	  ac_cache_corrupted=:
2185	else
2186	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2187$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2188	  eval $ac_var=\$ac_old_val
2189	fi
2190	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2191$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2192	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2193$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2194      fi;;
2195  esac
2196  # Pass precious variables to config.status.
2197  if test "$ac_new_set" = set; then
2198    case $ac_new_val in
2199    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2200    *) ac_arg=$ac_var=$ac_new_val ;;
2201    esac
2202    case " $ac_configure_args " in
2203      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2204      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2205    esac
2206  fi
2207done
2208if $ac_cache_corrupted; then
2209  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2212$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2213  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214fi
2215## -------------------- ##
2216## Main body of script. ##
2217## -------------------- ##
2218
2219ac_ext=c
2220ac_cpp='$CPP $CPPFLAGS'
2221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
2225
2226# ===========================================================================
2227#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2228# ===========================================================================
2229#
2230# SYNOPSIS
2231#
2232#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2233#
2234# DESCRIPTION
2235#
2236#   Look for OpenSSL in a number of default spots, or in a user-selected
2237#   spot (via --with-openssl).  Sets
2238#
2239#     OPENSSL_INCLUDES to the include directives required
2240#     OPENSSL_LIBS to the -l directives required
2241#     OPENSSL_LDFLAGS to the -L or -R flags required
2242#
2243#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2244#
2245#   This macro sets OPENSSL_INCLUDES such that source files should use the
2246#   openssl/ directory in include directives:
2247#
2248#     #include <openssl/hmac.h>
2249#
2250# LICENSE
2251#
2252#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2253#   Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]>
2254#
2255#   Copying and distribution of this file, with or without modification, are
2256#   permitted in any medium without royalty provided the copyright notice
2257#   and this notice are preserved. This file is offered as-is, without any
2258#   warranty.
2259
2260#serial 10
2261
2262# This is what autoupdate's m4 run will expand.  It fires
2263# the warning (with _au_warn_XXX), outputs it into the
2264# updated configure.ac (with AC_DIAGNOSE), and then outputs
2265# the replacement expansion.
2266
2267
2268# This is an auxiliary macro that is also run when
2269# autoupdate runs m4.  It simply calls m4_warning, but
2270# we need a wrapper so that each warning is emitted only
2271# once.  We break the quoting in m4_warning's argument in
2272# order to expand this macro's arguments, not AU_DEFUN's.
2273
2274
2275# Finally, this is the expansion that is picked up by
2276# autoconf.  It tells the user to run autoupdate, and
2277# then outputs the replacement expansion.  We do not care
2278# about autoupdate's warning because that contains
2279# information on what to do *after* running autoupdate.
2280
2281
2282
2283ac_ext=c
2284ac_cpp='$CPP $CPPFLAGS'
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290# Specify where the auxiliary files created by configure should go. The config
2291# directory is picked so that they don't clutter up more useful directories.
2292ac_aux_dir=
2293for ac_dir in config "$srcdir"/config; do
2294  if test -f "$ac_dir/install-sh"; then
2295    ac_aux_dir=$ac_dir
2296    ac_install_sh="$ac_aux_dir/install-sh -c"
2297    break
2298  elif test -f "$ac_dir/install.sh"; then
2299    ac_aux_dir=$ac_dir
2300    ac_install_sh="$ac_aux_dir/install.sh -c"
2301    break
2302  elif test -f "$ac_dir/shtool"; then
2303    ac_aux_dir=$ac_dir
2304    ac_install_sh="$ac_aux_dir/shtool install -c"
2305    break
2306  fi
2307done
2308if test -z "$ac_aux_dir"; then
2309  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2310fi
2311
2312# These three variables are undocumented and unsupported,
2313# and are intended to be withdrawn in a future Autoconf release.
2314# They can cause serious problems if a builder's source tree is in a directory
2315# whose full name contains unusual characters.
2316ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2317ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2318ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2319
2320
2321
2322
2323# Initialize the automake system
2324am__api_version='1.16'
2325
2326# Find a good install program.  We prefer a C program (faster),
2327# so one script is as good as another.  But avoid the broken or
2328# incompatible versions:
2329# SysV /etc/install, /usr/sbin/install
2330# SunOS /usr/etc/install
2331# IRIX /sbin/install
2332# AIX /bin/install
2333# AmigaOS /C/install, which installs bootblocks on floppy discs
2334# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337# OS/2's system install, which has a completely different semantic
2338# ./install, which can be erroneously created by make from ./install.sh.
2339# Reject install programs that cannot install multiple files.
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2341$as_echo_n "checking for a BSD-compatible install... " >&6; }
2342if test -z "$INSTALL"; then
2343if ${ac_cv_path_install+:} false; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351    # Account for people who put trailing slashes in PATH elements.
2352case $as_dir/ in #((
2353  ./ | .// | /[cC]/* | \
2354  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356  /usr/ucb/* ) ;;
2357  *)
2358    # OSF1 and SCO ODT 3.0 have their own names for install.
2359    # Don't use installbsd from OSF since it installs stuff as root
2360    # by default.
2361    for ac_prog in ginstall scoinst install; do
2362      for ac_exec_ext in '' $ac_executable_extensions; do
2363	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364	  if test $ac_prog = install &&
2365	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366	    # AIX install.  It has an incompatible calling convention.
2367	    :
2368	  elif test $ac_prog = install &&
2369	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370	    # program-specific install script used by HP pwplus--don't use.
2371	    :
2372	  else
2373	    rm -rf conftest.one conftest.two conftest.dir
2374	    echo one > conftest.one
2375	    echo two > conftest.two
2376	    mkdir conftest.dir
2377	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378	      test -s conftest.one && test -s conftest.two &&
2379	      test -s conftest.dir/conftest.one &&
2380	      test -s conftest.dir/conftest.two
2381	    then
2382	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383	      break 3
2384	    fi
2385	  fi
2386	fi
2387      done
2388    done
2389    ;;
2390esac
2391
2392  done
2393IFS=$as_save_IFS
2394
2395rm -rf conftest.one conftest.two conftest.dir
2396
2397fi
2398  if test "${ac_cv_path_install+set}" = set; then
2399    INSTALL=$ac_cv_path_install
2400  else
2401    # As a last resort, use the slow shell script.  Don't cache a
2402    # value for INSTALL within a source directory, because that will
2403    # break other packages using the cache if that directory is
2404    # removed, or if the value is a relative name.
2405    INSTALL=$ac_install_sh
2406  fi
2407fi
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2409$as_echo "$INSTALL" >&6; }
2410
2411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412# It thinks the first close brace ends the variable substitution.
2413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414
2415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416
2417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2420$as_echo_n "checking whether build environment is sane... " >&6; }
2421# Reject unsafe characters in $srcdir or the absolute working directory
2422# name.  Accept space and tab only in the latter.
2423am_lf='
2424'
2425case `pwd` in
2426  *[\\\"\#\$\&\'\`$am_lf]*)
2427    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2428esac
2429case $srcdir in
2430  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2431    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2432esac
2433
2434# Do 'set' in a subshell so we don't clobber the current shell's
2435# arguments.  Must try -L first in case configure is actually a
2436# symlink; some systems play weird games with the mod time of symlinks
2437# (eg FreeBSD returns the mod time of the symlink's containing
2438# directory).
2439if (
2440   am_has_slept=no
2441   for am_try in 1 2; do
2442     echo "timestamp, slept: $am_has_slept" > conftest.file
2443     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444     if test "$*" = "X"; then
2445	# -L didn't work.
2446	set X `ls -t "$srcdir/configure" conftest.file`
2447     fi
2448     if test "$*" != "X $srcdir/configure conftest.file" \
2449	&& test "$*" != "X conftest.file $srcdir/configure"; then
2450
2451	# If neither matched, then we have a broken ls.  This can happen
2452	# if, for instance, CONFIG_SHELL is bash and it inherits a
2453	# broken ls alias from the environment.  This has actually
2454	# happened.  Such a system could not be considered "sane".
2455	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2456  alias in your environment" "$LINENO" 5
2457     fi
2458     if test "$2" = conftest.file || test $am_try -eq 2; then
2459       break
2460     fi
2461     # Just in case.
2462     sleep 1
2463     am_has_slept=yes
2464   done
2465   test "$2" = conftest.file
2466   )
2467then
2468   # Ok.
2469   :
2470else
2471   as_fn_error $? "newly created file is older than distributed files!
2472Check your system clock" "$LINENO" 5
2473fi
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475$as_echo "yes" >&6; }
2476# If we didn't sleep, we still need to ensure time stamps of config.status and
2477# generated files are strictly newer.
2478am_sleep_pid=
2479if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2480  ( sleep 1 ) &
2481  am_sleep_pid=$!
2482fi
2483
2484rm -f conftest.file
2485
2486test "$program_prefix" != NONE &&
2487  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
2490  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491# Double any \ or $.
2492# By default was `s,x,x', remove it if useless.
2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496# Expand $ac_aux_dir to an absolute path.
2497am_aux_dir=`cd "$ac_aux_dir" && pwd`
2498
2499if test x"${MISSING+set}" != xset; then
2500  case $am_aux_dir in
2501  *\ * | *\	*)
2502    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503  *)
2504    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2505  esac
2506fi
2507# Use eval to expand $SHELL
2508if eval "$MISSING --is-lightweight"; then
2509  am_missing_run="$MISSING "
2510else
2511  am_missing_run=
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2513$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2514fi
2515
2516if test x"${install_sh+set}" != xset; then
2517  case $am_aux_dir in
2518  *\ * | *\	*)
2519    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520  *)
2521    install_sh="\${SHELL} $am_aux_dir/install-sh"
2522  esac
2523fi
2524
2525# Installed binaries are usually stripped using 'strip' when the user
2526# run "make install-strip".  However 'strip' might not be the right
2527# tool to use in cross-compilation environments, therefore Automake
2528# will honor the 'STRIP' environment variable to overrule this program.
2529if test "$cross_compiling" != no; then
2530  if test -n "$ac_tool_prefix"; then
2531  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}strip; ac_word=$2
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534$as_echo_n "checking for $ac_word... " >&6; }
2535if ${ac_cv_prog_STRIP+:} false; then :
2536  $as_echo_n "(cached) " >&6
2537else
2538  if test -n "$STRIP"; then
2539  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544  IFS=$as_save_IFS
2545  test -z "$as_dir" && as_dir=.
2546    for ac_exec_ext in '' $ac_executable_extensions; do
2547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550    break 2
2551  fi
2552done
2553  done
2554IFS=$as_save_IFS
2555
2556fi
2557fi
2558STRIP=$ac_cv_prog_STRIP
2559if test -n "$STRIP"; then
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2561$as_echo "$STRIP" >&6; }
2562else
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565fi
2566
2567
2568fi
2569if test -z "$ac_cv_prog_STRIP"; then
2570  ac_ct_STRIP=$STRIP
2571  # Extract the first word of "strip", so it can be a program name with args.
2572set dummy strip; ac_word=$2
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2576  $as_echo_n "(cached) " >&6
2577else
2578  if test -n "$ac_ct_STRIP"; then
2579  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    for ac_exec_ext in '' $ac_executable_extensions; do
2587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588    ac_cv_prog_ac_ct_STRIP="strip"
2589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590    break 2
2591  fi
2592done
2593  done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2599if test -n "$ac_ct_STRIP"; then
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2601$as_echo "$ac_ct_STRIP" >&6; }
2602else
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605fi
2606
2607  if test "x$ac_ct_STRIP" = x; then
2608    STRIP=":"
2609  else
2610    case $cross_compiling:$ac_tool_warned in
2611yes:)
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614ac_tool_warned=yes ;;
2615esac
2616    STRIP=$ac_ct_STRIP
2617  fi
2618else
2619  STRIP="$ac_cv_prog_STRIP"
2620fi
2621
2622fi
2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2627if test -z "$MKDIR_P"; then
2628  if ${ac_cv_path_mkdir+:} false; then :
2629  $as_echo_n "(cached) " >&6
2630else
2631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636    for ac_prog in mkdir gmkdir; do
2637	 for ac_exec_ext in '' $ac_executable_extensions; do
2638	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2639	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2640	     'mkdir (GNU coreutils) '* | \
2641	     'mkdir (coreutils) '* | \
2642	     'mkdir (fileutils) '4.1*)
2643	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2644	       break 3;;
2645	   esac
2646	 done
2647       done
2648  done
2649IFS=$as_save_IFS
2650
2651fi
2652
2653  test -d ./--version && rmdir ./--version
2654  if test "${ac_cv_path_mkdir+set}" = set; then
2655    MKDIR_P="$ac_cv_path_mkdir -p"
2656  else
2657    # As a last resort, use the slow shell script.  Don't cache a
2658    # value for MKDIR_P within a source directory, because that will
2659    # break other packages using the cache if that directory is
2660    # removed, or if the value is a relative name.
2661    MKDIR_P="$ac_install_sh -d"
2662  fi
2663fi
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2665$as_echo "$MKDIR_P" >&6; }
2666
2667for ac_prog in gawk mawk nawk awk
2668do
2669  # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672$as_echo_n "checking for $ac_word... " >&6; }
2673if ${ac_cv_prog_AWK+:} false; then :
2674  $as_echo_n "(cached) " >&6
2675else
2676  if test -n "$AWK"; then
2677  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684    for ac_exec_ext in '' $ac_executable_extensions; do
2685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686    ac_cv_prog_AWK="$ac_prog"
2687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688    break 2
2689  fi
2690done
2691  done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696AWK=$ac_cv_prog_AWK
2697if test -n "$AWK"; then
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2699$as_echo "$AWK" >&6; }
2700else
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702$as_echo "no" >&6; }
2703fi
2704
2705
2706  test -n "$AWK" && break
2707done
2708
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2710$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711set x ${MAKE-make}
2712ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2713if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2714  $as_echo_n "(cached) " >&6
2715else
2716  cat >conftest.make <<\_ACEOF
2717SHELL = /bin/sh
2718all:
2719	@echo '@@@%%%=$(MAKE)=@@@%%%'
2720_ACEOF
2721# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2722case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723  *@@@%%%=?*=@@@%%%*)
2724    eval ac_cv_prog_make_${ac_make}_set=yes;;
2725  *)
2726    eval ac_cv_prog_make_${ac_make}_set=no;;
2727esac
2728rm -f conftest.make
2729fi
2730if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732$as_echo "yes" >&6; }
2733  SET_MAKE=
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737  SET_MAKE="MAKE=${MAKE-make}"
2738fi
2739
2740rm -rf .tst 2>/dev/null
2741mkdir .tst 2>/dev/null
2742if test -d .tst; then
2743  am__leading_dot=.
2744else
2745  am__leading_dot=_
2746fi
2747rmdir .tst 2>/dev/null
2748
2749# Check whether --enable-silent-rules was given.
2750if test "${enable_silent_rules+set}" = set; then :
2751  enableval=$enable_silent_rules;
2752fi
2753
2754case $enable_silent_rules in # (((
2755  yes) AM_DEFAULT_VERBOSITY=0;;
2756   no) AM_DEFAULT_VERBOSITY=1;;
2757    *) AM_DEFAULT_VERBOSITY=1;;
2758esac
2759am_make=${MAKE-make}
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2761$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2762if ${am_cv_make_support_nested_variables+:} false; then :
2763  $as_echo_n "(cached) " >&6
2764else
2765  if $as_echo 'TRUE=$(BAR$(V))
2766BAR0=false
2767BAR1=true
2768V=1
2769am__doit:
2770	@$(TRUE)
2771.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2772  am_cv_make_support_nested_variables=yes
2773else
2774  am_cv_make_support_nested_variables=no
2775fi
2776fi
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2778$as_echo "$am_cv_make_support_nested_variables" >&6; }
2779if test $am_cv_make_support_nested_variables = yes; then
2780    AM_V='$(V)'
2781  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2782else
2783  AM_V=$AM_DEFAULT_VERBOSITY
2784  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2785fi
2786AM_BACKSLASH='\'
2787
2788if test "`cd $srcdir && pwd`" != "`pwd`"; then
2789  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2790  # is not polluted with repeated "-I."
2791  am__isrc=' -I$(srcdir)'
2792  # test to see if srcdir already configured
2793  if test -f $srcdir/config.status; then
2794    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2795  fi
2796fi
2797
2798# test whether we have cygpath
2799if test -z "$CYGPATH_W"; then
2800  if (cygpath --version) >/dev/null 2>/dev/null; then
2801    CYGPATH_W='cygpath -w'
2802  else
2803    CYGPATH_W=echo
2804  fi
2805fi
2806
2807
2808# Define the identity of the package.
2809 PACKAGE='iperf'
2810 VERSION='3.5'
2811
2812
2813cat >>confdefs.h <<_ACEOF
2814#define PACKAGE "$PACKAGE"
2815_ACEOF
2816
2817
2818cat >>confdefs.h <<_ACEOF
2819#define VERSION "$VERSION"
2820_ACEOF
2821
2822# Some tools Automake needs.
2823
2824ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2825
2826
2827AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2828
2829
2830AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2831
2832
2833AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2834
2835
2836MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2837
2838# For better backward compatibility.  To be removed once Automake 1.9.x
2839# dies out for good.  For more background, see:
2840# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2841# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2842mkdir_p='$(MKDIR_P)'
2843
2844# We need awk for the "check" target (and possibly the TAP driver).  The
2845# system "awk" is bad on some platforms.
2846# Always define AMTAR for backward compatibility.  Yes, it's still used
2847# in the wild :-(  We should find a proper way to deprecate it ...
2848AMTAR='$${TAR-tar}'
2849
2850
2851# We'll loop over all known methods to create a tar archive until one works.
2852_am_tools='gnutar  pax cpio none'
2853
2854am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2855
2856
2857
2858
2859
2860
2861# POSIX will say in a future version that running "rm -f" with no argument
2862# is OK; and we want to be able to make that assumption in our Makefile
2863# recipes.  So use an aggressive probe to check that the usage we want is
2864# actually supported "in the wild" to an acceptable degree.
2865# See automake bug#10828.
2866# To make any issue more visible, cause the running configure to be aborted
2867# by default if the 'rm' program in use doesn't match our expectations; the
2868# user can still override this though.
2869if rm -f && rm -fr && rm -rf; then : OK; else
2870  cat >&2 <<'END'
2871Oops!
2872
2873Your 'rm' program seems unable to run without file operands specified
2874on the command line, even when the '-f' option is present.  This is contrary
2875to the behaviour of most rm programs out there, and not conforming with
2876the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2877
2878Please tell bug-automake@gnu.org about your system, including the value
2879of your $PATH and any error possibly output before this message.  This
2880can help us improve future automake versions.
2881
2882END
2883  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2884    echo 'Configuration will proceed anyway, since you have set the' >&2
2885    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2886    echo >&2
2887  else
2888    cat >&2 <<'END'
2889Aborting the configuration process, to ensure you take notice of the issue.
2890
2891You can download and install GNU coreutils to get an 'rm' implementation
2892that behaves properly: <https://www.gnu.org/software/coreutils/>.
2893
2894If you want to complete the configuration process using your problematic
2895'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2896to "yes", and re-run configure.
2897
2898END
2899    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2900  fi
2901fi
2902
2903
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2905$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2906    # Check whether --enable-maintainer-mode was given.
2907if test "${enable_maintainer_mode+set}" = set; then :
2908  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2909else
2910  USE_MAINTAINER_MODE=no
2911fi
2912
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2914$as_echo "$USE_MAINTAINER_MODE" >&6; }
2915   if test $USE_MAINTAINER_MODE = yes; then
2916  MAINTAINER_MODE_TRUE=
2917  MAINTAINER_MODE_FALSE='#'
2918else
2919  MAINTAINER_MODE_TRUE='#'
2920  MAINTAINER_MODE_FALSE=
2921fi
2922
2923  MAINT=$MAINTAINER_MODE_TRUE
2924
2925
2926ac_config_headers="$ac_config_headers src/iperf_config.h"
2927
2928
2929# Make sure we can run config.sub.
2930$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2931  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2932
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2934$as_echo_n "checking build system type... " >&6; }
2935if ${ac_cv_build+:} false; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  ac_build_alias=$build_alias
2939test "x$ac_build_alias" = x &&
2940  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2941test "x$ac_build_alias" = x &&
2942  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2944  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2945
2946fi
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2948$as_echo "$ac_cv_build" >&6; }
2949case $ac_cv_build in
2950*-*-*) ;;
2951*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2952esac
2953build=$ac_cv_build
2954ac_save_IFS=$IFS; IFS='-'
2955set x $ac_cv_build
2956shift
2957build_cpu=$1
2958build_vendor=$2
2959shift; shift
2960# Remember, the first character of IFS is used to create $*,
2961# except with old shells:
2962build_os=$*
2963IFS=$ac_save_IFS
2964case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2965
2966
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2968$as_echo_n "checking host system type... " >&6; }
2969if ${ac_cv_host+:} false; then :
2970  $as_echo_n "(cached) " >&6
2971else
2972  if test "x$host_alias" = x; then
2973  ac_cv_host=$ac_cv_build
2974else
2975  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2976    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2977fi
2978
2979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2981$as_echo "$ac_cv_host" >&6; }
2982case $ac_cv_host in
2983*-*-*) ;;
2984*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2985esac
2986host=$ac_cv_host
2987ac_save_IFS=$IFS; IFS='-'
2988set x $ac_cv_host
2989shift
2990host_cpu=$1
2991host_vendor=$2
2992shift; shift
2993# Remember, the first character of IFS is used to create $*,
2994# except with old shells:
2995host_os=$*
2996IFS=$ac_save_IFS
2997case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2998
2999
3000
3001# Checks for tools: c compiler, ranlib (used for creating static libraries),
3002# symlinks and libtool
3003ac_ext=c
3004ac_cpp='$CPP $CPPFLAGS'
3005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008if test -n "$ac_tool_prefix"; then
3009  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}gcc; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_CC+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$CC"; then
3017  ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039$as_echo "$CC" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046fi
3047if test -z "$ac_cv_prog_CC"; then
3048  ac_ct_CC=$CC
3049  # Extract the first word of "gcc", so it can be a program name with args.
3050set dummy gcc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if ${ac_cv_prog_ac_ct_CC+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  if test -n "$ac_ct_CC"; then
3057  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058else
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062  IFS=$as_save_IFS
3063  test -z "$as_dir" && as_dir=.
3064    for ac_exec_ext in '' $ac_executable_extensions; do
3065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066    ac_cv_prog_ac_ct_CC="gcc"
3067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068    break 2
3069  fi
3070done
3071  done
3072IFS=$as_save_IFS
3073
3074fi
3075fi
3076ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077if test -n "$ac_ct_CC"; then
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079$as_echo "$ac_ct_CC" >&6; }
3080else
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082$as_echo "no" >&6; }
3083fi
3084
3085  if test "x$ac_ct_CC" = x; then
3086    CC=""
3087  else
3088    case $cross_compiling:$ac_tool_warned in
3089yes:)
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092ac_tool_warned=yes ;;
3093esac
3094    CC=$ac_ct_CC
3095  fi
3096else
3097  CC="$ac_cv_prog_CC"
3098fi
3099
3100if test -z "$CC"; then
3101          if test -n "$ac_tool_prefix"; then
3102    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103set dummy ${ac_tool_prefix}cc; ac_word=$2
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
3106if ${ac_cv_prog_CC+:} false; then :
3107  $as_echo_n "(cached) " >&6
3108else
3109  if test -n "$CC"; then
3110  ac_cv_prog_CC="$CC" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117    for ac_exec_ext in '' $ac_executable_extensions; do
3118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119    ac_cv_prog_CC="${ac_tool_prefix}cc"
3120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121    break 2
3122  fi
3123done
3124  done
3125IFS=$as_save_IFS
3126
3127fi
3128fi
3129CC=$ac_cv_prog_CC
3130if test -n "$CC"; then
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132$as_echo "$CC" >&6; }
3133else
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138
3139  fi
3140fi
3141if test -z "$CC"; then
3142  # Extract the first word of "cc", so it can be a program name with args.
3143set dummy cc; ac_word=$2
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145$as_echo_n "checking for $ac_word... " >&6; }
3146if ${ac_cv_prog_CC+:} false; then :
3147  $as_echo_n "(cached) " >&6
3148else
3149  if test -n "$CC"; then
3150  ac_cv_prog_CC="$CC" # Let the user override the test.
3151else
3152  ac_prog_rejected=no
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158    for ac_exec_ext in '' $ac_executable_extensions; do
3159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161       ac_prog_rejected=yes
3162       continue
3163     fi
3164    ac_cv_prog_CC="cc"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172if test $ac_prog_rejected = yes; then
3173  # We found a bogon in the path, so make sure we never use it.
3174  set dummy $ac_cv_prog_CC
3175  shift
3176  if test $# != 0; then
3177    # We chose a different compiler from the bogus one.
3178    # However, it has the same basename, so the bogon will be chosen
3179    # first if we set CC to just the basename; use the full file name.
3180    shift
3181    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182  fi
3183fi
3184fi
3185fi
3186CC=$ac_cv_prog_CC
3187if test -n "$CC"; then
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189$as_echo "$CC" >&6; }
3190else
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195
3196fi
3197if test -z "$CC"; then
3198  if test -n "$ac_tool_prefix"; then
3199  for ac_prog in cl.exe
3200  do
3201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204$as_echo_n "checking for $ac_word... " >&6; }
3205if ${ac_cv_prog_CC+:} false; then :
3206  $as_echo_n "(cached) " >&6
3207else
3208  if test -n "$CC"; then
3209  ac_cv_prog_CC="$CC" # Let the user override the test.
3210else
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214  IFS=$as_save_IFS
3215  test -z "$as_dir" && as_dir=.
3216    for ac_exec_ext in '' $ac_executable_extensions; do
3217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220    break 2
3221  fi
3222done
3223  done
3224IFS=$as_save_IFS
3225
3226fi
3227fi
3228CC=$ac_cv_prog_CC
3229if test -n "$CC"; then
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231$as_echo "$CC" >&6; }
3232else
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235fi
3236
3237
3238    test -n "$CC" && break
3239  done
3240fi
3241if test -z "$CC"; then
3242  ac_ct_CC=$CC
3243  for ac_prog in cl.exe
3244do
3245  # Extract the first word of "$ac_prog", so it can be a program name with args.
3246set dummy $ac_prog; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_ac_ct_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test -n "$ac_ct_CC"; then
3253  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  test -z "$as_dir" && as_dir=.
3260    for ac_exec_ext in '' $ac_executable_extensions; do
3261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262    ac_cv_prog_ac_ct_CC="$ac_prog"
3263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264    break 2
3265  fi
3266done
3267  done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273if test -n "$ac_ct_CC"; then
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275$as_echo "$ac_ct_CC" >&6; }
3276else
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282  test -n "$ac_ct_CC" && break
3283done
3284
3285  if test "x$ac_ct_CC" = x; then
3286    CC=""
3287  else
3288    case $cross_compiling:$ac_tool_warned in
3289yes:)
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292ac_tool_warned=yes ;;
3293esac
3294    CC=$ac_ct_CC
3295  fi
3296fi
3297
3298fi
3299
3300
3301test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303as_fn_error $? "no acceptable C compiler found in \$PATH
3304See \`config.log' for more details" "$LINENO" 5; }
3305
3306# Provide some information about the compiler.
3307$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3308set X $ac_compile
3309ac_compiler=$2
3310for ac_option in --version -v -V -qversion; do
3311  { { ac_try="$ac_compiler $ac_option >&5"
3312case "(($ac_try" in
3313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314  *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3319  ac_status=$?
3320  if test -s conftest.err; then
3321    sed '10a\
3322... rest of stderr output deleted ...
3323         10q' conftest.err >conftest.er1
3324    cat conftest.er1 >&5
3325  fi
3326  rm -f conftest.er1 conftest.err
3327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328  test $ac_status = 0; }
3329done
3330
3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333
3334int
3335main ()
3336{
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342ac_clean_files_save=$ac_clean_files
3343ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3344# Try to create an executable without -o first, disregard a.out.
3345# It will help us diagnose broken compilers, and finding out an intuition
3346# of exeext.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348$as_echo_n "checking whether the C compiler works... " >&6; }
3349ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3350
3351# The possible output files:
3352ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3353
3354ac_rmfiles=
3355for ac_file in $ac_files
3356do
3357  case $ac_file in
3358    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360  esac
3361done
3362rm -f $ac_rmfiles
3363
3364if { { ac_try="$ac_link_default"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_link_default") 2>&5
3372  ac_status=$?
3373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374  test $ac_status = 0; }; then :
3375  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3376# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3377# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3378# so that the user can short-circuit this test for compilers unknown to
3379# Autoconf.
3380for ac_file in $ac_files ''
3381do
3382  test -f "$ac_file" || continue
3383  case $ac_file in
3384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3385	;;
3386    [ab].out )
3387	# We found the default executable, but exeext='' is most
3388	# certainly right.
3389	break;;
3390    *.* )
3391	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3392	then :; else
3393	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394	fi
3395	# We set ac_cv_exeext here because the later test for it is not
3396	# safe: cross compilers may not add the suffix if given an `-o'
3397	# argument, so we may need to know it at that point already.
3398	# Even if this section looks crufty: it has the advantage of
3399	# actually working.
3400	break;;
3401    * )
3402	break;;
3403  esac
3404done
3405test "$ac_cv_exeext" = no && ac_cv_exeext=
3406
3407else
3408  ac_file=''
3409fi
3410if test -z "$ac_file"; then :
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412$as_echo "no" >&6; }
3413$as_echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418as_fn_error 77 "C compiler cannot create executables
3419See \`config.log' for more details" "$LINENO" 5; }
3420else
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422$as_echo "yes" >&6; }
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3425$as_echo_n "checking for C compiler default output file name... " >&6; }
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3427$as_echo "$ac_file" >&6; }
3428ac_exeext=$ac_cv_exeext
3429
3430rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3431ac_clean_files=$ac_clean_files_save
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3433$as_echo_n "checking for suffix of executables... " >&6; }
3434if { { ac_try="$ac_link"
3435case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
3441  (eval "$ac_link") 2>&5
3442  ac_status=$?
3443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }; then :
3445  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3446# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3447# work properly (i.e., refer to `conftest.exe'), while it won't with
3448# `rm'.
3449for ac_file in conftest.exe conftest conftest.*; do
3450  test -f "$ac_file" || continue
3451  case $ac_file in
3452    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3454	  break;;
3455    * ) break;;
3456  esac
3457done
3458else
3459  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3462See \`config.log' for more details" "$LINENO" 5; }
3463fi
3464rm -f conftest conftest$ac_cv_exeext
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3466$as_echo "$ac_cv_exeext" >&6; }
3467
3468rm -f conftest.$ac_ext
3469EXEEXT=$ac_cv_exeext
3470ac_exeext=$EXEEXT
3471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473#include <stdio.h>
3474int
3475main ()
3476{
3477FILE *f = fopen ("conftest.out", "w");
3478 return ferror (f) || fclose (f) != 0;
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484ac_clean_files="$ac_clean_files conftest.out"
3485# Check that the compiler produces executables we can run.  If not, either
3486# the compiler is broken, or we cross compile.
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3488$as_echo_n "checking whether we are cross compiling... " >&6; }
3489if test "$cross_compiling" != yes; then
3490  { { ac_try="$ac_link"
3491case "(($ac_try" in
3492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493  *) ac_try_echo=$ac_try;;
3494esac
3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496$as_echo "$ac_try_echo"; } >&5
3497  (eval "$ac_link") 2>&5
3498  ac_status=$?
3499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500  test $ac_status = 0; }
3501  if { ac_try='./conftest$ac_cv_exeext'
3502  { { case "(($ac_try" in
3503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504  *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508  (eval "$ac_try") 2>&5
3509  ac_status=$?
3510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511  test $ac_status = 0; }; }; then
3512    cross_compiling=no
3513  else
3514    if test "$cross_compiling" = maybe; then
3515	cross_compiling=yes
3516    else
3517	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519as_fn_error $? "cannot run C compiled programs.
3520If you meant to cross compile, use \`--host'.
3521See \`config.log' for more details" "$LINENO" 5; }
3522    fi
3523  fi
3524fi
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3526$as_echo "$cross_compiling" >&6; }
3527
3528rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3529ac_clean_files=$ac_clean_files_save
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3531$as_echo_n "checking for suffix of object files... " >&6; }
3532if ${ac_cv_objext+:} false; then :
3533  $as_echo_n "(cached) " >&6
3534else
3535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.o conftest.obj
3547if { { ac_try="$ac_compile"
3548case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554  (eval "$ac_compile") 2>&5
3555  ac_status=$?
3556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557  test $ac_status = 0; }; then :
3558  for ac_file in conftest.o conftest.obj conftest.*; do
3559  test -f "$ac_file" || continue;
3560  case $ac_file in
3561    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3562    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3563       break;;
3564  esac
3565done
3566else
3567  $as_echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572as_fn_error $? "cannot compute suffix of object files: cannot compile
3573See \`config.log' for more details" "$LINENO" 5; }
3574fi
3575rm -f conftest.$ac_cv_objext conftest.$ac_ext
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3578$as_echo "$ac_cv_objext" >&6; }
3579OBJEXT=$ac_cv_objext
3580ac_objext=$OBJEXT
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3582$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3583if ${ac_cv_c_compiler_gnu+:} false; then :
3584  $as_echo_n "(cached) " >&6
3585else
3586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592#ifndef __GNUC__
3593       choke me
3594#endif
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"; then :
3601  ac_compiler_gnu=yes
3602else
3603  ac_compiler_gnu=no
3604fi
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606ac_cv_c_compiler_gnu=$ac_compiler_gnu
3607
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3610$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3611if test $ac_compiler_gnu = yes; then
3612  GCC=yes
3613else
3614  GCC=
3615fi
3616ac_test_CFLAGS=${CFLAGS+set}
3617ac_save_CFLAGS=$CFLAGS
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3619$as_echo_n "checking whether $CC accepts -g... " >&6; }
3620if ${ac_cv_prog_cc_g+:} false; then :
3621  $as_echo_n "(cached) " >&6
3622else
3623  ac_save_c_werror_flag=$ac_c_werror_flag
3624   ac_c_werror_flag=yes
3625   ac_cv_prog_cc_g=no
3626   CFLAGS="-g"
3627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628/* end confdefs.h.  */
3629
3630int
3631main ()
3632{
3633
3634  ;
3635  return 0;
3636}
3637_ACEOF
3638if ac_fn_c_try_compile "$LINENO"; then :
3639  ac_cv_prog_cc_g=yes
3640else
3641  CFLAGS=""
3642      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644
3645int
3646main ()
3647{
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653if ac_fn_c_try_compile "$LINENO"; then :
3654
3655else
3656  ac_c_werror_flag=$ac_save_c_werror_flag
3657	 CFLAGS="-g"
3658	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669if ac_fn_c_try_compile "$LINENO"; then :
3670  ac_cv_prog_cc_g=yes
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673fi
3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677   ac_c_werror_flag=$ac_save_c_werror_flag
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3680$as_echo "$ac_cv_prog_cc_g" >&6; }
3681if test "$ac_test_CFLAGS" = set; then
3682  CFLAGS=$ac_save_CFLAGS
3683elif test $ac_cv_prog_cc_g = yes; then
3684  if test "$GCC" = yes; then
3685    CFLAGS="-g -O2"
3686  else
3687    CFLAGS="-g"
3688  fi
3689else
3690  if test "$GCC" = yes; then
3691    CFLAGS="-O2"
3692  else
3693    CFLAGS=
3694  fi
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3697$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3698if ${ac_cv_prog_cc_c89+:} false; then :
3699  $as_echo_n "(cached) " >&6
3700else
3701  ac_cv_prog_cc_c89=no
3702ac_save_CC=$CC
3703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h.  */
3705#include <stdarg.h>
3706#include <stdio.h>
3707struct stat;
3708/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3709struct buf { int x; };
3710FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711static char *e (p, i)
3712     char **p;
3713     int i;
3714{
3715  return p[i];
3716}
3717static char *f (char * (*g) (char **, int), char **p, ...)
3718{
3719  char *s;
3720  va_list v;
3721  va_start (v,p);
3722  s = g (p, va_arg (v,int));
3723  va_end (v);
3724  return s;
3725}
3726
3727/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3728   function prototypes and stuff, but not '\xHH' hex character constants.
3729   These don't provoke an error unfortunately, instead are silently treated
3730   as 'x'.  The following induces an error, until -std is added to get
3731   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3732   array size at least.  It's necessary to write '\x00'==0 to get something
3733   that's true only with -std.  */
3734int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
3736/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737   inside strings and character constants.  */
3738#define FOO(x) 'x'
3739int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
3741int test (int i, double x);
3742struct s1 {int (*f) (int a);};
3743struct s2 {int (*f) (double a);};
3744int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745int argc;
3746char **argv;
3747int
3748main ()
3749{
3750return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3757do
3758  CC="$ac_save_CC $ac_arg"
3759  if ac_fn_c_try_compile "$LINENO"; then :
3760  ac_cv_prog_cc_c89=$ac_arg
3761fi
3762rm -f core conftest.err conftest.$ac_objext
3763  test "x$ac_cv_prog_cc_c89" != "xno" && break
3764done
3765rm -f conftest.$ac_ext
3766CC=$ac_save_CC
3767
3768fi
3769# AC_CACHE_VAL
3770case "x$ac_cv_prog_cc_c89" in
3771  x)
3772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773$as_echo "none needed" >&6; } ;;
3774  xno)
3775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776$as_echo "unsupported" >&6; } ;;
3777  *)
3778    CC="$CC $ac_cv_prog_cc_c89"
3779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3780$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3781esac
3782if test "x$ac_cv_prog_cc_c89" != xno; then :
3783
3784fi
3785
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792ac_ext=c
3793ac_cpp='$CPP $CPPFLAGS'
3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3798$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3799if ${am_cv_prog_cc_c_o+:} false; then :
3800  $as_echo_n "(cached) " >&6
3801else
3802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804
3805int
3806main ()
3807{
3808
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813  # Make sure it works both with $CC and with simple cc.
3814  # Following AC_PROG_CC_C_O, we do the test twice because some
3815  # compilers refuse to overwrite an existing .o file with -o,
3816  # though they will create one.
3817  am_cv_prog_cc_c_o=yes
3818  for am_i in 1 2; do
3819    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3820   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); } \
3824         && test -f conftest2.$ac_objext; then
3825      : OK
3826    else
3827      am_cv_prog_cc_c_o=no
3828      break
3829    fi
3830  done
3831  rm -f core conftest*
3832  unset am_i
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3835$as_echo "$am_cv_prog_cc_c_o" >&6; }
3836if test "$am_cv_prog_cc_c_o" != yes; then
3837   # Losing compiler, so override with the script.
3838   # FIXME: It is wrong to rewrite CC.
3839   # But if we don't then we get into trouble of one sort or another.
3840   # A longer-term fix would be to have automake use am__CC in this case,
3841   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3842   CC="$am_aux_dir/compile $CC"
3843fi
3844ac_ext=c
3845ac_cpp='$CPP $CPPFLAGS'
3846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850DEPDIR="${am__leading_dot}deps"
3851
3852ac_config_commands="$ac_config_commands depfiles"
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3855$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3856cat > confinc.mk << 'END'
3857am__doit:
3858	@echo this is the am__doit target >confinc.out
3859.PHONY: am__doit
3860END
3861am__include="#"
3862am__quote=
3863# BSD make does it like this.
3864echo '.include "confinc.mk" # ignored' > confmf.BSD
3865# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3866echo 'include confinc.mk # ignored' > confmf.GNU
3867_am_result=no
3868for s in GNU BSD; do
3869  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3870   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }
3874  case $?:`cat confinc.out 2>/dev/null` in #(
3875  '0:this is the am__doit target') :
3876    case $s in #(
3877  BSD) :
3878    am__include='.include' am__quote='"' ;; #(
3879  *) :
3880    am__include='include' am__quote='' ;;
3881esac ;; #(
3882  *) :
3883     ;;
3884esac
3885  if test "$am__include" != "#"; then
3886    _am_result="yes ($s style)"
3887    break
3888  fi
3889done
3890rm -f confinc.* confmf.*
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3892$as_echo "${_am_result}" >&6; }
3893
3894# Check whether --enable-dependency-tracking was given.
3895if test "${enable_dependency_tracking+set}" = set; then :
3896  enableval=$enable_dependency_tracking;
3897fi
3898
3899if test "x$enable_dependency_tracking" != xno; then
3900  am_depcomp="$ac_aux_dir/depcomp"
3901  AMDEPBACKSLASH='\'
3902  am__nodep='_no'
3903fi
3904 if test "x$enable_dependency_tracking" != xno; then
3905  AMDEP_TRUE=
3906  AMDEP_FALSE='#'
3907else
3908  AMDEP_TRUE='#'
3909  AMDEP_FALSE=
3910fi
3911
3912
3913
3914depcc="$CC"   am_compiler_list=
3915
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3917$as_echo_n "checking dependency style of $depcc... " >&6; }
3918if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3922  # We make a subdir and do the tests there.  Otherwise we can end up
3923  # making bogus files that we don't know about and never remove.  For
3924  # instance it was reported that on HP-UX the gcc test will end up
3925  # making a dummy file named 'D' -- because '-MD' means "put the output
3926  # in D".
3927  rm -rf conftest.dir
3928  mkdir conftest.dir
3929  # Copy depcomp to subdir because otherwise we won't find it if we're
3930  # using a relative directory.
3931  cp "$am_depcomp" conftest.dir
3932  cd conftest.dir
3933  # We will build objects and dependencies in a subdirectory because
3934  # it helps to detect inapplicable dependency modes.  For instance
3935  # both Tru64's cc and ICC support -MD to output dependencies as a
3936  # side effect of compilation, but ICC will put the dependencies in
3937  # the current directory while Tru64 will put them in the object
3938  # directory.
3939  mkdir sub
3940
3941  am_cv_CC_dependencies_compiler_type=none
3942  if test "$am_compiler_list" = ""; then
3943     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3944  fi
3945  am__universal=false
3946  case " $depcc " in #(
3947     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3948     esac
3949
3950  for depmode in $am_compiler_list; do
3951    # Setup a source with many dependencies, because some compilers
3952    # like to wrap large dependency lists on column 80 (with \), and
3953    # we should not choose a depcomp mode which is confused by this.
3954    #
3955    # We need to recreate these files for each test, as the compiler may
3956    # overwrite some of them when testing with obscure command lines.
3957    # This happens at least with the AIX C compiler.
3958    : > sub/conftest.c
3959    for i in 1 2 3 4 5 6; do
3960      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3961      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3962      # Solaris 10 /bin/sh.
3963      echo '/* dummy */' > sub/conftst$i.h
3964    done
3965    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3966
3967    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3968    # mode.  It turns out that the SunPro C++ compiler does not properly
3969    # handle '-M -o', and we need to detect this.  Also, some Intel
3970    # versions had trouble with output in subdirs.
3971    am__obj=sub/conftest.${OBJEXT-o}
3972    am__minus_obj="-o $am__obj"
3973    case $depmode in
3974    gcc)
3975      # This depmode causes a compiler race in universal mode.
3976      test "$am__universal" = false || continue
3977      ;;
3978    nosideeffect)
3979      # After this tag, mechanisms are not by side-effect, so they'll
3980      # only be used when explicitly requested.
3981      if test "x$enable_dependency_tracking" = xyes; then
3982	continue
3983      else
3984	break
3985      fi
3986      ;;
3987    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3988      # This compiler won't grok '-c -o', but also, the minuso test has
3989      # not run yet.  These depmodes are late enough in the game, and
3990      # so weak that their functioning should not be impacted.
3991      am__obj=conftest.${OBJEXT-o}
3992      am__minus_obj=
3993      ;;
3994    none) break ;;
3995    esac
3996    if depmode=$depmode \
3997       source=sub/conftest.c object=$am__obj \
3998       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3999       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4000         >/dev/null 2>conftest.err &&
4001       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4002       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4003       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4004       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4005      # icc doesn't choke on unknown options, it will just issue warnings
4006      # or remarks (even with -Werror).  So we grep stderr for any message
4007      # that says an option was ignored or not supported.
4008      # When given -MP, icc 7.0 and 7.1 complain thusly:
4009      #   icc: Command line warning: ignoring option '-M'; no argument required
4010      # The diagnosis changed in icc 8.0:
4011      #   icc: Command line remark: option '-MP' not supported
4012      if (grep 'ignoring option' conftest.err ||
4013          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4014        am_cv_CC_dependencies_compiler_type=$depmode
4015        break
4016      fi
4017    fi
4018  done
4019
4020  cd ..
4021  rm -rf conftest.dir
4022else
4023  am_cv_CC_dependencies_compiler_type=none
4024fi
4025
4026fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4028$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4029CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4030
4031 if
4032  test "x$enable_dependency_tracking" != xno \
4033  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4034  am__fastdepCC_TRUE=
4035  am__fastdepCC_FALSE='#'
4036else
4037  am__fastdepCC_TRUE='#'
4038  am__fastdepCC_FALSE=
4039fi
4040
4041
4042if test -n "$ac_tool_prefix"; then
4043  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4044set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046$as_echo_n "checking for $ac_word... " >&6; }
4047if ${ac_cv_prog_RANLIB+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  if test -n "$RANLIB"; then
4051  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4052else
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056  IFS=$as_save_IFS
4057  test -z "$as_dir" && as_dir=.
4058    for ac_exec_ext in '' $ac_executable_extensions; do
4059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062    break 2
4063  fi
4064done
4065  done
4066IFS=$as_save_IFS
4067
4068fi
4069fi
4070RANLIB=$ac_cv_prog_RANLIB
4071if test -n "$RANLIB"; then
4072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4073$as_echo "$RANLIB" >&6; }
4074else
4075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076$as_echo "no" >&6; }
4077fi
4078
4079
4080fi
4081if test -z "$ac_cv_prog_RANLIB"; then
4082  ac_ct_RANLIB=$RANLIB
4083  # Extract the first word of "ranlib", so it can be a program name with args.
4084set dummy ranlib; ac_word=$2
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086$as_echo_n "checking for $ac_word... " >&6; }
4087if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  if test -n "$ac_ct_RANLIB"; then
4091  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096  IFS=$as_save_IFS
4097  test -z "$as_dir" && as_dir=.
4098    for ac_exec_ext in '' $ac_executable_extensions; do
4099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100    ac_cv_prog_ac_ct_RANLIB="ranlib"
4101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102    break 2
4103  fi
4104done
4105  done
4106IFS=$as_save_IFS
4107
4108fi
4109fi
4110ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4111if test -n "$ac_ct_RANLIB"; then
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4113$as_echo "$ac_ct_RANLIB" >&6; }
4114else
4115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116$as_echo "no" >&6; }
4117fi
4118
4119  if test "x$ac_ct_RANLIB" = x; then
4120    RANLIB=":"
4121  else
4122    case $cross_compiling:$ac_tool_warned in
4123yes:)
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126ac_tool_warned=yes ;;
4127esac
4128    RANLIB=$ac_ct_RANLIB
4129  fi
4130else
4131  RANLIB="$ac_cv_prog_RANLIB"
4132fi
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4135$as_echo_n "checking whether ln -s works... " >&6; }
4136LN_S=$as_ln_s
4137if test "$LN_S" = "ln -s"; then
4138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4139$as_echo "yes" >&6; }
4140else
4141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4142$as_echo "no, using $LN_S" >&6; }
4143fi
4144
4145case `pwd` in
4146  *\ * | *\	*)
4147    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4148$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4149esac
4150
4151
4152
4153macro_version='2.4.6'
4154macro_revision='2.4.6'
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168ltmain=$ac_aux_dir/ltmain.sh
4169
4170# Backslashify metacharacters that are still active within
4171# double-quoted strings.
4172sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4173
4174# Same as above, but do not quote variable references.
4175double_quote_subst='s/\(["`\\]\)/\\\1/g'
4176
4177# Sed substitution to delay expansion of an escaped shell variable in a
4178# double_quote_subst'ed string.
4179delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4180
4181# Sed substitution to delay expansion of an escaped single quote.
4182delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4183
4184# Sed substitution to avoid accidental globbing in evaled expressions
4185no_glob_subst='s/\*/\\\*/g'
4186
4187ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4188ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4189ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4190
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4192$as_echo_n "checking how to print strings... " >&6; }
4193# Test print first, because it will be a builtin if present.
4194if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4195   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4196  ECHO='print -r --'
4197elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4198  ECHO='printf %s\n'
4199else
4200  # Use this function as a fallback that always works.
4201  func_fallback_echo ()
4202  {
4203    eval 'cat <<_LTECHO_EOF
4204$1
4205_LTECHO_EOF'
4206  }
4207  ECHO='func_fallback_echo'
4208fi
4209
4210# func_echo_all arg...
4211# Invoke $ECHO with all args, space-separated.
4212func_echo_all ()
4213{
4214    $ECHO ""
4215}
4216
4217case $ECHO in
4218  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4219$as_echo "printf" >&6; } ;;
4220  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4221$as_echo "print -r" >&6; } ;;
4222  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4223$as_echo "cat" >&6; } ;;
4224esac
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4240$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4241if ${ac_cv_path_SED+:} false; then :
4242  $as_echo_n "(cached) " >&6
4243else
4244            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4245     for ac_i in 1 2 3 4 5 6 7; do
4246       ac_script="$ac_script$as_nl$ac_script"
4247     done
4248     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4249     { ac_script=; unset ac_script;}
4250     if test -z "$SED"; then
4251  ac_path_SED_found=false
4252  # Loop through the user's path and test for each of PROGNAME-LIST
4253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256  IFS=$as_save_IFS
4257  test -z "$as_dir" && as_dir=.
4258    for ac_prog in sed gsed; do
4259    for ac_exec_ext in '' $ac_executable_extensions; do
4260      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4261      as_fn_executable_p "$ac_path_SED" || continue
4262# Check for GNU ac_path_SED and select it if it is found.
4263  # Check for GNU $ac_path_SED
4264case `"$ac_path_SED" --version 2>&1` in
4265*GNU*)
4266  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4267*)
4268  ac_count=0
4269  $as_echo_n 0123456789 >"conftest.in"
4270  while :
4271  do
4272    cat "conftest.in" "conftest.in" >"conftest.tmp"
4273    mv "conftest.tmp" "conftest.in"
4274    cp "conftest.in" "conftest.nl"
4275    $as_echo '' >> "conftest.nl"
4276    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4277    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4278    as_fn_arith $ac_count + 1 && ac_count=$as_val
4279    if test $ac_count -gt ${ac_path_SED_max-0}; then
4280      # Best one so far, save it but keep looking for a better one
4281      ac_cv_path_SED="$ac_path_SED"
4282      ac_path_SED_max=$ac_count
4283    fi
4284    # 10*(2^10) chars as input seems more than enough
4285    test $ac_count -gt 10 && break
4286  done
4287  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4288esac
4289
4290      $ac_path_SED_found && break 3
4291    done
4292  done
4293  done
4294IFS=$as_save_IFS
4295  if test -z "$ac_cv_path_SED"; then
4296    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4297  fi
4298else
4299  ac_cv_path_SED=$SED
4300fi
4301
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4304$as_echo "$ac_cv_path_SED" >&6; }
4305 SED="$ac_cv_path_SED"
4306  rm -f conftest.sed
4307
4308test -z "$SED" && SED=sed
4309Xsed="$SED -e 1s/^X//"
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4322$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4323if ${ac_cv_path_GREP+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if test -z "$GREP"; then
4327  ac_path_GREP_found=false
4328  # Loop through the user's path and test for each of PROGNAME-LIST
4329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334    for ac_prog in grep ggrep; do
4335    for ac_exec_ext in '' $ac_executable_extensions; do
4336      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337      as_fn_executable_p "$ac_path_GREP" || continue
4338# Check for GNU ac_path_GREP and select it if it is found.
4339  # Check for GNU $ac_path_GREP
4340case `"$ac_path_GREP" --version 2>&1` in
4341*GNU*)
4342  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343*)
4344  ac_count=0
4345  $as_echo_n 0123456789 >"conftest.in"
4346  while :
4347  do
4348    cat "conftest.in" "conftest.in" >"conftest.tmp"
4349    mv "conftest.tmp" "conftest.in"
4350    cp "conftest.in" "conftest.nl"
4351    $as_echo 'GREP' >> "conftest.nl"
4352    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354    as_fn_arith $ac_count + 1 && ac_count=$as_val
4355    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356      # Best one so far, save it but keep looking for a better one
4357      ac_cv_path_GREP="$ac_path_GREP"
4358      ac_path_GREP_max=$ac_count
4359    fi
4360    # 10*(2^10) chars as input seems more than enough
4361    test $ac_count -gt 10 && break
4362  done
4363  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364esac
4365
4366      $ac_path_GREP_found && break 3
4367    done
4368  done
4369  done
4370IFS=$as_save_IFS
4371  if test -z "$ac_cv_path_GREP"; then
4372    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373  fi
4374else
4375  ac_cv_path_GREP=$GREP
4376fi
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4380$as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP="$ac_cv_path_GREP"
4382
4383
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4385$as_echo_n "checking for egrep... " >&6; }
4386if ${ac_cv_path_EGREP+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390   then ac_cv_path_EGREP="$GREP -E"
4391   else
4392     if test -z "$EGREP"; then
4393  ac_path_EGREP_found=false
4394  # Loop through the user's path and test for each of PROGNAME-LIST
4395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400    for ac_prog in egrep; do
4401    for ac_exec_ext in '' $ac_executable_extensions; do
4402      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4403      as_fn_executable_p "$ac_path_EGREP" || continue
4404# Check for GNU ac_path_EGREP and select it if it is found.
4405  # Check for GNU $ac_path_EGREP
4406case `"$ac_path_EGREP" --version 2>&1` in
4407*GNU*)
4408  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409*)
4410  ac_count=0
4411  $as_echo_n 0123456789 >"conftest.in"
4412  while :
4413  do
4414    cat "conftest.in" "conftest.in" >"conftest.tmp"
4415    mv "conftest.tmp" "conftest.in"
4416    cp "conftest.in" "conftest.nl"
4417    $as_echo 'EGREP' >> "conftest.nl"
4418    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420    as_fn_arith $ac_count + 1 && ac_count=$as_val
4421    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422      # Best one so far, save it but keep looking for a better one
4423      ac_cv_path_EGREP="$ac_path_EGREP"
4424      ac_path_EGREP_max=$ac_count
4425    fi
4426    # 10*(2^10) chars as input seems more than enough
4427    test $ac_count -gt 10 && break
4428  done
4429  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430esac
4431
4432      $ac_path_EGREP_found && break 3
4433    done
4434  done
4435  done
4436IFS=$as_save_IFS
4437  if test -z "$ac_cv_path_EGREP"; then
4438    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439  fi
4440else
4441  ac_cv_path_EGREP=$EGREP
4442fi
4443
4444   fi
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4447$as_echo "$ac_cv_path_EGREP" >&6; }
4448 EGREP="$ac_cv_path_EGREP"
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4452$as_echo_n "checking for fgrep... " >&6; }
4453if ${ac_cv_path_FGREP+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4457   then ac_cv_path_FGREP="$GREP -F"
4458   else
4459     if test -z "$FGREP"; then
4460  ac_path_FGREP_found=false
4461  # Loop through the user's path and test for each of PROGNAME-LIST
4462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467    for ac_prog in fgrep; do
4468    for ac_exec_ext in '' $ac_executable_extensions; do
4469      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4470      as_fn_executable_p "$ac_path_FGREP" || continue
4471# Check for GNU ac_path_FGREP and select it if it is found.
4472  # Check for GNU $ac_path_FGREP
4473case `"$ac_path_FGREP" --version 2>&1` in
4474*GNU*)
4475  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4476*)
4477  ac_count=0
4478  $as_echo_n 0123456789 >"conftest.in"
4479  while :
4480  do
4481    cat "conftest.in" "conftest.in" >"conftest.tmp"
4482    mv "conftest.tmp" "conftest.in"
4483    cp "conftest.in" "conftest.nl"
4484    $as_echo 'FGREP' >> "conftest.nl"
4485    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4486    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4487    as_fn_arith $ac_count + 1 && ac_count=$as_val
4488    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4489      # Best one so far, save it but keep looking for a better one
4490      ac_cv_path_FGREP="$ac_path_FGREP"
4491      ac_path_FGREP_max=$ac_count
4492    fi
4493    # 10*(2^10) chars as input seems more than enough
4494    test $ac_count -gt 10 && break
4495  done
4496  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497esac
4498
4499      $ac_path_FGREP_found && break 3
4500    done
4501  done
4502  done
4503IFS=$as_save_IFS
4504  if test -z "$ac_cv_path_FGREP"; then
4505    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506  fi
4507else
4508  ac_cv_path_FGREP=$FGREP
4509fi
4510
4511   fi
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4514$as_echo "$ac_cv_path_FGREP" >&6; }
4515 FGREP="$ac_cv_path_FGREP"
4516
4517
4518test -z "$GREP" && GREP=grep
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538# Check whether --with-gnu-ld was given.
4539if test "${with_gnu_ld+set}" = set; then :
4540  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4541else
4542  with_gnu_ld=no
4543fi
4544
4545ac_prog=ld
4546if test yes = "$GCC"; then
4547  # Check if gcc -print-prog-name=ld gives a path.
4548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4549$as_echo_n "checking for ld used by $CC... " >&6; }
4550  case $host in
4551  *-*-mingw*)
4552    # gcc leaves a trailing carriage return, which upsets mingw
4553    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4554  *)
4555    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556  esac
4557  case $ac_prog in
4558    # Accept absolute paths.
4559    [\\/]* | ?:[\\/]*)
4560      re_direlt='/[^/][^/]*/\.\./'
4561      # Canonicalize the pathname of ld
4562      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4564	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4565      done
4566      test -z "$LD" && LD=$ac_prog
4567      ;;
4568  "")
4569    # If it fails, then pretend we aren't using GCC.
4570    ac_prog=ld
4571    ;;
4572  *)
4573    # If it is relative, then search for the first ld in PATH.
4574    with_gnu_ld=unknown
4575    ;;
4576  esac
4577elif test yes = "$with_gnu_ld"; then
4578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4579$as_echo_n "checking for GNU ld... " >&6; }
4580else
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4582$as_echo_n "checking for non-GNU ld... " >&6; }
4583fi
4584if ${lt_cv_path_LD+:} false; then :
4585  $as_echo_n "(cached) " >&6
4586else
4587  if test -z "$LD"; then
4588  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4589  for ac_dir in $PATH; do
4590    IFS=$lt_save_ifs
4591    test -z "$ac_dir" && ac_dir=.
4592    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593      lt_cv_path_LD=$ac_dir/$ac_prog
4594      # Check to see if the program is GNU ld.  I'd rather use --version,
4595      # but apparently some variants of GNU ld only accept -v.
4596      # Break only if it was the GNU/non-GNU ld that we prefer.
4597      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598      *GNU* | *'with BFD'*)
4599	test no != "$with_gnu_ld" && break
4600	;;
4601      *)
4602	test yes != "$with_gnu_ld" && break
4603	;;
4604      esac
4605    fi
4606  done
4607  IFS=$lt_save_ifs
4608else
4609  lt_cv_path_LD=$LD # Let the user override the test with a path.
4610fi
4611fi
4612
4613LD=$lt_cv_path_LD
4614if test -n "$LD"; then
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4616$as_echo "$LD" >&6; }
4617else
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619$as_echo "no" >&6; }
4620fi
4621test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4623$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4624if ${lt_cv_prog_gnu_ld+:} false; then :
4625  $as_echo_n "(cached) " >&6
4626else
4627  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4628case `$LD -v 2>&1 </dev/null` in
4629*GNU* | *'with BFD'*)
4630  lt_cv_prog_gnu_ld=yes
4631  ;;
4632*)
4633  lt_cv_prog_gnu_ld=no
4634  ;;
4635esac
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4638$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4639with_gnu_ld=$lt_cv_prog_gnu_ld
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4650$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4651if ${lt_cv_path_NM+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -n "$NM"; then
4655  # Let the user override the test.
4656  lt_cv_path_NM=$NM
4657else
4658  lt_nm_to_check=${ac_tool_prefix}nm
4659  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4660    lt_nm_to_check="$lt_nm_to_check nm"
4661  fi
4662  for lt_tmp_nm in $lt_nm_to_check; do
4663    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4664    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4665      IFS=$lt_save_ifs
4666      test -z "$ac_dir" && ac_dir=.
4667      tmp_nm=$ac_dir/$lt_tmp_nm
4668      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4669	# Check to see if the nm accepts a BSD-compat flag.
4670	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4671	#   nm: unknown option "B" ignored
4672	# Tru64's nm complains that /dev/null is an invalid object file
4673	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4674	case $build_os in
4675	mingw*) lt_bad_file=conftest.nm/nofile ;;
4676	*) lt_bad_file=/dev/null ;;
4677	esac
4678	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4679	*$lt_bad_file* | *'Invalid file or object type'*)
4680	  lt_cv_path_NM="$tmp_nm -B"
4681	  break 2
4682	  ;;
4683	*)
4684	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4685	  */dev/null*)
4686	    lt_cv_path_NM="$tmp_nm -p"
4687	    break 2
4688	    ;;
4689	  *)
4690	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4691	    continue # so that we can try to find one that supports BSD flags
4692	    ;;
4693	  esac
4694	  ;;
4695	esac
4696      fi
4697    done
4698    IFS=$lt_save_ifs
4699  done
4700  : ${lt_cv_path_NM=no}
4701fi
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4704$as_echo "$lt_cv_path_NM" >&6; }
4705if test no != "$lt_cv_path_NM"; then
4706  NM=$lt_cv_path_NM
4707else
4708  # Didn't find any BSD compatible name lister, look for dumpbin.
4709  if test -n "$DUMPBIN"; then :
4710    # Let the user override the test.
4711  else
4712    if test -n "$ac_tool_prefix"; then
4713  for ac_prog in dumpbin "link -dump"
4714  do
4715    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718$as_echo_n "checking for $ac_word... " >&6; }
4719if ${ac_cv_prog_DUMPBIN+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  if test -n "$DUMPBIN"; then
4723  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730    for ac_exec_ext in '' $ac_executable_extensions; do
4731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734    break 2
4735  fi
4736done
4737  done
4738IFS=$as_save_IFS
4739
4740fi
4741fi
4742DUMPBIN=$ac_cv_prog_DUMPBIN
4743if test -n "$DUMPBIN"; then
4744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4745$as_echo "$DUMPBIN" >&6; }
4746else
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748$as_echo "no" >&6; }
4749fi
4750
4751
4752    test -n "$DUMPBIN" && break
4753  done
4754fi
4755if test -z "$DUMPBIN"; then
4756  ac_ct_DUMPBIN=$DUMPBIN
4757  for ac_prog in dumpbin "link -dump"
4758do
4759  # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  if test -n "$ac_ct_DUMPBIN"; then
4767  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772  IFS=$as_save_IFS
4773  test -z "$as_dir" && as_dir=.
4774    for ac_exec_ext in '' $ac_executable_extensions; do
4775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778    break 2
4779  fi
4780done
4781  done
4782IFS=$as_save_IFS
4783
4784fi
4785fi
4786ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4787if test -n "$ac_ct_DUMPBIN"; then
4788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4789$as_echo "$ac_ct_DUMPBIN" >&6; }
4790else
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }
4793fi
4794
4795
4796  test -n "$ac_ct_DUMPBIN" && break
4797done
4798
4799  if test "x$ac_ct_DUMPBIN" = x; then
4800    DUMPBIN=":"
4801  else
4802    case $cross_compiling:$ac_tool_warned in
4803yes:)
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806ac_tool_warned=yes ;;
4807esac
4808    DUMPBIN=$ac_ct_DUMPBIN
4809  fi
4810fi
4811
4812    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4813    *COFF*)
4814      DUMPBIN="$DUMPBIN -symbols -headers"
4815      ;;
4816    *)
4817      DUMPBIN=:
4818      ;;
4819    esac
4820  fi
4821
4822  if test : != "$DUMPBIN"; then
4823    NM=$DUMPBIN
4824  fi
4825fi
4826test -z "$NM" && NM=nm
4827
4828
4829
4830
4831
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4834$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4835if ${lt_cv_nm_interface+:} false; then :
4836  $as_echo_n "(cached) " >&6
4837else
4838  lt_cv_nm_interface="BSD nm"
4839  echo "int some_variable = 0;" > conftest.$ac_ext
4840  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4841  (eval "$ac_compile" 2>conftest.err)
4842  cat conftest.err >&5
4843  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4844  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4845  cat conftest.err >&5
4846  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4847  cat conftest.out >&5
4848  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4849    lt_cv_nm_interface="MS dumpbin"
4850  fi
4851  rm -f conftest*
4852fi
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4854$as_echo "$lt_cv_nm_interface" >&6; }
4855
4856# find the maximum length of command line arguments
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4858$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4859if ${lt_cv_sys_max_cmd_len+:} false; then :
4860  $as_echo_n "(cached) " >&6
4861else
4862    i=0
4863  teststring=ABCD
4864
4865  case $build_os in
4866  msdosdjgpp*)
4867    # On DJGPP, this test can blow up pretty badly due to problems in libc
4868    # (any single argument exceeding 2000 bytes causes a buffer overrun
4869    # during glob expansion).  Even if it were fixed, the result of this
4870    # check would be larger than it should be.
4871    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4872    ;;
4873
4874  gnu*)
4875    # Under GNU Hurd, this test is not required because there is
4876    # no limit to the length of command line arguments.
4877    # Libtool will interpret -1 as no limit whatsoever
4878    lt_cv_sys_max_cmd_len=-1;
4879    ;;
4880
4881  cygwin* | mingw* | cegcc*)
4882    # On Win9x/ME, this test blows up -- it succeeds, but takes
4883    # about 5 minutes as the teststring grows exponentially.
4884    # Worse, since 9x/ME are not pre-emptively multitasking,
4885    # you end up with a "frozen" computer, even though with patience
4886    # the test eventually succeeds (with a max line length of 256k).
4887    # Instead, let's just punt: use the minimum linelength reported by
4888    # all of the supported platforms: 8192 (on NT/2K/XP).
4889    lt_cv_sys_max_cmd_len=8192;
4890    ;;
4891
4892  mint*)
4893    # On MiNT this can take a long time and run out of memory.
4894    lt_cv_sys_max_cmd_len=8192;
4895    ;;
4896
4897  amigaos*)
4898    # On AmigaOS with pdksh, this test takes hours, literally.
4899    # So we just punt and use a minimum line length of 8192.
4900    lt_cv_sys_max_cmd_len=8192;
4901    ;;
4902
4903  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4904    # This has been around since 386BSD, at least.  Likely further.
4905    if test -x /sbin/sysctl; then
4906      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4907    elif test -x /usr/sbin/sysctl; then
4908      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4909    else
4910      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4911    fi
4912    # And add a safety zone
4913    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4914    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4915    ;;
4916
4917  interix*)
4918    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4919    lt_cv_sys_max_cmd_len=196608
4920    ;;
4921
4922  os2*)
4923    # The test takes a long time on OS/2.
4924    lt_cv_sys_max_cmd_len=8192
4925    ;;
4926
4927  osf*)
4928    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4929    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4930    # nice to cause kernel panics so lets avoid the loop below.
4931    # First set a reasonable default.
4932    lt_cv_sys_max_cmd_len=16384
4933    #
4934    if test -x /sbin/sysconfig; then
4935      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4936        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4937      esac
4938    fi
4939    ;;
4940  sco3.2v5*)
4941    lt_cv_sys_max_cmd_len=102400
4942    ;;
4943  sysv5* | sco5v6* | sysv4.2uw2*)
4944    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4945    if test -n "$kargmax"; then
4946      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4947    else
4948      lt_cv_sys_max_cmd_len=32768
4949    fi
4950    ;;
4951  *)
4952    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4953    if test -n "$lt_cv_sys_max_cmd_len" && \
4954       test undefined != "$lt_cv_sys_max_cmd_len"; then
4955      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4956      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4957    else
4958      # Make teststring a little bigger before we do anything with it.
4959      # a 1K string should be a reasonable start.
4960      for i in 1 2 3 4 5 6 7 8; do
4961        teststring=$teststring$teststring
4962      done
4963      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4964      # If test is not a shell built-in, we'll probably end up computing a
4965      # maximum length that is only half of the actual maximum length, but
4966      # we can't tell.
4967      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4968	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4969	      test 17 != "$i" # 1/2 MB should be enough
4970      do
4971        i=`expr $i + 1`
4972        teststring=$teststring$teststring
4973      done
4974      # Only check the string length outside the loop.
4975      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4976      teststring=
4977      # Add a significant safety factor because C++ compilers can tack on
4978      # massive amounts of additional arguments before passing them to the
4979      # linker.  It appears as though 1/2 is a usable value.
4980      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4981    fi
4982    ;;
4983  esac
4984
4985fi
4986
4987if test -n "$lt_cv_sys_max_cmd_len"; then
4988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4989$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4990else
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4992$as_echo "none" >&6; }
4993fi
4994max_cmd_len=$lt_cv_sys_max_cmd_len
4995
4996
4997
4998
4999
5000
5001: ${CP="cp -f"}
5002: ${MV="mv -f"}
5003: ${RM="rm -f"}
5004
5005if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5006  lt_unset=unset
5007else
5008  lt_unset=false
5009fi
5010
5011
5012
5013
5014
5015# test EBCDIC or ASCII
5016case `echo X|tr X '\101'` in
5017 A) # ASCII based system
5018    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5019  lt_SP2NL='tr \040 \012'
5020  lt_NL2SP='tr \015\012 \040\040'
5021  ;;
5022 *) # EBCDIC based system
5023  lt_SP2NL='tr \100 \n'
5024  lt_NL2SP='tr \r\n \100\100'
5025  ;;
5026esac
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5037$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5038if ${lt_cv_to_host_file_cmd+:} false; then :
5039  $as_echo_n "(cached) " >&6
5040else
5041  case $host in
5042  *-*-mingw* )
5043    case $build in
5044      *-*-mingw* ) # actually msys
5045        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5046        ;;
5047      *-*-cygwin* )
5048        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5049        ;;
5050      * ) # otherwise, assume *nix
5051        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5052        ;;
5053    esac
5054    ;;
5055  *-*-cygwin* )
5056    case $build in
5057      *-*-mingw* ) # actually msys
5058        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5059        ;;
5060      *-*-cygwin* )
5061        lt_cv_to_host_file_cmd=func_convert_file_noop
5062        ;;
5063      * ) # otherwise, assume *nix
5064        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5065        ;;
5066    esac
5067    ;;
5068  * ) # unhandled hosts (and "normal" native builds)
5069    lt_cv_to_host_file_cmd=func_convert_file_noop
5070    ;;
5071esac
5072
5073fi
5074
5075to_host_file_cmd=$lt_cv_to_host_file_cmd
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5077$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5078
5079
5080
5081
5082
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5084$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5085if ${lt_cv_to_tool_file_cmd+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  #assume ordinary cross tools, or native build.
5089lt_cv_to_tool_file_cmd=func_convert_file_noop
5090case $host in
5091  *-*-mingw* )
5092    case $build in
5093      *-*-mingw* ) # actually msys
5094        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5095        ;;
5096    esac
5097    ;;
5098esac
5099
5100fi
5101
5102to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5104$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5105
5106
5107
5108
5109
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5111$as_echo_n "checking for $LD option to reload object files... " >&6; }
5112if ${lt_cv_ld_reload_flag+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  lt_cv_ld_reload_flag='-r'
5116fi
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5118$as_echo "$lt_cv_ld_reload_flag" >&6; }
5119reload_flag=$lt_cv_ld_reload_flag
5120case $reload_flag in
5121"" | " "*) ;;
5122*) reload_flag=" $reload_flag" ;;
5123esac
5124reload_cmds='$LD$reload_flag -o $output$reload_objs'
5125case $host_os in
5126  cygwin* | mingw* | pw32* | cegcc*)
5127    if test yes != "$GCC"; then
5128      reload_cmds=false
5129    fi
5130    ;;
5131  darwin*)
5132    if test yes = "$GCC"; then
5133      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5134    else
5135      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5136    fi
5137    ;;
5138esac
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148if test -n "$ac_tool_prefix"; then
5149  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5150set dummy ${ac_tool_prefix}objdump; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_OBJDUMP+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  if test -n "$OBJDUMP"; then
5157  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162  IFS=$as_save_IFS
5163  test -z "$as_dir" && as_dir=.
5164    for ac_exec_ext in '' $ac_executable_extensions; do
5165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168    break 2
5169  fi
5170done
5171  done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176OBJDUMP=$ac_cv_prog_OBJDUMP
5177if test -n "$OBJDUMP"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5179$as_echo "$OBJDUMP" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186fi
5187if test -z "$ac_cv_prog_OBJDUMP"; then
5188  ac_ct_OBJDUMP=$OBJDUMP
5189  # Extract the first word of "objdump", so it can be a program name with args.
5190set dummy objdump; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
5193if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  if test -n "$ac_ct_OBJDUMP"; then
5197  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202  IFS=$as_save_IFS
5203  test -z "$as_dir" && as_dir=.
5204    for ac_exec_ext in '' $ac_executable_extensions; do
5205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208    break 2
5209  fi
5210done
5211  done
5212IFS=$as_save_IFS
5213
5214fi
5215fi
5216ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5217if test -n "$ac_ct_OBJDUMP"; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5219$as_echo "$ac_ct_OBJDUMP" >&6; }
5220else
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225  if test "x$ac_ct_OBJDUMP" = x; then
5226    OBJDUMP="false"
5227  else
5228    case $cross_compiling:$ac_tool_warned in
5229yes:)
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232ac_tool_warned=yes ;;
5233esac
5234    OBJDUMP=$ac_ct_OBJDUMP
5235  fi
5236else
5237  OBJDUMP="$ac_cv_prog_OBJDUMP"
5238fi
5239
5240test -z "$OBJDUMP" && OBJDUMP=objdump
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5251$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5252if ${lt_cv_deplibs_check_method+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  lt_cv_file_magic_cmd='$MAGIC_CMD'
5256lt_cv_file_magic_test_file=
5257lt_cv_deplibs_check_method='unknown'
5258# Need to set the preceding variable on all platforms that support
5259# interlibrary dependencies.
5260# 'none' -- dependencies not supported.
5261# 'unknown' -- same as none, but documents that we really don't know.
5262# 'pass_all' -- all dependencies passed with no checks.
5263# 'test_compile' -- check by making test program.
5264# 'file_magic [[regex]]' -- check by looking for files in library path
5265# that responds to the $file_magic_cmd with a given extended regex.
5266# If you have 'file' or equivalent on your system and you're not sure
5267# whether 'pass_all' will *always* work, you probably want this one.
5268
5269case $host_os in
5270aix[4-9]*)
5271  lt_cv_deplibs_check_method=pass_all
5272  ;;
5273
5274beos*)
5275  lt_cv_deplibs_check_method=pass_all
5276  ;;
5277
5278bsdi[45]*)
5279  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5280  lt_cv_file_magic_cmd='/usr/bin/file -L'
5281  lt_cv_file_magic_test_file=/shlib/libc.so
5282  ;;
5283
5284cygwin*)
5285  # func_win32_libid is a shell function defined in ltmain.sh
5286  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5287  lt_cv_file_magic_cmd='func_win32_libid'
5288  ;;
5289
5290mingw* | pw32*)
5291  # Base MSYS/MinGW do not provide the 'file' command needed by
5292  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5293  # unless we find 'file', for example because we are cross-compiling.
5294  if ( file / ) >/dev/null 2>&1; then
5295    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5296    lt_cv_file_magic_cmd='func_win32_libid'
5297  else
5298    # Keep this pattern in sync with the one in func_win32_libid.
5299    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5300    lt_cv_file_magic_cmd='$OBJDUMP -f'
5301  fi
5302  ;;
5303
5304cegcc*)
5305  # use the weaker test based on 'objdump'. See mingw*.
5306  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5307  lt_cv_file_magic_cmd='$OBJDUMP -f'
5308  ;;
5309
5310darwin* | rhapsody*)
5311  lt_cv_deplibs_check_method=pass_all
5312  ;;
5313
5314freebsd* | dragonfly*)
5315  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5316    case $host_cpu in
5317    i*86 )
5318      # Not sure whether the presence of OpenBSD here was a mistake.
5319      # Let's accept both of them until this is cleared up.
5320      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5321      lt_cv_file_magic_cmd=/usr/bin/file
5322      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5323      ;;
5324    esac
5325  else
5326    lt_cv_deplibs_check_method=pass_all
5327  fi
5328  ;;
5329
5330haiku*)
5331  lt_cv_deplibs_check_method=pass_all
5332  ;;
5333
5334hpux10.20* | hpux11*)
5335  lt_cv_file_magic_cmd=/usr/bin/file
5336  case $host_cpu in
5337  ia64*)
5338    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5339    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5340    ;;
5341  hppa*64*)
5342    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]'
5343    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5344    ;;
5345  *)
5346    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5347    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5348    ;;
5349  esac
5350  ;;
5351
5352interix[3-9]*)
5353  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5354  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5355  ;;
5356
5357irix5* | irix6* | nonstopux*)
5358  case $LD in
5359  *-32|*"-32 ") libmagic=32-bit;;
5360  *-n32|*"-n32 ") libmagic=N32;;
5361  *-64|*"-64 ") libmagic=64-bit;;
5362  *) libmagic=never-match;;
5363  esac
5364  lt_cv_deplibs_check_method=pass_all
5365  ;;
5366
5367# This must be glibc/ELF.
5368linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5369  lt_cv_deplibs_check_method=pass_all
5370  ;;
5371
5372netbsd*)
5373  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5375  else
5376    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5377  fi
5378  ;;
5379
5380newos6*)
5381  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5382  lt_cv_file_magic_cmd=/usr/bin/file
5383  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5384  ;;
5385
5386*nto* | *qnx*)
5387  lt_cv_deplibs_check_method=pass_all
5388  ;;
5389
5390openbsd* | bitrig*)
5391  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5393  else
5394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5395  fi
5396  ;;
5397
5398osf3* | osf4* | osf5*)
5399  lt_cv_deplibs_check_method=pass_all
5400  ;;
5401
5402rdos*)
5403  lt_cv_deplibs_check_method=pass_all
5404  ;;
5405
5406solaris*)
5407  lt_cv_deplibs_check_method=pass_all
5408  ;;
5409
5410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5411  lt_cv_deplibs_check_method=pass_all
5412  ;;
5413
5414sysv4 | sysv4.3*)
5415  case $host_vendor in
5416  motorola)
5417    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]'
5418    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5419    ;;
5420  ncr)
5421    lt_cv_deplibs_check_method=pass_all
5422    ;;
5423  sequent)
5424    lt_cv_file_magic_cmd='/bin/file'
5425    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5426    ;;
5427  sni)
5428    lt_cv_file_magic_cmd='/bin/file'
5429    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5430    lt_cv_file_magic_test_file=/lib/libc.so
5431    ;;
5432  siemens)
5433    lt_cv_deplibs_check_method=pass_all
5434    ;;
5435  pc)
5436    lt_cv_deplibs_check_method=pass_all
5437    ;;
5438  esac
5439  ;;
5440
5441tpf*)
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444os2*)
5445  lt_cv_deplibs_check_method=pass_all
5446  ;;
5447esac
5448
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5451$as_echo "$lt_cv_deplibs_check_method" >&6; }
5452
5453file_magic_glob=
5454want_nocaseglob=no
5455if test "$build" = "$host"; then
5456  case $host_os in
5457  mingw* | pw32*)
5458    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5459      want_nocaseglob=yes
5460    else
5461      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5462    fi
5463    ;;
5464  esac
5465fi
5466
5467file_magic_cmd=$lt_cv_file_magic_cmd
5468deplibs_check_method=$lt_cv_deplibs_check_method
5469test -z "$deplibs_check_method" && deplibs_check_method=unknown
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492if test -n "$ac_tool_prefix"; then
5493  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5494set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496$as_echo_n "checking for $ac_word... " >&6; }
5497if ${ac_cv_prog_DLLTOOL+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  if test -n "$DLLTOOL"; then
5501  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506  IFS=$as_save_IFS
5507  test -z "$as_dir" && as_dir=.
5508    for ac_exec_ext in '' $ac_executable_extensions; do
5509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512    break 2
5513  fi
5514done
5515  done
5516IFS=$as_save_IFS
5517
5518fi
5519fi
5520DLLTOOL=$ac_cv_prog_DLLTOOL
5521if test -n "$DLLTOOL"; then
5522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5523$as_echo "$DLLTOOL" >&6; }
5524else
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }
5527fi
5528
5529
5530fi
5531if test -z "$ac_cv_prog_DLLTOOL"; then
5532  ac_ct_DLLTOOL=$DLLTOOL
5533  # Extract the first word of "dlltool", so it can be a program name with args.
5534set dummy dlltool; ac_word=$2
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536$as_echo_n "checking for $ac_word... " >&6; }
5537if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  if test -n "$ac_ct_DLLTOOL"; then
5541  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5542else
5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546  IFS=$as_save_IFS
5547  test -z "$as_dir" && as_dir=.
5548    for ac_exec_ext in '' $ac_executable_extensions; do
5549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552    break 2
5553  fi
5554done
5555  done
5556IFS=$as_save_IFS
5557
5558fi
5559fi
5560ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5561if test -n "$ac_ct_DLLTOOL"; then
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5563$as_echo "$ac_ct_DLLTOOL" >&6; }
5564else
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566$as_echo "no" >&6; }
5567fi
5568
5569  if test "x$ac_ct_DLLTOOL" = x; then
5570    DLLTOOL="false"
5571  else
5572    case $cross_compiling:$ac_tool_warned in
5573yes:)
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576ac_tool_warned=yes ;;
5577esac
5578    DLLTOOL=$ac_ct_DLLTOOL
5579  fi
5580else
5581  DLLTOOL="$ac_cv_prog_DLLTOOL"
5582fi
5583
5584test -z "$DLLTOOL" && DLLTOOL=dlltool
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5596$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5597if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  lt_cv_sharedlib_from_linklib_cmd='unknown'
5601
5602case $host_os in
5603cygwin* | mingw* | pw32* | cegcc*)
5604  # two different shell functions defined in ltmain.sh;
5605  # decide which one to use based on capabilities of $DLLTOOL
5606  case `$DLLTOOL --help 2>&1` in
5607  *--identify-strict*)
5608    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5609    ;;
5610  *)
5611    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5612    ;;
5613  esac
5614  ;;
5615*)
5616  # fallback: assume linklib IS sharedlib
5617  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5618  ;;
5619esac
5620
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5623$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5624sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5625test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5626
5627
5628
5629
5630
5631
5632
5633
5634if test -n "$ac_tool_prefix"; then
5635  for ac_prog in ar
5636  do
5637    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5638set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
5641if ${ac_cv_prog_AR+:} false; then :
5642  $as_echo_n "(cached) " >&6
5643else
5644  if test -n "$AR"; then
5645  ac_cv_prog_AR="$AR" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650  IFS=$as_save_IFS
5651  test -z "$as_dir" && as_dir=.
5652    for ac_exec_ext in '' $ac_executable_extensions; do
5653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656    break 2
5657  fi
5658done
5659  done
5660IFS=$as_save_IFS
5661
5662fi
5663fi
5664AR=$ac_cv_prog_AR
5665if test -n "$AR"; then
5666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5667$as_echo "$AR" >&6; }
5668else
5669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670$as_echo "no" >&6; }
5671fi
5672
5673
5674    test -n "$AR" && break
5675  done
5676fi
5677if test -z "$AR"; then
5678  ac_ct_AR=$AR
5679  for ac_prog in ar
5680do
5681  # Extract the first word of "$ac_prog", so it can be a program name with args.
5682set dummy $ac_prog; ac_word=$2
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684$as_echo_n "checking for $ac_word... " >&6; }
5685if ${ac_cv_prog_ac_ct_AR+:} false; then :
5686  $as_echo_n "(cached) " >&6
5687else
5688  if test -n "$ac_ct_AR"; then
5689  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694  IFS=$as_save_IFS
5695  test -z "$as_dir" && as_dir=.
5696    for ac_exec_ext in '' $ac_executable_extensions; do
5697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698    ac_cv_prog_ac_ct_AR="$ac_prog"
5699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700    break 2
5701  fi
5702done
5703  done
5704IFS=$as_save_IFS
5705
5706fi
5707fi
5708ac_ct_AR=$ac_cv_prog_ac_ct_AR
5709if test -n "$ac_ct_AR"; then
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5711$as_echo "$ac_ct_AR" >&6; }
5712else
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714$as_echo "no" >&6; }
5715fi
5716
5717
5718  test -n "$ac_ct_AR" && break
5719done
5720
5721  if test "x$ac_ct_AR" = x; then
5722    AR="false"
5723  else
5724    case $cross_compiling:$ac_tool_warned in
5725yes:)
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728ac_tool_warned=yes ;;
5729esac
5730    AR=$ac_ct_AR
5731  fi
5732fi
5733
5734: ${AR=ar}
5735: ${AR_FLAGS=cru}
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5748$as_echo_n "checking for archiver @FILE support... " >&6; }
5749if ${lt_cv_ar_at_file+:} false; then :
5750  $as_echo_n "(cached) " >&6
5751else
5752  lt_cv_ar_at_file=no
5753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755
5756int
5757main ()
5758{
5759
5760  ;
5761  return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_compile "$LINENO"; then :
5765  echo conftest.$ac_objext > conftest.lst
5766      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5767      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5768  (eval $lt_ar_try) 2>&5
5769  ac_status=$?
5770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771  test $ac_status = 0; }
5772      if test 0 -eq "$ac_status"; then
5773	# Ensure the archiver fails upon bogus file names.
5774	rm -f conftest.$ac_objext libconftest.a
5775	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5776  (eval $lt_ar_try) 2>&5
5777  ac_status=$?
5778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779  test $ac_status = 0; }
5780	if test 0 -ne "$ac_status"; then
5781          lt_cv_ar_at_file=@
5782        fi
5783      fi
5784      rm -f conftest.* libconftest.a
5785
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5791$as_echo "$lt_cv_ar_at_file" >&6; }
5792
5793if test no = "$lt_cv_ar_at_file"; then
5794  archiver_list_spec=
5795else
5796  archiver_list_spec=$lt_cv_ar_at_file
5797fi
5798
5799
5800
5801
5802
5803
5804
5805if test -n "$ac_tool_prefix"; then
5806  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5807set dummy ${ac_tool_prefix}strip; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if ${ac_cv_prog_STRIP+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  if test -n "$STRIP"; then
5814  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819  IFS=$as_save_IFS
5820  test -z "$as_dir" && as_dir=.
5821    for ac_exec_ext in '' $ac_executable_extensions; do
5822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825    break 2
5826  fi
5827done
5828  done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833STRIP=$ac_cv_prog_STRIP
5834if test -n "$STRIP"; then
5835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5836$as_echo "$STRIP" >&6; }
5837else
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842
5843fi
5844if test -z "$ac_cv_prog_STRIP"; then
5845  ac_ct_STRIP=$STRIP
5846  # Extract the first word of "strip", so it can be a program name with args.
5847set dummy strip; ac_word=$2
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849$as_echo_n "checking for $ac_word... " >&6; }
5850if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  if test -n "$ac_ct_STRIP"; then
5854  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859  IFS=$as_save_IFS
5860  test -z "$as_dir" && as_dir=.
5861    for ac_exec_ext in '' $ac_executable_extensions; do
5862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863    ac_cv_prog_ac_ct_STRIP="strip"
5864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865    break 2
5866  fi
5867done
5868  done
5869IFS=$as_save_IFS
5870
5871fi
5872fi
5873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874if test -n "$ac_ct_STRIP"; then
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5876$as_echo "$ac_ct_STRIP" >&6; }
5877else
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879$as_echo "no" >&6; }
5880fi
5881
5882  if test "x$ac_ct_STRIP" = x; then
5883    STRIP=":"
5884  else
5885    case $cross_compiling:$ac_tool_warned in
5886yes:)
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5889ac_tool_warned=yes ;;
5890esac
5891    STRIP=$ac_ct_STRIP
5892  fi
5893else
5894  STRIP="$ac_cv_prog_STRIP"
5895fi
5896
5897test -z "$STRIP" && STRIP=:
5898
5899
5900
5901
5902
5903
5904if test -n "$ac_tool_prefix"; then
5905  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5906set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908$as_echo_n "checking for $ac_word... " >&6; }
5909if ${ac_cv_prog_RANLIB+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912  if test -n "$RANLIB"; then
5913  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918  IFS=$as_save_IFS
5919  test -z "$as_dir" && as_dir=.
5920    for ac_exec_ext in '' $ac_executable_extensions; do
5921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924    break 2
5925  fi
5926done
5927  done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932RANLIB=$ac_cv_prog_RANLIB
5933if test -n "$RANLIB"; then
5934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5935$as_echo "$RANLIB" >&6; }
5936else
5937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938$as_echo "no" >&6; }
5939fi
5940
5941
5942fi
5943if test -z "$ac_cv_prog_RANLIB"; then
5944  ac_ct_RANLIB=$RANLIB
5945  # Extract the first word of "ranlib", so it can be a program name with args.
5946set dummy ranlib; ac_word=$2
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
5949if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  if test -n "$ac_ct_RANLIB"; then
5953  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960    for ac_exec_ext in '' $ac_executable_extensions; do
5961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962    ac_cv_prog_ac_ct_RANLIB="ranlib"
5963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964    break 2
5965  fi
5966done
5967  done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5973if test -n "$ac_ct_RANLIB"; then
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5975$as_echo "$ac_ct_RANLIB" >&6; }
5976else
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
5979fi
5980
5981  if test "x$ac_ct_RANLIB" = x; then
5982    RANLIB=":"
5983  else
5984    case $cross_compiling:$ac_tool_warned in
5985yes:)
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988ac_tool_warned=yes ;;
5989esac
5990    RANLIB=$ac_ct_RANLIB
5991  fi
5992else
5993  RANLIB="$ac_cv_prog_RANLIB"
5994fi
5995
5996test -z "$RANLIB" && RANLIB=:
5997
5998
5999
6000
6001
6002
6003# Determine commands to create old-style static archives.
6004old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6005old_postinstall_cmds='chmod 644 $oldlib'
6006old_postuninstall_cmds=
6007
6008if test -n "$RANLIB"; then
6009  case $host_os in
6010  bitrig* | openbsd*)
6011    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6012    ;;
6013  *)
6014    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6015    ;;
6016  esac
6017  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6018fi
6019
6020case $host_os in
6021  darwin*)
6022    lock_old_archive_extraction=yes ;;
6023  *)
6024    lock_old_archive_extraction=no ;;
6025esac
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065# If no C compiler was specified, use CC.
6066LTCC=${LTCC-"$CC"}
6067
6068# If no C compiler flags were specified, use CFLAGS.
6069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6070
6071# Allow CC to be a program name with arguments.
6072compiler=$CC
6073
6074
6075# Check for command to grab the raw symbol name followed by C symbol from nm.
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6077$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6078if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6079  $as_echo_n "(cached) " >&6
6080else
6081
6082# These are sane defaults that work on at least a few old systems.
6083# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6084
6085# Character class describing NM global symbol codes.
6086symcode='[BCDEGRST]'
6087
6088# Regexp to match symbols that can be accessed directly from C.
6089sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6090
6091# Define system-specific variables.
6092case $host_os in
6093aix*)
6094  symcode='[BCDT]'
6095  ;;
6096cygwin* | mingw* | pw32* | cegcc*)
6097  symcode='[ABCDGISTW]'
6098  ;;
6099hpux*)
6100  if test ia64 = "$host_cpu"; then
6101    symcode='[ABCDEGRST]'
6102  fi
6103  ;;
6104irix* | nonstopux*)
6105  symcode='[BCDEGRST]'
6106  ;;
6107osf*)
6108  symcode='[BCDEGQRST]'
6109  ;;
6110solaris*)
6111  symcode='[BDRT]'
6112  ;;
6113sco3.2v5*)
6114  symcode='[DT]'
6115  ;;
6116sysv4.2uw2*)
6117  symcode='[DT]'
6118  ;;
6119sysv5* | sco5v6* | unixware* | OpenUNIX*)
6120  symcode='[ABDT]'
6121  ;;
6122sysv4)
6123  symcode='[DFNSTU]'
6124  ;;
6125esac
6126
6127# If we're using GNU nm, then use its standard symbol codes.
6128case `$NM -V 2>&1` in
6129*GNU* | *'with BFD'*)
6130  symcode='[ABCDGIRSTW]' ;;
6131esac
6132
6133if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6134  # Gets list of data symbols to import.
6135  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6136  # Adjust the below global symbol transforms to fixup imported variables.
6137  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6138  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6139  lt_c_name_lib_hook="\
6140  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6141  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6142else
6143  # Disable hooks by default.
6144  lt_cv_sys_global_symbol_to_import=
6145  lt_cdecl_hook=
6146  lt_c_name_hook=
6147  lt_c_name_lib_hook=
6148fi
6149
6150# Transform an extracted symbol line into a proper C declaration.
6151# Some systems (esp. on ia64) link data and code symbols differently,
6152# so use this general approach.
6153lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6154$lt_cdecl_hook\
6155" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6156" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6157
6158# Transform an extracted symbol line into symbol name and symbol address
6159lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6160$lt_c_name_hook\
6161" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6162" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6163
6164# Transform an extracted symbol line into symbol name with lib prefix and
6165# symbol address.
6166lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6167$lt_c_name_lib_hook\
6168" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6169" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6170" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6171
6172# Handle CRLF in mingw tool chain
6173opt_cr=
6174case $build_os in
6175mingw*)
6176  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6177  ;;
6178esac
6179
6180# Try without a prefix underscore, then with it.
6181for ac_symprfx in "" "_"; do
6182
6183  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6184  symxfrm="\\1 $ac_symprfx\\2 \\2"
6185
6186  # Write the raw and C identifiers.
6187  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6188    # Fake it for dumpbin and say T for any non-static function,
6189    # D for any global variable and I for any imported variable.
6190    # Also find C++ and __fastcall symbols from MSVC++,
6191    # which start with @ or ?.
6192    lt_cv_sys_global_symbol_pipe="$AWK '"\
6193"     {last_section=section; section=\$ 3};"\
6194"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6195"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6196"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6197"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6198"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6199"     \$ 0!~/External *\|/{next};"\
6200"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6201"     {if(hide[section]) next};"\
6202"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6203"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6204"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6205"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6206"     ' prfx=^$ac_symprfx"
6207  else
6208    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6209  fi
6210  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6211
6212  # Check to see that the pipe works correctly.
6213  pipe_works=no
6214
6215  rm -f conftest*
6216  cat > conftest.$ac_ext <<_LT_EOF
6217#ifdef __cplusplus
6218extern "C" {
6219#endif
6220char nm_test_var;
6221void nm_test_func(void);
6222void nm_test_func(void){}
6223#ifdef __cplusplus
6224}
6225#endif
6226int main(){nm_test_var='a';nm_test_func();return(0);}
6227_LT_EOF
6228
6229  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230  (eval $ac_compile) 2>&5
6231  ac_status=$?
6232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233  test $ac_status = 0; }; then
6234    # Now try to grab the symbols.
6235    nlist=conftest.nm
6236    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6237  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6238  ac_status=$?
6239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240  test $ac_status = 0; } && test -s "$nlist"; then
6241      # Try sorting and uniquifying the output.
6242      if sort "$nlist" | uniq > "$nlist"T; then
6243	mv -f "$nlist"T "$nlist"
6244      else
6245	rm -f "$nlist"T
6246      fi
6247
6248      # Make sure that we snagged all the symbols we need.
6249      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6250	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6251	  cat <<_LT_EOF > conftest.$ac_ext
6252/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6253#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6254/* DATA imports from DLLs on WIN32 can't be const, because runtime
6255   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6256# define LT_DLSYM_CONST
6257#elif defined __osf__
6258/* This system does not cope well with relocations in const data.  */
6259# define LT_DLSYM_CONST
6260#else
6261# define LT_DLSYM_CONST const
6262#endif
6263
6264#ifdef __cplusplus
6265extern "C" {
6266#endif
6267
6268_LT_EOF
6269	  # Now generate the symbol file.
6270	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6271
6272	  cat <<_LT_EOF >> conftest.$ac_ext
6273
6274/* The mapping between symbol names and symbols.  */
6275LT_DLSYM_CONST struct {
6276  const char *name;
6277  void       *address;
6278}
6279lt__PROGRAM__LTX_preloaded_symbols[] =
6280{
6281  { "@PROGRAM@", (void *) 0 },
6282_LT_EOF
6283	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6284	  cat <<\_LT_EOF >> conftest.$ac_ext
6285  {0, (void *) 0}
6286};
6287
6288/* This works around a problem in FreeBSD linker */
6289#ifdef FREEBSD_WORKAROUND
6290static const void *lt_preloaded_setup() {
6291  return lt__PROGRAM__LTX_preloaded_symbols;
6292}
6293#endif
6294
6295#ifdef __cplusplus
6296}
6297#endif
6298_LT_EOF
6299	  # Now try linking the two files.
6300	  mv conftest.$ac_objext conftstm.$ac_objext
6301	  lt_globsym_save_LIBS=$LIBS
6302	  lt_globsym_save_CFLAGS=$CFLAGS
6303	  LIBS=conftstm.$ac_objext
6304	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6305	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6306  (eval $ac_link) 2>&5
6307  ac_status=$?
6308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6310	    pipe_works=yes
6311	  fi
6312	  LIBS=$lt_globsym_save_LIBS
6313	  CFLAGS=$lt_globsym_save_CFLAGS
6314	else
6315	  echo "cannot find nm_test_func in $nlist" >&5
6316	fi
6317      else
6318	echo "cannot find nm_test_var in $nlist" >&5
6319      fi
6320    else
6321      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6322    fi
6323  else
6324    echo "$progname: failed program was:" >&5
6325    cat conftest.$ac_ext >&5
6326  fi
6327  rm -rf conftest* conftst*
6328
6329  # Do not use the global_symbol_pipe unless it works.
6330  if test yes = "$pipe_works"; then
6331    break
6332  else
6333    lt_cv_sys_global_symbol_pipe=
6334  fi
6335done
6336
6337fi
6338
6339if test -z "$lt_cv_sys_global_symbol_pipe"; then
6340  lt_cv_sys_global_symbol_to_cdecl=
6341fi
6342if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6344$as_echo "failed" >&6; }
6345else
6346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6347$as_echo "ok" >&6; }
6348fi
6349
6350# Response file support.
6351if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6352  nm_file_list_spec='@'
6353elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6354  nm_file_list_spec='@'
6355fi
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6394$as_echo_n "checking for sysroot... " >&6; }
6395
6396# Check whether --with-sysroot was given.
6397if test "${with_sysroot+set}" = set; then :
6398  withval=$with_sysroot;
6399else
6400  with_sysroot=no
6401fi
6402
6403
6404lt_sysroot=
6405case $with_sysroot in #(
6406 yes)
6407   if test yes = "$GCC"; then
6408     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6409   fi
6410   ;; #(
6411 /*)
6412   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6413   ;; #(
6414 no|'')
6415   ;; #(
6416 *)
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6418$as_echo "$with_sysroot" >&6; }
6419   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6420   ;;
6421esac
6422
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6424$as_echo "${lt_sysroot:-no}" >&6; }
6425
6426
6427
6428
6429
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6431$as_echo_n "checking for a working dd... " >&6; }
6432if ${ac_cv_path_lt_DD+:} false; then :
6433  $as_echo_n "(cached) " >&6
6434else
6435  printf 0123456789abcdef0123456789abcdef >conftest.i
6436cat conftest.i conftest.i >conftest2.i
6437: ${lt_DD:=$DD}
6438if test -z "$lt_DD"; then
6439  ac_path_lt_DD_found=false
6440  # Loop through the user's path and test for each of PROGNAME-LIST
6441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_prog in dd; do
6447    for ac_exec_ext in '' $ac_executable_extensions; do
6448      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6449      as_fn_executable_p "$ac_path_lt_DD" || continue
6450if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6451  cmp -s conftest.i conftest.out \
6452  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6453fi
6454      $ac_path_lt_DD_found && break 3
6455    done
6456  done
6457  done
6458IFS=$as_save_IFS
6459  if test -z "$ac_cv_path_lt_DD"; then
6460    :
6461  fi
6462else
6463  ac_cv_path_lt_DD=$lt_DD
6464fi
6465
6466rm -f conftest.i conftest2.i conftest.out
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6469$as_echo "$ac_cv_path_lt_DD" >&6; }
6470
6471
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6473$as_echo_n "checking how to truncate binary pipes... " >&6; }
6474if ${lt_cv_truncate_bin+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  printf 0123456789abcdef0123456789abcdef >conftest.i
6478cat conftest.i conftest.i >conftest2.i
6479lt_cv_truncate_bin=
6480if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6481  cmp -s conftest.i conftest.out \
6482  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6483fi
6484rm -f conftest.i conftest2.i conftest.out
6485test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6488$as_echo "$lt_cv_truncate_bin" >&6; }
6489
6490
6491
6492
6493
6494
6495
6496# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6497func_cc_basename ()
6498{
6499    for cc_temp in $*""; do
6500      case $cc_temp in
6501        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6502        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6503        \-*) ;;
6504        *) break;;
6505      esac
6506    done
6507    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6508}
6509
6510# Check whether --enable-libtool-lock was given.
6511if test "${enable_libtool_lock+set}" = set; then :
6512  enableval=$enable_libtool_lock;
6513fi
6514
6515test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6516
6517# Some flags need to be propagated to the compiler or linker for good
6518# libtool support.
6519case $host in
6520ia64-*-hpux*)
6521  # Find out what ABI is being produced by ac_compile, and set mode
6522  # options accordingly.
6523  echo 'int i;' > conftest.$ac_ext
6524  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525  (eval $ac_compile) 2>&5
6526  ac_status=$?
6527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528  test $ac_status = 0; }; then
6529    case `/usr/bin/file conftest.$ac_objext` in
6530      *ELF-32*)
6531	HPUX_IA64_MODE=32
6532	;;
6533      *ELF-64*)
6534	HPUX_IA64_MODE=64
6535	;;
6536    esac
6537  fi
6538  rm -rf conftest*
6539  ;;
6540*-*-irix6*)
6541  # Find out what ABI is being produced by ac_compile, and set linker
6542  # options accordingly.
6543  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6544  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6545  (eval $ac_compile) 2>&5
6546  ac_status=$?
6547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548  test $ac_status = 0; }; then
6549    if test yes = "$lt_cv_prog_gnu_ld"; then
6550      case `/usr/bin/file conftest.$ac_objext` in
6551	*32-bit*)
6552	  LD="${LD-ld} -melf32bsmip"
6553	  ;;
6554	*N32*)
6555	  LD="${LD-ld} -melf32bmipn32"
6556	  ;;
6557	*64-bit*)
6558	  LD="${LD-ld} -melf64bmip"
6559	;;
6560      esac
6561    else
6562      case `/usr/bin/file conftest.$ac_objext` in
6563	*32-bit*)
6564	  LD="${LD-ld} -32"
6565	  ;;
6566	*N32*)
6567	  LD="${LD-ld} -n32"
6568	  ;;
6569	*64-bit*)
6570	  LD="${LD-ld} -64"
6571	  ;;
6572      esac
6573    fi
6574  fi
6575  rm -rf conftest*
6576  ;;
6577
6578mips64*-*linux*)
6579  # Find out what ABI is being produced by ac_compile, and set linker
6580  # options accordingly.
6581  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6582  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583  (eval $ac_compile) 2>&5
6584  ac_status=$?
6585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586  test $ac_status = 0; }; then
6587    emul=elf
6588    case `/usr/bin/file conftest.$ac_objext` in
6589      *32-bit*)
6590	emul="${emul}32"
6591	;;
6592      *64-bit*)
6593	emul="${emul}64"
6594	;;
6595    esac
6596    case `/usr/bin/file conftest.$ac_objext` in
6597      *MSB*)
6598	emul="${emul}btsmip"
6599	;;
6600      *LSB*)
6601	emul="${emul}ltsmip"
6602	;;
6603    esac
6604    case `/usr/bin/file conftest.$ac_objext` in
6605      *N32*)
6606	emul="${emul}n32"
6607	;;
6608    esac
6609    LD="${LD-ld} -m $emul"
6610  fi
6611  rm -rf conftest*
6612  ;;
6613
6614x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6615s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6616  # Find out what ABI is being produced by ac_compile, and set linker
6617  # options accordingly.  Note that the listed cases only cover the
6618  # situations where additional linker options are needed (such as when
6619  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6620  # vice versa); the common cases where no linker options are needed do
6621  # not appear in the list.
6622  echo 'int i;' > conftest.$ac_ext
6623  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6624  (eval $ac_compile) 2>&5
6625  ac_status=$?
6626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627  test $ac_status = 0; }; then
6628    case `/usr/bin/file conftest.o` in
6629      *32-bit*)
6630	case $host in
6631	  x86_64-*kfreebsd*-gnu)
6632	    LD="${LD-ld} -m elf_i386_fbsd"
6633	    ;;
6634	  x86_64-*linux*)
6635	    case `/usr/bin/file conftest.o` in
6636	      *x86-64*)
6637		LD="${LD-ld} -m elf32_x86_64"
6638		;;
6639	      *)
6640		LD="${LD-ld} -m elf_i386"
6641		;;
6642	    esac
6643	    ;;
6644	  powerpc64le-*linux*)
6645	    LD="${LD-ld} -m elf32lppclinux"
6646	    ;;
6647	  powerpc64-*linux*)
6648	    LD="${LD-ld} -m elf32ppclinux"
6649	    ;;
6650	  s390x-*linux*)
6651	    LD="${LD-ld} -m elf_s390"
6652	    ;;
6653	  sparc64-*linux*)
6654	    LD="${LD-ld} -m elf32_sparc"
6655	    ;;
6656	esac
6657	;;
6658      *64-bit*)
6659	case $host in
6660	  x86_64-*kfreebsd*-gnu)
6661	    LD="${LD-ld} -m elf_x86_64_fbsd"
6662	    ;;
6663	  x86_64-*linux*)
6664	    LD="${LD-ld} -m elf_x86_64"
6665	    ;;
6666	  powerpcle-*linux*)
6667	    LD="${LD-ld} -m elf64lppc"
6668	    ;;
6669	  powerpc-*linux*)
6670	    LD="${LD-ld} -m elf64ppc"
6671	    ;;
6672	  s390*-*linux*|s390*-*tpf*)
6673	    LD="${LD-ld} -m elf64_s390"
6674	    ;;
6675	  sparc*-*linux*)
6676	    LD="${LD-ld} -m elf64_sparc"
6677	    ;;
6678	esac
6679	;;
6680    esac
6681  fi
6682  rm -rf conftest*
6683  ;;
6684
6685*-*-sco3.2v5*)
6686  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6687  SAVE_CFLAGS=$CFLAGS
6688  CFLAGS="$CFLAGS -belf"
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6690$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6691if ${lt_cv_cc_needs_belf+:} false; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  ac_ext=c
6695ac_cpp='$CPP $CPPFLAGS'
6696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698ac_compiler_gnu=$ac_cv_c_compiler_gnu
6699
6700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702
6703int
6704main ()
6705{
6706
6707  ;
6708  return 0;
6709}
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"; then :
6712  lt_cv_cc_needs_belf=yes
6713else
6714  lt_cv_cc_needs_belf=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext \
6717    conftest$ac_exeext conftest.$ac_ext
6718     ac_ext=c
6719ac_cpp='$CPP $CPPFLAGS'
6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6726$as_echo "$lt_cv_cc_needs_belf" >&6; }
6727  if test yes != "$lt_cv_cc_needs_belf"; then
6728    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6729    CFLAGS=$SAVE_CFLAGS
6730  fi
6731  ;;
6732*-*solaris*)
6733  # Find out what ABI is being produced by ac_compile, and set linker
6734  # options accordingly.
6735  echo 'int i;' > conftest.$ac_ext
6736  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6737  (eval $ac_compile) 2>&5
6738  ac_status=$?
6739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740  test $ac_status = 0; }; then
6741    case `/usr/bin/file conftest.o` in
6742    *64-bit*)
6743      case $lt_cv_prog_gnu_ld in
6744      yes*)
6745        case $host in
6746        i?86-*-solaris*|x86_64-*-solaris*)
6747          LD="${LD-ld} -m elf_x86_64"
6748          ;;
6749        sparc*-*-solaris*)
6750          LD="${LD-ld} -m elf64_sparc"
6751          ;;
6752        esac
6753        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6754        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6755          LD=${LD-ld}_sol2
6756        fi
6757        ;;
6758      *)
6759	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6760	  LD="${LD-ld} -64"
6761	fi
6762	;;
6763      esac
6764      ;;
6765    esac
6766  fi
6767  rm -rf conftest*
6768  ;;
6769esac
6770
6771need_locks=$enable_libtool_lock
6772
6773if test -n "$ac_tool_prefix"; then
6774  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6775set dummy ${ac_tool_prefix}mt; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$MANIFEST_TOOL"; then
6782  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789    for ac_exec_ext in '' $ac_executable_extensions; do
6790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796  done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6802if test -n "$MANIFEST_TOOL"; then
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6804$as_echo "$MANIFEST_TOOL" >&6; }
6805else
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810
6811fi
6812if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6813  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6814  # Extract the first word of "mt", so it can be a program name with args.
6815set dummy mt; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$ac_ct_MANIFEST_TOOL"; then
6822  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6842if test -n "$ac_ct_MANIFEST_TOOL"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6844$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6851    MANIFEST_TOOL=":"
6852  else
6853    case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6860  fi
6861else
6862  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6863fi
6864
6865test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6867$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6868if ${lt_cv_path_mainfest_tool+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871  lt_cv_path_mainfest_tool=no
6872  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6873  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6874  cat conftest.err >&5
6875  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6876    lt_cv_path_mainfest_tool=yes
6877  fi
6878  rm -f conftest*
6879fi
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6881$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6882if test yes != "$lt_cv_path_mainfest_tool"; then
6883  MANIFEST_TOOL=:
6884fi
6885
6886
6887
6888
6889
6890
6891  case $host_os in
6892    rhapsody* | darwin*)
6893    if test -n "$ac_tool_prefix"; then
6894  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6895set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897$as_echo_n "checking for $ac_word... " >&6; }
6898if ${ac_cv_prog_DSYMUTIL+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  if test -n "$DSYMUTIL"; then
6902  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907  IFS=$as_save_IFS
6908  test -z "$as_dir" && as_dir=.
6909    for ac_exec_ext in '' $ac_executable_extensions; do
6910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913    break 2
6914  fi
6915done
6916  done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921DSYMUTIL=$ac_cv_prog_DSYMUTIL
6922if test -n "$DSYMUTIL"; then
6923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6924$as_echo "$DSYMUTIL" >&6; }
6925else
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927$as_echo "no" >&6; }
6928fi
6929
6930
6931fi
6932if test -z "$ac_cv_prog_DSYMUTIL"; then
6933  ac_ct_DSYMUTIL=$DSYMUTIL
6934  # Extract the first word of "dsymutil", so it can be a program name with args.
6935set dummy dsymutil; ac_word=$2
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
6938if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  if test -n "$ac_ct_DSYMUTIL"; then
6942  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949    for ac_exec_ext in '' $ac_executable_extensions; do
6950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956  done
6957IFS=$as_save_IFS
6958
6959fi
6960fi
6961ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6962if test -n "$ac_ct_DSYMUTIL"; then
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6964$as_echo "$ac_ct_DSYMUTIL" >&6; }
6965else
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967$as_echo "no" >&6; }
6968fi
6969
6970  if test "x$ac_ct_DSYMUTIL" = x; then
6971    DSYMUTIL=":"
6972  else
6973    case $cross_compiling:$ac_tool_warned in
6974yes:)
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977ac_tool_warned=yes ;;
6978esac
6979    DSYMUTIL=$ac_ct_DSYMUTIL
6980  fi
6981else
6982  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6983fi
6984
6985    if test -n "$ac_tool_prefix"; then
6986  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if ${ac_cv_prog_NMEDIT+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  if test -n "$NMEDIT"; then
6994  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001    for ac_exec_ext in '' $ac_executable_extensions; do
7002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008  done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013NMEDIT=$ac_cv_prog_NMEDIT
7014if test -n "$NMEDIT"; then
7015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7016$as_echo "$NMEDIT" >&6; }
7017else
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023fi
7024if test -z "$ac_cv_prog_NMEDIT"; then
7025  ac_ct_NMEDIT=$NMEDIT
7026  # Extract the first word of "nmedit", so it can be a program name with args.
7027set dummy nmedit; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$ac_ct_NMEDIT"; then
7034  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7054if test -n "$ac_ct_NMEDIT"; then
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7056$as_echo "$ac_ct_NMEDIT" >&6; }
7057else
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062  if test "x$ac_ct_NMEDIT" = x; then
7063    NMEDIT=":"
7064  else
7065    case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071    NMEDIT=$ac_ct_NMEDIT
7072  fi
7073else
7074  NMEDIT="$ac_cv_prog_NMEDIT"
7075fi
7076
7077    if test -n "$ac_tool_prefix"; then
7078  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}lipo; ac_word=$2
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
7082if ${ac_cv_prog_LIPO+:} false; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  if test -n "$LIPO"; then
7086  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091  IFS=$as_save_IFS
7092  test -z "$as_dir" && as_dir=.
7093    for ac_exec_ext in '' $ac_executable_extensions; do
7094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097    break 2
7098  fi
7099done
7100  done
7101IFS=$as_save_IFS
7102
7103fi
7104fi
7105LIPO=$ac_cv_prog_LIPO
7106if test -n "$LIPO"; then
7107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7108$as_echo "$LIPO" >&6; }
7109else
7110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
7112fi
7113
7114
7115fi
7116if test -z "$ac_cv_prog_LIPO"; then
7117  ac_ct_LIPO=$LIPO
7118  # Extract the first word of "lipo", so it can be a program name with args.
7119set dummy lipo; ac_word=$2
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
7122if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7123  $as_echo_n "(cached) " >&6
7124else
7125  if test -n "$ac_ct_LIPO"; then
7126  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131  IFS=$as_save_IFS
7132  test -z "$as_dir" && as_dir=.
7133    for ac_exec_ext in '' $ac_executable_extensions; do
7134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135    ac_cv_prog_ac_ct_LIPO="lipo"
7136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137    break 2
7138  fi
7139done
7140  done
7141IFS=$as_save_IFS
7142
7143fi
7144fi
7145ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7146if test -n "$ac_ct_LIPO"; then
7147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7148$as_echo "$ac_ct_LIPO" >&6; }
7149else
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
7152fi
7153
7154  if test "x$ac_ct_LIPO" = x; then
7155    LIPO=":"
7156  else
7157    case $cross_compiling:$ac_tool_warned in
7158yes:)
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161ac_tool_warned=yes ;;
7162esac
7163    LIPO=$ac_ct_LIPO
7164  fi
7165else
7166  LIPO="$ac_cv_prog_LIPO"
7167fi
7168
7169    if test -n "$ac_tool_prefix"; then
7170  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7171set dummy ${ac_tool_prefix}otool; ac_word=$2
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173$as_echo_n "checking for $ac_word... " >&6; }
7174if ${ac_cv_prog_OTOOL+:} false; then :
7175  $as_echo_n "(cached) " >&6
7176else
7177  if test -n "$OTOOL"; then
7178  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183  IFS=$as_save_IFS
7184  test -z "$as_dir" && as_dir=.
7185    for ac_exec_ext in '' $ac_executable_extensions; do
7186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189    break 2
7190  fi
7191done
7192  done
7193IFS=$as_save_IFS
7194
7195fi
7196fi
7197OTOOL=$ac_cv_prog_OTOOL
7198if test -n "$OTOOL"; then
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7200$as_echo "$OTOOL" >&6; }
7201else
7202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
7204fi
7205
7206
7207fi
7208if test -z "$ac_cv_prog_OTOOL"; then
7209  ac_ct_OTOOL=$OTOOL
7210  # Extract the first word of "otool", so it can be a program name with args.
7211set dummy otool; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  if test -n "$ac_ct_OTOOL"; then
7218  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223  IFS=$as_save_IFS
7224  test -z "$as_dir" && as_dir=.
7225    for ac_exec_ext in '' $ac_executable_extensions; do
7226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227    ac_cv_prog_ac_ct_OTOOL="otool"
7228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229    break 2
7230  fi
7231done
7232  done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7238if test -n "$ac_ct_OTOOL"; then
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7240$as_echo "$ac_ct_OTOOL" >&6; }
7241else
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246  if test "x$ac_ct_OTOOL" = x; then
7247    OTOOL=":"
7248  else
7249    case $cross_compiling:$ac_tool_warned in
7250yes:)
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253ac_tool_warned=yes ;;
7254esac
7255    OTOOL=$ac_ct_OTOOL
7256  fi
7257else
7258  OTOOL="$ac_cv_prog_OTOOL"
7259fi
7260
7261    if test -n "$ac_tool_prefix"; then
7262  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7263set dummy ${ac_tool_prefix}otool64; ac_word=$2
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265$as_echo_n "checking for $ac_word... " >&6; }
7266if ${ac_cv_prog_OTOOL64+:} false; then :
7267  $as_echo_n "(cached) " >&6
7268else
7269  if test -n "$OTOOL64"; then
7270  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275  IFS=$as_save_IFS
7276  test -z "$as_dir" && as_dir=.
7277    for ac_exec_ext in '' $ac_executable_extensions; do
7278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281    break 2
7282  fi
7283done
7284  done
7285IFS=$as_save_IFS
7286
7287fi
7288fi
7289OTOOL64=$ac_cv_prog_OTOOL64
7290if test -n "$OTOOL64"; then
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7292$as_echo "$OTOOL64" >&6; }
7293else
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295$as_echo "no" >&6; }
7296fi
7297
7298
7299fi
7300if test -z "$ac_cv_prog_OTOOL64"; then
7301  ac_ct_OTOOL64=$OTOOL64
7302  # Extract the first word of "otool64", so it can be a program name with args.
7303set dummy otool64; ac_word=$2
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
7306if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7307  $as_echo_n "(cached) " >&6
7308else
7309  if test -n "$ac_ct_OTOOL64"; then
7310  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315  IFS=$as_save_IFS
7316  test -z "$as_dir" && as_dir=.
7317    for ac_exec_ext in '' $ac_executable_extensions; do
7318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319    ac_cv_prog_ac_ct_OTOOL64="otool64"
7320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321    break 2
7322  fi
7323done
7324  done
7325IFS=$as_save_IFS
7326
7327fi
7328fi
7329ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7330if test -n "$ac_ct_OTOOL64"; then
7331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7332$as_echo "$ac_ct_OTOOL64" >&6; }
7333else
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
7336fi
7337
7338  if test "x$ac_ct_OTOOL64" = x; then
7339    OTOOL64=":"
7340  else
7341    case $cross_compiling:$ac_tool_warned in
7342yes:)
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345ac_tool_warned=yes ;;
7346esac
7347    OTOOL64=$ac_ct_OTOOL64
7348  fi
7349else
7350  OTOOL64="$ac_cv_prog_OTOOL64"
7351fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7380$as_echo_n "checking for -single_module linker flag... " >&6; }
7381if ${lt_cv_apple_cc_single_mod+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  lt_cv_apple_cc_single_mod=no
7385      if test -z "$LT_MULTI_MODULE"; then
7386	# By default we will add the -single_module flag. You can override
7387	# by either setting the environment variable LT_MULTI_MODULE
7388	# non-empty at configure time, or by adding -multi_module to the
7389	# link flags.
7390	rm -rf libconftest.dylib*
7391	echo "int foo(void){return 1;}" > conftest.c
7392	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7393-dynamiclib -Wl,-single_module conftest.c" >&5
7394	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7395	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7396        _lt_result=$?
7397	# If there is a non-empty error log, and "single_module"
7398	# appears in it, assume the flag caused a linker warning
7399        if test -s conftest.err && $GREP single_module conftest.err; then
7400	  cat conftest.err >&5
7401	# Otherwise, if the output was created with a 0 exit code from
7402	# the compiler, it worked.
7403	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7404	  lt_cv_apple_cc_single_mod=yes
7405	else
7406	  cat conftest.err >&5
7407	fi
7408	rm -rf libconftest.dylib*
7409	rm -f conftest.*
7410      fi
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7413$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7414
7415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7416$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7417if ${lt_cv_ld_exported_symbols_list+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  lt_cv_ld_exported_symbols_list=no
7421      save_LDFLAGS=$LDFLAGS
7422      echo "_main" > conftest.sym
7423      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425/* end confdefs.h.  */
7426
7427int
7428main ()
7429{
7430
7431  ;
7432  return 0;
7433}
7434_ACEOF
7435if ac_fn_c_try_link "$LINENO"; then :
7436  lt_cv_ld_exported_symbols_list=yes
7437else
7438  lt_cv_ld_exported_symbols_list=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext \
7441    conftest$ac_exeext conftest.$ac_ext
7442	LDFLAGS=$save_LDFLAGS
7443
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7446$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7447
7448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7449$as_echo_n "checking for -force_load linker flag... " >&6; }
7450if ${lt_cv_ld_force_load+:} false; then :
7451  $as_echo_n "(cached) " >&6
7452else
7453  lt_cv_ld_force_load=no
7454      cat > conftest.c << _LT_EOF
7455int forced_loaded() { return 2;}
7456_LT_EOF
7457      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7458      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7459      echo "$AR cru libconftest.a conftest.o" >&5
7460      $AR cru libconftest.a conftest.o 2>&5
7461      echo "$RANLIB libconftest.a" >&5
7462      $RANLIB libconftest.a 2>&5
7463      cat > conftest.c << _LT_EOF
7464int main() { return 0;}
7465_LT_EOF
7466      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7467      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7468      _lt_result=$?
7469      if test -s conftest.err && $GREP force_load conftest.err; then
7470	cat conftest.err >&5
7471      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7472	lt_cv_ld_force_load=yes
7473      else
7474	cat conftest.err >&5
7475      fi
7476        rm -f conftest.err libconftest.a conftest conftest.c
7477        rm -rf conftest.dSYM
7478
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7481$as_echo "$lt_cv_ld_force_load" >&6; }
7482    case $host_os in
7483    rhapsody* | darwin1.[012])
7484      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7485    darwin1.*)
7486      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7487    darwin*) # darwin 5.x on
7488      # if running on 10.5 or later, the deployment target defaults
7489      # to the OS version, if on x86, and 10.4, the deployment
7490      # target defaults to 10.4. Don't you love it?
7491      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7492	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7493	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7494	10.[012][,.]*)
7495	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7496	10.*)
7497	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7498      esac
7499    ;;
7500  esac
7501    if test yes = "$lt_cv_apple_cc_single_mod"; then
7502      _lt_dar_single_mod='$single_module'
7503    fi
7504    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7505      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7506    else
7507      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7508    fi
7509    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7510      _lt_dsymutil='~$DSYMUTIL $lib || :'
7511    else
7512      _lt_dsymutil=
7513    fi
7514    ;;
7515  esac
7516
7517# func_munge_path_list VARIABLE PATH
7518# -----------------------------------
7519# VARIABLE is name of variable containing _space_ separated list of
7520# directories to be munged by the contents of PATH, which is string
7521# having a format:
7522# "DIR[:DIR]:"
7523#       string "DIR[ DIR]" will be prepended to VARIABLE
7524# ":DIR[:DIR]"
7525#       string "DIR[ DIR]" will be appended to VARIABLE
7526# "DIRP[:DIRP]::[DIRA:]DIRA"
7527#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7528#       "DIRA[ DIRA]" will be appended to VARIABLE
7529# "DIR[:DIR]"
7530#       VARIABLE will be replaced by "DIR[ DIR]"
7531func_munge_path_list ()
7532{
7533    case x$2 in
7534    x)
7535        ;;
7536    *:)
7537        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7538        ;;
7539    x:*)
7540        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7541        ;;
7542    *::*)
7543        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7544        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7545        ;;
7546    *)
7547        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7548        ;;
7549    esac
7550}
7551
7552ac_ext=c
7553ac_cpp='$CPP $CPPFLAGS'
7554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7558$as_echo_n "checking how to run the C preprocessor... " >&6; }
7559# On Suns, sometimes $CPP names a directory.
7560if test -n "$CPP" && test -d "$CPP"; then
7561  CPP=
7562fi
7563if test -z "$CPP"; then
7564  if ${ac_cv_prog_CPP+:} false; then :
7565  $as_echo_n "(cached) " >&6
7566else
7567      # Double quotes because CPP needs to be expanded
7568    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7569    do
7570      ac_preproc_ok=false
7571for ac_c_preproc_warn_flag in '' yes
7572do
7573  # Use a header file that comes with gcc, so configuring glibc
7574  # with a fresh cross-compiler works.
7575  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7576  # <limits.h> exists even on freestanding compilers.
7577  # On the NeXT, cc -E runs the code through the compiler's parser,
7578  # not just through cpp. "Syntax error" is here to catch this case.
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581#ifdef __STDC__
7582# include <limits.h>
7583#else
7584# include <assert.h>
7585#endif
7586		     Syntax error
7587_ACEOF
7588if ac_fn_c_try_cpp "$LINENO"; then :
7589
7590else
7591  # Broken: fails on valid input.
7592continue
7593fi
7594rm -f conftest.err conftest.i conftest.$ac_ext
7595
7596  # OK, works on sane cases.  Now check whether nonexistent headers
7597  # can be detected and how.
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600#include <ac_nonexistent.h>
7601_ACEOF
7602if ac_fn_c_try_cpp "$LINENO"; then :
7603  # Broken: success on invalid input.
7604continue
7605else
7606  # Passes both tests.
7607ac_preproc_ok=:
7608break
7609fi
7610rm -f conftest.err conftest.i conftest.$ac_ext
7611
7612done
7613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7614rm -f conftest.i conftest.err conftest.$ac_ext
7615if $ac_preproc_ok; then :
7616  break
7617fi
7618
7619    done
7620    ac_cv_prog_CPP=$CPP
7621
7622fi
7623  CPP=$ac_cv_prog_CPP
7624else
7625  ac_cv_prog_CPP=$CPP
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7628$as_echo "$CPP" >&6; }
7629ac_preproc_ok=false
7630for ac_c_preproc_warn_flag in '' yes
7631do
7632  # Use a header file that comes with gcc, so configuring glibc
7633  # with a fresh cross-compiler works.
7634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7635  # <limits.h> exists even on freestanding compilers.
7636  # On the NeXT, cc -E runs the code through the compiler's parser,
7637  # not just through cpp. "Syntax error" is here to catch this case.
7638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h.  */
7640#ifdef __STDC__
7641# include <limits.h>
7642#else
7643# include <assert.h>
7644#endif
7645		     Syntax error
7646_ACEOF
7647if ac_fn_c_try_cpp "$LINENO"; then :
7648
7649else
7650  # Broken: fails on valid input.
7651continue
7652fi
7653rm -f conftest.err conftest.i conftest.$ac_ext
7654
7655  # OK, works on sane cases.  Now check whether nonexistent headers
7656  # can be detected and how.
7657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h.  */
7659#include <ac_nonexistent.h>
7660_ACEOF
7661if ac_fn_c_try_cpp "$LINENO"; then :
7662  # Broken: success on invalid input.
7663continue
7664else
7665  # Passes both tests.
7666ac_preproc_ok=:
7667break
7668fi
7669rm -f conftest.err conftest.i conftest.$ac_ext
7670
7671done
7672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7673rm -f conftest.i conftest.err conftest.$ac_ext
7674if $ac_preproc_ok; then :
7675
7676else
7677  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7679as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7680See \`config.log' for more details" "$LINENO" 5; }
7681fi
7682
7683ac_ext=c
7684ac_cpp='$CPP $CPPFLAGS'
7685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7687ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688
7689
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7691$as_echo_n "checking for ANSI C header files... " >&6; }
7692if ${ac_cv_header_stdc+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697#include <stdlib.h>
7698#include <stdarg.h>
7699#include <string.h>
7700#include <float.h>
7701
7702int
7703main ()
7704{
7705
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_compile "$LINENO"; then :
7711  ac_cv_header_stdc=yes
7712else
7713  ac_cv_header_stdc=no
7714fi
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716
7717if test $ac_cv_header_stdc = yes; then
7718  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721#include <string.h>
7722
7723_ACEOF
7724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7725  $EGREP "memchr" >/dev/null 2>&1; then :
7726
7727else
7728  ac_cv_header_stdc=no
7729fi
7730rm -f conftest*
7731
7732fi
7733
7734if test $ac_cv_header_stdc = yes; then
7735  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738#include <stdlib.h>
7739
7740_ACEOF
7741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742  $EGREP "free" >/dev/null 2>&1; then :
7743
7744else
7745  ac_cv_header_stdc=no
7746fi
7747rm -f conftest*
7748
7749fi
7750
7751if test $ac_cv_header_stdc = yes; then
7752  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7753  if test "$cross_compiling" = yes; then :
7754  :
7755else
7756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h.  */
7758#include <ctype.h>
7759#include <stdlib.h>
7760#if ((' ' & 0x0FF) == 0x020)
7761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7763#else
7764# define ISLOWER(c) \
7765		   (('a' <= (c) && (c) <= 'i') \
7766		     || ('j' <= (c) && (c) <= 'r') \
7767		     || ('s' <= (c) && (c) <= 'z'))
7768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7769#endif
7770
7771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7772int
7773main ()
7774{
7775  int i;
7776  for (i = 0; i < 256; i++)
7777    if (XOR (islower (i), ISLOWER (i))
7778	|| toupper (i) != TOUPPER (i))
7779      return 2;
7780  return 0;
7781}
7782_ACEOF
7783if ac_fn_c_try_run "$LINENO"; then :
7784
7785else
7786  ac_cv_header_stdc=no
7787fi
7788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7789  conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791
7792fi
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7795$as_echo "$ac_cv_header_stdc" >&6; }
7796if test $ac_cv_header_stdc = yes; then
7797
7798$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7799
7800fi
7801
7802# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7804		  inttypes.h stdint.h unistd.h
7805do :
7806  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7808"
7809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7810  cat >>confdefs.h <<_ACEOF
7811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7812_ACEOF
7813
7814fi
7815
7816done
7817
7818
7819for ac_header in dlfcn.h
7820do :
7821  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7822"
7823if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7824  cat >>confdefs.h <<_ACEOF
7825#define HAVE_DLFCN_H 1
7826_ACEOF
7827
7828fi
7829
7830done
7831
7832
7833
7834
7835
7836# Set options
7837
7838
7839
7840        enable_dlopen=no
7841
7842
7843  enable_win32_dll=no
7844
7845
7846            # Check whether --enable-shared was given.
7847if test "${enable_shared+set}" = set; then :
7848  enableval=$enable_shared; p=${PACKAGE-default}
7849    case $enableval in
7850    yes) enable_shared=yes ;;
7851    no) enable_shared=no ;;
7852    *)
7853      enable_shared=no
7854      # Look at the argument we got.  We use all the common list separators.
7855      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7856      for pkg in $enableval; do
7857	IFS=$lt_save_ifs
7858	if test "X$pkg" = "X$p"; then
7859	  enable_shared=yes
7860	fi
7861      done
7862      IFS=$lt_save_ifs
7863      ;;
7864    esac
7865else
7866  enable_shared=yes
7867fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877  # Check whether --enable-static was given.
7878if test "${enable_static+set}" = set; then :
7879  enableval=$enable_static; p=${PACKAGE-default}
7880    case $enableval in
7881    yes) enable_static=yes ;;
7882    no) enable_static=no ;;
7883    *)
7884     enable_static=no
7885      # Look at the argument we got.  We use all the common list separators.
7886      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7887      for pkg in $enableval; do
7888	IFS=$lt_save_ifs
7889	if test "X$pkg" = "X$p"; then
7890	  enable_static=yes
7891	fi
7892      done
7893      IFS=$lt_save_ifs
7894      ;;
7895    esac
7896else
7897  enable_static=yes
7898fi
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909# Check whether --with-pic was given.
7910if test "${with_pic+set}" = set; then :
7911  withval=$with_pic; lt_p=${PACKAGE-default}
7912    case $withval in
7913    yes|no) pic_mode=$withval ;;
7914    *)
7915      pic_mode=default
7916      # Look at the argument we got.  We use all the common list separators.
7917      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7918      for lt_pkg in $withval; do
7919	IFS=$lt_save_ifs
7920	if test "X$lt_pkg" = "X$lt_p"; then
7921	  pic_mode=yes
7922	fi
7923      done
7924      IFS=$lt_save_ifs
7925      ;;
7926    esac
7927else
7928  pic_mode=default
7929fi
7930
7931
7932
7933
7934
7935
7936
7937
7938  # Check whether --enable-fast-install was given.
7939if test "${enable_fast_install+set}" = set; then :
7940  enableval=$enable_fast_install; p=${PACKAGE-default}
7941    case $enableval in
7942    yes) enable_fast_install=yes ;;
7943    no) enable_fast_install=no ;;
7944    *)
7945      enable_fast_install=no
7946      # Look at the argument we got.  We use all the common list separators.
7947      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7948      for pkg in $enableval; do
7949	IFS=$lt_save_ifs
7950	if test "X$pkg" = "X$p"; then
7951	  enable_fast_install=yes
7952	fi
7953      done
7954      IFS=$lt_save_ifs
7955      ;;
7956    esac
7957else
7958  enable_fast_install=yes
7959fi
7960
7961
7962
7963
7964
7965
7966
7967
7968  shared_archive_member_spec=
7969case $host,$enable_shared in
7970power*-*-aix[5-9]*,yes)
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7972$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7973
7974# Check whether --with-aix-soname was given.
7975if test "${with_aix_soname+set}" = set; then :
7976  withval=$with_aix_soname; case $withval in
7977    aix|svr4|both)
7978      ;;
7979    *)
7980      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7981      ;;
7982    esac
7983    lt_cv_with_aix_soname=$with_aix_soname
7984else
7985  if ${lt_cv_with_aix_soname+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  lt_cv_with_aix_soname=aix
7989fi
7990
7991    with_aix_soname=$lt_cv_with_aix_soname
7992fi
7993
7994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7995$as_echo "$with_aix_soname" >&6; }
7996  if test aix != "$with_aix_soname"; then
7997    # For the AIX way of multilib, we name the shared archive member
7998    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7999    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8000    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8001    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8002    if test 64 = "${OBJECT_MODE-32}"; then
8003      shared_archive_member_spec=shr_64
8004    else
8005      shared_archive_member_spec=shr
8006    fi
8007  fi
8008  ;;
8009*)
8010  with_aix_soname=aix
8011  ;;
8012esac
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023# This can be used to rebuild libtool when needed
8024LIBTOOL_DEPS=$ltmain
8025
8026# Always use our own libtool.
8027LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058test -z "$LN_S" && LN_S="ln -s"
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073if test -n "${ZSH_VERSION+set}"; then
8074   setopt NO_GLOB_SUBST
8075fi
8076
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8078$as_echo_n "checking for objdir... " >&6; }
8079if ${lt_cv_objdir+:} false; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  rm -f .libs 2>/dev/null
8083mkdir .libs 2>/dev/null
8084if test -d .libs; then
8085  lt_cv_objdir=.libs
8086else
8087  # MS-DOS does not allow filenames that begin with a dot.
8088  lt_cv_objdir=_libs
8089fi
8090rmdir .libs 2>/dev/null
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8093$as_echo "$lt_cv_objdir" >&6; }
8094objdir=$lt_cv_objdir
8095
8096
8097
8098
8099
8100cat >>confdefs.h <<_ACEOF
8101#define LT_OBJDIR "$lt_cv_objdir/"
8102_ACEOF
8103
8104
8105
8106
8107case $host_os in
8108aix3*)
8109  # AIX sometimes has problems with the GCC collect2 program.  For some
8110  # reason, if we set the COLLECT_NAMES environment variable, the problems
8111  # vanish in a puff of smoke.
8112  if test set != "${COLLECT_NAMES+set}"; then
8113    COLLECT_NAMES=
8114    export COLLECT_NAMES
8115  fi
8116  ;;
8117esac
8118
8119# Global variables:
8120ofile=libtool
8121can_build_shared=yes
8122
8123# All known linkers require a '.a' archive for static linking (except MSVC,
8124# which needs '.lib').
8125libext=a
8126
8127with_gnu_ld=$lt_cv_prog_gnu_ld
8128
8129old_CC=$CC
8130old_CFLAGS=$CFLAGS
8131
8132# Set sane defaults for various variables
8133test -z "$CC" && CC=cc
8134test -z "$LTCC" && LTCC=$CC
8135test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8136test -z "$LD" && LD=ld
8137test -z "$ac_objext" && ac_objext=o
8138
8139func_cc_basename $compiler
8140cc_basename=$func_cc_basename_result
8141
8142
8143# Only perform the check for file, if the check method requires it
8144test -z "$MAGIC_CMD" && MAGIC_CMD=file
8145case $deplibs_check_method in
8146file_magic*)
8147  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8149$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8150if ${lt_cv_path_MAGIC_CMD+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153  case $MAGIC_CMD in
8154[\\/*] |  ?:[\\/]*)
8155  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8156  ;;
8157*)
8158  lt_save_MAGIC_CMD=$MAGIC_CMD
8159  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8160  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8161  for ac_dir in $ac_dummy; do
8162    IFS=$lt_save_ifs
8163    test -z "$ac_dir" && ac_dir=.
8164    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8165      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8166      if test -n "$file_magic_test_file"; then
8167	case $deplibs_check_method in
8168	"file_magic "*)
8169	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8170	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8171	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8172	    $EGREP "$file_magic_regex" > /dev/null; then
8173	    :
8174	  else
8175	    cat <<_LT_EOF 1>&2
8176
8177*** Warning: the command libtool uses to detect shared libraries,
8178*** $file_magic_cmd, produces output that libtool cannot recognize.
8179*** The result is that libtool may fail to recognize shared libraries
8180*** as such.  This will affect the creation of libtool libraries that
8181*** depend on shared libraries, but programs linked with such libtool
8182*** libraries will work regardless of this problem.  Nevertheless, you
8183*** may want to report the problem to your system manager and/or to
8184*** [email protected]
8185
8186_LT_EOF
8187	  fi ;;
8188	esac
8189      fi
8190      break
8191    fi
8192  done
8193  IFS=$lt_save_ifs
8194  MAGIC_CMD=$lt_save_MAGIC_CMD
8195  ;;
8196esac
8197fi
8198
8199MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8200if test -n "$MAGIC_CMD"; then
8201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8202$as_echo "$MAGIC_CMD" >&6; }
8203else
8204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
8206fi
8207
8208
8209
8210
8211
8212if test -z "$lt_cv_path_MAGIC_CMD"; then
8213  if test -n "$ac_tool_prefix"; then
8214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8215$as_echo_n "checking for file... " >&6; }
8216if ${lt_cv_path_MAGIC_CMD+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  case $MAGIC_CMD in
8220[\\/*] |  ?:[\\/]*)
8221  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8222  ;;
8223*)
8224  lt_save_MAGIC_CMD=$MAGIC_CMD
8225  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8226  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227  for ac_dir in $ac_dummy; do
8228    IFS=$lt_save_ifs
8229    test -z "$ac_dir" && ac_dir=.
8230    if test -f "$ac_dir/file"; then
8231      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8232      if test -n "$file_magic_test_file"; then
8233	case $deplibs_check_method in
8234	"file_magic "*)
8235	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8236	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8237	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238	    $EGREP "$file_magic_regex" > /dev/null; then
8239	    :
8240	  else
8241	    cat <<_LT_EOF 1>&2
8242
8243*** Warning: the command libtool uses to detect shared libraries,
8244*** $file_magic_cmd, produces output that libtool cannot recognize.
8245*** The result is that libtool may fail to recognize shared libraries
8246*** as such.  This will affect the creation of libtool libraries that
8247*** depend on shared libraries, but programs linked with such libtool
8248*** libraries will work regardless of this problem.  Nevertheless, you
8249*** may want to report the problem to your system manager and/or to
8250*** [email protected]
8251
8252_LT_EOF
8253	  fi ;;
8254	esac
8255      fi
8256      break
8257    fi
8258  done
8259  IFS=$lt_save_ifs
8260  MAGIC_CMD=$lt_save_MAGIC_CMD
8261  ;;
8262esac
8263fi
8264
8265MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8266if test -n "$MAGIC_CMD"; then
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8268$as_echo "$MAGIC_CMD" >&6; }
8269else
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273
8274
8275  else
8276    MAGIC_CMD=:
8277  fi
8278fi
8279
8280  fi
8281  ;;
8282esac
8283
8284# Use C for the default configuration in the libtool script
8285
8286lt_save_CC=$CC
8287ac_ext=c
8288ac_cpp='$CPP $CPPFLAGS'
8289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292
8293
8294# Source file extension for C test sources.
8295ac_ext=c
8296
8297# Object file extension for compiled C test sources.
8298objext=o
8299objext=$objext
8300
8301# Code to be used in simple compile tests
8302lt_simple_compile_test_code="int some_variable = 0;"
8303
8304# Code to be used in simple link tests
8305lt_simple_link_test_code='int main(){return(0);}'
8306
8307
8308
8309
8310
8311
8312
8313# If no C compiler was specified, use CC.
8314LTCC=${LTCC-"$CC"}
8315
8316# If no C compiler flags were specified, use CFLAGS.
8317LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8318
8319# Allow CC to be a program name with arguments.
8320compiler=$CC
8321
8322# Save the default compiler, since it gets overwritten when the other
8323# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8324compiler_DEFAULT=$CC
8325
8326# save warnings/boilerplate of simple test code
8327ac_outfile=conftest.$ac_objext
8328echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8329eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8330_lt_compiler_boilerplate=`cat conftest.err`
8331$RM conftest*
8332
8333ac_outfile=conftest.$ac_objext
8334echo "$lt_simple_link_test_code" >conftest.$ac_ext
8335eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8336_lt_linker_boilerplate=`cat conftest.err`
8337$RM -r conftest*
8338
8339
8340if test -n "$compiler"; then
8341
8342lt_prog_compiler_no_builtin_flag=
8343
8344if test yes = "$GCC"; then
8345  case $cc_basename in
8346  nvcc*)
8347    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8348  *)
8349    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8350  esac
8351
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8353$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8354if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8355  $as_echo_n "(cached) " >&6
8356else
8357  lt_cv_prog_compiler_rtti_exceptions=no
8358   ac_outfile=conftest.$ac_objext
8359   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8360   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8361   # Insert the option either (1) after the last *FLAGS variable, or
8362   # (2) before a word containing "conftest.", or (3) at the end.
8363   # Note that $ac_compile itself does not contain backslashes and begins
8364   # with a dollar sign (not a hyphen), so the echo should work correctly.
8365   # The option is referenced via a variable to avoid confusing sed.
8366   lt_compile=`echo "$ac_compile" | $SED \
8367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369   -e 's:$: $lt_compiler_flag:'`
8370   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8371   (eval "$lt_compile" 2>conftest.err)
8372   ac_status=$?
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   if (exit $ac_status) && test -s "$ac_outfile"; then
8376     # The compiler can only warn and ignore the option if not recognized
8377     # So say no if there are warnings other than the usual output.
8378     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8379     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8380     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8381       lt_cv_prog_compiler_rtti_exceptions=yes
8382     fi
8383   fi
8384   $RM conftest*
8385
8386fi
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8388$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8389
8390if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8391    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8392else
8393    :
8394fi
8395
8396fi
8397
8398
8399
8400
8401
8402
8403  lt_prog_compiler_wl=
8404lt_prog_compiler_pic=
8405lt_prog_compiler_static=
8406
8407
8408  if test yes = "$GCC"; then
8409    lt_prog_compiler_wl='-Wl,'
8410    lt_prog_compiler_static='-static'
8411
8412    case $host_os in
8413      aix*)
8414      # All AIX code is PIC.
8415      if test ia64 = "$host_cpu"; then
8416	# AIX 5 now supports IA64 processor
8417	lt_prog_compiler_static='-Bstatic'
8418      fi
8419      lt_prog_compiler_pic='-fPIC'
8420      ;;
8421
8422    amigaos*)
8423      case $host_cpu in
8424      powerpc)
8425            # see comment about AmigaOS4 .so support
8426            lt_prog_compiler_pic='-fPIC'
8427        ;;
8428      m68k)
8429            # FIXME: we need at least 68020 code to build shared libraries, but
8430            # adding the '-m68020' flag to GCC prevents building anything better,
8431            # like '-m68040'.
8432            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8433        ;;
8434      esac
8435      ;;
8436
8437    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8438      # PIC is the default for these OSes.
8439      ;;
8440
8441    mingw* | cygwin* | pw32* | os2* | cegcc*)
8442      # This hack is so that the source file can tell whether it is being
8443      # built for inclusion in a dll (and should export symbols for example).
8444      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8445      # (--disable-auto-import) libraries
8446      lt_prog_compiler_pic='-DDLL_EXPORT'
8447      case $host_os in
8448      os2*)
8449	lt_prog_compiler_static='$wl-static'
8450	;;
8451      esac
8452      ;;
8453
8454    darwin* | rhapsody*)
8455      # PIC is the default on this platform
8456      # Common symbols not allowed in MH_DYLIB files
8457      lt_prog_compiler_pic='-fno-common'
8458      ;;
8459
8460    haiku*)
8461      # PIC is the default for Haiku.
8462      # The "-static" flag exists, but is broken.
8463      lt_prog_compiler_static=
8464      ;;
8465
8466    hpux*)
8467      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8468      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8469      # sets the default TLS model and affects inlining.
8470      case $host_cpu in
8471      hppa*64*)
8472	# +Z the default
8473	;;
8474      *)
8475	lt_prog_compiler_pic='-fPIC'
8476	;;
8477      esac
8478      ;;
8479
8480    interix[3-9]*)
8481      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8482      # Instead, we relocate shared libraries at runtime.
8483      ;;
8484
8485    msdosdjgpp*)
8486      # Just because we use GCC doesn't mean we suddenly get shared libraries
8487      # on systems that don't support them.
8488      lt_prog_compiler_can_build_shared=no
8489      enable_shared=no
8490      ;;
8491
8492    *nto* | *qnx*)
8493      # QNX uses GNU C++, but need to define -shared option too, otherwise
8494      # it will coredump.
8495      lt_prog_compiler_pic='-fPIC -shared'
8496      ;;
8497
8498    sysv4*MP*)
8499      if test -d /usr/nec; then
8500	lt_prog_compiler_pic=-Kconform_pic
8501      fi
8502      ;;
8503
8504    *)
8505      lt_prog_compiler_pic='-fPIC'
8506      ;;
8507    esac
8508
8509    case $cc_basename in
8510    nvcc*) # Cuda Compiler Driver 2.2
8511      lt_prog_compiler_wl='-Xlinker '
8512      if test -n "$lt_prog_compiler_pic"; then
8513        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8514      fi
8515      ;;
8516    esac
8517  else
8518    # PORTME Check for flag to pass linker flags through the system compiler.
8519    case $host_os in
8520    aix*)
8521      lt_prog_compiler_wl='-Wl,'
8522      if test ia64 = "$host_cpu"; then
8523	# AIX 5 now supports IA64 processor
8524	lt_prog_compiler_static='-Bstatic'
8525      else
8526	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8527      fi
8528      ;;
8529
8530    darwin* | rhapsody*)
8531      # PIC is the default on this platform
8532      # Common symbols not allowed in MH_DYLIB files
8533      lt_prog_compiler_pic='-fno-common'
8534      case $cc_basename in
8535      nagfor*)
8536        # NAG Fortran compiler
8537        lt_prog_compiler_wl='-Wl,-Wl,,'
8538        lt_prog_compiler_pic='-PIC'
8539        lt_prog_compiler_static='-Bstatic'
8540        ;;
8541      esac
8542      ;;
8543
8544    mingw* | cygwin* | pw32* | os2* | cegcc*)
8545      # This hack is so that the source file can tell whether it is being
8546      # built for inclusion in a dll (and should export symbols for example).
8547      lt_prog_compiler_pic='-DDLL_EXPORT'
8548      case $host_os in
8549      os2*)
8550	lt_prog_compiler_static='$wl-static'
8551	;;
8552      esac
8553      ;;
8554
8555    hpux9* | hpux10* | hpux11*)
8556      lt_prog_compiler_wl='-Wl,'
8557      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8558      # not for PA HP-UX.
8559      case $host_cpu in
8560      hppa*64*|ia64*)
8561	# +Z the default
8562	;;
8563      *)
8564	lt_prog_compiler_pic='+Z'
8565	;;
8566      esac
8567      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8568      lt_prog_compiler_static='$wl-a ${wl}archive'
8569      ;;
8570
8571    irix5* | irix6* | nonstopux*)
8572      lt_prog_compiler_wl='-Wl,'
8573      # PIC (with -KPIC) is the default.
8574      lt_prog_compiler_static='-non_shared'
8575      ;;
8576
8577    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8578      case $cc_basename in
8579      # old Intel for x86_64, which still supported -KPIC.
8580      ecc*)
8581	lt_prog_compiler_wl='-Wl,'
8582	lt_prog_compiler_pic='-KPIC'
8583	lt_prog_compiler_static='-static'
8584        ;;
8585      # icc used to be incompatible with GCC.
8586      # ICC 10 doesn't accept -KPIC any more.
8587      icc* | ifort*)
8588	lt_prog_compiler_wl='-Wl,'
8589	lt_prog_compiler_pic='-fPIC'
8590	lt_prog_compiler_static='-static'
8591        ;;
8592      # Lahey Fortran 8.1.
8593      lf95*)
8594	lt_prog_compiler_wl='-Wl,'
8595	lt_prog_compiler_pic='--shared'
8596	lt_prog_compiler_static='--static'
8597	;;
8598      nagfor*)
8599	# NAG Fortran compiler
8600	lt_prog_compiler_wl='-Wl,-Wl,,'
8601	lt_prog_compiler_pic='-PIC'
8602	lt_prog_compiler_static='-Bstatic'
8603	;;
8604      tcc*)
8605	# Fabrice Bellard et al's Tiny C Compiler
8606	lt_prog_compiler_wl='-Wl,'
8607	lt_prog_compiler_pic='-fPIC'
8608	lt_prog_compiler_static='-static'
8609	;;
8610      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8611        # Portland Group compilers (*not* the Pentium gcc compiler,
8612	# which looks to be a dead project)
8613	lt_prog_compiler_wl='-Wl,'
8614	lt_prog_compiler_pic='-fpic'
8615	lt_prog_compiler_static='-Bstatic'
8616        ;;
8617      ccc*)
8618        lt_prog_compiler_wl='-Wl,'
8619        # All Alpha code is PIC.
8620        lt_prog_compiler_static='-non_shared'
8621        ;;
8622      xl* | bgxl* | bgf* | mpixl*)
8623	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8624	lt_prog_compiler_wl='-Wl,'
8625	lt_prog_compiler_pic='-qpic'
8626	lt_prog_compiler_static='-qstaticlink'
8627	;;
8628      *)
8629	case `$CC -V 2>&1 | sed 5q` in
8630	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8631	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8632	  lt_prog_compiler_pic='-KPIC'
8633	  lt_prog_compiler_static='-Bstatic'
8634	  lt_prog_compiler_wl=''
8635	  ;;
8636	*Sun\ F* | *Sun*Fortran*)
8637	  lt_prog_compiler_pic='-KPIC'
8638	  lt_prog_compiler_static='-Bstatic'
8639	  lt_prog_compiler_wl='-Qoption ld '
8640	  ;;
8641	*Sun\ C*)
8642	  # Sun C 5.9
8643	  lt_prog_compiler_pic='-KPIC'
8644	  lt_prog_compiler_static='-Bstatic'
8645	  lt_prog_compiler_wl='-Wl,'
8646	  ;;
8647        *Intel*\ [CF]*Compiler*)
8648	  lt_prog_compiler_wl='-Wl,'
8649	  lt_prog_compiler_pic='-fPIC'
8650	  lt_prog_compiler_static='-static'
8651	  ;;
8652	*Portland\ Group*)
8653	  lt_prog_compiler_wl='-Wl,'
8654	  lt_prog_compiler_pic='-fpic'
8655	  lt_prog_compiler_static='-Bstatic'
8656	  ;;
8657	esac
8658	;;
8659      esac
8660      ;;
8661
8662    newsos6)
8663      lt_prog_compiler_pic='-KPIC'
8664      lt_prog_compiler_static='-Bstatic'
8665      ;;
8666
8667    *nto* | *qnx*)
8668      # QNX uses GNU C++, but need to define -shared option too, otherwise
8669      # it will coredump.
8670      lt_prog_compiler_pic='-fPIC -shared'
8671      ;;
8672
8673    osf3* | osf4* | osf5*)
8674      lt_prog_compiler_wl='-Wl,'
8675      # All OSF/1 code is PIC.
8676      lt_prog_compiler_static='-non_shared'
8677      ;;
8678
8679    rdos*)
8680      lt_prog_compiler_static='-non_shared'
8681      ;;
8682
8683    solaris*)
8684      lt_prog_compiler_pic='-KPIC'
8685      lt_prog_compiler_static='-Bstatic'
8686      case $cc_basename in
8687      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8688	lt_prog_compiler_wl='-Qoption ld ';;
8689      *)
8690	lt_prog_compiler_wl='-Wl,';;
8691      esac
8692      ;;
8693
8694    sunos4*)
8695      lt_prog_compiler_wl='-Qoption ld '
8696      lt_prog_compiler_pic='-PIC'
8697      lt_prog_compiler_static='-Bstatic'
8698      ;;
8699
8700    sysv4 | sysv4.2uw2* | sysv4.3*)
8701      lt_prog_compiler_wl='-Wl,'
8702      lt_prog_compiler_pic='-KPIC'
8703      lt_prog_compiler_static='-Bstatic'
8704      ;;
8705
8706    sysv4*MP*)
8707      if test -d /usr/nec; then
8708	lt_prog_compiler_pic='-Kconform_pic'
8709	lt_prog_compiler_static='-Bstatic'
8710      fi
8711      ;;
8712
8713    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8714      lt_prog_compiler_wl='-Wl,'
8715      lt_prog_compiler_pic='-KPIC'
8716      lt_prog_compiler_static='-Bstatic'
8717      ;;
8718
8719    unicos*)
8720      lt_prog_compiler_wl='-Wl,'
8721      lt_prog_compiler_can_build_shared=no
8722      ;;
8723
8724    uts4*)
8725      lt_prog_compiler_pic='-pic'
8726      lt_prog_compiler_static='-Bstatic'
8727      ;;
8728
8729    *)
8730      lt_prog_compiler_can_build_shared=no
8731      ;;
8732    esac
8733  fi
8734
8735case $host_os in
8736  # For platforms that do not support PIC, -DPIC is meaningless:
8737  *djgpp*)
8738    lt_prog_compiler_pic=
8739    ;;
8740  *)
8741    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8742    ;;
8743esac
8744
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8746$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8747if ${lt_cv_prog_compiler_pic+:} false; then :
8748  $as_echo_n "(cached) " >&6
8749else
8750  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8753$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8754lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8755
8756#
8757# Check to make sure the PIC flag actually works.
8758#
8759if test -n "$lt_prog_compiler_pic"; then
8760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8761$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8762if ${lt_cv_prog_compiler_pic_works+:} false; then :
8763  $as_echo_n "(cached) " >&6
8764else
8765  lt_cv_prog_compiler_pic_works=no
8766   ac_outfile=conftest.$ac_objext
8767   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8768   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8769   # Insert the option either (1) after the last *FLAGS variable, or
8770   # (2) before a word containing "conftest.", or (3) at the end.
8771   # Note that $ac_compile itself does not contain backslashes and begins
8772   # with a dollar sign (not a hyphen), so the echo should work correctly.
8773   # The option is referenced via a variable to avoid confusing sed.
8774   lt_compile=`echo "$ac_compile" | $SED \
8775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8777   -e 's:$: $lt_compiler_flag:'`
8778   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8779   (eval "$lt_compile" 2>conftest.err)
8780   ac_status=$?
8781   cat conftest.err >&5
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   if (exit $ac_status) && test -s "$ac_outfile"; then
8784     # The compiler can only warn and ignore the option if not recognized
8785     # So say no if there are warnings other than the usual output.
8786     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8787     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8788     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8789       lt_cv_prog_compiler_pic_works=yes
8790     fi
8791   fi
8792   $RM conftest*
8793
8794fi
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8796$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8797
8798if test yes = "$lt_cv_prog_compiler_pic_works"; then
8799    case $lt_prog_compiler_pic in
8800     "" | " "*) ;;
8801     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8802     esac
8803else
8804    lt_prog_compiler_pic=
8805     lt_prog_compiler_can_build_shared=no
8806fi
8807
8808fi
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820#
8821# Check to make sure the static flag actually works.
8822#
8823wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8825$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8826if ${lt_cv_prog_compiler_static_works+:} false; then :
8827  $as_echo_n "(cached) " >&6
8828else
8829  lt_cv_prog_compiler_static_works=no
8830   save_LDFLAGS=$LDFLAGS
8831   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8832   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8833   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8834     # The linker can only warn and ignore the option if not recognized
8835     # So say no if there are warnings
8836     if test -s conftest.err; then
8837       # Append any errors to the config.log.
8838       cat conftest.err 1>&5
8839       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8840       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8841       if diff conftest.exp conftest.er2 >/dev/null; then
8842         lt_cv_prog_compiler_static_works=yes
8843       fi
8844     else
8845       lt_cv_prog_compiler_static_works=yes
8846     fi
8847   fi
8848   $RM -r conftest*
8849   LDFLAGS=$save_LDFLAGS
8850
8851fi
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8853$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8854
8855if test yes = "$lt_cv_prog_compiler_static_works"; then
8856    :
8857else
8858    lt_prog_compiler_static=
8859fi
8860
8861
8862
8863
8864
8865
8866
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8868$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8869if ${lt_cv_prog_compiler_c_o+:} false; then :
8870  $as_echo_n "(cached) " >&6
8871else
8872  lt_cv_prog_compiler_c_o=no
8873   $RM -r conftest 2>/dev/null
8874   mkdir conftest
8875   cd conftest
8876   mkdir out
8877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878
8879   lt_compiler_flag="-o out/conftest2.$ac_objext"
8880   # Insert the option either (1) after the last *FLAGS variable, or
8881   # (2) before a word containing "conftest.", or (3) at the end.
8882   # Note that $ac_compile itself does not contain backslashes and begins
8883   # with a dollar sign (not a hyphen), so the echo should work correctly.
8884   lt_compile=`echo "$ac_compile" | $SED \
8885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887   -e 's:$: $lt_compiler_flag:'`
8888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8889   (eval "$lt_compile" 2>out/conftest.err)
8890   ac_status=$?
8891   cat out/conftest.err >&5
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8894   then
8895     # The compiler can only warn and ignore the option if not recognized
8896     # So say no if there are warnings
8897     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8898     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8899     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8900       lt_cv_prog_compiler_c_o=yes
8901     fi
8902   fi
8903   chmod u+w . 2>&5
8904   $RM conftest*
8905   # SGI C++ compiler will create directory out/ii_files/ for
8906   # template instantiation
8907   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8908   $RM out/* && rmdir out
8909   cd ..
8910   $RM -r conftest
8911   $RM conftest*
8912
8913fi
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8915$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8916
8917
8918
8919
8920
8921
8922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8923$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8924if ${lt_cv_prog_compiler_c_o+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  lt_cv_prog_compiler_c_o=no
8928   $RM -r conftest 2>/dev/null
8929   mkdir conftest
8930   cd conftest
8931   mkdir out
8932   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933
8934   lt_compiler_flag="-o out/conftest2.$ac_objext"
8935   # Insert the option either (1) after the last *FLAGS variable, or
8936   # (2) before a word containing "conftest.", or (3) at the end.
8937   # Note that $ac_compile itself does not contain backslashes and begins
8938   # with a dollar sign (not a hyphen), so the echo should work correctly.
8939   lt_compile=`echo "$ac_compile" | $SED \
8940   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942   -e 's:$: $lt_compiler_flag:'`
8943   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8944   (eval "$lt_compile" 2>out/conftest.err)
8945   ac_status=$?
8946   cat out/conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8949   then
8950     # The compiler can only warn and ignore the option if not recognized
8951     # So say no if there are warnings
8952     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8953     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8954     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8955       lt_cv_prog_compiler_c_o=yes
8956     fi
8957   fi
8958   chmod u+w . 2>&5
8959   $RM conftest*
8960   # SGI C++ compiler will create directory out/ii_files/ for
8961   # template instantiation
8962   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8963   $RM out/* && rmdir out
8964   cd ..
8965   $RM -r conftest
8966   $RM conftest*
8967
8968fi
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8970$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8971
8972
8973
8974
8975hard_links=nottested
8976if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8977  # do not overwrite the value of need_locks provided by the user
8978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8979$as_echo_n "checking if we can lock with hard links... " >&6; }
8980  hard_links=yes
8981  $RM conftest*
8982  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8983  touch conftest.a
8984  ln conftest.a conftest.b 2>&5 || hard_links=no
8985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8987$as_echo "$hard_links" >&6; }
8988  if test no = "$hard_links"; then
8989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8990$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8991    need_locks=warn
8992  fi
8993else
8994  need_locks=no
8995fi
8996
8997
8998
8999
9000
9001
9002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9003$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9004
9005  runpath_var=
9006  allow_undefined_flag=
9007  always_export_symbols=no
9008  archive_cmds=
9009  archive_expsym_cmds=
9010  compiler_needs_object=no
9011  enable_shared_with_static_runtimes=no
9012  export_dynamic_flag_spec=
9013  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9014  hardcode_automatic=no
9015  hardcode_direct=no
9016  hardcode_direct_absolute=no
9017  hardcode_libdir_flag_spec=
9018  hardcode_libdir_separator=
9019  hardcode_minus_L=no
9020  hardcode_shlibpath_var=unsupported
9021  inherit_rpath=no
9022  link_all_deplibs=unknown
9023  module_cmds=
9024  module_expsym_cmds=
9025  old_archive_from_new_cmds=
9026  old_archive_from_expsyms_cmds=
9027  thread_safe_flag_spec=
9028  whole_archive_flag_spec=
9029  # include_expsyms should be a list of space-separated symbols to be *always*
9030  # included in the symbol list
9031  include_expsyms=
9032  # exclude_expsyms can be an extended regexp of symbols to exclude
9033  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9034  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9035  # as well as any symbol that contains 'd'.
9036  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9037  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9038  # platforms (ab)use it in PIC code, but their linkers get confused if
9039  # the symbol is explicitly referenced.  Since portable code cannot
9040  # rely on this symbol name, it's probably fine to never include it in
9041  # preloaded symbol tables.
9042  # Exclude shared library initialization/finalization symbols.
9043  extract_expsyms_cmds=
9044
9045  case $host_os in
9046  cygwin* | mingw* | pw32* | cegcc*)
9047    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9048    # When not using gcc, we currently assume that we are using
9049    # Microsoft Visual C++.
9050    if test yes != "$GCC"; then
9051      with_gnu_ld=no
9052    fi
9053    ;;
9054  interix*)
9055    # we just hope/assume this is gcc and not c89 (= MSVC++)
9056    with_gnu_ld=yes
9057    ;;
9058  openbsd* | bitrig*)
9059    with_gnu_ld=no
9060    ;;
9061  esac
9062
9063  ld_shlibs=yes
9064
9065  # On some targets, GNU ld is compatible enough with the native linker
9066  # that we're better off using the native interface for both.
9067  lt_use_gnu_ld_interface=no
9068  if test yes = "$with_gnu_ld"; then
9069    case $host_os in
9070      aix*)
9071	# The AIX port of GNU ld has always aspired to compatibility
9072	# with the native linker.  However, as the warning in the GNU ld
9073	# block says, versions before 2.19.5* couldn't really create working
9074	# shared libraries, regardless of the interface used.
9075	case `$LD -v 2>&1` in
9076	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9077	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9078	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9079	  *)
9080	    lt_use_gnu_ld_interface=yes
9081	    ;;
9082	esac
9083	;;
9084      *)
9085	lt_use_gnu_ld_interface=yes
9086	;;
9087    esac
9088  fi
9089
9090  if test yes = "$lt_use_gnu_ld_interface"; then
9091    # If archive_cmds runs LD, not CC, wlarc should be empty
9092    wlarc='$wl'
9093
9094    # Set some defaults for GNU ld with shared library support. These
9095    # are reset later if shared libraries are not supported. Putting them
9096    # here allows them to be overridden if necessary.
9097    runpath_var=LD_RUN_PATH
9098    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9099    export_dynamic_flag_spec='$wl--export-dynamic'
9100    # ancient GNU ld didn't support --whole-archive et. al.
9101    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9102      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9103    else
9104      whole_archive_flag_spec=
9105    fi
9106    supports_anon_versioning=no
9107    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9108      *GNU\ gold*) supports_anon_versioning=yes ;;
9109      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9110      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9111      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9112      *\ 2.11.*) ;; # other 2.11 versions
9113      *) supports_anon_versioning=yes ;;
9114    esac
9115
9116    # See if GNU ld supports shared libraries.
9117    case $host_os in
9118    aix[3-9]*)
9119      # On AIX/PPC, the GNU linker is very broken
9120      if test ia64 != "$host_cpu"; then
9121	ld_shlibs=no
9122	cat <<_LT_EOF 1>&2
9123
9124*** Warning: the GNU linker, at least up to release 2.19, is reported
9125*** to be unable to reliably create shared libraries on AIX.
9126*** Therefore, libtool is disabling shared libraries support.  If you
9127*** really care for shared libraries, you may want to install binutils
9128*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9129*** You will then need to restart the configuration process.
9130
9131_LT_EOF
9132      fi
9133      ;;
9134
9135    amigaos*)
9136      case $host_cpu in
9137      powerpc)
9138            # see comment about AmigaOS4 .so support
9139            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9140            archive_expsym_cmds=''
9141        ;;
9142      m68k)
9143            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)'
9144            hardcode_libdir_flag_spec='-L$libdir'
9145            hardcode_minus_L=yes
9146        ;;
9147      esac
9148      ;;
9149
9150    beos*)
9151      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9152	allow_undefined_flag=unsupported
9153	# Joseph Beckenbach <[email protected]> says some releases of gcc
9154	# support --undefined.  This deserves some investigation.  FIXME
9155	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9156      else
9157	ld_shlibs=no
9158      fi
9159      ;;
9160
9161    cygwin* | mingw* | pw32* | cegcc*)
9162      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9163      # as there is no search path for DLLs.
9164      hardcode_libdir_flag_spec='-L$libdir'
9165      export_dynamic_flag_spec='$wl--export-all-symbols'
9166      allow_undefined_flag=unsupported
9167      always_export_symbols=no
9168      enable_shared_with_static_runtimes=yes
9169      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'
9170      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9171
9172      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9173        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9174	# If the export-symbols file already is a .def file, use it as
9175	# is; otherwise, prepend EXPORTS...
9176	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9177          cp $export_symbols $output_objdir/$soname.def;
9178        else
9179          echo EXPORTS > $output_objdir/$soname.def;
9180          cat $export_symbols >> $output_objdir/$soname.def;
9181        fi~
9182        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9183      else
9184	ld_shlibs=no
9185      fi
9186      ;;
9187
9188    haiku*)
9189      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9190      link_all_deplibs=yes
9191      ;;
9192
9193    os2*)
9194      hardcode_libdir_flag_spec='-L$libdir'
9195      hardcode_minus_L=yes
9196      allow_undefined_flag=unsupported
9197      shrext_cmds=.dll
9198      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9199	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9200	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9201	$ECHO EXPORTS >> $output_objdir/$libname.def~
9202	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9203	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9204	emximp -o $lib $output_objdir/$libname.def'
9205      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9206	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9207	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9208	$ECHO EXPORTS >> $output_objdir/$libname.def~
9209	prefix_cmds="$SED"~
9210	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9211	  prefix_cmds="$prefix_cmds -e 1d";
9212	fi~
9213	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9214	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9215	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9216	emximp -o $lib $output_objdir/$libname.def'
9217      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9218      enable_shared_with_static_runtimes=yes
9219      ;;
9220
9221    interix[3-9]*)
9222      hardcode_direct=no
9223      hardcode_shlibpath_var=no
9224      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9225      export_dynamic_flag_spec='$wl-E'
9226      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9227      # Instead, shared libraries are loaded at an image base (0x10000000 by
9228      # default) and relocated if they conflict, which is a slow very memory
9229      # consuming and fragmenting process.  To avoid this, we pick a random,
9230      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9231      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9232      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9233      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'
9234      ;;
9235
9236    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9237      tmp_diet=no
9238      if test linux-dietlibc = "$host_os"; then
9239	case $cc_basename in
9240	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9241	esac
9242      fi
9243      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9244	 && test no = "$tmp_diet"
9245      then
9246	tmp_addflag=' $pic_flag'
9247	tmp_sharedflag='-shared'
9248	case $cc_basename,$host_cpu in
9249        pgcc*)				# Portland Group C compiler
9250	  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'
9251	  tmp_addflag=' $pic_flag'
9252	  ;;
9253	pgf77* | pgf90* | pgf95* | pgfortran*)
9254					# Portland Group f77 and f90 compilers
9255	  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'
9256	  tmp_addflag=' $pic_flag -Mnomain' ;;
9257	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9258	  tmp_addflag=' -i_dynamic' ;;
9259	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9260	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9261	ifc* | ifort*)			# Intel Fortran compiler
9262	  tmp_addflag=' -nofor_main' ;;
9263	lf95*)				# Lahey Fortran 8.1
9264	  whole_archive_flag_spec=
9265	  tmp_sharedflag='--shared' ;;
9266        nagfor*)                        # NAGFOR 5.3
9267          tmp_sharedflag='-Wl,-shared' ;;
9268	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9269	  tmp_sharedflag='-qmkshrobj'
9270	  tmp_addflag= ;;
9271	nvcc*)	# Cuda Compiler Driver 2.2
9272	  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'
9273	  compiler_needs_object=yes
9274	  ;;
9275	esac
9276	case `$CC -V 2>&1 | sed 5q` in
9277	*Sun\ C*)			# Sun C 5.9
9278	  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'
9279	  compiler_needs_object=yes
9280	  tmp_sharedflag='-G' ;;
9281	*Sun\ F*)			# Sun Fortran 8.3
9282	  tmp_sharedflag='-G' ;;
9283	esac
9284	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285
9286        if test yes = "$supports_anon_versioning"; then
9287          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9288            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9289            echo "local: *; };" >> $output_objdir/$libname.ver~
9290            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9291        fi
9292
9293	case $cc_basename in
9294	tcc*)
9295	  export_dynamic_flag_spec='-rdynamic'
9296	  ;;
9297	xlf* | bgf* | bgxlf* | mpixlf*)
9298	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9299	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9300	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9301	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9302	  if test yes = "$supports_anon_versioning"; then
9303	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9304              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9305              echo "local: *; };" >> $output_objdir/$libname.ver~
9306              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9307	  fi
9308	  ;;
9309	esac
9310      else
9311        ld_shlibs=no
9312      fi
9313      ;;
9314
9315    netbsd*)
9316      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9317	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9318	wlarc=
9319      else
9320	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9321	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9322      fi
9323      ;;
9324
9325    solaris*)
9326      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9327	ld_shlibs=no
9328	cat <<_LT_EOF 1>&2
9329
9330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9331*** create shared libraries on Solaris systems.  Therefore, libtool
9332*** is disabling shared libraries support.  We urge you to upgrade GNU
9333*** binutils to release 2.9.1 or newer.  Another option is to modify
9334*** your PATH or compiler configuration so that the native linker is
9335*** used, and then restart.
9336
9337_LT_EOF
9338      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9340	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9341      else
9342	ld_shlibs=no
9343      fi
9344      ;;
9345
9346    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9347      case `$LD -v 2>&1` in
9348        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9349	ld_shlibs=no
9350	cat <<_LT_EOF 1>&2
9351
9352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9353*** reliably create shared libraries on SCO systems.  Therefore, libtool
9354*** is disabling shared libraries support.  We urge you to upgrade GNU
9355*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9356*** your PATH or compiler configuration so that the native linker is
9357*** used, and then restart.
9358
9359_LT_EOF
9360	;;
9361	*)
9362	  # For security reasons, it is highly recommended that you always
9363	  # use absolute paths for naming shared libraries, and exclude the
9364	  # DT_RUNPATH tag from executables and libraries.  But doing so
9365	  # requires that you compile everything twice, which is a pain.
9366	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9368	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9369	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9370	  else
9371	    ld_shlibs=no
9372	  fi
9373	;;
9374      esac
9375      ;;
9376
9377    sunos4*)
9378      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379      wlarc=
9380      hardcode_direct=yes
9381      hardcode_shlibpath_var=no
9382      ;;
9383
9384    *)
9385      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9386	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9387	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9388      else
9389	ld_shlibs=no
9390      fi
9391      ;;
9392    esac
9393
9394    if test no = "$ld_shlibs"; then
9395      runpath_var=
9396      hardcode_libdir_flag_spec=
9397      export_dynamic_flag_spec=
9398      whole_archive_flag_spec=
9399    fi
9400  else
9401    # PORTME fill in a description of your system's linker (not GNU ld)
9402    case $host_os in
9403    aix3*)
9404      allow_undefined_flag=unsupported
9405      always_export_symbols=yes
9406      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'
9407      # Note: this linker hardcodes the directories in LIBPATH if there
9408      # are no directories specified by -L.
9409      hardcode_minus_L=yes
9410      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9411	# Neither direct hardcoding nor static linking is supported with a
9412	# broken collect2.
9413	hardcode_direct=unsupported
9414      fi
9415      ;;
9416
9417    aix[4-9]*)
9418      if test ia64 = "$host_cpu"; then
9419	# On IA64, the linker does run time linking by default, so we don't
9420	# have to do anything special.
9421	aix_use_runtimelinking=no
9422	exp_sym_flag='-Bexport'
9423	no_entry_flag=
9424      else
9425	# If we're using GNU nm, then we don't want the "-C" option.
9426	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9427	# Without the "-l" option, or with the "-B" option, AIX nm treats
9428	# weak defined symbols like other global defined symbols, whereas
9429	# GNU nm marks them as "W".
9430	# While the 'weak' keyword is ignored in the Export File, we need
9431	# it in the Import File for the 'aix-soname' feature, so we have
9432	# to replace the "-B" option with "-P" for AIX nm.
9433	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9434	  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'
9435	else
9436	  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'
9437	fi
9438	aix_use_runtimelinking=no
9439
9440	# Test if we are trying to use run time linking or normal
9441	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9442	# have runtime linking enabled, and use it for executables.
9443	# For shared libraries, we enable/disable runtime linking
9444	# depending on the kind of the shared library created -
9445	# when "with_aix_soname,aix_use_runtimelinking" is:
9446	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9447	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9448	#            lib.a           static archive
9449	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9450	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9451	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9452	#            lib.a(lib.so.V) shared, rtl:no
9453	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9454	#            lib.a           static archive
9455	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9456	  for ld_flag in $LDFLAGS; do
9457	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9458	    aix_use_runtimelinking=yes
9459	    break
9460	  fi
9461	  done
9462	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9463	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9464	    # so we don't have lib.a shared libs to link our executables.
9465	    # We have to force runtime linking in this case.
9466	    aix_use_runtimelinking=yes
9467	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9468	  fi
9469	  ;;
9470	esac
9471
9472	exp_sym_flag='-bexport'
9473	no_entry_flag='-bnoentry'
9474      fi
9475
9476      # When large executables or shared objects are built, AIX ld can
9477      # have problems creating the table of contents.  If linking a library
9478      # or program results in "error TOC overflow" add -mminimal-toc to
9479      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9480      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9481
9482      archive_cmds=''
9483      hardcode_direct=yes
9484      hardcode_direct_absolute=yes
9485      hardcode_libdir_separator=':'
9486      link_all_deplibs=yes
9487      file_list_spec='$wl-f,'
9488      case $with_aix_soname,$aix_use_runtimelinking in
9489      aix,*) ;; # traditional, no import file
9490      svr4,* | *,yes) # use import file
9491	# The Import File defines what to hardcode.
9492	hardcode_direct=no
9493	hardcode_direct_absolute=no
9494	;;
9495      esac
9496
9497      if test yes = "$GCC"; then
9498	case $host_os in aix4.[012]|aix4.[012].*)
9499	# We only want to do this on AIX 4.2 and lower, the check
9500	# below for broken collect2 doesn't work under 4.3+
9501	  collect2name=`$CC -print-prog-name=collect2`
9502	  if test -f "$collect2name" &&
9503	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9504	  then
9505	  # We have reworked collect2
9506	  :
9507	  else
9508	  # We have old collect2
9509	  hardcode_direct=unsupported
9510	  # It fails to find uninstalled libraries when the uninstalled
9511	  # path is not listed in the libpath.  Setting hardcode_minus_L
9512	  # to unsupported forces relinking
9513	  hardcode_minus_L=yes
9514	  hardcode_libdir_flag_spec='-L$libdir'
9515	  hardcode_libdir_separator=
9516	  fi
9517	  ;;
9518	esac
9519	shared_flag='-shared'
9520	if test yes = "$aix_use_runtimelinking"; then
9521	  shared_flag="$shared_flag "'$wl-G'
9522	fi
9523	# Need to ensure runtime linking is disabled for the traditional
9524	# shared library, or the linker may eventually find shared libraries
9525	# /with/ Import File - we do not want to mix them.
9526	shared_flag_aix='-shared'
9527	shared_flag_svr4='-shared $wl-G'
9528      else
9529	# not using gcc
9530	if test ia64 = "$host_cpu"; then
9531	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9532	# chokes on -Wl,-G. The following line is correct:
9533	  shared_flag='-G'
9534	else
9535	  if test yes = "$aix_use_runtimelinking"; then
9536	    shared_flag='$wl-G'
9537	  else
9538	    shared_flag='$wl-bM:SRE'
9539	  fi
9540	  shared_flag_aix='$wl-bM:SRE'
9541	  shared_flag_svr4='$wl-G'
9542	fi
9543      fi
9544
9545      export_dynamic_flag_spec='$wl-bexpall'
9546      # It seems that -bexpall does not export symbols beginning with
9547      # underscore (_), so it is better to generate a list of symbols to export.
9548      always_export_symbols=yes
9549      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9550	# Warning - without using the other runtime loading flags (-brtl),
9551	# -berok will link without error, but may produce a broken library.
9552	allow_undefined_flag='-berok'
9553        # Determine the default libpath from the value encoded in an
9554        # empty executable.
9555        if test set = "${lt_cv_aix_libpath+set}"; then
9556  aix_libpath=$lt_cv_aix_libpath
9557else
9558  if ${lt_cv_aix_libpath_+:} false; then :
9559  $as_echo_n "(cached) " >&6
9560else
9561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562/* end confdefs.h.  */
9563
9564int
9565main ()
9566{
9567
9568  ;
9569  return 0;
9570}
9571_ACEOF
9572if ac_fn_c_try_link "$LINENO"; then :
9573
9574  lt_aix_libpath_sed='
9575      /Import File Strings/,/^$/ {
9576	  /^0/ {
9577	      s/^0  *\([^ ]*\) *$/\1/
9578	      p
9579	  }
9580      }'
9581  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582  # Check for a 64-bit object if we didn't find anything.
9583  if test -z "$lt_cv_aix_libpath_"; then
9584    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585  fi
9586fi
9587rm -f core conftest.err conftest.$ac_objext \
9588    conftest$ac_exeext conftest.$ac_ext
9589  if test -z "$lt_cv_aix_libpath_"; then
9590    lt_cv_aix_libpath_=/usr/lib:/lib
9591  fi
9592
9593fi
9594
9595  aix_libpath=$lt_cv_aix_libpath_
9596fi
9597
9598        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9599        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
9600      else
9601	if test ia64 = "$host_cpu"; then
9602	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9603	  allow_undefined_flag="-z nodefs"
9604	  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"
9605	else
9606	 # Determine the default libpath from the value encoded in an
9607	 # empty executable.
9608	 if test set = "${lt_cv_aix_libpath+set}"; then
9609  aix_libpath=$lt_cv_aix_libpath
9610else
9611  if ${lt_cv_aix_libpath_+:} false; then :
9612  $as_echo_n "(cached) " >&6
9613else
9614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615/* end confdefs.h.  */
9616
9617int
9618main ()
9619{
9620
9621  ;
9622  return 0;
9623}
9624_ACEOF
9625if ac_fn_c_try_link "$LINENO"; then :
9626
9627  lt_aix_libpath_sed='
9628      /Import File Strings/,/^$/ {
9629	  /^0/ {
9630	      s/^0  *\([^ ]*\) *$/\1/
9631	      p
9632	  }
9633      }'
9634  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635  # Check for a 64-bit object if we didn't find anything.
9636  if test -z "$lt_cv_aix_libpath_"; then
9637    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638  fi
9639fi
9640rm -f core conftest.err conftest.$ac_objext \
9641    conftest$ac_exeext conftest.$ac_ext
9642  if test -z "$lt_cv_aix_libpath_"; then
9643    lt_cv_aix_libpath_=/usr/lib:/lib
9644  fi
9645
9646fi
9647
9648  aix_libpath=$lt_cv_aix_libpath_
9649fi
9650
9651	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9652	  # Warning - without using the other run time loading flags,
9653	  # -berok will link without error, but may produce a broken library.
9654	  no_undefined_flag=' $wl-bernotok'
9655	  allow_undefined_flag=' $wl-berok'
9656	  if test yes = "$with_gnu_ld"; then
9657	    # We only use this code for GNU lds that support --whole-archive.
9658	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9659	  else
9660	    # Exported symbols can be pulled into shared objects from archives
9661	    whole_archive_flag_spec='$convenience'
9662	  fi
9663	  archive_cmds_need_lc=yes
9664	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9665	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9666	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9667	  if test svr4 != "$with_aix_soname"; then
9668	    # This is similar to how AIX traditionally builds its shared libraries.
9669	    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'
9670	  fi
9671	  if test aix != "$with_aix_soname"; then
9672	    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'
9673	  else
9674	    # used by -dlpreopen to get the symbols
9675	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9676	  fi
9677	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9678	fi
9679      fi
9680      ;;
9681
9682    amigaos*)
9683      case $host_cpu in
9684      powerpc)
9685            # see comment about AmigaOS4 .so support
9686            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9687            archive_expsym_cmds=''
9688        ;;
9689      m68k)
9690            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)'
9691            hardcode_libdir_flag_spec='-L$libdir'
9692            hardcode_minus_L=yes
9693        ;;
9694      esac
9695      ;;
9696
9697    bsdi[45]*)
9698      export_dynamic_flag_spec=-rdynamic
9699      ;;
9700
9701    cygwin* | mingw* | pw32* | cegcc*)
9702      # When not using gcc, we currently assume that we are using
9703      # Microsoft Visual C++.
9704      # hardcode_libdir_flag_spec is actually meaningless, as there is
9705      # no search path for DLLs.
9706      case $cc_basename in
9707      cl*)
9708	# Native MSVC
9709	hardcode_libdir_flag_spec=' '
9710	allow_undefined_flag=unsupported
9711	always_export_symbols=yes
9712	file_list_spec='@'
9713	# Tell ltmain to make .lib files, not .a files.
9714	libext=lib
9715	# Tell ltmain to make .dll files, not .so files.
9716	shrext_cmds=.dll
9717	# FIXME: Setting linknames here is a bad hack.
9718	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9719	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9720            cp "$export_symbols" "$output_objdir/$soname.def";
9721            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9722          else
9723            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9724          fi~
9725          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9726          linknames='
9727	# The linker will not automatically build a static lib if we build a DLL.
9728	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9729	enable_shared_with_static_runtimes=yes
9730	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9731	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9732	# Don't use ranlib
9733	old_postinstall_cmds='chmod 644 $oldlib'
9734	postlink_cmds='lt_outputfile="@OUTPUT@"~
9735          lt_tool_outputfile="@TOOL_OUTPUT@"~
9736          case $lt_outputfile in
9737            *.exe|*.EXE) ;;
9738            *)
9739              lt_outputfile=$lt_outputfile.exe
9740              lt_tool_outputfile=$lt_tool_outputfile.exe
9741              ;;
9742          esac~
9743          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9744            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9745            $RM "$lt_outputfile.manifest";
9746          fi'
9747	;;
9748      *)
9749	# Assume MSVC wrapper
9750	hardcode_libdir_flag_spec=' '
9751	allow_undefined_flag=unsupported
9752	# Tell ltmain to make .lib files, not .a files.
9753	libext=lib
9754	# Tell ltmain to make .dll files, not .so files.
9755	shrext_cmds=.dll
9756	# FIXME: Setting linknames here is a bad hack.
9757	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9758	# The linker will automatically build a .lib file if we build a DLL.
9759	old_archive_from_new_cmds='true'
9760	# FIXME: Should let the user specify the lib program.
9761	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9762	enable_shared_with_static_runtimes=yes
9763	;;
9764      esac
9765      ;;
9766
9767    darwin* | rhapsody*)
9768
9769
9770  archive_cmds_need_lc=no
9771  hardcode_direct=no
9772  hardcode_automatic=yes
9773  hardcode_shlibpath_var=unsupported
9774  if test yes = "$lt_cv_ld_force_load"; then
9775    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\"`'
9776
9777  else
9778    whole_archive_flag_spec=''
9779  fi
9780  link_all_deplibs=yes
9781  allow_undefined_flag=$_lt_dar_allow_undefined
9782  case $cc_basename in
9783     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9784     *) _lt_dar_can_shared=$GCC ;;
9785  esac
9786  if test yes = "$_lt_dar_can_shared"; then
9787    output_verbose_link_cmd=func_echo_all
9788    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9789    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9790    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"
9791    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"
9792
9793  else
9794  ld_shlibs=no
9795  fi
9796
9797      ;;
9798
9799    dgux*)
9800      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801      hardcode_libdir_flag_spec='-L$libdir'
9802      hardcode_shlibpath_var=no
9803      ;;
9804
9805    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9806    # support.  Future versions do this automatically, but an explicit c++rt0.o
9807    # does not break anything, and helps significantly (at the cost of a little
9808    # extra space).
9809    freebsd2.2*)
9810      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9811      hardcode_libdir_flag_spec='-R$libdir'
9812      hardcode_direct=yes
9813      hardcode_shlibpath_var=no
9814      ;;
9815
9816    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9817    freebsd2.*)
9818      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9819      hardcode_direct=yes
9820      hardcode_minus_L=yes
9821      hardcode_shlibpath_var=no
9822      ;;
9823
9824    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9825    freebsd* | dragonfly*)
9826      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9827      hardcode_libdir_flag_spec='-R$libdir'
9828      hardcode_direct=yes
9829      hardcode_shlibpath_var=no
9830      ;;
9831
9832    hpux9*)
9833      if test yes = "$GCC"; then
9834	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'
9835      else
9836	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'
9837      fi
9838      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9839      hardcode_libdir_separator=:
9840      hardcode_direct=yes
9841
9842      # hardcode_minus_L: Not really in the search PATH,
9843      # but as the default location of the library.
9844      hardcode_minus_L=yes
9845      export_dynamic_flag_spec='$wl-E'
9846      ;;
9847
9848    hpux10*)
9849      if test yes,no = "$GCC,$with_gnu_ld"; then
9850	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851      else
9852	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9853      fi
9854      if test no = "$with_gnu_ld"; then
9855	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9856	hardcode_libdir_separator=:
9857	hardcode_direct=yes
9858	hardcode_direct_absolute=yes
9859	export_dynamic_flag_spec='$wl-E'
9860	# hardcode_minus_L: Not really in the search PATH,
9861	# but as the default location of the library.
9862	hardcode_minus_L=yes
9863      fi
9864      ;;
9865
9866    hpux11*)
9867      if test yes,no = "$GCC,$with_gnu_ld"; then
9868	case $host_cpu in
9869	hppa*64*)
9870	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9871	  ;;
9872	ia64*)
9873	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9874	  ;;
9875	*)
9876	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9877	  ;;
9878	esac
9879      else
9880	case $host_cpu in
9881	hppa*64*)
9882	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9883	  ;;
9884	ia64*)
9885	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9886	  ;;
9887	*)
9888
9889	  # Older versions of the 11.00 compiler do not understand -b yet
9890	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9891	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9892$as_echo_n "checking if $CC understands -b... " >&6; }
9893if ${lt_cv_prog_compiler__b+:} false; then :
9894  $as_echo_n "(cached) " >&6
9895else
9896  lt_cv_prog_compiler__b=no
9897   save_LDFLAGS=$LDFLAGS
9898   LDFLAGS="$LDFLAGS -b"
9899   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9900   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9901     # The linker can only warn and ignore the option if not recognized
9902     # So say no if there are warnings
9903     if test -s conftest.err; then
9904       # Append any errors to the config.log.
9905       cat conftest.err 1>&5
9906       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9907       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9908       if diff conftest.exp conftest.er2 >/dev/null; then
9909         lt_cv_prog_compiler__b=yes
9910       fi
9911     else
9912       lt_cv_prog_compiler__b=yes
9913     fi
9914   fi
9915   $RM -r conftest*
9916   LDFLAGS=$save_LDFLAGS
9917
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9920$as_echo "$lt_cv_prog_compiler__b" >&6; }
9921
9922if test yes = "$lt_cv_prog_compiler__b"; then
9923    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9924else
9925    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9926fi
9927
9928	  ;;
9929	esac
9930      fi
9931      if test no = "$with_gnu_ld"; then
9932	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9933	hardcode_libdir_separator=:
9934
9935	case $host_cpu in
9936	hppa*64*|ia64*)
9937	  hardcode_direct=no
9938	  hardcode_shlibpath_var=no
9939	  ;;
9940	*)
9941	  hardcode_direct=yes
9942	  hardcode_direct_absolute=yes
9943	  export_dynamic_flag_spec='$wl-E'
9944
9945	  # hardcode_minus_L: Not really in the search PATH,
9946	  # but as the default location of the library.
9947	  hardcode_minus_L=yes
9948	  ;;
9949	esac
9950      fi
9951      ;;
9952
9953    irix5* | irix6* | nonstopux*)
9954      if test yes = "$GCC"; then
9955	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'
9956	# Try to use the -exported_symbol ld option, if it does not
9957	# work, assume that -exports_file does not work either and
9958	# implicitly export all symbols.
9959	# This should be the same for all languages, so no per-tag cache variable.
9960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9961$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9962if ${lt_cv_irix_exported_symbol+:} false; then :
9963  $as_echo_n "(cached) " >&6
9964else
9965  save_LDFLAGS=$LDFLAGS
9966	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9967	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int foo (void) { return 0; }
9970_ACEOF
9971if ac_fn_c_try_link "$LINENO"; then :
9972  lt_cv_irix_exported_symbol=yes
9973else
9974  lt_cv_irix_exported_symbol=no
9975fi
9976rm -f core conftest.err conftest.$ac_objext \
9977    conftest$ac_exeext conftest.$ac_ext
9978           LDFLAGS=$save_LDFLAGS
9979fi
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9981$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9982	if test yes = "$lt_cv_irix_exported_symbol"; then
9983          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'
9984	fi
9985      else
9986	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'
9987	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'
9988      fi
9989      archive_cmds_need_lc='no'
9990      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9991      hardcode_libdir_separator=:
9992      inherit_rpath=yes
9993      link_all_deplibs=yes
9994      ;;
9995
9996    linux*)
9997      case $cc_basename in
9998      tcc*)
9999	# Fabrice Bellard et al's Tiny C Compiler
10000	ld_shlibs=yes
10001	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10002	;;
10003      esac
10004      ;;
10005
10006    netbsd*)
10007      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10008	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10009      else
10010	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10011      fi
10012      hardcode_libdir_flag_spec='-R$libdir'
10013      hardcode_direct=yes
10014      hardcode_shlibpath_var=no
10015      ;;
10016
10017    newsos6)
10018      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019      hardcode_direct=yes
10020      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10021      hardcode_libdir_separator=:
10022      hardcode_shlibpath_var=no
10023      ;;
10024
10025    *nto* | *qnx*)
10026      ;;
10027
10028    openbsd* | bitrig*)
10029      if test -f /usr/libexec/ld.so; then
10030	hardcode_direct=yes
10031	hardcode_shlibpath_var=no
10032	hardcode_direct_absolute=yes
10033	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10034	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10035	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10036	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10037	  export_dynamic_flag_spec='$wl-E'
10038	else
10039	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10040	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10041	fi
10042      else
10043	ld_shlibs=no
10044      fi
10045      ;;
10046
10047    os2*)
10048      hardcode_libdir_flag_spec='-L$libdir'
10049      hardcode_minus_L=yes
10050      allow_undefined_flag=unsupported
10051      shrext_cmds=.dll
10052      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10053	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10054	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10055	$ECHO EXPORTS >> $output_objdir/$libname.def~
10056	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10057	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10058	emximp -o $lib $output_objdir/$libname.def'
10059      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10060	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10061	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10062	$ECHO EXPORTS >> $output_objdir/$libname.def~
10063	prefix_cmds="$SED"~
10064	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10065	  prefix_cmds="$prefix_cmds -e 1d";
10066	fi~
10067	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10068	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10069	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10070	emximp -o $lib $output_objdir/$libname.def'
10071      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10072      enable_shared_with_static_runtimes=yes
10073      ;;
10074
10075    osf3*)
10076      if test yes = "$GCC"; then
10077	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10078	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'
10079      else
10080	allow_undefined_flag=' -expect_unresolved \*'
10081	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'
10082      fi
10083      archive_cmds_need_lc='no'
10084      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10085      hardcode_libdir_separator=:
10086      ;;
10087
10088    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10089      if test yes = "$GCC"; then
10090	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10091	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'
10092	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10093      else
10094	allow_undefined_flag=' -expect_unresolved \*'
10095	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'
10096	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~
10097          $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'
10098
10099	# Both c and cxx compiler support -rpath directly
10100	hardcode_libdir_flag_spec='-rpath $libdir'
10101      fi
10102      archive_cmds_need_lc='no'
10103      hardcode_libdir_separator=:
10104      ;;
10105
10106    solaris*)
10107      no_undefined_flag=' -z defs'
10108      if test yes = "$GCC"; then
10109	wlarc='$wl'
10110	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10111	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10112          $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'
10113      else
10114	case `$CC -V 2>&1` in
10115	*"Compilers 5.0"*)
10116	  wlarc=''
10117	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10119            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10120	  ;;
10121	*)
10122	  wlarc='$wl'
10123	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10124	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10125            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10126	  ;;
10127	esac
10128      fi
10129      hardcode_libdir_flag_spec='-R$libdir'
10130      hardcode_shlibpath_var=no
10131      case $host_os in
10132      solaris2.[0-5] | solaris2.[0-5].*) ;;
10133      *)
10134	# The compiler driver will combine and reorder linker options,
10135	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10136	# but is careful enough not to reorder.
10137	# Supported since Solaris 2.6 (maybe 2.5.1?)
10138	if test yes = "$GCC"; then
10139	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10140	else
10141	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10142	fi
10143	;;
10144      esac
10145      link_all_deplibs=yes
10146      ;;
10147
10148    sunos4*)
10149      if test sequent = "$host_vendor"; then
10150	# Use $CC to link under sequent, because it throws in some extra .o
10151	# files that make .init and .fini sections work.
10152	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10153      else
10154	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10155      fi
10156      hardcode_libdir_flag_spec='-L$libdir'
10157      hardcode_direct=yes
10158      hardcode_minus_L=yes
10159      hardcode_shlibpath_var=no
10160      ;;
10161
10162    sysv4)
10163      case $host_vendor in
10164	sni)
10165	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166	  hardcode_direct=yes # is this really true???
10167	;;
10168	siemens)
10169	  ## LD is ld it makes a PLAMLIB
10170	  ## CC just makes a GrossModule.
10171	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10172	  reload_cmds='$CC -r -o $output$reload_objs'
10173	  hardcode_direct=no
10174        ;;
10175	motorola)
10176	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10178	;;
10179      esac
10180      runpath_var='LD_RUN_PATH'
10181      hardcode_shlibpath_var=no
10182      ;;
10183
10184    sysv4.3*)
10185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186      hardcode_shlibpath_var=no
10187      export_dynamic_flag_spec='-Bexport'
10188      ;;
10189
10190    sysv4*MP*)
10191      if test -d /usr/nec; then
10192	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193	hardcode_shlibpath_var=no
10194	runpath_var=LD_RUN_PATH
10195	hardcode_runpath_var=yes
10196	ld_shlibs=yes
10197      fi
10198      ;;
10199
10200    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10201      no_undefined_flag='$wl-z,text'
10202      archive_cmds_need_lc=no
10203      hardcode_shlibpath_var=no
10204      runpath_var='LD_RUN_PATH'
10205
10206      if test yes = "$GCC"; then
10207	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209      else
10210	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212      fi
10213      ;;
10214
10215    sysv5* | sco3.2v5* | sco5v6*)
10216      # Note: We CANNOT use -z defs as we might desire, because we do not
10217      # link with -lc, and that would cause any symbols used from libc to
10218      # always be unresolved, which means just about no library would
10219      # ever link correctly.  If we're not using GNU ld we use -z text
10220      # though, which does catch some bad symbols but isn't as heavy-handed
10221      # as -z defs.
10222      no_undefined_flag='$wl-z,text'
10223      allow_undefined_flag='$wl-z,nodefs'
10224      archive_cmds_need_lc=no
10225      hardcode_shlibpath_var=no
10226      hardcode_libdir_flag_spec='$wl-R,$libdir'
10227      hardcode_libdir_separator=':'
10228      link_all_deplibs=yes
10229      export_dynamic_flag_spec='$wl-Bexport'
10230      runpath_var='LD_RUN_PATH'
10231
10232      if test yes = "$GCC"; then
10233	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235      else
10236	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238      fi
10239      ;;
10240
10241    uts4*)
10242      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243      hardcode_libdir_flag_spec='-L$libdir'
10244      hardcode_shlibpath_var=no
10245      ;;
10246
10247    *)
10248      ld_shlibs=no
10249      ;;
10250    esac
10251
10252    if test sni = "$host_vendor"; then
10253      case $host in
10254      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10255	export_dynamic_flag_spec='$wl-Blargedynsym'
10256	;;
10257      esac
10258    fi
10259  fi
10260
10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10262$as_echo "$ld_shlibs" >&6; }
10263test no = "$ld_shlibs" && can_build_shared=no
10264
10265with_gnu_ld=$with_gnu_ld
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281#
10282# Do we need to explicitly link libc?
10283#
10284case "x$archive_cmds_need_lc" in
10285x|xyes)
10286  # Assume -lc should be added
10287  archive_cmds_need_lc=yes
10288
10289  if test yes,yes = "$GCC,$enable_shared"; then
10290    case $archive_cmds in
10291    *'~'*)
10292      # FIXME: we may have to deal with multi-command sequences.
10293      ;;
10294    '$CC '*)
10295      # Test whether the compiler implicitly links with -lc since on some
10296      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10297      # to ld, don't add -lc before -lgcc.
10298      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10299$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10300if ${lt_cv_archive_cmds_need_lc+:} false; then :
10301  $as_echo_n "(cached) " >&6
10302else
10303  $RM conftest*
10304	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305
10306	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10307  (eval $ac_compile) 2>&5
10308  ac_status=$?
10309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310  test $ac_status = 0; } 2>conftest.err; then
10311	  soname=conftest
10312	  lib=conftest
10313	  libobjs=conftest.$ac_objext
10314	  deplibs=
10315	  wl=$lt_prog_compiler_wl
10316	  pic_flag=$lt_prog_compiler_pic
10317	  compiler_flags=-v
10318	  linker_flags=-v
10319	  verstring=
10320	  output_objdir=.
10321	  libname=conftest
10322	  lt_save_allow_undefined_flag=$allow_undefined_flag
10323	  allow_undefined_flag=
10324	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10325  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10326  ac_status=$?
10327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10328  test $ac_status = 0; }
10329	  then
10330	    lt_cv_archive_cmds_need_lc=no
10331	  else
10332	    lt_cv_archive_cmds_need_lc=yes
10333	  fi
10334	  allow_undefined_flag=$lt_save_allow_undefined_flag
10335	else
10336	  cat conftest.err 1>&5
10337	fi
10338	$RM conftest*
10339
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10342$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10343      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10344      ;;
10345    esac
10346  fi
10347  ;;
10348esac
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10502$as_echo_n "checking dynamic linker characteristics... " >&6; }
10503
10504if test yes = "$GCC"; then
10505  case $host_os in
10506    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10507    *) lt_awk_arg='/^libraries:/' ;;
10508  esac
10509  case $host_os in
10510    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10511    *) lt_sed_strip_eq='s|=/|/|g' ;;
10512  esac
10513  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10514  case $lt_search_path_spec in
10515  *\;*)
10516    # if the path contains ";" then we assume it to be the separator
10517    # otherwise default to the standard path separator (i.e. ":") - it is
10518    # assumed that no part of a normal pathname contains ";" but that should
10519    # okay in the real world where ";" in dirpaths is itself problematic.
10520    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10521    ;;
10522  *)
10523    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10524    ;;
10525  esac
10526  # Ok, now we have the path, separated by spaces, we can step through it
10527  # and add multilib dir if necessary...
10528  lt_tmp_lt_search_path_spec=
10529  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10530  # ...but if some path component already ends with the multilib dir we assume
10531  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10532  case "$lt_multi_os_dir; $lt_search_path_spec " in
10533  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10534    lt_multi_os_dir=
10535    ;;
10536  esac
10537  for lt_sys_path in $lt_search_path_spec; do
10538    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10539      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10540    elif test -n "$lt_multi_os_dir"; then
10541      test -d "$lt_sys_path" && \
10542	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10543    fi
10544  done
10545  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10546BEGIN {RS = " "; FS = "/|\n";} {
10547  lt_foo = "";
10548  lt_count = 0;
10549  for (lt_i = NF; lt_i > 0; lt_i--) {
10550    if ($lt_i != "" && $lt_i != ".") {
10551      if ($lt_i == "..") {
10552        lt_count++;
10553      } else {
10554        if (lt_count == 0) {
10555          lt_foo = "/" $lt_i lt_foo;
10556        } else {
10557          lt_count--;
10558        }
10559      }
10560    }
10561  }
10562  if (lt_foo != "") { lt_freq[lt_foo]++; }
10563  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10564}'`
10565  # AWK program above erroneously prepends '/' to C:/dos/paths
10566  # for these hosts.
10567  case $host_os in
10568    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10569      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10570  esac
10571  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10572else
10573  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10574fi
10575library_names_spec=
10576libname_spec='lib$name'
10577soname_spec=
10578shrext_cmds=.so
10579postinstall_cmds=
10580postuninstall_cmds=
10581finish_cmds=
10582finish_eval=
10583shlibpath_var=
10584shlibpath_overrides_runpath=unknown
10585version_type=none
10586dynamic_linker="$host_os ld.so"
10587sys_lib_dlsearch_path_spec="/lib /usr/lib"
10588need_lib_prefix=unknown
10589hardcode_into_libs=no
10590
10591# when you set need_version to no, make sure it does not cause -set_version
10592# flags to be left without arguments
10593need_version=unknown
10594
10595
10596
10597case $host_os in
10598aix3*)
10599  version_type=linux # correct to gnu/linux during the next big refactor
10600  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10601  shlibpath_var=LIBPATH
10602
10603  # AIX 3 has no versioning support, so we append a major version to the name.
10604  soname_spec='$libname$release$shared_ext$major'
10605  ;;
10606
10607aix[4-9]*)
10608  version_type=linux # correct to gnu/linux during the next big refactor
10609  need_lib_prefix=no
10610  need_version=no
10611  hardcode_into_libs=yes
10612  if test ia64 = "$host_cpu"; then
10613    # AIX 5 supports IA64
10614    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10615    shlibpath_var=LD_LIBRARY_PATH
10616  else
10617    # With GCC up to 2.95.x, collect2 would create an import file
10618    # for dependence libraries.  The import file would start with
10619    # the line '#! .'.  This would cause the generated library to
10620    # depend on '.', always an invalid library.  This was fixed in
10621    # development snapshots of GCC prior to 3.0.
10622    case $host_os in
10623      aix4 | aix4.[01] | aix4.[01].*)
10624      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10625	   echo ' yes '
10626	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10627	:
10628      else
10629	can_build_shared=no
10630      fi
10631      ;;
10632    esac
10633    # Using Import Files as archive members, it is possible to support
10634    # filename-based versioning of shared library archives on AIX. While
10635    # this would work for both with and without runtime linking, it will
10636    # prevent static linking of such archives. So we do filename-based
10637    # shared library versioning with .so extension only, which is used
10638    # when both runtime linking and shared linking is enabled.
10639    # Unfortunately, runtime linking may impact performance, so we do
10640    # not want this to be the default eventually. Also, we use the
10641    # versioned .so libs for executables only if there is the -brtl
10642    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10643    # To allow for filename-based versioning support, we need to create
10644    # libNAME.so.V as an archive file, containing:
10645    # *) an Import File, referring to the versioned filename of the
10646    #    archive as well as the shared archive member, telling the
10647    #    bitwidth (32 or 64) of that shared object, and providing the
10648    #    list of exported symbols of that shared object, eventually
10649    #    decorated with the 'weak' keyword
10650    # *) the shared object with the F_LOADONLY flag set, to really avoid
10651    #    it being seen by the linker.
10652    # At run time we better use the real file rather than another symlink,
10653    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10654
10655    case $with_aix_soname,$aix_use_runtimelinking in
10656    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10657    # soname into executable. Probably we can add versioning support to
10658    # collect2, so additional links can be useful in future.
10659    aix,yes) # traditional libtool
10660      dynamic_linker='AIX unversionable lib.so'
10661      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10662      # instead of lib<name>.a to let people know that these are not
10663      # typical AIX shared libraries.
10664      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10665      ;;
10666    aix,no) # traditional AIX only
10667      dynamic_linker='AIX lib.a(lib.so.V)'
10668      # We preserve .a as extension for shared libraries through AIX4.2
10669      # and later when we are not doing run time linking.
10670      library_names_spec='$libname$release.a $libname.a'
10671      soname_spec='$libname$release$shared_ext$major'
10672      ;;
10673    svr4,*) # full svr4 only
10674      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10675      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10676      # We do not specify a path in Import Files, so LIBPATH fires.
10677      shlibpath_overrides_runpath=yes
10678      ;;
10679    *,yes) # both, prefer svr4
10680      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10681      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10682      # unpreferred sharedlib libNAME.a needs extra handling
10683      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"'
10684      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"'
10685      # We do not specify a path in Import Files, so LIBPATH fires.
10686      shlibpath_overrides_runpath=yes
10687      ;;
10688    *,no) # both, prefer aix
10689      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10690      library_names_spec='$libname$release.a $libname.a'
10691      soname_spec='$libname$release$shared_ext$major'
10692      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10693      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)'
10694      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"'
10695      ;;
10696    esac
10697    shlibpath_var=LIBPATH
10698  fi
10699  ;;
10700
10701amigaos*)
10702  case $host_cpu in
10703  powerpc)
10704    # Since July 2007 AmigaOS4 officially supports .so libraries.
10705    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10706    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10707    ;;
10708  m68k)
10709    library_names_spec='$libname.ixlibrary $libname.a'
10710    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10711    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'
10712    ;;
10713  esac
10714  ;;
10715
10716beos*)
10717  library_names_spec='$libname$shared_ext'
10718  dynamic_linker="$host_os ld.so"
10719  shlibpath_var=LIBRARY_PATH
10720  ;;
10721
10722bsdi[45]*)
10723  version_type=linux # correct to gnu/linux during the next big refactor
10724  need_version=no
10725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10726  soname_spec='$libname$release$shared_ext$major'
10727  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10728  shlibpath_var=LD_LIBRARY_PATH
10729  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10730  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10731  # the default ld.so.conf also contains /usr/contrib/lib and
10732  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10733  # libtool to hard-code these into programs
10734  ;;
10735
10736cygwin* | mingw* | pw32* | cegcc*)
10737  version_type=windows
10738  shrext_cmds=.dll
10739  need_version=no
10740  need_lib_prefix=no
10741
10742  case $GCC,$cc_basename in
10743  yes,*)
10744    # gcc
10745    library_names_spec='$libname.dll.a'
10746    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10747    postinstall_cmds='base_file=`basename \$file`~
10748      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10749      dldir=$destdir/`dirname \$dlpath`~
10750      test -d \$dldir || mkdir -p \$dldir~
10751      $install_prog $dir/$dlname \$dldir/$dlname~
10752      chmod a+x \$dldir/$dlname~
10753      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10754        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10755      fi'
10756    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10757      dlpath=$dir/\$dldll~
10758       $RM \$dlpath'
10759    shlibpath_overrides_runpath=yes
10760
10761    case $host_os in
10762    cygwin*)
10763      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10764      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10765
10766      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10767      ;;
10768    mingw* | cegcc*)
10769      # MinGW DLLs use traditional 'lib' prefix
10770      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10771      ;;
10772    pw32*)
10773      # pw32 DLLs use 'pw' prefix rather than 'lib'
10774      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10775      ;;
10776    esac
10777    dynamic_linker='Win32 ld.exe'
10778    ;;
10779
10780  *,cl*)
10781    # Native MSVC
10782    libname_spec='$name'
10783    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10784    library_names_spec='$libname.dll.lib'
10785
10786    case $build_os in
10787    mingw*)
10788      sys_lib_search_path_spec=
10789      lt_save_ifs=$IFS
10790      IFS=';'
10791      for lt_path in $LIB
10792      do
10793        IFS=$lt_save_ifs
10794        # Let DOS variable expansion print the short 8.3 style file name.
10795        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10796        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10797      done
10798      IFS=$lt_save_ifs
10799      # Convert to MSYS style.
10800      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10801      ;;
10802    cygwin*)
10803      # Convert to unix form, then to dos form, then back to unix form
10804      # but this time dos style (no spaces!) so that the unix form looks
10805      # like /cygdrive/c/PROGRA~1:/cygdr...
10806      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10807      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10808      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10809      ;;
10810    *)
10811      sys_lib_search_path_spec=$LIB
10812      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10813        # It is most probably a Windows format PATH.
10814        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10815      else
10816        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10817      fi
10818      # FIXME: find the short name or the path components, as spaces are
10819      # common. (e.g. "Program Files" -> "PROGRA~1")
10820      ;;
10821    esac
10822
10823    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10824    postinstall_cmds='base_file=`basename \$file`~
10825      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10826      dldir=$destdir/`dirname \$dlpath`~
10827      test -d \$dldir || mkdir -p \$dldir~
10828      $install_prog $dir/$dlname \$dldir/$dlname'
10829    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10830      dlpath=$dir/\$dldll~
10831       $RM \$dlpath'
10832    shlibpath_overrides_runpath=yes
10833    dynamic_linker='Win32 link.exe'
10834    ;;
10835
10836  *)
10837    # Assume MSVC wrapper
10838    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10839    dynamic_linker='Win32 ld.exe'
10840    ;;
10841  esac
10842  # FIXME: first we should search . and the directory the executable is in
10843  shlibpath_var=PATH
10844  ;;
10845
10846darwin* | rhapsody*)
10847  dynamic_linker="$host_os dyld"
10848  version_type=darwin
10849  need_lib_prefix=no
10850  need_version=no
10851  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10852  soname_spec='$libname$release$major$shared_ext'
10853  shlibpath_overrides_runpath=yes
10854  shlibpath_var=DYLD_LIBRARY_PATH
10855  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10856
10857  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10858  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10859  ;;
10860
10861dgux*)
10862  version_type=linux # correct to gnu/linux during the next big refactor
10863  need_lib_prefix=no
10864  need_version=no
10865  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10866  soname_spec='$libname$release$shared_ext$major'
10867  shlibpath_var=LD_LIBRARY_PATH
10868  ;;
10869
10870freebsd* | dragonfly*)
10871  # DragonFly does not have aout.  When/if they implement a new
10872  # versioning mechanism, adjust this.
10873  if test -x /usr/bin/objformat; then
10874    objformat=`/usr/bin/objformat`
10875  else
10876    case $host_os in
10877    freebsd[23].*) objformat=aout ;;
10878    *) objformat=elf ;;
10879    esac
10880  fi
10881  version_type=freebsd-$objformat
10882  case $version_type in
10883    freebsd-elf*)
10884      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885      soname_spec='$libname$release$shared_ext$major'
10886      need_version=no
10887      need_lib_prefix=no
10888      ;;
10889    freebsd-*)
10890      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10891      need_version=yes
10892      ;;
10893  esac
10894  shlibpath_var=LD_LIBRARY_PATH
10895  case $host_os in
10896  freebsd2.*)
10897    shlibpath_overrides_runpath=yes
10898    ;;
10899  freebsd3.[01]* | freebsdelf3.[01]*)
10900    shlibpath_overrides_runpath=yes
10901    hardcode_into_libs=yes
10902    ;;
10903  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10904  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10905    shlibpath_overrides_runpath=no
10906    hardcode_into_libs=yes
10907    ;;
10908  *) # from 4.6 on, and DragonFly
10909    shlibpath_overrides_runpath=yes
10910    hardcode_into_libs=yes
10911    ;;
10912  esac
10913  ;;
10914
10915haiku*)
10916  version_type=linux # correct to gnu/linux during the next big refactor
10917  need_lib_prefix=no
10918  need_version=no
10919  dynamic_linker="$host_os runtime_loader"
10920  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10921  soname_spec='$libname$release$shared_ext$major'
10922  shlibpath_var=LIBRARY_PATH
10923  shlibpath_overrides_runpath=no
10924  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10925  hardcode_into_libs=yes
10926  ;;
10927
10928hpux9* | hpux10* | hpux11*)
10929  # Give a soname corresponding to the major version so that dld.sl refuses to
10930  # link against other versions.
10931  version_type=sunos
10932  need_lib_prefix=no
10933  need_version=no
10934  case $host_cpu in
10935  ia64*)
10936    shrext_cmds='.so'
10937    hardcode_into_libs=yes
10938    dynamic_linker="$host_os dld.so"
10939    shlibpath_var=LD_LIBRARY_PATH
10940    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942    soname_spec='$libname$release$shared_ext$major'
10943    if test 32 = "$HPUX_IA64_MODE"; then
10944      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10946    else
10947      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10948      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10949    fi
10950    ;;
10951  hppa*64*)
10952    shrext_cmds='.sl'
10953    hardcode_into_libs=yes
10954    dynamic_linker="$host_os dld.sl"
10955    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10958    soname_spec='$libname$release$shared_ext$major'
10959    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961    ;;
10962  *)
10963    shrext_cmds='.sl'
10964    dynamic_linker="$host_os dld.sl"
10965    shlibpath_var=SHLIB_PATH
10966    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10967    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10968    soname_spec='$libname$release$shared_ext$major'
10969    ;;
10970  esac
10971  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10972  postinstall_cmds='chmod 555 $lib'
10973  # or fails outright, so override atomically:
10974  install_override_mode=555
10975  ;;
10976
10977interix[3-9]*)
10978  version_type=linux # correct to gnu/linux during the next big refactor
10979  need_lib_prefix=no
10980  need_version=no
10981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10982  soname_spec='$libname$release$shared_ext$major'
10983  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984  shlibpath_var=LD_LIBRARY_PATH
10985  shlibpath_overrides_runpath=no
10986  hardcode_into_libs=yes
10987  ;;
10988
10989irix5* | irix6* | nonstopux*)
10990  case $host_os in
10991    nonstopux*) version_type=nonstopux ;;
10992    *)
10993	if test yes = "$lt_cv_prog_gnu_ld"; then
10994		version_type=linux # correct to gnu/linux during the next big refactor
10995	else
10996		version_type=irix
10997	fi ;;
10998  esac
10999  need_lib_prefix=no
11000  need_version=no
11001  soname_spec='$libname$release$shared_ext$major'
11002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11003  case $host_os in
11004  irix5* | nonstopux*)
11005    libsuff= shlibsuff=
11006    ;;
11007  *)
11008    case $LD in # libtool.m4 will add one of these switches to LD
11009    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010      libsuff= shlibsuff= libmagic=32-bit;;
11011    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012      libsuff=32 shlibsuff=N32 libmagic=N32;;
11013    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015    *) libsuff= shlibsuff= libmagic=never-match;;
11016    esac
11017    ;;
11018  esac
11019  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020  shlibpath_overrides_runpath=no
11021  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11022  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11023  hardcode_into_libs=yes
11024  ;;
11025
11026# No shared lib support for Linux oldld, aout, or coff.
11027linux*oldld* | linux*aout* | linux*coff*)
11028  dynamic_linker=no
11029  ;;
11030
11031linux*android*)
11032  version_type=none # Android doesn't support versioned libraries.
11033  need_lib_prefix=no
11034  need_version=no
11035  library_names_spec='$libname$release$shared_ext'
11036  soname_spec='$libname$release$shared_ext'
11037  finish_cmds=
11038  shlibpath_var=LD_LIBRARY_PATH
11039  shlibpath_overrides_runpath=yes
11040
11041  # This implies no fast_install, which is unacceptable.
11042  # Some rework will be needed to allow for fast_install
11043  # before this can be enabled.
11044  hardcode_into_libs=yes
11045
11046  dynamic_linker='Android linker'
11047  # Don't embed -rpath directories since the linker doesn't support them.
11048  hardcode_libdir_flag_spec='-L$libdir'
11049  ;;
11050
11051# This must be glibc/ELF.
11052linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11053  version_type=linux # correct to gnu/linux during the next big refactor
11054  need_lib_prefix=no
11055  need_version=no
11056  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11057  soname_spec='$libname$release$shared_ext$major'
11058  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059  shlibpath_var=LD_LIBRARY_PATH
11060  shlibpath_overrides_runpath=no
11061
11062  # Some binutils ld are patched to set DT_RUNPATH
11063  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11064  $as_echo_n "(cached) " >&6
11065else
11066  lt_cv_shlibpath_overrides_runpath=no
11067    save_LDFLAGS=$LDFLAGS
11068    save_libdir=$libdir
11069    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11070	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h.  */
11073
11074int
11075main ()
11076{
11077
11078  ;
11079  return 0;
11080}
11081_ACEOF
11082if ac_fn_c_try_link "$LINENO"; then :
11083  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11084  lt_cv_shlibpath_overrides_runpath=yes
11085fi
11086fi
11087rm -f core conftest.err conftest.$ac_objext \
11088    conftest$ac_exeext conftest.$ac_ext
11089    LDFLAGS=$save_LDFLAGS
11090    libdir=$save_libdir
11091
11092fi
11093
11094  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11095
11096  # This implies no fast_install, which is unacceptable.
11097  # Some rework will be needed to allow for fast_install
11098  # before this can be enabled.
11099  hardcode_into_libs=yes
11100
11101  # Ideally, we could use ldconfig to report *all* directores which are
11102  # searched for libraries, however this is still not possible.  Aside from not
11103  # being certain /sbin/ldconfig is available, command
11104  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11105  # even though it is searched at run-time.  Try to do the best guess by
11106  # appending ld.so.conf contents (and includes) to the search path.
11107  if test -f /etc/ld.so.conf; then
11108    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' ' '`
11109    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11110  fi
11111
11112  # We used to test for /lib/ld.so.1 and disable shared libraries on
11113  # powerpc, because MkLinux only supported shared libraries with the
11114  # GNU dynamic linker.  Since this was broken with cross compilers,
11115  # most powerpc-linux boxes support dynamic linking these days and
11116  # people can always --disable-shared, the test was removed, and we
11117  # assume the GNU/Linux dynamic linker is in use.
11118  dynamic_linker='GNU/Linux ld.so'
11119  ;;
11120
11121netbsd*)
11122  version_type=sunos
11123  need_lib_prefix=no
11124  need_version=no
11125  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11126    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11127    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11128    dynamic_linker='NetBSD (a.out) ld.so'
11129  else
11130    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131    soname_spec='$libname$release$shared_ext$major'
11132    dynamic_linker='NetBSD ld.elf_so'
11133  fi
11134  shlibpath_var=LD_LIBRARY_PATH
11135  shlibpath_overrides_runpath=yes
11136  hardcode_into_libs=yes
11137  ;;
11138
11139newsos6)
11140  version_type=linux # correct to gnu/linux during the next big refactor
11141  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142  shlibpath_var=LD_LIBRARY_PATH
11143  shlibpath_overrides_runpath=yes
11144  ;;
11145
11146*nto* | *qnx*)
11147  version_type=qnx
11148  need_lib_prefix=no
11149  need_version=no
11150  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11151  soname_spec='$libname$release$shared_ext$major'
11152  shlibpath_var=LD_LIBRARY_PATH
11153  shlibpath_overrides_runpath=no
11154  hardcode_into_libs=yes
11155  dynamic_linker='ldqnx.so'
11156  ;;
11157
11158openbsd* | bitrig*)
11159  version_type=sunos
11160  sys_lib_dlsearch_path_spec=/usr/lib
11161  need_lib_prefix=no
11162  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11163    need_version=no
11164  else
11165    need_version=yes
11166  fi
11167  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11168  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11169  shlibpath_var=LD_LIBRARY_PATH
11170  shlibpath_overrides_runpath=yes
11171  ;;
11172
11173os2*)
11174  libname_spec='$name'
11175  version_type=windows
11176  shrext_cmds=.dll
11177  need_version=no
11178  need_lib_prefix=no
11179  # OS/2 can only load a DLL with a base name of 8 characters or less.
11180  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11181    v=$($ECHO $release$versuffix | tr -d .-);
11182    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11183    $ECHO $n$v`$shared_ext'
11184  library_names_spec='${libname}_dll.$libext'
11185  dynamic_linker='OS/2 ld.exe'
11186  shlibpath_var=BEGINLIBPATH
11187  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11188  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11189  postinstall_cmds='base_file=`basename \$file`~
11190    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11191    dldir=$destdir/`dirname \$dlpath`~
11192    test -d \$dldir || mkdir -p \$dldir~
11193    $install_prog $dir/$dlname \$dldir/$dlname~
11194    chmod a+x \$dldir/$dlname~
11195    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11196      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11197    fi'
11198  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11199    dlpath=$dir/\$dldll~
11200    $RM \$dlpath'
11201  ;;
11202
11203osf3* | osf4* | osf5*)
11204  version_type=osf
11205  need_lib_prefix=no
11206  need_version=no
11207  soname_spec='$libname$release$shared_ext$major'
11208  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11209  shlibpath_var=LD_LIBRARY_PATH
11210  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11211  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11212  ;;
11213
11214rdos*)
11215  dynamic_linker=no
11216  ;;
11217
11218solaris*)
11219  version_type=linux # correct to gnu/linux during the next big refactor
11220  need_lib_prefix=no
11221  need_version=no
11222  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11223  soname_spec='$libname$release$shared_ext$major'
11224  shlibpath_var=LD_LIBRARY_PATH
11225  shlibpath_overrides_runpath=yes
11226  hardcode_into_libs=yes
11227  # ldd complains unless libraries are executable
11228  postinstall_cmds='chmod +x $lib'
11229  ;;
11230
11231sunos4*)
11232  version_type=sunos
11233  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11234  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11235  shlibpath_var=LD_LIBRARY_PATH
11236  shlibpath_overrides_runpath=yes
11237  if test yes = "$with_gnu_ld"; then
11238    need_lib_prefix=no
11239  fi
11240  need_version=yes
11241  ;;
11242
11243sysv4 | sysv4.3*)
11244  version_type=linux # correct to gnu/linux during the next big refactor
11245  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246  soname_spec='$libname$release$shared_ext$major'
11247  shlibpath_var=LD_LIBRARY_PATH
11248  case $host_vendor in
11249    sni)
11250      shlibpath_overrides_runpath=no
11251      need_lib_prefix=no
11252      runpath_var=LD_RUN_PATH
11253      ;;
11254    siemens)
11255      need_lib_prefix=no
11256      ;;
11257    motorola)
11258      need_lib_prefix=no
11259      need_version=no
11260      shlibpath_overrides_runpath=no
11261      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11262      ;;
11263  esac
11264  ;;
11265
11266sysv4*MP*)
11267  if test -d /usr/nec; then
11268    version_type=linux # correct to gnu/linux during the next big refactor
11269    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11270    soname_spec='$libname$shared_ext.$major'
11271    shlibpath_var=LD_LIBRARY_PATH
11272  fi
11273  ;;
11274
11275sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11276  version_type=sco
11277  need_lib_prefix=no
11278  need_version=no
11279  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11280  soname_spec='$libname$release$shared_ext$major'
11281  shlibpath_var=LD_LIBRARY_PATH
11282  shlibpath_overrides_runpath=yes
11283  hardcode_into_libs=yes
11284  if test yes = "$with_gnu_ld"; then
11285    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11286  else
11287    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11288    case $host_os in
11289      sco3.2v5*)
11290        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11291	;;
11292    esac
11293  fi
11294  sys_lib_dlsearch_path_spec='/usr/lib'
11295  ;;
11296
11297tpf*)
11298  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11299  version_type=linux # correct to gnu/linux during the next big refactor
11300  need_lib_prefix=no
11301  need_version=no
11302  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11303  shlibpath_var=LD_LIBRARY_PATH
11304  shlibpath_overrides_runpath=no
11305  hardcode_into_libs=yes
11306  ;;
11307
11308uts4*)
11309  version_type=linux # correct to gnu/linux during the next big refactor
11310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311  soname_spec='$libname$release$shared_ext$major'
11312  shlibpath_var=LD_LIBRARY_PATH
11313  ;;
11314
11315*)
11316  dynamic_linker=no
11317  ;;
11318esac
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11320$as_echo "$dynamic_linker" >&6; }
11321test no = "$dynamic_linker" && can_build_shared=no
11322
11323variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11324if test yes = "$GCC"; then
11325  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11326fi
11327
11328if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11329  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11330fi
11331
11332if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11333  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11334fi
11335
11336# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11337configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11338
11339# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11340func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11341
11342# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11343configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11442$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11443hardcode_action=
11444if test -n "$hardcode_libdir_flag_spec" ||
11445   test -n "$runpath_var" ||
11446   test yes = "$hardcode_automatic"; then
11447
11448  # We can hardcode non-existent directories.
11449  if test no != "$hardcode_direct" &&
11450     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11451     # have to relink, otherwise we might link with an installed library
11452     # when we should be linking with a yet-to-be-installed one
11453     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11454     test no != "$hardcode_minus_L"; then
11455    # Linking always hardcodes the temporary library directory.
11456    hardcode_action=relink
11457  else
11458    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11459    hardcode_action=immediate
11460  fi
11461else
11462  # We cannot hardcode anything, or else we can only hardcode existing
11463  # directories.
11464  hardcode_action=unsupported
11465fi
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11467$as_echo "$hardcode_action" >&6; }
11468
11469if test relink = "$hardcode_action" ||
11470   test yes = "$inherit_rpath"; then
11471  # Fast installation is not supported
11472  enable_fast_install=no
11473elif test yes = "$shlibpath_overrides_runpath" ||
11474     test no = "$enable_shared"; then
11475  # Fast installation is not necessary
11476  enable_fast_install=needless
11477fi
11478
11479
11480
11481
11482
11483
11484  if test yes != "$enable_dlopen"; then
11485  enable_dlopen=unknown
11486  enable_dlopen_self=unknown
11487  enable_dlopen_self_static=unknown
11488else
11489  lt_cv_dlopen=no
11490  lt_cv_dlopen_libs=
11491
11492  case $host_os in
11493  beos*)
11494    lt_cv_dlopen=load_add_on
11495    lt_cv_dlopen_libs=
11496    lt_cv_dlopen_self=yes
11497    ;;
11498
11499  mingw* | pw32* | cegcc*)
11500    lt_cv_dlopen=LoadLibrary
11501    lt_cv_dlopen_libs=
11502    ;;
11503
11504  cygwin*)
11505    lt_cv_dlopen=dlopen
11506    lt_cv_dlopen_libs=
11507    ;;
11508
11509  darwin*)
11510    # if libdl is installed we need to link against it
11511    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11512$as_echo_n "checking for dlopen in -ldl... " >&6; }
11513if ${ac_cv_lib_dl_dlopen+:} false; then :
11514  $as_echo_n "(cached) " >&6
11515else
11516  ac_check_lib_save_LIBS=$LIBS
11517LIBS="-ldl  $LIBS"
11518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519/* end confdefs.h.  */
11520
11521/* Override any GCC internal prototype to avoid an error.
11522   Use char because int might match the return type of a GCC
11523   builtin and then its argument prototype would still apply.  */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char dlopen ();
11528int
11529main ()
11530{
11531return dlopen ();
11532  ;
11533  return 0;
11534}
11535_ACEOF
11536if ac_fn_c_try_link "$LINENO"; then :
11537  ac_cv_lib_dl_dlopen=yes
11538else
11539  ac_cv_lib_dl_dlopen=no
11540fi
11541rm -f core conftest.err conftest.$ac_objext \
11542    conftest$ac_exeext conftest.$ac_ext
11543LIBS=$ac_check_lib_save_LIBS
11544fi
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11546$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11547if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11548  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11549else
11550
11551    lt_cv_dlopen=dyld
11552    lt_cv_dlopen_libs=
11553    lt_cv_dlopen_self=yes
11554
11555fi
11556
11557    ;;
11558
11559  tpf*)
11560    # Don't try to run any link tests for TPF.  We know it's impossible
11561    # because TPF is a cross-compiler, and we know how we open DSOs.
11562    lt_cv_dlopen=dlopen
11563    lt_cv_dlopen_libs=
11564    lt_cv_dlopen_self=no
11565    ;;
11566
11567  *)
11568    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11569if test "x$ac_cv_func_shl_load" = xyes; then :
11570  lt_cv_dlopen=shl_load
11571else
11572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11573$as_echo_n "checking for shl_load in -ldld... " >&6; }
11574if ${ac_cv_lib_dld_shl_load+:} false; then :
11575  $as_echo_n "(cached) " >&6
11576else
11577  ac_check_lib_save_LIBS=$LIBS
11578LIBS="-ldld  $LIBS"
11579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580/* end confdefs.h.  */
11581
11582/* Override any GCC internal prototype to avoid an error.
11583   Use char because int might match the return type of a GCC
11584   builtin and then its argument prototype would still apply.  */
11585#ifdef __cplusplus
11586extern "C"
11587#endif
11588char shl_load ();
11589int
11590main ()
11591{
11592return shl_load ();
11593  ;
11594  return 0;
11595}
11596_ACEOF
11597if ac_fn_c_try_link "$LINENO"; then :
11598  ac_cv_lib_dld_shl_load=yes
11599else
11600  ac_cv_lib_dld_shl_load=no
11601fi
11602rm -f core conftest.err conftest.$ac_objext \
11603    conftest$ac_exeext conftest.$ac_ext
11604LIBS=$ac_check_lib_save_LIBS
11605fi
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11607$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11608if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11609  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11610else
11611  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11612if test "x$ac_cv_func_dlopen" = xyes; then :
11613  lt_cv_dlopen=dlopen
11614else
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11616$as_echo_n "checking for dlopen in -ldl... " >&6; }
11617if ${ac_cv_lib_dl_dlopen+:} false; then :
11618  $as_echo_n "(cached) " >&6
11619else
11620  ac_check_lib_save_LIBS=$LIBS
11621LIBS="-ldl  $LIBS"
11622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623/* end confdefs.h.  */
11624
11625/* Override any GCC internal prototype to avoid an error.
11626   Use char because int might match the return type of a GCC
11627   builtin and then its argument prototype would still apply.  */
11628#ifdef __cplusplus
11629extern "C"
11630#endif
11631char dlopen ();
11632int
11633main ()
11634{
11635return dlopen ();
11636  ;
11637  return 0;
11638}
11639_ACEOF
11640if ac_fn_c_try_link "$LINENO"; then :
11641  ac_cv_lib_dl_dlopen=yes
11642else
11643  ac_cv_lib_dl_dlopen=no
11644fi
11645rm -f core conftest.err conftest.$ac_objext \
11646    conftest$ac_exeext conftest.$ac_ext
11647LIBS=$ac_check_lib_save_LIBS
11648fi
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11651if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11652  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11653else
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11655$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11656if ${ac_cv_lib_svld_dlopen+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  ac_check_lib_save_LIBS=$LIBS
11660LIBS="-lsvld  $LIBS"
11661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662/* end confdefs.h.  */
11663
11664/* Override any GCC internal prototype to avoid an error.
11665   Use char because int might match the return type of a GCC
11666   builtin and then its argument prototype would still apply.  */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char dlopen ();
11671int
11672main ()
11673{
11674return dlopen ();
11675  ;
11676  return 0;
11677}
11678_ACEOF
11679if ac_fn_c_try_link "$LINENO"; then :
11680  ac_cv_lib_svld_dlopen=yes
11681else
11682  ac_cv_lib_svld_dlopen=no
11683fi
11684rm -f core conftest.err conftest.$ac_objext \
11685    conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11689$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11690if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11691  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11692else
11693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11694$as_echo_n "checking for dld_link in -ldld... " >&6; }
11695if ${ac_cv_lib_dld_dld_link+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  ac_check_lib_save_LIBS=$LIBS
11699LIBS="-ldld  $LIBS"
11700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701/* end confdefs.h.  */
11702
11703/* Override any GCC internal prototype to avoid an error.
11704   Use char because int might match the return type of a GCC
11705   builtin and then its argument prototype would still apply.  */
11706#ifdef __cplusplus
11707extern "C"
11708#endif
11709char dld_link ();
11710int
11711main ()
11712{
11713return dld_link ();
11714  ;
11715  return 0;
11716}
11717_ACEOF
11718if ac_fn_c_try_link "$LINENO"; then :
11719  ac_cv_lib_dld_dld_link=yes
11720else
11721  ac_cv_lib_dld_dld_link=no
11722fi
11723rm -f core conftest.err conftest.$ac_objext \
11724    conftest$ac_exeext conftest.$ac_ext
11725LIBS=$ac_check_lib_save_LIBS
11726fi
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11728$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11729if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11730  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11731fi
11732
11733
11734fi
11735
11736
11737fi
11738
11739
11740fi
11741
11742
11743fi
11744
11745
11746fi
11747
11748    ;;
11749  esac
11750
11751  if test no = "$lt_cv_dlopen"; then
11752    enable_dlopen=no
11753  else
11754    enable_dlopen=yes
11755  fi
11756
11757  case $lt_cv_dlopen in
11758  dlopen)
11759    save_CPPFLAGS=$CPPFLAGS
11760    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11761
11762    save_LDFLAGS=$LDFLAGS
11763    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11764
11765    save_LIBS=$LIBS
11766    LIBS="$lt_cv_dlopen_libs $LIBS"
11767
11768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11769$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11770if ${lt_cv_dlopen_self+:} false; then :
11771  $as_echo_n "(cached) " >&6
11772else
11773  	  if test yes = "$cross_compiling"; then :
11774  lt_cv_dlopen_self=cross
11775else
11776  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11777  lt_status=$lt_dlunknown
11778  cat > conftest.$ac_ext <<_LT_EOF
11779#line $LINENO "configure"
11780#include "confdefs.h"
11781
11782#if HAVE_DLFCN_H
11783#include <dlfcn.h>
11784#endif
11785
11786#include <stdio.h>
11787
11788#ifdef RTLD_GLOBAL
11789#  define LT_DLGLOBAL		RTLD_GLOBAL
11790#else
11791#  ifdef DL_GLOBAL
11792#    define LT_DLGLOBAL		DL_GLOBAL
11793#  else
11794#    define LT_DLGLOBAL		0
11795#  endif
11796#endif
11797
11798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11799   find out it does not work in some platform. */
11800#ifndef LT_DLLAZY_OR_NOW
11801#  ifdef RTLD_LAZY
11802#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11803#  else
11804#    ifdef DL_LAZY
11805#      define LT_DLLAZY_OR_NOW		DL_LAZY
11806#    else
11807#      ifdef RTLD_NOW
11808#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11809#      else
11810#        ifdef DL_NOW
11811#          define LT_DLLAZY_OR_NOW	DL_NOW
11812#        else
11813#          define LT_DLLAZY_OR_NOW	0
11814#        endif
11815#      endif
11816#    endif
11817#  endif
11818#endif
11819
11820/* When -fvisibility=hidden is used, assume the code has been annotated
11821   correspondingly for the symbols needed.  */
11822#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11823int fnord () __attribute__((visibility("default")));
11824#endif
11825
11826int fnord () { return 42; }
11827int main ()
11828{
11829  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11830  int status = $lt_dlunknown;
11831
11832  if (self)
11833    {
11834      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11835      else
11836        {
11837	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11838          else puts (dlerror ());
11839	}
11840      /* dlclose (self); */
11841    }
11842  else
11843    puts (dlerror ());
11844
11845  return status;
11846}
11847_LT_EOF
11848  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11849  (eval $ac_link) 2>&5
11850  ac_status=$?
11851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11852  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11853    (./conftest; exit; ) >&5 2>/dev/null
11854    lt_status=$?
11855    case x$lt_status in
11856      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11857      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11858      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11859    esac
11860  else :
11861    # compilation failed
11862    lt_cv_dlopen_self=no
11863  fi
11864fi
11865rm -fr conftest*
11866
11867
11868fi
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11870$as_echo "$lt_cv_dlopen_self" >&6; }
11871
11872    if test yes = "$lt_cv_dlopen_self"; then
11873      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11874      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11875$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11876if ${lt_cv_dlopen_self_static+:} false; then :
11877  $as_echo_n "(cached) " >&6
11878else
11879  	  if test yes = "$cross_compiling"; then :
11880  lt_cv_dlopen_self_static=cross
11881else
11882  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11883  lt_status=$lt_dlunknown
11884  cat > conftest.$ac_ext <<_LT_EOF
11885#line $LINENO "configure"
11886#include "confdefs.h"
11887
11888#if HAVE_DLFCN_H
11889#include <dlfcn.h>
11890#endif
11891
11892#include <stdio.h>
11893
11894#ifdef RTLD_GLOBAL
11895#  define LT_DLGLOBAL		RTLD_GLOBAL
11896#else
11897#  ifdef DL_GLOBAL
11898#    define LT_DLGLOBAL		DL_GLOBAL
11899#  else
11900#    define LT_DLGLOBAL		0
11901#  endif
11902#endif
11903
11904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11905   find out it does not work in some platform. */
11906#ifndef LT_DLLAZY_OR_NOW
11907#  ifdef RTLD_LAZY
11908#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11909#  else
11910#    ifdef DL_LAZY
11911#      define LT_DLLAZY_OR_NOW		DL_LAZY
11912#    else
11913#      ifdef RTLD_NOW
11914#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11915#      else
11916#        ifdef DL_NOW
11917#          define LT_DLLAZY_OR_NOW	DL_NOW
11918#        else
11919#          define LT_DLLAZY_OR_NOW	0
11920#        endif
11921#      endif
11922#    endif
11923#  endif
11924#endif
11925
11926/* When -fvisibility=hidden is used, assume the code has been annotated
11927   correspondingly for the symbols needed.  */
11928#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11929int fnord () __attribute__((visibility("default")));
11930#endif
11931
11932int fnord () { return 42; }
11933int main ()
11934{
11935  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11936  int status = $lt_dlunknown;
11937
11938  if (self)
11939    {
11940      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11941      else
11942        {
11943	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11944          else puts (dlerror ());
11945	}
11946      /* dlclose (self); */
11947    }
11948  else
11949    puts (dlerror ());
11950
11951  return status;
11952}
11953_LT_EOF
11954  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11955  (eval $ac_link) 2>&5
11956  ac_status=$?
11957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11959    (./conftest; exit; ) >&5 2>/dev/null
11960    lt_status=$?
11961    case x$lt_status in
11962      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11963      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11964      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11965    esac
11966  else :
11967    # compilation failed
11968    lt_cv_dlopen_self_static=no
11969  fi
11970fi
11971rm -fr conftest*
11972
11973
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11976$as_echo "$lt_cv_dlopen_self_static" >&6; }
11977    fi
11978
11979    CPPFLAGS=$save_CPPFLAGS
11980    LDFLAGS=$save_LDFLAGS
11981    LIBS=$save_LIBS
11982    ;;
11983  esac
11984
11985  case $lt_cv_dlopen_self in
11986  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11987  *) enable_dlopen_self=unknown ;;
11988  esac
11989
11990  case $lt_cv_dlopen_self_static in
11991  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11992  *) enable_dlopen_self_static=unknown ;;
11993  esac
11994fi
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012striplib=
12013old_striplib=
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12015$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12016if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12017  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12018  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12020$as_echo "yes" >&6; }
12021else
12022# FIXME - insert some real tests, host_os isn't really good enough
12023  case $host_os in
12024  darwin*)
12025    if test -n "$STRIP"; then
12026      striplib="$STRIP -x"
12027      old_striplib="$STRIP -S"
12028      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12029$as_echo "yes" >&6; }
12030    else
12031      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032$as_echo "no" >&6; }
12033    fi
12034    ;;
12035  *)
12036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037$as_echo "no" >&6; }
12038    ;;
12039  esac
12040fi
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053  # Report what library types will actually be built
12054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12055$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12057$as_echo "$can_build_shared" >&6; }
12058
12059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12060$as_echo_n "checking whether to build shared libraries... " >&6; }
12061  test no = "$can_build_shared" && enable_shared=no
12062
12063  # On AIX, shared libraries and static libraries use the same namespace, and
12064  # are all built from PIC.
12065  case $host_os in
12066  aix3*)
12067    test yes = "$enable_shared" && enable_static=no
12068    if test -n "$RANLIB"; then
12069      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12070      postinstall_cmds='$RANLIB $lib'
12071    fi
12072    ;;
12073
12074  aix[4-9]*)
12075    if test ia64 != "$host_cpu"; then
12076      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12077      yes,aix,yes) ;;			# shared object as lib.so file only
12078      yes,svr4,*) ;;			# shared object as lib.so archive member only
12079      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12080      esac
12081    fi
12082    ;;
12083  esac
12084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12085$as_echo "$enable_shared" >&6; }
12086
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12088$as_echo_n "checking whether to build static libraries... " >&6; }
12089  # Make sure either enable_shared or enable_static is yes.
12090  test yes = "$enable_shared" || enable_static=yes
12091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12092$as_echo "$enable_static" >&6; }
12093
12094
12095
12096
12097fi
12098ac_ext=c
12099ac_cpp='$CPP $CPPFLAGS'
12100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12102ac_compiler_gnu=$ac_cv_c_compiler_gnu
12103
12104CC=$lt_save_CC
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120        ac_config_commands="$ac_config_commands libtool"
12121
12122
12123
12124
12125# Only expand once:
12126
12127
12128
12129# Add -Wall if we are using GCC.
12130if test "x$GCC" = "xyes"; then
12131  CFLAGS="$CFLAGS -Wall"
12132fi
12133
12134# Checks for header files.
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12136$as_echo_n "checking for ANSI C header files... " >&6; }
12137if ${ac_cv_header_stdc+:} false; then :
12138  $as_echo_n "(cached) " >&6
12139else
12140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141/* end confdefs.h.  */
12142#include <stdlib.h>
12143#include <stdarg.h>
12144#include <string.h>
12145#include <float.h>
12146
12147int
12148main ()
12149{
12150
12151  ;
12152  return 0;
12153}
12154_ACEOF
12155if ac_fn_c_try_compile "$LINENO"; then :
12156  ac_cv_header_stdc=yes
12157else
12158  ac_cv_header_stdc=no
12159fi
12160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161
12162if test $ac_cv_header_stdc = yes; then
12163  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h.  */
12166#include <string.h>
12167
12168_ACEOF
12169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170  $EGREP "memchr" >/dev/null 2>&1; then :
12171
12172else
12173  ac_cv_header_stdc=no
12174fi
12175rm -f conftest*
12176
12177fi
12178
12179if test $ac_cv_header_stdc = yes; then
12180  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h.  */
12183#include <stdlib.h>
12184
12185_ACEOF
12186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12187  $EGREP "free" >/dev/null 2>&1; then :
12188
12189else
12190  ac_cv_header_stdc=no
12191fi
12192rm -f conftest*
12193
12194fi
12195
12196if test $ac_cv_header_stdc = yes; then
12197  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12198  if test "$cross_compiling" = yes; then :
12199  :
12200else
12201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h.  */
12203#include <ctype.h>
12204#include <stdlib.h>
12205#if ((' ' & 0x0FF) == 0x020)
12206# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12207# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12208#else
12209# define ISLOWER(c) \
12210		   (('a' <= (c) && (c) <= 'i') \
12211		     || ('j' <= (c) && (c) <= 'r') \
12212		     || ('s' <= (c) && (c) <= 'z'))
12213# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12214#endif
12215
12216#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12217int
12218main ()
12219{
12220  int i;
12221  for (i = 0; i < 256; i++)
12222    if (XOR (islower (i), ISLOWER (i))
12223	|| toupper (i) != TOUPPER (i))
12224      return 2;
12225  return 0;
12226}
12227_ACEOF
12228if ac_fn_c_try_run "$LINENO"; then :
12229
12230else
12231  ac_cv_header_stdc=no
12232fi
12233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12234  conftest.$ac_objext conftest.beam conftest.$ac_ext
12235fi
12236
12237fi
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12240$as_echo "$ac_cv_header_stdc" >&6; }
12241if test $ac_cv_header_stdc = yes; then
12242
12243$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12244
12245fi
12246
12247
12248# Check for systems which need -lsocket and -lnsl
12249#AX_LIB_SOCKET_NSL
12250
12251# Check for the math library (needed by cjson on some platforms)
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12253$as_echo_n "checking for library containing floor... " >&6; }
12254if ${ac_cv_search_floor+:} false; then :
12255  $as_echo_n "(cached) " >&6
12256else
12257  ac_func_search_save_LIBS=$LIBS
12258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259/* end confdefs.h.  */
12260
12261/* Override any GCC internal prototype to avoid an error.
12262   Use char because int might match the return type of a GCC
12263   builtin and then its argument prototype would still apply.  */
12264#ifdef __cplusplus
12265extern "C"
12266#endif
12267char floor ();
12268int
12269main ()
12270{
12271return floor ();
12272  ;
12273  return 0;
12274}
12275_ACEOF
12276for ac_lib in '' m; do
12277  if test -z "$ac_lib"; then
12278    ac_res="none required"
12279  else
12280    ac_res=-l$ac_lib
12281    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12282  fi
12283  if ac_fn_c_try_link "$LINENO"; then :
12284  ac_cv_search_floor=$ac_res
12285fi
12286rm -f core conftest.err conftest.$ac_objext \
12287    conftest$ac_exeext
12288  if ${ac_cv_search_floor+:} false; then :
12289  break
12290fi
12291done
12292if ${ac_cv_search_floor+:} false; then :
12293
12294else
12295  ac_cv_search_floor=no
12296fi
12297rm conftest.$ac_ext
12298LIBS=$ac_func_search_save_LIBS
12299fi
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12301$as_echo "$ac_cv_search_floor" >&6; }
12302ac_res=$ac_cv_search_floor
12303if test "$ac_res" != no; then :
12304  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12305
12306else
12307
12308echo "floor()"
12309exit 1
12310
12311fi
12312
12313
12314# On illumos we need -lsocket
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12316$as_echo_n "checking for library containing socket... " >&6; }
12317if ${ac_cv_search_socket+:} false; then :
12318  $as_echo_n "(cached) " >&6
12319else
12320  ac_func_search_save_LIBS=$LIBS
12321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322/* end confdefs.h.  */
12323
12324/* Override any GCC internal prototype to avoid an error.
12325   Use char because int might match the return type of a GCC
12326   builtin and then its argument prototype would still apply.  */
12327#ifdef __cplusplus
12328extern "C"
12329#endif
12330char socket ();
12331int
12332main ()
12333{
12334return socket ();
12335  ;
12336  return 0;
12337}
12338_ACEOF
12339for ac_lib in '' socket; do
12340  if test -z "$ac_lib"; then
12341    ac_res="none required"
12342  else
12343    ac_res=-l$ac_lib
12344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12345  fi
12346  if ac_fn_c_try_link "$LINENO"; then :
12347  ac_cv_search_socket=$ac_res
12348fi
12349rm -f core conftest.err conftest.$ac_objext \
12350    conftest$ac_exeext
12351  if ${ac_cv_search_socket+:} false; then :
12352  break
12353fi
12354done
12355if ${ac_cv_search_socket+:} false; then :
12356
12357else
12358  ac_cv_search_socket=no
12359fi
12360rm conftest.$ac_ext
12361LIBS=$ac_func_search_save_LIBS
12362fi
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12364$as_echo "$ac_cv_search_socket" >&6; }
12365ac_res=$ac_cv_search_socket
12366if test "$ac_res" != no; then :
12367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12368
12369else
12370
12371echo "socket()"
12372exit 1
12373
12374fi
12375
12376
12377# On illumos inet_ntop in in -lnsl
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12379$as_echo_n "checking for library containing inet_ntop... " >&6; }
12380if ${ac_cv_search_inet_ntop+:} false; then :
12381  $as_echo_n "(cached) " >&6
12382else
12383  ac_func_search_save_LIBS=$LIBS
12384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h.  */
12386
12387/* Override any GCC internal prototype to avoid an error.
12388   Use char because int might match the return type of a GCC
12389   builtin and then its argument prototype would still apply.  */
12390#ifdef __cplusplus
12391extern "C"
12392#endif
12393char inet_ntop ();
12394int
12395main ()
12396{
12397return inet_ntop ();
12398  ;
12399  return 0;
12400}
12401_ACEOF
12402for ac_lib in '' nsl; do
12403  if test -z "$ac_lib"; then
12404    ac_res="none required"
12405  else
12406    ac_res=-l$ac_lib
12407    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12408  fi
12409  if ac_fn_c_try_link "$LINENO"; then :
12410  ac_cv_search_inet_ntop=$ac_res
12411fi
12412rm -f core conftest.err conftest.$ac_objext \
12413    conftest$ac_exeext
12414  if ${ac_cv_search_inet_ntop+:} false; then :
12415  break
12416fi
12417done
12418if ${ac_cv_search_inet_ntop+:} false; then :
12419
12420else
12421  ac_cv_search_inet_ntop=no
12422fi
12423rm conftest.$ac_ext
12424LIBS=$ac_func_search_save_LIBS
12425fi
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12427$as_echo "$ac_cv_search_inet_ntop" >&6; }
12428ac_res=$ac_cv_search_inet_ntop
12429if test "$ac_res" != no; then :
12430  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12431
12432else
12433
12434echo "inet_ntop()"
12435exit 1
12436
12437fi
12438
12439
12440# Checks for typedefs, structures, and compiler characteristics.
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12442$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12443if ${ac_cv_c_const+:} false; then :
12444  $as_echo_n "(cached) " >&6
12445else
12446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447/* end confdefs.h.  */
12448
12449int
12450main ()
12451{
12452
12453#ifndef __cplusplus
12454  /* Ultrix mips cc rejects this sort of thing.  */
12455  typedef int charset[2];
12456  const charset cs = { 0, 0 };
12457  /* SunOS 4.1.1 cc rejects this.  */
12458  char const *const *pcpcc;
12459  char **ppc;
12460  /* NEC SVR4.0.2 mips cc rejects this.  */
12461  struct point {int x, y;};
12462  static struct point const zero = {0,0};
12463  /* AIX XL C 1.02.0.0 rejects this.
12464     It does not let you subtract one const X* pointer from another in
12465     an arm of an if-expression whose if-part is not a constant
12466     expression */
12467  const char *g = "string";
12468  pcpcc = &g + (g ? g-g : 0);
12469  /* HPUX 7.0 cc rejects these. */
12470  ++pcpcc;
12471  ppc = (char**) pcpcc;
12472  pcpcc = (char const *const *) ppc;
12473  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12474    char tx;
12475    char *t = &tx;
12476    char const *s = 0 ? (char *) 0 : (char const *) 0;
12477
12478    *t++ = 0;
12479    if (s) return 0;
12480  }
12481  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12482    int x[] = {25, 17};
12483    const int *foo = &x[0];
12484    ++foo;
12485  }
12486  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12487    typedef const int *iptr;
12488    iptr p = 0;
12489    ++p;
12490  }
12491  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12492       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12493    struct s { int j; const int *ap[3]; } bx;
12494    struct s *b = &bx; b->j = 5;
12495  }
12496  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12497    const int foo = 10;
12498    if (!foo) return 0;
12499  }
12500  return !cs[0] && !zero.x;
12501#endif
12502
12503  ;
12504  return 0;
12505}
12506_ACEOF
12507if ac_fn_c_try_compile "$LINENO"; then :
12508  ac_cv_c_const=yes
12509else
12510  ac_cv_c_const=no
12511fi
12512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513fi
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12515$as_echo "$ac_cv_c_const" >&6; }
12516if test $ac_cv_c_const = no; then
12517
12518$as_echo "#define const /**/" >>confdefs.h
12519
12520fi
12521
12522
12523# Check for poll.h (it's in POSIX so everyone should have it?)
12524for ac_header in poll.h
12525do :
12526  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12527if test "x$ac_cv_header_poll_h" = xyes; then :
12528  cat >>confdefs.h <<_ACEOF
12529#define HAVE_POLL_H 1
12530_ACEOF
12531
12532fi
12533
12534done
12535
12536
12537# Check for SCTP support
12538for ac_header in sys/socket.h
12539do :
12540  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12541if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12542  cat >>confdefs.h <<_ACEOF
12543#define HAVE_SYS_SOCKET_H 1
12544_ACEOF
12545
12546fi
12547
12548done
12549
12550for ac_header in netinet/sctp.h
12551do :
12552  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12553#include <sys/socket.h>
12554#endif
12555
12556"
12557if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
12558  cat >>confdefs.h <<_ACEOF
12559#define HAVE_NETINET_SCTP_H 1
12560_ACEOF
12561
12562$as_echo "#define HAVE_SCTP 1" >>confdefs.h
12563
12564		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12565$as_echo_n "checking for library containing sctp_bindx... " >&6; }
12566if ${ac_cv_search_sctp_bindx+:} false; then :
12567  $as_echo_n "(cached) " >&6
12568else
12569  ac_func_search_save_LIBS=$LIBS
12570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572
12573/* Override any GCC internal prototype to avoid an error.
12574   Use char because int might match the return type of a GCC
12575   builtin and then its argument prototype would still apply.  */
12576#ifdef __cplusplus
12577extern "C"
12578#endif
12579char sctp_bindx ();
12580int
12581main ()
12582{
12583return sctp_bindx ();
12584  ;
12585  return 0;
12586}
12587_ACEOF
12588for ac_lib in '' sctp; do
12589  if test -z "$ac_lib"; then
12590    ac_res="none required"
12591  else
12592    ac_res=-l$ac_lib
12593    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12594  fi
12595  if ac_fn_c_try_link "$LINENO"; then :
12596  ac_cv_search_sctp_bindx=$ac_res
12597fi
12598rm -f core conftest.err conftest.$ac_objext \
12599    conftest$ac_exeext
12600  if ${ac_cv_search_sctp_bindx+:} false; then :
12601  break
12602fi
12603done
12604if ${ac_cv_search_sctp_bindx+:} false; then :
12605
12606else
12607  ac_cv_search_sctp_bindx=no
12608fi
12609rm conftest.$ac_ext
12610LIBS=$ac_func_search_save_LIBS
12611fi
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12613$as_echo "$ac_cv_search_sctp_bindx" >&6; }
12614ac_res=$ac_cv_search_sctp_bindx
12615if test "$ac_res" != no; then :
12616  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12617
12618fi
12619
12620
12621# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
12622# -------------------------------------------
12623# Tests whether TYPE exists after having included INCLUDES, setting cache
12624# variable VAR accordingly.
12625ac_fn_c_check_type ()
12626{
12627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
12629$as_echo_n "checking for $2... " >&6; }
12630if eval \${$3+:} false; then :
12631  $as_echo_n "(cached) " >&6
12632else
12633  eval "$3=no"
12634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635/* end confdefs.h.  */
12636$4
12637int
12638main ()
12639{
12640if (sizeof ($2))
12641	 return 0;
12642  ;
12643  return 0;
12644}
12645_ACEOF
12646if ac_fn_c_try_compile "$LINENO"; then :
12647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648/* end confdefs.h.  */
12649$4
12650int
12651main ()
12652{
12653if (sizeof (($2)))
12654	    return 0;
12655  ;
12656  return 0;
12657}
12658_ACEOF
12659if ac_fn_c_try_compile "$LINENO"; then :
12660
12661else
12662  eval "$3=yes"
12663fi
12664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665fi
12666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667fi
12668eval ac_res=\$$3
12669	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12670$as_echo "$ac_res" >&6; }
12671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
12672
12673} # ac_fn_c_check_type
12674ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
12675"
12676if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
12677
12678cat >>confdefs.h <<_ACEOF
12679#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
12680_ACEOF
12681
12682
12683fi
12684
12685fi
12686
12687done
12688
12689
12690ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
12691if test "x$ac_cv_header_endian_h" = xyes; then :
12692
12693$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
12694
12695else
12696  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12697if test "x$ac_cv_header_sys_endian_h" = xyes; then :
12698
12699$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
12700
12701else
12702  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
12703$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
12704
12705fi
12706
12707
12708
12709fi
12710
12711
12712
12713if test "x$with_openssl" = "xno"; then
12714    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
12715$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
12716else
12717    # Check for OPENSSL support
12718
12719    found=false
12720
12721# Check whether --with-openssl was given.
12722if test "${with_openssl+set}" = set; then :
12723  withval=$with_openssl;
12724            case "$withval" in
12725            "" | y | ye | yes | n | no)
12726            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
12727              ;;
12728            *) ssldirs="$withval"
12729              ;;
12730            esac
12731
12732else
12733
12734            # if pkg-config is installed and openssl has installed a .pc file,
12735            # then use that information and don't search ssldirs
12736            if test -n "$ac_tool_prefix"; then
12737  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
12741if ${ac_cv_prog_PKG_CONFIG+:} false; then :
12742  $as_echo_n "(cached) " >&6
12743else
12744  if test -n "$PKG_CONFIG"; then
12745  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
12746else
12747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750  IFS=$as_save_IFS
12751  test -z "$as_dir" && as_dir=.
12752    for ac_exec_ext in '' $ac_executable_extensions; do
12753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
12755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756    break 2
12757  fi
12758done
12759  done
12760IFS=$as_save_IFS
12761
12762fi
12763fi
12764PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
12765if test -n "$PKG_CONFIG"; then
12766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12767$as_echo "$PKG_CONFIG" >&6; }
12768else
12769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773
12774fi
12775if test -z "$ac_cv_prog_PKG_CONFIG"; then
12776  ac_ct_PKG_CONFIG=$PKG_CONFIG
12777  # Extract the first word of "pkg-config", so it can be a program name with args.
12778set dummy pkg-config; ac_word=$2
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780$as_echo_n "checking for $ac_word... " >&6; }
12781if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
12782  $as_echo_n "(cached) " >&6
12783else
12784  if test -n "$ac_ct_PKG_CONFIG"; then
12785  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
12786else
12787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $PATH
12789do
12790  IFS=$as_save_IFS
12791  test -z "$as_dir" && as_dir=.
12792    for ac_exec_ext in '' $ac_executable_extensions; do
12793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12794    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
12795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796    break 2
12797  fi
12798done
12799  done
12800IFS=$as_save_IFS
12801
12802fi
12803fi
12804ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
12805if test -n "$ac_ct_PKG_CONFIG"; then
12806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
12807$as_echo "$ac_ct_PKG_CONFIG" >&6; }
12808else
12809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
12811fi
12812
12813  if test "x$ac_ct_PKG_CONFIG" = x; then
12814    PKG_CONFIG=""
12815  else
12816    case $cross_compiling:$ac_tool_warned in
12817yes:)
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12820ac_tool_warned=yes ;;
12821esac
12822    PKG_CONFIG=$ac_ct_PKG_CONFIG
12823  fi
12824else
12825  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
12826fi
12827
12828            if test x"$PKG_CONFIG" != x""; then
12829                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
12830                if test $? = 0; then
12831                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
12832                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
12833                    found=true
12834                fi
12835            fi
12836
12837            # no such luck; use some default ssldirs
12838            if ! $found; then
12839                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
12840            fi
12841
12842
12843fi
12844
12845
12846
12847    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
12848    # an 'openssl' subdirectory
12849
12850    if ! $found; then
12851        OPENSSL_INCLUDES=
12852        for ssldir in $ssldirs; do
12853            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
12854$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
12855            if test -f "$ssldir/include/openssl/ssl.h"; then
12856                OPENSSL_INCLUDES="-I$ssldir/include"
12857                OPENSSL_LDFLAGS="-L$ssldir/lib"
12858                OPENSSL_LIBS="-lssl -lcrypto"
12859                found=true
12860                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861$as_echo "yes" >&6; }
12862                break
12863            else
12864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866            fi
12867        done
12868
12869        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
12870        # it will just work!
12871    fi
12872
12873    # try the preprocessor and linker with our new flags,
12874    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
12875
12876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
12877$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
12878    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
12879        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
12880
12881    save_LIBS="$LIBS"
12882    save_LDFLAGS="$LDFLAGS"
12883    save_CPPFLAGS="$CPPFLAGS"
12884    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12885    LIBS="$OPENSSL_LIBS $LIBS"
12886    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12887    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888/* end confdefs.h.  */
12889#include <openssl/ssl.h>
12890int
12891main ()
12892{
12893SSL_new(NULL)
12894  ;
12895  return 0;
12896}
12897_ACEOF
12898if ac_fn_c_try_link "$LINENO"; then :
12899
12900            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901$as_echo "yes" >&6; }
12902
12903$as_echo "#define HAVE_SSL 1" >>confdefs.h
12904
12905
12906else
12907
12908            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909$as_echo "no" >&6; }
12910             if test "x$with_openssl" != "x"; then
12911	  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12913as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
12914See \`config.log' for more details" "$LINENO" 5; }
12915	  fi
12916
12917
12918fi
12919rm -f core conftest.err conftest.$ac_objext \
12920    conftest$ac_exeext conftest.$ac_ext
12921    CPPFLAGS="$save_CPPFLAGS"
12922    LDFLAGS="$save_LDFLAGS"
12923    LIBS="$save_LIBS"
12924
12925
12926
12927
12928
12929    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12930    LIBS="$OPENSSL_LIBS $LIBS"
12931    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12932fi
12933
12934# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
12936$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
12937if ${iperf3_cv_header_tcp_congestion+:} false; then :
12938  $as_echo_n "(cached) " >&6
12939else
12940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h.  */
12942#include <netinet/tcp.h>
12943#ifdef TCP_CONGESTION
12944  yes
12945#endif
12946
12947_ACEOF
12948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12949  $EGREP "yes" >/dev/null 2>&1; then :
12950  iperf3_cv_header_tcp_congestion=yes
12951else
12952  iperf3_cv_header_tcp_congestion=no
12953fi
12954rm -f conftest*
12955
12956fi
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
12958$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12959if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12960
12961$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
12962
12963fi
12964
12965# Check for IPv6 flowlabel support (believed to be Linux only)
12966# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12967# don't use that file directly (we have our own stripped-down
12968# copy, see src/flowlabel.h for more details).
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
12970$as_echo_n "checking IPv6 flowlabel support... " >&6; }
12971if ${iperf3_cv_header_flowlabel+:} false; then :
12972  $as_echo_n "(cached) " >&6
12973else
12974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975/* end confdefs.h.  */
12976#include <sys/types.h>
12977#include <linux/in6.h>
12978#ifdef IPV6_FLOWLABEL_MGR
12979  yes
12980#endif
12981
12982_ACEOF
12983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12984  $EGREP "yes" >/dev/null 2>&1; then :
12985  iperf3_cv_header_flowlabel=yes
12986else
12987  iperf3_cv_header_flowlabel=no
12988fi
12989rm -f conftest*
12990
12991fi
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
12993$as_echo "$iperf3_cv_header_flowlabel" >&6; }
12994if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
12995
12996$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
12997
12998fi
12999
13000# Check for CPU affinity support.  FreeBSD and Linux do this differently
13001# unfortunately so we have to check separately for each of them.
13002# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13003# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13004# generic concept is available.
13005for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
13006do :
13007  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13008ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13009if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13010  cat >>confdefs.h <<_ACEOF
13011#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012_ACEOF
13013
13014$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
13015
13016fi
13017done
13018
13019
13020# Check for daemon().  Most systems have this but a few (IRIX) don't.
13021for ac_func in daemon
13022do :
13023  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13024if test "x$ac_cv_func_daemon" = xyes; then :
13025  cat >>confdefs.h <<_ACEOF
13026#define HAVE_DAEMON 1
13027_ACEOF
13028
13029fi
13030done
13031
13032
13033# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
13034# this system call, but they're all different in terms of what headers
13035# it needs and what arguments it expects.
13036for ac_func in sendfile
13037do :
13038  ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13039if test "x$ac_cv_func_sendfile" = xyes; then :
13040  cat >>confdefs.h <<_ACEOF
13041#define HAVE_SENDFILE 1
13042_ACEOF
13043
13044fi
13045done
13046
13047
13048# Check for getline support, used as a part of authenticated
13049# connections.
13050for ac_func in getline
13051do :
13052  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13053if test "x$ac_cv_func_getline" = xyes; then :
13054  cat >>confdefs.h <<_ACEOF
13055#define HAVE_GETLINE 1
13056_ACEOF
13057
13058fi
13059done
13060
13061
13062# Check for packet pacing socket option (Linux only for now).
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13064$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13065if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13066  $as_echo_n "(cached) " >&6
13067else
13068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070#include <sys/socket.h>
13071#ifdef SO_MAX_PACING_RATE
13072  yes
13073#endif
13074
13075_ACEOF
13076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13077  $EGREP "yes" >/dev/null 2>&1; then :
13078  iperf3_cv_header_so_max_pacing_rate=yes
13079else
13080  iperf3_cv_header_so_max_pacing_rate=no
13081fi
13082rm -f conftest*
13083
13084fi
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13086$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13087if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13088
13089$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13090
13091fi
13092
13093
13094ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
13095
13096cat >confcache <<\_ACEOF
13097# This file is a shell script that caches the results of configure
13098# tests run on this system so they can be shared between configure
13099# scripts and configure runs, see configure's option --config-cache.
13100# It is not useful on other systems.  If it contains results you don't
13101# want to keep, you may remove or edit it.
13102#
13103# config.status only pays attention to the cache file if you give it
13104# the --recheck option to rerun configure.
13105#
13106# `ac_cv_env_foo' variables (set or unset) will be overridden when
13107# loading this file, other *unset* `ac_cv_foo' will be assigned the
13108# following values.
13109
13110_ACEOF
13111
13112# The following way of writing the cache mishandles newlines in values,
13113# but we know of no workaround that is simple, portable, and efficient.
13114# So, we kill variables containing newlines.
13115# Ultrix sh set writes to stderr and can't be redirected directly,
13116# and sets the high bit in the cache file unless we assign to the vars.
13117(
13118  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13119    eval ac_val=\$$ac_var
13120    case $ac_val in #(
13121    *${as_nl}*)
13122      case $ac_var in #(
13123      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13124$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13125      esac
13126      case $ac_var in #(
13127      _ | IFS | as_nl) ;; #(
13128      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13129      *) { eval $ac_var=; unset $ac_var;} ;;
13130      esac ;;
13131    esac
13132  done
13133
13134  (set) 2>&1 |
13135    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13136    *${as_nl}ac_space=\ *)
13137      # `set' does not quote correctly, so add quotes: double-quote
13138      # substitution turns \\\\ into \\, and sed turns \\ into \.
13139      sed -n \
13140	"s/'/'\\\\''/g;
13141	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13142      ;; #(
13143    *)
13144      # `set' quotes correctly as required by POSIX, so do not add quotes.
13145      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13146      ;;
13147    esac |
13148    sort
13149) |
13150  sed '
13151     /^ac_cv_env_/b end
13152     t clear
13153     :clear
13154     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13155     t end
13156     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13157     :end' >>confcache
13158if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13159  if test -w "$cache_file"; then
13160    if test "x$cache_file" != "x/dev/null"; then
13161      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13162$as_echo "$as_me: updating cache $cache_file" >&6;}
13163      if test ! -f "$cache_file" || test -h "$cache_file"; then
13164	cat confcache >"$cache_file"
13165      else
13166        case $cache_file in #(
13167        */* | ?:*)
13168	  mv -f confcache "$cache_file"$$ &&
13169	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13170        *)
13171	  mv -f confcache "$cache_file" ;;
13172	esac
13173      fi
13174    fi
13175  else
13176    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13177$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13178  fi
13179fi
13180rm -f confcache
13181
13182test "x$prefix" = xNONE && prefix=$ac_default_prefix
13183# Let make expand exec_prefix.
13184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13185
13186DEFS=-DHAVE_CONFIG_H
13187
13188ac_libobjs=
13189ac_ltlibobjs=
13190for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13191  # 1. Remove the extension, and $U if already installed.
13192  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13193  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13194  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13195  #    will be set to the directory where LIBOBJS objects are built.
13196  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13197  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13198done
13199LIBOBJS=$ac_libobjs
13200
13201LTLIBOBJS=$ac_ltlibobjs
13202
13203
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13205$as_echo_n "checking that generated files are newer than configure... " >&6; }
13206   if test -n "$am_sleep_pid"; then
13207     # Hide warnings about reused PIDs.
13208     wait $am_sleep_pid 2>/dev/null
13209   fi
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13211$as_echo "done" >&6; }
13212 if test -n "$EXEEXT"; then
13213  am__EXEEXT_TRUE=
13214  am__EXEEXT_FALSE='#'
13215else
13216  am__EXEEXT_TRUE='#'
13217  am__EXEEXT_FALSE=
13218fi
13219
13220if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13221  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13222Usually this means the macro was only invoked conditionally." "$LINENO" 5
13223fi
13224if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13225  as_fn_error $? "conditional \"AMDEP\" was never defined.
13226Usually this means the macro was only invoked conditionally." "$LINENO" 5
13227fi
13228if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13229  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13230Usually this means the macro was only invoked conditionally." "$LINENO" 5
13231fi
13232
13233: "${CONFIG_STATUS=./config.status}"
13234ac_write_fail=0
13235ac_clean_files_save=$ac_clean_files
13236ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13238$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13239as_write_fail=0
13240cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13241#! $SHELL
13242# Generated by $as_me.
13243# Run this file to recreate the current configuration.
13244# Compiler output produced by configure, useful for debugging
13245# configure, is in config.log if it exists.
13246
13247debug=false
13248ac_cs_recheck=false
13249ac_cs_silent=false
13250
13251SHELL=\${CONFIG_SHELL-$SHELL}
13252export SHELL
13253_ASEOF
13254cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13255## -------------------- ##
13256## M4sh Initialization. ##
13257## -------------------- ##
13258
13259# Be more Bourne compatible
13260DUALCASE=1; export DUALCASE # for MKS sh
13261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13262  emulate sh
13263  NULLCMD=:
13264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13265  # is contrary to our usage.  Disable this feature.
13266  alias -g '${1+"$@"}'='"$@"'
13267  setopt NO_GLOB_SUBST
13268else
13269  case `(set -o) 2>/dev/null` in #(
13270  *posix*) :
13271    set -o posix ;; #(
13272  *) :
13273     ;;
13274esac
13275fi
13276
13277
13278as_nl='
13279'
13280export as_nl
13281# Printing a long string crashes Solaris 7 /usr/bin/printf.
13282as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13284as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13285# Prefer a ksh shell builtin over an external printf program on Solaris,
13286# but without wasting forks for bash or zsh.
13287if test -z "$BASH_VERSION$ZSH_VERSION" \
13288    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13289  as_echo='print -r --'
13290  as_echo_n='print -rn --'
13291elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13292  as_echo='printf %s\n'
13293  as_echo_n='printf %s'
13294else
13295  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13296    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13297    as_echo_n='/usr/ucb/echo -n'
13298  else
13299    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13300    as_echo_n_body='eval
13301      arg=$1;
13302      case $arg in #(
13303      *"$as_nl"*)
13304	expr "X$arg" : "X\\(.*\\)$as_nl";
13305	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13306      esac;
13307      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13308    '
13309    export as_echo_n_body
13310    as_echo_n='sh -c $as_echo_n_body as_echo'
13311  fi
13312  export as_echo_body
13313  as_echo='sh -c $as_echo_body as_echo'
13314fi
13315
13316# The user is always right.
13317if test "${PATH_SEPARATOR+set}" != set; then
13318  PATH_SEPARATOR=:
13319  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13320    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13321      PATH_SEPARATOR=';'
13322  }
13323fi
13324
13325
13326# IFS
13327# We need space, tab and new line, in precisely that order.  Quoting is
13328# there to prevent editors from complaining about space-tab.
13329# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13330# splitting by setting IFS to empty value.)
13331IFS=" ""	$as_nl"
13332
13333# Find who we are.  Look in the path if we contain no directory separator.
13334as_myself=
13335case $0 in #((
13336  *[\\/]* ) as_myself=$0 ;;
13337  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338for as_dir in $PATH
13339do
13340  IFS=$as_save_IFS
13341  test -z "$as_dir" && as_dir=.
13342    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13343  done
13344IFS=$as_save_IFS
13345
13346     ;;
13347esac
13348# We did not find ourselves, most probably we were run as `sh COMMAND'
13349# in which case we are not to be found in the path.
13350if test "x$as_myself" = x; then
13351  as_myself=$0
13352fi
13353if test ! -f "$as_myself"; then
13354  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13355  exit 1
13356fi
13357
13358# Unset variables that we do not need and which cause bugs (e.g. in
13359# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13360# suppresses any "Segmentation fault" message there.  '((' could
13361# trigger a bug in pdksh 5.2.14.
13362for as_var in BASH_ENV ENV MAIL MAILPATH
13363do eval test x\${$as_var+set} = xset \
13364  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13365done
13366PS1='$ '
13367PS2='> '
13368PS4='+ '
13369
13370# NLS nuisances.
13371LC_ALL=C
13372export LC_ALL
13373LANGUAGE=C
13374export LANGUAGE
13375
13376# CDPATH.
13377(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13378
13379
13380# as_fn_error STATUS ERROR [LINENO LOG_FD]
13381# ----------------------------------------
13382# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13383# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13384# script with STATUS, using 1 if that was 0.
13385as_fn_error ()
13386{
13387  as_status=$1; test $as_status -eq 0 && as_status=1
13388  if test "$4"; then
13389    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13390    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13391  fi
13392  $as_echo "$as_me: error: $2" >&2
13393  as_fn_exit $as_status
13394} # as_fn_error
13395
13396
13397# as_fn_set_status STATUS
13398# -----------------------
13399# Set $? to STATUS, without forking.
13400as_fn_set_status ()
13401{
13402  return $1
13403} # as_fn_set_status
13404
13405# as_fn_exit STATUS
13406# -----------------
13407# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13408as_fn_exit ()
13409{
13410  set +e
13411  as_fn_set_status $1
13412  exit $1
13413} # as_fn_exit
13414
13415# as_fn_unset VAR
13416# ---------------
13417# Portably unset VAR.
13418as_fn_unset ()
13419{
13420  { eval $1=; unset $1;}
13421}
13422as_unset=as_fn_unset
13423# as_fn_append VAR VALUE
13424# ----------------------
13425# Append the text in VALUE to the end of the definition contained in VAR. Take
13426# advantage of any shell optimizations that allow amortized linear growth over
13427# repeated appends, instead of the typical quadratic growth present in naive
13428# implementations.
13429if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13430  eval 'as_fn_append ()
13431  {
13432    eval $1+=\$2
13433  }'
13434else
13435  as_fn_append ()
13436  {
13437    eval $1=\$$1\$2
13438  }
13439fi # as_fn_append
13440
13441# as_fn_arith ARG...
13442# ------------------
13443# Perform arithmetic evaluation on the ARGs, and store the result in the
13444# global $as_val. Take advantage of shells that can avoid forks. The arguments
13445# must be portable across $(()) and expr.
13446if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13447  eval 'as_fn_arith ()
13448  {
13449    as_val=$(( $* ))
13450  }'
13451else
13452  as_fn_arith ()
13453  {
13454    as_val=`expr "$@" || test $? -eq 1`
13455  }
13456fi # as_fn_arith
13457
13458
13459if expr a : '\(a\)' >/dev/null 2>&1 &&
13460   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13461  as_expr=expr
13462else
13463  as_expr=false
13464fi
13465
13466if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13467  as_basename=basename
13468else
13469  as_basename=false
13470fi
13471
13472if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13473  as_dirname=dirname
13474else
13475  as_dirname=false
13476fi
13477
13478as_me=`$as_basename -- "$0" ||
13479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13480	 X"$0" : 'X\(//\)$' \| \
13481	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13482$as_echo X/"$0" |
13483    sed '/^.*\/\([^/][^/]*\)\/*$/{
13484	    s//\1/
13485	    q
13486	  }
13487	  /^X\/\(\/\/\)$/{
13488	    s//\1/
13489	    q
13490	  }
13491	  /^X\/\(\/\).*/{
13492	    s//\1/
13493	    q
13494	  }
13495	  s/.*/./; q'`
13496
13497# Avoid depending upon Character Ranges.
13498as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13499as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13500as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13501as_cr_digits='0123456789'
13502as_cr_alnum=$as_cr_Letters$as_cr_digits
13503
13504ECHO_C= ECHO_N= ECHO_T=
13505case `echo -n x` in #(((((
13506-n*)
13507  case `echo 'xy\c'` in
13508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13509  xy)  ECHO_C='\c';;
13510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13511       ECHO_T='	';;
13512  esac;;
13513*)
13514  ECHO_N='-n';;
13515esac
13516
13517rm -f conf$$ conf$$.exe conf$$.file
13518if test -d conf$$.dir; then
13519  rm -f conf$$.dir/conf$$.file
13520else
13521  rm -f conf$$.dir
13522  mkdir conf$$.dir 2>/dev/null
13523fi
13524if (echo >conf$$.file) 2>/dev/null; then
13525  if ln -s conf$$.file conf$$ 2>/dev/null; then
13526    as_ln_s='ln -s'
13527    # ... but there are two gotchas:
13528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13530    # In both cases, we have to default to `cp -pR'.
13531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13532      as_ln_s='cp -pR'
13533  elif ln conf$$.file conf$$ 2>/dev/null; then
13534    as_ln_s=ln
13535  else
13536    as_ln_s='cp -pR'
13537  fi
13538else
13539  as_ln_s='cp -pR'
13540fi
13541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13542rmdir conf$$.dir 2>/dev/null
13543
13544
13545# as_fn_mkdir_p
13546# -------------
13547# Create "$as_dir" as a directory, including parents if necessary.
13548as_fn_mkdir_p ()
13549{
13550
13551  case $as_dir in #(
13552  -*) as_dir=./$as_dir;;
13553  esac
13554  test -d "$as_dir" || eval $as_mkdir_p || {
13555    as_dirs=
13556    while :; do
13557      case $as_dir in #(
13558      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13559      *) as_qdir=$as_dir;;
13560      esac
13561      as_dirs="'$as_qdir' $as_dirs"
13562      as_dir=`$as_dirname -- "$as_dir" ||
13563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13564	 X"$as_dir" : 'X\(//\)[^/]' \| \
13565	 X"$as_dir" : 'X\(//\)$' \| \
13566	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13567$as_echo X"$as_dir" |
13568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13569	    s//\1/
13570	    q
13571	  }
13572	  /^X\(\/\/\)[^/].*/{
13573	    s//\1/
13574	    q
13575	  }
13576	  /^X\(\/\/\)$/{
13577	    s//\1/
13578	    q
13579	  }
13580	  /^X\(\/\).*/{
13581	    s//\1/
13582	    q
13583	  }
13584	  s/.*/./; q'`
13585      test -d "$as_dir" && break
13586    done
13587    test -z "$as_dirs" || eval "mkdir $as_dirs"
13588  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13589
13590
13591} # as_fn_mkdir_p
13592if mkdir -p . 2>/dev/null; then
13593  as_mkdir_p='mkdir -p "$as_dir"'
13594else
13595  test -d ./-p && rmdir ./-p
13596  as_mkdir_p=false
13597fi
13598
13599
13600# as_fn_executable_p FILE
13601# -----------------------
13602# Test if FILE is an executable regular file.
13603as_fn_executable_p ()
13604{
13605  test -f "$1" && test -x "$1"
13606} # as_fn_executable_p
13607as_test_x='test -x'
13608as_executable_p=as_fn_executable_p
13609
13610# Sed expression to map a string onto a valid CPP name.
13611as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13612
13613# Sed expression to map a string onto a valid variable name.
13614as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13615
13616
13617exec 6>&1
13618## ----------------------------------- ##
13619## Main body of $CONFIG_STATUS script. ##
13620## ----------------------------------- ##
13621_ASEOF
13622test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13623
13624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13625# Save the log message, to keep $0 and so on meaningful, and to
13626# report actual input values of CONFIG_FILES etc. instead of their
13627# values after options handling.
13628ac_log="
13629This file was extended by iperf $as_me 3.5, which was
13630generated by GNU Autoconf 2.69.  Invocation command line was
13631
13632  CONFIG_FILES    = $CONFIG_FILES
13633  CONFIG_HEADERS  = $CONFIG_HEADERS
13634  CONFIG_LINKS    = $CONFIG_LINKS
13635  CONFIG_COMMANDS = $CONFIG_COMMANDS
13636  $ $0 $@
13637
13638on `(hostname || uname -n) 2>/dev/null | sed 1q`
13639"
13640
13641_ACEOF
13642
13643case $ac_config_files in *"
13644"*) set x $ac_config_files; shift; ac_config_files=$*;;
13645esac
13646
13647case $ac_config_headers in *"
13648"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13649esac
13650
13651
13652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13653# Files that config.status was made for.
13654config_files="$ac_config_files"
13655config_headers="$ac_config_headers"
13656config_commands="$ac_config_commands"
13657
13658_ACEOF
13659
13660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13661ac_cs_usage="\
13662\`$as_me' instantiates files and other configuration actions
13663from templates according to the current configuration.  Unless the files
13664and actions are specified as TAGs, all are instantiated by default.
13665
13666Usage: $0 [OPTION]... [TAG]...
13667
13668  -h, --help       print this help, then exit
13669  -V, --version    print version number and configuration settings, then exit
13670      --config     print configuration, then exit
13671  -q, --quiet, --silent
13672                   do not print progress messages
13673  -d, --debug      don't remove temporary files
13674      --recheck    update $as_me by reconfiguring in the same conditions
13675      --file=FILE[:TEMPLATE]
13676                   instantiate the configuration file FILE
13677      --header=FILE[:TEMPLATE]
13678                   instantiate the configuration header FILE
13679
13680Configuration files:
13681$config_files
13682
13683Configuration headers:
13684$config_headers
13685
13686Configuration commands:
13687$config_commands
13688
13689Report bugs to <https://github.com/esnet/iperf>.
13690iperf home page: <http://software.es.net/iperf/>."
13691
13692_ACEOF
13693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13694ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13695ac_cs_version="\\
13696iperf config.status 3.5
13697configured by $0, generated by GNU Autoconf 2.69,
13698  with options \\"\$ac_cs_config\\"
13699
13700Copyright (C) 2012 Free Software Foundation, Inc.
13701This config.status script is free software; the Free Software Foundation
13702gives unlimited permission to copy, distribute and modify it."
13703
13704ac_pwd='$ac_pwd'
13705srcdir='$srcdir'
13706INSTALL='$INSTALL'
13707MKDIR_P='$MKDIR_P'
13708AWK='$AWK'
13709test -n "\$AWK" || AWK=awk
13710_ACEOF
13711
13712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13713# The default lists apply if the user does not specify any file.
13714ac_need_defaults=:
13715while test $# != 0
13716do
13717  case $1 in
13718  --*=?*)
13719    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13720    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13721    ac_shift=:
13722    ;;
13723  --*=)
13724    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13725    ac_optarg=
13726    ac_shift=:
13727    ;;
13728  *)
13729    ac_option=$1
13730    ac_optarg=$2
13731    ac_shift=shift
13732    ;;
13733  esac
13734
13735  case $ac_option in
13736  # Handling of the options.
13737  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13738    ac_cs_recheck=: ;;
13739  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13740    $as_echo "$ac_cs_version"; exit ;;
13741  --config | --confi | --conf | --con | --co | --c )
13742    $as_echo "$ac_cs_config"; exit ;;
13743  --debug | --debu | --deb | --de | --d | -d )
13744    debug=: ;;
13745  --file | --fil | --fi | --f )
13746    $ac_shift
13747    case $ac_optarg in
13748    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13749    '') as_fn_error $? "missing file argument" ;;
13750    esac
13751    as_fn_append CONFIG_FILES " '$ac_optarg'"
13752    ac_need_defaults=false;;
13753  --header | --heade | --head | --hea )
13754    $ac_shift
13755    case $ac_optarg in
13756    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13757    esac
13758    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13759    ac_need_defaults=false;;
13760  --he | --h)
13761    # Conflict between --help and --header
13762    as_fn_error $? "ambiguous option: \`$1'
13763Try \`$0 --help' for more information.";;
13764  --help | --hel | -h )
13765    $as_echo "$ac_cs_usage"; exit ;;
13766  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13767  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13768    ac_cs_silent=: ;;
13769
13770  # This is an error.
13771  -*) as_fn_error $? "unrecognized option: \`$1'
13772Try \`$0 --help' for more information." ;;
13773
13774  *) as_fn_append ac_config_targets " $1"
13775     ac_need_defaults=false ;;
13776
13777  esac
13778  shift
13779done
13780
13781ac_configure_extra_args=
13782
13783if $ac_cs_silent; then
13784  exec 6>/dev/null
13785  ac_configure_extra_args="$ac_configure_extra_args --silent"
13786fi
13787
13788_ACEOF
13789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13790if \$ac_cs_recheck; then
13791  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13792  shift
13793  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13794  CONFIG_SHELL='$SHELL'
13795  export CONFIG_SHELL
13796  exec "\$@"
13797fi
13798
13799_ACEOF
13800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801exec 5>>config.log
13802{
13803  echo
13804  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13805## Running $as_me. ##
13806_ASBOX
13807  $as_echo "$ac_log"
13808} >&5
13809
13810_ACEOF
13811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13812#
13813# INIT-COMMANDS
13814#
13815AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13816
13817
13818# The HP-UX ksh and POSIX shell print the target directory to stdout
13819# if CDPATH is set.
13820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13821
13822sed_quote_subst='$sed_quote_subst'
13823double_quote_subst='$double_quote_subst'
13824delay_variable_subst='$delay_variable_subst'
13825macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13826macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13827enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13828enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13829pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13830enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13831shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13832SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13833ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13834PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13835host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13836host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13837host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13838build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13839build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13840build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13841SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13842Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13843GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13844EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13845FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13846LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13847NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13848LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13849max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13850ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13851exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13852lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13853lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13854lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13855lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13856lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13857reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13858reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13859OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13860deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13861file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13862file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13863want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13864DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13865sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13866AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13867AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13868archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13869STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13870RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13871old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13872old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13873old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13874lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13875CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13876CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13877compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13878GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13879lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13880lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13881lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13882lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13883lt_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"`'
13884lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13885nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13886lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13887lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13888objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13889MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13890lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13891lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13892lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13893lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13894lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13895need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13896MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13897DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13898NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13899LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13900OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13901OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13902libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13903shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13904extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13905archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13906enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13907export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13908whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13909compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13910old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13911old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13912archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13913archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13914module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13915module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13916with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13917allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13918no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13919hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13920hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13921hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13922hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13923hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13924hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13925hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13926inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13927link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13928always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13929export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13930exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13931include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13932prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13933postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13934file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13935variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13936need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13937need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13938version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13939runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13940shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13941shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13942libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13943library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13944soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13945install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13946postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13947postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13948finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13949finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13950hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13951sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13952configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13953configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13954hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13955enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13956enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13957enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13958old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13959striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13960
13961LTCC='$LTCC'
13962LTCFLAGS='$LTCFLAGS'
13963compiler='$compiler_DEFAULT'
13964
13965# A function that is used when there is no print builtin or printf.
13966func_fallback_echo ()
13967{
13968  eval 'cat <<_LTECHO_EOF
13969\$1
13970_LTECHO_EOF'
13971}
13972
13973# Quote evaled strings.
13974for var in SHELL \
13975ECHO \
13976PATH_SEPARATOR \
13977SED \
13978GREP \
13979EGREP \
13980FGREP \
13981LD \
13982NM \
13983LN_S \
13984lt_SP2NL \
13985lt_NL2SP \
13986reload_flag \
13987OBJDUMP \
13988deplibs_check_method \
13989file_magic_cmd \
13990file_magic_glob \
13991want_nocaseglob \
13992DLLTOOL \
13993sharedlib_from_linklib_cmd \
13994AR \
13995AR_FLAGS \
13996archiver_list_spec \
13997STRIP \
13998RANLIB \
13999CC \
14000CFLAGS \
14001compiler \
14002lt_cv_sys_global_symbol_pipe \
14003lt_cv_sys_global_symbol_to_cdecl \
14004lt_cv_sys_global_symbol_to_import \
14005lt_cv_sys_global_symbol_to_c_name_address \
14006lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14007lt_cv_nm_interface \
14008nm_file_list_spec \
14009lt_cv_truncate_bin \
14010lt_prog_compiler_no_builtin_flag \
14011lt_prog_compiler_pic \
14012lt_prog_compiler_wl \
14013lt_prog_compiler_static \
14014lt_cv_prog_compiler_c_o \
14015need_locks \
14016MANIFEST_TOOL \
14017DSYMUTIL \
14018NMEDIT \
14019LIPO \
14020OTOOL \
14021OTOOL64 \
14022shrext_cmds \
14023export_dynamic_flag_spec \
14024whole_archive_flag_spec \
14025compiler_needs_object \
14026with_gnu_ld \
14027allow_undefined_flag \
14028no_undefined_flag \
14029hardcode_libdir_flag_spec \
14030hardcode_libdir_separator \
14031exclude_expsyms \
14032include_expsyms \
14033file_list_spec \
14034variables_saved_for_relink \
14035libname_spec \
14036library_names_spec \
14037soname_spec \
14038install_override_mode \
14039finish_eval \
14040old_striplib \
14041striplib; do
14042    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14043    *[\\\\\\\`\\"\\\$]*)
14044      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14045      ;;
14046    *)
14047      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14048      ;;
14049    esac
14050done
14051
14052# Double-quote double-evaled strings.
14053for var in reload_cmds \
14054old_postinstall_cmds \
14055old_postuninstall_cmds \
14056old_archive_cmds \
14057extract_expsyms_cmds \
14058old_archive_from_new_cmds \
14059old_archive_from_expsyms_cmds \
14060archive_cmds \
14061archive_expsym_cmds \
14062module_cmds \
14063module_expsym_cmds \
14064export_symbols_cmds \
14065prelink_cmds \
14066postlink_cmds \
14067postinstall_cmds \
14068postuninstall_cmds \
14069finish_cmds \
14070sys_lib_search_path_spec \
14071configure_time_dlsearch_path \
14072configure_time_lt_sys_library_path; do
14073    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14074    *[\\\\\\\`\\"\\\$]*)
14075      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14076      ;;
14077    *)
14078      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14079      ;;
14080    esac
14081done
14082
14083ac_aux_dir='$ac_aux_dir'
14084
14085# See if we are running on zsh, and set the options that allow our
14086# commands through without removal of \ escapes INIT.
14087if test -n "\${ZSH_VERSION+set}"; then
14088   setopt NO_GLOB_SUBST
14089fi
14090
14091
14092    PACKAGE='$PACKAGE'
14093    VERSION='$VERSION'
14094    RM='$RM'
14095    ofile='$ofile'
14096
14097
14098
14099
14100_ACEOF
14101
14102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14103
14104# Handling of arguments.
14105for ac_config_target in $ac_config_targets
14106do
14107  case $ac_config_target in
14108    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
14109    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14110    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14111    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14112    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14113    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
14114    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14115    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
14116
14117  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14118  esac
14119done
14120
14121
14122# If the user did not use the arguments to specify the items to instantiate,
14123# then the envvar interface is used.  Set only those that are not.
14124# We use the long form for the default assignment because of an extremely
14125# bizarre bug on SunOS 4.1.3.
14126if $ac_need_defaults; then
14127  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14128  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14129  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14130fi
14131
14132# Have a temporary directory for convenience.  Make it in the build tree
14133# simply because there is no reason against having it here, and in addition,
14134# creating and moving files from /tmp can sometimes cause problems.
14135# Hook for its removal unless debugging.
14136# Note that there is a small window in which the directory will not be cleaned:
14137# after its creation but before its name has been assigned to `$tmp'.
14138$debug ||
14139{
14140  tmp= ac_tmp=
14141  trap 'exit_status=$?
14142  : "${ac_tmp:=$tmp}"
14143  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14144' 0
14145  trap 'as_fn_exit 1' 1 2 13 15
14146}
14147# Create a (secure) tmp directory for tmp files.
14148
14149{
14150  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14151  test -d "$tmp"
14152}  ||
14153{
14154  tmp=./conf$$-$RANDOM
14155  (umask 077 && mkdir "$tmp")
14156} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14157ac_tmp=$tmp
14158
14159# Set up the scripts for CONFIG_FILES section.
14160# No need to generate them if there are no CONFIG_FILES.
14161# This happens for instance with `./config.status config.h'.
14162if test -n "$CONFIG_FILES"; then
14163
14164
14165ac_cr=`echo X | tr X '\015'`
14166# On cygwin, bash can eat \r inside `` if the user requested igncr.
14167# But we know of no other shell where ac_cr would be empty at this
14168# point, so we can use a bashism as a fallback.
14169if test "x$ac_cr" = x; then
14170  eval ac_cr=\$\'\\r\'
14171fi
14172ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14173if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14174  ac_cs_awk_cr='\\r'
14175else
14176  ac_cs_awk_cr=$ac_cr
14177fi
14178
14179echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14180_ACEOF
14181
14182
14183{
14184  echo "cat >conf$$subs.awk <<_ACEOF" &&
14185  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14186  echo "_ACEOF"
14187} >conf$$subs.sh ||
14188  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14189ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14190ac_delim='%!_!# '
14191for ac_last_try in false false false false false :; do
14192  . ./conf$$subs.sh ||
14193    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14194
14195  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14196  if test $ac_delim_n = $ac_delim_num; then
14197    break
14198  elif $ac_last_try; then
14199    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14200  else
14201    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14202  fi
14203done
14204rm -f conf$$subs.sh
14205
14206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14207cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14208_ACEOF
14209sed -n '
14210h
14211s/^/S["/; s/!.*/"]=/
14212p
14213g
14214s/^[^!]*!//
14215:repl
14216t repl
14217s/'"$ac_delim"'$//
14218t delim
14219:nl
14220h
14221s/\(.\{148\}\)..*/\1/
14222t more1
14223s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14224p
14225n
14226b repl
14227:more1
14228s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14229p
14230g
14231s/.\{148\}//
14232t nl
14233:delim
14234h
14235s/\(.\{148\}\)..*/\1/
14236t more2
14237s/["\\]/\\&/g; s/^/"/; s/$/"/
14238p
14239b
14240:more2
14241s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14242p
14243g
14244s/.\{148\}//
14245t delim
14246' <conf$$subs.awk | sed '
14247/^[^""]/{
14248  N
14249  s/\n//
14250}
14251' >>$CONFIG_STATUS || ac_write_fail=1
14252rm -f conf$$subs.awk
14253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254_ACAWK
14255cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14256  for (key in S) S_is_set[key] = 1
14257  FS = ""
14258
14259}
14260{
14261  line = $ 0
14262  nfields = split(line, field, "@")
14263  substed = 0
14264  len = length(field[1])
14265  for (i = 2; i < nfields; i++) {
14266    key = field[i]
14267    keylen = length(key)
14268    if (S_is_set[key]) {
14269      value = S[key]
14270      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14271      len += length(value) + length(field[++i])
14272      substed = 1
14273    } else
14274      len += 1 + keylen
14275  }
14276
14277  print line
14278}
14279
14280_ACAWK
14281_ACEOF
14282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14283if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14284  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14285else
14286  cat
14287fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14288  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14289_ACEOF
14290
14291# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14292# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14293# trailing colons and then remove the whole line if VPATH becomes empty
14294# (actually we leave an empty line to preserve line numbers).
14295if test "x$srcdir" = x.; then
14296  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14297h
14298s///
14299s/^/:/
14300s/[	 ]*$/:/
14301s/:\$(srcdir):/:/g
14302s/:\${srcdir}:/:/g
14303s/:@srcdir@:/:/g
14304s/^:*//
14305s/:*$//
14306x
14307s/\(=[	 ]*\).*/\1/
14308G
14309s/\n//
14310s/^[^=]*=[	 ]*$//
14311}'
14312fi
14313
14314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14315fi # test -n "$CONFIG_FILES"
14316
14317# Set up the scripts for CONFIG_HEADERS section.
14318# No need to generate them if there are no CONFIG_HEADERS.
14319# This happens for instance with `./config.status Makefile'.
14320if test -n "$CONFIG_HEADERS"; then
14321cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14322BEGIN {
14323_ACEOF
14324
14325# Transform confdefs.h into an awk script `defines.awk', embedded as
14326# here-document in config.status, that substitutes the proper values into
14327# config.h.in to produce config.h.
14328
14329# Create a delimiter string that does not exist in confdefs.h, to ease
14330# handling of long lines.
14331ac_delim='%!_!# '
14332for ac_last_try in false false :; do
14333  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14334  if test -z "$ac_tt"; then
14335    break
14336  elif $ac_last_try; then
14337    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14338  else
14339    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14340  fi
14341done
14342
14343# For the awk script, D is an array of macro values keyed by name,
14344# likewise P contains macro parameters if any.  Preserve backslash
14345# newline sequences.
14346
14347ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14348sed -n '
14349s/.\{148\}/&'"$ac_delim"'/g
14350t rset
14351:rset
14352s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14353t def
14354d
14355:def
14356s/\\$//
14357t bsnl
14358s/["\\]/\\&/g
14359s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14360D["\1"]=" \3"/p
14361s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14362d
14363:bsnl
14364s/["\\]/\\&/g
14365s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14366D["\1"]=" \3\\\\\\n"\\/p
14367t cont
14368s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14369t cont
14370d
14371:cont
14372n
14373s/.\{148\}/&'"$ac_delim"'/g
14374t clear
14375:clear
14376s/\\$//
14377t bsnlc
14378s/["\\]/\\&/g; s/^/"/; s/$/"/p
14379d
14380:bsnlc
14381s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14382b cont
14383' <confdefs.h | sed '
14384s/'"$ac_delim"'/"\\\
14385"/g' >>$CONFIG_STATUS || ac_write_fail=1
14386
14387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14388  for (key in D) D_is_set[key] = 1
14389  FS = ""
14390}
14391/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14392  line = \$ 0
14393  split(line, arg, " ")
14394  if (arg[1] == "#") {
14395    defundef = arg[2]
14396    mac1 = arg[3]
14397  } else {
14398    defundef = substr(arg[1], 2)
14399    mac1 = arg[2]
14400  }
14401  split(mac1, mac2, "(") #)
14402  macro = mac2[1]
14403  prefix = substr(line, 1, index(line, defundef) - 1)
14404  if (D_is_set[macro]) {
14405    # Preserve the white space surrounding the "#".
14406    print prefix "define", macro P[macro] D[macro]
14407    next
14408  } else {
14409    # Replace #undef with comments.  This is necessary, for example,
14410    # in the case of _POSIX_SOURCE, which is predefined and required
14411    # on some systems where configure will not decide to define it.
14412    if (defundef == "undef") {
14413      print "/*", prefix defundef, macro, "*/"
14414      next
14415    }
14416  }
14417}
14418{ print }
14419_ACAWK
14420_ACEOF
14421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14422  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14423fi # test -n "$CONFIG_HEADERS"
14424
14425
14426eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14427shift
14428for ac_tag
14429do
14430  case $ac_tag in
14431  :[FHLC]) ac_mode=$ac_tag; continue;;
14432  esac
14433  case $ac_mode$ac_tag in
14434  :[FHL]*:*);;
14435  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14436  :[FH]-) ac_tag=-:-;;
14437  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14438  esac
14439  ac_save_IFS=$IFS
14440  IFS=:
14441  set x $ac_tag
14442  IFS=$ac_save_IFS
14443  shift
14444  ac_file=$1
14445  shift
14446
14447  case $ac_mode in
14448  :L) ac_source=$1;;
14449  :[FH])
14450    ac_file_inputs=
14451    for ac_f
14452    do
14453      case $ac_f in
14454      -) ac_f="$ac_tmp/stdin";;
14455      *) # Look for the file first in the build tree, then in the source tree
14456	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14457	 # because $ac_f cannot contain `:'.
14458	 test -f "$ac_f" ||
14459	   case $ac_f in
14460	   [\\/$]*) false;;
14461	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14462	   esac ||
14463	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14464      esac
14465      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14466      as_fn_append ac_file_inputs " '$ac_f'"
14467    done
14468
14469    # Let's still pretend it is `configure' which instantiates (i.e., don't
14470    # use $as_me), people would be surprised to read:
14471    #    /* config.h.  Generated by config.status.  */
14472    configure_input='Generated from '`
14473	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14474	`' by configure.'
14475    if test x"$ac_file" != x-; then
14476      configure_input="$ac_file.  $configure_input"
14477      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14478$as_echo "$as_me: creating $ac_file" >&6;}
14479    fi
14480    # Neutralize special characters interpreted by sed in replacement strings.
14481    case $configure_input in #(
14482    *\&* | *\|* | *\\* )
14483       ac_sed_conf_input=`$as_echo "$configure_input" |
14484       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14485    *) ac_sed_conf_input=$configure_input;;
14486    esac
14487
14488    case $ac_tag in
14489    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14490      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14491    esac
14492    ;;
14493  esac
14494
14495  ac_dir=`$as_dirname -- "$ac_file" ||
14496$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14497	 X"$ac_file" : 'X\(//\)[^/]' \| \
14498	 X"$ac_file" : 'X\(//\)$' \| \
14499	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14500$as_echo X"$ac_file" |
14501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14502	    s//\1/
14503	    q
14504	  }
14505	  /^X\(\/\/\)[^/].*/{
14506	    s//\1/
14507	    q
14508	  }
14509	  /^X\(\/\/\)$/{
14510	    s//\1/
14511	    q
14512	  }
14513	  /^X\(\/\).*/{
14514	    s//\1/
14515	    q
14516	  }
14517	  s/.*/./; q'`
14518  as_dir="$ac_dir"; as_fn_mkdir_p
14519  ac_builddir=.
14520
14521case "$ac_dir" in
14522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14523*)
14524  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14525  # A ".." for each directory in $ac_dir_suffix.
14526  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14527  case $ac_top_builddir_sub in
14528  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14529  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14530  esac ;;
14531esac
14532ac_abs_top_builddir=$ac_pwd
14533ac_abs_builddir=$ac_pwd$ac_dir_suffix
14534# for backward compatibility:
14535ac_top_builddir=$ac_top_build_prefix
14536
14537case $srcdir in
14538  .)  # We are building in place.
14539    ac_srcdir=.
14540    ac_top_srcdir=$ac_top_builddir_sub
14541    ac_abs_top_srcdir=$ac_pwd ;;
14542  [\\/]* | ?:[\\/]* )  # Absolute name.
14543    ac_srcdir=$srcdir$ac_dir_suffix;
14544    ac_top_srcdir=$srcdir
14545    ac_abs_top_srcdir=$srcdir ;;
14546  *) # Relative name.
14547    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14548    ac_top_srcdir=$ac_top_build_prefix$srcdir
14549    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14550esac
14551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14552
14553
14554  case $ac_mode in
14555  :F)
14556  #
14557  # CONFIG_FILE
14558  #
14559
14560  case $INSTALL in
14561  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14562  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14563  esac
14564  ac_MKDIR_P=$MKDIR_P
14565  case $MKDIR_P in
14566  [\\/$]* | ?:[\\/]* ) ;;
14567  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14568  esac
14569_ACEOF
14570
14571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14572# If the template does not know about datarootdir, expand it.
14573# FIXME: This hack should be removed a few years after 2.60.
14574ac_datarootdir_hack=; ac_datarootdir_seen=
14575ac_sed_dataroot='
14576/datarootdir/ {
14577  p
14578  q
14579}
14580/@datadir@/p
14581/@docdir@/p
14582/@infodir@/p
14583/@localedir@/p
14584/@mandir@/p'
14585case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14586*datarootdir*) ac_datarootdir_seen=yes;;
14587*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14588  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14589$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14590_ACEOF
14591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14592  ac_datarootdir_hack='
14593  s&@datadir@&$datadir&g
14594  s&@docdir@&$docdir&g
14595  s&@infodir@&$infodir&g
14596  s&@localedir@&$localedir&g
14597  s&@mandir@&$mandir&g
14598  s&\\\${datarootdir}&$datarootdir&g' ;;
14599esac
14600_ACEOF
14601
14602# Neutralize VPATH when `$srcdir' = `.'.
14603# Shell code in configure.ac might set extrasub.
14604# FIXME: do we really want to maintain this feature?
14605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606ac_sed_extra="$ac_vpsub
14607$extrasub
14608_ACEOF
14609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14610:t
14611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14612s|@configure_input@|$ac_sed_conf_input|;t t
14613s&@top_builddir@&$ac_top_builddir_sub&;t t
14614s&@top_build_prefix@&$ac_top_build_prefix&;t t
14615s&@srcdir@&$ac_srcdir&;t t
14616s&@abs_srcdir@&$ac_abs_srcdir&;t t
14617s&@top_srcdir@&$ac_top_srcdir&;t t
14618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14619s&@builddir@&$ac_builddir&;t t
14620s&@abs_builddir@&$ac_abs_builddir&;t t
14621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14622s&@INSTALL@&$ac_INSTALL&;t t
14623s&@MKDIR_P@&$ac_MKDIR_P&;t t
14624$ac_datarootdir_hack
14625"
14626eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14627  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14628
14629test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14630  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14631  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14632      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14634which seems to be undefined.  Please make sure it is defined" >&5
14635$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14636which seems to be undefined.  Please make sure it is defined" >&2;}
14637
14638  rm -f "$ac_tmp/stdin"
14639  case $ac_file in
14640  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14641  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14642  esac \
14643  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14644 ;;
14645  :H)
14646  #
14647  # CONFIG_HEADER
14648  #
14649  if test x"$ac_file" != x-; then
14650    {
14651      $as_echo "/* $configure_input  */" \
14652      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14653    } >"$ac_tmp/config.h" \
14654      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14655    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14656      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14657$as_echo "$as_me: $ac_file is unchanged" >&6;}
14658    else
14659      rm -f "$ac_file"
14660      mv "$ac_tmp/config.h" "$ac_file" \
14661	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14662    fi
14663  else
14664    $as_echo "/* $configure_input  */" \
14665      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14666      || as_fn_error $? "could not create -" "$LINENO" 5
14667  fi
14668# Compute "$ac_file"'s index in $config_headers.
14669_am_arg="$ac_file"
14670_am_stamp_count=1
14671for _am_header in $config_headers :; do
14672  case $_am_header in
14673    $_am_arg | $_am_arg:* )
14674      break ;;
14675    * )
14676      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14677  esac
14678done
14679echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14680$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14681	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14682	 X"$_am_arg" : 'X\(//\)$' \| \
14683	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14684$as_echo X"$_am_arg" |
14685    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14686	    s//\1/
14687	    q
14688	  }
14689	  /^X\(\/\/\)[^/].*/{
14690	    s//\1/
14691	    q
14692	  }
14693	  /^X\(\/\/\)$/{
14694	    s//\1/
14695	    q
14696	  }
14697	  /^X\(\/\).*/{
14698	    s//\1/
14699	    q
14700	  }
14701	  s/.*/./; q'`/stamp-h$_am_stamp_count
14702 ;;
14703
14704  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14705$as_echo "$as_me: executing $ac_file commands" >&6;}
14706 ;;
14707  esac
14708
14709
14710  case $ac_file$ac_mode in
14711    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14712  # Older Autoconf quotes --file arguments for eval, but not when files
14713  # are listed without --file.  Let's play safe and only enable the eval
14714  # if we detect the quoting.
14715  # TODO: see whether this extra hack can be removed once we start
14716  # requiring Autoconf 2.70 or later.
14717  case $CONFIG_FILES in #(
14718  *\'*) :
14719    eval set x "$CONFIG_FILES" ;; #(
14720  *) :
14721    set x $CONFIG_FILES ;; #(
14722  *) :
14723     ;;
14724esac
14725  shift
14726  # Used to flag and report bootstrapping failures.
14727  am_rc=0
14728  for am_mf
14729  do
14730    # Strip MF so we end up with the name of the file.
14731    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14732    # Check whether this is an Automake generated Makefile which includes
14733    # dependency-tracking related rules and includes.
14734    # Grep'ing the whole file directly is not great: AIX grep has a line
14735    # limit of 2048, but all sed's we know have understand at least 4000.
14736    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14737      || continue
14738    am_dirpart=`$as_dirname -- "$am_mf" ||
14739$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14740	 X"$am_mf" : 'X\(//\)[^/]' \| \
14741	 X"$am_mf" : 'X\(//\)$' \| \
14742	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14743$as_echo X"$am_mf" |
14744    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14745	    s//\1/
14746	    q
14747	  }
14748	  /^X\(\/\/\)[^/].*/{
14749	    s//\1/
14750	    q
14751	  }
14752	  /^X\(\/\/\)$/{
14753	    s//\1/
14754	    q
14755	  }
14756	  /^X\(\/\).*/{
14757	    s//\1/
14758	    q
14759	  }
14760	  s/.*/./; q'`
14761    am_filepart=`$as_basename -- "$am_mf" ||
14762$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14763	 X"$am_mf" : 'X\(//\)$' \| \
14764	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14765$as_echo X/"$am_mf" |
14766    sed '/^.*\/\([^/][^/]*\)\/*$/{
14767	    s//\1/
14768	    q
14769	  }
14770	  /^X\/\(\/\/\)$/{
14771	    s//\1/
14772	    q
14773	  }
14774	  /^X\/\(\/\).*/{
14775	    s//\1/
14776	    q
14777	  }
14778	  s/.*/./; q'`
14779    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14780      && sed -e '/# am--include-marker/d' "$am_filepart" \
14781        | $MAKE -f - am--depfiles" >&5
14782   (cd "$am_dirpart" \
14783      && sed -e '/# am--include-marker/d' "$am_filepart" \
14784        | $MAKE -f - am--depfiles) >&5 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); } || am_rc=$?
14788  done
14789  if test $am_rc -ne 0; then
14790    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14792as_fn_error $? "Something went wrong bootstrapping makefile fragments
14793    for automatic dependency tracking.  Try re-running configure with the
14794    '--disable-dependency-tracking' option to at least be able to build
14795    the package (albeit without support for automatic dependency tracking).
14796See \`config.log' for more details" "$LINENO" 5; }
14797  fi
14798  { am_dirpart=; unset am_dirpart;}
14799  { am_filepart=; unset am_filepart;}
14800  { am_mf=; unset am_mf;}
14801  { am_rc=; unset am_rc;}
14802  rm -f conftest-deps.mk
14803}
14804 ;;
14805    "libtool":C)
14806
14807    # See if we are running on zsh, and set the options that allow our
14808    # commands through without removal of \ escapes.
14809    if test -n "${ZSH_VERSION+set}"; then
14810      setopt NO_GLOB_SUBST
14811    fi
14812
14813    cfgfile=${ofile}T
14814    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14815    $RM "$cfgfile"
14816
14817    cat <<_LT_EOF >> "$cfgfile"
14818#! $SHELL
14819# Generated automatically by $as_me ($PACKAGE) $VERSION
14820# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14821# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14822
14823# Provide generalized library-building support services.
14824# Written by Gordon Matzigkeit, 1996
14825
14826# Copyright (C) 2014 Free Software Foundation, Inc.
14827# This is free software; see the source for copying conditions.  There is NO
14828# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14829
14830# GNU Libtool is free software; you can redistribute it and/or modify
14831# it under the terms of the GNU General Public License as published by
14832# the Free Software Foundation; either version 2 of of the License, or
14833# (at your option) any later version.
14834#
14835# As a special exception to the GNU General Public License, if you
14836# distribute this file as part of a program or library that is built
14837# using GNU Libtool, you may include this file under the  same
14838# distribution terms that you use for the rest of that program.
14839#
14840# GNU Libtool is distributed in the hope that it will be useful, but
14841# WITHOUT ANY WARRANTY; without even the implied warranty of
14842# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14843# GNU General Public License for more details.
14844#
14845# You should have received a copy of the GNU General Public License
14846# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14847
14848
14849# The names of the tagged configurations supported by this script.
14850available_tags=''
14851
14852# Configured defaults for sys_lib_dlsearch_path munging.
14853: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14854
14855# ### BEGIN LIBTOOL CONFIG
14856
14857# Which release of libtool.m4 was used?
14858macro_version=$macro_version
14859macro_revision=$macro_revision
14860
14861# Whether or not to build shared libraries.
14862build_libtool_libs=$enable_shared
14863
14864# Whether or not to build static libraries.
14865build_old_libs=$enable_static
14866
14867# What type of objects to build.
14868pic_mode=$pic_mode
14869
14870# Whether or not to optimize for fast installation.
14871fast_install=$enable_fast_install
14872
14873# Shared archive member basename,for filename based shared library versioning on AIX.
14874shared_archive_member_spec=$shared_archive_member_spec
14875
14876# Shell to use when invoking shell scripts.
14877SHELL=$lt_SHELL
14878
14879# An echo program that protects backslashes.
14880ECHO=$lt_ECHO
14881
14882# The PATH separator for the build system.
14883PATH_SEPARATOR=$lt_PATH_SEPARATOR
14884
14885# The host system.
14886host_alias=$host_alias
14887host=$host
14888host_os=$host_os
14889
14890# The build system.
14891build_alias=$build_alias
14892build=$build
14893build_os=$build_os
14894
14895# A sed program that does not truncate output.
14896SED=$lt_SED
14897
14898# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14899Xsed="\$SED -e 1s/^X//"
14900
14901# A grep program that handles long lines.
14902GREP=$lt_GREP
14903
14904# An ERE matcher.
14905EGREP=$lt_EGREP
14906
14907# A literal string matcher.
14908FGREP=$lt_FGREP
14909
14910# A BSD- or MS-compatible name lister.
14911NM=$lt_NM
14912
14913# Whether we need soft or hard links.
14914LN_S=$lt_LN_S
14915
14916# What is the maximum length of a command?
14917max_cmd_len=$max_cmd_len
14918
14919# Object file suffix (normally "o").
14920objext=$ac_objext
14921
14922# Executable file suffix (normally "").
14923exeext=$exeext
14924
14925# whether the shell understands "unset".
14926lt_unset=$lt_unset
14927
14928# turn spaces into newlines.
14929SP2NL=$lt_lt_SP2NL
14930
14931# turn newlines into spaces.
14932NL2SP=$lt_lt_NL2SP
14933
14934# convert \$build file names to \$host format.
14935to_host_file_cmd=$lt_cv_to_host_file_cmd
14936
14937# convert \$build files to toolchain format.
14938to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14939
14940# An object symbol dumper.
14941OBJDUMP=$lt_OBJDUMP
14942
14943# Method to check whether dependent libraries are shared objects.
14944deplibs_check_method=$lt_deplibs_check_method
14945
14946# Command to use when deplibs_check_method = "file_magic".
14947file_magic_cmd=$lt_file_magic_cmd
14948
14949# How to find potential files when deplibs_check_method = "file_magic".
14950file_magic_glob=$lt_file_magic_glob
14951
14952# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14953want_nocaseglob=$lt_want_nocaseglob
14954
14955# DLL creation program.
14956DLLTOOL=$lt_DLLTOOL
14957
14958# Command to associate shared and link libraries.
14959sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14960
14961# The archiver.
14962AR=$lt_AR
14963
14964# Flags to create an archive.
14965AR_FLAGS=$lt_AR_FLAGS
14966
14967# How to feed a file listing to the archiver.
14968archiver_list_spec=$lt_archiver_list_spec
14969
14970# A symbol stripping program.
14971STRIP=$lt_STRIP
14972
14973# Commands used to install an old-style archive.
14974RANLIB=$lt_RANLIB
14975old_postinstall_cmds=$lt_old_postinstall_cmds
14976old_postuninstall_cmds=$lt_old_postuninstall_cmds
14977
14978# Whether to use a lock for old archive extraction.
14979lock_old_archive_extraction=$lock_old_archive_extraction
14980
14981# A C compiler.
14982LTCC=$lt_CC
14983
14984# LTCC compiler flags.
14985LTCFLAGS=$lt_CFLAGS
14986
14987# Take the output of nm and produce a listing of raw symbols and C names.
14988global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14989
14990# Transform the output of nm in a proper C declaration.
14991global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14992
14993# Transform the output of nm into a list of symbols to manually relocate.
14994global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14995
14996# Transform the output of nm in a C name address pair.
14997global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14998
14999# Transform the output of nm in a C name address pair when lib prefix is needed.
15000global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15001
15002# The name lister interface.
15003nm_interface=$lt_lt_cv_nm_interface
15004
15005# Specify filename containing input files for \$NM.
15006nm_file_list_spec=$lt_nm_file_list_spec
15007
15008# The root where to search for dependent libraries,and where our libraries should be installed.
15009lt_sysroot=$lt_sysroot
15010
15011# Command to truncate a binary pipe.
15012lt_truncate_bin=$lt_lt_cv_truncate_bin
15013
15014# The name of the directory that contains temporary libtool files.
15015objdir=$objdir
15016
15017# Used to examine libraries when file_magic_cmd begins with "file".
15018MAGIC_CMD=$MAGIC_CMD
15019
15020# Must we lock files when doing compilation?
15021need_locks=$lt_need_locks
15022
15023# Manifest tool.
15024MANIFEST_TOOL=$lt_MANIFEST_TOOL
15025
15026# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15027DSYMUTIL=$lt_DSYMUTIL
15028
15029# Tool to change global to local symbols on Mac OS X.
15030NMEDIT=$lt_NMEDIT
15031
15032# Tool to manipulate fat objects and archives on Mac OS X.
15033LIPO=$lt_LIPO
15034
15035# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15036OTOOL=$lt_OTOOL
15037
15038# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15039OTOOL64=$lt_OTOOL64
15040
15041# Old archive suffix (normally "a").
15042libext=$libext
15043
15044# Shared library suffix (normally ".so").
15045shrext_cmds=$lt_shrext_cmds
15046
15047# The commands to extract the exported symbol list from a shared archive.
15048extract_expsyms_cmds=$lt_extract_expsyms_cmds
15049
15050# Variables whose values should be saved in libtool wrapper scripts and
15051# restored at link time.
15052variables_saved_for_relink=$lt_variables_saved_for_relink
15053
15054# Do we need the "lib" prefix for modules?
15055need_lib_prefix=$need_lib_prefix
15056
15057# Do we need a version for libraries?
15058need_version=$need_version
15059
15060# Library versioning type.
15061version_type=$version_type
15062
15063# Shared library runtime path variable.
15064runpath_var=$runpath_var
15065
15066# Shared library path variable.
15067shlibpath_var=$shlibpath_var
15068
15069# Is shlibpath searched before the hard-coded library search path?
15070shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15071
15072# Format of library name prefix.
15073libname_spec=$lt_libname_spec
15074
15075# List of archive names.  First name is the real one, the rest are links.
15076# The last name is the one that the linker finds with -lNAME
15077library_names_spec=$lt_library_names_spec
15078
15079# The coded name of the library, if different from the real name.
15080soname_spec=$lt_soname_spec
15081
15082# Permission mode override for installation of shared libraries.
15083install_override_mode=$lt_install_override_mode
15084
15085# Command to use after installation of a shared archive.
15086postinstall_cmds=$lt_postinstall_cmds
15087
15088# Command to use after uninstallation of a shared archive.
15089postuninstall_cmds=$lt_postuninstall_cmds
15090
15091# Commands used to finish a libtool library installation in a directory.
15092finish_cmds=$lt_finish_cmds
15093
15094# As "finish_cmds", except a single script fragment to be evaled but
15095# not shown.
15096finish_eval=$lt_finish_eval
15097
15098# Whether we should hardcode library paths into libraries.
15099hardcode_into_libs=$hardcode_into_libs
15100
15101# Compile-time system search path for libraries.
15102sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15103
15104# Detected run-time system search path for libraries.
15105sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15106
15107# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15108configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15109
15110# Whether dlopen is supported.
15111dlopen_support=$enable_dlopen
15112
15113# Whether dlopen of programs is supported.
15114dlopen_self=$enable_dlopen_self
15115
15116# Whether dlopen of statically linked programs is supported.
15117dlopen_self_static=$enable_dlopen_self_static
15118
15119# Commands to strip libraries.
15120old_striplib=$lt_old_striplib
15121striplib=$lt_striplib
15122
15123
15124# The linker used to build libraries.
15125LD=$lt_LD
15126
15127# How to create reloadable object files.
15128reload_flag=$lt_reload_flag
15129reload_cmds=$lt_reload_cmds
15130
15131# Commands used to build an old-style archive.
15132old_archive_cmds=$lt_old_archive_cmds
15133
15134# A language specific compiler.
15135CC=$lt_compiler
15136
15137# Is the compiler the GNU compiler?
15138with_gcc=$GCC
15139
15140# Compiler flag to turn off builtin functions.
15141no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15142
15143# Additional compiler flags for building library objects.
15144pic_flag=$lt_lt_prog_compiler_pic
15145
15146# How to pass a linker flag through the compiler.
15147wl=$lt_lt_prog_compiler_wl
15148
15149# Compiler flag to prevent dynamic linking.
15150link_static_flag=$lt_lt_prog_compiler_static
15151
15152# Does compiler simultaneously support -c and -o options?
15153compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15154
15155# Whether or not to add -lc for building shared libraries.
15156build_libtool_need_lc=$archive_cmds_need_lc
15157
15158# Whether or not to disallow shared libs when runtime libs are static.
15159allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15160
15161# Compiler flag to allow reflexive dlopens.
15162export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15163
15164# Compiler flag to generate shared objects directly from archives.
15165whole_archive_flag_spec=$lt_whole_archive_flag_spec
15166
15167# Whether the compiler copes with passing no objects directly.
15168compiler_needs_object=$lt_compiler_needs_object
15169
15170# Create an old-style archive from a shared archive.
15171old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15172
15173# Create a temporary old-style archive to link instead of a shared archive.
15174old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15175
15176# Commands used to build a shared archive.
15177archive_cmds=$lt_archive_cmds
15178archive_expsym_cmds=$lt_archive_expsym_cmds
15179
15180# Commands used to build a loadable module if different from building
15181# a shared archive.
15182module_cmds=$lt_module_cmds
15183module_expsym_cmds=$lt_module_expsym_cmds
15184
15185# Whether we are building with GNU ld or not.
15186with_gnu_ld=$lt_with_gnu_ld
15187
15188# Flag that allows shared libraries with undefined symbols to be built.
15189allow_undefined_flag=$lt_allow_undefined_flag
15190
15191# Flag that enforces no undefined symbols.
15192no_undefined_flag=$lt_no_undefined_flag
15193
15194# Flag to hardcode \$libdir into a binary during linking.
15195# This must work even if \$libdir does not exist
15196hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15197
15198# Whether we need a single "-rpath" flag with a separated argument.
15199hardcode_libdir_separator=$lt_hardcode_libdir_separator
15200
15201# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15202# DIR into the resulting binary.
15203hardcode_direct=$hardcode_direct
15204
15205# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15206# DIR into the resulting binary and the resulting library dependency is
15207# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15208# library is relocated.
15209hardcode_direct_absolute=$hardcode_direct_absolute
15210
15211# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15212# into the resulting binary.
15213hardcode_minus_L=$hardcode_minus_L
15214
15215# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15216# into the resulting binary.
15217hardcode_shlibpath_var=$hardcode_shlibpath_var
15218
15219# Set to "yes" if building a shared library automatically hardcodes DIR
15220# into the library and all subsequent libraries and executables linked
15221# against it.
15222hardcode_automatic=$hardcode_automatic
15223
15224# Set to yes if linker adds runtime paths of dependent libraries
15225# to runtime path list.
15226inherit_rpath=$inherit_rpath
15227
15228# Whether libtool must link a program against all its dependency libraries.
15229link_all_deplibs=$link_all_deplibs
15230
15231# Set to "yes" if exported symbols are required.
15232always_export_symbols=$always_export_symbols
15233
15234# The commands to list exported symbols.
15235export_symbols_cmds=$lt_export_symbols_cmds
15236
15237# Symbols that should not be listed in the preloaded symbols.
15238exclude_expsyms=$lt_exclude_expsyms
15239
15240# Symbols that must always be exported.
15241include_expsyms=$lt_include_expsyms
15242
15243# Commands necessary for linking programs (against libraries) with templates.
15244prelink_cmds=$lt_prelink_cmds
15245
15246# Commands necessary for finishing linking programs.
15247postlink_cmds=$lt_postlink_cmds
15248
15249# Specify filename containing input files.
15250file_list_spec=$lt_file_list_spec
15251
15252# How to hardcode a shared library path into an executable.
15253hardcode_action=$hardcode_action
15254
15255# ### END LIBTOOL CONFIG
15256
15257_LT_EOF
15258
15259    cat <<'_LT_EOF' >> "$cfgfile"
15260
15261# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15262
15263# func_munge_path_list VARIABLE PATH
15264# -----------------------------------
15265# VARIABLE is name of variable containing _space_ separated list of
15266# directories to be munged by the contents of PATH, which is string
15267# having a format:
15268# "DIR[:DIR]:"
15269#       string "DIR[ DIR]" will be prepended to VARIABLE
15270# ":DIR[:DIR]"
15271#       string "DIR[ DIR]" will be appended to VARIABLE
15272# "DIRP[:DIRP]::[DIRA:]DIRA"
15273#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15274#       "DIRA[ DIRA]" will be appended to VARIABLE
15275# "DIR[:DIR]"
15276#       VARIABLE will be replaced by "DIR[ DIR]"
15277func_munge_path_list ()
15278{
15279    case x$2 in
15280    x)
15281        ;;
15282    *:)
15283        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15284        ;;
15285    x:*)
15286        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15287        ;;
15288    *::*)
15289        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15290        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15291        ;;
15292    *)
15293        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15294        ;;
15295    esac
15296}
15297
15298
15299# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15300func_cc_basename ()
15301{
15302    for cc_temp in $*""; do
15303      case $cc_temp in
15304        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15305        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15306        \-*) ;;
15307        *) break;;
15308      esac
15309    done
15310    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15311}
15312
15313
15314# ### END FUNCTIONS SHARED WITH CONFIGURE
15315
15316_LT_EOF
15317
15318  case $host_os in
15319  aix3*)
15320    cat <<\_LT_EOF >> "$cfgfile"
15321# AIX sometimes has problems with the GCC collect2 program.  For some
15322# reason, if we set the COLLECT_NAMES environment variable, the problems
15323# vanish in a puff of smoke.
15324if test set != "${COLLECT_NAMES+set}"; then
15325  COLLECT_NAMES=
15326  export COLLECT_NAMES
15327fi
15328_LT_EOF
15329    ;;
15330  esac
15331
15332
15333ltmain=$ac_aux_dir/ltmain.sh
15334
15335
15336  # We use sed instead of cat because bash on DJGPP gets confused if
15337  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15338  # text mode, it properly converts lines to CR/LF.  This bash problem
15339  # is reportedly fixed, but why not run on old versions too?
15340  sed '$q' "$ltmain" >> "$cfgfile" \
15341     || (rm -f "$cfgfile"; exit 1)
15342
15343   mv -f "$cfgfile" "$ofile" ||
15344    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15345  chmod +x "$ofile"
15346
15347 ;;
15348
15349  esac
15350done # for ac_tag
15351
15352
15353as_fn_exit 0
15354_ACEOF
15355ac_clean_files=$ac_clean_files_save
15356
15357test $ac_write_fail = 0 ||
15358  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15359
15360
15361# configure is writing to config.log, and then calls config.status.
15362# config.status does its own redirection, appending to config.log.
15363# Unfortunately, on DOS this fails, as config.log is still kept open
15364# by configure, so config.status won't be able to write to it; its
15365# output is simply discarded.  So we exec the FD to /dev/null,
15366# effectively closing config.log, so it can be properly (re)opened and
15367# appended to by config.status.  When coming back to configure, we
15368# need to make the FD available again.
15369if test "$no_create" != yes; then
15370  ac_cs_success=:
15371  ac_config_status_args=
15372  test "$silent" = yes &&
15373    ac_config_status_args="$ac_config_status_args --quiet"
15374  exec 5>/dev/null
15375  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15376  exec 5>>config.log
15377  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15378  # would make configure fail if this is the last instruction.
15379  $ac_cs_success || as_fn_exit 1
15380fi
15381if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15382  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15383$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15384fi
15385
15386