xref: /iperf/configure (revision 5d2f2cf9)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for iperf 3.0.1.
4#
5# Report bugs to <https://github.com/esnet/iperf>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $ECHO works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<_LT_EOF
606$*
607_LT_EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616  if test "X${echo_test_string+set}" != Xset; then
617    # find a string as large as possible, as long as the shell can cope with it
618    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622      then
623        break
624      fi
625    done
626  fi
627
628  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631    :
632  else
633    # The Solaris, AIX, and Digital Unix default echo programs unquote
634    # backslashes.  This makes it impossible to quote backslashes using
635    #   echo "$something" | sed 's/\\/\\\\/g'
636    #
637    # So, first we look for a working echo in the user's PATH.
638
639    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640    for dir in $PATH /usr/ucb; do
641      IFS="$lt_save_ifs"
642      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645         test "X$echo_testing_string" = "X$echo_test_string"; then
646        ECHO="$dir/echo"
647        break
648      fi
649    done
650    IFS="$lt_save_ifs"
651
652    if test "X$ECHO" = Xecho; then
653      # We didn't find a better echo, so look for alternatives.
654      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656         test "X$echo_testing_string" = "X$echo_test_string"; then
657        # This shell has a builtin print -r that does the trick.
658        ECHO='print -r'
659      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660	   test "X$CONFIG_SHELL" != X/bin/ksh; then
661        # If we have ksh, try running configure again with it.
662        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663        export ORIGINAL_CONFIG_SHELL
664        CONFIG_SHELL=/bin/ksh
665        export CONFIG_SHELL
666        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667      else
668        # Try using printf.
669        ECHO='printf %s\n'
670        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672	   test "X$echo_testing_string" = "X$echo_test_string"; then
673	  # Cool, printf works
674	  :
675        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676	     test "X$echo_testing_string" = 'X\t' &&
677	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678	     test "X$echo_testing_string" = "X$echo_test_string"; then
679	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680	  export CONFIG_SHELL
681	  SHELL="$CONFIG_SHELL"
682	  export SHELL
683	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
684        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685	     test "X$echo_testing_string" = 'X\t' &&
686	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687	     test "X$echo_testing_string" = "X$echo_test_string"; then
688	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
689        else
690	  # maybe with a smaller string...
691	  prev=:
692
693	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695	    then
696	      break
697	    fi
698	    prev="$cmd"
699	  done
700
701	  if test "$prev" != 'sed 50q "$0"'; then
702	    echo_test_string=`eval $prev`
703	    export echo_test_string
704	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705	  else
706	    # Oops.  We lost completely, so just stick with echo.
707	    ECHO=echo
708	  fi
709        fi
710      fi
711    fi
712  fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
726
727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
745# Identity of this package.
746PACKAGE_NAME='iperf'
747PACKAGE_TARNAME='iperf'
748PACKAGE_VERSION='3.0.1'
749PACKAGE_STRING='iperf 3.0.1'
750PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766#  include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771#  include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
788ac_subst_vars='am__EXEEXT_FALSE
789am__EXEEXT_TRUE
790LTLIBOBJS
791LIBOBJS
792LINUX_FALSE
793LINUX_TRUE
794CPP
795OTOOL64
796OTOOL
797LIPO
798NMEDIT
799DSYMUTIL
800lt_ECHO
801AR
802OBJDUMP
803NM
804ac_ct_DUMPBIN
805DUMPBIN
806LD
807FGREP
808EGREP
809GREP
810SED
811LIBTOOL
812LN_S
813RANLIB
814am__fastdepCC_FALSE
815am__fastdepCC_TRUE
816CCDEPMODE
817AMDEPBACKSLASH
818AMDEP_FALSE
819AMDEP_TRUE
820am__quote
821am__include
822DEPDIR
823OBJEXT
824EXEEXT
825ac_ct_CC
826CPPFLAGS
827LDFLAGS
828CFLAGS
829CC
830host_os
831host_vendor
832host_cpu
833host
834build_os
835build_vendor
836build_cpu
837build
838am__untar
839am__tar
840AMTAR
841am__leading_dot
842SET_MAKE
843AWK
844mkdir_p
845MKDIR_P
846INSTALL_STRIP_PROGRAM
847STRIP
848install_sh
849MAKEINFO
850AUTOHEADER
851AUTOMAKE
852AUTOCONF
853ACLOCAL
854VERSION
855PACKAGE
856CYGPATH_W
857am__isrc
858INSTALL_DATA
859INSTALL_SCRIPT
860INSTALL_PROGRAM
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
891PACKAGE_BUGREPORT
892PACKAGE_STRING
893PACKAGE_VERSION
894PACKAGE_TARNAME
895PACKAGE_NAME
896PATH_SEPARATOR
897SHELL'
898ac_subst_files=''
899ac_user_opts='
900enable_option_checking
901enable_dependency_tracking
902enable_shared
903enable_static
904with_pic
905enable_fast_install
906with_gnu_ld
907enable_libtool_lock
908'
909      ac_precious_vars='build_alias
910host_alias
911target_alias
912CC
913CFLAGS
914LDFLAGS
915LIBS
916CPPFLAGS
917CPP'
918
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
923ac_unrecognized_opts=
924ac_unrecognized_sep=
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972  # If the previous option needs an argument, assign it.
973  if test -n "$ac_prev"; then
974    eval $ac_prev=\$ac_option
975    ac_prev=
976    continue
977  fi
978
979  case $ac_option in
980  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981  *)	ac_optarg=yes ;;
982  esac
983
984  # Accept the important Cygnus configure options, so we can diagnose typos.
985
986  case $ac_dashdash$ac_option in
987  --)
988    ac_dashdash=yes ;;
989
990  -bindir | --bindir | --bindi | --bind | --bin | --bi)
991    ac_prev=bindir ;;
992  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993    bindir=$ac_optarg ;;
994
995  -build | --build | --buil | --bui | --bu)
996    ac_prev=build_alias ;;
997  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998    build_alias=$ac_optarg ;;
999
1000  -cache-file | --cache-file | --cache-fil | --cache-fi \
1001  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002    ac_prev=cache_file ;;
1003  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005    cache_file=$ac_optarg ;;
1006
1007  --config-cache | -C)
1008    cache_file=config.cache ;;
1009
1010  -datadir | --datadir | --datadi | --datad)
1011    ac_prev=datadir ;;
1012  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013    datadir=$ac_optarg ;;
1014
1015  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016  | --dataroo | --dataro | --datar)
1017    ac_prev=datarootdir ;;
1018  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020    datarootdir=$ac_optarg ;;
1021
1022  -disable-* | --disable-*)
1023    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1027   { (exit 1); exit 1; }; }
1028    ac_useropt_orig=$ac_useropt
1029    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030    case $ac_user_opts in
1031      *"
1032"enable_$ac_useropt"
1033"*) ;;
1034      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035	 ac_unrecognized_sep=', ';;
1036    esac
1037    eval enable_$ac_useropt=no ;;
1038
1039  -docdir | --docdir | --docdi | --doc | --do)
1040    ac_prev=docdir ;;
1041  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042    docdir=$ac_optarg ;;
1043
1044  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045    ac_prev=dvidir ;;
1046  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047    dvidir=$ac_optarg ;;
1048
1049  -enable-* | --enable-*)
1050    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1054   { (exit 1); exit 1; }; }
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210    ac_prev=sbindir ;;
1211  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212  | --sbi=* | --sb=*)
1213    sbindir=$ac_optarg ;;
1214
1215  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217  | --sharedst | --shareds | --shared | --share | --shar \
1218  | --sha | --sh)
1219    ac_prev=sharedstatedir ;;
1220  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223  | --sha=* | --sh=*)
1224    sharedstatedir=$ac_optarg ;;
1225
1226  -site | --site | --sit)
1227    ac_prev=site ;;
1228  -site=* | --site=* | --sit=*)
1229    site=$ac_optarg ;;
1230
1231  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232    ac_prev=srcdir ;;
1233  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234    srcdir=$ac_optarg ;;
1235
1236  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237  | --syscon | --sysco | --sysc | --sys | --sy)
1238    ac_prev=sysconfdir ;;
1239  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241    sysconfdir=$ac_optarg ;;
1242
1243  -target | --target | --targe | --targ | --tar | --ta | --t)
1244    ac_prev=target_alias ;;
1245  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246    target_alias=$ac_optarg ;;
1247
1248  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249    verbose=yes ;;
1250
1251  -version | --version | --versio | --versi | --vers | -V)
1252    ac_init_version=: ;;
1253
1254  -with-* | --with-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1259   { (exit 1); exit 1; }; }
1260    ac_useropt_orig=$ac_useropt
1261    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262    case $ac_user_opts in
1263      *"
1264"with_$ac_useropt"
1265"*) ;;
1266      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267	 ac_unrecognized_sep=', ';;
1268    esac
1269    eval with_$ac_useropt=\$ac_optarg ;;
1270
1271  -without-* | --without-*)
1272    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1276   { (exit 1); exit 1; }; }
1277    ac_useropt_orig=$ac_useropt
1278    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279    case $ac_user_opts in
1280      *"
1281"with_$ac_useropt"
1282"*) ;;
1283      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284	 ac_unrecognized_sep=', ';;
1285    esac
1286    eval with_$ac_useropt=no ;;
1287
1288  --x)
1289    # Obsolete; use --with-x.
1290    with_x=yes ;;
1291
1292  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293  | --x-incl | --x-inc | --x-in | --x-i)
1294    ac_prev=x_includes ;;
1295  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297    x_includes=$ac_optarg ;;
1298
1299  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301    ac_prev=x_libraries ;;
1302  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304    x_libraries=$ac_optarg ;;
1305
1306  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1307Try \`$0 --help' for more information." >&2
1308   { (exit 1); exit 1; }; }
1309    ;;
1310
1311  *=*)
1312    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313    # Reject names that are not valid shell variable names.
1314    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1315      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1316   { (exit 1); exit 1; }; }
1317    eval $ac_envvar=\$ac_optarg
1318    export $ac_envvar ;;
1319
1320  *)
1321    # FIXME: should be removed in autoconf 3.0.
1322    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1326    ;;
1327
1328  esac
1329done
1330
1331if test -n "$ac_prev"; then
1332  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1334   { (exit 1); exit 1; }; }
1335fi
1336
1337if test -n "$ac_unrecognized_opts"; then
1338  case $enable_option_checking in
1339    no) ;;
1340    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1341   { (exit 1); exit 1; }; } ;;
1342    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343  esac
1344fi
1345
1346# Check all directory arguments for consistency.
1347for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348		datadir sysconfdir sharedstatedir localstatedir includedir \
1349		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350		libdir localedir mandir
1351do
1352  eval ac_val=\$$ac_var
1353  # Remove trailing slashes.
1354  case $ac_val in
1355    */ )
1356      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357      eval $ac_var=\$ac_val;;
1358  esac
1359  # Be sure to have absolute directory names.
1360  case $ac_val in
1361    [\\/$]* | ?:[\\/]* )  continue;;
1362    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363  esac
1364  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1365   { (exit 1); exit 1; }; }
1366done
1367
1368# There might be people who depend on the old broken behavior: `$host'
1369# used to hold the argument of --host etc.
1370# FIXME: To remove some day.
1371build=$build_alias
1372host=$host_alias
1373target=$target_alias
1374
1375# FIXME: To remove some day.
1376if test "x$host_alias" != x; then
1377  if test "x$build_alias" = x; then
1378    cross_compiling=maybe
1379    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1380    If a cross compiler is detected then cross compile mode will be used." >&2
1381  elif test "x$build_alias" != "x$host_alias"; then
1382    cross_compiling=yes
1383  fi
1384fi
1385
1386ac_tool_prefix=
1387test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389test "$silent" = yes && exec 6>/dev/null
1390
1391
1392ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393ac_ls_di=`ls -di .` &&
1394ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1396   { (exit 1); exit 1; }; }
1397test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1399   { (exit 1); exit 1; }; }
1400
1401
1402# Find the source files, if location was not specified.
1403if test -z "$srcdir"; then
1404  ac_srcdir_defaulted=yes
1405  # Try the directory containing this script, then the parent directory.
1406  ac_confdir=`$as_dirname -- "$as_myself" ||
1407$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408	 X"$as_myself" : 'X\(//\)[^/]' \| \
1409	 X"$as_myself" : 'X\(//\)$' \| \
1410	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411$as_echo X"$as_myself" |
1412    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\/\)[^/].*/{
1417	    s//\1/
1418	    q
1419	  }
1420	  /^X\(\/\/\)$/{
1421	    s//\1/
1422	    q
1423	  }
1424	  /^X\(\/\).*/{
1425	    s//\1/
1426	    q
1427	  }
1428	  s/.*/./; q'`
1429  srcdir=$ac_confdir
1430  if test ! -r "$srcdir/$ac_unique_file"; then
1431    srcdir=..
1432  fi
1433else
1434  ac_srcdir_defaulted=no
1435fi
1436if test ! -r "$srcdir/$ac_unique_file"; then
1437  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1439   { (exit 1); exit 1; }; }
1440fi
1441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442ac_abs_confdir=`(
1443	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1444   { (exit 1); exit 1; }; }
1445	pwd)`
1446# When building in place, set srcdir=.
1447if test "$ac_abs_confdir" = "$ac_pwd"; then
1448  srcdir=.
1449fi
1450# Remove unnecessary trailing slashes from srcdir.
1451# Double slashes in file names in object file debugging info
1452# mess up M-x gdb in Emacs.
1453case $srcdir in
1454*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455esac
1456for ac_var in $ac_precious_vars; do
1457  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458  eval ac_env_${ac_var}_value=\$${ac_var}
1459  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461done
1462
1463#
1464# Report the --help message.
1465#
1466if test "$ac_init_help" = "long"; then
1467  # Omit some internal or obsolete options to make the list less imposing.
1468  # This message is too long to be a string in the A/UX 3.1 sh.
1469  cat <<_ACEOF
1470\`configure' configures iperf 3.0.1 to adapt to many kinds of systems.
1471
1472Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475VAR=VALUE.  See below for descriptions of some of the useful variables.
1476
1477Defaults for the options are specified in brackets.
1478
1479Configuration:
1480  -h, --help              display this help and exit
1481      --help=short        display options specific to this package
1482      --help=recursive    display the short help of all the included packages
1483  -V, --version           display version information and exit
1484  -q, --quiet, --silent   do not print \`checking...' messages
1485      --cache-file=FILE   cache test results in FILE [disabled]
1486  -C, --config-cache      alias for \`--cache-file=config.cache'
1487  -n, --no-create         do not create output files
1488      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1489
1490Installation directories:
1491  --prefix=PREFIX         install architecture-independent files in PREFIX
1492                          [$ac_default_prefix]
1493  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1494                          [PREFIX]
1495
1496By default, \`make install' will install all the files in
1497\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1498an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499for instance \`--prefix=\$HOME'.
1500
1501For better control, use the options below.
1502
1503Fine tuning of the installation directories:
1504  --bindir=DIR            user executables [EPREFIX/bin]
1505  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1506  --libexecdir=DIR        program executables [EPREFIX/libexec]
1507  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1508  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1509  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1510  --libdir=DIR            object code libraries [EPREFIX/lib]
1511  --includedir=DIR        C header files [PREFIX/include]
1512  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1513  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1514  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1515  --infodir=DIR           info documentation [DATAROOTDIR/info]
1516  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1517  --mandir=DIR            man documentation [DATAROOTDIR/man]
1518  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1519  --htmldir=DIR           html documentation [DOCDIR]
1520  --dvidir=DIR            dvi documentation [DOCDIR]
1521  --pdfdir=DIR            pdf documentation [DOCDIR]
1522  --psdir=DIR             ps documentation [DOCDIR]
1523_ACEOF
1524
1525  cat <<\_ACEOF
1526
1527Program names:
1528  --program-prefix=PREFIX            prepend PREFIX to installed program names
1529  --program-suffix=SUFFIX            append SUFFIX to installed program names
1530  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1531
1532System types:
1533  --build=BUILD     configure for building on BUILD [guessed]
1534  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1535_ACEOF
1536fi
1537
1538if test -n "$ac_init_help"; then
1539  case $ac_init_help in
1540     short | recursive ) echo "Configuration of iperf 3.0.1:";;
1541   esac
1542  cat <<\_ACEOF
1543
1544Optional Features:
1545  --disable-option-checking  ignore unrecognized --enable/--with options
1546  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548  --disable-dependency-tracking  speeds up one-time build
1549  --enable-dependency-tracking   do not reject slow dependency extractors
1550  --enable-shared[=PKGS]  build shared libraries [default=yes]
1551  --enable-static[=PKGS]  build static libraries [default=yes]
1552  --enable-fast-install[=PKGS]
1553                          optimize for fast installation [default=yes]
1554  --disable-libtool-lock  avoid locking (might break parallel builds)
1555
1556Optional Packages:
1557  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1558  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1559  --with-pic              try to use only PIC/non-PIC objects [default=use
1560                          both]
1561  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1562
1563Some influential environment variables:
1564  CC          C compiler command
1565  CFLAGS      C compiler flags
1566  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1567              nonstandard directory <lib dir>
1568  LIBS        libraries to pass to the linker, e.g. -l<library>
1569  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1570              you have headers in a nonstandard directory <include dir>
1571  CPP         C preprocessor
1572
1573Use these variables to override the choices made by `configure' or to help
1574it to find libraries and programs with nonstandard names/locations.
1575
1576Report bugs to <https://github.com/esnet/iperf>.
1577_ACEOF
1578ac_status=$?
1579fi
1580
1581if test "$ac_init_help" = "recursive"; then
1582  # If there are subdirs, report their specific --help.
1583  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584    test -d "$ac_dir" ||
1585      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586      continue
1587    ac_builddir=.
1588
1589case "$ac_dir" in
1590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591*)
1592  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1593  # A ".." for each directory in $ac_dir_suffix.
1594  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1595  case $ac_top_builddir_sub in
1596  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598  esac ;;
1599esac
1600ac_abs_top_builddir=$ac_pwd
1601ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602# for backward compatibility:
1603ac_top_builddir=$ac_top_build_prefix
1604
1605case $srcdir in
1606  .)  # We are building in place.
1607    ac_srcdir=.
1608    ac_top_srcdir=$ac_top_builddir_sub
1609    ac_abs_top_srcdir=$ac_pwd ;;
1610  [\\/]* | ?:[\\/]* )  # Absolute name.
1611    ac_srcdir=$srcdir$ac_dir_suffix;
1612    ac_top_srcdir=$srcdir
1613    ac_abs_top_srcdir=$srcdir ;;
1614  *) # Relative name.
1615    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616    ac_top_srcdir=$ac_top_build_prefix$srcdir
1617    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618esac
1619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
1621    cd "$ac_dir" || { ac_status=$?; continue; }
1622    # Check for guested configure.
1623    if test -f "$ac_srcdir/configure.gnu"; then
1624      echo &&
1625      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626    elif test -f "$ac_srcdir/configure"; then
1627      echo &&
1628      $SHELL "$ac_srcdir/configure" --help=recursive
1629    else
1630      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631    fi || ac_status=$?
1632    cd "$ac_pwd" || { ac_status=$?; break; }
1633  done
1634fi
1635
1636test -n "$ac_init_help" && exit $ac_status
1637if $ac_init_version; then
1638  cat <<\_ACEOF
1639iperf configure 3.0.1
1640generated by GNU Autoconf 2.63
1641
1642Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16432002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1644This configure script is free software; the Free Software Foundation
1645gives unlimited permission to copy, distribute and modify it.
1646_ACEOF
1647  exit
1648fi
1649cat >config.log <<_ACEOF
1650This file contains any messages produced by compilers while
1651running configure, to aid debugging if configure makes a mistake.
1652
1653It was created by iperf $as_me 3.0.1, which was
1654generated by GNU Autoconf 2.63.  Invocation command line was
1655
1656  $ $0 $@
1657
1658_ACEOF
1659exec 5>>config.log
1660{
1661cat <<_ASUNAME
1662## --------- ##
1663## Platform. ##
1664## --------- ##
1665
1666hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671
1672/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1674
1675/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1676/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1677/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1679/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1680/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1681/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1682
1683_ASUNAME
1684
1685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686for as_dir in $PATH
1687do
1688  IFS=$as_save_IFS
1689  test -z "$as_dir" && as_dir=.
1690  $as_echo "PATH: $as_dir"
1691done
1692IFS=$as_save_IFS
1693
1694} >&5
1695
1696cat >&5 <<_ACEOF
1697
1698
1699## ----------- ##
1700## Core tests. ##
1701## ----------- ##
1702
1703_ACEOF
1704
1705
1706# Keep a trace of the command line.
1707# Strip out --no-create and --no-recursion so they do not pile up.
1708# Strip out --silent because we don't want to record it for future runs.
1709# Also quote any args containing shell meta-characters.
1710# Make two passes to allow for proper duplicate-argument suppression.
1711ac_configure_args=
1712ac_configure_args0=
1713ac_configure_args1=
1714ac_must_keep_next=false
1715for ac_pass in 1 2
1716do
1717  for ac_arg
1718  do
1719    case $ac_arg in
1720    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722    | -silent | --silent | --silen | --sile | --sil)
1723      continue ;;
1724    *\'*)
1725      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726    esac
1727    case $ac_pass in
1728    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729    2)
1730      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731      if test $ac_must_keep_next = true; then
1732	ac_must_keep_next=false # Got value, back to normal.
1733      else
1734	case $ac_arg in
1735	  *=* | --config-cache | -C | -disable-* | --disable-* \
1736	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738	  | -with-* | --with-* | -without-* | --without-* | --x)
1739	    case "$ac_configure_args0 " in
1740	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741	    esac
1742	    ;;
1743	  -* ) ac_must_keep_next=true ;;
1744	esac
1745      fi
1746      ac_configure_args="$ac_configure_args '$ac_arg'"
1747      ;;
1748    esac
1749  done
1750done
1751$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753
1754# When interrupted or exit'd, cleanup temporary files, and complete
1755# config.log.  We remove comments because anyway the quotes in there
1756# would cause problems or look ugly.
1757# WARNING: Use '\'' to represent an apostrophe within the trap.
1758# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759trap 'exit_status=$?
1760  # Save into config.log some information that might help in debugging.
1761  {
1762    echo
1763
1764    cat <<\_ASBOX
1765## ---------------- ##
1766## Cache variables. ##
1767## ---------------- ##
1768_ASBOX
1769    echo
1770    # The following way of writing the cache mishandles newlines in values,
1771(
1772  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773    eval ac_val=\$$ac_var
1774    case $ac_val in #(
1775    *${as_nl}*)
1776      case $ac_var in #(
1777      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1778$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1779      esac
1780      case $ac_var in #(
1781      _ | IFS | as_nl) ;; #(
1782      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1783      *) $as_unset $ac_var ;;
1784      esac ;;
1785    esac
1786  done
1787  (set) 2>&1 |
1788    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789    *${as_nl}ac_space=\ *)
1790      sed -n \
1791	"s/'\''/'\''\\\\'\'''\''/g;
1792	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793      ;; #(
1794    *)
1795      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796      ;;
1797    esac |
1798    sort
1799)
1800    echo
1801
1802    cat <<\_ASBOX
1803## ----------------- ##
1804## Output variables. ##
1805## ----------------- ##
1806_ASBOX
1807    echo
1808    for ac_var in $ac_subst_vars
1809    do
1810      eval ac_val=\$$ac_var
1811      case $ac_val in
1812      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813      esac
1814      $as_echo "$ac_var='\''$ac_val'\''"
1815    done | sort
1816    echo
1817
1818    if test -n "$ac_subst_files"; then
1819      cat <<\_ASBOX
1820## ------------------- ##
1821## File substitutions. ##
1822## ------------------- ##
1823_ASBOX
1824      echo
1825      for ac_var in $ac_subst_files
1826      do
1827	eval ac_val=\$$ac_var
1828	case $ac_val in
1829	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830	esac
1831	$as_echo "$ac_var='\''$ac_val'\''"
1832      done | sort
1833      echo
1834    fi
1835
1836    if test -s confdefs.h; then
1837      cat <<\_ASBOX
1838## ----------- ##
1839## confdefs.h. ##
1840## ----------- ##
1841_ASBOX
1842      echo
1843      cat confdefs.h
1844      echo
1845    fi
1846    test "$ac_signal" != 0 &&
1847      $as_echo "$as_me: caught signal $ac_signal"
1848    $as_echo "$as_me: exit $exit_status"
1849  } >&5
1850  rm -f core *.core core.conftest.* &&
1851    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1852    exit $exit_status
1853' 0
1854for ac_signal in 1 2 13 15; do
1855  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1856done
1857ac_signal=0
1858
1859# confdefs.h avoids OS command line length limits that DEFS can exceed.
1860rm -f -r conftest* confdefs.h
1861
1862# Predefined preprocessor variables.
1863
1864cat >>confdefs.h <<_ACEOF
1865#define PACKAGE_NAME "$PACKAGE_NAME"
1866_ACEOF
1867
1868
1869cat >>confdefs.h <<_ACEOF
1870#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1871_ACEOF
1872
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_VERSION "$PACKAGE_VERSION"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_STRING "$PACKAGE_STRING"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886_ACEOF
1887
1888
1889# Let the site file select an alternate cache file if it wants to.
1890# Prefer an explicitly selected file to automatically selected ones.
1891ac_site_file1=NONE
1892ac_site_file2=NONE
1893if test -n "$CONFIG_SITE"; then
1894  ac_site_file1=$CONFIG_SITE
1895elif test "x$prefix" != xNONE; then
1896  ac_site_file1=$prefix/share/config.site
1897  ac_site_file2=$prefix/etc/config.site
1898else
1899  ac_site_file1=$ac_default_prefix/share/config.site
1900  ac_site_file2=$ac_default_prefix/etc/config.site
1901fi
1902for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1903do
1904  test "x$ac_site_file" = xNONE && continue
1905  if test -r "$ac_site_file"; then
1906    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1907$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1908    sed 's/^/| /' "$ac_site_file" >&5
1909    . "$ac_site_file"
1910  fi
1911done
1912
1913if test -r "$cache_file"; then
1914  # Some versions of bash will fail to source /dev/null (special
1915  # files actually), so we avoid doing that.
1916  if test -f "$cache_file"; then
1917    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1918$as_echo "$as_me: loading cache $cache_file" >&6;}
1919    case $cache_file in
1920      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921      *)                      . "./$cache_file";;
1922    esac
1923  fi
1924else
1925  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1926$as_echo "$as_me: creating cache $cache_file" >&6;}
1927  >$cache_file
1928fi
1929
1930# Check that the precious variables saved in the cache have kept the same
1931# value.
1932ac_cache_corrupted=false
1933for ac_var in $ac_precious_vars; do
1934  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935  eval ac_new_set=\$ac_env_${ac_var}_set
1936  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937  eval ac_new_val=\$ac_env_${ac_var}_value
1938  case $ac_old_set,$ac_new_set in
1939    set,)
1940      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942      ac_cache_corrupted=: ;;
1943    ,set)
1944      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946      ac_cache_corrupted=: ;;
1947    ,);;
1948    *)
1949      if test "x$ac_old_val" != "x$ac_new_val"; then
1950	# differences in whitespace do not lead to failure.
1951	ac_old_val_w=`echo x $ac_old_val`
1952	ac_new_val_w=`echo x $ac_new_val`
1953	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1954	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956	  ac_cache_corrupted=:
1957	else
1958	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1959$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1960	  eval $ac_var=\$ac_old_val
1961	fi
1962	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1963$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1964	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1965$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1966      fi;;
1967  esac
1968  # Pass precious variables to config.status.
1969  if test "$ac_new_set" = set; then
1970    case $ac_new_val in
1971    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1972    *) ac_arg=$ac_var=$ac_new_val ;;
1973    esac
1974    case " $ac_configure_args " in
1975      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1976      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1977    esac
1978  fi
1979done
1980if $ac_cache_corrupted; then
1981  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1983  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987   { (exit 1); exit 1; }; }
1988fi
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014ac_ext=c
2015ac_cpp='$CPP $CPPFLAGS'
2016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019
2020
2021
2022# Specify where the auxiliary files created by configure should go. The config
2023# directory is picked so that they don't clutter up more useful directories.
2024ac_aux_dir=
2025for ac_dir in config "$srcdir"/config; do
2026  if test -f "$ac_dir/install-sh"; then
2027    ac_aux_dir=$ac_dir
2028    ac_install_sh="$ac_aux_dir/install-sh -c"
2029    break
2030  elif test -f "$ac_dir/install.sh"; then
2031    ac_aux_dir=$ac_dir
2032    ac_install_sh="$ac_aux_dir/install.sh -c"
2033    break
2034  elif test -f "$ac_dir/shtool"; then
2035    ac_aux_dir=$ac_dir
2036    ac_install_sh="$ac_aux_dir/shtool install -c"
2037    break
2038  fi
2039done
2040if test -z "$ac_aux_dir"; then
2041  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2042$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2043   { (exit 1); exit 1; }; }
2044fi
2045
2046# These three variables are undocumented and unsupported,
2047# and are intended to be withdrawn in a future Autoconf release.
2048# They can cause serious problems if a builder's source tree is in a directory
2049# whose full name contains unusual characters.
2050ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2051ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2052ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2053
2054
2055
2056
2057# Initialize the automake system
2058am__api_version='1.11'
2059
2060# Find a good install program.  We prefer a C program (faster),
2061# so one script is as good as another.  But avoid the broken or
2062# incompatible versions:
2063# SysV /etc/install, /usr/sbin/install
2064# SunOS /usr/etc/install
2065# IRIX /sbin/install
2066# AIX /bin/install
2067# AmigaOS /C/install, which installs bootblocks on floppy discs
2068# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2069# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2071# OS/2's system install, which has a completely different semantic
2072# ./install, which can be erroneously created by make from ./install.sh.
2073# Reject install programs that cannot install multiple files.
2074{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2075$as_echo_n "checking for a BSD-compatible install... " >&6; }
2076if test -z "$INSTALL"; then
2077if test "${ac_cv_path_install+set}" = set; then
2078  $as_echo_n "(cached) " >&6
2079else
2080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083  IFS=$as_save_IFS
2084  test -z "$as_dir" && as_dir=.
2085  # Account for people who put trailing slashes in PATH elements.
2086case $as_dir/ in
2087  ./ | .// | /cC/* | \
2088  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2089  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2090  /usr/ucb/* ) ;;
2091  *)
2092    # OSF1 and SCO ODT 3.0 have their own names for install.
2093    # Don't use installbsd from OSF since it installs stuff as root
2094    # by default.
2095    for ac_prog in ginstall scoinst install; do
2096      for ac_exec_ext in '' $ac_executable_extensions; do
2097	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2098	  if test $ac_prog = install &&
2099	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2100	    # AIX install.  It has an incompatible calling convention.
2101	    :
2102	  elif test $ac_prog = install &&
2103	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2104	    # program-specific install script used by HP pwplus--don't use.
2105	    :
2106	  else
2107	    rm -rf conftest.one conftest.two conftest.dir
2108	    echo one > conftest.one
2109	    echo two > conftest.two
2110	    mkdir conftest.dir
2111	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2112	      test -s conftest.one && test -s conftest.two &&
2113	      test -s conftest.dir/conftest.one &&
2114	      test -s conftest.dir/conftest.two
2115	    then
2116	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2117	      break 3
2118	    fi
2119	  fi
2120	fi
2121      done
2122    done
2123    ;;
2124esac
2125
2126done
2127IFS=$as_save_IFS
2128
2129rm -rf conftest.one conftest.two conftest.dir
2130
2131fi
2132  if test "${ac_cv_path_install+set}" = set; then
2133    INSTALL=$ac_cv_path_install
2134  else
2135    # As a last resort, use the slow shell script.  Don't cache a
2136    # value for INSTALL within a source directory, because that will
2137    # break other packages using the cache if that directory is
2138    # removed, or if the value is a relative name.
2139    INSTALL=$ac_install_sh
2140  fi
2141fi
2142{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2143$as_echo "$INSTALL" >&6; }
2144
2145# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2146# It thinks the first close brace ends the variable substitution.
2147test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2148
2149test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2150
2151test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2152
2153{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2154$as_echo_n "checking whether build environment is sane... " >&6; }
2155# Just in case
2156sleep 1
2157echo timestamp > conftest.file
2158# Reject unsafe characters in $srcdir or the absolute working directory
2159# name.  Accept space and tab only in the latter.
2160am_lf='
2161'
2162case `pwd` in
2163  *[\\\"\#\$\&\'\`$am_lf]*)
2164    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2165$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2166   { (exit 1); exit 1; }; };;
2167esac
2168case $srcdir in
2169  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2170    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2171$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2172   { (exit 1); exit 1; }; };;
2173esac
2174
2175# Do `set' in a subshell so we don't clobber the current shell's
2176# arguments.  Must try -L first in case configure is actually a
2177# symlink; some systems play weird games with the mod time of symlinks
2178# (eg FreeBSD returns the mod time of the symlink's containing
2179# directory).
2180if (
2181   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2182   if test "$*" = "X"; then
2183      # -L didn't work.
2184      set X `ls -t "$srcdir/configure" conftest.file`
2185   fi
2186   rm -f conftest.file
2187   if test "$*" != "X $srcdir/configure conftest.file" \
2188      && test "$*" != "X conftest.file $srcdir/configure"; then
2189
2190      # If neither matched, then we have a broken ls.  This can happen
2191      # if, for instance, CONFIG_SHELL is bash and it inherits a
2192      # broken ls alias from the environment.  This has actually
2193      # happened.  Such a system could not be considered "sane".
2194      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2195alias in your environment" >&5
2196$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2197alias in your environment" >&2;}
2198   { (exit 1); exit 1; }; }
2199   fi
2200
2201   test "$2" = conftest.file
2202   )
2203then
2204   # Ok.
2205   :
2206else
2207   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2208Check your system clock" >&5
2209$as_echo "$as_me: error: newly created file is older than distributed files!
2210Check your system clock" >&2;}
2211   { (exit 1); exit 1; }; }
2212fi
2213{ $as_echo "$as_me:$LINENO: result: yes" >&5
2214$as_echo "yes" >&6; }
2215test "$program_prefix" != NONE &&
2216  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2217# Use a double $ so make ignores it.
2218test "$program_suffix" != NONE &&
2219  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2220# Double any \ or $.
2221# By default was `s,x,x', remove it if useless.
2222ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2223program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2224
2225# expand $ac_aux_dir to an absolute path
2226am_aux_dir=`cd $ac_aux_dir && pwd`
2227
2228if test x"${MISSING+set}" != xset; then
2229  case $am_aux_dir in
2230  *\ * | *\	*)
2231    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2232  *)
2233    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2234  esac
2235fi
2236# Use eval to expand $SHELL
2237if eval "$MISSING --run true"; then
2238  am_missing_run="$MISSING --run "
2239else
2240  am_missing_run=
2241  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2242$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2243fi
2244
2245if test x"${install_sh}" != xset; then
2246  case $am_aux_dir in
2247  *\ * | *\	*)
2248    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2249  *)
2250    install_sh="\${SHELL} $am_aux_dir/install-sh"
2251  esac
2252fi
2253
2254# Installed binaries are usually stripped using `strip' when the user
2255# run `make install-strip'.  However `strip' might not be the right
2256# tool to use in cross-compilation environments, therefore Automake
2257# will honor the `STRIP' environment variable to overrule this program.
2258if test "$cross_compiling" != no; then
2259  if test -n "$ac_tool_prefix"; then
2260  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2261set dummy ${ac_tool_prefix}strip; ac_word=$2
2262{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2263$as_echo_n "checking for $ac_word... " >&6; }
2264if test "${ac_cv_prog_STRIP+set}" = set; then
2265  $as_echo_n "(cached) " >&6
2266else
2267  if test -n "$STRIP"; then
2268  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2269else
2270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273  IFS=$as_save_IFS
2274  test -z "$as_dir" && as_dir=.
2275  for ac_exec_ext in '' $ac_executable_extensions; do
2276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2278    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279    break 2
2280  fi
2281done
2282done
2283IFS=$as_save_IFS
2284
2285fi
2286fi
2287STRIP=$ac_cv_prog_STRIP
2288if test -n "$STRIP"; then
2289  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2290$as_echo "$STRIP" >&6; }
2291else
2292  { $as_echo "$as_me:$LINENO: result: no" >&5
2293$as_echo "no" >&6; }
2294fi
2295
2296
2297fi
2298if test -z "$ac_cv_prog_STRIP"; then
2299  ac_ct_STRIP=$STRIP
2300  # Extract the first word of "strip", so it can be a program name with args.
2301set dummy strip; ac_word=$2
2302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2303$as_echo_n "checking for $ac_word... " >&6; }
2304if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2305  $as_echo_n "(cached) " >&6
2306else
2307  if test -n "$ac_ct_STRIP"; then
2308  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2309else
2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313  IFS=$as_save_IFS
2314  test -z "$as_dir" && as_dir=.
2315  for ac_exec_ext in '' $ac_executable_extensions; do
2316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317    ac_cv_prog_ac_ct_STRIP="strip"
2318    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319    break 2
2320  fi
2321done
2322done
2323IFS=$as_save_IFS
2324
2325fi
2326fi
2327ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2328if test -n "$ac_ct_STRIP"; then
2329  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2330$as_echo "$ac_ct_STRIP" >&6; }
2331else
2332  { $as_echo "$as_me:$LINENO: result: no" >&5
2333$as_echo "no" >&6; }
2334fi
2335
2336  if test "x$ac_ct_STRIP" = x; then
2337    STRIP=":"
2338  else
2339    case $cross_compiling:$ac_tool_warned in
2340yes:)
2341{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2343ac_tool_warned=yes ;;
2344esac
2345    STRIP=$ac_ct_STRIP
2346  fi
2347else
2348  STRIP="$ac_cv_prog_STRIP"
2349fi
2350
2351fi
2352INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2353
2354{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2355$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2356if test -z "$MKDIR_P"; then
2357  if test "${ac_cv_path_mkdir+set}" = set; then
2358  $as_echo_n "(cached) " >&6
2359else
2360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2362do
2363  IFS=$as_save_IFS
2364  test -z "$as_dir" && as_dir=.
2365  for ac_prog in mkdir gmkdir; do
2366	 for ac_exec_ext in '' $ac_executable_extensions; do
2367	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2368	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2369	     'mkdir (GNU coreutils) '* | \
2370	     'mkdir (coreutils) '* | \
2371	     'mkdir (fileutils) '4.1*)
2372	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2373	       break 3;;
2374	   esac
2375	 done
2376       done
2377done
2378IFS=$as_save_IFS
2379
2380fi
2381
2382  if test "${ac_cv_path_mkdir+set}" = set; then
2383    MKDIR_P="$ac_cv_path_mkdir -p"
2384  else
2385    # As a last resort, use the slow shell script.  Don't cache a
2386    # value for MKDIR_P within a source directory, because that will
2387    # break other packages using the cache if that directory is
2388    # removed, or if the value is a relative name.
2389    test -d ./--version && rmdir ./--version
2390    MKDIR_P="$ac_install_sh -d"
2391  fi
2392fi
2393{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2394$as_echo "$MKDIR_P" >&6; }
2395
2396mkdir_p="$MKDIR_P"
2397case $mkdir_p in
2398  [\\/$]* | ?:[\\/]*) ;;
2399  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2400esac
2401
2402for ac_prog in gawk mawk nawk awk
2403do
2404  # Extract the first word of "$ac_prog", so it can be a program name with args.
2405set dummy $ac_prog; ac_word=$2
2406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2407$as_echo_n "checking for $ac_word... " >&6; }
2408if test "${ac_cv_prog_AWK+set}" = set; then
2409  $as_echo_n "(cached) " >&6
2410else
2411  if test -n "$AWK"; then
2412  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417  IFS=$as_save_IFS
2418  test -z "$as_dir" && as_dir=.
2419  for ac_exec_ext in '' $ac_executable_extensions; do
2420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421    ac_cv_prog_AWK="$ac_prog"
2422    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423    break 2
2424  fi
2425done
2426done
2427IFS=$as_save_IFS
2428
2429fi
2430fi
2431AWK=$ac_cv_prog_AWK
2432if test -n "$AWK"; then
2433  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2434$as_echo "$AWK" >&6; }
2435else
2436  { $as_echo "$as_me:$LINENO: result: no" >&5
2437$as_echo "no" >&6; }
2438fi
2439
2440
2441  test -n "$AWK" && break
2442done
2443
2444{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2445$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2446set x ${MAKE-make}
2447ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2448if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2449  $as_echo_n "(cached) " >&6
2450else
2451  cat >conftest.make <<\_ACEOF
2452SHELL = /bin/sh
2453all:
2454	@echo '@@@%%%=$(MAKE)=@@@%%%'
2455_ACEOF
2456# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2457case `${MAKE-make} -f conftest.make 2>/dev/null` in
2458  *@@@%%%=?*=@@@%%%*)
2459    eval ac_cv_prog_make_${ac_make}_set=yes;;
2460  *)
2461    eval ac_cv_prog_make_${ac_make}_set=no;;
2462esac
2463rm -f conftest.make
2464fi
2465if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2466  { $as_echo "$as_me:$LINENO: result: yes" >&5
2467$as_echo "yes" >&6; }
2468  SET_MAKE=
2469else
2470  { $as_echo "$as_me:$LINENO: result: no" >&5
2471$as_echo "no" >&6; }
2472  SET_MAKE="MAKE=${MAKE-make}"
2473fi
2474
2475rm -rf .tst 2>/dev/null
2476mkdir .tst 2>/dev/null
2477if test -d .tst; then
2478  am__leading_dot=.
2479else
2480  am__leading_dot=_
2481fi
2482rmdir .tst 2>/dev/null
2483
2484if test "`cd $srcdir && pwd`" != "`pwd`"; then
2485  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2486  # is not polluted with repeated "-I."
2487  am__isrc=' -I$(srcdir)'
2488  # test to see if srcdir already configured
2489  if test -f $srcdir/config.status; then
2490    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2491$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2492   { (exit 1); exit 1; }; }
2493  fi
2494fi
2495
2496# test whether we have cygpath
2497if test -z "$CYGPATH_W"; then
2498  if (cygpath --version) >/dev/null 2>/dev/null; then
2499    CYGPATH_W='cygpath -w'
2500  else
2501    CYGPATH_W=echo
2502  fi
2503fi
2504
2505
2506# Define the identity of the package.
2507 PACKAGE='iperf'
2508 VERSION='3.0.1'
2509
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE "$PACKAGE"
2513_ACEOF
2514
2515
2516cat >>confdefs.h <<_ACEOF
2517#define VERSION "$VERSION"
2518_ACEOF
2519
2520# Some tools Automake needs.
2521
2522ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2523
2524
2525AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2526
2527
2528AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2529
2530
2531AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2532
2533
2534MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2535
2536# We need awk for the "check" target.  The system "awk" is bad on
2537# some platforms.
2538# Always define AMTAR for backward compatibility.
2539
2540AMTAR=${AMTAR-"${am_missing_run}tar"}
2541
2542am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2543
2544
2545
2546
2547
2548
2549ac_config_headers="$ac_config_headers src/config.h"
2550
2551
2552# Make sure we can run config.sub.
2553$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2554  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2555$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2556   { (exit 1); exit 1; }; }
2557
2558{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2559$as_echo_n "checking build system type... " >&6; }
2560if test "${ac_cv_build+set}" = set; then
2561  $as_echo_n "(cached) " >&6
2562else
2563  ac_build_alias=$build_alias
2564test "x$ac_build_alias" = x &&
2565  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2566test "x$ac_build_alias" = x &&
2567  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2568$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2569   { (exit 1); exit 1; }; }
2570ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2571  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2572$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2573   { (exit 1); exit 1; }; }
2574
2575fi
2576{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2577$as_echo "$ac_cv_build" >&6; }
2578case $ac_cv_build in
2579*-*-*) ;;
2580*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2581$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2582   { (exit 1); exit 1; }; };;
2583esac
2584build=$ac_cv_build
2585ac_save_IFS=$IFS; IFS='-'
2586set x $ac_cv_build
2587shift
2588build_cpu=$1
2589build_vendor=$2
2590shift; shift
2591# Remember, the first character of IFS is used to create $*,
2592# except with old shells:
2593build_os=$*
2594IFS=$ac_save_IFS
2595case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2596
2597
2598{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2599$as_echo_n "checking host system type... " >&6; }
2600if test "${ac_cv_host+set}" = set; then
2601  $as_echo_n "(cached) " >&6
2602else
2603  if test "x$host_alias" = x; then
2604  ac_cv_host=$ac_cv_build
2605else
2606  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2607    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2608$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2609   { (exit 1); exit 1; }; }
2610fi
2611
2612fi
2613{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2614$as_echo "$ac_cv_host" >&6; }
2615case $ac_cv_host in
2616*-*-*) ;;
2617*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2618$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2619   { (exit 1); exit 1; }; };;
2620esac
2621host=$ac_cv_host
2622ac_save_IFS=$IFS; IFS='-'
2623set x $ac_cv_host
2624shift
2625host_cpu=$1
2626host_vendor=$2
2627shift; shift
2628# Remember, the first character of IFS is used to create $*,
2629# except with old shells:
2630host_os=$*
2631IFS=$ac_save_IFS
2632case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2633
2634
2635
2636# Checks for tools: c compiler, ranlib (used for creating static libraries),
2637# symlinks and libtool
2638ac_ext=c
2639ac_cpp='$CPP $CPPFLAGS'
2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643if test -n "$ac_tool_prefix"; then
2644  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2645set dummy ${ac_tool_prefix}gcc; ac_word=$2
2646{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647$as_echo_n "checking for $ac_word... " >&6; }
2648if test "${ac_cv_prog_CC+set}" = set; then
2649  $as_echo_n "(cached) " >&6
2650else
2651  if test -n "$CC"; then
2652  ac_cv_prog_CC="$CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657  IFS=$as_save_IFS
2658  test -z "$as_dir" && as_dir=.
2659  for ac_exec_ext in '' $ac_executable_extensions; do
2660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2662    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663    break 2
2664  fi
2665done
2666done
2667IFS=$as_save_IFS
2668
2669fi
2670fi
2671CC=$ac_cv_prog_CC
2672if test -n "$CC"; then
2673  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2674$as_echo "$CC" >&6; }
2675else
2676  { $as_echo "$as_me:$LINENO: result: no" >&5
2677$as_echo "no" >&6; }
2678fi
2679
2680
2681fi
2682if test -z "$ac_cv_prog_CC"; then
2683  ac_ct_CC=$CC
2684  # Extract the first word of "gcc", so it can be a program name with args.
2685set dummy gcc; ac_word=$2
2686{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
2688if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689  $as_echo_n "(cached) " >&6
2690else
2691  if test -n "$ac_ct_CC"; then
2692  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697  IFS=$as_save_IFS
2698  test -z "$as_dir" && as_dir=.
2699  for ac_exec_ext in '' $ac_executable_extensions; do
2700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701    ac_cv_prog_ac_ct_CC="gcc"
2702    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703    break 2
2704  fi
2705done
2706done
2707IFS=$as_save_IFS
2708
2709fi
2710fi
2711ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712if test -n "$ac_ct_CC"; then
2713  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2714$as_echo "$ac_ct_CC" >&6; }
2715else
2716  { $as_echo "$as_me:$LINENO: result: no" >&5
2717$as_echo "no" >&6; }
2718fi
2719
2720  if test "x$ac_ct_CC" = x; then
2721    CC=""
2722  else
2723    case $cross_compiling:$ac_tool_warned in
2724yes:)
2725{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727ac_tool_warned=yes ;;
2728esac
2729    CC=$ac_ct_CC
2730  fi
2731else
2732  CC="$ac_cv_prog_CC"
2733fi
2734
2735if test -z "$CC"; then
2736          if test -n "$ac_tool_prefix"; then
2737    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738set dummy ${ac_tool_prefix}cc; ac_word=$2
2739{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
2741if test "${ac_cv_prog_CC+set}" = set; then
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test -n "$CC"; then
2745  ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750  IFS=$as_save_IFS
2751  test -z "$as_dir" && as_dir=.
2752  for ac_exec_ext in '' $ac_executable_extensions; do
2753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754    ac_cv_prog_CC="${ac_tool_prefix}cc"
2755    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756    break 2
2757  fi
2758done
2759done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
2766  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2767$as_echo "$CC" >&6; }
2768else
2769  { $as_echo "$as_me:$LINENO: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773
2774  fi
2775fi
2776if test -z "$CC"; then
2777  # Extract the first word of "cc", so it can be a program name with args.
2778set dummy cc; ac_word=$2
2779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_CC+set}" = set; then
2782  $as_echo_n "(cached) " >&6
2783else
2784  if test -n "$CC"; then
2785  ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787  ac_prog_rejected=no
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791  IFS=$as_save_IFS
2792  test -z "$as_dir" && as_dir=.
2793  for ac_exec_ext in '' $ac_executable_extensions; do
2794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796       ac_prog_rejected=yes
2797       continue
2798     fi
2799    ac_cv_prog_CC="cc"
2800    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801    break 2
2802  fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807if test $ac_prog_rejected = yes; then
2808  # We found a bogon in the path, so make sure we never use it.
2809  set dummy $ac_cv_prog_CC
2810  shift
2811  if test $# != 0; then
2812    # We chose a different compiler from the bogus one.
2813    # However, it has the same basename, so the bogon will be chosen
2814    # first if we set CC to just the basename; use the full file name.
2815    shift
2816    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2817  fi
2818fi
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2824$as_echo "$CC" >&6; }
2825else
2826  { $as_echo "$as_me:$LINENO: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831fi
2832if test -z "$CC"; then
2833  if test -n "$ac_tool_prefix"; then
2834  for ac_prog in cl.exe
2835  do
2836    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
2840if test "${ac_cv_prog_CC+set}" = set; then
2841  $as_echo_n "(cached) " >&6
2842else
2843  if test -n "$CC"; then
2844  ac_cv_prog_CC="$CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  test -z "$as_dir" && as_dir=.
2851  for ac_exec_ext in '' $ac_executable_extensions; do
2852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863CC=$ac_cv_prog_CC
2864if test -n "$CC"; then
2865  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2866$as_echo "$CC" >&6; }
2867else
2868  { $as_echo "$as_me:$LINENO: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872
2873    test -n "$CC" && break
2874  done
2875fi
2876if test -z "$CC"; then
2877  ac_ct_CC=$CC
2878  for ac_prog in cl.exe
2879do
2880  # Extract the first word of "$ac_prog", so it can be a program name with args.
2881set dummy $ac_prog; ac_word=$2
2882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2883$as_echo_n "checking for $ac_word... " >&6; }
2884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885  $as_echo_n "(cached) " >&6
2886else
2887  if test -n "$ac_ct_CC"; then
2888  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893  IFS=$as_save_IFS
2894  test -z "$as_dir" && as_dir=.
2895  for ac_exec_ext in '' $ac_executable_extensions; do
2896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897    ac_cv_prog_ac_ct_CC="$ac_prog"
2898    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899    break 2
2900  fi
2901done
2902done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908if test -n "$ac_ct_CC"; then
2909  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2910$as_echo "$ac_ct_CC" >&6; }
2911else
2912  { $as_echo "$as_me:$LINENO: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916
2917  test -n "$ac_ct_CC" && break
2918done
2919
2920  if test "x$ac_ct_CC" = x; then
2921    CC=""
2922  else
2923    case $cross_compiling:$ac_tool_warned in
2924yes:)
2925{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927ac_tool_warned=yes ;;
2928esac
2929    CC=$ac_ct_CC
2930  fi
2931fi
2932
2933fi
2934
2935
2936test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2939See \`config.log' for more details." >&5
2940$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2941See \`config.log' for more details." >&2;}
2942   { (exit 1); exit 1; }; }; }
2943
2944# Provide some information about the compiler.
2945$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2946set X $ac_compile
2947ac_compiler=$2
2948{ (ac_try="$ac_compiler --version >&5"
2949case "(($ac_try" in
2950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951  *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954$as_echo "$ac_try_echo") >&5
2955  (eval "$ac_compiler --version >&5") 2>&5
2956  ac_status=$?
2957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }
2959{ (ac_try="$ac_compiler -v >&5"
2960case "(($ac_try" in
2961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962  *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965$as_echo "$ac_try_echo") >&5
2966  (eval "$ac_compiler -v >&5") 2>&5
2967  ac_status=$?
2968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }
2970{ (ac_try="$ac_compiler -V >&5"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976$as_echo "$ac_try_echo") >&5
2977  (eval "$ac_compiler -V >&5") 2>&5
2978  ac_status=$?
2979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }
2981
2982cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h.  */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h.  */
2988
2989int
2990main ()
2991{
2992
2993  ;
2994  return 0;
2995}
2996_ACEOF
2997ac_clean_files_save=$ac_clean_files
2998ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2999# Try to create an executable without -o first, disregard a.out.
3000# It will help us diagnose broken compilers, and finding out an intuition
3001# of exeext.
3002{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3003$as_echo_n "checking for C compiler default output file name... " >&6; }
3004ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3005
3006# The possible output files:
3007ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3008
3009ac_rmfiles=
3010for ac_file in $ac_files
3011do
3012  case $ac_file in
3013    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3014    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3015  esac
3016done
3017rm -f $ac_rmfiles
3018
3019if { (ac_try="$ac_link_default"
3020case "(($ac_try" in
3021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022  *) ac_try_echo=$ac_try;;
3023esac
3024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025$as_echo "$ac_try_echo") >&5
3026  (eval "$ac_link_default") 2>&5
3027  ac_status=$?
3028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); }; then
3030  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3031# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3032# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3033# so that the user can short-circuit this test for compilers unknown to
3034# Autoconf.
3035for ac_file in $ac_files ''
3036do
3037  test -f "$ac_file" || continue
3038  case $ac_file in
3039    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3040	;;
3041    [ab].out )
3042	# We found the default executable, but exeext='' is most
3043	# certainly right.
3044	break;;
3045    *.* )
3046        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3047	then :; else
3048	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049	fi
3050	# We set ac_cv_exeext here because the later test for it is not
3051	# safe: cross compilers may not add the suffix if given an `-o'
3052	# argument, so we may need to know it at that point already.
3053	# Even if this section looks crufty: it has the advantage of
3054	# actually working.
3055	break;;
3056    * )
3057	break;;
3058  esac
3059done
3060test "$ac_cv_exeext" = no && ac_cv_exeext=
3061
3062else
3063  ac_file=''
3064fi
3065
3066{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3067$as_echo "$ac_file" >&6; }
3068if test -z "$ac_file"; then
3069  $as_echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3075See \`config.log' for more details." >&5
3076$as_echo "$as_me: error: C compiler cannot create executables
3077See \`config.log' for more details." >&2;}
3078   { (exit 77); exit 77; }; }; }
3079fi
3080
3081ac_exeext=$ac_cv_exeext
3082
3083# Check that the compiler produces executables we can run.  If not, either
3084# the compiler is broken, or we cross compile.
3085{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3086$as_echo_n "checking whether the C compiler works... " >&6; }
3087# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3088# If not cross compiling, check that we can run a simple program.
3089if test "$cross_compiling" != yes; then
3090  if { ac_try='./$ac_file'
3091  { (case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
3097  (eval "$ac_try") 2>&5
3098  ac_status=$?
3099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; }; then
3101    cross_compiling=no
3102  else
3103    if test "$cross_compiling" = maybe; then
3104	cross_compiling=yes
3105    else
3106	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3109If you meant to cross compile, use \`--host'.
3110See \`config.log' for more details." >&5
3111$as_echo "$as_me: error: cannot run C compiled programs.
3112If you meant to cross compile, use \`--host'.
3113See \`config.log' for more details." >&2;}
3114   { (exit 1); exit 1; }; }; }
3115    fi
3116  fi
3117fi
3118{ $as_echo "$as_me:$LINENO: result: yes" >&5
3119$as_echo "yes" >&6; }
3120
3121rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3122ac_clean_files=$ac_clean_files_save
3123# Check that the compiler produces executables we can run.  If not, either
3124# the compiler is broken, or we cross compile.
3125{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3126$as_echo_n "checking whether we are cross compiling... " >&6; }
3127{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3128$as_echo "$cross_compiling" >&6; }
3129
3130{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3131$as_echo_n "checking for suffix of executables... " >&6; }
3132if { (ac_try="$ac_link"
3133case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138$as_echo "$ac_try_echo") >&5
3139  (eval "$ac_link") 2>&5
3140  ac_status=$?
3141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); }; then
3143  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3144# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3145# work properly (i.e., refer to `conftest.exe'), while it won't with
3146# `rm'.
3147for ac_file in conftest.exe conftest conftest.*; do
3148  test -f "$ac_file" || continue
3149  case $ac_file in
3150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152	  break;;
3153    * ) break;;
3154  esac
3155done
3156else
3157  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3160See \`config.log' for more details." >&5
3161$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3162See \`config.log' for more details." >&2;}
3163   { (exit 1); exit 1; }; }; }
3164fi
3165
3166rm -f conftest$ac_cv_exeext
3167{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3168$as_echo "$ac_cv_exeext" >&6; }
3169
3170rm -f conftest.$ac_ext
3171EXEEXT=$ac_cv_exeext
3172ac_exeext=$EXEEXT
3173{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3174$as_echo_n "checking for suffix of object files... " >&6; }
3175if test "${ac_cv_objext+set}" = set; then
3176  $as_echo_n "(cached) " >&6
3177else
3178  cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h.  */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h.  */
3184
3185int
3186main ()
3187{
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193rm -f conftest.o conftest.obj
3194if { (ac_try="$ac_compile"
3195case "(($ac_try" in
3196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197  *) ac_try_echo=$ac_try;;
3198esac
3199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3200$as_echo "$ac_try_echo") >&5
3201  (eval "$ac_compile") 2>&5
3202  ac_status=$?
3203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; then
3205  for ac_file in conftest.o conftest.obj conftest.*; do
3206  test -f "$ac_file" || continue;
3207  case $ac_file in
3208    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3209    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210       break;;
3211  esac
3212done
3213else
3214  $as_echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3220See \`config.log' for more details." >&5
3221$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3222See \`config.log' for more details." >&2;}
3223   { (exit 1); exit 1; }; }; }
3224fi
3225
3226rm -f conftest.$ac_cv_objext conftest.$ac_ext
3227fi
3228{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3229$as_echo "$ac_cv_objext" >&6; }
3230OBJEXT=$ac_cv_objext
3231ac_objext=$OBJEXT
3232{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3233$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3234if test "${ac_cv_c_compiler_gnu+set}" = set; then
3235  $as_echo_n "(cached) " >&6
3236else
3237  cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h.  */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h.  */
3243
3244int
3245main ()
3246{
3247#ifndef __GNUC__
3248       choke me
3249#endif
3250
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (ac_try="$ac_compile"
3257case "(($ac_try" in
3258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259  *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262$as_echo "$ac_try_echo") >&5
3263  (eval "$ac_compile") 2>conftest.er1
3264  ac_status=$?
3265  grep -v '^ *+' conftest.er1 >conftest.err
3266  rm -f conftest.er1
3267  cat conftest.err >&5
3268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); } && {
3270	 test -z "$ac_c_werror_flag" ||
3271	 test ! -s conftest.err
3272       } && test -s conftest.$ac_objext; then
3273  ac_compiler_gnu=yes
3274else
3275  $as_echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278	ac_compiler_gnu=no
3279fi
3280
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282ac_cv_c_compiler_gnu=$ac_compiler_gnu
3283
3284fi
3285{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3286$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3287if test $ac_compiler_gnu = yes; then
3288  GCC=yes
3289else
3290  GCC=
3291fi
3292ac_test_CFLAGS=${CFLAGS+set}
3293ac_save_CFLAGS=$CFLAGS
3294{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3295$as_echo_n "checking whether $CC accepts -g... " >&6; }
3296if test "${ac_cv_prog_cc_g+set}" = set; then
3297  $as_echo_n "(cached) " >&6
3298else
3299  ac_save_c_werror_flag=$ac_c_werror_flag
3300   ac_c_werror_flag=yes
3301   ac_cv_prog_cc_g=no
3302   CFLAGS="-g"
3303   cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h.  */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h.  */
3309
3310int
3311main ()
3312{
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (ac_try="$ac_compile"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3325$as_echo "$ac_try_echo") >&5
3326  (eval "$ac_compile") 2>conftest.er1
3327  ac_status=$?
3328  grep -v '^ *+' conftest.er1 >conftest.err
3329  rm -f conftest.er1
3330  cat conftest.err >&5
3331  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); } && {
3333	 test -z "$ac_c_werror_flag" ||
3334	 test ! -s conftest.err
3335       } && test -s conftest.$ac_objext; then
3336  ac_cv_prog_cc_g=yes
3337else
3338  $as_echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
3341	CFLAGS=""
3342      cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h.  */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h.  */
3348
3349int
3350main ()
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (ac_try="$ac_compile"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3364$as_echo "$ac_try_echo") >&5
3365  (eval "$ac_compile") 2>conftest.er1
3366  ac_status=$?
3367  grep -v '^ *+' conftest.er1 >conftest.err
3368  rm -f conftest.er1
3369  cat conftest.err >&5
3370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); } && {
3372	 test -z "$ac_c_werror_flag" ||
3373	 test ! -s conftest.err
3374       } && test -s conftest.$ac_objext; then
3375  :
3376else
3377  $as_echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380	ac_c_werror_flag=$ac_save_c_werror_flag
3381	 CFLAGS="-g"
3382	 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h.  */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h.  */
3388
3389int
3390main ()
3391{
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (ac_try="$ac_compile"
3399case "(($ac_try" in
3400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401  *) ac_try_echo=$ac_try;;
3402esac
3403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404$as_echo "$ac_try_echo") >&5
3405  (eval "$ac_compile") 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } && {
3412	 test -z "$ac_c_werror_flag" ||
3413	 test ! -s conftest.err
3414       } && test -s conftest.$ac_objext; then
3415  ac_cv_prog_cc_g=yes
3416else
3417  $as_echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420
3421fi
3422
3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424fi
3425
3426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427fi
3428
3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430   ac_c_werror_flag=$ac_save_c_werror_flag
3431fi
3432{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3433$as_echo "$ac_cv_prog_cc_g" >&6; }
3434if test "$ac_test_CFLAGS" = set; then
3435  CFLAGS=$ac_save_CFLAGS
3436elif test $ac_cv_prog_cc_g = yes; then
3437  if test "$GCC" = yes; then
3438    CFLAGS="-g -O2"
3439  else
3440    CFLAGS="-g"
3441  fi
3442else
3443  if test "$GCC" = yes; then
3444    CFLAGS="-O2"
3445  else
3446    CFLAGS=
3447  fi
3448fi
3449{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3450$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451if test "${ac_cv_prog_cc_c89+set}" = set; then
3452  $as_echo_n "(cached) " >&6
3453else
3454  ac_cv_prog_cc_c89=no
3455ac_save_CC=$CC
3456cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462#include <stdarg.h>
3463#include <stdio.h>
3464#include <sys/types.h>
3465#include <sys/stat.h>
3466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3467struct buf { int x; };
3468FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469static char *e (p, i)
3470     char **p;
3471     int i;
3472{
3473  return p[i];
3474}
3475static char *f (char * (*g) (char **, int), char **p, ...)
3476{
3477  char *s;
3478  va_list v;
3479  va_start (v,p);
3480  s = g (p, va_arg (v,int));
3481  va_end (v);
3482  return s;
3483}
3484
3485/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3486   function prototypes and stuff, but not '\xHH' hex character constants.
3487   These don't provoke an error unfortunately, instead are silently treated
3488   as 'x'.  The following induces an error, until -std is added to get
3489   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3490   array size at least.  It's necessary to write '\x00'==0 to get something
3491   that's true only with -std.  */
3492int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493
3494/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3495   inside strings and character constants.  */
3496#define FOO(x) 'x'
3497int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498
3499int test (int i, double x);
3500struct s1 {int (*f) (int a);};
3501struct s2 {int (*f) (double a);};
3502int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3503int argc;
3504char **argv;
3505int
3506main ()
3507{
3508return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3514	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515do
3516  CC="$ac_save_CC $ac_arg"
3517  rm -f conftest.$ac_objext
3518if { (ac_try="$ac_compile"
3519case "(($ac_try" in
3520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521  *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524$as_echo "$ac_try_echo") >&5
3525  (eval "$ac_compile") 2>conftest.er1
3526  ac_status=$?
3527  grep -v '^ *+' conftest.er1 >conftest.err
3528  rm -f conftest.er1
3529  cat conftest.err >&5
3530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); } && {
3532	 test -z "$ac_c_werror_flag" ||
3533	 test ! -s conftest.err
3534       } && test -s conftest.$ac_objext; then
3535  ac_cv_prog_cc_c89=$ac_arg
3536else
3537  $as_echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3540
3541fi
3542
3543rm -f core conftest.err conftest.$ac_objext
3544  test "x$ac_cv_prog_cc_c89" != "xno" && break
3545done
3546rm -f conftest.$ac_ext
3547CC=$ac_save_CC
3548
3549fi
3550# AC_CACHE_VAL
3551case "x$ac_cv_prog_cc_c89" in
3552  x)
3553    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3554$as_echo "none needed" >&6; } ;;
3555  xno)
3556    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3557$as_echo "unsupported" >&6; } ;;
3558  *)
3559    CC="$CC $ac_cv_prog_cc_c89"
3560    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3561$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3562esac
3563
3564
3565ac_ext=c
3566ac_cpp='$CPP $CPPFLAGS'
3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570DEPDIR="${am__leading_dot}deps"
3571
3572ac_config_commands="$ac_config_commands depfiles"
3573
3574
3575am_make=${MAKE-make}
3576cat > confinc << 'END'
3577am__doit:
3578	@echo this is the am__doit target
3579.PHONY: am__doit
3580END
3581# If we don't find an include directive, just comment out the code.
3582{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3583$as_echo_n "checking for style of include used by $am_make... " >&6; }
3584am__include="#"
3585am__quote=
3586_am_result=none
3587# First try GNU make style include.
3588echo "include confinc" > confmf
3589# Ignore all kinds of additional output from `make'.
3590case `$am_make -s -f confmf 2> /dev/null` in #(
3591*the\ am__doit\ target*)
3592  am__include=include
3593  am__quote=
3594  _am_result=GNU
3595  ;;
3596esac
3597# Now try BSD make style include.
3598if test "$am__include" = "#"; then
3599   echo '.include "confinc"' > confmf
3600   case `$am_make -s -f confmf 2> /dev/null` in #(
3601   *the\ am__doit\ target*)
3602     am__include=.include
3603     am__quote="\""
3604     _am_result=BSD
3605     ;;
3606   esac
3607fi
3608
3609
3610{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3611$as_echo "$_am_result" >&6; }
3612rm -f confinc confmf
3613
3614# Check whether --enable-dependency-tracking was given.
3615if test "${enable_dependency_tracking+set}" = set; then
3616  enableval=$enable_dependency_tracking;
3617fi
3618
3619if test "x$enable_dependency_tracking" != xno; then
3620  am_depcomp="$ac_aux_dir/depcomp"
3621  AMDEPBACKSLASH='\'
3622fi
3623 if test "x$enable_dependency_tracking" != xno; then
3624  AMDEP_TRUE=
3625  AMDEP_FALSE='#'
3626else
3627  AMDEP_TRUE='#'
3628  AMDEP_FALSE=
3629fi
3630
3631
3632
3633depcc="$CC"   am_compiler_list=
3634
3635{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3636$as_echo_n "checking dependency style of $depcc... " >&6; }
3637if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3638  $as_echo_n "(cached) " >&6
3639else
3640  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3641  # We make a subdir and do the tests there.  Otherwise we can end up
3642  # making bogus files that we don't know about and never remove.  For
3643  # instance it was reported that on HP-UX the gcc test will end up
3644  # making a dummy file named `D' -- because `-MD' means `put the output
3645  # in D'.
3646  mkdir conftest.dir
3647  # Copy depcomp to subdir because otherwise we won't find it if we're
3648  # using a relative directory.
3649  cp "$am_depcomp" conftest.dir
3650  cd conftest.dir
3651  # We will build objects and dependencies in a subdirectory because
3652  # it helps to detect inapplicable dependency modes.  For instance
3653  # both Tru64's cc and ICC support -MD to output dependencies as a
3654  # side effect of compilation, but ICC will put the dependencies in
3655  # the current directory while Tru64 will put them in the object
3656  # directory.
3657  mkdir sub
3658
3659  am_cv_CC_dependencies_compiler_type=none
3660  if test "$am_compiler_list" = ""; then
3661     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3662  fi
3663  am__universal=false
3664  case " $depcc " in #(
3665     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3666     esac
3667
3668  for depmode in $am_compiler_list; do
3669    # Setup a source with many dependencies, because some compilers
3670    # like to wrap large dependency lists on column 80 (with \), and
3671    # we should not choose a depcomp mode which is confused by this.
3672    #
3673    # We need to recreate these files for each test, as the compiler may
3674    # overwrite some of them when testing with obscure command lines.
3675    # This happens at least with the AIX C compiler.
3676    : > sub/conftest.c
3677    for i in 1 2 3 4 5 6; do
3678      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3679      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3680      # Solaris 8's {/usr,}/bin/sh.
3681      touch sub/conftst$i.h
3682    done
3683    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3684
3685    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3686    # mode.  It turns out that the SunPro C++ compiler does not properly
3687    # handle `-M -o', and we need to detect this.  Also, some Intel
3688    # versions had trouble with output in subdirs
3689    am__obj=sub/conftest.${OBJEXT-o}
3690    am__minus_obj="-o $am__obj"
3691    case $depmode in
3692    gcc)
3693      # This depmode causes a compiler race in universal mode.
3694      test "$am__universal" = false || continue
3695      ;;
3696    nosideeffect)
3697      # after this tag, mechanisms are not by side-effect, so they'll
3698      # only be used when explicitly requested
3699      if test "x$enable_dependency_tracking" = xyes; then
3700	continue
3701      else
3702	break
3703      fi
3704      ;;
3705    msvisualcpp | msvcmsys)
3706      # This compiler won't grok `-c -o', but also, the minuso test has
3707      # not run yet.  These depmodes are late enough in the game, and
3708      # so weak that their functioning should not be impacted.
3709      am__obj=conftest.${OBJEXT-o}
3710      am__minus_obj=
3711      ;;
3712    none) break ;;
3713    esac
3714    if depmode=$depmode \
3715       source=sub/conftest.c object=$am__obj \
3716       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3717       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3718         >/dev/null 2>conftest.err &&
3719       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3720       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3721       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3722       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3723      # icc doesn't choke on unknown options, it will just issue warnings
3724      # or remarks (even with -Werror).  So we grep stderr for any message
3725      # that says an option was ignored or not supported.
3726      # When given -MP, icc 7.0 and 7.1 complain thusly:
3727      #   icc: Command line warning: ignoring option '-M'; no argument required
3728      # The diagnosis changed in icc 8.0:
3729      #   icc: Command line remark: option '-MP' not supported
3730      if (grep 'ignoring option' conftest.err ||
3731          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3732        am_cv_CC_dependencies_compiler_type=$depmode
3733        break
3734      fi
3735    fi
3736  done
3737
3738  cd ..
3739  rm -rf conftest.dir
3740else
3741  am_cv_CC_dependencies_compiler_type=none
3742fi
3743
3744fi
3745{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3746$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3747CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748
3749 if
3750  test "x$enable_dependency_tracking" != xno \
3751  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3752  am__fastdepCC_TRUE=
3753  am__fastdepCC_FALSE='#'
3754else
3755  am__fastdepCC_TRUE='#'
3756  am__fastdepCC_FALSE=
3757fi
3758
3759
3760if test -n "$ac_tool_prefix"; then
3761  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3762set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3763{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764$as_echo_n "checking for $ac_word... " >&6; }
3765if test "${ac_cv_prog_RANLIB+set}" = set; then
3766  $as_echo_n "(cached) " >&6
3767else
3768  if test -n "$RANLIB"; then
3769  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774  IFS=$as_save_IFS
3775  test -z "$as_dir" && as_dir=.
3776  for ac_exec_ext in '' $ac_executable_extensions; do
3777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3779    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780    break 2
3781  fi
3782done
3783done
3784IFS=$as_save_IFS
3785
3786fi
3787fi
3788RANLIB=$ac_cv_prog_RANLIB
3789if test -n "$RANLIB"; then
3790  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3791$as_echo "$RANLIB" >&6; }
3792else
3793  { $as_echo "$as_me:$LINENO: result: no" >&5
3794$as_echo "no" >&6; }
3795fi
3796
3797
3798fi
3799if test -z "$ac_cv_prog_RANLIB"; then
3800  ac_ct_RANLIB=$RANLIB
3801  # Extract the first word of "ranlib", so it can be a program name with args.
3802set dummy ranlib; ac_word=$2
3803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3804$as_echo_n "checking for $ac_word... " >&6; }
3805if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3806  $as_echo_n "(cached) " >&6
3807else
3808  if test -n "$ac_ct_RANLIB"; then
3809  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3810else
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814  IFS=$as_save_IFS
3815  test -z "$as_dir" && as_dir=.
3816  for ac_exec_ext in '' $ac_executable_extensions; do
3817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818    ac_cv_prog_ac_ct_RANLIB="ranlib"
3819    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820    break 2
3821  fi
3822done
3823done
3824IFS=$as_save_IFS
3825
3826fi
3827fi
3828ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3829if test -n "$ac_ct_RANLIB"; then
3830  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3831$as_echo "$ac_ct_RANLIB" >&6; }
3832else
3833  { $as_echo "$as_me:$LINENO: result: no" >&5
3834$as_echo "no" >&6; }
3835fi
3836
3837  if test "x$ac_ct_RANLIB" = x; then
3838    RANLIB=":"
3839  else
3840    case $cross_compiling:$ac_tool_warned in
3841yes:)
3842{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844ac_tool_warned=yes ;;
3845esac
3846    RANLIB=$ac_ct_RANLIB
3847  fi
3848else
3849  RANLIB="$ac_cv_prog_RANLIB"
3850fi
3851
3852{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3853$as_echo_n "checking whether ln -s works... " >&6; }
3854LN_S=$as_ln_s
3855if test "$LN_S" = "ln -s"; then
3856  { $as_echo "$as_me:$LINENO: result: yes" >&5
3857$as_echo "yes" >&6; }
3858else
3859  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3860$as_echo "no, using $LN_S" >&6; }
3861fi
3862
3863case `pwd` in
3864  *\ * | *\	*)
3865    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3866$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3867esac
3868
3869
3870
3871macro_version='2.2.6b'
3872macro_revision='1.3017'
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886ltmain="$ac_aux_dir/ltmain.sh"
3887
3888{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3889$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3890if test "${ac_cv_path_SED+set}" = set; then
3891  $as_echo_n "(cached) " >&6
3892else
3893            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3894     for ac_i in 1 2 3 4 5 6 7; do
3895       ac_script="$ac_script$as_nl$ac_script"
3896     done
3897     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3898     $as_unset ac_script || ac_script=
3899     if test -z "$SED"; then
3900  ac_path_SED_found=false
3901  # Loop through the user's path and test for each of PROGNAME-LIST
3902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905  IFS=$as_save_IFS
3906  test -z "$as_dir" && as_dir=.
3907  for ac_prog in sed gsed; do
3908    for ac_exec_ext in '' $ac_executable_extensions; do
3909      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3910      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3911# Check for GNU ac_path_SED and select it if it is found.
3912  # Check for GNU $ac_path_SED
3913case `"$ac_path_SED" --version 2>&1` in
3914*GNU*)
3915  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3916*)
3917  ac_count=0
3918  $as_echo_n 0123456789 >"conftest.in"
3919  while :
3920  do
3921    cat "conftest.in" "conftest.in" >"conftest.tmp"
3922    mv "conftest.tmp" "conftest.in"
3923    cp "conftest.in" "conftest.nl"
3924    $as_echo '' >> "conftest.nl"
3925    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927    ac_count=`expr $ac_count + 1`
3928    if test $ac_count -gt ${ac_path_SED_max-0}; then
3929      # Best one so far, save it but keep looking for a better one
3930      ac_cv_path_SED="$ac_path_SED"
3931      ac_path_SED_max=$ac_count
3932    fi
3933    # 10*(2^10) chars as input seems more than enough
3934    test $ac_count -gt 10 && break
3935  done
3936  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937esac
3938
3939      $ac_path_SED_found && break 3
3940    done
3941  done
3942done
3943IFS=$as_save_IFS
3944  if test -z "$ac_cv_path_SED"; then
3945    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3946$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3947   { (exit 1); exit 1; }; }
3948  fi
3949else
3950  ac_cv_path_SED=$SED
3951fi
3952
3953fi
3954{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3955$as_echo "$ac_cv_path_SED" >&6; }
3956 SED="$ac_cv_path_SED"
3957  rm -f conftest.sed
3958
3959test -z "$SED" && SED=sed
3960Xsed="$SED -e 1s/^X//"
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3974if test "${ac_cv_path_GREP+set}" = set; then
3975  $as_echo_n "(cached) " >&6
3976else
3977  if test -z "$GREP"; then
3978  ac_path_GREP_found=false
3979  # Loop through the user's path and test for each of PROGNAME-LIST
3980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982do
3983  IFS=$as_save_IFS
3984  test -z "$as_dir" && as_dir=.
3985  for ac_prog in grep ggrep; do
3986    for ac_exec_ext in '' $ac_executable_extensions; do
3987      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3988      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3989# Check for GNU ac_path_GREP and select it if it is found.
3990  # Check for GNU $ac_path_GREP
3991case `"$ac_path_GREP" --version 2>&1` in
3992*GNU*)
3993  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3994*)
3995  ac_count=0
3996  $as_echo_n 0123456789 >"conftest.in"
3997  while :
3998  do
3999    cat "conftest.in" "conftest.in" >"conftest.tmp"
4000    mv "conftest.tmp" "conftest.in"
4001    cp "conftest.in" "conftest.nl"
4002    $as_echo 'GREP' >> "conftest.nl"
4003    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4005    ac_count=`expr $ac_count + 1`
4006    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4007      # Best one so far, save it but keep looking for a better one
4008      ac_cv_path_GREP="$ac_path_GREP"
4009      ac_path_GREP_max=$ac_count
4010    fi
4011    # 10*(2^10) chars as input seems more than enough
4012    test $ac_count -gt 10 && break
4013  done
4014  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015esac
4016
4017      $ac_path_GREP_found && break 3
4018    done
4019  done
4020done
4021IFS=$as_save_IFS
4022  if test -z "$ac_cv_path_GREP"; then
4023    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025   { (exit 1); exit 1; }; }
4026  fi
4027else
4028  ac_cv_path_GREP=$GREP
4029fi
4030
4031fi
4032{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033$as_echo "$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4035
4036
4037{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4038$as_echo_n "checking for egrep... " >&6; }
4039if test "${ac_cv_path_EGREP+set}" = set; then
4040  $as_echo_n "(cached) " >&6
4041else
4042  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043   then ac_cv_path_EGREP="$GREP -E"
4044   else
4045     if test -z "$EGREP"; then
4046  ac_path_EGREP_found=false
4047  # Loop through the user's path and test for each of PROGNAME-LIST
4048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050do
4051  IFS=$as_save_IFS
4052  test -z "$as_dir" && as_dir=.
4053  for ac_prog in egrep; do
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4056      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4057# Check for GNU ac_path_EGREP and select it if it is found.
4058  # Check for GNU $ac_path_EGREP
4059case `"$ac_path_EGREP" --version 2>&1` in
4060*GNU*)
4061  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4062*)
4063  ac_count=0
4064  $as_echo_n 0123456789 >"conftest.in"
4065  while :
4066  do
4067    cat "conftest.in" "conftest.in" >"conftest.tmp"
4068    mv "conftest.tmp" "conftest.in"
4069    cp "conftest.in" "conftest.nl"
4070    $as_echo 'EGREP' >> "conftest.nl"
4071    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073    ac_count=`expr $ac_count + 1`
4074    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4075      # Best one so far, save it but keep looking for a better one
4076      ac_cv_path_EGREP="$ac_path_EGREP"
4077      ac_path_EGREP_max=$ac_count
4078    fi
4079    # 10*(2^10) chars as input seems more than enough
4080    test $ac_count -gt 10 && break
4081  done
4082  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083esac
4084
4085      $ac_path_EGREP_found && break 3
4086    done
4087  done
4088done
4089IFS=$as_save_IFS
4090  if test -z "$ac_cv_path_EGREP"; then
4091    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4092$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4093   { (exit 1); exit 1; }; }
4094  fi
4095else
4096  ac_cv_path_EGREP=$EGREP
4097fi
4098
4099   fi
4100fi
4101{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4102$as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP="$ac_cv_path_EGREP"
4104
4105
4106{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4107$as_echo_n "checking for fgrep... " >&6; }
4108if test "${ac_cv_path_FGREP+set}" = set; then
4109  $as_echo_n "(cached) " >&6
4110else
4111  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4112   then ac_cv_path_FGREP="$GREP -F"
4113   else
4114     if test -z "$FGREP"; then
4115  ac_path_FGREP_found=false
4116  # Loop through the user's path and test for each of PROGNAME-LIST
4117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119do
4120  IFS=$as_save_IFS
4121  test -z "$as_dir" && as_dir=.
4122  for ac_prog in fgrep; do
4123    for ac_exec_ext in '' $ac_executable_extensions; do
4124      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4125      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4126# Check for GNU ac_path_FGREP and select it if it is found.
4127  # Check for GNU $ac_path_FGREP
4128case `"$ac_path_FGREP" --version 2>&1` in
4129*GNU*)
4130  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4131*)
4132  ac_count=0
4133  $as_echo_n 0123456789 >"conftest.in"
4134  while :
4135  do
4136    cat "conftest.in" "conftest.in" >"conftest.tmp"
4137    mv "conftest.tmp" "conftest.in"
4138    cp "conftest.in" "conftest.nl"
4139    $as_echo 'FGREP' >> "conftest.nl"
4140    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142    ac_count=`expr $ac_count + 1`
4143    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4144      # Best one so far, save it but keep looking for a better one
4145      ac_cv_path_FGREP="$ac_path_FGREP"
4146      ac_path_FGREP_max=$ac_count
4147    fi
4148    # 10*(2^10) chars as input seems more than enough
4149    test $ac_count -gt 10 && break
4150  done
4151  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152esac
4153
4154      $ac_path_FGREP_found && break 3
4155    done
4156  done
4157done
4158IFS=$as_save_IFS
4159  if test -z "$ac_cv_path_FGREP"; then
4160    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4161$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4162   { (exit 1); exit 1; }; }
4163  fi
4164else
4165  ac_cv_path_FGREP=$FGREP
4166fi
4167
4168   fi
4169fi
4170{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4171$as_echo "$ac_cv_path_FGREP" >&6; }
4172 FGREP="$ac_cv_path_FGREP"
4173
4174
4175test -z "$GREP" && GREP=grep
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195# Check whether --with-gnu-ld was given.
4196if test "${with_gnu_ld+set}" = set; then
4197  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4198else
4199  with_gnu_ld=no
4200fi
4201
4202ac_prog=ld
4203if test "$GCC" = yes; then
4204  # Check if gcc -print-prog-name=ld gives a path.
4205  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4206$as_echo_n "checking for ld used by $CC... " >&6; }
4207  case $host in
4208  *-*-mingw*)
4209    # gcc leaves a trailing carriage return which upsets mingw
4210    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4211  *)
4212    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4213  esac
4214  case $ac_prog in
4215    # Accept absolute paths.
4216    [\\/]* | ?:[\\/]*)
4217      re_direlt='/[^/][^/]*/\.\./'
4218      # Canonicalize the pathname of ld
4219      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4220      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4221	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4222      done
4223      test -z "$LD" && LD="$ac_prog"
4224      ;;
4225  "")
4226    # If it fails, then pretend we aren't using GCC.
4227    ac_prog=ld
4228    ;;
4229  *)
4230    # If it is relative, then search for the first ld in PATH.
4231    with_gnu_ld=unknown
4232    ;;
4233  esac
4234elif test "$with_gnu_ld" = yes; then
4235  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4236$as_echo_n "checking for GNU ld... " >&6; }
4237else
4238  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4239$as_echo_n "checking for non-GNU ld... " >&6; }
4240fi
4241if test "${lt_cv_path_LD+set}" = set; then
4242  $as_echo_n "(cached) " >&6
4243else
4244  if test -z "$LD"; then
4245  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4246  for ac_dir in $PATH; do
4247    IFS="$lt_save_ifs"
4248    test -z "$ac_dir" && ac_dir=.
4249    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4250      lt_cv_path_LD="$ac_dir/$ac_prog"
4251      # Check to see if the program is GNU ld.  I'd rather use --version,
4252      # but apparently some variants of GNU ld only accept -v.
4253      # Break only if it was the GNU/non-GNU ld that we prefer.
4254      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4255      *GNU* | *'with BFD'*)
4256	test "$with_gnu_ld" != no && break
4257	;;
4258      *)
4259	test "$with_gnu_ld" != yes && break
4260	;;
4261      esac
4262    fi
4263  done
4264  IFS="$lt_save_ifs"
4265else
4266  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4267fi
4268fi
4269
4270LD="$lt_cv_path_LD"
4271if test -n "$LD"; then
4272  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4273$as_echo "$LD" >&6; }
4274else
4275  { $as_echo "$as_me:$LINENO: result: no" >&5
4276$as_echo "no" >&6; }
4277fi
4278test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4279$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4280   { (exit 1); exit 1; }; }
4281{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4282$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4283if test "${lt_cv_prog_gnu_ld+set}" = set; then
4284  $as_echo_n "(cached) " >&6
4285else
4286  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4287case `$LD -v 2>&1 </dev/null` in
4288*GNU* | *'with BFD'*)
4289  lt_cv_prog_gnu_ld=yes
4290  ;;
4291*)
4292  lt_cv_prog_gnu_ld=no
4293  ;;
4294esac
4295fi
4296{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4297$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4298with_gnu_ld=$lt_cv_prog_gnu_ld
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4309$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4310if test "${lt_cv_path_NM+set}" = set; then
4311  $as_echo_n "(cached) " >&6
4312else
4313  if test -n "$NM"; then
4314  # Let the user override the test.
4315  lt_cv_path_NM="$NM"
4316else
4317  lt_nm_to_check="${ac_tool_prefix}nm"
4318  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4319    lt_nm_to_check="$lt_nm_to_check nm"
4320  fi
4321  for lt_tmp_nm in $lt_nm_to_check; do
4322    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4323    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4324      IFS="$lt_save_ifs"
4325      test -z "$ac_dir" && ac_dir=.
4326      tmp_nm="$ac_dir/$lt_tmp_nm"
4327      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4328	# Check to see if the nm accepts a BSD-compat flag.
4329	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4330	#   nm: unknown option "B" ignored
4331	# Tru64's nm complains that /dev/null is an invalid object file
4332	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4333	*/dev/null* | *'Invalid file or object type'*)
4334	  lt_cv_path_NM="$tmp_nm -B"
4335	  break
4336	  ;;
4337	*)
4338	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4339	  */dev/null*)
4340	    lt_cv_path_NM="$tmp_nm -p"
4341	    break
4342	    ;;
4343	  *)
4344	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4345	    continue # so that we can try to find one that supports BSD flags
4346	    ;;
4347	  esac
4348	  ;;
4349	esac
4350      fi
4351    done
4352    IFS="$lt_save_ifs"
4353  done
4354  : ${lt_cv_path_NM=no}
4355fi
4356fi
4357{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4358$as_echo "$lt_cv_path_NM" >&6; }
4359if test "$lt_cv_path_NM" != "no"; then
4360  NM="$lt_cv_path_NM"
4361else
4362  # Didn't find any BSD compatible name lister, look for dumpbin.
4363  if test -n "$ac_tool_prefix"; then
4364  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4365  do
4366    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4367set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4368{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
4370if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4371  $as_echo_n "(cached) " >&6
4372else
4373  if test -n "$DUMPBIN"; then
4374  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4375else
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379  IFS=$as_save_IFS
4380  test -z "$as_dir" && as_dir=.
4381  for ac_exec_ext in '' $ac_executable_extensions; do
4382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4384    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385    break 2
4386  fi
4387done
4388done
4389IFS=$as_save_IFS
4390
4391fi
4392fi
4393DUMPBIN=$ac_cv_prog_DUMPBIN
4394if test -n "$DUMPBIN"; then
4395  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4396$as_echo "$DUMPBIN" >&6; }
4397else
4398  { $as_echo "$as_me:$LINENO: result: no" >&5
4399$as_echo "no" >&6; }
4400fi
4401
4402
4403    test -n "$DUMPBIN" && break
4404  done
4405fi
4406if test -z "$DUMPBIN"; then
4407  ac_ct_DUMPBIN=$DUMPBIN
4408  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4409do
4410  # Extract the first word of "$ac_prog", so it can be a program name with args.
4411set dummy $ac_prog; ac_word=$2
4412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4413$as_echo_n "checking for $ac_word... " >&6; }
4414if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4415  $as_echo_n "(cached) " >&6
4416else
4417  if test -n "$ac_ct_DUMPBIN"; then
4418  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423  IFS=$as_save_IFS
4424  test -z "$as_dir" && as_dir=.
4425  for ac_exec_ext in '' $ac_executable_extensions; do
4426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4428    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429    break 2
4430  fi
4431done
4432done
4433IFS=$as_save_IFS
4434
4435fi
4436fi
4437ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4438if test -n "$ac_ct_DUMPBIN"; then
4439  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4440$as_echo "$ac_ct_DUMPBIN" >&6; }
4441else
4442  { $as_echo "$as_me:$LINENO: result: no" >&5
4443$as_echo "no" >&6; }
4444fi
4445
4446
4447  test -n "$ac_ct_DUMPBIN" && break
4448done
4449
4450  if test "x$ac_ct_DUMPBIN" = x; then
4451    DUMPBIN=":"
4452  else
4453    case $cross_compiling:$ac_tool_warned in
4454yes:)
4455{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4457ac_tool_warned=yes ;;
4458esac
4459    DUMPBIN=$ac_ct_DUMPBIN
4460  fi
4461fi
4462
4463
4464  if test "$DUMPBIN" != ":"; then
4465    NM="$DUMPBIN"
4466  fi
4467fi
4468test -z "$NM" && NM=nm
4469
4470
4471
4472
4473
4474
4475{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4476$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4477if test "${lt_cv_nm_interface+set}" = set; then
4478  $as_echo_n "(cached) " >&6
4479else
4480  lt_cv_nm_interface="BSD nm"
4481  echo "int some_variable = 0;" > conftest.$ac_ext
4482  (eval echo "\"\$as_me:4482: $ac_compile\"" >&5)
4483  (eval "$ac_compile" 2>conftest.err)
4484  cat conftest.err >&5
4485  (eval echo "\"\$as_me:4485: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4486  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4487  cat conftest.err >&5
4488  (eval echo "\"\$as_me:4488: output\"" >&5)
4489  cat conftest.out >&5
4490  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4491    lt_cv_nm_interface="MS dumpbin"
4492  fi
4493  rm -f conftest*
4494fi
4495{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4496$as_echo "$lt_cv_nm_interface" >&6; }
4497
4498# find the maximum length of command line arguments
4499{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4500$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4501if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4502  $as_echo_n "(cached) " >&6
4503else
4504    i=0
4505  teststring="ABCD"
4506
4507  case $build_os in
4508  msdosdjgpp*)
4509    # On DJGPP, this test can blow up pretty badly due to problems in libc
4510    # (any single argument exceeding 2000 bytes causes a buffer overrun
4511    # during glob expansion).  Even if it were fixed, the result of this
4512    # check would be larger than it should be.
4513    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4514    ;;
4515
4516  gnu*)
4517    # Under GNU Hurd, this test is not required because there is
4518    # no limit to the length of command line arguments.
4519    # Libtool will interpret -1 as no limit whatsoever
4520    lt_cv_sys_max_cmd_len=-1;
4521    ;;
4522
4523  cygwin* | mingw* | cegcc*)
4524    # On Win9x/ME, this test blows up -- it succeeds, but takes
4525    # about 5 minutes as the teststring grows exponentially.
4526    # Worse, since 9x/ME are not pre-emptively multitasking,
4527    # you end up with a "frozen" computer, even though with patience
4528    # the test eventually succeeds (with a max line length of 256k).
4529    # Instead, let's just punt: use the minimum linelength reported by
4530    # all of the supported platforms: 8192 (on NT/2K/XP).
4531    lt_cv_sys_max_cmd_len=8192;
4532    ;;
4533
4534  amigaos*)
4535    # On AmigaOS with pdksh, this test takes hours, literally.
4536    # So we just punt and use a minimum line length of 8192.
4537    lt_cv_sys_max_cmd_len=8192;
4538    ;;
4539
4540  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4541    # This has been around since 386BSD, at least.  Likely further.
4542    if test -x /sbin/sysctl; then
4543      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4544    elif test -x /usr/sbin/sysctl; then
4545      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4546    else
4547      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4548    fi
4549    # And add a safety zone
4550    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4551    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4552    ;;
4553
4554  interix*)
4555    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4556    lt_cv_sys_max_cmd_len=196608
4557    ;;
4558
4559  osf*)
4560    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4561    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4562    # nice to cause kernel panics so lets avoid the loop below.
4563    # First set a reasonable default.
4564    lt_cv_sys_max_cmd_len=16384
4565    #
4566    if test -x /sbin/sysconfig; then
4567      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4568        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4569      esac
4570    fi
4571    ;;
4572  sco3.2v5*)
4573    lt_cv_sys_max_cmd_len=102400
4574    ;;
4575  sysv5* | sco5v6* | sysv4.2uw2*)
4576    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4577    if test -n "$kargmax"; then
4578      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4579    else
4580      lt_cv_sys_max_cmd_len=32768
4581    fi
4582    ;;
4583  *)
4584    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4585    if test -n "$lt_cv_sys_max_cmd_len"; then
4586      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4587      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4588    else
4589      # Make teststring a little bigger before we do anything with it.
4590      # a 1K string should be a reasonable start.
4591      for i in 1 2 3 4 5 6 7 8 ; do
4592        teststring=$teststring$teststring
4593      done
4594      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4595      # If test is not a shell built-in, we'll probably end up computing a
4596      # maximum length that is only half of the actual maximum length, but
4597      # we can't tell.
4598      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4599	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4600	      test $i != 17 # 1/2 MB should be enough
4601      do
4602        i=`expr $i + 1`
4603        teststring=$teststring$teststring
4604      done
4605      # Only check the string length outside the loop.
4606      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4607      teststring=
4608      # Add a significant safety factor because C++ compilers can tack on
4609      # massive amounts of additional arguments before passing them to the
4610      # linker.  It appears as though 1/2 is a usable value.
4611      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4612    fi
4613    ;;
4614  esac
4615
4616fi
4617
4618if test -n $lt_cv_sys_max_cmd_len ; then
4619  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4620$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4621else
4622  { $as_echo "$as_me:$LINENO: result: none" >&5
4623$as_echo "none" >&6; }
4624fi
4625max_cmd_len=$lt_cv_sys_max_cmd_len
4626
4627
4628
4629
4630
4631
4632: ${CP="cp -f"}
4633: ${MV="mv -f"}
4634: ${RM="rm -f"}
4635
4636{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4637$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4638# Try some XSI features
4639xsi_shell=no
4640( _lt_dummy="a/b/c"
4641  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4642      = c,a/b,, \
4643    && eval 'test $(( 1 + 1 )) -eq 2 \
4644    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4645  && xsi_shell=yes
4646{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4647$as_echo "$xsi_shell" >&6; }
4648
4649
4650{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4651$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4652lt_shell_append=no
4653( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4654    >/dev/null 2>&1 \
4655  && lt_shell_append=yes
4656{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4657$as_echo "$lt_shell_append" >&6; }
4658
4659
4660if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4661  lt_unset=unset
4662else
4663  lt_unset=false
4664fi
4665
4666
4667
4668
4669
4670# test EBCDIC or ASCII
4671case `echo X|tr X '\101'` in
4672 A) # ASCII based system
4673    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4674  lt_SP2NL='tr \040 \012'
4675  lt_NL2SP='tr \015\012 \040\040'
4676  ;;
4677 *) # EBCDIC based system
4678  lt_SP2NL='tr \100 \n'
4679  lt_NL2SP='tr \r\n \100\100'
4680  ;;
4681esac
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4692$as_echo_n "checking for $LD option to reload object files... " >&6; }
4693if test "${lt_cv_ld_reload_flag+set}" = set; then
4694  $as_echo_n "(cached) " >&6
4695else
4696  lt_cv_ld_reload_flag='-r'
4697fi
4698{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4699$as_echo "$lt_cv_ld_reload_flag" >&6; }
4700reload_flag=$lt_cv_ld_reload_flag
4701case $reload_flag in
4702"" | " "*) ;;
4703*) reload_flag=" $reload_flag" ;;
4704esac
4705reload_cmds='$LD$reload_flag -o $output$reload_objs'
4706case $host_os in
4707  darwin*)
4708    if test "$GCC" = yes; then
4709      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4710    else
4711      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4712    fi
4713    ;;
4714esac
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724if test -n "$ac_tool_prefix"; then
4725  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4726set dummy ${ac_tool_prefix}objdump; ac_word=$2
4727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
4729if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4730  $as_echo_n "(cached) " >&6
4731else
4732  if test -n "$OBJDUMP"; then
4733  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738  IFS=$as_save_IFS
4739  test -z "$as_dir" && as_dir=.
4740  for ac_exec_ext in '' $ac_executable_extensions; do
4741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4743    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744    break 2
4745  fi
4746done
4747done
4748IFS=$as_save_IFS
4749
4750fi
4751fi
4752OBJDUMP=$ac_cv_prog_OBJDUMP
4753if test -n "$OBJDUMP"; then
4754  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4755$as_echo "$OBJDUMP" >&6; }
4756else
4757  { $as_echo "$as_me:$LINENO: result: no" >&5
4758$as_echo "no" >&6; }
4759fi
4760
4761
4762fi
4763if test -z "$ac_cv_prog_OBJDUMP"; then
4764  ac_ct_OBJDUMP=$OBJDUMP
4765  # Extract the first word of "objdump", so it can be a program name with args.
4766set dummy objdump; ac_word=$2
4767{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
4769if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4770  $as_echo_n "(cached) " >&6
4771else
4772  if test -n "$ac_ct_OBJDUMP"; then
4773  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4774else
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
4777do
4778  IFS=$as_save_IFS
4779  test -z "$as_dir" && as_dir=.
4780  for ac_exec_ext in '' $ac_executable_extensions; do
4781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4783    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784    break 2
4785  fi
4786done
4787done
4788IFS=$as_save_IFS
4789
4790fi
4791fi
4792ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4793if test -n "$ac_ct_OBJDUMP"; then
4794  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4795$as_echo "$ac_ct_OBJDUMP" >&6; }
4796else
4797  { $as_echo "$as_me:$LINENO: result: no" >&5
4798$as_echo "no" >&6; }
4799fi
4800
4801  if test "x$ac_ct_OBJDUMP" = x; then
4802    OBJDUMP="false"
4803  else
4804    case $cross_compiling:$ac_tool_warned in
4805yes:)
4806{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808ac_tool_warned=yes ;;
4809esac
4810    OBJDUMP=$ac_ct_OBJDUMP
4811  fi
4812else
4813  OBJDUMP="$ac_cv_prog_OBJDUMP"
4814fi
4815
4816test -z "$OBJDUMP" && OBJDUMP=objdump
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4827$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4828if test "${lt_cv_deplibs_check_method+set}" = set; then
4829  $as_echo_n "(cached) " >&6
4830else
4831  lt_cv_file_magic_cmd='$MAGIC_CMD'
4832lt_cv_file_magic_test_file=
4833lt_cv_deplibs_check_method='unknown'
4834# Need to set the preceding variable on all platforms that support
4835# interlibrary dependencies.
4836# 'none' -- dependencies not supported.
4837# `unknown' -- same as none, but documents that we really don't know.
4838# 'pass_all' -- all dependencies passed with no checks.
4839# 'test_compile' -- check by making test program.
4840# 'file_magic [[regex]]' -- check by looking for files in library path
4841# which responds to the $file_magic_cmd with a given extended regex.
4842# If you have `file' or equivalent on your system and you're not sure
4843# whether `pass_all' will *always* work, you probably want this one.
4844
4845case $host_os in
4846aix[4-9]*)
4847  lt_cv_deplibs_check_method=pass_all
4848  ;;
4849
4850beos*)
4851  lt_cv_deplibs_check_method=pass_all
4852  ;;
4853
4854bsdi[45]*)
4855  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4856  lt_cv_file_magic_cmd='/usr/bin/file -L'
4857  lt_cv_file_magic_test_file=/shlib/libc.so
4858  ;;
4859
4860cygwin*)
4861  # func_win32_libid is a shell function defined in ltmain.sh
4862  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4863  lt_cv_file_magic_cmd='func_win32_libid'
4864  ;;
4865
4866mingw* | pw32*)
4867  # Base MSYS/MinGW do not provide the 'file' command needed by
4868  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4869  # unless we find 'file', for example because we are cross-compiling.
4870  if ( file / ) >/dev/null 2>&1; then
4871    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4872    lt_cv_file_magic_cmd='func_win32_libid'
4873  else
4874    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4875    lt_cv_file_magic_cmd='$OBJDUMP -f'
4876  fi
4877  ;;
4878
4879cegcc)
4880  # use the weaker test based on 'objdump'. See mingw*.
4881  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4882  lt_cv_file_magic_cmd='$OBJDUMP -f'
4883  ;;
4884
4885darwin* | rhapsody*)
4886  lt_cv_deplibs_check_method=pass_all
4887  ;;
4888
4889freebsd* | dragonfly*)
4890  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4891    case $host_cpu in
4892    i*86 )
4893      # Not sure whether the presence of OpenBSD here was a mistake.
4894      # Let's accept both of them until this is cleared up.
4895      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4896      lt_cv_file_magic_cmd=/usr/bin/file
4897      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4898      ;;
4899    esac
4900  else
4901    lt_cv_deplibs_check_method=pass_all
4902  fi
4903  ;;
4904
4905gnu*)
4906  lt_cv_deplibs_check_method=pass_all
4907  ;;
4908
4909hpux10.20* | hpux11*)
4910  lt_cv_file_magic_cmd=/usr/bin/file
4911  case $host_cpu in
4912  ia64*)
4913    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4914    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4915    ;;
4916  hppa*64*)
4917    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4918    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4919    ;;
4920  *)
4921    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4922    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4923    ;;
4924  esac
4925  ;;
4926
4927interix[3-9]*)
4928  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4929  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4930  ;;
4931
4932irix5* | irix6* | nonstopux*)
4933  case $LD in
4934  *-32|*"-32 ") libmagic=32-bit;;
4935  *-n32|*"-n32 ") libmagic=N32;;
4936  *-64|*"-64 ") libmagic=64-bit;;
4937  *) libmagic=never-match;;
4938  esac
4939  lt_cv_deplibs_check_method=pass_all
4940  ;;
4941
4942# This must be Linux ELF.
4943linux* | k*bsd*-gnu)
4944  lt_cv_deplibs_check_method=pass_all
4945  ;;
4946
4947netbsd*)
4948  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4949    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4950  else
4951    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4952  fi
4953  ;;
4954
4955newos6*)
4956  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4957  lt_cv_file_magic_cmd=/usr/bin/file
4958  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4959  ;;
4960
4961*nto* | *qnx*)
4962  lt_cv_deplibs_check_method=pass_all
4963  ;;
4964
4965openbsd*)
4966  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4967    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4968  else
4969    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4970  fi
4971  ;;
4972
4973osf3* | osf4* | osf5*)
4974  lt_cv_deplibs_check_method=pass_all
4975  ;;
4976
4977rdos*)
4978  lt_cv_deplibs_check_method=pass_all
4979  ;;
4980
4981solaris*)
4982  lt_cv_deplibs_check_method=pass_all
4983  ;;
4984
4985sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4986  lt_cv_deplibs_check_method=pass_all
4987  ;;
4988
4989sysv4 | sysv4.3*)
4990  case $host_vendor in
4991  motorola)
4992    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]'
4993    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4994    ;;
4995  ncr)
4996    lt_cv_deplibs_check_method=pass_all
4997    ;;
4998  sequent)
4999    lt_cv_file_magic_cmd='/bin/file'
5000    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5001    ;;
5002  sni)
5003    lt_cv_file_magic_cmd='/bin/file'
5004    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5005    lt_cv_file_magic_test_file=/lib/libc.so
5006    ;;
5007  siemens)
5008    lt_cv_deplibs_check_method=pass_all
5009    ;;
5010  pc)
5011    lt_cv_deplibs_check_method=pass_all
5012    ;;
5013  esac
5014  ;;
5015
5016tpf*)
5017  lt_cv_deplibs_check_method=pass_all
5018  ;;
5019esac
5020
5021fi
5022{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5023$as_echo "$lt_cv_deplibs_check_method" >&6; }
5024file_magic_cmd=$lt_cv_file_magic_cmd
5025deplibs_check_method=$lt_cv_deplibs_check_method
5026test -z "$deplibs_check_method" && deplibs_check_method=unknown
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039if test -n "$ac_tool_prefix"; then
5040  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5041set dummy ${ac_tool_prefix}ar; ac_word=$2
5042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if test "${ac_cv_prog_AR+set}" = set; then
5045  $as_echo_n "(cached) " >&6
5046else
5047  if test -n "$AR"; then
5048  ac_cv_prog_AR="$AR" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053  IFS=$as_save_IFS
5054  test -z "$as_dir" && as_dir=.
5055  for ac_exec_ext in '' $ac_executable_extensions; do
5056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057    ac_cv_prog_AR="${ac_tool_prefix}ar"
5058    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059    break 2
5060  fi
5061done
5062done
5063IFS=$as_save_IFS
5064
5065fi
5066fi
5067AR=$ac_cv_prog_AR
5068if test -n "$AR"; then
5069  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5070$as_echo "$AR" >&6; }
5071else
5072  { $as_echo "$as_me:$LINENO: result: no" >&5
5073$as_echo "no" >&6; }
5074fi
5075
5076
5077fi
5078if test -z "$ac_cv_prog_AR"; then
5079  ac_ct_AR=$AR
5080  # Extract the first word of "ar", so it can be a program name with args.
5081set dummy ar; ac_word=$2
5082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5085  $as_echo_n "(cached) " >&6
5086else
5087  if test -n "$ac_ct_AR"; then
5088  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093  IFS=$as_save_IFS
5094  test -z "$as_dir" && as_dir=.
5095  for ac_exec_ext in '' $ac_executable_extensions; do
5096  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097    ac_cv_prog_ac_ct_AR="ar"
5098    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099    break 2
5100  fi
5101done
5102done
5103IFS=$as_save_IFS
5104
5105fi
5106fi
5107ac_ct_AR=$ac_cv_prog_ac_ct_AR
5108if test -n "$ac_ct_AR"; then
5109  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5110$as_echo "$ac_ct_AR" >&6; }
5111else
5112  { $as_echo "$as_me:$LINENO: result: no" >&5
5113$as_echo "no" >&6; }
5114fi
5115
5116  if test "x$ac_ct_AR" = x; then
5117    AR="false"
5118  else
5119    case $cross_compiling:$ac_tool_warned in
5120yes:)
5121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123ac_tool_warned=yes ;;
5124esac
5125    AR=$ac_ct_AR
5126  fi
5127else
5128  AR="$ac_cv_prog_AR"
5129fi
5130
5131test -z "$AR" && AR=ar
5132test -z "$AR_FLAGS" && AR_FLAGS=cru
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144if test -n "$ac_tool_prefix"; then
5145  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5146set dummy ${ac_tool_prefix}strip; ac_word=$2
5147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5148$as_echo_n "checking for $ac_word... " >&6; }
5149if test "${ac_cv_prog_STRIP+set}" = set; then
5150  $as_echo_n "(cached) " >&6
5151else
5152  if test -n "$STRIP"; then
5153  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158  IFS=$as_save_IFS
5159  test -z "$as_dir" && as_dir=.
5160  for ac_exec_ext in '' $ac_executable_extensions; do
5161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5163    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164    break 2
5165  fi
5166done
5167done
5168IFS=$as_save_IFS
5169
5170fi
5171fi
5172STRIP=$ac_cv_prog_STRIP
5173if test -n "$STRIP"; then
5174  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5175$as_echo "$STRIP" >&6; }
5176else
5177  { $as_echo "$as_me:$LINENO: result: no" >&5
5178$as_echo "no" >&6; }
5179fi
5180
5181
5182fi
5183if test -z "$ac_cv_prog_STRIP"; then
5184  ac_ct_STRIP=$STRIP
5185  # Extract the first word of "strip", so it can be a program name with args.
5186set dummy strip; ac_word=$2
5187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5190  $as_echo_n "(cached) " >&6
5191else
5192  if test -n "$ac_ct_STRIP"; then
5193  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200  for ac_exec_ext in '' $ac_executable_extensions; do
5201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202    ac_cv_prog_ac_ct_STRIP="strip"
5203    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204    break 2
5205  fi
5206done
5207done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5213if test -n "$ac_ct_STRIP"; then
5214  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5215$as_echo "$ac_ct_STRIP" >&6; }
5216else
5217  { $as_echo "$as_me:$LINENO: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221  if test "x$ac_ct_STRIP" = x; then
5222    STRIP=":"
5223  else
5224    case $cross_compiling:$ac_tool_warned in
5225yes:)
5226{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228ac_tool_warned=yes ;;
5229esac
5230    STRIP=$ac_ct_STRIP
5231  fi
5232else
5233  STRIP="$ac_cv_prog_STRIP"
5234fi
5235
5236test -z "$STRIP" && STRIP=:
5237
5238
5239
5240
5241
5242
5243if test -n "$ac_tool_prefix"; then
5244  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5245set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5247$as_echo_n "checking for $ac_word... " >&6; }
5248if test "${ac_cv_prog_RANLIB+set}" = set; then
5249  $as_echo_n "(cached) " >&6
5250else
5251  if test -n "$RANLIB"; then
5252  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257  IFS=$as_save_IFS
5258  test -z "$as_dir" && as_dir=.
5259  for ac_exec_ext in '' $ac_executable_extensions; do
5260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5262    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263    break 2
5264  fi
5265done
5266done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5271RANLIB=$ac_cv_prog_RANLIB
5272if test -n "$RANLIB"; then
5273  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5274$as_echo "$RANLIB" >&6; }
5275else
5276  { $as_echo "$as_me:$LINENO: result: no" >&5
5277$as_echo "no" >&6; }
5278fi
5279
5280
5281fi
5282if test -z "$ac_cv_prog_RANLIB"; then
5283  ac_ct_RANLIB=$RANLIB
5284  # Extract the first word of "ranlib", so it can be a program name with args.
5285set dummy ranlib; ac_word=$2
5286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
5288if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5289  $as_echo_n "(cached) " >&6
5290else
5291  if test -n "$ac_ct_RANLIB"; then
5292  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297  IFS=$as_save_IFS
5298  test -z "$as_dir" && as_dir=.
5299  for ac_exec_ext in '' $ac_executable_extensions; do
5300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301    ac_cv_prog_ac_ct_RANLIB="ranlib"
5302    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303    break 2
5304  fi
5305done
5306done
5307IFS=$as_save_IFS
5308
5309fi
5310fi
5311ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5312if test -n "$ac_ct_RANLIB"; then
5313  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5314$as_echo "$ac_ct_RANLIB" >&6; }
5315else
5316  { $as_echo "$as_me:$LINENO: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319
5320  if test "x$ac_ct_RANLIB" = x; then
5321    RANLIB=":"
5322  else
5323    case $cross_compiling:$ac_tool_warned in
5324yes:)
5325{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327ac_tool_warned=yes ;;
5328esac
5329    RANLIB=$ac_ct_RANLIB
5330  fi
5331else
5332  RANLIB="$ac_cv_prog_RANLIB"
5333fi
5334
5335test -z "$RANLIB" && RANLIB=:
5336
5337
5338
5339
5340
5341
5342# Determine commands to create old-style static archives.
5343old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5344old_postinstall_cmds='chmod 644 $oldlib'
5345old_postuninstall_cmds=
5346
5347if test -n "$RANLIB"; then
5348  case $host_os in
5349  openbsd*)
5350    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5351    ;;
5352  *)
5353    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5354    ;;
5355  esac
5356  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5357fi
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392# If no C compiler was specified, use CC.
5393LTCC=${LTCC-"$CC"}
5394
5395# If no C compiler flags were specified, use CFLAGS.
5396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5397
5398# Allow CC to be a program name with arguments.
5399compiler=$CC
5400
5401
5402# Check for command to grab the raw symbol name followed by C symbol from nm.
5403{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5404$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5405if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5406  $as_echo_n "(cached) " >&6
5407else
5408
5409# These are sane defaults that work on at least a few old systems.
5410# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5411
5412# Character class describing NM global symbol codes.
5413symcode='[BCDEGRST]'
5414
5415# Regexp to match symbols that can be accessed directly from C.
5416sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5417
5418# Define system-specific variables.
5419case $host_os in
5420aix*)
5421  symcode='[BCDT]'
5422  ;;
5423cygwin* | mingw* | pw32* | cegcc*)
5424  symcode='[ABCDGISTW]'
5425  ;;
5426hpux*)
5427  if test "$host_cpu" = ia64; then
5428    symcode='[ABCDEGRST]'
5429  fi
5430  ;;
5431irix* | nonstopux*)
5432  symcode='[BCDEGRST]'
5433  ;;
5434osf*)
5435  symcode='[BCDEGQRST]'
5436  ;;
5437solaris*)
5438  symcode='[BDRT]'
5439  ;;
5440sco3.2v5*)
5441  symcode='[DT]'
5442  ;;
5443sysv4.2uw2*)
5444  symcode='[DT]'
5445  ;;
5446sysv5* | sco5v6* | unixware* | OpenUNIX*)
5447  symcode='[ABDT]'
5448  ;;
5449sysv4)
5450  symcode='[DFNSTU]'
5451  ;;
5452esac
5453
5454# If we're using GNU nm, then use its standard symbol codes.
5455case `$NM -V 2>&1` in
5456*GNU* | *'with BFD'*)
5457  symcode='[ABCDGIRSTW]' ;;
5458esac
5459
5460# Transform an extracted symbol line into a proper C declaration.
5461# Some systems (esp. on ia64) link data and code symbols differently,
5462# so use this general approach.
5463lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464
5465# Transform an extracted symbol line into symbol name and symbol address
5466lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5467lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5468
5469# Handle CRLF in mingw tool chain
5470opt_cr=
5471case $build_os in
5472mingw*)
5473  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5474  ;;
5475esac
5476
5477# Try without a prefix underscore, then with it.
5478for ac_symprfx in "" "_"; do
5479
5480  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5481  symxfrm="\\1 $ac_symprfx\\2 \\2"
5482
5483  # Write the raw and C identifiers.
5484  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5485    # Fake it for dumpbin and say T for any non-static function
5486    # and D for any global variable.
5487    # Also find C++ and __fastcall symbols from MSVC++,
5488    # which start with @ or ?.
5489    lt_cv_sys_global_symbol_pipe="$AWK '"\
5490"     {last_section=section; section=\$ 3};"\
5491"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5492"     \$ 0!~/External *\|/{next};"\
5493"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5494"     {if(hide[section]) next};"\
5495"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5496"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5497"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5498"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5499"     ' prfx=^$ac_symprfx"
5500  else
5501    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5502  fi
5503
5504  # Check to see that the pipe works correctly.
5505  pipe_works=no
5506
5507  rm -f conftest*
5508  cat > conftest.$ac_ext <<_LT_EOF
5509#ifdef __cplusplus
5510extern "C" {
5511#endif
5512char nm_test_var;
5513void nm_test_func(void);
5514void nm_test_func(void){}
5515#ifdef __cplusplus
5516}
5517#endif
5518int main(){nm_test_var='a';nm_test_func();return(0);}
5519_LT_EOF
5520
5521  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522  (eval $ac_compile) 2>&5
5523  ac_status=$?
5524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }; then
5526    # Now try to grab the symbols.
5527    nlist=conftest.nm
5528    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5529  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5530  ac_status=$?
5531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); } && test -s "$nlist"; then
5533      # Try sorting and uniquifying the output.
5534      if sort "$nlist" | uniq > "$nlist"T; then
5535	mv -f "$nlist"T "$nlist"
5536      else
5537	rm -f "$nlist"T
5538      fi
5539
5540      # Make sure that we snagged all the symbols we need.
5541      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5542	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5543	  cat <<_LT_EOF > conftest.$ac_ext
5544#ifdef __cplusplus
5545extern "C" {
5546#endif
5547
5548_LT_EOF
5549	  # Now generate the symbol file.
5550	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5551
5552	  cat <<_LT_EOF >> conftest.$ac_ext
5553
5554/* The mapping between symbol names and symbols.  */
5555const struct {
5556  const char *name;
5557  void       *address;
5558}
5559lt__PROGRAM__LTX_preloaded_symbols[] =
5560{
5561  { "@PROGRAM@", (void *) 0 },
5562_LT_EOF
5563	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5564	  cat <<\_LT_EOF >> conftest.$ac_ext
5565  {0, (void *) 0}
5566};
5567
5568/* This works around a problem in FreeBSD linker */
5569#ifdef FREEBSD_WORKAROUND
5570static const void *lt_preloaded_setup() {
5571  return lt__PROGRAM__LTX_preloaded_symbols;
5572}
5573#endif
5574
5575#ifdef __cplusplus
5576}
5577#endif
5578_LT_EOF
5579	  # Now try linking the two files.
5580	  mv conftest.$ac_objext conftstm.$ac_objext
5581	  lt_save_LIBS="$LIBS"
5582	  lt_save_CFLAGS="$CFLAGS"
5583	  LIBS="conftstm.$ac_objext"
5584	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5585	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586  (eval $ac_link) 2>&5
5587  ac_status=$?
5588  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5590	    pipe_works=yes
5591	  fi
5592	  LIBS="$lt_save_LIBS"
5593	  CFLAGS="$lt_save_CFLAGS"
5594	else
5595	  echo "cannot find nm_test_func in $nlist" >&5
5596	fi
5597      else
5598	echo "cannot find nm_test_var in $nlist" >&5
5599      fi
5600    else
5601      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5602    fi
5603  else
5604    echo "$progname: failed program was:" >&5
5605    cat conftest.$ac_ext >&5
5606  fi
5607  rm -rf conftest* conftst*
5608
5609  # Do not use the global_symbol_pipe unless it works.
5610  if test "$pipe_works" = yes; then
5611    break
5612  else
5613    lt_cv_sys_global_symbol_pipe=
5614  fi
5615done
5616
5617fi
5618
5619if test -z "$lt_cv_sys_global_symbol_pipe"; then
5620  lt_cv_sys_global_symbol_to_cdecl=
5621fi
5622if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5623  { $as_echo "$as_me:$LINENO: result: failed" >&5
5624$as_echo "failed" >&6; }
5625else
5626  { $as_echo "$as_me:$LINENO: result: ok" >&5
5627$as_echo "ok" >&6; }
5628fi
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652# Check whether --enable-libtool-lock was given.
5653if test "${enable_libtool_lock+set}" = set; then
5654  enableval=$enable_libtool_lock;
5655fi
5656
5657test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5658
5659# Some flags need to be propagated to the compiler or linker for good
5660# libtool support.
5661case $host in
5662ia64-*-hpux*)
5663  # Find out which ABI we are using.
5664  echo 'int i;' > conftest.$ac_ext
5665  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666  (eval $ac_compile) 2>&5
5667  ac_status=$?
5668  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669  (exit $ac_status); }; then
5670    case `/usr/bin/file conftest.$ac_objext` in
5671      *ELF-32*)
5672	HPUX_IA64_MODE="32"
5673	;;
5674      *ELF-64*)
5675	HPUX_IA64_MODE="64"
5676	;;
5677    esac
5678  fi
5679  rm -rf conftest*
5680  ;;
5681*-*-irix6*)
5682  # Find out which ABI we are using.
5683  echo '#line 5683 "configure"' > conftest.$ac_ext
5684  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685  (eval $ac_compile) 2>&5
5686  ac_status=$?
5687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); }; then
5689    if test "$lt_cv_prog_gnu_ld" = yes; then
5690      case `/usr/bin/file conftest.$ac_objext` in
5691	*32-bit*)
5692	  LD="${LD-ld} -melf32bsmip"
5693	  ;;
5694	*N32*)
5695	  LD="${LD-ld} -melf32bmipn32"
5696	  ;;
5697	*64-bit*)
5698	  LD="${LD-ld} -melf64bmip"
5699	;;
5700      esac
5701    else
5702      case `/usr/bin/file conftest.$ac_objext` in
5703	*32-bit*)
5704	  LD="${LD-ld} -32"
5705	  ;;
5706	*N32*)
5707	  LD="${LD-ld} -n32"
5708	  ;;
5709	*64-bit*)
5710	  LD="${LD-ld} -64"
5711	  ;;
5712      esac
5713    fi
5714  fi
5715  rm -rf conftest*
5716  ;;
5717
5718x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5719s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5720  # Find out which ABI we are using.
5721  echo 'int i;' > conftest.$ac_ext
5722  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723  (eval $ac_compile) 2>&5
5724  ac_status=$?
5725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726  (exit $ac_status); }; then
5727    case `/usr/bin/file conftest.o` in
5728      *32-bit*)
5729	case $host in
5730	  x86_64-*kfreebsd*-gnu)
5731	    LD="${LD-ld} -m elf_i386_fbsd"
5732	    ;;
5733	  x86_64-*linux*)
5734	    LD="${LD-ld} -m elf_i386"
5735	    ;;
5736	  ppc64-*linux*|powerpc64-*linux*)
5737	    LD="${LD-ld} -m elf32ppclinux"
5738	    ;;
5739	  s390x-*linux*)
5740	    LD="${LD-ld} -m elf_s390"
5741	    ;;
5742	  sparc64-*linux*)
5743	    LD="${LD-ld} -m elf32_sparc"
5744	    ;;
5745	esac
5746	;;
5747      *64-bit*)
5748	case $host in
5749	  x86_64-*kfreebsd*-gnu)
5750	    LD="${LD-ld} -m elf_x86_64_fbsd"
5751	    ;;
5752	  x86_64-*linux*)
5753	    LD="${LD-ld} -m elf_x86_64"
5754	    ;;
5755	  ppc*-*linux*|powerpc*-*linux*)
5756	    LD="${LD-ld} -m elf64ppc"
5757	    ;;
5758	  s390*-*linux*|s390*-*tpf*)
5759	    LD="${LD-ld} -m elf64_s390"
5760	    ;;
5761	  sparc*-*linux*)
5762	    LD="${LD-ld} -m elf64_sparc"
5763	    ;;
5764	esac
5765	;;
5766    esac
5767  fi
5768  rm -rf conftest*
5769  ;;
5770
5771*-*-sco3.2v5*)
5772  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5773  SAVE_CFLAGS="$CFLAGS"
5774  CFLAGS="$CFLAGS -belf"
5775  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5776$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5777if test "${lt_cv_cc_needs_belf+set}" = set; then
5778  $as_echo_n "(cached) " >&6
5779else
5780  ac_ext=c
5781ac_cpp='$CPP $CPPFLAGS'
5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786     cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h.  */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h.  */
5792
5793int
5794main ()
5795{
5796
5797  ;
5798  return 0;
5799}
5800_ACEOF
5801rm -f conftest.$ac_objext conftest$ac_exeext
5802if { (ac_try="$ac_link"
5803case "(($ac_try" in
5804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805  *) ac_try_echo=$ac_try;;
5806esac
5807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5808$as_echo "$ac_try_echo") >&5
5809  (eval "$ac_link") 2>conftest.er1
5810  ac_status=$?
5811  grep -v '^ *+' conftest.er1 >conftest.err
5812  rm -f conftest.er1
5813  cat conftest.err >&5
5814  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); } && {
5816	 test -z "$ac_c_werror_flag" ||
5817	 test ! -s conftest.err
5818       } && test -s conftest$ac_exeext && {
5819	 test "$cross_compiling" = yes ||
5820	 $as_test_x conftest$ac_exeext
5821       }; then
5822  lt_cv_cc_needs_belf=yes
5823else
5824  $as_echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827	lt_cv_cc_needs_belf=no
5828fi
5829
5830rm -rf conftest.dSYM
5831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5832      conftest$ac_exeext conftest.$ac_ext
5833     ac_ext=c
5834ac_cpp='$CPP $CPPFLAGS'
5835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838
5839fi
5840{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5841$as_echo "$lt_cv_cc_needs_belf" >&6; }
5842  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5843    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5844    CFLAGS="$SAVE_CFLAGS"
5845  fi
5846  ;;
5847sparc*-*solaris*)
5848  # Find out which ABI we are using.
5849  echo 'int i;' > conftest.$ac_ext
5850  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851  (eval $ac_compile) 2>&5
5852  ac_status=$?
5853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); }; then
5855    case `/usr/bin/file conftest.o` in
5856    *64-bit*)
5857      case $lt_cv_prog_gnu_ld in
5858      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5859      *)
5860	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5861	  LD="${LD-ld} -64"
5862	fi
5863	;;
5864      esac
5865      ;;
5866    esac
5867  fi
5868  rm -rf conftest*
5869  ;;
5870esac
5871
5872need_locks="$enable_libtool_lock"
5873
5874
5875  case $host_os in
5876    rhapsody* | darwin*)
5877    if test -n "$ac_tool_prefix"; then
5878  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5879set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5881$as_echo_n "checking for $ac_word... " >&6; }
5882if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5883  $as_echo_n "(cached) " >&6
5884else
5885  if test -n "$DSYMUTIL"; then
5886  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891  IFS=$as_save_IFS
5892  test -z "$as_dir" && as_dir=.
5893  for ac_exec_ext in '' $ac_executable_extensions; do
5894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5896    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897    break 2
5898  fi
5899done
5900done
5901IFS=$as_save_IFS
5902
5903fi
5904fi
5905DSYMUTIL=$ac_cv_prog_DSYMUTIL
5906if test -n "$DSYMUTIL"; then
5907  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5908$as_echo "$DSYMUTIL" >&6; }
5909else
5910  { $as_echo "$as_me:$LINENO: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913
5914
5915fi
5916if test -z "$ac_cv_prog_DSYMUTIL"; then
5917  ac_ct_DSYMUTIL=$DSYMUTIL
5918  # Extract the first word of "dsymutil", so it can be a program name with args.
5919set dummy dsymutil; ac_word=$2
5920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5921$as_echo_n "checking for $ac_word... " >&6; }
5922if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5923  $as_echo_n "(cached) " >&6
5924else
5925  if test -n "$ac_ct_DSYMUTIL"; then
5926  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931  IFS=$as_save_IFS
5932  test -z "$as_dir" && as_dir=.
5933  for ac_exec_ext in '' $ac_executable_extensions; do
5934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5936    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937    break 2
5938  fi
5939done
5940done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5946if test -n "$ac_ct_DSYMUTIL"; then
5947  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5948$as_echo "$ac_ct_DSYMUTIL" >&6; }
5949else
5950  { $as_echo "$as_me:$LINENO: result: no" >&5
5951$as_echo "no" >&6; }
5952fi
5953
5954  if test "x$ac_ct_DSYMUTIL" = x; then
5955    DSYMUTIL=":"
5956  else
5957    case $cross_compiling:$ac_tool_warned in
5958yes:)
5959{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961ac_tool_warned=yes ;;
5962esac
5963    DSYMUTIL=$ac_ct_DSYMUTIL
5964  fi
5965else
5966  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5967fi
5968
5969    if test -n "$ac_tool_prefix"; then
5970  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5971set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if test "${ac_cv_prog_NMEDIT+set}" = set; then
5975  $as_echo_n "(cached) " >&6
5976else
5977  if test -n "$NMEDIT"; then
5978  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983  IFS=$as_save_IFS
5984  test -z "$as_dir" && as_dir=.
5985  for ac_exec_ext in '' $ac_executable_extensions; do
5986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5988    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989    break 2
5990  fi
5991done
5992done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997NMEDIT=$ac_cv_prog_NMEDIT
5998if test -n "$NMEDIT"; then
5999  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6000$as_echo "$NMEDIT" >&6; }
6001else
6002  { $as_echo "$as_me:$LINENO: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006
6007fi
6008if test -z "$ac_cv_prog_NMEDIT"; then
6009  ac_ct_NMEDIT=$NMEDIT
6010  # Extract the first word of "nmedit", so it can be a program name with args.
6011set dummy nmedit; ac_word=$2
6012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6013$as_echo_n "checking for $ac_word... " >&6; }
6014if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6015  $as_echo_n "(cached) " >&6
6016else
6017  if test -n "$ac_ct_NMEDIT"; then
6018  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023  IFS=$as_save_IFS
6024  test -z "$as_dir" && as_dir=.
6025  for ac_exec_ext in '' $ac_executable_extensions; do
6026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6028    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029    break 2
6030  fi
6031done
6032done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6038if test -n "$ac_ct_NMEDIT"; then
6039  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6040$as_echo "$ac_ct_NMEDIT" >&6; }
6041else
6042  { $as_echo "$as_me:$LINENO: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045
6046  if test "x$ac_ct_NMEDIT" = x; then
6047    NMEDIT=":"
6048  else
6049    case $cross_compiling:$ac_tool_warned in
6050yes:)
6051{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053ac_tool_warned=yes ;;
6054esac
6055    NMEDIT=$ac_ct_NMEDIT
6056  fi
6057else
6058  NMEDIT="$ac_cv_prog_NMEDIT"
6059fi
6060
6061    if test -n "$ac_tool_prefix"; then
6062  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6063set dummy ${ac_tool_prefix}lipo; ac_word=$2
6064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
6066if test "${ac_cv_prog_LIPO+set}" = set; then
6067  $as_echo_n "(cached) " >&6
6068else
6069  if test -n "$LIPO"; then
6070  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077  for ac_exec_ext in '' $ac_executable_extensions; do
6078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6080    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089LIPO=$ac_cv_prog_LIPO
6090if test -n "$LIPO"; then
6091  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6092$as_echo "$LIPO" >&6; }
6093else
6094  { $as_echo "$as_me:$LINENO: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098
6099fi
6100if test -z "$ac_cv_prog_LIPO"; then
6101  ac_ct_LIPO=$LIPO
6102  # Extract the first word of "lipo", so it can be a program name with args.
6103set dummy lipo; ac_word=$2
6104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$ac_ct_LIPO"; then
6110  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117  for ac_exec_ext in '' $ac_executable_extensions; do
6118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119    ac_cv_prog_ac_ct_LIPO="lipo"
6120    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6130if test -n "$ac_ct_LIPO"; then
6131  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6132$as_echo "$ac_ct_LIPO" >&6; }
6133else
6134  { $as_echo "$as_me:$LINENO: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138  if test "x$ac_ct_LIPO" = x; then
6139    LIPO=":"
6140  else
6141    case $cross_compiling:$ac_tool_warned in
6142yes:)
6143{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145ac_tool_warned=yes ;;
6146esac
6147    LIPO=$ac_ct_LIPO
6148  fi
6149else
6150  LIPO="$ac_cv_prog_LIPO"
6151fi
6152
6153    if test -n "$ac_tool_prefix"; then
6154  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6155set dummy ${ac_tool_prefix}otool; ac_word=$2
6156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6157$as_echo_n "checking for $ac_word... " >&6; }
6158if test "${ac_cv_prog_OTOOL+set}" = set; then
6159  $as_echo_n "(cached) " >&6
6160else
6161  if test -n "$OTOOL"; then
6162  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6163else
6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165for as_dir in $PATH
6166do
6167  IFS=$as_save_IFS
6168  test -z "$as_dir" && as_dir=.
6169  for ac_exec_ext in '' $ac_executable_extensions; do
6170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6172    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173    break 2
6174  fi
6175done
6176done
6177IFS=$as_save_IFS
6178
6179fi
6180fi
6181OTOOL=$ac_cv_prog_OTOOL
6182if test -n "$OTOOL"; then
6183  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6184$as_echo "$OTOOL" >&6; }
6185else
6186  { $as_echo "$as_me:$LINENO: result: no" >&5
6187$as_echo "no" >&6; }
6188fi
6189
6190
6191fi
6192if test -z "$ac_cv_prog_OTOOL"; then
6193  ac_ct_OTOOL=$OTOOL
6194  # Extract the first word of "otool", so it can be a program name with args.
6195set dummy otool; ac_word=$2
6196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6199  $as_echo_n "(cached) " >&6
6200else
6201  if test -n "$ac_ct_OTOOL"; then
6202  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207  IFS=$as_save_IFS
6208  test -z "$as_dir" && as_dir=.
6209  for ac_exec_ext in '' $ac_executable_extensions; do
6210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211    ac_cv_prog_ac_ct_OTOOL="otool"
6212    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213    break 2
6214  fi
6215done
6216done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6222if test -n "$ac_ct_OTOOL"; then
6223  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6224$as_echo "$ac_ct_OTOOL" >&6; }
6225else
6226  { $as_echo "$as_me:$LINENO: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230  if test "x$ac_ct_OTOOL" = x; then
6231    OTOOL=":"
6232  else
6233    case $cross_compiling:$ac_tool_warned in
6234yes:)
6235{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237ac_tool_warned=yes ;;
6238esac
6239    OTOOL=$ac_ct_OTOOL
6240  fi
6241else
6242  OTOOL="$ac_cv_prog_OTOOL"
6243fi
6244
6245    if test -n "$ac_tool_prefix"; then
6246  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6247set dummy ${ac_tool_prefix}otool64; ac_word=$2
6248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
6250if test "${ac_cv_prog_OTOOL64+set}" = set; then
6251  $as_echo_n "(cached) " >&6
6252else
6253  if test -n "$OTOOL64"; then
6254  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259  IFS=$as_save_IFS
6260  test -z "$as_dir" && as_dir=.
6261  for ac_exec_ext in '' $ac_executable_extensions; do
6262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6264    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265    break 2
6266  fi
6267done
6268done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273OTOOL64=$ac_cv_prog_OTOOL64
6274if test -n "$OTOOL64"; then
6275  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6276$as_echo "$OTOOL64" >&6; }
6277else
6278  { $as_echo "$as_me:$LINENO: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283fi
6284if test -z "$ac_cv_prog_OTOOL64"; then
6285  ac_ct_OTOOL64=$OTOOL64
6286  # Extract the first word of "otool64", so it can be a program name with args.
6287set dummy otool64; ac_word=$2
6288{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
6290if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6291  $as_echo_n "(cached) " >&6
6292else
6293  if test -n "$ac_ct_OTOOL64"; then
6294  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299  IFS=$as_save_IFS
6300  test -z "$as_dir" && as_dir=.
6301  for ac_exec_ext in '' $ac_executable_extensions; do
6302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303    ac_cv_prog_ac_ct_OTOOL64="otool64"
6304    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305    break 2
6306  fi
6307done
6308done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6314if test -n "$ac_ct_OTOOL64"; then
6315  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6316$as_echo "$ac_ct_OTOOL64" >&6; }
6317else
6318  { $as_echo "$as_me:$LINENO: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322  if test "x$ac_ct_OTOOL64" = x; then
6323    OTOOL64=":"
6324  else
6325    case $cross_compiling:$ac_tool_warned in
6326yes:)
6327{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329ac_tool_warned=yes ;;
6330esac
6331    OTOOL64=$ac_ct_OTOOL64
6332  fi
6333else
6334  OTOOL64="$ac_cv_prog_OTOOL64"
6335fi
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6364$as_echo_n "checking for -single_module linker flag... " >&6; }
6365if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6366  $as_echo_n "(cached) " >&6
6367else
6368  lt_cv_apple_cc_single_mod=no
6369      if test -z "${LT_MULTI_MODULE}"; then
6370	# By default we will add the -single_module flag. You can override
6371	# by either setting the environment variable LT_MULTI_MODULE
6372	# non-empty at configure time, or by adding -multi_module to the
6373	# link flags.
6374	rm -rf libconftest.dylib*
6375	echo "int foo(void){return 1;}" > conftest.c
6376	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6377-dynamiclib -Wl,-single_module conftest.c" >&5
6378	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6379	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6380        _lt_result=$?
6381	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6382	  lt_cv_apple_cc_single_mod=yes
6383	else
6384	  cat conftest.err >&5
6385	fi
6386	rm -rf libconftest.dylib*
6387	rm -f conftest.*
6388      fi
6389fi
6390{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6391$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6392    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6393$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6394if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6395  $as_echo_n "(cached) " >&6
6396else
6397  lt_cv_ld_exported_symbols_list=no
6398      save_LDFLAGS=$LDFLAGS
6399      echo "_main" > conftest.sym
6400      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6401      cat >conftest.$ac_ext <<_ACEOF
6402/* confdefs.h.  */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h.  */
6407
6408int
6409main ()
6410{
6411
6412  ;
6413  return 0;
6414}
6415_ACEOF
6416rm -f conftest.$ac_objext conftest$ac_exeext
6417if { (ac_try="$ac_link"
6418case "(($ac_try" in
6419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420  *) ac_try_echo=$ac_try;;
6421esac
6422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6423$as_echo "$ac_try_echo") >&5
6424  (eval "$ac_link") 2>conftest.er1
6425  ac_status=$?
6426  grep -v '^ *+' conftest.er1 >conftest.err
6427  rm -f conftest.er1
6428  cat conftest.err >&5
6429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430  (exit $ac_status); } && {
6431	 test -z "$ac_c_werror_flag" ||
6432	 test ! -s conftest.err
6433       } && test -s conftest$ac_exeext && {
6434	 test "$cross_compiling" = yes ||
6435	 $as_test_x conftest$ac_exeext
6436       }; then
6437  lt_cv_ld_exported_symbols_list=yes
6438else
6439  $as_echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442	lt_cv_ld_exported_symbols_list=no
6443fi
6444
6445rm -rf conftest.dSYM
6446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6447      conftest$ac_exeext conftest.$ac_ext
6448	LDFLAGS="$save_LDFLAGS"
6449
6450fi
6451{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6452$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6453    case $host_os in
6454    rhapsody* | darwin1.[012])
6455      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6456    darwin1.*)
6457      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6458    darwin*) # darwin 5.x on
6459      # if running on 10.5 or later, the deployment target defaults
6460      # to the OS version, if on x86, and 10.4, the deployment
6461      # target defaults to 10.4. Don't you love it?
6462      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6463	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6464	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6465	10.[012]*)
6466	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6467	10.*)
6468	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6469      esac
6470    ;;
6471  esac
6472    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6473      _lt_dar_single_mod='$single_module'
6474    fi
6475    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6476      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6477    else
6478      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6479    fi
6480    if test "$DSYMUTIL" != ":"; then
6481      _lt_dsymutil='~$DSYMUTIL $lib || :'
6482    else
6483      _lt_dsymutil=
6484    fi
6485    ;;
6486  esac
6487
6488ac_ext=c
6489ac_cpp='$CPP $CPPFLAGS'
6490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492ac_compiler_gnu=$ac_cv_c_compiler_gnu
6493{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6494$as_echo_n "checking how to run the C preprocessor... " >&6; }
6495# On Suns, sometimes $CPP names a directory.
6496if test -n "$CPP" && test -d "$CPP"; then
6497  CPP=
6498fi
6499if test -z "$CPP"; then
6500  if test "${ac_cv_prog_CPP+set}" = set; then
6501  $as_echo_n "(cached) " >&6
6502else
6503      # Double quotes because CPP needs to be expanded
6504    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6505    do
6506      ac_preproc_ok=false
6507for ac_c_preproc_warn_flag in '' yes
6508do
6509  # Use a header file that comes with gcc, so configuring glibc
6510  # with a fresh cross-compiler works.
6511  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6512  # <limits.h> exists even on freestanding compilers.
6513  # On the NeXT, cc -E runs the code through the compiler's parser,
6514  # not just through cpp. "Syntax error" is here to catch this case.
6515  cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h.  */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h.  */
6521#ifdef __STDC__
6522# include <limits.h>
6523#else
6524# include <assert.h>
6525#endif
6526		     Syntax error
6527_ACEOF
6528if { (ac_try="$ac_cpp conftest.$ac_ext"
6529case "(($ac_try" in
6530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531  *) ac_try_echo=$ac_try;;
6532esac
6533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6534$as_echo "$ac_try_echo") >&5
6535  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6536  ac_status=$?
6537  grep -v '^ *+' conftest.er1 >conftest.err
6538  rm -f conftest.er1
6539  cat conftest.err >&5
6540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541  (exit $ac_status); } >/dev/null && {
6542	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6543	 test ! -s conftest.err
6544       }; then
6545  :
6546else
6547  $as_echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550  # Broken: fails on valid input.
6551continue
6552fi
6553
6554rm -f conftest.err conftest.$ac_ext
6555
6556  # OK, works on sane cases.  Now check whether nonexistent headers
6557  # can be detected and how.
6558  cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h.  */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h.  */
6564#include <ac_nonexistent.h>
6565_ACEOF
6566if { (ac_try="$ac_cpp conftest.$ac_ext"
6567case "(($ac_try" in
6568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569  *) ac_try_echo=$ac_try;;
6570esac
6571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6572$as_echo "$ac_try_echo") >&5
6573  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6574  ac_status=$?
6575  grep -v '^ *+' conftest.er1 >conftest.err
6576  rm -f conftest.er1
6577  cat conftest.err >&5
6578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); } >/dev/null && {
6580	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6581	 test ! -s conftest.err
6582       }; then
6583  # Broken: success on invalid input.
6584continue
6585else
6586  $as_echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589  # Passes both tests.
6590ac_preproc_ok=:
6591break
6592fi
6593
6594rm -f conftest.err conftest.$ac_ext
6595
6596done
6597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6598rm -f conftest.err conftest.$ac_ext
6599if $ac_preproc_ok; then
6600  break
6601fi
6602
6603    done
6604    ac_cv_prog_CPP=$CPP
6605
6606fi
6607  CPP=$ac_cv_prog_CPP
6608else
6609  ac_cv_prog_CPP=$CPP
6610fi
6611{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6612$as_echo "$CPP" >&6; }
6613ac_preproc_ok=false
6614for ac_c_preproc_warn_flag in '' yes
6615do
6616  # Use a header file that comes with gcc, so configuring glibc
6617  # with a fresh cross-compiler works.
6618  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6619  # <limits.h> exists even on freestanding compilers.
6620  # On the NeXT, cc -E runs the code through the compiler's parser,
6621  # not just through cpp. "Syntax error" is here to catch this case.
6622  cat >conftest.$ac_ext <<_ACEOF
6623/* confdefs.h.  */
6624_ACEOF
6625cat confdefs.h >>conftest.$ac_ext
6626cat >>conftest.$ac_ext <<_ACEOF
6627/* end confdefs.h.  */
6628#ifdef __STDC__
6629# include <limits.h>
6630#else
6631# include <assert.h>
6632#endif
6633		     Syntax error
6634_ACEOF
6635if { (ac_try="$ac_cpp conftest.$ac_ext"
6636case "(($ac_try" in
6637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638  *) ac_try_echo=$ac_try;;
6639esac
6640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641$as_echo "$ac_try_echo") >&5
6642  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } >/dev/null && {
6649	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6650	 test ! -s conftest.err
6651       }; then
6652  :
6653else
6654  $as_echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
6657  # Broken: fails on valid input.
6658continue
6659fi
6660
6661rm -f conftest.err conftest.$ac_ext
6662
6663  # OK, works on sane cases.  Now check whether nonexistent headers
6664  # can be detected and how.
6665  cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h.  */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h.  */
6671#include <ac_nonexistent.h>
6672_ACEOF
6673if { (ac_try="$ac_cpp conftest.$ac_ext"
6674case "(($ac_try" in
6675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676  *) ac_try_echo=$ac_try;;
6677esac
6678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679$as_echo "$ac_try_echo") >&5
6680  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6681  ac_status=$?
6682  grep -v '^ *+' conftest.er1 >conftest.err
6683  rm -f conftest.er1
6684  cat conftest.err >&5
6685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); } >/dev/null && {
6687	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6688	 test ! -s conftest.err
6689       }; then
6690  # Broken: success on invalid input.
6691continue
6692else
6693  $as_echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
6695
6696  # Passes both tests.
6697ac_preproc_ok=:
6698break
6699fi
6700
6701rm -f conftest.err conftest.$ac_ext
6702
6703done
6704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6705rm -f conftest.err conftest.$ac_ext
6706if $ac_preproc_ok; then
6707  :
6708else
6709  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6711{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6712See \`config.log' for more details." >&5
6713$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6714See \`config.log' for more details." >&2;}
6715   { (exit 1); exit 1; }; }; }
6716fi
6717
6718ac_ext=c
6719ac_cpp='$CPP $CPPFLAGS'
6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
6724
6725{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6726$as_echo_n "checking for ANSI C header files... " >&6; }
6727if test "${ac_cv_header_stdc+set}" = set; then
6728  $as_echo_n "(cached) " >&6
6729else
6730  cat >conftest.$ac_ext <<_ACEOF
6731/* confdefs.h.  */
6732_ACEOF
6733cat confdefs.h >>conftest.$ac_ext
6734cat >>conftest.$ac_ext <<_ACEOF
6735/* end confdefs.h.  */
6736#include <stdlib.h>
6737#include <stdarg.h>
6738#include <string.h>
6739#include <float.h>
6740
6741int
6742main ()
6743{
6744
6745  ;
6746  return 0;
6747}
6748_ACEOF
6749rm -f conftest.$ac_objext
6750if { (ac_try="$ac_compile"
6751case "(($ac_try" in
6752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753  *) ac_try_echo=$ac_try;;
6754esac
6755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6756$as_echo "$ac_try_echo") >&5
6757  (eval "$ac_compile") 2>conftest.er1
6758  ac_status=$?
6759  grep -v '^ *+' conftest.er1 >conftest.err
6760  rm -f conftest.er1
6761  cat conftest.err >&5
6762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); } && {
6764	 test -z "$ac_c_werror_flag" ||
6765	 test ! -s conftest.err
6766       } && test -s conftest.$ac_objext; then
6767  ac_cv_header_stdc=yes
6768else
6769  $as_echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772	ac_cv_header_stdc=no
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776
6777if test $ac_cv_header_stdc = yes; then
6778  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6779  cat >conftest.$ac_ext <<_ACEOF
6780/* confdefs.h.  */
6781_ACEOF
6782cat confdefs.h >>conftest.$ac_ext
6783cat >>conftest.$ac_ext <<_ACEOF
6784/* end confdefs.h.  */
6785#include <string.h>
6786
6787_ACEOF
6788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6789  $EGREP "memchr" >/dev/null 2>&1; then
6790  :
6791else
6792  ac_cv_header_stdc=no
6793fi
6794rm -f conftest*
6795
6796fi
6797
6798if test $ac_cv_header_stdc = yes; then
6799  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6800  cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h.  */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h.  */
6806#include <stdlib.h>
6807
6808_ACEOF
6809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810  $EGREP "free" >/dev/null 2>&1; then
6811  :
6812else
6813  ac_cv_header_stdc=no
6814fi
6815rm -f conftest*
6816
6817fi
6818
6819if test $ac_cv_header_stdc = yes; then
6820  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6821  if test "$cross_compiling" = yes; then
6822  :
6823else
6824  cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h.  */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h.  */
6830#include <ctype.h>
6831#include <stdlib.h>
6832#if ((' ' & 0x0FF) == 0x020)
6833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6835#else
6836# define ISLOWER(c) \
6837		   (('a' <= (c) && (c) <= 'i') \
6838		     || ('j' <= (c) && (c) <= 'r') \
6839		     || ('s' <= (c) && (c) <= 'z'))
6840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6841#endif
6842
6843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6844int
6845main ()
6846{
6847  int i;
6848  for (i = 0; i < 256; i++)
6849    if (XOR (islower (i), ISLOWER (i))
6850	|| toupper (i) != TOUPPER (i))
6851      return 2;
6852  return 0;
6853}
6854_ACEOF
6855rm -f conftest$ac_exeext
6856if { (ac_try="$ac_link"
6857case "(($ac_try" in
6858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859  *) ac_try_echo=$ac_try;;
6860esac
6861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6862$as_echo "$ac_try_echo") >&5
6863  (eval "$ac_link") 2>&5
6864  ac_status=$?
6865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6867  { (case "(($ac_try" in
6868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869  *) ac_try_echo=$ac_try;;
6870esac
6871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6872$as_echo "$ac_try_echo") >&5
6873  (eval "$ac_try") 2>&5
6874  ac_status=$?
6875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876  (exit $ac_status); }; }; then
6877  :
6878else
6879  $as_echo "$as_me: program exited with status $ac_status" >&5
6880$as_echo "$as_me: failed program was:" >&5
6881sed 's/^/| /' conftest.$ac_ext >&5
6882
6883( exit $ac_status )
6884ac_cv_header_stdc=no
6885fi
6886rm -rf conftest.dSYM
6887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6888fi
6889
6890
6891fi
6892fi
6893{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6894$as_echo "$ac_cv_header_stdc" >&6; }
6895if test $ac_cv_header_stdc = yes; then
6896
6897cat >>confdefs.h <<\_ACEOF
6898#define STDC_HEADERS 1
6899_ACEOF
6900
6901fi
6902
6903# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6914		  inttypes.h stdint.h unistd.h
6915do
6916as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6917{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6918$as_echo_n "checking for $ac_header... " >&6; }
6919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6920  $as_echo_n "(cached) " >&6
6921else
6922  cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h.  */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h.  */
6928$ac_includes_default
6929
6930#include <$ac_header>
6931_ACEOF
6932rm -f conftest.$ac_objext
6933if { (ac_try="$ac_compile"
6934case "(($ac_try" in
6935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936  *) ac_try_echo=$ac_try;;
6937esac
6938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6939$as_echo "$ac_try_echo") >&5
6940  (eval "$ac_compile") 2>conftest.er1
6941  ac_status=$?
6942  grep -v '^ *+' conftest.er1 >conftest.err
6943  rm -f conftest.er1
6944  cat conftest.err >&5
6945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946  (exit $ac_status); } && {
6947	 test -z "$ac_c_werror_flag" ||
6948	 test ! -s conftest.err
6949       } && test -s conftest.$ac_objext; then
6950  eval "$as_ac_Header=yes"
6951else
6952  $as_echo "$as_me: failed program was:" >&5
6953sed 's/^/| /' conftest.$ac_ext >&5
6954
6955	eval "$as_ac_Header=no"
6956fi
6957
6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959fi
6960ac_res=`eval 'as_val=${'$as_ac_Header'}
6961		 $as_echo "$as_val"'`
6962	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6963$as_echo "$ac_res" >&6; }
6964as_val=`eval 'as_val=${'$as_ac_Header'}
6965		 $as_echo "$as_val"'`
6966   if test "x$as_val" = x""yes; then
6967  cat >>confdefs.h <<_ACEOF
6968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969_ACEOF
6970
6971fi
6972
6973done
6974
6975
6976
6977for ac_header in dlfcn.h
6978do
6979as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6980{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6981$as_echo_n "checking for $ac_header... " >&6; }
6982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6983  $as_echo_n "(cached) " >&6
6984else
6985  cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h.  */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h.  */
6991$ac_includes_default
6992
6993#include <$ac_header>
6994_ACEOF
6995rm -f conftest.$ac_objext
6996if { (ac_try="$ac_compile"
6997case "(($ac_try" in
6998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999  *) ac_try_echo=$ac_try;;
7000esac
7001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002$as_echo "$ac_try_echo") >&5
7003  (eval "$ac_compile") 2>conftest.er1
7004  ac_status=$?
7005  grep -v '^ *+' conftest.er1 >conftest.err
7006  rm -f conftest.er1
7007  cat conftest.err >&5
7008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009  (exit $ac_status); } && {
7010	 test -z "$ac_c_werror_flag" ||
7011	 test ! -s conftest.err
7012       } && test -s conftest.$ac_objext; then
7013  eval "$as_ac_Header=yes"
7014else
7015  $as_echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018	eval "$as_ac_Header=no"
7019fi
7020
7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022fi
7023ac_res=`eval 'as_val=${'$as_ac_Header'}
7024		 $as_echo "$as_val"'`
7025	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7026$as_echo "$ac_res" >&6; }
7027as_val=`eval 'as_val=${'$as_ac_Header'}
7028		 $as_echo "$as_val"'`
7029   if test "x$as_val" = x""yes; then
7030  cat >>confdefs.h <<_ACEOF
7031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7032_ACEOF
7033
7034fi
7035
7036done
7037
7038
7039
7040# Set options
7041
7042
7043
7044        enable_dlopen=no
7045
7046
7047  enable_win32_dll=no
7048
7049
7050            # Check whether --enable-shared was given.
7051if test "${enable_shared+set}" = set; then
7052  enableval=$enable_shared; p=${PACKAGE-default}
7053    case $enableval in
7054    yes) enable_shared=yes ;;
7055    no) enable_shared=no ;;
7056    *)
7057      enable_shared=no
7058      # Look at the argument we got.  We use all the common list separators.
7059      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7060      for pkg in $enableval; do
7061	IFS="$lt_save_ifs"
7062	if test "X$pkg" = "X$p"; then
7063	  enable_shared=yes
7064	fi
7065      done
7066      IFS="$lt_save_ifs"
7067      ;;
7068    esac
7069else
7070  enable_shared=yes
7071fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081  # Check whether --enable-static was given.
7082if test "${enable_static+set}" = set; then
7083  enableval=$enable_static; p=${PACKAGE-default}
7084    case $enableval in
7085    yes) enable_static=yes ;;
7086    no) enable_static=no ;;
7087    *)
7088     enable_static=no
7089      # Look at the argument we got.  We use all the common list separators.
7090      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7091      for pkg in $enableval; do
7092	IFS="$lt_save_ifs"
7093	if test "X$pkg" = "X$p"; then
7094	  enable_static=yes
7095	fi
7096      done
7097      IFS="$lt_save_ifs"
7098      ;;
7099    esac
7100else
7101  enable_static=yes
7102fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113# Check whether --with-pic was given.
7114if test "${with_pic+set}" = set; then
7115  withval=$with_pic; pic_mode="$withval"
7116else
7117  pic_mode=default
7118fi
7119
7120
7121test -z "$pic_mode" && pic_mode=default
7122
7123
7124
7125
7126
7127
7128
7129  # Check whether --enable-fast-install was given.
7130if test "${enable_fast_install+set}" = set; then
7131  enableval=$enable_fast_install; p=${PACKAGE-default}
7132    case $enableval in
7133    yes) enable_fast_install=yes ;;
7134    no) enable_fast_install=no ;;
7135    *)
7136      enable_fast_install=no
7137      # Look at the argument we got.  We use all the common list separators.
7138      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7139      for pkg in $enableval; do
7140	IFS="$lt_save_ifs"
7141	if test "X$pkg" = "X$p"; then
7142	  enable_fast_install=yes
7143	fi
7144      done
7145      IFS="$lt_save_ifs"
7146      ;;
7147    esac
7148else
7149  enable_fast_install=yes
7150fi
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162# This can be used to rebuild libtool when needed
7163LIBTOOL_DEPS="$ltmain"
7164
7165# Always use our own libtool.
7166LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192test -z "$LN_S" && LN_S="ln -s"
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207if test -n "${ZSH_VERSION+set}" ; then
7208   setopt NO_GLOB_SUBST
7209fi
7210
7211{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7212$as_echo_n "checking for objdir... " >&6; }
7213if test "${lt_cv_objdir+set}" = set; then
7214  $as_echo_n "(cached) " >&6
7215else
7216  rm -f .libs 2>/dev/null
7217mkdir .libs 2>/dev/null
7218if test -d .libs; then
7219  lt_cv_objdir=.libs
7220else
7221  # MS-DOS does not allow filenames that begin with a dot.
7222  lt_cv_objdir=_libs
7223fi
7224rmdir .libs 2>/dev/null
7225fi
7226{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7227$as_echo "$lt_cv_objdir" >&6; }
7228objdir=$lt_cv_objdir
7229
7230
7231
7232
7233
7234cat >>confdefs.h <<_ACEOF
7235#define LT_OBJDIR "$lt_cv_objdir/"
7236_ACEOF
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254case $host_os in
7255aix3*)
7256  # AIX sometimes has problems with the GCC collect2 program.  For some
7257  # reason, if we set the COLLECT_NAMES environment variable, the problems
7258  # vanish in a puff of smoke.
7259  if test "X${COLLECT_NAMES+set}" != Xset; then
7260    COLLECT_NAMES=
7261    export COLLECT_NAMES
7262  fi
7263  ;;
7264esac
7265
7266# Sed substitution that helps us do robust quoting.  It backslashifies
7267# metacharacters that are still active within double-quoted strings.
7268sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7269
7270# Same as above, but do not quote variable references.
7271double_quote_subst='s/\(["`\\]\)/\\\1/g'
7272
7273# Sed substitution to delay expansion of an escaped shell variable in a
7274# double_quote_subst'ed string.
7275delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7276
7277# Sed substitution to delay expansion of an escaped single quote.
7278delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7279
7280# Sed substitution to avoid accidental globbing in evaled expressions
7281no_glob_subst='s/\*/\\\*/g'
7282
7283# Global variables:
7284ofile=libtool
7285can_build_shared=yes
7286
7287# All known linkers require a `.a' archive for static linking (except MSVC,
7288# which needs '.lib').
7289libext=a
7290
7291with_gnu_ld="$lt_cv_prog_gnu_ld"
7292
7293old_CC="$CC"
7294old_CFLAGS="$CFLAGS"
7295
7296# Set sane defaults for various variables
7297test -z "$CC" && CC=cc
7298test -z "$LTCC" && LTCC=$CC
7299test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7300test -z "$LD" && LD=ld
7301test -z "$ac_objext" && ac_objext=o
7302
7303for cc_temp in $compiler""; do
7304  case $cc_temp in
7305    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7306    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7307    \-*) ;;
7308    *) break;;
7309  esac
7310done
7311cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7312
7313
7314# Only perform the check for file, if the check method requires it
7315test -z "$MAGIC_CMD" && MAGIC_CMD=file
7316case $deplibs_check_method in
7317file_magic*)
7318  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7319    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7320$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7321if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7322  $as_echo_n "(cached) " >&6
7323else
7324  case $MAGIC_CMD in
7325[\\/*] |  ?:[\\/]*)
7326  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7327  ;;
7328*)
7329  lt_save_MAGIC_CMD="$MAGIC_CMD"
7330  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7331  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7332  for ac_dir in $ac_dummy; do
7333    IFS="$lt_save_ifs"
7334    test -z "$ac_dir" && ac_dir=.
7335    if test -f $ac_dir/${ac_tool_prefix}file; then
7336      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7337      if test -n "$file_magic_test_file"; then
7338	case $deplibs_check_method in
7339	"file_magic "*)
7340	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7341	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7343	    $EGREP "$file_magic_regex" > /dev/null; then
7344	    :
7345	  else
7346	    cat <<_LT_EOF 1>&2
7347
7348*** Warning: the command libtool uses to detect shared libraries,
7349*** $file_magic_cmd, produces output that libtool cannot recognize.
7350*** The result is that libtool may fail to recognize shared libraries
7351*** as such.  This will affect the creation of libtool libraries that
7352*** depend on shared libraries, but programs linked with such libtool
7353*** libraries will work regardless of this problem.  Nevertheless, you
7354*** may want to report the problem to your system manager and/or to
7355*** [email protected]
7356
7357_LT_EOF
7358	  fi ;;
7359	esac
7360      fi
7361      break
7362    fi
7363  done
7364  IFS="$lt_save_ifs"
7365  MAGIC_CMD="$lt_save_MAGIC_CMD"
7366  ;;
7367esac
7368fi
7369
7370MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7371if test -n "$MAGIC_CMD"; then
7372  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7373$as_echo "$MAGIC_CMD" >&6; }
7374else
7375  { $as_echo "$as_me:$LINENO: result: no" >&5
7376$as_echo "no" >&6; }
7377fi
7378
7379
7380
7381
7382
7383if test -z "$lt_cv_path_MAGIC_CMD"; then
7384  if test -n "$ac_tool_prefix"; then
7385    { $as_echo "$as_me:$LINENO: checking for file" >&5
7386$as_echo_n "checking for file... " >&6; }
7387if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7388  $as_echo_n "(cached) " >&6
7389else
7390  case $MAGIC_CMD in
7391[\\/*] |  ?:[\\/]*)
7392  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393  ;;
7394*)
7395  lt_save_MAGIC_CMD="$MAGIC_CMD"
7396  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398  for ac_dir in $ac_dummy; do
7399    IFS="$lt_save_ifs"
7400    test -z "$ac_dir" && ac_dir=.
7401    if test -f $ac_dir/file; then
7402      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7403      if test -n "$file_magic_test_file"; then
7404	case $deplibs_check_method in
7405	"file_magic "*)
7406	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409	    $EGREP "$file_magic_regex" > /dev/null; then
7410	    :
7411	  else
7412	    cat <<_LT_EOF 1>&2
7413
7414*** Warning: the command libtool uses to detect shared libraries,
7415*** $file_magic_cmd, produces output that libtool cannot recognize.
7416*** The result is that libtool may fail to recognize shared libraries
7417*** as such.  This will affect the creation of libtool libraries that
7418*** depend on shared libraries, but programs linked with such libtool
7419*** libraries will work regardless of this problem.  Nevertheless, you
7420*** may want to report the problem to your system manager and/or to
7421*** [email protected]
7422
7423_LT_EOF
7424	  fi ;;
7425	esac
7426      fi
7427      break
7428    fi
7429  done
7430  IFS="$lt_save_ifs"
7431  MAGIC_CMD="$lt_save_MAGIC_CMD"
7432  ;;
7433esac
7434fi
7435
7436MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437if test -n "$MAGIC_CMD"; then
7438  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7439$as_echo "$MAGIC_CMD" >&6; }
7440else
7441  { $as_echo "$as_me:$LINENO: result: no" >&5
7442$as_echo "no" >&6; }
7443fi
7444
7445
7446  else
7447    MAGIC_CMD=:
7448  fi
7449fi
7450
7451  fi
7452  ;;
7453esac
7454
7455# Use C for the default configuration in the libtool script
7456
7457lt_save_CC="$CC"
7458ac_ext=c
7459ac_cpp='$CPP $CPPFLAGS'
7460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463
7464
7465# Source file extension for C test sources.
7466ac_ext=c
7467
7468# Object file extension for compiled C test sources.
7469objext=o
7470objext=$objext
7471
7472# Code to be used in simple compile tests
7473lt_simple_compile_test_code="int some_variable = 0;"
7474
7475# Code to be used in simple link tests
7476lt_simple_link_test_code='int main(){return(0);}'
7477
7478
7479
7480
7481
7482
7483
7484# If no C compiler was specified, use CC.
7485LTCC=${LTCC-"$CC"}
7486
7487# If no C compiler flags were specified, use CFLAGS.
7488LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7489
7490# Allow CC to be a program name with arguments.
7491compiler=$CC
7492
7493# Save the default compiler, since it gets overwritten when the other
7494# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7495compiler_DEFAULT=$CC
7496
7497# save warnings/boilerplate of simple test code
7498ac_outfile=conftest.$ac_objext
7499echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7500eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7501_lt_compiler_boilerplate=`cat conftest.err`
7502$RM conftest*
7503
7504ac_outfile=conftest.$ac_objext
7505echo "$lt_simple_link_test_code" >conftest.$ac_ext
7506eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7507_lt_linker_boilerplate=`cat conftest.err`
7508$RM -r conftest*
7509
7510
7511if test -n "$compiler"; then
7512
7513lt_prog_compiler_no_builtin_flag=
7514
7515if test "$GCC" = yes; then
7516  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7517
7518  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7519$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7520if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7521  $as_echo_n "(cached) " >&6
7522else
7523  lt_cv_prog_compiler_rtti_exceptions=no
7524   ac_outfile=conftest.$ac_objext
7525   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7526   lt_compiler_flag="-fno-rtti -fno-exceptions"
7527   # Insert the option either (1) after the last *FLAGS variable, or
7528   # (2) before a word containing "conftest.", or (3) at the end.
7529   # Note that $ac_compile itself does not contain backslashes and begins
7530   # with a dollar sign (not a hyphen), so the echo should work correctly.
7531   # The option is referenced via a variable to avoid confusing sed.
7532   lt_compile=`echo "$ac_compile" | $SED \
7533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7535   -e 's:$: $lt_compiler_flag:'`
7536   (eval echo "\"\$as_me:7536: $lt_compile\"" >&5)
7537   (eval "$lt_compile" 2>conftest.err)
7538   ac_status=$?
7539   cat conftest.err >&5
7540   echo "$as_me:7540: \$? = $ac_status" >&5
7541   if (exit $ac_status) && test -s "$ac_outfile"; then
7542     # The compiler can only warn and ignore the option if not recognized
7543     # So say no if there are warnings other than the usual output.
7544     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7545     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7546     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7547       lt_cv_prog_compiler_rtti_exceptions=yes
7548     fi
7549   fi
7550   $RM conftest*
7551
7552fi
7553{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7554$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7555
7556if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7557    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7558else
7559    :
7560fi
7561
7562fi
7563
7564
7565
7566
7567
7568
7569  lt_prog_compiler_wl=
7570lt_prog_compiler_pic=
7571lt_prog_compiler_static=
7572
7573{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7574$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7575
7576  if test "$GCC" = yes; then
7577    lt_prog_compiler_wl='-Wl,'
7578    lt_prog_compiler_static='-static'
7579
7580    case $host_os in
7581      aix*)
7582      # All AIX code is PIC.
7583      if test "$host_cpu" = ia64; then
7584	# AIX 5 now supports IA64 processor
7585	lt_prog_compiler_static='-Bstatic'
7586      fi
7587      ;;
7588
7589    amigaos*)
7590      case $host_cpu in
7591      powerpc)
7592            # see comment about AmigaOS4 .so support
7593            lt_prog_compiler_pic='-fPIC'
7594        ;;
7595      m68k)
7596            # FIXME: we need at least 68020 code to build shared libraries, but
7597            # adding the `-m68020' flag to GCC prevents building anything better,
7598            # like `-m68040'.
7599            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7600        ;;
7601      esac
7602      ;;
7603
7604    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7605      # PIC is the default for these OSes.
7606      ;;
7607
7608    mingw* | cygwin* | pw32* | os2* | cegcc*)
7609      # This hack is so that the source file can tell whether it is being
7610      # built for inclusion in a dll (and should export symbols for example).
7611      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7612      # (--disable-auto-import) libraries
7613      lt_prog_compiler_pic='-DDLL_EXPORT'
7614      ;;
7615
7616    darwin* | rhapsody*)
7617      # PIC is the default on this platform
7618      # Common symbols not allowed in MH_DYLIB files
7619      lt_prog_compiler_pic='-fno-common'
7620      ;;
7621
7622    hpux*)
7623      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7624      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7625      # sets the default TLS model and affects inlining.
7626      case $host_cpu in
7627      hppa*64*)
7628	# +Z the default
7629	;;
7630      *)
7631	lt_prog_compiler_pic='-fPIC'
7632	;;
7633      esac
7634      ;;
7635
7636    interix[3-9]*)
7637      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7638      # Instead, we relocate shared libraries at runtime.
7639      ;;
7640
7641    msdosdjgpp*)
7642      # Just because we use GCC doesn't mean we suddenly get shared libraries
7643      # on systems that don't support them.
7644      lt_prog_compiler_can_build_shared=no
7645      enable_shared=no
7646      ;;
7647
7648    *nto* | *qnx*)
7649      # QNX uses GNU C++, but need to define -shared option too, otherwise
7650      # it will coredump.
7651      lt_prog_compiler_pic='-fPIC -shared'
7652      ;;
7653
7654    sysv4*MP*)
7655      if test -d /usr/nec; then
7656	lt_prog_compiler_pic=-Kconform_pic
7657      fi
7658      ;;
7659
7660    *)
7661      lt_prog_compiler_pic='-fPIC'
7662      ;;
7663    esac
7664  else
7665    # PORTME Check for flag to pass linker flags through the system compiler.
7666    case $host_os in
7667    aix*)
7668      lt_prog_compiler_wl='-Wl,'
7669      if test "$host_cpu" = ia64; then
7670	# AIX 5 now supports IA64 processor
7671	lt_prog_compiler_static='-Bstatic'
7672      else
7673	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7674      fi
7675      ;;
7676
7677    mingw* | cygwin* | pw32* | os2* | cegcc*)
7678      # This hack is so that the source file can tell whether it is being
7679      # built for inclusion in a dll (and should export symbols for example).
7680      lt_prog_compiler_pic='-DDLL_EXPORT'
7681      ;;
7682
7683    hpux9* | hpux10* | hpux11*)
7684      lt_prog_compiler_wl='-Wl,'
7685      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7686      # not for PA HP-UX.
7687      case $host_cpu in
7688      hppa*64*|ia64*)
7689	# +Z the default
7690	;;
7691      *)
7692	lt_prog_compiler_pic='+Z'
7693	;;
7694      esac
7695      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7696      lt_prog_compiler_static='${wl}-a ${wl}archive'
7697      ;;
7698
7699    irix5* | irix6* | nonstopux*)
7700      lt_prog_compiler_wl='-Wl,'
7701      # PIC (with -KPIC) is the default.
7702      lt_prog_compiler_static='-non_shared'
7703      ;;
7704
7705    linux* | k*bsd*-gnu)
7706      case $cc_basename in
7707      # old Intel for x86_64 which still supported -KPIC.
7708      ecc*)
7709	lt_prog_compiler_wl='-Wl,'
7710	lt_prog_compiler_pic='-KPIC'
7711	lt_prog_compiler_static='-static'
7712        ;;
7713      # icc used to be incompatible with GCC.
7714      # ICC 10 doesn't accept -KPIC any more.
7715      icc* | ifort*)
7716	lt_prog_compiler_wl='-Wl,'
7717	lt_prog_compiler_pic='-fPIC'
7718	lt_prog_compiler_static='-static'
7719        ;;
7720      # Lahey Fortran 8.1.
7721      lf95*)
7722	lt_prog_compiler_wl='-Wl,'
7723	lt_prog_compiler_pic='--shared'
7724	lt_prog_compiler_static='--static'
7725	;;
7726      pgcc* | pgf77* | pgf90* | pgf95*)
7727        # Portland Group compilers (*not* the Pentium gcc compiler,
7728	# which looks to be a dead project)
7729	lt_prog_compiler_wl='-Wl,'
7730	lt_prog_compiler_pic='-fpic'
7731	lt_prog_compiler_static='-Bstatic'
7732        ;;
7733      ccc*)
7734        lt_prog_compiler_wl='-Wl,'
7735        # All Alpha code is PIC.
7736        lt_prog_compiler_static='-non_shared'
7737        ;;
7738      xl*)
7739	# IBM XL C 8.0/Fortran 10.1 on PPC
7740	lt_prog_compiler_wl='-Wl,'
7741	lt_prog_compiler_pic='-qpic'
7742	lt_prog_compiler_static='-qstaticlink'
7743	;;
7744      *)
7745	case `$CC -V 2>&1 | sed 5q` in
7746	*Sun\ C*)
7747	  # Sun C 5.9
7748	  lt_prog_compiler_pic='-KPIC'
7749	  lt_prog_compiler_static='-Bstatic'
7750	  lt_prog_compiler_wl='-Wl,'
7751	  ;;
7752	*Sun\ F*)
7753	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7754	  lt_prog_compiler_pic='-KPIC'
7755	  lt_prog_compiler_static='-Bstatic'
7756	  lt_prog_compiler_wl=''
7757	  ;;
7758	esac
7759	;;
7760      esac
7761      ;;
7762
7763    newsos6)
7764      lt_prog_compiler_pic='-KPIC'
7765      lt_prog_compiler_static='-Bstatic'
7766      ;;
7767
7768    *nto* | *qnx*)
7769      # QNX uses GNU C++, but need to define -shared option too, otherwise
7770      # it will coredump.
7771      lt_prog_compiler_pic='-fPIC -shared'
7772      ;;
7773
7774    osf3* | osf4* | osf5*)
7775      lt_prog_compiler_wl='-Wl,'
7776      # All OSF/1 code is PIC.
7777      lt_prog_compiler_static='-non_shared'
7778      ;;
7779
7780    rdos*)
7781      lt_prog_compiler_static='-non_shared'
7782      ;;
7783
7784    solaris*)
7785      lt_prog_compiler_pic='-KPIC'
7786      lt_prog_compiler_static='-Bstatic'
7787      case $cc_basename in
7788      f77* | f90* | f95*)
7789	lt_prog_compiler_wl='-Qoption ld ';;
7790      *)
7791	lt_prog_compiler_wl='-Wl,';;
7792      esac
7793      ;;
7794
7795    sunos4*)
7796      lt_prog_compiler_wl='-Qoption ld '
7797      lt_prog_compiler_pic='-PIC'
7798      lt_prog_compiler_static='-Bstatic'
7799      ;;
7800
7801    sysv4 | sysv4.2uw2* | sysv4.3*)
7802      lt_prog_compiler_wl='-Wl,'
7803      lt_prog_compiler_pic='-KPIC'
7804      lt_prog_compiler_static='-Bstatic'
7805      ;;
7806
7807    sysv4*MP*)
7808      if test -d /usr/nec ;then
7809	lt_prog_compiler_pic='-Kconform_pic'
7810	lt_prog_compiler_static='-Bstatic'
7811      fi
7812      ;;
7813
7814    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7815      lt_prog_compiler_wl='-Wl,'
7816      lt_prog_compiler_pic='-KPIC'
7817      lt_prog_compiler_static='-Bstatic'
7818      ;;
7819
7820    unicos*)
7821      lt_prog_compiler_wl='-Wl,'
7822      lt_prog_compiler_can_build_shared=no
7823      ;;
7824
7825    uts4*)
7826      lt_prog_compiler_pic='-pic'
7827      lt_prog_compiler_static='-Bstatic'
7828      ;;
7829
7830    *)
7831      lt_prog_compiler_can_build_shared=no
7832      ;;
7833    esac
7834  fi
7835
7836case $host_os in
7837  # For platforms which do not support PIC, -DPIC is meaningless:
7838  *djgpp*)
7839    lt_prog_compiler_pic=
7840    ;;
7841  *)
7842    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7843    ;;
7844esac
7845{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7846$as_echo "$lt_prog_compiler_pic" >&6; }
7847
7848
7849
7850
7851
7852
7853#
7854# Check to make sure the PIC flag actually works.
7855#
7856if test -n "$lt_prog_compiler_pic"; then
7857  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7858$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7859if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7860  $as_echo_n "(cached) " >&6
7861else
7862  lt_cv_prog_compiler_pic_works=no
7863   ac_outfile=conftest.$ac_objext
7864   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7865   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7866   # Insert the option either (1) after the last *FLAGS variable, or
7867   # (2) before a word containing "conftest.", or (3) at the end.
7868   # Note that $ac_compile itself does not contain backslashes and begins
7869   # with a dollar sign (not a hyphen), so the echo should work correctly.
7870   # The option is referenced via a variable to avoid confusing sed.
7871   lt_compile=`echo "$ac_compile" | $SED \
7872   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7873   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7874   -e 's:$: $lt_compiler_flag:'`
7875   (eval echo "\"\$as_me:7875: $lt_compile\"" >&5)
7876   (eval "$lt_compile" 2>conftest.err)
7877   ac_status=$?
7878   cat conftest.err >&5
7879   echo "$as_me:7879: \$? = $ac_status" >&5
7880   if (exit $ac_status) && test -s "$ac_outfile"; then
7881     # The compiler can only warn and ignore the option if not recognized
7882     # So say no if there are warnings other than the usual output.
7883     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7884     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7885     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7886       lt_cv_prog_compiler_pic_works=yes
7887     fi
7888   fi
7889   $RM conftest*
7890
7891fi
7892{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7893$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7894
7895if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7896    case $lt_prog_compiler_pic in
7897     "" | " "*) ;;
7898     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7899     esac
7900else
7901    lt_prog_compiler_pic=
7902     lt_prog_compiler_can_build_shared=no
7903fi
7904
7905fi
7906
7907
7908
7909
7910
7911
7912#
7913# Check to make sure the static flag actually works.
7914#
7915wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7916{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7917$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7918if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7919  $as_echo_n "(cached) " >&6
7920else
7921  lt_cv_prog_compiler_static_works=no
7922   save_LDFLAGS="$LDFLAGS"
7923   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7924   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7925   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7926     # The linker can only warn and ignore the option if not recognized
7927     # So say no if there are warnings
7928     if test -s conftest.err; then
7929       # Append any errors to the config.log.
7930       cat conftest.err 1>&5
7931       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7932       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7933       if diff conftest.exp conftest.er2 >/dev/null; then
7934         lt_cv_prog_compiler_static_works=yes
7935       fi
7936     else
7937       lt_cv_prog_compiler_static_works=yes
7938     fi
7939   fi
7940   $RM -r conftest*
7941   LDFLAGS="$save_LDFLAGS"
7942
7943fi
7944{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7945$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7946
7947if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7948    :
7949else
7950    lt_prog_compiler_static=
7951fi
7952
7953
7954
7955
7956
7957
7958
7959  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7961if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7962  $as_echo_n "(cached) " >&6
7963else
7964  lt_cv_prog_compiler_c_o=no
7965   $RM -r conftest 2>/dev/null
7966   mkdir conftest
7967   cd conftest
7968   mkdir out
7969   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7970
7971   lt_compiler_flag="-o out/conftest2.$ac_objext"
7972   # Insert the option either (1) after the last *FLAGS variable, or
7973   # (2) before a word containing "conftest.", or (3) at the end.
7974   # Note that $ac_compile itself does not contain backslashes and begins
7975   # with a dollar sign (not a hyphen), so the echo should work correctly.
7976   lt_compile=`echo "$ac_compile" | $SED \
7977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979   -e 's:$: $lt_compiler_flag:'`
7980   (eval echo "\"\$as_me:7980: $lt_compile\"" >&5)
7981   (eval "$lt_compile" 2>out/conftest.err)
7982   ac_status=$?
7983   cat out/conftest.err >&5
7984   echo "$as_me:7984: \$? = $ac_status" >&5
7985   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7986   then
7987     # The compiler can only warn and ignore the option if not recognized
7988     # So say no if there are warnings
7989     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7990     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7991     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7992       lt_cv_prog_compiler_c_o=yes
7993     fi
7994   fi
7995   chmod u+w . 2>&5
7996   $RM conftest*
7997   # SGI C++ compiler will create directory out/ii_files/ for
7998   # template instantiation
7999   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8000   $RM out/* && rmdir out
8001   cd ..
8002   $RM -r conftest
8003   $RM conftest*
8004
8005fi
8006{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8007$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8008
8009
8010
8011
8012
8013
8014  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8015$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8016if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8017  $as_echo_n "(cached) " >&6
8018else
8019  lt_cv_prog_compiler_c_o=no
8020   $RM -r conftest 2>/dev/null
8021   mkdir conftest
8022   cd conftest
8023   mkdir out
8024   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025
8026   lt_compiler_flag="-o out/conftest2.$ac_objext"
8027   # Insert the option either (1) after the last *FLAGS variable, or
8028   # (2) before a word containing "conftest.", or (3) at the end.
8029   # Note that $ac_compile itself does not contain backslashes and begins
8030   # with a dollar sign (not a hyphen), so the echo should work correctly.
8031   lt_compile=`echo "$ac_compile" | $SED \
8032   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034   -e 's:$: $lt_compiler_flag:'`
8035   (eval echo "\"\$as_me:8035: $lt_compile\"" >&5)
8036   (eval "$lt_compile" 2>out/conftest.err)
8037   ac_status=$?
8038   cat out/conftest.err >&5
8039   echo "$as_me:8039: \$? = $ac_status" >&5
8040   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8041   then
8042     # The compiler can only warn and ignore the option if not recognized
8043     # So say no if there are warnings
8044     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8045     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8046     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8047       lt_cv_prog_compiler_c_o=yes
8048     fi
8049   fi
8050   chmod u+w . 2>&5
8051   $RM conftest*
8052   # SGI C++ compiler will create directory out/ii_files/ for
8053   # template instantiation
8054   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8055   $RM out/* && rmdir out
8056   cd ..
8057   $RM -r conftest
8058   $RM conftest*
8059
8060fi
8061{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8062$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8063
8064
8065
8066
8067hard_links="nottested"
8068if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8069  # do not overwrite the value of need_locks provided by the user
8070  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8071$as_echo_n "checking if we can lock with hard links... " >&6; }
8072  hard_links=yes
8073  $RM conftest*
8074  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8075  touch conftest.a
8076  ln conftest.a conftest.b 2>&5 || hard_links=no
8077  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8078  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8079$as_echo "$hard_links" >&6; }
8080  if test "$hard_links" = no; then
8081    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8082$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8083    need_locks=warn
8084  fi
8085else
8086  need_locks=no
8087fi
8088
8089
8090
8091
8092
8093
8094  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8095$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8096
8097  runpath_var=
8098  allow_undefined_flag=
8099  always_export_symbols=no
8100  archive_cmds=
8101  archive_expsym_cmds=
8102  compiler_needs_object=no
8103  enable_shared_with_static_runtimes=no
8104  export_dynamic_flag_spec=
8105  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8106  hardcode_automatic=no
8107  hardcode_direct=no
8108  hardcode_direct_absolute=no
8109  hardcode_libdir_flag_spec=
8110  hardcode_libdir_flag_spec_ld=
8111  hardcode_libdir_separator=
8112  hardcode_minus_L=no
8113  hardcode_shlibpath_var=unsupported
8114  inherit_rpath=no
8115  link_all_deplibs=unknown
8116  module_cmds=
8117  module_expsym_cmds=
8118  old_archive_from_new_cmds=
8119  old_archive_from_expsyms_cmds=
8120  thread_safe_flag_spec=
8121  whole_archive_flag_spec=
8122  # include_expsyms should be a list of space-separated symbols to be *always*
8123  # included in the symbol list
8124  include_expsyms=
8125  # exclude_expsyms can be an extended regexp of symbols to exclude
8126  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8127  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8128  # as well as any symbol that contains `d'.
8129  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8130  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8131  # platforms (ab)use it in PIC code, but their linkers get confused if
8132  # the symbol is explicitly referenced.  Since portable code cannot
8133  # rely on this symbol name, it's probably fine to never include it in
8134  # preloaded symbol tables.
8135  # Exclude shared library initialization/finalization symbols.
8136  extract_expsyms_cmds=
8137
8138  case $host_os in
8139  cygwin* | mingw* | pw32* | cegcc*)
8140    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8141    # When not using gcc, we currently assume that we are using
8142    # Microsoft Visual C++.
8143    if test "$GCC" != yes; then
8144      with_gnu_ld=no
8145    fi
8146    ;;
8147  interix*)
8148    # we just hope/assume this is gcc and not c89 (= MSVC++)
8149    with_gnu_ld=yes
8150    ;;
8151  openbsd*)
8152    with_gnu_ld=no
8153    ;;
8154  esac
8155
8156  ld_shlibs=yes
8157  if test "$with_gnu_ld" = yes; then
8158    # If archive_cmds runs LD, not CC, wlarc should be empty
8159    wlarc='${wl}'
8160
8161    # Set some defaults for GNU ld with shared library support. These
8162    # are reset later if shared libraries are not supported. Putting them
8163    # here allows them to be overridden if necessary.
8164    runpath_var=LD_RUN_PATH
8165    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8166    export_dynamic_flag_spec='${wl}--export-dynamic'
8167    # ancient GNU ld didn't support --whole-archive et. al.
8168    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8169      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8170    else
8171      whole_archive_flag_spec=
8172    fi
8173    supports_anon_versioning=no
8174    case `$LD -v 2>&1` in
8175      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8176      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8177      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8178      *\ 2.11.*) ;; # other 2.11 versions
8179      *) supports_anon_versioning=yes ;;
8180    esac
8181
8182    # See if GNU ld supports shared libraries.
8183    case $host_os in
8184    aix[3-9]*)
8185      # On AIX/PPC, the GNU linker is very broken
8186      if test "$host_cpu" != ia64; then
8187	ld_shlibs=no
8188	cat <<_LT_EOF 1>&2
8189
8190*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8191*** to be unable to reliably create shared libraries on AIX.
8192*** Therefore, libtool is disabling shared libraries support.  If you
8193*** really care for shared libraries, you may want to modify your PATH
8194*** so that a non-GNU linker is found, and then restart.
8195
8196_LT_EOF
8197      fi
8198      ;;
8199
8200    amigaos*)
8201      case $host_cpu in
8202      powerpc)
8203            # see comment about AmigaOS4 .so support
8204            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205            archive_expsym_cmds=''
8206        ;;
8207      m68k)
8208            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)'
8209            hardcode_libdir_flag_spec='-L$libdir'
8210            hardcode_minus_L=yes
8211        ;;
8212      esac
8213      ;;
8214
8215    beos*)
8216      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8217	allow_undefined_flag=unsupported
8218	# Joseph Beckenbach <[email protected]> says some releases of gcc
8219	# support --undefined.  This deserves some investigation.  FIXME
8220	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221      else
8222	ld_shlibs=no
8223      fi
8224      ;;
8225
8226    cygwin* | mingw* | pw32* | cegcc*)
8227      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8228      # as there is no search path for DLLs.
8229      hardcode_libdir_flag_spec='-L$libdir'
8230      allow_undefined_flag=unsupported
8231      always_export_symbols=no
8232      enable_shared_with_static_runtimes=yes
8233      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8234
8235      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8236        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8237	# If the export-symbols file already is a .def file (1st line
8238	# is EXPORTS), use it as is; otherwise, prepend...
8239	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8240	  cp $export_symbols $output_objdir/$soname.def;
8241	else
8242	  echo EXPORTS > $output_objdir/$soname.def;
8243	  cat $export_symbols >> $output_objdir/$soname.def;
8244	fi~
8245	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8246      else
8247	ld_shlibs=no
8248      fi
8249      ;;
8250
8251    interix[3-9]*)
8252      hardcode_direct=no
8253      hardcode_shlibpath_var=no
8254      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8255      export_dynamic_flag_spec='${wl}-E'
8256      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8257      # Instead, shared libraries are loaded at an image base (0x10000000 by
8258      # default) and relocated if they conflict, which is a slow very memory
8259      # consuming and fragmenting process.  To avoid this, we pick a random,
8260      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8261      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8262      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8263      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'
8264      ;;
8265
8266    gnu* | linux* | tpf* | k*bsd*-gnu)
8267      tmp_diet=no
8268      if test "$host_os" = linux-dietlibc; then
8269	case $cc_basename in
8270	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8271	esac
8272      fi
8273      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8274	 && test "$tmp_diet" = no
8275      then
8276	tmp_addflag=
8277	tmp_sharedflag='-shared'
8278	case $cc_basename,$host_cpu in
8279        pgcc*)				# Portland Group C compiler
8280	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8281	  tmp_addflag=' $pic_flag'
8282	  ;;
8283	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8284	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8285	  tmp_addflag=' $pic_flag -Mnomain' ;;
8286	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8287	  tmp_addflag=' -i_dynamic' ;;
8288	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8289	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8290	ifc* | ifort*)			# Intel Fortran compiler
8291	  tmp_addflag=' -nofor_main' ;;
8292	lf95*)				# Lahey Fortran 8.1
8293	  whole_archive_flag_spec=
8294	  tmp_sharedflag='--shared' ;;
8295	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8296	  tmp_sharedflag='-qmkshrobj'
8297	  tmp_addflag= ;;
8298	esac
8299	case `$CC -V 2>&1 | sed 5q` in
8300	*Sun\ C*)			# Sun C 5.9
8301	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8302	  compiler_needs_object=yes
8303	  tmp_sharedflag='-G' ;;
8304	*Sun\ F*)			# Sun Fortran 8.3
8305	  tmp_sharedflag='-G' ;;
8306	esac
8307	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308
8309        if test "x$supports_anon_versioning" = xyes; then
8310          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8311	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8312	    echo "local: *; };" >> $output_objdir/$libname.ver~
8313	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8314        fi
8315
8316	case $cc_basename in
8317	xlf*)
8318	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8319	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8320	  hardcode_libdir_flag_spec=
8321	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8322	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8323	  if test "x$supports_anon_versioning" = xyes; then
8324	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8325	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8326	      echo "local: *; };" >> $output_objdir/$libname.ver~
8327	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8328	  fi
8329	  ;;
8330	esac
8331      else
8332        ld_shlibs=no
8333      fi
8334      ;;
8335
8336    netbsd*)
8337      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8338	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8339	wlarc=
8340      else
8341	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8342	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8343      fi
8344      ;;
8345
8346    solaris*)
8347      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8348	ld_shlibs=no
8349	cat <<_LT_EOF 1>&2
8350
8351*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8352*** create shared libraries on Solaris systems.  Therefore, libtool
8353*** is disabling shared libraries support.  We urge you to upgrade GNU
8354*** binutils to release 2.9.1 or newer.  Another option is to modify
8355*** your PATH or compiler configuration so that the native linker is
8356*** used, and then restart.
8357
8358_LT_EOF
8359      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8360	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8362      else
8363	ld_shlibs=no
8364      fi
8365      ;;
8366
8367    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8368      case `$LD -v 2>&1` in
8369        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8370	ld_shlibs=no
8371	cat <<_LT_EOF 1>&2
8372
8373*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8374*** reliably create shared libraries on SCO systems.  Therefore, libtool
8375*** is disabling shared libraries support.  We urge you to upgrade GNU
8376*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8377*** your PATH or compiler configuration so that the native linker is
8378*** used, and then restart.
8379
8380_LT_EOF
8381	;;
8382	*)
8383	  # For security reasons, it is highly recommended that you always
8384	  # use absolute paths for naming shared libraries, and exclude the
8385	  # DT_RUNPATH tag from executables and libraries.  But doing so
8386	  # requires that you compile everything twice, which is a pain.
8387	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8388	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8389	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8391	  else
8392	    ld_shlibs=no
8393	  fi
8394	;;
8395      esac
8396      ;;
8397
8398    sunos4*)
8399      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8400      wlarc=
8401      hardcode_direct=yes
8402      hardcode_shlibpath_var=no
8403      ;;
8404
8405    *)
8406      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8407	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409      else
8410	ld_shlibs=no
8411      fi
8412      ;;
8413    esac
8414
8415    if test "$ld_shlibs" = no; then
8416      runpath_var=
8417      hardcode_libdir_flag_spec=
8418      export_dynamic_flag_spec=
8419      whole_archive_flag_spec=
8420    fi
8421  else
8422    # PORTME fill in a description of your system's linker (not GNU ld)
8423    case $host_os in
8424    aix3*)
8425      allow_undefined_flag=unsupported
8426      always_export_symbols=yes
8427      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'
8428      # Note: this linker hardcodes the directories in LIBPATH if there
8429      # are no directories specified by -L.
8430      hardcode_minus_L=yes
8431      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8432	# Neither direct hardcoding nor static linking is supported with a
8433	# broken collect2.
8434	hardcode_direct=unsupported
8435      fi
8436      ;;
8437
8438    aix[4-9]*)
8439      if test "$host_cpu" = ia64; then
8440	# On IA64, the linker does run time linking by default, so we don't
8441	# have to do anything special.
8442	aix_use_runtimelinking=no
8443	exp_sym_flag='-Bexport'
8444	no_entry_flag=""
8445      else
8446	# If we're using GNU nm, then we don't want the "-C" option.
8447	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8448	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8449	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8450	else
8451	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8452	fi
8453	aix_use_runtimelinking=no
8454
8455	# Test if we are trying to use run time linking or normal
8456	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8457	# need to do runtime linking.
8458	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8459	  for ld_flag in $LDFLAGS; do
8460	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8461	    aix_use_runtimelinking=yes
8462	    break
8463	  fi
8464	  done
8465	  ;;
8466	esac
8467
8468	exp_sym_flag='-bexport'
8469	no_entry_flag='-bnoentry'
8470      fi
8471
8472      # When large executables or shared objects are built, AIX ld can
8473      # have problems creating the table of contents.  If linking a library
8474      # or program results in "error TOC overflow" add -mminimal-toc to
8475      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8476      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8477
8478      archive_cmds=''
8479      hardcode_direct=yes
8480      hardcode_direct_absolute=yes
8481      hardcode_libdir_separator=':'
8482      link_all_deplibs=yes
8483      file_list_spec='${wl}-f,'
8484
8485      if test "$GCC" = yes; then
8486	case $host_os in aix4.[012]|aix4.[012].*)
8487	# We only want to do this on AIX 4.2 and lower, the check
8488	# below for broken collect2 doesn't work under 4.3+
8489	  collect2name=`${CC} -print-prog-name=collect2`
8490	  if test -f "$collect2name" &&
8491	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8492	  then
8493	  # We have reworked collect2
8494	  :
8495	  else
8496	  # We have old collect2
8497	  hardcode_direct=unsupported
8498	  # It fails to find uninstalled libraries when the uninstalled
8499	  # path is not listed in the libpath.  Setting hardcode_minus_L
8500	  # to unsupported forces relinking
8501	  hardcode_minus_L=yes
8502	  hardcode_libdir_flag_spec='-L$libdir'
8503	  hardcode_libdir_separator=
8504	  fi
8505	  ;;
8506	esac
8507	shared_flag='-shared'
8508	if test "$aix_use_runtimelinking" = yes; then
8509	  shared_flag="$shared_flag "'${wl}-G'
8510	fi
8511      else
8512	# not using gcc
8513	if test "$host_cpu" = ia64; then
8514	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8515	# chokes on -Wl,-G. The following line is correct:
8516	  shared_flag='-G'
8517	else
8518	  if test "$aix_use_runtimelinking" = yes; then
8519	    shared_flag='${wl}-G'
8520	  else
8521	    shared_flag='${wl}-bM:SRE'
8522	  fi
8523	fi
8524      fi
8525
8526      export_dynamic_flag_spec='${wl}-bexpall'
8527      # It seems that -bexpall does not export symbols beginning with
8528      # underscore (_), so it is better to generate a list of symbols to export.
8529      always_export_symbols=yes
8530      if test "$aix_use_runtimelinking" = yes; then
8531	# Warning - without using the other runtime loading flags (-brtl),
8532	# -berok will link without error, but may produce a broken library.
8533	allow_undefined_flag='-berok'
8534        # Determine the default libpath from the value encoded in an
8535        # empty executable.
8536        cat >conftest.$ac_ext <<_ACEOF
8537/* confdefs.h.  */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h.  */
8542
8543int
8544main ()
8545{
8546
8547  ;
8548  return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext conftest$ac_exeext
8552if { (ac_try="$ac_link"
8553case "(($ac_try" in
8554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555  *) ac_try_echo=$ac_try;;
8556esac
8557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558$as_echo "$ac_try_echo") >&5
8559  (eval "$ac_link") 2>conftest.er1
8560  ac_status=$?
8561  grep -v '^ *+' conftest.er1 >conftest.err
8562  rm -f conftest.er1
8563  cat conftest.err >&5
8564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); } && {
8566	 test -z "$ac_c_werror_flag" ||
8567	 test ! -s conftest.err
8568       } && test -s conftest$ac_exeext && {
8569	 test "$cross_compiling" = yes ||
8570	 $as_test_x conftest$ac_exeext
8571       }; then
8572
8573lt_aix_libpath_sed='
8574    /Import File Strings/,/^$/ {
8575	/^0/ {
8576	    s/^0  *\(.*\)$/\1/
8577	    p
8578	}
8579    }'
8580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8581# Check for a 64-bit object if we didn't find anything.
8582if test -z "$aix_libpath"; then
8583  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584fi
8585else
8586  $as_echo "$as_me: failed program was:" >&5
8587sed 's/^/| /' conftest.$ac_ext >&5
8588
8589
8590fi
8591
8592rm -rf conftest.dSYM
8593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8594      conftest$ac_exeext conftest.$ac_ext
8595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8596
8597        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8598        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8599      else
8600	if test "$host_cpu" = ia64; then
8601	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8602	  allow_undefined_flag="-z nodefs"
8603	  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"
8604	else
8605	 # Determine the default libpath from the value encoded in an
8606	 # empty executable.
8607	 cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h.  */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h.  */
8613
8614int
8615main ()
8616{
8617
8618  ;
8619  return 0;
8620}
8621_ACEOF
8622rm -f conftest.$ac_objext conftest$ac_exeext
8623if { (ac_try="$ac_link"
8624case "(($ac_try" in
8625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626  *) ac_try_echo=$ac_try;;
8627esac
8628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8629$as_echo "$ac_try_echo") >&5
8630  (eval "$ac_link") 2>conftest.er1
8631  ac_status=$?
8632  grep -v '^ *+' conftest.er1 >conftest.err
8633  rm -f conftest.er1
8634  cat conftest.err >&5
8635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636  (exit $ac_status); } && {
8637	 test -z "$ac_c_werror_flag" ||
8638	 test ! -s conftest.err
8639       } && test -s conftest$ac_exeext && {
8640	 test "$cross_compiling" = yes ||
8641	 $as_test_x conftest$ac_exeext
8642       }; then
8643
8644lt_aix_libpath_sed='
8645    /Import File Strings/,/^$/ {
8646	/^0/ {
8647	    s/^0  *\(.*\)$/\1/
8648	    p
8649	}
8650    }'
8651aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8652# Check for a 64-bit object if we didn't find anything.
8653if test -z "$aix_libpath"; then
8654  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8655fi
8656else
8657  $as_echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660
8661fi
8662
8663rm -rf conftest.dSYM
8664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8665      conftest$ac_exeext conftest.$ac_ext
8666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8667
8668	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8669	  # Warning - without using the other run time loading flags,
8670	  # -berok will link without error, but may produce a broken library.
8671	  no_undefined_flag=' ${wl}-bernotok'
8672	  allow_undefined_flag=' ${wl}-berok'
8673	  # Exported symbols can be pulled into shared objects from archives
8674	  whole_archive_flag_spec='$convenience'
8675	  archive_cmds_need_lc=yes
8676	  # This is similar to how AIX traditionally builds its shared libraries.
8677	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8678	fi
8679      fi
8680      ;;
8681
8682    amigaos*)
8683      case $host_cpu in
8684      powerpc)
8685            # see comment about AmigaOS4 .so support
8686            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687            archive_expsym_cmds=''
8688        ;;
8689      m68k)
8690            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)'
8691            hardcode_libdir_flag_spec='-L$libdir'
8692            hardcode_minus_L=yes
8693        ;;
8694      esac
8695      ;;
8696
8697    bsdi[45]*)
8698      export_dynamic_flag_spec=-rdynamic
8699      ;;
8700
8701    cygwin* | mingw* | pw32* | cegcc*)
8702      # When not using gcc, we currently assume that we are using
8703      # Microsoft Visual C++.
8704      # hardcode_libdir_flag_spec is actually meaningless, as there is
8705      # no search path for DLLs.
8706      hardcode_libdir_flag_spec=' '
8707      allow_undefined_flag=unsupported
8708      # Tell ltmain to make .lib files, not .a files.
8709      libext=lib
8710      # Tell ltmain to make .dll files, not .so files.
8711      shrext_cmds=".dll"
8712      # FIXME: Setting linknames here is a bad hack.
8713      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8714      # The linker will automatically build a .lib file if we build a DLL.
8715      old_archive_from_new_cmds='true'
8716      # FIXME: Should let the user specify the lib program.
8717      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8718      fix_srcfile_path='`cygpath -w "$srcfile"`'
8719      enable_shared_with_static_runtimes=yes
8720      ;;
8721
8722    darwin* | rhapsody*)
8723
8724
8725  archive_cmds_need_lc=no
8726  hardcode_direct=no
8727  hardcode_automatic=yes
8728  hardcode_shlibpath_var=unsupported
8729  whole_archive_flag_spec=''
8730  link_all_deplibs=yes
8731  allow_undefined_flag="$_lt_dar_allow_undefined"
8732  case $cc_basename in
8733     ifort*) _lt_dar_can_shared=yes ;;
8734     *) _lt_dar_can_shared=$GCC ;;
8735  esac
8736  if test "$_lt_dar_can_shared" = "yes"; then
8737    output_verbose_link_cmd=echo
8738    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8739    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8740    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}"
8741    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}"
8742
8743  else
8744  ld_shlibs=no
8745  fi
8746
8747      ;;
8748
8749    dgux*)
8750      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8751      hardcode_libdir_flag_spec='-L$libdir'
8752      hardcode_shlibpath_var=no
8753      ;;
8754
8755    freebsd1*)
8756      ld_shlibs=no
8757      ;;
8758
8759    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8760    # support.  Future versions do this automatically, but an explicit c++rt0.o
8761    # does not break anything, and helps significantly (at the cost of a little
8762    # extra space).
8763    freebsd2.2*)
8764      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8765      hardcode_libdir_flag_spec='-R$libdir'
8766      hardcode_direct=yes
8767      hardcode_shlibpath_var=no
8768      ;;
8769
8770    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8771    freebsd2*)
8772      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8773      hardcode_direct=yes
8774      hardcode_minus_L=yes
8775      hardcode_shlibpath_var=no
8776      ;;
8777
8778    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8779    freebsd* | dragonfly*)
8780      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8781      hardcode_libdir_flag_spec='-R$libdir'
8782      hardcode_direct=yes
8783      hardcode_shlibpath_var=no
8784      ;;
8785
8786    hpux9*)
8787      if test "$GCC" = yes; then
8788	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8789      else
8790	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8791      fi
8792      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8793      hardcode_libdir_separator=:
8794      hardcode_direct=yes
8795
8796      # hardcode_minus_L: Not really in the search PATH,
8797      # but as the default location of the library.
8798      hardcode_minus_L=yes
8799      export_dynamic_flag_spec='${wl}-E'
8800      ;;
8801
8802    hpux10*)
8803      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8804	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8805      else
8806	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8807      fi
8808      if test "$with_gnu_ld" = no; then
8809	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8810	hardcode_libdir_flag_spec_ld='+b $libdir'
8811	hardcode_libdir_separator=:
8812	hardcode_direct=yes
8813	hardcode_direct_absolute=yes
8814	export_dynamic_flag_spec='${wl}-E'
8815	# hardcode_minus_L: Not really in the search PATH,
8816	# but as the default location of the library.
8817	hardcode_minus_L=yes
8818      fi
8819      ;;
8820
8821    hpux11*)
8822      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8823	case $host_cpu in
8824	hppa*64*)
8825	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8826	  ;;
8827	ia64*)
8828	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8829	  ;;
8830	*)
8831	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8832	  ;;
8833	esac
8834      else
8835	case $host_cpu in
8836	hppa*64*)
8837	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838	  ;;
8839	ia64*)
8840	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8841	  ;;
8842	*)
8843	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8844	  ;;
8845	esac
8846      fi
8847      if test "$with_gnu_ld" = no; then
8848	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8849	hardcode_libdir_separator=:
8850
8851	case $host_cpu in
8852	hppa*64*|ia64*)
8853	  hardcode_direct=no
8854	  hardcode_shlibpath_var=no
8855	  ;;
8856	*)
8857	  hardcode_direct=yes
8858	  hardcode_direct_absolute=yes
8859	  export_dynamic_flag_spec='${wl}-E'
8860
8861	  # hardcode_minus_L: Not really in the search PATH,
8862	  # but as the default location of the library.
8863	  hardcode_minus_L=yes
8864	  ;;
8865	esac
8866      fi
8867      ;;
8868
8869    irix5* | irix6* | nonstopux*)
8870      if test "$GCC" = yes; then
8871	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8872	# Try to use the -exported_symbol ld option, if it does not
8873	# work, assume that -exports_file does not work either and
8874	# implicitly export all symbols.
8875        save_LDFLAGS="$LDFLAGS"
8876        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8877        cat >conftest.$ac_ext <<_ACEOF
8878int foo(void) {}
8879_ACEOF
8880rm -f conftest.$ac_objext conftest$ac_exeext
8881if { (ac_try="$ac_link"
8882case "(($ac_try" in
8883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884  *) ac_try_echo=$ac_try;;
8885esac
8886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8887$as_echo "$ac_try_echo") >&5
8888  (eval "$ac_link") 2>conftest.er1
8889  ac_status=$?
8890  grep -v '^ *+' conftest.er1 >conftest.err
8891  rm -f conftest.er1
8892  cat conftest.err >&5
8893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894  (exit $ac_status); } && {
8895	 test -z "$ac_c_werror_flag" ||
8896	 test ! -s conftest.err
8897       } && test -s conftest$ac_exeext && {
8898	 test "$cross_compiling" = yes ||
8899	 $as_test_x conftest$ac_exeext
8900       }; then
8901  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8902
8903else
8904  $as_echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907
8908fi
8909
8910rm -rf conftest.dSYM
8911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8912      conftest$ac_exeext conftest.$ac_ext
8913        LDFLAGS="$save_LDFLAGS"
8914      else
8915	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8916	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8917      fi
8918      archive_cmds_need_lc='no'
8919      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920      hardcode_libdir_separator=:
8921      inherit_rpath=yes
8922      link_all_deplibs=yes
8923      ;;
8924
8925    netbsd*)
8926      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8927	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8928      else
8929	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8930      fi
8931      hardcode_libdir_flag_spec='-R$libdir'
8932      hardcode_direct=yes
8933      hardcode_shlibpath_var=no
8934      ;;
8935
8936    newsos6)
8937      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938      hardcode_direct=yes
8939      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940      hardcode_libdir_separator=:
8941      hardcode_shlibpath_var=no
8942      ;;
8943
8944    *nto* | *qnx*)
8945      ;;
8946
8947    openbsd*)
8948      if test -f /usr/libexec/ld.so; then
8949	hardcode_direct=yes
8950	hardcode_shlibpath_var=no
8951	hardcode_direct_absolute=yes
8952	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8953	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8954	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8955	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8956	  export_dynamic_flag_spec='${wl}-E'
8957	else
8958	  case $host_os in
8959	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8960	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8961	     hardcode_libdir_flag_spec='-R$libdir'
8962	     ;;
8963	   *)
8964	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8965	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8966	     ;;
8967	  esac
8968	fi
8969      else
8970	ld_shlibs=no
8971      fi
8972      ;;
8973
8974    os2*)
8975      hardcode_libdir_flag_spec='-L$libdir'
8976      hardcode_minus_L=yes
8977      allow_undefined_flag=unsupported
8978      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8979      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8980      ;;
8981
8982    osf3*)
8983      if test "$GCC" = yes; then
8984	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8985	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8986      else
8987	allow_undefined_flag=' -expect_unresolved \*'
8988	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8989      fi
8990      archive_cmds_need_lc='no'
8991      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992      hardcode_libdir_separator=:
8993      ;;
8994
8995    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8996      if test "$GCC" = yes; then
8997	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8998	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8999	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000      else
9001	allow_undefined_flag=' -expect_unresolved \*'
9002	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9003	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~
9004	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9005
9006	# Both c and cxx compiler support -rpath directly
9007	hardcode_libdir_flag_spec='-rpath $libdir'
9008      fi
9009      archive_cmds_need_lc='no'
9010      hardcode_libdir_separator=:
9011      ;;
9012
9013    solaris*)
9014      no_undefined_flag=' -z defs'
9015      if test "$GCC" = yes; then
9016	wlarc='${wl}'
9017	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9019	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9020      else
9021	case `$CC -V 2>&1` in
9022	*"Compilers 5.0"*)
9023	  wlarc=''
9024	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9026	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9027	  ;;
9028	*)
9029	  wlarc='${wl}'
9030	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9031	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9032	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9033	  ;;
9034	esac
9035      fi
9036      hardcode_libdir_flag_spec='-R$libdir'
9037      hardcode_shlibpath_var=no
9038      case $host_os in
9039      solaris2.[0-5] | solaris2.[0-5].*) ;;
9040      *)
9041	# The compiler driver will combine and reorder linker options,
9042	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9043	# but is careful enough not to reorder.
9044	# Supported since Solaris 2.6 (maybe 2.5.1?)
9045	if test "$GCC" = yes; then
9046	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9047	else
9048	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9049	fi
9050	;;
9051      esac
9052      link_all_deplibs=yes
9053      ;;
9054
9055    sunos4*)
9056      if test "x$host_vendor" = xsequent; then
9057	# Use $CC to link under sequent, because it throws in some extra .o
9058	# files that make .init and .fini sections work.
9059	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9060      else
9061	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9062      fi
9063      hardcode_libdir_flag_spec='-L$libdir'
9064      hardcode_direct=yes
9065      hardcode_minus_L=yes
9066      hardcode_shlibpath_var=no
9067      ;;
9068
9069    sysv4)
9070      case $host_vendor in
9071	sni)
9072	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073	  hardcode_direct=yes # is this really true???
9074	;;
9075	siemens)
9076	  ## LD is ld it makes a PLAMLIB
9077	  ## CC just makes a GrossModule.
9078	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9079	  reload_cmds='$CC -r -o $output$reload_objs'
9080	  hardcode_direct=no
9081        ;;
9082	motorola)
9083	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9085	;;
9086      esac
9087      runpath_var='LD_RUN_PATH'
9088      hardcode_shlibpath_var=no
9089      ;;
9090
9091    sysv4.3*)
9092      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093      hardcode_shlibpath_var=no
9094      export_dynamic_flag_spec='-Bexport'
9095      ;;
9096
9097    sysv4*MP*)
9098      if test -d /usr/nec; then
9099	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100	hardcode_shlibpath_var=no
9101	runpath_var=LD_RUN_PATH
9102	hardcode_runpath_var=yes
9103	ld_shlibs=yes
9104      fi
9105      ;;
9106
9107    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9108      no_undefined_flag='${wl}-z,text'
9109      archive_cmds_need_lc=no
9110      hardcode_shlibpath_var=no
9111      runpath_var='LD_RUN_PATH'
9112
9113      if test "$GCC" = yes; then
9114	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116      else
9117	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119      fi
9120      ;;
9121
9122    sysv5* | sco3.2v5* | sco5v6*)
9123      # Note: We can NOT use -z defs as we might desire, because we do not
9124      # link with -lc, and that would cause any symbols used from libc to
9125      # always be unresolved, which means just about no library would
9126      # ever link correctly.  If we're not using GNU ld we use -z text
9127      # though, which does catch some bad symbols but isn't as heavy-handed
9128      # as -z defs.
9129      no_undefined_flag='${wl}-z,text'
9130      allow_undefined_flag='${wl}-z,nodefs'
9131      archive_cmds_need_lc=no
9132      hardcode_shlibpath_var=no
9133      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9134      hardcode_libdir_separator=':'
9135      link_all_deplibs=yes
9136      export_dynamic_flag_spec='${wl}-Bexport'
9137      runpath_var='LD_RUN_PATH'
9138
9139      if test "$GCC" = yes; then
9140	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142      else
9143	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145      fi
9146      ;;
9147
9148    uts4*)
9149      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150      hardcode_libdir_flag_spec='-L$libdir'
9151      hardcode_shlibpath_var=no
9152      ;;
9153
9154    *)
9155      ld_shlibs=no
9156      ;;
9157    esac
9158
9159    if test x$host_vendor = xsni; then
9160      case $host in
9161      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9162	export_dynamic_flag_spec='${wl}-Blargedynsym'
9163	;;
9164      esac
9165    fi
9166  fi
9167
9168{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9169$as_echo "$ld_shlibs" >&6; }
9170test "$ld_shlibs" = no && can_build_shared=no
9171
9172with_gnu_ld=$with_gnu_ld
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188#
9189# Do we need to explicitly link libc?
9190#
9191case "x$archive_cmds_need_lc" in
9192x|xyes)
9193  # Assume -lc should be added
9194  archive_cmds_need_lc=yes
9195
9196  if test "$enable_shared" = yes && test "$GCC" = yes; then
9197    case $archive_cmds in
9198    *'~'*)
9199      # FIXME: we may have to deal with multi-command sequences.
9200      ;;
9201    '$CC '*)
9202      # Test whether the compiler implicitly links with -lc since on some
9203      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9204      # to ld, don't add -lc before -lgcc.
9205      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9206$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9207      $RM conftest*
9208      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9209
9210      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211  (eval $ac_compile) 2>&5
9212  ac_status=$?
9213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214  (exit $ac_status); } 2>conftest.err; then
9215        soname=conftest
9216        lib=conftest
9217        libobjs=conftest.$ac_objext
9218        deplibs=
9219        wl=$lt_prog_compiler_wl
9220	pic_flag=$lt_prog_compiler_pic
9221        compiler_flags=-v
9222        linker_flags=-v
9223        verstring=
9224        output_objdir=.
9225        libname=conftest
9226        lt_save_allow_undefined_flag=$allow_undefined_flag
9227        allow_undefined_flag=
9228        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9229  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9230  ac_status=$?
9231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232  (exit $ac_status); }
9233        then
9234	  archive_cmds_need_lc=no
9235        else
9236	  archive_cmds_need_lc=yes
9237        fi
9238        allow_undefined_flag=$lt_save_allow_undefined_flag
9239      else
9240        cat conftest.err 1>&5
9241      fi
9242      $RM conftest*
9243      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9244$as_echo "$archive_cmds_need_lc" >&6; }
9245      ;;
9246    esac
9247  fi
9248  ;;
9249esac
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9408$as_echo_n "checking dynamic linker characteristics... " >&6; }
9409
9410if test "$GCC" = yes; then
9411  case $host_os in
9412    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9413    *) lt_awk_arg="/^libraries:/" ;;
9414  esac
9415  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9416  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9417    # if the path contains ";" then we assume it to be the separator
9418    # otherwise default to the standard path separator (i.e. ":") - it is
9419    # assumed that no part of a normal pathname contains ";" but that should
9420    # okay in the real world where ";" in dirpaths is itself problematic.
9421    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9422  else
9423    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9424  fi
9425  # Ok, now we have the path, separated by spaces, we can step through it
9426  # and add multilib dir if necessary.
9427  lt_tmp_lt_search_path_spec=
9428  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9429  for lt_sys_path in $lt_search_path_spec; do
9430    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9431      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9432    else
9433      test -d "$lt_sys_path" && \
9434	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9435    fi
9436  done
9437  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9438BEGIN {RS=" "; FS="/|\n";} {
9439  lt_foo="";
9440  lt_count=0;
9441  for (lt_i = NF; lt_i > 0; lt_i--) {
9442    if ($lt_i != "" && $lt_i != ".") {
9443      if ($lt_i == "..") {
9444        lt_count++;
9445      } else {
9446        if (lt_count == 0) {
9447          lt_foo="/" $lt_i lt_foo;
9448        } else {
9449          lt_count--;
9450        }
9451      }
9452    }
9453  }
9454  if (lt_foo != "") { lt_freq[lt_foo]++; }
9455  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9456}'`
9457  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9458else
9459  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9460fi
9461library_names_spec=
9462libname_spec='lib$name'
9463soname_spec=
9464shrext_cmds=".so"
9465postinstall_cmds=
9466postuninstall_cmds=
9467finish_cmds=
9468finish_eval=
9469shlibpath_var=
9470shlibpath_overrides_runpath=unknown
9471version_type=none
9472dynamic_linker="$host_os ld.so"
9473sys_lib_dlsearch_path_spec="/lib /usr/lib"
9474need_lib_prefix=unknown
9475hardcode_into_libs=no
9476
9477# when you set need_version to no, make sure it does not cause -set_version
9478# flags to be left without arguments
9479need_version=unknown
9480
9481case $host_os in
9482aix3*)
9483  version_type=linux
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9485  shlibpath_var=LIBPATH
9486
9487  # AIX 3 has no versioning support, so we append a major version to the name.
9488  soname_spec='${libname}${release}${shared_ext}$major'
9489  ;;
9490
9491aix[4-9]*)
9492  version_type=linux
9493  need_lib_prefix=no
9494  need_version=no
9495  hardcode_into_libs=yes
9496  if test "$host_cpu" = ia64; then
9497    # AIX 5 supports IA64
9498    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9499    shlibpath_var=LD_LIBRARY_PATH
9500  else
9501    # With GCC up to 2.95.x, collect2 would create an import file
9502    # for dependence libraries.  The import file would start with
9503    # the line `#! .'.  This would cause the generated library to
9504    # depend on `.', always an invalid library.  This was fixed in
9505    # development snapshots of GCC prior to 3.0.
9506    case $host_os in
9507      aix4 | aix4.[01] | aix4.[01].*)
9508      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9509	   echo ' yes '
9510	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9511	:
9512      else
9513	can_build_shared=no
9514      fi
9515      ;;
9516    esac
9517    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9518    # soname into executable. Probably we can add versioning support to
9519    # collect2, so additional links can be useful in future.
9520    if test "$aix_use_runtimelinking" = yes; then
9521      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9522      # instead of lib<name>.a to let people know that these are not
9523      # typical AIX shared libraries.
9524      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525    else
9526      # We preserve .a as extension for shared libraries through AIX4.2
9527      # and later when we are not doing run time linking.
9528      library_names_spec='${libname}${release}.a $libname.a'
9529      soname_spec='${libname}${release}${shared_ext}$major'
9530    fi
9531    shlibpath_var=LIBPATH
9532  fi
9533  ;;
9534
9535amigaos*)
9536  case $host_cpu in
9537  powerpc)
9538    # Since July 2007 AmigaOS4 officially supports .so libraries.
9539    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541    ;;
9542  m68k)
9543    library_names_spec='$libname.ixlibrary $libname.a'
9544    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9545    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9546    ;;
9547  esac
9548  ;;
9549
9550beos*)
9551  library_names_spec='${libname}${shared_ext}'
9552  dynamic_linker="$host_os ld.so"
9553  shlibpath_var=LIBRARY_PATH
9554  ;;
9555
9556bsdi[45]*)
9557  version_type=linux
9558  need_version=no
9559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560  soname_spec='${libname}${release}${shared_ext}$major'
9561  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9562  shlibpath_var=LD_LIBRARY_PATH
9563  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9564  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9565  # the default ld.so.conf also contains /usr/contrib/lib and
9566  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9567  # libtool to hard-code these into programs
9568  ;;
9569
9570cygwin* | mingw* | pw32* | cegcc*)
9571  version_type=windows
9572  shrext_cmds=".dll"
9573  need_version=no
9574  need_lib_prefix=no
9575
9576  case $GCC,$host_os in
9577  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9578    library_names_spec='$libname.dll.a'
9579    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9580    postinstall_cmds='base_file=`basename \${file}`~
9581      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9582      dldir=$destdir/`dirname \$dlpath`~
9583      test -d \$dldir || mkdir -p \$dldir~
9584      $install_prog $dir/$dlname \$dldir/$dlname~
9585      chmod a+x \$dldir/$dlname~
9586      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9587        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9588      fi'
9589    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9590      dlpath=$dir/\$dldll~
9591       $RM \$dlpath'
9592    shlibpath_overrides_runpath=yes
9593
9594    case $host_os in
9595    cygwin*)
9596      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9597      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9598      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9599      ;;
9600    mingw* | cegcc*)
9601      # MinGW DLLs use traditional 'lib' prefix
9602      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9603      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9604      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9605        # It is most probably a Windows format PATH printed by
9606        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9607        # path with ; separators, and with drive letters. We can handle the
9608        # drive letters (cygwin fileutils understands them), so leave them,
9609        # especially as we might pass files found there to a mingw objdump,
9610        # which wouldn't understand a cygwinified path. Ahh.
9611        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9612      else
9613        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9614      fi
9615      ;;
9616    pw32*)
9617      # pw32 DLLs use 'pw' prefix rather than 'lib'
9618      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9619      ;;
9620    esac
9621    ;;
9622
9623  *)
9624    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9625    ;;
9626  esac
9627  dynamic_linker='Win32 ld.exe'
9628  # FIXME: first we should search . and the directory the executable is in
9629  shlibpath_var=PATH
9630  ;;
9631
9632darwin* | rhapsody*)
9633  dynamic_linker="$host_os dyld"
9634  version_type=darwin
9635  need_lib_prefix=no
9636  need_version=no
9637  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9638  soname_spec='${libname}${release}${major}$shared_ext'
9639  shlibpath_overrides_runpath=yes
9640  shlibpath_var=DYLD_LIBRARY_PATH
9641  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9642
9643  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9644  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9645  ;;
9646
9647dgux*)
9648  version_type=linux
9649  need_lib_prefix=no
9650  need_version=no
9651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9652  soname_spec='${libname}${release}${shared_ext}$major'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  ;;
9655
9656freebsd1*)
9657  dynamic_linker=no
9658  ;;
9659
9660freebsd* | dragonfly*)
9661  # DragonFly does not have aout.  When/if they implement a new
9662  # versioning mechanism, adjust this.
9663  if test -x /usr/bin/objformat; then
9664    objformat=`/usr/bin/objformat`
9665  else
9666    case $host_os in
9667    freebsd[123]*) objformat=aout ;;
9668    *) objformat=elf ;;
9669    esac
9670  fi
9671  version_type=freebsd-$objformat
9672  case $version_type in
9673    freebsd-elf*)
9674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9675      need_version=no
9676      need_lib_prefix=no
9677      ;;
9678    freebsd-*)
9679      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9680      need_version=yes
9681      ;;
9682  esac
9683  shlibpath_var=LD_LIBRARY_PATH
9684  case $host_os in
9685  freebsd2*)
9686    shlibpath_overrides_runpath=yes
9687    ;;
9688  freebsd3.[01]* | freebsdelf3.[01]*)
9689    shlibpath_overrides_runpath=yes
9690    hardcode_into_libs=yes
9691    ;;
9692  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9693  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9694    shlibpath_overrides_runpath=no
9695    hardcode_into_libs=yes
9696    ;;
9697  *) # from 4.6 on, and DragonFly
9698    shlibpath_overrides_runpath=yes
9699    hardcode_into_libs=yes
9700    ;;
9701  esac
9702  ;;
9703
9704gnu*)
9705  version_type=linux
9706  need_lib_prefix=no
9707  need_version=no
9708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9709  soname_spec='${libname}${release}${shared_ext}$major'
9710  shlibpath_var=LD_LIBRARY_PATH
9711  hardcode_into_libs=yes
9712  ;;
9713
9714hpux9* | hpux10* | hpux11*)
9715  # Give a soname corresponding to the major version so that dld.sl refuses to
9716  # link against other versions.
9717  version_type=sunos
9718  need_lib_prefix=no
9719  need_version=no
9720  case $host_cpu in
9721  ia64*)
9722    shrext_cmds='.so'
9723    hardcode_into_libs=yes
9724    dynamic_linker="$host_os dld.so"
9725    shlibpath_var=LD_LIBRARY_PATH
9726    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9727    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728    soname_spec='${libname}${release}${shared_ext}$major'
9729    if test "X$HPUX_IA64_MODE" = X32; then
9730      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9731    else
9732      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9733    fi
9734    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9735    ;;
9736  hppa*64*)
9737    shrext_cmds='.sl'
9738    hardcode_into_libs=yes
9739    dynamic_linker="$host_os dld.sl"
9740    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9741    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9742    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743    soname_spec='${libname}${release}${shared_ext}$major'
9744    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9745    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9746    ;;
9747  *)
9748    shrext_cmds='.sl'
9749    dynamic_linker="$host_os dld.sl"
9750    shlibpath_var=SHLIB_PATH
9751    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9752    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753    soname_spec='${libname}${release}${shared_ext}$major'
9754    ;;
9755  esac
9756  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9757  postinstall_cmds='chmod 555 $lib'
9758  ;;
9759
9760interix[3-9]*)
9761  version_type=linux
9762  need_lib_prefix=no
9763  need_version=no
9764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9765  soname_spec='${libname}${release}${shared_ext}$major'
9766  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9767  shlibpath_var=LD_LIBRARY_PATH
9768  shlibpath_overrides_runpath=no
9769  hardcode_into_libs=yes
9770  ;;
9771
9772irix5* | irix6* | nonstopux*)
9773  case $host_os in
9774    nonstopux*) version_type=nonstopux ;;
9775    *)
9776	if test "$lt_cv_prog_gnu_ld" = yes; then
9777		version_type=linux
9778	else
9779		version_type=irix
9780	fi ;;
9781  esac
9782  need_lib_prefix=no
9783  need_version=no
9784  soname_spec='${libname}${release}${shared_ext}$major'
9785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9786  case $host_os in
9787  irix5* | nonstopux*)
9788    libsuff= shlibsuff=
9789    ;;
9790  *)
9791    case $LD in # libtool.m4 will add one of these switches to LD
9792    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9793      libsuff= shlibsuff= libmagic=32-bit;;
9794    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9795      libsuff=32 shlibsuff=N32 libmagic=N32;;
9796    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9797      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9798    *) libsuff= shlibsuff= libmagic=never-match;;
9799    esac
9800    ;;
9801  esac
9802  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9803  shlibpath_overrides_runpath=no
9804  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9805  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9806  hardcode_into_libs=yes
9807  ;;
9808
9809# No shared lib support for Linux oldld, aout, or coff.
9810linux*oldld* | linux*aout* | linux*coff*)
9811  dynamic_linker=no
9812  ;;
9813
9814# This must be Linux ELF.
9815linux* | k*bsd*-gnu)
9816  version_type=linux
9817  need_lib_prefix=no
9818  need_version=no
9819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820  soname_spec='${libname}${release}${shared_ext}$major'
9821  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9822  shlibpath_var=LD_LIBRARY_PATH
9823  shlibpath_overrides_runpath=no
9824  # Some binutils ld are patched to set DT_RUNPATH
9825  save_LDFLAGS=$LDFLAGS
9826  save_libdir=$libdir
9827  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9828       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9829  cat >conftest.$ac_ext <<_ACEOF
9830/* confdefs.h.  */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h.  */
9835
9836int
9837main ()
9838{
9839
9840  ;
9841  return 0;
9842}
9843_ACEOF
9844rm -f conftest.$ac_objext conftest$ac_exeext
9845if { (ac_try="$ac_link"
9846case "(($ac_try" in
9847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848  *) ac_try_echo=$ac_try;;
9849esac
9850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851$as_echo "$ac_try_echo") >&5
9852  (eval "$ac_link") 2>conftest.er1
9853  ac_status=$?
9854  grep -v '^ *+' conftest.er1 >conftest.err
9855  rm -f conftest.er1
9856  cat conftest.err >&5
9857  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); } && {
9859	 test -z "$ac_c_werror_flag" ||
9860	 test ! -s conftest.err
9861       } && test -s conftest$ac_exeext && {
9862	 test "$cross_compiling" = yes ||
9863	 $as_test_x conftest$ac_exeext
9864       }; then
9865  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9866  shlibpath_overrides_runpath=yes
9867fi
9868
9869else
9870  $as_echo "$as_me: failed program was:" >&5
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873
9874fi
9875
9876rm -rf conftest.dSYM
9877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878      conftest$ac_exeext conftest.$ac_ext
9879  LDFLAGS=$save_LDFLAGS
9880  libdir=$save_libdir
9881
9882  # This implies no fast_install, which is unacceptable.
9883  # Some rework will be needed to allow for fast_install
9884  # before this can be enabled.
9885  hardcode_into_libs=yes
9886
9887  # Add ABI-specific directories to the system library path.
9888  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9889
9890  # Append ld.so.conf contents to the search path
9891  if test -f /etc/ld.so.conf; then
9892    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;/^$/d' | tr '\n' ' '`
9893    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9894  fi
9895
9896  # We used to test for /lib/ld.so.1 and disable shared libraries on
9897  # powerpc, because MkLinux only supported shared libraries with the
9898  # GNU dynamic linker.  Since this was broken with cross compilers,
9899  # most powerpc-linux boxes support dynamic linking these days and
9900  # people can always --disable-shared, the test was removed, and we
9901  # assume the GNU/Linux dynamic linker is in use.
9902  dynamic_linker='GNU/Linux ld.so'
9903  ;;
9904
9905netbsd*)
9906  version_type=sunos
9907  need_lib_prefix=no
9908  need_version=no
9909  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9910    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9911    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9912    dynamic_linker='NetBSD (a.out) ld.so'
9913  else
9914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9915    soname_spec='${libname}${release}${shared_ext}$major'
9916    dynamic_linker='NetBSD ld.elf_so'
9917  fi
9918  shlibpath_var=LD_LIBRARY_PATH
9919  shlibpath_overrides_runpath=yes
9920  hardcode_into_libs=yes
9921  ;;
9922
9923newsos6)
9924  version_type=linux
9925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926  shlibpath_var=LD_LIBRARY_PATH
9927  shlibpath_overrides_runpath=yes
9928  ;;
9929
9930*nto* | *qnx*)
9931  version_type=qnx
9932  need_lib_prefix=no
9933  need_version=no
9934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935  soname_spec='${libname}${release}${shared_ext}$major'
9936  shlibpath_var=LD_LIBRARY_PATH
9937  shlibpath_overrides_runpath=no
9938  hardcode_into_libs=yes
9939  dynamic_linker='ldqnx.so'
9940  ;;
9941
9942openbsd*)
9943  version_type=sunos
9944  sys_lib_dlsearch_path_spec="/usr/lib"
9945  need_lib_prefix=no
9946  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9947  case $host_os in
9948    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9949    *)				need_version=no  ;;
9950  esac
9951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9952  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9953  shlibpath_var=LD_LIBRARY_PATH
9954  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9955    case $host_os in
9956      openbsd2.[89] | openbsd2.[89].*)
9957	shlibpath_overrides_runpath=no
9958	;;
9959      *)
9960	shlibpath_overrides_runpath=yes
9961	;;
9962      esac
9963  else
9964    shlibpath_overrides_runpath=yes
9965  fi
9966  ;;
9967
9968os2*)
9969  libname_spec='$name'
9970  shrext_cmds=".dll"
9971  need_lib_prefix=no
9972  library_names_spec='$libname${shared_ext} $libname.a'
9973  dynamic_linker='OS/2 ld.exe'
9974  shlibpath_var=LIBPATH
9975  ;;
9976
9977osf3* | osf4* | osf5*)
9978  version_type=osf
9979  need_lib_prefix=no
9980  need_version=no
9981  soname_spec='${libname}${release}${shared_ext}$major'
9982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9985  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9986  ;;
9987
9988rdos*)
9989  dynamic_linker=no
9990  ;;
9991
9992solaris*)
9993  version_type=linux
9994  need_lib_prefix=no
9995  need_version=no
9996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997  soname_spec='${libname}${release}${shared_ext}$major'
9998  shlibpath_var=LD_LIBRARY_PATH
9999  shlibpath_overrides_runpath=yes
10000  hardcode_into_libs=yes
10001  # ldd complains unless libraries are executable
10002  postinstall_cmds='chmod +x $lib'
10003  ;;
10004
10005sunos4*)
10006  version_type=sunos
10007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10008  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10009  shlibpath_var=LD_LIBRARY_PATH
10010  shlibpath_overrides_runpath=yes
10011  if test "$with_gnu_ld" = yes; then
10012    need_lib_prefix=no
10013  fi
10014  need_version=yes
10015  ;;
10016
10017sysv4 | sysv4.3*)
10018  version_type=linux
10019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020  soname_spec='${libname}${release}${shared_ext}$major'
10021  shlibpath_var=LD_LIBRARY_PATH
10022  case $host_vendor in
10023    sni)
10024      shlibpath_overrides_runpath=no
10025      need_lib_prefix=no
10026      runpath_var=LD_RUN_PATH
10027      ;;
10028    siemens)
10029      need_lib_prefix=no
10030      ;;
10031    motorola)
10032      need_lib_prefix=no
10033      need_version=no
10034      shlibpath_overrides_runpath=no
10035      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10036      ;;
10037  esac
10038  ;;
10039
10040sysv4*MP*)
10041  if test -d /usr/nec ;then
10042    version_type=linux
10043    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10044    soname_spec='$libname${shared_ext}.$major'
10045    shlibpath_var=LD_LIBRARY_PATH
10046  fi
10047  ;;
10048
10049sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10050  version_type=freebsd-elf
10051  need_lib_prefix=no
10052  need_version=no
10053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10054  soname_spec='${libname}${release}${shared_ext}$major'
10055  shlibpath_var=LD_LIBRARY_PATH
10056  shlibpath_overrides_runpath=yes
10057  hardcode_into_libs=yes
10058  if test "$with_gnu_ld" = yes; then
10059    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10060  else
10061    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10062    case $host_os in
10063      sco3.2v5*)
10064        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10065	;;
10066    esac
10067  fi
10068  sys_lib_dlsearch_path_spec='/usr/lib'
10069  ;;
10070
10071tpf*)
10072  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10073  version_type=linux
10074  need_lib_prefix=no
10075  need_version=no
10076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077  shlibpath_var=LD_LIBRARY_PATH
10078  shlibpath_overrides_runpath=no
10079  hardcode_into_libs=yes
10080  ;;
10081
10082uts4*)
10083  version_type=linux
10084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085  soname_spec='${libname}${release}${shared_ext}$major'
10086  shlibpath_var=LD_LIBRARY_PATH
10087  ;;
10088
10089*)
10090  dynamic_linker=no
10091  ;;
10092esac
10093{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10094$as_echo "$dynamic_linker" >&6; }
10095test "$dynamic_linker" = no && can_build_shared=no
10096
10097variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10098if test "$GCC" = yes; then
10099  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10100fi
10101
10102if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10103  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10104fi
10105if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10106  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10107fi
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10196$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10197hardcode_action=
10198if test -n "$hardcode_libdir_flag_spec" ||
10199   test -n "$runpath_var" ||
10200   test "X$hardcode_automatic" = "Xyes" ; then
10201
10202  # We can hardcode non-existent directories.
10203  if test "$hardcode_direct" != no &&
10204     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10205     # have to relink, otherwise we might link with an installed library
10206     # when we should be linking with a yet-to-be-installed one
10207     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10208     test "$hardcode_minus_L" != no; then
10209    # Linking always hardcodes the temporary library directory.
10210    hardcode_action=relink
10211  else
10212    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10213    hardcode_action=immediate
10214  fi
10215else
10216  # We cannot hardcode anything, or else we can only hardcode existing
10217  # directories.
10218  hardcode_action=unsupported
10219fi
10220{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10221$as_echo "$hardcode_action" >&6; }
10222
10223if test "$hardcode_action" = relink ||
10224   test "$inherit_rpath" = yes; then
10225  # Fast installation is not supported
10226  enable_fast_install=no
10227elif test "$shlibpath_overrides_runpath" = yes ||
10228     test "$enable_shared" = no; then
10229  # Fast installation is not necessary
10230  enable_fast_install=needless
10231fi
10232
10233
10234
10235
10236
10237
10238  if test "x$enable_dlopen" != xyes; then
10239  enable_dlopen=unknown
10240  enable_dlopen_self=unknown
10241  enable_dlopen_self_static=unknown
10242else
10243  lt_cv_dlopen=no
10244  lt_cv_dlopen_libs=
10245
10246  case $host_os in
10247  beos*)
10248    lt_cv_dlopen="load_add_on"
10249    lt_cv_dlopen_libs=
10250    lt_cv_dlopen_self=yes
10251    ;;
10252
10253  mingw* | pw32* | cegcc*)
10254    lt_cv_dlopen="LoadLibrary"
10255    lt_cv_dlopen_libs=
10256    ;;
10257
10258  cygwin*)
10259    lt_cv_dlopen="dlopen"
10260    lt_cv_dlopen_libs=
10261    ;;
10262
10263  darwin*)
10264  # if libdl is installed we need to link against it
10265    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10266$as_echo_n "checking for dlopen in -ldl... " >&6; }
10267if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10268  $as_echo_n "(cached) " >&6
10269else
10270  ac_check_lib_save_LIBS=$LIBS
10271LIBS="-ldl  $LIBS"
10272cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h.  */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h.  */
10278
10279/* Override any GCC internal prototype to avoid an error.
10280   Use char because int might match the return type of a GCC
10281   builtin and then its argument prototype would still apply.  */
10282#ifdef __cplusplus
10283extern "C"
10284#endif
10285char dlopen ();
10286int
10287main ()
10288{
10289return dlopen ();
10290  ;
10291  return 0;
10292}
10293_ACEOF
10294rm -f conftest.$ac_objext conftest$ac_exeext
10295if { (ac_try="$ac_link"
10296case "(($ac_try" in
10297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298  *) ac_try_echo=$ac_try;;
10299esac
10300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301$as_echo "$ac_try_echo") >&5
10302  (eval "$ac_link") 2>conftest.er1
10303  ac_status=$?
10304  grep -v '^ *+' conftest.er1 >conftest.err
10305  rm -f conftest.er1
10306  cat conftest.err >&5
10307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); } && {
10309	 test -z "$ac_c_werror_flag" ||
10310	 test ! -s conftest.err
10311       } && test -s conftest$ac_exeext && {
10312	 test "$cross_compiling" = yes ||
10313	 $as_test_x conftest$ac_exeext
10314       }; then
10315  ac_cv_lib_dl_dlopen=yes
10316else
10317  $as_echo "$as_me: failed program was:" >&5
10318sed 's/^/| /' conftest.$ac_ext >&5
10319
10320	ac_cv_lib_dl_dlopen=no
10321fi
10322
10323rm -rf conftest.dSYM
10324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10325      conftest$ac_exeext conftest.$ac_ext
10326LIBS=$ac_check_lib_save_LIBS
10327fi
10328{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10329$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10330if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10331  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10332else
10333
10334    lt_cv_dlopen="dyld"
10335    lt_cv_dlopen_libs=
10336    lt_cv_dlopen_self=yes
10337
10338fi
10339
10340    ;;
10341
10342  *)
10343    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10344$as_echo_n "checking for shl_load... " >&6; }
10345if test "${ac_cv_func_shl_load+set}" = set; then
10346  $as_echo_n "(cached) " >&6
10347else
10348  cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h.  */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h.  */
10354/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10356#define shl_load innocuous_shl_load
10357
10358/* System header to define __stub macros and hopefully few prototypes,
10359    which can conflict with char shl_load (); below.
10360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10361    <limits.h> exists even on freestanding compilers.  */
10362
10363#ifdef __STDC__
10364# include <limits.h>
10365#else
10366# include <assert.h>
10367#endif
10368
10369#undef shl_load
10370
10371/* Override any GCC internal prototype to avoid an error.
10372   Use char because int might match the return type of a GCC
10373   builtin and then its argument prototype would still apply.  */
10374#ifdef __cplusplus
10375extern "C"
10376#endif
10377char shl_load ();
10378/* The GNU C library defines this for functions which it implements
10379    to always fail with ENOSYS.  Some functions are actually named
10380    something starting with __ and the normal name is an alias.  */
10381#if defined __stub_shl_load || defined __stub___shl_load
10382choke me
10383#endif
10384
10385int
10386main ()
10387{
10388return shl_load ();
10389  ;
10390  return 0;
10391}
10392_ACEOF
10393rm -f conftest.$ac_objext conftest$ac_exeext
10394if { (ac_try="$ac_link"
10395case "(($ac_try" in
10396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397  *) ac_try_echo=$ac_try;;
10398esac
10399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10400$as_echo "$ac_try_echo") >&5
10401  (eval "$ac_link") 2>conftest.er1
10402  ac_status=$?
10403  grep -v '^ *+' conftest.er1 >conftest.err
10404  rm -f conftest.er1
10405  cat conftest.err >&5
10406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); } && {
10408	 test -z "$ac_c_werror_flag" ||
10409	 test ! -s conftest.err
10410       } && test -s conftest$ac_exeext && {
10411	 test "$cross_compiling" = yes ||
10412	 $as_test_x conftest$ac_exeext
10413       }; then
10414  ac_cv_func_shl_load=yes
10415else
10416  $as_echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
10419	ac_cv_func_shl_load=no
10420fi
10421
10422rm -rf conftest.dSYM
10423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10424      conftest$ac_exeext conftest.$ac_ext
10425fi
10426{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10427$as_echo "$ac_cv_func_shl_load" >&6; }
10428if test "x$ac_cv_func_shl_load" = x""yes; then
10429  lt_cv_dlopen="shl_load"
10430else
10431  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10432$as_echo_n "checking for shl_load in -ldld... " >&6; }
10433if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10434  $as_echo_n "(cached) " >&6
10435else
10436  ac_check_lib_save_LIBS=$LIBS
10437LIBS="-ldld  $LIBS"
10438cat >conftest.$ac_ext <<_ACEOF
10439/* confdefs.h.  */
10440_ACEOF
10441cat confdefs.h >>conftest.$ac_ext
10442cat >>conftest.$ac_ext <<_ACEOF
10443/* end confdefs.h.  */
10444
10445/* Override any GCC internal prototype to avoid an error.
10446   Use char because int might match the return type of a GCC
10447   builtin and then its argument prototype would still apply.  */
10448#ifdef __cplusplus
10449extern "C"
10450#endif
10451char shl_load ();
10452int
10453main ()
10454{
10455return shl_load ();
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460rm -f conftest.$ac_objext conftest$ac_exeext
10461if { (ac_try="$ac_link"
10462case "(($ac_try" in
10463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464  *) ac_try_echo=$ac_try;;
10465esac
10466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10467$as_echo "$ac_try_echo") >&5
10468  (eval "$ac_link") 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } && {
10475	 test -z "$ac_c_werror_flag" ||
10476	 test ! -s conftest.err
10477       } && test -s conftest$ac_exeext && {
10478	 test "$cross_compiling" = yes ||
10479	 $as_test_x conftest$ac_exeext
10480       }; then
10481  ac_cv_lib_dld_shl_load=yes
10482else
10483  $as_echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486	ac_cv_lib_dld_shl_load=no
10487fi
10488
10489rm -rf conftest.dSYM
10490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10491      conftest$ac_exeext conftest.$ac_ext
10492LIBS=$ac_check_lib_save_LIBS
10493fi
10494{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10495$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10496if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10497  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10498else
10499  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10500$as_echo_n "checking for dlopen... " >&6; }
10501if test "${ac_cv_func_dlopen+set}" = set; then
10502  $as_echo_n "(cached) " >&6
10503else
10504  cat >conftest.$ac_ext <<_ACEOF
10505/* confdefs.h.  */
10506_ACEOF
10507cat confdefs.h >>conftest.$ac_ext
10508cat >>conftest.$ac_ext <<_ACEOF
10509/* end confdefs.h.  */
10510/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10511   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10512#define dlopen innocuous_dlopen
10513
10514/* System header to define __stub macros and hopefully few prototypes,
10515    which can conflict with char dlopen (); below.
10516    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10517    <limits.h> exists even on freestanding compilers.  */
10518
10519#ifdef __STDC__
10520# include <limits.h>
10521#else
10522# include <assert.h>
10523#endif
10524
10525#undef dlopen
10526
10527/* Override any GCC internal prototype to avoid an error.
10528   Use char because int might match the return type of a GCC
10529   builtin and then its argument prototype would still apply.  */
10530#ifdef __cplusplus
10531extern "C"
10532#endif
10533char dlopen ();
10534/* The GNU C library defines this for functions which it implements
10535    to always fail with ENOSYS.  Some functions are actually named
10536    something starting with __ and the normal name is an alias.  */
10537#if defined __stub_dlopen || defined __stub___dlopen
10538choke me
10539#endif
10540
10541int
10542main ()
10543{
10544return dlopen ();
10545  ;
10546  return 0;
10547}
10548_ACEOF
10549rm -f conftest.$ac_objext conftest$ac_exeext
10550if { (ac_try="$ac_link"
10551case "(($ac_try" in
10552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553  *) ac_try_echo=$ac_try;;
10554esac
10555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10556$as_echo "$ac_try_echo") >&5
10557  (eval "$ac_link") 2>conftest.er1
10558  ac_status=$?
10559  grep -v '^ *+' conftest.er1 >conftest.err
10560  rm -f conftest.er1
10561  cat conftest.err >&5
10562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563  (exit $ac_status); } && {
10564	 test -z "$ac_c_werror_flag" ||
10565	 test ! -s conftest.err
10566       } && test -s conftest$ac_exeext && {
10567	 test "$cross_compiling" = yes ||
10568	 $as_test_x conftest$ac_exeext
10569       }; then
10570  ac_cv_func_dlopen=yes
10571else
10572  $as_echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575	ac_cv_func_dlopen=no
10576fi
10577
10578rm -rf conftest.dSYM
10579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580      conftest$ac_exeext conftest.$ac_ext
10581fi
10582{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10583$as_echo "$ac_cv_func_dlopen" >&6; }
10584if test "x$ac_cv_func_dlopen" = x""yes; then
10585  lt_cv_dlopen="dlopen"
10586else
10587  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10588$as_echo_n "checking for dlopen in -ldl... " >&6; }
10589if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10590  $as_echo_n "(cached) " >&6
10591else
10592  ac_check_lib_save_LIBS=$LIBS
10593LIBS="-ldl  $LIBS"
10594cat >conftest.$ac_ext <<_ACEOF
10595/* confdefs.h.  */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h.  */
10600
10601/* Override any GCC internal prototype to avoid an error.
10602   Use char because int might match the return type of a GCC
10603   builtin and then its argument prototype would still apply.  */
10604#ifdef __cplusplus
10605extern "C"
10606#endif
10607char dlopen ();
10608int
10609main ()
10610{
10611return dlopen ();
10612  ;
10613  return 0;
10614}
10615_ACEOF
10616rm -f conftest.$ac_objext conftest$ac_exeext
10617if { (ac_try="$ac_link"
10618case "(($ac_try" in
10619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620  *) ac_try_echo=$ac_try;;
10621esac
10622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10623$as_echo "$ac_try_echo") >&5
10624  (eval "$ac_link") 2>conftest.er1
10625  ac_status=$?
10626  grep -v '^ *+' conftest.er1 >conftest.err
10627  rm -f conftest.er1
10628  cat conftest.err >&5
10629  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630  (exit $ac_status); } && {
10631	 test -z "$ac_c_werror_flag" ||
10632	 test ! -s conftest.err
10633       } && test -s conftest$ac_exeext && {
10634	 test "$cross_compiling" = yes ||
10635	 $as_test_x conftest$ac_exeext
10636       }; then
10637  ac_cv_lib_dl_dlopen=yes
10638else
10639  $as_echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642	ac_cv_lib_dl_dlopen=no
10643fi
10644
10645rm -rf conftest.dSYM
10646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10647      conftest$ac_exeext conftest.$ac_ext
10648LIBS=$ac_check_lib_save_LIBS
10649fi
10650{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10651$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10652if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10653  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10654else
10655  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10656$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10657if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10658  $as_echo_n "(cached) " >&6
10659else
10660  ac_check_lib_save_LIBS=$LIBS
10661LIBS="-lsvld  $LIBS"
10662cat >conftest.$ac_ext <<_ACEOF
10663/* confdefs.h.  */
10664_ACEOF
10665cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h.  */
10668
10669/* Override any GCC internal prototype to avoid an error.
10670   Use char because int might match the return type of a GCC
10671   builtin and then its argument prototype would still apply.  */
10672#ifdef __cplusplus
10673extern "C"
10674#endif
10675char dlopen ();
10676int
10677main ()
10678{
10679return dlopen ();
10680  ;
10681  return 0;
10682}
10683_ACEOF
10684rm -f conftest.$ac_objext conftest$ac_exeext
10685if { (ac_try="$ac_link"
10686case "(($ac_try" in
10687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688  *) ac_try_echo=$ac_try;;
10689esac
10690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10691$as_echo "$ac_try_echo") >&5
10692  (eval "$ac_link") 2>conftest.er1
10693  ac_status=$?
10694  grep -v '^ *+' conftest.er1 >conftest.err
10695  rm -f conftest.er1
10696  cat conftest.err >&5
10697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } && {
10699	 test -z "$ac_c_werror_flag" ||
10700	 test ! -s conftest.err
10701       } && test -s conftest$ac_exeext && {
10702	 test "$cross_compiling" = yes ||
10703	 $as_test_x conftest$ac_exeext
10704       }; then
10705  ac_cv_lib_svld_dlopen=yes
10706else
10707  $as_echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
10709
10710	ac_cv_lib_svld_dlopen=no
10711fi
10712
10713rm -rf conftest.dSYM
10714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715      conftest$ac_exeext conftest.$ac_ext
10716LIBS=$ac_check_lib_save_LIBS
10717fi
10718{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10719$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10720if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10721  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10722else
10723  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10724$as_echo_n "checking for dld_link in -ldld... " >&6; }
10725if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10726  $as_echo_n "(cached) " >&6
10727else
10728  ac_check_lib_save_LIBS=$LIBS
10729LIBS="-ldld  $LIBS"
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h.  */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h.  */
10736
10737/* Override any GCC internal prototype to avoid an error.
10738   Use char because int might match the return type of a GCC
10739   builtin and then its argument prototype would still apply.  */
10740#ifdef __cplusplus
10741extern "C"
10742#endif
10743char dld_link ();
10744int
10745main ()
10746{
10747return dld_link ();
10748  ;
10749  return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext conftest$ac_exeext
10753if { (ac_try="$ac_link"
10754case "(($ac_try" in
10755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756  *) ac_try_echo=$ac_try;;
10757esac
10758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759$as_echo "$ac_try_echo") >&5
10760  (eval "$ac_link") 2>conftest.er1
10761  ac_status=$?
10762  grep -v '^ *+' conftest.er1 >conftest.err
10763  rm -f conftest.er1
10764  cat conftest.err >&5
10765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766  (exit $ac_status); } && {
10767	 test -z "$ac_c_werror_flag" ||
10768	 test ! -s conftest.err
10769       } && test -s conftest$ac_exeext && {
10770	 test "$cross_compiling" = yes ||
10771	 $as_test_x conftest$ac_exeext
10772       }; then
10773  ac_cv_lib_dld_dld_link=yes
10774else
10775  $as_echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778	ac_cv_lib_dld_dld_link=no
10779fi
10780
10781rm -rf conftest.dSYM
10782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783      conftest$ac_exeext conftest.$ac_ext
10784LIBS=$ac_check_lib_save_LIBS
10785fi
10786{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10787$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10788if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10789  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10790fi
10791
10792
10793fi
10794
10795
10796fi
10797
10798
10799fi
10800
10801
10802fi
10803
10804
10805fi
10806
10807    ;;
10808  esac
10809
10810  if test "x$lt_cv_dlopen" != xno; then
10811    enable_dlopen=yes
10812  else
10813    enable_dlopen=no
10814  fi
10815
10816  case $lt_cv_dlopen in
10817  dlopen)
10818    save_CPPFLAGS="$CPPFLAGS"
10819    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10820
10821    save_LDFLAGS="$LDFLAGS"
10822    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10823
10824    save_LIBS="$LIBS"
10825    LIBS="$lt_cv_dlopen_libs $LIBS"
10826
10827    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10828$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10829if test "${lt_cv_dlopen_self+set}" = set; then
10830  $as_echo_n "(cached) " >&6
10831else
10832  	  if test "$cross_compiling" = yes; then :
10833  lt_cv_dlopen_self=cross
10834else
10835  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10836  lt_status=$lt_dlunknown
10837  cat > conftest.$ac_ext <<_LT_EOF
10838#line 10838 "configure"
10839#include "confdefs.h"
10840
10841#if HAVE_DLFCN_H
10842#include <dlfcn.h>
10843#endif
10844
10845#include <stdio.h>
10846
10847#ifdef RTLD_GLOBAL
10848#  define LT_DLGLOBAL		RTLD_GLOBAL
10849#else
10850#  ifdef DL_GLOBAL
10851#    define LT_DLGLOBAL		DL_GLOBAL
10852#  else
10853#    define LT_DLGLOBAL		0
10854#  endif
10855#endif
10856
10857/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10858   find out it does not work in some platform. */
10859#ifndef LT_DLLAZY_OR_NOW
10860#  ifdef RTLD_LAZY
10861#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10862#  else
10863#    ifdef DL_LAZY
10864#      define LT_DLLAZY_OR_NOW		DL_LAZY
10865#    else
10866#      ifdef RTLD_NOW
10867#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10868#      else
10869#        ifdef DL_NOW
10870#          define LT_DLLAZY_OR_NOW	DL_NOW
10871#        else
10872#          define LT_DLLAZY_OR_NOW	0
10873#        endif
10874#      endif
10875#    endif
10876#  endif
10877#endif
10878
10879void fnord() { int i=42;}
10880int main ()
10881{
10882  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10883  int status = $lt_dlunknown;
10884
10885  if (self)
10886    {
10887      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10888      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10889      /* dlclose (self); */
10890    }
10891  else
10892    puts (dlerror ());
10893
10894  return status;
10895}
10896_LT_EOF
10897  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898  (eval $ac_link) 2>&5
10899  ac_status=$?
10900  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10902    (./conftest; exit; ) >&5 2>/dev/null
10903    lt_status=$?
10904    case x$lt_status in
10905      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10906      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10907      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10908    esac
10909  else :
10910    # compilation failed
10911    lt_cv_dlopen_self=no
10912  fi
10913fi
10914rm -fr conftest*
10915
10916
10917fi
10918{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10919$as_echo "$lt_cv_dlopen_self" >&6; }
10920
10921    if test "x$lt_cv_dlopen_self" = xyes; then
10922      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10923      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10924$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10925if test "${lt_cv_dlopen_self_static+set}" = set; then
10926  $as_echo_n "(cached) " >&6
10927else
10928  	  if test "$cross_compiling" = yes; then :
10929  lt_cv_dlopen_self_static=cross
10930else
10931  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10932  lt_status=$lt_dlunknown
10933  cat > conftest.$ac_ext <<_LT_EOF
10934#line 10934 "configure"
10935#include "confdefs.h"
10936
10937#if HAVE_DLFCN_H
10938#include <dlfcn.h>
10939#endif
10940
10941#include <stdio.h>
10942
10943#ifdef RTLD_GLOBAL
10944#  define LT_DLGLOBAL		RTLD_GLOBAL
10945#else
10946#  ifdef DL_GLOBAL
10947#    define LT_DLGLOBAL		DL_GLOBAL
10948#  else
10949#    define LT_DLGLOBAL		0
10950#  endif
10951#endif
10952
10953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10954   find out it does not work in some platform. */
10955#ifndef LT_DLLAZY_OR_NOW
10956#  ifdef RTLD_LAZY
10957#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10958#  else
10959#    ifdef DL_LAZY
10960#      define LT_DLLAZY_OR_NOW		DL_LAZY
10961#    else
10962#      ifdef RTLD_NOW
10963#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10964#      else
10965#        ifdef DL_NOW
10966#          define LT_DLLAZY_OR_NOW	DL_NOW
10967#        else
10968#          define LT_DLLAZY_OR_NOW	0
10969#        endif
10970#      endif
10971#    endif
10972#  endif
10973#endif
10974
10975void fnord() { int i=42;}
10976int main ()
10977{
10978  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10979  int status = $lt_dlunknown;
10980
10981  if (self)
10982    {
10983      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10984      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10985      /* dlclose (self); */
10986    }
10987  else
10988    puts (dlerror ());
10989
10990  return status;
10991}
10992_LT_EOF
10993  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994  (eval $ac_link) 2>&5
10995  ac_status=$?
10996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10998    (./conftest; exit; ) >&5 2>/dev/null
10999    lt_status=$?
11000    case x$lt_status in
11001      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11002      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11003      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11004    esac
11005  else :
11006    # compilation failed
11007    lt_cv_dlopen_self_static=no
11008  fi
11009fi
11010rm -fr conftest*
11011
11012
11013fi
11014{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11015$as_echo "$lt_cv_dlopen_self_static" >&6; }
11016    fi
11017
11018    CPPFLAGS="$save_CPPFLAGS"
11019    LDFLAGS="$save_LDFLAGS"
11020    LIBS="$save_LIBS"
11021    ;;
11022  esac
11023
11024  case $lt_cv_dlopen_self in
11025  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11026  *) enable_dlopen_self=unknown ;;
11027  esac
11028
11029  case $lt_cv_dlopen_self_static in
11030  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11031  *) enable_dlopen_self_static=unknown ;;
11032  esac
11033fi
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051striplib=
11052old_striplib=
11053{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11054$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11055if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11056  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11057  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11058  { $as_echo "$as_me:$LINENO: result: yes" >&5
11059$as_echo "yes" >&6; }
11060else
11061# FIXME - insert some real tests, host_os isn't really good enough
11062  case $host_os in
11063  darwin*)
11064    if test -n "$STRIP" ; then
11065      striplib="$STRIP -x"
11066      old_striplib="$STRIP -S"
11067      { $as_echo "$as_me:$LINENO: result: yes" >&5
11068$as_echo "yes" >&6; }
11069    else
11070      { $as_echo "$as_me:$LINENO: result: no" >&5
11071$as_echo "no" >&6; }
11072    fi
11073    ;;
11074  *)
11075    { $as_echo "$as_me:$LINENO: result: no" >&5
11076$as_echo "no" >&6; }
11077    ;;
11078  esac
11079fi
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092  # Report which library types will actually be built
11093  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11094$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11095  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11096$as_echo "$can_build_shared" >&6; }
11097
11098  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11099$as_echo_n "checking whether to build shared libraries... " >&6; }
11100  test "$can_build_shared" = "no" && enable_shared=no
11101
11102  # On AIX, shared libraries and static libraries use the same namespace, and
11103  # are all built from PIC.
11104  case $host_os in
11105  aix3*)
11106    test "$enable_shared" = yes && enable_static=no
11107    if test -n "$RANLIB"; then
11108      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11109      postinstall_cmds='$RANLIB $lib'
11110    fi
11111    ;;
11112
11113  aix[4-9]*)
11114    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11115      test "$enable_shared" = yes && enable_static=no
11116    fi
11117    ;;
11118  esac
11119  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11120$as_echo "$enable_shared" >&6; }
11121
11122  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11123$as_echo_n "checking whether to build static libraries... " >&6; }
11124  # Make sure either enable_shared or enable_static is yes.
11125  test "$enable_shared" = yes || enable_static=yes
11126  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11127$as_echo "$enable_static" >&6; }
11128
11129
11130
11131
11132fi
11133ac_ext=c
11134ac_cpp='$CPP $CPPFLAGS'
11135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137ac_compiler_gnu=$ac_cv_c_compiler_gnu
11138
11139CC="$lt_save_CC"
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153        ac_config_commands="$ac_config_commands libtool"
11154
11155
11156
11157
11158# Only expand once:
11159
11160
11161
11162
11163# Sets a conditional makefile variable so that certain Makefile tasks will be
11164# performed only on linux (currently, add -luuid to LD_FLAGS)
11165 if case $host_os in linux*) true;; *) false;; esac; then
11166  LINUX_TRUE=
11167  LINUX_FALSE='#'
11168else
11169  LINUX_TRUE='#'
11170  LINUX_FALSE=
11171fi
11172
11173
11174# Checks for header files.
11175{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11176$as_echo_n "checking for ANSI C header files... " >&6; }
11177if test "${ac_cv_header_stdc+set}" = set; then
11178  $as_echo_n "(cached) " >&6
11179else
11180  cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h.  */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h.  */
11186#include <stdlib.h>
11187#include <stdarg.h>
11188#include <string.h>
11189#include <float.h>
11190
11191int
11192main ()
11193{
11194
11195  ;
11196  return 0;
11197}
11198_ACEOF
11199rm -f conftest.$ac_objext
11200if { (ac_try="$ac_compile"
11201case "(($ac_try" in
11202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203  *) ac_try_echo=$ac_try;;
11204esac
11205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11206$as_echo "$ac_try_echo") >&5
11207  (eval "$ac_compile") 2>conftest.er1
11208  ac_status=$?
11209  grep -v '^ *+' conftest.er1 >conftest.err
11210  rm -f conftest.er1
11211  cat conftest.err >&5
11212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213  (exit $ac_status); } && {
11214	 test -z "$ac_c_werror_flag" ||
11215	 test ! -s conftest.err
11216       } && test -s conftest.$ac_objext; then
11217  ac_cv_header_stdc=yes
11218else
11219  $as_echo "$as_me: failed program was:" >&5
11220sed 's/^/| /' conftest.$ac_ext >&5
11221
11222	ac_cv_header_stdc=no
11223fi
11224
11225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226
11227if test $ac_cv_header_stdc = yes; then
11228  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11229  cat >conftest.$ac_ext <<_ACEOF
11230/* confdefs.h.  */
11231_ACEOF
11232cat confdefs.h >>conftest.$ac_ext
11233cat >>conftest.$ac_ext <<_ACEOF
11234/* end confdefs.h.  */
11235#include <string.h>
11236
11237_ACEOF
11238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11239  $EGREP "memchr" >/dev/null 2>&1; then
11240  :
11241else
11242  ac_cv_header_stdc=no
11243fi
11244rm -f conftest*
11245
11246fi
11247
11248if test $ac_cv_header_stdc = yes; then
11249  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11250  cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h.  */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h.  */
11256#include <stdlib.h>
11257
11258_ACEOF
11259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11260  $EGREP "free" >/dev/null 2>&1; then
11261  :
11262else
11263  ac_cv_header_stdc=no
11264fi
11265rm -f conftest*
11266
11267fi
11268
11269if test $ac_cv_header_stdc = yes; then
11270  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11271  if test "$cross_compiling" = yes; then
11272  :
11273else
11274  cat >conftest.$ac_ext <<_ACEOF
11275/* confdefs.h.  */
11276_ACEOF
11277cat confdefs.h >>conftest.$ac_ext
11278cat >>conftest.$ac_ext <<_ACEOF
11279/* end confdefs.h.  */
11280#include <ctype.h>
11281#include <stdlib.h>
11282#if ((' ' & 0x0FF) == 0x020)
11283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11285#else
11286# define ISLOWER(c) \
11287		   (('a' <= (c) && (c) <= 'i') \
11288		     || ('j' <= (c) && (c) <= 'r') \
11289		     || ('s' <= (c) && (c) <= 'z'))
11290# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11291#endif
11292
11293#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11294int
11295main ()
11296{
11297  int i;
11298  for (i = 0; i < 256; i++)
11299    if (XOR (islower (i), ISLOWER (i))
11300	|| toupper (i) != TOUPPER (i))
11301      return 2;
11302  return 0;
11303}
11304_ACEOF
11305rm -f conftest$ac_exeext
11306if { (ac_try="$ac_link"
11307case "(($ac_try" in
11308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309  *) ac_try_echo=$ac_try;;
11310esac
11311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11312$as_echo "$ac_try_echo") >&5
11313  (eval "$ac_link") 2>&5
11314  ac_status=$?
11315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11317  { (case "(($ac_try" in
11318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319  *) ac_try_echo=$ac_try;;
11320esac
11321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11322$as_echo "$ac_try_echo") >&5
11323  (eval "$ac_try") 2>&5
11324  ac_status=$?
11325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326  (exit $ac_status); }; }; then
11327  :
11328else
11329  $as_echo "$as_me: program exited with status $ac_status" >&5
11330$as_echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333( exit $ac_status )
11334ac_cv_header_stdc=no
11335fi
11336rm -rf conftest.dSYM
11337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11338fi
11339
11340
11341fi
11342fi
11343{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11344$as_echo "$ac_cv_header_stdc" >&6; }
11345if test $ac_cv_header_stdc = yes; then
11346
11347cat >>confdefs.h <<\_ACEOF
11348#define STDC_HEADERS 1
11349_ACEOF
11350
11351fi
11352
11353
11354# Check for systems which need -lsocket and -lnsl
11355#AX_LIB_SOCKET_NSL
11356
11357# Solaris puts nanosleep in -lrt
11358{ $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
11359$as_echo_n "checking for library containing nanosleep... " >&6; }
11360if test "${ac_cv_search_nanosleep+set}" = set; then
11361  $as_echo_n "(cached) " >&6
11362else
11363  ac_func_search_save_LIBS=$LIBS
11364cat >conftest.$ac_ext <<_ACEOF
11365/* confdefs.h.  */
11366_ACEOF
11367cat confdefs.h >>conftest.$ac_ext
11368cat >>conftest.$ac_ext <<_ACEOF
11369/* end confdefs.h.  */
11370
11371/* Override any GCC internal prototype to avoid an error.
11372   Use char because int might match the return type of a GCC
11373   builtin and then its argument prototype would still apply.  */
11374#ifdef __cplusplus
11375extern "C"
11376#endif
11377char nanosleep ();
11378int
11379main ()
11380{
11381return nanosleep ();
11382  ;
11383  return 0;
11384}
11385_ACEOF
11386for ac_lib in '' rt; do
11387  if test -z "$ac_lib"; then
11388    ac_res="none required"
11389  else
11390    ac_res=-l$ac_lib
11391    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11392  fi
11393  rm -f conftest.$ac_objext conftest$ac_exeext
11394if { (ac_try="$ac_link"
11395case "(($ac_try" in
11396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397  *) ac_try_echo=$ac_try;;
11398esac
11399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11400$as_echo "$ac_try_echo") >&5
11401  (eval "$ac_link") 2>conftest.er1
11402  ac_status=$?
11403  grep -v '^ *+' conftest.er1 >conftest.err
11404  rm -f conftest.er1
11405  cat conftest.err >&5
11406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407  (exit $ac_status); } && {
11408	 test -z "$ac_c_werror_flag" ||
11409	 test ! -s conftest.err
11410       } && test -s conftest$ac_exeext && {
11411	 test "$cross_compiling" = yes ||
11412	 $as_test_x conftest$ac_exeext
11413       }; then
11414  ac_cv_search_nanosleep=$ac_res
11415else
11416  $as_echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419
11420fi
11421
11422rm -rf conftest.dSYM
11423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11424      conftest$ac_exeext
11425  if test "${ac_cv_search_nanosleep+set}" = set; then
11426  break
11427fi
11428done
11429if test "${ac_cv_search_nanosleep+set}" = set; then
11430  :
11431else
11432  ac_cv_search_nanosleep=no
11433fi
11434rm conftest.$ac_ext
11435LIBS=$ac_func_search_save_LIBS
11436fi
11437{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
11438$as_echo "$ac_cv_search_nanosleep" >&6; }
11439ac_res=$ac_cv_search_nanosleep
11440if test "$ac_res" != no; then
11441  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11442
11443else
11444
11445echo "nanosleep() required for timing operations."
11446exit 1
11447
11448fi
11449
11450
11451# Solaris puts hstrerror in -lresolv
11452{ $as_echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
11453$as_echo_n "checking for library containing hstrerror... " >&6; }
11454if test "${ac_cv_search_hstrerror+set}" = set; then
11455  $as_echo_n "(cached) " >&6
11456else
11457  ac_func_search_save_LIBS=$LIBS
11458cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h.  */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h.  */
11464
11465/* Override any GCC internal prototype to avoid an error.
11466   Use char because int might match the return type of a GCC
11467   builtin and then its argument prototype would still apply.  */
11468#ifdef __cplusplus
11469extern "C"
11470#endif
11471char hstrerror ();
11472int
11473main ()
11474{
11475return hstrerror ();
11476  ;
11477  return 0;
11478}
11479_ACEOF
11480for ac_lib in '' resolv; do
11481  if test -z "$ac_lib"; then
11482    ac_res="none required"
11483  else
11484    ac_res=-l$ac_lib
11485    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11486  fi
11487  rm -f conftest.$ac_objext conftest$ac_exeext
11488if { (ac_try="$ac_link"
11489case "(($ac_try" in
11490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491  *) ac_try_echo=$ac_try;;
11492esac
11493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11494$as_echo "$ac_try_echo") >&5
11495  (eval "$ac_link") 2>conftest.er1
11496  ac_status=$?
11497  grep -v '^ *+' conftest.er1 >conftest.err
11498  rm -f conftest.er1
11499  cat conftest.err >&5
11500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501  (exit $ac_status); } && {
11502	 test -z "$ac_c_werror_flag" ||
11503	 test ! -s conftest.err
11504       } && test -s conftest$ac_exeext && {
11505	 test "$cross_compiling" = yes ||
11506	 $as_test_x conftest$ac_exeext
11507       }; then
11508  ac_cv_search_hstrerror=$ac_res
11509else
11510  $as_echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513
11514fi
11515
11516rm -rf conftest.dSYM
11517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11518      conftest$ac_exeext
11519  if test "${ac_cv_search_hstrerror+set}" = set; then
11520  break
11521fi
11522done
11523if test "${ac_cv_search_hstrerror+set}" = set; then
11524  :
11525else
11526  ac_cv_search_hstrerror=no
11527fi
11528rm conftest.$ac_ext
11529LIBS=$ac_func_search_save_LIBS
11530fi
11531{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
11532$as_echo "$ac_cv_search_hstrerror" >&6; }
11533ac_res=$ac_cv_search_hstrerror
11534if test "$ac_res" != no; then
11535  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11536
11537else
11538
11539echo "nanosleep() required for timing operations."
11540exit 1
11541
11542fi
11543
11544
11545# Checks for typedefs, structures, and compiler characteristics.
11546{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11547$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11548if test "${ac_cv_c_const+set}" = set; then
11549  $as_echo_n "(cached) " >&6
11550else
11551  cat >conftest.$ac_ext <<_ACEOF
11552/* confdefs.h.  */
11553_ACEOF
11554cat confdefs.h >>conftest.$ac_ext
11555cat >>conftest.$ac_ext <<_ACEOF
11556/* end confdefs.h.  */
11557
11558int
11559main ()
11560{
11561/* FIXME: Include the comments suggested by Paul. */
11562#ifndef __cplusplus
11563  /* Ultrix mips cc rejects this.  */
11564  typedef int charset[2];
11565  const charset cs;
11566  /* SunOS 4.1.1 cc rejects this.  */
11567  char const *const *pcpcc;
11568  char **ppc;
11569  /* NEC SVR4.0.2 mips cc rejects this.  */
11570  struct point {int x, y;};
11571  static struct point const zero = {0,0};
11572  /* AIX XL C 1.02.0.0 rejects this.
11573     It does not let you subtract one const X* pointer from another in
11574     an arm of an if-expression whose if-part is not a constant
11575     expression */
11576  const char *g = "string";
11577  pcpcc = &g + (g ? g-g : 0);
11578  /* HPUX 7.0 cc rejects these. */
11579  ++pcpcc;
11580  ppc = (char**) pcpcc;
11581  pcpcc = (char const *const *) ppc;
11582  { /* SCO 3.2v4 cc rejects this.  */
11583    char *t;
11584    char const *s = 0 ? (char *) 0 : (char const *) 0;
11585
11586    *t++ = 0;
11587    if (s) return 0;
11588  }
11589  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11590    int x[] = {25, 17};
11591    const int *foo = &x[0];
11592    ++foo;
11593  }
11594  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11595    typedef const int *iptr;
11596    iptr p = 0;
11597    ++p;
11598  }
11599  { /* AIX XL C 1.02.0.0 rejects this saying
11600       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11601    struct s { int j; const int *ap[3]; };
11602    struct s *b; b->j = 5;
11603  }
11604  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11605    const int foo = 10;
11606    if (!foo) return 0;
11607  }
11608  return !cs[0] && !zero.x;
11609#endif
11610
11611  ;
11612  return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext
11616if { (ac_try="$ac_compile"
11617case "(($ac_try" in
11618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619  *) ac_try_echo=$ac_try;;
11620esac
11621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11622$as_echo "$ac_try_echo") >&5
11623  (eval "$ac_compile") 2>conftest.er1
11624  ac_status=$?
11625  grep -v '^ *+' conftest.er1 >conftest.err
11626  rm -f conftest.er1
11627  cat conftest.err >&5
11628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); } && {
11630	 test -z "$ac_c_werror_flag" ||
11631	 test ! -s conftest.err
11632       } && test -s conftest.$ac_objext; then
11633  ac_cv_c_const=yes
11634else
11635  $as_echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638	ac_cv_c_const=no
11639fi
11640
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642fi
11643{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11644$as_echo "$ac_cv_c_const" >&6; }
11645if test $ac_cv_c_const = no; then
11646
11647cat >>confdefs.h <<\_ACEOF
11648#define const /**/
11649_ACEOF
11650
11651fi
11652
11653
11654ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
11655
11656cat >confcache <<\_ACEOF
11657# This file is a shell script that caches the results of configure
11658# tests run on this system so they can be shared between configure
11659# scripts and configure runs, see configure's option --config-cache.
11660# It is not useful on other systems.  If it contains results you don't
11661# want to keep, you may remove or edit it.
11662#
11663# config.status only pays attention to the cache file if you give it
11664# the --recheck option to rerun configure.
11665#
11666# `ac_cv_env_foo' variables (set or unset) will be overridden when
11667# loading this file, other *unset* `ac_cv_foo' will be assigned the
11668# following values.
11669
11670_ACEOF
11671
11672# The following way of writing the cache mishandles newlines in values,
11673# but we know of no workaround that is simple, portable, and efficient.
11674# So, we kill variables containing newlines.
11675# Ultrix sh set writes to stderr and can't be redirected directly,
11676# and sets the high bit in the cache file unless we assign to the vars.
11677(
11678  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11679    eval ac_val=\$$ac_var
11680    case $ac_val in #(
11681    *${as_nl}*)
11682      case $ac_var in #(
11683      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11684$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11685      esac
11686      case $ac_var in #(
11687      _ | IFS | as_nl) ;; #(
11688      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11689      *) $as_unset $ac_var ;;
11690      esac ;;
11691    esac
11692  done
11693
11694  (set) 2>&1 |
11695    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11696    *${as_nl}ac_space=\ *)
11697      # `set' does not quote correctly, so add quotes (double-quote
11698      # substitution turns \\\\ into \\, and sed turns \\ into \).
11699      sed -n \
11700	"s/'/'\\\\''/g;
11701	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11702      ;; #(
11703    *)
11704      # `set' quotes correctly as required by POSIX, so do not add quotes.
11705      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11706      ;;
11707    esac |
11708    sort
11709) |
11710  sed '
11711     /^ac_cv_env_/b end
11712     t clear
11713     :clear
11714     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11715     t end
11716     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11717     :end' >>confcache
11718if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11719  if test -w "$cache_file"; then
11720    test "x$cache_file" != "x/dev/null" &&
11721      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11722$as_echo "$as_me: updating cache $cache_file" >&6;}
11723    cat confcache >$cache_file
11724  else
11725    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11726$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11727  fi
11728fi
11729rm -f confcache
11730
11731test "x$prefix" = xNONE && prefix=$ac_default_prefix
11732# Let make expand exec_prefix.
11733test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11734
11735DEFS=-DHAVE_CONFIG_H
11736
11737ac_libobjs=
11738ac_ltlibobjs=
11739for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11740  # 1. Remove the extension, and $U if already installed.
11741  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11742  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11743  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11744  #    will be set to the directory where LIBOBJS objects are built.
11745  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11746  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11747done
11748LIBOBJS=$ac_libobjs
11749
11750LTLIBOBJS=$ac_ltlibobjs
11751
11752
11753 if test -n "$EXEEXT"; then
11754  am__EXEEXT_TRUE=
11755  am__EXEEXT_FALSE='#'
11756else
11757  am__EXEEXT_TRUE='#'
11758  am__EXEEXT_FALSE=
11759fi
11760
11761if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11762  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11763Usually this means the macro was only invoked conditionally." >&5
11764$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11765Usually this means the macro was only invoked conditionally." >&2;}
11766   { (exit 1); exit 1; }; }
11767fi
11768if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11769  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11770Usually this means the macro was only invoked conditionally." >&5
11771$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11772Usually this means the macro was only invoked conditionally." >&2;}
11773   { (exit 1); exit 1; }; }
11774fi
11775if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
11776  { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
11777Usually this means the macro was only invoked conditionally." >&5
11778$as_echo "$as_me: error: conditional \"LINUX\" was never defined.
11779Usually this means the macro was only invoked conditionally." >&2;}
11780   { (exit 1); exit 1; }; }
11781fi
11782
11783: ${CONFIG_STATUS=./config.status}
11784ac_write_fail=0
11785ac_clean_files_save=$ac_clean_files
11786ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11787{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11788$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11789cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11790#! $SHELL
11791# Generated by $as_me.
11792# Run this file to recreate the current configuration.
11793# Compiler output produced by configure, useful for debugging
11794# configure, is in config.log if it exists.
11795
11796debug=false
11797ac_cs_recheck=false
11798ac_cs_silent=false
11799SHELL=\${CONFIG_SHELL-$SHELL}
11800_ACEOF
11801
11802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11803## --------------------- ##
11804## M4sh Initialization.  ##
11805## --------------------- ##
11806
11807# Be more Bourne compatible
11808DUALCASE=1; export DUALCASE # for MKS sh
11809if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11810  emulate sh
11811  NULLCMD=:
11812  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11813  # is contrary to our usage.  Disable this feature.
11814  alias -g '${1+"$@"}'='"$@"'
11815  setopt NO_GLOB_SUBST
11816else
11817  case `(set -o) 2>/dev/null` in
11818  *posix*) set -o posix ;;
11819esac
11820
11821fi
11822
11823
11824
11825
11826# PATH needs CR
11827# Avoid depending upon Character Ranges.
11828as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11829as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11830as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11831as_cr_digits='0123456789'
11832as_cr_alnum=$as_cr_Letters$as_cr_digits
11833
11834as_nl='
11835'
11836export as_nl
11837# Printing a long string crashes Solaris 7 /usr/bin/printf.
11838as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11839as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11840as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11841if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11842  as_echo='printf %s\n'
11843  as_echo_n='printf %s'
11844else
11845  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11846    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11847    as_echo_n='/usr/ucb/echo -n'
11848  else
11849    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11850    as_echo_n_body='eval
11851      arg=$1;
11852      case $arg in
11853      *"$as_nl"*)
11854	expr "X$arg" : "X\\(.*\\)$as_nl";
11855	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11856      esac;
11857      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11858    '
11859    export as_echo_n_body
11860    as_echo_n='sh -c $as_echo_n_body as_echo'
11861  fi
11862  export as_echo_body
11863  as_echo='sh -c $as_echo_body as_echo'
11864fi
11865
11866# The user is always right.
11867if test "${PATH_SEPARATOR+set}" != set; then
11868  PATH_SEPARATOR=:
11869  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11870    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11871      PATH_SEPARATOR=';'
11872  }
11873fi
11874
11875# Support unset when possible.
11876if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11877  as_unset=unset
11878else
11879  as_unset=false
11880fi
11881
11882
11883# IFS
11884# We need space, tab and new line, in precisely that order.  Quoting is
11885# there to prevent editors from complaining about space-tab.
11886# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11887# splitting by setting IFS to empty value.)
11888IFS=" ""	$as_nl"
11889
11890# Find who we are.  Look in the path if we contain no directory separator.
11891case $0 in
11892  *[\\/]* ) as_myself=$0 ;;
11893  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896  IFS=$as_save_IFS
11897  test -z "$as_dir" && as_dir=.
11898  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11899done
11900IFS=$as_save_IFS
11901
11902     ;;
11903esac
11904# We did not find ourselves, most probably we were run as `sh COMMAND'
11905# in which case we are not to be found in the path.
11906if test "x$as_myself" = x; then
11907  as_myself=$0
11908fi
11909if test ! -f "$as_myself"; then
11910  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11911  { (exit 1); exit 1; }
11912fi
11913
11914# Work around bugs in pre-3.0 UWIN ksh.
11915for as_var in ENV MAIL MAILPATH
11916do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11917done
11918PS1='$ '
11919PS2='> '
11920PS4='+ '
11921
11922# NLS nuisances.
11923LC_ALL=C
11924export LC_ALL
11925LANGUAGE=C
11926export LANGUAGE
11927
11928# Required to use basename.
11929if expr a : '\(a\)' >/dev/null 2>&1 &&
11930   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11931  as_expr=expr
11932else
11933  as_expr=false
11934fi
11935
11936if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11937  as_basename=basename
11938else
11939  as_basename=false
11940fi
11941
11942
11943# Name of the executable.
11944as_me=`$as_basename -- "$0" ||
11945$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11946	 X"$0" : 'X\(//\)$' \| \
11947	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11948$as_echo X/"$0" |
11949    sed '/^.*\/\([^/][^/]*\)\/*$/{
11950	    s//\1/
11951	    q
11952	  }
11953	  /^X\/\(\/\/\)$/{
11954	    s//\1/
11955	    q
11956	  }
11957	  /^X\/\(\/\).*/{
11958	    s//\1/
11959	    q
11960	  }
11961	  s/.*/./; q'`
11962
11963# CDPATH.
11964$as_unset CDPATH
11965
11966
11967
11968  as_lineno_1=$LINENO
11969  as_lineno_2=$LINENO
11970  test "x$as_lineno_1" != "x$as_lineno_2" &&
11971  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11972
11973  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11974  # uniformly replaced by the line number.  The first 'sed' inserts a
11975  # line-number line after each line using $LINENO; the second 'sed'
11976  # does the real work.  The second script uses 'N' to pair each
11977  # line-number line with the line containing $LINENO, and appends
11978  # trailing '-' during substitution so that $LINENO is not a special
11979  # case at line end.
11980  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11981  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11982  # E. McMahon (1931-1989) for sed's syntax.  :-)
11983  sed -n '
11984    p
11985    /[$]LINENO/=
11986  ' <$as_myself |
11987    sed '
11988      s/[$]LINENO.*/&-/
11989      t lineno
11990      b
11991      :lineno
11992      N
11993      :loop
11994      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11995      t loop
11996      s/-\n.*//
11997    ' >$as_me.lineno &&
11998  chmod +x "$as_me.lineno" ||
11999    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12000   { (exit 1); exit 1; }; }
12001
12002  # Don't try to exec as it changes $[0], causing all sort of problems
12003  # (the dirname of $[0] is not the place where we might find the
12004  # original and so on.  Autoconf is especially sensitive to this).
12005  . "./$as_me.lineno"
12006  # Exit status is that of the last command.
12007  exit
12008}
12009
12010
12011if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12012  as_dirname=dirname
12013else
12014  as_dirname=false
12015fi
12016
12017ECHO_C= ECHO_N= ECHO_T=
12018case `echo -n x` in
12019-n*)
12020  case `echo 'x\c'` in
12021  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12022  *)   ECHO_C='\c';;
12023  esac;;
12024*)
12025  ECHO_N='-n';;
12026esac
12027if expr a : '\(a\)' >/dev/null 2>&1 &&
12028   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12029  as_expr=expr
12030else
12031  as_expr=false
12032fi
12033
12034rm -f conf$$ conf$$.exe conf$$.file
12035if test -d conf$$.dir; then
12036  rm -f conf$$.dir/conf$$.file
12037else
12038  rm -f conf$$.dir
12039  mkdir conf$$.dir 2>/dev/null
12040fi
12041if (echo >conf$$.file) 2>/dev/null; then
12042  if ln -s conf$$.file conf$$ 2>/dev/null; then
12043    as_ln_s='ln -s'
12044    # ... but there are two gotchas:
12045    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12046    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12047    # In both cases, we have to default to `cp -p'.
12048    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12049      as_ln_s='cp -p'
12050  elif ln conf$$.file conf$$ 2>/dev/null; then
12051    as_ln_s=ln
12052  else
12053    as_ln_s='cp -p'
12054  fi
12055else
12056  as_ln_s='cp -p'
12057fi
12058rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12059rmdir conf$$.dir 2>/dev/null
12060
12061if mkdir -p . 2>/dev/null; then
12062  as_mkdir_p=:
12063else
12064  test -d ./-p && rmdir ./-p
12065  as_mkdir_p=false
12066fi
12067
12068if test -x / >/dev/null 2>&1; then
12069  as_test_x='test -x'
12070else
12071  if ls -dL / >/dev/null 2>&1; then
12072    as_ls_L_option=L
12073  else
12074    as_ls_L_option=
12075  fi
12076  as_test_x='
12077    eval sh -c '\''
12078      if test -d "$1"; then
12079	test -d "$1/.";
12080      else
12081	case $1 in
12082	-*)set "./$1";;
12083	esac;
12084	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12085	???[sx]*):;;*)false;;esac;fi
12086    '\'' sh
12087  '
12088fi
12089as_executable_p=$as_test_x
12090
12091# Sed expression to map a string onto a valid CPP name.
12092as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12093
12094# Sed expression to map a string onto a valid variable name.
12095as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12096
12097
12098exec 6>&1
12099
12100# Save the log message, to keep $[0] and so on meaningful, and to
12101# report actual input values of CONFIG_FILES etc. instead of their
12102# values after options handling.
12103ac_log="
12104This file was extended by iperf $as_me 3.0.1, which was
12105generated by GNU Autoconf 2.63.  Invocation command line was
12106
12107  CONFIG_FILES    = $CONFIG_FILES
12108  CONFIG_HEADERS  = $CONFIG_HEADERS
12109  CONFIG_LINKS    = $CONFIG_LINKS
12110  CONFIG_COMMANDS = $CONFIG_COMMANDS
12111  $ $0 $@
12112
12113on `(hostname || uname -n) 2>/dev/null | sed 1q`
12114"
12115
12116_ACEOF
12117
12118case $ac_config_files in *"
12119"*) set x $ac_config_files; shift; ac_config_files=$*;;
12120esac
12121
12122case $ac_config_headers in *"
12123"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12124esac
12125
12126
12127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128# Files that config.status was made for.
12129config_files="$ac_config_files"
12130config_headers="$ac_config_headers"
12131config_commands="$ac_config_commands"
12132
12133_ACEOF
12134
12135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12136ac_cs_usage="\
12137\`$as_me' instantiates files from templates according to the
12138current configuration.
12139
12140Usage: $0 [OPTION]... [FILE]...
12141
12142  -h, --help       print this help, then exit
12143  -V, --version    print version number and configuration settings, then exit
12144  -q, --quiet, --silent
12145                   do not print progress messages
12146  -d, --debug      don't remove temporary files
12147      --recheck    update $as_me by reconfiguring in the same conditions
12148      --file=FILE[:TEMPLATE]
12149                   instantiate the configuration file FILE
12150      --header=FILE[:TEMPLATE]
12151                   instantiate the configuration header FILE
12152
12153Configuration files:
12154$config_files
12155
12156Configuration headers:
12157$config_headers
12158
12159Configuration commands:
12160$config_commands
12161
12162Report bugs to <[email protected]>."
12163
12164_ACEOF
12165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12166ac_cs_version="\\
12167iperf config.status 3.0.1
12168configured by $0, generated by GNU Autoconf 2.63,
12169  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12170
12171Copyright (C) 2008 Free Software Foundation, Inc.
12172This config.status script is free software; the Free Software Foundation
12173gives unlimited permission to copy, distribute and modify it."
12174
12175ac_pwd='$ac_pwd'
12176srcdir='$srcdir'
12177INSTALL='$INSTALL'
12178MKDIR_P='$MKDIR_P'
12179AWK='$AWK'
12180test -n "\$AWK" || AWK=awk
12181_ACEOF
12182
12183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12184# The default lists apply if the user does not specify any file.
12185ac_need_defaults=:
12186while test $# != 0
12187do
12188  case $1 in
12189  --*=*)
12190    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12191    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12192    ac_shift=:
12193    ;;
12194  *)
12195    ac_option=$1
12196    ac_optarg=$2
12197    ac_shift=shift
12198    ;;
12199  esac
12200
12201  case $ac_option in
12202  # Handling of the options.
12203  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12204    ac_cs_recheck=: ;;
12205  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12206    $as_echo "$ac_cs_version"; exit ;;
12207  --debug | --debu | --deb | --de | --d | -d )
12208    debug=: ;;
12209  --file | --fil | --fi | --f )
12210    $ac_shift
12211    case $ac_optarg in
12212    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12213    esac
12214    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12215    ac_need_defaults=false;;
12216  --header | --heade | --head | --hea )
12217    $ac_shift
12218    case $ac_optarg in
12219    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12220    esac
12221    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12222    ac_need_defaults=false;;
12223  --he | --h)
12224    # Conflict between --help and --header
12225    { $as_echo "$as_me: error: ambiguous option: $1
12226Try \`$0 --help' for more information." >&2
12227   { (exit 1); exit 1; }; };;
12228  --help | --hel | -h )
12229    $as_echo "$ac_cs_usage"; exit ;;
12230  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12231  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12232    ac_cs_silent=: ;;
12233
12234  # This is an error.
12235  -*) { $as_echo "$as_me: error: unrecognized option: $1
12236Try \`$0 --help' for more information." >&2
12237   { (exit 1); exit 1; }; } ;;
12238
12239  *) ac_config_targets="$ac_config_targets $1"
12240     ac_need_defaults=false ;;
12241
12242  esac
12243  shift
12244done
12245
12246ac_configure_extra_args=
12247
12248if $ac_cs_silent; then
12249  exec 6>/dev/null
12250  ac_configure_extra_args="$ac_configure_extra_args --silent"
12251fi
12252
12253_ACEOF
12254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12255if \$ac_cs_recheck; then
12256  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12257  shift
12258  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12259  CONFIG_SHELL='$SHELL'
12260  export CONFIG_SHELL
12261  exec "\$@"
12262fi
12263
12264_ACEOF
12265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12266exec 5>>config.log
12267{
12268  echo
12269  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12270## Running $as_me. ##
12271_ASBOX
12272  $as_echo "$ac_log"
12273} >&5
12274
12275_ACEOF
12276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12277#
12278# INIT-COMMANDS
12279#
12280AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12281
12282
12283# The HP-UX ksh and POSIX shell print the target directory to stdout
12284# if CDPATH is set.
12285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12286
12287sed_quote_subst='$sed_quote_subst'
12288double_quote_subst='$double_quote_subst'
12289delay_variable_subst='$delay_variable_subst'
12290macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12291macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12292enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12293enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12294pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12295enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12296host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12297host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12298host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12299build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12300build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12301build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12302SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12303Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12304GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12305EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12306FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12307LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12308NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12309LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12310max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12311ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12312exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12313lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12314lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12315lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12316reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12317reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12318OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12319deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12320file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12321AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12322AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12323STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12324RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12325old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12326old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12328CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12329CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12330compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12331GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12332lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12333lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12334lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12335lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12336objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12337SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12338ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12339MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12340lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12341lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12342lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12343lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12344lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12345need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12346DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12347NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12348LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12349OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12350OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12351libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12352shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12353extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12354archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12355enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12356export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12357whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12358compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12359old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12360old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12361archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12362archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12363module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12364module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12365with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12366allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12367no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12368hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12369hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12370hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12371hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12372hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12373hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12374hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12375hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12376inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12377link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12378fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12379always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12380export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12381exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12382include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12383prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12384file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12385variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12386need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12387need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12388version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12389runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12390shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12391shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12392libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12393library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12394soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12395postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12396postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12397finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12398finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12399hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12400sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12401sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12402hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12403enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12404enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12405enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12406old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12407striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12408
12409LTCC='$LTCC'
12410LTCFLAGS='$LTCFLAGS'
12411compiler='$compiler_DEFAULT'
12412
12413# Quote evaled strings.
12414for var in SED \
12415GREP \
12416EGREP \
12417FGREP \
12418LD \
12419NM \
12420LN_S \
12421lt_SP2NL \
12422lt_NL2SP \
12423reload_flag \
12424OBJDUMP \
12425deplibs_check_method \
12426file_magic_cmd \
12427AR \
12428AR_FLAGS \
12429STRIP \
12430RANLIB \
12431CC \
12432CFLAGS \
12433compiler \
12434lt_cv_sys_global_symbol_pipe \
12435lt_cv_sys_global_symbol_to_cdecl \
12436lt_cv_sys_global_symbol_to_c_name_address \
12437lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12438SHELL \
12439ECHO \
12440lt_prog_compiler_no_builtin_flag \
12441lt_prog_compiler_wl \
12442lt_prog_compiler_pic \
12443lt_prog_compiler_static \
12444lt_cv_prog_compiler_c_o \
12445need_locks \
12446DSYMUTIL \
12447NMEDIT \
12448LIPO \
12449OTOOL \
12450OTOOL64 \
12451shrext_cmds \
12452export_dynamic_flag_spec \
12453whole_archive_flag_spec \
12454compiler_needs_object \
12455with_gnu_ld \
12456allow_undefined_flag \
12457no_undefined_flag \
12458hardcode_libdir_flag_spec \
12459hardcode_libdir_flag_spec_ld \
12460hardcode_libdir_separator \
12461fix_srcfile_path \
12462exclude_expsyms \
12463include_expsyms \
12464file_list_spec \
12465variables_saved_for_relink \
12466libname_spec \
12467library_names_spec \
12468soname_spec \
12469finish_eval \
12470old_striplib \
12471striplib; do
12472    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12473    *[\\\\\\\`\\"\\\$]*)
12474      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12475      ;;
12476    *)
12477      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12478      ;;
12479    esac
12480done
12481
12482# Double-quote double-evaled strings.
12483for var in reload_cmds \
12484old_postinstall_cmds \
12485old_postuninstall_cmds \
12486old_archive_cmds \
12487extract_expsyms_cmds \
12488old_archive_from_new_cmds \
12489old_archive_from_expsyms_cmds \
12490archive_cmds \
12491archive_expsym_cmds \
12492module_cmds \
12493module_expsym_cmds \
12494export_symbols_cmds \
12495prelink_cmds \
12496postinstall_cmds \
12497postuninstall_cmds \
12498finish_cmds \
12499sys_lib_search_path_spec \
12500sys_lib_dlsearch_path_spec; do
12501    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12502    *[\\\\\\\`\\"\\\$]*)
12503      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12504      ;;
12505    *)
12506      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12507      ;;
12508    esac
12509done
12510
12511# Fix-up fallback echo if it was mangled by the above quoting rules.
12512case \$lt_ECHO in
12513*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12514  ;;
12515esac
12516
12517ac_aux_dir='$ac_aux_dir'
12518xsi_shell='$xsi_shell'
12519lt_shell_append='$lt_shell_append'
12520
12521# See if we are running on zsh, and set the options which allow our
12522# commands through without removal of \ escapes INIT.
12523if test -n "\${ZSH_VERSION+set}" ; then
12524   setopt NO_GLOB_SUBST
12525fi
12526
12527
12528    PACKAGE='$PACKAGE'
12529    VERSION='$VERSION'
12530    TIMESTAMP='$TIMESTAMP'
12531    RM='$RM'
12532    ofile='$ofile'
12533
12534
12535
12536
12537_ACEOF
12538
12539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12540
12541# Handling of arguments.
12542for ac_config_target in $ac_config_targets
12543do
12544  case $ac_config_target in
12545    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12546    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12547    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12548    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12549    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12550    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12551
12552  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12553$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12554   { (exit 1); exit 1; }; };;
12555  esac
12556done
12557
12558
12559# If the user did not use the arguments to specify the items to instantiate,
12560# then the envvar interface is used.  Set only those that are not.
12561# We use the long form for the default assignment because of an extremely
12562# bizarre bug on SunOS 4.1.3.
12563if $ac_need_defaults; then
12564  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12565  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12566  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12567fi
12568
12569# Have a temporary directory for convenience.  Make it in the build tree
12570# simply because there is no reason against having it here, and in addition,
12571# creating and moving files from /tmp can sometimes cause problems.
12572# Hook for its removal unless debugging.
12573# Note that there is a small window in which the directory will not be cleaned:
12574# after its creation but before its name has been assigned to `$tmp'.
12575$debug ||
12576{
12577  tmp=
12578  trap 'exit_status=$?
12579  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12580' 0
12581  trap '{ (exit 1); exit 1; }' 1 2 13 15
12582}
12583# Create a (secure) tmp directory for tmp files.
12584
12585{
12586  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12587  test -n "$tmp" && test -d "$tmp"
12588}  ||
12589{
12590  tmp=./conf$$-$RANDOM
12591  (umask 077 && mkdir "$tmp")
12592} ||
12593{
12594   $as_echo "$as_me: cannot create a temporary directory in ." >&2
12595   { (exit 1); exit 1; }
12596}
12597
12598# Set up the scripts for CONFIG_FILES section.
12599# No need to generate them if there are no CONFIG_FILES.
12600# This happens for instance with `./config.status config.h'.
12601if test -n "$CONFIG_FILES"; then
12602
12603
12604ac_cr='
12605'
12606ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12607if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12608  ac_cs_awk_cr='\\r'
12609else
12610  ac_cs_awk_cr=$ac_cr
12611fi
12612
12613echo 'BEGIN {' >"$tmp/subs1.awk" &&
12614_ACEOF
12615
12616
12617{
12618  echo "cat >conf$$subs.awk <<_ACEOF" &&
12619  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12620  echo "_ACEOF"
12621} >conf$$subs.sh ||
12622  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12623$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12624   { (exit 1); exit 1; }; }
12625ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12626ac_delim='%!_!# '
12627for ac_last_try in false false false false false :; do
12628  . ./conf$$subs.sh ||
12629    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12630$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12631   { (exit 1); exit 1; }; }
12632
12633  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12634  if test $ac_delim_n = $ac_delim_num; then
12635    break
12636  elif $ac_last_try; then
12637    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12638$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12639   { (exit 1); exit 1; }; }
12640  else
12641    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12642  fi
12643done
12644rm -f conf$$subs.sh
12645
12646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12647cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12648_ACEOF
12649sed -n '
12650h
12651s/^/S["/; s/!.*/"]=/
12652p
12653g
12654s/^[^!]*!//
12655:repl
12656t repl
12657s/'"$ac_delim"'$//
12658t delim
12659:nl
12660h
12661s/\(.\{148\}\).*/\1/
12662t more1
12663s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12664p
12665n
12666b repl
12667:more1
12668s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12669p
12670g
12671s/.\{148\}//
12672t nl
12673:delim
12674h
12675s/\(.\{148\}\).*/\1/
12676t more2
12677s/["\\]/\\&/g; s/^/"/; s/$/"/
12678p
12679b
12680:more2
12681s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12682p
12683g
12684s/.\{148\}//
12685t delim
12686' <conf$$subs.awk | sed '
12687/^[^""]/{
12688  N
12689  s/\n//
12690}
12691' >>$CONFIG_STATUS || ac_write_fail=1
12692rm -f conf$$subs.awk
12693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12694_ACAWK
12695cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12696  for (key in S) S_is_set[key] = 1
12697  FS = ""
12698
12699}
12700{
12701  line = $ 0
12702  nfields = split(line, field, "@")
12703  substed = 0
12704  len = length(field[1])
12705  for (i = 2; i < nfields; i++) {
12706    key = field[i]
12707    keylen = length(key)
12708    if (S_is_set[key]) {
12709      value = S[key]
12710      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12711      len += length(value) + length(field[++i])
12712      substed = 1
12713    } else
12714      len += 1 + keylen
12715  }
12716
12717  print line
12718}
12719
12720_ACAWK
12721_ACEOF
12722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12724  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12725else
12726  cat
12727fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12728  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12729$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12730   { (exit 1); exit 1; }; }
12731_ACEOF
12732
12733# VPATH may cause trouble with some makes, so we remove $(srcdir),
12734# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12735# trailing colons and then remove the whole line if VPATH becomes empty
12736# (actually we leave an empty line to preserve line numbers).
12737if test "x$srcdir" = x.; then
12738  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12739s/:*\$(srcdir):*/:/
12740s/:*\${srcdir}:*/:/
12741s/:*@srcdir@:*/:/
12742s/^\([^=]*=[	 ]*\):*/\1/
12743s/:*$//
12744s/^[^=]*=[	 ]*$//
12745}'
12746fi
12747
12748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12749fi # test -n "$CONFIG_FILES"
12750
12751# Set up the scripts for CONFIG_HEADERS section.
12752# No need to generate them if there are no CONFIG_HEADERS.
12753# This happens for instance with `./config.status Makefile'.
12754if test -n "$CONFIG_HEADERS"; then
12755cat >"$tmp/defines.awk" <<\_ACAWK ||
12756BEGIN {
12757_ACEOF
12758
12759# Transform confdefs.h into an awk script `defines.awk', embedded as
12760# here-document in config.status, that substitutes the proper values into
12761# config.h.in to produce config.h.
12762
12763# Create a delimiter string that does not exist in confdefs.h, to ease
12764# handling of long lines.
12765ac_delim='%!_!# '
12766for ac_last_try in false false :; do
12767  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12768  if test -z "$ac_t"; then
12769    break
12770  elif $ac_last_try; then
12771    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12772$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12773   { (exit 1); exit 1; }; }
12774  else
12775    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12776  fi
12777done
12778
12779# For the awk script, D is an array of macro values keyed by name,
12780# likewise P contains macro parameters if any.  Preserve backslash
12781# newline sequences.
12782
12783ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12784sed -n '
12785s/.\{148\}/&'"$ac_delim"'/g
12786t rset
12787:rset
12788s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12789t def
12790d
12791:def
12792s/\\$//
12793t bsnl
12794s/["\\]/\\&/g
12795s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12796D["\1"]=" \3"/p
12797s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12798d
12799:bsnl
12800s/["\\]/\\&/g
12801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12802D["\1"]=" \3\\\\\\n"\\/p
12803t cont
12804s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12805t cont
12806d
12807:cont
12808n
12809s/.\{148\}/&'"$ac_delim"'/g
12810t clear
12811:clear
12812s/\\$//
12813t bsnlc
12814s/["\\]/\\&/g; s/^/"/; s/$/"/p
12815d
12816:bsnlc
12817s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12818b cont
12819' <confdefs.h | sed '
12820s/'"$ac_delim"'/"\\\
12821"/g' >>$CONFIG_STATUS || ac_write_fail=1
12822
12823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12824  for (key in D) D_is_set[key] = 1
12825  FS = ""
12826}
12827/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12828  line = \$ 0
12829  split(line, arg, " ")
12830  if (arg[1] == "#") {
12831    defundef = arg[2]
12832    mac1 = arg[3]
12833  } else {
12834    defundef = substr(arg[1], 2)
12835    mac1 = arg[2]
12836  }
12837  split(mac1, mac2, "(") #)
12838  macro = mac2[1]
12839  prefix = substr(line, 1, index(line, defundef) - 1)
12840  if (D_is_set[macro]) {
12841    # Preserve the white space surrounding the "#".
12842    print prefix "define", macro P[macro] D[macro]
12843    next
12844  } else {
12845    # Replace #undef with comments.  This is necessary, for example,
12846    # in the case of _POSIX_SOURCE, which is predefined and required
12847    # on some systems where configure will not decide to define it.
12848    if (defundef == "undef") {
12849      print "/*", prefix defundef, macro, "*/"
12850      next
12851    }
12852  }
12853}
12854{ print }
12855_ACAWK
12856_ACEOF
12857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12858  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12859$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12860   { (exit 1); exit 1; }; }
12861fi # test -n "$CONFIG_HEADERS"
12862
12863
12864eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12865shift
12866for ac_tag
12867do
12868  case $ac_tag in
12869  :[FHLC]) ac_mode=$ac_tag; continue;;
12870  esac
12871  case $ac_mode$ac_tag in
12872  :[FHL]*:*);;
12873  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12874$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12875   { (exit 1); exit 1; }; };;
12876  :[FH]-) ac_tag=-:-;;
12877  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12878  esac
12879  ac_save_IFS=$IFS
12880  IFS=:
12881  set x $ac_tag
12882  IFS=$ac_save_IFS
12883  shift
12884  ac_file=$1
12885  shift
12886
12887  case $ac_mode in
12888  :L) ac_source=$1;;
12889  :[FH])
12890    ac_file_inputs=
12891    for ac_f
12892    do
12893      case $ac_f in
12894      -) ac_f="$tmp/stdin";;
12895      *) # Look for the file first in the build tree, then in the source tree
12896	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12897	 # because $ac_f cannot contain `:'.
12898	 test -f "$ac_f" ||
12899	   case $ac_f in
12900	   [\\/$]*) false;;
12901	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12902	   esac ||
12903	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12904$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12905   { (exit 1); exit 1; }; };;
12906      esac
12907      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12908      ac_file_inputs="$ac_file_inputs '$ac_f'"
12909    done
12910
12911    # Let's still pretend it is `configure' which instantiates (i.e., don't
12912    # use $as_me), people would be surprised to read:
12913    #    /* config.h.  Generated by config.status.  */
12914    configure_input='Generated from '`
12915	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12916	`' by configure.'
12917    if test x"$ac_file" != x-; then
12918      configure_input="$ac_file.  $configure_input"
12919      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12920$as_echo "$as_me: creating $ac_file" >&6;}
12921    fi
12922    # Neutralize special characters interpreted by sed in replacement strings.
12923    case $configure_input in #(
12924    *\&* | *\|* | *\\* )
12925       ac_sed_conf_input=`$as_echo "$configure_input" |
12926       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12927    *) ac_sed_conf_input=$configure_input;;
12928    esac
12929
12930    case $ac_tag in
12931    *:-:* | *:-) cat >"$tmp/stdin" \
12932      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12933$as_echo "$as_me: error: could not create $ac_file" >&2;}
12934   { (exit 1); exit 1; }; } ;;
12935    esac
12936    ;;
12937  esac
12938
12939  ac_dir=`$as_dirname -- "$ac_file" ||
12940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941	 X"$ac_file" : 'X\(//\)[^/]' \| \
12942	 X"$ac_file" : 'X\(//\)$' \| \
12943	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12944$as_echo X"$ac_file" |
12945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12946	    s//\1/
12947	    q
12948	  }
12949	  /^X\(\/\/\)[^/].*/{
12950	    s//\1/
12951	    q
12952	  }
12953	  /^X\(\/\/\)$/{
12954	    s//\1/
12955	    q
12956	  }
12957	  /^X\(\/\).*/{
12958	    s//\1/
12959	    q
12960	  }
12961	  s/.*/./; q'`
12962  { as_dir="$ac_dir"
12963  case $as_dir in #(
12964  -*) as_dir=./$as_dir;;
12965  esac
12966  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12967    as_dirs=
12968    while :; do
12969      case $as_dir in #(
12970      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12971      *) as_qdir=$as_dir;;
12972      esac
12973      as_dirs="'$as_qdir' $as_dirs"
12974      as_dir=`$as_dirname -- "$as_dir" ||
12975$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12976	 X"$as_dir" : 'X\(//\)[^/]' \| \
12977	 X"$as_dir" : 'X\(//\)$' \| \
12978	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12979$as_echo X"$as_dir" |
12980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12981	    s//\1/
12982	    q
12983	  }
12984	  /^X\(\/\/\)[^/].*/{
12985	    s//\1/
12986	    q
12987	  }
12988	  /^X\(\/\/\)$/{
12989	    s//\1/
12990	    q
12991	  }
12992	  /^X\(\/\).*/{
12993	    s//\1/
12994	    q
12995	  }
12996	  s/.*/./; q'`
12997      test -d "$as_dir" && break
12998    done
12999    test -z "$as_dirs" || eval "mkdir $as_dirs"
13000  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13001$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13002   { (exit 1); exit 1; }; }; }
13003  ac_builddir=.
13004
13005case "$ac_dir" in
13006.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13007*)
13008  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13009  # A ".." for each directory in $ac_dir_suffix.
13010  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13011  case $ac_top_builddir_sub in
13012  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13013  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13014  esac ;;
13015esac
13016ac_abs_top_builddir=$ac_pwd
13017ac_abs_builddir=$ac_pwd$ac_dir_suffix
13018# for backward compatibility:
13019ac_top_builddir=$ac_top_build_prefix
13020
13021case $srcdir in
13022  .)  # We are building in place.
13023    ac_srcdir=.
13024    ac_top_srcdir=$ac_top_builddir_sub
13025    ac_abs_top_srcdir=$ac_pwd ;;
13026  [\\/]* | ?:[\\/]* )  # Absolute name.
13027    ac_srcdir=$srcdir$ac_dir_suffix;
13028    ac_top_srcdir=$srcdir
13029    ac_abs_top_srcdir=$srcdir ;;
13030  *) # Relative name.
13031    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13032    ac_top_srcdir=$ac_top_build_prefix$srcdir
13033    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13034esac
13035ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13036
13037
13038  case $ac_mode in
13039  :F)
13040  #
13041  # CONFIG_FILE
13042  #
13043
13044  case $INSTALL in
13045  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13046  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13047  esac
13048  ac_MKDIR_P=$MKDIR_P
13049  case $MKDIR_P in
13050  [\\/$]* | ?:[\\/]* ) ;;
13051  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13052  esac
13053_ACEOF
13054
13055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13056# If the template does not know about datarootdir, expand it.
13057# FIXME: This hack should be removed a few years after 2.60.
13058ac_datarootdir_hack=; ac_datarootdir_seen=
13059
13060ac_sed_dataroot='
13061/datarootdir/ {
13062  p
13063  q
13064}
13065/@datadir@/p
13066/@docdir@/p
13067/@infodir@/p
13068/@localedir@/p
13069/@mandir@/p
13070'
13071case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13072*datarootdir*) ac_datarootdir_seen=yes;;
13073*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13074  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13075$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13076_ACEOF
13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078  ac_datarootdir_hack='
13079  s&@datadir@&$datadir&g
13080  s&@docdir@&$docdir&g
13081  s&@infodir@&$infodir&g
13082  s&@localedir@&$localedir&g
13083  s&@mandir@&$mandir&g
13084    s&\\\${datarootdir}&$datarootdir&g' ;;
13085esac
13086_ACEOF
13087
13088# Neutralize VPATH when `$srcdir' = `.'.
13089# Shell code in configure.ac might set extrasub.
13090# FIXME: do we really want to maintain this feature?
13091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13092ac_sed_extra="$ac_vpsub
13093$extrasub
13094_ACEOF
13095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13096:t
13097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13098s|@configure_input@|$ac_sed_conf_input|;t t
13099s&@top_builddir@&$ac_top_builddir_sub&;t t
13100s&@top_build_prefix@&$ac_top_build_prefix&;t t
13101s&@srcdir@&$ac_srcdir&;t t
13102s&@abs_srcdir@&$ac_abs_srcdir&;t t
13103s&@top_srcdir@&$ac_top_srcdir&;t t
13104s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13105s&@builddir@&$ac_builddir&;t t
13106s&@abs_builddir@&$ac_abs_builddir&;t t
13107s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13108s&@INSTALL@&$ac_INSTALL&;t t
13109s&@MKDIR_P@&$ac_MKDIR_P&;t t
13110$ac_datarootdir_hack
13111"
13112eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13113  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13114$as_echo "$as_me: error: could not create $ac_file" >&2;}
13115   { (exit 1); exit 1; }; }
13116
13117test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13118  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13119  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13120  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13121which seems to be undefined.  Please make sure it is defined." >&5
13122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13123which seems to be undefined.  Please make sure it is defined." >&2;}
13124
13125  rm -f "$tmp/stdin"
13126  case $ac_file in
13127  -) cat "$tmp/out" && rm -f "$tmp/out";;
13128  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13129  esac \
13130  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13131$as_echo "$as_me: error: could not create $ac_file" >&2;}
13132   { (exit 1); exit 1; }; }
13133 ;;
13134  :H)
13135  #
13136  # CONFIG_HEADER
13137  #
13138  if test x"$ac_file" != x-; then
13139    {
13140      $as_echo "/* $configure_input  */" \
13141      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13142    } >"$tmp/config.h" \
13143      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13144$as_echo "$as_me: error: could not create $ac_file" >&2;}
13145   { (exit 1); exit 1; }; }
13146    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13147      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13148$as_echo "$as_me: $ac_file is unchanged" >&6;}
13149    else
13150      rm -f "$ac_file"
13151      mv "$tmp/config.h" "$ac_file" \
13152	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13153$as_echo "$as_me: error: could not create $ac_file" >&2;}
13154   { (exit 1); exit 1; }; }
13155    fi
13156  else
13157    $as_echo "/* $configure_input  */" \
13158      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13159      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13160$as_echo "$as_me: error: could not create -" >&2;}
13161   { (exit 1); exit 1; }; }
13162  fi
13163# Compute "$ac_file"'s index in $config_headers.
13164_am_arg="$ac_file"
13165_am_stamp_count=1
13166for _am_header in $config_headers :; do
13167  case $_am_header in
13168    $_am_arg | $_am_arg:* )
13169      break ;;
13170    * )
13171      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13172  esac
13173done
13174echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13175$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13176	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13177	 X"$_am_arg" : 'X\(//\)$' \| \
13178	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13179$as_echo X"$_am_arg" |
13180    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13181	    s//\1/
13182	    q
13183	  }
13184	  /^X\(\/\/\)[^/].*/{
13185	    s//\1/
13186	    q
13187	  }
13188	  /^X\(\/\/\)$/{
13189	    s//\1/
13190	    q
13191	  }
13192	  /^X\(\/\).*/{
13193	    s//\1/
13194	    q
13195	  }
13196	  s/.*/./; q'`/stamp-h$_am_stamp_count
13197 ;;
13198
13199  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13200$as_echo "$as_me: executing $ac_file commands" >&6;}
13201 ;;
13202  esac
13203
13204
13205  case $ac_file$ac_mode in
13206    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13207  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13208  # are listed without --file.  Let's play safe and only enable the eval
13209  # if we detect the quoting.
13210  case $CONFIG_FILES in
13211  *\'*) eval set x "$CONFIG_FILES" ;;
13212  *)   set x $CONFIG_FILES ;;
13213  esac
13214  shift
13215  for mf
13216  do
13217    # Strip MF so we end up with the name of the file.
13218    mf=`echo "$mf" | sed -e 's/:.*$//'`
13219    # Check whether this is an Automake generated Makefile or not.
13220    # We used to match only the files named `Makefile.in', but
13221    # some people rename them; so instead we look at the file content.
13222    # Grep'ing the first line is not enough: some people post-process
13223    # each Makefile.in and add a new line on top of each file to say so.
13224    # Grep'ing the whole file is not good either: AIX grep has a line
13225    # limit of 2048, but all sed's we know have understand at least 4000.
13226    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13227      dirpart=`$as_dirname -- "$mf" ||
13228$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13229	 X"$mf" : 'X\(//\)[^/]' \| \
13230	 X"$mf" : 'X\(//\)$' \| \
13231	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13232$as_echo X"$mf" |
13233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13234	    s//\1/
13235	    q
13236	  }
13237	  /^X\(\/\/\)[^/].*/{
13238	    s//\1/
13239	    q
13240	  }
13241	  /^X\(\/\/\)$/{
13242	    s//\1/
13243	    q
13244	  }
13245	  /^X\(\/\).*/{
13246	    s//\1/
13247	    q
13248	  }
13249	  s/.*/./; q'`
13250    else
13251      continue
13252    fi
13253    # Extract the definition of DEPDIR, am__include, and am__quote
13254    # from the Makefile without running `make'.
13255    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13256    test -z "$DEPDIR" && continue
13257    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13258    test -z "am__include" && continue
13259    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13260    # When using ansi2knr, U may be empty or an underscore; expand it
13261    U=`sed -n 's/^U = //p' < "$mf"`
13262    # Find all dependency output files, they are included files with
13263    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13264    # simplest approach to changing $(DEPDIR) to its actual value in the
13265    # expansion.
13266    for file in `sed -n "
13267      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13268	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13269      # Make sure the directory exists.
13270      test -f "$dirpart/$file" && continue
13271      fdir=`$as_dirname -- "$file" ||
13272$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13273	 X"$file" : 'X\(//\)[^/]' \| \
13274	 X"$file" : 'X\(//\)$' \| \
13275	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13276$as_echo X"$file" |
13277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13278	    s//\1/
13279	    q
13280	  }
13281	  /^X\(\/\/\)[^/].*/{
13282	    s//\1/
13283	    q
13284	  }
13285	  /^X\(\/\/\)$/{
13286	    s//\1/
13287	    q
13288	  }
13289	  /^X\(\/\).*/{
13290	    s//\1/
13291	    q
13292	  }
13293	  s/.*/./; q'`
13294      { as_dir=$dirpart/$fdir
13295  case $as_dir in #(
13296  -*) as_dir=./$as_dir;;
13297  esac
13298  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13299    as_dirs=
13300    while :; do
13301      case $as_dir in #(
13302      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13303      *) as_qdir=$as_dir;;
13304      esac
13305      as_dirs="'$as_qdir' $as_dirs"
13306      as_dir=`$as_dirname -- "$as_dir" ||
13307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13308	 X"$as_dir" : 'X\(//\)[^/]' \| \
13309	 X"$as_dir" : 'X\(//\)$' \| \
13310	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13311$as_echo X"$as_dir" |
13312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13313	    s//\1/
13314	    q
13315	  }
13316	  /^X\(\/\/\)[^/].*/{
13317	    s//\1/
13318	    q
13319	  }
13320	  /^X\(\/\/\)$/{
13321	    s//\1/
13322	    q
13323	  }
13324	  /^X\(\/\).*/{
13325	    s//\1/
13326	    q
13327	  }
13328	  s/.*/./; q'`
13329      test -d "$as_dir" && break
13330    done
13331    test -z "$as_dirs" || eval "mkdir $as_dirs"
13332  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13333$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13334   { (exit 1); exit 1; }; }; }
13335      # echo "creating $dirpart/$file"
13336      echo '# dummy' > "$dirpart/$file"
13337    done
13338  done
13339}
13340 ;;
13341    "libtool":C)
13342
13343    # See if we are running on zsh, and set the options which allow our
13344    # commands through without removal of \ escapes.
13345    if test -n "${ZSH_VERSION+set}" ; then
13346      setopt NO_GLOB_SUBST
13347    fi
13348
13349    cfgfile="${ofile}T"
13350    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13351    $RM "$cfgfile"
13352
13353    cat <<_LT_EOF >> "$cfgfile"
13354#! $SHELL
13355
13356# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13357# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13358# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13359# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13360#
13361#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13362#                 2006, 2007, 2008 Free Software Foundation, Inc.
13363#   Written by Gordon Matzigkeit, 1996
13364#
13365#   This file is part of GNU Libtool.
13366#
13367# GNU Libtool is free software; you can redistribute it and/or
13368# modify it under the terms of the GNU General Public License as
13369# published by the Free Software Foundation; either version 2 of
13370# the License, or (at your option) any later version.
13371#
13372# As a special exception to the GNU General Public License,
13373# if you distribute this file as part of a program or library that
13374# is built using GNU Libtool, you may include this file under the
13375# same distribution terms that you use for the rest of that program.
13376#
13377# GNU Libtool is distributed in the hope that it will be useful,
13378# but WITHOUT ANY WARRANTY; without even the implied warranty of
13379# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13380# GNU General Public License for more details.
13381#
13382# You should have received a copy of the GNU General Public License
13383# along with GNU Libtool; see the file COPYING.  If not, a copy
13384# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13385# obtained by writing to the Free Software Foundation, Inc.,
13386# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13387
13388
13389# The names of the tagged configurations supported by this script.
13390available_tags=""
13391
13392# ### BEGIN LIBTOOL CONFIG
13393
13394# Which release of libtool.m4 was used?
13395macro_version=$macro_version
13396macro_revision=$macro_revision
13397
13398# Whether or not to build shared libraries.
13399build_libtool_libs=$enable_shared
13400
13401# Whether or not to build static libraries.
13402build_old_libs=$enable_static
13403
13404# What type of objects to build.
13405pic_mode=$pic_mode
13406
13407# Whether or not to optimize for fast installation.
13408fast_install=$enable_fast_install
13409
13410# The host system.
13411host_alias=$host_alias
13412host=$host
13413host_os=$host_os
13414
13415# The build system.
13416build_alias=$build_alias
13417build=$build
13418build_os=$build_os
13419
13420# A sed program that does not truncate output.
13421SED=$lt_SED
13422
13423# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13424Xsed="\$SED -e 1s/^X//"
13425
13426# A grep program that handles long lines.
13427GREP=$lt_GREP
13428
13429# An ERE matcher.
13430EGREP=$lt_EGREP
13431
13432# A literal string matcher.
13433FGREP=$lt_FGREP
13434
13435# A BSD- or MS-compatible name lister.
13436NM=$lt_NM
13437
13438# Whether we need soft or hard links.
13439LN_S=$lt_LN_S
13440
13441# What is the maximum length of a command?
13442max_cmd_len=$max_cmd_len
13443
13444# Object file suffix (normally "o").
13445objext=$ac_objext
13446
13447# Executable file suffix (normally "").
13448exeext=$exeext
13449
13450# whether the shell understands "unset".
13451lt_unset=$lt_unset
13452
13453# turn spaces into newlines.
13454SP2NL=$lt_lt_SP2NL
13455
13456# turn newlines into spaces.
13457NL2SP=$lt_lt_NL2SP
13458
13459# How to create reloadable object files.
13460reload_flag=$lt_reload_flag
13461reload_cmds=$lt_reload_cmds
13462
13463# An object symbol dumper.
13464OBJDUMP=$lt_OBJDUMP
13465
13466# Method to check whether dependent libraries are shared objects.
13467deplibs_check_method=$lt_deplibs_check_method
13468
13469# Command to use when deplibs_check_method == "file_magic".
13470file_magic_cmd=$lt_file_magic_cmd
13471
13472# The archiver.
13473AR=$lt_AR
13474AR_FLAGS=$lt_AR_FLAGS
13475
13476# A symbol stripping program.
13477STRIP=$lt_STRIP
13478
13479# Commands used to install an old-style archive.
13480RANLIB=$lt_RANLIB
13481old_postinstall_cmds=$lt_old_postinstall_cmds
13482old_postuninstall_cmds=$lt_old_postuninstall_cmds
13483
13484# A C compiler.
13485LTCC=$lt_CC
13486
13487# LTCC compiler flags.
13488LTCFLAGS=$lt_CFLAGS
13489
13490# Take the output of nm and produce a listing of raw symbols and C names.
13491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13492
13493# Transform the output of nm in a proper C declaration.
13494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13495
13496# Transform the output of nm in a C name address pair.
13497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13498
13499# Transform the output of nm in a C name address pair when lib prefix is needed.
13500global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13501
13502# The name of the directory that contains temporary libtool files.
13503objdir=$objdir
13504
13505# Shell to use when invoking shell scripts.
13506SHELL=$lt_SHELL
13507
13508# An echo program that does not interpret backslashes.
13509ECHO=$lt_ECHO
13510
13511# Used to examine libraries when file_magic_cmd begins with "file".
13512MAGIC_CMD=$MAGIC_CMD
13513
13514# Must we lock files when doing compilation?
13515need_locks=$lt_need_locks
13516
13517# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13518DSYMUTIL=$lt_DSYMUTIL
13519
13520# Tool to change global to local symbols on Mac OS X.
13521NMEDIT=$lt_NMEDIT
13522
13523# Tool to manipulate fat objects and archives on Mac OS X.
13524LIPO=$lt_LIPO
13525
13526# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13527OTOOL=$lt_OTOOL
13528
13529# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13530OTOOL64=$lt_OTOOL64
13531
13532# Old archive suffix (normally "a").
13533libext=$libext
13534
13535# Shared library suffix (normally ".so").
13536shrext_cmds=$lt_shrext_cmds
13537
13538# The commands to extract the exported symbol list from a shared archive.
13539extract_expsyms_cmds=$lt_extract_expsyms_cmds
13540
13541# Variables whose values should be saved in libtool wrapper scripts and
13542# restored at link time.
13543variables_saved_for_relink=$lt_variables_saved_for_relink
13544
13545# Do we need the "lib" prefix for modules?
13546need_lib_prefix=$need_lib_prefix
13547
13548# Do we need a version for libraries?
13549need_version=$need_version
13550
13551# Library versioning type.
13552version_type=$version_type
13553
13554# Shared library runtime path variable.
13555runpath_var=$runpath_var
13556
13557# Shared library path variable.
13558shlibpath_var=$shlibpath_var
13559
13560# Is shlibpath searched before the hard-coded library search path?
13561shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13562
13563# Format of library name prefix.
13564libname_spec=$lt_libname_spec
13565
13566# List of archive names.  First name is the real one, the rest are links.
13567# The last name is the one that the linker finds with -lNAME
13568library_names_spec=$lt_library_names_spec
13569
13570# The coded name of the library, if different from the real name.
13571soname_spec=$lt_soname_spec
13572
13573# Command to use after installation of a shared archive.
13574postinstall_cmds=$lt_postinstall_cmds
13575
13576# Command to use after uninstallation of a shared archive.
13577postuninstall_cmds=$lt_postuninstall_cmds
13578
13579# Commands used to finish a libtool library installation in a directory.
13580finish_cmds=$lt_finish_cmds
13581
13582# As "finish_cmds", except a single script fragment to be evaled but
13583# not shown.
13584finish_eval=$lt_finish_eval
13585
13586# Whether we should hardcode library paths into libraries.
13587hardcode_into_libs=$hardcode_into_libs
13588
13589# Compile-time system search path for libraries.
13590sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13591
13592# Run-time system search path for libraries.
13593sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13594
13595# Whether dlopen is supported.
13596dlopen_support=$enable_dlopen
13597
13598# Whether dlopen of programs is supported.
13599dlopen_self=$enable_dlopen_self
13600
13601# Whether dlopen of statically linked programs is supported.
13602dlopen_self_static=$enable_dlopen_self_static
13603
13604# Commands to strip libraries.
13605old_striplib=$lt_old_striplib
13606striplib=$lt_striplib
13607
13608
13609# The linker used to build libraries.
13610LD=$lt_LD
13611
13612# Commands used to build an old-style archive.
13613old_archive_cmds=$lt_old_archive_cmds
13614
13615# A language specific compiler.
13616CC=$lt_compiler
13617
13618# Is the compiler the GNU compiler?
13619with_gcc=$GCC
13620
13621# Compiler flag to turn off builtin functions.
13622no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13623
13624# How to pass a linker flag through the compiler.
13625wl=$lt_lt_prog_compiler_wl
13626
13627# Additional compiler flags for building library objects.
13628pic_flag=$lt_lt_prog_compiler_pic
13629
13630# Compiler flag to prevent dynamic linking.
13631link_static_flag=$lt_lt_prog_compiler_static
13632
13633# Does compiler simultaneously support -c and -o options?
13634compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13635
13636# Whether or not to add -lc for building shared libraries.
13637build_libtool_need_lc=$archive_cmds_need_lc
13638
13639# Whether or not to disallow shared libs when runtime libs are static.
13640allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13641
13642# Compiler flag to allow reflexive dlopens.
13643export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13644
13645# Compiler flag to generate shared objects directly from archives.
13646whole_archive_flag_spec=$lt_whole_archive_flag_spec
13647
13648# Whether the compiler copes with passing no objects directly.
13649compiler_needs_object=$lt_compiler_needs_object
13650
13651# Create an old-style archive from a shared archive.
13652old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13653
13654# Create a temporary old-style archive to link instead of a shared archive.
13655old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13656
13657# Commands used to build a shared archive.
13658archive_cmds=$lt_archive_cmds
13659archive_expsym_cmds=$lt_archive_expsym_cmds
13660
13661# Commands used to build a loadable module if different from building
13662# a shared archive.
13663module_cmds=$lt_module_cmds
13664module_expsym_cmds=$lt_module_expsym_cmds
13665
13666# Whether we are building with GNU ld or not.
13667with_gnu_ld=$lt_with_gnu_ld
13668
13669# Flag that allows shared libraries with undefined symbols to be built.
13670allow_undefined_flag=$lt_allow_undefined_flag
13671
13672# Flag that enforces no undefined symbols.
13673no_undefined_flag=$lt_no_undefined_flag
13674
13675# Flag to hardcode \$libdir into a binary during linking.
13676# This must work even if \$libdir does not exist
13677hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13678
13679# If ld is used when linking, flag to hardcode \$libdir into a binary
13680# during linking.  This must work even if \$libdir does not exist.
13681hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13682
13683# Whether we need a single "-rpath" flag with a separated argument.
13684hardcode_libdir_separator=$lt_hardcode_libdir_separator
13685
13686# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13687# DIR into the resulting binary.
13688hardcode_direct=$hardcode_direct
13689
13690# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13691# DIR into the resulting binary and the resulting library dependency is
13692# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13693# library is relocated.
13694hardcode_direct_absolute=$hardcode_direct_absolute
13695
13696# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13697# into the resulting binary.
13698hardcode_minus_L=$hardcode_minus_L
13699
13700# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13701# into the resulting binary.
13702hardcode_shlibpath_var=$hardcode_shlibpath_var
13703
13704# Set to "yes" if building a shared library automatically hardcodes DIR
13705# into the library and all subsequent libraries and executables linked
13706# against it.
13707hardcode_automatic=$hardcode_automatic
13708
13709# Set to yes if linker adds runtime paths of dependent libraries
13710# to runtime path list.
13711inherit_rpath=$inherit_rpath
13712
13713# Whether libtool must link a program against all its dependency libraries.
13714link_all_deplibs=$link_all_deplibs
13715
13716# Fix the shell variable \$srcfile for the compiler.
13717fix_srcfile_path=$lt_fix_srcfile_path
13718
13719# Set to "yes" if exported symbols are required.
13720always_export_symbols=$always_export_symbols
13721
13722# The commands to list exported symbols.
13723export_symbols_cmds=$lt_export_symbols_cmds
13724
13725# Symbols that should not be listed in the preloaded symbols.
13726exclude_expsyms=$lt_exclude_expsyms
13727
13728# Symbols that must always be exported.
13729include_expsyms=$lt_include_expsyms
13730
13731# Commands necessary for linking programs (against libraries) with templates.
13732prelink_cmds=$lt_prelink_cmds
13733
13734# Specify filename containing input files.
13735file_list_spec=$lt_file_list_spec
13736
13737# How to hardcode a shared library path into an executable.
13738hardcode_action=$hardcode_action
13739
13740# ### END LIBTOOL CONFIG
13741
13742_LT_EOF
13743
13744  case $host_os in
13745  aix3*)
13746    cat <<\_LT_EOF >> "$cfgfile"
13747# AIX sometimes has problems with the GCC collect2 program.  For some
13748# reason, if we set the COLLECT_NAMES environment variable, the problems
13749# vanish in a puff of smoke.
13750if test "X${COLLECT_NAMES+set}" != Xset; then
13751  COLLECT_NAMES=
13752  export COLLECT_NAMES
13753fi
13754_LT_EOF
13755    ;;
13756  esac
13757
13758
13759ltmain="$ac_aux_dir/ltmain.sh"
13760
13761
13762  # We use sed instead of cat because bash on DJGPP gets confused if
13763  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13764  # text mode, it properly converts lines to CR/LF.  This bash problem
13765  # is reportedly fixed, but why not run on old versions too?
13766  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13767    || (rm -f "$cfgfile"; exit 1)
13768
13769  case $xsi_shell in
13770  yes)
13771    cat << \_LT_EOF >> "$cfgfile"
13772
13773# func_dirname file append nondir_replacement
13774# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13775# otherwise set result to NONDIR_REPLACEMENT.
13776func_dirname ()
13777{
13778  case ${1} in
13779    */*) func_dirname_result="${1%/*}${2}" ;;
13780    *  ) func_dirname_result="${3}" ;;
13781  esac
13782}
13783
13784# func_basename file
13785func_basename ()
13786{
13787  func_basename_result="${1##*/}"
13788}
13789
13790# func_dirname_and_basename file append nondir_replacement
13791# perform func_basename and func_dirname in a single function
13792# call:
13793#   dirname:  Compute the dirname of FILE.  If nonempty,
13794#             add APPEND to the result, otherwise set result
13795#             to NONDIR_REPLACEMENT.
13796#             value returned in "$func_dirname_result"
13797#   basename: Compute filename of FILE.
13798#             value retuned in "$func_basename_result"
13799# Implementation must be kept synchronized with func_dirname
13800# and func_basename. For efficiency, we do not delegate to
13801# those functions but instead duplicate the functionality here.
13802func_dirname_and_basename ()
13803{
13804  case ${1} in
13805    */*) func_dirname_result="${1%/*}${2}" ;;
13806    *  ) func_dirname_result="${3}" ;;
13807  esac
13808  func_basename_result="${1##*/}"
13809}
13810
13811# func_stripname prefix suffix name
13812# strip PREFIX and SUFFIX off of NAME.
13813# PREFIX and SUFFIX must not contain globbing or regex special
13814# characters, hashes, percent signs, but SUFFIX may contain a leading
13815# dot (in which case that matches only a dot).
13816func_stripname ()
13817{
13818  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13819  # positional parameters, so assign one to ordinary parameter first.
13820  func_stripname_result=${3}
13821  func_stripname_result=${func_stripname_result#"${1}"}
13822  func_stripname_result=${func_stripname_result%"${2}"}
13823}
13824
13825# func_opt_split
13826func_opt_split ()
13827{
13828  func_opt_split_opt=${1%%=*}
13829  func_opt_split_arg=${1#*=}
13830}
13831
13832# func_lo2o object
13833func_lo2o ()
13834{
13835  case ${1} in
13836    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13837    *)    func_lo2o_result=${1} ;;
13838  esac
13839}
13840
13841# func_xform libobj-or-source
13842func_xform ()
13843{
13844  func_xform_result=${1%.*}.lo
13845}
13846
13847# func_arith arithmetic-term...
13848func_arith ()
13849{
13850  func_arith_result=$(( $* ))
13851}
13852
13853# func_len string
13854# STRING may not start with a hyphen.
13855func_len ()
13856{
13857  func_len_result=${#1}
13858}
13859
13860_LT_EOF
13861    ;;
13862  *) # Bourne compatible functions.
13863    cat << \_LT_EOF >> "$cfgfile"
13864
13865# func_dirname file append nondir_replacement
13866# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13867# otherwise set result to NONDIR_REPLACEMENT.
13868func_dirname ()
13869{
13870  # Extract subdirectory from the argument.
13871  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13872  if test "X$func_dirname_result" = "X${1}"; then
13873    func_dirname_result="${3}"
13874  else
13875    func_dirname_result="$func_dirname_result${2}"
13876  fi
13877}
13878
13879# func_basename file
13880func_basename ()
13881{
13882  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13883}
13884
13885
13886# func_stripname prefix suffix name
13887# strip PREFIX and SUFFIX off of NAME.
13888# PREFIX and SUFFIX must not contain globbing or regex special
13889# characters, hashes, percent signs, but SUFFIX may contain a leading
13890# dot (in which case that matches only a dot).
13891# func_strip_suffix prefix name
13892func_stripname ()
13893{
13894  case ${2} in
13895    .*) func_stripname_result=`$ECHO "X${3}" \
13896           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13897    *)  func_stripname_result=`$ECHO "X${3}" \
13898           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13899  esac
13900}
13901
13902# sed scripts:
13903my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13904my_sed_long_arg='1s/^-[^=]*=//'
13905
13906# func_opt_split
13907func_opt_split ()
13908{
13909  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13910  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13911}
13912
13913# func_lo2o object
13914func_lo2o ()
13915{
13916  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13917}
13918
13919# func_xform libobj-or-source
13920func_xform ()
13921{
13922  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13923}
13924
13925# func_arith arithmetic-term...
13926func_arith ()
13927{
13928  func_arith_result=`expr "$@"`
13929}
13930
13931# func_len string
13932# STRING may not start with a hyphen.
13933func_len ()
13934{
13935  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13936}
13937
13938_LT_EOF
13939esac
13940
13941case $lt_shell_append in
13942  yes)
13943    cat << \_LT_EOF >> "$cfgfile"
13944
13945# func_append var value
13946# Append VALUE to the end of shell variable VAR.
13947func_append ()
13948{
13949  eval "$1+=\$2"
13950}
13951_LT_EOF
13952    ;;
13953  *)
13954    cat << \_LT_EOF >> "$cfgfile"
13955
13956# func_append var value
13957# Append VALUE to the end of shell variable VAR.
13958func_append ()
13959{
13960  eval "$1=\$$1\$2"
13961}
13962
13963_LT_EOF
13964    ;;
13965  esac
13966
13967
13968  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13969    || (rm -f "$cfgfile"; exit 1)
13970
13971  mv -f "$cfgfile" "$ofile" ||
13972    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13973  chmod +x "$ofile"
13974
13975 ;;
13976
13977  esac
13978done # for ac_tag
13979
13980
13981{ (exit 0); exit 0; }
13982_ACEOF
13983chmod +x $CONFIG_STATUS
13984ac_clean_files=$ac_clean_files_save
13985
13986test $ac_write_fail = 0 ||
13987  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13988$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13989   { (exit 1); exit 1; }; }
13990
13991
13992# configure is writing to config.log, and then calls config.status.
13993# config.status does its own redirection, appending to config.log.
13994# Unfortunately, on DOS this fails, as config.log is still kept open
13995# by configure, so config.status won't be able to write to it; its
13996# output is simply discarded.  So we exec the FD to /dev/null,
13997# effectively closing config.log, so it can be properly (re)opened and
13998# appended to by config.status.  When coming back to configure, we
13999# need to make the FD available again.
14000if test "$no_create" != yes; then
14001  ac_cs_success=:
14002  ac_config_status_args=
14003  test "$silent" = yes &&
14004    ac_config_status_args="$ac_config_status_args --quiet"
14005  exec 5>/dev/null
14006  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14007  exec 5>>config.log
14008  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14009  # would make configure fail if this is the last instruction.
14010  $ac_cs_success || { (exit 1); exit 1; }
14011fi
14012if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14013  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14014$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14015fi
14016
14017