1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libnet 1.1.6.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='libnet'
569PACKAGE_TARNAME='libnet'
570PACKAGE_VERSION='1.1.6'
571PACKAGE_STRING='libnet 1.1.6'
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575ac_unique_file="src/libnet_build_ip.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_default_prefix=/usr/local
613ac_subst_vars='am__EXEEXT_FALSE
614am__EXEEXT_TRUE
615INSTALL_SAMPLES_FALSE
616INSTALL_SAMPLES_TRUE
617LIBOBJS
618LTLIBOBJS
619LIBNET_CONFIG_CFLAGS
620LIBNET_CONFIG_LIBS
621LIBNET_CONFIG_DEFINES
622ADDITIONAL_LIBS
623HAVE_PACKET_SOCKET
624ENDIANESS
625OTOOL64
626OTOOL
627LIPO
628NMEDIT
629DSYMUTIL
630MANIFEST_TOOL
631RANLIB
632ac_ct_AR
633AR
634DLLTOOL
635OBJDUMP
636LN_S
637NM
638ac_ct_DUMPBIN
639DUMPBIN
640LD
641FGREP
642SED
643LIBTOOL
644EGREP
645GREP
646CPP
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650AMDEPBACKSLASH
651AMDEP_FALSE
652AMDEP_TRUE
653am__quote
654am__include
655DEPDIR
656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
666am__untar
667am__tar
668AMTAR
669am__leading_dot
670SET_MAKE
671AWK
672mkdir_p
673MKDIR_P
674INSTALL_STRIP_PROGRAM
675STRIP
676install_sh
677MAKEINFO
678AUTOHEADER
679AUTOMAKE
680AUTOCONF
681ACLOCAL
682VERSION
683PACKAGE
684CYGPATH_W
685am__isrc
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697build_os
698build_vendor
699build_cpu
700build
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
742enable_maintainer_mode
743enable_dependency_tracking
744enable_shared
745enable_static
746with_pic
747enable_fast_install
748with_gnu_ld
749with_sysroot
750enable_libtool_lock
751with_link_layer
752enable_samples
753'
754      ac_precious_vars='build_alias
755host_alias
756target_alias
757CC
758CFLAGS
759LDFLAGS
760LIBS
761CPPFLAGS
762CPP'
763
764
765# Initialize some variables set by options.
766ac_init_help=
767ac_init_version=false
768ac_unrecognized_opts=
769ac_unrecognized_sep=
770# The variables have the same names as the options, with
771# dashes changed to underlines.
772cache_file=/dev/null
773exec_prefix=NONE
774no_create=
775no_recursion=
776prefix=NONE
777program_prefix=NONE
778program_suffix=NONE
779program_transform_name=s,x,x,
780silent=
781site=
782srcdir=
783verbose=
784x_includes=NONE
785x_libraries=NONE
786
787# Installation directory options.
788# These are left unexpanded so users can "make install exec_prefix=/foo"
789# and all the variables that are supposed to be based on exec_prefix
790# by default will actually change.
791# Use braces instead of parens because sh, perl, etc. also accept them.
792# (The list follows the same order as the GNU Coding Standards.)
793bindir='${exec_prefix}/bin'
794sbindir='${exec_prefix}/sbin'
795libexecdir='${exec_prefix}/libexec'
796datarootdir='${prefix}/share'
797datadir='${datarootdir}'
798sysconfdir='${prefix}/etc'
799sharedstatedir='${prefix}/com'
800localstatedir='${prefix}/var'
801includedir='${prefix}/include'
802oldincludedir='/usr/include'
803docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804infodir='${datarootdir}/info'
805htmldir='${docdir}'
806dvidir='${docdir}'
807pdfdir='${docdir}'
808psdir='${docdir}'
809libdir='${exec_prefix}/lib'
810localedir='${datarootdir}/locale'
811mandir='${datarootdir}/man'
812
813ac_prev=
814ac_dashdash=
815for ac_option
816do
817  # If the previous option needs an argument, assign it.
818  if test -n "$ac_prev"; then
819    eval $ac_prev=\$ac_option
820    ac_prev=
821    continue
822  fi
823
824  case $ac_option in
825  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826  *=)   ac_optarg= ;;
827  *)    ac_optarg=yes ;;
828  esac
829
830  # Accept the important Cygnus configure options, so we can diagnose typos.
831
832  case $ac_dashdash$ac_option in
833  --)
834    ac_dashdash=yes ;;
835
836  -bindir | --bindir | --bindi | --bind | --bin | --bi)
837    ac_prev=bindir ;;
838  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839    bindir=$ac_optarg ;;
840
841  -build | --build | --buil | --bui | --bu)
842    ac_prev=build_alias ;;
843  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844    build_alias=$ac_optarg ;;
845
846  -cache-file | --cache-file | --cache-fil | --cache-fi \
847  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848    ac_prev=cache_file ;;
849  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851    cache_file=$ac_optarg ;;
852
853  --config-cache | -C)
854    cache_file=config.cache ;;
855
856  -datadir | --datadir | --datadi | --datad)
857    ac_prev=datadir ;;
858  -datadir=* | --datadir=* | --datadi=* | --datad=*)
859    datadir=$ac_optarg ;;
860
861  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862  | --dataroo | --dataro | --datar)
863    ac_prev=datarootdir ;;
864  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866    datarootdir=$ac_optarg ;;
867
868  -disable-* | --disable-*)
869    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870    # Reject names that are not valid shell variable names.
871    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872      as_fn_error $? "invalid feature name: $ac_useropt"
873    ac_useropt_orig=$ac_useropt
874    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875    case $ac_user_opts in
876      *"
877"enable_$ac_useropt"
878"*) ;;
879      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880	 ac_unrecognized_sep=', ';;
881    esac
882    eval enable_$ac_useropt=no ;;
883
884  -docdir | --docdir | --docdi | --doc | --do)
885    ac_prev=docdir ;;
886  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887    docdir=$ac_optarg ;;
888
889  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890    ac_prev=dvidir ;;
891  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892    dvidir=$ac_optarg ;;
893
894  -enable-* | --enable-*)
895    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896    # Reject names that are not valid shell variable names.
897    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898      as_fn_error $? "invalid feature name: $ac_useropt"
899    ac_useropt_orig=$ac_useropt
900    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901    case $ac_user_opts in
902      *"
903"enable_$ac_useropt"
904"*) ;;
905      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906	 ac_unrecognized_sep=', ';;
907    esac
908    eval enable_$ac_useropt=\$ac_optarg ;;
909
910  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912  | --exec | --exe | --ex)
913    ac_prev=exec_prefix ;;
914  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916  | --exec=* | --exe=* | --ex=*)
917    exec_prefix=$ac_optarg ;;
918
919  -gas | --gas | --ga | --g)
920    # Obsolete; use --with-gas.
921    with_gas=yes ;;
922
923  -help | --help | --hel | --he | -h)
924    ac_init_help=long ;;
925  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926    ac_init_help=recursive ;;
927  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928    ac_init_help=short ;;
929
930  -host | --host | --hos | --ho)
931    ac_prev=host_alias ;;
932  -host=* | --host=* | --hos=* | --ho=*)
933    host_alias=$ac_optarg ;;
934
935  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936    ac_prev=htmldir ;;
937  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938  | --ht=*)
939    htmldir=$ac_optarg ;;
940
941  -includedir | --includedir | --includedi | --included | --include \
942  | --includ | --inclu | --incl | --inc)
943    ac_prev=includedir ;;
944  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945  | --includ=* | --inclu=* | --incl=* | --inc=*)
946    includedir=$ac_optarg ;;
947
948  -infodir | --infodir | --infodi | --infod | --info | --inf)
949    ac_prev=infodir ;;
950  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951    infodir=$ac_optarg ;;
952
953  -libdir | --libdir | --libdi | --libd)
954    ac_prev=libdir ;;
955  -libdir=* | --libdir=* | --libdi=* | --libd=*)
956    libdir=$ac_optarg ;;
957
958  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959  | --libexe | --libex | --libe)
960    ac_prev=libexecdir ;;
961  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962  | --libexe=* | --libex=* | --libe=*)
963    libexecdir=$ac_optarg ;;
964
965  -localedir | --localedir | --localedi | --localed | --locale)
966    ac_prev=localedir ;;
967  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968    localedir=$ac_optarg ;;
969
970  -localstatedir | --localstatedir | --localstatedi | --localstated \
971  | --localstate | --localstat | --localsta | --localst | --locals)
972    ac_prev=localstatedir ;;
973  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975    localstatedir=$ac_optarg ;;
976
977  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978    ac_prev=mandir ;;
979  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980    mandir=$ac_optarg ;;
981
982  -nfp | --nfp | --nf)
983    # Obsolete; use --without-fp.
984    with_fp=no ;;
985
986  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987  | --no-cr | --no-c | -n)
988    no_create=yes ;;
989
990  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992    no_recursion=yes ;;
993
994  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996  | --oldin | --oldi | --old | --ol | --o)
997    ac_prev=oldincludedir ;;
998  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001    oldincludedir=$ac_optarg ;;
1002
1003  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004    ac_prev=prefix ;;
1005  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006    prefix=$ac_optarg ;;
1007
1008  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009  | --program-pre | --program-pr | --program-p)
1010    ac_prev=program_prefix ;;
1011  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013    program_prefix=$ac_optarg ;;
1014
1015  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016  | --program-suf | --program-su | --program-s)
1017    ac_prev=program_suffix ;;
1018  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020    program_suffix=$ac_optarg ;;
1021
1022  -program-transform-name | --program-transform-name \
1023  | --program-transform-nam | --program-transform-na \
1024  | --program-transform-n | --program-transform- \
1025  | --program-transform | --program-transfor \
1026  | --program-transfo | --program-transf \
1027  | --program-trans | --program-tran \
1028  | --progr-tra | --program-tr | --program-t)
1029    ac_prev=program_transform_name ;;
1030  -program-transform-name=* | --program-transform-name=* \
1031  | --program-transform-nam=* | --program-transform-na=* \
1032  | --program-transform-n=* | --program-transform-=* \
1033  | --program-transform=* | --program-transfor=* \
1034  | --program-transfo=* | --program-transf=* \
1035  | --program-trans=* | --program-tran=* \
1036  | --progr-tra=* | --program-tr=* | --program-t=*)
1037    program_transform_name=$ac_optarg ;;
1038
1039  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040    ac_prev=pdfdir ;;
1041  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042    pdfdir=$ac_optarg ;;
1043
1044  -psdir | --psdir | --psdi | --psd | --ps)
1045    ac_prev=psdir ;;
1046  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047    psdir=$ac_optarg ;;
1048
1049  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050  | -silent | --silent | --silen | --sile | --sil)
1051    silent=yes ;;
1052
1053  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054    ac_prev=sbindir ;;
1055  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056  | --sbi=* | --sb=*)
1057    sbindir=$ac_optarg ;;
1058
1059  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061  | --sharedst | --shareds | --shared | --share | --shar \
1062  | --sha | --sh)
1063    ac_prev=sharedstatedir ;;
1064  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067  | --sha=* | --sh=*)
1068    sharedstatedir=$ac_optarg ;;
1069
1070  -site | --site | --sit)
1071    ac_prev=site ;;
1072  -site=* | --site=* | --sit=*)
1073    site=$ac_optarg ;;
1074
1075  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076    ac_prev=srcdir ;;
1077  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078    srcdir=$ac_optarg ;;
1079
1080  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081  | --syscon | --sysco | --sysc | --sys | --sy)
1082    ac_prev=sysconfdir ;;
1083  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085    sysconfdir=$ac_optarg ;;
1086
1087  -target | --target | --targe | --targ | --tar | --ta | --t)
1088    ac_prev=target_alias ;;
1089  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090    target_alias=$ac_optarg ;;
1091
1092  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093    verbose=yes ;;
1094
1095  -version | --version | --versio | --versi | --vers | -V)
1096    ac_init_version=: ;;
1097
1098  -with-* | --with-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      as_fn_error $? "invalid package name: $ac_useropt"
1103    ac_useropt_orig=$ac_useropt
1104    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105    case $ac_user_opts in
1106      *"
1107"with_$ac_useropt"
1108"*) ;;
1109      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110	 ac_unrecognized_sep=', ';;
1111    esac
1112    eval with_$ac_useropt=\$ac_optarg ;;
1113
1114  -without-* | --without-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid package name: $ac_useropt"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"with_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval with_$ac_useropt=no ;;
1129
1130  --x)
1131    # Obsolete; use --with-x.
1132    with_x=yes ;;
1133
1134  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135  | --x-incl | --x-inc | --x-in | --x-i)
1136    ac_prev=x_includes ;;
1137  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139    x_includes=$ac_optarg ;;
1140
1141  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143    ac_prev=x_libraries ;;
1144  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146    x_libraries=$ac_optarg ;;
1147
1148  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1149Try \`$0 --help' for more information"
1150    ;;
1151
1152  *=*)
1153    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154    # Reject names that are not valid shell variable names.
1155    case $ac_envvar in #(
1156      '' | [0-9]* | *[!_$as_cr_alnum]* )
1157      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1158    esac
1159    eval $ac_envvar=\$ac_optarg
1160    export $ac_envvar ;;
1161
1162  *)
1163    # FIXME: should be removed in autoconf 3.0.
1164    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1168    ;;
1169
1170  esac
1171done
1172
1173if test -n "$ac_prev"; then
1174  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175  as_fn_error $? "missing argument to $ac_option"
1176fi
1177
1178if test -n "$ac_unrecognized_opts"; then
1179  case $enable_option_checking in
1180    no) ;;
1181    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1182    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183  esac
1184fi
1185
1186# Check all directory arguments for consistency.
1187for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188		datadir sysconfdir sharedstatedir localstatedir includedir \
1189		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190		libdir localedir mandir
1191do
1192  eval ac_val=\$$ac_var
1193  # Remove trailing slashes.
1194  case $ac_val in
1195    */ )
1196      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197      eval $ac_var=\$ac_val;;
1198  esac
1199  # Be sure to have absolute directory names.
1200  case $ac_val in
1201    [\\/$]* | ?:[\\/]* )  continue;;
1202    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203  esac
1204  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1205done
1206
1207# There might be people who depend on the old broken behavior: `$host'
1208# used to hold the argument of --host etc.
1209# FIXME: To remove some day.
1210build=$build_alias
1211host=$host_alias
1212target=$target_alias
1213
1214# FIXME: To remove some day.
1215if test "x$host_alias" != x; then
1216  if test "x$build_alias" = x; then
1217    cross_compiling=maybe
1218    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1219    If a cross compiler is detected then cross compile mode will be used" >&2
1220  elif test "x$build_alias" != "x$host_alias"; then
1221    cross_compiling=yes
1222  fi
1223fi
1224
1225ac_tool_prefix=
1226test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228test "$silent" = yes && exec 6>/dev/null
1229
1230
1231ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232ac_ls_di=`ls -di .` &&
1233ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234  as_fn_error $? "working directory cannot be determined"
1235test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236  as_fn_error $? "pwd does not report name of working directory"
1237
1238
1239# Find the source files, if location was not specified.
1240if test -z "$srcdir"; then
1241  ac_srcdir_defaulted=yes
1242  # Try the directory containing this script, then the parent directory.
1243  ac_confdir=`$as_dirname -- "$as_myself" ||
1244$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245	 X"$as_myself" : 'X\(//\)[^/]' \| \
1246	 X"$as_myself" : 'X\(//\)$' \| \
1247	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248$as_echo X"$as_myself" |
1249    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)[^/].*/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\/\)$/{
1258	    s//\1/
1259	    q
1260	  }
1261	  /^X\(\/\).*/{
1262	    s//\1/
1263	    q
1264	  }
1265	  s/.*/./; q'`
1266  srcdir=$ac_confdir
1267  if test ! -r "$srcdir/$ac_unique_file"; then
1268    srcdir=..
1269  fi
1270else
1271  ac_srcdir_defaulted=no
1272fi
1273if test ! -r "$srcdir/$ac_unique_file"; then
1274  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276fi
1277ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278ac_abs_confdir=`(
1279	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280	pwd)`
1281# When building in place, set srcdir=.
1282if test "$ac_abs_confdir" = "$ac_pwd"; then
1283  srcdir=.
1284fi
1285# Remove unnecessary trailing slashes from srcdir.
1286# Double slashes in file names in object file debugging info
1287# mess up M-x gdb in Emacs.
1288case $srcdir in
1289*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290esac
1291for ac_var in $ac_precious_vars; do
1292  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293  eval ac_env_${ac_var}_value=\$${ac_var}
1294  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296done
1297
1298#
1299# Report the --help message.
1300#
1301if test "$ac_init_help" = "long"; then
1302  # Omit some internal or obsolete options to make the list less imposing.
1303  # This message is too long to be a string in the A/UX 3.1 sh.
1304  cat <<_ACEOF
1305\`configure' configures libnet 1.1.6 to adapt to many kinds of systems.
1306
1307Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312Defaults for the options are specified in brackets.
1313
1314Configuration:
1315  -h, --help              display this help and exit
1316      --help=short        display options specific to this package
1317      --help=recursive    display the short help of all the included packages
1318  -V, --version           display version information and exit
1319  -q, --quiet, --silent   do not print \`checking ...' messages
1320      --cache-file=FILE   cache test results in FILE [disabled]
1321  -C, --config-cache      alias for \`--cache-file=config.cache'
1322  -n, --no-create         do not create output files
1323      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325Installation directories:
1326  --prefix=PREFIX         install architecture-independent files in PREFIX
1327                          [$ac_default_prefix]
1328  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                          [PREFIX]
1330
1331By default, \`make install' will install all the files in
1332\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334for instance \`--prefix=\$HOME'.
1335
1336For better control, use the options below.
1337
1338Fine tuning of the installation directories:
1339  --bindir=DIR            user executables [EPREFIX/bin]
1340  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1341  --libexecdir=DIR        program executables [EPREFIX/libexec]
1342  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1343  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1344  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1345  --libdir=DIR            object code libraries [EPREFIX/lib]
1346  --includedir=DIR        C header files [PREFIX/include]
1347  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1348  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1349  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1350  --infodir=DIR           info documentation [DATAROOTDIR/info]
1351  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1352  --mandir=DIR            man documentation [DATAROOTDIR/man]
1353  --docdir=DIR            documentation root [DATAROOTDIR/doc/libnet]
1354  --htmldir=DIR           html documentation [DOCDIR]
1355  --dvidir=DIR            dvi documentation [DOCDIR]
1356  --pdfdir=DIR            pdf documentation [DOCDIR]
1357  --psdir=DIR             ps documentation [DOCDIR]
1358_ACEOF
1359
1360  cat <<\_ACEOF
1361
1362Program names:
1363  --program-prefix=PREFIX            prepend PREFIX to installed program names
1364  --program-suffix=SUFFIX            append SUFFIX to installed program names
1365  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1366
1367System types:
1368  --build=BUILD     configure for building on BUILD [guessed]
1369  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1370  --target=TARGET   configure for building compilers for TARGET [HOST]
1371_ACEOF
1372fi
1373
1374if test -n "$ac_init_help"; then
1375  case $ac_init_help in
1376     short | recursive ) echo "Configuration of libnet 1.1.6:";;
1377   esac
1378  cat <<\_ACEOF
1379
1380Optional Features:
1381  --disable-option-checking  ignore unrecognized --enable/--with options
1382  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1383  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1384  --enable-maintainer-mode  enable make rules and dependencies not useful
1385			  (and sometimes confusing) to the casual installer
1386  --disable-dependency-tracking  speeds up one-time build
1387  --enable-dependency-tracking   do not reject slow dependency extractors
1388  --enable-shared[=PKGS]  build shared libraries [default=yes]
1389  --enable-static[=PKGS]  build static libraries [default=yes]
1390  --enable-fast-install[=PKGS]
1391                          optimize for fast installation [default=yes]
1392  --disable-libtool-lock  avoid locking (might break parallel builds)
1393  --enable-samples        install the sample programs [default=no]
1394
1395Optional Packages:
1396  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1397  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1398  --with-pic              try to use only PIC/non-PIC objects [default=use
1399                          both]
1400  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1401  --with-sysroot=DIR Search for dependent libraries within DIR
1402                        (or the compiler's sysroot if not specified).
1403  --with-link-layer       when cross-compiling, one of * from libnet_link_*.c
1404                          [autodetect]
1405
1406
1407Some influential environment variables:
1408  CC          C compiler command
1409  CFLAGS      C compiler flags
1410  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1411              nonstandard directory <lib dir>
1412  LIBS        libraries to pass to the linker, e.g. -l<library>
1413  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414              you have headers in a nonstandard directory <include dir>
1415  CPP         C preprocessor
1416
1417Use these variables to override the choices made by `configure' or to help
1418it to find libraries and programs with nonstandard names/locations.
1419
1420Report bugs to the package provider.
1421_ACEOF
1422ac_status=$?
1423fi
1424
1425if test "$ac_init_help" = "recursive"; then
1426  # If there are subdirs, report their specific --help.
1427  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428    test -d "$ac_dir" ||
1429      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430      continue
1431    ac_builddir=.
1432
1433case "$ac_dir" in
1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435*)
1436  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437  # A ".." for each directory in $ac_dir_suffix.
1438  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439  case $ac_top_builddir_sub in
1440  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442  esac ;;
1443esac
1444ac_abs_top_builddir=$ac_pwd
1445ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446# for backward compatibility:
1447ac_top_builddir=$ac_top_build_prefix
1448
1449case $srcdir in
1450  .)  # We are building in place.
1451    ac_srcdir=.
1452    ac_top_srcdir=$ac_top_builddir_sub
1453    ac_abs_top_srcdir=$ac_pwd ;;
1454  [\\/]* | ?:[\\/]* )  # Absolute name.
1455    ac_srcdir=$srcdir$ac_dir_suffix;
1456    ac_top_srcdir=$srcdir
1457    ac_abs_top_srcdir=$srcdir ;;
1458  *) # Relative name.
1459    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460    ac_top_srcdir=$ac_top_build_prefix$srcdir
1461    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462esac
1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465    cd "$ac_dir" || { ac_status=$?; continue; }
1466    # Check for guested configure.
1467    if test -f "$ac_srcdir/configure.gnu"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470    elif test -f "$ac_srcdir/configure"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure" --help=recursive
1473    else
1474      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475    fi || ac_status=$?
1476    cd "$ac_pwd" || { ac_status=$?; break; }
1477  done
1478fi
1479
1480test -n "$ac_init_help" && exit $ac_status
1481if $ac_init_version; then
1482  cat <<\_ACEOF
1483libnet configure 1.1.6
1484generated by GNU Autoconf 2.68
1485
1486Copyright (C) 2010 Free Software Foundation, Inc.
1487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
1490  exit
1491fi
1492
1493## ------------------------ ##
1494## Autoconf initialization. ##
1495## ------------------------ ##
1496
1497# ac_fn_c_try_compile LINENO
1498# --------------------------
1499# Try to compile conftest.$ac_ext, and return whether this succeeded.
1500ac_fn_c_try_compile ()
1501{
1502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503  rm -f conftest.$ac_objext
1504  if { { ac_try="$ac_compile"
1505case "(($ac_try" in
1506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507  *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511  (eval "$ac_compile") 2>conftest.err
1512  ac_status=$?
1513  if test -s conftest.err; then
1514    grep -v '^ *+' conftest.err >conftest.er1
1515    cat conftest.er1 >&5
1516    mv -f conftest.er1 conftest.err
1517  fi
1518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519  test $ac_status = 0; } && {
1520	 test -z "$ac_c_werror_flag" ||
1521	 test ! -s conftest.err
1522       } && test -s conftest.$ac_objext; then :
1523  ac_retval=0
1524else
1525  $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
1527
1528	ac_retval=1
1529fi
1530  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531  as_fn_set_status $ac_retval
1532
1533} # ac_fn_c_try_compile
1534
1535# ac_fn_c_try_cpp LINENO
1536# ----------------------
1537# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_cpp ()
1539{
1540  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541  if { { ac_try="$ac_cpp conftest.$ac_ext"
1542case "(($ac_try" in
1543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544  *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1549  ac_status=$?
1550  if test -s conftest.err; then
1551    grep -v '^ *+' conftest.err >conftest.er1
1552    cat conftest.er1 >&5
1553    mv -f conftest.er1 conftest.err
1554  fi
1555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556  test $ac_status = 0; } > conftest.i && {
1557	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558	 test ! -s conftest.err
1559       }; then :
1560  ac_retval=0
1561else
1562  $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565    ac_retval=1
1566fi
1567  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568  as_fn_set_status $ac_retval
1569
1570} # ac_fn_c_try_cpp
1571
1572# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1573# -------------------------------------------------------
1574# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1575# the include files in INCLUDES and setting the cache variable VAR
1576# accordingly.
1577ac_fn_c_check_header_mongrel ()
1578{
1579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580  if eval \${$3+:} false; then :
1581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582$as_echo_n "checking for $2... " >&6; }
1583if eval \${$3+:} false; then :
1584  $as_echo_n "(cached) " >&6
1585fi
1586eval ac_res=\$$3
1587	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588$as_echo "$ac_res" >&6; }
1589else
1590  # Is the header compilable?
1591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1592$as_echo_n "checking $2 usability... " >&6; }
1593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594/* end confdefs.h.  */
1595$4
1596#include <$2>
1597_ACEOF
1598if ac_fn_c_try_compile "$LINENO"; then :
1599  ac_header_compiler=yes
1600else
1601  ac_header_compiler=no
1602fi
1603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1605$as_echo "$ac_header_compiler" >&6; }
1606
1607# Is the header present?
1608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1609$as_echo_n "checking $2 presence... " >&6; }
1610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h.  */
1612#include <$2>
1613_ACEOF
1614if ac_fn_c_try_cpp "$LINENO"; then :
1615  ac_header_preproc=yes
1616else
1617  ac_header_preproc=no
1618fi
1619rm -f conftest.err conftest.i conftest.$ac_ext
1620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1621$as_echo "$ac_header_preproc" >&6; }
1622
1623# So?  What about this header?
1624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1625  yes:no: )
1626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1627$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1629$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1630    ;;
1631  no:yes:* )
1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1633$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1634    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1635$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1637$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1639$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642    ;;
1643esac
1644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645$as_echo_n "checking for $2... " >&6; }
1646if eval \${$3+:} false; then :
1647  $as_echo_n "(cached) " >&6
1648else
1649  eval "$3=\$ac_header_compiler"
1650fi
1651eval ac_res=\$$3
1652	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654fi
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657} # ac_fn_c_check_header_mongrel
1658
1659# ac_fn_c_try_run LINENO
1660# ----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662# that executables *can* be run.
1663ac_fn_c_try_run ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_link") 2>&5
1674  ac_status=$?
1675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677  { { case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_try") 2>&5
1684  ac_status=$?
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; }; }; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: program exited with status $ac_status" >&5
1690       $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693       ac_retval=$ac_status
1694fi
1695  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_run
1700
1701# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702# -------------------------------------------------------
1703# Tests whether HEADER exists and can be compiled using the include files in
1704# INCLUDES, setting the cache variable VAR accordingly.
1705ac_fn_c_check_header_compile ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709$as_echo_n "checking for $2... " >&6; }
1710if eval \${$3+:} false; then :
1711  $as_echo_n "(cached) " >&6
1712else
1713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h.  */
1715$4
1716#include <$2>
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719  eval "$3=yes"
1720else
1721  eval "$3=no"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724fi
1725eval ac_res=\$$3
1726	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730} # ac_fn_c_check_header_compile
1731
1732# ac_fn_c_try_link LINENO
1733# -----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_link ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  rm -f conftest.$ac_objext conftest$ac_exeext
1739  if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746  (eval "$ac_link") 2>conftest.err
1747  ac_status=$?
1748  if test -s conftest.err; then
1749    grep -v '^ *+' conftest.err >conftest.er1
1750    cat conftest.er1 >&5
1751    mv -f conftest.er1 conftest.err
1752  fi
1753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; } && {
1755	 test -z "$ac_c_werror_flag" ||
1756	 test ! -s conftest.err
1757       } && test -s conftest$ac_exeext && {
1758	 test "$cross_compiling" = yes ||
1759	 $as_test_x conftest$ac_exeext
1760       }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766	ac_retval=1
1767fi
1768  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770  # interfere with the next link command; also delete a directory that is
1771  # left behind by Apple's compiler.  We do this before executing the actions.
1772  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_link
1777
1778# ac_fn_c_check_func LINENO FUNC VAR
1779# ----------------------------------
1780# Tests whether FUNC exists, setting the cache variable VAR accordingly
1781ac_fn_c_check_func ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1793#define $2 innocuous_$2
1794
1795/* System header to define __stub macros and hopefully few prototypes,
1796    which can conflict with char $2 (); below.
1797    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798    <limits.h> exists even on freestanding compilers.  */
1799
1800#ifdef __STDC__
1801# include <limits.h>
1802#else
1803# include <assert.h>
1804#endif
1805
1806#undef $2
1807
1808/* Override any GCC internal prototype to avoid an error.
1809   Use char because int might match the return type of a GCC
1810   builtin and then its argument prototype would still apply.  */
1811#ifdef __cplusplus
1812extern "C"
1813#endif
1814char $2 ();
1815/* The GNU C library defines this for functions which it implements
1816    to always fail with ENOSYS.  Some functions are actually named
1817    something starting with __ and the normal name is an alias.  */
1818#if defined __stub_$2 || defined __stub___$2
1819choke me
1820#endif
1821
1822int
1823main ()
1824{
1825return $2 ();
1826  ;
1827  return 0;
1828}
1829_ACEOF
1830if ac_fn_c_try_link "$LINENO"; then :
1831  eval "$3=yes"
1832else
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext \
1836    conftest$ac_exeext conftest.$ac_ext
1837fi
1838eval ac_res=\$$3
1839	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840$as_echo "$ac_res" >&6; }
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843} # ac_fn_c_check_func
1844
1845# ac_fn_c_find_uintX_t LINENO BITS VAR
1846# ------------------------------------
1847# Finds an unsigned integer type with width BITS, setting cache variable VAR
1848# accordingly.
1849ac_fn_c_find_uintX_t ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1853$as_echo_n "checking for uint$2_t... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  eval "$3=no"
1858     # Order is important - never check a type that is potentially smaller
1859     # than half of the expected target width.
1860     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1861	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1862       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h.  */
1864$ac_includes_default
1865int
1866main ()
1867{
1868static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1869test_array [0] = 0
1870
1871  ;
1872  return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876  case $ac_type in #(
1877  uint$2_t) :
1878    eval "$3=yes" ;; #(
1879  *) :
1880    eval "$3=\$ac_type" ;;
1881esac
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884       if eval test \"x\$"$3"\" = x"no"; then :
1885
1886else
1887  break
1888fi
1889     done
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_find_uintX_t
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by libnet $as_me 1.1.6, which was
1902generated by GNU Autoconf 2.68.  Invocation command line was
1903
1904  $ $0 $@
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938    $as_echo "PATH: $as_dir"
1939  done
1940IFS=$as_save_IFS
1941
1942} >&5
1943
1944cat >&5 <<_ACEOF
1945
1946
1947## ----------- ##
1948## Core tests. ##
1949## ----------- ##
1950
1951_ACEOF
1952
1953
1954# Keep a trace of the command line.
1955# Strip out --no-create and --no-recursion so they do not pile up.
1956# Strip out --silent because we don't want to record it for future runs.
1957# Also quote any args containing shell meta-characters.
1958# Make two passes to allow for proper duplicate-argument suppression.
1959ac_configure_args=
1960ac_configure_args0=
1961ac_configure_args1=
1962ac_must_keep_next=false
1963for ac_pass in 1 2
1964do
1965  for ac_arg
1966  do
1967    case $ac_arg in
1968    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970    | -silent | --silent | --silen | --sile | --sil)
1971      continue ;;
1972    *\'*)
1973      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974    esac
1975    case $ac_pass in
1976    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977    2)
1978      as_fn_append ac_configure_args1 " '$ac_arg'"
1979      if test $ac_must_keep_next = true; then
1980	ac_must_keep_next=false # Got value, back to normal.
1981      else
1982	case $ac_arg in
1983	  *=* | --config-cache | -C | -disable-* | --disable-* \
1984	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986	  | -with-* | --with-* | -without-* | --without-* | --x)
1987	    case "$ac_configure_args0 " in
1988	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989	    esac
1990	    ;;
1991	  -* ) ac_must_keep_next=true ;;
1992	esac
1993      fi
1994      as_fn_append ac_configure_args " '$ac_arg'"
1995      ;;
1996    esac
1997  done
1998done
1999{ ac_configure_args0=; unset ac_configure_args0;}
2000{ ac_configure_args1=; unset ac_configure_args1;}
2001
2002# When interrupted or exit'd, cleanup temporary files, and complete
2003# config.log.  We remove comments because anyway the quotes in there
2004# would cause problems or look ugly.
2005# WARNING: Use '\'' to represent an apostrophe within the trap.
2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007trap 'exit_status=$?
2008  # Save into config.log some information that might help in debugging.
2009  {
2010    echo
2011
2012    $as_echo "## ---------------- ##
2013## Cache variables. ##
2014## ---------------- ##"
2015    echo
2016    # The following way of writing the cache mishandles newlines in values,
2017(
2018  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019    eval ac_val=\$$ac_var
2020    case $ac_val in #(
2021    *${as_nl}*)
2022      case $ac_var in #(
2023      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025      esac
2026      case $ac_var in #(
2027      _ | IFS | as_nl) ;; #(
2028      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029      *) { eval $ac_var=; unset $ac_var;} ;;
2030      esac ;;
2031    esac
2032  done
2033  (set) 2>&1 |
2034    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035    *${as_nl}ac_space=\ *)
2036      sed -n \
2037	"s/'\''/'\''\\\\'\'''\''/g;
2038	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039      ;; #(
2040    *)
2041      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042      ;;
2043    esac |
2044    sort
2045)
2046    echo
2047
2048    $as_echo "## ----------------- ##
2049## Output variables. ##
2050## ----------------- ##"
2051    echo
2052    for ac_var in $ac_subst_vars
2053    do
2054      eval ac_val=\$$ac_var
2055      case $ac_val in
2056      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057      esac
2058      $as_echo "$ac_var='\''$ac_val'\''"
2059    done | sort
2060    echo
2061
2062    if test -n "$ac_subst_files"; then
2063      $as_echo "## ------------------- ##
2064## File substitutions. ##
2065## ------------------- ##"
2066      echo
2067      for ac_var in $ac_subst_files
2068      do
2069	eval ac_val=\$$ac_var
2070	case $ac_val in
2071	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072	esac
2073	$as_echo "$ac_var='\''$ac_val'\''"
2074      done | sort
2075      echo
2076    fi
2077
2078    if test -s confdefs.h; then
2079      $as_echo "## ----------- ##
2080## confdefs.h. ##
2081## ----------- ##"
2082      echo
2083      cat confdefs.h
2084      echo
2085    fi
2086    test "$ac_signal" != 0 &&
2087      $as_echo "$as_me: caught signal $ac_signal"
2088    $as_echo "$as_me: exit $exit_status"
2089  } >&5
2090  rm -f core *.core core.conftest.* &&
2091    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092    exit $exit_status
2093' 0
2094for ac_signal in 1 2 13 15; do
2095  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096done
2097ac_signal=0
2098
2099# confdefs.h avoids OS command line length limits that DEFS can exceed.
2100rm -f -r conftest* confdefs.h
2101
2102$as_echo "/* confdefs.h */" > confdefs.h
2103
2104# Predefined preprocessor variables.
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_NAME "$PACKAGE_NAME"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_VERSION "$PACKAGE_VERSION"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_STRING "$PACKAGE_STRING"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_URL "$PACKAGE_URL"
2128_ACEOF
2129
2130
2131# Let the site file select an alternate cache file if it wants to.
2132# Prefer an explicitly selected file to automatically selected ones.
2133ac_site_file1=NONE
2134ac_site_file2=NONE
2135if test -n "$CONFIG_SITE"; then
2136  # We do not want a PATH search for config.site.
2137  case $CONFIG_SITE in #((
2138    -*)  ac_site_file1=./$CONFIG_SITE;;
2139    */*) ac_site_file1=$CONFIG_SITE;;
2140    *)   ac_site_file1=./$CONFIG_SITE;;
2141  esac
2142elif test "x$prefix" != xNONE; then
2143  ac_site_file1=$prefix/share/config.site
2144  ac_site_file2=$prefix/etc/config.site
2145else
2146  ac_site_file1=$ac_default_prefix/share/config.site
2147  ac_site_file2=$ac_default_prefix/etc/config.site
2148fi
2149for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150do
2151  test "x$ac_site_file" = xNONE && continue
2152  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155    sed 's/^/| /' "$ac_site_file" >&5
2156    . "$ac_site_file" \
2157      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159as_fn_error $? "failed to load site script $ac_site_file
2160See \`config.log' for more details" "$LINENO" 5; }
2161  fi
2162done
2163
2164if test -r "$cache_file"; then
2165  # Some versions of bash will fail to source /dev/null (special files
2166  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2167  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169$as_echo "$as_me: loading cache $cache_file" >&6;}
2170    case $cache_file in
2171      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172      *)                      . "./$cache_file";;
2173    esac
2174  fi
2175else
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177$as_echo "$as_me: creating cache $cache_file" >&6;}
2178  >$cache_file
2179fi
2180
2181# Check that the precious variables saved in the cache have kept the same
2182# value.
2183ac_cache_corrupted=false
2184for ac_var in $ac_precious_vars; do
2185  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186  eval ac_new_set=\$ac_env_${ac_var}_set
2187  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188  eval ac_new_val=\$ac_env_${ac_var}_value
2189  case $ac_old_set,$ac_new_set in
2190    set,)
2191      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193      ac_cache_corrupted=: ;;
2194    ,set)
2195      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197      ac_cache_corrupted=: ;;
2198    ,);;
2199    *)
2200      if test "x$ac_old_val" != "x$ac_new_val"; then
2201	# differences in whitespace do not lead to failure.
2202	ac_old_val_w=`echo x $ac_old_val`
2203	ac_new_val_w=`echo x $ac_new_val`
2204	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207	  ac_cache_corrupted=:
2208	else
2209	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211	  eval $ac_var=\$ac_old_val
2212	fi
2213	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2214$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2216$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2217      fi;;
2218  esac
2219  # Pass precious variables to config.status.
2220  if test "$ac_new_set" = set; then
2221    case $ac_new_val in
2222    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223    *) ac_arg=$ac_var=$ac_new_val ;;
2224    esac
2225    case " $ac_configure_args " in
2226      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2227      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228    esac
2229  fi
2230done
2231if $ac_cache_corrupted; then
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237fi
2238## -------------------- ##
2239## Main body of script. ##
2240## -------------------- ##
2241
2242ac_ext=c
2243ac_cpp='$CPP $CPPFLAGS'
2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ..." >&5
2250$as_echo "beginning autoconfiguration process for libnet-${PACKAGE_VERSION} ..." >&6; }
2251ac_aux_dir=
2252for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2253  if test -f "$ac_dir/install-sh"; then
2254    ac_aux_dir=$ac_dir
2255    ac_install_sh="$ac_aux_dir/install-sh -c"
2256    break
2257  elif test -f "$ac_dir/install.sh"; then
2258    ac_aux_dir=$ac_dir
2259    ac_install_sh="$ac_aux_dir/install.sh -c"
2260    break
2261  elif test -f "$ac_dir/shtool"; then
2262    ac_aux_dir=$ac_dir
2263    ac_install_sh="$ac_aux_dir/shtool install -c"
2264    break
2265  fi
2266done
2267if test -z "$ac_aux_dir"; then
2268  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2269fi
2270
2271# These three variables are undocumented and unsupported,
2272# and are intended to be withdrawn in a future Autoconf release.
2273# They can cause serious problems if a builder's source tree is in a directory
2274# whose full name contains unusual characters.
2275ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2276ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2277ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2278
2279
2280# Make sure we can run config.sub.
2281$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2282  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2283
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2285$as_echo_n "checking build system type... " >&6; }
2286if ${ac_cv_build+:} false; then :
2287  $as_echo_n "(cached) " >&6
2288else
2289  ac_build_alias=$build_alias
2290test "x$ac_build_alias" = x &&
2291  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2292test "x$ac_build_alias" = x &&
2293  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2294ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2295  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2296
2297fi
2298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2299$as_echo "$ac_cv_build" >&6; }
2300case $ac_cv_build in
2301*-*-*) ;;
2302*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2303esac
2304build=$ac_cv_build
2305ac_save_IFS=$IFS; IFS='-'
2306set x $ac_cv_build
2307shift
2308build_cpu=$1
2309build_vendor=$2
2310shift; shift
2311# Remember, the first character of IFS is used to create $*,
2312# except with old shells:
2313build_os=$*
2314IFS=$ac_save_IFS
2315case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2316
2317
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2319$as_echo_n "checking host system type... " >&6; }
2320if ${ac_cv_host+:} false; then :
2321  $as_echo_n "(cached) " >&6
2322else
2323  if test "x$host_alias" = x; then
2324  ac_cv_host=$ac_cv_build
2325else
2326  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2327    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2328fi
2329
2330fi
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2332$as_echo "$ac_cv_host" >&6; }
2333case $ac_cv_host in
2334*-*-*) ;;
2335*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2336esac
2337host=$ac_cv_host
2338ac_save_IFS=$IFS; IFS='-'
2339set x $ac_cv_host
2340shift
2341host_cpu=$1
2342host_vendor=$2
2343shift; shift
2344# Remember, the first character of IFS is used to create $*,
2345# except with old shells:
2346host_os=$*
2347IFS=$ac_save_IFS
2348case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2349
2350
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2352$as_echo_n "checking target system type... " >&6; }
2353if ${ac_cv_target+:} false; then :
2354  $as_echo_n "(cached) " >&6
2355else
2356  if test "x$target_alias" = x; then
2357  ac_cv_target=$ac_cv_host
2358else
2359  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2360    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2361fi
2362
2363fi
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2365$as_echo "$ac_cv_target" >&6; }
2366case $ac_cv_target in
2367*-*-*) ;;
2368*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2369esac
2370target=$ac_cv_target
2371ac_save_IFS=$IFS; IFS='-'
2372set x $ac_cv_target
2373shift
2374target_cpu=$1
2375target_vendor=$2
2376shift; shift
2377# Remember, the first character of IFS is used to create $*,
2378# except with old shells:
2379target_os=$*
2380IFS=$ac_save_IFS
2381case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2382
2383
2384# The aliases save the names the user supplied, while $host etc.
2385# will get canonicalized.
2386test -n "$target_alias" &&
2387  test "$program_prefix$program_suffix$program_transform_name" = \
2388    NONENONEs,x,x, &&
2389  program_prefix=${target_alias}-
2390
2391
2392
2393am__api_version='1.11'
2394
2395# Find a good install program.  We prefer a C program (faster),
2396# so one script is as good as another.  But avoid the broken or
2397# incompatible versions:
2398# SysV /etc/install, /usr/sbin/install
2399# SunOS /usr/etc/install
2400# IRIX /sbin/install
2401# AIX /bin/install
2402# AmigaOS /C/install, which installs bootblocks on floppy discs
2403# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2404# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2405# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2406# OS/2's system install, which has a completely different semantic
2407# ./install, which can be erroneously created by make from ./install.sh.
2408# Reject install programs that cannot install multiple files.
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2410$as_echo_n "checking for a BSD-compatible install... " >&6; }
2411if test -z "$INSTALL"; then
2412if ${ac_cv_path_install+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420    # Account for people who put trailing slashes in PATH elements.
2421case $as_dir/ in #((
2422  ./ | .// | /[cC]/* | \
2423  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2424  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2425  /usr/ucb/* ) ;;
2426  *)
2427    # OSF1 and SCO ODT 3.0 have their own names for install.
2428    # Don't use installbsd from OSF since it installs stuff as root
2429    # by default.
2430    for ac_prog in ginstall scoinst install; do
2431      for ac_exec_ext in '' $ac_executable_extensions; do
2432	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2433	  if test $ac_prog = install &&
2434	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2435	    # AIX install.  It has an incompatible calling convention.
2436	    :
2437	  elif test $ac_prog = install &&
2438	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439	    # program-specific install script used by HP pwplus--don't use.
2440	    :
2441	  else
2442	    rm -rf conftest.one conftest.two conftest.dir
2443	    echo one > conftest.one
2444	    echo two > conftest.two
2445	    mkdir conftest.dir
2446	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2447	      test -s conftest.one && test -s conftest.two &&
2448	      test -s conftest.dir/conftest.one &&
2449	      test -s conftest.dir/conftest.two
2450	    then
2451	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452	      break 3
2453	    fi
2454	  fi
2455	fi
2456      done
2457    done
2458    ;;
2459esac
2460
2461  done
2462IFS=$as_save_IFS
2463
2464rm -rf conftest.one conftest.two conftest.dir
2465
2466fi
2467  if test "${ac_cv_path_install+set}" = set; then
2468    INSTALL=$ac_cv_path_install
2469  else
2470    # As a last resort, use the slow shell script.  Don't cache a
2471    # value for INSTALL within a source directory, because that will
2472    # break other packages using the cache if that directory is
2473    # removed, or if the value is a relative name.
2474    INSTALL=$ac_install_sh
2475  fi
2476fi
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2478$as_echo "$INSTALL" >&6; }
2479
2480# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2481# It thinks the first close brace ends the variable substitution.
2482test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2483
2484test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2485
2486test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2489$as_echo_n "checking whether build environment is sane... " >&6; }
2490# Just in case
2491sleep 1
2492echo timestamp > conftest.file
2493# Reject unsafe characters in $srcdir or the absolute working directory
2494# name.  Accept space and tab only in the latter.
2495am_lf='
2496'
2497case `pwd` in
2498  *[\\\"\#\$\&\'\`$am_lf]*)
2499    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2500esac
2501case $srcdir in
2502  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2503    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2504esac
2505
2506# Do `set' in a subshell so we don't clobber the current shell's
2507# arguments.  Must try -L first in case configure is actually a
2508# symlink; some systems play weird games with the mod time of symlinks
2509# (eg FreeBSD returns the mod time of the symlink's containing
2510# directory).
2511if (
2512   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2513   if test "$*" = "X"; then
2514      # -L didn't work.
2515      set X `ls -t "$srcdir/configure" conftest.file`
2516   fi
2517   rm -f conftest.file
2518   if test "$*" != "X $srcdir/configure conftest.file" \
2519      && test "$*" != "X conftest.file $srcdir/configure"; then
2520
2521      # If neither matched, then we have a broken ls.  This can happen
2522      # if, for instance, CONFIG_SHELL is bash and it inherits a
2523      # broken ls alias from the environment.  This has actually
2524      # happened.  Such a system could not be considered "sane".
2525      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2526alias in your environment" "$LINENO" 5
2527   fi
2528
2529   test "$2" = conftest.file
2530   )
2531then
2532   # Ok.
2533   :
2534else
2535   as_fn_error $? "newly created file is older than distributed files!
2536Check your system clock" "$LINENO" 5
2537fi
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2539$as_echo "yes" >&6; }
2540test "$program_prefix" != NONE &&
2541  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2542# Use a double $ so make ignores it.
2543test "$program_suffix" != NONE &&
2544  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2545# Double any \ or $.
2546# By default was `s,x,x', remove it if useless.
2547ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2548program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2549
2550# expand $ac_aux_dir to an absolute path
2551am_aux_dir=`cd $ac_aux_dir && pwd`
2552
2553if test x"${MISSING+set}" != xset; then
2554  case $am_aux_dir in
2555  *\ * | *\	*)
2556    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2557  *)
2558    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2559  esac
2560fi
2561# Use eval to expand $SHELL
2562if eval "$MISSING --run true"; then
2563  am_missing_run="$MISSING --run "
2564else
2565  am_missing_run=
2566  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2567$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2568fi
2569
2570if test x"${install_sh}" != xset; then
2571  case $am_aux_dir in
2572  *\ * | *\	*)
2573    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2574  *)
2575    install_sh="\${SHELL} $am_aux_dir/install-sh"
2576  esac
2577fi
2578
2579# Installed binaries are usually stripped using `strip' when the user
2580# run `make install-strip'.  However `strip' might not be the right
2581# tool to use in cross-compilation environments, therefore Automake
2582# will honor the `STRIP' environment variable to overrule this program.
2583if test "$cross_compiling" != no; then
2584  if test -n "$ac_tool_prefix"; then
2585  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}strip; ac_word=$2
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588$as_echo_n "checking for $ac_word... " >&6; }
2589if ${ac_cv_prog_STRIP+:} false; then :
2590  $as_echo_n "(cached) " >&6
2591else
2592  if test -n "$STRIP"; then
2593  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    for ac_exec_ext in '' $ac_executable_extensions; do
2601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607  done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612STRIP=$ac_cv_prog_STRIP
2613if test -n "$STRIP"; then
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2615$as_echo "$STRIP" >&6; }
2616else
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618$as_echo "no" >&6; }
2619fi
2620
2621
2622fi
2623if test -z "$ac_cv_prog_STRIP"; then
2624  ac_ct_STRIP=$STRIP
2625  # Extract the first word of "strip", so it can be a program name with args.
2626set dummy strip; ac_word=$2
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2630  $as_echo_n "(cached) " >&6
2631else
2632  if test -n "$ac_ct_STRIP"; then
2633  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640    for ac_exec_ext in '' $ac_executable_extensions; do
2641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642    ac_cv_prog_ac_ct_STRIP="strip"
2643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644    break 2
2645  fi
2646done
2647  done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2653if test -n "$ac_ct_STRIP"; then
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2655$as_echo "$ac_ct_STRIP" >&6; }
2656else
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659fi
2660
2661  if test "x$ac_ct_STRIP" = x; then
2662    STRIP=":"
2663  else
2664    case $cross_compiling:$ac_tool_warned in
2665yes:)
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2668ac_tool_warned=yes ;;
2669esac
2670    STRIP=$ac_ct_STRIP
2671  fi
2672else
2673  STRIP="$ac_cv_prog_STRIP"
2674fi
2675
2676fi
2677INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2678
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2680$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2681if test -z "$MKDIR_P"; then
2682  if ${ac_cv_path_mkdir+:} false; then :
2683  $as_echo_n "(cached) " >&6
2684else
2685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690    for ac_prog in mkdir gmkdir; do
2691	 for ac_exec_ext in '' $ac_executable_extensions; do
2692	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2693	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2694	     'mkdir (GNU coreutils) '* | \
2695	     'mkdir (coreutils) '* | \
2696	     'mkdir (fileutils) '4.1*)
2697	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2698	       break 3;;
2699	   esac
2700	 done
2701       done
2702  done
2703IFS=$as_save_IFS
2704
2705fi
2706
2707  test -d ./--version && rmdir ./--version
2708  if test "${ac_cv_path_mkdir+set}" = set; then
2709    MKDIR_P="$ac_cv_path_mkdir -p"
2710  else
2711    # As a last resort, use the slow shell script.  Don't cache a
2712    # value for MKDIR_P within a source directory, because that will
2713    # break other packages using the cache if that directory is
2714    # removed, or if the value is a relative name.
2715    MKDIR_P="$ac_install_sh -d"
2716  fi
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2719$as_echo "$MKDIR_P" >&6; }
2720
2721mkdir_p="$MKDIR_P"
2722case $mkdir_p in
2723  [\\/$]* | ?:[\\/]*) ;;
2724  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2725esac
2726
2727for ac_prog in gawk mawk nawk awk
2728do
2729  # Extract the first word of "$ac_prog", so it can be a program name with args.
2730set dummy $ac_prog; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if ${ac_cv_prog_AWK+:} false; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$AWK"; then
2737  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746    ac_cv_prog_AWK="$ac_prog"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756AWK=$ac_cv_prog_AWK
2757if test -n "$AWK"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2759$as_echo "$AWK" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  test -n "$AWK" && break
2767done
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2770$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2771set x ${MAKE-make}
2772ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2773if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  cat >conftest.make <<\_ACEOF
2777SHELL = /bin/sh
2778all:
2779	@echo '@@@%%%=$(MAKE)=@@@%%%'
2780_ACEOF
2781# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2782case `${MAKE-make} -f conftest.make 2>/dev/null` in
2783  *@@@%%%=?*=@@@%%%*)
2784    eval ac_cv_prog_make_${ac_make}_set=yes;;
2785  *)
2786    eval ac_cv_prog_make_${ac_make}_set=no;;
2787esac
2788rm -f conftest.make
2789fi
2790if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2792$as_echo "yes" >&6; }
2793  SET_MAKE=
2794else
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796$as_echo "no" >&6; }
2797  SET_MAKE="MAKE=${MAKE-make}"
2798fi
2799
2800rm -rf .tst 2>/dev/null
2801mkdir .tst 2>/dev/null
2802if test -d .tst; then
2803  am__leading_dot=.
2804else
2805  am__leading_dot=_
2806fi
2807rmdir .tst 2>/dev/null
2808
2809if test "`cd $srcdir && pwd`" != "`pwd`"; then
2810  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2811  # is not polluted with repeated "-I."
2812  am__isrc=' -I$(srcdir)'
2813  # test to see if srcdir already configured
2814  if test -f $srcdir/config.status; then
2815    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2816  fi
2817fi
2818
2819# test whether we have cygpath
2820if test -z "$CYGPATH_W"; then
2821  if (cygpath --version) >/dev/null 2>/dev/null; then
2822    CYGPATH_W='cygpath -w'
2823  else
2824    CYGPATH_W=echo
2825  fi
2826fi
2827
2828
2829# Define the identity of the package.
2830 PACKAGE='libnet'
2831 VERSION='1.1.6'
2832
2833
2834cat >>confdefs.h <<_ACEOF
2835#define PACKAGE "$PACKAGE"
2836_ACEOF
2837
2838
2839cat >>confdefs.h <<_ACEOF
2840#define VERSION "$VERSION"
2841_ACEOF
2842
2843# Some tools Automake needs.
2844
2845ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846
2847
2848AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849
2850
2851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852
2853
2854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855
2856
2857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858
2859# We need awk for the "check" target.  The system "awk" is bad on
2860# some platforms.
2861# Always define AMTAR for backward compatibility.
2862
2863AMTAR=${AMTAR-"${am_missing_run}tar"}
2864
2865am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2866
2867
2868
2869
2870
2871ac_config_headers="$ac_config_headers include/config.h"
2872
2873
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2875$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2876    # Check whether --enable-maintainer-mode was given.
2877if test "${enable_maintainer_mode+set}" = set; then :
2878  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2879else
2880  USE_MAINTAINER_MODE=no
2881fi
2882
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2884$as_echo "$USE_MAINTAINER_MODE" >&6; }
2885   if test $USE_MAINTAINER_MODE = yes; then
2886  MAINTAINER_MODE_TRUE=
2887  MAINTAINER_MODE_FALSE='#'
2888else
2889  MAINTAINER_MODE_TRUE='#'
2890  MAINTAINER_MODE_FALSE=
2891fi
2892
2893  MAINT=$MAINTAINER_MODE_TRUE
2894
2895
2896
2897ac_ext=c
2898ac_cpp='$CPP $CPPFLAGS'
2899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902if test -n "$ac_tool_prefix"; then
2903  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if ${ac_cv_prog_CC+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if test -n "$CC"; then
2911  ac_cv_prog_CC="$CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940fi
2941if test -z "$ac_cv_prog_CC"; then
2942  ac_ct_CC=$CC
2943  # Extract the first word of "gcc", so it can be a program name with args.
2944set dummy gcc; ac_word=$2
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if ${ac_cv_prog_ac_ct_CC+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$ac_ct_CC"; then
2951  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958    for ac_exec_ext in '' $ac_executable_extensions; do
2959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960    ac_cv_prog_ac_ct_CC="gcc"
2961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962    break 2
2963  fi
2964done
2965  done
2966IFS=$as_save_IFS
2967
2968fi
2969fi
2970ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971if test -n "$ac_ct_CC"; then
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973$as_echo "$ac_ct_CC" >&6; }
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977fi
2978
2979  if test "x$ac_ct_CC" = x; then
2980    CC=""
2981  else
2982    case $cross_compiling:$ac_tool_warned in
2983yes:)
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986ac_tool_warned=yes ;;
2987esac
2988    CC=$ac_ct_CC
2989  fi
2990else
2991  CC="$ac_cv_prog_CC"
2992fi
2993
2994if test -z "$CC"; then
2995          if test -n "$ac_tool_prefix"; then
2996    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997set dummy ${ac_tool_prefix}cc; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if ${ac_cv_prog_CC+:} false; then :
3001  $as_echo_n "(cached) " >&6
3002else
3003  if test -n "$CC"; then
3004  ac_cv_prog_CC="$CC" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009  IFS=$as_save_IFS
3010  test -z "$as_dir" && as_dir=.
3011    for ac_exec_ext in '' $ac_executable_extensions; do
3012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013    ac_cv_prog_CC="${ac_tool_prefix}cc"
3014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015    break 2
3016  fi
3017done
3018  done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023CC=$ac_cv_prog_CC
3024if test -n "$CC"; then
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026$as_echo "$CC" >&6; }
3027else
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032
3033  fi
3034fi
3035if test -z "$CC"; then
3036  # Extract the first word of "cc", so it can be a program name with args.
3037set dummy cc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if ${ac_cv_prog_CC+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046  ac_prog_rejected=no
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052    for ac_exec_ext in '' $ac_executable_extensions; do
3053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055       ac_prog_rejected=yes
3056       continue
3057     fi
3058    ac_cv_prog_CC="cc"
3059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063  done
3064IFS=$as_save_IFS
3065
3066if test $ac_prog_rejected = yes; then
3067  # We found a bogon in the path, so make sure we never use it.
3068  set dummy $ac_cv_prog_CC
3069  shift
3070  if test $# != 0; then
3071    # We chose a different compiler from the bogus one.
3072    # However, it has the same basename, so the bogon will be chosen
3073    # first if we set CC to just the basename; use the full file name.
3074    shift
3075    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076  fi
3077fi
3078fi
3079fi
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083$as_echo "$CC" >&6; }
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089
3090fi
3091if test -z "$CC"; then
3092  if test -n "$ac_tool_prefix"; then
3093  for ac_prog in cl.exe
3094  do
3095    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098$as_echo_n "checking for $ac_word... " >&6; }
3099if ${ac_cv_prog_CC+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  if test -n "$CC"; then
3103  ac_cv_prog_CC="$CC" # Let the user override the test.
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108  IFS=$as_save_IFS
3109  test -z "$as_dir" && as_dir=.
3110    for ac_exec_ext in '' $ac_executable_extensions; do
3111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114    break 2
3115  fi
3116done
3117  done
3118IFS=$as_save_IFS
3119
3120fi
3121fi
3122CC=$ac_cv_prog_CC
3123if test -n "$CC"; then
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125$as_echo "$CC" >&6; }
3126else
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128$as_echo "no" >&6; }
3129fi
3130
3131
3132    test -n "$CC" && break
3133  done
3134fi
3135if test -z "$CC"; then
3136  ac_ct_CC=$CC
3137  for ac_prog in cl.exe
3138do
3139  # Extract the first word of "$ac_prog", so it can be a program name with args.
3140set dummy $ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if test -n "$ac_ct_CC"; then
3147  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156    ac_cv_prog_ac_ct_CC="$ac_prog"
3157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158    break 2
3159  fi
3160done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167if test -n "$ac_ct_CC"; then
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169$as_echo "$ac_ct_CC" >&6; }
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176  test -n "$ac_ct_CC" && break
3177done
3178
3179  if test "x$ac_ct_CC" = x; then
3180    CC=""
3181  else
3182    case $cross_compiling:$ac_tool_warned in
3183yes:)
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186ac_tool_warned=yes ;;
3187esac
3188    CC=$ac_ct_CC
3189  fi
3190fi
3191
3192fi
3193
3194
3195test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197as_fn_error $? "no acceptable C compiler found in \$PATH
3198See \`config.log' for more details" "$LINENO" 5; }
3199
3200# Provide some information about the compiler.
3201$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202set X $ac_compile
3203ac_compiler=$2
3204for ac_option in --version -v -V -qversion; do
3205  { { ac_try="$ac_compiler $ac_option >&5"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5
3212  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213  ac_status=$?
3214  if test -s conftest.err; then
3215    sed '10a\
3216... rest of stderr output deleted ...
3217         10q' conftest.err >conftest.er1
3218    cat conftest.er1 >&5
3219  fi
3220  rm -f conftest.er1 conftest.err
3221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222  test $ac_status = 0; }
3223done
3224
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227
3228int
3229main ()
3230{
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236ac_clean_files_save=$ac_clean_files
3237ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238# Try to create an executable without -o first, disregard a.out.
3239# It will help us diagnose broken compilers, and finding out an intuition
3240# of exeext.
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242$as_echo_n "checking whether the C compiler works... " >&6; }
3243ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245# The possible output files:
3246ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248ac_rmfiles=
3249for ac_file in $ac_files
3250do
3251  case $ac_file in
3252    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254  esac
3255done
3256rm -f $ac_rmfiles
3257
3258if { { ac_try="$ac_link_default"
3259case "(($ac_try" in
3260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261  *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265  (eval "$ac_link_default") 2>&5
3266  ac_status=$?
3267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268  test $ac_status = 0; }; then :
3269  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3272# so that the user can short-circuit this test for compilers unknown to
3273# Autoconf.
3274for ac_file in $ac_files ''
3275do
3276  test -f "$ac_file" || continue
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279	;;
3280    [ab].out )
3281	# We found the default executable, but exeext='' is most
3282	# certainly right.
3283	break;;
3284    *.* )
3285	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286	then :; else
3287	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288	fi
3289	# We set ac_cv_exeext here because the later test for it is not
3290	# safe: cross compilers may not add the suffix if given an `-o'
3291	# argument, so we may need to know it at that point already.
3292	# Even if this section looks crufty: it has the advantage of
3293	# actually working.
3294	break;;
3295    * )
3296	break;;
3297  esac
3298done
3299test "$ac_cv_exeext" = no && ac_cv_exeext=
3300
3301else
3302  ac_file=''
3303fi
3304if test -z "$ac_file"; then :
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307$as_echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312as_fn_error 77 "C compiler cannot create executables
3313See \`config.log' for more details" "$LINENO" 5; }
3314else
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
3317fi
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319$as_echo_n "checking for C compiler default output file name... " >&6; }
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321$as_echo "$ac_file" >&6; }
3322ac_exeext=$ac_cv_exeext
3323
3324rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325ac_clean_files=$ac_clean_files_save
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327$as_echo_n "checking for suffix of executables... " >&6; }
3328if { { ac_try="$ac_link"
3329case "(($ac_try" in
3330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331  *) ac_try_echo=$ac_try;;
3332esac
3333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334$as_echo "$ac_try_echo"; } >&5
3335  (eval "$ac_link") 2>&5
3336  ac_status=$?
3337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338  test $ac_status = 0; }; then :
3339  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3341# work properly (i.e., refer to `conftest.exe'), while it won't with
3342# `rm'.
3343for ac_file in conftest.exe conftest conftest.*; do
3344  test -f "$ac_file" || continue
3345  case $ac_file in
3346    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348	  break;;
3349    * ) break;;
3350  esac
3351done
3352else
3353  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356See \`config.log' for more details" "$LINENO" 5; }
3357fi
3358rm -f conftest conftest$ac_cv_exeext
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360$as_echo "$ac_cv_exeext" >&6; }
3361
3362rm -f conftest.$ac_ext
3363EXEEXT=$ac_cv_exeext
3364ac_exeext=$EXEEXT
3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366/* end confdefs.h.  */
3367#include <stdio.h>
3368int
3369main ()
3370{
3371FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3373
3374  ;
3375  return 0;
3376}
3377_ACEOF
3378ac_clean_files="$ac_clean_files conftest.out"
3379# Check that the compiler produces executables we can run.  If not, either
3380# the compiler is broken, or we cross compile.
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382$as_echo_n "checking whether we are cross compiling... " >&6; }
3383if test "$cross_compiling" != yes; then
3384  { { ac_try="$ac_link"
3385case "(($ac_try" in
3386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387  *) ac_try_echo=$ac_try;;
3388esac
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391  (eval "$ac_link") 2>&5
3392  ac_status=$?
3393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394  test $ac_status = 0; }
3395  if { ac_try='./conftest$ac_cv_exeext'
3396  { { case "(($ac_try" in
3397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398  *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401$as_echo "$ac_try_echo"; } >&5
3402  (eval "$ac_try") 2>&5
3403  ac_status=$?
3404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405  test $ac_status = 0; }; }; then
3406    cross_compiling=no
3407  else
3408    if test "$cross_compiling" = maybe; then
3409	cross_compiling=yes
3410    else
3411	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413as_fn_error $? "cannot run C compiled programs.
3414If you meant to cross compile, use \`--host'.
3415See \`config.log' for more details" "$LINENO" 5; }
3416    fi
3417  fi
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420$as_echo "$cross_compiling" >&6; }
3421
3422rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423ac_clean_files=$ac_clean_files_save
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425$as_echo_n "checking for suffix of object files... " >&6; }
3426if ${ac_cv_objext+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430/* end confdefs.h.  */
3431
3432int
3433main ()
3434{
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440rm -f conftest.o conftest.obj
3441if { { ac_try="$ac_compile"
3442case "(($ac_try" in
3443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444  *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
3448  (eval "$ac_compile") 2>&5
3449  ac_status=$?
3450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451  test $ac_status = 0; }; then :
3452  for ac_file in conftest.o conftest.obj conftest.*; do
3453  test -f "$ac_file" || continue;
3454  case $ac_file in
3455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457       break;;
3458  esac
3459done
3460else
3461  $as_echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466as_fn_error $? "cannot compute suffix of object files: cannot compile
3467See \`config.log' for more details" "$LINENO" 5; }
3468fi
3469rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472$as_echo "$ac_cv_objext" >&6; }
3473OBJEXT=$ac_cv_objext
3474ac_objext=$OBJEXT
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477if ${ac_cv_c_compiler_gnu+:} false; then :
3478  $as_echo_n "(cached) " >&6
3479else
3480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482
3483int
3484main ()
3485{
3486#ifndef __GNUC__
3487       choke me
3488#endif
3489
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494if ac_fn_c_try_compile "$LINENO"; then :
3495  ac_compiler_gnu=yes
3496else
3497  ac_compiler_gnu=no
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505if test $ac_compiler_gnu = yes; then
3506  GCC=yes
3507else
3508  GCC=
3509fi
3510ac_test_CFLAGS=${CFLAGS+set}
3511ac_save_CFLAGS=$CFLAGS
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513$as_echo_n "checking whether $CC accepts -g... " >&6; }
3514if ${ac_cv_prog_cc_g+:} false; then :
3515  $as_echo_n "(cached) " >&6
3516else
3517  ac_save_c_werror_flag=$ac_c_werror_flag
3518   ac_c_werror_flag=yes
3519   ac_cv_prog_cc_g=no
3520   CFLAGS="-g"
3521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h.  */
3523
3524int
3525main ()
3526{
3527
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532if ac_fn_c_try_compile "$LINENO"; then :
3533  ac_cv_prog_cc_g=yes
3534else
3535  CFLAGS=""
3536      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538
3539int
3540main ()
3541{
3542
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547if ac_fn_c_try_compile "$LINENO"; then :
3548
3549else
3550  ac_c_werror_flag=$ac_save_c_werror_flag
3551	 CFLAGS="-g"
3552	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h.  */
3554
3555int
3556main ()
3557{
3558
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563if ac_fn_c_try_compile "$LINENO"; then :
3564  ac_cv_prog_cc_g=yes
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567fi
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569fi
3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571   ac_c_werror_flag=$ac_save_c_werror_flag
3572fi
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574$as_echo "$ac_cv_prog_cc_g" >&6; }
3575if test "$ac_test_CFLAGS" = set; then
3576  CFLAGS=$ac_save_CFLAGS
3577elif test $ac_cv_prog_cc_g = yes; then
3578  if test "$GCC" = yes; then
3579    CFLAGS="-g -O2"
3580  else
3581    CFLAGS="-g"
3582  fi
3583else
3584  if test "$GCC" = yes; then
3585    CFLAGS="-O2"
3586  else
3587    CFLAGS=
3588  fi
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592if ${ac_cv_prog_cc_c89+:} false; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  ac_cv_prog_cc_c89=no
3596ac_save_CC=$CC
3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599#include <stdarg.h>
3600#include <stdio.h>
3601#include <sys/types.h>
3602#include <sys/stat.h>
3603/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3604struct buf { int x; };
3605FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606static char *e (p, i)
3607     char **p;
3608     int i;
3609{
3610  return p[i];
3611}
3612static char *f (char * (*g) (char **, int), char **p, ...)
3613{
3614  char *s;
3615  va_list v;
3616  va_start (v,p);
3617  s = g (p, va_arg (v,int));
3618  va_end (v);
3619  return s;
3620}
3621
3622/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3623   function prototypes and stuff, but not '\xHH' hex character constants.
3624   These don't provoke an error unfortunately, instead are silently treated
3625   as 'x'.  The following induces an error, until -std is added to get
3626   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3627   array size at least.  It's necessary to write '\x00'==0 to get something
3628   that's true only with -std.  */
3629int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630
3631/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632   inside strings and character constants.  */
3633#define FOO(x) 'x'
3634int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635
3636int test (int i, double x);
3637struct s1 {int (*f) (int a);};
3638struct s2 {int (*f) (double a);};
3639int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640int argc;
3641char **argv;
3642int
3643main ()
3644{
3645return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652do
3653  CC="$ac_save_CC $ac_arg"
3654  if ac_fn_c_try_compile "$LINENO"; then :
3655  ac_cv_prog_cc_c89=$ac_arg
3656fi
3657rm -f core conftest.err conftest.$ac_objext
3658  test "x$ac_cv_prog_cc_c89" != "xno" && break
3659done
3660rm -f conftest.$ac_ext
3661CC=$ac_save_CC
3662
3663fi
3664# AC_CACHE_VAL
3665case "x$ac_cv_prog_cc_c89" in
3666  x)
3667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668$as_echo "none needed" >&6; } ;;
3669  xno)
3670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671$as_echo "unsupported" >&6; } ;;
3672  *)
3673    CC="$CC $ac_cv_prog_cc_c89"
3674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676esac
3677if test "x$ac_cv_prog_cc_c89" != xno; then :
3678
3679fi
3680
3681ac_ext=c
3682ac_cpp='$CPP $CPPFLAGS'
3683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686DEPDIR="${am__leading_dot}deps"
3687
3688ac_config_commands="$ac_config_commands depfiles"
3689
3690
3691am_make=${MAKE-make}
3692cat > confinc << 'END'
3693am__doit:
3694	@echo this is the am__doit target
3695.PHONY: am__doit
3696END
3697# If we don't find an include directive, just comment out the code.
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3699$as_echo_n "checking for style of include used by $am_make... " >&6; }
3700am__include="#"
3701am__quote=
3702_am_result=none
3703# First try GNU make style include.
3704echo "include confinc" > confmf
3705# Ignore all kinds of additional output from `make'.
3706case `$am_make -s -f confmf 2> /dev/null` in #(
3707*the\ am__doit\ target*)
3708  am__include=include
3709  am__quote=
3710  _am_result=GNU
3711  ;;
3712esac
3713# Now try BSD make style include.
3714if test "$am__include" = "#"; then
3715   echo '.include "confinc"' > confmf
3716   case `$am_make -s -f confmf 2> /dev/null` in #(
3717   *the\ am__doit\ target*)
3718     am__include=.include
3719     am__quote="\""
3720     _am_result=BSD
3721     ;;
3722   esac
3723fi
3724
3725
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3727$as_echo "$_am_result" >&6; }
3728rm -f confinc confmf
3729
3730# Check whether --enable-dependency-tracking was given.
3731if test "${enable_dependency_tracking+set}" = set; then :
3732  enableval=$enable_dependency_tracking;
3733fi
3734
3735if test "x$enable_dependency_tracking" != xno; then
3736  am_depcomp="$ac_aux_dir/depcomp"
3737  AMDEPBACKSLASH='\'
3738fi
3739 if test "x$enable_dependency_tracking" != xno; then
3740  AMDEP_TRUE=
3741  AMDEP_FALSE='#'
3742else
3743  AMDEP_TRUE='#'
3744  AMDEP_FALSE=
3745fi
3746
3747
3748
3749depcc="$CC"   am_compiler_list=
3750
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3752$as_echo_n "checking dependency style of $depcc... " >&6; }
3753if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3757  # We make a subdir and do the tests there.  Otherwise we can end up
3758  # making bogus files that we don't know about and never remove.  For
3759  # instance it was reported that on HP-UX the gcc test will end up
3760  # making a dummy file named `D' -- because `-MD' means `put the output
3761  # in D'.
3762  mkdir conftest.dir
3763  # Copy depcomp to subdir because otherwise we won't find it if we're
3764  # using a relative directory.
3765  cp "$am_depcomp" conftest.dir
3766  cd conftest.dir
3767  # We will build objects and dependencies in a subdirectory because
3768  # it helps to detect inapplicable dependency modes.  For instance
3769  # both Tru64's cc and ICC support -MD to output dependencies as a
3770  # side effect of compilation, but ICC will put the dependencies in
3771  # the current directory while Tru64 will put them in the object
3772  # directory.
3773  mkdir sub
3774
3775  am_cv_CC_dependencies_compiler_type=none
3776  if test "$am_compiler_list" = ""; then
3777     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3778  fi
3779  am__universal=false
3780  case " $depcc " in #(
3781     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3782     esac
3783
3784  for depmode in $am_compiler_list; do
3785    # Setup a source with many dependencies, because some compilers
3786    # like to wrap large dependency lists on column 80 (with \), and
3787    # we should not choose a depcomp mode which is confused by this.
3788    #
3789    # We need to recreate these files for each test, as the compiler may
3790    # overwrite some of them when testing with obscure command lines.
3791    # This happens at least with the AIX C compiler.
3792    : > sub/conftest.c
3793    for i in 1 2 3 4 5 6; do
3794      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3795      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3796      # Solaris 8's {/usr,}/bin/sh.
3797      touch sub/conftst$i.h
3798    done
3799    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3800
3801    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3802    # mode.  It turns out that the SunPro C++ compiler does not properly
3803    # handle `-M -o', and we need to detect this.  Also, some Intel
3804    # versions had trouble with output in subdirs
3805    am__obj=sub/conftest.${OBJEXT-o}
3806    am__minus_obj="-o $am__obj"
3807    case $depmode in
3808    gcc)
3809      # This depmode causes a compiler race in universal mode.
3810      test "$am__universal" = false || continue
3811      ;;
3812    nosideeffect)
3813      # after this tag, mechanisms are not by side-effect, so they'll
3814      # only be used when explicitly requested
3815      if test "x$enable_dependency_tracking" = xyes; then
3816	continue
3817      else
3818	break
3819      fi
3820      ;;
3821    msvisualcpp | msvcmsys)
3822      # This compiler won't grok `-c -o', but also, the minuso test has
3823      # not run yet.  These depmodes are late enough in the game, and
3824      # so weak that their functioning should not be impacted.
3825      am__obj=conftest.${OBJEXT-o}
3826      am__minus_obj=
3827      ;;
3828    none) break ;;
3829    esac
3830    if depmode=$depmode \
3831       source=sub/conftest.c object=$am__obj \
3832       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3833       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3834         >/dev/null 2>conftest.err &&
3835       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3836       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3837       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3838       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3839      # icc doesn't choke on unknown options, it will just issue warnings
3840      # or remarks (even with -Werror).  So we grep stderr for any message
3841      # that says an option was ignored or not supported.
3842      # When given -MP, icc 7.0 and 7.1 complain thusly:
3843      #   icc: Command line warning: ignoring option '-M'; no argument required
3844      # The diagnosis changed in icc 8.0:
3845      #   icc: Command line remark: option '-MP' not supported
3846      if (grep 'ignoring option' conftest.err ||
3847          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3848        am_cv_CC_dependencies_compiler_type=$depmode
3849        break
3850      fi
3851    fi
3852  done
3853
3854  cd ..
3855  rm -rf conftest.dir
3856else
3857  am_cv_CC_dependencies_compiler_type=none
3858fi
3859
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3862$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3863CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3864
3865 if
3866  test "x$enable_dependency_tracking" != xno \
3867  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3868  am__fastdepCC_TRUE=
3869  am__fastdepCC_FALSE='#'
3870else
3871  am__fastdepCC_TRUE='#'
3872  am__fastdepCC_FALSE=
3873fi
3874
3875
3876
3877
3878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3884$as_echo_n "checking how to run the C preprocessor... " >&6; }
3885# On Suns, sometimes $CPP names a directory.
3886if test -n "$CPP" && test -d "$CPP"; then
3887  CPP=
3888fi
3889if test -z "$CPP"; then
3890  if ${ac_cv_prog_CPP+:} false; then :
3891  $as_echo_n "(cached) " >&6
3892else
3893      # Double quotes because CPP needs to be expanded
3894    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3895    do
3896      ac_preproc_ok=false
3897for ac_c_preproc_warn_flag in '' yes
3898do
3899  # Use a header file that comes with gcc, so configuring glibc
3900  # with a fresh cross-compiler works.
3901  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902  # <limits.h> exists even on freestanding compilers.
3903  # On the NeXT, cc -E runs the code through the compiler's parser,
3904  # not just through cpp. "Syntax error" is here to catch this case.
3905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h.  */
3907#ifdef __STDC__
3908# include <limits.h>
3909#else
3910# include <assert.h>
3911#endif
3912		     Syntax error
3913_ACEOF
3914if ac_fn_c_try_cpp "$LINENO"; then :
3915
3916else
3917  # Broken: fails on valid input.
3918continue
3919fi
3920rm -f conftest.err conftest.i conftest.$ac_ext
3921
3922  # OK, works on sane cases.  Now check whether nonexistent headers
3923  # can be detected and how.
3924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h.  */
3926#include <ac_nonexistent.h>
3927_ACEOF
3928if ac_fn_c_try_cpp "$LINENO"; then :
3929  # Broken: success on invalid input.
3930continue
3931else
3932  # Passes both tests.
3933ac_preproc_ok=:
3934break
3935fi
3936rm -f conftest.err conftest.i conftest.$ac_ext
3937
3938done
3939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940rm -f conftest.i conftest.err conftest.$ac_ext
3941if $ac_preproc_ok; then :
3942  break
3943fi
3944
3945    done
3946    ac_cv_prog_CPP=$CPP
3947
3948fi
3949  CPP=$ac_cv_prog_CPP
3950else
3951  ac_cv_prog_CPP=$CPP
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3954$as_echo "$CPP" >&6; }
3955ac_preproc_ok=false
3956for ac_c_preproc_warn_flag in '' yes
3957do
3958  # Use a header file that comes with gcc, so configuring glibc
3959  # with a fresh cross-compiler works.
3960  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961  # <limits.h> exists even on freestanding compilers.
3962  # On the NeXT, cc -E runs the code through the compiler's parser,
3963  # not just through cpp. "Syntax error" is here to catch this case.
3964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h.  */
3966#ifdef __STDC__
3967# include <limits.h>
3968#else
3969# include <assert.h>
3970#endif
3971		     Syntax error
3972_ACEOF
3973if ac_fn_c_try_cpp "$LINENO"; then :
3974
3975else
3976  # Broken: fails on valid input.
3977continue
3978fi
3979rm -f conftest.err conftest.i conftest.$ac_ext
3980
3981  # OK, works on sane cases.  Now check whether nonexistent headers
3982  # can be detected and how.
3983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h.  */
3985#include <ac_nonexistent.h>
3986_ACEOF
3987if ac_fn_c_try_cpp "$LINENO"; then :
3988  # Broken: success on invalid input.
3989continue
3990else
3991  # Passes both tests.
3992ac_preproc_ok=:
3993break
3994fi
3995rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997done
3998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999rm -f conftest.i conftest.err conftest.$ac_ext
4000if $ac_preproc_ok; then :
4001
4002else
4003  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4006See \`config.log' for more details" "$LINENO" 5; }
4007fi
4008
4009ac_ext=c
4010ac_cpp='$CPP $CPPFLAGS'
4011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014
4015
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4017$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4018if ${ac_cv_path_GREP+:} false; then :
4019  $as_echo_n "(cached) " >&6
4020else
4021  if test -z "$GREP"; then
4022  ac_path_GREP_found=false
4023  # Loop through the user's path and test for each of PROGNAME-LIST
4024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026do
4027  IFS=$as_save_IFS
4028  test -z "$as_dir" && as_dir=.
4029    for ac_prog in grep ggrep; do
4030    for ac_exec_ext in '' $ac_executable_extensions; do
4031      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4032      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4033# Check for GNU ac_path_GREP and select it if it is found.
4034  # Check for GNU $ac_path_GREP
4035case `"$ac_path_GREP" --version 2>&1` in
4036*GNU*)
4037  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4038*)
4039  ac_count=0
4040  $as_echo_n 0123456789 >"conftest.in"
4041  while :
4042  do
4043    cat "conftest.in" "conftest.in" >"conftest.tmp"
4044    mv "conftest.tmp" "conftest.in"
4045    cp "conftest.in" "conftest.nl"
4046    $as_echo 'GREP' >> "conftest.nl"
4047    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049    as_fn_arith $ac_count + 1 && ac_count=$as_val
4050    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4051      # Best one so far, save it but keep looking for a better one
4052      ac_cv_path_GREP="$ac_path_GREP"
4053      ac_path_GREP_max=$ac_count
4054    fi
4055    # 10*(2^10) chars as input seems more than enough
4056    test $ac_count -gt 10 && break
4057  done
4058  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059esac
4060
4061      $ac_path_GREP_found && break 3
4062    done
4063  done
4064  done
4065IFS=$as_save_IFS
4066  if test -z "$ac_cv_path_GREP"; then
4067    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4068  fi
4069else
4070  ac_cv_path_GREP=$GREP
4071fi
4072
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4075$as_echo "$ac_cv_path_GREP" >&6; }
4076 GREP="$ac_cv_path_GREP"
4077
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4080$as_echo_n "checking for egrep... " >&6; }
4081if ${ac_cv_path_EGREP+:} false; then :
4082  $as_echo_n "(cached) " >&6
4083else
4084  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4085   then ac_cv_path_EGREP="$GREP -E"
4086   else
4087     if test -z "$EGREP"; then
4088  ac_path_EGREP_found=false
4089  # Loop through the user's path and test for each of PROGNAME-LIST
4090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092do
4093  IFS=$as_save_IFS
4094  test -z "$as_dir" && as_dir=.
4095    for ac_prog in egrep; do
4096    for ac_exec_ext in '' $ac_executable_extensions; do
4097      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4098      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4099# Check for GNU ac_path_EGREP and select it if it is found.
4100  # Check for GNU $ac_path_EGREP
4101case `"$ac_path_EGREP" --version 2>&1` in
4102*GNU*)
4103  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4104*)
4105  ac_count=0
4106  $as_echo_n 0123456789 >"conftest.in"
4107  while :
4108  do
4109    cat "conftest.in" "conftest.in" >"conftest.tmp"
4110    mv "conftest.tmp" "conftest.in"
4111    cp "conftest.in" "conftest.nl"
4112    $as_echo 'EGREP' >> "conftest.nl"
4113    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115    as_fn_arith $ac_count + 1 && ac_count=$as_val
4116    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4117      # Best one so far, save it but keep looking for a better one
4118      ac_cv_path_EGREP="$ac_path_EGREP"
4119      ac_path_EGREP_max=$ac_count
4120    fi
4121    # 10*(2^10) chars as input seems more than enough
4122    test $ac_count -gt 10 && break
4123  done
4124  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125esac
4126
4127      $ac_path_EGREP_found && break 3
4128    done
4129  done
4130  done
4131IFS=$as_save_IFS
4132  if test -z "$ac_cv_path_EGREP"; then
4133    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134  fi
4135else
4136  ac_cv_path_EGREP=$EGREP
4137fi
4138
4139   fi
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4142$as_echo "$ac_cv_path_EGREP" >&6; }
4143 EGREP="$ac_cv_path_EGREP"
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4147$as_echo_n "checking for ANSI C header files... " >&6; }
4148if ${ac_cv_header_stdc+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h.  */
4153#include <stdlib.h>
4154#include <stdarg.h>
4155#include <string.h>
4156#include <float.h>
4157
4158int
4159main ()
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166if ac_fn_c_try_compile "$LINENO"; then :
4167  ac_cv_header_stdc=yes
4168else
4169  ac_cv_header_stdc=no
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172
4173if test $ac_cv_header_stdc = yes; then
4174  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h.  */
4177#include <string.h>
4178
4179_ACEOF
4180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181  $EGREP "memchr" >/dev/null 2>&1; then :
4182
4183else
4184  ac_cv_header_stdc=no
4185fi
4186rm -f conftest*
4187
4188fi
4189
4190if test $ac_cv_header_stdc = yes; then
4191  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193/* end confdefs.h.  */
4194#include <stdlib.h>
4195
4196_ACEOF
4197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198  $EGREP "free" >/dev/null 2>&1; then :
4199
4200else
4201  ac_cv_header_stdc=no
4202fi
4203rm -f conftest*
4204
4205fi
4206
4207if test $ac_cv_header_stdc = yes; then
4208  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209  if test "$cross_compiling" = yes; then :
4210  :
4211else
4212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h.  */
4214#include <ctype.h>
4215#include <stdlib.h>
4216#if ((' ' & 0x0FF) == 0x020)
4217# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4218# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4219#else
4220# define ISLOWER(c) \
4221		   (('a' <= (c) && (c) <= 'i') \
4222		     || ('j' <= (c) && (c) <= 'r') \
4223		     || ('s' <= (c) && (c) <= 'z'))
4224# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4225#endif
4226
4227#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4228int
4229main ()
4230{
4231  int i;
4232  for (i = 0; i < 256; i++)
4233    if (XOR (islower (i), ISLOWER (i))
4234	|| toupper (i) != TOUPPER (i))
4235      return 2;
4236  return 0;
4237}
4238_ACEOF
4239if ac_fn_c_try_run "$LINENO"; then :
4240
4241else
4242  ac_cv_header_stdc=no
4243fi
4244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4245  conftest.$ac_objext conftest.beam conftest.$ac_ext
4246fi
4247
4248fi
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4251$as_echo "$ac_cv_header_stdc" >&6; }
4252if test $ac_cv_header_stdc = yes; then
4253
4254$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4255
4256fi
4257
4258# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4260		  inttypes.h stdint.h unistd.h
4261do :
4262  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4264"
4265if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4266  cat >>confdefs.h <<_ACEOF
4267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4268_ACEOF
4269
4270fi
4271
4272done
4273
4274
4275
4276  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4277if test "x$ac_cv_header_minix_config_h" = xyes; then :
4278  MINIX=yes
4279else
4280  MINIX=
4281fi
4282
4283
4284  if test "$MINIX" = yes; then
4285
4286$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4287
4288
4289$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4290
4291
4292$as_echo "#define _MINIX 1" >>confdefs.h
4293
4294  fi
4295
4296
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4298$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4299if ${ac_cv_safe_to_define___extensions__+:} false; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304
4305#	  define __EXTENSIONS__ 1
4306	  $ac_includes_default
4307int
4308main ()
4309{
4310
4311  ;
4312  return 0;
4313}
4314_ACEOF
4315if ac_fn_c_try_compile "$LINENO"; then :
4316  ac_cv_safe_to_define___extensions__=yes
4317else
4318  ac_cv_safe_to_define___extensions__=no
4319fi
4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4323$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4324  test $ac_cv_safe_to_define___extensions__ = yes &&
4325    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4326
4327  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4328
4329  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4330
4331  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4332
4333  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4334
4335
4336case `pwd` in
4337  *\ * | *\	*)
4338    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4339$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4340esac
4341
4342
4343
4344macro_version='2.4'
4345macro_revision='1.3293'
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359ltmain="$ac_aux_dir/ltmain.sh"
4360
4361# Backslashify metacharacters that are still active within
4362# double-quoted strings.
4363sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4364
4365# Same as above, but do not quote variable references.
4366double_quote_subst='s/\(["`\\]\)/\\\1/g'
4367
4368# Sed substitution to delay expansion of an escaped shell variable in a
4369# double_quote_subst'ed string.
4370delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4371
4372# Sed substitution to delay expansion of an escaped single quote.
4373delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4374
4375# Sed substitution to avoid accidental globbing in evaled expressions
4376no_glob_subst='s/\*/\\\*/g'
4377
4378ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4379ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4380ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4381
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4383$as_echo_n "checking how to print strings... " >&6; }
4384# Test print first, because it will be a builtin if present.
4385if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4386   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4387  ECHO='print -r --'
4388elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4389  ECHO='printf %s\n'
4390else
4391  # Use this function as a fallback that always works.
4392  func_fallback_echo ()
4393  {
4394    eval 'cat <<_LTECHO_EOF
4395$1
4396_LTECHO_EOF'
4397  }
4398  ECHO='func_fallback_echo'
4399fi
4400
4401# func_echo_all arg...
4402# Invoke $ECHO with all args, space-separated.
4403func_echo_all ()
4404{
4405    $ECHO ""
4406}
4407
4408case "$ECHO" in
4409  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4410$as_echo "printf" >&6; } ;;
4411  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4412$as_echo "print -r" >&6; } ;;
4413  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4414$as_echo "cat" >&6; } ;;
4415esac
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4431$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4432if ${ac_cv_path_SED+:} false; then :
4433  $as_echo_n "(cached) " >&6
4434else
4435            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4436     for ac_i in 1 2 3 4 5 6 7; do
4437       ac_script="$ac_script$as_nl$ac_script"
4438     done
4439     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4440     { ac_script=; unset ac_script;}
4441     if test -z "$SED"; then
4442  ac_path_SED_found=false
4443  # Loop through the user's path and test for each of PROGNAME-LIST
4444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447  IFS=$as_save_IFS
4448  test -z "$as_dir" && as_dir=.
4449    for ac_prog in sed gsed; do
4450    for ac_exec_ext in '' $ac_executable_extensions; do
4451      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4452      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4453# Check for GNU ac_path_SED and select it if it is found.
4454  # Check for GNU $ac_path_SED
4455case `"$ac_path_SED" --version 2>&1` in
4456*GNU*)
4457  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4458*)
4459  ac_count=0
4460  $as_echo_n 0123456789 >"conftest.in"
4461  while :
4462  do
4463    cat "conftest.in" "conftest.in" >"conftest.tmp"
4464    mv "conftest.tmp" "conftest.in"
4465    cp "conftest.in" "conftest.nl"
4466    $as_echo '' >> "conftest.nl"
4467    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469    as_fn_arith $ac_count + 1 && ac_count=$as_val
4470    if test $ac_count -gt ${ac_path_SED_max-0}; then
4471      # Best one so far, save it but keep looking for a better one
4472      ac_cv_path_SED="$ac_path_SED"
4473      ac_path_SED_max=$ac_count
4474    fi
4475    # 10*(2^10) chars as input seems more than enough
4476    test $ac_count -gt 10 && break
4477  done
4478  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481      $ac_path_SED_found && break 3
4482    done
4483  done
4484  done
4485IFS=$as_save_IFS
4486  if test -z "$ac_cv_path_SED"; then
4487    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4488  fi
4489else
4490  ac_cv_path_SED=$SED
4491fi
4492
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4495$as_echo "$ac_cv_path_SED" >&6; }
4496 SED="$ac_cv_path_SED"
4497  rm -f conftest.sed
4498
4499test -z "$SED" && SED=sed
4500Xsed="$SED -e 1s/^X//"
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4513$as_echo_n "checking for fgrep... " >&6; }
4514if ${ac_cv_path_FGREP+:} false; then :
4515  $as_echo_n "(cached) " >&6
4516else
4517  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4518   then ac_cv_path_FGREP="$GREP -F"
4519   else
4520     if test -z "$FGREP"; then
4521  ac_path_FGREP_found=false
4522  # Loop through the user's path and test for each of PROGNAME-LIST
4523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525do
4526  IFS=$as_save_IFS
4527  test -z "$as_dir" && as_dir=.
4528    for ac_prog in fgrep; do
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4531      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4532# Check for GNU ac_path_FGREP and select it if it is found.
4533  # Check for GNU $ac_path_FGREP
4534case `"$ac_path_FGREP" --version 2>&1` in
4535*GNU*)
4536  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4537*)
4538  ac_count=0
4539  $as_echo_n 0123456789 >"conftest.in"
4540  while :
4541  do
4542    cat "conftest.in" "conftest.in" >"conftest.tmp"
4543    mv "conftest.tmp" "conftest.in"
4544    cp "conftest.in" "conftest.nl"
4545    $as_echo 'FGREP' >> "conftest.nl"
4546    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548    as_fn_arith $ac_count + 1 && ac_count=$as_val
4549    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4550      # Best one so far, save it but keep looking for a better one
4551      ac_cv_path_FGREP="$ac_path_FGREP"
4552      ac_path_FGREP_max=$ac_count
4553    fi
4554    # 10*(2^10) chars as input seems more than enough
4555    test $ac_count -gt 10 && break
4556  done
4557  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
4559
4560      $ac_path_FGREP_found && break 3
4561    done
4562  done
4563  done
4564IFS=$as_save_IFS
4565  if test -z "$ac_cv_path_FGREP"; then
4566    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567  fi
4568else
4569  ac_cv_path_FGREP=$FGREP
4570fi
4571
4572   fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4575$as_echo "$ac_cv_path_FGREP" >&6; }
4576 FGREP="$ac_cv_path_FGREP"
4577
4578
4579test -z "$GREP" && GREP=grep
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599# Check whether --with-gnu-ld was given.
4600if test "${with_gnu_ld+set}" = set; then :
4601  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4602else
4603  with_gnu_ld=no
4604fi
4605
4606ac_prog=ld
4607if test "$GCC" = yes; then
4608  # Check if gcc -print-prog-name=ld gives a path.
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4610$as_echo_n "checking for ld used by $CC... " >&6; }
4611  case $host in
4612  *-*-mingw*)
4613    # gcc leaves a trailing carriage return which upsets mingw
4614    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4615  *)
4616    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4617  esac
4618  case $ac_prog in
4619    # Accept absolute paths.
4620    [\\/]* | ?:[\\/]*)
4621      re_direlt='/[^/][^/]*/\.\./'
4622      # Canonicalize the pathname of ld
4623      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4624      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4625	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4626      done
4627      test -z "$LD" && LD="$ac_prog"
4628      ;;
4629  "")
4630    # If it fails, then pretend we aren't using GCC.
4631    ac_prog=ld
4632    ;;
4633  *)
4634    # If it is relative, then search for the first ld in PATH.
4635    with_gnu_ld=unknown
4636    ;;
4637  esac
4638elif test "$with_gnu_ld" = yes; then
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4640$as_echo_n "checking for GNU ld... " >&6; }
4641else
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4643$as_echo_n "checking for non-GNU ld... " >&6; }
4644fi
4645if ${lt_cv_path_LD+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  if test -z "$LD"; then
4649  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4650  for ac_dir in $PATH; do
4651    IFS="$lt_save_ifs"
4652    test -z "$ac_dir" && ac_dir=.
4653    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4654      lt_cv_path_LD="$ac_dir/$ac_prog"
4655      # Check to see if the program is GNU ld.  I'd rather use --version,
4656      # but apparently some variants of GNU ld only accept -v.
4657      # Break only if it was the GNU/non-GNU ld that we prefer.
4658      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4659      *GNU* | *'with BFD'*)
4660	test "$with_gnu_ld" != no && break
4661	;;
4662      *)
4663	test "$with_gnu_ld" != yes && break
4664	;;
4665      esac
4666    fi
4667  done
4668  IFS="$lt_save_ifs"
4669else
4670  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4671fi
4672fi
4673
4674LD="$lt_cv_path_LD"
4675if test -n "$LD"; then
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4677$as_echo "$LD" >&6; }
4678else
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4684$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4685if ${lt_cv_prog_gnu_ld+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4689case `$LD -v 2>&1 </dev/null` in
4690*GNU* | *'with BFD'*)
4691  lt_cv_prog_gnu_ld=yes
4692  ;;
4693*)
4694  lt_cv_prog_gnu_ld=no
4695  ;;
4696esac
4697fi
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4699$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4700with_gnu_ld=$lt_cv_prog_gnu_ld
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4711$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4712if ${lt_cv_path_NM+:} false; then :
4713  $as_echo_n "(cached) " >&6
4714else
4715  if test -n "$NM"; then
4716  # Let the user override the test.
4717  lt_cv_path_NM="$NM"
4718else
4719  lt_nm_to_check="${ac_tool_prefix}nm"
4720  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4721    lt_nm_to_check="$lt_nm_to_check nm"
4722  fi
4723  for lt_tmp_nm in $lt_nm_to_check; do
4724    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4725    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4726      IFS="$lt_save_ifs"
4727      test -z "$ac_dir" && ac_dir=.
4728      tmp_nm="$ac_dir/$lt_tmp_nm"
4729      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4730	# Check to see if the nm accepts a BSD-compat flag.
4731	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4732	#   nm: unknown option "B" ignored
4733	# Tru64's nm complains that /dev/null is an invalid object file
4734	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4735	*/dev/null* | *'Invalid file or object type'*)
4736	  lt_cv_path_NM="$tmp_nm -B"
4737	  break
4738	  ;;
4739	*)
4740	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4741	  */dev/null*)
4742	    lt_cv_path_NM="$tmp_nm -p"
4743	    break
4744	    ;;
4745	  *)
4746	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4747	    continue # so that we can try to find one that supports BSD flags
4748	    ;;
4749	  esac
4750	  ;;
4751	esac
4752      fi
4753    done
4754    IFS="$lt_save_ifs"
4755  done
4756  : ${lt_cv_path_NM=no}
4757fi
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4760$as_echo "$lt_cv_path_NM" >&6; }
4761if test "$lt_cv_path_NM" != "no"; then
4762  NM="$lt_cv_path_NM"
4763else
4764  # Didn't find any BSD compatible name lister, look for dumpbin.
4765  if test -n "$DUMPBIN"; then :
4766    # Let the user override the test.
4767  else
4768    if test -n "$ac_tool_prefix"; then
4769  for ac_prog in dumpbin "link -dump"
4770  do
4771    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if ${ac_cv_prog_DUMPBIN+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  if test -n "$DUMPBIN"; then
4779  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_exec_ext in '' $ac_executable_extensions; do
4787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793  done
4794IFS=$as_save_IFS
4795
4796fi
4797fi
4798DUMPBIN=$ac_cv_prog_DUMPBIN
4799if test -n "$DUMPBIN"; then
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4801$as_echo "$DUMPBIN" >&6; }
4802else
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804$as_echo "no" >&6; }
4805fi
4806
4807
4808    test -n "$DUMPBIN" && break
4809  done
4810fi
4811if test -z "$DUMPBIN"; then
4812  ac_ct_DUMPBIN=$DUMPBIN
4813  for ac_prog in dumpbin "link -dump"
4814do
4815  # Extract the first word of "$ac_prog", so it can be a program name with args.
4816set dummy $ac_prog; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  if test -n "$ac_ct_DUMPBIN"; then
4823  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830    for ac_exec_ext in '' $ac_executable_extensions; do
4831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834    break 2
4835  fi
4836done
4837  done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4843if test -n "$ac_ct_DUMPBIN"; then
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4845$as_echo "$ac_ct_DUMPBIN" >&6; }
4846else
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
4852  test -n "$ac_ct_DUMPBIN" && break
4853done
4854
4855  if test "x$ac_ct_DUMPBIN" = x; then
4856    DUMPBIN=":"
4857  else
4858    case $cross_compiling:$ac_tool_warned in
4859yes:)
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4862ac_tool_warned=yes ;;
4863esac
4864    DUMPBIN=$ac_ct_DUMPBIN
4865  fi
4866fi
4867
4868    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4869    *COFF*)
4870      DUMPBIN="$DUMPBIN -symbols"
4871      ;;
4872    *)
4873      DUMPBIN=:
4874      ;;
4875    esac
4876  fi
4877
4878  if test "$DUMPBIN" != ":"; then
4879    NM="$DUMPBIN"
4880  fi
4881fi
4882test -z "$NM" && NM=nm
4883
4884
4885
4886
4887
4888
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4890$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4891if ${lt_cv_nm_interface+:} false; then :
4892  $as_echo_n "(cached) " >&6
4893else
4894  lt_cv_nm_interface="BSD nm"
4895  echo "int some_variable = 0;" > conftest.$ac_ext
4896  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4897  (eval "$ac_compile" 2>conftest.err)
4898  cat conftest.err >&5
4899  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4900  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4901  cat conftest.err >&5
4902  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4903  cat conftest.out >&5
4904  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4905    lt_cv_nm_interface="MS dumpbin"
4906  fi
4907  rm -f conftest*
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4910$as_echo "$lt_cv_nm_interface" >&6; }
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4913$as_echo_n "checking whether ln -s works... " >&6; }
4914LN_S=$as_ln_s
4915if test "$LN_S" = "ln -s"; then
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4917$as_echo "yes" >&6; }
4918else
4919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4920$as_echo "no, using $LN_S" >&6; }
4921fi
4922
4923# find the maximum length of command line arguments
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4925$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4926if ${lt_cv_sys_max_cmd_len+:} false; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929    i=0
4930  teststring="ABCD"
4931
4932  case $build_os in
4933  msdosdjgpp*)
4934    # On DJGPP, this test can blow up pretty badly due to problems in libc
4935    # (any single argument exceeding 2000 bytes causes a buffer overrun
4936    # during glob expansion).  Even if it were fixed, the result of this
4937    # check would be larger than it should be.
4938    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4939    ;;
4940
4941  gnu*)
4942    # Under GNU Hurd, this test is not required because there is
4943    # no limit to the length of command line arguments.
4944    # Libtool will interpret -1 as no limit whatsoever
4945    lt_cv_sys_max_cmd_len=-1;
4946    ;;
4947
4948  cygwin* | mingw* | cegcc*)
4949    # On Win9x/ME, this test blows up -- it succeeds, but takes
4950    # about 5 minutes as the teststring grows exponentially.
4951    # Worse, since 9x/ME are not pre-emptively multitasking,
4952    # you end up with a "frozen" computer, even though with patience
4953    # the test eventually succeeds (with a max line length of 256k).
4954    # Instead, let's just punt: use the minimum linelength reported by
4955    # all of the supported platforms: 8192 (on NT/2K/XP).
4956    lt_cv_sys_max_cmd_len=8192;
4957    ;;
4958
4959  mint*)
4960    # On MiNT this can take a long time and run out of memory.
4961    lt_cv_sys_max_cmd_len=8192;
4962    ;;
4963
4964  amigaos*)
4965    # On AmigaOS with pdksh, this test takes hours, literally.
4966    # So we just punt and use a minimum line length of 8192.
4967    lt_cv_sys_max_cmd_len=8192;
4968    ;;
4969
4970  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4971    # This has been around since 386BSD, at least.  Likely further.
4972    if test -x /sbin/sysctl; then
4973      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4974    elif test -x /usr/sbin/sysctl; then
4975      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4976    else
4977      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4978    fi
4979    # And add a safety zone
4980    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4981    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4982    ;;
4983
4984  interix*)
4985    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4986    lt_cv_sys_max_cmd_len=196608
4987    ;;
4988
4989  osf*)
4990    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4991    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4992    # nice to cause kernel panics so lets avoid the loop below.
4993    # First set a reasonable default.
4994    lt_cv_sys_max_cmd_len=16384
4995    #
4996    if test -x /sbin/sysconfig; then
4997      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4998        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4999      esac
5000    fi
5001    ;;
5002  sco3.2v5*)
5003    lt_cv_sys_max_cmd_len=102400
5004    ;;
5005  sysv5* | sco5v6* | sysv4.2uw2*)
5006    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5007    if test -n "$kargmax"; then
5008      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5009    else
5010      lt_cv_sys_max_cmd_len=32768
5011    fi
5012    ;;
5013  *)
5014    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5015    if test -n "$lt_cv_sys_max_cmd_len"; then
5016      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5017      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5018    else
5019      # Make teststring a little bigger before we do anything with it.
5020      # a 1K string should be a reasonable start.
5021      for i in 1 2 3 4 5 6 7 8 ; do
5022        teststring=$teststring$teststring
5023      done
5024      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5025      # If test is not a shell built-in, we'll probably end up computing a
5026      # maximum length that is only half of the actual maximum length, but
5027      # we can't tell.
5028      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5029	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5030	      test $i != 17 # 1/2 MB should be enough
5031      do
5032        i=`expr $i + 1`
5033        teststring=$teststring$teststring
5034      done
5035      # Only check the string length outside the loop.
5036      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5037      teststring=
5038      # Add a significant safety factor because C++ compilers can tack on
5039      # massive amounts of additional arguments before passing them to the
5040      # linker.  It appears as though 1/2 is a usable value.
5041      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5042    fi
5043    ;;
5044  esac
5045
5046fi
5047
5048if test -n $lt_cv_sys_max_cmd_len ; then
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5050$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5051else
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5053$as_echo "none" >&6; }
5054fi
5055max_cmd_len=$lt_cv_sys_max_cmd_len
5056
5057
5058
5059
5060
5061
5062: ${CP="cp -f"}
5063: ${MV="mv -f"}
5064: ${RM="rm -f"}
5065
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5067$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5068# Try some XSI features
5069xsi_shell=no
5070( _lt_dummy="a/b/c"
5071  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5072      = c,a/b,b/c, \
5073    && eval 'test $(( 1 + 1 )) -eq 2 \
5074    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5075  && xsi_shell=yes
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5077$as_echo "$xsi_shell" >&6; }
5078
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5081$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5082lt_shell_append=no
5083( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5084    >/dev/null 2>&1 \
5085  && lt_shell_append=yes
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5087$as_echo "$lt_shell_append" >&6; }
5088
5089
5090if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5091  lt_unset=unset
5092else
5093  lt_unset=false
5094fi
5095
5096
5097
5098
5099
5100# test EBCDIC or ASCII
5101case `echo X|tr X '\101'` in
5102 A) # ASCII based system
5103    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5104  lt_SP2NL='tr \040 \012'
5105  lt_NL2SP='tr \015\012 \040\040'
5106  ;;
5107 *) # EBCDIC based system
5108  lt_SP2NL='tr \100 \n'
5109  lt_NL2SP='tr \r\n \100\100'
5110  ;;
5111esac
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5122$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5123if ${lt_cv_to_host_file_cmd+:} false; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126  case $host in
5127  *-*-mingw* )
5128    case $build in
5129      *-*-mingw* ) # actually msys
5130        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5131        ;;
5132      *-*-cygwin* )
5133        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5134        ;;
5135      * ) # otherwise, assume *nix
5136        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5137        ;;
5138    esac
5139    ;;
5140  *-*-cygwin* )
5141    case $build in
5142      *-*-mingw* ) # actually msys
5143        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5144        ;;
5145      *-*-cygwin* )
5146        lt_cv_to_host_file_cmd=func_convert_file_noop
5147        ;;
5148      * ) # otherwise, assume *nix
5149        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5150        ;;
5151    esac
5152    ;;
5153  * ) # unhandled hosts (and "normal" native builds)
5154    lt_cv_to_host_file_cmd=func_convert_file_noop
5155    ;;
5156esac
5157
5158fi
5159
5160to_host_file_cmd=$lt_cv_to_host_file_cmd
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5162$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5163
5164
5165
5166
5167
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5169$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5170if ${lt_cv_to_tool_file_cmd+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  #assume ordinary cross tools, or native build.
5174lt_cv_to_tool_file_cmd=func_convert_file_noop
5175case $host in
5176  *-*-mingw* )
5177    case $build in
5178      *-*-mingw* ) # actually msys
5179        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5180        ;;
5181    esac
5182    ;;
5183esac
5184
5185fi
5186
5187to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5189$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5190
5191
5192
5193
5194
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5196$as_echo_n "checking for $LD option to reload object files... " >&6; }
5197if ${lt_cv_ld_reload_flag+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  lt_cv_ld_reload_flag='-r'
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5203$as_echo "$lt_cv_ld_reload_flag" >&6; }
5204reload_flag=$lt_cv_ld_reload_flag
5205case $reload_flag in
5206"" | " "*) ;;
5207*) reload_flag=" $reload_flag" ;;
5208esac
5209reload_cmds='$LD$reload_flag -o $output$reload_objs'
5210case $host_os in
5211  cygwin* | mingw* | pw32* | cegcc*)
5212    if test "$GCC" != yes; then
5213      reload_cmds=false
5214    fi
5215    ;;
5216  darwin*)
5217    if test "$GCC" = yes; then
5218      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5219    else
5220      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5221    fi
5222    ;;
5223esac
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233if test -n "$ac_tool_prefix"; then
5234  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5235set dummy ${ac_tool_prefix}objdump; ac_word=$2
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237$as_echo_n "checking for $ac_word... " >&6; }
5238if ${ac_cv_prog_OBJDUMP+:} false; then :
5239  $as_echo_n "(cached) " >&6
5240else
5241  if test -n "$OBJDUMP"; then
5242  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247  IFS=$as_save_IFS
5248  test -z "$as_dir" && as_dir=.
5249    for ac_exec_ext in '' $ac_executable_extensions; do
5250  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253    break 2
5254  fi
5255done
5256  done
5257IFS=$as_save_IFS
5258
5259fi
5260fi
5261OBJDUMP=$ac_cv_prog_OBJDUMP
5262if test -n "$OBJDUMP"; then
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5264$as_echo "$OBJDUMP" >&6; }
5265else
5266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267$as_echo "no" >&6; }
5268fi
5269
5270
5271fi
5272if test -z "$ac_cv_prog_OBJDUMP"; then
5273  ac_ct_OBJDUMP=$OBJDUMP
5274  # Extract the first word of "objdump", so it can be a program name with args.
5275set dummy objdump; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
5278if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  if test -n "$ac_ct_OBJDUMP"; then
5282  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289    for ac_exec_ext in '' $ac_executable_extensions; do
5290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296  done
5297IFS=$as_save_IFS
5298
5299fi
5300fi
5301ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5302if test -n "$ac_ct_OBJDUMP"; then
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5304$as_echo "$ac_ct_OBJDUMP" >&6; }
5305else
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309
5310  if test "x$ac_ct_OBJDUMP" = x; then
5311    OBJDUMP="false"
5312  else
5313    case $cross_compiling:$ac_tool_warned in
5314yes:)
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5317ac_tool_warned=yes ;;
5318esac
5319    OBJDUMP=$ac_ct_OBJDUMP
5320  fi
5321else
5322  OBJDUMP="$ac_cv_prog_OBJDUMP"
5323fi
5324
5325test -z "$OBJDUMP" && OBJDUMP=objdump
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5336$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5337if ${lt_cv_deplibs_check_method+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  lt_cv_file_magic_cmd='$MAGIC_CMD'
5341lt_cv_file_magic_test_file=
5342lt_cv_deplibs_check_method='unknown'
5343# Need to set the preceding variable on all platforms that support
5344# interlibrary dependencies.
5345# 'none' -- dependencies not supported.
5346# `unknown' -- same as none, but documents that we really don't know.
5347# 'pass_all' -- all dependencies passed with no checks.
5348# 'test_compile' -- check by making test program.
5349# 'file_magic [[regex]]' -- check by looking for files in library path
5350# which responds to the $file_magic_cmd with a given extended regex.
5351# If you have `file' or equivalent on your system and you're not sure
5352# whether `pass_all' will *always* work, you probably want this one.
5353
5354case $host_os in
5355aix[4-9]*)
5356  lt_cv_deplibs_check_method=pass_all
5357  ;;
5358
5359beos*)
5360  lt_cv_deplibs_check_method=pass_all
5361  ;;
5362
5363bsdi[45]*)
5364  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5365  lt_cv_file_magic_cmd='/usr/bin/file -L'
5366  lt_cv_file_magic_test_file=/shlib/libc.so
5367  ;;
5368
5369cygwin*)
5370  # func_win32_libid is a shell function defined in ltmain.sh
5371  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5372  lt_cv_file_magic_cmd='func_win32_libid'
5373  ;;
5374
5375mingw* | pw32*)
5376  # Base MSYS/MinGW do not provide the 'file' command needed by
5377  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5378  # unless we find 'file', for example because we are cross-compiling.
5379  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5380  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5381    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5382    lt_cv_file_magic_cmd='func_win32_libid'
5383  else
5384    # Keep this pattern in sync with the one in func_win32_libid.
5385    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5386    lt_cv_file_magic_cmd='$OBJDUMP -f'
5387  fi
5388  ;;
5389
5390cegcc*)
5391  # use the weaker test based on 'objdump'. See mingw*.
5392  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5393  lt_cv_file_magic_cmd='$OBJDUMP -f'
5394  ;;
5395
5396darwin* | rhapsody*)
5397  lt_cv_deplibs_check_method=pass_all
5398  ;;
5399
5400freebsd* | dragonfly*)
5401  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5402    case $host_cpu in
5403    i*86 )
5404      # Not sure whether the presence of OpenBSD here was a mistake.
5405      # Let's accept both of them until this is cleared up.
5406      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5407      lt_cv_file_magic_cmd=/usr/bin/file
5408      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5409      ;;
5410    esac
5411  else
5412    lt_cv_deplibs_check_method=pass_all
5413  fi
5414  ;;
5415
5416gnu*)
5417  lt_cv_deplibs_check_method=pass_all
5418  ;;
5419
5420haiku*)
5421  lt_cv_deplibs_check_method=pass_all
5422  ;;
5423
5424hpux10.20* | hpux11*)
5425  lt_cv_file_magic_cmd=/usr/bin/file
5426  case $host_cpu in
5427  ia64*)
5428    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5429    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5430    ;;
5431  hppa*64*)
5432    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5433    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5434    ;;
5435  *)
5436    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5437    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5438    ;;
5439  esac
5440  ;;
5441
5442interix[3-9]*)
5443  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5444  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5445  ;;
5446
5447irix5* | irix6* | nonstopux*)
5448  case $LD in
5449  *-32|*"-32 ") libmagic=32-bit;;
5450  *-n32|*"-n32 ") libmagic=N32;;
5451  *-64|*"-64 ") libmagic=64-bit;;
5452  *) libmagic=never-match;;
5453  esac
5454  lt_cv_deplibs_check_method=pass_all
5455  ;;
5456
5457# This must be Linux ELF.
5458linux* | k*bsd*-gnu | kopensolaris*-gnu)
5459  lt_cv_deplibs_check_method=pass_all
5460  ;;
5461
5462netbsd* | netbsdelf*-gnu)
5463  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5464    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5465  else
5466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5467  fi
5468  ;;
5469
5470newos6*)
5471  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5472  lt_cv_file_magic_cmd=/usr/bin/file
5473  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5474  ;;
5475
5476*nto* | *qnx*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480openbsd*)
5481  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5482    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5483  else
5484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5485  fi
5486  ;;
5487
5488osf3* | osf4* | osf5*)
5489  lt_cv_deplibs_check_method=pass_all
5490  ;;
5491
5492rdos*)
5493  lt_cv_deplibs_check_method=pass_all
5494  ;;
5495
5496solaris*)
5497  lt_cv_deplibs_check_method=pass_all
5498  ;;
5499
5500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5501  lt_cv_deplibs_check_method=pass_all
5502  ;;
5503
5504sysv4 | sysv4.3*)
5505  case $host_vendor in
5506  motorola)
5507    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]'
5508    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5509    ;;
5510  ncr)
5511    lt_cv_deplibs_check_method=pass_all
5512    ;;
5513  sequent)
5514    lt_cv_file_magic_cmd='/bin/file'
5515    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5516    ;;
5517  sni)
5518    lt_cv_file_magic_cmd='/bin/file'
5519    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5520    lt_cv_file_magic_test_file=/lib/libc.so
5521    ;;
5522  siemens)
5523    lt_cv_deplibs_check_method=pass_all
5524    ;;
5525  pc)
5526    lt_cv_deplibs_check_method=pass_all
5527    ;;
5528  esac
5529  ;;
5530
5531tpf*)
5532  lt_cv_deplibs_check_method=pass_all
5533  ;;
5534esac
5535
5536fi
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5538$as_echo "$lt_cv_deplibs_check_method" >&6; }
5539
5540file_magic_glob=
5541want_nocaseglob=no
5542if test "$build" = "$host"; then
5543  case $host_os in
5544  mingw* | pw32*)
5545    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5546      want_nocaseglob=yes
5547    else
5548      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5549    fi
5550    ;;
5551  esac
5552fi
5553
5554file_magic_cmd=$lt_cv_file_magic_cmd
5555deplibs_check_method=$lt_cv_deplibs_check_method
5556test -z "$deplibs_check_method" && deplibs_check_method=unknown
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579if test -n "$ac_tool_prefix"; then
5580  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5581set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if ${ac_cv_prog_DLLTOOL+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  if test -n "$DLLTOOL"; then
5588  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593  IFS=$as_save_IFS
5594  test -z "$as_dir" && as_dir=.
5595    for ac_exec_ext in '' $ac_executable_extensions; do
5596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599    break 2
5600  fi
5601done
5602  done
5603IFS=$as_save_IFS
5604
5605fi
5606fi
5607DLLTOOL=$ac_cv_prog_DLLTOOL
5608if test -n "$DLLTOOL"; then
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5610$as_echo "$DLLTOOL" >&6; }
5611else
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
5614fi
5615
5616
5617fi
5618if test -z "$ac_cv_prog_DLLTOOL"; then
5619  ac_ct_DLLTOOL=$DLLTOOL
5620  # Extract the first word of "dlltool", so it can be a program name with args.
5621set dummy dlltool; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  if test -n "$ac_ct_DLLTOOL"; then
5628  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633  IFS=$as_save_IFS
5634  test -z "$as_dir" && as_dir=.
5635    for ac_exec_ext in '' $ac_executable_extensions; do
5636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639    break 2
5640  fi
5641done
5642  done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5648if test -n "$ac_ct_DLLTOOL"; then
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5650$as_echo "$ac_ct_DLLTOOL" >&6; }
5651else
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656  if test "x$ac_ct_DLLTOOL" = x; then
5657    DLLTOOL="false"
5658  else
5659    case $cross_compiling:$ac_tool_warned in
5660yes:)
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663ac_tool_warned=yes ;;
5664esac
5665    DLLTOOL=$ac_ct_DLLTOOL
5666  fi
5667else
5668  DLLTOOL="$ac_cv_prog_DLLTOOL"
5669fi
5670
5671test -z "$DLLTOOL" && DLLTOOL=dlltool
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5683$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5684if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  lt_cv_sharedlib_from_linklib_cmd='unknown'
5688
5689case $host_os in
5690cygwin* | mingw* | pw32* | cegcc*)
5691  # two different shell functions defined in ltmain.sh
5692  # decide which to use based on capabilities of $DLLTOOL
5693  case `$DLLTOOL --help 2>&1` in
5694  *--identify-strict*)
5695    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5696    ;;
5697  *)
5698    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5699    ;;
5700  esac
5701  ;;
5702*)
5703  # fallback: assume linklib IS sharedlib
5704  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5705  ;;
5706esac
5707
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5710$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5711sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5712test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5713
5714
5715
5716
5717
5718
5719
5720if test -n "$ac_tool_prefix"; then
5721  for ac_prog in ar
5722  do
5723    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726$as_echo_n "checking for $ac_word... " >&6; }
5727if ${ac_cv_prog_AR+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  if test -n "$AR"; then
5731  ac_cv_prog_AR="$AR" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  test -z "$as_dir" && as_dir=.
5738    for ac_exec_ext in '' $ac_executable_extensions; do
5739  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742    break 2
5743  fi
5744done
5745  done
5746IFS=$as_save_IFS
5747
5748fi
5749fi
5750AR=$ac_cv_prog_AR
5751if test -n "$AR"; then
5752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5753$as_echo "$AR" >&6; }
5754else
5755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757fi
5758
5759
5760    test -n "$AR" && break
5761  done
5762fi
5763if test -z "$AR"; then
5764  ac_ct_AR=$AR
5765  for ac_prog in ar
5766do
5767  # Extract the first word of "$ac_prog", so it can be a program name with args.
5768set dummy $ac_prog; ac_word=$2
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if ${ac_cv_prog_ac_ct_AR+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  if test -n "$ac_ct_AR"; then
5775  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780  IFS=$as_save_IFS
5781  test -z "$as_dir" && as_dir=.
5782    for ac_exec_ext in '' $ac_executable_extensions; do
5783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784    ac_cv_prog_ac_ct_AR="$ac_prog"
5785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786    break 2
5787  fi
5788done
5789  done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794ac_ct_AR=$ac_cv_prog_ac_ct_AR
5795if test -n "$ac_ct_AR"; then
5796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5797$as_echo "$ac_ct_AR" >&6; }
5798else
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803
5804  test -n "$ac_ct_AR" && break
5805done
5806
5807  if test "x$ac_ct_AR" = x; then
5808    AR="false"
5809  else
5810    case $cross_compiling:$ac_tool_warned in
5811yes:)
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5814ac_tool_warned=yes ;;
5815esac
5816    AR=$ac_ct_AR
5817  fi
5818fi
5819
5820: ${AR=ar}
5821: ${AR_FLAGS=cru}
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5834$as_echo_n "checking for archiver @FILE support... " >&6; }
5835if ${lt_cv_ar_at_file+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  lt_cv_ar_at_file=no
5839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841
5842int
5843main ()
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851  echo conftest.$ac_objext > conftest.lst
5852      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5853      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5854  (eval $lt_ar_try) 2>&5
5855  ac_status=$?
5856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857  test $ac_status = 0; }
5858      if test "$ac_status" -eq 0; then
5859	# Ensure the archiver fails upon bogus file names.
5860	rm -f conftest.$ac_objext libconftest.a
5861	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5862  (eval $lt_ar_try) 2>&5
5863  ac_status=$?
5864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865  test $ac_status = 0; }
5866	if test "$ac_status" -ne 0; then
5867          lt_cv_ar_at_file=@
5868        fi
5869      fi
5870      rm -f conftest.* libconftest.a
5871
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5877$as_echo "$lt_cv_ar_at_file" >&6; }
5878
5879if test "x$lt_cv_ar_at_file" = xno; then
5880  archiver_list_spec=
5881else
5882  archiver_list_spec=$lt_cv_ar_at_file
5883fi
5884
5885
5886
5887
5888
5889
5890
5891if test -n "$ac_tool_prefix"; then
5892  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5893set dummy ${ac_tool_prefix}strip; ac_word=$2
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895$as_echo_n "checking for $ac_word... " >&6; }
5896if ${ac_cv_prog_STRIP+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  if test -n "$STRIP"; then
5900  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905  IFS=$as_save_IFS
5906  test -z "$as_dir" && as_dir=.
5907    for ac_exec_ext in '' $ac_executable_extensions; do
5908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911    break 2
5912  fi
5913done
5914  done
5915IFS=$as_save_IFS
5916
5917fi
5918fi
5919STRIP=$ac_cv_prog_STRIP
5920if test -n "$STRIP"; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5922$as_echo "$STRIP" >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
5926fi
5927
5928
5929fi
5930if test -z "$ac_cv_prog_STRIP"; then
5931  ac_ct_STRIP=$STRIP
5932  # Extract the first word of "strip", so it can be a program name with args.
5933set dummy strip; ac_word=$2
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$ac_ct_STRIP"; then
5940  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949    ac_cv_prog_ac_ct_STRIP="strip"
5950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954  done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5960if test -n "$ac_ct_STRIP"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5962$as_echo "$ac_ct_STRIP" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968  if test "x$ac_ct_STRIP" = x; then
5969    STRIP=":"
5970  else
5971    case $cross_compiling:$ac_tool_warned in
5972yes:)
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975ac_tool_warned=yes ;;
5976esac
5977    STRIP=$ac_ct_STRIP
5978  fi
5979else
5980  STRIP="$ac_cv_prog_STRIP"
5981fi
5982
5983test -z "$STRIP" && STRIP=:
5984
5985
5986
5987
5988
5989
5990if test -n "$ac_tool_prefix"; then
5991  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5992set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
5995if ${ac_cv_prog_RANLIB+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  if test -n "$RANLIB"; then
5999  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004  IFS=$as_save_IFS
6005  test -z "$as_dir" && as_dir=.
6006    for ac_exec_ext in '' $ac_executable_extensions; do
6007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010    break 2
6011  fi
6012done
6013  done
6014IFS=$as_save_IFS
6015
6016fi
6017fi
6018RANLIB=$ac_cv_prog_RANLIB
6019if test -n "$RANLIB"; then
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6021$as_echo "$RANLIB" >&6; }
6022else
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
6025fi
6026
6027
6028fi
6029if test -z "$ac_cv_prog_RANLIB"; then
6030  ac_ct_RANLIB=$RANLIB
6031  # Extract the first word of "ranlib", so it can be a program name with args.
6032set dummy ranlib; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  if test -n "$ac_ct_RANLIB"; then
6039  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046    for ac_exec_ext in '' $ac_executable_extensions; do
6047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048    ac_cv_prog_ac_ct_RANLIB="ranlib"
6049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053  done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6059if test -n "$ac_ct_RANLIB"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6061$as_echo "$ac_ct_RANLIB" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067  if test "x$ac_ct_RANLIB" = x; then
6068    RANLIB=":"
6069  else
6070    case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076    RANLIB=$ac_ct_RANLIB
6077  fi
6078else
6079  RANLIB="$ac_cv_prog_RANLIB"
6080fi
6081
6082test -z "$RANLIB" && RANLIB=:
6083
6084
6085
6086
6087
6088
6089# Determine commands to create old-style static archives.
6090old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6091old_postinstall_cmds='chmod 644 $oldlib'
6092old_postuninstall_cmds=
6093
6094if test -n "$RANLIB"; then
6095  case $host_os in
6096  openbsd*)
6097    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6098    ;;
6099  *)
6100    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6101    ;;
6102  esac
6103  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6104fi
6105
6106case $host_os in
6107  darwin*)
6108    lock_old_archive_extraction=yes ;;
6109  *)
6110    lock_old_archive_extraction=no ;;
6111esac
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151# If no C compiler was specified, use CC.
6152LTCC=${LTCC-"$CC"}
6153
6154# If no C compiler flags were specified, use CFLAGS.
6155LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6156
6157# Allow CC to be a program name with arguments.
6158compiler=$CC
6159
6160
6161# Check for command to grab the raw symbol name followed by C symbol from nm.
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6163$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6164if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6165  $as_echo_n "(cached) " >&6
6166else
6167
6168# These are sane defaults that work on at least a few old systems.
6169# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6170
6171# Character class describing NM global symbol codes.
6172symcode='[BCDEGRST]'
6173
6174# Regexp to match symbols that can be accessed directly from C.
6175sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6176
6177# Define system-specific variables.
6178case $host_os in
6179aix*)
6180  symcode='[BCDT]'
6181  ;;
6182cygwin* | mingw* | pw32* | cegcc*)
6183  symcode='[ABCDGISTW]'
6184  ;;
6185hpux*)
6186  if test "$host_cpu" = ia64; then
6187    symcode='[ABCDEGRST]'
6188  fi
6189  ;;
6190irix* | nonstopux*)
6191  symcode='[BCDEGRST]'
6192  ;;
6193osf*)
6194  symcode='[BCDEGQRST]'
6195  ;;
6196solaris*)
6197  symcode='[BDRT]'
6198  ;;
6199sco3.2v5*)
6200  symcode='[DT]'
6201  ;;
6202sysv4.2uw2*)
6203  symcode='[DT]'
6204  ;;
6205sysv5* | sco5v6* | unixware* | OpenUNIX*)
6206  symcode='[ABDT]'
6207  ;;
6208sysv4)
6209  symcode='[DFNSTU]'
6210  ;;
6211esac
6212
6213# If we're using GNU nm, then use its standard symbol codes.
6214case `$NM -V 2>&1` in
6215*GNU* | *'with BFD'*)
6216  symcode='[ABCDGIRSTW]' ;;
6217esac
6218
6219# Transform an extracted symbol line into a proper C declaration.
6220# Some systems (esp. on ia64) link data and code symbols differently,
6221# so use this general approach.
6222lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6223
6224# Transform an extracted symbol line into symbol name and symbol address
6225lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6226lt_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'"
6227
6228# Handle CRLF in mingw tool chain
6229opt_cr=
6230case $build_os in
6231mingw*)
6232  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6233  ;;
6234esac
6235
6236# Try without a prefix underscore, then with it.
6237for ac_symprfx in "" "_"; do
6238
6239  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6240  symxfrm="\\1 $ac_symprfx\\2 \\2"
6241
6242  # Write the raw and C identifiers.
6243  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6244    # Fake it for dumpbin and say T for any non-static function
6245    # and D for any global variable.
6246    # Also find C++ and __fastcall symbols from MSVC++,
6247    # which start with @ or ?.
6248    lt_cv_sys_global_symbol_pipe="$AWK '"\
6249"     {last_section=section; section=\$ 3};"\
6250"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6251"     \$ 0!~/External *\|/{next};"\
6252"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6253"     {if(hide[section]) next};"\
6254"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6255"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6256"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6257"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6258"     ' prfx=^$ac_symprfx"
6259  else
6260    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6261  fi
6262  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6263
6264  # Check to see that the pipe works correctly.
6265  pipe_works=no
6266
6267  rm -f conftest*
6268  cat > conftest.$ac_ext <<_LT_EOF
6269#ifdef __cplusplus
6270extern "C" {
6271#endif
6272char nm_test_var;
6273void nm_test_func(void);
6274void nm_test_func(void){}
6275#ifdef __cplusplus
6276}
6277#endif
6278int main(){nm_test_var='a';nm_test_func();return(0);}
6279_LT_EOF
6280
6281  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6282  (eval $ac_compile) 2>&5
6283  ac_status=$?
6284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285  test $ac_status = 0; }; then
6286    # Now try to grab the symbols.
6287    nlist=conftest.nm
6288    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6289  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6290  ac_status=$?
6291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292  test $ac_status = 0; } && test -s "$nlist"; then
6293      # Try sorting and uniquifying the output.
6294      if sort "$nlist" | uniq > "$nlist"T; then
6295	mv -f "$nlist"T "$nlist"
6296      else
6297	rm -f "$nlist"T
6298      fi
6299
6300      # Make sure that we snagged all the symbols we need.
6301      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6302	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6303	  cat <<_LT_EOF > conftest.$ac_ext
6304/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6305#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6306/* DATA imports from DLLs on WIN32 con't be const, because runtime
6307   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6308# define LT_DLSYM_CONST
6309#elif defined(__osf__)
6310/* This system does not cope well with relocations in const data.  */
6311# define LT_DLSYM_CONST
6312#else
6313# define LT_DLSYM_CONST const
6314#endif
6315
6316#ifdef __cplusplus
6317extern "C" {
6318#endif
6319
6320_LT_EOF
6321	  # Now generate the symbol file.
6322	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6323
6324	  cat <<_LT_EOF >> conftest.$ac_ext
6325
6326/* The mapping between symbol names and symbols.  */
6327LT_DLSYM_CONST struct {
6328  const char *name;
6329  void       *address;
6330}
6331lt__PROGRAM__LTX_preloaded_symbols[] =
6332{
6333  { "@PROGRAM@", (void *) 0 },
6334_LT_EOF
6335	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6336	  cat <<\_LT_EOF >> conftest.$ac_ext
6337  {0, (void *) 0}
6338};
6339
6340/* This works around a problem in FreeBSD linker */
6341#ifdef FREEBSD_WORKAROUND
6342static const void *lt_preloaded_setup() {
6343  return lt__PROGRAM__LTX_preloaded_symbols;
6344}
6345#endif
6346
6347#ifdef __cplusplus
6348}
6349#endif
6350_LT_EOF
6351	  # Now try linking the two files.
6352	  mv conftest.$ac_objext conftstm.$ac_objext
6353	  lt_globsym_save_LIBS=$LIBS
6354	  lt_globsym_save_CFLAGS=$CFLAGS
6355	  LIBS="conftstm.$ac_objext"
6356	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6357	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6358  (eval $ac_link) 2>&5
6359  ac_status=$?
6360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6362	    pipe_works=yes
6363	  fi
6364	  LIBS=$lt_globsym_save_LIBS
6365	  CFLAGS=$lt_globsym_save_CFLAGS
6366	else
6367	  echo "cannot find nm_test_func in $nlist" >&5
6368	fi
6369      else
6370	echo "cannot find nm_test_var in $nlist" >&5
6371      fi
6372    else
6373      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6374    fi
6375  else
6376    echo "$progname: failed program was:" >&5
6377    cat conftest.$ac_ext >&5
6378  fi
6379  rm -rf conftest* conftst*
6380
6381  # Do not use the global_symbol_pipe unless it works.
6382  if test "$pipe_works" = yes; then
6383    break
6384  else
6385    lt_cv_sys_global_symbol_pipe=
6386  fi
6387done
6388
6389fi
6390
6391if test -z "$lt_cv_sys_global_symbol_pipe"; then
6392  lt_cv_sys_global_symbol_to_cdecl=
6393fi
6394if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6396$as_echo "failed" >&6; }
6397else
6398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6399$as_echo "ok" >&6; }
6400fi
6401
6402# Response file support.
6403if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6404  nm_file_list_spec='@'
6405elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6406  nm_file_list_spec='@'
6407fi
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6436$as_echo_n "checking for sysroot... " >&6; }
6437
6438# Check whether --with-sysroot was given.
6439if test "${with_sysroot+set}" = set; then :
6440  withval=$with_sysroot;
6441else
6442  with_sysroot=no
6443fi
6444
6445
6446lt_sysroot=
6447case ${with_sysroot} in #(
6448 yes)
6449   if test "$GCC" = yes; then
6450     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6451   fi
6452   ;; #(
6453 /*)
6454   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6455   ;; #(
6456 no|'')
6457   ;; #(
6458 *)
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6460$as_echo "${with_sysroot}" >&6; }
6461   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6462   ;;
6463esac
6464
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6466$as_echo "${lt_sysroot:-no}" >&6; }
6467
6468
6469
6470
6471
6472# Check whether --enable-libtool-lock was given.
6473if test "${enable_libtool_lock+set}" = set; then :
6474  enableval=$enable_libtool_lock;
6475fi
6476
6477test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6478
6479# Some flags need to be propagated to the compiler or linker for good
6480# libtool support.
6481case $host in
6482ia64-*-hpux*)
6483  # Find out which ABI we are using.
6484  echo 'int i;' > conftest.$ac_ext
6485  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6486  (eval $ac_compile) 2>&5
6487  ac_status=$?
6488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489  test $ac_status = 0; }; then
6490    case `/usr/bin/file conftest.$ac_objext` in
6491      *ELF-32*)
6492	HPUX_IA64_MODE="32"
6493	;;
6494      *ELF-64*)
6495	HPUX_IA64_MODE="64"
6496	;;
6497    esac
6498  fi
6499  rm -rf conftest*
6500  ;;
6501*-*-irix6*)
6502  # Find out which ABI we are using.
6503  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6504  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505  (eval $ac_compile) 2>&5
6506  ac_status=$?
6507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508  test $ac_status = 0; }; then
6509    if test "$lt_cv_prog_gnu_ld" = yes; then
6510      case `/usr/bin/file conftest.$ac_objext` in
6511	*32-bit*)
6512	  LD="${LD-ld} -melf32bsmip"
6513	  ;;
6514	*N32*)
6515	  LD="${LD-ld} -melf32bmipn32"
6516	  ;;
6517	*64-bit*)
6518	  LD="${LD-ld} -melf64bmip"
6519	;;
6520      esac
6521    else
6522      case `/usr/bin/file conftest.$ac_objext` in
6523	*32-bit*)
6524	  LD="${LD-ld} -32"
6525	  ;;
6526	*N32*)
6527	  LD="${LD-ld} -n32"
6528	  ;;
6529	*64-bit*)
6530	  LD="${LD-ld} -64"
6531	  ;;
6532      esac
6533    fi
6534  fi
6535  rm -rf conftest*
6536  ;;
6537
6538x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6539s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6540  # Find out which ABI we are using.
6541  echo 'int i;' > conftest.$ac_ext
6542  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543  (eval $ac_compile) 2>&5
6544  ac_status=$?
6545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546  test $ac_status = 0; }; then
6547    case `/usr/bin/file conftest.o` in
6548      *32-bit*)
6549	case $host in
6550	  x86_64-*kfreebsd*-gnu)
6551	    LD="${LD-ld} -m elf_i386_fbsd"
6552	    ;;
6553	  x86_64-*linux*)
6554	    LD="${LD-ld} -m elf_i386"
6555	    ;;
6556	  ppc64-*linux*|powerpc64-*linux*)
6557	    LD="${LD-ld} -m elf32ppclinux"
6558	    ;;
6559	  s390x-*linux*)
6560	    LD="${LD-ld} -m elf_s390"
6561	    ;;
6562	  sparc64-*linux*)
6563	    LD="${LD-ld} -m elf32_sparc"
6564	    ;;
6565	esac
6566	;;
6567      *64-bit*)
6568	case $host in
6569	  x86_64-*kfreebsd*-gnu)
6570	    LD="${LD-ld} -m elf_x86_64_fbsd"
6571	    ;;
6572	  x86_64-*linux*)
6573	    LD="${LD-ld} -m elf_x86_64"
6574	    ;;
6575	  ppc*-*linux*|powerpc*-*linux*)
6576	    LD="${LD-ld} -m elf64ppc"
6577	    ;;
6578	  s390*-*linux*|s390*-*tpf*)
6579	    LD="${LD-ld} -m elf64_s390"
6580	    ;;
6581	  sparc*-*linux*)
6582	    LD="${LD-ld} -m elf64_sparc"
6583	    ;;
6584	esac
6585	;;
6586    esac
6587  fi
6588  rm -rf conftest*
6589  ;;
6590
6591*-*-sco3.2v5*)
6592  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6593  SAVE_CFLAGS="$CFLAGS"
6594  CFLAGS="$CFLAGS -belf"
6595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6596$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6597if ${lt_cv_cc_needs_belf+:} false; then :
6598  $as_echo_n "(cached) " >&6
6599else
6600  ac_ext=c
6601ac_cpp='$CPP $CPPFLAGS'
6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607/* end confdefs.h.  */
6608
6609int
6610main ()
6611{
6612
6613  ;
6614  return 0;
6615}
6616_ACEOF
6617if ac_fn_c_try_link "$LINENO"; then :
6618  lt_cv_cc_needs_belf=yes
6619else
6620  lt_cv_cc_needs_belf=no
6621fi
6622rm -f core conftest.err conftest.$ac_objext \
6623    conftest$ac_exeext conftest.$ac_ext
6624     ac_ext=c
6625ac_cpp='$CPP $CPPFLAGS'
6626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6632$as_echo "$lt_cv_cc_needs_belf" >&6; }
6633  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6634    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6635    CFLAGS="$SAVE_CFLAGS"
6636  fi
6637  ;;
6638sparc*-*solaris*)
6639  # Find out which ABI we are using.
6640  echo 'int i;' > conftest.$ac_ext
6641  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6642  (eval $ac_compile) 2>&5
6643  ac_status=$?
6644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6645  test $ac_status = 0; }; then
6646    case `/usr/bin/file conftest.o` in
6647    *64-bit*)
6648      case $lt_cv_prog_gnu_ld in
6649      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6650      *)
6651	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6652	  LD="${LD-ld} -64"
6653	fi
6654	;;
6655      esac
6656      ;;
6657    esac
6658  fi
6659  rm -rf conftest*
6660  ;;
6661esac
6662
6663need_locks="$enable_libtool_lock"
6664
6665if test -n "$ac_tool_prefix"; then
6666  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6667set dummy ${ac_tool_prefix}mt; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  if test -n "$MANIFEST_TOOL"; then
6674  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6694if test -n "$MANIFEST_TOOL"; then
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6696$as_echo "$MANIFEST_TOOL" >&6; }
6697else
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702
6703fi
6704if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6705  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6706  # Extract the first word of "mt", so it can be a program name with args.
6707set dummy mt; ac_word=$2
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709$as_echo_n "checking for $ac_word... " >&6; }
6710if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6711  $as_echo_n "(cached) " >&6
6712else
6713  if test -n "$ac_ct_MANIFEST_TOOL"; then
6714  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719  IFS=$as_save_IFS
6720  test -z "$as_dir" && as_dir=.
6721    for ac_exec_ext in '' $ac_executable_extensions; do
6722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725    break 2
6726  fi
6727done
6728  done
6729IFS=$as_save_IFS
6730
6731fi
6732fi
6733ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6734if test -n "$ac_ct_MANIFEST_TOOL"; then
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6736$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6737else
6738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739$as_echo "no" >&6; }
6740fi
6741
6742  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6743    MANIFEST_TOOL=":"
6744  else
6745    case $cross_compiling:$ac_tool_warned in
6746yes:)
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749ac_tool_warned=yes ;;
6750esac
6751    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6752  fi
6753else
6754  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6755fi
6756
6757test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6759$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6760if ${lt_cv_path_mainfest_tool+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  lt_cv_path_mainfest_tool=no
6764  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6765  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6766  cat conftest.err >&5
6767  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6768    lt_cv_path_mainfest_tool=yes
6769  fi
6770  rm -f conftest*
6771fi
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6773$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6774if test "x$lt_cv_path_mainfest_tool" != xyes; then
6775  MANIFEST_TOOL=:
6776fi
6777
6778
6779
6780
6781
6782
6783  case $host_os in
6784    rhapsody* | darwin*)
6785    if test -n "$ac_tool_prefix"; then
6786  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6787set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789$as_echo_n "checking for $ac_word... " >&6; }
6790if ${ac_cv_prog_DSYMUTIL+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  if test -n "$DSYMUTIL"; then
6794  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799  IFS=$as_save_IFS
6800  test -z "$as_dir" && as_dir=.
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813DSYMUTIL=$ac_cv_prog_DSYMUTIL
6814if test -n "$DSYMUTIL"; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6816$as_echo "$DSYMUTIL" >&6; }
6817else
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819$as_echo "no" >&6; }
6820fi
6821
6822
6823fi
6824if test -z "$ac_cv_prog_DSYMUTIL"; then
6825  ac_ct_DSYMUTIL=$DSYMUTIL
6826  # Extract the first word of "dsymutil", so it can be a program name with args.
6827set dummy dsymutil; ac_word=$2
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  if test -n "$ac_ct_DSYMUTIL"; then
6834  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839  IFS=$as_save_IFS
6840  test -z "$as_dir" && as_dir=.
6841    for ac_exec_ext in '' $ac_executable_extensions; do
6842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845    break 2
6846  fi
6847done
6848  done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6854if test -n "$ac_ct_DSYMUTIL"; then
6855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6856$as_echo "$ac_ct_DSYMUTIL" >&6; }
6857else
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862  if test "x$ac_ct_DSYMUTIL" = x; then
6863    DSYMUTIL=":"
6864  else
6865    case $cross_compiling:$ac_tool_warned in
6866yes:)
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869ac_tool_warned=yes ;;
6870esac
6871    DSYMUTIL=$ac_ct_DSYMUTIL
6872  fi
6873else
6874  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6875fi
6876
6877    if test -n "$ac_tool_prefix"; then
6878  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6879set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881$as_echo_n "checking for $ac_word... " >&6; }
6882if ${ac_cv_prog_NMEDIT+:} false; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  if test -n "$NMEDIT"; then
6886  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891  IFS=$as_save_IFS
6892  test -z "$as_dir" && as_dir=.
6893    for ac_exec_ext in '' $ac_executable_extensions; do
6894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897    break 2
6898  fi
6899done
6900  done
6901IFS=$as_save_IFS
6902
6903fi
6904fi
6905NMEDIT=$ac_cv_prog_NMEDIT
6906if test -n "$NMEDIT"; then
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6908$as_echo "$NMEDIT" >&6; }
6909else
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911$as_echo "no" >&6; }
6912fi
6913
6914
6915fi
6916if test -z "$ac_cv_prog_NMEDIT"; then
6917  ac_ct_NMEDIT=$NMEDIT
6918  # Extract the first word of "nmedit", so it can be a program name with args.
6919set dummy nmedit; ac_word=$2
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921$as_echo_n "checking for $ac_word... " >&6; }
6922if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  if test -n "$ac_ct_NMEDIT"; then
6926  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6927else
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931  IFS=$as_save_IFS
6932  test -z "$as_dir" && as_dir=.
6933    for ac_exec_ext in '' $ac_executable_extensions; do
6934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937    break 2
6938  fi
6939done
6940  done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6946if test -n "$ac_ct_NMEDIT"; then
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6948$as_echo "$ac_ct_NMEDIT" >&6; }
6949else
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951$as_echo "no" >&6; }
6952fi
6953
6954  if test "x$ac_ct_NMEDIT" = x; then
6955    NMEDIT=":"
6956  else
6957    case $cross_compiling:$ac_tool_warned in
6958yes:)
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961ac_tool_warned=yes ;;
6962esac
6963    NMEDIT=$ac_ct_NMEDIT
6964  fi
6965else
6966  NMEDIT="$ac_cv_prog_NMEDIT"
6967fi
6968
6969    if test -n "$ac_tool_prefix"; then
6970  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6971set dummy ${ac_tool_prefix}lipo; ac_word=$2
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973$as_echo_n "checking for $ac_word... " >&6; }
6974if ${ac_cv_prog_LIPO+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  if test -n "$LIPO"; then
6978  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6979else
6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983  IFS=$as_save_IFS
6984  test -z "$as_dir" && as_dir=.
6985    for ac_exec_ext in '' $ac_executable_extensions; do
6986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989    break 2
6990  fi
6991done
6992  done
6993IFS=$as_save_IFS
6994
6995fi
6996fi
6997LIPO=$ac_cv_prog_LIPO
6998if test -n "$LIPO"; then
6999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7000$as_echo "$LIPO" >&6; }
7001else
7002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003$as_echo "no" >&6; }
7004fi
7005
7006
7007fi
7008if test -z "$ac_cv_prog_LIPO"; then
7009  ac_ct_LIPO=$LIPO
7010  # Extract the first word of "lipo", so it can be a program name with args.
7011set dummy lipo; ac_word=$2
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013$as_echo_n "checking for $ac_word... " >&6; }
7014if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  if test -n "$ac_ct_LIPO"; then
7018  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023  IFS=$as_save_IFS
7024  test -z "$as_dir" && as_dir=.
7025    for ac_exec_ext in '' $ac_executable_extensions; do
7026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027    ac_cv_prog_ac_ct_LIPO="lipo"
7028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029    break 2
7030  fi
7031done
7032  done
7033IFS=$as_save_IFS
7034
7035fi
7036fi
7037ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7038if test -n "$ac_ct_LIPO"; then
7039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7040$as_echo "$ac_ct_LIPO" >&6; }
7041else
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043$as_echo "no" >&6; }
7044fi
7045
7046  if test "x$ac_ct_LIPO" = x; then
7047    LIPO=":"
7048  else
7049    case $cross_compiling:$ac_tool_warned in
7050yes:)
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053ac_tool_warned=yes ;;
7054esac
7055    LIPO=$ac_ct_LIPO
7056  fi
7057else
7058  LIPO="$ac_cv_prog_LIPO"
7059fi
7060
7061    if test -n "$ac_tool_prefix"; then
7062  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7063set dummy ${ac_tool_prefix}otool; ac_word=$2
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065$as_echo_n "checking for $ac_word... " >&6; }
7066if ${ac_cv_prog_OTOOL+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  if test -n "$OTOOL"; then
7070  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075  IFS=$as_save_IFS
7076  test -z "$as_dir" && as_dir=.
7077    for ac_exec_ext in '' $ac_executable_extensions; do
7078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081    break 2
7082  fi
7083done
7084  done
7085IFS=$as_save_IFS
7086
7087fi
7088fi
7089OTOOL=$ac_cv_prog_OTOOL
7090if test -n "$OTOOL"; then
7091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7092$as_echo "$OTOOL" >&6; }
7093else
7094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095$as_echo "no" >&6; }
7096fi
7097
7098
7099fi
7100if test -z "$ac_cv_prog_OTOOL"; then
7101  ac_ct_OTOOL=$OTOOL
7102  # Extract the first word of "otool", so it can be a program name with args.
7103set dummy otool; ac_word=$2
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
7106if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7107  $as_echo_n "(cached) " >&6
7108else
7109  if test -n "$ac_ct_OTOOL"; then
7110  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115  IFS=$as_save_IFS
7116  test -z "$as_dir" && as_dir=.
7117    for ac_exec_ext in '' $ac_executable_extensions; do
7118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119    ac_cv_prog_ac_ct_OTOOL="otool"
7120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121    break 2
7122  fi
7123done
7124  done
7125IFS=$as_save_IFS
7126
7127fi
7128fi
7129ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7130if test -n "$ac_ct_OTOOL"; then
7131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7132$as_echo "$ac_ct_OTOOL" >&6; }
7133else
7134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
7136fi
7137
7138  if test "x$ac_ct_OTOOL" = x; then
7139    OTOOL=":"
7140  else
7141    case $cross_compiling:$ac_tool_warned in
7142yes:)
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145ac_tool_warned=yes ;;
7146esac
7147    OTOOL=$ac_ct_OTOOL
7148  fi
7149else
7150  OTOOL="$ac_cv_prog_OTOOL"
7151fi
7152
7153    if test -n "$ac_tool_prefix"; then
7154  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}otool64; ac_word=$2
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157$as_echo_n "checking for $ac_word... " >&6; }
7158if ${ac_cv_prog_OTOOL64+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  if test -n "$OTOOL64"; then
7162  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167  IFS=$as_save_IFS
7168  test -z "$as_dir" && as_dir=.
7169    for ac_exec_ext in '' $ac_executable_extensions; do
7170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173    break 2
7174  fi
7175done
7176  done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181OTOOL64=$ac_cv_prog_OTOOL64
7182if test -n "$OTOOL64"; then
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7184$as_echo "$OTOOL64" >&6; }
7185else
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187$as_echo "no" >&6; }
7188fi
7189
7190
7191fi
7192if test -z "$ac_cv_prog_OTOOL64"; then
7193  ac_ct_OTOOL64=$OTOOL64
7194  # Extract the first word of "otool64", so it can be a program name with args.
7195set dummy otool64; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$ac_ct_OTOOL64"; then
7202  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209    for ac_exec_ext in '' $ac_executable_extensions; do
7210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211    ac_cv_prog_ac_ct_OTOOL64="otool64"
7212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216  done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7222if test -n "$ac_ct_OTOOL64"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7224$as_echo "$ac_ct_OTOOL64" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230  if test "x$ac_ct_OTOOL64" = x; then
7231    OTOOL64=":"
7232  else
7233    case $cross_compiling:$ac_tool_warned in
7234yes:)
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237ac_tool_warned=yes ;;
7238esac
7239    OTOOL64=$ac_ct_OTOOL64
7240  fi
7241else
7242  OTOOL64="$ac_cv_prog_OTOOL64"
7243fi
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7272$as_echo_n "checking for -single_module linker flag... " >&6; }
7273if ${lt_cv_apple_cc_single_mod+:} false; then :
7274  $as_echo_n "(cached) " >&6
7275else
7276  lt_cv_apple_cc_single_mod=no
7277      if test -z "${LT_MULTI_MODULE}"; then
7278	# By default we will add the -single_module flag. You can override
7279	# by either setting the environment variable LT_MULTI_MODULE
7280	# non-empty at configure time, or by adding -multi_module to the
7281	# link flags.
7282	rm -rf libconftest.dylib*
7283	echo "int foo(void){return 1;}" > conftest.c
7284	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7285-dynamiclib -Wl,-single_module conftest.c" >&5
7286	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7287	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7288        _lt_result=$?
7289	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7290	  lt_cv_apple_cc_single_mod=yes
7291	else
7292	  cat conftest.err >&5
7293	fi
7294	rm -rf libconftest.dylib*
7295	rm -f conftest.*
7296      fi
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7299$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7301$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7302if ${lt_cv_ld_exported_symbols_list+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  lt_cv_ld_exported_symbols_list=no
7306      save_LDFLAGS=$LDFLAGS
7307      echo "_main" > conftest.sym
7308      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7309      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h.  */
7311
7312int
7313main ()
7314{
7315
7316  ;
7317  return 0;
7318}
7319_ACEOF
7320if ac_fn_c_try_link "$LINENO"; then :
7321  lt_cv_ld_exported_symbols_list=yes
7322else
7323  lt_cv_ld_exported_symbols_list=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext \
7326    conftest$ac_exeext conftest.$ac_ext
7327	LDFLAGS="$save_LDFLAGS"
7328
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7331$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7333$as_echo_n "checking for -force_load linker flag... " >&6; }
7334if ${lt_cv_ld_force_load+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  lt_cv_ld_force_load=no
7338      cat > conftest.c << _LT_EOF
7339int forced_loaded() { return 2;}
7340_LT_EOF
7341      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7342      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7343      echo "$AR cru libconftest.a conftest.o" >&5
7344      $AR cru libconftest.a conftest.o 2>&5
7345      echo "$RANLIB libconftest.a" >&5
7346      $RANLIB libconftest.a 2>&5
7347      cat > conftest.c << _LT_EOF
7348int main() { return 0;}
7349_LT_EOF
7350      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7351      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7352      _lt_result=$?
7353      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7354	lt_cv_ld_force_load=yes
7355      else
7356	cat conftest.err >&5
7357      fi
7358        rm -f conftest.err libconftest.a conftest conftest.c
7359        rm -rf conftest.dSYM
7360
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7363$as_echo "$lt_cv_ld_force_load" >&6; }
7364    case $host_os in
7365    rhapsody* | darwin1.[012])
7366      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7367    darwin1.*)
7368      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7369    darwin*) # darwin 5.x on
7370      # if running on 10.5 or later, the deployment target defaults
7371      # to the OS version, if on x86, and 10.4, the deployment
7372      # target defaults to 10.4. Don't you love it?
7373      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7374	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7375	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7376	10.[012]*)
7377	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7378	10.*)
7379	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7380      esac
7381    ;;
7382  esac
7383    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7384      _lt_dar_single_mod='$single_module'
7385    fi
7386    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7387      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7388    else
7389      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7390    fi
7391    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7392      _lt_dsymutil='~$DSYMUTIL $lib || :'
7393    else
7394      _lt_dsymutil=
7395    fi
7396    ;;
7397  esac
7398
7399for ac_header in dlfcn.h
7400do :
7401  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7402"
7403if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7404  cat >>confdefs.h <<_ACEOF
7405#define HAVE_DLFCN_H 1
7406_ACEOF
7407
7408fi
7409
7410done
7411
7412
7413
7414
7415
7416# Set options
7417
7418
7419
7420        enable_dlopen=no
7421
7422
7423  enable_win32_dll=no
7424
7425
7426            # Check whether --enable-shared was given.
7427if test "${enable_shared+set}" = set; then :
7428  enableval=$enable_shared; p=${PACKAGE-default}
7429    case $enableval in
7430    yes) enable_shared=yes ;;
7431    no) enable_shared=no ;;
7432    *)
7433      enable_shared=no
7434      # Look at the argument we got.  We use all the common list separators.
7435      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7436      for pkg in $enableval; do
7437	IFS="$lt_save_ifs"
7438	if test "X$pkg" = "X$p"; then
7439	  enable_shared=yes
7440	fi
7441      done
7442      IFS="$lt_save_ifs"
7443      ;;
7444    esac
7445else
7446  enable_shared=yes
7447fi
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457  # Check whether --enable-static was given.
7458if test "${enable_static+set}" = set; then :
7459  enableval=$enable_static; p=${PACKAGE-default}
7460    case $enableval in
7461    yes) enable_static=yes ;;
7462    no) enable_static=no ;;
7463    *)
7464     enable_static=no
7465      # Look at the argument we got.  We use all the common list separators.
7466      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7467      for pkg in $enableval; do
7468	IFS="$lt_save_ifs"
7469	if test "X$pkg" = "X$p"; then
7470	  enable_static=yes
7471	fi
7472      done
7473      IFS="$lt_save_ifs"
7474      ;;
7475    esac
7476else
7477  enable_static=yes
7478fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489# Check whether --with-pic was given.
7490if test "${with_pic+set}" = set; then :
7491  withval=$with_pic; pic_mode="$withval"
7492else
7493  pic_mode=default
7494fi
7495
7496
7497test -z "$pic_mode" && pic_mode=default
7498
7499
7500
7501
7502
7503
7504
7505  # Check whether --enable-fast-install was given.
7506if test "${enable_fast_install+set}" = set; then :
7507  enableval=$enable_fast_install; p=${PACKAGE-default}
7508    case $enableval in
7509    yes) enable_fast_install=yes ;;
7510    no) enable_fast_install=no ;;
7511    *)
7512      enable_fast_install=no
7513      # Look at the argument we got.  We use all the common list separators.
7514      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7515      for pkg in $enableval; do
7516	IFS="$lt_save_ifs"
7517	if test "X$pkg" = "X$p"; then
7518	  enable_fast_install=yes
7519	fi
7520      done
7521      IFS="$lt_save_ifs"
7522      ;;
7523    esac
7524else
7525  enable_fast_install=yes
7526fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538# This can be used to rebuild libtool when needed
7539LIBTOOL_DEPS="$ltmain"
7540
7541# Always use our own libtool.
7542LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569test -z "$LN_S" && LN_S="ln -s"
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584if test -n "${ZSH_VERSION+set}" ; then
7585   setopt NO_GLOB_SUBST
7586fi
7587
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7589$as_echo_n "checking for objdir... " >&6; }
7590if ${lt_cv_objdir+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  rm -f .libs 2>/dev/null
7594mkdir .libs 2>/dev/null
7595if test -d .libs; then
7596  lt_cv_objdir=.libs
7597else
7598  # MS-DOS does not allow filenames that begin with a dot.
7599  lt_cv_objdir=_libs
7600fi
7601rmdir .libs 2>/dev/null
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7604$as_echo "$lt_cv_objdir" >&6; }
7605objdir=$lt_cv_objdir
7606
7607
7608
7609
7610
7611cat >>confdefs.h <<_ACEOF
7612#define LT_OBJDIR "$lt_cv_objdir/"
7613_ACEOF
7614
7615
7616
7617
7618case $host_os in
7619aix3*)
7620  # AIX sometimes has problems with the GCC collect2 program.  For some
7621  # reason, if we set the COLLECT_NAMES environment variable, the problems
7622  # vanish in a puff of smoke.
7623  if test "X${COLLECT_NAMES+set}" != Xset; then
7624    COLLECT_NAMES=
7625    export COLLECT_NAMES
7626  fi
7627  ;;
7628esac
7629
7630# Global variables:
7631ofile=libtool
7632can_build_shared=yes
7633
7634# All known linkers require a `.a' archive for static linking (except MSVC,
7635# which needs '.lib').
7636libext=a
7637
7638with_gnu_ld="$lt_cv_prog_gnu_ld"
7639
7640old_CC="$CC"
7641old_CFLAGS="$CFLAGS"
7642
7643# Set sane defaults for various variables
7644test -z "$CC" && CC=cc
7645test -z "$LTCC" && LTCC=$CC
7646test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7647test -z "$LD" && LD=ld
7648test -z "$ac_objext" && ac_objext=o
7649
7650for cc_temp in $compiler""; do
7651  case $cc_temp in
7652    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7653    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7654    \-*) ;;
7655    *) break;;
7656  esac
7657done
7658cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7659
7660
7661# Only perform the check for file, if the check method requires it
7662test -z "$MAGIC_CMD" && MAGIC_CMD=file
7663case $deplibs_check_method in
7664file_magic*)
7665  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7667$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7668if ${lt_cv_path_MAGIC_CMD+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  case $MAGIC_CMD in
7672[\\/*] |  ?:[\\/]*)
7673  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7674  ;;
7675*)
7676  lt_save_MAGIC_CMD="$MAGIC_CMD"
7677  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7678  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7679  for ac_dir in $ac_dummy; do
7680    IFS="$lt_save_ifs"
7681    test -z "$ac_dir" && ac_dir=.
7682    if test -f $ac_dir/${ac_tool_prefix}file; then
7683      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7684      if test -n "$file_magic_test_file"; then
7685	case $deplibs_check_method in
7686	"file_magic "*)
7687	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7688	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7690	    $EGREP "$file_magic_regex" > /dev/null; then
7691	    :
7692	  else
7693	    cat <<_LT_EOF 1>&2
7694
7695*** Warning: the command libtool uses to detect shared libraries,
7696*** $file_magic_cmd, produces output that libtool cannot recognize.
7697*** The result is that libtool may fail to recognize shared libraries
7698*** as such.  This will affect the creation of libtool libraries that
7699*** depend on shared libraries, but programs linked with such libtool
7700*** libraries will work regardless of this problem.  Nevertheless, you
7701*** may want to report the problem to your system manager and/or to
7702*** bug-libtool@gnu.org
7703
7704_LT_EOF
7705	  fi ;;
7706	esac
7707      fi
7708      break
7709    fi
7710  done
7711  IFS="$lt_save_ifs"
7712  MAGIC_CMD="$lt_save_MAGIC_CMD"
7713  ;;
7714esac
7715fi
7716
7717MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7718if test -n "$MAGIC_CMD"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7720$as_echo "$MAGIC_CMD" >&6; }
7721else
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
7724fi
7725
7726
7727
7728
7729
7730if test -z "$lt_cv_path_MAGIC_CMD"; then
7731  if test -n "$ac_tool_prefix"; then
7732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7733$as_echo_n "checking for file... " >&6; }
7734if ${lt_cv_path_MAGIC_CMD+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  case $MAGIC_CMD in
7738[\\/*] |  ?:[\\/]*)
7739  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7740  ;;
7741*)
7742  lt_save_MAGIC_CMD="$MAGIC_CMD"
7743  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7744  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7745  for ac_dir in $ac_dummy; do
7746    IFS="$lt_save_ifs"
7747    test -z "$ac_dir" && ac_dir=.
7748    if test -f $ac_dir/file; then
7749      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7750      if test -n "$file_magic_test_file"; then
7751	case $deplibs_check_method in
7752	"file_magic "*)
7753	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7754	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7756	    $EGREP "$file_magic_regex" > /dev/null; then
7757	    :
7758	  else
7759	    cat <<_LT_EOF 1>&2
7760
7761*** Warning: the command libtool uses to detect shared libraries,
7762*** $file_magic_cmd, produces output that libtool cannot recognize.
7763*** The result is that libtool may fail to recognize shared libraries
7764*** as such.  This will affect the creation of libtool libraries that
7765*** depend on shared libraries, but programs linked with such libtool
7766*** libraries will work regardless of this problem.  Nevertheless, you
7767*** may want to report the problem to your system manager and/or to
7768*** bug-libtool@gnu.org
7769
7770_LT_EOF
7771	  fi ;;
7772	esac
7773      fi
7774      break
7775    fi
7776  done
7777  IFS="$lt_save_ifs"
7778  MAGIC_CMD="$lt_save_MAGIC_CMD"
7779  ;;
7780esac
7781fi
7782
7783MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784if test -n "$MAGIC_CMD"; then
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7786$as_echo "$MAGIC_CMD" >&6; }
7787else
7788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789$as_echo "no" >&6; }
7790fi
7791
7792
7793  else
7794    MAGIC_CMD=:
7795  fi
7796fi
7797
7798  fi
7799  ;;
7800esac
7801
7802# Use C for the default configuration in the libtool script
7803
7804lt_save_CC="$CC"
7805ac_ext=c
7806ac_cpp='$CPP $CPPFLAGS'
7807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811
7812# Source file extension for C test sources.
7813ac_ext=c
7814
7815# Object file extension for compiled C test sources.
7816objext=o
7817objext=$objext
7818
7819# Code to be used in simple compile tests
7820lt_simple_compile_test_code="int some_variable = 0;"
7821
7822# Code to be used in simple link tests
7823lt_simple_link_test_code='int main(){return(0);}'
7824
7825
7826
7827
7828
7829
7830
7831# If no C compiler was specified, use CC.
7832LTCC=${LTCC-"$CC"}
7833
7834# If no C compiler flags were specified, use CFLAGS.
7835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7836
7837# Allow CC to be a program name with arguments.
7838compiler=$CC
7839
7840# Save the default compiler, since it gets overwritten when the other
7841# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7842compiler_DEFAULT=$CC
7843
7844# save warnings/boilerplate of simple test code
7845ac_outfile=conftest.$ac_objext
7846echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7847eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7848_lt_compiler_boilerplate=`cat conftest.err`
7849$RM conftest*
7850
7851ac_outfile=conftest.$ac_objext
7852echo "$lt_simple_link_test_code" >conftest.$ac_ext
7853eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7854_lt_linker_boilerplate=`cat conftest.err`
7855$RM -r conftest*
7856
7857
7858if test -n "$compiler"; then
7859
7860lt_prog_compiler_no_builtin_flag=
7861
7862if test "$GCC" = yes; then
7863  case $cc_basename in
7864  nvcc*)
7865    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7866  *)
7867    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7868  esac
7869
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7871$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7872if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  lt_cv_prog_compiler_rtti_exceptions=no
7876   ac_outfile=conftest.$ac_objext
7877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878   lt_compiler_flag="-fno-rtti -fno-exceptions"
7879   # Insert the option either (1) after the last *FLAGS variable, or
7880   # (2) before a word containing "conftest.", or (3) at the end.
7881   # Note that $ac_compile itself does not contain backslashes and begins
7882   # with a dollar sign (not a hyphen), so the echo should work correctly.
7883   # The option is referenced via a variable to avoid confusing sed.
7884   lt_compile=`echo "$ac_compile" | $SED \
7885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887   -e 's:$: $lt_compiler_flag:'`
7888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7889   (eval "$lt_compile" 2>conftest.err)
7890   ac_status=$?
7891   cat conftest.err >&5
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   if (exit $ac_status) && test -s "$ac_outfile"; then
7894     # The compiler can only warn and ignore the option if not recognized
7895     # So say no if there are warnings other than the usual output.
7896     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7897     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899       lt_cv_prog_compiler_rtti_exceptions=yes
7900     fi
7901   fi
7902   $RM conftest*
7903
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7906$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7907
7908if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7909    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7910else
7911    :
7912fi
7913
7914fi
7915
7916
7917
7918
7919
7920
7921  lt_prog_compiler_wl=
7922lt_prog_compiler_pic=
7923lt_prog_compiler_static=
7924
7925
7926  if test "$GCC" = yes; then
7927    lt_prog_compiler_wl='-Wl,'
7928    lt_prog_compiler_static='-static'
7929
7930    case $host_os in
7931      aix*)
7932      # All AIX code is PIC.
7933      if test "$host_cpu" = ia64; then
7934	# AIX 5 now supports IA64 processor
7935	lt_prog_compiler_static='-Bstatic'
7936      fi
7937      ;;
7938
7939    amigaos*)
7940      case $host_cpu in
7941      powerpc)
7942            # see comment about AmigaOS4 .so support
7943            lt_prog_compiler_pic='-fPIC'
7944        ;;
7945      m68k)
7946            # FIXME: we need at least 68020 code to build shared libraries, but
7947            # adding the `-m68020' flag to GCC prevents building anything better,
7948            # like `-m68040'.
7949            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7950        ;;
7951      esac
7952      ;;
7953
7954    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7955      # PIC is the default for these OSes.
7956      ;;
7957
7958    mingw* | cygwin* | pw32* | os2* | cegcc*)
7959      # This hack is so that the source file can tell whether it is being
7960      # built for inclusion in a dll (and should export symbols for example).
7961      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7962      # (--disable-auto-import) libraries
7963      lt_prog_compiler_pic='-DDLL_EXPORT'
7964      ;;
7965
7966    darwin* | rhapsody*)
7967      # PIC is the default on this platform
7968      # Common symbols not allowed in MH_DYLIB files
7969      lt_prog_compiler_pic='-fno-common'
7970      ;;
7971
7972    haiku*)
7973      # PIC is the default for Haiku.
7974      # The "-static" flag exists, but is broken.
7975      lt_prog_compiler_static=
7976      ;;
7977
7978    hpux*)
7979      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7980      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7981      # sets the default TLS model and affects inlining.
7982      case $host_cpu in
7983      hppa*64*)
7984	# +Z the default
7985	;;
7986      *)
7987	lt_prog_compiler_pic='-fPIC'
7988	;;
7989      esac
7990      ;;
7991
7992    interix[3-9]*)
7993      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7994      # Instead, we relocate shared libraries at runtime.
7995      ;;
7996
7997    msdosdjgpp*)
7998      # Just because we use GCC doesn't mean we suddenly get shared libraries
7999      # on systems that don't support them.
8000      lt_prog_compiler_can_build_shared=no
8001      enable_shared=no
8002      ;;
8003
8004    *nto* | *qnx*)
8005      # QNX uses GNU C++, but need to define -shared option too, otherwise
8006      # it will coredump.
8007      lt_prog_compiler_pic='-fPIC -shared'
8008      ;;
8009
8010    sysv4*MP*)
8011      if test -d /usr/nec; then
8012	lt_prog_compiler_pic=-Kconform_pic
8013      fi
8014      ;;
8015
8016    *)
8017      lt_prog_compiler_pic='-fPIC'
8018      ;;
8019    esac
8020
8021    case $cc_basename in
8022    nvcc*) # Cuda Compiler Driver 2.2
8023      lt_prog_compiler_wl='-Xlinker '
8024      lt_prog_compiler_pic='-Xcompiler -fPIC'
8025      ;;
8026    esac
8027  else
8028    # PORTME Check for flag to pass linker flags through the system compiler.
8029    case $host_os in
8030    aix*)
8031      lt_prog_compiler_wl='-Wl,'
8032      if test "$host_cpu" = ia64; then
8033	# AIX 5 now supports IA64 processor
8034	lt_prog_compiler_static='-Bstatic'
8035      else
8036	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8037      fi
8038      ;;
8039
8040    mingw* | cygwin* | pw32* | os2* | cegcc*)
8041      # This hack is so that the source file can tell whether it is being
8042      # built for inclusion in a dll (and should export symbols for example).
8043      lt_prog_compiler_pic='-DDLL_EXPORT'
8044      ;;
8045
8046    hpux9* | hpux10* | hpux11*)
8047      lt_prog_compiler_wl='-Wl,'
8048      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8049      # not for PA HP-UX.
8050      case $host_cpu in
8051      hppa*64*|ia64*)
8052	# +Z the default
8053	;;
8054      *)
8055	lt_prog_compiler_pic='+Z'
8056	;;
8057      esac
8058      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8059      lt_prog_compiler_static='${wl}-a ${wl}archive'
8060      ;;
8061
8062    irix5* | irix6* | nonstopux*)
8063      lt_prog_compiler_wl='-Wl,'
8064      # PIC (with -KPIC) is the default.
8065      lt_prog_compiler_static='-non_shared'
8066      ;;
8067
8068    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8069      case $cc_basename in
8070      # old Intel for x86_64 which still supported -KPIC.
8071      ecc*)
8072	lt_prog_compiler_wl='-Wl,'
8073	lt_prog_compiler_pic='-KPIC'
8074	lt_prog_compiler_static='-static'
8075        ;;
8076      # icc used to be incompatible with GCC.
8077      # ICC 10 doesn't accept -KPIC any more.
8078      icc* | ifort*)
8079	lt_prog_compiler_wl='-Wl,'
8080	lt_prog_compiler_pic='-fPIC'
8081	lt_prog_compiler_static='-static'
8082        ;;
8083      # Lahey Fortran 8.1.
8084      lf95*)
8085	lt_prog_compiler_wl='-Wl,'
8086	lt_prog_compiler_pic='--shared'
8087	lt_prog_compiler_static='--static'
8088	;;
8089      nagfor*)
8090	# NAG Fortran compiler
8091	lt_prog_compiler_wl='-Wl,-Wl,,'
8092	lt_prog_compiler_pic='-PIC'
8093	lt_prog_compiler_static='-Bstatic'
8094	;;
8095      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8096        # Portland Group compilers (*not* the Pentium gcc compiler,
8097	# which looks to be a dead project)
8098	lt_prog_compiler_wl='-Wl,'
8099	lt_prog_compiler_pic='-fpic'
8100	lt_prog_compiler_static='-Bstatic'
8101        ;;
8102      ccc*)
8103        lt_prog_compiler_wl='-Wl,'
8104        # All Alpha code is PIC.
8105        lt_prog_compiler_static='-non_shared'
8106        ;;
8107      xl* | bgxl* | bgf* | mpixl*)
8108	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8109	lt_prog_compiler_wl='-Wl,'
8110	lt_prog_compiler_pic='-qpic'
8111	lt_prog_compiler_static='-qstaticlink'
8112	;;
8113      *)
8114	case `$CC -V 2>&1 | sed 5q` in
8115	*Sun\ F* | *Sun*Fortran*)
8116	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8117	  lt_prog_compiler_pic='-KPIC'
8118	  lt_prog_compiler_static='-Bstatic'
8119	  lt_prog_compiler_wl=''
8120	  ;;
8121	*Sun\ C*)
8122	  # Sun C 5.9
8123	  lt_prog_compiler_pic='-KPIC'
8124	  lt_prog_compiler_static='-Bstatic'
8125	  lt_prog_compiler_wl='-Wl,'
8126	  ;;
8127	esac
8128	;;
8129      esac
8130      ;;
8131
8132    newsos6)
8133      lt_prog_compiler_pic='-KPIC'
8134      lt_prog_compiler_static='-Bstatic'
8135      ;;
8136
8137    *nto* | *qnx*)
8138      # QNX uses GNU C++, but need to define -shared option too, otherwise
8139      # it will coredump.
8140      lt_prog_compiler_pic='-fPIC -shared'
8141      ;;
8142
8143    osf3* | osf4* | osf5*)
8144      lt_prog_compiler_wl='-Wl,'
8145      # All OSF/1 code is PIC.
8146      lt_prog_compiler_static='-non_shared'
8147      ;;
8148
8149    rdos*)
8150      lt_prog_compiler_static='-non_shared'
8151      ;;
8152
8153    solaris*)
8154      lt_prog_compiler_pic='-KPIC'
8155      lt_prog_compiler_static='-Bstatic'
8156      case $cc_basename in
8157      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8158	lt_prog_compiler_wl='-Qoption ld ';;
8159      *)
8160	lt_prog_compiler_wl='-Wl,';;
8161      esac
8162      ;;
8163
8164    sunos4*)
8165      lt_prog_compiler_wl='-Qoption ld '
8166      lt_prog_compiler_pic='-PIC'
8167      lt_prog_compiler_static='-Bstatic'
8168      ;;
8169
8170    sysv4 | sysv4.2uw2* | sysv4.3*)
8171      lt_prog_compiler_wl='-Wl,'
8172      lt_prog_compiler_pic='-KPIC'
8173      lt_prog_compiler_static='-Bstatic'
8174      ;;
8175
8176    sysv4*MP*)
8177      if test -d /usr/nec ;then
8178	lt_prog_compiler_pic='-Kconform_pic'
8179	lt_prog_compiler_static='-Bstatic'
8180      fi
8181      ;;
8182
8183    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8184      lt_prog_compiler_wl='-Wl,'
8185      lt_prog_compiler_pic='-KPIC'
8186      lt_prog_compiler_static='-Bstatic'
8187      ;;
8188
8189    unicos*)
8190      lt_prog_compiler_wl='-Wl,'
8191      lt_prog_compiler_can_build_shared=no
8192      ;;
8193
8194    uts4*)
8195      lt_prog_compiler_pic='-pic'
8196      lt_prog_compiler_static='-Bstatic'
8197      ;;
8198
8199    *)
8200      lt_prog_compiler_can_build_shared=no
8201      ;;
8202    esac
8203  fi
8204
8205case $host_os in
8206  # For platforms which do not support PIC, -DPIC is meaningless:
8207  *djgpp*)
8208    lt_prog_compiler_pic=
8209    ;;
8210  *)
8211    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8212    ;;
8213esac
8214
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8216$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8217if ${lt_cv_prog_compiler_pic+:} false; then :
8218  $as_echo_n "(cached) " >&6
8219else
8220  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8223$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8224lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8225
8226#
8227# Check to make sure the PIC flag actually works.
8228#
8229if test -n "$lt_prog_compiler_pic"; then
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8231$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8232if ${lt_cv_prog_compiler_pic_works+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  lt_cv_prog_compiler_pic_works=no
8236   ac_outfile=conftest.$ac_objext
8237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8238   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8239   # Insert the option either (1) after the last *FLAGS variable, or
8240   # (2) before a word containing "conftest.", or (3) at the end.
8241   # Note that $ac_compile itself does not contain backslashes and begins
8242   # with a dollar sign (not a hyphen), so the echo should work correctly.
8243   # The option is referenced via a variable to avoid confusing sed.
8244   lt_compile=`echo "$ac_compile" | $SED \
8245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8247   -e 's:$: $lt_compiler_flag:'`
8248   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8249   (eval "$lt_compile" 2>conftest.err)
8250   ac_status=$?
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   if (exit $ac_status) && test -s "$ac_outfile"; then
8254     # The compiler can only warn and ignore the option if not recognized
8255     # So say no if there are warnings other than the usual output.
8256     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8257     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8258     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8259       lt_cv_prog_compiler_pic_works=yes
8260     fi
8261   fi
8262   $RM conftest*
8263
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8266$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8267
8268if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8269    case $lt_prog_compiler_pic in
8270     "" | " "*) ;;
8271     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8272     esac
8273else
8274    lt_prog_compiler_pic=
8275     lt_prog_compiler_can_build_shared=no
8276fi
8277
8278fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290#
8291# Check to make sure the static flag actually works.
8292#
8293wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8295$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8296if ${lt_cv_prog_compiler_static_works+:} false; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  lt_cv_prog_compiler_static_works=no
8300   save_LDFLAGS="$LDFLAGS"
8301   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8302   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8303   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8304     # The linker can only warn and ignore the option if not recognized
8305     # So say no if there are warnings
8306     if test -s conftest.err; then
8307       # Append any errors to the config.log.
8308       cat conftest.err 1>&5
8309       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8310       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8311       if diff conftest.exp conftest.er2 >/dev/null; then
8312         lt_cv_prog_compiler_static_works=yes
8313       fi
8314     else
8315       lt_cv_prog_compiler_static_works=yes
8316     fi
8317   fi
8318   $RM -r conftest*
8319   LDFLAGS="$save_LDFLAGS"
8320
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8323$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8324
8325if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8326    :
8327else
8328    lt_prog_compiler_static=
8329fi
8330
8331
8332
8333
8334
8335
8336
8337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8338$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339if ${lt_cv_prog_compiler_c_o+:} false; then :
8340  $as_echo_n "(cached) " >&6
8341else
8342  lt_cv_prog_compiler_c_o=no
8343   $RM -r conftest 2>/dev/null
8344   mkdir conftest
8345   cd conftest
8346   mkdir out
8347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348
8349   lt_compiler_flag="-o out/conftest2.$ac_objext"
8350   # Insert the option either (1) after the last *FLAGS variable, or
8351   # (2) before a word containing "conftest.", or (3) at the end.
8352   # Note that $ac_compile itself does not contain backslashes and begins
8353   # with a dollar sign (not a hyphen), so the echo should work correctly.
8354   lt_compile=`echo "$ac_compile" | $SED \
8355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357   -e 's:$: $lt_compiler_flag:'`
8358   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8359   (eval "$lt_compile" 2>out/conftest.err)
8360   ac_status=$?
8361   cat out/conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364   then
8365     # The compiler can only warn and ignore the option if not recognized
8366     # So say no if there are warnings
8367     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8368     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370       lt_cv_prog_compiler_c_o=yes
8371     fi
8372   fi
8373   chmod u+w . 2>&5
8374   $RM conftest*
8375   # SGI C++ compiler will create directory out/ii_files/ for
8376   # template instantiation
8377   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378   $RM out/* && rmdir out
8379   cd ..
8380   $RM -r conftest
8381   $RM conftest*
8382
8383fi
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8385$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8386
8387
8388
8389
8390
8391
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8393$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8394if ${lt_cv_prog_compiler_c_o+:} false; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  lt_cv_prog_compiler_c_o=no
8398   $RM -r conftest 2>/dev/null
8399   mkdir conftest
8400   cd conftest
8401   mkdir out
8402   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8403
8404   lt_compiler_flag="-o out/conftest2.$ac_objext"
8405   # Insert the option either (1) after the last *FLAGS variable, or
8406   # (2) before a word containing "conftest.", or (3) at the end.
8407   # Note that $ac_compile itself does not contain backslashes and begins
8408   # with a dollar sign (not a hyphen), so the echo should work correctly.
8409   lt_compile=`echo "$ac_compile" | $SED \
8410   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8412   -e 's:$: $lt_compiler_flag:'`
8413   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8414   (eval "$lt_compile" 2>out/conftest.err)
8415   ac_status=$?
8416   cat out/conftest.err >&5
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8419   then
8420     # The compiler can only warn and ignore the option if not recognized
8421     # So say no if there are warnings
8422     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8423     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8424     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8425       lt_cv_prog_compiler_c_o=yes
8426     fi
8427   fi
8428   chmod u+w . 2>&5
8429   $RM conftest*
8430   # SGI C++ compiler will create directory out/ii_files/ for
8431   # template instantiation
8432   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8433   $RM out/* && rmdir out
8434   cd ..
8435   $RM -r conftest
8436   $RM conftest*
8437
8438fi
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8440$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8441
8442
8443
8444
8445hard_links="nottested"
8446if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447  # do not overwrite the value of need_locks provided by the user
8448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8449$as_echo_n "checking if we can lock with hard links... " >&6; }
8450  hard_links=yes
8451  $RM conftest*
8452  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453  touch conftest.a
8454  ln conftest.a conftest.b 2>&5 || hard_links=no
8455  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8457$as_echo "$hard_links" >&6; }
8458  if test "$hard_links" = no; then
8459    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461    need_locks=warn
8462  fi
8463else
8464  need_locks=no
8465fi
8466
8467
8468
8469
8470
8471
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8473$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8474
8475  runpath_var=
8476  allow_undefined_flag=
8477  always_export_symbols=no
8478  archive_cmds=
8479  archive_expsym_cmds=
8480  compiler_needs_object=no
8481  enable_shared_with_static_runtimes=no
8482  export_dynamic_flag_spec=
8483  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8484  hardcode_automatic=no
8485  hardcode_direct=no
8486  hardcode_direct_absolute=no
8487  hardcode_libdir_flag_spec=
8488  hardcode_libdir_flag_spec_ld=
8489  hardcode_libdir_separator=
8490  hardcode_minus_L=no
8491  hardcode_shlibpath_var=unsupported
8492  inherit_rpath=no
8493  link_all_deplibs=unknown
8494  module_cmds=
8495  module_expsym_cmds=
8496  old_archive_from_new_cmds=
8497  old_archive_from_expsyms_cmds=
8498  thread_safe_flag_spec=
8499  whole_archive_flag_spec=
8500  # include_expsyms should be a list of space-separated symbols to be *always*
8501  # included in the symbol list
8502  include_expsyms=
8503  # exclude_expsyms can be an extended regexp of symbols to exclude
8504  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8505  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8506  # as well as any symbol that contains `d'.
8507  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8508  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8509  # platforms (ab)use it in PIC code, but their linkers get confused if
8510  # the symbol is explicitly referenced.  Since portable code cannot
8511  # rely on this symbol name, it's probably fine to never include it in
8512  # preloaded symbol tables.
8513  # Exclude shared library initialization/finalization symbols.
8514  extract_expsyms_cmds=
8515
8516  case $host_os in
8517  cygwin* | mingw* | pw32* | cegcc*)
8518    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8519    # When not using gcc, we currently assume that we are using
8520    # Microsoft Visual C++.
8521    if test "$GCC" != yes; then
8522      with_gnu_ld=no
8523    fi
8524    ;;
8525  interix*)
8526    # we just hope/assume this is gcc and not c89 (= MSVC++)
8527    with_gnu_ld=yes
8528    ;;
8529  openbsd*)
8530    with_gnu_ld=no
8531    ;;
8532  linux* | k*bsd*-gnu | gnu*)
8533    link_all_deplibs=no
8534    ;;
8535  esac
8536
8537  ld_shlibs=yes
8538
8539  # On some targets, GNU ld is compatible enough with the native linker
8540  # that we're better off using the native interface for both.
8541  lt_use_gnu_ld_interface=no
8542  if test "$with_gnu_ld" = yes; then
8543    case $host_os in
8544      aix*)
8545	# The AIX port of GNU ld has always aspired to compatibility
8546	# with the native linker.  However, as the warning in the GNU ld
8547	# block says, versions before 2.19.5* couldn't really create working
8548	# shared libraries, regardless of the interface used.
8549	case `$LD -v 2>&1` in
8550	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8553	  *)
8554	    lt_use_gnu_ld_interface=yes
8555	    ;;
8556	esac
8557	;;
8558      *)
8559	lt_use_gnu_ld_interface=yes
8560	;;
8561    esac
8562  fi
8563
8564  if test "$lt_use_gnu_ld_interface" = yes; then
8565    # If archive_cmds runs LD, not CC, wlarc should be empty
8566    wlarc='${wl}'
8567
8568    # Set some defaults for GNU ld with shared library support. These
8569    # are reset later if shared libraries are not supported. Putting them
8570    # here allows them to be overridden if necessary.
8571    runpath_var=LD_RUN_PATH
8572    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573    export_dynamic_flag_spec='${wl}--export-dynamic'
8574    # ancient GNU ld didn't support --whole-archive et. al.
8575    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8577    else
8578      whole_archive_flag_spec=
8579    fi
8580    supports_anon_versioning=no
8581    case `$LD -v 2>&1` in
8582      *GNU\ gold*) supports_anon_versioning=yes ;;
8583      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586      *\ 2.11.*) ;; # other 2.11 versions
8587      *) supports_anon_versioning=yes ;;
8588    esac
8589
8590    # See if GNU ld supports shared libraries.
8591    case $host_os in
8592    aix[3-9]*)
8593      # On AIX/PPC, the GNU linker is very broken
8594      if test "$host_cpu" != ia64; then
8595	ld_shlibs=no
8596	cat <<_LT_EOF 1>&2
8597
8598*** Warning: the GNU linker, at least up to release 2.19, is reported
8599*** to be unable to reliably create shared libraries on AIX.
8600*** Therefore, libtool is disabling shared libraries support.  If you
8601*** really care for shared libraries, you may want to install binutils
8602*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603*** You will then need to restart the configuration process.
8604
8605_LT_EOF
8606      fi
8607      ;;
8608
8609    amigaos*)
8610      case $host_cpu in
8611      powerpc)
8612            # see comment about AmigaOS4 .so support
8613            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614            archive_expsym_cmds=''
8615        ;;
8616      m68k)
8617            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)'
8618            hardcode_libdir_flag_spec='-L$libdir'
8619            hardcode_minus_L=yes
8620        ;;
8621      esac
8622      ;;
8623
8624    beos*)
8625      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626	allow_undefined_flag=unsupported
8627	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628	# support --undefined.  This deserves some investigation.  FIXME
8629	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630      else
8631	ld_shlibs=no
8632      fi
8633      ;;
8634
8635    cygwin* | mingw* | pw32* | cegcc*)
8636      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637      # as there is no search path for DLLs.
8638      hardcode_libdir_flag_spec='-L$libdir'
8639      export_dynamic_flag_spec='${wl}--export-all-symbols'
8640      allow_undefined_flag=unsupported
8641      always_export_symbols=no
8642      enable_shared_with_static_runtimes=yes
8643      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8644      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8645
8646      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8647        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648	# If the export-symbols file already is a .def file (1st line
8649	# is EXPORTS), use it as is; otherwise, prepend...
8650	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8651	  cp $export_symbols $output_objdir/$soname.def;
8652	else
8653	  echo EXPORTS > $output_objdir/$soname.def;
8654	  cat $export_symbols >> $output_objdir/$soname.def;
8655	fi~
8656	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8657      else
8658	ld_shlibs=no
8659      fi
8660      ;;
8661
8662    haiku*)
8663      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664      link_all_deplibs=yes
8665      ;;
8666
8667    interix[3-9]*)
8668      hardcode_direct=no
8669      hardcode_shlibpath_var=no
8670      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8671      export_dynamic_flag_spec='${wl}-E'
8672      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8673      # Instead, shared libraries are loaded at an image base (0x10000000 by
8674      # default) and relocated if they conflict, which is a slow very memory
8675      # consuming and fragmenting process.  To avoid this, we pick a random,
8676      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8677      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8678      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8679      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'
8680      ;;
8681
8682    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8683      tmp_diet=no
8684      if test "$host_os" = linux-dietlibc; then
8685	case $cc_basename in
8686	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8687	esac
8688      fi
8689      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8690	 && test "$tmp_diet" = no
8691      then
8692	tmp_addflag=' $pic_flag'
8693	tmp_sharedflag='-shared'
8694	case $cc_basename,$host_cpu in
8695        pgcc*)				# Portland Group C compiler
8696	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8697	  tmp_addflag=' $pic_flag'
8698	  ;;
8699	pgf77* | pgf90* | pgf95* | pgfortran*)
8700					# Portland Group f77 and f90 compilers
8701	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8702	  tmp_addflag=' $pic_flag -Mnomain' ;;
8703	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8704	  tmp_addflag=' -i_dynamic' ;;
8705	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8706	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8707	ifc* | ifort*)			# Intel Fortran compiler
8708	  tmp_addflag=' -nofor_main' ;;
8709	lf95*)				# Lahey Fortran 8.1
8710	  whole_archive_flag_spec=
8711	  tmp_sharedflag='--shared' ;;
8712	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8713	  tmp_sharedflag='-qmkshrobj'
8714	  tmp_addflag= ;;
8715	nvcc*)	# Cuda Compiler Driver 2.2
8716	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8717	  compiler_needs_object=yes
8718	  ;;
8719	esac
8720	case `$CC -V 2>&1 | sed 5q` in
8721	*Sun\ C*)			# Sun C 5.9
8722	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8723	  compiler_needs_object=yes
8724	  tmp_sharedflag='-G' ;;
8725	*Sun\ F*)			# Sun Fortran 8.3
8726	  tmp_sharedflag='-G' ;;
8727	esac
8728	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729
8730        if test "x$supports_anon_versioning" = xyes; then
8731          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8732	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8733	    echo "local: *; };" >> $output_objdir/$libname.ver~
8734	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8735        fi
8736
8737	case $cc_basename in
8738	xlf* | bgf* | bgxlf* | mpixlf*)
8739	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8740	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8741	  hardcode_libdir_flag_spec=
8742	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8743	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8744	  if test "x$supports_anon_versioning" = xyes; then
8745	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8746	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8747	      echo "local: *; };" >> $output_objdir/$libname.ver~
8748	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8749	  fi
8750	  ;;
8751	esac
8752      else
8753        ld_shlibs=no
8754      fi
8755      ;;
8756
8757    netbsd* | netbsdelf*-gnu)
8758      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8759	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8760	wlarc=
8761      else
8762	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764      fi
8765      ;;
8766
8767    solaris*)
8768      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8769	ld_shlibs=no
8770	cat <<_LT_EOF 1>&2
8771
8772*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8773*** create shared libraries on Solaris systems.  Therefore, libtool
8774*** is disabling shared libraries support.  We urge you to upgrade GNU
8775*** binutils to release 2.9.1 or newer.  Another option is to modify
8776*** your PATH or compiler configuration so that the native linker is
8777*** used, and then restart.
8778
8779_LT_EOF
8780      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8781	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783      else
8784	ld_shlibs=no
8785      fi
8786      ;;
8787
8788    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8789      case `$LD -v 2>&1` in
8790        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8791	ld_shlibs=no
8792	cat <<_LT_EOF 1>&2
8793
8794*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8795*** reliably create shared libraries on SCO systems.  Therefore, libtool
8796*** is disabling shared libraries support.  We urge you to upgrade GNU
8797*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8798*** your PATH or compiler configuration so that the native linker is
8799*** used, and then restart.
8800
8801_LT_EOF
8802	;;
8803	*)
8804	  # For security reasons, it is highly recommended that you always
8805	  # use absolute paths for naming shared libraries, and exclude the
8806	  # DT_RUNPATH tag from executables and libraries.  But doing so
8807	  # requires that you compile everything twice, which is a pain.
8808	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8812	  else
8813	    ld_shlibs=no
8814	  fi
8815	;;
8816      esac
8817      ;;
8818
8819    sunos4*)
8820      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8821      wlarc=
8822      hardcode_direct=yes
8823      hardcode_shlibpath_var=no
8824      ;;
8825
8826    *)
8827      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830      else
8831	ld_shlibs=no
8832      fi
8833      ;;
8834    esac
8835
8836    if test "$ld_shlibs" = no; then
8837      runpath_var=
8838      hardcode_libdir_flag_spec=
8839      export_dynamic_flag_spec=
8840      whole_archive_flag_spec=
8841    fi
8842  else
8843    # PORTME fill in a description of your system's linker (not GNU ld)
8844    case $host_os in
8845    aix3*)
8846      allow_undefined_flag=unsupported
8847      always_export_symbols=yes
8848      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'
8849      # Note: this linker hardcodes the directories in LIBPATH if there
8850      # are no directories specified by -L.
8851      hardcode_minus_L=yes
8852      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8853	# Neither direct hardcoding nor static linking is supported with a
8854	# broken collect2.
8855	hardcode_direct=unsupported
8856      fi
8857      ;;
8858
8859    aix[4-9]*)
8860      if test "$host_cpu" = ia64; then
8861	# On IA64, the linker does run time linking by default, so we don't
8862	# have to do anything special.
8863	aix_use_runtimelinking=no
8864	exp_sym_flag='-Bexport'
8865	no_entry_flag=""
8866      else
8867	# If we're using GNU nm, then we don't want the "-C" option.
8868	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8869	# Also, AIX nm treats weak defined symbols like other global
8870	# defined symbols, whereas GNU nm marks them as "W".
8871	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8872	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8873	else
8874	  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'
8875	fi
8876	aix_use_runtimelinking=no
8877
8878	# Test if we are trying to use run time linking or normal
8879	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8880	# need to do runtime linking.
8881	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8882	  for ld_flag in $LDFLAGS; do
8883	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8884	    aix_use_runtimelinking=yes
8885	    break
8886	  fi
8887	  done
8888	  ;;
8889	esac
8890
8891	exp_sym_flag='-bexport'
8892	no_entry_flag='-bnoentry'
8893      fi
8894
8895      # When large executables or shared objects are built, AIX ld can
8896      # have problems creating the table of contents.  If linking a library
8897      # or program results in "error TOC overflow" add -mminimal-toc to
8898      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8899      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8900
8901      archive_cmds=''
8902      hardcode_direct=yes
8903      hardcode_direct_absolute=yes
8904      hardcode_libdir_separator=':'
8905      link_all_deplibs=yes
8906      file_list_spec='${wl}-f,'
8907
8908      if test "$GCC" = yes; then
8909	case $host_os in aix4.[012]|aix4.[012].*)
8910	# We only want to do this on AIX 4.2 and lower, the check
8911	# below for broken collect2 doesn't work under 4.3+
8912	  collect2name=`${CC} -print-prog-name=collect2`
8913	  if test -f "$collect2name" &&
8914	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8915	  then
8916	  # We have reworked collect2
8917	  :
8918	  else
8919	  # We have old collect2
8920	  hardcode_direct=unsupported
8921	  # It fails to find uninstalled libraries when the uninstalled
8922	  # path is not listed in the libpath.  Setting hardcode_minus_L
8923	  # to unsupported forces relinking
8924	  hardcode_minus_L=yes
8925	  hardcode_libdir_flag_spec='-L$libdir'
8926	  hardcode_libdir_separator=
8927	  fi
8928	  ;;
8929	esac
8930	shared_flag='-shared'
8931	if test "$aix_use_runtimelinking" = yes; then
8932	  shared_flag="$shared_flag "'${wl}-G'
8933	fi
8934	link_all_deplibs=no
8935      else
8936	# not using gcc
8937	if test "$host_cpu" = ia64; then
8938	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8939	# chokes on -Wl,-G. The following line is correct:
8940	  shared_flag='-G'
8941	else
8942	  if test "$aix_use_runtimelinking" = yes; then
8943	    shared_flag='${wl}-G'
8944	  else
8945	    shared_flag='${wl}-bM:SRE'
8946	  fi
8947	fi
8948      fi
8949
8950      export_dynamic_flag_spec='${wl}-bexpall'
8951      # It seems that -bexpall does not export symbols beginning with
8952      # underscore (_), so it is better to generate a list of symbols to export.
8953      always_export_symbols=yes
8954      if test "$aix_use_runtimelinking" = yes; then
8955	# Warning - without using the other runtime loading flags (-brtl),
8956	# -berok will link without error, but may produce a broken library.
8957	allow_undefined_flag='-berok'
8958        # Determine the default libpath from the value encoded in an
8959        # empty executable.
8960        if test "${lt_cv_aix_libpath+set}" = set; then
8961  aix_libpath=$lt_cv_aix_libpath
8962else
8963  if ${lt_cv_aix_libpath_+:} false; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967/* end confdefs.h.  */
8968
8969int
8970main ()
8971{
8972
8973  ;
8974  return 0;
8975}
8976_ACEOF
8977if ac_fn_c_try_link "$LINENO"; then :
8978
8979  lt_aix_libpath_sed='
8980      /Import File Strings/,/^$/ {
8981	  /^0/ {
8982	      s/^0  *\([^ ]*\) *$/\1/
8983	      p
8984	  }
8985      }'
8986  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987  # Check for a 64-bit object if we didn't find anything.
8988  if test -z "$lt_cv_aix_libpath_"; then
8989    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990  fi
8991fi
8992rm -f core conftest.err conftest.$ac_objext \
8993    conftest$ac_exeext conftest.$ac_ext
8994  if test -z "$lt_cv_aix_libpath_"; then
8995    lt_cv_aix_libpath_="/usr/lib:/lib"
8996  fi
8997
8998fi
8999
9000  aix_libpath=$lt_cv_aix_libpath_
9001fi
9002
9003        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9004        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9005      else
9006	if test "$host_cpu" = ia64; then
9007	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9008	  allow_undefined_flag="-z nodefs"
9009	  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"
9010	else
9011	 # Determine the default libpath from the value encoded in an
9012	 # empty executable.
9013	 if test "${lt_cv_aix_libpath+set}" = set; then
9014  aix_libpath=$lt_cv_aix_libpath
9015else
9016  if ${lt_cv_aix_libpath_+:} false; then :
9017  $as_echo_n "(cached) " >&6
9018else
9019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h.  */
9021
9022int
9023main ()
9024{
9025
9026  ;
9027  return 0;
9028}
9029_ACEOF
9030if ac_fn_c_try_link "$LINENO"; then :
9031
9032  lt_aix_libpath_sed='
9033      /Import File Strings/,/^$/ {
9034	  /^0/ {
9035	      s/^0  *\([^ ]*\) *$/\1/
9036	      p
9037	  }
9038      }'
9039  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9040  # Check for a 64-bit object if we didn't find anything.
9041  if test -z "$lt_cv_aix_libpath_"; then
9042    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9043  fi
9044fi
9045rm -f core conftest.err conftest.$ac_objext \
9046    conftest$ac_exeext conftest.$ac_ext
9047  if test -z "$lt_cv_aix_libpath_"; then
9048    lt_cv_aix_libpath_="/usr/lib:/lib"
9049  fi
9050
9051fi
9052
9053  aix_libpath=$lt_cv_aix_libpath_
9054fi
9055
9056	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9057	  # Warning - without using the other run time loading flags,
9058	  # -berok will link without error, but may produce a broken library.
9059	  no_undefined_flag=' ${wl}-bernotok'
9060	  allow_undefined_flag=' ${wl}-berok'
9061	  if test "$with_gnu_ld" = yes; then
9062	    # We only use this code for GNU lds that support --whole-archive.
9063	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9064	  else
9065	    # Exported symbols can be pulled into shared objects from archives
9066	    whole_archive_flag_spec='$convenience'
9067	  fi
9068	  archive_cmds_need_lc=yes
9069	  # This is similar to how AIX traditionally builds its shared libraries.
9070	  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'
9071	fi
9072      fi
9073      ;;
9074
9075    amigaos*)
9076      case $host_cpu in
9077      powerpc)
9078            # see comment about AmigaOS4 .so support
9079            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080            archive_expsym_cmds=''
9081        ;;
9082      m68k)
9083            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)'
9084            hardcode_libdir_flag_spec='-L$libdir'
9085            hardcode_minus_L=yes
9086        ;;
9087      esac
9088      ;;
9089
9090    bsdi[45]*)
9091      export_dynamic_flag_spec=-rdynamic
9092      ;;
9093
9094    cygwin* | mingw* | pw32* | cegcc*)
9095      # When not using gcc, we currently assume that we are using
9096      # Microsoft Visual C++.
9097      # hardcode_libdir_flag_spec is actually meaningless, as there is
9098      # no search path for DLLs.
9099      case $cc_basename in
9100      cl*)
9101	# Native MSVC
9102	hardcode_libdir_flag_spec=' '
9103	allow_undefined_flag=unsupported
9104	always_export_symbols=yes
9105	file_list_spec='@'
9106	# Tell ltmain to make .lib files, not .a files.
9107	libext=lib
9108	# Tell ltmain to make .dll files, not .so files.
9109	shrext_cmds=".dll"
9110	# FIXME: Setting linknames here is a bad hack.
9111	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9112	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9113	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9114	  else
9115	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9116	  fi~
9117	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9118	  linknames='
9119	# The linker will not automatically build a static lib if we build a DLL.
9120	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9121	enable_shared_with_static_runtimes=yes
9122	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9123	# Don't use ranlib
9124	old_postinstall_cmds='chmod 644 $oldlib'
9125	postlink_cmds='lt_outputfile="@OUTPUT@"~
9126	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9127	  case $lt_outputfile in
9128	    *.exe|*.EXE) ;;
9129	    *)
9130	      lt_outputfile="$lt_outputfile.exe"
9131	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9132	      ;;
9133	  esac~
9134	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9135	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9136	    $RM "$lt_outputfile.manifest";
9137	  fi'
9138	;;
9139      *)
9140	# Assume MSVC wrapper
9141	hardcode_libdir_flag_spec=' '
9142	allow_undefined_flag=unsupported
9143	# Tell ltmain to make .lib files, not .a files.
9144	libext=lib
9145	# Tell ltmain to make .dll files, not .so files.
9146	shrext_cmds=".dll"
9147	# FIXME: Setting linknames here is a bad hack.
9148	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9149	# The linker will automatically build a .lib file if we build a DLL.
9150	old_archive_from_new_cmds='true'
9151	# FIXME: Should let the user specify the lib program.
9152	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9153	enable_shared_with_static_runtimes=yes
9154	;;
9155      esac
9156      ;;
9157
9158    darwin* | rhapsody*)
9159
9160
9161  archive_cmds_need_lc=no
9162  hardcode_direct=no
9163  hardcode_automatic=yes
9164  hardcode_shlibpath_var=unsupported
9165  if test "$lt_cv_ld_force_load" = "yes"; then
9166    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9167  else
9168    whole_archive_flag_spec=''
9169  fi
9170  link_all_deplibs=yes
9171  allow_undefined_flag="$_lt_dar_allow_undefined"
9172  case $cc_basename in
9173     ifort*) _lt_dar_can_shared=yes ;;
9174     *) _lt_dar_can_shared=$GCC ;;
9175  esac
9176  if test "$_lt_dar_can_shared" = "yes"; then
9177    output_verbose_link_cmd=func_echo_all
9178    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9179    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9180    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}"
9181    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}"
9182
9183  else
9184  ld_shlibs=no
9185  fi
9186
9187      ;;
9188
9189    dgux*)
9190      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191      hardcode_libdir_flag_spec='-L$libdir'
9192      hardcode_shlibpath_var=no
9193      ;;
9194
9195    freebsd1*)
9196      ld_shlibs=no
9197      ;;
9198
9199    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9200    # support.  Future versions do this automatically, but an explicit c++rt0.o
9201    # does not break anything, and helps significantly (at the cost of a little
9202    # extra space).
9203    freebsd2.2*)
9204      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9205      hardcode_libdir_flag_spec='-R$libdir'
9206      hardcode_direct=yes
9207      hardcode_shlibpath_var=no
9208      ;;
9209
9210    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9211    freebsd2*)
9212      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9213      hardcode_direct=yes
9214      hardcode_minus_L=yes
9215      hardcode_shlibpath_var=no
9216      ;;
9217
9218    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9219    freebsd* | dragonfly*)
9220      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9221      hardcode_libdir_flag_spec='-R$libdir'
9222      hardcode_direct=yes
9223      hardcode_shlibpath_var=no
9224      ;;
9225
9226    hpux9*)
9227      if test "$GCC" = yes; then
9228	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9229      else
9230	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'
9231      fi
9232      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9233      hardcode_libdir_separator=:
9234      hardcode_direct=yes
9235
9236      # hardcode_minus_L: Not really in the search PATH,
9237      # but as the default location of the library.
9238      hardcode_minus_L=yes
9239      export_dynamic_flag_spec='${wl}-E'
9240      ;;
9241
9242    hpux10*)
9243      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9244	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245      else
9246	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9247      fi
9248      if test "$with_gnu_ld" = no; then
9249	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9250	hardcode_libdir_flag_spec_ld='+b $libdir'
9251	hardcode_libdir_separator=:
9252	hardcode_direct=yes
9253	hardcode_direct_absolute=yes
9254	export_dynamic_flag_spec='${wl}-E'
9255	# hardcode_minus_L: Not really in the search PATH,
9256	# but as the default location of the library.
9257	hardcode_minus_L=yes
9258      fi
9259      ;;
9260
9261    hpux11*)
9262      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9263	case $host_cpu in
9264	hppa*64*)
9265	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266	  ;;
9267	ia64*)
9268	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9269	  ;;
9270	*)
9271	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9272	  ;;
9273	esac
9274      else
9275	case $host_cpu in
9276	hppa*64*)
9277	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9278	  ;;
9279	ia64*)
9280	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9281	  ;;
9282	*)
9283
9284	  # Older versions of the 11.00 compiler do not understand -b yet
9285	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9286	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9287$as_echo_n "checking if $CC understands -b... " >&6; }
9288if ${lt_cv_prog_compiler__b+:} false; then :
9289  $as_echo_n "(cached) " >&6
9290else
9291  lt_cv_prog_compiler__b=no
9292   save_LDFLAGS="$LDFLAGS"
9293   LDFLAGS="$LDFLAGS -b"
9294   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9295   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9296     # The linker can only warn and ignore the option if not recognized
9297     # So say no if there are warnings
9298     if test -s conftest.err; then
9299       # Append any errors to the config.log.
9300       cat conftest.err 1>&5
9301       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9302       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9303       if diff conftest.exp conftest.er2 >/dev/null; then
9304         lt_cv_prog_compiler__b=yes
9305       fi
9306     else
9307       lt_cv_prog_compiler__b=yes
9308     fi
9309   fi
9310   $RM -r conftest*
9311   LDFLAGS="$save_LDFLAGS"
9312
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9315$as_echo "$lt_cv_prog_compiler__b" >&6; }
9316
9317if test x"$lt_cv_prog_compiler__b" = xyes; then
9318    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9319else
9320    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9321fi
9322
9323	  ;;
9324	esac
9325      fi
9326      if test "$with_gnu_ld" = no; then
9327	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9328	hardcode_libdir_separator=:
9329
9330	case $host_cpu in
9331	hppa*64*|ia64*)
9332	  hardcode_direct=no
9333	  hardcode_shlibpath_var=no
9334	  ;;
9335	*)
9336	  hardcode_direct=yes
9337	  hardcode_direct_absolute=yes
9338	  export_dynamic_flag_spec='${wl}-E'
9339
9340	  # hardcode_minus_L: Not really in the search PATH,
9341	  # but as the default location of the library.
9342	  hardcode_minus_L=yes
9343	  ;;
9344	esac
9345      fi
9346      ;;
9347
9348    irix5* | irix6* | nonstopux*)
9349      if test "$GCC" = yes; then
9350	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9351	# Try to use the -exported_symbol ld option, if it does not
9352	# work, assume that -exports_file does not work either and
9353	# implicitly export all symbols.
9354	# This should be the same for all languages, so no per-tag cache variable.
9355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9356$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9357if ${lt_cv_irix_exported_symbol+:} false; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  save_LDFLAGS="$LDFLAGS"
9361	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9362	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363/* end confdefs.h.  */
9364int foo (void) { return 0; }
9365_ACEOF
9366if ac_fn_c_try_link "$LINENO"; then :
9367  lt_cv_irix_exported_symbol=yes
9368else
9369  lt_cv_irix_exported_symbol=no
9370fi
9371rm -f core conftest.err conftest.$ac_objext \
9372    conftest$ac_exeext conftest.$ac_ext
9373           LDFLAGS="$save_LDFLAGS"
9374fi
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9376$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9377	if test "$lt_cv_irix_exported_symbol" = yes; then
9378          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9379	fi
9380      else
9381	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9382	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9383      fi
9384      archive_cmds_need_lc='no'
9385      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386      hardcode_libdir_separator=:
9387      inherit_rpath=yes
9388      link_all_deplibs=yes
9389      ;;
9390
9391    netbsd* | netbsdelf*-gnu)
9392      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9393	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9394      else
9395	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9396      fi
9397      hardcode_libdir_flag_spec='-R$libdir'
9398      hardcode_direct=yes
9399      hardcode_shlibpath_var=no
9400      ;;
9401
9402    newsos6)
9403      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404      hardcode_direct=yes
9405      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406      hardcode_libdir_separator=:
9407      hardcode_shlibpath_var=no
9408      ;;
9409
9410    *nto* | *qnx*)
9411      ;;
9412
9413    openbsd*)
9414      if test -f /usr/libexec/ld.so; then
9415	hardcode_direct=yes
9416	hardcode_shlibpath_var=no
9417	hardcode_direct_absolute=yes
9418	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9419	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9420	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9421	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9422	  export_dynamic_flag_spec='${wl}-E'
9423	else
9424	  case $host_os in
9425	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9426	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9427	     hardcode_libdir_flag_spec='-R$libdir'
9428	     ;;
9429	   *)
9430	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9431	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9432	     ;;
9433	  esac
9434	fi
9435      else
9436	ld_shlibs=no
9437      fi
9438      ;;
9439
9440    os2*)
9441      hardcode_libdir_flag_spec='-L$libdir'
9442      hardcode_minus_L=yes
9443      allow_undefined_flag=unsupported
9444      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'
9445      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9446      ;;
9447
9448    osf3*)
9449      if test "$GCC" = yes; then
9450	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9451	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9452      else
9453	allow_undefined_flag=' -expect_unresolved \*'
9454	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9455      fi
9456      archive_cmds_need_lc='no'
9457      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458      hardcode_libdir_separator=:
9459      ;;
9460
9461    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9462      if test "$GCC" = yes; then
9463	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9464	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9465	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9466      else
9467	allow_undefined_flag=' -expect_unresolved \*'
9468	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9469	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~
9470	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9471
9472	# Both c and cxx compiler support -rpath directly
9473	hardcode_libdir_flag_spec='-rpath $libdir'
9474      fi
9475      archive_cmds_need_lc='no'
9476      hardcode_libdir_separator=:
9477      ;;
9478
9479    solaris*)
9480      no_undefined_flag=' -z defs'
9481      if test "$GCC" = yes; then
9482	wlarc='${wl}'
9483	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9484	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9485	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9486      else
9487	case `$CC -V 2>&1` in
9488	*"Compilers 5.0"*)
9489	  wlarc=''
9490	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9492	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9493	  ;;
9494	*)
9495	  wlarc='${wl}'
9496	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9497	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9498	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9499	  ;;
9500	esac
9501      fi
9502      hardcode_libdir_flag_spec='-R$libdir'
9503      hardcode_shlibpath_var=no
9504      case $host_os in
9505      solaris2.[0-5] | solaris2.[0-5].*) ;;
9506      *)
9507	# The compiler driver will combine and reorder linker options,
9508	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9509	# but is careful enough not to reorder.
9510	# Supported since Solaris 2.6 (maybe 2.5.1?)
9511	if test "$GCC" = yes; then
9512	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9513	else
9514	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9515	fi
9516	;;
9517      esac
9518      link_all_deplibs=yes
9519      ;;
9520
9521    sunos4*)
9522      if test "x$host_vendor" = xsequent; then
9523	# Use $CC to link under sequent, because it throws in some extra .o
9524	# files that make .init and .fini sections work.
9525	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9526      else
9527	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9528      fi
9529      hardcode_libdir_flag_spec='-L$libdir'
9530      hardcode_direct=yes
9531      hardcode_minus_L=yes
9532      hardcode_shlibpath_var=no
9533      ;;
9534
9535    sysv4)
9536      case $host_vendor in
9537	sni)
9538	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539	  hardcode_direct=yes # is this really true???
9540	;;
9541	siemens)
9542	  ## LD is ld it makes a PLAMLIB
9543	  ## CC just makes a GrossModule.
9544	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9545	  reload_cmds='$CC -r -o $output$reload_objs'
9546	  hardcode_direct=no
9547        ;;
9548	motorola)
9549	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9551	;;
9552      esac
9553      runpath_var='LD_RUN_PATH'
9554      hardcode_shlibpath_var=no
9555      ;;
9556
9557    sysv4.3*)
9558      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559      hardcode_shlibpath_var=no
9560      export_dynamic_flag_spec='-Bexport'
9561      ;;
9562
9563    sysv4*MP*)
9564      if test -d /usr/nec; then
9565	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566	hardcode_shlibpath_var=no
9567	runpath_var=LD_RUN_PATH
9568	hardcode_runpath_var=yes
9569	ld_shlibs=yes
9570      fi
9571      ;;
9572
9573    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9574      no_undefined_flag='${wl}-z,text'
9575      archive_cmds_need_lc=no
9576      hardcode_shlibpath_var=no
9577      runpath_var='LD_RUN_PATH'
9578
9579      if test "$GCC" = yes; then
9580	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582      else
9583	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585      fi
9586      ;;
9587
9588    sysv5* | sco3.2v5* | sco5v6*)
9589      # Note: We can NOT use -z defs as we might desire, because we do not
9590      # link with -lc, and that would cause any symbols used from libc to
9591      # always be unresolved, which means just about no library would
9592      # ever link correctly.  If we're not using GNU ld we use -z text
9593      # though, which does catch some bad symbols but isn't as heavy-handed
9594      # as -z defs.
9595      no_undefined_flag='${wl}-z,text'
9596      allow_undefined_flag='${wl}-z,nodefs'
9597      archive_cmds_need_lc=no
9598      hardcode_shlibpath_var=no
9599      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9600      hardcode_libdir_separator=':'
9601      link_all_deplibs=yes
9602      export_dynamic_flag_spec='${wl}-Bexport'
9603      runpath_var='LD_RUN_PATH'
9604
9605      if test "$GCC" = yes; then
9606	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608      else
9609	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9610	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611      fi
9612      ;;
9613
9614    uts4*)
9615      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616      hardcode_libdir_flag_spec='-L$libdir'
9617      hardcode_shlibpath_var=no
9618      ;;
9619
9620    *)
9621      ld_shlibs=no
9622      ;;
9623    esac
9624
9625    if test x$host_vendor = xsni; then
9626      case $host in
9627      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9628	export_dynamic_flag_spec='${wl}-Blargedynsym'
9629	;;
9630      esac
9631    fi
9632  fi
9633
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9635$as_echo "$ld_shlibs" >&6; }
9636test "$ld_shlibs" = no && can_build_shared=no
9637
9638with_gnu_ld=$with_gnu_ld
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654#
9655# Do we need to explicitly link libc?
9656#
9657case "x$archive_cmds_need_lc" in
9658x|xyes)
9659  # Assume -lc should be added
9660  archive_cmds_need_lc=yes
9661
9662  if test "$enable_shared" = yes && test "$GCC" = yes; then
9663    case $archive_cmds in
9664    *'~'*)
9665      # FIXME: we may have to deal with multi-command sequences.
9666      ;;
9667    '$CC '*)
9668      # Test whether the compiler implicitly links with -lc since on some
9669      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9670      # to ld, don't add -lc before -lgcc.
9671      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9672$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9673if ${lt_cv_archive_cmds_need_lc+:} false; then :
9674  $as_echo_n "(cached) " >&6
9675else
9676  $RM conftest*
9677	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9678
9679	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9680  (eval $ac_compile) 2>&5
9681  ac_status=$?
9682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9683  test $ac_status = 0; } 2>conftest.err; then
9684	  soname=conftest
9685	  lib=conftest
9686	  libobjs=conftest.$ac_objext
9687	  deplibs=
9688	  wl=$lt_prog_compiler_wl
9689	  pic_flag=$lt_prog_compiler_pic
9690	  compiler_flags=-v
9691	  linker_flags=-v
9692	  verstring=
9693	  output_objdir=.
9694	  libname=conftest
9695	  lt_save_allow_undefined_flag=$allow_undefined_flag
9696	  allow_undefined_flag=
9697	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9698  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9699  ac_status=$?
9700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701  test $ac_status = 0; }
9702	  then
9703	    lt_cv_archive_cmds_need_lc=no
9704	  else
9705	    lt_cv_archive_cmds_need_lc=yes
9706	  fi
9707	  allow_undefined_flag=$lt_save_allow_undefined_flag
9708	else
9709	  cat conftest.err 1>&5
9710	fi
9711	$RM conftest*
9712
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9715$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9716      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9717      ;;
9718    esac
9719  fi
9720  ;;
9721esac
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9880$as_echo_n "checking dynamic linker characteristics... " >&6; }
9881
9882if test "$GCC" = yes; then
9883  case $host_os in
9884    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9885    *) lt_awk_arg="/^libraries:/" ;;
9886  esac
9887  case $host_os in
9888    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9889    *) lt_sed_strip_eq="s,=/,/,g" ;;
9890  esac
9891  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9892  case $lt_search_path_spec in
9893  *\;*)
9894    # if the path contains ";" then we assume it to be the separator
9895    # otherwise default to the standard path separator (i.e. ":") - it is
9896    # assumed that no part of a normal pathname contains ";" but that should
9897    # okay in the real world where ";" in dirpaths is itself problematic.
9898    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9899    ;;
9900  *)
9901    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9902    ;;
9903  esac
9904  # Ok, now we have the path, separated by spaces, we can step through it
9905  # and add multilib dir if necessary.
9906  lt_tmp_lt_search_path_spec=
9907  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9908  for lt_sys_path in $lt_search_path_spec; do
9909    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9910      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9911    else
9912      test -d "$lt_sys_path" && \
9913	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9914    fi
9915  done
9916  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9917BEGIN {RS=" "; FS="/|\n";} {
9918  lt_foo="";
9919  lt_count=0;
9920  for (lt_i = NF; lt_i > 0; lt_i--) {
9921    if ($lt_i != "" && $lt_i != ".") {
9922      if ($lt_i == "..") {
9923        lt_count++;
9924      } else {
9925        if (lt_count == 0) {
9926          lt_foo="/" $lt_i lt_foo;
9927        } else {
9928          lt_count--;
9929        }
9930      }
9931    }
9932  }
9933  if (lt_foo != "") { lt_freq[lt_foo]++; }
9934  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9935}'`
9936  # AWK program above erroneously prepends '/' to C:/dos/paths
9937  # for these hosts.
9938  case $host_os in
9939    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9940      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9941  esac
9942  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9943else
9944  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9945fi
9946library_names_spec=
9947libname_spec='lib$name'
9948soname_spec=
9949shrext_cmds=".so"
9950postinstall_cmds=
9951postuninstall_cmds=
9952finish_cmds=
9953finish_eval=
9954shlibpath_var=
9955shlibpath_overrides_runpath=unknown
9956version_type=none
9957dynamic_linker="$host_os ld.so"
9958sys_lib_dlsearch_path_spec="/lib /usr/lib"
9959need_lib_prefix=unknown
9960hardcode_into_libs=no
9961
9962# when you set need_version to no, make sure it does not cause -set_version
9963# flags to be left without arguments
9964need_version=unknown
9965
9966case $host_os in
9967aix3*)
9968  version_type=linux
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9970  shlibpath_var=LIBPATH
9971
9972  # AIX 3 has no versioning support, so we append a major version to the name.
9973  soname_spec='${libname}${release}${shared_ext}$major'
9974  ;;
9975
9976aix[4-9]*)
9977  version_type=linux
9978  need_lib_prefix=no
9979  need_version=no
9980  hardcode_into_libs=yes
9981  if test "$host_cpu" = ia64; then
9982    # AIX 5 supports IA64
9983    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9984    shlibpath_var=LD_LIBRARY_PATH
9985  else
9986    # With GCC up to 2.95.x, collect2 would create an import file
9987    # for dependence libraries.  The import file would start with
9988    # the line `#! .'.  This would cause the generated library to
9989    # depend on `.', always an invalid library.  This was fixed in
9990    # development snapshots of GCC prior to 3.0.
9991    case $host_os in
9992      aix4 | aix4.[01] | aix4.[01].*)
9993      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9994	   echo ' yes '
9995	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9996	:
9997      else
9998	can_build_shared=no
9999      fi
10000      ;;
10001    esac
10002    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10003    # soname into executable. Probably we can add versioning support to
10004    # collect2, so additional links can be useful in future.
10005    if test "$aix_use_runtimelinking" = yes; then
10006      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10007      # instead of lib<name>.a to let people know that these are not
10008      # typical AIX shared libraries.
10009      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010    else
10011      # We preserve .a as extension for shared libraries through AIX4.2
10012      # and later when we are not doing run time linking.
10013      library_names_spec='${libname}${release}.a $libname.a'
10014      soname_spec='${libname}${release}${shared_ext}$major'
10015    fi
10016    shlibpath_var=LIBPATH
10017  fi
10018  ;;
10019
10020amigaos*)
10021  case $host_cpu in
10022  powerpc)
10023    # Since July 2007 AmigaOS4 officially supports .so libraries.
10024    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10025    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10026    ;;
10027  m68k)
10028    library_names_spec='$libname.ixlibrary $libname.a'
10029    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10030    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10031    ;;
10032  esac
10033  ;;
10034
10035beos*)
10036  library_names_spec='${libname}${shared_ext}'
10037  dynamic_linker="$host_os ld.so"
10038  shlibpath_var=LIBRARY_PATH
10039  ;;
10040
10041bsdi[45]*)
10042  version_type=linux
10043  need_version=no
10044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045  soname_spec='${libname}${release}${shared_ext}$major'
10046  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10047  shlibpath_var=LD_LIBRARY_PATH
10048  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10049  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10050  # the default ld.so.conf also contains /usr/contrib/lib and
10051  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10052  # libtool to hard-code these into programs
10053  ;;
10054
10055cygwin* | mingw* | pw32* | cegcc*)
10056  version_type=windows
10057  shrext_cmds=".dll"
10058  need_version=no
10059  need_lib_prefix=no
10060
10061  case $GCC,$cc_basename in
10062  yes,*)
10063    # gcc
10064    library_names_spec='$libname.dll.a'
10065    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10066    postinstall_cmds='base_file=`basename \${file}`~
10067      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10068      dldir=$destdir/`dirname \$dlpath`~
10069      test -d \$dldir || mkdir -p \$dldir~
10070      $install_prog $dir/$dlname \$dldir/$dlname~
10071      chmod a+x \$dldir/$dlname~
10072      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10073        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10074      fi'
10075    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10076      dlpath=$dir/\$dldll~
10077       $RM \$dlpath'
10078    shlibpath_overrides_runpath=yes
10079
10080    case $host_os in
10081    cygwin*)
10082      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10083      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10084
10085      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10086      ;;
10087    mingw* | cegcc*)
10088      # MinGW DLLs use traditional 'lib' prefix
10089      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10090      ;;
10091    pw32*)
10092      # pw32 DLLs use 'pw' prefix rather than 'lib'
10093      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10094      ;;
10095    esac
10096    dynamic_linker='Win32 ld.exe'
10097    ;;
10098
10099  *,cl*)
10100    # Native MSVC
10101    libname_spec='$name'
10102    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10103    library_names_spec='${libname}.dll.lib'
10104
10105    case $build_os in
10106    mingw*)
10107      sys_lib_search_path_spec=
10108      lt_save_ifs=$IFS
10109      IFS=';'
10110      for lt_path in $LIB
10111      do
10112        IFS=$lt_save_ifs
10113        # Let DOS variable expansion print the short 8.3 style file name.
10114        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10115        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10116      done
10117      IFS=$lt_save_ifs
10118      # Convert to MSYS style.
10119      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10120      ;;
10121    cygwin*)
10122      # Convert to unix form, then to dos form, then back to unix form
10123      # but this time dos style (no spaces!) so that the unix form looks
10124      # like /cygdrive/c/PROGRA~1:/cygdr...
10125      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10126      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10127      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10128      ;;
10129    *)
10130      sys_lib_search_path_spec="$LIB"
10131      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10132        # It is most probably a Windows format PATH.
10133        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10134      else
10135        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10136      fi
10137      # FIXME: find the short name or the path components, as spaces are
10138      # common. (e.g. "Program Files" -> "PROGRA~1")
10139      ;;
10140    esac
10141
10142    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10143    postinstall_cmds='base_file=`basename \${file}`~
10144      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10145      dldir=$destdir/`dirname \$dlpath`~
10146      test -d \$dldir || mkdir -p \$dldir~
10147      $install_prog $dir/$dlname \$dldir/$dlname'
10148    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10149      dlpath=$dir/\$dldll~
10150       $RM \$dlpath'
10151    shlibpath_overrides_runpath=yes
10152    dynamic_linker='Win32 link.exe'
10153    ;;
10154
10155  *)
10156    # Assume MSVC wrapper
10157    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10158    dynamic_linker='Win32 ld.exe'
10159    ;;
10160  esac
10161  # FIXME: first we should search . and the directory the executable is in
10162  shlibpath_var=PATH
10163  ;;
10164
10165darwin* | rhapsody*)
10166  dynamic_linker="$host_os dyld"
10167  version_type=darwin
10168  need_lib_prefix=no
10169  need_version=no
10170  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10171  soname_spec='${libname}${release}${major}$shared_ext'
10172  shlibpath_overrides_runpath=yes
10173  shlibpath_var=DYLD_LIBRARY_PATH
10174  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10175
10176  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10177  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10178  ;;
10179
10180dgux*)
10181  version_type=linux
10182  need_lib_prefix=no
10183  need_version=no
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10185  soname_spec='${libname}${release}${shared_ext}$major'
10186  shlibpath_var=LD_LIBRARY_PATH
10187  ;;
10188
10189freebsd1*)
10190  dynamic_linker=no
10191  ;;
10192
10193freebsd* | dragonfly*)
10194  # DragonFly does not have aout.  When/if they implement a new
10195  # versioning mechanism, adjust this.
10196  if test -x /usr/bin/objformat; then
10197    objformat=`/usr/bin/objformat`
10198  else
10199    case $host_os in
10200    freebsd[123]*) objformat=aout ;;
10201    *) objformat=elf ;;
10202    esac
10203  fi
10204  version_type=freebsd-$objformat
10205  case $version_type in
10206    freebsd-elf*)
10207      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10208      need_version=no
10209      need_lib_prefix=no
10210      ;;
10211    freebsd-*)
10212      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10213      need_version=yes
10214      ;;
10215  esac
10216  shlibpath_var=LD_LIBRARY_PATH
10217  case $host_os in
10218  freebsd2*)
10219    shlibpath_overrides_runpath=yes
10220    ;;
10221  freebsd3.[01]* | freebsdelf3.[01]*)
10222    shlibpath_overrides_runpath=yes
10223    hardcode_into_libs=yes
10224    ;;
10225  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10226  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10227    shlibpath_overrides_runpath=no
10228    hardcode_into_libs=yes
10229    ;;
10230  *) # from 4.6 on, and DragonFly
10231    shlibpath_overrides_runpath=yes
10232    hardcode_into_libs=yes
10233    ;;
10234  esac
10235  ;;
10236
10237gnu*)
10238  version_type=linux
10239  need_lib_prefix=no
10240  need_version=no
10241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10242  soname_spec='${libname}${release}${shared_ext}$major'
10243  shlibpath_var=LD_LIBRARY_PATH
10244  shlibpath_overrides_runpath=no
10245  hardcode_into_libs=yes
10246  ;;
10247
10248haiku*)
10249  version_type=linux
10250  need_lib_prefix=no
10251  need_version=no
10252  dynamic_linker="$host_os runtime_loader"
10253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10254  soname_spec='${libname}${release}${shared_ext}$major'
10255  shlibpath_var=LIBRARY_PATH
10256  shlibpath_overrides_runpath=yes
10257  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10258  hardcode_into_libs=yes
10259  ;;
10260
10261hpux9* | hpux10* | hpux11*)
10262  # Give a soname corresponding to the major version so that dld.sl refuses to
10263  # link against other versions.
10264  version_type=sunos
10265  need_lib_prefix=no
10266  need_version=no
10267  case $host_cpu in
10268  ia64*)
10269    shrext_cmds='.so'
10270    hardcode_into_libs=yes
10271    dynamic_linker="$host_os dld.so"
10272    shlibpath_var=LD_LIBRARY_PATH
10273    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10274    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275    soname_spec='${libname}${release}${shared_ext}$major'
10276    if test "X$HPUX_IA64_MODE" = X32; then
10277      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10278    else
10279      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10280    fi
10281    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10282    ;;
10283  hppa*64*)
10284    shrext_cmds='.sl'
10285    hardcode_into_libs=yes
10286    dynamic_linker="$host_os dld.sl"
10287    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10288    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10289    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290    soname_spec='${libname}${release}${shared_ext}$major'
10291    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10292    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10293    ;;
10294  *)
10295    shrext_cmds='.sl'
10296    dynamic_linker="$host_os dld.sl"
10297    shlibpath_var=SHLIB_PATH
10298    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300    soname_spec='${libname}${release}${shared_ext}$major'
10301    ;;
10302  esac
10303  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10304  postinstall_cmds='chmod 555 $lib'
10305  # or fails outright, so override atomically:
10306  install_override_mode=555
10307  ;;
10308
10309interix[3-9]*)
10310  version_type=linux
10311  need_lib_prefix=no
10312  need_version=no
10313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10314  soname_spec='${libname}${release}${shared_ext}$major'
10315  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10316  shlibpath_var=LD_LIBRARY_PATH
10317  shlibpath_overrides_runpath=no
10318  hardcode_into_libs=yes
10319  ;;
10320
10321irix5* | irix6* | nonstopux*)
10322  case $host_os in
10323    nonstopux*) version_type=nonstopux ;;
10324    *)
10325	if test "$lt_cv_prog_gnu_ld" = yes; then
10326		version_type=linux
10327	else
10328		version_type=irix
10329	fi ;;
10330  esac
10331  need_lib_prefix=no
10332  need_version=no
10333  soname_spec='${libname}${release}${shared_ext}$major'
10334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10335  case $host_os in
10336  irix5* | nonstopux*)
10337    libsuff= shlibsuff=
10338    ;;
10339  *)
10340    case $LD in # libtool.m4 will add one of these switches to LD
10341    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10342      libsuff= shlibsuff= libmagic=32-bit;;
10343    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10344      libsuff=32 shlibsuff=N32 libmagic=N32;;
10345    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10346      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10347    *) libsuff= shlibsuff= libmagic=never-match;;
10348    esac
10349    ;;
10350  esac
10351  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10352  shlibpath_overrides_runpath=no
10353  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10354  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10355  hardcode_into_libs=yes
10356  ;;
10357
10358# No shared lib support for Linux oldld, aout, or coff.
10359linux*oldld* | linux*aout* | linux*coff*)
10360  dynamic_linker=no
10361  ;;
10362
10363# This must be Linux ELF.
10364linux* | k*bsd*-gnu | kopensolaris*-gnu)
10365  version_type=linux
10366  need_lib_prefix=no
10367  need_version=no
10368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369  soname_spec='${libname}${release}${shared_ext}$major'
10370  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10371  shlibpath_var=LD_LIBRARY_PATH
10372  shlibpath_overrides_runpath=no
10373
10374  # Some binutils ld are patched to set DT_RUNPATH
10375  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10376  $as_echo_n "(cached) " >&6
10377else
10378  lt_cv_shlibpath_overrides_runpath=no
10379    save_LDFLAGS=$LDFLAGS
10380    save_libdir=$libdir
10381    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10382	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385
10386int
10387main ()
10388{
10389
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10396  lt_cv_shlibpath_overrides_runpath=yes
10397fi
10398fi
10399rm -f core conftest.err conftest.$ac_objext \
10400    conftest$ac_exeext conftest.$ac_ext
10401    LDFLAGS=$save_LDFLAGS
10402    libdir=$save_libdir
10403
10404fi
10405
10406  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10407
10408  # This implies no fast_install, which is unacceptable.
10409  # Some rework will be needed to allow for fast_install
10410  # before this can be enabled.
10411  hardcode_into_libs=yes
10412
10413  # Append ld.so.conf contents to the search path
10414  if test -f /etc/ld.so.conf; then
10415    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10416    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10417  fi
10418
10419  # We used to test for /lib/ld.so.1 and disable shared libraries on
10420  # powerpc, because MkLinux only supported shared libraries with the
10421  # GNU dynamic linker.  Since this was broken with cross compilers,
10422  # most powerpc-linux boxes support dynamic linking these days and
10423  # people can always --disable-shared, the test was removed, and we
10424  # assume the GNU/Linux dynamic linker is in use.
10425  dynamic_linker='GNU/Linux ld.so'
10426  ;;
10427
10428netbsdelf*-gnu)
10429  version_type=linux
10430  need_lib_prefix=no
10431  need_version=no
10432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10433  soname_spec='${libname}${release}${shared_ext}$major'
10434  shlibpath_var=LD_LIBRARY_PATH
10435  shlibpath_overrides_runpath=no
10436  hardcode_into_libs=yes
10437  dynamic_linker='NetBSD ld.elf_so'
10438  ;;
10439
10440netbsd*)
10441  version_type=sunos
10442  need_lib_prefix=no
10443  need_version=no
10444  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10445    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10446    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10447    dynamic_linker='NetBSD (a.out) ld.so'
10448  else
10449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10450    soname_spec='${libname}${release}${shared_ext}$major'
10451    dynamic_linker='NetBSD ld.elf_so'
10452  fi
10453  shlibpath_var=LD_LIBRARY_PATH
10454  shlibpath_overrides_runpath=yes
10455  hardcode_into_libs=yes
10456  ;;
10457
10458newsos6)
10459  version_type=linux
10460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461  shlibpath_var=LD_LIBRARY_PATH
10462  shlibpath_overrides_runpath=yes
10463  ;;
10464
10465*nto* | *qnx*)
10466  version_type=qnx
10467  need_lib_prefix=no
10468  need_version=no
10469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470  soname_spec='${libname}${release}${shared_ext}$major'
10471  shlibpath_var=LD_LIBRARY_PATH
10472  shlibpath_overrides_runpath=no
10473  hardcode_into_libs=yes
10474  dynamic_linker='ldqnx.so'
10475  ;;
10476
10477openbsd*)
10478  version_type=sunos
10479  sys_lib_dlsearch_path_spec="/usr/lib"
10480  need_lib_prefix=no
10481  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10482  case $host_os in
10483    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10484    *)				need_version=no  ;;
10485  esac
10486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10487  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10488  shlibpath_var=LD_LIBRARY_PATH
10489  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10490    case $host_os in
10491      openbsd2.[89] | openbsd2.[89].*)
10492	shlibpath_overrides_runpath=no
10493	;;
10494      *)
10495	shlibpath_overrides_runpath=yes
10496	;;
10497      esac
10498  else
10499    shlibpath_overrides_runpath=yes
10500  fi
10501  ;;
10502
10503os2*)
10504  libname_spec='$name'
10505  shrext_cmds=".dll"
10506  need_lib_prefix=no
10507  library_names_spec='$libname${shared_ext} $libname.a'
10508  dynamic_linker='OS/2 ld.exe'
10509  shlibpath_var=LIBPATH
10510  ;;
10511
10512osf3* | osf4* | osf5*)
10513  version_type=osf
10514  need_lib_prefix=no
10515  need_version=no
10516  soname_spec='${libname}${release}${shared_ext}$major'
10517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518  shlibpath_var=LD_LIBRARY_PATH
10519  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10520  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10521  ;;
10522
10523rdos*)
10524  dynamic_linker=no
10525  ;;
10526
10527solaris*)
10528  version_type=linux
10529  need_lib_prefix=no
10530  need_version=no
10531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532  soname_spec='${libname}${release}${shared_ext}$major'
10533  shlibpath_var=LD_LIBRARY_PATH
10534  shlibpath_overrides_runpath=yes
10535  hardcode_into_libs=yes
10536  # ldd complains unless libraries are executable
10537  postinstall_cmds='chmod +x $lib'
10538  ;;
10539
10540sunos4*)
10541  version_type=sunos
10542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10544  shlibpath_var=LD_LIBRARY_PATH
10545  shlibpath_overrides_runpath=yes
10546  if test "$with_gnu_ld" = yes; then
10547    need_lib_prefix=no
10548  fi
10549  need_version=yes
10550  ;;
10551
10552sysv4 | sysv4.3*)
10553  version_type=linux
10554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555  soname_spec='${libname}${release}${shared_ext}$major'
10556  shlibpath_var=LD_LIBRARY_PATH
10557  case $host_vendor in
10558    sni)
10559      shlibpath_overrides_runpath=no
10560      need_lib_prefix=no
10561      runpath_var=LD_RUN_PATH
10562      ;;
10563    siemens)
10564      need_lib_prefix=no
10565      ;;
10566    motorola)
10567      need_lib_prefix=no
10568      need_version=no
10569      shlibpath_overrides_runpath=no
10570      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10571      ;;
10572  esac
10573  ;;
10574
10575sysv4*MP*)
10576  if test -d /usr/nec ;then
10577    version_type=linux
10578    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10579    soname_spec='$libname${shared_ext}.$major'
10580    shlibpath_var=LD_LIBRARY_PATH
10581  fi
10582  ;;
10583
10584sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10585  version_type=freebsd-elf
10586  need_lib_prefix=no
10587  need_version=no
10588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10589  soname_spec='${libname}${release}${shared_ext}$major'
10590  shlibpath_var=LD_LIBRARY_PATH
10591  shlibpath_overrides_runpath=yes
10592  hardcode_into_libs=yes
10593  if test "$with_gnu_ld" = yes; then
10594    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10595  else
10596    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10597    case $host_os in
10598      sco3.2v5*)
10599        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10600	;;
10601    esac
10602  fi
10603  sys_lib_dlsearch_path_spec='/usr/lib'
10604  ;;
10605
10606tpf*)
10607  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10608  version_type=linux
10609  need_lib_prefix=no
10610  need_version=no
10611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612  shlibpath_var=LD_LIBRARY_PATH
10613  shlibpath_overrides_runpath=no
10614  hardcode_into_libs=yes
10615  ;;
10616
10617uts4*)
10618  version_type=linux
10619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620  soname_spec='${libname}${release}${shared_ext}$major'
10621  shlibpath_var=LD_LIBRARY_PATH
10622  ;;
10623
10624*)
10625  dynamic_linker=no
10626  ;;
10627esac
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10629$as_echo "$dynamic_linker" >&6; }
10630test "$dynamic_linker" = no && can_build_shared=no
10631
10632variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10633if test "$GCC" = yes; then
10634  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10635fi
10636
10637if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10638  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10639fi
10640if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10641  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10642fi
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10736$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10737hardcode_action=
10738if test -n "$hardcode_libdir_flag_spec" ||
10739   test -n "$runpath_var" ||
10740   test "X$hardcode_automatic" = "Xyes" ; then
10741
10742  # We can hardcode non-existent directories.
10743  if test "$hardcode_direct" != no &&
10744     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10745     # have to relink, otherwise we might link with an installed library
10746     # when we should be linking with a yet-to-be-installed one
10747     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10748     test "$hardcode_minus_L" != no; then
10749    # Linking always hardcodes the temporary library directory.
10750    hardcode_action=relink
10751  else
10752    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10753    hardcode_action=immediate
10754  fi
10755else
10756  # We cannot hardcode anything, or else we can only hardcode existing
10757  # directories.
10758  hardcode_action=unsupported
10759fi
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10761$as_echo "$hardcode_action" >&6; }
10762
10763if test "$hardcode_action" = relink ||
10764   test "$inherit_rpath" = yes; then
10765  # Fast installation is not supported
10766  enable_fast_install=no
10767elif test "$shlibpath_overrides_runpath" = yes ||
10768     test "$enable_shared" = no; then
10769  # Fast installation is not necessary
10770  enable_fast_install=needless
10771fi
10772
10773
10774
10775
10776
10777
10778  if test "x$enable_dlopen" != xyes; then
10779  enable_dlopen=unknown
10780  enable_dlopen_self=unknown
10781  enable_dlopen_self_static=unknown
10782else
10783  lt_cv_dlopen=no
10784  lt_cv_dlopen_libs=
10785
10786  case $host_os in
10787  beos*)
10788    lt_cv_dlopen="load_add_on"
10789    lt_cv_dlopen_libs=
10790    lt_cv_dlopen_self=yes
10791    ;;
10792
10793  mingw* | pw32* | cegcc*)
10794    lt_cv_dlopen="LoadLibrary"
10795    lt_cv_dlopen_libs=
10796    ;;
10797
10798  cygwin*)
10799    lt_cv_dlopen="dlopen"
10800    lt_cv_dlopen_libs=
10801    ;;
10802
10803  darwin*)
10804  # if libdl is installed we need to link against it
10805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10806$as_echo_n "checking for dlopen in -ldl... " >&6; }
10807if ${ac_cv_lib_dl_dlopen+:} false; then :
10808  $as_echo_n "(cached) " >&6
10809else
10810  ac_check_lib_save_LIBS=$LIBS
10811LIBS="-ldl  $LIBS"
10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h.  */
10814
10815/* Override any GCC internal prototype to avoid an error.
10816   Use char because int might match the return type of a GCC
10817   builtin and then its argument prototype would still apply.  */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char dlopen ();
10822int
10823main ()
10824{
10825return dlopen ();
10826  ;
10827  return 0;
10828}
10829_ACEOF
10830if ac_fn_c_try_link "$LINENO"; then :
10831  ac_cv_lib_dl_dlopen=yes
10832else
10833  ac_cv_lib_dl_dlopen=no
10834fi
10835rm -f core conftest.err conftest.$ac_objext \
10836    conftest$ac_exeext conftest.$ac_ext
10837LIBS=$ac_check_lib_save_LIBS
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10840$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10841if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10842  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10843else
10844
10845    lt_cv_dlopen="dyld"
10846    lt_cv_dlopen_libs=
10847    lt_cv_dlopen_self=yes
10848
10849fi
10850
10851    ;;
10852
10853  *)
10854    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10855if test "x$ac_cv_func_shl_load" = xyes; then :
10856  lt_cv_dlopen="shl_load"
10857else
10858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10859$as_echo_n "checking for shl_load in -ldld... " >&6; }
10860if ${ac_cv_lib_dld_shl_load+:} false; then :
10861  $as_echo_n "(cached) " >&6
10862else
10863  ac_check_lib_save_LIBS=$LIBS
10864LIBS="-ldld  $LIBS"
10865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866/* end confdefs.h.  */
10867
10868/* Override any GCC internal prototype to avoid an error.
10869   Use char because int might match the return type of a GCC
10870   builtin and then its argument prototype would still apply.  */
10871#ifdef __cplusplus
10872extern "C"
10873#endif
10874char shl_load ();
10875int
10876main ()
10877{
10878return shl_load ();
10879  ;
10880  return 0;
10881}
10882_ACEOF
10883if ac_fn_c_try_link "$LINENO"; then :
10884  ac_cv_lib_dld_shl_load=yes
10885else
10886  ac_cv_lib_dld_shl_load=no
10887fi
10888rm -f core conftest.err conftest.$ac_objext \
10889    conftest$ac_exeext conftest.$ac_ext
10890LIBS=$ac_check_lib_save_LIBS
10891fi
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10893$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10894if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10895  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10896else
10897  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10898if test "x$ac_cv_func_dlopen" = xyes; then :
10899  lt_cv_dlopen="dlopen"
10900else
10901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10902$as_echo_n "checking for dlopen in -ldl... " >&6; }
10903if ${ac_cv_lib_dl_dlopen+:} false; then :
10904  $as_echo_n "(cached) " >&6
10905else
10906  ac_check_lib_save_LIBS=$LIBS
10907LIBS="-ldl  $LIBS"
10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h.  */
10910
10911/* Override any GCC internal prototype to avoid an error.
10912   Use char because int might match the return type of a GCC
10913   builtin and then its argument prototype would still apply.  */
10914#ifdef __cplusplus
10915extern "C"
10916#endif
10917char dlopen ();
10918int
10919main ()
10920{
10921return dlopen ();
10922  ;
10923  return 0;
10924}
10925_ACEOF
10926if ac_fn_c_try_link "$LINENO"; then :
10927  ac_cv_lib_dl_dlopen=yes
10928else
10929  ac_cv_lib_dl_dlopen=no
10930fi
10931rm -f core conftest.err conftest.$ac_objext \
10932    conftest$ac_exeext conftest.$ac_ext
10933LIBS=$ac_check_lib_save_LIBS
10934fi
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10936$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10937if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10938  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10939else
10940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10941$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10942if ${ac_cv_lib_svld_dlopen+:} false; then :
10943  $as_echo_n "(cached) " >&6
10944else
10945  ac_check_lib_save_LIBS=$LIBS
10946LIBS="-lsvld  $LIBS"
10947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948/* end confdefs.h.  */
10949
10950/* Override any GCC internal prototype to avoid an error.
10951   Use char because int might match the return type of a GCC
10952   builtin and then its argument prototype would still apply.  */
10953#ifdef __cplusplus
10954extern "C"
10955#endif
10956char dlopen ();
10957int
10958main ()
10959{
10960return dlopen ();
10961  ;
10962  return 0;
10963}
10964_ACEOF
10965if ac_fn_c_try_link "$LINENO"; then :
10966  ac_cv_lib_svld_dlopen=yes
10967else
10968  ac_cv_lib_svld_dlopen=no
10969fi
10970rm -f core conftest.err conftest.$ac_objext \
10971    conftest$ac_exeext conftest.$ac_ext
10972LIBS=$ac_check_lib_save_LIBS
10973fi
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10975$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10976if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10977  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10978else
10979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10980$as_echo_n "checking for dld_link in -ldld... " >&6; }
10981if ${ac_cv_lib_dld_dld_link+:} false; then :
10982  $as_echo_n "(cached) " >&6
10983else
10984  ac_check_lib_save_LIBS=$LIBS
10985LIBS="-ldld  $LIBS"
10986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987/* end confdefs.h.  */
10988
10989/* Override any GCC internal prototype to avoid an error.
10990   Use char because int might match the return type of a GCC
10991   builtin and then its argument prototype would still apply.  */
10992#ifdef __cplusplus
10993extern "C"
10994#endif
10995char dld_link ();
10996int
10997main ()
10998{
10999return dld_link ();
11000  ;
11001  return 0;
11002}
11003_ACEOF
11004if ac_fn_c_try_link "$LINENO"; then :
11005  ac_cv_lib_dld_dld_link=yes
11006else
11007  ac_cv_lib_dld_dld_link=no
11008fi
11009rm -f core conftest.err conftest.$ac_objext \
11010    conftest$ac_exeext conftest.$ac_ext
11011LIBS=$ac_check_lib_save_LIBS
11012fi
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11014$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11015if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11016  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11017fi
11018
11019
11020fi
11021
11022
11023fi
11024
11025
11026fi
11027
11028
11029fi
11030
11031
11032fi
11033
11034    ;;
11035  esac
11036
11037  if test "x$lt_cv_dlopen" != xno; then
11038    enable_dlopen=yes
11039  else
11040    enable_dlopen=no
11041  fi
11042
11043  case $lt_cv_dlopen in
11044  dlopen)
11045    save_CPPFLAGS="$CPPFLAGS"
11046    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11047
11048    save_LDFLAGS="$LDFLAGS"
11049    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11050
11051    save_LIBS="$LIBS"
11052    LIBS="$lt_cv_dlopen_libs $LIBS"
11053
11054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11055$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11056if ${lt_cv_dlopen_self+:} false; then :
11057  $as_echo_n "(cached) " >&6
11058else
11059  	  if test "$cross_compiling" = yes; then :
11060  lt_cv_dlopen_self=cross
11061else
11062  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11063  lt_status=$lt_dlunknown
11064  cat > conftest.$ac_ext <<_LT_EOF
11065#line $LINENO "configure"
11066#include "confdefs.h"
11067
11068#if HAVE_DLFCN_H
11069#include <dlfcn.h>
11070#endif
11071
11072#include <stdio.h>
11073
11074#ifdef RTLD_GLOBAL
11075#  define LT_DLGLOBAL		RTLD_GLOBAL
11076#else
11077#  ifdef DL_GLOBAL
11078#    define LT_DLGLOBAL		DL_GLOBAL
11079#  else
11080#    define LT_DLGLOBAL		0
11081#  endif
11082#endif
11083
11084/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11085   find out it does not work in some platform. */
11086#ifndef LT_DLLAZY_OR_NOW
11087#  ifdef RTLD_LAZY
11088#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11089#  else
11090#    ifdef DL_LAZY
11091#      define LT_DLLAZY_OR_NOW		DL_LAZY
11092#    else
11093#      ifdef RTLD_NOW
11094#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11095#      else
11096#        ifdef DL_NOW
11097#          define LT_DLLAZY_OR_NOW	DL_NOW
11098#        else
11099#          define LT_DLLAZY_OR_NOW	0
11100#        endif
11101#      endif
11102#    endif
11103#  endif
11104#endif
11105
11106/* When -fvisbility=hidden is used, assume the code has been annotated
11107   correspondingly for the symbols needed.  */
11108#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11109int fnord () __attribute__((visibility("default")));
11110#endif
11111
11112int fnord () { return 42; }
11113int main ()
11114{
11115  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11116  int status = $lt_dlunknown;
11117
11118  if (self)
11119    {
11120      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11121      else
11122        {
11123	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11124          else puts (dlerror ());
11125	}
11126      /* dlclose (self); */
11127    }
11128  else
11129    puts (dlerror ());
11130
11131  return status;
11132}
11133_LT_EOF
11134  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11135  (eval $ac_link) 2>&5
11136  ac_status=$?
11137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11139    (./conftest; exit; ) >&5 2>/dev/null
11140    lt_status=$?
11141    case x$lt_status in
11142      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11145    esac
11146  else :
11147    # compilation failed
11148    lt_cv_dlopen_self=no
11149  fi
11150fi
11151rm -fr conftest*
11152
11153
11154fi
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11156$as_echo "$lt_cv_dlopen_self" >&6; }
11157
11158    if test "x$lt_cv_dlopen_self" = xyes; then
11159      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11160      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11161$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11162if ${lt_cv_dlopen_self_static+:} false; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165  	  if test "$cross_compiling" = yes; then :
11166  lt_cv_dlopen_self_static=cross
11167else
11168  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169  lt_status=$lt_dlunknown
11170  cat > conftest.$ac_ext <<_LT_EOF
11171#line $LINENO "configure"
11172#include "confdefs.h"
11173
11174#if HAVE_DLFCN_H
11175#include <dlfcn.h>
11176#endif
11177
11178#include <stdio.h>
11179
11180#ifdef RTLD_GLOBAL
11181#  define LT_DLGLOBAL		RTLD_GLOBAL
11182#else
11183#  ifdef DL_GLOBAL
11184#    define LT_DLGLOBAL		DL_GLOBAL
11185#  else
11186#    define LT_DLGLOBAL		0
11187#  endif
11188#endif
11189
11190/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191   find out it does not work in some platform. */
11192#ifndef LT_DLLAZY_OR_NOW
11193#  ifdef RTLD_LAZY
11194#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11195#  else
11196#    ifdef DL_LAZY
11197#      define LT_DLLAZY_OR_NOW		DL_LAZY
11198#    else
11199#      ifdef RTLD_NOW
11200#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11201#      else
11202#        ifdef DL_NOW
11203#          define LT_DLLAZY_OR_NOW	DL_NOW
11204#        else
11205#          define LT_DLLAZY_OR_NOW	0
11206#        endif
11207#      endif
11208#    endif
11209#  endif
11210#endif
11211
11212/* When -fvisbility=hidden is used, assume the code has been annotated
11213   correspondingly for the symbols needed.  */
11214#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11215int fnord () __attribute__((visibility("default")));
11216#endif
11217
11218int fnord () { return 42; }
11219int main ()
11220{
11221  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11222  int status = $lt_dlunknown;
11223
11224  if (self)
11225    {
11226      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11227      else
11228        {
11229	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11230          else puts (dlerror ());
11231	}
11232      /* dlclose (self); */
11233    }
11234  else
11235    puts (dlerror ());
11236
11237  return status;
11238}
11239_LT_EOF
11240  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11241  (eval $ac_link) 2>&5
11242  ac_status=$?
11243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11244  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11245    (./conftest; exit; ) >&5 2>/dev/null
11246    lt_status=$?
11247    case x$lt_status in
11248      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11249      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11250      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11251    esac
11252  else :
11253    # compilation failed
11254    lt_cv_dlopen_self_static=no
11255  fi
11256fi
11257rm -fr conftest*
11258
11259
11260fi
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11262$as_echo "$lt_cv_dlopen_self_static" >&6; }
11263    fi
11264
11265    CPPFLAGS="$save_CPPFLAGS"
11266    LDFLAGS="$save_LDFLAGS"
11267    LIBS="$save_LIBS"
11268    ;;
11269  esac
11270
11271  case $lt_cv_dlopen_self in
11272  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11273  *) enable_dlopen_self=unknown ;;
11274  esac
11275
11276  case $lt_cv_dlopen_self_static in
11277  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11278  *) enable_dlopen_self_static=unknown ;;
11279  esac
11280fi
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298striplib=
11299old_striplib=
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11301$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11302if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11303  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11304  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306$as_echo "yes" >&6; }
11307else
11308# FIXME - insert some real tests, host_os isn't really good enough
11309  case $host_os in
11310  darwin*)
11311    if test -n "$STRIP" ; then
11312      striplib="$STRIP -x"
11313      old_striplib="$STRIP -S"
11314      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315$as_echo "yes" >&6; }
11316    else
11317      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
11319    fi
11320    ;;
11321  *)
11322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323$as_echo "no" >&6; }
11324    ;;
11325  esac
11326fi
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339  # Report which library types will actually be built
11340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11341$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11343$as_echo "$can_build_shared" >&6; }
11344
11345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11346$as_echo_n "checking whether to build shared libraries... " >&6; }
11347  test "$can_build_shared" = "no" && enable_shared=no
11348
11349  # On AIX, shared libraries and static libraries use the same namespace, and
11350  # are all built from PIC.
11351  case $host_os in
11352  aix3*)
11353    test "$enable_shared" = yes && enable_static=no
11354    if test -n "$RANLIB"; then
11355      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11356      postinstall_cmds='$RANLIB $lib'
11357    fi
11358    ;;
11359
11360  aix[4-9]*)
11361    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11362      test "$enable_shared" = yes && enable_static=no
11363    fi
11364    ;;
11365  esac
11366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11367$as_echo "$enable_shared" >&6; }
11368
11369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11370$as_echo_n "checking whether to build static libraries... " >&6; }
11371  # Make sure either enable_shared or enable_static is yes.
11372  test "$enable_shared" = yes || enable_static=yes
11373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11374$as_echo "$enable_static" >&6; }
11375
11376
11377
11378
11379fi
11380ac_ext=c
11381ac_cpp='$CPP $CPPFLAGS'
11382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384ac_compiler_gnu=$ac_cv_c_compiler_gnu
11385
11386CC="$lt_save_CC"
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400        ac_config_commands="$ac_config_commands libtool"
11401
11402
11403
11404
11405# Only expand once:
11406
11407
11408
11409for ac_header in sys/sockio.h
11410do :
11411  ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
11412if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
11413  cat >>confdefs.h <<_ACEOF
11414#define HAVE_SYS_SOCKIO_H 1
11415_ACEOF
11416
11417fi
11418
11419done
11420
11421for ac_func in gethostbyname2
11422do :
11423  ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
11424if test "x$ac_cv_func_gethostbyname2" = xyes; then :
11425  cat >>confdefs.h <<_ACEOF
11426#define HAVE_GETHOSTBYNAME2 1
11427_ACEOF
11428
11429fi
11430done
11431
11432for ac_func in getifaddrs
11433do :
11434  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
11435if test "x$ac_cv_func_getifaddrs" = xyes; then :
11436  cat >>confdefs.h <<_ACEOF
11437#define HAVE_GETIFADDRS 1
11438_ACEOF
11439
11440fi
11441done
11442
11443ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
11444case $ac_cv_c_uint16_t in #(
11445  no|yes) ;; #(
11446  *)
11447
11448
11449cat >>confdefs.h <<_ACEOF
11450#define uint16_t $ac_cv_c_uint16_t
11451_ACEOF
11452;;
11453  esac
11454
11455ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11456case $ac_cv_c_uint32_t in #(
11457  no|yes) ;; #(
11458  *)
11459
11460$as_echo "#define _UINT32_T 1" >>confdefs.h
11461
11462
11463cat >>confdefs.h <<_ACEOF
11464#define uint32_t $ac_cv_c_uint32_t
11465_ACEOF
11466;;
11467  esac
11468
11469ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
11470case $ac_cv_c_uint64_t in #(
11471  no|yes) ;; #(
11472  *)
11473
11474$as_echo "#define _UINT64_T 1" >>confdefs.h
11475
11476
11477cat >>confdefs.h <<_ACEOF
11478#define uint64_t $ac_cv_c_uint64_t
11479_ACEOF
11480;;
11481  esac
11482
11483
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11486$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11487if ${ac_cv_c_bigendian+:} false; then :
11488  $as_echo_n "(cached) " >&6
11489else
11490  ac_cv_c_bigendian=unknown
11491    # See if we're dealing with a universal compiler.
11492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493/* end confdefs.h.  */
11494#ifndef __APPLE_CC__
11495	       not a universal capable compiler
11496	     #endif
11497	     typedef int dummy;
11498
11499_ACEOF
11500if ac_fn_c_try_compile "$LINENO"; then :
11501
11502	# Check for potential -arch flags.  It is not universal unless
11503	# there are at least two -arch flags with different values.
11504	ac_arch=
11505	ac_prev=
11506	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11507	 if test -n "$ac_prev"; then
11508	   case $ac_word in
11509	     i?86 | x86_64 | ppc | ppc64)
11510	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11511		 ac_arch=$ac_word
11512	       else
11513		 ac_cv_c_bigendian=universal
11514		 break
11515	       fi
11516	       ;;
11517	   esac
11518	   ac_prev=
11519	 elif test "x$ac_word" = "x-arch"; then
11520	   ac_prev=arch
11521	 fi
11522       done
11523fi
11524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525    if test $ac_cv_c_bigendian = unknown; then
11526      # See if sys/param.h defines the BYTE_ORDER macro.
11527      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528/* end confdefs.h.  */
11529#include <sys/types.h>
11530	     #include <sys/param.h>
11531
11532int
11533main ()
11534{
11535#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11536		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11537		     && LITTLE_ENDIAN)
11538	      bogus endian macros
11539	     #endif
11540
11541  ;
11542  return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_compile "$LINENO"; then :
11546  # It does; now see whether it defined to BIG_ENDIAN or not.
11547	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548/* end confdefs.h.  */
11549#include <sys/types.h>
11550		#include <sys/param.h>
11551
11552int
11553main ()
11554{
11555#if BYTE_ORDER != BIG_ENDIAN
11556		 not big endian
11557		#endif
11558
11559  ;
11560  return 0;
11561}
11562_ACEOF
11563if ac_fn_c_try_compile "$LINENO"; then :
11564  ac_cv_c_bigendian=yes
11565else
11566  ac_cv_c_bigendian=no
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569fi
11570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571    fi
11572    if test $ac_cv_c_bigendian = unknown; then
11573      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575/* end confdefs.h.  */
11576#include <limits.h>
11577
11578int
11579main ()
11580{
11581#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11582	      bogus endian macros
11583	     #endif
11584
11585  ;
11586  return 0;
11587}
11588_ACEOF
11589if ac_fn_c_try_compile "$LINENO"; then :
11590  # It does; now see whether it defined to _BIG_ENDIAN or not.
11591	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592/* end confdefs.h.  */
11593#include <limits.h>
11594
11595int
11596main ()
11597{
11598#ifndef _BIG_ENDIAN
11599		 not big endian
11600		#endif
11601
11602  ;
11603  return 0;
11604}
11605_ACEOF
11606if ac_fn_c_try_compile "$LINENO"; then :
11607  ac_cv_c_bigendian=yes
11608else
11609  ac_cv_c_bigendian=no
11610fi
11611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612fi
11613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614    fi
11615    if test $ac_cv_c_bigendian = unknown; then
11616      # Compile a test program.
11617      if test "$cross_compiling" = yes; then :
11618  # Try to guess by grepping values from an object file.
11619	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620/* end confdefs.h.  */
11621short int ascii_mm[] =
11622		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11623		short int ascii_ii[] =
11624		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11625		int use_ascii (int i) {
11626		  return ascii_mm[i] + ascii_ii[i];
11627		}
11628		short int ebcdic_ii[] =
11629		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11630		short int ebcdic_mm[] =
11631		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11632		int use_ebcdic (int i) {
11633		  return ebcdic_mm[i] + ebcdic_ii[i];
11634		}
11635		extern int foo;
11636
11637int
11638main ()
11639{
11640return use_ascii (foo) == use_ebcdic (foo);
11641  ;
11642  return 0;
11643}
11644_ACEOF
11645if ac_fn_c_try_compile "$LINENO"; then :
11646  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11647	      ac_cv_c_bigendian=yes
11648	    fi
11649	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11650	      if test "$ac_cv_c_bigendian" = unknown; then
11651		ac_cv_c_bigendian=no
11652	      else
11653		# finding both strings is unlikely to happen, but who knows?
11654		ac_cv_c_bigendian=unknown
11655	      fi
11656	    fi
11657fi
11658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659else
11660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h.  */
11662$ac_includes_default
11663int
11664main ()
11665{
11666
11667	     /* Are we little or big endian?  From Harbison&Steele.  */
11668	     union
11669	     {
11670	       long int l;
11671	       char c[sizeof (long int)];
11672	     } u;
11673	     u.l = 1;
11674	     return u.c[sizeof (long int) - 1] == 1;
11675
11676  ;
11677  return 0;
11678}
11679_ACEOF
11680if ac_fn_c_try_run "$LINENO"; then :
11681  ac_cv_c_bigendian=no
11682else
11683  ac_cv_c_bigendian=yes
11684fi
11685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11686  conftest.$ac_objext conftest.beam conftest.$ac_ext
11687fi
11688
11689    fi
11690fi
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11692$as_echo "$ac_cv_c_bigendian" >&6; }
11693 case $ac_cv_c_bigendian in #(
11694   yes)
11695     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11696;; #(
11697   no)
11698      ;; #(
11699   universal)
11700
11701$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11702
11703     ;; #(
11704   *)
11705     as_fn_error $? "unknown endianness
11706 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11707 esac
11708
11709	if test $ac_cv_c_bigendian = yes ; then
11710
11711$as_echo "#define LIBNET_BIG_ENDIAN 1" >>confdefs.h
11712
11713            ENDIANESS="LIBNET_BIG_ENDIAN"
11714            LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
11715        else
11716
11717$as_echo "#define LIBNET_LIL_ENDIAN 1" >>confdefs.h
11718
11719            ENDIANESS="LIBNET_LIL_ENDIAN"
11720            LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
11721        fi
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735# Check whether --with-link-layer was given.
11736if test "${with_link_layer+set}" = set; then :
11737  withval=$with_link_layer;
11738fi
11739
11740
11741for ac_header in net/pfilt.h sys/net/nit.h net/raw.h sys/dlpi.h linux/socket.h
11742do :
11743  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11744ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11746  cat >>confdefs.h <<_ACEOF
11747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11748_ACEOF
11749
11750fi
11751
11752done
11753
11754
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking link-layer packet interface type" >&5
11756$as_echo_n "checking link-layer packet interface type... " >&6; }
11757
11758if test -n "${with_link_layer}"; then
11759    case "${with_link_layer}" in
11760        bpf)   case " $LIBOBJS " in
11761  *" libnet_link_bpf.$ac_objext "* ) ;;
11762  *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
11763 ;;
11764esac
11765 ;;
11766        pf)    case " $LIBOBJS " in
11767  *" libnet_link_pf.$ac_objext "* ) ;;
11768  *) LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext"
11769 ;;
11770esac
11771 ;;
11772        snit)  case " $LIBOBJS " in
11773  *" libnet_link_snit.$ac_objext "* ) ;;
11774  *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
11775 ;;
11776esac
11777 ;;
11778        nit)   case " $LIBOBJS " in
11779  *" libnet_link_nit.$ac_objext "* ) ;;
11780  *) LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext"
11781 ;;
11782esac
11783 ;;
11784        snoop) case " $LIBOBJS " in
11785  *" libnet_link_snoop.$ac_objext "* ) ;;
11786  *) LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext"
11787 ;;
11788esac
11789 ;;
11790        dlpi)  case " $LIBOBJS " in
11791  *" libnet_link_dlpi.$ac_objext "* ) ;;
11792  *) LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext"
11793 ;;
11794esac
11795 ;;
11796        linux) case " $LIBOBJS " in
11797  *" libnet_link_linux.$ac_objext "* ) ;;
11798  *) LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext"
11799 ;;
11800esac
11801
11802
11803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packet socket (PF_PACKET)" >&5
11804$as_echo_n "checking for packet socket (PF_PACKET)... " >&6; }
11805    if ${libnet_cv_have_packet_socket+:} false; then :
11806  $as_echo_n "(cached) " >&6
11807else
11808
11809    cat > pf_packet-test.c << EOF
11810#include <stdio.h>
11811#include <errno.h>
11812#include <stdlib.h>
11813#include <netinet/in.h>
11814#include <sys/socket.h>
11815#include <features.h>    /* for the glibc version number */
11816#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
11817#include <netpacket/packet.h>
11818#include <net/ethernet.h>     /* the L2 protocols */
11819#else
11820#include <asm/types.h>
11821#include <linux/if_packet.h>
11822#include <linux/if_ether.h>   /* The L2 protocols */
11823#endif
11824
11825#ifndef SOL_PACKET
11826#define SOL_PACKET 263
11827#endif  /* SOL_PACKET */
11828
11829int
11830main(int argc, char **argv)
11831{
11832    int fd;
11833
11834    fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
11835    if (fd == -1)
11836    {
11837        if (errno == EPERM)
11838        {
11839            /* user's UID != 0 */
11840            printf("probably");
11841            exit (EXIT_FAILURE);
11842        }
11843        printf("no");
11844        exit (EXIT_FAILURE);
11845    }
11846    printf("yes");
11847    exit (EXIT_SUCCESS);
11848}
11849EOF
11850    ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
11851
11852    # Oopz 4.3 BSD doesn't have this.  Sorry.
11853    if test ! -x ./pf_packet-test ; then
11854        libnet_cv_have_packet_socket=choked
11855    else
11856        libnet_cv_have_packet_socket=`./pf_packet-test`;
11857    fi
11858    if test $libnet_cv_have_packet_socket = choked; then
11859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program compile choked... assuming no" >&5
11860$as_echo "test program compile choked... assuming no" >&6; }
11861    elif test $libnet_cv_have_packet_socket = yes; then
11862        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863$as_echo "yes" >&6; }
11864    elif test $libnet_cv_have_packet_socket = probably; then
11865        { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program got EPERM... assuming yes" >&5
11866$as_echo "test program got EPERM... assuming yes" >&6; }
11867    elif test $libnet_cv_have_packet_socket = no; then
11868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869$as_echo "no" >&6; }
11870    fi
11871
11872    rm -f pf_packet-test* core core.pf_packet-test
11873
11874
11875fi
11876
11877
11878    if test $libnet_cv_have_packet_socket = yes -o $libnet_cv_have_packet_socket = probably; then
11879
11880$as_echo "#define HAVE_PACKET_SOCKET 1" >>confdefs.h
11881
11882    fi
11883
11884	       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux proc filesystem" >&5
11885$as_echo_n "checking for Linux proc filesystem... " >&6; }
11886    if ${ac_cv_libnet_linux_procfs+:} false; then :
11887  $as_echo_n "(cached) " >&6
11888else
11889  if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
11890            ac_cv_libnet_linux_procfs=yes
11891        else
11892            ac_cv_libnet_linux_procfs=no
11893        fi
11894fi
11895
11896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnet_linux_procfs" >&5
11897$as_echo "$ac_cv_libnet_linux_procfs" >&6; }
11898    if test $ac_cv_libnet_linux_procfs = yes ; then
11899
11900$as_echo "#define HAVE_LINUX_PROCFS 1" >>confdefs.h
11901
11902    fi ;;
11903        none) case " $LIBOBJS " in
11904  *" libnet_link_none.$ac_objext "* ) ;;
11905  *) LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext"
11906 ;;
11907esac
11908 ;;
11909        *) as_fn_error $? "Invalid link type \"${with_link_layer}\"" "$LINENO" 5 ;;
11910    esac
11911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: user selected link layer ${with_link_layer}" >&5
11912$as_echo "user selected link layer ${with_link_layer}" >&6; }
11913elif test "${cross_compiling}" != "yes" -a -r /dev/bpf0 ; then
11914    case " $LIBOBJS " in
11915  *" libnet_link_bpf.$ac_objext "* ) ;;
11916  *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
11917 ;;
11918esac
11919
11920    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer bpf" >&5
11921$as_echo "found link layer bpf" >&6; }
11922elif test "${ac_cv_header_net_pfilt_h}" = "yes" ; then
11923    case " $LIBOBJS " in
11924  *" libnet_link_pf.$ac_objext "* ) ;;
11925  *) LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext"
11926 ;;
11927esac
11928
11929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer pf" >&5
11930$as_echo "found link layer pf" >&6; }
11931elif test "${cross_compiling}" != "yes" -a -r /dev/nit ; then
11932    case " $LIBOBJS " in
11933  *" libnet_link_snit.$ac_objext "* ) ;;
11934  *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
11935 ;;
11936esac
11937
11938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer snit" >&5
11939$as_echo "found link layer snit" >&6; }
11940elif test "${ac_cv_header_sys_net_nit_h}" = "yes" ; then
11941    case " $LIBOBJS " in
11942  *" libnet_link_nit.$ac_objext "* ) ;;
11943  *) LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext"
11944 ;;
11945esac
11946
11947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer nit" >&5
11948$as_echo "found link layer nit" >&6; }
11949elif test "${ac_cv_header_net_raw_h}" = "yes" ; then
11950    case " $LIBOBJS " in
11951  *" libnet_link_snoop.$ac_objext "* ) ;;
11952  *) LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext"
11953 ;;
11954esac
11955
11956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer snoop" >&5
11957$as_echo "found link layer snoop" >&6; }
11958elif test "${ac_cv_header_sys_dlpi_h}" = "yes" ; then
11959    case " $LIBOBJS " in
11960  *" libnet_link_dlpi.$ac_objext "* ) ;;
11961  *) LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext"
11962 ;;
11963esac
11964
11965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer dlpi" >&5
11966$as_echo "found link layer dlpi" >&6; }
11967
11968$as_echo "#define HAVE_DLPI 1" >>confdefs.h
11969
11970elif test "${ac_cv_header_linux_socket_h}" = "yes" ; then
11971    case " $LIBOBJS " in
11972  *" libnet_link_linux.$ac_objext "* ) ;;
11973  *) LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext"
11974 ;;
11975esac
11976
11977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer linux" >&5
11978$as_echo "found link layer linux" >&6; }
11979
11980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packet socket (PF_PACKET)" >&5
11981$as_echo_n "checking for packet socket (PF_PACKET)... " >&6; }
11982    if ${libnet_cv_have_packet_socket+:} false; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985
11986    cat > pf_packet-test.c << EOF
11987#include <stdio.h>
11988#include <errno.h>
11989#include <stdlib.h>
11990#include <netinet/in.h>
11991#include <sys/socket.h>
11992#include <features.h>    /* for the glibc version number */
11993#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
11994#include <netpacket/packet.h>
11995#include <net/ethernet.h>     /* the L2 protocols */
11996#else
11997#include <asm/types.h>
11998#include <linux/if_packet.h>
11999#include <linux/if_ether.h>   /* The L2 protocols */
12000#endif
12001
12002#ifndef SOL_PACKET
12003#define SOL_PACKET 263
12004#endif  /* SOL_PACKET */
12005
12006int
12007main(int argc, char **argv)
12008{
12009    int fd;
12010
12011    fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
12012    if (fd == -1)
12013    {
12014        if (errno == EPERM)
12015        {
12016            /* user's UID != 0 */
12017            printf("probably");
12018            exit (EXIT_FAILURE);
12019        }
12020        printf("no");
12021        exit (EXIT_FAILURE);
12022    }
12023    printf("yes");
12024    exit (EXIT_SUCCESS);
12025}
12026EOF
12027    ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
12028
12029    # Oopz 4.3 BSD doesn't have this.  Sorry.
12030    if test ! -x ./pf_packet-test ; then
12031        libnet_cv_have_packet_socket=choked
12032    else
12033        libnet_cv_have_packet_socket=`./pf_packet-test`;
12034    fi
12035    if test $libnet_cv_have_packet_socket = choked; then
12036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program compile choked... assuming no" >&5
12037$as_echo "test program compile choked... assuming no" >&6; }
12038    elif test $libnet_cv_have_packet_socket = yes; then
12039        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040$as_echo "yes" >&6; }
12041    elif test $libnet_cv_have_packet_socket = probably; then
12042        { $as_echo "$as_me:${as_lineno-$LINENO}: result: test program got EPERM... assuming yes" >&5
12043$as_echo "test program got EPERM... assuming yes" >&6; }
12044    elif test $libnet_cv_have_packet_socket = no; then
12045        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047    fi
12048
12049    rm -f pf_packet-test* core core.pf_packet-test
12050
12051
12052fi
12053
12054
12055    if test $libnet_cv_have_packet_socket = yes -o $libnet_cv_have_packet_socket = probably; then
12056
12057$as_echo "#define HAVE_PACKET_SOCKET 1" >>confdefs.h
12058
12059    fi
12060
12061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux proc filesystem" >&5
12062$as_echo_n "checking for Linux proc filesystem... " >&6; }
12063    if ${ac_cv_libnet_linux_procfs+:} false; then :
12064  $as_echo_n "(cached) " >&6
12065else
12066  if test "x`cat /proc/sys/kernel/ostype 2>&-`" = "xLinux" ; then
12067            ac_cv_libnet_linux_procfs=yes
12068        else
12069            ac_cv_libnet_linux_procfs=no
12070        fi
12071fi
12072
12073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnet_linux_procfs" >&5
12074$as_echo "$ac_cv_libnet_linux_procfs" >&6; }
12075    if test $ac_cv_libnet_linux_procfs = yes ; then
12076
12077$as_echo "#define HAVE_LINUX_PROCFS 1" >>confdefs.h
12078
12079    fi
12080elif test "${cross_compiling}" != "yes" -a -c /dev/bpf0 ; then           # check again in case not readable
12081    case " $LIBOBJS " in
12082  *" libnet_link_bpf.$ac_objext "* ) ;;
12083  *) LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext"
12084 ;;
12085esac
12086
12087    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer bpf" >&5
12088$as_echo "found link layer bpf" >&6; }
12089elif test "${cross_compiling}" != "yes" -a -c /dev/nit ; then            # check again in case not readable
12090    case " $LIBOBJS " in
12091  *" libnet_link_snit.$ac_objext "* ) ;;
12092  *) LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext"
12093 ;;
12094esac
12095
12096    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer snit" >&5
12097$as_echo "found link layer snit" >&6; }
12098elif test "$target_os" = "cygwin" ; then
12099    case " $LIBOBJS " in
12100  *" libnet_link_win32.$ac_objext "* ) ;;
12101  *) LIBOBJS="$LIBOBJS libnet_link_win32.$ac_objext"
12102 ;;
12103esac
12104
12105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found link layer win32 wpcap" >&5
12106$as_echo "found link layer win32 wpcap" >&6; }
12107else
12108    case " $LIBOBJS " in
12109  *" libnet_link_none.$ac_objext "* ) ;;
12110  *) LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext"
12111 ;;
12112esac
12113
12114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a link-layer packet interface" >&5
12115$as_echo "$as_me: WARNING: could not find a link-layer packet interface" >&2;}
12116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: link-layer packet injection will not be available" >&5
12117$as_echo "$as_me: WARNING: link-layer packet injection will not be available" >&2;}
12118fi
12119
12120LIBOBJS=`echo "$LIBOBJS" |
12121       sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
12122LTLIBOBJS=`echo "$LIBOBJS" |
12123       sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
12124
12125
12126
12127echo -n "scanning available packet construction modules: "
12128for dir in src/*build*c ; do
12129    echo $dir | sed -e /src\\/libnet_build_/s/// | sed -e /\\.c/s/// | tr \\n \\040
12130done
12131echo ""
12132
12133
12134case "$target_os" in
12135
12136*linux*)
12137
12138$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
12139
12140
12141$as_echo "#define __BSD_SOURCE 1" >>confdefs.h
12142
12143
12144$as_echo "#define __FAVOR_BSD 1" >>confdefs.h
12145
12146
12147    LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
12148    for ac_header in net/ethernet.h
12149do :
12150  ac_fn_c_check_header_mongrel "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
12151if test "x$ac_cv_header_net_ethernet_h" = xyes; then :
12152  cat >>confdefs.h <<_ACEOF
12153#define HAVE_NET_ETHERNET_H 1
12154_ACEOF
12155 \
12156        LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
12157fi
12158
12159done
12160
12161    ;;
12162
12163*freebsd*)
12164
12165$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
12166
12167
12168
12169
12170$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
12171
12172
12173    LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DHAVE_SOCKADDR_SA_LEN"
12174    ;;
12175
12176*netbsd*)
12177
12178$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
12179
12180
12181$as_echo "#define LIBNET_BSD_BYTE_SWAP 1" >>confdefs.h
12182
12183
12184    LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
12185    ;;
12186
12187*openbsd*)
12188
12189$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
12190
12191
12192$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
12193
12194    LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
12195    ;;
12196
12197*bsdi*)
12198
12199$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
12200
12201
12202$as_echo "#define LIBNET_BSD_BYTE_SWAP 1" >>confdefs.h
12203
12204    LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
12205    ;;
12206
12207*darwin*)
12208
12209$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
12210
12211    LIBNET_CONFIG_DEFINES="-DHAVE_SOCKADDR_SA_LEN"
12212
12213
12214    case "$target" in
12215    i?86-*-*darwin*)
12216        $as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
12217
12218        $as_echo "#define LIBNET_BSD_BYTE_SWAP 1" >>confdefs.h
12219
12220        LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
12221        ;;
12222
12223    *)
12224        ;;
12225
12226    esac
12227
12228    ;;
12229
12230*solaris*)
12231
12232$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
12233
12234    for ac_header in sys/bufmod.h sys/dlpi_ext.h
12235do :
12236  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12237ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12239  cat >>confdefs.h <<_ACEOF
12240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12241_ACEOF
12242
12243fi
12244
12245done
12246
12247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
12248$as_echo_n "checking for /dev/dlpi device... " >&6; }
12249    if test -c /dev/dlpi; then
12250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12251$as_echo "yes" >&6; }
12252
12253$as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
12254
12255    else
12256        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258        dir="/dev/dlpi"
12259        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
12260$as_echo_n "checking for $dir directory... " >&6; }
12261        if test -d $dir ; then
12262            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263$as_echo "yes" >&6; }
12264
12265cat >>confdefs.h <<_ACEOF
12266#define DLPI_DEV_PREFIX "$dir"
12267_ACEOF
12268
12269        else
12270            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271$as_echo "no" >&6; }
12272        fi
12273    fi
12274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12275$as_echo_n "checking for socket in -lsocket... " >&6; }
12276if ${ac_cv_lib_socket_socket+:} false; then :
12277  $as_echo_n "(cached) " >&6
12278else
12279  ac_check_lib_save_LIBS=$LIBS
12280LIBS="-lsocket  $LIBS"
12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283
12284/* Override any GCC internal prototype to avoid an error.
12285   Use char because int might match the return type of a GCC
12286   builtin and then its argument prototype would still apply.  */
12287#ifdef __cplusplus
12288extern "C"
12289#endif
12290char socket ();
12291int
12292main ()
12293{
12294return socket ();
12295  ;
12296  return 0;
12297}
12298_ACEOF
12299if ac_fn_c_try_link "$LINENO"; then :
12300  ac_cv_lib_socket_socket=yes
12301else
12302  ac_cv_lib_socket_socket=no
12303fi
12304rm -f core conftest.err conftest.$ac_objext \
12305    conftest$ac_exeext conftest.$ac_ext
12306LIBS=$ac_check_lib_save_LIBS
12307fi
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
12309$as_echo "$ac_cv_lib_socket_socket" >&6; }
12310if test "x$ac_cv_lib_socket_socket" = xyes; then :
12311  cat >>confdefs.h <<_ACEOF
12312#define HAVE_LIBSOCKET 1
12313_ACEOF
12314
12315  LIBS="-lsocket $LIBS"
12316
12317else
12318  as_fn_error $? "libsocket not found." "$LINENO" 5
12319fi
12320
12321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12322$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12323if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12324  $as_echo_n "(cached) " >&6
12325else
12326  ac_check_lib_save_LIBS=$LIBS
12327LIBS="-lnsl  $LIBS"
12328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329/* end confdefs.h.  */
12330
12331/* Override any GCC internal prototype to avoid an error.
12332   Use char because int might match the return type of a GCC
12333   builtin and then its argument prototype would still apply.  */
12334#ifdef __cplusplus
12335extern "C"
12336#endif
12337char gethostbyname ();
12338int
12339main ()
12340{
12341return gethostbyname ();
12342  ;
12343  return 0;
12344}
12345_ACEOF
12346if ac_fn_c_try_link "$LINENO"; then :
12347  ac_cv_lib_nsl_gethostbyname=yes
12348else
12349  ac_cv_lib_nsl_gethostbyname=no
12350fi
12351rm -f core conftest.err conftest.$ac_objext \
12352    conftest$ac_exeext conftest.$ac_ext
12353LIBS=$ac_check_lib_save_LIBS
12354fi
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12356$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12357if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12358  cat >>confdefs.h <<_ACEOF
12359#define HAVE_LIBNSL 1
12360_ACEOF
12361
12362  LIBS="-lnsl $LIBS"
12363
12364else
12365  as_fn_error $? "libnsl not found." "$LINENO" 5
12366fi
12367
12368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
12369$as_echo_n "checking for hstrerror in -lresolv... " >&6; }
12370if ${ac_cv_lib_resolv_hstrerror+:} false; then :
12371  $as_echo_n "(cached) " >&6
12372else
12373  ac_check_lib_save_LIBS=$LIBS
12374LIBS="-lresolv  $LIBS"
12375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376/* end confdefs.h.  */
12377
12378/* Override any GCC internal prototype to avoid an error.
12379   Use char because int might match the return type of a GCC
12380   builtin and then its argument prototype would still apply.  */
12381#ifdef __cplusplus
12382extern "C"
12383#endif
12384char hstrerror ();
12385int
12386main ()
12387{
12388return hstrerror ();
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_link "$LINENO"; then :
12394  ac_cv_lib_resolv_hstrerror=yes
12395else
12396  ac_cv_lib_resolv_hstrerror=no
12397fi
12398rm -f core conftest.err conftest.$ac_objext \
12399    conftest$ac_exeext conftest.$ac_ext
12400LIBS=$ac_check_lib_save_LIBS
12401fi
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
12403$as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
12404if test "x$ac_cv_lib_resolv_hstrerror" = xyes; then :
12405  cat >>confdefs.h <<_ACEOF
12406#define HAVE_LIBRESOLV 1
12407_ACEOF
12408
12409  LIBS="-lresolv $LIBS"
12410
12411else
12412  as_fn_error $? "libresolv not found." "$LINENO" 5
12413fi
12414
12415
12416    case "`uname -r`" in
12417    5.4)
12418
12419$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
12420
12421        ;;
12422    5.5*)
12423
12424$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
12425
12426        ;;
12427    5.8)
12428
12429$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
12430
12431
12432$as_echo "#define HAVE_SOLARIS_IPV6 1" >>confdefs.h
12433
12434
12435        ;;
12436    5.9)
12437
12438$as_echo "#define STUPID_SOLARIS_CHECKSUM_BUG 1" >>confdefs.h
12439
12440
12441$as_echo "#define HAVE_SOLARIS_IPV6 1" >>confdefs.h
12442
12443        ;;
12444    5.10|5.11|5.12)
12445
12446$as_echo "#define HAVE_SOLARIS_IPV6 1" >>confdefs.h
12447
12448        ;;
12449
12450    esac
12451
12452    ADDITIONAL_LIBS='-lresolv -lsocket -lnsl'
12453    LIBNET_CONFIG_LIBS="$LIBNET_CONFIG_LIBS -lresolv -lsocket -lnsl"
12454
12455    ;;
12456
12457*hpux11*)
12458
12459$as_echo "#define HAVE_HPUX11 1" >>confdefs.h
12460
12461    for ac_header in sys/dlpi_ext.h
12462do :
12463  ac_fn_c_check_header_mongrel "$LINENO" "sys/dlpi_ext.h" "ac_cv_header_sys_dlpi_ext_h" "$ac_includes_default"
12464if test "x$ac_cv_header_sys_dlpi_ext_h" = xyes; then :
12465  cat >>confdefs.h <<_ACEOF
12466#define HAVE_SYS_DLPI_EXT_H 1
12467_ACEOF
12468
12469fi
12470
12471done
12472
12473    ;;
12474
12475*cygwin*)
12476
12477$as_echo "#define LIBNET_BSDISH_OS 1" >>confdefs.h
12478
12479
12480$as_echo "#define NO_SNPRINTF 1" >>confdefs.h
12481
12482     LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DNO_SNPRINTF"
12483     CFLAGS="$CFLAGS -mno-cygwin -O0 -fnative-struct -DNO_SNPRINTF -I/usr/include/pcap"
12484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PacketSetMode in -lpacket" >&5
12485$as_echo_n "checking for PacketSetMode in -lpacket... " >&6; }
12486if ${ac_cv_lib_packet_PacketSetMode+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  ac_check_lib_save_LIBS=$LIBS
12490LIBS="-lpacket  $LIBS"
12491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h.  */
12493
12494/* Override any GCC internal prototype to avoid an error.
12495   Use char because int might match the return type of a GCC
12496   builtin and then its argument prototype would still apply.  */
12497#ifdef __cplusplus
12498extern "C"
12499#endif
12500char PacketSetMode ();
12501int
12502main ()
12503{
12504return PacketSetMode ();
12505  ;
12506  return 0;
12507}
12508_ACEOF
12509if ac_fn_c_try_link "$LINENO"; then :
12510  ac_cv_lib_packet_PacketSetMode=yes
12511else
12512  ac_cv_lib_packet_PacketSetMode=no
12513fi
12514rm -f core conftest.err conftest.$ac_objext \
12515    conftest$ac_exeext conftest.$ac_ext
12516LIBS=$ac_check_lib_save_LIBS
12517fi
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_packet_PacketSetMode" >&5
12519$as_echo "$ac_cv_lib_packet_PacketSetMode" >&6; }
12520if test "x$ac_cv_lib_packet_PacketSetMode" = xyes; then :
12521  cat >>confdefs.h <<_ACEOF
12522#define HAVE_LIBPACKET 1
12523_ACEOF
12524
12525  LIBS="-lpacket $LIBS"
12526
12527else
12528  as_fn_error $? "packet lib not found." "$LINENO" 5
12529fi
12530
12531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setmode in -lwpcap" >&5
12532$as_echo_n "checking for pcap_setmode in -lwpcap... " >&6; }
12533if ${ac_cv_lib_wpcap_pcap_setmode+:} false; then :
12534  $as_echo_n "(cached) " >&6
12535else
12536  ac_check_lib_save_LIBS=$LIBS
12537LIBS="-lwpcap  $LIBS"
12538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h.  */
12540
12541/* Override any GCC internal prototype to avoid an error.
12542   Use char because int might match the return type of a GCC
12543   builtin and then its argument prototype would still apply.  */
12544#ifdef __cplusplus
12545extern "C"
12546#endif
12547char pcap_setmode ();
12548int
12549main ()
12550{
12551return pcap_setmode ();
12552  ;
12553  return 0;
12554}
12555_ACEOF
12556if ac_fn_c_try_link "$LINENO"; then :
12557  ac_cv_lib_wpcap_pcap_setmode=yes
12558else
12559  ac_cv_lib_wpcap_pcap_setmode=no
12560fi
12561rm -f core conftest.err conftest.$ac_objext \
12562    conftest$ac_exeext conftest.$ac_ext
12563LIBS=$ac_check_lib_save_LIBS
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wpcap_pcap_setmode" >&5
12566$as_echo "$ac_cv_lib_wpcap_pcap_setmode" >&6; }
12567if test "x$ac_cv_lib_wpcap_pcap_setmode" = xyes; then :
12568  cat >>confdefs.h <<_ACEOF
12569#define HAVE_LIBWPCAP 1
12570_ACEOF
12571
12572  LIBS="-lwpcap $LIBS"
12573
12574else
12575  as_fn_error $? "pcap lib not found." "$LINENO" 5
12576fi
12577
12578     LIBS="$LIBS -lws2_32"
12579     ;;
12580
12581*)
12582    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: apparently your OS is not officially supported yet" >&5
12583$as_echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
12584    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this may not work" >&5
12585$as_echo "$as_me: WARNING: this may not work" >&2;}
12586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: please send diffs to vieuxtech@gmail.com" >&5
12587$as_echo "please send diffs to vieuxtech@gmail.com" >&6; }
12588    ;;
12589
12590esac
12591
12592
12593# Check whether --enable-samples was given.
12594if test "${enable_samples+set}" = set; then :
12595  enableval=$enable_samples;
12596fi
12597
12598
12599 if test x"$enable_samples" = xyes; then
12600  INSTALL_SAMPLES_TRUE=
12601  INSTALL_SAMPLES_FALSE='#'
12602else
12603  INSTALL_SAMPLES_TRUE='#'
12604  INSTALL_SAMPLES_FALSE=
12605fi
12606
12607
12608ac_config_files="$ac_config_files Makefile src/Makefile win32/Makefile include/Makefile include/libnet/Makefile include/win32/Makefile sample/Makefile doc/Makefile doc/man/Makefile doc/man/man3/Makefile doc/html/Makefile version.h include/libnet.h libnet-config"
12609
12610cat >confcache <<\_ACEOF
12611# This file is a shell script that caches the results of configure
12612# tests run on this system so they can be shared between configure
12613# scripts and configure runs, see configure's option --config-cache.
12614# It is not useful on other systems.  If it contains results you don't
12615# want to keep, you may remove or edit it.
12616#
12617# config.status only pays attention to the cache file if you give it
12618# the --recheck option to rerun configure.
12619#
12620# `ac_cv_env_foo' variables (set or unset) will be overridden when
12621# loading this file, other *unset* `ac_cv_foo' will be assigned the
12622# following values.
12623
12624_ACEOF
12625
12626# The following way of writing the cache mishandles newlines in values,
12627# but we know of no workaround that is simple, portable, and efficient.
12628# So, we kill variables containing newlines.
12629# Ultrix sh set writes to stderr and can't be redirected directly,
12630# and sets the high bit in the cache file unless we assign to the vars.
12631(
12632  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12633    eval ac_val=\$$ac_var
12634    case $ac_val in #(
12635    *${as_nl}*)
12636      case $ac_var in #(
12637      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12638$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12639      esac
12640      case $ac_var in #(
12641      _ | IFS | as_nl) ;; #(
12642      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12643      *) { eval $ac_var=; unset $ac_var;} ;;
12644      esac ;;
12645    esac
12646  done
12647
12648  (set) 2>&1 |
12649    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12650    *${as_nl}ac_space=\ *)
12651      # `set' does not quote correctly, so add quotes: double-quote
12652      # substitution turns \\\\ into \\, and sed turns \\ into \.
12653      sed -n \
12654	"s/'/'\\\\''/g;
12655	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12656      ;; #(
12657    *)
12658      # `set' quotes correctly as required by POSIX, so do not add quotes.
12659      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12660      ;;
12661    esac |
12662    sort
12663) |
12664  sed '
12665     /^ac_cv_env_/b end
12666     t clear
12667     :clear
12668     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12669     t end
12670     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12671     :end' >>confcache
12672if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12673  if test -w "$cache_file"; then
12674    if test "x$cache_file" != "x/dev/null"; then
12675      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12676$as_echo "$as_me: updating cache $cache_file" >&6;}
12677      if test ! -f "$cache_file" || test -h "$cache_file"; then
12678	cat confcache >"$cache_file"
12679      else
12680        case $cache_file in #(
12681        */* | ?:*)
12682	  mv -f confcache "$cache_file"$$ &&
12683	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12684        *)
12685	  mv -f confcache "$cache_file" ;;
12686	esac
12687      fi
12688    fi
12689  else
12690    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12691$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12692  fi
12693fi
12694rm -f confcache
12695
12696test "x$prefix" = xNONE && prefix=$ac_default_prefix
12697# Let make expand exec_prefix.
12698test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12699
12700DEFS=-DHAVE_CONFIG_H
12701
12702ac_libobjs=
12703ac_ltlibobjs=
12704U=
12705for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12706  # 1. Remove the extension, and $U if already installed.
12707  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12708  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12709  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12710  #    will be set to the directory where LIBOBJS objects are built.
12711  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12712  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12713done
12714LIBOBJS=$ac_libobjs
12715
12716LTLIBOBJS=$ac_ltlibobjs
12717
12718
12719 if test -n "$EXEEXT"; then
12720  am__EXEEXT_TRUE=
12721  am__EXEEXT_FALSE='#'
12722else
12723  am__EXEEXT_TRUE='#'
12724  am__EXEEXT_FALSE=
12725fi
12726
12727if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12728  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12729Usually this means the macro was only invoked conditionally." "$LINENO" 5
12730fi
12731if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12732  as_fn_error $? "conditional \"AMDEP\" was never defined.
12733Usually this means the macro was only invoked conditionally." "$LINENO" 5
12734fi
12735if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12736  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12737Usually this means the macro was only invoked conditionally." "$LINENO" 5
12738fi
12739
12740if test -z "${INSTALL_SAMPLES_TRUE}" && test -z "${INSTALL_SAMPLES_FALSE}"; then
12741  as_fn_error $? "conditional \"INSTALL_SAMPLES\" was never defined.
12742Usually this means the macro was only invoked conditionally." "$LINENO" 5
12743fi
12744
12745: "${CONFIG_STATUS=./config.status}"
12746ac_write_fail=0
12747ac_clean_files_save=$ac_clean_files
12748ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12750$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12751as_write_fail=0
12752cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12753#! $SHELL
12754# Generated by $as_me.
12755# Run this file to recreate the current configuration.
12756# Compiler output produced by configure, useful for debugging
12757# configure, is in config.log if it exists.
12758
12759debug=false
12760ac_cs_recheck=false
12761ac_cs_silent=false
12762
12763SHELL=\${CONFIG_SHELL-$SHELL}
12764export SHELL
12765_ASEOF
12766cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12767## -------------------- ##
12768## M4sh Initialization. ##
12769## -------------------- ##
12770
12771# Be more Bourne compatible
12772DUALCASE=1; export DUALCASE # for MKS sh
12773if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12774  emulate sh
12775  NULLCMD=:
12776  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12777  # is contrary to our usage.  Disable this feature.
12778  alias -g '${1+"$@"}'='"$@"'
12779  setopt NO_GLOB_SUBST
12780else
12781  case `(set -o) 2>/dev/null` in #(
12782  *posix*) :
12783    set -o posix ;; #(
12784  *) :
12785     ;;
12786esac
12787fi
12788
12789
12790as_nl='
12791'
12792export as_nl
12793# Printing a long string crashes Solaris 7 /usr/bin/printf.
12794as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12795as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12796as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12797# Prefer a ksh shell builtin over an external printf program on Solaris,
12798# but without wasting forks for bash or zsh.
12799if test -z "$BASH_VERSION$ZSH_VERSION" \
12800    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12801  as_echo='print -r --'
12802  as_echo_n='print -rn --'
12803elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12804  as_echo='printf %s\n'
12805  as_echo_n='printf %s'
12806else
12807  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12808    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12809    as_echo_n='/usr/ucb/echo -n'
12810  else
12811    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12812    as_echo_n_body='eval
12813      arg=$1;
12814      case $arg in #(
12815      *"$as_nl"*)
12816	expr "X$arg" : "X\\(.*\\)$as_nl";
12817	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12818      esac;
12819      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12820    '
12821    export as_echo_n_body
12822    as_echo_n='sh -c $as_echo_n_body as_echo'
12823  fi
12824  export as_echo_body
12825  as_echo='sh -c $as_echo_body as_echo'
12826fi
12827
12828# The user is always right.
12829if test "${PATH_SEPARATOR+set}" != set; then
12830  PATH_SEPARATOR=:
12831  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12832    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12833      PATH_SEPARATOR=';'
12834  }
12835fi
12836
12837
12838# IFS
12839# We need space, tab and new line, in precisely that order.  Quoting is
12840# there to prevent editors from complaining about space-tab.
12841# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12842# splitting by setting IFS to empty value.)
12843IFS=" ""	$as_nl"
12844
12845# Find who we are.  Look in the path if we contain no directory separator.
12846as_myself=
12847case $0 in #((
12848  *[\\/]* ) as_myself=$0 ;;
12849  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850for as_dir in $PATH
12851do
12852  IFS=$as_save_IFS
12853  test -z "$as_dir" && as_dir=.
12854    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12855  done
12856IFS=$as_save_IFS
12857
12858     ;;
12859esac
12860# We did not find ourselves, most probably we were run as `sh COMMAND'
12861# in which case we are not to be found in the path.
12862if test "x$as_myself" = x; then
12863  as_myself=$0
12864fi
12865if test ! -f "$as_myself"; then
12866  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12867  exit 1
12868fi
12869
12870# Unset variables that we do not need and which cause bugs (e.g. in
12871# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12872# suppresses any "Segmentation fault" message there.  '((' could
12873# trigger a bug in pdksh 5.2.14.
12874for as_var in BASH_ENV ENV MAIL MAILPATH
12875do eval test x\${$as_var+set} = xset \
12876  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12877done
12878PS1='$ '
12879PS2='> '
12880PS4='+ '
12881
12882# NLS nuisances.
12883LC_ALL=C
12884export LC_ALL
12885LANGUAGE=C
12886export LANGUAGE
12887
12888# CDPATH.
12889(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12890
12891
12892# as_fn_error STATUS ERROR [LINENO LOG_FD]
12893# ----------------------------------------
12894# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12895# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12896# script with STATUS, using 1 if that was 0.
12897as_fn_error ()
12898{
12899  as_status=$1; test $as_status -eq 0 && as_status=1
12900  if test "$4"; then
12901    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12902    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12903  fi
12904  $as_echo "$as_me: error: $2" >&2
12905  as_fn_exit $as_status
12906} # as_fn_error
12907
12908
12909# as_fn_set_status STATUS
12910# -----------------------
12911# Set $? to STATUS, without forking.
12912as_fn_set_status ()
12913{
12914  return $1
12915} # as_fn_set_status
12916
12917# as_fn_exit STATUS
12918# -----------------
12919# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12920as_fn_exit ()
12921{
12922  set +e
12923  as_fn_set_status $1
12924  exit $1
12925} # as_fn_exit
12926
12927# as_fn_unset VAR
12928# ---------------
12929# Portably unset VAR.
12930as_fn_unset ()
12931{
12932  { eval $1=; unset $1;}
12933}
12934as_unset=as_fn_unset
12935# as_fn_append VAR VALUE
12936# ----------------------
12937# Append the text in VALUE to the end of the definition contained in VAR. Take
12938# advantage of any shell optimizations that allow amortized linear growth over
12939# repeated appends, instead of the typical quadratic growth present in naive
12940# implementations.
12941if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12942  eval 'as_fn_append ()
12943  {
12944    eval $1+=\$2
12945  }'
12946else
12947  as_fn_append ()
12948  {
12949    eval $1=\$$1\$2
12950  }
12951fi # as_fn_append
12952
12953# as_fn_arith ARG...
12954# ------------------
12955# Perform arithmetic evaluation on the ARGs, and store the result in the
12956# global $as_val. Take advantage of shells that can avoid forks. The arguments
12957# must be portable across $(()) and expr.
12958if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12959  eval 'as_fn_arith ()
12960  {
12961    as_val=$(( $* ))
12962  }'
12963else
12964  as_fn_arith ()
12965  {
12966    as_val=`expr "$@" || test $? -eq 1`
12967  }
12968fi # as_fn_arith
12969
12970
12971if expr a : '\(a\)' >/dev/null 2>&1 &&
12972   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12973  as_expr=expr
12974else
12975  as_expr=false
12976fi
12977
12978if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12979  as_basename=basename
12980else
12981  as_basename=false
12982fi
12983
12984if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12985  as_dirname=dirname
12986else
12987  as_dirname=false
12988fi
12989
12990as_me=`$as_basename -- "$0" ||
12991$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12992	 X"$0" : 'X\(//\)$' \| \
12993	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12994$as_echo X/"$0" |
12995    sed '/^.*\/\([^/][^/]*\)\/*$/{
12996	    s//\1/
12997	    q
12998	  }
12999	  /^X\/\(\/\/\)$/{
13000	    s//\1/
13001	    q
13002	  }
13003	  /^X\/\(\/\).*/{
13004	    s//\1/
13005	    q
13006	  }
13007	  s/.*/./; q'`
13008
13009# Avoid depending upon Character Ranges.
13010as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13012as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13013as_cr_digits='0123456789'
13014as_cr_alnum=$as_cr_Letters$as_cr_digits
13015
13016ECHO_C= ECHO_N= ECHO_T=
13017case `echo -n x` in #(((((
13018-n*)
13019  case `echo 'xy\c'` in
13020  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13021  xy)  ECHO_C='\c';;
13022  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13023       ECHO_T='	';;
13024  esac;;
13025*)
13026  ECHO_N='-n';;
13027esac
13028
13029rm -f conf$$ conf$$.exe conf$$.file
13030if test -d conf$$.dir; then
13031  rm -f conf$$.dir/conf$$.file
13032else
13033  rm -f conf$$.dir
13034  mkdir conf$$.dir 2>/dev/null
13035fi
13036if (echo >conf$$.file) 2>/dev/null; then
13037  if ln -s conf$$.file conf$$ 2>/dev/null; then
13038    as_ln_s='ln -s'
13039    # ... but there are two gotchas:
13040    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13041    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13042    # In both cases, we have to default to `cp -p'.
13043    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13044      as_ln_s='cp -p'
13045  elif ln conf$$.file conf$$ 2>/dev/null; then
13046    as_ln_s=ln
13047  else
13048    as_ln_s='cp -p'
13049  fi
13050else
13051  as_ln_s='cp -p'
13052fi
13053rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13054rmdir conf$$.dir 2>/dev/null
13055
13056
13057# as_fn_mkdir_p
13058# -------------
13059# Create "$as_dir" as a directory, including parents if necessary.
13060as_fn_mkdir_p ()
13061{
13062
13063  case $as_dir in #(
13064  -*) as_dir=./$as_dir;;
13065  esac
13066  test -d "$as_dir" || eval $as_mkdir_p || {
13067    as_dirs=
13068    while :; do
13069      case $as_dir in #(
13070      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13071      *) as_qdir=$as_dir;;
13072      esac
13073      as_dirs="'$as_qdir' $as_dirs"
13074      as_dir=`$as_dirname -- "$as_dir" ||
13075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13076	 X"$as_dir" : 'X\(//\)[^/]' \| \
13077	 X"$as_dir" : 'X\(//\)$' \| \
13078	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13079$as_echo X"$as_dir" |
13080    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13081	    s//\1/
13082	    q
13083	  }
13084	  /^X\(\/\/\)[^/].*/{
13085	    s//\1/
13086	    q
13087	  }
13088	  /^X\(\/\/\)$/{
13089	    s//\1/
13090	    q
13091	  }
13092	  /^X\(\/\).*/{
13093	    s//\1/
13094	    q
13095	  }
13096	  s/.*/./; q'`
13097      test -d "$as_dir" && break
13098    done
13099    test -z "$as_dirs" || eval "mkdir $as_dirs"
13100  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13101
13102
13103} # as_fn_mkdir_p
13104if mkdir -p . 2>/dev/null; then
13105  as_mkdir_p='mkdir -p "$as_dir"'
13106else
13107  test -d ./-p && rmdir ./-p
13108  as_mkdir_p=false
13109fi
13110
13111if test -x / >/dev/null 2>&1; then
13112  as_test_x='test -x'
13113else
13114  if ls -dL / >/dev/null 2>&1; then
13115    as_ls_L_option=L
13116  else
13117    as_ls_L_option=
13118  fi
13119  as_test_x='
13120    eval sh -c '\''
13121      if test -d "$1"; then
13122	test -d "$1/.";
13123      else
13124	case $1 in #(
13125	-*)set "./$1";;
13126	esac;
13127	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13128	???[sx]*):;;*)false;;esac;fi
13129    '\'' sh
13130  '
13131fi
13132as_executable_p=$as_test_x
13133
13134# Sed expression to map a string onto a valid CPP name.
13135as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13136
13137# Sed expression to map a string onto a valid variable name.
13138as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13139
13140
13141exec 6>&1
13142## ----------------------------------- ##
13143## Main body of $CONFIG_STATUS script. ##
13144## ----------------------------------- ##
13145_ASEOF
13146test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13147
13148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13149# Save the log message, to keep $0 and so on meaningful, and to
13150# report actual input values of CONFIG_FILES etc. instead of their
13151# values after options handling.
13152ac_log="
13153This file was extended by libnet $as_me 1.1.6, which was
13154generated by GNU Autoconf 2.68.  Invocation command line was
13155
13156  CONFIG_FILES    = $CONFIG_FILES
13157  CONFIG_HEADERS  = $CONFIG_HEADERS
13158  CONFIG_LINKS    = $CONFIG_LINKS
13159  CONFIG_COMMANDS = $CONFIG_COMMANDS
13160  $ $0 $@
13161
13162on `(hostname || uname -n) 2>/dev/null | sed 1q`
13163"
13164
13165_ACEOF
13166
13167case $ac_config_files in *"
13168"*) set x $ac_config_files; shift; ac_config_files=$*;;
13169esac
13170
13171case $ac_config_headers in *"
13172"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13173esac
13174
13175
13176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13177# Files that config.status was made for.
13178config_files="$ac_config_files"
13179config_headers="$ac_config_headers"
13180config_commands="$ac_config_commands"
13181
13182_ACEOF
13183
13184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13185ac_cs_usage="\
13186\`$as_me' instantiates files and other configuration actions
13187from templates according to the current configuration.  Unless the files
13188and actions are specified as TAGs, all are instantiated by default.
13189
13190Usage: $0 [OPTION]... [TAG]...
13191
13192  -h, --help       print this help, then exit
13193  -V, --version    print version number and configuration settings, then exit
13194      --config     print configuration, then exit
13195  -q, --quiet, --silent
13196                   do not print progress messages
13197  -d, --debug      don't remove temporary files
13198      --recheck    update $as_me by reconfiguring in the same conditions
13199      --file=FILE[:TEMPLATE]
13200                   instantiate the configuration file FILE
13201      --header=FILE[:TEMPLATE]
13202                   instantiate the configuration header FILE
13203
13204Configuration files:
13205$config_files
13206
13207Configuration headers:
13208$config_headers
13209
13210Configuration commands:
13211$config_commands
13212
13213Report bugs to the package provider."
13214
13215_ACEOF
13216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13217ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13218ac_cs_version="\\
13219libnet config.status 1.1.6
13220configured by $0, generated by GNU Autoconf 2.68,
13221  with options \\"\$ac_cs_config\\"
13222
13223Copyright (C) 2010 Free Software Foundation, Inc.
13224This config.status script is free software; the Free Software Foundation
13225gives unlimited permission to copy, distribute and modify it."
13226
13227ac_pwd='$ac_pwd'
13228srcdir='$srcdir'
13229INSTALL='$INSTALL'
13230MKDIR_P='$MKDIR_P'
13231AWK='$AWK'
13232test -n "\$AWK" || AWK=awk
13233_ACEOF
13234
13235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13236# The default lists apply if the user does not specify any file.
13237ac_need_defaults=:
13238while test $# != 0
13239do
13240  case $1 in
13241  --*=?*)
13242    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13243    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13244    ac_shift=:
13245    ;;
13246  --*=)
13247    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13248    ac_optarg=
13249    ac_shift=:
13250    ;;
13251  *)
13252    ac_option=$1
13253    ac_optarg=$2
13254    ac_shift=shift
13255    ;;
13256  esac
13257
13258  case $ac_option in
13259  # Handling of the options.
13260  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13261    ac_cs_recheck=: ;;
13262  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13263    $as_echo "$ac_cs_version"; exit ;;
13264  --config | --confi | --conf | --con | --co | --c )
13265    $as_echo "$ac_cs_config"; exit ;;
13266  --debug | --debu | --deb | --de | --d | -d )
13267    debug=: ;;
13268  --file | --fil | --fi | --f )
13269    $ac_shift
13270    case $ac_optarg in
13271    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13272    '') as_fn_error $? "missing file argument" ;;
13273    esac
13274    as_fn_append CONFIG_FILES " '$ac_optarg'"
13275    ac_need_defaults=false;;
13276  --header | --heade | --head | --hea )
13277    $ac_shift
13278    case $ac_optarg in
13279    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13280    esac
13281    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13282    ac_need_defaults=false;;
13283  --he | --h)
13284    # Conflict between --help and --header
13285    as_fn_error $? "ambiguous option: \`$1'
13286Try \`$0 --help' for more information.";;
13287  --help | --hel | -h )
13288    $as_echo "$ac_cs_usage"; exit ;;
13289  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13290  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13291    ac_cs_silent=: ;;
13292
13293  # This is an error.
13294  -*) as_fn_error $? "unrecognized option: \`$1'
13295Try \`$0 --help' for more information." ;;
13296
13297  *) as_fn_append ac_config_targets " $1"
13298     ac_need_defaults=false ;;
13299
13300  esac
13301  shift
13302done
13303
13304ac_configure_extra_args=
13305
13306if $ac_cs_silent; then
13307  exec 6>/dev/null
13308  ac_configure_extra_args="$ac_configure_extra_args --silent"
13309fi
13310
13311_ACEOF
13312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13313if \$ac_cs_recheck; then
13314  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13315  shift
13316  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13317  CONFIG_SHELL='$SHELL'
13318  export CONFIG_SHELL
13319  exec "\$@"
13320fi
13321
13322_ACEOF
13323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13324exec 5>>config.log
13325{
13326  echo
13327  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13328## Running $as_me. ##
13329_ASBOX
13330  $as_echo "$ac_log"
13331} >&5
13332
13333_ACEOF
13334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13335#
13336# INIT-COMMANDS
13337#
13338AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13339
13340
13341# The HP-UX ksh and POSIX shell print the target directory to stdout
13342# if CDPATH is set.
13343(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13344
13345sed_quote_subst='$sed_quote_subst'
13346double_quote_subst='$double_quote_subst'
13347delay_variable_subst='$delay_variable_subst'
13348macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13349macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13350enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13351enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13352pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13353enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13354SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13355ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13356host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13357host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13358host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13359build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13360build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13361build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13362SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13363Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13364GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13365EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13366FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13367LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13368NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13369LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13370max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13371ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13372exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13373lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13374lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13375lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13376lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13377lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13378reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13379reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13380OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13381deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13382file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13383file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13384want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13385DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13386sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13387AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13388AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13389archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13390STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13391RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13392old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13393old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13394old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13395lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13396CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13397CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13398compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13399GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13400lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13401lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13402lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13403lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13404nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13405lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13406objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13407MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13408lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13409lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13410lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13411lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13412lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13413need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13414MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13415DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13416NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13417LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13418OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13419OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13420libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13421shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13422extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13423archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13424enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13425export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13426whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13427compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13428old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13429old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13430archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13431archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13432module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13433module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13434with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13435allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13436no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13437hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13438hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13439hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13440hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13441hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13442hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13443hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13444hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13445inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13446link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13447always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13448export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13449exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13450include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13451prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13452postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13453file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13454variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13455need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13456need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13457version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13458runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13459shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13460shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13461libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13462library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13463soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13464install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13465postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13466postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13467finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13468finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13469hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13470sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13471sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13472hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13473enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13474enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13475enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13476old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13477striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13478
13479LTCC='$LTCC'
13480LTCFLAGS='$LTCFLAGS'
13481compiler='$compiler_DEFAULT'
13482
13483# A function that is used when there is no print builtin or printf.
13484func_fallback_echo ()
13485{
13486  eval 'cat <<_LTECHO_EOF
13487\$1
13488_LTECHO_EOF'
13489}
13490
13491# Quote evaled strings.
13492for var in SHELL \
13493ECHO \
13494SED \
13495GREP \
13496EGREP \
13497FGREP \
13498LD \
13499NM \
13500LN_S \
13501lt_SP2NL \
13502lt_NL2SP \
13503reload_flag \
13504OBJDUMP \
13505deplibs_check_method \
13506file_magic_cmd \
13507file_magic_glob \
13508want_nocaseglob \
13509DLLTOOL \
13510sharedlib_from_linklib_cmd \
13511AR \
13512AR_FLAGS \
13513archiver_list_spec \
13514STRIP \
13515RANLIB \
13516CC \
13517CFLAGS \
13518compiler \
13519lt_cv_sys_global_symbol_pipe \
13520lt_cv_sys_global_symbol_to_cdecl \
13521lt_cv_sys_global_symbol_to_c_name_address \
13522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13523nm_file_list_spec \
13524lt_prog_compiler_no_builtin_flag \
13525lt_prog_compiler_pic \
13526lt_prog_compiler_wl \
13527lt_prog_compiler_static \
13528lt_cv_prog_compiler_c_o \
13529need_locks \
13530MANIFEST_TOOL \
13531DSYMUTIL \
13532NMEDIT \
13533LIPO \
13534OTOOL \
13535OTOOL64 \
13536shrext_cmds \
13537export_dynamic_flag_spec \
13538whole_archive_flag_spec \
13539compiler_needs_object \
13540with_gnu_ld \
13541allow_undefined_flag \
13542no_undefined_flag \
13543hardcode_libdir_flag_spec \
13544hardcode_libdir_flag_spec_ld \
13545hardcode_libdir_separator \
13546exclude_expsyms \
13547include_expsyms \
13548file_list_spec \
13549variables_saved_for_relink \
13550libname_spec \
13551library_names_spec \
13552soname_spec \
13553install_override_mode \
13554finish_eval \
13555old_striplib \
13556striplib; do
13557    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13558    *[\\\\\\\`\\"\\\$]*)
13559      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13560      ;;
13561    *)
13562      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13563      ;;
13564    esac
13565done
13566
13567# Double-quote double-evaled strings.
13568for var in reload_cmds \
13569old_postinstall_cmds \
13570old_postuninstall_cmds \
13571old_archive_cmds \
13572extract_expsyms_cmds \
13573old_archive_from_new_cmds \
13574old_archive_from_expsyms_cmds \
13575archive_cmds \
13576archive_expsym_cmds \
13577module_cmds \
13578module_expsym_cmds \
13579export_symbols_cmds \
13580prelink_cmds \
13581postlink_cmds \
13582postinstall_cmds \
13583postuninstall_cmds \
13584finish_cmds \
13585sys_lib_search_path_spec \
13586sys_lib_dlsearch_path_spec; do
13587    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13588    *[\\\\\\\`\\"\\\$]*)
13589      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13590      ;;
13591    *)
13592      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13593      ;;
13594    esac
13595done
13596
13597ac_aux_dir='$ac_aux_dir'
13598xsi_shell='$xsi_shell'
13599lt_shell_append='$lt_shell_append'
13600
13601# See if we are running on zsh, and set the options which allow our
13602# commands through without removal of \ escapes INIT.
13603if test -n "\${ZSH_VERSION+set}" ; then
13604   setopt NO_GLOB_SUBST
13605fi
13606
13607
13608    PACKAGE='$PACKAGE'
13609    VERSION='$VERSION'
13610    TIMESTAMP='$TIMESTAMP'
13611    RM='$RM'
13612    ofile='$ofile'
13613
13614
13615
13616
13617_ACEOF
13618
13619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13620
13621# Handling of arguments.
13622for ac_config_target in $ac_config_targets
13623do
13624  case $ac_config_target in
13625    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13626    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13627    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13628    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13629    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13630    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
13631    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13632    "include/libnet/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
13633    "include/win32/Makefile") CONFIG_FILES="$CONFIG_FILES include/win32/Makefile" ;;
13634    "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
13635    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13636    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13637    "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile" ;;
13638    "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
13639    "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
13640    "include/libnet.h") CONFIG_FILES="$CONFIG_FILES include/libnet.h" ;;
13641    "libnet-config") CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
13642
13643  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13644  esac
13645done
13646
13647
13648# If the user did not use the arguments to specify the items to instantiate,
13649# then the envvar interface is used.  Set only those that are not.
13650# We use the long form for the default assignment because of an extremely
13651# bizarre bug on SunOS 4.1.3.
13652if $ac_need_defaults; then
13653  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13654  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13655  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13656fi
13657
13658# Have a temporary directory for convenience.  Make it in the build tree
13659# simply because there is no reason against having it here, and in addition,
13660# creating and moving files from /tmp can sometimes cause problems.
13661# Hook for its removal unless debugging.
13662# Note that there is a small window in which the directory will not be cleaned:
13663# after its creation but before its name has been assigned to `$tmp'.
13664$debug ||
13665{
13666  tmp= ac_tmp=
13667  trap 'exit_status=$?
13668  : "${ac_tmp:=$tmp}"
13669  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13670' 0
13671  trap 'as_fn_exit 1' 1 2 13 15
13672}
13673# Create a (secure) tmp directory for tmp files.
13674
13675{
13676  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13677  test -d "$tmp"
13678}  ||
13679{
13680  tmp=./conf$$-$RANDOM
13681  (umask 077 && mkdir "$tmp")
13682} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13683ac_tmp=$tmp
13684
13685# Set up the scripts for CONFIG_FILES section.
13686# No need to generate them if there are no CONFIG_FILES.
13687# This happens for instance with `./config.status config.h'.
13688if test -n "$CONFIG_FILES"; then
13689
13690
13691ac_cr=`echo X | tr X '\015'`
13692# On cygwin, bash can eat \r inside `` if the user requested igncr.
13693# But we know of no other shell where ac_cr would be empty at this
13694# point, so we can use a bashism as a fallback.
13695if test "x$ac_cr" = x; then
13696  eval ac_cr=\$\'\\r\'
13697fi
13698ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13699if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13700  ac_cs_awk_cr='\\r'
13701else
13702  ac_cs_awk_cr=$ac_cr
13703fi
13704
13705echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13706_ACEOF
13707
13708
13709{
13710  echo "cat >conf$$subs.awk <<_ACEOF" &&
13711  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13712  echo "_ACEOF"
13713} >conf$$subs.sh ||
13714  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13715ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13716ac_delim='%!_!# '
13717for ac_last_try in false false false false false :; do
13718  . ./conf$$subs.sh ||
13719    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13720
13721  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13722  if test $ac_delim_n = $ac_delim_num; then
13723    break
13724  elif $ac_last_try; then
13725    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13726  else
13727    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13728  fi
13729done
13730rm -f conf$$subs.sh
13731
13732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13733cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13734_ACEOF
13735sed -n '
13736h
13737s/^/S["/; s/!.*/"]=/
13738p
13739g
13740s/^[^!]*!//
13741:repl
13742t repl
13743s/'"$ac_delim"'$//
13744t delim
13745:nl
13746h
13747s/\(.\{148\}\)..*/\1/
13748t more1
13749s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13750p
13751n
13752b repl
13753:more1
13754s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13755p
13756g
13757s/.\{148\}//
13758t nl
13759:delim
13760h
13761s/\(.\{148\}\)..*/\1/
13762t more2
13763s/["\\]/\\&/g; s/^/"/; s/$/"/
13764p
13765b
13766:more2
13767s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13768p
13769g
13770s/.\{148\}//
13771t delim
13772' <conf$$subs.awk | sed '
13773/^[^""]/{
13774  N
13775  s/\n//
13776}
13777' >>$CONFIG_STATUS || ac_write_fail=1
13778rm -f conf$$subs.awk
13779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780_ACAWK
13781cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13782  for (key in S) S_is_set[key] = 1
13783  FS = ""
13784
13785}
13786{
13787  line = $ 0
13788  nfields = split(line, field, "@")
13789  substed = 0
13790  len = length(field[1])
13791  for (i = 2; i < nfields; i++) {
13792    key = field[i]
13793    keylen = length(key)
13794    if (S_is_set[key]) {
13795      value = S[key]
13796      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13797      len += length(value) + length(field[++i])
13798      substed = 1
13799    } else
13800      len += 1 + keylen
13801  }
13802
13803  print line
13804}
13805
13806_ACAWK
13807_ACEOF
13808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13809if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13810  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13811else
13812  cat
13813fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13814  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13815_ACEOF
13816
13817# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13818# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13819# trailing colons and then remove the whole line if VPATH becomes empty
13820# (actually we leave an empty line to preserve line numbers).
13821if test "x$srcdir" = x.; then
13822  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13823h
13824s///
13825s/^/:/
13826s/[	 ]*$/:/
13827s/:\$(srcdir):/:/g
13828s/:\${srcdir}:/:/g
13829s/:@srcdir@:/:/g
13830s/^:*//
13831s/:*$//
13832x
13833s/\(=[	 ]*\).*/\1/
13834G
13835s/\n//
13836s/^[^=]*=[	 ]*$//
13837}'
13838fi
13839
13840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13841fi # test -n "$CONFIG_FILES"
13842
13843# Set up the scripts for CONFIG_HEADERS section.
13844# No need to generate them if there are no CONFIG_HEADERS.
13845# This happens for instance with `./config.status Makefile'.
13846if test -n "$CONFIG_HEADERS"; then
13847cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13848BEGIN {
13849_ACEOF
13850
13851# Transform confdefs.h into an awk script `defines.awk', embedded as
13852# here-document in config.status, that substitutes the proper values into
13853# config.h.in to produce config.h.
13854
13855# Create a delimiter string that does not exist in confdefs.h, to ease
13856# handling of long lines.
13857ac_delim='%!_!# '
13858for ac_last_try in false false :; do
13859  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13860  if test -z "$ac_tt"; then
13861    break
13862  elif $ac_last_try; then
13863    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13864  else
13865    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13866  fi
13867done
13868
13869# For the awk script, D is an array of macro values keyed by name,
13870# likewise P contains macro parameters if any.  Preserve backslash
13871# newline sequences.
13872
13873ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13874sed -n '
13875s/.\{148\}/&'"$ac_delim"'/g
13876t rset
13877:rset
13878s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13879t def
13880d
13881:def
13882s/\\$//
13883t bsnl
13884s/["\\]/\\&/g
13885s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13886D["\1"]=" \3"/p
13887s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13888d
13889:bsnl
13890s/["\\]/\\&/g
13891s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13892D["\1"]=" \3\\\\\\n"\\/p
13893t cont
13894s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13895t cont
13896d
13897:cont
13898n
13899s/.\{148\}/&'"$ac_delim"'/g
13900t clear
13901:clear
13902s/\\$//
13903t bsnlc
13904s/["\\]/\\&/g; s/^/"/; s/$/"/p
13905d
13906:bsnlc
13907s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13908b cont
13909' <confdefs.h | sed '
13910s/'"$ac_delim"'/"\\\
13911"/g' >>$CONFIG_STATUS || ac_write_fail=1
13912
13913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13914  for (key in D) D_is_set[key] = 1
13915  FS = ""
13916}
13917/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13918  line = \$ 0
13919  split(line, arg, " ")
13920  if (arg[1] == "#") {
13921    defundef = arg[2]
13922    mac1 = arg[3]
13923  } else {
13924    defundef = substr(arg[1], 2)
13925    mac1 = arg[2]
13926  }
13927  split(mac1, mac2, "(") #)
13928  macro = mac2[1]
13929  prefix = substr(line, 1, index(line, defundef) - 1)
13930  if (D_is_set[macro]) {
13931    # Preserve the white space surrounding the "#".
13932    print prefix "define", macro P[macro] D[macro]
13933    next
13934  } else {
13935    # Replace #undef with comments.  This is necessary, for example,
13936    # in the case of _POSIX_SOURCE, which is predefined and required
13937    # on some systems where configure will not decide to define it.
13938    if (defundef == "undef") {
13939      print "/*", prefix defundef, macro, "*/"
13940      next
13941    }
13942  }
13943}
13944{ print }
13945_ACAWK
13946_ACEOF
13947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13948  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13949fi # test -n "$CONFIG_HEADERS"
13950
13951
13952eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13953shift
13954for ac_tag
13955do
13956  case $ac_tag in
13957  :[FHLC]) ac_mode=$ac_tag; continue;;
13958  esac
13959  case $ac_mode$ac_tag in
13960  :[FHL]*:*);;
13961  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13962  :[FH]-) ac_tag=-:-;;
13963  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13964  esac
13965  ac_save_IFS=$IFS
13966  IFS=:
13967  set x $ac_tag
13968  IFS=$ac_save_IFS
13969  shift
13970  ac_file=$1
13971  shift
13972
13973  case $ac_mode in
13974  :L) ac_source=$1;;
13975  :[FH])
13976    ac_file_inputs=
13977    for ac_f
13978    do
13979      case $ac_f in
13980      -) ac_f="$ac_tmp/stdin";;
13981      *) # Look for the file first in the build tree, then in the source tree
13982	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13983	 # because $ac_f cannot contain `:'.
13984	 test -f "$ac_f" ||
13985	   case $ac_f in
13986	   [\\/$]*) false;;
13987	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13988	   esac ||
13989	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13990      esac
13991      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13992      as_fn_append ac_file_inputs " '$ac_f'"
13993    done
13994
13995    # Let's still pretend it is `configure' which instantiates (i.e., don't
13996    # use $as_me), people would be surprised to read:
13997    #    /* config.h.  Generated by config.status.  */
13998    configure_input='Generated from '`
13999	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14000	`' by configure.'
14001    if test x"$ac_file" != x-; then
14002      configure_input="$ac_file.  $configure_input"
14003      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14004$as_echo "$as_me: creating $ac_file" >&6;}
14005    fi
14006    # Neutralize special characters interpreted by sed in replacement strings.
14007    case $configure_input in #(
14008    *\&* | *\|* | *\\* )
14009       ac_sed_conf_input=`$as_echo "$configure_input" |
14010       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14011    *) ac_sed_conf_input=$configure_input;;
14012    esac
14013
14014    case $ac_tag in
14015    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14016      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14017    esac
14018    ;;
14019  esac
14020
14021  ac_dir=`$as_dirname -- "$ac_file" ||
14022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14023	 X"$ac_file" : 'X\(//\)[^/]' \| \
14024	 X"$ac_file" : 'X\(//\)$' \| \
14025	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14026$as_echo X"$ac_file" |
14027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14028	    s//\1/
14029	    q
14030	  }
14031	  /^X\(\/\/\)[^/].*/{
14032	    s//\1/
14033	    q
14034	  }
14035	  /^X\(\/\/\)$/{
14036	    s//\1/
14037	    q
14038	  }
14039	  /^X\(\/\).*/{
14040	    s//\1/
14041	    q
14042	  }
14043	  s/.*/./; q'`
14044  as_dir="$ac_dir"; as_fn_mkdir_p
14045  ac_builddir=.
14046
14047case "$ac_dir" in
14048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14049*)
14050  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14051  # A ".." for each directory in $ac_dir_suffix.
14052  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14053  case $ac_top_builddir_sub in
14054  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14055  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14056  esac ;;
14057esac
14058ac_abs_top_builddir=$ac_pwd
14059ac_abs_builddir=$ac_pwd$ac_dir_suffix
14060# for backward compatibility:
14061ac_top_builddir=$ac_top_build_prefix
14062
14063case $srcdir in
14064  .)  # We are building in place.
14065    ac_srcdir=.
14066    ac_top_srcdir=$ac_top_builddir_sub
14067    ac_abs_top_srcdir=$ac_pwd ;;
14068  [\\/]* | ?:[\\/]* )  # Absolute name.
14069    ac_srcdir=$srcdir$ac_dir_suffix;
14070    ac_top_srcdir=$srcdir
14071    ac_abs_top_srcdir=$srcdir ;;
14072  *) # Relative name.
14073    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14074    ac_top_srcdir=$ac_top_build_prefix$srcdir
14075    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14076esac
14077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14078
14079
14080  case $ac_mode in
14081  :F)
14082  #
14083  # CONFIG_FILE
14084  #
14085
14086  case $INSTALL in
14087  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14088  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14089  esac
14090  ac_MKDIR_P=$MKDIR_P
14091  case $MKDIR_P in
14092  [\\/$]* | ?:[\\/]* ) ;;
14093  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14094  esac
14095_ACEOF
14096
14097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14098# If the template does not know about datarootdir, expand it.
14099# FIXME: This hack should be removed a few years after 2.60.
14100ac_datarootdir_hack=; ac_datarootdir_seen=
14101ac_sed_dataroot='
14102/datarootdir/ {
14103  p
14104  q
14105}
14106/@datadir@/p
14107/@docdir@/p
14108/@infodir@/p
14109/@localedir@/p
14110/@mandir@/p'
14111case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14112*datarootdir*) ac_datarootdir_seen=yes;;
14113*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14114  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14115$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14116_ACEOF
14117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14118  ac_datarootdir_hack='
14119  s&@datadir@&$datadir&g
14120  s&@docdir@&$docdir&g
14121  s&@infodir@&$infodir&g
14122  s&@localedir@&$localedir&g
14123  s&@mandir@&$mandir&g
14124  s&\\\${datarootdir}&$datarootdir&g' ;;
14125esac
14126_ACEOF
14127
14128# Neutralize VPATH when `$srcdir' = `.'.
14129# Shell code in configure.ac might set extrasub.
14130# FIXME: do we really want to maintain this feature?
14131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14132ac_sed_extra="$ac_vpsub
14133$extrasub
14134_ACEOF
14135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136:t
14137/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14138s|@configure_input@|$ac_sed_conf_input|;t t
14139s&@top_builddir@&$ac_top_builddir_sub&;t t
14140s&@top_build_prefix@&$ac_top_build_prefix&;t t
14141s&@srcdir@&$ac_srcdir&;t t
14142s&@abs_srcdir@&$ac_abs_srcdir&;t t
14143s&@top_srcdir@&$ac_top_srcdir&;t t
14144s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14145s&@builddir@&$ac_builddir&;t t
14146s&@abs_builddir@&$ac_abs_builddir&;t t
14147s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14148s&@INSTALL@&$ac_INSTALL&;t t
14149s&@MKDIR_P@&$ac_MKDIR_P&;t t
14150$ac_datarootdir_hack
14151"
14152eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14153  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14154
14155test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14156  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14157  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14158      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14159  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14160which seems to be undefined.  Please make sure it is defined" >&5
14161$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14162which seems to be undefined.  Please make sure it is defined" >&2;}
14163
14164  rm -f "$ac_tmp/stdin"
14165  case $ac_file in
14166  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14167  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14168  esac \
14169  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14170 ;;
14171  :H)
14172  #
14173  # CONFIG_HEADER
14174  #
14175  if test x"$ac_file" != x-; then
14176    {
14177      $as_echo "/* $configure_input  */" \
14178      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14179    } >"$ac_tmp/config.h" \
14180      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14181    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14182      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14183$as_echo "$as_me: $ac_file is unchanged" >&6;}
14184    else
14185      rm -f "$ac_file"
14186      mv "$ac_tmp/config.h" "$ac_file" \
14187	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14188    fi
14189  else
14190    $as_echo "/* $configure_input  */" \
14191      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14192      || as_fn_error $? "could not create -" "$LINENO" 5
14193  fi
14194# Compute "$ac_file"'s index in $config_headers.
14195_am_arg="$ac_file"
14196_am_stamp_count=1
14197for _am_header in $config_headers :; do
14198  case $_am_header in
14199    $_am_arg | $_am_arg:* )
14200      break ;;
14201    * )
14202      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14203  esac
14204done
14205echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14206$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14207	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14208	 X"$_am_arg" : 'X\(//\)$' \| \
14209	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14210$as_echo X"$_am_arg" |
14211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14212	    s//\1/
14213	    q
14214	  }
14215	  /^X\(\/\/\)[^/].*/{
14216	    s//\1/
14217	    q
14218	  }
14219	  /^X\(\/\/\)$/{
14220	    s//\1/
14221	    q
14222	  }
14223	  /^X\(\/\).*/{
14224	    s//\1/
14225	    q
14226	  }
14227	  s/.*/./; q'`/stamp-h$_am_stamp_count
14228 ;;
14229
14230  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14231$as_echo "$as_me: executing $ac_file commands" >&6;}
14232 ;;
14233  esac
14234
14235
14236  case $ac_file$ac_mode in
14237    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14238  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14239  # are listed without --file.  Let's play safe and only enable the eval
14240  # if we detect the quoting.
14241  case $CONFIG_FILES in
14242  *\'*) eval set x "$CONFIG_FILES" ;;
14243  *)   set x $CONFIG_FILES ;;
14244  esac
14245  shift
14246  for mf
14247  do
14248    # Strip MF so we end up with the name of the file.
14249    mf=`echo "$mf" | sed -e 's/:.*$//'`
14250    # Check whether this is an Automake generated Makefile or not.
14251    # We used to match only the files named `Makefile.in', but
14252    # some people rename them; so instead we look at the file content.
14253    # Grep'ing the first line is not enough: some people post-process
14254    # each Makefile.in and add a new line on top of each file to say so.
14255    # Grep'ing the whole file is not good either: AIX grep has a line
14256    # limit of 2048, but all sed's we know have understand at least 4000.
14257    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14258      dirpart=`$as_dirname -- "$mf" ||
14259$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14260	 X"$mf" : 'X\(//\)[^/]' \| \
14261	 X"$mf" : 'X\(//\)$' \| \
14262	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14263$as_echo X"$mf" |
14264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14265	    s//\1/
14266	    q
14267	  }
14268	  /^X\(\/\/\)[^/].*/{
14269	    s//\1/
14270	    q
14271	  }
14272	  /^X\(\/\/\)$/{
14273	    s//\1/
14274	    q
14275	  }
14276	  /^X\(\/\).*/{
14277	    s//\1/
14278	    q
14279	  }
14280	  s/.*/./; q'`
14281    else
14282      continue
14283    fi
14284    # Extract the definition of DEPDIR, am__include, and am__quote
14285    # from the Makefile without running `make'.
14286    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14287    test -z "$DEPDIR" && continue
14288    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14289    test -z "am__include" && continue
14290    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14291    # When using ansi2knr, U may be empty or an underscore; expand it
14292    U=`sed -n 's/^U = //p' < "$mf"`
14293    # Find all dependency output files, they are included files with
14294    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14295    # simplest approach to changing $(DEPDIR) to its actual value in the
14296    # expansion.
14297    for file in `sed -n "
14298      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14299	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14300      # Make sure the directory exists.
14301      test -f "$dirpart/$file" && continue
14302      fdir=`$as_dirname -- "$file" ||
14303$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14304	 X"$file" : 'X\(//\)[^/]' \| \
14305	 X"$file" : 'X\(//\)$' \| \
14306	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14307$as_echo X"$file" |
14308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14309	    s//\1/
14310	    q
14311	  }
14312	  /^X\(\/\/\)[^/].*/{
14313	    s//\1/
14314	    q
14315	  }
14316	  /^X\(\/\/\)$/{
14317	    s//\1/
14318	    q
14319	  }
14320	  /^X\(\/\).*/{
14321	    s//\1/
14322	    q
14323	  }
14324	  s/.*/./; q'`
14325      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14326      # echo "creating $dirpart/$file"
14327      echo '# dummy' > "$dirpart/$file"
14328    done
14329  done
14330}
14331 ;;
14332    "libtool":C)
14333
14334    # See if we are running on zsh, and set the options which allow our
14335    # commands through without removal of \ escapes.
14336    if test -n "${ZSH_VERSION+set}" ; then
14337      setopt NO_GLOB_SUBST
14338    fi
14339
14340    cfgfile="${ofile}T"
14341    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14342    $RM "$cfgfile"
14343
14344    cat <<_LT_EOF >> "$cfgfile"
14345#! $SHELL
14346
14347# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14348# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14349# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14350# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14351#
14352#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14353#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14354#                 Inc.
14355#   Written by Gordon Matzigkeit, 1996
14356#
14357#   This file is part of GNU Libtool.
14358#
14359# GNU Libtool is free software; you can redistribute it and/or
14360# modify it under the terms of the GNU General Public License as
14361# published by the Free Software Foundation; either version 2 of
14362# the License, or (at your option) any later version.
14363#
14364# As a special exception to the GNU General Public License,
14365# if you distribute this file as part of a program or library that
14366# is built using GNU Libtool, you may include this file under the
14367# same distribution terms that you use for the rest of that program.
14368#
14369# GNU Libtool is distributed in the hope that it will be useful,
14370# but WITHOUT ANY WARRANTY; without even the implied warranty of
14371# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14372# GNU General Public License for more details.
14373#
14374# You should have received a copy of the GNU General Public License
14375# along with GNU Libtool; see the file COPYING.  If not, a copy
14376# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14377# obtained by writing to the Free Software Foundation, Inc.,
14378# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14379
14380
14381# The names of the tagged configurations supported by this script.
14382available_tags=""
14383
14384# ### BEGIN LIBTOOL CONFIG
14385
14386# Which release of libtool.m4 was used?
14387macro_version=$macro_version
14388macro_revision=$macro_revision
14389
14390# Whether or not to build shared libraries.
14391build_libtool_libs=$enable_shared
14392
14393# Whether or not to build static libraries.
14394build_old_libs=$enable_static
14395
14396# What type of objects to build.
14397pic_mode=$pic_mode
14398
14399# Whether or not to optimize for fast installation.
14400fast_install=$enable_fast_install
14401
14402# Shell to use when invoking shell scripts.
14403SHELL=$lt_SHELL
14404
14405# An echo program that protects backslashes.
14406ECHO=$lt_ECHO
14407
14408# The host system.
14409host_alias=$host_alias
14410host=$host
14411host_os=$host_os
14412
14413# The build system.
14414build_alias=$build_alias
14415build=$build
14416build_os=$build_os
14417
14418# A sed program that does not truncate output.
14419SED=$lt_SED
14420
14421# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14422Xsed="\$SED -e 1s/^X//"
14423
14424# A grep program that handles long lines.
14425GREP=$lt_GREP
14426
14427# An ERE matcher.
14428EGREP=$lt_EGREP
14429
14430# A literal string matcher.
14431FGREP=$lt_FGREP
14432
14433# A BSD- or MS-compatible name lister.
14434NM=$lt_NM
14435
14436# Whether we need soft or hard links.
14437LN_S=$lt_LN_S
14438
14439# What is the maximum length of a command?
14440max_cmd_len=$max_cmd_len
14441
14442# Object file suffix (normally "o").
14443objext=$ac_objext
14444
14445# Executable file suffix (normally "").
14446exeext=$exeext
14447
14448# whether the shell understands "unset".
14449lt_unset=$lt_unset
14450
14451# turn spaces into newlines.
14452SP2NL=$lt_lt_SP2NL
14453
14454# turn newlines into spaces.
14455NL2SP=$lt_lt_NL2SP
14456
14457# convert \$build file names to \$host format.
14458to_host_file_cmd=$lt_cv_to_host_file_cmd
14459
14460# convert \$build files to toolchain format.
14461to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14462
14463# An object symbol dumper.
14464OBJDUMP=$lt_OBJDUMP
14465
14466# Method to check whether dependent libraries are shared objects.
14467deplibs_check_method=$lt_deplibs_check_method
14468
14469# Command to use when deplibs_check_method = "file_magic".
14470file_magic_cmd=$lt_file_magic_cmd
14471
14472# How to find potential files when deplibs_check_method = "file_magic".
14473file_magic_glob=$lt_file_magic_glob
14474
14475# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14476want_nocaseglob=$lt_want_nocaseglob
14477
14478# DLL creation program.
14479DLLTOOL=$lt_DLLTOOL
14480
14481# Command to associate shared and link libraries.
14482sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14483
14484# The archiver.
14485AR=$lt_AR
14486
14487# Flags to create an archive.
14488AR_FLAGS=$lt_AR_FLAGS
14489
14490# How to feed a file listing to the archiver.
14491archiver_list_spec=$lt_archiver_list_spec
14492
14493# A symbol stripping program.
14494STRIP=$lt_STRIP
14495
14496# Commands used to install an old-style archive.
14497RANLIB=$lt_RANLIB
14498old_postinstall_cmds=$lt_old_postinstall_cmds
14499old_postuninstall_cmds=$lt_old_postuninstall_cmds
14500
14501# Whether to use a lock for old archive extraction.
14502lock_old_archive_extraction=$lock_old_archive_extraction
14503
14504# A C compiler.
14505LTCC=$lt_CC
14506
14507# LTCC compiler flags.
14508LTCFLAGS=$lt_CFLAGS
14509
14510# Take the output of nm and produce a listing of raw symbols and C names.
14511global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14512
14513# Transform the output of nm in a proper C declaration.
14514global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14515
14516# Transform the output of nm in a C name address pair.
14517global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14518
14519# Transform the output of nm in a C name address pair when lib prefix is needed.
14520global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14521
14522# Specify filename containing input files for \$NM.
14523nm_file_list_spec=$lt_nm_file_list_spec
14524
14525# The root where to search for dependent libraries,and in which our libraries should be installed.
14526lt_sysroot=$lt_sysroot
14527
14528# The name of the directory that contains temporary libtool files.
14529objdir=$objdir
14530
14531# Used to examine libraries when file_magic_cmd begins with "file".
14532MAGIC_CMD=$MAGIC_CMD
14533
14534# Must we lock files when doing compilation?
14535need_locks=$lt_need_locks
14536
14537# Manifest tool.
14538MANIFEST_TOOL=$lt_MANIFEST_TOOL
14539
14540# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14541DSYMUTIL=$lt_DSYMUTIL
14542
14543# Tool to change global to local symbols on Mac OS X.
14544NMEDIT=$lt_NMEDIT
14545
14546# Tool to manipulate fat objects and archives on Mac OS X.
14547LIPO=$lt_LIPO
14548
14549# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14550OTOOL=$lt_OTOOL
14551
14552# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14553OTOOL64=$lt_OTOOL64
14554
14555# Old archive suffix (normally "a").
14556libext=$libext
14557
14558# Shared library suffix (normally ".so").
14559shrext_cmds=$lt_shrext_cmds
14560
14561# The commands to extract the exported symbol list from a shared archive.
14562extract_expsyms_cmds=$lt_extract_expsyms_cmds
14563
14564# Variables whose values should be saved in libtool wrapper scripts and
14565# restored at link time.
14566variables_saved_for_relink=$lt_variables_saved_for_relink
14567
14568# Do we need the "lib" prefix for modules?
14569need_lib_prefix=$need_lib_prefix
14570
14571# Do we need a version for libraries?
14572need_version=$need_version
14573
14574# Library versioning type.
14575version_type=$version_type
14576
14577# Shared library runtime path variable.
14578runpath_var=$runpath_var
14579
14580# Shared library path variable.
14581shlibpath_var=$shlibpath_var
14582
14583# Is shlibpath searched before the hard-coded library search path?
14584shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14585
14586# Format of library name prefix.
14587libname_spec=$lt_libname_spec
14588
14589# List of archive names.  First name is the real one, the rest are links.
14590# The last name is the one that the linker finds with -lNAME
14591library_names_spec=$lt_library_names_spec
14592
14593# The coded name of the library, if different from the real name.
14594soname_spec=$lt_soname_spec
14595
14596# Permission mode override for installation of shared libraries.
14597install_override_mode=$lt_install_override_mode
14598
14599# Command to use after installation of a shared archive.
14600postinstall_cmds=$lt_postinstall_cmds
14601
14602# Command to use after uninstallation of a shared archive.
14603postuninstall_cmds=$lt_postuninstall_cmds
14604
14605# Commands used to finish a libtool library installation in a directory.
14606finish_cmds=$lt_finish_cmds
14607
14608# As "finish_cmds", except a single script fragment to be evaled but
14609# not shown.
14610finish_eval=$lt_finish_eval
14611
14612# Whether we should hardcode library paths into libraries.
14613hardcode_into_libs=$hardcode_into_libs
14614
14615# Compile-time system search path for libraries.
14616sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14617
14618# Run-time system search path for libraries.
14619sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14620
14621# Whether dlopen is supported.
14622dlopen_support=$enable_dlopen
14623
14624# Whether dlopen of programs is supported.
14625dlopen_self=$enable_dlopen_self
14626
14627# Whether dlopen of statically linked programs is supported.
14628dlopen_self_static=$enable_dlopen_self_static
14629
14630# Commands to strip libraries.
14631old_striplib=$lt_old_striplib
14632striplib=$lt_striplib
14633
14634
14635# The linker used to build libraries.
14636LD=$lt_LD
14637
14638# How to create reloadable object files.
14639reload_flag=$lt_reload_flag
14640reload_cmds=$lt_reload_cmds
14641
14642# Commands used to build an old-style archive.
14643old_archive_cmds=$lt_old_archive_cmds
14644
14645# A language specific compiler.
14646CC=$lt_compiler
14647
14648# Is the compiler the GNU compiler?
14649with_gcc=$GCC
14650
14651# Compiler flag to turn off builtin functions.
14652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14653
14654# Additional compiler flags for building library objects.
14655pic_flag=$lt_lt_prog_compiler_pic
14656
14657# How to pass a linker flag through the compiler.
14658wl=$lt_lt_prog_compiler_wl
14659
14660# Compiler flag to prevent dynamic linking.
14661link_static_flag=$lt_lt_prog_compiler_static
14662
14663# Does compiler simultaneously support -c and -o options?
14664compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14665
14666# Whether or not to add -lc for building shared libraries.
14667build_libtool_need_lc=$archive_cmds_need_lc
14668
14669# Whether or not to disallow shared libs when runtime libs are static.
14670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14671
14672# Compiler flag to allow reflexive dlopens.
14673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14674
14675# Compiler flag to generate shared objects directly from archives.
14676whole_archive_flag_spec=$lt_whole_archive_flag_spec
14677
14678# Whether the compiler copes with passing no objects directly.
14679compiler_needs_object=$lt_compiler_needs_object
14680
14681# Create an old-style archive from a shared archive.
14682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14683
14684# Create a temporary old-style archive to link instead of a shared archive.
14685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14686
14687# Commands used to build a shared archive.
14688archive_cmds=$lt_archive_cmds
14689archive_expsym_cmds=$lt_archive_expsym_cmds
14690
14691# Commands used to build a loadable module if different from building
14692# a shared archive.
14693module_cmds=$lt_module_cmds
14694module_expsym_cmds=$lt_module_expsym_cmds
14695
14696# Whether we are building with GNU ld or not.
14697with_gnu_ld=$lt_with_gnu_ld
14698
14699# Flag that allows shared libraries with undefined symbols to be built.
14700allow_undefined_flag=$lt_allow_undefined_flag
14701
14702# Flag that enforces no undefined symbols.
14703no_undefined_flag=$lt_no_undefined_flag
14704
14705# Flag to hardcode \$libdir into a binary during linking.
14706# This must work even if \$libdir does not exist
14707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14708
14709# If ld is used when linking, flag to hardcode \$libdir into a binary
14710# during linking.  This must work even if \$libdir does not exist.
14711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14712
14713# Whether we need a single "-rpath" flag with a separated argument.
14714hardcode_libdir_separator=$lt_hardcode_libdir_separator
14715
14716# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14717# DIR into the resulting binary.
14718hardcode_direct=$hardcode_direct
14719
14720# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14721# DIR into the resulting binary and the resulting library dependency is
14722# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14723# library is relocated.
14724hardcode_direct_absolute=$hardcode_direct_absolute
14725
14726# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14727# into the resulting binary.
14728hardcode_minus_L=$hardcode_minus_L
14729
14730# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14731# into the resulting binary.
14732hardcode_shlibpath_var=$hardcode_shlibpath_var
14733
14734# Set to "yes" if building a shared library automatically hardcodes DIR
14735# into the library and all subsequent libraries and executables linked
14736# against it.
14737hardcode_automatic=$hardcode_automatic
14738
14739# Set to yes if linker adds runtime paths of dependent libraries
14740# to runtime path list.
14741inherit_rpath=$inherit_rpath
14742
14743# Whether libtool must link a program against all its dependency libraries.
14744link_all_deplibs=$link_all_deplibs
14745
14746# Set to "yes" if exported symbols are required.
14747always_export_symbols=$always_export_symbols
14748
14749# The commands to list exported symbols.
14750export_symbols_cmds=$lt_export_symbols_cmds
14751
14752# Symbols that should not be listed in the preloaded symbols.
14753exclude_expsyms=$lt_exclude_expsyms
14754
14755# Symbols that must always be exported.
14756include_expsyms=$lt_include_expsyms
14757
14758# Commands necessary for linking programs (against libraries) with templates.
14759prelink_cmds=$lt_prelink_cmds
14760
14761# Commands necessary for finishing linking programs.
14762postlink_cmds=$lt_postlink_cmds
14763
14764# Specify filename containing input files.
14765file_list_spec=$lt_file_list_spec
14766
14767# How to hardcode a shared library path into an executable.
14768hardcode_action=$hardcode_action
14769
14770# ### END LIBTOOL CONFIG
14771
14772_LT_EOF
14773
14774  case $host_os in
14775  aix3*)
14776    cat <<\_LT_EOF >> "$cfgfile"
14777# AIX sometimes has problems with the GCC collect2 program.  For some
14778# reason, if we set the COLLECT_NAMES environment variable, the problems
14779# vanish in a puff of smoke.
14780if test "X${COLLECT_NAMES+set}" != Xset; then
14781  COLLECT_NAMES=
14782  export COLLECT_NAMES
14783fi
14784_LT_EOF
14785    ;;
14786  esac
14787
14788
14789ltmain="$ac_aux_dir/ltmain.sh"
14790
14791
14792  # We use sed instead of cat because bash on DJGPP gets confused if
14793  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14794  # text mode, it properly converts lines to CR/LF.  This bash problem
14795  # is reportedly fixed, but why not run on old versions too?
14796  sed '$q' "$ltmain" >> "$cfgfile" \
14797     || (rm -f "$cfgfile"; exit 1)
14798
14799  if test x"$xsi_shell" = xyes; then
14800  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14801func_dirname ()\
14802{\
14803\    case ${1} in\
14804\      */*) func_dirname_result="${1%/*}${2}" ;;\
14805\      *  ) func_dirname_result="${3}" ;;\
14806\    esac\
14807} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14808  && mv -f "$cfgfile.tmp" "$cfgfile" \
14809    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14810test 0 -eq $? || _lt_function_replace_fail=:
14811
14812
14813  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14814func_basename ()\
14815{\
14816\    func_basename_result="${1##*/}"\
14817} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14818  && mv -f "$cfgfile.tmp" "$cfgfile" \
14819    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14820test 0 -eq $? || _lt_function_replace_fail=:
14821
14822
14823  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14824func_dirname_and_basename ()\
14825{\
14826\    case ${1} in\
14827\      */*) func_dirname_result="${1%/*}${2}" ;;\
14828\      *  ) func_dirname_result="${3}" ;;\
14829\    esac\
14830\    func_basename_result="${1##*/}"\
14831} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14832  && mv -f "$cfgfile.tmp" "$cfgfile" \
14833    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14834test 0 -eq $? || _lt_function_replace_fail=:
14835
14836
14837  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14838func_stripname ()\
14839{\
14840\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14841\    # positional parameters, so assign one to ordinary parameter first.\
14842\    func_stripname_result=${3}\
14843\    func_stripname_result=${func_stripname_result#"${1}"}\
14844\    func_stripname_result=${func_stripname_result%"${2}"}\
14845} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14846  && mv -f "$cfgfile.tmp" "$cfgfile" \
14847    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14848test 0 -eq $? || _lt_function_replace_fail=:
14849
14850
14851  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14852func_split_long_opt ()\
14853{\
14854\    func_split_long_opt_name=${1%%=*}\
14855\    func_split_long_opt_arg=${1#*=}\
14856} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14857  && mv -f "$cfgfile.tmp" "$cfgfile" \
14858    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14859test 0 -eq $? || _lt_function_replace_fail=:
14860
14861
14862  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14863func_split_short_opt ()\
14864{\
14865\    func_split_short_opt_arg=${1#??}\
14866\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14867} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14868  && mv -f "$cfgfile.tmp" "$cfgfile" \
14869    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14870test 0 -eq $? || _lt_function_replace_fail=:
14871
14872
14873  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14874func_lo2o ()\
14875{\
14876\    case ${1} in\
14877\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14878\      *)    func_lo2o_result=${1} ;;\
14879\    esac\
14880} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14881  && mv -f "$cfgfile.tmp" "$cfgfile" \
14882    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14883test 0 -eq $? || _lt_function_replace_fail=:
14884
14885
14886  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14887func_xform ()\
14888{\
14889    func_xform_result=${1%.*}.lo\
14890} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14891  && mv -f "$cfgfile.tmp" "$cfgfile" \
14892    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14893test 0 -eq $? || _lt_function_replace_fail=:
14894
14895
14896  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14897func_arith ()\
14898{\
14899    func_arith_result=$(( $* ))\
14900} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14901  && mv -f "$cfgfile.tmp" "$cfgfile" \
14902    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14903test 0 -eq $? || _lt_function_replace_fail=:
14904
14905
14906  sed -e '/^func_len ()$/,/^} # func_len /c\
14907func_len ()\
14908{\
14909    func_len_result=${#1}\
14910} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14911  && mv -f "$cfgfile.tmp" "$cfgfile" \
14912    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14913test 0 -eq $? || _lt_function_replace_fail=:
14914
14915fi
14916
14917if test x"$lt_shell_append" = xyes; then
14918  sed -e '/^func_append ()$/,/^} # func_append /c\
14919func_append ()\
14920{\
14921    eval "${1}+=\\${2}"\
14922} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14923  && mv -f "$cfgfile.tmp" "$cfgfile" \
14924    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14925test 0 -eq $? || _lt_function_replace_fail=:
14926
14927
14928  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14929func_append_quoted ()\
14930{\
14931\    func_quote_for_eval "${2}"\
14932\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14933} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14934  && mv -f "$cfgfile.tmp" "$cfgfile" \
14935    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14936test 0 -eq $? || _lt_function_replace_fail=:
14937
14938
14939  # Save a `func_append' function call where possible by direct use of '+='
14940  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14941    && mv -f "$cfgfile.tmp" "$cfgfile" \
14942      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14943  test 0 -eq $? || _lt_function_replace_fail=:
14944else
14945  # Save a `func_append' function call even when '+=' is not available
14946  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14947    && mv -f "$cfgfile.tmp" "$cfgfile" \
14948      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14949  test 0 -eq $? || _lt_function_replace_fail=:
14950fi
14951
14952if test x"$_lt_function_replace_fail" = x":"; then
14953  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14954$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14955fi
14956
14957
14958   mv -f "$cfgfile" "$ofile" ||
14959    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14960  chmod +x "$ofile"
14961
14962 ;;
14963
14964  esac
14965done # for ac_tag
14966
14967
14968as_fn_exit 0
14969_ACEOF
14970ac_clean_files=$ac_clean_files_save
14971
14972test $ac_write_fail = 0 ||
14973  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14974
14975
14976# configure is writing to config.log, and then calls config.status.
14977# config.status does its own redirection, appending to config.log.
14978# Unfortunately, on DOS this fails, as config.log is still kept open
14979# by configure, so config.status won't be able to write to it; its
14980# output is simply discarded.  So we exec the FD to /dev/null,
14981# effectively closing config.log, so it can be properly (re)opened and
14982# appended to by config.status.  When coming back to configure, we
14983# need to make the FD available again.
14984if test "$no_create" != yes; then
14985  ac_cs_success=:
14986  ac_config_status_args=
14987  test "$silent" = yes &&
14988    ac_config_status_args="$ac_config_status_args --quiet"
14989  exec 5>/dev/null
14990  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14991  exec 5>>config.log
14992  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14993  # would make configure fail if this is the last instruction.
14994  $ac_cs_success || as_fn_exit 1
14995fi
14996if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14997  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14998$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14999fi
15000
15001