xref: /iperf/configure (revision 19dcd39d)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for iperf 3-CURRENT.
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-CURRENT'
594PACKAGE_STRING='iperf 3-CURRENT'
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
638CPP
639OTOOL64
640OTOOL
641LIPO
642NMEDIT
643DSYMUTIL
644MANIFEST_TOOL
645ac_ct_AR
646AR
647DLLTOOL
648OBJDUMP
649NM
650ac_ct_DUMPBIN
651DUMPBIN
652LD
653FGREP
654EGREP
655GREP
656SED
657LIBTOOL
658LN_S
659RANLIB
660am__fastdepCC_FALSE
661am__fastdepCC_TRUE
662CCDEPMODE
663am__nodep
664AMDEPBACKSLASH
665AMDEP_FALSE
666AMDEP_TRUE
667am__quote
668am__include
669DEPDIR
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
677host_os
678host_vendor
679host_cpu
680host
681build_os
682build_vendor
683build_cpu
684build
685MAINT
686MAINTAINER_MODE_FALSE
687MAINTAINER_MODE_TRUE
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
753ac_subst_files=''
754ac_user_opts='
755enable_option_checking
756enable_silent_rules
757enable_maintainer_mode
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763with_aix_soname
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
767'
768      ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
776CPP'
777
778
779# Initialize some variables set by options.
780ac_init_help=
781ac_init_version=false
782ac_unrecognized_opts=
783ac_unrecognized_sep=
784# The variables have the same names as the options, with
785# dashes changed to underlines.
786cache_file=/dev/null
787exec_prefix=NONE
788no_create=
789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
797verbose=
798x_includes=NONE
799x_libraries=NONE
800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
806# (The list follows the same order as the GNU Coding Standards.)
807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
815includedir='${prefix}/include'
816oldincludedir='/usr/include'
817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
826
827ac_prev=
828ac_dashdash=
829for ac_option
830do
831  # If the previous option needs an argument, assign it.
832  if test -n "$ac_prev"; then
833    eval $ac_prev=\$ac_option
834    ac_prev=
835    continue
836  fi
837
838  case $ac_option in
839  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840  *=)   ac_optarg= ;;
841  *)    ac_optarg=yes ;;
842  esac
843
844  # Accept the important Cygnus configure options, so we can diagnose typos.
845
846  case $ac_dashdash$ac_option in
847  --)
848    ac_dashdash=yes ;;
849
850  -bindir | --bindir | --bindi | --bind | --bin | --bi)
851    ac_prev=bindir ;;
852  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853    bindir=$ac_optarg ;;
854
855  -build | --build | --buil | --bui | --bu)
856    ac_prev=build_alias ;;
857  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858    build_alias=$ac_optarg ;;
859
860  -cache-file | --cache-file | --cache-fil | --cache-fi \
861  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862    ac_prev=cache_file ;;
863  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865    cache_file=$ac_optarg ;;
866
867  --config-cache | -C)
868    cache_file=config.cache ;;
869
870  -datadir | --datadir | --datadi | --datad)
871    ac_prev=datadir ;;
872  -datadir=* | --datadir=* | --datadi=* | --datad=*)
873    datadir=$ac_optarg ;;
874
875  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876  | --dataroo | --dataro | --datar)
877    ac_prev=datarootdir ;;
878  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880    datarootdir=$ac_optarg ;;
881
882  -disable-* | --disable-*)
883    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884    # Reject names that are not valid shell variable names.
885    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886      as_fn_error $? "invalid feature name: $ac_useropt"
887    ac_useropt_orig=$ac_useropt
888    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889    case $ac_user_opts in
890      *"
891"enable_$ac_useropt"
892"*) ;;
893      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894	 ac_unrecognized_sep=', ';;
895    esac
896    eval enable_$ac_useropt=no ;;
897
898  -docdir | --docdir | --docdi | --doc | --do)
899    ac_prev=docdir ;;
900  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901    docdir=$ac_optarg ;;
902
903  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904    ac_prev=dvidir ;;
905  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906    dvidir=$ac_optarg ;;
907
908  -enable-* | --enable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=\$ac_optarg ;;
923
924  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926  | --exec | --exe | --ex)
927    ac_prev=exec_prefix ;;
928  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930  | --exec=* | --exe=* | --ex=*)
931    exec_prefix=$ac_optarg ;;
932
933  -gas | --gas | --ga | --g)
934    # Obsolete; use --with-gas.
935    with_gas=yes ;;
936
937  -help | --help | --hel | --he | -h)
938    ac_init_help=long ;;
939  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940    ac_init_help=recursive ;;
941  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942    ac_init_help=short ;;
943
944  -host | --host | --hos | --ho)
945    ac_prev=host_alias ;;
946  -host=* | --host=* | --hos=* | --ho=*)
947    host_alias=$ac_optarg ;;
948
949  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950    ac_prev=htmldir ;;
951  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952  | --ht=*)
953    htmldir=$ac_optarg ;;
954
955  -includedir | --includedir | --includedi | --included | --include \
956  | --includ | --inclu | --incl | --inc)
957    ac_prev=includedir ;;
958  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959  | --includ=* | --inclu=* | --incl=* | --inc=*)
960    includedir=$ac_optarg ;;
961
962  -infodir | --infodir | --infodi | --infod | --info | --inf)
963    ac_prev=infodir ;;
964  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965    infodir=$ac_optarg ;;
966
967  -libdir | --libdir | --libdi | --libd)
968    ac_prev=libdir ;;
969  -libdir=* | --libdir=* | --libdi=* | --libd=*)
970    libdir=$ac_optarg ;;
971
972  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973  | --libexe | --libex | --libe)
974    ac_prev=libexecdir ;;
975  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976  | --libexe=* | --libex=* | --libe=*)
977    libexecdir=$ac_optarg ;;
978
979  -localedir | --localedir | --localedi | --localed | --locale)
980    ac_prev=localedir ;;
981  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982    localedir=$ac_optarg ;;
983
984  -localstatedir | --localstatedir | --localstatedi | --localstated \
985  | --localstate | --localstat | --localsta | --localst | --locals)
986    ac_prev=localstatedir ;;
987  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989    localstatedir=$ac_optarg ;;
990
991  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992    ac_prev=mandir ;;
993  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994    mandir=$ac_optarg ;;
995
996  -nfp | --nfp | --nf)
997    # Obsolete; use --without-fp.
998    with_fp=no ;;
999
1000  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001  | --no-cr | --no-c | -n)
1002    no_create=yes ;;
1003
1004  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006    no_recursion=yes ;;
1007
1008  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010  | --oldin | --oldi | --old | --ol | --o)
1011    ac_prev=oldincludedir ;;
1012  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015    oldincludedir=$ac_optarg ;;
1016
1017  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018    ac_prev=prefix ;;
1019  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020    prefix=$ac_optarg ;;
1021
1022  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023  | --program-pre | --program-pr | --program-p)
1024    ac_prev=program_prefix ;;
1025  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027    program_prefix=$ac_optarg ;;
1028
1029  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030  | --program-suf | --program-su | --program-s)
1031    ac_prev=program_suffix ;;
1032  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034    program_suffix=$ac_optarg ;;
1035
1036  -program-transform-name | --program-transform-name \
1037  | --program-transform-nam | --program-transform-na \
1038  | --program-transform-n | --program-transform- \
1039  | --program-transform | --program-transfor \
1040  | --program-transfo | --program-transf \
1041  | --program-trans | --program-tran \
1042  | --progr-tra | --program-tr | --program-t)
1043    ac_prev=program_transform_name ;;
1044  -program-transform-name=* | --program-transform-name=* \
1045  | --program-transform-nam=* | --program-transform-na=* \
1046  | --program-transform-n=* | --program-transform-=* \
1047  | --program-transform=* | --program-transfor=* \
1048  | --program-transfo=* | --program-transf=* \
1049  | --program-trans=* | --program-tran=* \
1050  | --progr-tra=* | --program-tr=* | --program-t=*)
1051    program_transform_name=$ac_optarg ;;
1052
1053  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054    ac_prev=pdfdir ;;
1055  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056    pdfdir=$ac_optarg ;;
1057
1058  -psdir | --psdir | --psdi | --psd | --ps)
1059    ac_prev=psdir ;;
1060  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061    psdir=$ac_optarg ;;
1062
1063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064  | -silent | --silent | --silen | --sile | --sil)
1065    silent=yes ;;
1066
1067  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068    ac_prev=sbindir ;;
1069  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070  | --sbi=* | --sb=*)
1071    sbindir=$ac_optarg ;;
1072
1073  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075  | --sharedst | --shareds | --shared | --share | --shar \
1076  | --sha | --sh)
1077    ac_prev=sharedstatedir ;;
1078  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081  | --sha=* | --sh=*)
1082    sharedstatedir=$ac_optarg ;;
1083
1084  -site | --site | --sit)
1085    ac_prev=site ;;
1086  -site=* | --site=* | --sit=*)
1087    site=$ac_optarg ;;
1088
1089  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090    ac_prev=srcdir ;;
1091  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092    srcdir=$ac_optarg ;;
1093
1094  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095  | --syscon | --sysco | --sysc | --sys | --sy)
1096    ac_prev=sysconfdir ;;
1097  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099    sysconfdir=$ac_optarg ;;
1100
1101  -target | --target | --targe | --targ | --tar | --ta | --t)
1102    ac_prev=target_alias ;;
1103  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104    target_alias=$ac_optarg ;;
1105
1106  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107    verbose=yes ;;
1108
1109  -version | --version | --versio | --versi | --vers | -V)
1110    ac_init_version=: ;;
1111
1112  -with-* | --with-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid package name: $ac_useropt"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"with_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval with_$ac_useropt=\$ac_optarg ;;
1127
1128  -without-* | --without-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=no ;;
1143
1144  --x)
1145    # Obsolete; use --with-x.
1146    with_x=yes ;;
1147
1148  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149  | --x-incl | --x-inc | --x-in | --x-i)
1150    ac_prev=x_includes ;;
1151  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153    x_includes=$ac_optarg ;;
1154
1155  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157    ac_prev=x_libraries ;;
1158  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160    x_libraries=$ac_optarg ;;
1161
1162  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1163Try \`$0 --help' for more information"
1164    ;;
1165
1166  *=*)
1167    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168    # Reject names that are not valid shell variable names.
1169    case $ac_envvar in #(
1170      '' | [0-9]* | *[!_$as_cr_alnum]* )
1171      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172    esac
1173    eval $ac_envvar=\$ac_optarg
1174    export $ac_envvar ;;
1175
1176  *)
1177    # FIXME: should be removed in autoconf 3.0.
1178    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182    ;;
1183
1184  esac
1185done
1186
1187if test -n "$ac_prev"; then
1188  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189  as_fn_error $? "missing argument to $ac_option"
1190fi
1191
1192if test -n "$ac_unrecognized_opts"; then
1193  case $enable_option_checking in
1194    no) ;;
1195    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1196    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197  esac
1198fi
1199
1200# Check all directory arguments for consistency.
1201for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202		datadir sysconfdir sharedstatedir localstatedir includedir \
1203		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204		libdir localedir mandir
1205do
1206  eval ac_val=\$$ac_var
1207  # Remove trailing slashes.
1208  case $ac_val in
1209    */ )
1210      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211      eval $ac_var=\$ac_val;;
1212  esac
1213  # Be sure to have absolute directory names.
1214  case $ac_val in
1215    [\\/$]* | ?:[\\/]* )  continue;;
1216    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217  esac
1218  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230  if test "x$build_alias" = x; then
1231    cross_compiling=maybe
1232  elif test "x$build_alias" != "x$host_alias"; then
1233    cross_compiling=yes
1234  fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246  as_fn_error $? "working directory cannot be determined"
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248  as_fn_error $? "pwd does not report name of working directory"
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253  ac_srcdir_defaulted=yes
1254  # Try the directory containing this script, then the parent directory.
1255  ac_confdir=`$as_dirname -- "$as_myself" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257	 X"$as_myself" : 'X\(//\)[^/]' \| \
1258	 X"$as_myself" : 'X\(//\)$' \| \
1259	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" |
1261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)[^/].*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\).*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  s/.*/./; q'`
1278  srcdir=$ac_confdir
1279  if test ! -r "$srcdir/$ac_unique_file"; then
1280    srcdir=..
1281  fi
1282else
1283  ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292	pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295  srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305  eval ac_env_${ac_var}_value=\$${ac_var}
1306  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314  # Omit some internal or obsolete options to make the list less imposing.
1315  # This message is too long to be a string in the A/UX 3.1 sh.
1316  cat <<_ACEOF
1317\`configure' configures iperf 3-CURRENT to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327  -h, --help              display this help and exit
1328      --help=short        display options specific to this package
1329      --help=recursive    display the short help of all the included packages
1330  -V, --version           display version information and exit
1331  -q, --quiet, --silent   do not print \`checking ...' messages
1332      --cache-file=FILE   cache test results in FILE [disabled]
1333  -C, --config-cache      alias for \`--cache-file=config.cache'
1334  -n, --no-create         do not create output files
1335      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338  --prefix=PREFIX         install architecture-independent files in PREFIX
1339                          [$ac_default_prefix]
1340  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                          [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351  --bindir=DIR            user executables [EPREFIX/bin]
1352  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353  --libexecdir=DIR        program executables [EPREFIX/libexec]
1354  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357  --libdir=DIR            object code libraries [EPREFIX/lib]
1358  --includedir=DIR        C header files [PREFIX/include]
1359  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362  --infodir=DIR           info documentation [DATAROOTDIR/info]
1363  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364  --mandir=DIR            man documentation [DATAROOTDIR/man]
1365  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1366  --htmldir=DIR           html documentation [DOCDIR]
1367  --dvidir=DIR            dvi documentation [DOCDIR]
1368  --pdfdir=DIR            pdf documentation [DOCDIR]
1369  --psdir=DIR             ps documentation [DOCDIR]
1370_ACEOF
1371
1372  cat <<\_ACEOF
1373
1374Program names:
1375  --program-prefix=PREFIX            prepend PREFIX to installed program names
1376  --program-suffix=SUFFIX            append SUFFIX to installed program names
1377  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379System types:
1380  --build=BUILD     configure for building on BUILD [guessed]
1381  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386  case $ac_init_help in
1387     short | recursive ) echo "Configuration of iperf 3-CURRENT:";;
1388   esac
1389  cat <<\_ACEOF
1390
1391Optional Features:
1392  --disable-option-checking  ignore unrecognized --enable/--with options
1393  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395  --enable-silent-rules   less verbose build output (undo: "make V=1")
1396  --disable-silent-rules  verbose build output (undo: "make V=0")
1397  --enable-maintainer-mode
1398                          enable make rules and dependencies not useful (and
1399                          sometimes confusing) to the casual installer
1400  --enable-dependency-tracking
1401                          do not reject slow dependency extractors
1402  --disable-dependency-tracking
1403                          speeds up one-time build
1404  --enable-shared[=PKGS]  build shared libraries [default=yes]
1405  --enable-static[=PKGS]  build static libraries [default=yes]
1406  --enable-fast-install[=PKGS]
1407                          optimize for fast installation [default=yes]
1408  --disable-libtool-lock  avoid locking (might break parallel builds)
1409
1410Optional Packages:
1411  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1414                          both]
1415  --with-aix-soname=aix|svr4|both
1416                          shared library versioning (aka "SONAME") variant to
1417                          provide on AIX, [default=aix].
1418  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1419  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1420                          compiler's sysroot if not specified).
1421
1422Some influential environment variables:
1423  CC          C compiler command
1424  CFLAGS      C compiler flags
1425  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1426              nonstandard directory <lib dir>
1427  LIBS        libraries to pass to the linker, e.g. -l<library>
1428  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429              you have headers in a nonstandard directory <include dir>
1430  CPP         C preprocessor
1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to <https://github.com/esnet/iperf>.
1436iperf home page: <http://software.es.net/iperf/>.
1437_ACEOF
1438ac_status=$?
1439fi
1440
1441if test "$ac_init_help" = "recursive"; then
1442  # If there are subdirs, report their specific --help.
1443  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444    test -d "$ac_dir" ||
1445      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446      continue
1447    ac_builddir=.
1448
1449case "$ac_dir" in
1450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451*)
1452  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453  # A ".." for each directory in $ac_dir_suffix.
1454  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455  case $ac_top_builddir_sub in
1456  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458  esac ;;
1459esac
1460ac_abs_top_builddir=$ac_pwd
1461ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462# for backward compatibility:
1463ac_top_builddir=$ac_top_build_prefix
1464
1465case $srcdir in
1466  .)  # We are building in place.
1467    ac_srcdir=.
1468    ac_top_srcdir=$ac_top_builddir_sub
1469    ac_abs_top_srcdir=$ac_pwd ;;
1470  [\\/]* | ?:[\\/]* )  # Absolute name.
1471    ac_srcdir=$srcdir$ac_dir_suffix;
1472    ac_top_srcdir=$srcdir
1473    ac_abs_top_srcdir=$srcdir ;;
1474  *) # Relative name.
1475    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476    ac_top_srcdir=$ac_top_build_prefix$srcdir
1477    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478esac
1479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480
1481    cd "$ac_dir" || { ac_status=$?; continue; }
1482    # Check for guested configure.
1483    if test -f "$ac_srcdir/configure.gnu"; then
1484      echo &&
1485      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486    elif test -f "$ac_srcdir/configure"; then
1487      echo &&
1488      $SHELL "$ac_srcdir/configure" --help=recursive
1489    else
1490      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491    fi || ac_status=$?
1492    cd "$ac_pwd" || { ac_status=$?; break; }
1493  done
1494fi
1495
1496test -n "$ac_init_help" && exit $ac_status
1497if $ac_init_version; then
1498  cat <<\_ACEOF
1499iperf configure 3-CURRENT
1500generated by GNU Autoconf 2.69
1501
1502Copyright (C) 2012 Free Software Foundation, Inc.
1503This configure script is free software; the Free Software Foundation
1504gives unlimited permission to copy, distribute and modify it.
1505_ACEOF
1506  exit
1507fi
1508
1509## ------------------------ ##
1510## Autoconf initialization. ##
1511## ------------------------ ##
1512
1513# ac_fn_c_try_compile LINENO
1514# --------------------------
1515# Try to compile conftest.$ac_ext, and return whether this succeeded.
1516ac_fn_c_try_compile ()
1517{
1518  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519  rm -f conftest.$ac_objext
1520  if { { ac_try="$ac_compile"
1521case "(($ac_try" in
1522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523  *) ac_try_echo=$ac_try;;
1524esac
1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526$as_echo "$ac_try_echo"; } >&5
1527  (eval "$ac_compile") 2>conftest.err
1528  ac_status=$?
1529  if test -s conftest.err; then
1530    grep -v '^ *+' conftest.err >conftest.er1
1531    cat conftest.er1 >&5
1532    mv -f conftest.er1 conftest.err
1533  fi
1534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535  test $ac_status = 0; } && {
1536	 test -z "$ac_c_werror_flag" ||
1537	 test ! -s conftest.err
1538       } && test -s conftest.$ac_objext; then :
1539  ac_retval=0
1540else
1541  $as_echo "$as_me: failed program was:" >&5
1542sed 's/^/| /' conftest.$ac_ext >&5
1543
1544	ac_retval=1
1545fi
1546  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547  as_fn_set_status $ac_retval
1548
1549} # ac_fn_c_try_compile
1550
1551# ac_fn_c_try_link LINENO
1552# -----------------------
1553# Try to link conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_link ()
1555{
1556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557  rm -f conftest.$ac_objext conftest$ac_exeext
1558  if { { ac_try="$ac_link"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565  (eval "$ac_link") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } && {
1574	 test -z "$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       } && test -s conftest$ac_exeext && {
1577	 test "$cross_compiling" = yes ||
1578	 test -x conftest$ac_exeext
1579       }; then :
1580  ac_retval=0
1581else
1582  $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1588  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1589  # interfere with the next link command; also delete a directory that is
1590  # left behind by Apple's compiler.  We do this before executing the actions.
1591  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593  as_fn_set_status $ac_retval
1594
1595} # ac_fn_c_try_link
1596
1597# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598# -------------------------------------------------------
1599# Tests whether HEADER exists and can be compiled using the include files in
1600# INCLUDES, setting the cache variable VAR accordingly.
1601ac_fn_c_check_header_compile ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605$as_echo_n "checking for $2... " >&6; }
1606if eval \${$3+:} false; then :
1607  $as_echo_n "(cached) " >&6
1608else
1609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h.  */
1611$4
1612#include <$2>
1613_ACEOF
1614if ac_fn_c_try_compile "$LINENO"; then :
1615  eval "$3=yes"
1616else
1617  eval "$3=no"
1618fi
1619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620fi
1621eval ac_res=\$$3
1622	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623$as_echo "$ac_res" >&6; }
1624  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625
1626} # ac_fn_c_check_header_compile
1627
1628# ac_fn_c_try_cpp LINENO
1629# ----------------------
1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_cpp ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  if { { ac_try="$ac_cpp conftest.$ac_ext"
1635case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642  ac_status=$?
1643  if test -s conftest.err; then
1644    grep -v '^ *+' conftest.err >conftest.er1
1645    cat conftest.er1 >&5
1646    mv -f conftest.er1 conftest.err
1647  fi
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; } > conftest.i && {
1650	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651	 test ! -s conftest.err
1652       }; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658    ac_retval=1
1659fi
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_cpp
1664
1665# ac_fn_c_try_run LINENO
1666# ----------------------
1667# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668# that executables *can* be run.
1669ac_fn_c_try_run ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  if { { ac_try="$ac_link"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_link") 2>&5
1680  ac_status=$?
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683  { { case "(($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_try") 2>&5
1690  ac_status=$?
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; }; }; then :
1693  ac_retval=0
1694else
1695  $as_echo "$as_me: program exited with status $ac_status" >&5
1696       $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699       ac_retval=$ac_status
1700fi
1701  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703  as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_run
1706
1707# ac_fn_c_check_func LINENO FUNC VAR
1708# ----------------------------------
1709# Tests whether FUNC exists, setting the cache variable VAR accordingly
1710ac_fn_c_check_func ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
1715if eval \${$3+:} false; then :
1716  $as_echo_n "(cached) " >&6
1717else
1718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h.  */
1720/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1722#define $2 innocuous_$2
1723
1724/* System header to define __stub macros and hopefully few prototypes,
1725    which can conflict with char $2 (); below.
1726    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1727    <limits.h> exists even on freestanding compilers.  */
1728
1729#ifdef __STDC__
1730# include <limits.h>
1731#else
1732# include <assert.h>
1733#endif
1734
1735#undef $2
1736
1737/* Override any GCC internal prototype to avoid an error.
1738   Use char because int might match the return type of a GCC
1739   builtin and then its argument prototype would still apply.  */
1740#ifdef __cplusplus
1741extern "C"
1742#endif
1743char $2 ();
1744/* The GNU C library defines this for functions which it implements
1745    to always fail with ENOSYS.  Some functions are actually named
1746    something starting with __ and the normal name is an alias.  */
1747#if defined __stub_$2 || defined __stub___$2
1748choke me
1749#endif
1750
1751int
1752main ()
1753{
1754return $2 ();
1755  ;
1756  return 0;
1757}
1758_ACEOF
1759if ac_fn_c_try_link "$LINENO"; then :
1760  eval "$3=yes"
1761else
1762  eval "$3=no"
1763fi
1764rm -f core conftest.err conftest.$ac_objext \
1765    conftest$ac_exeext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_func
1773
1774# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1775# -------------------------------------------------------
1776# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1777# the include files in INCLUDES and setting the cache variable VAR
1778# accordingly.
1779ac_fn_c_check_header_mongrel ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  if eval \${$3+:} false; then :
1783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if eval \${$3+:} false; then :
1786  $as_echo_n "(cached) " >&6
1787fi
1788eval ac_res=\$$3
1789	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791else
1792  # Is the header compilable?
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1794$as_echo_n "checking $2 usability... " >&6; }
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801  ac_header_compiler=yes
1802else
1803  ac_header_compiler=no
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1807$as_echo "$ac_header_compiler" >&6; }
1808
1809# Is the header present?
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1811$as_echo_n "checking $2 presence... " >&6; }
1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_cpp "$LINENO"; then :
1817  ac_header_preproc=yes
1818else
1819  ac_header_preproc=no
1820fi
1821rm -f conftest.err conftest.i conftest.$ac_ext
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1823$as_echo "$ac_header_preproc" >&6; }
1824
1825# So?  What about this header?
1826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827  yes:no: )
1828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1829$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832    ;;
1833  no:yes:* )
1834    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1835$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1837$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1839$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1841$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844( $as_echo "## --------------------------------------------- ##
1845## Report this to https://github.com/esnet/iperf ##
1846## --------------------------------------------- ##"
1847     ) | sed "s/^/$as_me: WARNING:     /" >&2
1848    ;;
1849esac
1850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval \${$3+:} false; then :
1853  $as_echo_n "(cached) " >&6
1854else
1855  eval "$3=\$ac_header_compiler"
1856fi
1857eval ac_res=\$$3
1858	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860fi
1861  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_header_mongrel
1864cat >config.log <<_ACEOF
1865This file contains any messages produced by compilers while
1866running configure, to aid debugging if configure makes a mistake.
1867
1868It was created by iperf $as_me 3-CURRENT, which was
1869generated by GNU Autoconf 2.69.  Invocation command line was
1870
1871  $ $0 $@
1872
1873_ACEOF
1874exec 5>>config.log
1875{
1876cat <<_ASUNAME
1877## --------- ##
1878## Platform. ##
1879## --------- ##
1880
1881hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1889
1890/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1891/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1892/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1894/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1895/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1896/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1897
1898_ASUNAME
1899
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  test -z "$as_dir" && as_dir=.
1905    $as_echo "PATH: $as_dir"
1906  done
1907IFS=$as_save_IFS
1908
1909} >&5
1910
1911cat >&5 <<_ACEOF
1912
1913
1914## ----------- ##
1915## Core tests. ##
1916## ----------- ##
1917
1918_ACEOF
1919
1920
1921# Keep a trace of the command line.
1922# Strip out --no-create and --no-recursion so they do not pile up.
1923# Strip out --silent because we don't want to record it for future runs.
1924# Also quote any args containing shell meta-characters.
1925# Make two passes to allow for proper duplicate-argument suppression.
1926ac_configure_args=
1927ac_configure_args0=
1928ac_configure_args1=
1929ac_must_keep_next=false
1930for ac_pass in 1 2
1931do
1932  for ac_arg
1933  do
1934    case $ac_arg in
1935    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937    | -silent | --silent | --silen | --sile | --sil)
1938      continue ;;
1939    *\'*)
1940      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941    esac
1942    case $ac_pass in
1943    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944    2)
1945      as_fn_append ac_configure_args1 " '$ac_arg'"
1946      if test $ac_must_keep_next = true; then
1947	ac_must_keep_next=false # Got value, back to normal.
1948      else
1949	case $ac_arg in
1950	  *=* | --config-cache | -C | -disable-* | --disable-* \
1951	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953	  | -with-* | --with-* | -without-* | --without-* | --x)
1954	    case "$ac_configure_args0 " in
1955	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956	    esac
1957	    ;;
1958	  -* ) ac_must_keep_next=true ;;
1959	esac
1960      fi
1961      as_fn_append ac_configure_args " '$ac_arg'"
1962      ;;
1963    esac
1964  done
1965done
1966{ ac_configure_args0=; unset ac_configure_args0;}
1967{ ac_configure_args1=; unset ac_configure_args1;}
1968
1969# When interrupted or exit'd, cleanup temporary files, and complete
1970# config.log.  We remove comments because anyway the quotes in there
1971# would cause problems or look ugly.
1972# WARNING: Use '\'' to represent an apostrophe within the trap.
1973# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974trap 'exit_status=$?
1975  # Save into config.log some information that might help in debugging.
1976  {
1977    echo
1978
1979    $as_echo "## ---------------- ##
1980## Cache variables. ##
1981## ---------------- ##"
1982    echo
1983    # The following way of writing the cache mishandles newlines in values,
1984(
1985  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986    eval ac_val=\$$ac_var
1987    case $ac_val in #(
1988    *${as_nl}*)
1989      case $ac_var in #(
1990      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992      esac
1993      case $ac_var in #(
1994      _ | IFS | as_nl) ;; #(
1995      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996      *) { eval $ac_var=; unset $ac_var;} ;;
1997      esac ;;
1998    esac
1999  done
2000  (set) 2>&1 |
2001    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002    *${as_nl}ac_space=\ *)
2003      sed -n \
2004	"s/'\''/'\''\\\\'\'''\''/g;
2005	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006      ;; #(
2007    *)
2008      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009      ;;
2010    esac |
2011    sort
2012)
2013    echo
2014
2015    $as_echo "## ----------------- ##
2016## Output variables. ##
2017## ----------------- ##"
2018    echo
2019    for ac_var in $ac_subst_vars
2020    do
2021      eval ac_val=\$$ac_var
2022      case $ac_val in
2023      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024      esac
2025      $as_echo "$ac_var='\''$ac_val'\''"
2026    done | sort
2027    echo
2028
2029    if test -n "$ac_subst_files"; then
2030      $as_echo "## ------------------- ##
2031## File substitutions. ##
2032## ------------------- ##"
2033      echo
2034      for ac_var in $ac_subst_files
2035      do
2036	eval ac_val=\$$ac_var
2037	case $ac_val in
2038	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039	esac
2040	$as_echo "$ac_var='\''$ac_val'\''"
2041      done | sort
2042      echo
2043    fi
2044
2045    if test -s confdefs.h; then
2046      $as_echo "## ----------- ##
2047## confdefs.h. ##
2048## ----------- ##"
2049      echo
2050      cat confdefs.h
2051      echo
2052    fi
2053    test "$ac_signal" != 0 &&
2054      $as_echo "$as_me: caught signal $ac_signal"
2055    $as_echo "$as_me: exit $exit_status"
2056  } >&5
2057  rm -f core *.core core.conftest.* &&
2058    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059    exit $exit_status
2060' 0
2061for ac_signal in 1 2 13 15; do
2062  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063done
2064ac_signal=0
2065
2066# confdefs.h avoids OS command line length limits that DEFS can exceed.
2067rm -f -r conftest* confdefs.h
2068
2069$as_echo "/* confdefs.h */" > confdefs.h
2070
2071# Predefined preprocessor variables.
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_NAME "$PACKAGE_NAME"
2075_ACEOF
2076
2077cat >>confdefs.h <<_ACEOF
2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079_ACEOF
2080
2081cat >>confdefs.h <<_ACEOF
2082#define PACKAGE_VERSION "$PACKAGE_VERSION"
2083_ACEOF
2084
2085cat >>confdefs.h <<_ACEOF
2086#define PACKAGE_STRING "$PACKAGE_STRING"
2087_ACEOF
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091_ACEOF
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_URL "$PACKAGE_URL"
2095_ACEOF
2096
2097
2098# Let the site file select an alternate cache file if it wants to.
2099# Prefer an explicitly selected file to automatically selected ones.
2100ac_site_file1=NONE
2101ac_site_file2=NONE
2102if test -n "$CONFIG_SITE"; then
2103  # We do not want a PATH search for config.site.
2104  case $CONFIG_SITE in #((
2105    -*)  ac_site_file1=./$CONFIG_SITE;;
2106    */*) ac_site_file1=$CONFIG_SITE;;
2107    *)   ac_site_file1=./$CONFIG_SITE;;
2108  esac
2109elif test "x$prefix" != xNONE; then
2110  ac_site_file1=$prefix/share/config.site
2111  ac_site_file2=$prefix/etc/config.site
2112else
2113  ac_site_file1=$ac_default_prefix/share/config.site
2114  ac_site_file2=$ac_default_prefix/etc/config.site
2115fi
2116for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117do
2118  test "x$ac_site_file" = xNONE && continue
2119  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2120    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122    sed 's/^/| /' "$ac_site_file" >&5
2123    . "$ac_site_file" \
2124      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126as_fn_error $? "failed to load site script $ac_site_file
2127See \`config.log' for more details" "$LINENO" 5; }
2128  fi
2129done
2130
2131if test -r "$cache_file"; then
2132  # Some versions of bash will fail to source /dev/null (special files
2133  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2134  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136$as_echo "$as_me: loading cache $cache_file" >&6;}
2137    case $cache_file in
2138      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139      *)                      . "./$cache_file";;
2140    esac
2141  fi
2142else
2143  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144$as_echo "$as_me: creating cache $cache_file" >&6;}
2145  >$cache_file
2146fi
2147
2148# Check that the precious variables saved in the cache have kept the same
2149# value.
2150ac_cache_corrupted=false
2151for ac_var in $ac_precious_vars; do
2152  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153  eval ac_new_set=\$ac_env_${ac_var}_set
2154  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155  eval ac_new_val=\$ac_env_${ac_var}_value
2156  case $ac_old_set,$ac_new_set in
2157    set,)
2158      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160      ac_cache_corrupted=: ;;
2161    ,set)
2162      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164      ac_cache_corrupted=: ;;
2165    ,);;
2166    *)
2167      if test "x$ac_old_val" != "x$ac_new_val"; then
2168	# differences in whitespace do not lead to failure.
2169	ac_old_val_w=`echo x $ac_old_val`
2170	ac_new_val_w=`echo x $ac_new_val`
2171	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174	  ac_cache_corrupted=:
2175	else
2176	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178	  eval $ac_var=\$ac_old_val
2179	fi
2180	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2181$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2182	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2183$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2184      fi;;
2185  esac
2186  # Pass precious variables to config.status.
2187  if test "$ac_new_set" = set; then
2188    case $ac_new_val in
2189    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190    *) ac_arg=$ac_var=$ac_new_val ;;
2191    esac
2192    case " $ac_configure_args " in
2193      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2194      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195    esac
2196  fi
2197done
2198if $ac_cache_corrupted; then
2199  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2204fi
2205## -------------------- ##
2206## Main body of script. ##
2207## -------------------- ##
2208
2209ac_ext=c
2210ac_cpp='$CPP $CPPFLAGS'
2211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
2215
2216ac_ext=c
2217ac_cpp='$CPP $CPPFLAGS'
2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223# Specify where the auxiliary files created by configure should go. The config
2224# directory is picked so that they don't clutter up more useful directories.
2225ac_aux_dir=
2226for ac_dir in config "$srcdir"/config; do
2227  if test -f "$ac_dir/install-sh"; then
2228    ac_aux_dir=$ac_dir
2229    ac_install_sh="$ac_aux_dir/install-sh -c"
2230    break
2231  elif test -f "$ac_dir/install.sh"; then
2232    ac_aux_dir=$ac_dir
2233    ac_install_sh="$ac_aux_dir/install.sh -c"
2234    break
2235  elif test -f "$ac_dir/shtool"; then
2236    ac_aux_dir=$ac_dir
2237    ac_install_sh="$ac_aux_dir/shtool install -c"
2238    break
2239  fi
2240done
2241if test -z "$ac_aux_dir"; then
2242  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2243fi
2244
2245# These three variables are undocumented and unsupported,
2246# and are intended to be withdrawn in a future Autoconf release.
2247# They can cause serious problems if a builder's source tree is in a directory
2248# whose full name contains unusual characters.
2249ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2250ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2251ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2252
2253
2254
2255
2256# Initialize the automake system
2257am__api_version='1.14'
2258
2259# Find a good install program.  We prefer a C program (faster),
2260# so one script is as good as another.  But avoid the broken or
2261# incompatible versions:
2262# SysV /etc/install, /usr/sbin/install
2263# SunOS /usr/etc/install
2264# IRIX /sbin/install
2265# AIX /bin/install
2266# AmigaOS /C/install, which installs bootblocks on floppy discs
2267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270# OS/2's system install, which has a completely different semantic
2271# ./install, which can be erroneously created by make from ./install.sh.
2272# Reject install programs that cannot install multiple files.
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274$as_echo_n "checking for a BSD-compatible install... " >&6; }
2275if test -z "$INSTALL"; then
2276if ${ac_cv_path_install+:} false; then :
2277  $as_echo_n "(cached) " >&6
2278else
2279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284    # Account for people who put trailing slashes in PATH elements.
2285case $as_dir/ in #((
2286  ./ | .// | /[cC]/* | \
2287  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2289  /usr/ucb/* ) ;;
2290  *)
2291    # OSF1 and SCO ODT 3.0 have their own names for install.
2292    # Don't use installbsd from OSF since it installs stuff as root
2293    # by default.
2294    for ac_prog in ginstall scoinst install; do
2295      for ac_exec_ext in '' $ac_executable_extensions; do
2296	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2297	  if test $ac_prog = install &&
2298	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299	    # AIX install.  It has an incompatible calling convention.
2300	    :
2301	  elif test $ac_prog = install &&
2302	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303	    # program-specific install script used by HP pwplus--don't use.
2304	    :
2305	  else
2306	    rm -rf conftest.one conftest.two conftest.dir
2307	    echo one > conftest.one
2308	    echo two > conftest.two
2309	    mkdir conftest.dir
2310	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311	      test -s conftest.one && test -s conftest.two &&
2312	      test -s conftest.dir/conftest.one &&
2313	      test -s conftest.dir/conftest.two
2314	    then
2315	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316	      break 3
2317	    fi
2318	  fi
2319	fi
2320      done
2321    done
2322    ;;
2323esac
2324
2325  done
2326IFS=$as_save_IFS
2327
2328rm -rf conftest.one conftest.two conftest.dir
2329
2330fi
2331  if test "${ac_cv_path_install+set}" = set; then
2332    INSTALL=$ac_cv_path_install
2333  else
2334    # As a last resort, use the slow shell script.  Don't cache a
2335    # value for INSTALL within a source directory, because that will
2336    # break other packages using the cache if that directory is
2337    # removed, or if the value is a relative name.
2338    INSTALL=$ac_install_sh
2339  fi
2340fi
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342$as_echo "$INSTALL" >&6; }
2343
2344# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345# It thinks the first close brace ends the variable substitution.
2346test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353$as_echo_n "checking whether build environment is sane... " >&6; }
2354# Reject unsafe characters in $srcdir or the absolute working directory
2355# name.  Accept space and tab only in the latter.
2356am_lf='
2357'
2358case `pwd` in
2359  *[\\\"\#\$\&\'\`$am_lf]*)
2360    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2361esac
2362case $srcdir in
2363  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2364    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2365esac
2366
2367# Do 'set' in a subshell so we don't clobber the current shell's
2368# arguments.  Must try -L first in case configure is actually a
2369# symlink; some systems play weird games with the mod time of symlinks
2370# (eg FreeBSD returns the mod time of the symlink's containing
2371# directory).
2372if (
2373   am_has_slept=no
2374   for am_try in 1 2; do
2375     echo "timestamp, slept: $am_has_slept" > conftest.file
2376     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2377     if test "$*" = "X"; then
2378	# -L didn't work.
2379	set X `ls -t "$srcdir/configure" conftest.file`
2380     fi
2381     if test "$*" != "X $srcdir/configure conftest.file" \
2382	&& test "$*" != "X conftest.file $srcdir/configure"; then
2383
2384	# If neither matched, then we have a broken ls.  This can happen
2385	# if, for instance, CONFIG_SHELL is bash and it inherits a
2386	# broken ls alias from the environment.  This has actually
2387	# happened.  Such a system could not be considered "sane".
2388	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2389  alias in your environment" "$LINENO" 5
2390     fi
2391     if test "$2" = conftest.file || test $am_try -eq 2; then
2392       break
2393     fi
2394     # Just in case.
2395     sleep 1
2396     am_has_slept=yes
2397   done
2398   test "$2" = conftest.file
2399   )
2400then
2401   # Ok.
2402   :
2403else
2404   as_fn_error $? "newly created file is older than distributed files!
2405Check your system clock" "$LINENO" 5
2406fi
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408$as_echo "yes" >&6; }
2409# If we didn't sleep, we still need to ensure time stamps of config.status and
2410# generated files are strictly newer.
2411am_sleep_pid=
2412if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2413  ( sleep 1 ) &
2414  am_sleep_pid=$!
2415fi
2416
2417rm -f conftest.file
2418
2419test "$program_prefix" != NONE &&
2420  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421# Use a double $ so make ignores it.
2422test "$program_suffix" != NONE &&
2423  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424# Double any \ or $.
2425# By default was `s,x,x', remove it if useless.
2426ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2428
2429# expand $ac_aux_dir to an absolute path
2430am_aux_dir=`cd $ac_aux_dir && pwd`
2431
2432if test x"${MISSING+set}" != xset; then
2433  case $am_aux_dir in
2434  *\ * | *\	*)
2435    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436  *)
2437    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2438  esac
2439fi
2440# Use eval to expand $SHELL
2441if eval "$MISSING --is-lightweight"; then
2442  am_missing_run="$MISSING "
2443else
2444  am_missing_run=
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2446$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2447fi
2448
2449if test x"${install_sh}" != xset; then
2450  case $am_aux_dir in
2451  *\ * | *\	*)
2452    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453  *)
2454    install_sh="\${SHELL} $am_aux_dir/install-sh"
2455  esac
2456fi
2457
2458# Installed binaries are usually stripped using 'strip' when the user
2459# run "make install-strip".  However 'strip' might not be the right
2460# tool to use in cross-compilation environments, therefore Automake
2461# will honor the 'STRIP' environment variable to overrule this program.
2462if test "$cross_compiling" != no; then
2463  if test -n "$ac_tool_prefix"; then
2464  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465set dummy ${ac_tool_prefix}strip; ac_word=$2
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if ${ac_cv_prog_STRIP+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  if test -n "$STRIP"; then
2472  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479    for ac_exec_ext in '' $ac_executable_extensions; do
2480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486  done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491STRIP=$ac_cv_prog_STRIP
2492if test -n "$STRIP"; then
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494$as_echo "$STRIP" >&6; }
2495else
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497$as_echo "no" >&6; }
2498fi
2499
2500
2501fi
2502if test -z "$ac_cv_prog_STRIP"; then
2503  ac_ct_STRIP=$STRIP
2504  # Extract the first word of "strip", so it can be a program name with args.
2505set dummy strip; ac_word=$2
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2509  $as_echo_n "(cached) " >&6
2510else
2511  if test -n "$ac_ct_STRIP"; then
2512  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517  IFS=$as_save_IFS
2518  test -z "$as_dir" && as_dir=.
2519    for ac_exec_ext in '' $ac_executable_extensions; do
2520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521    ac_cv_prog_ac_ct_STRIP="strip"
2522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523    break 2
2524  fi
2525done
2526  done
2527IFS=$as_save_IFS
2528
2529fi
2530fi
2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532if test -n "$ac_ct_STRIP"; then
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534$as_echo "$ac_ct_STRIP" >&6; }
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
2538fi
2539
2540  if test "x$ac_ct_STRIP" = x; then
2541    STRIP=":"
2542  else
2543    case $cross_compiling:$ac_tool_warned in
2544yes:)
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549    STRIP=$ac_ct_STRIP
2550  fi
2551else
2552  STRIP="$ac_cv_prog_STRIP"
2553fi
2554
2555fi
2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2560if test -z "$MKDIR_P"; then
2561  if ${ac_cv_path_mkdir+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_prog in mkdir gmkdir; do
2570	 for ac_exec_ext in '' $ac_executable_extensions; do
2571	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2572	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573	     'mkdir (GNU coreutils) '* | \
2574	     'mkdir (coreutils) '* | \
2575	     'mkdir (fileutils) '4.1*)
2576	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2577	       break 3;;
2578	   esac
2579	 done
2580       done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585
2586  test -d ./--version && rmdir ./--version
2587  if test "${ac_cv_path_mkdir+set}" = set; then
2588    MKDIR_P="$ac_cv_path_mkdir -p"
2589  else
2590    # As a last resort, use the slow shell script.  Don't cache a
2591    # value for MKDIR_P within a source directory, because that will
2592    # break other packages using the cache if that directory is
2593    # removed, or if the value is a relative name.
2594    MKDIR_P="$ac_install_sh -d"
2595  fi
2596fi
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598$as_echo "$MKDIR_P" >&6; }
2599
2600for ac_prog in gawk mawk nawk awk
2601do
2602  # Extract the first word of "$ac_prog", so it can be a program name with args.
2603set dummy $ac_prog; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if ${ac_cv_prog_AWK+:} false; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$AWK"; then
2610  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619    ac_cv_prog_AWK="$ac_prog"
2620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629AWK=$ac_cv_prog_AWK
2630if test -n "$AWK"; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632$as_echo "$AWK" >&6; }
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639  test -n "$AWK" && break
2640done
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644set x ${MAKE-make}
2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  cat >conftest.make <<\_ACEOF
2650SHELL = /bin/sh
2651all:
2652	@echo '@@@%%%=$(MAKE)=@@@%%%'
2653_ACEOF
2654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656  *@@@%%%=?*=@@@%%%*)
2657    eval ac_cv_prog_make_${ac_make}_set=yes;;
2658  *)
2659    eval ac_cv_prog_make_${ac_make}_set=no;;
2660esac
2661rm -f conftest.make
2662fi
2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
2666  SET_MAKE=
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670  SET_MAKE="MAKE=${MAKE-make}"
2671fi
2672
2673rm -rf .tst 2>/dev/null
2674mkdir .tst 2>/dev/null
2675if test -d .tst; then
2676  am__leading_dot=.
2677else
2678  am__leading_dot=_
2679fi
2680rmdir .tst 2>/dev/null
2681
2682# Check whether --enable-silent-rules was given.
2683if test "${enable_silent_rules+set}" = set; then :
2684  enableval=$enable_silent_rules;
2685fi
2686
2687case $enable_silent_rules in # (((
2688  yes) AM_DEFAULT_VERBOSITY=0;;
2689   no) AM_DEFAULT_VERBOSITY=1;;
2690    *) AM_DEFAULT_VERBOSITY=1;;
2691esac
2692am_make=${MAKE-make}
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2694$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2695if ${am_cv_make_support_nested_variables+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if $as_echo 'TRUE=$(BAR$(V))
2699BAR0=false
2700BAR1=true
2701V=1
2702am__doit:
2703	@$(TRUE)
2704.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2705  am_cv_make_support_nested_variables=yes
2706else
2707  am_cv_make_support_nested_variables=no
2708fi
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2711$as_echo "$am_cv_make_support_nested_variables" >&6; }
2712if test $am_cv_make_support_nested_variables = yes; then
2713    AM_V='$(V)'
2714  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2715else
2716  AM_V=$AM_DEFAULT_VERBOSITY
2717  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2718fi
2719AM_BACKSLASH='\'
2720
2721if test "`cd $srcdir && pwd`" != "`pwd`"; then
2722  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2723  # is not polluted with repeated "-I."
2724  am__isrc=' -I$(srcdir)'
2725  # test to see if srcdir already configured
2726  if test -f $srcdir/config.status; then
2727    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2728  fi
2729fi
2730
2731# test whether we have cygpath
2732if test -z "$CYGPATH_W"; then
2733  if (cygpath --version) >/dev/null 2>/dev/null; then
2734    CYGPATH_W='cygpath -w'
2735  else
2736    CYGPATH_W=echo
2737  fi
2738fi
2739
2740
2741# Define the identity of the package.
2742 PACKAGE='iperf'
2743 VERSION='3-CURRENT'
2744
2745
2746cat >>confdefs.h <<_ACEOF
2747#define PACKAGE "$PACKAGE"
2748_ACEOF
2749
2750
2751cat >>confdefs.h <<_ACEOF
2752#define VERSION "$VERSION"
2753_ACEOF
2754
2755# Some tools Automake needs.
2756
2757ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758
2759
2760AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761
2762
2763AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764
2765
2766AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767
2768
2769MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
2771# For better backward compatibility.  To be removed once Automake 1.9.x
2772# dies out for good.  For more background, see:
2773# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2774# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2775mkdir_p='$(MKDIR_P)'
2776
2777# We need awk for the "check" target.  The system "awk" is bad on
2778# some platforms.
2779# Always define AMTAR for backward compatibility.  Yes, it's still used
2780# in the wild :-(  We should find a proper way to deprecate it ...
2781AMTAR='$${TAR-tar}'
2782
2783
2784# We'll loop over all known methods to create a tar archive until one works.
2785_am_tools='gnutar  pax cpio none'
2786
2787am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2788
2789
2790
2791
2792
2793
2794# POSIX will say in a future version that running "rm -f" with no argument
2795# is OK; and we want to be able to make that assumption in our Makefile
2796# recipes.  So use an aggressive probe to check that the usage we want is
2797# actually supported "in the wild" to an acceptable degree.
2798# See automake bug#10828.
2799# To make any issue more visible, cause the running configure to be aborted
2800# by default if the 'rm' program in use doesn't match our expectations; the
2801# user can still override this though.
2802if rm -f && rm -fr && rm -rf; then : OK; else
2803  cat >&2 <<'END'
2804Oops!
2805
2806Your 'rm' program seems unable to run without file operands specified
2807on the command line, even when the '-f' option is present.  This is contrary
2808to the behaviour of most rm programs out there, and not conforming with
2809the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2810
2811Please tell bug-automake@gnu.org about your system, including the value
2812of your $PATH and any error possibly output before this message.  This
2813can help us improve future automake versions.
2814
2815END
2816  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2817    echo 'Configuration will proceed anyway, since you have set the' >&2
2818    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2819    echo >&2
2820  else
2821    cat >&2 <<'END'
2822Aborting the configuration process, to ensure you take notice of the issue.
2823
2824You can download and install GNU coreutils to get an 'rm' implementation
2825that behaves properly: <http://www.gnu.org/software/coreutils/>.
2826
2827If you want to complete the configuration process using your problematic
2828'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2829to "yes", and re-run configure.
2830
2831END
2832    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2833  fi
2834fi
2835
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2837$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2838    # Check whether --enable-maintainer-mode was given.
2839if test "${enable_maintainer_mode+set}" = set; then :
2840  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2841else
2842  USE_MAINTAINER_MODE=no
2843fi
2844
2845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2846$as_echo "$USE_MAINTAINER_MODE" >&6; }
2847   if test $USE_MAINTAINER_MODE = yes; then
2848  MAINTAINER_MODE_TRUE=
2849  MAINTAINER_MODE_FALSE='#'
2850else
2851  MAINTAINER_MODE_TRUE='#'
2852  MAINTAINER_MODE_FALSE=
2853fi
2854
2855  MAINT=$MAINTAINER_MODE_TRUE
2856
2857
2858ac_config_headers="$ac_config_headers src/iperf_config.h"
2859
2860
2861# Make sure we can run config.sub.
2862$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2863  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2864
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2866$as_echo_n "checking build system type... " >&6; }
2867if ${ac_cv_build+:} false; then :
2868  $as_echo_n "(cached) " >&6
2869else
2870  ac_build_alias=$build_alias
2871test "x$ac_build_alias" = x &&
2872  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2873test "x$ac_build_alias" = x &&
2874  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2875ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2876  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2877
2878fi
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2880$as_echo "$ac_cv_build" >&6; }
2881case $ac_cv_build in
2882*-*-*) ;;
2883*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2884esac
2885build=$ac_cv_build
2886ac_save_IFS=$IFS; IFS='-'
2887set x $ac_cv_build
2888shift
2889build_cpu=$1
2890build_vendor=$2
2891shift; shift
2892# Remember, the first character of IFS is used to create $*,
2893# except with old shells:
2894build_os=$*
2895IFS=$ac_save_IFS
2896case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2897
2898
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2900$as_echo_n "checking host system type... " >&6; }
2901if ${ac_cv_host+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  if test "x$host_alias" = x; then
2905  ac_cv_host=$ac_cv_build
2906else
2907  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2908    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2909fi
2910
2911fi
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2913$as_echo "$ac_cv_host" >&6; }
2914case $ac_cv_host in
2915*-*-*) ;;
2916*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2917esac
2918host=$ac_cv_host
2919ac_save_IFS=$IFS; IFS='-'
2920set x $ac_cv_host
2921shift
2922host_cpu=$1
2923host_vendor=$2
2924shift; shift
2925# Remember, the first character of IFS is used to create $*,
2926# except with old shells:
2927host_os=$*
2928IFS=$ac_save_IFS
2929case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2930
2931
2932
2933# Checks for tools: c compiler, ranlib (used for creating static libraries),
2934# symlinks and libtool
2935ac_ext=c
2936ac_cpp='$CPP $CPPFLAGS'
2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940if test -n "$ac_tool_prefix"; then
2941  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}gcc; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if ${ac_cv_prog_CC+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  if test -n "$CC"; then
2949  ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954  IFS=$as_save_IFS
2955  test -z "$as_dir" && as_dir=.
2956    for ac_exec_ext in '' $ac_executable_extensions; do
2957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960    break 2
2961  fi
2962done
2963  done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$ac_cv_prog_CC"; then
2980  ac_ct_CC=$CC
2981  # Extract the first word of "gcc", so it can be a program name with args.
2982set dummy gcc; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if ${ac_cv_prog_ac_ct_CC+:} false; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  if test -n "$ac_ct_CC"; then
2989  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994  IFS=$as_save_IFS
2995  test -z "$as_dir" && as_dir=.
2996    for ac_exec_ext in '' $ac_executable_extensions; do
2997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998    ac_cv_prog_ac_ct_CC="gcc"
2999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000    break 2
3001  fi
3002done
3003  done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
3008ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009if test -n "$ac_ct_CC"; then
3010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011$as_echo "$ac_ct_CC" >&6; }
3012else
3013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017  if test "x$ac_ct_CC" = x; then
3018    CC=""
3019  else
3020    case $cross_compiling:$ac_tool_warned in
3021yes:)
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024ac_tool_warned=yes ;;
3025esac
3026    CC=$ac_ct_CC
3027  fi
3028else
3029  CC="$ac_cv_prog_CC"
3030fi
3031
3032if test -z "$CC"; then
3033          if test -n "$ac_tool_prefix"; then
3034    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035set dummy ${ac_tool_prefix}cc; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if ${ac_cv_prog_CC+:} false; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  if test -n "$CC"; then
3042  ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051    ac_cv_prog_CC="${ac_tool_prefix}cc"
3052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053    break 2
3054  fi
3055done
3056  done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061CC=$ac_cv_prog_CC
3062if test -n "$CC"; then
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064$as_echo "$CC" >&6; }
3065else
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
3071  fi
3072fi
3073if test -z "$CC"; then
3074  # Extract the first word of "cc", so it can be a program name with args.
3075set dummy cc; ac_word=$2
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if ${ac_cv_prog_CC+:} false; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  if test -n "$CC"; then
3082  ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084  ac_prog_rejected=no
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093       ac_prog_rejected=yes
3094       continue
3095     fi
3096    ac_cv_prog_CC="cc"
3097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098    break 2
3099  fi
3100done
3101  done
3102IFS=$as_save_IFS
3103
3104if test $ac_prog_rejected = yes; then
3105  # We found a bogon in the path, so make sure we never use it.
3106  set dummy $ac_cv_prog_CC
3107  shift
3108  if test $# != 0; then
3109    # We chose a different compiler from the bogus one.
3110    # However, it has the same basename, so the bogon will be chosen
3111    # first if we set CC to just the basename; use the full file name.
3112    shift
3113    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114  fi
3115fi
3116fi
3117fi
3118CC=$ac_cv_prog_CC
3119if test -n "$CC"; then
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121$as_echo "$CC" >&6; }
3122else
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
3127
3128fi
3129if test -z "$CC"; then
3130  if test -n "$ac_tool_prefix"; then
3131  for ac_prog in cl.exe
3132  do
3133    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_CC+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139else
3140  if test -n "$CC"; then
3141  ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148    for ac_exec_ext in '' $ac_executable_extensions; do
3149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152    break 2
3153  fi
3154done
3155  done
3156IFS=$as_save_IFS
3157
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
3164else
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170    test -n "$CC" && break
3171  done
3172fi
3173if test -z "$CC"; then
3174  ac_ct_CC=$CC
3175  for ac_prog in cl.exe
3176do
3177  # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  if test -n "$ac_ct_CC"; then
3185  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194    ac_cv_prog_ac_ct_CC="$ac_prog"
3195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196    break 2
3197  fi
3198done
3199  done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205if test -n "$ac_ct_CC"; then
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207$as_echo "$ac_ct_CC" >&6; }
3208else
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214  test -n "$ac_ct_CC" && break
3215done
3216
3217  if test "x$ac_ct_CC" = x; then
3218    CC=""
3219  else
3220    case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226    CC=$ac_ct_CC
3227  fi
3228fi
3229
3230fi
3231
3232
3233test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error $? "no acceptable C compiler found in \$PATH
3236See \`config.log' for more details" "$LINENO" 5; }
3237
3238# Provide some information about the compiler.
3239$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3240set X $ac_compile
3241ac_compiler=$2
3242for ac_option in --version -v -V -qversion; do
3243  { { ac_try="$ac_compiler $ac_option >&5"
3244case "(($ac_try" in
3245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246  *) ac_try_echo=$ac_try;;
3247esac
3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251  ac_status=$?
3252  if test -s conftest.err; then
3253    sed '10a\
3254... rest of stderr output deleted ...
3255         10q' conftest.err >conftest.er1
3256    cat conftest.er1 >&5
3257  fi
3258  rm -f conftest.er1 conftest.err
3259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260  test $ac_status = 0; }
3261done
3262
3263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265
3266int
3267main ()
3268{
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274ac_clean_files_save=$ac_clean_files
3275ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3276# Try to create an executable without -o first, disregard a.out.
3277# It will help us diagnose broken compilers, and finding out an intuition
3278# of exeext.
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3280$as_echo_n "checking whether the C compiler works... " >&6; }
3281ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282
3283# The possible output files:
3284ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3285
3286ac_rmfiles=
3287for ac_file in $ac_files
3288do
3289  case $ac_file in
3290    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3292  esac
3293done
3294rm -f $ac_rmfiles
3295
3296if { { ac_try="$ac_link_default"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302$as_echo "$ac_try_echo"; } >&5
3303  (eval "$ac_link_default") 2>&5
3304  ac_status=$?
3305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306  test $ac_status = 0; }; then :
3307  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3308# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3309# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3310# so that the user can short-circuit this test for compilers unknown to
3311# Autoconf.
3312for ac_file in $ac_files ''
3313do
3314  test -f "$ac_file" || continue
3315  case $ac_file in
3316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3317	;;
3318    [ab].out )
3319	# We found the default executable, but exeext='' is most
3320	# certainly right.
3321	break;;
3322    *.* )
3323	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3324	then :; else
3325	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326	fi
3327	# We set ac_cv_exeext here because the later test for it is not
3328	# safe: cross compilers may not add the suffix if given an `-o'
3329	# argument, so we may need to know it at that point already.
3330	# Even if this section looks crufty: it has the advantage of
3331	# actually working.
3332	break;;
3333    * )
3334	break;;
3335  esac
3336done
3337test "$ac_cv_exeext" = no && ac_cv_exeext=
3338
3339else
3340  ac_file=''
3341fi
3342if test -z "$ac_file"; then :
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345$as_echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350as_fn_error 77 "C compiler cannot create executables
3351See \`config.log' for more details" "$LINENO" 5; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354$as_echo "yes" >&6; }
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3357$as_echo_n "checking for C compiler default output file name... " >&6; }
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3359$as_echo "$ac_file" >&6; }
3360ac_exeext=$ac_cv_exeext
3361
3362rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363ac_clean_files=$ac_clean_files_save
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3365$as_echo_n "checking for suffix of executables... " >&6; }
3366if { { ac_try="$ac_link"
3367case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_link") 2>&5
3374  ac_status=$?
3375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376  test $ac_status = 0; }; then :
3377  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3378# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3379# work properly (i.e., refer to `conftest.exe'), while it won't with
3380# `rm'.
3381for ac_file in conftest.exe conftest conftest.*; do
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    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386	  break;;
3387    * ) break;;
3388  esac
3389done
3390else
3391  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3394See \`config.log' for more details" "$LINENO" 5; }
3395fi
3396rm -f conftest conftest$ac_cv_exeext
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3398$as_echo "$ac_cv_exeext" >&6; }
3399
3400rm -f conftest.$ac_ext
3401EXEEXT=$ac_cv_exeext
3402ac_exeext=$EXEEXT
3403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405#include <stdio.h>
3406int
3407main ()
3408{
3409FILE *f = fopen ("conftest.out", "w");
3410 return ferror (f) || fclose (f) != 0;
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416ac_clean_files="$ac_clean_files conftest.out"
3417# Check that the compiler produces executables we can run.  If not, either
3418# the compiler is broken, or we cross compile.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420$as_echo_n "checking whether we are cross compiling... " >&6; }
3421if test "$cross_compiling" != yes; then
3422  { { ac_try="$ac_link"
3423case "(($ac_try" in
3424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425  *) ac_try_echo=$ac_try;;
3426esac
3427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428$as_echo "$ac_try_echo"; } >&5
3429  (eval "$ac_link") 2>&5
3430  ac_status=$?
3431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432  test $ac_status = 0; }
3433  if { ac_try='./conftest$ac_cv_exeext'
3434  { { case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
3440  (eval "$ac_try") 2>&5
3441  ac_status=$?
3442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443  test $ac_status = 0; }; }; then
3444    cross_compiling=no
3445  else
3446    if test "$cross_compiling" = maybe; then
3447	cross_compiling=yes
3448    else
3449	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451as_fn_error $? "cannot run C compiled programs.
3452If you meant to cross compile, use \`--host'.
3453See \`config.log' for more details" "$LINENO" 5; }
3454    fi
3455  fi
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3458$as_echo "$cross_compiling" >&6; }
3459
3460rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3461ac_clean_files=$ac_clean_files_save
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3463$as_echo_n "checking for suffix of object files... " >&6; }
3464if ${ac_cv_objext+:} false; then :
3465  $as_echo_n "(cached) " >&6
3466else
3467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478rm -f conftest.o conftest.obj
3479if { { ac_try="$ac_compile"
3480case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485$as_echo "$ac_try_echo"; } >&5
3486  (eval "$ac_compile") 2>&5
3487  ac_status=$?
3488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489  test $ac_status = 0; }; then :
3490  for ac_file in conftest.o conftest.obj conftest.*; do
3491  test -f "$ac_file" || continue;
3492  case $ac_file in
3493    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3494    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495       break;;
3496  esac
3497done
3498else
3499  $as_echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504as_fn_error $? "cannot compute suffix of object files: cannot compile
3505See \`config.log' for more details" "$LINENO" 5; }
3506fi
3507rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3510$as_echo "$ac_cv_objext" >&6; }
3511OBJEXT=$ac_cv_objext
3512ac_objext=$OBJEXT
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3514$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515if ${ac_cv_c_compiler_gnu+:} false; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524#ifndef __GNUC__
3525       choke me
3526#endif
3527
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532if ac_fn_c_try_compile "$LINENO"; then :
3533  ac_compiler_gnu=yes
3534else
3535  ac_compiler_gnu=no
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3542$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3543if test $ac_compiler_gnu = yes; then
3544  GCC=yes
3545else
3546  GCC=
3547fi
3548ac_test_CFLAGS=${CFLAGS+set}
3549ac_save_CFLAGS=$CFLAGS
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3551$as_echo_n "checking whether $CC accepts -g... " >&6; }
3552if ${ac_cv_prog_cc_g+:} false; then :
3553  $as_echo_n "(cached) " >&6
3554else
3555  ac_save_c_werror_flag=$ac_c_werror_flag
3556   ac_c_werror_flag=yes
3557   ac_cv_prog_cc_g=no
3558   CFLAGS="-g"
3559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570if ac_fn_c_try_compile "$LINENO"; then :
3571  ac_cv_prog_cc_g=yes
3572else
3573  CFLAGS=""
3574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585if ac_fn_c_try_compile "$LINENO"; then :
3586
3587else
3588  ac_c_werror_flag=$ac_save_c_werror_flag
3589	 CFLAGS="-g"
3590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601if ac_fn_c_try_compile "$LINENO"; then :
3602  ac_cv_prog_cc_g=yes
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609   ac_c_werror_flag=$ac_save_c_werror_flag
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3612$as_echo "$ac_cv_prog_cc_g" >&6; }
3613if test "$ac_test_CFLAGS" = set; then
3614  CFLAGS=$ac_save_CFLAGS
3615elif test $ac_cv_prog_cc_g = yes; then
3616  if test "$GCC" = yes; then
3617    CFLAGS="-g -O2"
3618  else
3619    CFLAGS="-g"
3620  fi
3621else
3622  if test "$GCC" = yes; then
3623    CFLAGS="-O2"
3624  else
3625    CFLAGS=
3626  fi
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3629$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3630if ${ac_cv_prog_cc_c89+:} false; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  ac_cv_prog_cc_c89=no
3634ac_save_CC=$CC
3635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636/* end confdefs.h.  */
3637#include <stdarg.h>
3638#include <stdio.h>
3639struct stat;
3640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3641struct buf { int x; };
3642FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643static char *e (p, i)
3644     char **p;
3645     int i;
3646{
3647  return p[i];
3648}
3649static char *f (char * (*g) (char **, int), char **p, ...)
3650{
3651  char *s;
3652  va_list v;
3653  va_start (v,p);
3654  s = g (p, va_arg (v,int));
3655  va_end (v);
3656  return s;
3657}
3658
3659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3660   function prototypes and stuff, but not '\xHH' hex character constants.
3661   These don't provoke an error unfortunately, instead are silently treated
3662   as 'x'.  The following induces an error, until -std is added to get
3663   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3664   array size at least.  It's necessary to write '\x00'==0 to get something
3665   that's true only with -std.  */
3666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669   inside strings and character constants.  */
3670#define FOO(x) 'x'
3671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
3673int test (int i, double x);
3674struct s1 {int (*f) (int a);};
3675struct s2 {int (*f) (double a);};
3676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677int argc;
3678char **argv;
3679int
3680main ()
3681{
3682return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689do
3690  CC="$ac_save_CC $ac_arg"
3691  if ac_fn_c_try_compile "$LINENO"; then :
3692  ac_cv_prog_cc_c89=$ac_arg
3693fi
3694rm -f core conftest.err conftest.$ac_objext
3695  test "x$ac_cv_prog_cc_c89" != "xno" && break
3696done
3697rm -f conftest.$ac_ext
3698CC=$ac_save_CC
3699
3700fi
3701# AC_CACHE_VAL
3702case "x$ac_cv_prog_cc_c89" in
3703  x)
3704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705$as_echo "none needed" >&6; } ;;
3706  xno)
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708$as_echo "unsupported" >&6; } ;;
3709  *)
3710    CC="$CC $ac_cv_prog_cc_c89"
3711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713esac
3714if test "x$ac_cv_prog_cc_c89" != xno; then :
3715
3716fi
3717
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3730$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3731if ${am_cv_prog_cc_c_o+:} false; then :
3732  $as_echo_n "(cached) " >&6
3733else
3734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h.  */
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745  # Make sure it works both with $CC and with simple cc.
3746  # Following AC_PROG_CC_C_O, we do the test twice because some
3747  # compilers refuse to overwrite an existing .o file with -o,
3748  # though they will create one.
3749  am_cv_prog_cc_c_o=yes
3750  for am_i in 1 2; do
3751    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3752   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } \
3756         && test -f conftest2.$ac_objext; then
3757      : OK
3758    else
3759      am_cv_prog_cc_c_o=no
3760      break
3761    fi
3762  done
3763  rm -f core conftest*
3764  unset am_i
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3767$as_echo "$am_cv_prog_cc_c_o" >&6; }
3768if test "$am_cv_prog_cc_c_o" != yes; then
3769   # Losing compiler, so override with the script.
3770   # FIXME: It is wrong to rewrite CC.
3771   # But if we don't then we get into trouble of one sort or another.
3772   # A longer-term fix would be to have automake use am__CC in this case,
3773   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3774   CC="$am_aux_dir/compile $CC"
3775fi
3776ac_ext=c
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781
3782DEPDIR="${am__leading_dot}deps"
3783
3784ac_config_commands="$ac_config_commands depfiles"
3785
3786
3787am_make=${MAKE-make}
3788cat > confinc << 'END'
3789am__doit:
3790	@echo this is the am__doit target
3791.PHONY: am__doit
3792END
3793# If we don't find an include directive, just comment out the code.
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3795$as_echo_n "checking for style of include used by $am_make... " >&6; }
3796am__include="#"
3797am__quote=
3798_am_result=none
3799# First try GNU make style include.
3800echo "include confinc" > confmf
3801# Ignore all kinds of additional output from 'make'.
3802case `$am_make -s -f confmf 2> /dev/null` in #(
3803*the\ am__doit\ target*)
3804  am__include=include
3805  am__quote=
3806  _am_result=GNU
3807  ;;
3808esac
3809# Now try BSD make style include.
3810if test "$am__include" = "#"; then
3811   echo '.include "confinc"' > confmf
3812   case `$am_make -s -f confmf 2> /dev/null` in #(
3813   *the\ am__doit\ target*)
3814     am__include=.include
3815     am__quote="\""
3816     _am_result=BSD
3817     ;;
3818   esac
3819fi
3820
3821
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3823$as_echo "$_am_result" >&6; }
3824rm -f confinc confmf
3825
3826# Check whether --enable-dependency-tracking was given.
3827if test "${enable_dependency_tracking+set}" = set; then :
3828  enableval=$enable_dependency_tracking;
3829fi
3830
3831if test "x$enable_dependency_tracking" != xno; then
3832  am_depcomp="$ac_aux_dir/depcomp"
3833  AMDEPBACKSLASH='\'
3834  am__nodep='_no'
3835fi
3836 if test "x$enable_dependency_tracking" != xno; then
3837  AMDEP_TRUE=
3838  AMDEP_FALSE='#'
3839else
3840  AMDEP_TRUE='#'
3841  AMDEP_FALSE=
3842fi
3843
3844
3845
3846depcc="$CC"   am_compiler_list=
3847
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3849$as_echo_n "checking dependency style of $depcc... " >&6; }
3850if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3851  $as_echo_n "(cached) " >&6
3852else
3853  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854  # We make a subdir and do the tests there.  Otherwise we can end up
3855  # making bogus files that we don't know about and never remove.  For
3856  # instance it was reported that on HP-UX the gcc test will end up
3857  # making a dummy file named 'D' -- because '-MD' means "put the output
3858  # in D".
3859  rm -rf conftest.dir
3860  mkdir conftest.dir
3861  # Copy depcomp to subdir because otherwise we won't find it if we're
3862  # using a relative directory.
3863  cp "$am_depcomp" conftest.dir
3864  cd conftest.dir
3865  # We will build objects and dependencies in a subdirectory because
3866  # it helps to detect inapplicable dependency modes.  For instance
3867  # both Tru64's cc and ICC support -MD to output dependencies as a
3868  # side effect of compilation, but ICC will put the dependencies in
3869  # the current directory while Tru64 will put them in the object
3870  # directory.
3871  mkdir sub
3872
3873  am_cv_CC_dependencies_compiler_type=none
3874  if test "$am_compiler_list" = ""; then
3875     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876  fi
3877  am__universal=false
3878  case " $depcc " in #(
3879     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3880     esac
3881
3882  for depmode in $am_compiler_list; do
3883    # Setup a source with many dependencies, because some compilers
3884    # like to wrap large dependency lists on column 80 (with \), and
3885    # we should not choose a depcomp mode which is confused by this.
3886    #
3887    # We need to recreate these files for each test, as the compiler may
3888    # overwrite some of them when testing with obscure command lines.
3889    # This happens at least with the AIX C compiler.
3890    : > sub/conftest.c
3891    for i in 1 2 3 4 5 6; do
3892      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3894      # Solaris 10 /bin/sh.
3895      echo '/* dummy */' > sub/conftst$i.h
3896    done
3897    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3898
3899    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3900    # mode.  It turns out that the SunPro C++ compiler does not properly
3901    # handle '-M -o', and we need to detect this.  Also, some Intel
3902    # versions had trouble with output in subdirs.
3903    am__obj=sub/conftest.${OBJEXT-o}
3904    am__minus_obj="-o $am__obj"
3905    case $depmode in
3906    gcc)
3907      # This depmode causes a compiler race in universal mode.
3908      test "$am__universal" = false || continue
3909      ;;
3910    nosideeffect)
3911      # After this tag, mechanisms are not by side-effect, so they'll
3912      # only be used when explicitly requested.
3913      if test "x$enable_dependency_tracking" = xyes; then
3914	continue
3915      else
3916	break
3917      fi
3918      ;;
3919    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3920      # This compiler won't grok '-c -o', but also, the minuso test has
3921      # not run yet.  These depmodes are late enough in the game, and
3922      # so weak that their functioning should not be impacted.
3923      am__obj=conftest.${OBJEXT-o}
3924      am__minus_obj=
3925      ;;
3926    none) break ;;
3927    esac
3928    if depmode=$depmode \
3929       source=sub/conftest.c object=$am__obj \
3930       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3931       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3932         >/dev/null 2>conftest.err &&
3933       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3934       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3936       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937      # icc doesn't choke on unknown options, it will just issue warnings
3938      # or remarks (even with -Werror).  So we grep stderr for any message
3939      # that says an option was ignored or not supported.
3940      # When given -MP, icc 7.0 and 7.1 complain thusly:
3941      #   icc: Command line warning: ignoring option '-M'; no argument required
3942      # The diagnosis changed in icc 8.0:
3943      #   icc: Command line remark: option '-MP' not supported
3944      if (grep 'ignoring option' conftest.err ||
3945          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946        am_cv_CC_dependencies_compiler_type=$depmode
3947        break
3948      fi
3949    fi
3950  done
3951
3952  cd ..
3953  rm -rf conftest.dir
3954else
3955  am_cv_CC_dependencies_compiler_type=none
3956fi
3957
3958fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3960$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3961CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3962
3963 if
3964  test "x$enable_dependency_tracking" != xno \
3965  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3966  am__fastdepCC_TRUE=
3967  am__fastdepCC_FALSE='#'
3968else
3969  am__fastdepCC_TRUE='#'
3970  am__fastdepCC_FALSE=
3971fi
3972
3973
3974if test -n "$ac_tool_prefix"; then
3975  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3976set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
3979if ${ac_cv_prog_RANLIB+:} false; then :
3980  $as_echo_n "(cached) " >&6
3981else
3982  if test -n "$RANLIB"; then
3983  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3984else
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988  IFS=$as_save_IFS
3989  test -z "$as_dir" && as_dir=.
3990    for ac_exec_ext in '' $ac_executable_extensions; do
3991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994    break 2
3995  fi
3996done
3997  done
3998IFS=$as_save_IFS
3999
4000fi
4001fi
4002RANLIB=$ac_cv_prog_RANLIB
4003if test -n "$RANLIB"; then
4004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4005$as_echo "$RANLIB" >&6; }
4006else
4007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008$as_echo "no" >&6; }
4009fi
4010
4011
4012fi
4013if test -z "$ac_cv_prog_RANLIB"; then
4014  ac_ct_RANLIB=$RANLIB
4015  # Extract the first word of "ranlib", so it can be a program name with args.
4016set dummy ranlib; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  if test -n "$ac_ct_RANLIB"; then
4023  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_exec_ext in '' $ac_executable_extensions; do
4031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032    ac_cv_prog_ac_ct_RANLIB="ranlib"
4033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034    break 2
4035  fi
4036done
4037  done
4038IFS=$as_save_IFS
4039
4040fi
4041fi
4042ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4043if test -n "$ac_ct_RANLIB"; then
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4045$as_echo "$ac_ct_RANLIB" >&6; }
4046else
4047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051  if test "x$ac_ct_RANLIB" = x; then
4052    RANLIB=":"
4053  else
4054    case $cross_compiling:$ac_tool_warned in
4055yes:)
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4058ac_tool_warned=yes ;;
4059esac
4060    RANLIB=$ac_ct_RANLIB
4061  fi
4062else
4063  RANLIB="$ac_cv_prog_RANLIB"
4064fi
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4067$as_echo_n "checking whether ln -s works... " >&6; }
4068LN_S=$as_ln_s
4069if test "$LN_S" = "ln -s"; then
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4071$as_echo "yes" >&6; }
4072else
4073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4074$as_echo "no, using $LN_S" >&6; }
4075fi
4076
4077case `pwd` in
4078  *\ * | *\	*)
4079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4080$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4081esac
4082
4083
4084
4085macro_version='2.4.4'
4086macro_revision='2.4.4'
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100ltmain=$ac_aux_dir/ltmain.sh
4101
4102# Backslashify metacharacters that are still active within
4103# double-quoted strings.
4104sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4105
4106# Same as above, but do not quote variable references.
4107double_quote_subst='s/\(["`\\]\)/\\\1/g'
4108
4109# Sed substitution to delay expansion of an escaped shell variable in a
4110# double_quote_subst'ed string.
4111delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4112
4113# Sed substitution to delay expansion of an escaped single quote.
4114delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4115
4116# Sed substitution to avoid accidental globbing in evaled expressions
4117no_glob_subst='s/\*/\\\*/g'
4118
4119ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4124$as_echo_n "checking how to print strings... " >&6; }
4125# Test print first, because it will be a builtin if present.
4126if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4127   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4128  ECHO='print -r --'
4129elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4130  ECHO='printf %s\n'
4131else
4132  # Use this function as a fallback that always works.
4133  func_fallback_echo ()
4134  {
4135    eval 'cat <<_LTECHO_EOF
4136$1
4137_LTECHO_EOF'
4138  }
4139  ECHO='func_fallback_echo'
4140fi
4141
4142# func_echo_all arg...
4143# Invoke $ECHO with all args, space-separated.
4144func_echo_all ()
4145{
4146    $ECHO ""
4147}
4148
4149case $ECHO in
4150  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4151$as_echo "printf" >&6; } ;;
4152  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4153$as_echo "print -r" >&6; } ;;
4154  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4155$as_echo "cat" >&6; } ;;
4156esac
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4172$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4173if ${ac_cv_path_SED+:} false; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4177     for ac_i in 1 2 3 4 5 6 7; do
4178       ac_script="$ac_script$as_nl$ac_script"
4179     done
4180     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4181     { ac_script=; unset ac_script;}
4182     if test -z "$SED"; then
4183  ac_path_SED_found=false
4184  # Loop through the user's path and test for each of PROGNAME-LIST
4185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188  IFS=$as_save_IFS
4189  test -z "$as_dir" && as_dir=.
4190    for ac_prog in sed gsed; do
4191    for ac_exec_ext in '' $ac_executable_extensions; do
4192      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4193      as_fn_executable_p "$ac_path_SED" || continue
4194# Check for GNU ac_path_SED and select it if it is found.
4195  # Check for GNU $ac_path_SED
4196case `"$ac_path_SED" --version 2>&1` in
4197*GNU*)
4198  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4199*)
4200  ac_count=0
4201  $as_echo_n 0123456789 >"conftest.in"
4202  while :
4203  do
4204    cat "conftest.in" "conftest.in" >"conftest.tmp"
4205    mv "conftest.tmp" "conftest.in"
4206    cp "conftest.in" "conftest.nl"
4207    $as_echo '' >> "conftest.nl"
4208    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210    as_fn_arith $ac_count + 1 && ac_count=$as_val
4211    if test $ac_count -gt ${ac_path_SED_max-0}; then
4212      # Best one so far, save it but keep looking for a better one
4213      ac_cv_path_SED="$ac_path_SED"
4214      ac_path_SED_max=$ac_count
4215    fi
4216    # 10*(2^10) chars as input seems more than enough
4217    test $ac_count -gt 10 && break
4218  done
4219  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220esac
4221
4222      $ac_path_SED_found && break 3
4223    done
4224  done
4225  done
4226IFS=$as_save_IFS
4227  if test -z "$ac_cv_path_SED"; then
4228    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4229  fi
4230else
4231  ac_cv_path_SED=$SED
4232fi
4233
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4236$as_echo "$ac_cv_path_SED" >&6; }
4237 SED="$ac_cv_path_SED"
4238  rm -f conftest.sed
4239
4240test -z "$SED" && SED=sed
4241Xsed="$SED -e 1s/^X//"
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4254$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4255if ${ac_cv_path_GREP+:} false; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  if test -z "$GREP"; then
4259  ac_path_GREP_found=false
4260  # Loop through the user's path and test for each of PROGNAME-LIST
4261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263do
4264  IFS=$as_save_IFS
4265  test -z "$as_dir" && as_dir=.
4266    for ac_prog in grep ggrep; do
4267    for ac_exec_ext in '' $ac_executable_extensions; do
4268      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4269      as_fn_executable_p "$ac_path_GREP" || continue
4270# Check for GNU ac_path_GREP and select it if it is found.
4271  # Check for GNU $ac_path_GREP
4272case `"$ac_path_GREP" --version 2>&1` in
4273*GNU*)
4274  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275*)
4276  ac_count=0
4277  $as_echo_n 0123456789 >"conftest.in"
4278  while :
4279  do
4280    cat "conftest.in" "conftest.in" >"conftest.tmp"
4281    mv "conftest.tmp" "conftest.in"
4282    cp "conftest.in" "conftest.nl"
4283    $as_echo 'GREP' >> "conftest.nl"
4284    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286    as_fn_arith $ac_count + 1 && ac_count=$as_val
4287    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4288      # Best one so far, save it but keep looking for a better one
4289      ac_cv_path_GREP="$ac_path_GREP"
4290      ac_path_GREP_max=$ac_count
4291    fi
4292    # 10*(2^10) chars as input seems more than enough
4293    test $ac_count -gt 10 && break
4294  done
4295  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296esac
4297
4298      $ac_path_GREP_found && break 3
4299    done
4300  done
4301  done
4302IFS=$as_save_IFS
4303  if test -z "$ac_cv_path_GREP"; then
4304    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305  fi
4306else
4307  ac_cv_path_GREP=$GREP
4308fi
4309
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4312$as_echo "$ac_cv_path_GREP" >&6; }
4313 GREP="$ac_cv_path_GREP"
4314
4315
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4317$as_echo_n "checking for egrep... " >&6; }
4318if ${ac_cv_path_EGREP+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4322   then ac_cv_path_EGREP="$GREP -E"
4323   else
4324     if test -z "$EGREP"; then
4325  ac_path_EGREP_found=false
4326  # Loop through the user's path and test for each of PROGNAME-LIST
4327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329do
4330  IFS=$as_save_IFS
4331  test -z "$as_dir" && as_dir=.
4332    for ac_prog in egrep; do
4333    for ac_exec_ext in '' $ac_executable_extensions; do
4334      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4335      as_fn_executable_p "$ac_path_EGREP" || continue
4336# Check for GNU ac_path_EGREP and select it if it is found.
4337  # Check for GNU $ac_path_EGREP
4338case `"$ac_path_EGREP" --version 2>&1` in
4339*GNU*)
4340  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341*)
4342  ac_count=0
4343  $as_echo_n 0123456789 >"conftest.in"
4344  while :
4345  do
4346    cat "conftest.in" "conftest.in" >"conftest.tmp"
4347    mv "conftest.tmp" "conftest.in"
4348    cp "conftest.in" "conftest.nl"
4349    $as_echo 'EGREP' >> "conftest.nl"
4350    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352    as_fn_arith $ac_count + 1 && ac_count=$as_val
4353    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4354      # Best one so far, save it but keep looking for a better one
4355      ac_cv_path_EGREP="$ac_path_EGREP"
4356      ac_path_EGREP_max=$ac_count
4357    fi
4358    # 10*(2^10) chars as input seems more than enough
4359    test $ac_count -gt 10 && break
4360  done
4361  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362esac
4363
4364      $ac_path_EGREP_found && break 3
4365    done
4366  done
4367  done
4368IFS=$as_save_IFS
4369  if test -z "$ac_cv_path_EGREP"; then
4370    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371  fi
4372else
4373  ac_cv_path_EGREP=$EGREP
4374fi
4375
4376   fi
4377fi
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4379$as_echo "$ac_cv_path_EGREP" >&6; }
4380 EGREP="$ac_cv_path_EGREP"
4381
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4384$as_echo_n "checking for fgrep... " >&6; }
4385if ${ac_cv_path_FGREP+:} false; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4389   then ac_cv_path_FGREP="$GREP -F"
4390   else
4391     if test -z "$FGREP"; then
4392  ac_path_FGREP_found=false
4393  # Loop through the user's path and test for each of PROGNAME-LIST
4394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396do
4397  IFS=$as_save_IFS
4398  test -z "$as_dir" && as_dir=.
4399    for ac_prog in fgrep; do
4400    for ac_exec_ext in '' $ac_executable_extensions; do
4401      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4402      as_fn_executable_p "$ac_path_FGREP" || continue
4403# Check for GNU ac_path_FGREP and select it if it is found.
4404  # Check for GNU $ac_path_FGREP
4405case `"$ac_path_FGREP" --version 2>&1` in
4406*GNU*)
4407  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4408*)
4409  ac_count=0
4410  $as_echo_n 0123456789 >"conftest.in"
4411  while :
4412  do
4413    cat "conftest.in" "conftest.in" >"conftest.tmp"
4414    mv "conftest.tmp" "conftest.in"
4415    cp "conftest.in" "conftest.nl"
4416    $as_echo 'FGREP' >> "conftest.nl"
4417    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419    as_fn_arith $ac_count + 1 && ac_count=$as_val
4420    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4421      # Best one so far, save it but keep looking for a better one
4422      ac_cv_path_FGREP="$ac_path_FGREP"
4423      ac_path_FGREP_max=$ac_count
4424    fi
4425    # 10*(2^10) chars as input seems more than enough
4426    test $ac_count -gt 10 && break
4427  done
4428  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429esac
4430
4431      $ac_path_FGREP_found && break 3
4432    done
4433  done
4434  done
4435IFS=$as_save_IFS
4436  if test -z "$ac_cv_path_FGREP"; then
4437    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438  fi
4439else
4440  ac_cv_path_FGREP=$FGREP
4441fi
4442
4443   fi
4444fi
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4446$as_echo "$ac_cv_path_FGREP" >&6; }
4447 FGREP="$ac_cv_path_FGREP"
4448
4449
4450test -z "$GREP" && GREP=grep
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470# Check whether --with-gnu-ld was given.
4471if test "${with_gnu_ld+set}" = set; then :
4472  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4473else
4474  with_gnu_ld=no
4475fi
4476
4477ac_prog=ld
4478if test yes = "$GCC"; then
4479  # Check if gcc -print-prog-name=ld gives a path.
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4481$as_echo_n "checking for ld used by $CC... " >&6; }
4482  case $host in
4483  *-*-mingw*)
4484    # gcc leaves a trailing carriage return, which upsets mingw
4485    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4486  *)
4487    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4488  esac
4489  case $ac_prog in
4490    # Accept absolute paths.
4491    [\\/]* | ?:[\\/]*)
4492      re_direlt='/[^/][^/]*/\.\./'
4493      # Canonicalize the pathname of ld
4494      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4495      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4496	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4497      done
4498      test -z "$LD" && LD=$ac_prog
4499      ;;
4500  "")
4501    # If it fails, then pretend we aren't using GCC.
4502    ac_prog=ld
4503    ;;
4504  *)
4505    # If it is relative, then search for the first ld in PATH.
4506    with_gnu_ld=unknown
4507    ;;
4508  esac
4509elif test yes = "$with_gnu_ld"; then
4510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4511$as_echo_n "checking for GNU ld... " >&6; }
4512else
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4514$as_echo_n "checking for non-GNU ld... " >&6; }
4515fi
4516if ${lt_cv_path_LD+:} false; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if test -z "$LD"; then
4520  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4521  for ac_dir in $PATH; do
4522    IFS=$lt_save_ifs
4523    test -z "$ac_dir" && ac_dir=.
4524    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4525      lt_cv_path_LD=$ac_dir/$ac_prog
4526      # Check to see if the program is GNU ld.  I'd rather use --version,
4527      # but apparently some variants of GNU ld only accept -v.
4528      # Break only if it was the GNU/non-GNU ld that we prefer.
4529      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4530      *GNU* | *'with BFD'*)
4531	test no != "$with_gnu_ld" && break
4532	;;
4533      *)
4534	test yes != "$with_gnu_ld" && break
4535	;;
4536      esac
4537    fi
4538  done
4539  IFS=$lt_save_ifs
4540else
4541  lt_cv_path_LD=$LD # Let the user override the test with a path.
4542fi
4543fi
4544
4545LD=$lt_cv_path_LD
4546if test -n "$LD"; then
4547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4548$as_echo "$LD" >&6; }
4549else
4550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552fi
4553test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4555$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4556if ${lt_cv_prog_gnu_ld+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4560case `$LD -v 2>&1 </dev/null` in
4561*GNU* | *'with BFD'*)
4562  lt_cv_prog_gnu_ld=yes
4563  ;;
4564*)
4565  lt_cv_prog_gnu_ld=no
4566  ;;
4567esac
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4570$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4571with_gnu_ld=$lt_cv_prog_gnu_ld
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4582$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4583if ${lt_cv_path_NM+:} false; then :
4584  $as_echo_n "(cached) " >&6
4585else
4586  if test -n "$NM"; then
4587  # Let the user override the test.
4588  lt_cv_path_NM=$NM
4589else
4590  lt_nm_to_check=${ac_tool_prefix}nm
4591  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4592    lt_nm_to_check="$lt_nm_to_check nm"
4593  fi
4594  for lt_tmp_nm in $lt_nm_to_check; do
4595    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4596    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4597      IFS=$lt_save_ifs
4598      test -z "$ac_dir" && ac_dir=.
4599      tmp_nm=$ac_dir/$lt_tmp_nm
4600      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4601	# Check to see if the nm accepts a BSD-compat flag.
4602	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4603	#   nm: unknown option "B" ignored
4604	# Tru64's nm complains that /dev/null is an invalid object file
4605	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4606	case $build_os in
4607	mingw*) lt_bad_file=conftest.nm/nofile ;;
4608	*) lt_bad_file=/dev/null ;;
4609	esac
4610	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4611	*$lt_bad_file* | *'Invalid file or object type'*)
4612	  lt_cv_path_NM="$tmp_nm -B"
4613	  break 2
4614	  ;;
4615	*)
4616	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4617	  */dev/null*)
4618	    lt_cv_path_NM="$tmp_nm -p"
4619	    break 2
4620	    ;;
4621	  *)
4622	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4623	    continue # so that we can try to find one that supports BSD flags
4624	    ;;
4625	  esac
4626	  ;;
4627	esac
4628      fi
4629    done
4630    IFS=$lt_save_ifs
4631  done
4632  : ${lt_cv_path_NM=no}
4633fi
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4636$as_echo "$lt_cv_path_NM" >&6; }
4637if test no != "$lt_cv_path_NM"; then
4638  NM=$lt_cv_path_NM
4639else
4640  # Didn't find any BSD compatible name lister, look for dumpbin.
4641  if test -n "$DUMPBIN"; then :
4642    # Let the user override the test.
4643  else
4644    if test -n "$ac_tool_prefix"; then
4645  for ac_prog in dumpbin "link -dump"
4646  do
4647    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if ${ac_cv_prog_DUMPBIN+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -n "$DUMPBIN"; then
4655  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669  done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674DUMPBIN=$ac_cv_prog_DUMPBIN
4675if test -n "$DUMPBIN"; then
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4677$as_echo "$DUMPBIN" >&6; }
4678else
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684    test -n "$DUMPBIN" && break
4685  done
4686fi
4687if test -z "$DUMPBIN"; then
4688  ac_ct_DUMPBIN=$DUMPBIN
4689  for ac_prog in dumpbin "link -dump"
4690do
4691  # Extract the first word of "$ac_prog", so it can be a program name with args.
4692set dummy $ac_prog; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  if test -n "$ac_ct_DUMPBIN"; then
4699  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704  IFS=$as_save_IFS
4705  test -z "$as_dir" && as_dir=.
4706    for ac_exec_ext in '' $ac_executable_extensions; do
4707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713  done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4719if test -n "$ac_ct_DUMPBIN"; then
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4721$as_echo "$ac_ct_DUMPBIN" >&6; }
4722else
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728  test -n "$ac_ct_DUMPBIN" && break
4729done
4730
4731  if test "x$ac_ct_DUMPBIN" = x; then
4732    DUMPBIN=":"
4733  else
4734    case $cross_compiling:$ac_tool_warned in
4735yes:)
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738ac_tool_warned=yes ;;
4739esac
4740    DUMPBIN=$ac_ct_DUMPBIN
4741  fi
4742fi
4743
4744    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4745    *COFF*)
4746      DUMPBIN="$DUMPBIN -symbols -headers"
4747      ;;
4748    *)
4749      DUMPBIN=:
4750      ;;
4751    esac
4752  fi
4753
4754  if test : != "$DUMPBIN"; then
4755    NM=$DUMPBIN
4756  fi
4757fi
4758test -z "$NM" && NM=nm
4759
4760
4761
4762
4763
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4766$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4767if ${lt_cv_nm_interface+:} false; then :
4768  $as_echo_n "(cached) " >&6
4769else
4770  lt_cv_nm_interface="BSD nm"
4771  echo "int some_variable = 0;" > conftest.$ac_ext
4772  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4773  (eval "$ac_compile" 2>conftest.err)
4774  cat conftest.err >&5
4775  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4776  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4777  cat conftest.err >&5
4778  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4779  cat conftest.out >&5
4780  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4781    lt_cv_nm_interface="MS dumpbin"
4782  fi
4783  rm -f conftest*
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4786$as_echo "$lt_cv_nm_interface" >&6; }
4787
4788# find the maximum length of command line arguments
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4790$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4791if ${lt_cv_sys_max_cmd_len+:} false; then :
4792  $as_echo_n "(cached) " >&6
4793else
4794    i=0
4795  teststring=ABCD
4796
4797  case $build_os in
4798  msdosdjgpp*)
4799    # On DJGPP, this test can blow up pretty badly due to problems in libc
4800    # (any single argument exceeding 2000 bytes causes a buffer overrun
4801    # during glob expansion).  Even if it were fixed, the result of this
4802    # check would be larger than it should be.
4803    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4804    ;;
4805
4806  gnu*)
4807    # Under GNU Hurd, this test is not required because there is
4808    # no limit to the length of command line arguments.
4809    # Libtool will interpret -1 as no limit whatsoever
4810    lt_cv_sys_max_cmd_len=-1;
4811    ;;
4812
4813  cygwin* | mingw* | cegcc*)
4814    # On Win9x/ME, this test blows up -- it succeeds, but takes
4815    # about 5 minutes as the teststring grows exponentially.
4816    # Worse, since 9x/ME are not pre-emptively multitasking,
4817    # you end up with a "frozen" computer, even though with patience
4818    # the test eventually succeeds (with a max line length of 256k).
4819    # Instead, let's just punt: use the minimum linelength reported by
4820    # all of the supported platforms: 8192 (on NT/2K/XP).
4821    lt_cv_sys_max_cmd_len=8192;
4822    ;;
4823
4824  mint*)
4825    # On MiNT this can take a long time and run out of memory.
4826    lt_cv_sys_max_cmd_len=8192;
4827    ;;
4828
4829  amigaos*)
4830    # On AmigaOS with pdksh, this test takes hours, literally.
4831    # So we just punt and use a minimum line length of 8192.
4832    lt_cv_sys_max_cmd_len=8192;
4833    ;;
4834
4835  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4836    # This has been around since 386BSD, at least.  Likely further.
4837    if test -x /sbin/sysctl; then
4838      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4839    elif test -x /usr/sbin/sysctl; then
4840      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4841    else
4842      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4843    fi
4844    # And add a safety zone
4845    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4846    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4847    ;;
4848
4849  interix*)
4850    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4851    lt_cv_sys_max_cmd_len=196608
4852    ;;
4853
4854  os2*)
4855    # The test takes a long time on OS/2.
4856    lt_cv_sys_max_cmd_len=8192
4857    ;;
4858
4859  osf*)
4860    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4861    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4862    # nice to cause kernel panics so lets avoid the loop below.
4863    # First set a reasonable default.
4864    lt_cv_sys_max_cmd_len=16384
4865    #
4866    if test -x /sbin/sysconfig; then
4867      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4868        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4869      esac
4870    fi
4871    ;;
4872  sco3.2v5*)
4873    lt_cv_sys_max_cmd_len=102400
4874    ;;
4875  sysv5* | sco5v6* | sysv4.2uw2*)
4876    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4877    if test -n "$kargmax"; then
4878      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4879    else
4880      lt_cv_sys_max_cmd_len=32768
4881    fi
4882    ;;
4883  *)
4884    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4885    if test -n "$lt_cv_sys_max_cmd_len" && \
4886       test undefined != "$lt_cv_sys_max_cmd_len"; then
4887      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4888      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4889    else
4890      # Make teststring a little bigger before we do anything with it.
4891      # a 1K string should be a reasonable start.
4892      for i in 1 2 3 4 5 6 7 8; do
4893        teststring=$teststring$teststring
4894      done
4895      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4896      # If test is not a shell built-in, we'll probably end up computing a
4897      # maximum length that is only half of the actual maximum length, but
4898      # we can't tell.
4899      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4900	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4901	      test 17 != "$i" # 1/2 MB should be enough
4902      do
4903        i=`expr $i + 1`
4904        teststring=$teststring$teststring
4905      done
4906      # Only check the string length outside the loop.
4907      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4908      teststring=
4909      # Add a significant safety factor because C++ compilers can tack on
4910      # massive amounts of additional arguments before passing them to the
4911      # linker.  It appears as though 1/2 is a usable value.
4912      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4913    fi
4914    ;;
4915  esac
4916
4917fi
4918
4919if test -n "$lt_cv_sys_max_cmd_len"; then
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4921$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4922else
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4924$as_echo "none" >&6; }
4925fi
4926max_cmd_len=$lt_cv_sys_max_cmd_len
4927
4928
4929
4930
4931
4932
4933: ${CP="cp -f"}
4934: ${MV="mv -f"}
4935: ${RM="rm -f"}
4936
4937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4938  lt_unset=unset
4939else
4940  lt_unset=false
4941fi
4942
4943
4944
4945
4946
4947# test EBCDIC or ASCII
4948case `echo X|tr X '\101'` in
4949 A) # ASCII based system
4950    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4951  lt_SP2NL='tr \040 \012'
4952  lt_NL2SP='tr \015\012 \040\040'
4953  ;;
4954 *) # EBCDIC based system
4955  lt_SP2NL='tr \100 \n'
4956  lt_NL2SP='tr \r\n \100\100'
4957  ;;
4958esac
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4969$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4970if ${lt_cv_to_host_file_cmd+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  case $host in
4974  *-*-mingw* )
4975    case $build in
4976      *-*-mingw* ) # actually msys
4977        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4978        ;;
4979      *-*-cygwin* )
4980        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4981        ;;
4982      * ) # otherwise, assume *nix
4983        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4984        ;;
4985    esac
4986    ;;
4987  *-*-cygwin* )
4988    case $build in
4989      *-*-mingw* ) # actually msys
4990        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4991        ;;
4992      *-*-cygwin* )
4993        lt_cv_to_host_file_cmd=func_convert_file_noop
4994        ;;
4995      * ) # otherwise, assume *nix
4996        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4997        ;;
4998    esac
4999    ;;
5000  * ) # unhandled hosts (and "normal" native builds)
5001    lt_cv_to_host_file_cmd=func_convert_file_noop
5002    ;;
5003esac
5004
5005fi
5006
5007to_host_file_cmd=$lt_cv_to_host_file_cmd
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5009$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5010
5011
5012
5013
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5016$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5017if ${lt_cv_to_tool_file_cmd+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  #assume ordinary cross tools, or native build.
5021lt_cv_to_tool_file_cmd=func_convert_file_noop
5022case $host in
5023  *-*-mingw* )
5024    case $build in
5025      *-*-mingw* ) # actually msys
5026        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5027        ;;
5028    esac
5029    ;;
5030esac
5031
5032fi
5033
5034to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5036$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5037
5038
5039
5040
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5043$as_echo_n "checking for $LD option to reload object files... " >&6; }
5044if ${lt_cv_ld_reload_flag+:} false; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  lt_cv_ld_reload_flag='-r'
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5050$as_echo "$lt_cv_ld_reload_flag" >&6; }
5051reload_flag=$lt_cv_ld_reload_flag
5052case $reload_flag in
5053"" | " "*) ;;
5054*) reload_flag=" $reload_flag" ;;
5055esac
5056reload_cmds='$LD$reload_flag -o $output$reload_objs'
5057case $host_os in
5058  cygwin* | mingw* | pw32* | cegcc*)
5059    if test yes != "$GCC"; then
5060      reload_cmds=false
5061    fi
5062    ;;
5063  darwin*)
5064    if test yes = "$GCC"; then
5065      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5066    else
5067      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5068    fi
5069    ;;
5070esac
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080if test -n "$ac_tool_prefix"; then
5081  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5082set dummy ${ac_tool_prefix}objdump; ac_word=$2
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if ${ac_cv_prog_OBJDUMP+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  if test -n "$OBJDUMP"; then
5089  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094  IFS=$as_save_IFS
5095  test -z "$as_dir" && as_dir=.
5096    for ac_exec_ext in '' $ac_executable_extensions; do
5097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103  done
5104IFS=$as_save_IFS
5105
5106fi
5107fi
5108OBJDUMP=$ac_cv_prog_OBJDUMP
5109if test -n "$OBJDUMP"; then
5110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5111$as_echo "$OBJDUMP" >&6; }
5112else
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116
5117
5118fi
5119if test -z "$ac_cv_prog_OBJDUMP"; then
5120  ac_ct_OBJDUMP=$OBJDUMP
5121  # Extract the first word of "objdump", so it can be a program name with args.
5122set dummy objdump; ac_word=$2
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
5125if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  if test -n "$ac_ct_OBJDUMP"; then
5129  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5130else
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134  IFS=$as_save_IFS
5135  test -z "$as_dir" && as_dir=.
5136    for ac_exec_ext in '' $ac_executable_extensions; do
5137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5138    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140    break 2
5141  fi
5142done
5143  done
5144IFS=$as_save_IFS
5145
5146fi
5147fi
5148ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5149if test -n "$ac_ct_OBJDUMP"; then
5150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5151$as_echo "$ac_ct_OBJDUMP" >&6; }
5152else
5153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156
5157  if test "x$ac_ct_OBJDUMP" = x; then
5158    OBJDUMP="false"
5159  else
5160    case $cross_compiling:$ac_tool_warned in
5161yes:)
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164ac_tool_warned=yes ;;
5165esac
5166    OBJDUMP=$ac_ct_OBJDUMP
5167  fi
5168else
5169  OBJDUMP="$ac_cv_prog_OBJDUMP"
5170fi
5171
5172test -z "$OBJDUMP" && OBJDUMP=objdump
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5183$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5184if ${lt_cv_deplibs_check_method+:} false; then :
5185  $as_echo_n "(cached) " >&6
5186else
5187  lt_cv_file_magic_cmd='$MAGIC_CMD'
5188lt_cv_file_magic_test_file=
5189lt_cv_deplibs_check_method='unknown'
5190# Need to set the preceding variable on all platforms that support
5191# interlibrary dependencies.
5192# 'none' -- dependencies not supported.
5193# 'unknown' -- same as none, but documents that we really don't know.
5194# 'pass_all' -- all dependencies passed with no checks.
5195# 'test_compile' -- check by making test program.
5196# 'file_magic [[regex]]' -- check by looking for files in library path
5197# that responds to the $file_magic_cmd with a given extended regex.
5198# If you have 'file' or equivalent on your system and you're not sure
5199# whether 'pass_all' will *always* work, you probably want this one.
5200
5201case $host_os in
5202aix[4-9]*)
5203  lt_cv_deplibs_check_method=pass_all
5204  ;;
5205
5206beos*)
5207  lt_cv_deplibs_check_method=pass_all
5208  ;;
5209
5210bsdi[45]*)
5211  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5212  lt_cv_file_magic_cmd='/usr/bin/file -L'
5213  lt_cv_file_magic_test_file=/shlib/libc.so
5214  ;;
5215
5216cygwin*)
5217  # func_win32_libid is a shell function defined in ltmain.sh
5218  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5219  lt_cv_file_magic_cmd='func_win32_libid'
5220  ;;
5221
5222mingw* | pw32*)
5223  # Base MSYS/MinGW do not provide the 'file' command needed by
5224  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5225  # unless we find 'file', for example because we are cross-compiling.
5226  if ( file / ) >/dev/null 2>&1; then
5227    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5228    lt_cv_file_magic_cmd='func_win32_libid'
5229  else
5230    # Keep this pattern in sync with the one in func_win32_libid.
5231    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5232    lt_cv_file_magic_cmd='$OBJDUMP -f'
5233  fi
5234  ;;
5235
5236cegcc*)
5237  # use the weaker test based on 'objdump'. See mingw*.
5238  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5239  lt_cv_file_magic_cmd='$OBJDUMP -f'
5240  ;;
5241
5242darwin* | rhapsody*)
5243  lt_cv_deplibs_check_method=pass_all
5244  ;;
5245
5246freebsd* | dragonfly*)
5247  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5248    case $host_cpu in
5249    i*86 )
5250      # Not sure whether the presence of OpenBSD here was a mistake.
5251      # Let's accept both of them until this is cleared up.
5252      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5253      lt_cv_file_magic_cmd=/usr/bin/file
5254      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5255      ;;
5256    esac
5257  else
5258    lt_cv_deplibs_check_method=pass_all
5259  fi
5260  ;;
5261
5262haiku*)
5263  lt_cv_deplibs_check_method=pass_all
5264  ;;
5265
5266hpux10.20* | hpux11*)
5267  lt_cv_file_magic_cmd=/usr/bin/file
5268  case $host_cpu in
5269  ia64*)
5270    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5271    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5272    ;;
5273  hppa*64*)
5274    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]'
5275    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5276    ;;
5277  *)
5278    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5279    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5280    ;;
5281  esac
5282  ;;
5283
5284interix[3-9]*)
5285  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5286  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5287  ;;
5288
5289irix5* | irix6* | nonstopux*)
5290  case $LD in
5291  *-32|*"-32 ") libmagic=32-bit;;
5292  *-n32|*"-n32 ") libmagic=N32;;
5293  *-64|*"-64 ") libmagic=64-bit;;
5294  *) libmagic=never-match;;
5295  esac
5296  lt_cv_deplibs_check_method=pass_all
5297  ;;
5298
5299# This must be glibc/ELF.
5300linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5301  lt_cv_deplibs_check_method=pass_all
5302  ;;
5303
5304netbsd*)
5305  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5306    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5307  else
5308    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5309  fi
5310  ;;
5311
5312newos6*)
5313  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5314  lt_cv_file_magic_cmd=/usr/bin/file
5315  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5316  ;;
5317
5318*nto* | *qnx*)
5319  lt_cv_deplibs_check_method=pass_all
5320  ;;
5321
5322openbsd* | bitrig*)
5323  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5324    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5325  else
5326    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5327  fi
5328  ;;
5329
5330osf3* | osf4* | osf5*)
5331  lt_cv_deplibs_check_method=pass_all
5332  ;;
5333
5334rdos*)
5335  lt_cv_deplibs_check_method=pass_all
5336  ;;
5337
5338solaris*)
5339  lt_cv_deplibs_check_method=pass_all
5340  ;;
5341
5342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5343  lt_cv_deplibs_check_method=pass_all
5344  ;;
5345
5346sysv4 | sysv4.3*)
5347  case $host_vendor in
5348  motorola)
5349    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]'
5350    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5351    ;;
5352  ncr)
5353    lt_cv_deplibs_check_method=pass_all
5354    ;;
5355  sequent)
5356    lt_cv_file_magic_cmd='/bin/file'
5357    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5358    ;;
5359  sni)
5360    lt_cv_file_magic_cmd='/bin/file'
5361    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5362    lt_cv_file_magic_test_file=/lib/libc.so
5363    ;;
5364  siemens)
5365    lt_cv_deplibs_check_method=pass_all
5366    ;;
5367  pc)
5368    lt_cv_deplibs_check_method=pass_all
5369    ;;
5370  esac
5371  ;;
5372
5373tpf*)
5374  lt_cv_deplibs_check_method=pass_all
5375  ;;
5376os2*)
5377  lt_cv_deplibs_check_method=pass_all
5378  ;;
5379esac
5380
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5383$as_echo "$lt_cv_deplibs_check_method" >&6; }
5384
5385file_magic_glob=
5386want_nocaseglob=no
5387if test "$build" = "$host"; then
5388  case $host_os in
5389  mingw* | pw32*)
5390    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5391      want_nocaseglob=yes
5392    else
5393      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5394    fi
5395    ;;
5396  esac
5397fi
5398
5399file_magic_cmd=$lt_cv_file_magic_cmd
5400deplibs_check_method=$lt_cv_deplibs_check_method
5401test -z "$deplibs_check_method" && deplibs_check_method=unknown
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424if test -n "$ac_tool_prefix"; then
5425  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5426set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428$as_echo_n "checking for $ac_word... " >&6; }
5429if ${ac_cv_prog_DLLTOOL+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  if test -n "$DLLTOOL"; then
5433  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438  IFS=$as_save_IFS
5439  test -z "$as_dir" && as_dir=.
5440    for ac_exec_ext in '' $ac_executable_extensions; do
5441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444    break 2
5445  fi
5446done
5447  done
5448IFS=$as_save_IFS
5449
5450fi
5451fi
5452DLLTOOL=$ac_cv_prog_DLLTOOL
5453if test -n "$DLLTOOL"; then
5454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5455$as_echo "$DLLTOOL" >&6; }
5456else
5457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458$as_echo "no" >&6; }
5459fi
5460
5461
5462fi
5463if test -z "$ac_cv_prog_DLLTOOL"; then
5464  ac_ct_DLLTOOL=$DLLTOOL
5465  # Extract the first word of "dlltool", so it can be a program name with args.
5466set dummy dlltool; ac_word=$2
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468$as_echo_n "checking for $ac_word... " >&6; }
5469if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472  if test -n "$ac_ct_DLLTOOL"; then
5473  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5474else
5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478  IFS=$as_save_IFS
5479  test -z "$as_dir" && as_dir=.
5480    for ac_exec_ext in '' $ac_executable_extensions; do
5481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484    break 2
5485  fi
5486done
5487  done
5488IFS=$as_save_IFS
5489
5490fi
5491fi
5492ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5493if test -n "$ac_ct_DLLTOOL"; then
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5495$as_echo "$ac_ct_DLLTOOL" >&6; }
5496else
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498$as_echo "no" >&6; }
5499fi
5500
5501  if test "x$ac_ct_DLLTOOL" = x; then
5502    DLLTOOL="false"
5503  else
5504    case $cross_compiling:$ac_tool_warned in
5505yes:)
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508ac_tool_warned=yes ;;
5509esac
5510    DLLTOOL=$ac_ct_DLLTOOL
5511  fi
5512else
5513  DLLTOOL="$ac_cv_prog_DLLTOOL"
5514fi
5515
5516test -z "$DLLTOOL" && DLLTOOL=dlltool
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5528$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5529if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  lt_cv_sharedlib_from_linklib_cmd='unknown'
5533
5534case $host_os in
5535cygwin* | mingw* | pw32* | cegcc*)
5536  # two different shell functions defined in ltmain.sh;
5537  # decide which one to use based on capabilities of $DLLTOOL
5538  case `$DLLTOOL --help 2>&1` in
5539  *--identify-strict*)
5540    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5541    ;;
5542  *)
5543    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5544    ;;
5545  esac
5546  ;;
5547*)
5548  # fallback: assume linklib IS sharedlib
5549  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5550  ;;
5551esac
5552
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5555$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5556sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5557test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5558
5559
5560
5561
5562
5563
5564
5565
5566if test -n "$ac_tool_prefix"; then
5567  for ac_prog in ar
5568  do
5569    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5570set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572$as_echo_n "checking for $ac_word... " >&6; }
5573if ${ac_cv_prog_AR+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  if test -n "$AR"; then
5577  ac_cv_prog_AR="$AR" # Let the user override the test.
5578else
5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH
5581do
5582  IFS=$as_save_IFS
5583  test -z "$as_dir" && as_dir=.
5584    for ac_exec_ext in '' $ac_executable_extensions; do
5585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588    break 2
5589  fi
5590done
5591  done
5592IFS=$as_save_IFS
5593
5594fi
5595fi
5596AR=$ac_cv_prog_AR
5597if test -n "$AR"; then
5598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5599$as_echo "$AR" >&6; }
5600else
5601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602$as_echo "no" >&6; }
5603fi
5604
5605
5606    test -n "$AR" && break
5607  done
5608fi
5609if test -z "$AR"; then
5610  ac_ct_AR=$AR
5611  for ac_prog in ar
5612do
5613  # Extract the first word of "$ac_prog", so it can be a program name with args.
5614set dummy $ac_prog; ac_word=$2
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616$as_echo_n "checking for $ac_word... " >&6; }
5617if ${ac_cv_prog_ac_ct_AR+:} false; then :
5618  $as_echo_n "(cached) " >&6
5619else
5620  if test -n "$ac_ct_AR"; then
5621  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626  IFS=$as_save_IFS
5627  test -z "$as_dir" && as_dir=.
5628    for ac_exec_ext in '' $ac_executable_extensions; do
5629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630    ac_cv_prog_ac_ct_AR="$ac_prog"
5631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632    break 2
5633  fi
5634done
5635  done
5636IFS=$as_save_IFS
5637
5638fi
5639fi
5640ac_ct_AR=$ac_cv_prog_ac_ct_AR
5641if test -n "$ac_ct_AR"; then
5642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5643$as_echo "$ac_ct_AR" >&6; }
5644else
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646$as_echo "no" >&6; }
5647fi
5648
5649
5650  test -n "$ac_ct_AR" && break
5651done
5652
5653  if test "x$ac_ct_AR" = x; then
5654    AR="false"
5655  else
5656    case $cross_compiling:$ac_tool_warned in
5657yes:)
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660ac_tool_warned=yes ;;
5661esac
5662    AR=$ac_ct_AR
5663  fi
5664fi
5665
5666: ${AR=ar}
5667: ${AR_FLAGS=cru}
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5680$as_echo_n "checking for archiver @FILE support... " >&6; }
5681if ${lt_cv_ar_at_file+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  lt_cv_ar_at_file=no
5685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687
5688int
5689main ()
5690{
5691
5692  ;
5693  return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"; then :
5697  echo conftest.$ac_objext > conftest.lst
5698      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5699      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5700  (eval $lt_ar_try) 2>&5
5701  ac_status=$?
5702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703  test $ac_status = 0; }
5704      if test 0 -eq "$ac_status"; then
5705	# Ensure the archiver fails upon bogus file names.
5706	rm -f conftest.$ac_objext libconftest.a
5707	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5708  (eval $lt_ar_try) 2>&5
5709  ac_status=$?
5710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711  test $ac_status = 0; }
5712	if test 0 -ne "$ac_status"; then
5713          lt_cv_ar_at_file=@
5714        fi
5715      fi
5716      rm -f conftest.* libconftest.a
5717
5718fi
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5723$as_echo "$lt_cv_ar_at_file" >&6; }
5724
5725if test no = "$lt_cv_ar_at_file"; then
5726  archiver_list_spec=
5727else
5728  archiver_list_spec=$lt_cv_ar_at_file
5729fi
5730
5731
5732
5733
5734
5735
5736
5737if test -n "$ac_tool_prefix"; then
5738  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5739set dummy ${ac_tool_prefix}strip; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if ${ac_cv_prog_STRIP+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  if test -n "$STRIP"; then
5746  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751  IFS=$as_save_IFS
5752  test -z "$as_dir" && as_dir=.
5753    for ac_exec_ext in '' $ac_executable_extensions; do
5754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757    break 2
5758  fi
5759done
5760  done
5761IFS=$as_save_IFS
5762
5763fi
5764fi
5765STRIP=$ac_cv_prog_STRIP
5766if test -n "$STRIP"; then
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5768$as_echo "$STRIP" >&6; }
5769else
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5774
5775fi
5776if test -z "$ac_cv_prog_STRIP"; then
5777  ac_ct_STRIP=$STRIP
5778  # Extract the first word of "strip", so it can be a program name with args.
5779set dummy strip; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
5782if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5783  $as_echo_n "(cached) " >&6
5784else
5785  if test -n "$ac_ct_STRIP"; then
5786  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793    for ac_exec_ext in '' $ac_executable_extensions; do
5794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795    ac_cv_prog_ac_ct_STRIP="strip"
5796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797    break 2
5798  fi
5799done
5800  done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5806if test -n "$ac_ct_STRIP"; then
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5808$as_echo "$ac_ct_STRIP" >&6; }
5809else
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814  if test "x$ac_ct_STRIP" = x; then
5815    STRIP=":"
5816  else
5817    case $cross_compiling:$ac_tool_warned in
5818yes:)
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821ac_tool_warned=yes ;;
5822esac
5823    STRIP=$ac_ct_STRIP
5824  fi
5825else
5826  STRIP="$ac_cv_prog_STRIP"
5827fi
5828
5829test -z "$STRIP" && STRIP=:
5830
5831
5832
5833
5834
5835
5836if test -n "$ac_tool_prefix"; then
5837  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if ${ac_cv_prog_RANLIB+:} false; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  if test -n "$RANLIB"; then
5845  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850  IFS=$as_save_IFS
5851  test -z "$as_dir" && as_dir=.
5852    for ac_exec_ext in '' $ac_executable_extensions; do
5853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856    break 2
5857  fi
5858done
5859  done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864RANLIB=$ac_cv_prog_RANLIB
5865if test -n "$RANLIB"; then
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5867$as_echo "$RANLIB" >&6; }
5868else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874fi
5875if test -z "$ac_cv_prog_RANLIB"; then
5876  ac_ct_RANLIB=$RANLIB
5877  # Extract the first word of "ranlib", so it can be a program name with args.
5878set dummy ranlib; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
5881if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5882  $as_echo_n "(cached) " >&6
5883else
5884  if test -n "$ac_ct_RANLIB"; then
5885  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890  IFS=$as_save_IFS
5891  test -z "$as_dir" && as_dir=.
5892    for ac_exec_ext in '' $ac_executable_extensions; do
5893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894    ac_cv_prog_ac_ct_RANLIB="ranlib"
5895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896    break 2
5897  fi
5898done
5899  done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5905if test -n "$ac_ct_RANLIB"; then
5906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5907$as_echo "$ac_ct_RANLIB" >&6; }
5908else
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913  if test "x$ac_ct_RANLIB" = x; then
5914    RANLIB=":"
5915  else
5916    case $cross_compiling:$ac_tool_warned in
5917yes:)
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922    RANLIB=$ac_ct_RANLIB
5923  fi
5924else
5925  RANLIB="$ac_cv_prog_RANLIB"
5926fi
5927
5928test -z "$RANLIB" && RANLIB=:
5929
5930
5931
5932
5933
5934
5935# Determine commands to create old-style static archives.
5936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5937old_postinstall_cmds='chmod 644 $oldlib'
5938old_postuninstall_cmds=
5939
5940if test -n "$RANLIB"; then
5941  case $host_os in
5942  bitrig* | openbsd*)
5943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5944    ;;
5945  *)
5946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5947    ;;
5948  esac
5949  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5950fi
5951
5952case $host_os in
5953  darwin*)
5954    lock_old_archive_extraction=yes ;;
5955  *)
5956    lock_old_archive_extraction=no ;;
5957esac
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997# If no C compiler was specified, use CC.
5998LTCC=${LTCC-"$CC"}
5999
6000# If no C compiler flags were specified, use CFLAGS.
6001LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6002
6003# Allow CC to be a program name with arguments.
6004compiler=$CC
6005
6006
6007# Check for command to grab the raw symbol name followed by C symbol from nm.
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6009$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6010if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6011  $as_echo_n "(cached) " >&6
6012else
6013
6014# These are sane defaults that work on at least a few old systems.
6015# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6016
6017# Character class describing NM global symbol codes.
6018symcode='[BCDEGRST]'
6019
6020# Regexp to match symbols that can be accessed directly from C.
6021sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6022
6023# Define system-specific variables.
6024case $host_os in
6025aix*)
6026  symcode='[BCDT]'
6027  ;;
6028cygwin* | mingw* | pw32* | cegcc*)
6029  symcode='[ABCDGISTW]'
6030  ;;
6031hpux*)
6032  if test ia64 = "$host_cpu"; then
6033    symcode='[ABCDEGRST]'
6034  fi
6035  ;;
6036irix* | nonstopux*)
6037  symcode='[BCDEGRST]'
6038  ;;
6039osf*)
6040  symcode='[BCDEGQRST]'
6041  ;;
6042solaris*)
6043  symcode='[BDRT]'
6044  ;;
6045sco3.2v5*)
6046  symcode='[DT]'
6047  ;;
6048sysv4.2uw2*)
6049  symcode='[DT]'
6050  ;;
6051sysv5* | sco5v6* | unixware* | OpenUNIX*)
6052  symcode='[ABDT]'
6053  ;;
6054sysv4)
6055  symcode='[DFNSTU]'
6056  ;;
6057esac
6058
6059# If we're using GNU nm, then use its standard symbol codes.
6060case `$NM -V 2>&1` in
6061*GNU* | *'with BFD'*)
6062  symcode='[ABCDGIRSTW]' ;;
6063esac
6064
6065if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066  # Gets list of data symbols to import.
6067  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6068  # Adjust the below global symbol transforms to fixup imported variables.
6069  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6070  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6071  lt_c_name_lib_hook="\
6072  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6073  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6074else
6075  # Disable hooks by default.
6076  lt_cv_sys_global_symbol_to_import=
6077  lt_cdecl_hook=
6078  lt_c_name_hook=
6079  lt_c_name_lib_hook=
6080fi
6081
6082# Transform an extracted symbol line into a proper C declaration.
6083# Some systems (esp. on ia64) link data and code symbols differently,
6084# so use this general approach.
6085lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6086$lt_cdecl_hook\
6087" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6088" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6089
6090# Transform an extracted symbol line into symbol name and symbol address
6091lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6092$lt_c_name_hook\
6093" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6094" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6095
6096# Transform an extracted symbol line into symbol name with lib prefix and
6097# symbol address.
6098lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6099$lt_c_name_lib_hook\
6100" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6101" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6102" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6103
6104# Handle CRLF in mingw tool chain
6105opt_cr=
6106case $build_os in
6107mingw*)
6108  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6109  ;;
6110esac
6111
6112# Try without a prefix underscore, then with it.
6113for ac_symprfx in "" "_"; do
6114
6115  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6116  symxfrm="\\1 $ac_symprfx\\2 \\2"
6117
6118  # Write the raw and C identifiers.
6119  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6120    # Fake it for dumpbin and say T for any non-static function,
6121    # D for any global variable and I for any imported variable.
6122    # Also find C++ and __fastcall symbols from MSVC++,
6123    # which start with @ or ?.
6124    lt_cv_sys_global_symbol_pipe="$AWK '"\
6125"     {last_section=section; section=\$ 3};"\
6126"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6127"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6128"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6129"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6130"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6131"     \$ 0!~/External *\|/{next};"\
6132"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133"     {if(hide[section]) next};"\
6134"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6135"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6136"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6137"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6138"     ' prfx=^$ac_symprfx"
6139  else
6140    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6141  fi
6142  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6143
6144  # Check to see that the pipe works correctly.
6145  pipe_works=no
6146
6147  rm -f conftest*
6148  cat > conftest.$ac_ext <<_LT_EOF
6149#ifdef __cplusplus
6150extern "C" {
6151#endif
6152char nm_test_var;
6153void nm_test_func(void);
6154void nm_test_func(void){}
6155#ifdef __cplusplus
6156}
6157#endif
6158int main(){nm_test_var='a';nm_test_func();return(0);}
6159_LT_EOF
6160
6161  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6162  (eval $ac_compile) 2>&5
6163  ac_status=$?
6164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165  test $ac_status = 0; }; then
6166    # Now try to grab the symbols.
6167    nlist=conftest.nm
6168    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6169  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6170  ac_status=$?
6171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172  test $ac_status = 0; } && test -s "$nlist"; then
6173      # Try sorting and uniquifying the output.
6174      if sort "$nlist" | uniq > "$nlist"T; then
6175	mv -f "$nlist"T "$nlist"
6176      else
6177	rm -f "$nlist"T
6178      fi
6179
6180      # Make sure that we snagged all the symbols we need.
6181      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6182	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6183	  cat <<_LT_EOF > conftest.$ac_ext
6184/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6185#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6186/* DATA imports from DLLs on WIN32 can't be const, because runtime
6187   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6188# define LT_DLSYM_CONST
6189#elif defined __osf__
6190/* This system does not cope well with relocations in const data.  */
6191# define LT_DLSYM_CONST
6192#else
6193# define LT_DLSYM_CONST const
6194#endif
6195
6196#ifdef __cplusplus
6197extern "C" {
6198#endif
6199
6200_LT_EOF
6201	  # Now generate the symbol file.
6202	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6203
6204	  cat <<_LT_EOF >> conftest.$ac_ext
6205
6206/* The mapping between symbol names and symbols.  */
6207LT_DLSYM_CONST struct {
6208  const char *name;
6209  void       *address;
6210}
6211lt__PROGRAM__LTX_preloaded_symbols[] =
6212{
6213  { "@PROGRAM@", (void *) 0 },
6214_LT_EOF
6215	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6216	  cat <<\_LT_EOF >> conftest.$ac_ext
6217  {0, (void *) 0}
6218};
6219
6220/* This works around a problem in FreeBSD linker */
6221#ifdef FREEBSD_WORKAROUND
6222static const void *lt_preloaded_setup() {
6223  return lt__PROGRAM__LTX_preloaded_symbols;
6224}
6225#endif
6226
6227#ifdef __cplusplus
6228}
6229#endif
6230_LT_EOF
6231	  # Now try linking the two files.
6232	  mv conftest.$ac_objext conftstm.$ac_objext
6233	  lt_globsym_save_LIBS=$LIBS
6234	  lt_globsym_save_CFLAGS=$CFLAGS
6235	  LIBS=conftstm.$ac_objext
6236	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6237	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6238  (eval $ac_link) 2>&5
6239  ac_status=$?
6240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6241  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6242	    pipe_works=yes
6243	  fi
6244	  LIBS=$lt_globsym_save_LIBS
6245	  CFLAGS=$lt_globsym_save_CFLAGS
6246	else
6247	  echo "cannot find nm_test_func in $nlist" >&5
6248	fi
6249      else
6250	echo "cannot find nm_test_var in $nlist" >&5
6251      fi
6252    else
6253      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6254    fi
6255  else
6256    echo "$progname: failed program was:" >&5
6257    cat conftest.$ac_ext >&5
6258  fi
6259  rm -rf conftest* conftst*
6260
6261  # Do not use the global_symbol_pipe unless it works.
6262  if test yes = "$pipe_works"; then
6263    break
6264  else
6265    lt_cv_sys_global_symbol_pipe=
6266  fi
6267done
6268
6269fi
6270
6271if test -z "$lt_cv_sys_global_symbol_pipe"; then
6272  lt_cv_sys_global_symbol_to_cdecl=
6273fi
6274if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6276$as_echo "failed" >&6; }
6277else
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6279$as_echo "ok" >&6; }
6280fi
6281
6282# Response file support.
6283if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6284  nm_file_list_spec='@'
6285elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6286  nm_file_list_spec='@'
6287fi
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6326$as_echo_n "checking for sysroot... " >&6; }
6327
6328# Check whether --with-sysroot was given.
6329if test "${with_sysroot+set}" = set; then :
6330  withval=$with_sysroot;
6331else
6332  with_sysroot=no
6333fi
6334
6335
6336lt_sysroot=
6337case $with_sysroot in #(
6338 yes)
6339   if test yes = "$GCC"; then
6340     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6341   fi
6342   ;; #(
6343 /*)
6344   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6345   ;; #(
6346 no|'')
6347   ;; #(
6348 *)
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6350$as_echo "$with_sysroot" >&6; }
6351   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6352   ;;
6353esac
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6356$as_echo "${lt_sysroot:-no}" >&6; }
6357
6358
6359
6360
6361
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6363$as_echo_n "checking for a working dd... " >&6; }
6364if ${ac_cv_path_lt_DD+:} false; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  printf 0123456789abcdef0123456789abcdef >conftest.i
6368cat conftest.i conftest.i >conftest2.i
6369: ${lt_DD:=$DD}
6370if test -z "$lt_DD"; then
6371  ac_path_lt_DD_found=false
6372  # Loop through the user's path and test for each of PROGNAME-LIST
6373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376  IFS=$as_save_IFS
6377  test -z "$as_dir" && as_dir=.
6378    for ac_prog in dd; do
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6381      as_fn_executable_p "$ac_path_lt_DD" || continue
6382if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6383  cmp -s conftest.i conftest.out \
6384  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6385fi
6386      $ac_path_lt_DD_found && break 3
6387    done
6388  done
6389  done
6390IFS=$as_save_IFS
6391  if test -z "$ac_cv_path_lt_DD"; then
6392    :
6393  fi
6394else
6395  ac_cv_path_lt_DD=$lt_DD
6396fi
6397
6398rm -f conftest.i conftest2.i conftest.out
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6401$as_echo "$ac_cv_path_lt_DD" >&6; }
6402
6403
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6405$as_echo_n "checking how to truncate binary pipes... " >&6; }
6406if ${lt_cv_truncate_bin+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  printf 0123456789abcdef0123456789abcdef >conftest.i
6410cat conftest.i conftest.i >conftest2.i
6411lt_cv_truncate_bin=
6412if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6413  cmp -s conftest.i conftest.out \
6414  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6415fi
6416rm -f conftest.i conftest2.i conftest.out
6417test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6420$as_echo "$lt_cv_truncate_bin" >&6; }
6421
6422
6423
6424
6425
6426
6427# Check whether --enable-libtool-lock was given.
6428if test "${enable_libtool_lock+set}" = set; then :
6429  enableval=$enable_libtool_lock;
6430fi
6431
6432test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6433
6434# Some flags need to be propagated to the compiler or linker for good
6435# libtool support.
6436case $host in
6437ia64-*-hpux*)
6438  # Find out what ABI is being produced by ac_compile, and set mode
6439  # options accordingly.
6440  echo 'int i;' > conftest.$ac_ext
6441  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6442  (eval $ac_compile) 2>&5
6443  ac_status=$?
6444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445  test $ac_status = 0; }; then
6446    case `/usr/bin/file conftest.$ac_objext` in
6447      *ELF-32*)
6448	HPUX_IA64_MODE=32
6449	;;
6450      *ELF-64*)
6451	HPUX_IA64_MODE=64
6452	;;
6453    esac
6454  fi
6455  rm -rf conftest*
6456  ;;
6457*-*-irix6*)
6458  # Find out what ABI is being produced by ac_compile, and set linker
6459  # options accordingly.
6460  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6461  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462  (eval $ac_compile) 2>&5
6463  ac_status=$?
6464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465  test $ac_status = 0; }; then
6466    if test yes = "$lt_cv_prog_gnu_ld"; then
6467      case `/usr/bin/file conftest.$ac_objext` in
6468	*32-bit*)
6469	  LD="${LD-ld} -melf32bsmip"
6470	  ;;
6471	*N32*)
6472	  LD="${LD-ld} -melf32bmipn32"
6473	  ;;
6474	*64-bit*)
6475	  LD="${LD-ld} -melf64bmip"
6476	;;
6477      esac
6478    else
6479      case `/usr/bin/file conftest.$ac_objext` in
6480	*32-bit*)
6481	  LD="${LD-ld} -32"
6482	  ;;
6483	*N32*)
6484	  LD="${LD-ld} -n32"
6485	  ;;
6486	*64-bit*)
6487	  LD="${LD-ld} -64"
6488	  ;;
6489      esac
6490    fi
6491  fi
6492  rm -rf conftest*
6493  ;;
6494
6495mips64*-*linux*)
6496  # Find out what ABI is being produced by ac_compile, and set linker
6497  # options accordingly.
6498  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6499  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500  (eval $ac_compile) 2>&5
6501  ac_status=$?
6502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503  test $ac_status = 0; }; then
6504    emul=elf
6505    case `/usr/bin/file conftest.$ac_objext` in
6506      *32-bit*)
6507	emul="${emul}32"
6508	;;
6509      *64-bit*)
6510	emul="${emul}64"
6511	;;
6512    esac
6513    case `/usr/bin/file conftest.$ac_objext` in
6514      *MSB*)
6515	emul="${emul}btsmip"
6516	;;
6517      *LSB*)
6518	emul="${emul}ltsmip"
6519	;;
6520    esac
6521    case `/usr/bin/file conftest.$ac_objext` in
6522      *N32*)
6523	emul="${emul}n32"
6524	;;
6525    esac
6526    LD="${LD-ld} -m $emul"
6527  fi
6528  rm -rf conftest*
6529  ;;
6530
6531x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6532s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6533  # Find out what ABI is being produced by ac_compile, and set linker
6534  # options accordingly.  Note that the listed cases only cover the
6535  # situations where additional linker options are needed (such as when
6536  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6537  # vice versa); the common cases where no linker options are needed do
6538  # not appear in the list.
6539  echo 'int i;' > conftest.$ac_ext
6540  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541  (eval $ac_compile) 2>&5
6542  ac_status=$?
6543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544  test $ac_status = 0; }; then
6545    case `/usr/bin/file conftest.o` in
6546      *32-bit*)
6547	case $host in
6548	  x86_64-*kfreebsd*-gnu)
6549	    LD="${LD-ld} -m elf_i386_fbsd"
6550	    ;;
6551	  x86_64-*linux*)
6552	    case `/usr/bin/file conftest.o` in
6553	      *x86-64*)
6554		LD="${LD-ld} -m elf32_x86_64"
6555		;;
6556	      *)
6557		LD="${LD-ld} -m elf_i386"
6558		;;
6559	    esac
6560	    ;;
6561	  powerpc64le-*linux*)
6562	    LD="${LD-ld} -m elf32lppclinux"
6563	    ;;
6564	  powerpc64-*linux*)
6565	    LD="${LD-ld} -m elf32ppclinux"
6566	    ;;
6567	  s390x-*linux*)
6568	    LD="${LD-ld} -m elf_s390"
6569	    ;;
6570	  sparc64-*linux*)
6571	    LD="${LD-ld} -m elf32_sparc"
6572	    ;;
6573	esac
6574	;;
6575      *64-bit*)
6576	case $host in
6577	  x86_64-*kfreebsd*-gnu)
6578	    LD="${LD-ld} -m elf_x86_64_fbsd"
6579	    ;;
6580	  x86_64-*linux*)
6581	    LD="${LD-ld} -m elf_x86_64"
6582	    ;;
6583	  powerpcle-*linux*)
6584	    LD="${LD-ld} -m elf64lppc"
6585	    ;;
6586	  powerpc-*linux*)
6587	    LD="${LD-ld} -m elf64ppc"
6588	    ;;
6589	  s390*-*linux*|s390*-*tpf*)
6590	    LD="${LD-ld} -m elf64_s390"
6591	    ;;
6592	  sparc*-*linux*)
6593	    LD="${LD-ld} -m elf64_sparc"
6594	    ;;
6595	esac
6596	;;
6597    esac
6598  fi
6599  rm -rf conftest*
6600  ;;
6601
6602*-*-sco3.2v5*)
6603  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604  SAVE_CFLAGS=$CFLAGS
6605  CFLAGS="$CFLAGS -belf"
6606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6607$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6608if ${lt_cv_cc_needs_belf+:} false; then :
6609  $as_echo_n "(cached) " >&6
6610else
6611  ac_ext=c
6612ac_cpp='$CPP $CPPFLAGS'
6613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
6617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619
6620int
6621main ()
6622{
6623
6624  ;
6625  return 0;
6626}
6627_ACEOF
6628if ac_fn_c_try_link "$LINENO"; then :
6629  lt_cv_cc_needs_belf=yes
6630else
6631  lt_cv_cc_needs_belf=no
6632fi
6633rm -f core conftest.err conftest.$ac_objext \
6634    conftest$ac_exeext conftest.$ac_ext
6635     ac_ext=c
6636ac_cpp='$CPP $CPPFLAGS'
6637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6643$as_echo "$lt_cv_cc_needs_belf" >&6; }
6644  if test yes != "$lt_cv_cc_needs_belf"; then
6645    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646    CFLAGS=$SAVE_CFLAGS
6647  fi
6648  ;;
6649*-*solaris*)
6650  # Find out what ABI is being produced by ac_compile, and set linker
6651  # options accordingly.
6652  echo 'int i;' > conftest.$ac_ext
6653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6654  (eval $ac_compile) 2>&5
6655  ac_status=$?
6656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657  test $ac_status = 0; }; then
6658    case `/usr/bin/file conftest.o` in
6659    *64-bit*)
6660      case $lt_cv_prog_gnu_ld in
6661      yes*)
6662        case $host in
6663        i?86-*-solaris*|x86_64-*-solaris*)
6664          LD="${LD-ld} -m elf_x86_64"
6665          ;;
6666        sparc*-*-solaris*)
6667          LD="${LD-ld} -m elf64_sparc"
6668          ;;
6669        esac
6670        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6671        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6672          LD=${LD-ld}_sol2
6673        fi
6674        ;;
6675      *)
6676	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6677	  LD="${LD-ld} -64"
6678	fi
6679	;;
6680      esac
6681      ;;
6682    esac
6683  fi
6684  rm -rf conftest*
6685  ;;
6686esac
6687
6688need_locks=$enable_libtool_lock
6689
6690if test -n "$ac_tool_prefix"; then
6691  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6692set dummy ${ac_tool_prefix}mt; ac_word=$2
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694$as_echo_n "checking for $ac_word... " >&6; }
6695if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  if test -n "$MANIFEST_TOOL"; then
6699  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  test -z "$as_dir" && as_dir=.
6706    for ac_exec_ext in '' $ac_executable_extensions; do
6707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710    break 2
6711  fi
6712done
6713  done
6714IFS=$as_save_IFS
6715
6716fi
6717fi
6718MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6719if test -n "$MANIFEST_TOOL"; then
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6721$as_echo "$MANIFEST_TOOL" >&6; }
6722else
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724$as_echo "no" >&6; }
6725fi
6726
6727
6728fi
6729if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6730  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6731  # Extract the first word of "mt", so it can be a program name with args.
6732set dummy mt; ac_word=$2
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734$as_echo_n "checking for $ac_word... " >&6; }
6735if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  if test -n "$ac_ct_MANIFEST_TOOL"; then
6739  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744  IFS=$as_save_IFS
6745  test -z "$as_dir" && as_dir=.
6746    for ac_exec_ext in '' $ac_executable_extensions; do
6747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750    break 2
6751  fi
6752done
6753  done
6754IFS=$as_save_IFS
6755
6756fi
6757fi
6758ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6759if test -n "$ac_ct_MANIFEST_TOOL"; then
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6761$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6762else
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764$as_echo "no" >&6; }
6765fi
6766
6767  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6768    MANIFEST_TOOL=":"
6769  else
6770    case $cross_compiling:$ac_tool_warned in
6771yes:)
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774ac_tool_warned=yes ;;
6775esac
6776    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6777  fi
6778else
6779  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6780fi
6781
6782test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6784$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6785if ${lt_cv_path_mainfest_tool+:} false; then :
6786  $as_echo_n "(cached) " >&6
6787else
6788  lt_cv_path_mainfest_tool=no
6789  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6790  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6791  cat conftest.err >&5
6792  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6793    lt_cv_path_mainfest_tool=yes
6794  fi
6795  rm -f conftest*
6796fi
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6798$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6799if test yes != "$lt_cv_path_mainfest_tool"; then
6800  MANIFEST_TOOL=:
6801fi
6802
6803
6804
6805
6806
6807
6808  case $host_os in
6809    rhapsody* | darwin*)
6810    if test -n "$ac_tool_prefix"; then
6811  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if ${ac_cv_prog_DSYMUTIL+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818  if test -n "$DSYMUTIL"; then
6819  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824  IFS=$as_save_IFS
6825  test -z "$as_dir" && as_dir=.
6826    for ac_exec_ext in '' $ac_executable_extensions; do
6827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830    break 2
6831  fi
6832done
6833  done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838DSYMUTIL=$ac_cv_prog_DSYMUTIL
6839if test -n "$DSYMUTIL"; then
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6841$as_echo "$DSYMUTIL" >&6; }
6842else
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_DSYMUTIL"; then
6850  ac_ct_DSYMUTIL=$DSYMUTIL
6851  # Extract the first word of "dsymutil", so it can be a program name with args.
6852set dummy dsymutil; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6856  $as_echo_n "(cached) " >&6
6857else
6858  if test -n "$ac_ct_DSYMUTIL"; then
6859  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864  IFS=$as_save_IFS
6865  test -z "$as_dir" && as_dir=.
6866    for ac_exec_ext in '' $ac_executable_extensions; do
6867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870    break 2
6871  fi
6872done
6873  done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6879if test -n "$ac_ct_DSYMUTIL"; then
6880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6881$as_echo "$ac_ct_DSYMUTIL" >&6; }
6882else
6883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887  if test "x$ac_ct_DSYMUTIL" = x; then
6888    DSYMUTIL=":"
6889  else
6890    case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896    DSYMUTIL=$ac_ct_DSYMUTIL
6897  fi
6898else
6899  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6900fi
6901
6902    if test -n "$ac_tool_prefix"; then
6903  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6904set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906$as_echo_n "checking for $ac_word... " >&6; }
6907if ${ac_cv_prog_NMEDIT+:} false; then :
6908  $as_echo_n "(cached) " >&6
6909else
6910  if test -n "$NMEDIT"; then
6911  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6912else
6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916  IFS=$as_save_IFS
6917  test -z "$as_dir" && as_dir=.
6918    for ac_exec_ext in '' $ac_executable_extensions; do
6919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922    break 2
6923  fi
6924done
6925  done
6926IFS=$as_save_IFS
6927
6928fi
6929fi
6930NMEDIT=$ac_cv_prog_NMEDIT
6931if test -n "$NMEDIT"; then
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6933$as_echo "$NMEDIT" >&6; }
6934else
6935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936$as_echo "no" >&6; }
6937fi
6938
6939
6940fi
6941if test -z "$ac_cv_prog_NMEDIT"; then
6942  ac_ct_NMEDIT=$NMEDIT
6943  # Extract the first word of "nmedit", so it can be a program name with args.
6944set dummy nmedit; ac_word=$2
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946$as_echo_n "checking for $ac_word... " >&6; }
6947if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950  if test -n "$ac_ct_NMEDIT"; then
6951  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956  IFS=$as_save_IFS
6957  test -z "$as_dir" && as_dir=.
6958    for ac_exec_ext in '' $ac_executable_extensions; do
6959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962    break 2
6963  fi
6964done
6965  done
6966IFS=$as_save_IFS
6967
6968fi
6969fi
6970ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6971if test -n "$ac_ct_NMEDIT"; then
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6973$as_echo "$ac_ct_NMEDIT" >&6; }
6974else
6975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976$as_echo "no" >&6; }
6977fi
6978
6979  if test "x$ac_ct_NMEDIT" = x; then
6980    NMEDIT=":"
6981  else
6982    case $cross_compiling:$ac_tool_warned in
6983yes:)
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986ac_tool_warned=yes ;;
6987esac
6988    NMEDIT=$ac_ct_NMEDIT
6989  fi
6990else
6991  NMEDIT="$ac_cv_prog_NMEDIT"
6992fi
6993
6994    if test -n "$ac_tool_prefix"; then
6995  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6996set dummy ${ac_tool_prefix}lipo; ac_word=$2
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998$as_echo_n "checking for $ac_word... " >&6; }
6999if ${ac_cv_prog_LIPO+:} false; then :
7000  $as_echo_n "(cached) " >&6
7001else
7002  if test -n "$LIPO"; then
7003  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008  IFS=$as_save_IFS
7009  test -z "$as_dir" && as_dir=.
7010    for ac_exec_ext in '' $ac_executable_extensions; do
7011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014    break 2
7015  fi
7016done
7017  done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022LIPO=$ac_cv_prog_LIPO
7023if test -n "$LIPO"; then
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7025$as_echo "$LIPO" >&6; }
7026else
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028$as_echo "no" >&6; }
7029fi
7030
7031
7032fi
7033if test -z "$ac_cv_prog_LIPO"; then
7034  ac_ct_LIPO=$LIPO
7035  # Extract the first word of "lipo", so it can be a program name with args.
7036set dummy lipo; ac_word=$2
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042  if test -n "$ac_ct_LIPO"; then
7043  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048  IFS=$as_save_IFS
7049  test -z "$as_dir" && as_dir=.
7050    for ac_exec_ext in '' $ac_executable_extensions; do
7051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052    ac_cv_prog_ac_ct_LIPO="lipo"
7053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054    break 2
7055  fi
7056done
7057  done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7063if test -n "$ac_ct_LIPO"; then
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7065$as_echo "$ac_ct_LIPO" >&6; }
7066else
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068$as_echo "no" >&6; }
7069fi
7070
7071  if test "x$ac_ct_LIPO" = x; then
7072    LIPO=":"
7073  else
7074    case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080    LIPO=$ac_ct_LIPO
7081  fi
7082else
7083  LIPO="$ac_cv_prog_LIPO"
7084fi
7085
7086    if test -n "$ac_tool_prefix"; then
7087  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7088set dummy ${ac_tool_prefix}otool; ac_word=$2
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if ${ac_cv_prog_OTOOL+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  if test -n "$OTOOL"; then
7095  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100  IFS=$as_save_IFS
7101  test -z "$as_dir" && as_dir=.
7102    for ac_exec_ext in '' $ac_executable_extensions; do
7103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106    break 2
7107  fi
7108done
7109  done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
7114OTOOL=$ac_cv_prog_OTOOL
7115if test -n "$OTOOL"; then
7116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7117$as_echo "$OTOOL" >&6; }
7118else
7119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123
7124fi
7125if test -z "$ac_cv_prog_OTOOL"; then
7126  ac_ct_OTOOL=$OTOOL
7127  # Extract the first word of "otool", so it can be a program name with args.
7128set dummy otool; ac_word=$2
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  if test -n "$ac_ct_OTOOL"; then
7135  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140  IFS=$as_save_IFS
7141  test -z "$as_dir" && as_dir=.
7142    for ac_exec_ext in '' $ac_executable_extensions; do
7143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144    ac_cv_prog_ac_ct_OTOOL="otool"
7145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146    break 2
7147  fi
7148done
7149  done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7155if test -n "$ac_ct_OTOOL"; then
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7157$as_echo "$ac_ct_OTOOL" >&6; }
7158else
7159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
7161fi
7162
7163  if test "x$ac_ct_OTOOL" = x; then
7164    OTOOL=":"
7165  else
7166    case $cross_compiling:$ac_tool_warned in
7167yes:)
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170ac_tool_warned=yes ;;
7171esac
7172    OTOOL=$ac_ct_OTOOL
7173  fi
7174else
7175  OTOOL="$ac_cv_prog_OTOOL"
7176fi
7177
7178    if test -n "$ac_tool_prefix"; then
7179  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7180set dummy ${ac_tool_prefix}otool64; ac_word=$2
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182$as_echo_n "checking for $ac_word... " >&6; }
7183if ${ac_cv_prog_OTOOL64+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  if test -n "$OTOOL64"; then
7187  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194    for ac_exec_ext in '' $ac_executable_extensions; do
7195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201  done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206OTOOL64=$ac_cv_prog_OTOOL64
7207if test -n "$OTOOL64"; then
7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7209$as_echo "$OTOOL64" >&6; }
7210else
7211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212$as_echo "no" >&6; }
7213fi
7214
7215
7216fi
7217if test -z "$ac_cv_prog_OTOOL64"; then
7218  ac_ct_OTOOL64=$OTOOL64
7219  # Extract the first word of "otool64", so it can be a program name with args.
7220set dummy otool64; ac_word=$2
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222$as_echo_n "checking for $ac_word... " >&6; }
7223if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7224  $as_echo_n "(cached) " >&6
7225else
7226  if test -n "$ac_ct_OTOOL64"; then
7227  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232  IFS=$as_save_IFS
7233  test -z "$as_dir" && as_dir=.
7234    for ac_exec_ext in '' $ac_executable_extensions; do
7235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236    ac_cv_prog_ac_ct_OTOOL64="otool64"
7237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238    break 2
7239  fi
7240done
7241  done
7242IFS=$as_save_IFS
7243
7244fi
7245fi
7246ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7247if test -n "$ac_ct_OTOOL64"; then
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7249$as_echo "$ac_ct_OTOOL64" >&6; }
7250else
7251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
7253fi
7254
7255  if test "x$ac_ct_OTOOL64" = x; then
7256    OTOOL64=":"
7257  else
7258    case $cross_compiling:$ac_tool_warned in
7259yes:)
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262ac_tool_warned=yes ;;
7263esac
7264    OTOOL64=$ac_ct_OTOOL64
7265  fi
7266else
7267  OTOOL64="$ac_cv_prog_OTOOL64"
7268fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7297$as_echo_n "checking for -single_module linker flag... " >&6; }
7298if ${lt_cv_apple_cc_single_mod+:} false; then :
7299  $as_echo_n "(cached) " >&6
7300else
7301  lt_cv_apple_cc_single_mod=no
7302      if test -z "$LT_MULTI_MODULE"; then
7303	# By default we will add the -single_module flag. You can override
7304	# by either setting the environment variable LT_MULTI_MODULE
7305	# non-empty at configure time, or by adding -multi_module to the
7306	# link flags.
7307	rm -rf libconftest.dylib*
7308	echo "int foo(void){return 1;}" > conftest.c
7309	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7310-dynamiclib -Wl,-single_module conftest.c" >&5
7311	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7312	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7313        _lt_result=$?
7314	# If there is a non-empty error log, and "single_module"
7315	# appears in it, assume the flag caused a linker warning
7316        if test -s conftest.err && $GREP single_module conftest.err; then
7317	  cat conftest.err >&5
7318	# Otherwise, if the output was created with a 0 exit code from
7319	# the compiler, it worked.
7320	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7321	  lt_cv_apple_cc_single_mod=yes
7322	else
7323	  cat conftest.err >&5
7324	fi
7325	rm -rf libconftest.dylib*
7326	rm -f conftest.*
7327      fi
7328fi
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7330$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7331
7332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7333$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7334if ${lt_cv_ld_exported_symbols_list+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  lt_cv_ld_exported_symbols_list=no
7338      save_LDFLAGS=$LDFLAGS
7339      echo "_main" > conftest.sym
7340      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7341      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343
7344int
7345main ()
7346{
7347
7348  ;
7349  return 0;
7350}
7351_ACEOF
7352if ac_fn_c_try_link "$LINENO"; then :
7353  lt_cv_ld_exported_symbols_list=yes
7354else
7355  lt_cv_ld_exported_symbols_list=no
7356fi
7357rm -f core conftest.err conftest.$ac_objext \
7358    conftest$ac_exeext conftest.$ac_ext
7359	LDFLAGS=$save_LDFLAGS
7360
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7363$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7364
7365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7366$as_echo_n "checking for -force_load linker flag... " >&6; }
7367if ${lt_cv_ld_force_load+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  lt_cv_ld_force_load=no
7371      cat > conftest.c << _LT_EOF
7372int forced_loaded() { return 2;}
7373_LT_EOF
7374      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7375      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7376      echo "$AR cru libconftest.a conftest.o" >&5
7377      $AR cru libconftest.a conftest.o 2>&5
7378      echo "$RANLIB libconftest.a" >&5
7379      $RANLIB libconftest.a 2>&5
7380      cat > conftest.c << _LT_EOF
7381int main() { return 0;}
7382_LT_EOF
7383      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7384      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7385      _lt_result=$?
7386      if test -s conftest.err && $GREP force_load conftest.err; then
7387	cat conftest.err >&5
7388      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7389	lt_cv_ld_force_load=yes
7390      else
7391	cat conftest.err >&5
7392      fi
7393        rm -f conftest.err libconftest.a conftest conftest.c
7394        rm -rf conftest.dSYM
7395
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7398$as_echo "$lt_cv_ld_force_load" >&6; }
7399    case $host_os in
7400    rhapsody* | darwin1.[012])
7401      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7402    darwin1.*)
7403      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7404    darwin*) # darwin 5.x on
7405      # if running on 10.5 or later, the deployment target defaults
7406      # to the OS version, if on x86, and 10.4, the deployment
7407      # target defaults to 10.4. Don't you love it?
7408      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7409	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7410	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7411	10.[012][,.]*)
7412	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7413	10.*)
7414	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7415      esac
7416    ;;
7417  esac
7418    if test yes = "$lt_cv_apple_cc_single_mod"; then
7419      _lt_dar_single_mod='$single_module'
7420    fi
7421    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7422      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7423    else
7424      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7425    fi
7426    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7427      _lt_dsymutil='~$DSYMUTIL $lib || :'
7428    else
7429      _lt_dsymutil=
7430    fi
7431    ;;
7432  esac
7433
7434ac_ext=c
7435ac_cpp='$CPP $CPPFLAGS'
7436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7440$as_echo_n "checking how to run the C preprocessor... " >&6; }
7441# On Suns, sometimes $CPP names a directory.
7442if test -n "$CPP" && test -d "$CPP"; then
7443  CPP=
7444fi
7445if test -z "$CPP"; then
7446  if ${ac_cv_prog_CPP+:} false; then :
7447  $as_echo_n "(cached) " >&6
7448else
7449      # Double quotes because CPP needs to be expanded
7450    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7451    do
7452      ac_preproc_ok=false
7453for ac_c_preproc_warn_flag in '' yes
7454do
7455  # Use a header file that comes with gcc, so configuring glibc
7456  # with a fresh cross-compiler works.
7457  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458  # <limits.h> exists even on freestanding compilers.
7459  # On the NeXT, cc -E runs the code through the compiler's parser,
7460  # not just through cpp. "Syntax error" is here to catch this case.
7461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463#ifdef __STDC__
7464# include <limits.h>
7465#else
7466# include <assert.h>
7467#endif
7468		     Syntax error
7469_ACEOF
7470if ac_fn_c_try_cpp "$LINENO"; then :
7471
7472else
7473  # Broken: fails on valid input.
7474continue
7475fi
7476rm -f conftest.err conftest.i conftest.$ac_ext
7477
7478  # OK, works on sane cases.  Now check whether nonexistent headers
7479  # can be detected and how.
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482#include <ac_nonexistent.h>
7483_ACEOF
7484if ac_fn_c_try_cpp "$LINENO"; then :
7485  # Broken: success on invalid input.
7486continue
7487else
7488  # Passes both tests.
7489ac_preproc_ok=:
7490break
7491fi
7492rm -f conftest.err conftest.i conftest.$ac_ext
7493
7494done
7495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7496rm -f conftest.i conftest.err conftest.$ac_ext
7497if $ac_preproc_ok; then :
7498  break
7499fi
7500
7501    done
7502    ac_cv_prog_CPP=$CPP
7503
7504fi
7505  CPP=$ac_cv_prog_CPP
7506else
7507  ac_cv_prog_CPP=$CPP
7508fi
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7510$as_echo "$CPP" >&6; }
7511ac_preproc_ok=false
7512for ac_c_preproc_warn_flag in '' yes
7513do
7514  # Use a header file that comes with gcc, so configuring glibc
7515  # with a fresh cross-compiler works.
7516  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517  # <limits.h> exists even on freestanding compilers.
7518  # On the NeXT, cc -E runs the code through the compiler's parser,
7519  # not just through cpp. "Syntax error" is here to catch this case.
7520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h.  */
7522#ifdef __STDC__
7523# include <limits.h>
7524#else
7525# include <assert.h>
7526#endif
7527		     Syntax error
7528_ACEOF
7529if ac_fn_c_try_cpp "$LINENO"; then :
7530
7531else
7532  # Broken: fails on valid input.
7533continue
7534fi
7535rm -f conftest.err conftest.i conftest.$ac_ext
7536
7537  # OK, works on sane cases.  Now check whether nonexistent headers
7538  # can be detected and how.
7539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540/* end confdefs.h.  */
7541#include <ac_nonexistent.h>
7542_ACEOF
7543if ac_fn_c_try_cpp "$LINENO"; then :
7544  # Broken: success on invalid input.
7545continue
7546else
7547  # Passes both tests.
7548ac_preproc_ok=:
7549break
7550fi
7551rm -f conftest.err conftest.i conftest.$ac_ext
7552
7553done
7554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7555rm -f conftest.i conftest.err conftest.$ac_ext
7556if $ac_preproc_ok; then :
7557
7558else
7559  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7561as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7562See \`config.log' for more details" "$LINENO" 5; }
7563fi
7564
7565ac_ext=c
7566ac_cpp='$CPP $CPPFLAGS'
7567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7573$as_echo_n "checking for ANSI C header files... " >&6; }
7574if ${ac_cv_header_stdc+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579#include <stdlib.h>
7580#include <stdarg.h>
7581#include <string.h>
7582#include <float.h>
7583
7584int
7585main ()
7586{
7587
7588  ;
7589  return 0;
7590}
7591_ACEOF
7592if ac_fn_c_try_compile "$LINENO"; then :
7593  ac_cv_header_stdc=yes
7594else
7595  ac_cv_header_stdc=no
7596fi
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598
7599if test $ac_cv_header_stdc = yes; then
7600  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603#include <string.h>
7604
7605_ACEOF
7606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607  $EGREP "memchr" >/dev/null 2>&1; then :
7608
7609else
7610  ac_cv_header_stdc=no
7611fi
7612rm -f conftest*
7613
7614fi
7615
7616if test $ac_cv_header_stdc = yes; then
7617  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620#include <stdlib.h>
7621
7622_ACEOF
7623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624  $EGREP "free" >/dev/null 2>&1; then :
7625
7626else
7627  ac_cv_header_stdc=no
7628fi
7629rm -f conftest*
7630
7631fi
7632
7633if test $ac_cv_header_stdc = yes; then
7634  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7635  if test "$cross_compiling" = yes; then :
7636  :
7637else
7638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h.  */
7640#include <ctype.h>
7641#include <stdlib.h>
7642#if ((' ' & 0x0FF) == 0x020)
7643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7645#else
7646# define ISLOWER(c) \
7647		   (('a' <= (c) && (c) <= 'i') \
7648		     || ('j' <= (c) && (c) <= 'r') \
7649		     || ('s' <= (c) && (c) <= 'z'))
7650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7651#endif
7652
7653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7654int
7655main ()
7656{
7657  int i;
7658  for (i = 0; i < 256; i++)
7659    if (XOR (islower (i), ISLOWER (i))
7660	|| toupper (i) != TOUPPER (i))
7661      return 2;
7662  return 0;
7663}
7664_ACEOF
7665if ac_fn_c_try_run "$LINENO"; then :
7666
7667else
7668  ac_cv_header_stdc=no
7669fi
7670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7671  conftest.$ac_objext conftest.beam conftest.$ac_ext
7672fi
7673
7674fi
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7677$as_echo "$ac_cv_header_stdc" >&6; }
7678if test $ac_cv_header_stdc = yes; then
7679
7680$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7681
7682fi
7683
7684# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7685for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7686		  inttypes.h stdint.h unistd.h
7687do :
7688  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7689ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7690"
7691if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7692  cat >>confdefs.h <<_ACEOF
7693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7694_ACEOF
7695
7696fi
7697
7698done
7699
7700
7701for ac_header in dlfcn.h
7702do :
7703  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7704"
7705if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7706  cat >>confdefs.h <<_ACEOF
7707#define HAVE_DLFCN_H 1
7708_ACEOF
7709
7710fi
7711
7712done
7713
7714
7715
7716
7717
7718# Set options
7719
7720
7721
7722        enable_dlopen=no
7723
7724
7725  enable_win32_dll=no
7726
7727
7728            # Check whether --enable-shared was given.
7729if test "${enable_shared+set}" = set; then :
7730  enableval=$enable_shared; p=${PACKAGE-default}
7731    case $enableval in
7732    yes) enable_shared=yes ;;
7733    no) enable_shared=no ;;
7734    *)
7735      enable_shared=no
7736      # Look at the argument we got.  We use all the common list separators.
7737      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7738      for pkg in $enableval; do
7739	IFS=$lt_save_ifs
7740	if test "X$pkg" = "X$p"; then
7741	  enable_shared=yes
7742	fi
7743      done
7744      IFS=$lt_save_ifs
7745      ;;
7746    esac
7747else
7748  enable_shared=yes
7749fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759  # Check whether --enable-static was given.
7760if test "${enable_static+set}" = set; then :
7761  enableval=$enable_static; p=${PACKAGE-default}
7762    case $enableval in
7763    yes) enable_static=yes ;;
7764    no) enable_static=no ;;
7765    *)
7766     enable_static=no
7767      # Look at the argument we got.  We use all the common list separators.
7768      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7769      for pkg in $enableval; do
7770	IFS=$lt_save_ifs
7771	if test "X$pkg" = "X$p"; then
7772	  enable_static=yes
7773	fi
7774      done
7775      IFS=$lt_save_ifs
7776      ;;
7777    esac
7778else
7779  enable_static=yes
7780fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791# Check whether --with-pic was given.
7792if test "${with_pic+set}" = set; then :
7793  withval=$with_pic; lt_p=${PACKAGE-default}
7794    case $withval in
7795    yes|no) pic_mode=$withval ;;
7796    *)
7797      pic_mode=default
7798      # Look at the argument we got.  We use all the common list separators.
7799      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7800      for lt_pkg in $withval; do
7801	IFS=$lt_save_ifs
7802	if test "X$lt_pkg" = "X$lt_p"; then
7803	  pic_mode=yes
7804	fi
7805      done
7806      IFS=$lt_save_ifs
7807      ;;
7808    esac
7809else
7810  pic_mode=default
7811fi
7812
7813
7814
7815
7816
7817
7818
7819
7820  # Check whether --enable-fast-install was given.
7821if test "${enable_fast_install+set}" = set; then :
7822  enableval=$enable_fast_install; p=${PACKAGE-default}
7823    case $enableval in
7824    yes) enable_fast_install=yes ;;
7825    no) enable_fast_install=no ;;
7826    *)
7827      enable_fast_install=no
7828      # Look at the argument we got.  We use all the common list separators.
7829      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7830      for pkg in $enableval; do
7831	IFS=$lt_save_ifs
7832	if test "X$pkg" = "X$p"; then
7833	  enable_fast_install=yes
7834	fi
7835      done
7836      IFS=$lt_save_ifs
7837      ;;
7838    esac
7839else
7840  enable_fast_install=yes
7841fi
7842
7843
7844
7845
7846
7847
7848
7849
7850  shared_archive_member_spec=
7851case $host,$enable_shared in
7852power*-*-aix[5-9]*,yes)
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7854$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7855
7856# Check whether --with-aix-soname was given.
7857if test "${with_aix_soname+set}" = set; then :
7858  withval=$with_aix_soname; case $withval in
7859    aix|svr4|both)
7860      ;;
7861    *)
7862      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7863      ;;
7864    esac
7865    lt_cv_with_aix_soname=$with_aix_soname
7866else
7867  if ${lt_cv_with_aix_soname+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  lt_cv_with_aix_soname=aix
7871fi
7872
7873    with_aix_soname=$lt_cv_with_aix_soname
7874fi
7875
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7877$as_echo "$with_aix_soname" >&6; }
7878  if test aix != "$with_aix_soname"; then
7879    # For the AIX way of multilib, we name the shared archive member
7880    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7881    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7882    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7883    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7884    if test 64 = "${OBJECT_MODE-32}"; then
7885      shared_archive_member_spec=shr_64
7886    else
7887      shared_archive_member_spec=shr
7888    fi
7889  fi
7890  ;;
7891*)
7892  with_aix_soname=aix
7893  ;;
7894esac
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905# This can be used to rebuild libtool when needed
7906LIBTOOL_DEPS=$ltmain
7907
7908# Always use our own libtool.
7909LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940test -z "$LN_S" && LN_S="ln -s"
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955if test -n "${ZSH_VERSION+set}"; then
7956   setopt NO_GLOB_SUBST
7957fi
7958
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7960$as_echo_n "checking for objdir... " >&6; }
7961if ${lt_cv_objdir+:} false; then :
7962  $as_echo_n "(cached) " >&6
7963else
7964  rm -f .libs 2>/dev/null
7965mkdir .libs 2>/dev/null
7966if test -d .libs; then
7967  lt_cv_objdir=.libs
7968else
7969  # MS-DOS does not allow filenames that begin with a dot.
7970  lt_cv_objdir=_libs
7971fi
7972rmdir .libs 2>/dev/null
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7975$as_echo "$lt_cv_objdir" >&6; }
7976objdir=$lt_cv_objdir
7977
7978
7979
7980
7981
7982cat >>confdefs.h <<_ACEOF
7983#define LT_OBJDIR "$lt_cv_objdir/"
7984_ACEOF
7985
7986
7987
7988
7989case $host_os in
7990aix3*)
7991  # AIX sometimes has problems with the GCC collect2 program.  For some
7992  # reason, if we set the COLLECT_NAMES environment variable, the problems
7993  # vanish in a puff of smoke.
7994  if test set != "${COLLECT_NAMES+set}"; then
7995    COLLECT_NAMES=
7996    export COLLECT_NAMES
7997  fi
7998  ;;
7999esac
8000
8001# Global variables:
8002ofile=libtool
8003can_build_shared=yes
8004
8005# All known linkers require a '.a' archive for static linking (except MSVC,
8006# which needs '.lib').
8007libext=a
8008
8009with_gnu_ld=$lt_cv_prog_gnu_ld
8010
8011old_CC=$CC
8012old_CFLAGS=$CFLAGS
8013
8014# Set sane defaults for various variables
8015test -z "$CC" && CC=cc
8016test -z "$LTCC" && LTCC=$CC
8017test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8018test -z "$LD" && LD=ld
8019test -z "$ac_objext" && ac_objext=o
8020
8021for cc_temp in $compiler""; do
8022  case $cc_temp in
8023    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8024    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8025    \-*) ;;
8026    *) break;;
8027  esac
8028done
8029cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8030
8031
8032# Only perform the check for file, if the check method requires it
8033test -z "$MAGIC_CMD" && MAGIC_CMD=file
8034case $deplibs_check_method in
8035file_magic*)
8036  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8038$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8039if ${lt_cv_path_MAGIC_CMD+:} false; then :
8040  $as_echo_n "(cached) " >&6
8041else
8042  case $MAGIC_CMD in
8043[\\/*] |  ?:[\\/]*)
8044  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8045  ;;
8046*)
8047  lt_save_MAGIC_CMD=$MAGIC_CMD
8048  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8049  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050  for ac_dir in $ac_dummy; do
8051    IFS=$lt_save_ifs
8052    test -z "$ac_dir" && ac_dir=.
8053    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8054      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8055      if test -n "$file_magic_test_file"; then
8056	case $deplibs_check_method in
8057	"file_magic "*)
8058	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8060	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061	    $EGREP "$file_magic_regex" > /dev/null; then
8062	    :
8063	  else
8064	    cat <<_LT_EOF 1>&2
8065
8066*** Warning: the command libtool uses to detect shared libraries,
8067*** $file_magic_cmd, produces output that libtool cannot recognize.
8068*** The result is that libtool may fail to recognize shared libraries
8069*** as such.  This will affect the creation of libtool libraries that
8070*** depend on shared libraries, but programs linked with such libtool
8071*** libraries will work regardless of this problem.  Nevertheless, you
8072*** may want to report the problem to your system manager and/or to
8073*** [email protected]
8074
8075_LT_EOF
8076	  fi ;;
8077	esac
8078      fi
8079      break
8080    fi
8081  done
8082  IFS=$lt_save_ifs
8083  MAGIC_CMD=$lt_save_MAGIC_CMD
8084  ;;
8085esac
8086fi
8087
8088MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8089if test -n "$MAGIC_CMD"; then
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8091$as_echo "$MAGIC_CMD" >&6; }
8092else
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }
8095fi
8096
8097
8098
8099
8100
8101if test -z "$lt_cv_path_MAGIC_CMD"; then
8102  if test -n "$ac_tool_prefix"; then
8103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8104$as_echo_n "checking for file... " >&6; }
8105if ${lt_cv_path_MAGIC_CMD+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  case $MAGIC_CMD in
8109[\\/*] |  ?:[\\/]*)
8110  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8111  ;;
8112*)
8113  lt_save_MAGIC_CMD=$MAGIC_CMD
8114  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8115  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116  for ac_dir in $ac_dummy; do
8117    IFS=$lt_save_ifs
8118    test -z "$ac_dir" && ac_dir=.
8119    if test -f "$ac_dir/file"; then
8120      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8121      if test -n "$file_magic_test_file"; then
8122	case $deplibs_check_method in
8123	"file_magic "*)
8124	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8125	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8126	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127	    $EGREP "$file_magic_regex" > /dev/null; then
8128	    :
8129	  else
8130	    cat <<_LT_EOF 1>&2
8131
8132*** Warning: the command libtool uses to detect shared libraries,
8133*** $file_magic_cmd, produces output that libtool cannot recognize.
8134*** The result is that libtool may fail to recognize shared libraries
8135*** as such.  This will affect the creation of libtool libraries that
8136*** depend on shared libraries, but programs linked with such libtool
8137*** libraries will work regardless of this problem.  Nevertheless, you
8138*** may want to report the problem to your system manager and/or to
8139*** [email protected]
8140
8141_LT_EOF
8142	  fi ;;
8143	esac
8144      fi
8145      break
8146    fi
8147  done
8148  IFS=$lt_save_ifs
8149  MAGIC_CMD=$lt_save_MAGIC_CMD
8150  ;;
8151esac
8152fi
8153
8154MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8155if test -n "$MAGIC_CMD"; then
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8157$as_echo "$MAGIC_CMD" >&6; }
8158else
8159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
8161fi
8162
8163
8164  else
8165    MAGIC_CMD=:
8166  fi
8167fi
8168
8169  fi
8170  ;;
8171esac
8172
8173# Use C for the default configuration in the libtool script
8174
8175lt_save_CC=$CC
8176ac_ext=c
8177ac_cpp='$CPP $CPPFLAGS'
8178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8180ac_compiler_gnu=$ac_cv_c_compiler_gnu
8181
8182
8183# Source file extension for C test sources.
8184ac_ext=c
8185
8186# Object file extension for compiled C test sources.
8187objext=o
8188objext=$objext
8189
8190# Code to be used in simple compile tests
8191lt_simple_compile_test_code="int some_variable = 0;"
8192
8193# Code to be used in simple link tests
8194lt_simple_link_test_code='int main(){return(0);}'
8195
8196
8197
8198
8199
8200
8201
8202# If no C compiler was specified, use CC.
8203LTCC=${LTCC-"$CC"}
8204
8205# If no C compiler flags were specified, use CFLAGS.
8206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8207
8208# Allow CC to be a program name with arguments.
8209compiler=$CC
8210
8211# Save the default compiler, since it gets overwritten when the other
8212# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8213compiler_DEFAULT=$CC
8214
8215# save warnings/boilerplate of simple test code
8216ac_outfile=conftest.$ac_objext
8217echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8218eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8219_lt_compiler_boilerplate=`cat conftest.err`
8220$RM conftest*
8221
8222ac_outfile=conftest.$ac_objext
8223echo "$lt_simple_link_test_code" >conftest.$ac_ext
8224eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8225_lt_linker_boilerplate=`cat conftest.err`
8226$RM -r conftest*
8227
8228
8229if test -n "$compiler"; then
8230
8231lt_prog_compiler_no_builtin_flag=
8232
8233if test yes = "$GCC"; then
8234  case $cc_basename in
8235  nvcc*)
8236    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8237  *)
8238    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8239  esac
8240
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8242$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8243if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  lt_cv_prog_compiler_rtti_exceptions=no
8247   ac_outfile=conftest.$ac_objext
8248   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8249   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8250   # Insert the option either (1) after the last *FLAGS variable, or
8251   # (2) before a word containing "conftest.", or (3) at the end.
8252   # Note that $ac_compile itself does not contain backslashes and begins
8253   # with a dollar sign (not a hyphen), so the echo should work correctly.
8254   # The option is referenced via a variable to avoid confusing sed.
8255   lt_compile=`echo "$ac_compile" | $SED \
8256   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8257   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8258   -e 's:$: $lt_compiler_flag:'`
8259   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8260   (eval "$lt_compile" 2>conftest.err)
8261   ac_status=$?
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   if (exit $ac_status) && test -s "$ac_outfile"; then
8265     # The compiler can only warn and ignore the option if not recognized
8266     # So say no if there are warnings other than the usual output.
8267     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8268     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8269     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8270       lt_cv_prog_compiler_rtti_exceptions=yes
8271     fi
8272   fi
8273   $RM conftest*
8274
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8277$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8278
8279if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8280    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8281else
8282    :
8283fi
8284
8285fi
8286
8287
8288
8289
8290
8291
8292  lt_prog_compiler_wl=
8293lt_prog_compiler_pic=
8294lt_prog_compiler_static=
8295
8296
8297  if test yes = "$GCC"; then
8298    lt_prog_compiler_wl='-Wl,'
8299    lt_prog_compiler_static='-static'
8300
8301    case $host_os in
8302      aix*)
8303      # All AIX code is PIC.
8304      if test ia64 = "$host_cpu"; then
8305	# AIX 5 now supports IA64 processor
8306	lt_prog_compiler_static='-Bstatic'
8307      fi
8308      lt_prog_compiler_pic='-fPIC'
8309      ;;
8310
8311    amigaos*)
8312      case $host_cpu in
8313      powerpc)
8314            # see comment about AmigaOS4 .so support
8315            lt_prog_compiler_pic='-fPIC'
8316        ;;
8317      m68k)
8318            # FIXME: we need at least 68020 code to build shared libraries, but
8319            # adding the '-m68020' flag to GCC prevents building anything better,
8320            # like '-m68040'.
8321            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8322        ;;
8323      esac
8324      ;;
8325
8326    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8327      # PIC is the default for these OSes.
8328      ;;
8329
8330    mingw* | cygwin* | pw32* | os2* | cegcc*)
8331      # This hack is so that the source file can tell whether it is being
8332      # built for inclusion in a dll (and should export symbols for example).
8333      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8334      # (--disable-auto-import) libraries
8335      lt_prog_compiler_pic='-DDLL_EXPORT'
8336      case $host_os in
8337      os2*)
8338	lt_prog_compiler_static='$wl-static'
8339	;;
8340      esac
8341      ;;
8342
8343    darwin* | rhapsody*)
8344      # PIC is the default on this platform
8345      # Common symbols not allowed in MH_DYLIB files
8346      lt_prog_compiler_pic='-fno-common'
8347      ;;
8348
8349    haiku*)
8350      # PIC is the default for Haiku.
8351      # The "-static" flag exists, but is broken.
8352      lt_prog_compiler_static=
8353      ;;
8354
8355    hpux*)
8356      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8357      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8358      # sets the default TLS model and affects inlining.
8359      case $host_cpu in
8360      hppa*64*)
8361	# +Z the default
8362	;;
8363      *)
8364	lt_prog_compiler_pic='-fPIC'
8365	;;
8366      esac
8367      ;;
8368
8369    interix[3-9]*)
8370      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8371      # Instead, we relocate shared libraries at runtime.
8372      ;;
8373
8374    msdosdjgpp*)
8375      # Just because we use GCC doesn't mean we suddenly get shared libraries
8376      # on systems that don't support them.
8377      lt_prog_compiler_can_build_shared=no
8378      enable_shared=no
8379      ;;
8380
8381    *nto* | *qnx*)
8382      # QNX uses GNU C++, but need to define -shared option too, otherwise
8383      # it will coredump.
8384      lt_prog_compiler_pic='-fPIC -shared'
8385      ;;
8386
8387    sysv4*MP*)
8388      if test -d /usr/nec; then
8389	lt_prog_compiler_pic=-Kconform_pic
8390      fi
8391      ;;
8392
8393    *)
8394      lt_prog_compiler_pic='-fPIC'
8395      ;;
8396    esac
8397
8398    case $cc_basename in
8399    nvcc*) # Cuda Compiler Driver 2.2
8400      lt_prog_compiler_wl='-Xlinker '
8401      if test -n "$lt_prog_compiler_pic"; then
8402        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8403      fi
8404      ;;
8405    esac
8406  else
8407    # PORTME Check for flag to pass linker flags through the system compiler.
8408    case $host_os in
8409    aix*)
8410      lt_prog_compiler_wl='-Wl,'
8411      if test ia64 = "$host_cpu"; then
8412	# AIX 5 now supports IA64 processor
8413	lt_prog_compiler_static='-Bstatic'
8414      else
8415	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8416      fi
8417      ;;
8418
8419    darwin* | rhapsody*)
8420      # PIC is the default on this platform
8421      # Common symbols not allowed in MH_DYLIB files
8422      lt_prog_compiler_pic='-fno-common'
8423      case $cc_basename in
8424      nagfor*)
8425        # NAG Fortran compiler
8426        lt_prog_compiler_wl='-Wl,-Wl,,'
8427        lt_prog_compiler_pic='-PIC'
8428        lt_prog_compiler_static='-Bstatic'
8429        ;;
8430      esac
8431      ;;
8432
8433    mingw* | cygwin* | pw32* | os2* | cegcc*)
8434      # This hack is so that the source file can tell whether it is being
8435      # built for inclusion in a dll (and should export symbols for example).
8436      lt_prog_compiler_pic='-DDLL_EXPORT'
8437      case $host_os in
8438      os2*)
8439	lt_prog_compiler_static='$wl-static'
8440	;;
8441      esac
8442      ;;
8443
8444    hpux9* | hpux10* | hpux11*)
8445      lt_prog_compiler_wl='-Wl,'
8446      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8447      # not for PA HP-UX.
8448      case $host_cpu in
8449      hppa*64*|ia64*)
8450	# +Z the default
8451	;;
8452      *)
8453	lt_prog_compiler_pic='+Z'
8454	;;
8455      esac
8456      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8457      lt_prog_compiler_static='$wl-a ${wl}archive'
8458      ;;
8459
8460    irix5* | irix6* | nonstopux*)
8461      lt_prog_compiler_wl='-Wl,'
8462      # PIC (with -KPIC) is the default.
8463      lt_prog_compiler_static='-non_shared'
8464      ;;
8465
8466    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8467      case $cc_basename in
8468      # old Intel for x86_64, which still supported -KPIC.
8469      ecc*)
8470	lt_prog_compiler_wl='-Wl,'
8471	lt_prog_compiler_pic='-KPIC'
8472	lt_prog_compiler_static='-static'
8473        ;;
8474      # icc used to be incompatible with GCC.
8475      # ICC 10 doesn't accept -KPIC any more.
8476      icc* | ifort*)
8477	lt_prog_compiler_wl='-Wl,'
8478	lt_prog_compiler_pic='-fPIC'
8479	lt_prog_compiler_static='-static'
8480        ;;
8481      # Lahey Fortran 8.1.
8482      lf95*)
8483	lt_prog_compiler_wl='-Wl,'
8484	lt_prog_compiler_pic='--shared'
8485	lt_prog_compiler_static='--static'
8486	;;
8487      nagfor*)
8488	# NAG Fortran compiler
8489	lt_prog_compiler_wl='-Wl,-Wl,,'
8490	lt_prog_compiler_pic='-PIC'
8491	lt_prog_compiler_static='-Bstatic'
8492	;;
8493      tcc*)
8494	# Fabrice Bellard et al's Tiny C Compiler
8495	lt_prog_compiler_wl='-Wl,'
8496	lt_prog_compiler_pic='-fPIC'
8497	lt_prog_compiler_static='-static'
8498	;;
8499      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8500        # Portland Group compilers (*not* the Pentium gcc compiler,
8501	# which looks to be a dead project)
8502	lt_prog_compiler_wl='-Wl,'
8503	lt_prog_compiler_pic='-fpic'
8504	lt_prog_compiler_static='-Bstatic'
8505        ;;
8506      ccc*)
8507        lt_prog_compiler_wl='-Wl,'
8508        # All Alpha code is PIC.
8509        lt_prog_compiler_static='-non_shared'
8510        ;;
8511      xl* | bgxl* | bgf* | mpixl*)
8512	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8513	lt_prog_compiler_wl='-Wl,'
8514	lt_prog_compiler_pic='-qpic'
8515	lt_prog_compiler_static='-qstaticlink'
8516	;;
8517      *)
8518	case `$CC -V 2>&1 | sed 5q` in
8519	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8520	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8521	  lt_prog_compiler_pic='-KPIC'
8522	  lt_prog_compiler_static='-Bstatic'
8523	  lt_prog_compiler_wl=''
8524	  ;;
8525	*Sun\ F* | *Sun*Fortran*)
8526	  lt_prog_compiler_pic='-KPIC'
8527	  lt_prog_compiler_static='-Bstatic'
8528	  lt_prog_compiler_wl='-Qoption ld '
8529	  ;;
8530	*Sun\ C*)
8531	  # Sun C 5.9
8532	  lt_prog_compiler_pic='-KPIC'
8533	  lt_prog_compiler_static='-Bstatic'
8534	  lt_prog_compiler_wl='-Wl,'
8535	  ;;
8536        *Intel*\ [CF]*Compiler*)
8537	  lt_prog_compiler_wl='-Wl,'
8538	  lt_prog_compiler_pic='-fPIC'
8539	  lt_prog_compiler_static='-static'
8540	  ;;
8541	*Portland\ Group*)
8542	  lt_prog_compiler_wl='-Wl,'
8543	  lt_prog_compiler_pic='-fpic'
8544	  lt_prog_compiler_static='-Bstatic'
8545	  ;;
8546	esac
8547	;;
8548      esac
8549      ;;
8550
8551    newsos6)
8552      lt_prog_compiler_pic='-KPIC'
8553      lt_prog_compiler_static='-Bstatic'
8554      ;;
8555
8556    *nto* | *qnx*)
8557      # QNX uses GNU C++, but need to define -shared option too, otherwise
8558      # it will coredump.
8559      lt_prog_compiler_pic='-fPIC -shared'
8560      ;;
8561
8562    osf3* | osf4* | osf5*)
8563      lt_prog_compiler_wl='-Wl,'
8564      # All OSF/1 code is PIC.
8565      lt_prog_compiler_static='-non_shared'
8566      ;;
8567
8568    rdos*)
8569      lt_prog_compiler_static='-non_shared'
8570      ;;
8571
8572    solaris*)
8573      lt_prog_compiler_pic='-KPIC'
8574      lt_prog_compiler_static='-Bstatic'
8575      case $cc_basename in
8576      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8577	lt_prog_compiler_wl='-Qoption ld ';;
8578      *)
8579	lt_prog_compiler_wl='-Wl,';;
8580      esac
8581      ;;
8582
8583    sunos4*)
8584      lt_prog_compiler_wl='-Qoption ld '
8585      lt_prog_compiler_pic='-PIC'
8586      lt_prog_compiler_static='-Bstatic'
8587      ;;
8588
8589    sysv4 | sysv4.2uw2* | sysv4.3*)
8590      lt_prog_compiler_wl='-Wl,'
8591      lt_prog_compiler_pic='-KPIC'
8592      lt_prog_compiler_static='-Bstatic'
8593      ;;
8594
8595    sysv4*MP*)
8596      if test -d /usr/nec; then
8597	lt_prog_compiler_pic='-Kconform_pic'
8598	lt_prog_compiler_static='-Bstatic'
8599      fi
8600      ;;
8601
8602    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8603      lt_prog_compiler_wl='-Wl,'
8604      lt_prog_compiler_pic='-KPIC'
8605      lt_prog_compiler_static='-Bstatic'
8606      ;;
8607
8608    unicos*)
8609      lt_prog_compiler_wl='-Wl,'
8610      lt_prog_compiler_can_build_shared=no
8611      ;;
8612
8613    uts4*)
8614      lt_prog_compiler_pic='-pic'
8615      lt_prog_compiler_static='-Bstatic'
8616      ;;
8617
8618    *)
8619      lt_prog_compiler_can_build_shared=no
8620      ;;
8621    esac
8622  fi
8623
8624case $host_os in
8625  # For platforms that do not support PIC, -DPIC is meaningless:
8626  *djgpp*)
8627    lt_prog_compiler_pic=
8628    ;;
8629  *)
8630    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8631    ;;
8632esac
8633
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8635$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8636if ${lt_cv_prog_compiler_pic+:} false; then :
8637  $as_echo_n "(cached) " >&6
8638else
8639  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8642$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8643lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8644
8645#
8646# Check to make sure the PIC flag actually works.
8647#
8648if test -n "$lt_prog_compiler_pic"; then
8649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8650$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8651if ${lt_cv_prog_compiler_pic_works+:} false; then :
8652  $as_echo_n "(cached) " >&6
8653else
8654  lt_cv_prog_compiler_pic_works=no
8655   ac_outfile=conftest.$ac_objext
8656   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8657   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8658   # Insert the option either (1) after the last *FLAGS variable, or
8659   # (2) before a word containing "conftest.", or (3) at the end.
8660   # Note that $ac_compile itself does not contain backslashes and begins
8661   # with a dollar sign (not a hyphen), so the echo should work correctly.
8662   # The option is referenced via a variable to avoid confusing sed.
8663   lt_compile=`echo "$ac_compile" | $SED \
8664   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8665   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8666   -e 's:$: $lt_compiler_flag:'`
8667   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8668   (eval "$lt_compile" 2>conftest.err)
8669   ac_status=$?
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   if (exit $ac_status) && test -s "$ac_outfile"; then
8673     # The compiler can only warn and ignore the option if not recognized
8674     # So say no if there are warnings other than the usual output.
8675     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8676     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8677     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8678       lt_cv_prog_compiler_pic_works=yes
8679     fi
8680   fi
8681   $RM conftest*
8682
8683fi
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8685$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8686
8687if test yes = "$lt_cv_prog_compiler_pic_works"; then
8688    case $lt_prog_compiler_pic in
8689     "" | " "*) ;;
8690     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8691     esac
8692else
8693    lt_prog_compiler_pic=
8694     lt_prog_compiler_can_build_shared=no
8695fi
8696
8697fi
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709#
8710# Check to make sure the static flag actually works.
8711#
8712wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8714$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8715if ${lt_cv_prog_compiler_static_works+:} false; then :
8716  $as_echo_n "(cached) " >&6
8717else
8718  lt_cv_prog_compiler_static_works=no
8719   save_LDFLAGS=$LDFLAGS
8720   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8721   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8722   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8723     # The linker can only warn and ignore the option if not recognized
8724     # So say no if there are warnings
8725     if test -s conftest.err; then
8726       # Append any errors to the config.log.
8727       cat conftest.err 1>&5
8728       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8729       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730       if diff conftest.exp conftest.er2 >/dev/null; then
8731         lt_cv_prog_compiler_static_works=yes
8732       fi
8733     else
8734       lt_cv_prog_compiler_static_works=yes
8735     fi
8736   fi
8737   $RM -r conftest*
8738   LDFLAGS=$save_LDFLAGS
8739
8740fi
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8742$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8743
8744if test yes = "$lt_cv_prog_compiler_static_works"; then
8745    :
8746else
8747    lt_prog_compiler_static=
8748fi
8749
8750
8751
8752
8753
8754
8755
8756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8757$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8758if ${lt_cv_prog_compiler_c_o+:} false; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761  lt_cv_prog_compiler_c_o=no
8762   $RM -r conftest 2>/dev/null
8763   mkdir conftest
8764   cd conftest
8765   mkdir out
8766   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8767
8768   lt_compiler_flag="-o out/conftest2.$ac_objext"
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   lt_compile=`echo "$ac_compile" | $SED \
8774   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8775   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8776   -e 's:$: $lt_compiler_flag:'`
8777   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8778   (eval "$lt_compile" 2>out/conftest.err)
8779   ac_status=$?
8780   cat out/conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8783   then
8784     # The compiler can only warn and ignore the option if not recognized
8785     # So say no if there are warnings
8786     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8787     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8788     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8789       lt_cv_prog_compiler_c_o=yes
8790     fi
8791   fi
8792   chmod u+w . 2>&5
8793   $RM conftest*
8794   # SGI C++ compiler will create directory out/ii_files/ for
8795   # template instantiation
8796   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8797   $RM out/* && rmdir out
8798   cd ..
8799   $RM -r conftest
8800   $RM conftest*
8801
8802fi
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8804$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8805
8806
8807
8808
8809
8810
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8812$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8813if ${lt_cv_prog_compiler_c_o+:} false; then :
8814  $as_echo_n "(cached) " >&6
8815else
8816  lt_cv_prog_compiler_c_o=no
8817   $RM -r conftest 2>/dev/null
8818   mkdir conftest
8819   cd conftest
8820   mkdir out
8821   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8822
8823   lt_compiler_flag="-o out/conftest2.$ac_objext"
8824   # Insert the option either (1) after the last *FLAGS variable, or
8825   # (2) before a word containing "conftest.", or (3) at the end.
8826   # Note that $ac_compile itself does not contain backslashes and begins
8827   # with a dollar sign (not a hyphen), so the echo should work correctly.
8828   lt_compile=`echo "$ac_compile" | $SED \
8829   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8830   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8831   -e 's:$: $lt_compiler_flag:'`
8832   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8833   (eval "$lt_compile" 2>out/conftest.err)
8834   ac_status=$?
8835   cat out/conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8838   then
8839     # The compiler can only warn and ignore the option if not recognized
8840     # So say no if there are warnings
8841     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8842     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8843     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8844       lt_cv_prog_compiler_c_o=yes
8845     fi
8846   fi
8847   chmod u+w . 2>&5
8848   $RM conftest*
8849   # SGI C++ compiler will create directory out/ii_files/ for
8850   # template instantiation
8851   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8852   $RM out/* && rmdir out
8853   cd ..
8854   $RM -r conftest
8855   $RM conftest*
8856
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8859$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8860
8861
8862
8863
8864hard_links=nottested
8865if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8866  # do not overwrite the value of need_locks provided by the user
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8868$as_echo_n "checking if we can lock with hard links... " >&6; }
8869  hard_links=yes
8870  $RM conftest*
8871  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8872  touch conftest.a
8873  ln conftest.a conftest.b 2>&5 || hard_links=no
8874  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8876$as_echo "$hard_links" >&6; }
8877  if test no = "$hard_links"; then
8878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8879$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8880    need_locks=warn
8881  fi
8882else
8883  need_locks=no
8884fi
8885
8886
8887
8888
8889
8890
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8892$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8893
8894  runpath_var=
8895  allow_undefined_flag=
8896  always_export_symbols=no
8897  archive_cmds=
8898  archive_expsym_cmds=
8899  compiler_needs_object=no
8900  enable_shared_with_static_runtimes=no
8901  export_dynamic_flag_spec=
8902  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8903  hardcode_automatic=no
8904  hardcode_direct=no
8905  hardcode_direct_absolute=no
8906  hardcode_libdir_flag_spec=
8907  hardcode_libdir_separator=
8908  hardcode_minus_L=no
8909  hardcode_shlibpath_var=unsupported
8910  inherit_rpath=no
8911  link_all_deplibs=unknown
8912  module_cmds=
8913  module_expsym_cmds=
8914  old_archive_from_new_cmds=
8915  old_archive_from_expsyms_cmds=
8916  thread_safe_flag_spec=
8917  whole_archive_flag_spec=
8918  # include_expsyms should be a list of space-separated symbols to be *always*
8919  # included in the symbol list
8920  include_expsyms=
8921  # exclude_expsyms can be an extended regexp of symbols to exclude
8922  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8923  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8924  # as well as any symbol that contains 'd'.
8925  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8926  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8927  # platforms (ab)use it in PIC code, but their linkers get confused if
8928  # the symbol is explicitly referenced.  Since portable code cannot
8929  # rely on this symbol name, it's probably fine to never include it in
8930  # preloaded symbol tables.
8931  # Exclude shared library initialization/finalization symbols.
8932  extract_expsyms_cmds=
8933
8934  case $host_os in
8935  cygwin* | mingw* | pw32* | cegcc*)
8936    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8937    # When not using gcc, we currently assume that we are using
8938    # Microsoft Visual C++.
8939    if test yes != "$GCC"; then
8940      with_gnu_ld=no
8941    fi
8942    ;;
8943  interix*)
8944    # we just hope/assume this is gcc and not c89 (= MSVC++)
8945    with_gnu_ld=yes
8946    ;;
8947  openbsd* | bitrig*)
8948    with_gnu_ld=no
8949    ;;
8950  esac
8951
8952  ld_shlibs=yes
8953
8954  # On some targets, GNU ld is compatible enough with the native linker
8955  # that we're better off using the native interface for both.
8956  lt_use_gnu_ld_interface=no
8957  if test yes = "$with_gnu_ld"; then
8958    case $host_os in
8959      aix*)
8960	# The AIX port of GNU ld has always aspired to compatibility
8961	# with the native linker.  However, as the warning in the GNU ld
8962	# block says, versions before 2.19.5* couldn't really create working
8963	# shared libraries, regardless of the interface used.
8964	case `$LD -v 2>&1` in
8965	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8966	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8967	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8968	  *)
8969	    lt_use_gnu_ld_interface=yes
8970	    ;;
8971	esac
8972	;;
8973      *)
8974	lt_use_gnu_ld_interface=yes
8975	;;
8976    esac
8977  fi
8978
8979  if test yes = "$lt_use_gnu_ld_interface"; then
8980    # If archive_cmds runs LD, not CC, wlarc should be empty
8981    wlarc='$wl'
8982
8983    # Set some defaults for GNU ld with shared library support. These
8984    # are reset later if shared libraries are not supported. Putting them
8985    # here allows them to be overridden if necessary.
8986    runpath_var=LD_RUN_PATH
8987    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8988    export_dynamic_flag_spec='$wl--export-dynamic'
8989    # ancient GNU ld didn't support --whole-archive et. al.
8990    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8991      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8992    else
8993      whole_archive_flag_spec=
8994    fi
8995    supports_anon_versioning=no
8996    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8997      *GNU\ gold*) supports_anon_versioning=yes ;;
8998      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8999      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9000      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9001      *\ 2.11.*) ;; # other 2.11 versions
9002      *) supports_anon_versioning=yes ;;
9003    esac
9004
9005    # See if GNU ld supports shared libraries.
9006    case $host_os in
9007    aix[3-9]*)
9008      # On AIX/PPC, the GNU linker is very broken
9009      if test ia64 != "$host_cpu"; then
9010	ld_shlibs=no
9011	cat <<_LT_EOF 1>&2
9012
9013*** Warning: the GNU linker, at least up to release 2.19, is reported
9014*** to be unable to reliably create shared libraries on AIX.
9015*** Therefore, libtool is disabling shared libraries support.  If you
9016*** really care for shared libraries, you may want to install binutils
9017*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9018*** You will then need to restart the configuration process.
9019
9020_LT_EOF
9021      fi
9022      ;;
9023
9024    amigaos*)
9025      case $host_cpu in
9026      powerpc)
9027            # see comment about AmigaOS4 .so support
9028            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9029            archive_expsym_cmds=''
9030        ;;
9031      m68k)
9032            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)'
9033            hardcode_libdir_flag_spec='-L$libdir'
9034            hardcode_minus_L=yes
9035        ;;
9036      esac
9037      ;;
9038
9039    beos*)
9040      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9041	allow_undefined_flag=unsupported
9042	# Joseph Beckenbach <[email protected]> says some releases of gcc
9043	# support --undefined.  This deserves some investigation.  FIXME
9044	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9045      else
9046	ld_shlibs=no
9047      fi
9048      ;;
9049
9050    cygwin* | mingw* | pw32* | cegcc*)
9051      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9052      # as there is no search path for DLLs.
9053      hardcode_libdir_flag_spec='-L$libdir'
9054      export_dynamic_flag_spec='$wl--export-all-symbols'
9055      allow_undefined_flag=unsupported
9056      always_export_symbols=no
9057      enable_shared_with_static_runtimes=yes
9058      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'
9059      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9060
9061      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9062        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9063	# If the export-symbols file already is a .def file, use it as
9064	# is; otherwise, prepend EXPORTS...
9065	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9066          cp $export_symbols $output_objdir/$soname.def;
9067        else
9068          echo EXPORTS > $output_objdir/$soname.def;
9069          cat $export_symbols >> $output_objdir/$soname.def;
9070        fi~
9071        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9072      else
9073	ld_shlibs=no
9074      fi
9075      ;;
9076
9077    haiku*)
9078      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9079      link_all_deplibs=yes
9080      ;;
9081
9082    os2*)
9083      hardcode_libdir_flag_spec='-L$libdir'
9084      hardcode_minus_L=yes
9085      allow_undefined_flag=unsupported
9086      shrext_cmds=.dll
9087      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9088	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9089	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9090	$ECHO EXPORTS >> $output_objdir/$libname.def~
9091	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9092	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9093	emximp -o $lib $output_objdir/$libname.def'
9094      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9095	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9096	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9097	$ECHO EXPORTS >> $output_objdir/$libname.def~
9098	prefix_cmds="$SED"~
9099	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9100	  prefix_cmds="$prefix_cmds -e 1d";
9101	fi~
9102	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9103	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9104	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9105	emximp -o $lib $output_objdir/$libname.def'
9106      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9107      enable_shared_with_static_runtimes=yes
9108      ;;
9109
9110    interix[3-9]*)
9111      hardcode_direct=no
9112      hardcode_shlibpath_var=no
9113      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9114      export_dynamic_flag_spec='$wl-E'
9115      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9116      # Instead, shared libraries are loaded at an image base (0x10000000 by
9117      # default) and relocated if they conflict, which is a slow very memory
9118      # consuming and fragmenting process.  To avoid this, we pick a random,
9119      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9120      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9121      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9122      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'
9123      ;;
9124
9125    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9126      tmp_diet=no
9127      if test linux-dietlibc = "$host_os"; then
9128	case $cc_basename in
9129	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9130	esac
9131      fi
9132      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9133	 && test no = "$tmp_diet"
9134      then
9135	tmp_addflag=' $pic_flag'
9136	tmp_sharedflag='-shared'
9137	case $cc_basename,$host_cpu in
9138        pgcc*)				# Portland Group C compiler
9139	  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'
9140	  tmp_addflag=' $pic_flag'
9141	  ;;
9142	pgf77* | pgf90* | pgf95* | pgfortran*)
9143					# Portland Group f77 and f90 compilers
9144	  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'
9145	  tmp_addflag=' $pic_flag -Mnomain' ;;
9146	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9147	  tmp_addflag=' -i_dynamic' ;;
9148	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9149	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9150	ifc* | ifort*)			# Intel Fortran compiler
9151	  tmp_addflag=' -nofor_main' ;;
9152	lf95*)				# Lahey Fortran 8.1
9153	  whole_archive_flag_spec=
9154	  tmp_sharedflag='--shared' ;;
9155        nagfor*)                        # NAGFOR 5.3
9156          tmp_sharedflag='-Wl,-shared' ;;
9157	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9158	  tmp_sharedflag='-qmkshrobj'
9159	  tmp_addflag= ;;
9160	nvcc*)	# Cuda Compiler Driver 2.2
9161	  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'
9162	  compiler_needs_object=yes
9163	  ;;
9164	esac
9165	case `$CC -V 2>&1 | sed 5q` in
9166	*Sun\ C*)			# Sun C 5.9
9167	  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'
9168	  compiler_needs_object=yes
9169	  tmp_sharedflag='-G' ;;
9170	*Sun\ F*)			# Sun Fortran 8.3
9171	  tmp_sharedflag='-G' ;;
9172	esac
9173	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9174
9175        if test yes = "$supports_anon_versioning"; then
9176          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9177            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9178            echo "local: *; };" >> $output_objdir/$libname.ver~
9179            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9180        fi
9181
9182	case $cc_basename in
9183	tcc*)
9184	  export_dynamic_flag_spec='-rdynamic'
9185	  ;;
9186	xlf* | bgf* | bgxlf* | mpixlf*)
9187	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9188	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9189	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9190	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9191	  if test yes = "$supports_anon_versioning"; then
9192	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9193              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9194              echo "local: *; };" >> $output_objdir/$libname.ver~
9195              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9196	  fi
9197	  ;;
9198	esac
9199      else
9200        ld_shlibs=no
9201      fi
9202      ;;
9203
9204    netbsd*)
9205      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9206	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9207	wlarc=
9208      else
9209	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9210	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9211      fi
9212      ;;
9213
9214    solaris*)
9215      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9216	ld_shlibs=no
9217	cat <<_LT_EOF 1>&2
9218
9219*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9220*** create shared libraries on Solaris systems.  Therefore, libtool
9221*** is disabling shared libraries support.  We urge you to upgrade GNU
9222*** binutils to release 2.9.1 or newer.  Another option is to modify
9223*** your PATH or compiler configuration so that the native linker is
9224*** used, and then restart.
9225
9226_LT_EOF
9227      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9229	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9230      else
9231	ld_shlibs=no
9232      fi
9233      ;;
9234
9235    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9236      case `$LD -v 2>&1` in
9237        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9238	ld_shlibs=no
9239	cat <<_LT_EOF 1>&2
9240
9241*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9242*** reliably create shared libraries on SCO systems.  Therefore, libtool
9243*** is disabling shared libraries support.  We urge you to upgrade GNU
9244*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9245*** your PATH or compiler configuration so that the native linker is
9246*** used, and then restart.
9247
9248_LT_EOF
9249	;;
9250	*)
9251	  # For security reasons, it is highly recommended that you always
9252	  # use absolute paths for naming shared libraries, and exclude the
9253	  # DT_RUNPATH tag from executables and libraries.  But doing so
9254	  # requires that you compile everything twice, which is a pain.
9255	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9256	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9257	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9258	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9259	  else
9260	    ld_shlibs=no
9261	  fi
9262	;;
9263      esac
9264      ;;
9265
9266    sunos4*)
9267      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9268      wlarc=
9269      hardcode_direct=yes
9270      hardcode_shlibpath_var=no
9271      ;;
9272
9273    *)
9274      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9275	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9276	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9277      else
9278	ld_shlibs=no
9279      fi
9280      ;;
9281    esac
9282
9283    if test no = "$ld_shlibs"; then
9284      runpath_var=
9285      hardcode_libdir_flag_spec=
9286      export_dynamic_flag_spec=
9287      whole_archive_flag_spec=
9288    fi
9289  else
9290    # PORTME fill in a description of your system's linker (not GNU ld)
9291    case $host_os in
9292    aix3*)
9293      allow_undefined_flag=unsupported
9294      always_export_symbols=yes
9295      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'
9296      # Note: this linker hardcodes the directories in LIBPATH if there
9297      # are no directories specified by -L.
9298      hardcode_minus_L=yes
9299      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9300	# Neither direct hardcoding nor static linking is supported with a
9301	# broken collect2.
9302	hardcode_direct=unsupported
9303      fi
9304      ;;
9305
9306    aix[4-9]*)
9307      if test ia64 = "$host_cpu"; then
9308	# On IA64, the linker does run time linking by default, so we don't
9309	# have to do anything special.
9310	aix_use_runtimelinking=no
9311	exp_sym_flag='-Bexport'
9312	no_entry_flag=
9313      else
9314	# If we're using GNU nm, then we don't want the "-C" option.
9315	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9316	# Without the "-l" option, or with the "-B" option, AIX nm treats
9317	# weak defined symbols like other global defined symbols, whereas
9318	# GNU nm marks them as "W".
9319	# While the 'weak' keyword is ignored in the Export File, we need
9320	# it in the Import File for the 'aix-soname' feature, so we have
9321	# to replace the "-B" option with "-P" for AIX nm.
9322	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9323	  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'
9324	else
9325	  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'
9326	fi
9327	aix_use_runtimelinking=no
9328
9329	# Test if we are trying to use run time linking or normal
9330	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9331	# have runtime linking enabled, and use it for executables.
9332	# For shared libraries, we enable/disable runtime linking
9333	# depending on the kind of the shared library created -
9334	# when "with_aix_soname,aix_use_runtimelinking" is:
9335	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9336	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9337	#            lib.a           static archive
9338	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9339	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9340	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9341	#            lib.a(lib.so.V) shared, rtl:no
9342	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9343	#            lib.a           static archive
9344	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9345	  for ld_flag in $LDFLAGS; do
9346	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9347	    aix_use_runtimelinking=yes
9348	    break
9349	  fi
9350	  done
9351	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9352	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9353	    # so we don't have lib.a shared libs to link our executables.
9354	    # We have to force runtime linking in this case.
9355	    aix_use_runtimelinking=yes
9356	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9357	  fi
9358	  ;;
9359	esac
9360
9361	exp_sym_flag='-bexport'
9362	no_entry_flag='-bnoentry'
9363      fi
9364
9365      # When large executables or shared objects are built, AIX ld can
9366      # have problems creating the table of contents.  If linking a library
9367      # or program results in "error TOC overflow" add -mminimal-toc to
9368      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9369      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9370
9371      archive_cmds=''
9372      hardcode_direct=yes
9373      hardcode_direct_absolute=yes
9374      hardcode_libdir_separator=':'
9375      link_all_deplibs=yes
9376      file_list_spec='$wl-f,'
9377      case $with_aix_soname,$aix_use_runtimelinking in
9378      aix,*) ;; # traditional, no import file
9379      svr4,* | *,yes) # use import file
9380	# The Import File defines what to hardcode.
9381	hardcode_direct=no
9382	hardcode_direct_absolute=no
9383	;;
9384      esac
9385
9386      if test yes = "$GCC"; then
9387	case $host_os in aix4.[012]|aix4.[012].*)
9388	# We only want to do this on AIX 4.2 and lower, the check
9389	# below for broken collect2 doesn't work under 4.3+
9390	  collect2name=`$CC -print-prog-name=collect2`
9391	  if test -f "$collect2name" &&
9392	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9393	  then
9394	  # We have reworked collect2
9395	  :
9396	  else
9397	  # We have old collect2
9398	  hardcode_direct=unsupported
9399	  # It fails to find uninstalled libraries when the uninstalled
9400	  # path is not listed in the libpath.  Setting hardcode_minus_L
9401	  # to unsupported forces relinking
9402	  hardcode_minus_L=yes
9403	  hardcode_libdir_flag_spec='-L$libdir'
9404	  hardcode_libdir_separator=
9405	  fi
9406	  ;;
9407	esac
9408	shared_flag='-shared'
9409	if test yes = "$aix_use_runtimelinking"; then
9410	  shared_flag="$shared_flag "'$wl-G'
9411	fi
9412	# Need to ensure runtime linking is disabled for the traditional
9413	# shared library, or the linker may eventually find shared libraries
9414	# /with/ Import File - we do not want to mix them.
9415	shared_flag_aix='-shared'
9416	shared_flag_svr4='-shared $wl-G'
9417      else
9418	# not using gcc
9419	if test ia64 = "$host_cpu"; then
9420	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9421	# chokes on -Wl,-G. The following line is correct:
9422	  shared_flag='-G'
9423	else
9424	  if test yes = "$aix_use_runtimelinking"; then
9425	    shared_flag='$wl-G'
9426	  else
9427	    shared_flag='$wl-bM:SRE'
9428	  fi
9429	  shared_flag_aix='$wl-bM:SRE'
9430	  shared_flag_svr4='$wl-G'
9431	fi
9432      fi
9433
9434      export_dynamic_flag_spec='$wl-bexpall'
9435      # It seems that -bexpall does not export symbols beginning with
9436      # underscore (_), so it is better to generate a list of symbols to export.
9437      always_export_symbols=yes
9438      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9439	# Warning - without using the other runtime loading flags (-brtl),
9440	# -berok will link without error, but may produce a broken library.
9441	allow_undefined_flag='-berok'
9442        # Determine the default libpath from the value encoded in an
9443        # empty executable.
9444        if test set = "${lt_cv_aix_libpath+set}"; then
9445  aix_libpath=$lt_cv_aix_libpath
9446else
9447  if ${lt_cv_aix_libpath_+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452
9453int
9454main ()
9455{
9456
9457  ;
9458  return 0;
9459}
9460_ACEOF
9461if ac_fn_c_try_link "$LINENO"; then :
9462
9463  lt_aix_libpath_sed='
9464      /Import File Strings/,/^$/ {
9465	  /^0/ {
9466	      s/^0  *\([^ ]*\) *$/\1/
9467	      p
9468	  }
9469      }'
9470  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9471  # Check for a 64-bit object if we didn't find anything.
9472  if test -z "$lt_cv_aix_libpath_"; then
9473    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9474  fi
9475fi
9476rm -f core conftest.err conftest.$ac_objext \
9477    conftest$ac_exeext conftest.$ac_ext
9478  if test -z "$lt_cv_aix_libpath_"; then
9479    lt_cv_aix_libpath_=/usr/lib:/lib
9480  fi
9481
9482fi
9483
9484  aix_libpath=$lt_cv_aix_libpath_
9485fi
9486
9487        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9488        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
9489      else
9490	if test ia64 = "$host_cpu"; then
9491	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9492	  allow_undefined_flag="-z nodefs"
9493	  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"
9494	else
9495	 # Determine the default libpath from the value encoded in an
9496	 # empty executable.
9497	 if test set = "${lt_cv_aix_libpath+set}"; then
9498  aix_libpath=$lt_cv_aix_libpath
9499else
9500  if ${lt_cv_aix_libpath_+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505
9506int
9507main ()
9508{
9509
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"; then :
9515
9516  lt_aix_libpath_sed='
9517      /Import File Strings/,/^$/ {
9518	  /^0/ {
9519	      s/^0  *\([^ ]*\) *$/\1/
9520	      p
9521	  }
9522      }'
9523  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524  # Check for a 64-bit object if we didn't find anything.
9525  if test -z "$lt_cv_aix_libpath_"; then
9526    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527  fi
9528fi
9529rm -f core conftest.err conftest.$ac_objext \
9530    conftest$ac_exeext conftest.$ac_ext
9531  if test -z "$lt_cv_aix_libpath_"; then
9532    lt_cv_aix_libpath_=/usr/lib:/lib
9533  fi
9534
9535fi
9536
9537  aix_libpath=$lt_cv_aix_libpath_
9538fi
9539
9540	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9541	  # Warning - without using the other run time loading flags,
9542	  # -berok will link without error, but may produce a broken library.
9543	  no_undefined_flag=' $wl-bernotok'
9544	  allow_undefined_flag=' $wl-berok'
9545	  if test yes = "$with_gnu_ld"; then
9546	    # We only use this code for GNU lds that support --whole-archive.
9547	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9548	  else
9549	    # Exported symbols can be pulled into shared objects from archives
9550	    whole_archive_flag_spec='$convenience'
9551	  fi
9552	  archive_cmds_need_lc=yes
9553	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9554	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9555	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9556	  if test svr4 != "$with_aix_soname"; then
9557	    # This is similar to how AIX traditionally builds its shared libraries.
9558	    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'
9559	  fi
9560	  if test aix != "$with_aix_soname"; then
9561	    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'
9562	  else
9563	    # used by -dlpreopen to get the symbols
9564	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9565	  fi
9566	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9567	fi
9568      fi
9569      ;;
9570
9571    amigaos*)
9572      case $host_cpu in
9573      powerpc)
9574            # see comment about AmigaOS4 .so support
9575            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9576            archive_expsym_cmds=''
9577        ;;
9578      m68k)
9579            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)'
9580            hardcode_libdir_flag_spec='-L$libdir'
9581            hardcode_minus_L=yes
9582        ;;
9583      esac
9584      ;;
9585
9586    bsdi[45]*)
9587      export_dynamic_flag_spec=-rdynamic
9588      ;;
9589
9590    cygwin* | mingw* | pw32* | cegcc*)
9591      # When not using gcc, we currently assume that we are using
9592      # Microsoft Visual C++.
9593      # hardcode_libdir_flag_spec is actually meaningless, as there is
9594      # no search path for DLLs.
9595      case $cc_basename in
9596      cl*)
9597	# Native MSVC
9598	hardcode_libdir_flag_spec=' '
9599	allow_undefined_flag=unsupported
9600	always_export_symbols=yes
9601	file_list_spec='@'
9602	# Tell ltmain to make .lib files, not .a files.
9603	libext=lib
9604	# Tell ltmain to make .dll files, not .so files.
9605	shrext_cmds=.dll
9606	# FIXME: Setting linknames here is a bad hack.
9607	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9608	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9609            cp "$export_symbols" "$output_objdir/$soname.def";
9610            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9611          else
9612            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9613          fi~
9614          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9615          linknames='
9616	# The linker will not automatically build a static lib if we build a DLL.
9617	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9618	enable_shared_with_static_runtimes=yes
9619	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9620	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9621	# Don't use ranlib
9622	old_postinstall_cmds='chmod 644 $oldlib'
9623	postlink_cmds='lt_outputfile="@OUTPUT@"~
9624          lt_tool_outputfile="@TOOL_OUTPUT@"~
9625          case $lt_outputfile in
9626            *.exe|*.EXE) ;;
9627            *)
9628              lt_outputfile=$lt_outputfile.exe
9629              lt_tool_outputfile=$lt_tool_outputfile.exe
9630              ;;
9631          esac~
9632          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9633            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9634            $RM "$lt_outputfile.manifest";
9635          fi'
9636	;;
9637      *)
9638	# Assume MSVC wrapper
9639	hardcode_libdir_flag_spec=' '
9640	allow_undefined_flag=unsupported
9641	# Tell ltmain to make .lib files, not .a files.
9642	libext=lib
9643	# Tell ltmain to make .dll files, not .so files.
9644	shrext_cmds=.dll
9645	# FIXME: Setting linknames here is a bad hack.
9646	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9647	# The linker will automatically build a .lib file if we build a DLL.
9648	old_archive_from_new_cmds='true'
9649	# FIXME: Should let the user specify the lib program.
9650	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9651	enable_shared_with_static_runtimes=yes
9652	;;
9653      esac
9654      ;;
9655
9656    darwin* | rhapsody*)
9657
9658
9659  archive_cmds_need_lc=no
9660  hardcode_direct=no
9661  hardcode_automatic=yes
9662  hardcode_shlibpath_var=unsupported
9663  if test yes = "$lt_cv_ld_force_load"; then
9664    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\"`'
9665
9666  else
9667    whole_archive_flag_spec=''
9668  fi
9669  link_all_deplibs=yes
9670  allow_undefined_flag=$_lt_dar_allow_undefined
9671  case $cc_basename in
9672     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9673     *) _lt_dar_can_shared=$GCC ;;
9674  esac
9675  if test yes = "$_lt_dar_can_shared"; then
9676    output_verbose_link_cmd=func_echo_all
9677    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9678    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9679    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"
9680    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"
9681
9682  else
9683  ld_shlibs=no
9684  fi
9685
9686      ;;
9687
9688    dgux*)
9689      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690      hardcode_libdir_flag_spec='-L$libdir'
9691      hardcode_shlibpath_var=no
9692      ;;
9693
9694    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9695    # support.  Future versions do this automatically, but an explicit c++rt0.o
9696    # does not break anything, and helps significantly (at the cost of a little
9697    # extra space).
9698    freebsd2.2*)
9699      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9700      hardcode_libdir_flag_spec='-R$libdir'
9701      hardcode_direct=yes
9702      hardcode_shlibpath_var=no
9703      ;;
9704
9705    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9706    freebsd2.*)
9707      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9708      hardcode_direct=yes
9709      hardcode_minus_L=yes
9710      hardcode_shlibpath_var=no
9711      ;;
9712
9713    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9714    freebsd* | dragonfly*)
9715      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9716      hardcode_libdir_flag_spec='-R$libdir'
9717      hardcode_direct=yes
9718      hardcode_shlibpath_var=no
9719      ;;
9720
9721    hpux9*)
9722      if test yes = "$GCC"; then
9723	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'
9724      else
9725	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'
9726      fi
9727      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9728      hardcode_libdir_separator=:
9729      hardcode_direct=yes
9730
9731      # hardcode_minus_L: Not really in the search PATH,
9732      # but as the default location of the library.
9733      hardcode_minus_L=yes
9734      export_dynamic_flag_spec='$wl-E'
9735      ;;
9736
9737    hpux10*)
9738      if test yes,no = "$GCC,$with_gnu_ld"; then
9739	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9740      else
9741	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9742      fi
9743      if test no = "$with_gnu_ld"; then
9744	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9745	hardcode_libdir_separator=:
9746	hardcode_direct=yes
9747	hardcode_direct_absolute=yes
9748	export_dynamic_flag_spec='$wl-E'
9749	# hardcode_minus_L: Not really in the search PATH,
9750	# but as the default location of the library.
9751	hardcode_minus_L=yes
9752      fi
9753      ;;
9754
9755    hpux11*)
9756      if test yes,no = "$GCC,$with_gnu_ld"; then
9757	case $host_cpu in
9758	hppa*64*)
9759	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9760	  ;;
9761	ia64*)
9762	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9763	  ;;
9764	*)
9765	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9766	  ;;
9767	esac
9768      else
9769	case $host_cpu in
9770	hppa*64*)
9771	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9772	  ;;
9773	ia64*)
9774	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9775	  ;;
9776	*)
9777
9778	  # Older versions of the 11.00 compiler do not understand -b yet
9779	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9780	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9781$as_echo_n "checking if $CC understands -b... " >&6; }
9782if ${lt_cv_prog_compiler__b+:} false; then :
9783  $as_echo_n "(cached) " >&6
9784else
9785  lt_cv_prog_compiler__b=no
9786   save_LDFLAGS=$LDFLAGS
9787   LDFLAGS="$LDFLAGS -b"
9788   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9789   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9790     # The linker can only warn and ignore the option if not recognized
9791     # So say no if there are warnings
9792     if test -s conftest.err; then
9793       # Append any errors to the config.log.
9794       cat conftest.err 1>&5
9795       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9796       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9797       if diff conftest.exp conftest.er2 >/dev/null; then
9798         lt_cv_prog_compiler__b=yes
9799       fi
9800     else
9801       lt_cv_prog_compiler__b=yes
9802     fi
9803   fi
9804   $RM -r conftest*
9805   LDFLAGS=$save_LDFLAGS
9806
9807fi
9808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9809$as_echo "$lt_cv_prog_compiler__b" >&6; }
9810
9811if test yes = "$lt_cv_prog_compiler__b"; then
9812    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9813else
9814    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9815fi
9816
9817	  ;;
9818	esac
9819      fi
9820      if test no = "$with_gnu_ld"; then
9821	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9822	hardcode_libdir_separator=:
9823
9824	case $host_cpu in
9825	hppa*64*|ia64*)
9826	  hardcode_direct=no
9827	  hardcode_shlibpath_var=no
9828	  ;;
9829	*)
9830	  hardcode_direct=yes
9831	  hardcode_direct_absolute=yes
9832	  export_dynamic_flag_spec='$wl-E'
9833
9834	  # hardcode_minus_L: Not really in the search PATH,
9835	  # but as the default location of the library.
9836	  hardcode_minus_L=yes
9837	  ;;
9838	esac
9839      fi
9840      ;;
9841
9842    irix5* | irix6* | nonstopux*)
9843      if test yes = "$GCC"; then
9844	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'
9845	# Try to use the -exported_symbol ld option, if it does not
9846	# work, assume that -exports_file does not work either and
9847	# implicitly export all symbols.
9848	# This should be the same for all languages, so no per-tag cache variable.
9849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9850$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9851if ${lt_cv_irix_exported_symbol+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  save_LDFLAGS=$LDFLAGS
9855	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9856	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858int foo (void) { return 0; }
9859_ACEOF
9860if ac_fn_c_try_link "$LINENO"; then :
9861  lt_cv_irix_exported_symbol=yes
9862else
9863  lt_cv_irix_exported_symbol=no
9864fi
9865rm -f core conftest.err conftest.$ac_objext \
9866    conftest$ac_exeext conftest.$ac_ext
9867           LDFLAGS=$save_LDFLAGS
9868fi
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9870$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9871	if test yes = "$lt_cv_irix_exported_symbol"; then
9872          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'
9873	fi
9874      else
9875	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'
9876	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'
9877      fi
9878      archive_cmds_need_lc='no'
9879      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880      hardcode_libdir_separator=:
9881      inherit_rpath=yes
9882      link_all_deplibs=yes
9883      ;;
9884
9885    linux*)
9886      case $cc_basename in
9887      tcc*)
9888	# Fabrice Bellard et al's Tiny C Compiler
9889	ld_shlibs=yes
9890	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9891	;;
9892      esac
9893      ;;
9894
9895    netbsd*)
9896      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9897	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9898      else
9899	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9900      fi
9901      hardcode_libdir_flag_spec='-R$libdir'
9902      hardcode_direct=yes
9903      hardcode_shlibpath_var=no
9904      ;;
9905
9906    newsos6)
9907      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908      hardcode_direct=yes
9909      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9910      hardcode_libdir_separator=:
9911      hardcode_shlibpath_var=no
9912      ;;
9913
9914    *nto* | *qnx*)
9915      ;;
9916
9917    openbsd* | bitrig*)
9918      if test -f /usr/libexec/ld.so; then
9919	hardcode_direct=yes
9920	hardcode_shlibpath_var=no
9921	hardcode_direct_absolute=yes
9922	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9923	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9924	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9925	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9926	  export_dynamic_flag_spec='$wl-E'
9927	else
9928	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9930	fi
9931      else
9932	ld_shlibs=no
9933      fi
9934      ;;
9935
9936    os2*)
9937      hardcode_libdir_flag_spec='-L$libdir'
9938      hardcode_minus_L=yes
9939      allow_undefined_flag=unsupported
9940      shrext_cmds=.dll
9941      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9942	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9943	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9944	$ECHO EXPORTS >> $output_objdir/$libname.def~
9945	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9946	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9947	emximp -o $lib $output_objdir/$libname.def'
9948      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9949	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9950	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9951	$ECHO EXPORTS >> $output_objdir/$libname.def~
9952	prefix_cmds="$SED"~
9953	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9954	  prefix_cmds="$prefix_cmds -e 1d";
9955	fi~
9956	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9957	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9958	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9959	emximp -o $lib $output_objdir/$libname.def'
9960      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9961      enable_shared_with_static_runtimes=yes
9962      ;;
9963
9964    osf3*)
9965      if test yes = "$GCC"; then
9966	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9967	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'
9968      else
9969	allow_undefined_flag=' -expect_unresolved \*'
9970	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'
9971      fi
9972      archive_cmds_need_lc='no'
9973      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9974      hardcode_libdir_separator=:
9975      ;;
9976
9977    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9978      if test yes = "$GCC"; then
9979	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9980	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'
9981	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9982      else
9983	allow_undefined_flag=' -expect_unresolved \*'
9984	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'
9985	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~
9986          $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'
9987
9988	# Both c and cxx compiler support -rpath directly
9989	hardcode_libdir_flag_spec='-rpath $libdir'
9990      fi
9991      archive_cmds_need_lc='no'
9992      hardcode_libdir_separator=:
9993      ;;
9994
9995    solaris*)
9996      no_undefined_flag=' -z defs'
9997      if test yes = "$GCC"; then
9998	wlarc='$wl'
9999	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10000	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001          $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'
10002      else
10003	case `$CC -V 2>&1` in
10004	*"Compilers 5.0"*)
10005	  wlarc=''
10006	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10009	  ;;
10010	*)
10011	  wlarc='$wl'
10012	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10013	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10014            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10015	  ;;
10016	esac
10017      fi
10018      hardcode_libdir_flag_spec='-R$libdir'
10019      hardcode_shlibpath_var=no
10020      case $host_os in
10021      solaris2.[0-5] | solaris2.[0-5].*) ;;
10022      *)
10023	# The compiler driver will combine and reorder linker options,
10024	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10025	# but is careful enough not to reorder.
10026	# Supported since Solaris 2.6 (maybe 2.5.1?)
10027	if test yes = "$GCC"; then
10028	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10029	else
10030	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10031	fi
10032	;;
10033      esac
10034      link_all_deplibs=yes
10035      ;;
10036
10037    sunos4*)
10038      if test sequent = "$host_vendor"; then
10039	# Use $CC to link under sequent, because it throws in some extra .o
10040	# files that make .init and .fini sections work.
10041	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10042      else
10043	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10044      fi
10045      hardcode_libdir_flag_spec='-L$libdir'
10046      hardcode_direct=yes
10047      hardcode_minus_L=yes
10048      hardcode_shlibpath_var=no
10049      ;;
10050
10051    sysv4)
10052      case $host_vendor in
10053	sni)
10054	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055	  hardcode_direct=yes # is this really true???
10056	;;
10057	siemens)
10058	  ## LD is ld it makes a PLAMLIB
10059	  ## CC just makes a GrossModule.
10060	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10061	  reload_cmds='$CC -r -o $output$reload_objs'
10062	  hardcode_direct=no
10063        ;;
10064	motorola)
10065	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10067	;;
10068      esac
10069      runpath_var='LD_RUN_PATH'
10070      hardcode_shlibpath_var=no
10071      ;;
10072
10073    sysv4.3*)
10074      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075      hardcode_shlibpath_var=no
10076      export_dynamic_flag_spec='-Bexport'
10077      ;;
10078
10079    sysv4*MP*)
10080      if test -d /usr/nec; then
10081	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082	hardcode_shlibpath_var=no
10083	runpath_var=LD_RUN_PATH
10084	hardcode_runpath_var=yes
10085	ld_shlibs=yes
10086      fi
10087      ;;
10088
10089    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10090      no_undefined_flag='$wl-z,text'
10091      archive_cmds_need_lc=no
10092      hardcode_shlibpath_var=no
10093      runpath_var='LD_RUN_PATH'
10094
10095      if test yes = "$GCC"; then
10096	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098      else
10099	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101      fi
10102      ;;
10103
10104    sysv5* | sco3.2v5* | sco5v6*)
10105      # Note: We CANNOT use -z defs as we might desire, because we do not
10106      # link with -lc, and that would cause any symbols used from libc to
10107      # always be unresolved, which means just about no library would
10108      # ever link correctly.  If we're not using GNU ld we use -z text
10109      # though, which does catch some bad symbols but isn't as heavy-handed
10110      # as -z defs.
10111      no_undefined_flag='$wl-z,text'
10112      allow_undefined_flag='$wl-z,nodefs'
10113      archive_cmds_need_lc=no
10114      hardcode_shlibpath_var=no
10115      hardcode_libdir_flag_spec='$wl-R,$libdir'
10116      hardcode_libdir_separator=':'
10117      link_all_deplibs=yes
10118      export_dynamic_flag_spec='$wl-Bexport'
10119      runpath_var='LD_RUN_PATH'
10120
10121      if test yes = "$GCC"; then
10122	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124      else
10125	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127      fi
10128      ;;
10129
10130    uts4*)
10131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132      hardcode_libdir_flag_spec='-L$libdir'
10133      hardcode_shlibpath_var=no
10134      ;;
10135
10136    *)
10137      ld_shlibs=no
10138      ;;
10139    esac
10140
10141    if test sni = "$host_vendor"; then
10142      case $host in
10143      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10144	export_dynamic_flag_spec='$wl-Blargedynsym'
10145	;;
10146      esac
10147    fi
10148  fi
10149
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10151$as_echo "$ld_shlibs" >&6; }
10152test no = "$ld_shlibs" && can_build_shared=no
10153
10154with_gnu_ld=$with_gnu_ld
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170#
10171# Do we need to explicitly link libc?
10172#
10173case "x$archive_cmds_need_lc" in
10174x|xyes)
10175  # Assume -lc should be added
10176  archive_cmds_need_lc=yes
10177
10178  if test yes,yes = "$GCC,$enable_shared"; then
10179    case $archive_cmds in
10180    *'~'*)
10181      # FIXME: we may have to deal with multi-command sequences.
10182      ;;
10183    '$CC '*)
10184      # Test whether the compiler implicitly links with -lc since on some
10185      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10186      # to ld, don't add -lc before -lgcc.
10187      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10188$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10189if ${lt_cv_archive_cmds_need_lc+:} false; then :
10190  $as_echo_n "(cached) " >&6
10191else
10192  $RM conftest*
10193	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10194
10195	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10196  (eval $ac_compile) 2>&5
10197  ac_status=$?
10198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199  test $ac_status = 0; } 2>conftest.err; then
10200	  soname=conftest
10201	  lib=conftest
10202	  libobjs=conftest.$ac_objext
10203	  deplibs=
10204	  wl=$lt_prog_compiler_wl
10205	  pic_flag=$lt_prog_compiler_pic
10206	  compiler_flags=-v
10207	  linker_flags=-v
10208	  verstring=
10209	  output_objdir=.
10210	  libname=conftest
10211	  lt_save_allow_undefined_flag=$allow_undefined_flag
10212	  allow_undefined_flag=
10213	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10214  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10215  ac_status=$?
10216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10217  test $ac_status = 0; }
10218	  then
10219	    lt_cv_archive_cmds_need_lc=no
10220	  else
10221	    lt_cv_archive_cmds_need_lc=yes
10222	  fi
10223	  allow_undefined_flag=$lt_save_allow_undefined_flag
10224	else
10225	  cat conftest.err 1>&5
10226	fi
10227	$RM conftest*
10228
10229fi
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10231$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10232      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10233      ;;
10234    esac
10235  fi
10236  ;;
10237esac
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10391$as_echo_n "checking dynamic linker characteristics... " >&6; }
10392
10393if test yes = "$GCC"; then
10394  case $host_os in
10395    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10396    *) lt_awk_arg='/^libraries:/' ;;
10397  esac
10398  case $host_os in
10399    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10400    *) lt_sed_strip_eq='s|=/|/|g' ;;
10401  esac
10402  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10403  case $lt_search_path_spec in
10404  *\;*)
10405    # if the path contains ";" then we assume it to be the separator
10406    # otherwise default to the standard path separator (i.e. ":") - it is
10407    # assumed that no part of a normal pathname contains ";" but that should
10408    # okay in the real world where ";" in dirpaths is itself problematic.
10409    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10410    ;;
10411  *)
10412    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10413    ;;
10414  esac
10415  # Ok, now we have the path, separated by spaces, we can step through it
10416  # and add multilib dir if necessary...
10417  lt_tmp_lt_search_path_spec=
10418  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10419  # ...but if some path component already ends with the multilib dir we assume
10420  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10421  case "$lt_multi_os_dir; $lt_search_path_spec " in
10422  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10423    lt_multi_os_dir=
10424    ;;
10425  esac
10426  for lt_sys_path in $lt_search_path_spec; do
10427    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10428      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10429    elif test -n "$lt_multi_os_dir"; then
10430      test -d "$lt_sys_path" && \
10431	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10432    fi
10433  done
10434  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10435BEGIN {RS = " "; FS = "/|\n";} {
10436  lt_foo = "";
10437  lt_count = 0;
10438  for (lt_i = NF; lt_i > 0; lt_i--) {
10439    if ($lt_i != "" && $lt_i != ".") {
10440      if ($lt_i == "..") {
10441        lt_count++;
10442      } else {
10443        if (lt_count == 0) {
10444          lt_foo = "/" $lt_i lt_foo;
10445        } else {
10446          lt_count--;
10447        }
10448      }
10449    }
10450  }
10451  if (lt_foo != "") { lt_freq[lt_foo]++; }
10452  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10453}'`
10454  # AWK program above erroneously prepends '/' to C:/dos/paths
10455  # for these hosts.
10456  case $host_os in
10457    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10458      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10459  esac
10460  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10461else
10462  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10463fi
10464library_names_spec=
10465libname_spec='lib$name'
10466soname_spec=
10467shrext_cmds=.so
10468postinstall_cmds=
10469postuninstall_cmds=
10470finish_cmds=
10471finish_eval=
10472shlibpath_var=
10473shlibpath_overrides_runpath=unknown
10474version_type=none
10475dynamic_linker="$host_os ld.so"
10476sys_lib_dlsearch_path_spec="/lib /usr/lib"
10477need_lib_prefix=unknown
10478hardcode_into_libs=no
10479
10480# when you set need_version to no, make sure it does not cause -set_version
10481# flags to be left without arguments
10482need_version=unknown
10483
10484case $host_os in
10485aix3*)
10486  version_type=linux # correct to gnu/linux during the next big refactor
10487  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10488  shlibpath_var=LIBPATH
10489
10490  # AIX 3 has no versioning support, so we append a major version to the name.
10491  soname_spec='$libname$release$shared_ext$major'
10492  ;;
10493
10494aix[4-9]*)
10495  version_type=linux # correct to gnu/linux during the next big refactor
10496  need_lib_prefix=no
10497  need_version=no
10498  hardcode_into_libs=yes
10499  if test ia64 = "$host_cpu"; then
10500    # AIX 5 supports IA64
10501    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10502    shlibpath_var=LD_LIBRARY_PATH
10503  else
10504    # With GCC up to 2.95.x, collect2 would create an import file
10505    # for dependence libraries.  The import file would start with
10506    # the line '#! .'.  This would cause the generated library to
10507    # depend on '.', always an invalid library.  This was fixed in
10508    # development snapshots of GCC prior to 3.0.
10509    case $host_os in
10510      aix4 | aix4.[01] | aix4.[01].*)
10511      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10512	   echo ' yes '
10513	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10514	:
10515      else
10516	can_build_shared=no
10517      fi
10518      ;;
10519    esac
10520    # Using Import Files as archive members, it is possible to support
10521    # filename-based versioning of shared library archives on AIX. While
10522    # this would work for both with and without runtime linking, it will
10523    # prevent static linking of such archives. So we do filename-based
10524    # shared library versioning with .so extension only, which is used
10525    # when both runtime linking and shared linking is enabled.
10526    # Unfortunately, runtime linking may impact performance, so we do
10527    # not want this to be the default eventually. Also, we use the
10528    # versioned .so libs for executables only if there is the -brtl
10529    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10530    # To allow for filename-based versioning support, we need to create
10531    # libNAME.so.V as an archive file, containing:
10532    # *) an Import File, referring to the versioned filename of the
10533    #    archive as well as the shared archive member, telling the
10534    #    bitwidth (32 or 64) of that shared object, and providing the
10535    #    list of exported symbols of that shared object, eventually
10536    #    decorated with the 'weak' keyword
10537    # *) the shared object with the F_LOADONLY flag set, to really avoid
10538    #    it being seen by the linker.
10539    # At run time we better use the real file rather than another symlink,
10540    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10541
10542    case $with_aix_soname,$aix_use_runtimelinking in
10543    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10544    # soname into executable. Probably we can add versioning support to
10545    # collect2, so additional links can be useful in future.
10546    aix,yes) # traditional libtool
10547      dynamic_linker='AIX unversionable lib.so'
10548      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10549      # instead of lib<name>.a to let people know that these are not
10550      # typical AIX shared libraries.
10551      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10552      ;;
10553    aix,no) # traditional AIX only
10554      dynamic_linker='AIX lib.a(lib.so.V)'
10555      # We preserve .a as extension for shared libraries through AIX4.2
10556      # and later when we are not doing run time linking.
10557      library_names_spec='$libname$release.a $libname.a'
10558      soname_spec='$libname$release$shared_ext$major'
10559      ;;
10560    svr4,*) # full svr4 only
10561      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10562      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10563      # We do not specify a path in Import Files, so LIBPATH fires.
10564      shlibpath_overrides_runpath=yes
10565      ;;
10566    *,yes) # both, prefer svr4
10567      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10568      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10569      # unpreferred sharedlib libNAME.a needs extra handling
10570      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"'
10571      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"'
10572      # We do not specify a path in Import Files, so LIBPATH fires.
10573      shlibpath_overrides_runpath=yes
10574      ;;
10575    *,no) # both, prefer aix
10576      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10577      library_names_spec='$libname$release.a $libname.a'
10578      soname_spec='$libname$release$shared_ext$major'
10579      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10580      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)'
10581      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"'
10582      ;;
10583    esac
10584    shlibpath_var=LIBPATH
10585  fi
10586  ;;
10587
10588amigaos*)
10589  case $host_cpu in
10590  powerpc)
10591    # Since July 2007 AmigaOS4 officially supports .so libraries.
10592    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10593    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10594    ;;
10595  m68k)
10596    library_names_spec='$libname.ixlibrary $libname.a'
10597    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10598    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'
10599    ;;
10600  esac
10601  ;;
10602
10603beos*)
10604  library_names_spec='$libname$shared_ext'
10605  dynamic_linker="$host_os ld.so"
10606  shlibpath_var=LIBRARY_PATH
10607  ;;
10608
10609bsdi[45]*)
10610  version_type=linux # correct to gnu/linux during the next big refactor
10611  need_version=no
10612  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10613  soname_spec='$libname$release$shared_ext$major'
10614  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10615  shlibpath_var=LD_LIBRARY_PATH
10616  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10617  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10618  # the default ld.so.conf also contains /usr/contrib/lib and
10619  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10620  # libtool to hard-code these into programs
10621  ;;
10622
10623cygwin* | mingw* | pw32* | cegcc*)
10624  version_type=windows
10625  shrext_cmds=.dll
10626  need_version=no
10627  need_lib_prefix=no
10628
10629  case $GCC,$cc_basename in
10630  yes,*)
10631    # gcc
10632    library_names_spec='$libname.dll.a'
10633    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10634    postinstall_cmds='base_file=`basename \$file`~
10635      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10636      dldir=$destdir/`dirname \$dlpath`~
10637      test -d \$dldir || mkdir -p \$dldir~
10638      $install_prog $dir/$dlname \$dldir/$dlname~
10639      chmod a+x \$dldir/$dlname~
10640      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10641        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10642      fi'
10643    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10644      dlpath=$dir/\$dldll~
10645       $RM \$dlpath'
10646    shlibpath_overrides_runpath=yes
10647
10648    case $host_os in
10649    cygwin*)
10650      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10651      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10652
10653      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10654      ;;
10655    mingw* | cegcc*)
10656      # MinGW DLLs use traditional 'lib' prefix
10657      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10658      ;;
10659    pw32*)
10660      # pw32 DLLs use 'pw' prefix rather than 'lib'
10661      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10662      ;;
10663    esac
10664    dynamic_linker='Win32 ld.exe'
10665    ;;
10666
10667  *,cl*)
10668    # Native MSVC
10669    libname_spec='$name'
10670    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10671    library_names_spec='$libname.dll.lib'
10672
10673    case $build_os in
10674    mingw*)
10675      sys_lib_search_path_spec=
10676      lt_save_ifs=$IFS
10677      IFS=';'
10678      for lt_path in $LIB
10679      do
10680        IFS=$lt_save_ifs
10681        # Let DOS variable expansion print the short 8.3 style file name.
10682        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10683        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10684      done
10685      IFS=$lt_save_ifs
10686      # Convert to MSYS style.
10687      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10688      ;;
10689    cygwin*)
10690      # Convert to unix form, then to dos form, then back to unix form
10691      # but this time dos style (no spaces!) so that the unix form looks
10692      # like /cygdrive/c/PROGRA~1:/cygdr...
10693      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10694      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10695      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10696      ;;
10697    *)
10698      sys_lib_search_path_spec=$LIB
10699      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10700        # It is most probably a Windows format PATH.
10701        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10702      else
10703        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10704      fi
10705      # FIXME: find the short name or the path components, as spaces are
10706      # common. (e.g. "Program Files" -> "PROGRA~1")
10707      ;;
10708    esac
10709
10710    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10711    postinstall_cmds='base_file=`basename \$file`~
10712      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10713      dldir=$destdir/`dirname \$dlpath`~
10714      test -d \$dldir || mkdir -p \$dldir~
10715      $install_prog $dir/$dlname \$dldir/$dlname'
10716    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10717      dlpath=$dir/\$dldll~
10718       $RM \$dlpath'
10719    shlibpath_overrides_runpath=yes
10720    dynamic_linker='Win32 link.exe'
10721    ;;
10722
10723  *)
10724    # Assume MSVC wrapper
10725    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10726    dynamic_linker='Win32 ld.exe'
10727    ;;
10728  esac
10729  # FIXME: first we should search . and the directory the executable is in
10730  shlibpath_var=PATH
10731  ;;
10732
10733darwin* | rhapsody*)
10734  dynamic_linker="$host_os dyld"
10735  version_type=darwin
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10739  soname_spec='$libname$release$major$shared_ext'
10740  shlibpath_overrides_runpath=yes
10741  shlibpath_var=DYLD_LIBRARY_PATH
10742  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10743
10744  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10745  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10746  ;;
10747
10748dgux*)
10749  version_type=linux # correct to gnu/linux during the next big refactor
10750  need_lib_prefix=no
10751  need_version=no
10752  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10753  soname_spec='$libname$release$shared_ext$major'
10754  shlibpath_var=LD_LIBRARY_PATH
10755  ;;
10756
10757freebsd* | dragonfly*)
10758  # DragonFly does not have aout.  When/if they implement a new
10759  # versioning mechanism, adjust this.
10760  if test -x /usr/bin/objformat; then
10761    objformat=`/usr/bin/objformat`
10762  else
10763    case $host_os in
10764    freebsd[23].*) objformat=aout ;;
10765    *) objformat=elf ;;
10766    esac
10767  fi
10768  version_type=freebsd-$objformat
10769  case $version_type in
10770    freebsd-elf*)
10771      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10772      need_version=no
10773      need_lib_prefix=no
10774      ;;
10775    freebsd-*)
10776      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10777      need_version=yes
10778      ;;
10779  esac
10780  shlibpath_var=LD_LIBRARY_PATH
10781  case $host_os in
10782  freebsd2.*)
10783    shlibpath_overrides_runpath=yes
10784    ;;
10785  freebsd3.[01]* | freebsdelf3.[01]*)
10786    shlibpath_overrides_runpath=yes
10787    hardcode_into_libs=yes
10788    ;;
10789  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10790  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10791    shlibpath_overrides_runpath=no
10792    hardcode_into_libs=yes
10793    ;;
10794  *) # from 4.6 on, and DragonFly
10795    shlibpath_overrides_runpath=yes
10796    hardcode_into_libs=yes
10797    ;;
10798  esac
10799  ;;
10800
10801haiku*)
10802  version_type=linux # correct to gnu/linux during the next big refactor
10803  need_lib_prefix=no
10804  need_version=no
10805  dynamic_linker="$host_os runtime_loader"
10806  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10807  soname_spec='$libname$release$shared_ext$major'
10808  shlibpath_var=LIBRARY_PATH
10809  shlibpath_overrides_runpath=no
10810  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10811  hardcode_into_libs=yes
10812  ;;
10813
10814hpux9* | hpux10* | hpux11*)
10815  # Give a soname corresponding to the major version so that dld.sl refuses to
10816  # link against other versions.
10817  version_type=sunos
10818  need_lib_prefix=no
10819  need_version=no
10820  case $host_cpu in
10821  ia64*)
10822    shrext_cmds='.so'
10823    hardcode_into_libs=yes
10824    dynamic_linker="$host_os dld.so"
10825    shlibpath_var=LD_LIBRARY_PATH
10826    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10827    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10828    soname_spec='$libname$release$shared_ext$major'
10829    if test 32 = "$HPUX_IA64_MODE"; then
10830      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10831    else
10832      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10833    fi
10834    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10835    ;;
10836  hppa*64*)
10837    shrext_cmds='.sl'
10838    hardcode_into_libs=yes
10839    dynamic_linker="$host_os dld.sl"
10840    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10841    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10842    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10843    soname_spec='$libname$release$shared_ext$major'
10844    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10845    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10846    ;;
10847  *)
10848    shrext_cmds='.sl'
10849    dynamic_linker="$host_os dld.sl"
10850    shlibpath_var=SHLIB_PATH
10851    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10852    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10853    soname_spec='$libname$release$shared_ext$major'
10854    ;;
10855  esac
10856  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10857  postinstall_cmds='chmod 555 $lib'
10858  # or fails outright, so override atomically:
10859  install_override_mode=555
10860  ;;
10861
10862interix[3-9]*)
10863  version_type=linux # correct to gnu/linux during the next big refactor
10864  need_lib_prefix=no
10865  need_version=no
10866  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867  soname_spec='$libname$release$shared_ext$major'
10868  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10869  shlibpath_var=LD_LIBRARY_PATH
10870  shlibpath_overrides_runpath=no
10871  hardcode_into_libs=yes
10872  ;;
10873
10874irix5* | irix6* | nonstopux*)
10875  case $host_os in
10876    nonstopux*) version_type=nonstopux ;;
10877    *)
10878	if test yes = "$lt_cv_prog_gnu_ld"; then
10879		version_type=linux # correct to gnu/linux during the next big refactor
10880	else
10881		version_type=irix
10882	fi ;;
10883  esac
10884  need_lib_prefix=no
10885  need_version=no
10886  soname_spec='$libname$release$shared_ext$major'
10887  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10888  case $host_os in
10889  irix5* | nonstopux*)
10890    libsuff= shlibsuff=
10891    ;;
10892  *)
10893    case $LD in # libtool.m4 will add one of these switches to LD
10894    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10895      libsuff= shlibsuff= libmagic=32-bit;;
10896    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10897      libsuff=32 shlibsuff=N32 libmagic=N32;;
10898    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10899      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10900    *) libsuff= shlibsuff= libmagic=never-match;;
10901    esac
10902    ;;
10903  esac
10904  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10905  shlibpath_overrides_runpath=no
10906  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10907  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10908  hardcode_into_libs=yes
10909  ;;
10910
10911# No shared lib support for Linux oldld, aout, or coff.
10912linux*oldld* | linux*aout* | linux*coff*)
10913  dynamic_linker=no
10914  ;;
10915
10916linux*android*)
10917  version_type=none # Android doesn't support versioned libraries.
10918  need_lib_prefix=no
10919  need_version=no
10920  library_names_spec='$libname$release$shared_ext'
10921  soname_spec='$libname$release$shared_ext'
10922  finish_cmds=
10923  shlibpath_var=LD_LIBRARY_PATH
10924  shlibpath_overrides_runpath=yes
10925
10926  # This implies no fast_install, which is unacceptable.
10927  # Some rework will be needed to allow for fast_install
10928  # before this can be enabled.
10929  hardcode_into_libs=yes
10930
10931  dynamic_linker='Android linker'
10932  # Don't embed -rpath directories since the linker doesn't support them.
10933  hardcode_libdir_flag_spec='-L$libdir'
10934  ;;
10935
10936# This must be glibc/ELF.
10937linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10938  version_type=linux # correct to gnu/linux during the next big refactor
10939  need_lib_prefix=no
10940  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10944  shlibpath_var=LD_LIBRARY_PATH
10945  shlibpath_overrides_runpath=no
10946
10947  # Some binutils ld are patched to set DT_RUNPATH
10948  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10949  $as_echo_n "(cached) " >&6
10950else
10951  lt_cv_shlibpath_overrides_runpath=no
10952    save_LDFLAGS=$LDFLAGS
10953    save_libdir=$libdir
10954    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10955	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10956    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958
10959int
10960main ()
10961{
10962
10963  ;
10964  return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10969  lt_cv_shlibpath_overrides_runpath=yes
10970fi
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973    conftest$ac_exeext conftest.$ac_ext
10974    LDFLAGS=$save_LDFLAGS
10975    libdir=$save_libdir
10976
10977fi
10978
10979  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10980
10981  # This implies no fast_install, which is unacceptable.
10982  # Some rework will be needed to allow for fast_install
10983  # before this can be enabled.
10984  hardcode_into_libs=yes
10985
10986  # Append ld.so.conf contents to the search path
10987  if test -f /etc/ld.so.conf; then
10988    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' ' '`
10989    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10990  fi
10991
10992  # We used to test for /lib/ld.so.1 and disable shared libraries on
10993  # powerpc, because MkLinux only supported shared libraries with the
10994  # GNU dynamic linker.  Since this was broken with cross compilers,
10995  # most powerpc-linux boxes support dynamic linking these days and
10996  # people can always --disable-shared, the test was removed, and we
10997  # assume the GNU/Linux dynamic linker is in use.
10998  dynamic_linker='GNU/Linux ld.so'
10999  ;;
11000
11001netbsd*)
11002  version_type=sunos
11003  need_lib_prefix=no
11004  need_version=no
11005  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11006    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11007    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008    dynamic_linker='NetBSD (a.out) ld.so'
11009  else
11010    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11011    soname_spec='$libname$release$shared_ext$major'
11012    dynamic_linker='NetBSD ld.elf_so'
11013  fi
11014  shlibpath_var=LD_LIBRARY_PATH
11015  shlibpath_overrides_runpath=yes
11016  hardcode_into_libs=yes
11017  ;;
11018
11019newsos6)
11020  version_type=linux # correct to gnu/linux during the next big refactor
11021  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022  shlibpath_var=LD_LIBRARY_PATH
11023  shlibpath_overrides_runpath=yes
11024  ;;
11025
11026*nto* | *qnx*)
11027  version_type=qnx
11028  need_lib_prefix=no
11029  need_version=no
11030  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11031  soname_spec='$libname$release$shared_ext$major'
11032  shlibpath_var=LD_LIBRARY_PATH
11033  shlibpath_overrides_runpath=no
11034  hardcode_into_libs=yes
11035  dynamic_linker='ldqnx.so'
11036  ;;
11037
11038openbsd* | bitrig*)
11039  version_type=sunos
11040  sys_lib_dlsearch_path_spec=/usr/lib
11041  need_lib_prefix=no
11042  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11043    need_version=no
11044  else
11045    need_version=yes
11046  fi
11047  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11048  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049  shlibpath_var=LD_LIBRARY_PATH
11050  shlibpath_overrides_runpath=yes
11051  ;;
11052
11053os2*)
11054  libname_spec='$name'
11055  version_type=windows
11056  shrext_cmds=.dll
11057  need_version=no
11058  need_lib_prefix=no
11059  # OS/2 can only load a DLL with a base name of 8 characters or less.
11060  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11061    v=$($ECHO $release$versuffix | tr -d .-);
11062    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11063    $ECHO $n$v`$shared_ext'
11064  library_names_spec='${libname}_dll.$libext'
11065  dynamic_linker='OS/2 ld.exe'
11066  shlibpath_var=BEGINLIBPATH
11067  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11068  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11069  postinstall_cmds='base_file=`basename \$file`~
11070    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11071    dldir=$destdir/`dirname \$dlpath`~
11072    test -d \$dldir || mkdir -p \$dldir~
11073    $install_prog $dir/$dlname \$dldir/$dlname~
11074    chmod a+x \$dldir/$dlname~
11075    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11076      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11077    fi'
11078  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11079    dlpath=$dir/\$dldll~
11080    $RM \$dlpath'
11081  ;;
11082
11083osf3* | osf4* | osf5*)
11084  version_type=osf
11085  need_lib_prefix=no
11086  need_version=no
11087  soname_spec='$libname$release$shared_ext$major'
11088  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089  shlibpath_var=LD_LIBRARY_PATH
11090  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11091  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11092  ;;
11093
11094rdos*)
11095  dynamic_linker=no
11096  ;;
11097
11098solaris*)
11099  version_type=linux # correct to gnu/linux during the next big refactor
11100  need_lib_prefix=no
11101  need_version=no
11102  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103  soname_spec='$libname$release$shared_ext$major'
11104  shlibpath_var=LD_LIBRARY_PATH
11105  shlibpath_overrides_runpath=yes
11106  hardcode_into_libs=yes
11107  # ldd complains unless libraries are executable
11108  postinstall_cmds='chmod +x $lib'
11109  ;;
11110
11111sunos4*)
11112  version_type=sunos
11113  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11114  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11115  shlibpath_var=LD_LIBRARY_PATH
11116  shlibpath_overrides_runpath=yes
11117  if test yes = "$with_gnu_ld"; then
11118    need_lib_prefix=no
11119  fi
11120  need_version=yes
11121  ;;
11122
11123sysv4 | sysv4.3*)
11124  version_type=linux # correct to gnu/linux during the next big refactor
11125  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126  soname_spec='$libname$release$shared_ext$major'
11127  shlibpath_var=LD_LIBRARY_PATH
11128  case $host_vendor in
11129    sni)
11130      shlibpath_overrides_runpath=no
11131      need_lib_prefix=no
11132      runpath_var=LD_RUN_PATH
11133      ;;
11134    siemens)
11135      need_lib_prefix=no
11136      ;;
11137    motorola)
11138      need_lib_prefix=no
11139      need_version=no
11140      shlibpath_overrides_runpath=no
11141      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11142      ;;
11143  esac
11144  ;;
11145
11146sysv4*MP*)
11147  if test -d /usr/nec; then
11148    version_type=linux # correct to gnu/linux during the next big refactor
11149    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11150    soname_spec='$libname$shared_ext.$major'
11151    shlibpath_var=LD_LIBRARY_PATH
11152  fi
11153  ;;
11154
11155sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11156  version_type=sco
11157  need_lib_prefix=no
11158  need_version=no
11159  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11160  soname_spec='$libname$release$shared_ext$major'
11161  shlibpath_var=LD_LIBRARY_PATH
11162  shlibpath_overrides_runpath=yes
11163  hardcode_into_libs=yes
11164  if test yes = "$with_gnu_ld"; then
11165    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11166  else
11167    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11168    case $host_os in
11169      sco3.2v5*)
11170        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11171	;;
11172    esac
11173  fi
11174  sys_lib_dlsearch_path_spec='/usr/lib'
11175  ;;
11176
11177tpf*)
11178  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11179  version_type=linux # correct to gnu/linux during the next big refactor
11180  need_lib_prefix=no
11181  need_version=no
11182  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183  shlibpath_var=LD_LIBRARY_PATH
11184  shlibpath_overrides_runpath=no
11185  hardcode_into_libs=yes
11186  ;;
11187
11188uts4*)
11189  version_type=linux # correct to gnu/linux during the next big refactor
11190  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191  soname_spec='$libname$release$shared_ext$major'
11192  shlibpath_var=LD_LIBRARY_PATH
11193  ;;
11194
11195*)
11196  dynamic_linker=no
11197  ;;
11198esac
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11200$as_echo "$dynamic_linker" >&6; }
11201test no = "$dynamic_linker" && can_build_shared=no
11202
11203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11204if test yes = "$GCC"; then
11205  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11206fi
11207
11208if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11209  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11210fi
11211if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11212  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11213fi
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11307$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11308hardcode_action=
11309if test -n "$hardcode_libdir_flag_spec" ||
11310   test -n "$runpath_var" ||
11311   test yes = "$hardcode_automatic"; then
11312
11313  # We can hardcode non-existent directories.
11314  if test no != "$hardcode_direct" &&
11315     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11316     # have to relink, otherwise we might link with an installed library
11317     # when we should be linking with a yet-to-be-installed one
11318     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11319     test no != "$hardcode_minus_L"; then
11320    # Linking always hardcodes the temporary library directory.
11321    hardcode_action=relink
11322  else
11323    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11324    hardcode_action=immediate
11325  fi
11326else
11327  # We cannot hardcode anything, or else we can only hardcode existing
11328  # directories.
11329  hardcode_action=unsupported
11330fi
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11332$as_echo "$hardcode_action" >&6; }
11333
11334if test relink = "$hardcode_action" ||
11335   test yes = "$inherit_rpath"; then
11336  # Fast installation is not supported
11337  enable_fast_install=no
11338elif test yes = "$shlibpath_overrides_runpath" ||
11339     test no = "$enable_shared"; then
11340  # Fast installation is not necessary
11341  enable_fast_install=needless
11342fi
11343
11344
11345
11346
11347
11348
11349  if test yes != "$enable_dlopen"; then
11350  enable_dlopen=unknown
11351  enable_dlopen_self=unknown
11352  enable_dlopen_self_static=unknown
11353else
11354  lt_cv_dlopen=no
11355  lt_cv_dlopen_libs=
11356
11357  case $host_os in
11358  beos*)
11359    lt_cv_dlopen=load_add_on
11360    lt_cv_dlopen_libs=
11361    lt_cv_dlopen_self=yes
11362    ;;
11363
11364  mingw* | pw32* | cegcc*)
11365    lt_cv_dlopen=LoadLibrary
11366    lt_cv_dlopen_libs=
11367    ;;
11368
11369  cygwin*)
11370    lt_cv_dlopen=dlopen
11371    lt_cv_dlopen_libs=
11372    ;;
11373
11374  darwin*)
11375    # if libdl is installed we need to link against it
11376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11377$as_echo_n "checking for dlopen in -ldl... " >&6; }
11378if ${ac_cv_lib_dl_dlopen+:} false; then :
11379  $as_echo_n "(cached) " >&6
11380else
11381  ac_check_lib_save_LIBS=$LIBS
11382LIBS="-ldl  $LIBS"
11383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384/* end confdefs.h.  */
11385
11386/* Override any GCC internal prototype to avoid an error.
11387   Use char because int might match the return type of a GCC
11388   builtin and then its argument prototype would still apply.  */
11389#ifdef __cplusplus
11390extern "C"
11391#endif
11392char dlopen ();
11393int
11394main ()
11395{
11396return dlopen ();
11397  ;
11398  return 0;
11399}
11400_ACEOF
11401if ac_fn_c_try_link "$LINENO"; then :
11402  ac_cv_lib_dl_dlopen=yes
11403else
11404  ac_cv_lib_dl_dlopen=no
11405fi
11406rm -f core conftest.err conftest.$ac_objext \
11407    conftest$ac_exeext conftest.$ac_ext
11408LIBS=$ac_check_lib_save_LIBS
11409fi
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11411$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11412if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11413  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11414else
11415
11416    lt_cv_dlopen=dyld
11417    lt_cv_dlopen_libs=
11418    lt_cv_dlopen_self=yes
11419
11420fi
11421
11422    ;;
11423
11424  tpf*)
11425    # Don't try to run any link tests for TPF.  We know it's impossible
11426    # because TPF is a cross-compiler, and we know how we open DSOs.
11427    lt_cv_dlopen=dlopen
11428    lt_cv_dlopen_libs=
11429    lt_cv_dlopen_self=no
11430    ;;
11431
11432  *)
11433    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11434if test "x$ac_cv_func_shl_load" = xyes; then :
11435  lt_cv_dlopen=shl_load
11436else
11437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11438$as_echo_n "checking for shl_load in -ldld... " >&6; }
11439if ${ac_cv_lib_dld_shl_load+:} false; then :
11440  $as_echo_n "(cached) " >&6
11441else
11442  ac_check_lib_save_LIBS=$LIBS
11443LIBS="-ldld  $LIBS"
11444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445/* end confdefs.h.  */
11446
11447/* Override any GCC internal prototype to avoid an error.
11448   Use char because int might match the return type of a GCC
11449   builtin and then its argument prototype would still apply.  */
11450#ifdef __cplusplus
11451extern "C"
11452#endif
11453char shl_load ();
11454int
11455main ()
11456{
11457return shl_load ();
11458  ;
11459  return 0;
11460}
11461_ACEOF
11462if ac_fn_c_try_link "$LINENO"; then :
11463  ac_cv_lib_dld_shl_load=yes
11464else
11465  ac_cv_lib_dld_shl_load=no
11466fi
11467rm -f core conftest.err conftest.$ac_objext \
11468    conftest$ac_exeext conftest.$ac_ext
11469LIBS=$ac_check_lib_save_LIBS
11470fi
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11472$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11473if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11474  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11475else
11476  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11477if test "x$ac_cv_func_dlopen" = xyes; then :
11478  lt_cv_dlopen=dlopen
11479else
11480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11481$as_echo_n "checking for dlopen in -ldl... " >&6; }
11482if ${ac_cv_lib_dl_dlopen+:} false; then :
11483  $as_echo_n "(cached) " >&6
11484else
11485  ac_check_lib_save_LIBS=$LIBS
11486LIBS="-ldl  $LIBS"
11487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488/* end confdefs.h.  */
11489
11490/* Override any GCC internal prototype to avoid an error.
11491   Use char because int might match the return type of a GCC
11492   builtin and then its argument prototype would still apply.  */
11493#ifdef __cplusplus
11494extern "C"
11495#endif
11496char dlopen ();
11497int
11498main ()
11499{
11500return dlopen ();
11501  ;
11502  return 0;
11503}
11504_ACEOF
11505if ac_fn_c_try_link "$LINENO"; then :
11506  ac_cv_lib_dl_dlopen=yes
11507else
11508  ac_cv_lib_dl_dlopen=no
11509fi
11510rm -f core conftest.err conftest.$ac_objext \
11511    conftest$ac_exeext conftest.$ac_ext
11512LIBS=$ac_check_lib_save_LIBS
11513fi
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11515$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11516if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11517  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11518else
11519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11520$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11521if ${ac_cv_lib_svld_dlopen+:} false; then :
11522  $as_echo_n "(cached) " >&6
11523else
11524  ac_check_lib_save_LIBS=$LIBS
11525LIBS="-lsvld  $LIBS"
11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h.  */
11528
11529/* Override any GCC internal prototype to avoid an error.
11530   Use char because int might match the return type of a GCC
11531   builtin and then its argument prototype would still apply.  */
11532#ifdef __cplusplus
11533extern "C"
11534#endif
11535char dlopen ();
11536int
11537main ()
11538{
11539return dlopen ();
11540  ;
11541  return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_link "$LINENO"; then :
11545  ac_cv_lib_svld_dlopen=yes
11546else
11547  ac_cv_lib_svld_dlopen=no
11548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550    conftest$ac_exeext conftest.$ac_ext
11551LIBS=$ac_check_lib_save_LIBS
11552fi
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11554$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11555if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11556  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11557else
11558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11559$as_echo_n "checking for dld_link in -ldld... " >&6; }
11560if ${ac_cv_lib_dld_dld_link+:} false; then :
11561  $as_echo_n "(cached) " >&6
11562else
11563  ac_check_lib_save_LIBS=$LIBS
11564LIBS="-ldld  $LIBS"
11565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566/* end confdefs.h.  */
11567
11568/* Override any GCC internal prototype to avoid an error.
11569   Use char because int might match the return type of a GCC
11570   builtin and then its argument prototype would still apply.  */
11571#ifdef __cplusplus
11572extern "C"
11573#endif
11574char dld_link ();
11575int
11576main ()
11577{
11578return dld_link ();
11579  ;
11580  return 0;
11581}
11582_ACEOF
11583if ac_fn_c_try_link "$LINENO"; then :
11584  ac_cv_lib_dld_dld_link=yes
11585else
11586  ac_cv_lib_dld_dld_link=no
11587fi
11588rm -f core conftest.err conftest.$ac_objext \
11589    conftest$ac_exeext conftest.$ac_ext
11590LIBS=$ac_check_lib_save_LIBS
11591fi
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11593$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11594if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11595  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11596fi
11597
11598
11599fi
11600
11601
11602fi
11603
11604
11605fi
11606
11607
11608fi
11609
11610
11611fi
11612
11613    ;;
11614  esac
11615
11616  if test no = "$lt_cv_dlopen"; then
11617    enable_dlopen=no
11618  else
11619    enable_dlopen=yes
11620  fi
11621
11622  case $lt_cv_dlopen in
11623  dlopen)
11624    save_CPPFLAGS=$CPPFLAGS
11625    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11626
11627    save_LDFLAGS=$LDFLAGS
11628    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11629
11630    save_LIBS=$LIBS
11631    LIBS="$lt_cv_dlopen_libs $LIBS"
11632
11633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11634$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11635if ${lt_cv_dlopen_self+:} false; then :
11636  $as_echo_n "(cached) " >&6
11637else
11638  	  if test yes = "$cross_compiling"; then :
11639  lt_cv_dlopen_self=cross
11640else
11641  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642  lt_status=$lt_dlunknown
11643  cat > conftest.$ac_ext <<_LT_EOF
11644#line $LINENO "configure"
11645#include "confdefs.h"
11646
11647#if HAVE_DLFCN_H
11648#include <dlfcn.h>
11649#endif
11650
11651#include <stdio.h>
11652
11653#ifdef RTLD_GLOBAL
11654#  define LT_DLGLOBAL		RTLD_GLOBAL
11655#else
11656#  ifdef DL_GLOBAL
11657#    define LT_DLGLOBAL		DL_GLOBAL
11658#  else
11659#    define LT_DLGLOBAL		0
11660#  endif
11661#endif
11662
11663/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664   find out it does not work in some platform. */
11665#ifndef LT_DLLAZY_OR_NOW
11666#  ifdef RTLD_LAZY
11667#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11668#  else
11669#    ifdef DL_LAZY
11670#      define LT_DLLAZY_OR_NOW		DL_LAZY
11671#    else
11672#      ifdef RTLD_NOW
11673#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11674#      else
11675#        ifdef DL_NOW
11676#          define LT_DLLAZY_OR_NOW	DL_NOW
11677#        else
11678#          define LT_DLLAZY_OR_NOW	0
11679#        endif
11680#      endif
11681#    endif
11682#  endif
11683#endif
11684
11685/* When -fvisibility=hidden is used, assume the code has been annotated
11686   correspondingly for the symbols needed.  */
11687#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688int fnord () __attribute__((visibility("default")));
11689#endif
11690
11691int fnord () { return 42; }
11692int main ()
11693{
11694  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695  int status = $lt_dlunknown;
11696
11697  if (self)
11698    {
11699      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11700      else
11701        {
11702	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11703          else puts (dlerror ());
11704	}
11705      /* dlclose (self); */
11706    }
11707  else
11708    puts (dlerror ());
11709
11710  return status;
11711}
11712_LT_EOF
11713  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714  (eval $ac_link) 2>&5
11715  ac_status=$?
11716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11718    (./conftest; exit; ) >&5 2>/dev/null
11719    lt_status=$?
11720    case x$lt_status in
11721      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11722      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11723      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11724    esac
11725  else :
11726    # compilation failed
11727    lt_cv_dlopen_self=no
11728  fi
11729fi
11730rm -fr conftest*
11731
11732
11733fi
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11735$as_echo "$lt_cv_dlopen_self" >&6; }
11736
11737    if test yes = "$lt_cv_dlopen_self"; then
11738      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11739      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11740$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11741if ${lt_cv_dlopen_self_static+:} false; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744  	  if test yes = "$cross_compiling"; then :
11745  lt_cv_dlopen_self_static=cross
11746else
11747  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11748  lt_status=$lt_dlunknown
11749  cat > conftest.$ac_ext <<_LT_EOF
11750#line $LINENO "configure"
11751#include "confdefs.h"
11752
11753#if HAVE_DLFCN_H
11754#include <dlfcn.h>
11755#endif
11756
11757#include <stdio.h>
11758
11759#ifdef RTLD_GLOBAL
11760#  define LT_DLGLOBAL		RTLD_GLOBAL
11761#else
11762#  ifdef DL_GLOBAL
11763#    define LT_DLGLOBAL		DL_GLOBAL
11764#  else
11765#    define LT_DLGLOBAL		0
11766#  endif
11767#endif
11768
11769/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11770   find out it does not work in some platform. */
11771#ifndef LT_DLLAZY_OR_NOW
11772#  ifdef RTLD_LAZY
11773#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11774#  else
11775#    ifdef DL_LAZY
11776#      define LT_DLLAZY_OR_NOW		DL_LAZY
11777#    else
11778#      ifdef RTLD_NOW
11779#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11780#      else
11781#        ifdef DL_NOW
11782#          define LT_DLLAZY_OR_NOW	DL_NOW
11783#        else
11784#          define LT_DLLAZY_OR_NOW	0
11785#        endif
11786#      endif
11787#    endif
11788#  endif
11789#endif
11790
11791/* When -fvisibility=hidden is used, assume the code has been annotated
11792   correspondingly for the symbols needed.  */
11793#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11794int fnord () __attribute__((visibility("default")));
11795#endif
11796
11797int fnord () { return 42; }
11798int main ()
11799{
11800  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801  int status = $lt_dlunknown;
11802
11803  if (self)
11804    {
11805      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11806      else
11807        {
11808	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11809          else puts (dlerror ());
11810	}
11811      /* dlclose (self); */
11812    }
11813  else
11814    puts (dlerror ());
11815
11816  return status;
11817}
11818_LT_EOF
11819  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11820  (eval $ac_link) 2>&5
11821  ac_status=$?
11822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11823  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11824    (./conftest; exit; ) >&5 2>/dev/null
11825    lt_status=$?
11826    case x$lt_status in
11827      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11828      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11829      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11830    esac
11831  else :
11832    # compilation failed
11833    lt_cv_dlopen_self_static=no
11834  fi
11835fi
11836rm -fr conftest*
11837
11838
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11841$as_echo "$lt_cv_dlopen_self_static" >&6; }
11842    fi
11843
11844    CPPFLAGS=$save_CPPFLAGS
11845    LDFLAGS=$save_LDFLAGS
11846    LIBS=$save_LIBS
11847    ;;
11848  esac
11849
11850  case $lt_cv_dlopen_self in
11851  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11852  *) enable_dlopen_self=unknown ;;
11853  esac
11854
11855  case $lt_cv_dlopen_self_static in
11856  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11857  *) enable_dlopen_self_static=unknown ;;
11858  esac
11859fi
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877striplib=
11878old_striplib=
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11880$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11881if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11882  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11883  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885$as_echo "yes" >&6; }
11886else
11887# FIXME - insert some real tests, host_os isn't really good enough
11888  case $host_os in
11889  darwin*)
11890    if test -n "$STRIP"; then
11891      striplib="$STRIP -x"
11892      old_striplib="$STRIP -S"
11893      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894$as_echo "yes" >&6; }
11895    else
11896      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898    fi
11899    ;;
11900  *)
11901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
11903    ;;
11904  esac
11905fi
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918  # Report what library types will actually be built
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11920$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11922$as_echo "$can_build_shared" >&6; }
11923
11924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11925$as_echo_n "checking whether to build shared libraries... " >&6; }
11926  test no = "$can_build_shared" && enable_shared=no
11927
11928  # On AIX, shared libraries and static libraries use the same namespace, and
11929  # are all built from PIC.
11930  case $host_os in
11931  aix3*)
11932    test yes = "$enable_shared" && enable_static=no
11933    if test -n "$RANLIB"; then
11934      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11935      postinstall_cmds='$RANLIB $lib'
11936    fi
11937    ;;
11938
11939  aix[4-9]*)
11940    if test ia64 != "$host_cpu"; then
11941      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11942      yes,aix,yes) ;;			# shared object as lib.so file only
11943      yes,svr4,*) ;;			# shared object as lib.so archive member only
11944      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11945      esac
11946    fi
11947    ;;
11948  esac
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11950$as_echo "$enable_shared" >&6; }
11951
11952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11953$as_echo_n "checking whether to build static libraries... " >&6; }
11954  # Make sure either enable_shared or enable_static is yes.
11955  test yes = "$enable_shared" || enable_static=yes
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11957$as_echo "$enable_static" >&6; }
11958
11959
11960
11961
11962fi
11963ac_ext=c
11964ac_cpp='$CPP $CPPFLAGS'
11965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967ac_compiler_gnu=$ac_cv_c_compiler_gnu
11968
11969CC=$lt_save_CC
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985        ac_config_commands="$ac_config_commands libtool"
11986
11987
11988
11989
11990# Only expand once:
11991
11992
11993
11994# Add -Wall if we are using GCC.
11995if test "x$GCC" = "xyes"; then
11996  CFLAGS="$CFLAGS -Wall"
11997fi
11998
11999# Checks for header files.
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12001$as_echo_n "checking for ANSI C header files... " >&6; }
12002if ${ac_cv_header_stdc+:} false; then :
12003  $as_echo_n "(cached) " >&6
12004else
12005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006/* end confdefs.h.  */
12007#include <stdlib.h>
12008#include <stdarg.h>
12009#include <string.h>
12010#include <float.h>
12011
12012int
12013main ()
12014{
12015
12016  ;
12017  return 0;
12018}
12019_ACEOF
12020if ac_fn_c_try_compile "$LINENO"; then :
12021  ac_cv_header_stdc=yes
12022else
12023  ac_cv_header_stdc=no
12024fi
12025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026
12027if test $ac_cv_header_stdc = yes; then
12028  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030/* end confdefs.h.  */
12031#include <string.h>
12032
12033_ACEOF
12034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12035  $EGREP "memchr" >/dev/null 2>&1; then :
12036
12037else
12038  ac_cv_header_stdc=no
12039fi
12040rm -f conftest*
12041
12042fi
12043
12044if test $ac_cv_header_stdc = yes; then
12045  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047/* end confdefs.h.  */
12048#include <stdlib.h>
12049
12050_ACEOF
12051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12052  $EGREP "free" >/dev/null 2>&1; then :
12053
12054else
12055  ac_cv_header_stdc=no
12056fi
12057rm -f conftest*
12058
12059fi
12060
12061if test $ac_cv_header_stdc = yes; then
12062  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12063  if test "$cross_compiling" = yes; then :
12064  :
12065else
12066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h.  */
12068#include <ctype.h>
12069#include <stdlib.h>
12070#if ((' ' & 0x0FF) == 0x020)
12071# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12072# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12073#else
12074# define ISLOWER(c) \
12075		   (('a' <= (c) && (c) <= 'i') \
12076		     || ('j' <= (c) && (c) <= 'r') \
12077		     || ('s' <= (c) && (c) <= 'z'))
12078# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12079#endif
12080
12081#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12082int
12083main ()
12084{
12085  int i;
12086  for (i = 0; i < 256; i++)
12087    if (XOR (islower (i), ISLOWER (i))
12088	|| toupper (i) != TOUPPER (i))
12089      return 2;
12090  return 0;
12091}
12092_ACEOF
12093if ac_fn_c_try_run "$LINENO"; then :
12094
12095else
12096  ac_cv_header_stdc=no
12097fi
12098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12099  conftest.$ac_objext conftest.beam conftest.$ac_ext
12100fi
12101
12102fi
12103fi
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12105$as_echo "$ac_cv_header_stdc" >&6; }
12106if test $ac_cv_header_stdc = yes; then
12107
12108$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12109
12110fi
12111
12112
12113# Check for systems which need -lsocket and -lnsl
12114#AX_LIB_SOCKET_NSL
12115
12116# Solaris puts nanosleep in -lrt
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12118$as_echo_n "checking for library containing nanosleep... " >&6; }
12119if ${ac_cv_search_nanosleep+:} false; then :
12120  $as_echo_n "(cached) " >&6
12121else
12122  ac_func_search_save_LIBS=$LIBS
12123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124/* end confdefs.h.  */
12125
12126/* Override any GCC internal prototype to avoid an error.
12127   Use char because int might match the return type of a GCC
12128   builtin and then its argument prototype would still apply.  */
12129#ifdef __cplusplus
12130extern "C"
12131#endif
12132char nanosleep ();
12133int
12134main ()
12135{
12136return nanosleep ();
12137  ;
12138  return 0;
12139}
12140_ACEOF
12141for ac_lib in '' rt; do
12142  if test -z "$ac_lib"; then
12143    ac_res="none required"
12144  else
12145    ac_res=-l$ac_lib
12146    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12147  fi
12148  if ac_fn_c_try_link "$LINENO"; then :
12149  ac_cv_search_nanosleep=$ac_res
12150fi
12151rm -f core conftest.err conftest.$ac_objext \
12152    conftest$ac_exeext
12153  if ${ac_cv_search_nanosleep+:} false; then :
12154  break
12155fi
12156done
12157if ${ac_cv_search_nanosleep+:} false; then :
12158
12159else
12160  ac_cv_search_nanosleep=no
12161fi
12162rm conftest.$ac_ext
12163LIBS=$ac_func_search_save_LIBS
12164fi
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12166$as_echo "$ac_cv_search_nanosleep" >&6; }
12167ac_res=$ac_cv_search_nanosleep
12168if test "$ac_res" != no; then :
12169  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12170
12171else
12172
12173echo "nanosleep() required for timing operations."
12174exit 1
12175
12176fi
12177
12178
12179# Solaris puts hstrerror in -lresolv
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
12181$as_echo_n "checking for library containing hstrerror... " >&6; }
12182if ${ac_cv_search_hstrerror+:} false; then :
12183  $as_echo_n "(cached) " >&6
12184else
12185  ac_func_search_save_LIBS=$LIBS
12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188
12189/* Override any GCC internal prototype to avoid an error.
12190   Use char because int might match the return type of a GCC
12191   builtin and then its argument prototype would still apply.  */
12192#ifdef __cplusplus
12193extern "C"
12194#endif
12195char hstrerror ();
12196int
12197main ()
12198{
12199return hstrerror ();
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204for ac_lib in '' resolv; do
12205  if test -z "$ac_lib"; then
12206    ac_res="none required"
12207  else
12208    ac_res=-l$ac_lib
12209    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12210  fi
12211  if ac_fn_c_try_link "$LINENO"; then :
12212  ac_cv_search_hstrerror=$ac_res
12213fi
12214rm -f core conftest.err conftest.$ac_objext \
12215    conftest$ac_exeext
12216  if ${ac_cv_search_hstrerror+:} false; then :
12217  break
12218fi
12219done
12220if ${ac_cv_search_hstrerror+:} false; then :
12221
12222else
12223  ac_cv_search_hstrerror=no
12224fi
12225rm conftest.$ac_ext
12226LIBS=$ac_func_search_save_LIBS
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
12229$as_echo "$ac_cv_search_hstrerror" >&6; }
12230ac_res=$ac_cv_search_hstrerror
12231if test "$ac_res" != no; then :
12232  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12233
12234else
12235
12236echo "nanosleep() required for timing operations."
12237exit 1
12238
12239fi
12240
12241
12242# On illumos we need -lsocket
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12244$as_echo_n "checking for library containing socket... " >&6; }
12245if ${ac_cv_search_socket+:} false; then :
12246  $as_echo_n "(cached) " >&6
12247else
12248  ac_func_search_save_LIBS=$LIBS
12249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250/* end confdefs.h.  */
12251
12252/* Override any GCC internal prototype to avoid an error.
12253   Use char because int might match the return type of a GCC
12254   builtin and then its argument prototype would still apply.  */
12255#ifdef __cplusplus
12256extern "C"
12257#endif
12258char socket ();
12259int
12260main ()
12261{
12262return socket ();
12263  ;
12264  return 0;
12265}
12266_ACEOF
12267for ac_lib in '' socket; do
12268  if test -z "$ac_lib"; then
12269    ac_res="none required"
12270  else
12271    ac_res=-l$ac_lib
12272    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12273  fi
12274  if ac_fn_c_try_link "$LINENO"; then :
12275  ac_cv_search_socket=$ac_res
12276fi
12277rm -f core conftest.err conftest.$ac_objext \
12278    conftest$ac_exeext
12279  if ${ac_cv_search_socket+:} false; then :
12280  break
12281fi
12282done
12283if ${ac_cv_search_socket+:} false; then :
12284
12285else
12286  ac_cv_search_socket=no
12287fi
12288rm conftest.$ac_ext
12289LIBS=$ac_func_search_save_LIBS
12290fi
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12292$as_echo "$ac_cv_search_socket" >&6; }
12293ac_res=$ac_cv_search_socket
12294if test "$ac_res" != no; then :
12295  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12296
12297else
12298
12299echo "socket()"
12300exit 1
12301
12302fi
12303
12304
12305# On illumos inet_ntop in in -lnsl
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12307$as_echo_n "checking for library containing inet_ntop... " >&6; }
12308if ${ac_cv_search_inet_ntop+:} false; then :
12309  $as_echo_n "(cached) " >&6
12310else
12311  ac_func_search_save_LIBS=$LIBS
12312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313/* end confdefs.h.  */
12314
12315/* Override any GCC internal prototype to avoid an error.
12316   Use char because int might match the return type of a GCC
12317   builtin and then its argument prototype would still apply.  */
12318#ifdef __cplusplus
12319extern "C"
12320#endif
12321char inet_ntop ();
12322int
12323main ()
12324{
12325return inet_ntop ();
12326  ;
12327  return 0;
12328}
12329_ACEOF
12330for ac_lib in '' nsl; do
12331  if test -z "$ac_lib"; then
12332    ac_res="none required"
12333  else
12334    ac_res=-l$ac_lib
12335    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12336  fi
12337  if ac_fn_c_try_link "$LINENO"; then :
12338  ac_cv_search_inet_ntop=$ac_res
12339fi
12340rm -f core conftest.err conftest.$ac_objext \
12341    conftest$ac_exeext
12342  if ${ac_cv_search_inet_ntop+:} false; then :
12343  break
12344fi
12345done
12346if ${ac_cv_search_inet_ntop+:} false; then :
12347
12348else
12349  ac_cv_search_inet_ntop=no
12350fi
12351rm conftest.$ac_ext
12352LIBS=$ac_func_search_save_LIBS
12353fi
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12355$as_echo "$ac_cv_search_inet_ntop" >&6; }
12356ac_res=$ac_cv_search_inet_ntop
12357if test "$ac_res" != no; then :
12358  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12359
12360else
12361
12362echo "inet_ntop()"
12363exit 1
12364
12365fi
12366
12367
12368# Checks for typedefs, structures, and compiler characteristics.
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12370$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12371if ${ac_cv_c_const+:} false; then :
12372  $as_echo_n "(cached) " >&6
12373else
12374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h.  */
12376
12377int
12378main ()
12379{
12380
12381#ifndef __cplusplus
12382  /* Ultrix mips cc rejects this sort of thing.  */
12383  typedef int charset[2];
12384  const charset cs = { 0, 0 };
12385  /* SunOS 4.1.1 cc rejects this.  */
12386  char const *const *pcpcc;
12387  char **ppc;
12388  /* NEC SVR4.0.2 mips cc rejects this.  */
12389  struct point {int x, y;};
12390  static struct point const zero = {0,0};
12391  /* AIX XL C 1.02.0.0 rejects this.
12392     It does not let you subtract one const X* pointer from another in
12393     an arm of an if-expression whose if-part is not a constant
12394     expression */
12395  const char *g = "string";
12396  pcpcc = &g + (g ? g-g : 0);
12397  /* HPUX 7.0 cc rejects these. */
12398  ++pcpcc;
12399  ppc = (char**) pcpcc;
12400  pcpcc = (char const *const *) ppc;
12401  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12402    char tx;
12403    char *t = &tx;
12404    char const *s = 0 ? (char *) 0 : (char const *) 0;
12405
12406    *t++ = 0;
12407    if (s) return 0;
12408  }
12409  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12410    int x[] = {25, 17};
12411    const int *foo = &x[0];
12412    ++foo;
12413  }
12414  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12415    typedef const int *iptr;
12416    iptr p = 0;
12417    ++p;
12418  }
12419  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12420       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12421    struct s { int j; const int *ap[3]; } bx;
12422    struct s *b = &bx; b->j = 5;
12423  }
12424  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12425    const int foo = 10;
12426    if (!foo) return 0;
12427  }
12428  return !cs[0] && !zero.x;
12429#endif
12430
12431  ;
12432  return 0;
12433}
12434_ACEOF
12435if ac_fn_c_try_compile "$LINENO"; then :
12436  ac_cv_c_const=yes
12437else
12438  ac_cv_c_const=no
12439fi
12440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441fi
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12443$as_echo "$ac_cv_c_const" >&6; }
12444if test $ac_cv_c_const = no; then
12445
12446$as_echo "#define const /**/" >>confdefs.h
12447
12448fi
12449
12450
12451# Check for SCTP support
12452for ac_header in sys/socket.h
12453do :
12454  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12455if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12456  cat >>confdefs.h <<_ACEOF
12457#define HAVE_SYS_SOCKET_H 1
12458_ACEOF
12459
12460fi
12461
12462done
12463
12464for ac_header in netinet/sctp.h
12465do :
12466  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12467#include <sys/socket.h>
12468#endif
12469
12470"
12471if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
12472  cat >>confdefs.h <<_ACEOF
12473#define HAVE_NETINET_SCTP_H 1
12474_ACEOF
12475
12476$as_echo "#define HAVE_SCTP 1" >>confdefs.h
12477
12478		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12479$as_echo_n "checking for library containing sctp_bindx... " >&6; }
12480if ${ac_cv_search_sctp_bindx+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  ac_func_search_save_LIBS=$LIBS
12484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h.  */
12486
12487/* Override any GCC internal prototype to avoid an error.
12488   Use char because int might match the return type of a GCC
12489   builtin and then its argument prototype would still apply.  */
12490#ifdef __cplusplus
12491extern "C"
12492#endif
12493char sctp_bindx ();
12494int
12495main ()
12496{
12497return sctp_bindx ();
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502for ac_lib in '' sctp; do
12503  if test -z "$ac_lib"; then
12504    ac_res="none required"
12505  else
12506    ac_res=-l$ac_lib
12507    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12508  fi
12509  if ac_fn_c_try_link "$LINENO"; then :
12510  ac_cv_search_sctp_bindx=$ac_res
12511fi
12512rm -f core conftest.err conftest.$ac_objext \
12513    conftest$ac_exeext
12514  if ${ac_cv_search_sctp_bindx+:} false; then :
12515  break
12516fi
12517done
12518if ${ac_cv_search_sctp_bindx+:} false; then :
12519
12520else
12521  ac_cv_search_sctp_bindx=no
12522fi
12523rm conftest.$ac_ext
12524LIBS=$ac_func_search_save_LIBS
12525fi
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12527$as_echo "$ac_cv_search_sctp_bindx" >&6; }
12528ac_res=$ac_cv_search_sctp_bindx
12529if test "$ac_res" != no; then :
12530  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12531
12532fi
12533
12534
12535# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
12536# -------------------------------------------
12537# Tests whether TYPE exists after having included INCLUDES, setting cache
12538# variable VAR accordingly.
12539ac_fn_c_check_type ()
12540{
12541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
12543$as_echo_n "checking for $2... " >&6; }
12544if eval \${$3+:} false; then :
12545  $as_echo_n "(cached) " >&6
12546else
12547  eval "$3=no"
12548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549/* end confdefs.h.  */
12550$4
12551int
12552main ()
12553{
12554if (sizeof ($2))
12555	 return 0;
12556  ;
12557  return 0;
12558}
12559_ACEOF
12560if ac_fn_c_try_compile "$LINENO"; then :
12561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h.  */
12563$4
12564int
12565main ()
12566{
12567if (sizeof (($2)))
12568	    return 0;
12569  ;
12570  return 0;
12571}
12572_ACEOF
12573if ac_fn_c_try_compile "$LINENO"; then :
12574
12575else
12576  eval "$3=yes"
12577fi
12578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579fi
12580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581fi
12582eval ac_res=\$$3
12583	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12584$as_echo "$ac_res" >&6; }
12585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
12586
12587} # ac_fn_c_check_type
12588ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
12589"
12590if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
12591
12592cat >>confdefs.h <<_ACEOF
12593#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
12594_ACEOF
12595
12596
12597fi
12598
12599fi
12600
12601done
12602
12603
12604# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
12606$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
12607if ${iperf3_cv_header_tcp_congestion+:} false; then :
12608  $as_echo_n "(cached) " >&6
12609else
12610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h.  */
12612#include <netinet/tcp.h>
12613#ifdef TCP_CONGESTION
12614  yes
12615#endif
12616
12617_ACEOF
12618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12619  $EGREP "yes" >/dev/null 2>&1; then :
12620  iperf3_cv_header_tcp_congestion=yes
12621else
12622  iperf3_cv_header_tcp_congestion=no
12623fi
12624rm -f conftest*
12625
12626fi
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
12628$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12629if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12630
12631$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
12632
12633fi
12634
12635# Check for IPv6 flowlabel support (believed to be Linux only)
12636# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12637# don't use that file directly (we have our own stripped-down
12638# copy, see src/flowlabel.h for more details).
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
12640$as_echo_n "checking IPv6 flowlabel support... " >&6; }
12641if ${iperf3_cv_header_flowlabel+:} false; then :
12642  $as_echo_n "(cached) " >&6
12643else
12644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645/* end confdefs.h.  */
12646#include <sys/types.h>
12647#include <linux/in6.h>
12648#ifdef IPV6_FLOWLABEL_MGR
12649  yes
12650#endif
12651
12652_ACEOF
12653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12654  $EGREP "yes" >/dev/null 2>&1; then :
12655  iperf3_cv_header_flowlabel=yes
12656else
12657  iperf3_cv_header_flowlabel=no
12658fi
12659rm -f conftest*
12660
12661fi
12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
12663$as_echo "$iperf3_cv_header_flowlabel" >&6; }
12664if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
12665
12666$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
12667
12668fi
12669
12670# Check for CPU affinity support.  FreeBSD and Linux do this differently
12671# unfortunately so we have to check separately for each of them.
12672# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
12673# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
12674# generic concept is available.
12675for ac_func in cpuset_setaffinity sched_setaffinity
12676do :
12677  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12678ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12679if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12680  cat >>confdefs.h <<_ACEOF
12681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12682_ACEOF
12683
12684$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
12685
12686fi
12687done
12688
12689
12690# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
12691# this system call, but they're all different in terms of what headers
12692# it needs and what arguments it expects.
12693for ac_func in sendfile
12694do :
12695  ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
12696if test "x$ac_cv_func_sendfile" = xyes; then :
12697  cat >>confdefs.h <<_ACEOF
12698#define HAVE_SENDFILE 1
12699_ACEOF
12700
12701fi
12702done
12703
12704
12705ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
12706
12707cat >confcache <<\_ACEOF
12708# This file is a shell script that caches the results of configure
12709# tests run on this system so they can be shared between configure
12710# scripts and configure runs, see configure's option --config-cache.
12711# It is not useful on other systems.  If it contains results you don't
12712# want to keep, you may remove or edit it.
12713#
12714# config.status only pays attention to the cache file if you give it
12715# the --recheck option to rerun configure.
12716#
12717# `ac_cv_env_foo' variables (set or unset) will be overridden when
12718# loading this file, other *unset* `ac_cv_foo' will be assigned the
12719# following values.
12720
12721_ACEOF
12722
12723# The following way of writing the cache mishandles newlines in values,
12724# but we know of no workaround that is simple, portable, and efficient.
12725# So, we kill variables containing newlines.
12726# Ultrix sh set writes to stderr and can't be redirected directly,
12727# and sets the high bit in the cache file unless we assign to the vars.
12728(
12729  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12730    eval ac_val=\$$ac_var
12731    case $ac_val in #(
12732    *${as_nl}*)
12733      case $ac_var in #(
12734      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12735$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12736      esac
12737      case $ac_var in #(
12738      _ | IFS | as_nl) ;; #(
12739      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12740      *) { eval $ac_var=; unset $ac_var;} ;;
12741      esac ;;
12742    esac
12743  done
12744
12745  (set) 2>&1 |
12746    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12747    *${as_nl}ac_space=\ *)
12748      # `set' does not quote correctly, so add quotes: double-quote
12749      # substitution turns \\\\ into \\, and sed turns \\ into \.
12750      sed -n \
12751	"s/'/'\\\\''/g;
12752	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12753      ;; #(
12754    *)
12755      # `set' quotes correctly as required by POSIX, so do not add quotes.
12756      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12757      ;;
12758    esac |
12759    sort
12760) |
12761  sed '
12762     /^ac_cv_env_/b end
12763     t clear
12764     :clear
12765     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12766     t end
12767     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12768     :end' >>confcache
12769if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12770  if test -w "$cache_file"; then
12771    if test "x$cache_file" != "x/dev/null"; then
12772      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12773$as_echo "$as_me: updating cache $cache_file" >&6;}
12774      if test ! -f "$cache_file" || test -h "$cache_file"; then
12775	cat confcache >"$cache_file"
12776      else
12777        case $cache_file in #(
12778        */* | ?:*)
12779	  mv -f confcache "$cache_file"$$ &&
12780	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12781        *)
12782	  mv -f confcache "$cache_file" ;;
12783	esac
12784      fi
12785    fi
12786  else
12787    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12788$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12789  fi
12790fi
12791rm -f confcache
12792
12793test "x$prefix" = xNONE && prefix=$ac_default_prefix
12794# Let make expand exec_prefix.
12795test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12796
12797DEFS=-DHAVE_CONFIG_H
12798
12799ac_libobjs=
12800ac_ltlibobjs=
12801for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12802  # 1. Remove the extension, and $U if already installed.
12803  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12804  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12805  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12806  #    will be set to the directory where LIBOBJS objects are built.
12807  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12808  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12809done
12810LIBOBJS=$ac_libobjs
12811
12812LTLIBOBJS=$ac_ltlibobjs
12813
12814
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12816$as_echo_n "checking that generated files are newer than configure... " >&6; }
12817   if test -n "$am_sleep_pid"; then
12818     # Hide warnings about reused PIDs.
12819     wait $am_sleep_pid 2>/dev/null
12820   fi
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12822$as_echo "done" >&6; }
12823 if test -n "$EXEEXT"; then
12824  am__EXEEXT_TRUE=
12825  am__EXEEXT_FALSE='#'
12826else
12827  am__EXEEXT_TRUE='#'
12828  am__EXEEXT_FALSE=
12829fi
12830
12831if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12832  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12833Usually this means the macro was only invoked conditionally." "$LINENO" 5
12834fi
12835if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12836  as_fn_error $? "conditional \"AMDEP\" was never defined.
12837Usually this means the macro was only invoked conditionally." "$LINENO" 5
12838fi
12839if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12840  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12841Usually this means the macro was only invoked conditionally." "$LINENO" 5
12842fi
12843
12844: "${CONFIG_STATUS=./config.status}"
12845ac_write_fail=0
12846ac_clean_files_save=$ac_clean_files
12847ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12848{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12849$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12850as_write_fail=0
12851cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12852#! $SHELL
12853# Generated by $as_me.
12854# Run this file to recreate the current configuration.
12855# Compiler output produced by configure, useful for debugging
12856# configure, is in config.log if it exists.
12857
12858debug=false
12859ac_cs_recheck=false
12860ac_cs_silent=false
12861
12862SHELL=\${CONFIG_SHELL-$SHELL}
12863export SHELL
12864_ASEOF
12865cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12866## -------------------- ##
12867## M4sh Initialization. ##
12868## -------------------- ##
12869
12870# Be more Bourne compatible
12871DUALCASE=1; export DUALCASE # for MKS sh
12872if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12873  emulate sh
12874  NULLCMD=:
12875  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12876  # is contrary to our usage.  Disable this feature.
12877  alias -g '${1+"$@"}'='"$@"'
12878  setopt NO_GLOB_SUBST
12879else
12880  case `(set -o) 2>/dev/null` in #(
12881  *posix*) :
12882    set -o posix ;; #(
12883  *) :
12884     ;;
12885esac
12886fi
12887
12888
12889as_nl='
12890'
12891export as_nl
12892# Printing a long string crashes Solaris 7 /usr/bin/printf.
12893as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12895as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12896# Prefer a ksh shell builtin over an external printf program on Solaris,
12897# but without wasting forks for bash or zsh.
12898if test -z "$BASH_VERSION$ZSH_VERSION" \
12899    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12900  as_echo='print -r --'
12901  as_echo_n='print -rn --'
12902elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12903  as_echo='printf %s\n'
12904  as_echo_n='printf %s'
12905else
12906  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12907    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12908    as_echo_n='/usr/ucb/echo -n'
12909  else
12910    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12911    as_echo_n_body='eval
12912      arg=$1;
12913      case $arg in #(
12914      *"$as_nl"*)
12915	expr "X$arg" : "X\\(.*\\)$as_nl";
12916	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12917      esac;
12918      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12919    '
12920    export as_echo_n_body
12921    as_echo_n='sh -c $as_echo_n_body as_echo'
12922  fi
12923  export as_echo_body
12924  as_echo='sh -c $as_echo_body as_echo'
12925fi
12926
12927# The user is always right.
12928if test "${PATH_SEPARATOR+set}" != set; then
12929  PATH_SEPARATOR=:
12930  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12931    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12932      PATH_SEPARATOR=';'
12933  }
12934fi
12935
12936
12937# IFS
12938# We need space, tab and new line, in precisely that order.  Quoting is
12939# there to prevent editors from complaining about space-tab.
12940# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12941# splitting by setting IFS to empty value.)
12942IFS=" ""	$as_nl"
12943
12944# Find who we are.  Look in the path if we contain no directory separator.
12945as_myself=
12946case $0 in #((
12947  *[\\/]* ) as_myself=$0 ;;
12948  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951  IFS=$as_save_IFS
12952  test -z "$as_dir" && as_dir=.
12953    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12954  done
12955IFS=$as_save_IFS
12956
12957     ;;
12958esac
12959# We did not find ourselves, most probably we were run as `sh COMMAND'
12960# in which case we are not to be found in the path.
12961if test "x$as_myself" = x; then
12962  as_myself=$0
12963fi
12964if test ! -f "$as_myself"; then
12965  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12966  exit 1
12967fi
12968
12969# Unset variables that we do not need and which cause bugs (e.g. in
12970# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12971# suppresses any "Segmentation fault" message there.  '((' could
12972# trigger a bug in pdksh 5.2.14.
12973for as_var in BASH_ENV ENV MAIL MAILPATH
12974do eval test x\${$as_var+set} = xset \
12975  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12976done
12977PS1='$ '
12978PS2='> '
12979PS4='+ '
12980
12981# NLS nuisances.
12982LC_ALL=C
12983export LC_ALL
12984LANGUAGE=C
12985export LANGUAGE
12986
12987# CDPATH.
12988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12989
12990
12991# as_fn_error STATUS ERROR [LINENO LOG_FD]
12992# ----------------------------------------
12993# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12994# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12995# script with STATUS, using 1 if that was 0.
12996as_fn_error ()
12997{
12998  as_status=$1; test $as_status -eq 0 && as_status=1
12999  if test "$4"; then
13000    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13001    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13002  fi
13003  $as_echo "$as_me: error: $2" >&2
13004  as_fn_exit $as_status
13005} # as_fn_error
13006
13007
13008# as_fn_set_status STATUS
13009# -----------------------
13010# Set $? to STATUS, without forking.
13011as_fn_set_status ()
13012{
13013  return $1
13014} # as_fn_set_status
13015
13016# as_fn_exit STATUS
13017# -----------------
13018# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13019as_fn_exit ()
13020{
13021  set +e
13022  as_fn_set_status $1
13023  exit $1
13024} # as_fn_exit
13025
13026# as_fn_unset VAR
13027# ---------------
13028# Portably unset VAR.
13029as_fn_unset ()
13030{
13031  { eval $1=; unset $1;}
13032}
13033as_unset=as_fn_unset
13034# as_fn_append VAR VALUE
13035# ----------------------
13036# Append the text in VALUE to the end of the definition contained in VAR. Take
13037# advantage of any shell optimizations that allow amortized linear growth over
13038# repeated appends, instead of the typical quadratic growth present in naive
13039# implementations.
13040if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13041  eval 'as_fn_append ()
13042  {
13043    eval $1+=\$2
13044  }'
13045else
13046  as_fn_append ()
13047  {
13048    eval $1=\$$1\$2
13049  }
13050fi # as_fn_append
13051
13052# as_fn_arith ARG...
13053# ------------------
13054# Perform arithmetic evaluation on the ARGs, and store the result in the
13055# global $as_val. Take advantage of shells that can avoid forks. The arguments
13056# must be portable across $(()) and expr.
13057if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13058  eval 'as_fn_arith ()
13059  {
13060    as_val=$(( $* ))
13061  }'
13062else
13063  as_fn_arith ()
13064  {
13065    as_val=`expr "$@" || test $? -eq 1`
13066  }
13067fi # as_fn_arith
13068
13069
13070if expr a : '\(a\)' >/dev/null 2>&1 &&
13071   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13072  as_expr=expr
13073else
13074  as_expr=false
13075fi
13076
13077if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13078  as_basename=basename
13079else
13080  as_basename=false
13081fi
13082
13083if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13084  as_dirname=dirname
13085else
13086  as_dirname=false
13087fi
13088
13089as_me=`$as_basename -- "$0" ||
13090$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13091	 X"$0" : 'X\(//\)$' \| \
13092	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13093$as_echo X/"$0" |
13094    sed '/^.*\/\([^/][^/]*\)\/*$/{
13095	    s//\1/
13096	    q
13097	  }
13098	  /^X\/\(\/\/\)$/{
13099	    s//\1/
13100	    q
13101	  }
13102	  /^X\/\(\/\).*/{
13103	    s//\1/
13104	    q
13105	  }
13106	  s/.*/./; q'`
13107
13108# Avoid depending upon Character Ranges.
13109as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13110as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13111as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13112as_cr_digits='0123456789'
13113as_cr_alnum=$as_cr_Letters$as_cr_digits
13114
13115ECHO_C= ECHO_N= ECHO_T=
13116case `echo -n x` in #(((((
13117-n*)
13118  case `echo 'xy\c'` in
13119  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13120  xy)  ECHO_C='\c';;
13121  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13122       ECHO_T='	';;
13123  esac;;
13124*)
13125  ECHO_N='-n';;
13126esac
13127
13128rm -f conf$$ conf$$.exe conf$$.file
13129if test -d conf$$.dir; then
13130  rm -f conf$$.dir/conf$$.file
13131else
13132  rm -f conf$$.dir
13133  mkdir conf$$.dir 2>/dev/null
13134fi
13135if (echo >conf$$.file) 2>/dev/null; then
13136  if ln -s conf$$.file conf$$ 2>/dev/null; then
13137    as_ln_s='ln -s'
13138    # ... but there are two gotchas:
13139    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13140    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13141    # In both cases, we have to default to `cp -pR'.
13142    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13143      as_ln_s='cp -pR'
13144  elif ln conf$$.file conf$$ 2>/dev/null; then
13145    as_ln_s=ln
13146  else
13147    as_ln_s='cp -pR'
13148  fi
13149else
13150  as_ln_s='cp -pR'
13151fi
13152rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13153rmdir conf$$.dir 2>/dev/null
13154
13155
13156# as_fn_mkdir_p
13157# -------------
13158# Create "$as_dir" as a directory, including parents if necessary.
13159as_fn_mkdir_p ()
13160{
13161
13162  case $as_dir in #(
13163  -*) as_dir=./$as_dir;;
13164  esac
13165  test -d "$as_dir" || eval $as_mkdir_p || {
13166    as_dirs=
13167    while :; do
13168      case $as_dir in #(
13169      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13170      *) as_qdir=$as_dir;;
13171      esac
13172      as_dirs="'$as_qdir' $as_dirs"
13173      as_dir=`$as_dirname -- "$as_dir" ||
13174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13175	 X"$as_dir" : 'X\(//\)[^/]' \| \
13176	 X"$as_dir" : 'X\(//\)$' \| \
13177	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13178$as_echo X"$as_dir" |
13179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13180	    s//\1/
13181	    q
13182	  }
13183	  /^X\(\/\/\)[^/].*/{
13184	    s//\1/
13185	    q
13186	  }
13187	  /^X\(\/\/\)$/{
13188	    s//\1/
13189	    q
13190	  }
13191	  /^X\(\/\).*/{
13192	    s//\1/
13193	    q
13194	  }
13195	  s/.*/./; q'`
13196      test -d "$as_dir" && break
13197    done
13198    test -z "$as_dirs" || eval "mkdir $as_dirs"
13199  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13200
13201
13202} # as_fn_mkdir_p
13203if mkdir -p . 2>/dev/null; then
13204  as_mkdir_p='mkdir -p "$as_dir"'
13205else
13206  test -d ./-p && rmdir ./-p
13207  as_mkdir_p=false
13208fi
13209
13210
13211# as_fn_executable_p FILE
13212# -----------------------
13213# Test if FILE is an executable regular file.
13214as_fn_executable_p ()
13215{
13216  test -f "$1" && test -x "$1"
13217} # as_fn_executable_p
13218as_test_x='test -x'
13219as_executable_p=as_fn_executable_p
13220
13221# Sed expression to map a string onto a valid CPP name.
13222as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13223
13224# Sed expression to map a string onto a valid variable name.
13225as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13226
13227
13228exec 6>&1
13229## ----------------------------------- ##
13230## Main body of $CONFIG_STATUS script. ##
13231## ----------------------------------- ##
13232_ASEOF
13233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13234
13235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13236# Save the log message, to keep $0 and so on meaningful, and to
13237# report actual input values of CONFIG_FILES etc. instead of their
13238# values after options handling.
13239ac_log="
13240This file was extended by iperf $as_me 3-CURRENT, which was
13241generated by GNU Autoconf 2.69.  Invocation command line was
13242
13243  CONFIG_FILES    = $CONFIG_FILES
13244  CONFIG_HEADERS  = $CONFIG_HEADERS
13245  CONFIG_LINKS    = $CONFIG_LINKS
13246  CONFIG_COMMANDS = $CONFIG_COMMANDS
13247  $ $0 $@
13248
13249on `(hostname || uname -n) 2>/dev/null | sed 1q`
13250"
13251
13252_ACEOF
13253
13254case $ac_config_files in *"
13255"*) set x $ac_config_files; shift; ac_config_files=$*;;
13256esac
13257
13258case $ac_config_headers in *"
13259"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13260esac
13261
13262
13263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13264# Files that config.status was made for.
13265config_files="$ac_config_files"
13266config_headers="$ac_config_headers"
13267config_commands="$ac_config_commands"
13268
13269_ACEOF
13270
13271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13272ac_cs_usage="\
13273\`$as_me' instantiates files and other configuration actions
13274from templates according to the current configuration.  Unless the files
13275and actions are specified as TAGs, all are instantiated by default.
13276
13277Usage: $0 [OPTION]... [TAG]...
13278
13279  -h, --help       print this help, then exit
13280  -V, --version    print version number and configuration settings, then exit
13281      --config     print configuration, then exit
13282  -q, --quiet, --silent
13283                   do not print progress messages
13284  -d, --debug      don't remove temporary files
13285      --recheck    update $as_me by reconfiguring in the same conditions
13286      --file=FILE[:TEMPLATE]
13287                   instantiate the configuration file FILE
13288      --header=FILE[:TEMPLATE]
13289                   instantiate the configuration header FILE
13290
13291Configuration files:
13292$config_files
13293
13294Configuration headers:
13295$config_headers
13296
13297Configuration commands:
13298$config_commands
13299
13300Report bugs to <https://github.com/esnet/iperf>.
13301iperf home page: <http://software.es.net/iperf/>."
13302
13303_ACEOF
13304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13305ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13306ac_cs_version="\\
13307iperf config.status 3-CURRENT
13308configured by $0, generated by GNU Autoconf 2.69,
13309  with options \\"\$ac_cs_config\\"
13310
13311Copyright (C) 2012 Free Software Foundation, Inc.
13312This config.status script is free software; the Free Software Foundation
13313gives unlimited permission to copy, distribute and modify it."
13314
13315ac_pwd='$ac_pwd'
13316srcdir='$srcdir'
13317INSTALL='$INSTALL'
13318MKDIR_P='$MKDIR_P'
13319AWK='$AWK'
13320test -n "\$AWK" || AWK=awk
13321_ACEOF
13322
13323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13324# The default lists apply if the user does not specify any file.
13325ac_need_defaults=:
13326while test $# != 0
13327do
13328  case $1 in
13329  --*=?*)
13330    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13331    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13332    ac_shift=:
13333    ;;
13334  --*=)
13335    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13336    ac_optarg=
13337    ac_shift=:
13338    ;;
13339  *)
13340    ac_option=$1
13341    ac_optarg=$2
13342    ac_shift=shift
13343    ;;
13344  esac
13345
13346  case $ac_option in
13347  # Handling of the options.
13348  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13349    ac_cs_recheck=: ;;
13350  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13351    $as_echo "$ac_cs_version"; exit ;;
13352  --config | --confi | --conf | --con | --co | --c )
13353    $as_echo "$ac_cs_config"; exit ;;
13354  --debug | --debu | --deb | --de | --d | -d )
13355    debug=: ;;
13356  --file | --fil | --fi | --f )
13357    $ac_shift
13358    case $ac_optarg in
13359    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13360    '') as_fn_error $? "missing file argument" ;;
13361    esac
13362    as_fn_append CONFIG_FILES " '$ac_optarg'"
13363    ac_need_defaults=false;;
13364  --header | --heade | --head | --hea )
13365    $ac_shift
13366    case $ac_optarg in
13367    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13368    esac
13369    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13370    ac_need_defaults=false;;
13371  --he | --h)
13372    # Conflict between --help and --header
13373    as_fn_error $? "ambiguous option: \`$1'
13374Try \`$0 --help' for more information.";;
13375  --help | --hel | -h )
13376    $as_echo "$ac_cs_usage"; exit ;;
13377  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13378  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13379    ac_cs_silent=: ;;
13380
13381  # This is an error.
13382  -*) as_fn_error $? "unrecognized option: \`$1'
13383Try \`$0 --help' for more information." ;;
13384
13385  *) as_fn_append ac_config_targets " $1"
13386     ac_need_defaults=false ;;
13387
13388  esac
13389  shift
13390done
13391
13392ac_configure_extra_args=
13393
13394if $ac_cs_silent; then
13395  exec 6>/dev/null
13396  ac_configure_extra_args="$ac_configure_extra_args --silent"
13397fi
13398
13399_ACEOF
13400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401if \$ac_cs_recheck; then
13402  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13403  shift
13404  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13405  CONFIG_SHELL='$SHELL'
13406  export CONFIG_SHELL
13407  exec "\$@"
13408fi
13409
13410_ACEOF
13411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13412exec 5>>config.log
13413{
13414  echo
13415  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13416## Running $as_me. ##
13417_ASBOX
13418  $as_echo "$ac_log"
13419} >&5
13420
13421_ACEOF
13422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13423#
13424# INIT-COMMANDS
13425#
13426AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13427
13428
13429# The HP-UX ksh and POSIX shell print the target directory to stdout
13430# if CDPATH is set.
13431(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13432
13433sed_quote_subst='$sed_quote_subst'
13434double_quote_subst='$double_quote_subst'
13435delay_variable_subst='$delay_variable_subst'
13436macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13437macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13438enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13439enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13440pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13441enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13442shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13443SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13444ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13445PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13446host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13447host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13448host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13449build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13450build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13451build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13452SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13453Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13454GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13455EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13456FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13457LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13458NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13459LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13460max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13461ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13462exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13463lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13464lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13465lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13466lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13467lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13468reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13469reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13470OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13471deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13472file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13473file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13474want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13475DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13476sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13477AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13478AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13479archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13480STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13481RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13482old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13483old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13484old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13485lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13486CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13487CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13488compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13489GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13490lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13491lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13492lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13493lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13494lt_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"`'
13495lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13496nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13497lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13498lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13499objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13500MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13501lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13502lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13503lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13504lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13505lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13506need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13507MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13508DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13509NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13510LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13511OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13512OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13513libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13514shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13515extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13516archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13517enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13518export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13519whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13520compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13521old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13522old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13523archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13524archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13525module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13526module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13527with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13528allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13529no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13530hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13531hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13532hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13533hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13534hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13535hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13536hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13537inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13538link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13539always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13540export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13541exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13542include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13543prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13544postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13545file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13546variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13547need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13548need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13549version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13550runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13551shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13552shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13553libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13554library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13555soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13556install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13557postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13558postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13559finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13560finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13561hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13562sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13563sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13564hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13565enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13566enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13567enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13568old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13569striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13570
13571LTCC='$LTCC'
13572LTCFLAGS='$LTCFLAGS'
13573compiler='$compiler_DEFAULT'
13574
13575# A function that is used when there is no print builtin or printf.
13576func_fallback_echo ()
13577{
13578  eval 'cat <<_LTECHO_EOF
13579\$1
13580_LTECHO_EOF'
13581}
13582
13583# Quote evaled strings.
13584for var in SHELL \
13585ECHO \
13586PATH_SEPARATOR \
13587SED \
13588GREP \
13589EGREP \
13590FGREP \
13591LD \
13592NM \
13593LN_S \
13594lt_SP2NL \
13595lt_NL2SP \
13596reload_flag \
13597OBJDUMP \
13598deplibs_check_method \
13599file_magic_cmd \
13600file_magic_glob \
13601want_nocaseglob \
13602DLLTOOL \
13603sharedlib_from_linklib_cmd \
13604AR \
13605AR_FLAGS \
13606archiver_list_spec \
13607STRIP \
13608RANLIB \
13609CC \
13610CFLAGS \
13611compiler \
13612lt_cv_sys_global_symbol_pipe \
13613lt_cv_sys_global_symbol_to_cdecl \
13614lt_cv_sys_global_symbol_to_import \
13615lt_cv_sys_global_symbol_to_c_name_address \
13616lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13617lt_cv_nm_interface \
13618nm_file_list_spec \
13619lt_cv_truncate_bin \
13620lt_prog_compiler_no_builtin_flag \
13621lt_prog_compiler_pic \
13622lt_prog_compiler_wl \
13623lt_prog_compiler_static \
13624lt_cv_prog_compiler_c_o \
13625need_locks \
13626MANIFEST_TOOL \
13627DSYMUTIL \
13628NMEDIT \
13629LIPO \
13630OTOOL \
13631OTOOL64 \
13632shrext_cmds \
13633export_dynamic_flag_spec \
13634whole_archive_flag_spec \
13635compiler_needs_object \
13636with_gnu_ld \
13637allow_undefined_flag \
13638no_undefined_flag \
13639hardcode_libdir_flag_spec \
13640hardcode_libdir_separator \
13641exclude_expsyms \
13642include_expsyms \
13643file_list_spec \
13644variables_saved_for_relink \
13645libname_spec \
13646library_names_spec \
13647soname_spec \
13648install_override_mode \
13649finish_eval \
13650old_striplib \
13651striplib; do
13652    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13653    *[\\\\\\\`\\"\\\$]*)
13654      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13655      ;;
13656    *)
13657      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13658      ;;
13659    esac
13660done
13661
13662# Double-quote double-evaled strings.
13663for var in reload_cmds \
13664old_postinstall_cmds \
13665old_postuninstall_cmds \
13666old_archive_cmds \
13667extract_expsyms_cmds \
13668old_archive_from_new_cmds \
13669old_archive_from_expsyms_cmds \
13670archive_cmds \
13671archive_expsym_cmds \
13672module_cmds \
13673module_expsym_cmds \
13674export_symbols_cmds \
13675prelink_cmds \
13676postlink_cmds \
13677postinstall_cmds \
13678postuninstall_cmds \
13679finish_cmds \
13680sys_lib_search_path_spec \
13681sys_lib_dlsearch_path_spec; do
13682    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13683    *[\\\\\\\`\\"\\\$]*)
13684      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13685      ;;
13686    *)
13687      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13688      ;;
13689    esac
13690done
13691
13692ac_aux_dir='$ac_aux_dir'
13693
13694# See if we are running on zsh, and set the options that allow our
13695# commands through without removal of \ escapes INIT.
13696if test -n "\${ZSH_VERSION+set}"; then
13697   setopt NO_GLOB_SUBST
13698fi
13699
13700
13701    PACKAGE='$PACKAGE'
13702    VERSION='$VERSION'
13703    RM='$RM'
13704    ofile='$ofile'
13705
13706
13707
13708
13709_ACEOF
13710
13711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712
13713# Handling of arguments.
13714for ac_config_target in $ac_config_targets
13715do
13716  case $ac_config_target in
13717    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
13718    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13719    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13720    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13721    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13722    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
13723    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13724    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
13725
13726  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13727  esac
13728done
13729
13730
13731# If the user did not use the arguments to specify the items to instantiate,
13732# then the envvar interface is used.  Set only those that are not.
13733# We use the long form for the default assignment because of an extremely
13734# bizarre bug on SunOS 4.1.3.
13735if $ac_need_defaults; then
13736  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13737  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13738  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13739fi
13740
13741# Have a temporary directory for convenience.  Make it in the build tree
13742# simply because there is no reason against having it here, and in addition,
13743# creating and moving files from /tmp can sometimes cause problems.
13744# Hook for its removal unless debugging.
13745# Note that there is a small window in which the directory will not be cleaned:
13746# after its creation but before its name has been assigned to `$tmp'.
13747$debug ||
13748{
13749  tmp= ac_tmp=
13750  trap 'exit_status=$?
13751  : "${ac_tmp:=$tmp}"
13752  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13753' 0
13754  trap 'as_fn_exit 1' 1 2 13 15
13755}
13756# Create a (secure) tmp directory for tmp files.
13757
13758{
13759  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13760  test -d "$tmp"
13761}  ||
13762{
13763  tmp=./conf$$-$RANDOM
13764  (umask 077 && mkdir "$tmp")
13765} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13766ac_tmp=$tmp
13767
13768# Set up the scripts for CONFIG_FILES section.
13769# No need to generate them if there are no CONFIG_FILES.
13770# This happens for instance with `./config.status config.h'.
13771if test -n "$CONFIG_FILES"; then
13772
13773
13774ac_cr=`echo X | tr X '\015'`
13775# On cygwin, bash can eat \r inside `` if the user requested igncr.
13776# But we know of no other shell where ac_cr would be empty at this
13777# point, so we can use a bashism as a fallback.
13778if test "x$ac_cr" = x; then
13779  eval ac_cr=\$\'\\r\'
13780fi
13781ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13782if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13783  ac_cs_awk_cr='\\r'
13784else
13785  ac_cs_awk_cr=$ac_cr
13786fi
13787
13788echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13789_ACEOF
13790
13791
13792{
13793  echo "cat >conf$$subs.awk <<_ACEOF" &&
13794  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13795  echo "_ACEOF"
13796} >conf$$subs.sh ||
13797  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13798ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13799ac_delim='%!_!# '
13800for ac_last_try in false false false false false :; do
13801  . ./conf$$subs.sh ||
13802    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13803
13804  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13805  if test $ac_delim_n = $ac_delim_num; then
13806    break
13807  elif $ac_last_try; then
13808    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13809  else
13810    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13811  fi
13812done
13813rm -f conf$$subs.sh
13814
13815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13817_ACEOF
13818sed -n '
13819h
13820s/^/S["/; s/!.*/"]=/
13821p
13822g
13823s/^[^!]*!//
13824:repl
13825t repl
13826s/'"$ac_delim"'$//
13827t delim
13828:nl
13829h
13830s/\(.\{148\}\)..*/\1/
13831t more1
13832s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13833p
13834n
13835b repl
13836:more1
13837s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13838p
13839g
13840s/.\{148\}//
13841t nl
13842:delim
13843h
13844s/\(.\{148\}\)..*/\1/
13845t more2
13846s/["\\]/\\&/g; s/^/"/; s/$/"/
13847p
13848b
13849:more2
13850s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13851p
13852g
13853s/.\{148\}//
13854t delim
13855' <conf$$subs.awk | sed '
13856/^[^""]/{
13857  N
13858  s/\n//
13859}
13860' >>$CONFIG_STATUS || ac_write_fail=1
13861rm -f conf$$subs.awk
13862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863_ACAWK
13864cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13865  for (key in S) S_is_set[key] = 1
13866  FS = ""
13867
13868}
13869{
13870  line = $ 0
13871  nfields = split(line, field, "@")
13872  substed = 0
13873  len = length(field[1])
13874  for (i = 2; i < nfields; i++) {
13875    key = field[i]
13876    keylen = length(key)
13877    if (S_is_set[key]) {
13878      value = S[key]
13879      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13880      len += length(value) + length(field[++i])
13881      substed = 1
13882    } else
13883      len += 1 + keylen
13884  }
13885
13886  print line
13887}
13888
13889_ACAWK
13890_ACEOF
13891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13892if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13893  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13894else
13895  cat
13896fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13897  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13898_ACEOF
13899
13900# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13901# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13902# trailing colons and then remove the whole line if VPATH becomes empty
13903# (actually we leave an empty line to preserve line numbers).
13904if test "x$srcdir" = x.; then
13905  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13906h
13907s///
13908s/^/:/
13909s/[	 ]*$/:/
13910s/:\$(srcdir):/:/g
13911s/:\${srcdir}:/:/g
13912s/:@srcdir@:/:/g
13913s/^:*//
13914s/:*$//
13915x
13916s/\(=[	 ]*\).*/\1/
13917G
13918s/\n//
13919s/^[^=]*=[	 ]*$//
13920}'
13921fi
13922
13923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13924fi # test -n "$CONFIG_FILES"
13925
13926# Set up the scripts for CONFIG_HEADERS section.
13927# No need to generate them if there are no CONFIG_HEADERS.
13928# This happens for instance with `./config.status Makefile'.
13929if test -n "$CONFIG_HEADERS"; then
13930cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13931BEGIN {
13932_ACEOF
13933
13934# Transform confdefs.h into an awk script `defines.awk', embedded as
13935# here-document in config.status, that substitutes the proper values into
13936# config.h.in to produce config.h.
13937
13938# Create a delimiter string that does not exist in confdefs.h, to ease
13939# handling of long lines.
13940ac_delim='%!_!# '
13941for ac_last_try in false false :; do
13942  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13943  if test -z "$ac_tt"; then
13944    break
13945  elif $ac_last_try; then
13946    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13947  else
13948    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13949  fi
13950done
13951
13952# For the awk script, D is an array of macro values keyed by name,
13953# likewise P contains macro parameters if any.  Preserve backslash
13954# newline sequences.
13955
13956ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13957sed -n '
13958s/.\{148\}/&'"$ac_delim"'/g
13959t rset
13960:rset
13961s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13962t def
13963d
13964:def
13965s/\\$//
13966t bsnl
13967s/["\\]/\\&/g
13968s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13969D["\1"]=" \3"/p
13970s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13971d
13972:bsnl
13973s/["\\]/\\&/g
13974s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13975D["\1"]=" \3\\\\\\n"\\/p
13976t cont
13977s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13978t cont
13979d
13980:cont
13981n
13982s/.\{148\}/&'"$ac_delim"'/g
13983t clear
13984:clear
13985s/\\$//
13986t bsnlc
13987s/["\\]/\\&/g; s/^/"/; s/$/"/p
13988d
13989:bsnlc
13990s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13991b cont
13992' <confdefs.h | sed '
13993s/'"$ac_delim"'/"\\\
13994"/g' >>$CONFIG_STATUS || ac_write_fail=1
13995
13996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13997  for (key in D) D_is_set[key] = 1
13998  FS = ""
13999}
14000/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14001  line = \$ 0
14002  split(line, arg, " ")
14003  if (arg[1] == "#") {
14004    defundef = arg[2]
14005    mac1 = arg[3]
14006  } else {
14007    defundef = substr(arg[1], 2)
14008    mac1 = arg[2]
14009  }
14010  split(mac1, mac2, "(") #)
14011  macro = mac2[1]
14012  prefix = substr(line, 1, index(line, defundef) - 1)
14013  if (D_is_set[macro]) {
14014    # Preserve the white space surrounding the "#".
14015    print prefix "define", macro P[macro] D[macro]
14016    next
14017  } else {
14018    # Replace #undef with comments.  This is necessary, for example,
14019    # in the case of _POSIX_SOURCE, which is predefined and required
14020    # on some systems where configure will not decide to define it.
14021    if (defundef == "undef") {
14022      print "/*", prefix defundef, macro, "*/"
14023      next
14024    }
14025  }
14026}
14027{ print }
14028_ACAWK
14029_ACEOF
14030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14032fi # test -n "$CONFIG_HEADERS"
14033
14034
14035eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14036shift
14037for ac_tag
14038do
14039  case $ac_tag in
14040  :[FHLC]) ac_mode=$ac_tag; continue;;
14041  esac
14042  case $ac_mode$ac_tag in
14043  :[FHL]*:*);;
14044  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14045  :[FH]-) ac_tag=-:-;;
14046  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14047  esac
14048  ac_save_IFS=$IFS
14049  IFS=:
14050  set x $ac_tag
14051  IFS=$ac_save_IFS
14052  shift
14053  ac_file=$1
14054  shift
14055
14056  case $ac_mode in
14057  :L) ac_source=$1;;
14058  :[FH])
14059    ac_file_inputs=
14060    for ac_f
14061    do
14062      case $ac_f in
14063      -) ac_f="$ac_tmp/stdin";;
14064      *) # Look for the file first in the build tree, then in the source tree
14065	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14066	 # because $ac_f cannot contain `:'.
14067	 test -f "$ac_f" ||
14068	   case $ac_f in
14069	   [\\/$]*) false;;
14070	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14071	   esac ||
14072	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14073      esac
14074      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14075      as_fn_append ac_file_inputs " '$ac_f'"
14076    done
14077
14078    # Let's still pretend it is `configure' which instantiates (i.e., don't
14079    # use $as_me), people would be surprised to read:
14080    #    /* config.h.  Generated by config.status.  */
14081    configure_input='Generated from '`
14082	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14083	`' by configure.'
14084    if test x"$ac_file" != x-; then
14085      configure_input="$ac_file.  $configure_input"
14086      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14087$as_echo "$as_me: creating $ac_file" >&6;}
14088    fi
14089    # Neutralize special characters interpreted by sed in replacement strings.
14090    case $configure_input in #(
14091    *\&* | *\|* | *\\* )
14092       ac_sed_conf_input=`$as_echo "$configure_input" |
14093       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14094    *) ac_sed_conf_input=$configure_input;;
14095    esac
14096
14097    case $ac_tag in
14098    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14099      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14100    esac
14101    ;;
14102  esac
14103
14104  ac_dir=`$as_dirname -- "$ac_file" ||
14105$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14106	 X"$ac_file" : 'X\(//\)[^/]' \| \
14107	 X"$ac_file" : 'X\(//\)$' \| \
14108	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14109$as_echo X"$ac_file" |
14110    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14111	    s//\1/
14112	    q
14113	  }
14114	  /^X\(\/\/\)[^/].*/{
14115	    s//\1/
14116	    q
14117	  }
14118	  /^X\(\/\/\)$/{
14119	    s//\1/
14120	    q
14121	  }
14122	  /^X\(\/\).*/{
14123	    s//\1/
14124	    q
14125	  }
14126	  s/.*/./; q'`
14127  as_dir="$ac_dir"; as_fn_mkdir_p
14128  ac_builddir=.
14129
14130case "$ac_dir" in
14131.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14132*)
14133  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14134  # A ".." for each directory in $ac_dir_suffix.
14135  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14136  case $ac_top_builddir_sub in
14137  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14138  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14139  esac ;;
14140esac
14141ac_abs_top_builddir=$ac_pwd
14142ac_abs_builddir=$ac_pwd$ac_dir_suffix
14143# for backward compatibility:
14144ac_top_builddir=$ac_top_build_prefix
14145
14146case $srcdir in
14147  .)  # We are building in place.
14148    ac_srcdir=.
14149    ac_top_srcdir=$ac_top_builddir_sub
14150    ac_abs_top_srcdir=$ac_pwd ;;
14151  [\\/]* | ?:[\\/]* )  # Absolute name.
14152    ac_srcdir=$srcdir$ac_dir_suffix;
14153    ac_top_srcdir=$srcdir
14154    ac_abs_top_srcdir=$srcdir ;;
14155  *) # Relative name.
14156    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14157    ac_top_srcdir=$ac_top_build_prefix$srcdir
14158    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14159esac
14160ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14161
14162
14163  case $ac_mode in
14164  :F)
14165  #
14166  # CONFIG_FILE
14167  #
14168
14169  case $INSTALL in
14170  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14171  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14172  esac
14173  ac_MKDIR_P=$MKDIR_P
14174  case $MKDIR_P in
14175  [\\/$]* | ?:[\\/]* ) ;;
14176  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14177  esac
14178_ACEOF
14179
14180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14181# If the template does not know about datarootdir, expand it.
14182# FIXME: This hack should be removed a few years after 2.60.
14183ac_datarootdir_hack=; ac_datarootdir_seen=
14184ac_sed_dataroot='
14185/datarootdir/ {
14186  p
14187  q
14188}
14189/@datadir@/p
14190/@docdir@/p
14191/@infodir@/p
14192/@localedir@/p
14193/@mandir@/p'
14194case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14195*datarootdir*) ac_datarootdir_seen=yes;;
14196*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14197  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14198$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14199_ACEOF
14200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201  ac_datarootdir_hack='
14202  s&@datadir@&$datadir&g
14203  s&@docdir@&$docdir&g
14204  s&@infodir@&$infodir&g
14205  s&@localedir@&$localedir&g
14206  s&@mandir@&$mandir&g
14207  s&\\\${datarootdir}&$datarootdir&g' ;;
14208esac
14209_ACEOF
14210
14211# Neutralize VPATH when `$srcdir' = `.'.
14212# Shell code in configure.ac might set extrasub.
14213# FIXME: do we really want to maintain this feature?
14214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14215ac_sed_extra="$ac_vpsub
14216$extrasub
14217_ACEOF
14218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14219:t
14220/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14221s|@configure_input@|$ac_sed_conf_input|;t t
14222s&@top_builddir@&$ac_top_builddir_sub&;t t
14223s&@top_build_prefix@&$ac_top_build_prefix&;t t
14224s&@srcdir@&$ac_srcdir&;t t
14225s&@abs_srcdir@&$ac_abs_srcdir&;t t
14226s&@top_srcdir@&$ac_top_srcdir&;t t
14227s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14228s&@builddir@&$ac_builddir&;t t
14229s&@abs_builddir@&$ac_abs_builddir&;t t
14230s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14231s&@INSTALL@&$ac_INSTALL&;t t
14232s&@MKDIR_P@&$ac_MKDIR_P&;t t
14233$ac_datarootdir_hack
14234"
14235eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14236  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14237
14238test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14239  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14240  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14241      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14242  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14243which seems to be undefined.  Please make sure it is defined" >&5
14244$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14245which seems to be undefined.  Please make sure it is defined" >&2;}
14246
14247  rm -f "$ac_tmp/stdin"
14248  case $ac_file in
14249  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14250  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14251  esac \
14252  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14253 ;;
14254  :H)
14255  #
14256  # CONFIG_HEADER
14257  #
14258  if test x"$ac_file" != x-; then
14259    {
14260      $as_echo "/* $configure_input  */" \
14261      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14262    } >"$ac_tmp/config.h" \
14263      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14264    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14265      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14266$as_echo "$as_me: $ac_file is unchanged" >&6;}
14267    else
14268      rm -f "$ac_file"
14269      mv "$ac_tmp/config.h" "$ac_file" \
14270	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14271    fi
14272  else
14273    $as_echo "/* $configure_input  */" \
14274      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14275      || as_fn_error $? "could not create -" "$LINENO" 5
14276  fi
14277# Compute "$ac_file"'s index in $config_headers.
14278_am_arg="$ac_file"
14279_am_stamp_count=1
14280for _am_header in $config_headers :; do
14281  case $_am_header in
14282    $_am_arg | $_am_arg:* )
14283      break ;;
14284    * )
14285      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14286  esac
14287done
14288echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14289$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14290	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14291	 X"$_am_arg" : 'X\(//\)$' \| \
14292	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14293$as_echo X"$_am_arg" |
14294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14295	    s//\1/
14296	    q
14297	  }
14298	  /^X\(\/\/\)[^/].*/{
14299	    s//\1/
14300	    q
14301	  }
14302	  /^X\(\/\/\)$/{
14303	    s//\1/
14304	    q
14305	  }
14306	  /^X\(\/\).*/{
14307	    s//\1/
14308	    q
14309	  }
14310	  s/.*/./; q'`/stamp-h$_am_stamp_count
14311 ;;
14312
14313  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14314$as_echo "$as_me: executing $ac_file commands" >&6;}
14315 ;;
14316  esac
14317
14318
14319  case $ac_file$ac_mode in
14320    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14321  # Older Autoconf quotes --file arguments for eval, but not when files
14322  # are listed without --file.  Let's play safe and only enable the eval
14323  # if we detect the quoting.
14324  case $CONFIG_FILES in
14325  *\'*) eval set x "$CONFIG_FILES" ;;
14326  *)   set x $CONFIG_FILES ;;
14327  esac
14328  shift
14329  for mf
14330  do
14331    # Strip MF so we end up with the name of the file.
14332    mf=`echo "$mf" | sed -e 's/:.*$//'`
14333    # Check whether this is an Automake generated Makefile or not.
14334    # We used to match only the files named 'Makefile.in', but
14335    # some people rename them; so instead we look at the file content.
14336    # Grep'ing the first line is not enough: some people post-process
14337    # each Makefile.in and add a new line on top of each file to say so.
14338    # Grep'ing the whole file is not good either: AIX grep has a line
14339    # limit of 2048, but all sed's we know have understand at least 4000.
14340    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14341      dirpart=`$as_dirname -- "$mf" ||
14342$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14343	 X"$mf" : 'X\(//\)[^/]' \| \
14344	 X"$mf" : 'X\(//\)$' \| \
14345	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14346$as_echo X"$mf" |
14347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14348	    s//\1/
14349	    q
14350	  }
14351	  /^X\(\/\/\)[^/].*/{
14352	    s//\1/
14353	    q
14354	  }
14355	  /^X\(\/\/\)$/{
14356	    s//\1/
14357	    q
14358	  }
14359	  /^X\(\/\).*/{
14360	    s//\1/
14361	    q
14362	  }
14363	  s/.*/./; q'`
14364    else
14365      continue
14366    fi
14367    # Extract the definition of DEPDIR, am__include, and am__quote
14368    # from the Makefile without running 'make'.
14369    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14370    test -z "$DEPDIR" && continue
14371    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14372    test -z "$am__include" && continue
14373    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14374    # Find all dependency output files, they are included files with
14375    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14376    # simplest approach to changing $(DEPDIR) to its actual value in the
14377    # expansion.
14378    for file in `sed -n "
14379      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14380	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14381      # Make sure the directory exists.
14382      test -f "$dirpart/$file" && continue
14383      fdir=`$as_dirname -- "$file" ||
14384$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14385	 X"$file" : 'X\(//\)[^/]' \| \
14386	 X"$file" : 'X\(//\)$' \| \
14387	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14388$as_echo X"$file" |
14389    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14390	    s//\1/
14391	    q
14392	  }
14393	  /^X\(\/\/\)[^/].*/{
14394	    s//\1/
14395	    q
14396	  }
14397	  /^X\(\/\/\)$/{
14398	    s//\1/
14399	    q
14400	  }
14401	  /^X\(\/\).*/{
14402	    s//\1/
14403	    q
14404	  }
14405	  s/.*/./; q'`
14406      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14407      # echo "creating $dirpart/$file"
14408      echo '# dummy' > "$dirpart/$file"
14409    done
14410  done
14411}
14412 ;;
14413    "libtool":C)
14414
14415    # See if we are running on zsh, and set the options that allow our
14416    # commands through without removal of \ escapes.
14417    if test -n "${ZSH_VERSION+set}"; then
14418      setopt NO_GLOB_SUBST
14419    fi
14420
14421    cfgfile=${ofile}T
14422    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14423    $RM "$cfgfile"
14424
14425    cat <<_LT_EOF >> "$cfgfile"
14426#! $SHELL
14427# Generated automatically by $as_me ($PACKAGE) $VERSION
14428# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14429# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14430
14431# Provide generalized library-building support services.
14432# Written by Gordon Matzigkeit, 1996
14433
14434# Copyright (C) 2014 Free Software Foundation, Inc.
14435# This is free software; see the source for copying conditions.  There is NO
14436# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14437
14438# GNU Libtool is free software; you can redistribute it and/or modify
14439# it under the terms of the GNU General Public License as published by
14440# the Free Software Foundation; either version 2 of of the License, or
14441# (at your option) any later version.
14442#
14443# As a special exception to the GNU General Public License, if you
14444# distribute this file as part of a program or library that is built
14445# using GNU Libtool, you may include this file under the  same
14446# distribution terms that you use for the rest of that program.
14447#
14448# GNU Libtool is distributed in the hope that it will be useful, but
14449# WITHOUT ANY WARRANTY; without even the implied warranty of
14450# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14451# GNU General Public License for more details.
14452#
14453# You should have received a copy of the GNU General Public License
14454# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14455
14456
14457# The names of the tagged configurations supported by this script.
14458available_tags=''
14459
14460# ### BEGIN LIBTOOL CONFIG
14461
14462# Which release of libtool.m4 was used?
14463macro_version=$macro_version
14464macro_revision=$macro_revision
14465
14466# Whether or not to build shared libraries.
14467build_libtool_libs=$enable_shared
14468
14469# Whether or not to build static libraries.
14470build_old_libs=$enable_static
14471
14472# What type of objects to build.
14473pic_mode=$pic_mode
14474
14475# Whether or not to optimize for fast installation.
14476fast_install=$enable_fast_install
14477
14478# Shared archive member basename,for filename based shared library versioning on AIX.
14479shared_archive_member_spec=$shared_archive_member_spec
14480
14481# Shell to use when invoking shell scripts.
14482SHELL=$lt_SHELL
14483
14484# An echo program that protects backslashes.
14485ECHO=$lt_ECHO
14486
14487# The PATH separator for the build system.
14488PATH_SEPARATOR=$lt_PATH_SEPARATOR
14489
14490# The host system.
14491host_alias=$host_alias
14492host=$host
14493host_os=$host_os
14494
14495# The build system.
14496build_alias=$build_alias
14497build=$build
14498build_os=$build_os
14499
14500# A sed program that does not truncate output.
14501SED=$lt_SED
14502
14503# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14504Xsed="\$SED -e 1s/^X//"
14505
14506# A grep program that handles long lines.
14507GREP=$lt_GREP
14508
14509# An ERE matcher.
14510EGREP=$lt_EGREP
14511
14512# A literal string matcher.
14513FGREP=$lt_FGREP
14514
14515# A BSD- or MS-compatible name lister.
14516NM=$lt_NM
14517
14518# Whether we need soft or hard links.
14519LN_S=$lt_LN_S
14520
14521# What is the maximum length of a command?
14522max_cmd_len=$max_cmd_len
14523
14524# Object file suffix (normally "o").
14525objext=$ac_objext
14526
14527# Executable file suffix (normally "").
14528exeext=$exeext
14529
14530# whether the shell understands "unset".
14531lt_unset=$lt_unset
14532
14533# turn spaces into newlines.
14534SP2NL=$lt_lt_SP2NL
14535
14536# turn newlines into spaces.
14537NL2SP=$lt_lt_NL2SP
14538
14539# convert \$build file names to \$host format.
14540to_host_file_cmd=$lt_cv_to_host_file_cmd
14541
14542# convert \$build files to toolchain format.
14543to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14544
14545# An object symbol dumper.
14546OBJDUMP=$lt_OBJDUMP
14547
14548# Method to check whether dependent libraries are shared objects.
14549deplibs_check_method=$lt_deplibs_check_method
14550
14551# Command to use when deplibs_check_method = "file_magic".
14552file_magic_cmd=$lt_file_magic_cmd
14553
14554# How to find potential files when deplibs_check_method = "file_magic".
14555file_magic_glob=$lt_file_magic_glob
14556
14557# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14558want_nocaseglob=$lt_want_nocaseglob
14559
14560# DLL creation program.
14561DLLTOOL=$lt_DLLTOOL
14562
14563# Command to associate shared and link libraries.
14564sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14565
14566# The archiver.
14567AR=$lt_AR
14568
14569# Flags to create an archive.
14570AR_FLAGS=$lt_AR_FLAGS
14571
14572# How to feed a file listing to the archiver.
14573archiver_list_spec=$lt_archiver_list_spec
14574
14575# A symbol stripping program.
14576STRIP=$lt_STRIP
14577
14578# Commands used to install an old-style archive.
14579RANLIB=$lt_RANLIB
14580old_postinstall_cmds=$lt_old_postinstall_cmds
14581old_postuninstall_cmds=$lt_old_postuninstall_cmds
14582
14583# Whether to use a lock for old archive extraction.
14584lock_old_archive_extraction=$lock_old_archive_extraction
14585
14586# A C compiler.
14587LTCC=$lt_CC
14588
14589# LTCC compiler flags.
14590LTCFLAGS=$lt_CFLAGS
14591
14592# Take the output of nm and produce a listing of raw symbols and C names.
14593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14594
14595# Transform the output of nm in a proper C declaration.
14596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14597
14598# Transform the output of nm into a list of symbols to manually relocate.
14599global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14600
14601# Transform the output of nm in a C name address pair.
14602global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14603
14604# Transform the output of nm in a C name address pair when lib prefix is needed.
14605global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14606
14607# The name lister interface.
14608nm_interface=$lt_lt_cv_nm_interface
14609
14610# Specify filename containing input files for \$NM.
14611nm_file_list_spec=$lt_nm_file_list_spec
14612
14613# The root where to search for dependent libraries,and where our libraries should be installed.
14614lt_sysroot=$lt_sysroot
14615
14616# Command to truncate a binary pipe.
14617lt_truncate_bin=$lt_lt_cv_truncate_bin
14618
14619# The name of the directory that contains temporary libtool files.
14620objdir=$objdir
14621
14622# Used to examine libraries when file_magic_cmd begins with "file".
14623MAGIC_CMD=$MAGIC_CMD
14624
14625# Must we lock files when doing compilation?
14626need_locks=$lt_need_locks
14627
14628# Manifest tool.
14629MANIFEST_TOOL=$lt_MANIFEST_TOOL
14630
14631# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14632DSYMUTIL=$lt_DSYMUTIL
14633
14634# Tool to change global to local symbols on Mac OS X.
14635NMEDIT=$lt_NMEDIT
14636
14637# Tool to manipulate fat objects and archives on Mac OS X.
14638LIPO=$lt_LIPO
14639
14640# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14641OTOOL=$lt_OTOOL
14642
14643# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14644OTOOL64=$lt_OTOOL64
14645
14646# Old archive suffix (normally "a").
14647libext=$libext
14648
14649# Shared library suffix (normally ".so").
14650shrext_cmds=$lt_shrext_cmds
14651
14652# The commands to extract the exported symbol list from a shared archive.
14653extract_expsyms_cmds=$lt_extract_expsyms_cmds
14654
14655# Variables whose values should be saved in libtool wrapper scripts and
14656# restored at link time.
14657variables_saved_for_relink=$lt_variables_saved_for_relink
14658
14659# Do we need the "lib" prefix for modules?
14660need_lib_prefix=$need_lib_prefix
14661
14662# Do we need a version for libraries?
14663need_version=$need_version
14664
14665# Library versioning type.
14666version_type=$version_type
14667
14668# Shared library runtime path variable.
14669runpath_var=$runpath_var
14670
14671# Shared library path variable.
14672shlibpath_var=$shlibpath_var
14673
14674# Is shlibpath searched before the hard-coded library search path?
14675shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14676
14677# Format of library name prefix.
14678libname_spec=$lt_libname_spec
14679
14680# List of archive names.  First name is the real one, the rest are links.
14681# The last name is the one that the linker finds with -lNAME
14682library_names_spec=$lt_library_names_spec
14683
14684# The coded name of the library, if different from the real name.
14685soname_spec=$lt_soname_spec
14686
14687# Permission mode override for installation of shared libraries.
14688install_override_mode=$lt_install_override_mode
14689
14690# Command to use after installation of a shared archive.
14691postinstall_cmds=$lt_postinstall_cmds
14692
14693# Command to use after uninstallation of a shared archive.
14694postuninstall_cmds=$lt_postuninstall_cmds
14695
14696# Commands used to finish a libtool library installation in a directory.
14697finish_cmds=$lt_finish_cmds
14698
14699# As "finish_cmds", except a single script fragment to be evaled but
14700# not shown.
14701finish_eval=$lt_finish_eval
14702
14703# Whether we should hardcode library paths into libraries.
14704hardcode_into_libs=$hardcode_into_libs
14705
14706# Compile-time system search path for libraries.
14707sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14708
14709# Run-time system search path for libraries.
14710sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14711
14712# Whether dlopen is supported.
14713dlopen_support=$enable_dlopen
14714
14715# Whether dlopen of programs is supported.
14716dlopen_self=$enable_dlopen_self
14717
14718# Whether dlopen of statically linked programs is supported.
14719dlopen_self_static=$enable_dlopen_self_static
14720
14721# Commands to strip libraries.
14722old_striplib=$lt_old_striplib
14723striplib=$lt_striplib
14724
14725
14726# The linker used to build libraries.
14727LD=$lt_LD
14728
14729# How to create reloadable object files.
14730reload_flag=$lt_reload_flag
14731reload_cmds=$lt_reload_cmds
14732
14733# Commands used to build an old-style archive.
14734old_archive_cmds=$lt_old_archive_cmds
14735
14736# A language specific compiler.
14737CC=$lt_compiler
14738
14739# Is the compiler the GNU compiler?
14740with_gcc=$GCC
14741
14742# Compiler flag to turn off builtin functions.
14743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14744
14745# Additional compiler flags for building library objects.
14746pic_flag=$lt_lt_prog_compiler_pic
14747
14748# How to pass a linker flag through the compiler.
14749wl=$lt_lt_prog_compiler_wl
14750
14751# Compiler flag to prevent dynamic linking.
14752link_static_flag=$lt_lt_prog_compiler_static
14753
14754# Does compiler simultaneously support -c and -o options?
14755compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14756
14757# Whether or not to add -lc for building shared libraries.
14758build_libtool_need_lc=$archive_cmds_need_lc
14759
14760# Whether or not to disallow shared libs when runtime libs are static.
14761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14762
14763# Compiler flag to allow reflexive dlopens.
14764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14765
14766# Compiler flag to generate shared objects directly from archives.
14767whole_archive_flag_spec=$lt_whole_archive_flag_spec
14768
14769# Whether the compiler copes with passing no objects directly.
14770compiler_needs_object=$lt_compiler_needs_object
14771
14772# Create an old-style archive from a shared archive.
14773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14774
14775# Create a temporary old-style archive to link instead of a shared archive.
14776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14777
14778# Commands used to build a shared archive.
14779archive_cmds=$lt_archive_cmds
14780archive_expsym_cmds=$lt_archive_expsym_cmds
14781
14782# Commands used to build a loadable module if different from building
14783# a shared archive.
14784module_cmds=$lt_module_cmds
14785module_expsym_cmds=$lt_module_expsym_cmds
14786
14787# Whether we are building with GNU ld or not.
14788with_gnu_ld=$lt_with_gnu_ld
14789
14790# Flag that allows shared libraries with undefined symbols to be built.
14791allow_undefined_flag=$lt_allow_undefined_flag
14792
14793# Flag that enforces no undefined symbols.
14794no_undefined_flag=$lt_no_undefined_flag
14795
14796# Flag to hardcode \$libdir into a binary during linking.
14797# This must work even if \$libdir does not exist
14798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14799
14800# Whether we need a single "-rpath" flag with a separated argument.
14801hardcode_libdir_separator=$lt_hardcode_libdir_separator
14802
14803# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14804# DIR into the resulting binary.
14805hardcode_direct=$hardcode_direct
14806
14807# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14808# DIR into the resulting binary and the resulting library dependency is
14809# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14810# library is relocated.
14811hardcode_direct_absolute=$hardcode_direct_absolute
14812
14813# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14814# into the resulting binary.
14815hardcode_minus_L=$hardcode_minus_L
14816
14817# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14818# into the resulting binary.
14819hardcode_shlibpath_var=$hardcode_shlibpath_var
14820
14821# Set to "yes" if building a shared library automatically hardcodes DIR
14822# into the library and all subsequent libraries and executables linked
14823# against it.
14824hardcode_automatic=$hardcode_automatic
14825
14826# Set to yes if linker adds runtime paths of dependent libraries
14827# to runtime path list.
14828inherit_rpath=$inherit_rpath
14829
14830# Whether libtool must link a program against all its dependency libraries.
14831link_all_deplibs=$link_all_deplibs
14832
14833# Set to "yes" if exported symbols are required.
14834always_export_symbols=$always_export_symbols
14835
14836# The commands to list exported symbols.
14837export_symbols_cmds=$lt_export_symbols_cmds
14838
14839# Symbols that should not be listed in the preloaded symbols.
14840exclude_expsyms=$lt_exclude_expsyms
14841
14842# Symbols that must always be exported.
14843include_expsyms=$lt_include_expsyms
14844
14845# Commands necessary for linking programs (against libraries) with templates.
14846prelink_cmds=$lt_prelink_cmds
14847
14848# Commands necessary for finishing linking programs.
14849postlink_cmds=$lt_postlink_cmds
14850
14851# Specify filename containing input files.
14852file_list_spec=$lt_file_list_spec
14853
14854# How to hardcode a shared library path into an executable.
14855hardcode_action=$hardcode_action
14856
14857# ### END LIBTOOL CONFIG
14858
14859_LT_EOF
14860
14861  case $host_os in
14862  aix3*)
14863    cat <<\_LT_EOF >> "$cfgfile"
14864# AIX sometimes has problems with the GCC collect2 program.  For some
14865# reason, if we set the COLLECT_NAMES environment variable, the problems
14866# vanish in a puff of smoke.
14867if test set != "${COLLECT_NAMES+set}"; then
14868  COLLECT_NAMES=
14869  export COLLECT_NAMES
14870fi
14871_LT_EOF
14872    ;;
14873  esac
14874
14875
14876ltmain=$ac_aux_dir/ltmain.sh
14877
14878
14879  # We use sed instead of cat because bash on DJGPP gets confused if
14880  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14881  # text mode, it properly converts lines to CR/LF.  This bash problem
14882  # is reportedly fixed, but why not run on old versions too?
14883  sed '$q' "$ltmain" >> "$cfgfile" \
14884     || (rm -f "$cfgfile"; exit 1)
14885
14886   mv -f "$cfgfile" "$ofile" ||
14887    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14888  chmod +x "$ofile"
14889
14890 ;;
14891
14892  esac
14893done # for ac_tag
14894
14895
14896as_fn_exit 0
14897_ACEOF
14898ac_clean_files=$ac_clean_files_save
14899
14900test $ac_write_fail = 0 ||
14901  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14902
14903
14904# configure is writing to config.log, and then calls config.status.
14905# config.status does its own redirection, appending to config.log.
14906# Unfortunately, on DOS this fails, as config.log is still kept open
14907# by configure, so config.status won't be able to write to it; its
14908# output is simply discarded.  So we exec the FD to /dev/null,
14909# effectively closing config.log, so it can be properly (re)opened and
14910# appended to by config.status.  When coming back to configure, we
14911# need to make the FD available again.
14912if test "$no_create" != yes; then
14913  ac_cs_success=:
14914  ac_config_status_args=
14915  test "$silent" = yes &&
14916    ac_config_status_args="$ac_config_status_args --quiet"
14917  exec 5>/dev/null
14918  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14919  exec 5>>config.log
14920  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14921  # would make configure fail if this is the last instruction.
14922  $ac_cs_success || as_fn_exit 1
14923fi
14924if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14925  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14926$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14927fi
14928
14929