• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/share/libtool/libltdl/
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for libltdl 2.2.10.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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
184test \$(( 1 + 1 )) = 2 || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
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	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: bug-libtool@gnu.org about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error ERROR [LINENO LOG_FD]
371# ---------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with status $?, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$?; test $as_status -eq 0 && as_status=1
378  if test "$3"; then
379    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381  fi
382  $as_echo "$as_me: error: $1" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
544
545# Name of the host.
546# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='libltdl'
564PACKAGE_TARNAME='libltdl'
565PACKAGE_VERSION='2.2.10'
566PACKAGE_STRING='libltdl 2.2.10'
567PACKAGE_BUGREPORT='bug-libtool@gnu.org'
568PACKAGE_URL=''
569
570ac_unique_file="ltdl.c"
571# Factoring default headers for most tests.
572ac_includes_default="\
573#include <stdio.h>
574#ifdef HAVE_SYS_TYPES_H
575# include <sys/types.h>
576#endif
577#ifdef HAVE_SYS_STAT_H
578# include <sys/stat.h>
579#endif
580#ifdef STDC_HEADERS
581# include <stdlib.h>
582# include <stddef.h>
583#else
584# ifdef HAVE_STDLIB_H
585#  include <stdlib.h>
586# endif
587#endif
588#ifdef HAVE_STRING_H
589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590#  include <memory.h>
591# endif
592# include <string.h>
593#endif
594#ifdef HAVE_STRINGS_H
595# include <strings.h>
596#endif
597#ifdef HAVE_INTTYPES_H
598# include <inttypes.h>
599#endif
600#ifdef HAVE_STDINT_H
601# include <stdint.h>
602#endif
603#ifdef HAVE_UNISTD_H
604# include <unistd.h>
605#endif"
606
607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
610LTDLOPEN
611LT_CONFIG_H
612CONVENIENCE_LTDL_FALSE
613CONVENIENCE_LTDL_TRUE
614INSTALL_LTDL_FALSE
615INSTALL_LTDL_TRUE
616ARGZ_H
617LIBOBJS
618sys_symbol_underscore
619LIBADD_DL
620LT_DLPREOPEN
621LIBADD_DLD_LINK
622LIBADD_SHL_LOAD
623LIBADD_DLOPEN
624LT_DLLOADERS
625CPP
626OTOOL64
627OTOOL
628LIPO
629NMEDIT
630DSYMUTIL
631RANLIB
632AR
633LN_S
634NM
635ac_ct_DUMPBIN
636DUMPBIN
637LD
638FGREP
639EGREP
640GREP
641SED
642am__fastdepCC_FALSE
643am__fastdepCC_TRUE
644CCDEPMODE
645AMDEPBACKSLASH
646AMDEP_FALSE
647AMDEP_TRUE
648am__quote
649am__include
650DEPDIR
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658host_os
659host_vendor
660host_cpu
661host
662build_os
663build_vendor
664build_cpu
665build
666LIBTOOL
667OBJDUMP
668DLLTOOL
669AS
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_shared
735enable_static
736with_pic
737enable_fast_install
738enable_dependency_tracking
739with_gnu_ld
740enable_libtool_lock
741enable_ltdl_install
742'
743      ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
749LIBS
750CPPFLAGS
751CPP'
752
753
754# Initialize some variables set by options.
755ac_init_help=
756ac_init_version=false
757ac_unrecognized_opts=
758ac_unrecognized_sep=
759# The variables have the same names as the options, with
760# dashes changed to underlines.
761cache_file=/dev/null
762exec_prefix=NONE
763no_create=
764no_recursion=
765prefix=NONE
766program_prefix=NONE
767program_suffix=NONE
768program_transform_name=s,x,x,
769silent=
770site=
771srcdir=
772verbose=
773x_includes=NONE
774x_libraries=NONE
775
776# Installation directory options.
777# These are left unexpanded so users can "make install exec_prefix=/foo"
778# and all the variables that are supposed to be based on exec_prefix
779# by default will actually change.
780# Use braces instead of parens because sh, perl, etc. also accept them.
781# (The list follows the same order as the GNU Coding Standards.)
782bindir='${exec_prefix}/bin'
783sbindir='${exec_prefix}/sbin'
784libexecdir='${exec_prefix}/libexec'
785datarootdir='${prefix}/share'
786datadir='${datarootdir}'
787sysconfdir='${prefix}/etc'
788sharedstatedir='${prefix}/com'
789localstatedir='${prefix}/var'
790includedir='${prefix}/include'
791oldincludedir='/usr/include'
792docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793infodir='${datarootdir}/info'
794htmldir='${docdir}'
795dvidir='${docdir}'
796pdfdir='${docdir}'
797psdir='${docdir}'
798libdir='${exec_prefix}/lib'
799localedir='${datarootdir}/locale'
800mandir='${datarootdir}/man'
801
802ac_prev=
803ac_dashdash=
804for ac_option
805do
806  # If the previous option needs an argument, assign it.
807  if test -n "$ac_prev"; then
808    eval $ac_prev=\$ac_option
809    ac_prev=
810    continue
811  fi
812
813  case $ac_option in
814  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815  *)	ac_optarg=yes ;;
816  esac
817
818  # Accept the important Cygnus configure options, so we can diagnose typos.
819
820  case $ac_dashdash$ac_option in
821  --)
822    ac_dashdash=yes ;;
823
824  -bindir | --bindir | --bindi | --bind | --bin | --bi)
825    ac_prev=bindir ;;
826  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827    bindir=$ac_optarg ;;
828
829  -build | --build | --buil | --bui | --bu)
830    ac_prev=build_alias ;;
831  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832    build_alias=$ac_optarg ;;
833
834  -cache-file | --cache-file | --cache-fil | --cache-fi \
835  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836    ac_prev=cache_file ;;
837  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839    cache_file=$ac_optarg ;;
840
841  --config-cache | -C)
842    cache_file=config.cache ;;
843
844  -datadir | --datadir | --datadi | --datad)
845    ac_prev=datadir ;;
846  -datadir=* | --datadir=* | --datadi=* | --datad=*)
847    datadir=$ac_optarg ;;
848
849  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850  | --dataroo | --dataro | --datar)
851    ac_prev=datarootdir ;;
852  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854    datarootdir=$ac_optarg ;;
855
856  -disable-* | --disable-*)
857    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858    # Reject names that are not valid shell variable names.
859    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860      as_fn_error "invalid feature name: $ac_useropt"
861    ac_useropt_orig=$ac_useropt
862    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863    case $ac_user_opts in
864      *"
865"enable_$ac_useropt"
866"*) ;;
867      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868	 ac_unrecognized_sep=', ';;
869    esac
870    eval enable_$ac_useropt=no ;;
871
872  -docdir | --docdir | --docdi | --doc | --do)
873    ac_prev=docdir ;;
874  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875    docdir=$ac_optarg ;;
876
877  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878    ac_prev=dvidir ;;
879  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880    dvidir=$ac_optarg ;;
881
882  -enable-* | --enable-*)
883    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884    # Reject names that are not valid shell variable names.
885    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886      as_fn_error "invalid feature name: $ac_useropt"
887    ac_useropt_orig=$ac_useropt
888    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889    case $ac_user_opts in
890      *"
891"enable_$ac_useropt"
892"*) ;;
893      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894	 ac_unrecognized_sep=', ';;
895    esac
896    eval enable_$ac_useropt=\$ac_optarg ;;
897
898  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900  | --exec | --exe | --ex)
901    ac_prev=exec_prefix ;;
902  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904  | --exec=* | --exe=* | --ex=*)
905    exec_prefix=$ac_optarg ;;
906
907  -gas | --gas | --ga | --g)
908    # Obsolete; use --with-gas.
909    with_gas=yes ;;
910
911  -help | --help | --hel | --he | -h)
912    ac_init_help=long ;;
913  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914    ac_init_help=recursive ;;
915  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916    ac_init_help=short ;;
917
918  -host | --host | --hos | --ho)
919    ac_prev=host_alias ;;
920  -host=* | --host=* | --hos=* | --ho=*)
921    host_alias=$ac_optarg ;;
922
923  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924    ac_prev=htmldir ;;
925  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926  | --ht=*)
927    htmldir=$ac_optarg ;;
928
929  -includedir | --includedir | --includedi | --included | --include \
930  | --includ | --inclu | --incl | --inc)
931    ac_prev=includedir ;;
932  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933  | --includ=* | --inclu=* | --incl=* | --inc=*)
934    includedir=$ac_optarg ;;
935
936  -infodir | --infodir | --infodi | --infod | --info | --inf)
937    ac_prev=infodir ;;
938  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939    infodir=$ac_optarg ;;
940
941  -libdir | --libdir | --libdi | --libd)
942    ac_prev=libdir ;;
943  -libdir=* | --libdir=* | --libdi=* | --libd=*)
944    libdir=$ac_optarg ;;
945
946  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947  | --libexe | --libex | --libe)
948    ac_prev=libexecdir ;;
949  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950  | --libexe=* | --libex=* | --libe=*)
951    libexecdir=$ac_optarg ;;
952
953  -localedir | --localedir | --localedi | --localed | --locale)
954    ac_prev=localedir ;;
955  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956    localedir=$ac_optarg ;;
957
958  -localstatedir | --localstatedir | --localstatedi | --localstated \
959  | --localstate | --localstat | --localsta | --localst | --locals)
960    ac_prev=localstatedir ;;
961  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963    localstatedir=$ac_optarg ;;
964
965  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966    ac_prev=mandir ;;
967  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968    mandir=$ac_optarg ;;
969
970  -nfp | --nfp | --nf)
971    # Obsolete; use --without-fp.
972    with_fp=no ;;
973
974  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975  | --no-cr | --no-c | -n)
976    no_create=yes ;;
977
978  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980    no_recursion=yes ;;
981
982  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984  | --oldin | --oldi | --old | --ol | --o)
985    ac_prev=oldincludedir ;;
986  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989    oldincludedir=$ac_optarg ;;
990
991  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992    ac_prev=prefix ;;
993  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994    prefix=$ac_optarg ;;
995
996  -program-prefix | --program-prefix | --program-prefi | --program-pref \
997  | --program-pre | --program-pr | --program-p)
998    ac_prev=program_prefix ;;
999  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001    program_prefix=$ac_optarg ;;
1002
1003  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004  | --program-suf | --program-su | --program-s)
1005    ac_prev=program_suffix ;;
1006  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008    program_suffix=$ac_optarg ;;
1009
1010  -program-transform-name | --program-transform-name \
1011  | --program-transform-nam | --program-transform-na \
1012  | --program-transform-n | --program-transform- \
1013  | --program-transform | --program-transfor \
1014  | --program-transfo | --program-transf \
1015  | --program-trans | --program-tran \
1016  | --progr-tra | --program-tr | --program-t)
1017    ac_prev=program_transform_name ;;
1018  -program-transform-name=* | --program-transform-name=* \
1019  | --program-transform-nam=* | --program-transform-na=* \
1020  | --program-transform-n=* | --program-transform-=* \
1021  | --program-transform=* | --program-transfor=* \
1022  | --program-transfo=* | --program-transf=* \
1023  | --program-trans=* | --program-tran=* \
1024  | --progr-tra=* | --program-tr=* | --program-t=*)
1025    program_transform_name=$ac_optarg ;;
1026
1027  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028    ac_prev=pdfdir ;;
1029  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030    pdfdir=$ac_optarg ;;
1031
1032  -psdir | --psdir | --psdi | --psd | --ps)
1033    ac_prev=psdir ;;
1034  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035    psdir=$ac_optarg ;;
1036
1037  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038  | -silent | --silent | --silen | --sile | --sil)
1039    silent=yes ;;
1040
1041  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042    ac_prev=sbindir ;;
1043  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044  | --sbi=* | --sb=*)
1045    sbindir=$ac_optarg ;;
1046
1047  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049  | --sharedst | --shareds | --shared | --share | --shar \
1050  | --sha | --sh)
1051    ac_prev=sharedstatedir ;;
1052  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055  | --sha=* | --sh=*)
1056    sharedstatedir=$ac_optarg ;;
1057
1058  -site | --site | --sit)
1059    ac_prev=site ;;
1060  -site=* | --site=* | --sit=*)
1061    site=$ac_optarg ;;
1062
1063  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064    ac_prev=srcdir ;;
1065  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066    srcdir=$ac_optarg ;;
1067
1068  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069  | --syscon | --sysco | --sysc | --sys | --sy)
1070    ac_prev=sysconfdir ;;
1071  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073    sysconfdir=$ac_optarg ;;
1074
1075  -target | --target | --targe | --targ | --tar | --ta | --t)
1076    ac_prev=target_alias ;;
1077  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078    target_alias=$ac_optarg ;;
1079
1080  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081    verbose=yes ;;
1082
1083  -version | --version | --versio | --versi | --vers | -V)
1084    ac_init_version=: ;;
1085
1086  -with-* | --with-*)
1087    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090      as_fn_error "invalid package name: $ac_useropt"
1091    ac_useropt_orig=$ac_useropt
1092    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093    case $ac_user_opts in
1094      *"
1095"with_$ac_useropt"
1096"*) ;;
1097      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098	 ac_unrecognized_sep=', ';;
1099    esac
1100    eval with_$ac_useropt=\$ac_optarg ;;
1101
1102  -without-* | --without-*)
1103    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104    # Reject names that are not valid shell variable names.
1105    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106      as_fn_error "invalid package name: $ac_useropt"
1107    ac_useropt_orig=$ac_useropt
1108    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109    case $ac_user_opts in
1110      *"
1111"with_$ac_useropt"
1112"*) ;;
1113      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114	 ac_unrecognized_sep=', ';;
1115    esac
1116    eval with_$ac_useropt=no ;;
1117
1118  --x)
1119    # Obsolete; use --with-x.
1120    with_x=yes ;;
1121
1122  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123  | --x-incl | --x-inc | --x-in | --x-i)
1124    ac_prev=x_includes ;;
1125  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127    x_includes=$ac_optarg ;;
1128
1129  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131    ac_prev=x_libraries ;;
1132  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134    x_libraries=$ac_optarg ;;
1135
1136  -*) as_fn_error "unrecognized option: \`$ac_option'
1137Try \`$0 --help' for more information."
1138    ;;
1139
1140  *=*)
1141    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142    # Reject names that are not valid shell variable names.
1143    case $ac_envvar in #(
1144      '' | [0-9]* | *[!_$as_cr_alnum]* )
1145      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1146    esac
1147    eval $ac_envvar=\$ac_optarg
1148    export $ac_envvar ;;
1149
1150  *)
1151    # FIXME: should be removed in autoconf 3.0.
1152    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156    ;;
1157
1158  esac
1159done
1160
1161if test -n "$ac_prev"; then
1162  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163  as_fn_error "missing argument to $ac_option"
1164fi
1165
1166if test -n "$ac_unrecognized_opts"; then
1167  case $enable_option_checking in
1168    no) ;;
1169    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1170    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171  esac
1172fi
1173
1174# Check all directory arguments for consistency.
1175for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176		datadir sysconfdir sharedstatedir localstatedir includedir \
1177		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178		libdir localedir mandir
1179do
1180  eval ac_val=\$$ac_var
1181  # Remove trailing slashes.
1182  case $ac_val in
1183    */ )
1184      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185      eval $ac_var=\$ac_val;;
1186  esac
1187  # Be sure to have absolute directory names.
1188  case $ac_val in
1189    [\\/$]* | ?:[\\/]* )  continue;;
1190    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191  esac
1192  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1193done
1194
1195# There might be people who depend on the old broken behavior: `$host'
1196# used to hold the argument of --host etc.
1197# FIXME: To remove some day.
1198build=$build_alias
1199host=$host_alias
1200target=$target_alias
1201
1202# FIXME: To remove some day.
1203if test "x$host_alias" != x; then
1204  if test "x$build_alias" = x; then
1205    cross_compiling=maybe
1206    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207    If a cross compiler is detected then cross compile mode will be used." >&2
1208  elif test "x$build_alias" != "x$host_alias"; then
1209    cross_compiling=yes
1210  fi
1211fi
1212
1213ac_tool_prefix=
1214test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215
1216test "$silent" = yes && exec 6>/dev/null
1217
1218
1219ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220ac_ls_di=`ls -di .` &&
1221ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222  as_fn_error "working directory cannot be determined"
1223test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224  as_fn_error "pwd does not report name of working directory"
1225
1226
1227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229  ac_srcdir_defaulted=yes
1230  # Try the directory containing this script, then the parent directory.
1231  ac_confdir=`$as_dirname -- "$as_myself" ||
1232$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233	 X"$as_myself" : 'X\(//\)[^/]' \| \
1234	 X"$as_myself" : 'X\(//\)$' \| \
1235	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236$as_echo X"$as_myself" |
1237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238	    s//\1/
1239	    q
1240	  }
1241	  /^X\(\/\/\)[^/].*/{
1242	    s//\1/
1243	    q
1244	  }
1245	  /^X\(\/\/\)$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\).*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  s/.*/./; q'`
1254  srcdir=$ac_confdir
1255  if test ! -r "$srcdir/$ac_unique_file"; then
1256    srcdir=..
1257  fi
1258else
1259  ac_srcdir_defaulted=no
1260fi
1261if test ! -r "$srcdir/$ac_unique_file"; then
1262  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1264fi
1265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266ac_abs_confdir=`(
1267	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1268	pwd)`
1269# When building in place, set srcdir=.
1270if test "$ac_abs_confdir" = "$ac_pwd"; then
1271  srcdir=.
1272fi
1273# Remove unnecessary trailing slashes from srcdir.
1274# Double slashes in file names in object file debugging info
1275# mess up M-x gdb in Emacs.
1276case $srcdir in
1277*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278esac
1279for ac_var in $ac_precious_vars; do
1280  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281  eval ac_env_${ac_var}_value=\$${ac_var}
1282  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284done
1285
1286#
1287# Report the --help message.
1288#
1289if test "$ac_init_help" = "long"; then
1290  # Omit some internal or obsolete options to make the list less imposing.
1291  # This message is too long to be a string in the A/UX 3.1 sh.
1292  cat <<_ACEOF
1293\`configure' configures libltdl 2.2.10 to adapt to many kinds of systems.
1294
1295Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298VAR=VALUE.  See below for descriptions of some of the useful variables.
1299
1300Defaults for the options are specified in brackets.
1301
1302Configuration:
1303  -h, --help              display this help and exit
1304      --help=short        display options specific to this package
1305      --help=recursive    display the short help of all the included packages
1306  -V, --version           display version information and exit
1307  -q, --quiet, --silent   do not print \`checking...' messages
1308      --cache-file=FILE   cache test results in FILE [disabled]
1309  -C, --config-cache      alias for \`--cache-file=config.cache'
1310  -n, --no-create         do not create output files
1311      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1312
1313Installation directories:
1314  --prefix=PREFIX         install architecture-independent files in PREFIX
1315                          [$ac_default_prefix]
1316  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1317                          [PREFIX]
1318
1319By default, \`make install' will install all the files in
1320\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1321an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322for instance \`--prefix=\$HOME'.
1323
1324For better control, use the options below.
1325
1326Fine tuning of the installation directories:
1327  --bindir=DIR            user executables [EPREFIX/bin]
1328  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1329  --libexecdir=DIR        program executables [EPREFIX/libexec]
1330  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1331  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1332  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1333  --libdir=DIR            object code libraries [EPREFIX/lib]
1334  --includedir=DIR        C header files [PREFIX/include]
1335  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1336  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1337  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1338  --infodir=DIR           info documentation [DATAROOTDIR/info]
1339  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1340  --mandir=DIR            man documentation [DATAROOTDIR/man]
1341  --docdir=DIR            documentation root [DATAROOTDIR/doc/libltdl]
1342  --htmldir=DIR           html documentation [DOCDIR]
1343  --dvidir=DIR            dvi documentation [DOCDIR]
1344  --pdfdir=DIR            pdf documentation [DOCDIR]
1345  --psdir=DIR             ps documentation [DOCDIR]
1346_ACEOF
1347
1348  cat <<\_ACEOF
1349
1350Program names:
1351  --program-prefix=PREFIX            prepend PREFIX to installed program names
1352  --program-suffix=SUFFIX            append SUFFIX to installed program names
1353  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1354
1355System types:
1356  --build=BUILD     configure for building on BUILD [guessed]
1357  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1358_ACEOF
1359fi
1360
1361if test -n "$ac_init_help"; then
1362  case $ac_init_help in
1363     short | recursive ) echo "Configuration of libltdl 2.2.10:";;
1364   esac
1365  cat <<\_ACEOF
1366
1367Optional Features:
1368  --disable-option-checking  ignore unrecognized --enable/--with options
1369  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1370  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1371  --enable-shared[=PKGS]  build shared libraries [default=yes]
1372  --enable-static[=PKGS]  build static libraries [default=yes]
1373  --enable-fast-install[=PKGS]
1374                          optimize for fast installation [default=yes]
1375  --disable-dependency-tracking  speeds up one-time build
1376  --enable-dependency-tracking   do not reject slow dependency extractors
1377  --disable-libtool-lock  avoid locking (might break parallel builds)
1378  --enable-ltdl-install   install libltdl
1379
1380Optional Packages:
1381  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1382  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1383  --with-pic              try to use only PIC/non-PIC objects [default=use
1384                          both]
1385  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1386
1387Some influential environment variables:
1388  CC          C compiler command
1389  CFLAGS      C compiler flags
1390  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391              nonstandard directory <lib dir>
1392  LIBS        libraries to pass to the linker, e.g. -l<library>
1393  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394              you have headers in a nonstandard directory <include dir>
1395  CPP         C preprocessor
1396
1397Use these variables to override the choices made by `configure' or to help
1398it to find libraries and programs with nonstandard names/locations.
1399
1400Report bugs to <bug-libtool@gnu.org>.
1401_ACEOF
1402ac_status=$?
1403fi
1404
1405if test "$ac_init_help" = "recursive"; then
1406  # If there are subdirs, report their specific --help.
1407  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408    test -d "$ac_dir" ||
1409      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410      continue
1411    ac_builddir=.
1412
1413case "$ac_dir" in
1414.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415*)
1416  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417  # A ".." for each directory in $ac_dir_suffix.
1418  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419  case $ac_top_builddir_sub in
1420  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422  esac ;;
1423esac
1424ac_abs_top_builddir=$ac_pwd
1425ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426# for backward compatibility:
1427ac_top_builddir=$ac_top_build_prefix
1428
1429case $srcdir in
1430  .)  # We are building in place.
1431    ac_srcdir=.
1432    ac_top_srcdir=$ac_top_builddir_sub
1433    ac_abs_top_srcdir=$ac_pwd ;;
1434  [\\/]* | ?:[\\/]* )  # Absolute name.
1435    ac_srcdir=$srcdir$ac_dir_suffix;
1436    ac_top_srcdir=$srcdir
1437    ac_abs_top_srcdir=$srcdir ;;
1438  *) # Relative name.
1439    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440    ac_top_srcdir=$ac_top_build_prefix$srcdir
1441    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442esac
1443ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444
1445    cd "$ac_dir" || { ac_status=$?; continue; }
1446    # Check for guested configure.
1447    if test -f "$ac_srcdir/configure.gnu"; then
1448      echo &&
1449      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450    elif test -f "$ac_srcdir/configure"; then
1451      echo &&
1452      $SHELL "$ac_srcdir/configure" --help=recursive
1453    else
1454      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455    fi || ac_status=$?
1456    cd "$ac_pwd" || { ac_status=$?; break; }
1457  done
1458fi
1459
1460test -n "$ac_init_help" && exit $ac_status
1461if $ac_init_version; then
1462  cat <<\_ACEOF
1463libltdl configure 2.2.10
1464generated by GNU Autoconf 2.65
1465
1466Copyright (C) 2009 Free Software Foundation, Inc.
1467This configure script is free software; the Free Software Foundation
1468gives unlimited permission to copy, distribute and modify it.
1469_ACEOF
1470  exit
1471fi
1472
1473## ------------------------ ##
1474## Autoconf initialization. ##
1475## ------------------------ ##
1476
1477# ac_fn_c_try_compile LINENO
1478# --------------------------
1479# Try to compile conftest.$ac_ext, and return whether this succeeded.
1480ac_fn_c_try_compile ()
1481{
1482  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483  rm -f conftest.$ac_objext
1484  if { { ac_try="$ac_compile"
1485case "(($ac_try" in
1486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487  *) ac_try_echo=$ac_try;;
1488esac
1489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490$as_echo "$ac_try_echo"; } >&5
1491  (eval "$ac_compile") 2>conftest.err
1492  ac_status=$?
1493  if test -s conftest.err; then
1494    grep -v '^ *+' conftest.err >conftest.er1
1495    cat conftest.er1 >&5
1496    mv -f conftest.er1 conftest.err
1497  fi
1498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499  test $ac_status = 0; } && {
1500	 test -z "$ac_c_werror_flag" ||
1501	 test ! -s conftest.err
1502       } && test -s conftest.$ac_objext; then :
1503  ac_retval=0
1504else
1505  $as_echo "$as_me: failed program was:" >&5
1506sed 's/^/| /' conftest.$ac_ext >&5
1507
1508	ac_retval=1
1509fi
1510  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511  as_fn_set_status $ac_retval
1512
1513} # ac_fn_c_try_compile
1514
1515# ac_fn_c_try_link LINENO
1516# -----------------------
1517# Try to link conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_link ()
1519{
1520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521  rm -f conftest.$ac_objext conftest$ac_exeext
1522  if { { ac_try="$ac_link"
1523case "(($ac_try" in
1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525  *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529  (eval "$ac_link") 2>conftest.err
1530  ac_status=$?
1531  if test -s conftest.err; then
1532    grep -v '^ *+' conftest.err >conftest.er1
1533    cat conftest.er1 >&5
1534    mv -f conftest.er1 conftest.err
1535  fi
1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537  test $ac_status = 0; } && {
1538	 test -z "$ac_c_werror_flag" ||
1539	 test ! -s conftest.err
1540       } && test -s conftest$ac_exeext && {
1541	 test "$cross_compiling" = yes ||
1542	 $as_test_x conftest$ac_exeext
1543       }; then :
1544  ac_retval=0
1545else
1546  $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549	ac_retval=1
1550fi
1551  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1552  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1553  # interfere with the next link command; also delete a directory that is
1554  # left behind by Apple's compiler.  We do this before executing the actions.
1555  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1556  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1557  as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_link
1560
1561# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1562# -------------------------------------------------------
1563# Tests whether HEADER exists and can be compiled using the include files in
1564# INCLUDES, setting the cache variable VAR accordingly.
1565ac_fn_c_check_header_compile ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569$as_echo_n "checking for $2... " >&6; }
1570if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1571  $as_echo_n "(cached) " >&6
1572else
1573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574/* end confdefs.h.  */
1575$4
1576#include <$2>
1577_ACEOF
1578if ac_fn_c_try_compile "$LINENO"; then :
1579  eval "$3=yes"
1580else
1581  eval "$3=no"
1582fi
1583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584fi
1585eval ac_res=\$$3
1586	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587$as_echo "$ac_res" >&6; }
1588  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589
1590} # ac_fn_c_check_header_compile
1591
1592# ac_fn_c_try_cpp LINENO
1593# ----------------------
1594# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_cpp ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  if { { ac_try="$ac_cpp conftest.$ac_ext"
1599case "(($ac_try" in
1600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601  *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606  ac_status=$?
1607  if test -s conftest.err; then
1608    grep -v '^ *+' conftest.err >conftest.er1
1609    cat conftest.er1 >&5
1610    mv -f conftest.er1 conftest.err
1611  fi
1612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613  test $ac_status = 0; } >/dev/null && {
1614	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615	 test ! -s conftest.err
1616       }; then :
1617  ac_retval=0
1618else
1619  $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622    ac_retval=1
1623fi
1624  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625  as_fn_set_status $ac_retval
1626
1627} # ac_fn_c_try_cpp
1628
1629# ac_fn_c_try_run LINENO
1630# ----------------------
1631# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632# that executables *can* be run.
1633ac_fn_c_try_run ()
1634{
1635  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636  if { { ac_try="$ac_link"
1637case "(($ac_try" in
1638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639  *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643  (eval "$ac_link") 2>&5
1644  ac_status=$?
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647  { { case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653  (eval "$ac_try") 2>&5
1654  ac_status=$?
1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; }; }; then :
1657  ac_retval=0
1658else
1659  $as_echo "$as_me: program exited with status $ac_status" >&5
1660       $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663       ac_retval=$ac_status
1664fi
1665  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667  as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_run
1670
1671# ac_fn_c_check_func LINENO FUNC VAR
1672# ----------------------------------
1673# Tests whether FUNC exists, setting the cache variable VAR accordingly
1674ac_fn_c_check_func ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
1679if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1680  $as_echo_n "(cached) " >&6
1681else
1682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h.  */
1684/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1685   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1686#define $2 innocuous_$2
1687
1688/* System header to define __stub macros and hopefully few prototypes,
1689    which can conflict with char $2 (); below.
1690    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1691    <limits.h> exists even on freestanding compilers.  */
1692
1693#ifdef __STDC__
1694# include <limits.h>
1695#else
1696# include <assert.h>
1697#endif
1698
1699#undef $2
1700
1701/* Override any GCC internal prototype to avoid an error.
1702   Use char because int might match the return type of a GCC
1703   builtin and then its argument prototype would still apply.  */
1704#ifdef __cplusplus
1705extern "C"
1706#endif
1707char $2 ();
1708/* The GNU C library defines this for functions which it implements
1709    to always fail with ENOSYS.  Some functions are actually named
1710    something starting with __ and the normal name is an alias.  */
1711#if defined __stub_$2 || defined __stub___$2
1712choke me
1713#endif
1714
1715int
1716main ()
1717{
1718return $2 ();
1719  ;
1720  return 0;
1721}
1722_ACEOF
1723if ac_fn_c_try_link "$LINENO"; then :
1724  eval "$3=yes"
1725else
1726  eval "$3=no"
1727fi
1728rm -f core conftest.err conftest.$ac_objext \
1729    conftest$ac_exeext conftest.$ac_ext
1730fi
1731eval ac_res=\$$3
1732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735
1736} # ac_fn_c_check_func
1737
1738# ac_fn_c_check_decl LINENO SYMBOL VAR
1739# ------------------------------------
1740# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1741ac_fn_c_check_decl ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1745$as_echo_n "checking whether $2 is declared... " >&6; }
1746if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747  $as_echo_n "(cached) " >&6
1748else
1749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$4
1752int
1753main ()
1754{
1755#ifndef $2
1756  (void) $2;
1757#endif
1758
1759  ;
1760  return 0;
1761}
1762_ACEOF
1763if ac_fn_c_try_compile "$LINENO"; then :
1764  eval "$3=yes"
1765else
1766  eval "$3=no"
1767fi
1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774
1775} # ac_fn_c_check_decl
1776
1777# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1778# -------------------------------------------
1779# Tests whether TYPE exists after having included INCLUDES, setting cache
1780# variable VAR accordingly.
1781ac_fn_c_check_type ()
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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  eval "$3=no"
1790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h.  */
1792$4
1793int
1794main ()
1795{
1796if (sizeof ($2))
1797	 return 0;
1798  ;
1799  return 0;
1800}
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h.  */
1805$4
1806int
1807main ()
1808{
1809if (sizeof (($2)))
1810	    return 0;
1811  ;
1812  return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"; then :
1816
1817else
1818  eval "$3=yes"
1819fi
1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828
1829} # ac_fn_c_check_type
1830cat >config.log <<_ACEOF
1831This file contains any messages produced by compilers while
1832running configure, to aid debugging if configure makes a mistake.
1833
1834It was created by libltdl $as_me 2.2.10, which was
1835generated by GNU Autoconf 2.65.  Invocation command line was
1836
1837  $ $0 $@
1838
1839_ACEOF
1840exec 5>>config.log
1841{
1842cat <<_ASUNAME
1843## --------- ##
1844## Platform. ##
1845## --------- ##
1846
1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852
1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1855
1856/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1857/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1860/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1861/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1862/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1863
1864_ASUNAME
1865
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869  IFS=$as_save_IFS
1870  test -z "$as_dir" && as_dir=.
1871    $as_echo "PATH: $as_dir"
1872  done
1873IFS=$as_save_IFS
1874
1875} >&5
1876
1877cat >&5 <<_ACEOF
1878
1879
1880## ----------- ##
1881## Core tests. ##
1882## ----------- ##
1883
1884_ACEOF
1885
1886
1887# Keep a trace of the command line.
1888# Strip out --no-create and --no-recursion so they do not pile up.
1889# Strip out --silent because we don't want to record it for future runs.
1890# Also quote any args containing shell meta-characters.
1891# Make two passes to allow for proper duplicate-argument suppression.
1892ac_configure_args=
1893ac_configure_args0=
1894ac_configure_args1=
1895ac_must_keep_next=false
1896for ac_pass in 1 2
1897do
1898  for ac_arg
1899  do
1900    case $ac_arg in
1901    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903    | -silent | --silent | --silen | --sile | --sil)
1904      continue ;;
1905    *\'*)
1906      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907    esac
1908    case $ac_pass in
1909    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1910    2)
1911      as_fn_append ac_configure_args1 " '$ac_arg'"
1912      if test $ac_must_keep_next = true; then
1913	ac_must_keep_next=false # Got value, back to normal.
1914      else
1915	case $ac_arg in
1916	  *=* | --config-cache | -C | -disable-* | --disable-* \
1917	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919	  | -with-* | --with-* | -without-* | --without-* | --x)
1920	    case "$ac_configure_args0 " in
1921	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922	    esac
1923	    ;;
1924	  -* ) ac_must_keep_next=true ;;
1925	esac
1926      fi
1927      as_fn_append ac_configure_args " '$ac_arg'"
1928      ;;
1929    esac
1930  done
1931done
1932{ ac_configure_args0=; unset ac_configure_args0;}
1933{ ac_configure_args1=; unset ac_configure_args1;}
1934
1935# When interrupted or exit'd, cleanup temporary files, and complete
1936# config.log.  We remove comments because anyway the quotes in there
1937# would cause problems or look ugly.
1938# WARNING: Use '\'' to represent an apostrophe within the trap.
1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940trap 'exit_status=$?
1941  # Save into config.log some information that might help in debugging.
1942  {
1943    echo
1944
1945    cat <<\_ASBOX
1946## ---------------- ##
1947## Cache variables. ##
1948## ---------------- ##
1949_ASBOX
1950    echo
1951    # The following way of writing the cache mishandles newlines in values,
1952(
1953  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1954    eval ac_val=\$$ac_var
1955    case $ac_val in #(
1956    *${as_nl}*)
1957      case $ac_var in #(
1958      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1959$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1960      esac
1961      case $ac_var in #(
1962      _ | IFS | as_nl) ;; #(
1963      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1964      *) { eval $ac_var=; unset $ac_var;} ;;
1965      esac ;;
1966    esac
1967  done
1968  (set) 2>&1 |
1969    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1970    *${as_nl}ac_space=\ *)
1971      sed -n \
1972	"s/'\''/'\''\\\\'\'''\''/g;
1973	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1974      ;; #(
1975    *)
1976      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1977      ;;
1978    esac |
1979    sort
1980)
1981    echo
1982
1983    cat <<\_ASBOX
1984## ----------------- ##
1985## Output variables. ##
1986## ----------------- ##
1987_ASBOX
1988    echo
1989    for ac_var in $ac_subst_vars
1990    do
1991      eval ac_val=\$$ac_var
1992      case $ac_val in
1993      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994      esac
1995      $as_echo "$ac_var='\''$ac_val'\''"
1996    done | sort
1997    echo
1998
1999    if test -n "$ac_subst_files"; then
2000      cat <<\_ASBOX
2001## ------------------- ##
2002## File substitutions. ##
2003## ------------------- ##
2004_ASBOX
2005      echo
2006      for ac_var in $ac_subst_files
2007      do
2008	eval ac_val=\$$ac_var
2009	case $ac_val in
2010	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011	esac
2012	$as_echo "$ac_var='\''$ac_val'\''"
2013      done | sort
2014      echo
2015    fi
2016
2017    if test -s confdefs.h; then
2018      cat <<\_ASBOX
2019## ----------- ##
2020## confdefs.h. ##
2021## ----------- ##
2022_ASBOX
2023      echo
2024      cat confdefs.h
2025      echo
2026    fi
2027    test "$ac_signal" != 0 &&
2028      $as_echo "$as_me: caught signal $ac_signal"
2029    $as_echo "$as_me: exit $exit_status"
2030  } >&5
2031  rm -f core *.core core.conftest.* &&
2032    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2033    exit $exit_status
2034' 0
2035for ac_signal in 1 2 13 15; do
2036  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2037done
2038ac_signal=0
2039
2040# confdefs.h avoids OS command line length limits that DEFS can exceed.
2041rm -f -r conftest* confdefs.h
2042
2043$as_echo "/* confdefs.h */" > confdefs.h
2044
2045# Predefined preprocessor variables.
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_NAME "$PACKAGE_NAME"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2053_ACEOF
2054
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_VERSION "$PACKAGE_VERSION"
2057_ACEOF
2058
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_STRING "$PACKAGE_STRING"
2061_ACEOF
2062
2063cat >>confdefs.h <<_ACEOF
2064#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2065_ACEOF
2066
2067cat >>confdefs.h <<_ACEOF
2068#define PACKAGE_URL "$PACKAGE_URL"
2069_ACEOF
2070
2071
2072# Let the site file select an alternate cache file if it wants to.
2073# Prefer an explicitly selected file to automatically selected ones.
2074ac_site_file1=NONE
2075ac_site_file2=NONE
2076if test -n "$CONFIG_SITE"; then
2077  ac_site_file1=$CONFIG_SITE
2078elif test "x$prefix" != xNONE; then
2079  ac_site_file1=$prefix/share/config.site
2080  ac_site_file2=$prefix/etc/config.site
2081else
2082  ac_site_file1=$ac_default_prefix/share/config.site
2083  ac_site_file2=$ac_default_prefix/etc/config.site
2084fi
2085for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2086do
2087  test "x$ac_site_file" = xNONE && continue
2088  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2089    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2091    sed 's/^/| /' "$ac_site_file" >&5
2092    . "$ac_site_file"
2093  fi
2094done
2095
2096if test -r "$cache_file"; then
2097  # Some versions of bash will fail to source /dev/null (special files
2098  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2099  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2100    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2101$as_echo "$as_me: loading cache $cache_file" >&6;}
2102    case $cache_file in
2103      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104      *)                      . "./$cache_file";;
2105    esac
2106  fi
2107else
2108  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2109$as_echo "$as_me: creating cache $cache_file" >&6;}
2110  >$cache_file
2111fi
2112
2113# Check that the precious variables saved in the cache have kept the same
2114# value.
2115ac_cache_corrupted=false
2116for ac_var in $ac_precious_vars; do
2117  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118  eval ac_new_set=\$ac_env_${ac_var}_set
2119  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120  eval ac_new_val=\$ac_env_${ac_var}_value
2121  case $ac_old_set,$ac_new_set in
2122    set,)
2123      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125      ac_cache_corrupted=: ;;
2126    ,set)
2127      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2128$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129      ac_cache_corrupted=: ;;
2130    ,);;
2131    *)
2132      if test "x$ac_old_val" != "x$ac_new_val"; then
2133	# differences in whitespace do not lead to failure.
2134	ac_old_val_w=`echo x $ac_old_val`
2135	ac_new_val_w=`echo x $ac_new_val`
2136	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2137	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2138$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2139	  ac_cache_corrupted=:
2140	else
2141	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2142$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2143	  eval $ac_var=\$ac_old_val
2144	fi
2145	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2146$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2147	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2148$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2149      fi;;
2150  esac
2151  # Pass precious variables to config.status.
2152  if test "$ac_new_set" = set; then
2153    case $ac_new_val in
2154    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2155    *) ac_arg=$ac_var=$ac_new_val ;;
2156    esac
2157    case " $ac_configure_args " in
2158      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2159      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2160    esac
2161  fi
2162done
2163if $ac_cache_corrupted; then
2164  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2167$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2168  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2169fi
2170## -------------------- ##
2171## Main body of script. ##
2172## -------------------- ##
2173
2174ac_ext=c
2175ac_cpp='$CPP $CPPFLAGS'
2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179
2180
2181ac_config_headers="$ac_config_headers config.h:config-h.in"
2182
2183
2184ac_aux_dir=
2185for ac_dir in config "$srcdir"/config; do
2186  for ac_t in install-sh install.sh shtool; do
2187    if test -f "$ac_dir/$ac_t"; then
2188      ac_aux_dir=$ac_dir
2189      ac_install_sh="$ac_aux_dir/$ac_t -c"
2190      break 2
2191    fi
2192  done
2193done
2194if test -z "$ac_aux_dir"; then
2195  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2196fi
2197
2198# These three variables are undocumented and unsupported,
2199# and are intended to be withdrawn in a future Autoconf release.
2200# They can cause serious problems if a builder's source tree is in a directory
2201# whose full name contains unusual characters.
2202ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2203ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2204ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2205
2206
2207
2208
2209
2210
2211
2212
2213 # I am me!
2214
2215
2216## ------------------------ ##
2217## Automake Initialisation. ##
2218## ------------------------ ##
2219
2220am__api_version='1.11'
2221
2222# Find a good install program.  We prefer a C program (faster),
2223# so one script is as good as another.  But avoid the broken or
2224# incompatible versions:
2225# SysV /etc/install, /usr/sbin/install
2226# SunOS /usr/etc/install
2227# IRIX /sbin/install
2228# AIX /bin/install
2229# AmigaOS /C/install, which installs bootblocks on floppy discs
2230# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233# OS/2's system install, which has a completely different semantic
2234# ./install, which can be erroneously created by make from ./install.sh.
2235# Reject install programs that cannot install multiple files.
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2237$as_echo_n "checking for a BSD-compatible install... " >&6; }
2238if test -z "$INSTALL"; then
2239if test "${ac_cv_path_install+set}" = set; then :
2240  $as_echo_n "(cached) " >&6
2241else
2242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247    # Account for people who put trailing slashes in PATH elements.
2248case $as_dir/ in #((
2249  ./ | .// | /[cC]/* | \
2250  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2251  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2252  /usr/ucb/* ) ;;
2253  *)
2254    # OSF1 and SCO ODT 3.0 have their own names for install.
2255    # Don't use installbsd from OSF since it installs stuff as root
2256    # by default.
2257    for ac_prog in ginstall scoinst install; do
2258      for ac_exec_ext in '' $ac_executable_extensions; do
2259	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2260	  if test $ac_prog = install &&
2261	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262	    # AIX install.  It has an incompatible calling convention.
2263	    :
2264	  elif test $ac_prog = install &&
2265	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2266	    # program-specific install script used by HP pwplus--don't use.
2267	    :
2268	  else
2269	    rm -rf conftest.one conftest.two conftest.dir
2270	    echo one > conftest.one
2271	    echo two > conftest.two
2272	    mkdir conftest.dir
2273	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2274	      test -s conftest.one && test -s conftest.two &&
2275	      test -s conftest.dir/conftest.one &&
2276	      test -s conftest.dir/conftest.two
2277	    then
2278	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2279	      break 3
2280	    fi
2281	  fi
2282	fi
2283      done
2284    done
2285    ;;
2286esac
2287
2288  done
2289IFS=$as_save_IFS
2290
2291rm -rf conftest.one conftest.two conftest.dir
2292
2293fi
2294  if test "${ac_cv_path_install+set}" = set; then
2295    INSTALL=$ac_cv_path_install
2296  else
2297    # As a last resort, use the slow shell script.  Don't cache a
2298    # value for INSTALL within a source directory, because that will
2299    # break other packages using the cache if that directory is
2300    # removed, or if the value is a relative name.
2301    INSTALL=$ac_install_sh
2302  fi
2303fi
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2305$as_echo "$INSTALL" >&6; }
2306
2307# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308# It thinks the first close brace ends the variable substitution.
2309test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310
2311test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312
2313test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2316$as_echo_n "checking whether build environment is sane... " >&6; }
2317# Just in case
2318sleep 1
2319echo timestamp > conftest.file
2320# Reject unsafe characters in $srcdir or the absolute working directory
2321# name.  Accept space and tab only in the latter.
2322am_lf='
2323'
2324case `pwd` in
2325  *[\\\"\#\$\&\'\`$am_lf]*)
2326    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2327esac
2328case $srcdir in
2329  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2330    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2331esac
2332
2333# Do `set' in a subshell so we don't clobber the current shell's
2334# arguments.  Must try -L first in case configure is actually a
2335# symlink; some systems play weird games with the mod time of symlinks
2336# (eg FreeBSD returns the mod time of the symlink's containing
2337# directory).
2338if (
2339   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340   if test "$*" = "X"; then
2341      # -L didn't work.
2342      set X `ls -t "$srcdir/configure" conftest.file`
2343   fi
2344   rm -f conftest.file
2345   if test "$*" != "X $srcdir/configure conftest.file" \
2346      && test "$*" != "X conftest.file $srcdir/configure"; then
2347
2348      # If neither matched, then we have a broken ls.  This can happen
2349      # if, for instance, CONFIG_SHELL is bash and it inherits a
2350      # broken ls alias from the environment.  This has actually
2351      # happened.  Such a system could not be considered "sane".
2352      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2353alias in your environment" "$LINENO" 5
2354   fi
2355
2356   test "$2" = conftest.file
2357   )
2358then
2359   # Ok.
2360   :
2361else
2362   as_fn_error "newly created file is older than distributed files!
2363Check your system clock" "$LINENO" 5
2364fi
2365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2366$as_echo "yes" >&6; }
2367test "$program_prefix" != NONE &&
2368  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369# Use a double $ so make ignores it.
2370test "$program_suffix" != NONE &&
2371  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372# Double any \ or $.
2373# By default was `s,x,x', remove it if useless.
2374ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
2377# expand $ac_aux_dir to an absolute path
2378am_aux_dir=`cd $ac_aux_dir && pwd`
2379
2380if test x"${MISSING+set}" != xset; then
2381  case $am_aux_dir in
2382  *\ * | *\	*)
2383    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2384  *)
2385    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2386  esac
2387fi
2388# Use eval to expand $SHELL
2389if eval "$MISSING --run true"; then
2390  am_missing_run="$MISSING --run "
2391else
2392  am_missing_run=
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2394$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2395fi
2396
2397if test x"${install_sh}" != xset; then
2398  case $am_aux_dir in
2399  *\ * | *\	*)
2400    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2401  *)
2402    install_sh="\${SHELL} $am_aux_dir/install-sh"
2403  esac
2404fi
2405
2406# Installed binaries are usually stripped using `strip' when the user
2407# run `make install-strip'.  However `strip' might not be the right
2408# tool to use in cross-compilation environments, therefore Automake
2409# will honor the `STRIP' environment variable to overrule this program.
2410if test "$cross_compiling" != no; then
2411  if test -n "$ac_tool_prefix"; then
2412  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413set dummy ${ac_tool_prefix}strip; ac_word=$2
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
2416if test "${ac_cv_prog_STRIP+set}" = set; then :
2417  $as_echo_n "(cached) " >&6
2418else
2419  if test -n "$STRIP"; then
2420  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427    for ac_exec_ext in '' $ac_executable_extensions; do
2428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431    break 2
2432  fi
2433done
2434  done
2435IFS=$as_save_IFS
2436
2437fi
2438fi
2439STRIP=$ac_cv_prog_STRIP
2440if test -n "$STRIP"; then
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2442$as_echo "$STRIP" >&6; }
2443else
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445$as_echo "no" >&6; }
2446fi
2447
2448
2449fi
2450if test -z "$ac_cv_prog_STRIP"; then
2451  ac_ct_STRIP=$STRIP
2452  # Extract the first word of "strip", so it can be a program name with args.
2453set dummy strip; ac_word=$2
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
2456if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  if test -n "$ac_ct_STRIP"; then
2460  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465  IFS=$as_save_IFS
2466  test -z "$as_dir" && as_dir=.
2467    for ac_exec_ext in '' $ac_executable_extensions; do
2468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469    ac_cv_prog_ac_ct_STRIP="strip"
2470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471    break 2
2472  fi
2473done
2474  done
2475IFS=$as_save_IFS
2476
2477fi
2478fi
2479ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480if test -n "$ac_ct_STRIP"; then
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2482$as_echo "$ac_ct_STRIP" >&6; }
2483else
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485$as_echo "no" >&6; }
2486fi
2487
2488  if test "x$ac_ct_STRIP" = x; then
2489    STRIP=":"
2490  else
2491    case $cross_compiling:$ac_tool_warned in
2492yes:)
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495ac_tool_warned=yes ;;
2496esac
2497    STRIP=$ac_ct_STRIP
2498  fi
2499else
2500  STRIP="$ac_cv_prog_STRIP"
2501fi
2502
2503fi
2504INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2507$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2508if test -z "$MKDIR_P"; then
2509  if test "${ac_cv_path_mkdir+set}" = set; then :
2510  $as_echo_n "(cached) " >&6
2511else
2512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517    for ac_prog in mkdir gmkdir; do
2518	 for ac_exec_ext in '' $ac_executable_extensions; do
2519	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2520	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2521	     'mkdir (GNU coreutils) '* | \
2522	     'mkdir (coreutils) '* | \
2523	     'mkdir (fileutils) '4.1*)
2524	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2525	       break 3;;
2526	   esac
2527	 done
2528       done
2529  done
2530IFS=$as_save_IFS
2531
2532fi
2533
2534  test -d ./--version && rmdir ./--version
2535  if test "${ac_cv_path_mkdir+set}" = set; then
2536    MKDIR_P="$ac_cv_path_mkdir -p"
2537  else
2538    # As a last resort, use the slow shell script.  Don't cache a
2539    # value for MKDIR_P within a source directory, because that will
2540    # break other packages using the cache if that directory is
2541    # removed, or if the value is a relative name.
2542    MKDIR_P="$ac_install_sh -d"
2543  fi
2544fi
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2546$as_echo "$MKDIR_P" >&6; }
2547
2548mkdir_p="$MKDIR_P"
2549case $mkdir_p in
2550  [\\/$]* | ?:[\\/]*) ;;
2551  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2552esac
2553
2554for ac_prog in gawk mawk nawk awk
2555do
2556  # Extract the first word of "$ac_prog", so it can be a program name with args.
2557set dummy $ac_prog; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
2560if test "${ac_cv_prog_AWK+set}" = set; then :
2561  $as_echo_n "(cached) " >&6
2562else
2563  if test -n "$AWK"; then
2564  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569  IFS=$as_save_IFS
2570  test -z "$as_dir" && as_dir=.
2571    for ac_exec_ext in '' $ac_executable_extensions; do
2572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573    ac_cv_prog_AWK="$ac_prog"
2574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575    break 2
2576  fi
2577done
2578  done
2579IFS=$as_save_IFS
2580
2581fi
2582fi
2583AWK=$ac_cv_prog_AWK
2584if test -n "$AWK"; then
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586$as_echo "$AWK" >&6; }
2587else
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589$as_echo "no" >&6; }
2590fi
2591
2592
2593  test -n "$AWK" && break
2594done
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2597$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2598set x ${MAKE-make}
2599ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2600if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2601  $as_echo_n "(cached) " >&6
2602else
2603  cat >conftest.make <<\_ACEOF
2604SHELL = /bin/sh
2605all:
2606	@echo '@@@%%%=$(MAKE)=@@@%%%'
2607_ACEOF
2608# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2609case `${MAKE-make} -f conftest.make 2>/dev/null` in
2610  *@@@%%%=?*=@@@%%%*)
2611    eval ac_cv_prog_make_${ac_make}_set=yes;;
2612  *)
2613    eval ac_cv_prog_make_${ac_make}_set=no;;
2614esac
2615rm -f conftest.make
2616fi
2617if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619$as_echo "yes" >&6; }
2620  SET_MAKE=
2621else
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623$as_echo "no" >&6; }
2624  SET_MAKE="MAKE=${MAKE-make}"
2625fi
2626
2627rm -rf .tst 2>/dev/null
2628mkdir .tst 2>/dev/null
2629if test -d .tst; then
2630  am__leading_dot=.
2631else
2632  am__leading_dot=_
2633fi
2634rmdir .tst 2>/dev/null
2635
2636if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638  # is not polluted with repeated "-I."
2639  am__isrc=' -I$(srcdir)'
2640  # test to see if srcdir already configured
2641  if test -f $srcdir/config.status; then
2642    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2643  fi
2644fi
2645
2646# test whether we have cygpath
2647if test -z "$CYGPATH_W"; then
2648  if (cygpath --version) >/dev/null 2>/dev/null; then
2649    CYGPATH_W='cygpath -w'
2650  else
2651    CYGPATH_W=echo
2652  fi
2653fi
2654
2655
2656# Define the identity of the package.
2657 PACKAGE='libltdl'
2658 VERSION='2.2.10'
2659
2660
2661cat >>confdefs.h <<_ACEOF
2662#define PACKAGE "$PACKAGE"
2663_ACEOF
2664
2665
2666cat >>confdefs.h <<_ACEOF
2667#define VERSION "$VERSION"
2668_ACEOF
2669
2670# Some tools Automake needs.
2671
2672ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2673
2674
2675AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2676
2677
2678AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2679
2680
2681AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2682
2683
2684MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
2686# We need awk for the "check" target.  The system "awk" is bad on
2687# some platforms.
2688# Always define AMTAR for backward compatibility.
2689
2690AMTAR=${AMTAR-"${am_missing_run}tar"}
2691
2692am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2693
2694
2695
2696
2697
2698
2699
2700## ------------------------------- ##
2701## Libtool specific configuration. ##
2702## ------------------------------- ##
2703pkgdatadir='${datadir}'"/${PACKAGE}"
2704
2705
2706## ----------------------- ##
2707## Libtool initialisation. ##
2708## ----------------------- ##
2709case `pwd` in
2710  *\ * | *\	*)
2711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2712$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2713esac
2714
2715
2716
2717macro_version='2.2.10'
2718macro_revision='1.3175'
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732ltmain="$ac_aux_dir/ltmain.sh"
2733
2734# Make sure we can run config.sub.
2735$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2736  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2737
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2739$as_echo_n "checking build system type... " >&6; }
2740if test "${ac_cv_build+set}" = set; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  ac_build_alias=$build_alias
2744test "x$ac_build_alias" = x &&
2745  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2746test "x$ac_build_alias" = x &&
2747  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2748ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2749  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2750
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2753$as_echo "$ac_cv_build" >&6; }
2754case $ac_cv_build in
2755*-*-*) ;;
2756*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2757esac
2758build=$ac_cv_build
2759ac_save_IFS=$IFS; IFS='-'
2760set x $ac_cv_build
2761shift
2762build_cpu=$1
2763build_vendor=$2
2764shift; shift
2765# Remember, the first character of IFS is used to create $*,
2766# except with old shells:
2767build_os=$*
2768IFS=$ac_save_IFS
2769case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2770
2771
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2773$as_echo_n "checking host system type... " >&6; }
2774if test "${ac_cv_host+set}" = set; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  if test "x$host_alias" = x; then
2778  ac_cv_host=$ac_cv_build
2779else
2780  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2781    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2782fi
2783
2784fi
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2786$as_echo "$ac_cv_host" >&6; }
2787case $ac_cv_host in
2788*-*-*) ;;
2789*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2790esac
2791host=$ac_cv_host
2792ac_save_IFS=$IFS; IFS='-'
2793set x $ac_cv_host
2794shift
2795host_cpu=$1
2796host_vendor=$2
2797shift; shift
2798# Remember, the first character of IFS is used to create $*,
2799# except with old shells:
2800host_os=$*
2801IFS=$ac_save_IFS
2802case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2803
2804
2805# Backslashify metacharacters that are still active within
2806# double-quoted strings.
2807sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2808
2809# Same as above, but do not quote variable references.
2810double_quote_subst='s/\(["`\\]\)/\\\1/g'
2811
2812# Sed substitution to delay expansion of an escaped shell variable in a
2813# double_quote_subst'ed string.
2814delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2815
2816# Sed substitution to delay expansion of an escaped single quote.
2817delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2818
2819# Sed substitution to avoid accidental globbing in evaled expressions
2820no_glob_subst='s/\*/\\\*/g'
2821
2822ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2823ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2824ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2825
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2827$as_echo_n "checking how to print strings... " >&6; }
2828# Test print first, because it will be a builtin if present.
2829if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2830   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2831  ECHO='print -r --'
2832elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2833  ECHO='printf %s\n'
2834else
2835  # Use this function as a fallback that always works.
2836  func_fallback_echo ()
2837  {
2838    eval 'cat <<_LTECHO_EOF
2839$1
2840_LTECHO_EOF'
2841  }
2842  ECHO='func_fallback_echo'
2843fi
2844
2845# func_echo_all arg...
2846# Invoke $ECHO with all args, space-separated.
2847func_echo_all ()
2848{
2849    $ECHO ""
2850}
2851
2852case "$ECHO" in
2853  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2854$as_echo "printf" >&6; } ;;
2855  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2856$as_echo "print -r" >&6; } ;;
2857  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2858$as_echo "cat" >&6; } ;;
2859esac
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874DEPDIR="${am__leading_dot}deps"
2875
2876ac_config_commands="$ac_config_commands depfiles"
2877
2878
2879am_make=${MAKE-make}
2880cat > confinc << 'END'
2881am__doit:
2882	@echo this is the am__doit target
2883.PHONY: am__doit
2884END
2885# If we don't find an include directive, just comment out the code.
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2887$as_echo_n "checking for style of include used by $am_make... " >&6; }
2888am__include="#"
2889am__quote=
2890_am_result=none
2891# First try GNU make style include.
2892echo "include confinc" > confmf
2893# Ignore all kinds of additional output from `make'.
2894case `$am_make -s -f confmf 2> /dev/null` in #(
2895*the\ am__doit\ target*)
2896  am__include=include
2897  am__quote=
2898  _am_result=GNU
2899  ;;
2900esac
2901# Now try BSD make style include.
2902if test "$am__include" = "#"; then
2903   echo '.include "confinc"' > confmf
2904   case `$am_make -s -f confmf 2> /dev/null` in #(
2905   *the\ am__doit\ target*)
2906     am__include=.include
2907     am__quote="\""
2908     _am_result=BSD
2909     ;;
2910   esac
2911fi
2912
2913
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2915$as_echo "$_am_result" >&6; }
2916rm -f confinc confmf
2917
2918# Check whether --enable-dependency-tracking was given.
2919if test "${enable_dependency_tracking+set}" = set; then :
2920  enableval=$enable_dependency_tracking;
2921fi
2922
2923if test "x$enable_dependency_tracking" != xno; then
2924  am_depcomp="$ac_aux_dir/depcomp"
2925  AMDEPBACKSLASH='\'
2926fi
2927 if test "x$enable_dependency_tracking" != xno; then
2928  AMDEP_TRUE=
2929  AMDEP_FALSE='#'
2930else
2931  AMDEP_TRUE='#'
2932  AMDEP_FALSE=
2933fi
2934
2935
2936ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941if test -n "$ac_tool_prefix"; then
2942  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}gcc; ac_word=$2
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_CC+set}" = set; then :
2947  $as_echo_n "(cached) " >&6
2948else
2949  if test -n "$CC"; then
2950  ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  test -z "$as_dir" && as_dir=.
2957    for ac_exec_ext in '' $ac_executable_extensions; do
2958  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964  done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972$as_echo "$CC" >&6; }
2973else
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978
2979fi
2980if test -z "$ac_cv_prog_CC"; then
2981  ac_ct_CC=$CC
2982  # Extract the first word of "gcc", so it can be a program name with args.
2983set dummy gcc; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test -n "$ac_ct_CC"; then
2990  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995  IFS=$as_save_IFS
2996  test -z "$as_dir" && as_dir=.
2997    for ac_exec_ext in '' $ac_executable_extensions; do
2998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999    ac_cv_prog_ac_ct_CC="gcc"
3000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001    break 2
3002  fi
3003done
3004  done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010if test -n "$ac_ct_CC"; then
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012$as_echo "$ac_ct_CC" >&6; }
3013else
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018  if test "x$ac_ct_CC" = x; then
3019    CC=""
3020  else
3021    case $cross_compiling:$ac_tool_warned in
3022yes:)
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025ac_tool_warned=yes ;;
3026esac
3027    CC=$ac_ct_CC
3028  fi
3029else
3030  CC="$ac_cv_prog_CC"
3031fi
3032
3033if test -z "$CC"; then
3034          if test -n "$ac_tool_prefix"; then
3035    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3036set dummy ${ac_tool_prefix}cc; ac_word=$2
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038$as_echo_n "checking for $ac_word... " >&6; }
3039if test "${ac_cv_prog_CC+set}" = set; then :
3040  $as_echo_n "(cached) " >&6
3041else
3042  if test -n "$CC"; then
3043  ac_cv_prog_CC="$CC" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048  IFS=$as_save_IFS
3049  test -z "$as_dir" && as_dir=.
3050    for ac_exec_ext in '' $ac_executable_extensions; do
3051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052    ac_cv_prog_CC="${ac_tool_prefix}cc"
3053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054    break 2
3055  fi
3056done
3057  done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062CC=$ac_cv_prog_CC
3063if test -n "$CC"; then
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065$as_echo "$CC" >&6; }
3066else
3067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068$as_echo "no" >&6; }
3069fi
3070
3071
3072  fi
3073fi
3074if test -z "$CC"; then
3075  # Extract the first word of "cc", so it can be a program name with args.
3076set dummy cc; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if test "${ac_cv_prog_CC+set}" = set; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  if test -n "$CC"; then
3083  ac_cv_prog_CC="$CC" # Let the user override the test.
3084else
3085  ac_prog_rejected=no
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3094       ac_prog_rejected=yes
3095       continue
3096     fi
3097    ac_cv_prog_CC="cc"
3098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102  done
3103IFS=$as_save_IFS
3104
3105if test $ac_prog_rejected = yes; then
3106  # We found a bogon in the path, so make sure we never use it.
3107  set dummy $ac_cv_prog_CC
3108  shift
3109  if test $# != 0; then
3110    # We chose a different compiler from the bogus one.
3111    # However, it has the same basename, so the bogon will be chosen
3112    # first if we set CC to just the basename; use the full file name.
3113    shift
3114    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3115  fi
3116fi
3117fi
3118fi
3119CC=$ac_cv_prog_CC
3120if test -n "$CC"; then
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122$as_echo "$CC" >&6; }
3123else
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
3126fi
3127
3128
3129fi
3130if test -z "$CC"; then
3131  if test -n "$ac_tool_prefix"; then
3132  for ac_prog in cl.exe
3133  do
3134    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3135set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137$as_echo_n "checking for $ac_word... " >&6; }
3138if test "${ac_cv_prog_CC+set}" = set; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  if test -n "$CC"; then
3142  ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147  IFS=$as_save_IFS
3148  test -z "$as_dir" && as_dir=.
3149    for ac_exec_ext in '' $ac_executable_extensions; do
3150  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153    break 2
3154  fi
3155done
3156  done
3157IFS=$as_save_IFS
3158
3159fi
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164$as_echo "$CC" >&6; }
3165else
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
3168fi
3169
3170
3171    test -n "$CC" && break
3172  done
3173fi
3174if test -z "$CC"; then
3175  ac_ct_CC=$CC
3176  for ac_prog in cl.exe
3177do
3178  # Extract the first word of "$ac_prog", so it can be a program name with args.
3179set dummy $ac_prog; ac_word=$2
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
3182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185  if test -n "$ac_ct_CC"; then
3186  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191  IFS=$as_save_IFS
3192  test -z "$as_dir" && as_dir=.
3193    for ac_exec_ext in '' $ac_executable_extensions; do
3194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195    ac_cv_prog_ac_ct_CC="$ac_prog"
3196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197    break 2
3198  fi
3199done
3200  done
3201IFS=$as_save_IFS
3202
3203fi
3204fi
3205ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206if test -n "$ac_ct_CC"; then
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208$as_echo "$ac_ct_CC" >&6; }
3209else
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214
3215  test -n "$ac_ct_CC" && break
3216done
3217
3218  if test "x$ac_ct_CC" = x; then
3219    CC=""
3220  else
3221    case $cross_compiling:$ac_tool_warned in
3222yes:)
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225ac_tool_warned=yes ;;
3226esac
3227    CC=$ac_ct_CC
3228  fi
3229fi
3230
3231fi
3232
3233
3234test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236as_fn_error "no acceptable C compiler found in \$PATH
3237See \`config.log' for more details." "$LINENO" 5; }
3238
3239# Provide some information about the compiler.
3240$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3241set X $ac_compile
3242ac_compiler=$2
3243for ac_option in --version -v -V -qversion; do
3244  { { ac_try="$ac_compiler $ac_option >&5"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250$as_echo "$ac_try_echo"; } >&5
3251  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3252  ac_status=$?
3253  if test -s conftest.err; then
3254    sed '10a\
3255... rest of stderr output deleted ...
3256         10q' conftest.err >conftest.er1
3257    cat conftest.er1 >&5
3258  fi
3259  rm -f conftest.er1 conftest.err
3260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261  test $ac_status = 0; }
3262done
3263
3264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h.  */
3266
3267int
3268main ()
3269{
3270
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275ac_clean_files_save=$ac_clean_files
3276ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3277# Try to create an executable without -o first, disregard a.out.
3278# It will help us diagnose broken compilers, and finding out an intuition
3279# of exeext.
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3281$as_echo_n "checking whether the C compiler works... " >&6; }
3282ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3283
3284# The possible output files:
3285ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3286
3287ac_rmfiles=
3288for ac_file in $ac_files
3289do
3290  case $ac_file in
3291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3293  esac
3294done
3295rm -f $ac_rmfiles
3296
3297if { { ac_try="$ac_link_default"
3298case "(($ac_try" in
3299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300  *) ac_try_echo=$ac_try;;
3301esac
3302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303$as_echo "$ac_try_echo"; } >&5
3304  (eval "$ac_link_default") 2>&5
3305  ac_status=$?
3306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307  test $ac_status = 0; }; then :
3308  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3309# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3310# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3311# so that the user can short-circuit this test for compilers unknown to
3312# Autoconf.
3313for ac_file in $ac_files ''
3314do
3315  test -f "$ac_file" || continue
3316  case $ac_file in
3317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3318	;;
3319    [ab].out )
3320	# We found the default executable, but exeext='' is most
3321	# certainly right.
3322	break;;
3323    *.* )
3324	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3325	then :; else
3326	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327	fi
3328	# We set ac_cv_exeext here because the later test for it is not
3329	# safe: cross compilers may not add the suffix if given an `-o'
3330	# argument, so we may need to know it at that point already.
3331	# Even if this section looks crufty: it has the advantage of
3332	# actually working.
3333	break;;
3334    * )
3335	break;;
3336  esac
3337done
3338test "$ac_cv_exeext" = no && ac_cv_exeext=
3339
3340else
3341  ac_file=''
3342fi
3343if test -z "$ac_file"; then :
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346$as_echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351{ as_fn_set_status 77
3352as_fn_error "C compiler cannot create executables
3353See \`config.log' for more details." "$LINENO" 5; }; }
3354else
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3356$as_echo "yes" >&6; }
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3359$as_echo_n "checking for C compiler default output file name... " >&6; }
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3361$as_echo "$ac_file" >&6; }
3362ac_exeext=$ac_cv_exeext
3363
3364rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3365ac_clean_files=$ac_clean_files_save
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3367$as_echo_n "checking for suffix of executables... " >&6; }
3368if { { ac_try="$ac_link"
3369case "(($ac_try" in
3370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371  *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
3375  (eval "$ac_link") 2>&5
3376  ac_status=$?
3377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }; then :
3379  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3380# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3381# work properly (i.e., refer to `conftest.exe'), while it won't with
3382# `rm'.
3383for ac_file in conftest.exe conftest conftest.*; do
3384  test -f "$ac_file" || continue
3385  case $ac_file in
3386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3387    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388	  break;;
3389    * ) break;;
3390  esac
3391done
3392else
3393  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error "cannot compute suffix of executables: cannot compile and link
3396See \`config.log' for more details." "$LINENO" 5; }
3397fi
3398rm -f conftest conftest$ac_cv_exeext
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3400$as_echo "$ac_cv_exeext" >&6; }
3401
3402rm -f conftest.$ac_ext
3403EXEEXT=$ac_cv_exeext
3404ac_exeext=$EXEEXT
3405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407#include <stdio.h>
3408int
3409main ()
3410{
3411FILE *f = fopen ("conftest.out", "w");
3412 return ferror (f) || fclose (f) != 0;
3413
3414  ;
3415  return 0;
3416}
3417_ACEOF
3418ac_clean_files="$ac_clean_files conftest.out"
3419# Check that the compiler produces executables we can run.  If not, either
3420# the compiler is broken, or we cross compile.
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3422$as_echo_n "checking whether we are cross compiling... " >&6; }
3423if test "$cross_compiling" != yes; then
3424  { { ac_try="$ac_link"
3425case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431  (eval "$ac_link") 2>&5
3432  ac_status=$?
3433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434  test $ac_status = 0; }
3435  if { ac_try='./conftest$ac_cv_exeext'
3436  { { case "(($ac_try" in
3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438  *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441$as_echo "$ac_try_echo"; } >&5
3442  (eval "$ac_try") 2>&5
3443  ac_status=$?
3444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445  test $ac_status = 0; }; }; then
3446    cross_compiling=no
3447  else
3448    if test "$cross_compiling" = maybe; then
3449	cross_compiling=yes
3450    else
3451	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error "cannot run C compiled programs.
3454If you meant to cross compile, use \`--host'.
3455See \`config.log' for more details." "$LINENO" 5; }
3456    fi
3457  fi
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3460$as_echo "$cross_compiling" >&6; }
3461
3462rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3463ac_clean_files=$ac_clean_files_save
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3465$as_echo_n "checking for suffix of object files... " >&6; }
3466if test "${ac_cv_objext+set}" = set; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471
3472int
3473main ()
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480rm -f conftest.o conftest.obj
3481if { { ac_try="$ac_compile"
3482case "(($ac_try" in
3483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484  *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488  (eval "$ac_compile") 2>&5
3489  ac_status=$?
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }; then :
3492  for ac_file in conftest.o conftest.obj conftest.*; do
3493  test -f "$ac_file" || continue;
3494  case $ac_file in
3495    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3496    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497       break;;
3498  esac
3499done
3500else
3501  $as_echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error "cannot compute suffix of object files: cannot compile
3507See \`config.log' for more details." "$LINENO" 5; }
3508fi
3509rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510fi
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3512$as_echo "$ac_cv_objext" >&6; }
3513OBJEXT=$ac_cv_objext
3514ac_objext=$OBJEXT
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3516$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3517if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h.  */
3522
3523int
3524main ()
3525{
3526#ifndef __GNUC__
3527       choke me
3528#endif
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534if ac_fn_c_try_compile "$LINENO"; then :
3535  ac_compiler_gnu=yes
3536else
3537  ac_compiler_gnu=no
3538fi
3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3544$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3545if test $ac_compiler_gnu = yes; then
3546  GCC=yes
3547else
3548  GCC=
3549fi
3550ac_test_CFLAGS=${CFLAGS+set}
3551ac_save_CFLAGS=$CFLAGS
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3553$as_echo_n "checking whether $CC accepts -g... " >&6; }
3554if test "${ac_cv_prog_cc_g+set}" = set; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557  ac_save_c_werror_flag=$ac_c_werror_flag
3558   ac_c_werror_flag=yes
3559   ac_cv_prog_cc_g=no
3560   CFLAGS="-g"
3561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_compile "$LINENO"; then :
3573  ac_cv_prog_cc_g=yes
3574else
3575  CFLAGS=""
3576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588
3589else
3590  ac_c_werror_flag=$ac_save_c_werror_flag
3591	 CFLAGS="-g"
3592	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h.  */
3594
3595int
3596main ()
3597{
3598
3599  ;
3600  return 0;
3601}
3602_ACEOF
3603if ac_fn_c_try_compile "$LINENO"; then :
3604  ac_cv_prog_cc_g=yes
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611   ac_c_werror_flag=$ac_save_c_werror_flag
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3614$as_echo "$ac_cv_prog_cc_g" >&6; }
3615if test "$ac_test_CFLAGS" = set; then
3616  CFLAGS=$ac_save_CFLAGS
3617elif test $ac_cv_prog_cc_g = yes; then
3618  if test "$GCC" = yes; then
3619    CFLAGS="-g -O2"
3620  else
3621    CFLAGS="-g"
3622  fi
3623else
3624  if test "$GCC" = yes; then
3625    CFLAGS="-O2"
3626  else
3627    CFLAGS=
3628  fi
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632if test "${ac_cv_prog_cc_c89+set}" = set; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  ac_cv_prog_cc_c89=no
3636ac_save_CC=$CC
3637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h.  */
3639#include <stdarg.h>
3640#include <stdio.h>
3641#include <sys/types.h>
3642#include <sys/stat.h>
3643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3644struct buf { int x; };
3645FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646static char *e (p, i)
3647     char **p;
3648     int i;
3649{
3650  return p[i];
3651}
3652static char *f (char * (*g) (char **, int), char **p, ...)
3653{
3654  char *s;
3655  va_list v;
3656  va_start (v,p);
3657  s = g (p, va_arg (v,int));
3658  va_end (v);
3659  return s;
3660}
3661
3662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3663   function prototypes and stuff, but not '\xHH' hex character constants.
3664   These don't provoke an error unfortunately, instead are silently treated
3665   as 'x'.  The following induces an error, until -std is added to get
3666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3667   array size at least.  It's necessary to write '\x00'==0 to get something
3668   that's true only with -std.  */
3669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670
3671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672   inside strings and character constants.  */
3673#define FOO(x) 'x'
3674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675
3676int test (int i, double x);
3677struct s1 {int (*f) (int a);};
3678struct s2 {int (*f) (double a);};
3679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680int argc;
3681char **argv;
3682int
3683main ()
3684{
3685return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692do
3693  CC="$ac_save_CC $ac_arg"
3694  if ac_fn_c_try_compile "$LINENO"; then :
3695  ac_cv_prog_cc_c89=$ac_arg
3696fi
3697rm -f core conftest.err conftest.$ac_objext
3698  test "x$ac_cv_prog_cc_c89" != "xno" && break
3699done
3700rm -f conftest.$ac_ext
3701CC=$ac_save_CC
3702
3703fi
3704# AC_CACHE_VAL
3705case "x$ac_cv_prog_cc_c89" in
3706  x)
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708$as_echo "none needed" >&6; } ;;
3709  xno)
3710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711$as_echo "unsupported" >&6; } ;;
3712  *)
3713    CC="$CC $ac_cv_prog_cc_c89"
3714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716esac
3717if test "x$ac_cv_prog_cc_c89" != xno; then :
3718
3719fi
3720
3721ac_ext=c
3722ac_cpp='$CPP $CPPFLAGS'
3723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726
3727depcc="$CC"   am_compiler_list=
3728
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3730$as_echo_n "checking dependency style of $depcc... " >&6; }
3731if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3732  $as_echo_n "(cached) " >&6
3733else
3734  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3735  # We make a subdir and do the tests there.  Otherwise we can end up
3736  # making bogus files that we don't know about and never remove.  For
3737  # instance it was reported that on HP-UX the gcc test will end up
3738  # making a dummy file named `D' -- because `-MD' means `put the output
3739  # in D'.
3740  mkdir conftest.dir
3741  # Copy depcomp to subdir because otherwise we won't find it if we're
3742  # using a relative directory.
3743  cp "$am_depcomp" conftest.dir
3744  cd conftest.dir
3745  # We will build objects and dependencies in a subdirectory because
3746  # it helps to detect inapplicable dependency modes.  For instance
3747  # both Tru64's cc and ICC support -MD to output dependencies as a
3748  # side effect of compilation, but ICC will put the dependencies in
3749  # the current directory while Tru64 will put them in the object
3750  # directory.
3751  mkdir sub
3752
3753  am_cv_CC_dependencies_compiler_type=none
3754  if test "$am_compiler_list" = ""; then
3755     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3756  fi
3757  am__universal=false
3758  case " $depcc " in #(
3759     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3760     esac
3761
3762  for depmode in $am_compiler_list; do
3763    # Setup a source with many dependencies, because some compilers
3764    # like to wrap large dependency lists on column 80 (with \), and
3765    # we should not choose a depcomp mode which is confused by this.
3766    #
3767    # We need to recreate these files for each test, as the compiler may
3768    # overwrite some of them when testing with obscure command lines.
3769    # This happens at least with the AIX C compiler.
3770    : > sub/conftest.c
3771    for i in 1 2 3 4 5 6; do
3772      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3773      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3774      # Solaris 8's {/usr,}/bin/sh.
3775      touch sub/conftst$i.h
3776    done
3777    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3778
3779    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3780    # mode.  It turns out that the SunPro C++ compiler does not properly
3781    # handle `-M -o', and we need to detect this.  Also, some Intel
3782    # versions had trouble with output in subdirs
3783    am__obj=sub/conftest.${OBJEXT-o}
3784    am__minus_obj="-o $am__obj"
3785    case $depmode in
3786    gcc)
3787      # This depmode causes a compiler race in universal mode.
3788      test "$am__universal" = false || continue
3789      ;;
3790    nosideeffect)
3791      # after this tag, mechanisms are not by side-effect, so they'll
3792      # only be used when explicitly requested
3793      if test "x$enable_dependency_tracking" = xyes; then
3794	continue
3795      else
3796	break
3797      fi
3798      ;;
3799    msvisualcpp | msvcmsys)
3800      # This compiler won't grok `-c -o', but also, the minuso test has
3801      # not run yet.  These depmodes are late enough in the game, and
3802      # so weak that their functioning should not be impacted.
3803      am__obj=conftest.${OBJEXT-o}
3804      am__minus_obj=
3805      ;;
3806    none) break ;;
3807    esac
3808    if depmode=$depmode \
3809       source=sub/conftest.c object=$am__obj \
3810       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3812         >/dev/null 2>conftest.err &&
3813       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3816       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817      # icc doesn't choke on unknown options, it will just issue warnings
3818      # or remarks (even with -Werror).  So we grep stderr for any message
3819      # that says an option was ignored or not supported.
3820      # When given -MP, icc 7.0 and 7.1 complain thusly:
3821      #   icc: Command line warning: ignoring option '-M'; no argument required
3822      # The diagnosis changed in icc 8.0:
3823      #   icc: Command line remark: option '-MP' not supported
3824      if (grep 'ignoring option' conftest.err ||
3825          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826        am_cv_CC_dependencies_compiler_type=$depmode
3827        break
3828      fi
3829    fi
3830  done
3831
3832  cd ..
3833  rm -rf conftest.dir
3834else
3835  am_cv_CC_dependencies_compiler_type=none
3836fi
3837
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3840$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3841CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3842
3843 if
3844  test "x$enable_dependency_tracking" != xno \
3845  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3846  am__fastdepCC_TRUE=
3847  am__fastdepCC_FALSE='#'
3848else
3849  am__fastdepCC_TRUE='#'
3850  am__fastdepCC_FALSE=
3851fi
3852
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3855$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3856if test "${ac_cv_path_SED+set}" = set; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3860     for ac_i in 1 2 3 4 5 6 7; do
3861       ac_script="$ac_script$as_nl$ac_script"
3862     done
3863     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3864     { ac_script=; unset ac_script;}
3865     if test -z "$SED"; then
3866  ac_path_SED_found=false
3867  # Loop through the user's path and test for each of PROGNAME-LIST
3868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871  IFS=$as_save_IFS
3872  test -z "$as_dir" && as_dir=.
3873    for ac_prog in sed gsed; do
3874    for ac_exec_ext in '' $ac_executable_extensions; do
3875      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3876      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3877# Check for GNU ac_path_SED and select it if it is found.
3878  # Check for GNU $ac_path_SED
3879case `"$ac_path_SED" --version 2>&1` in
3880*GNU*)
3881  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3882*)
3883  ac_count=0
3884  $as_echo_n 0123456789 >"conftest.in"
3885  while :
3886  do
3887    cat "conftest.in" "conftest.in" >"conftest.tmp"
3888    mv "conftest.tmp" "conftest.in"
3889    cp "conftest.in" "conftest.nl"
3890    $as_echo '' >> "conftest.nl"
3891    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893    as_fn_arith $ac_count + 1 && ac_count=$as_val
3894    if test $ac_count -gt ${ac_path_SED_max-0}; then
3895      # Best one so far, save it but keep looking for a better one
3896      ac_cv_path_SED="$ac_path_SED"
3897      ac_path_SED_max=$ac_count
3898    fi
3899    # 10*(2^10) chars as input seems more than enough
3900    test $ac_count -gt 10 && break
3901  done
3902  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903esac
3904
3905      $ac_path_SED_found && break 3
3906    done
3907  done
3908  done
3909IFS=$as_save_IFS
3910  if test -z "$ac_cv_path_SED"; then
3911    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3912  fi
3913else
3914  ac_cv_path_SED=$SED
3915fi
3916
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3919$as_echo "$ac_cv_path_SED" >&6; }
3920 SED="$ac_cv_path_SED"
3921  rm -f conftest.sed
3922
3923test -z "$SED" && SED=sed
3924Xsed="$SED -e 1s/^X//"
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3937$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3938if test "${ac_cv_path_GREP+set}" = set; then :
3939  $as_echo_n "(cached) " >&6
3940else
3941  if test -z "$GREP"; then
3942  ac_path_GREP_found=false
3943  # Loop through the user's path and test for each of PROGNAME-LIST
3944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946do
3947  IFS=$as_save_IFS
3948  test -z "$as_dir" && as_dir=.
3949    for ac_prog in grep ggrep; do
3950    for ac_exec_ext in '' $ac_executable_extensions; do
3951      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3952      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3953# Check for GNU ac_path_GREP and select it if it is found.
3954  # Check for GNU $ac_path_GREP
3955case `"$ac_path_GREP" --version 2>&1` in
3956*GNU*)
3957  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3958*)
3959  ac_count=0
3960  $as_echo_n 0123456789 >"conftest.in"
3961  while :
3962  do
3963    cat "conftest.in" "conftest.in" >"conftest.tmp"
3964    mv "conftest.tmp" "conftest.in"
3965    cp "conftest.in" "conftest.nl"
3966    $as_echo 'GREP' >> "conftest.nl"
3967    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969    as_fn_arith $ac_count + 1 && ac_count=$as_val
3970    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3971      # Best one so far, save it but keep looking for a better one
3972      ac_cv_path_GREP="$ac_path_GREP"
3973      ac_path_GREP_max=$ac_count
3974    fi
3975    # 10*(2^10) chars as input seems more than enough
3976    test $ac_count -gt 10 && break
3977  done
3978  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979esac
3980
3981      $ac_path_GREP_found && break 3
3982    done
3983  done
3984  done
3985IFS=$as_save_IFS
3986  if test -z "$ac_cv_path_GREP"; then
3987    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3988  fi
3989else
3990  ac_cv_path_GREP=$GREP
3991fi
3992
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3995$as_echo "$ac_cv_path_GREP" >&6; }
3996 GREP="$ac_cv_path_GREP"
3997
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4000$as_echo_n "checking for egrep... " >&6; }
4001if test "${ac_cv_path_EGREP+set}" = set; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005   then ac_cv_path_EGREP="$GREP -E"
4006   else
4007     if test -z "$EGREP"; then
4008  ac_path_EGREP_found=false
4009  # Loop through the user's path and test for each of PROGNAME-LIST
4010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012do
4013  IFS=$as_save_IFS
4014  test -z "$as_dir" && as_dir=.
4015    for ac_prog in egrep; do
4016    for ac_exec_ext in '' $ac_executable_extensions; do
4017      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4018      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4019# Check for GNU ac_path_EGREP and select it if it is found.
4020  # Check for GNU $ac_path_EGREP
4021case `"$ac_path_EGREP" --version 2>&1` in
4022*GNU*)
4023  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4024*)
4025  ac_count=0
4026  $as_echo_n 0123456789 >"conftest.in"
4027  while :
4028  do
4029    cat "conftest.in" "conftest.in" >"conftest.tmp"
4030    mv "conftest.tmp" "conftest.in"
4031    cp "conftest.in" "conftest.nl"
4032    $as_echo 'EGREP' >> "conftest.nl"
4033    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035    as_fn_arith $ac_count + 1 && ac_count=$as_val
4036    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4037      # Best one so far, save it but keep looking for a better one
4038      ac_cv_path_EGREP="$ac_path_EGREP"
4039      ac_path_EGREP_max=$ac_count
4040    fi
4041    # 10*(2^10) chars as input seems more than enough
4042    test $ac_count -gt 10 && break
4043  done
4044  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045esac
4046
4047      $ac_path_EGREP_found && break 3
4048    done
4049  done
4050  done
4051IFS=$as_save_IFS
4052  if test -z "$ac_cv_path_EGREP"; then
4053    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4054  fi
4055else
4056  ac_cv_path_EGREP=$EGREP
4057fi
4058
4059   fi
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4062$as_echo "$ac_cv_path_EGREP" >&6; }
4063 EGREP="$ac_cv_path_EGREP"
4064
4065
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4067$as_echo_n "checking for fgrep... " >&6; }
4068if test "${ac_cv_path_FGREP+set}" = set; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4072   then ac_cv_path_FGREP="$GREP -F"
4073   else
4074     if test -z "$FGREP"; then
4075  ac_path_FGREP_found=false
4076  # Loop through the user's path and test for each of PROGNAME-LIST
4077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079do
4080  IFS=$as_save_IFS
4081  test -z "$as_dir" && as_dir=.
4082    for ac_prog in fgrep; do
4083    for ac_exec_ext in '' $ac_executable_extensions; do
4084      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4085      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4086# Check for GNU ac_path_FGREP and select it if it is found.
4087  # Check for GNU $ac_path_FGREP
4088case `"$ac_path_FGREP" --version 2>&1` in
4089*GNU*)
4090  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4091*)
4092  ac_count=0
4093  $as_echo_n 0123456789 >"conftest.in"
4094  while :
4095  do
4096    cat "conftest.in" "conftest.in" >"conftest.tmp"
4097    mv "conftest.tmp" "conftest.in"
4098    cp "conftest.in" "conftest.nl"
4099    $as_echo 'FGREP' >> "conftest.nl"
4100    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102    as_fn_arith $ac_count + 1 && ac_count=$as_val
4103    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4104      # Best one so far, save it but keep looking for a better one
4105      ac_cv_path_FGREP="$ac_path_FGREP"
4106      ac_path_FGREP_max=$ac_count
4107    fi
4108    # 10*(2^10) chars as input seems more than enough
4109    test $ac_count -gt 10 && break
4110  done
4111  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112esac
4113
4114      $ac_path_FGREP_found && break 3
4115    done
4116  done
4117  done
4118IFS=$as_save_IFS
4119  if test -z "$ac_cv_path_FGREP"; then
4120    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4121  fi
4122else
4123  ac_cv_path_FGREP=$FGREP
4124fi
4125
4126   fi
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4129$as_echo "$ac_cv_path_FGREP" >&6; }
4130 FGREP="$ac_cv_path_FGREP"
4131
4132
4133test -z "$GREP" && GREP=grep
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153# Check whether --with-gnu-ld was given.
4154if test "${with_gnu_ld+set}" = set; then :
4155  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4156else
4157  with_gnu_ld=no
4158fi
4159
4160ac_prog=ld
4161if test "$GCC" = yes; then
4162  # Check if gcc -print-prog-name=ld gives a path.
4163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4164$as_echo_n "checking for ld used by $CC... " >&6; }
4165  case $host in
4166  *-*-mingw*)
4167    # gcc leaves a trailing carriage return which upsets mingw
4168    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4169  *)
4170    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4171  esac
4172  case $ac_prog in
4173    # Accept absolute paths.
4174    [\\/]* | ?:[\\/]*)
4175      re_direlt='/[^/][^/]*/\.\./'
4176      # Canonicalize the pathname of ld
4177      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4178      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4179	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4180      done
4181      test -z "$LD" && LD="$ac_prog"
4182      ;;
4183  "")
4184    # If it fails, then pretend we aren't using GCC.
4185    ac_prog=ld
4186    ;;
4187  *)
4188    # If it is relative, then search for the first ld in PATH.
4189    with_gnu_ld=unknown
4190    ;;
4191  esac
4192elif test "$with_gnu_ld" = yes; then
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4194$as_echo_n "checking for GNU ld... " >&6; }
4195else
4196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4197$as_echo_n "checking for non-GNU ld... " >&6; }
4198fi
4199if test "${lt_cv_path_LD+set}" = set; then :
4200  $as_echo_n "(cached) " >&6
4201else
4202  if test -z "$LD"; then
4203  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4204  for ac_dir in $PATH; do
4205    IFS="$lt_save_ifs"
4206    test -z "$ac_dir" && ac_dir=.
4207    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4208      lt_cv_path_LD="$ac_dir/$ac_prog"
4209      # Check to see if the program is GNU ld.  I'd rather use --version,
4210      # but apparently some variants of GNU ld only accept -v.
4211      # Break only if it was the GNU/non-GNU ld that we prefer.
4212      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4213      *GNU* | *'with BFD'*)
4214	test "$with_gnu_ld" != no && break
4215	;;
4216      *)
4217	test "$with_gnu_ld" != yes && break
4218	;;
4219      esac
4220    fi
4221  done
4222  IFS="$lt_save_ifs"
4223else
4224  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4225fi
4226fi
4227
4228LD="$lt_cv_path_LD"
4229if test -n "$LD"; then
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4231$as_echo "$LD" >&6; }
4232else
4233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
4235fi
4236test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4238$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4239if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4243case `$LD -v 2>&1 </dev/null` in
4244*GNU* | *'with BFD'*)
4245  lt_cv_prog_gnu_ld=yes
4246  ;;
4247*)
4248  lt_cv_prog_gnu_ld=no
4249  ;;
4250esac
4251fi
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4253$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4254with_gnu_ld=$lt_cv_prog_gnu_ld
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4265$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4266if test "${lt_cv_path_NM+set}" = set; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  if test -n "$NM"; then
4270  # Let the user override the test.
4271  lt_cv_path_NM="$NM"
4272else
4273  lt_nm_to_check="${ac_tool_prefix}nm"
4274  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4275    lt_nm_to_check="$lt_nm_to_check nm"
4276  fi
4277  for lt_tmp_nm in $lt_nm_to_check; do
4278    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4279    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4280      IFS="$lt_save_ifs"
4281      test -z "$ac_dir" && ac_dir=.
4282      tmp_nm="$ac_dir/$lt_tmp_nm"
4283      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4284	# Check to see if the nm accepts a BSD-compat flag.
4285	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4286	#   nm: unknown option "B" ignored
4287	# Tru64's nm complains that /dev/null is an invalid object file
4288	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4289	*/dev/null* | *'Invalid file or object type'*)
4290	  lt_cv_path_NM="$tmp_nm -B"
4291	  break
4292	  ;;
4293	*)
4294	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4295	  */dev/null*)
4296	    lt_cv_path_NM="$tmp_nm -p"
4297	    break
4298	    ;;
4299	  *)
4300	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4301	    continue # so that we can try to find one that supports BSD flags
4302	    ;;
4303	  esac
4304	  ;;
4305	esac
4306      fi
4307    done
4308    IFS="$lt_save_ifs"
4309  done
4310  : ${lt_cv_path_NM=no}
4311fi
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4314$as_echo "$lt_cv_path_NM" >&6; }
4315if test "$lt_cv_path_NM" != "no"; then
4316  NM="$lt_cv_path_NM"
4317else
4318  # Didn't find any BSD compatible name lister, look for dumpbin.
4319  if test -n "$DUMPBIN"; then :
4320    # Let the user override the test.
4321  else
4322    if test -n "$ac_tool_prefix"; then
4323  for ac_prog in dumpbin "link -dump"
4324  do
4325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328$as_echo_n "checking for $ac_word... " >&6; }
4329if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4330  $as_echo_n "(cached) " >&6
4331else
4332  if test -n "$DUMPBIN"; then
4333  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4334else
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338  IFS=$as_save_IFS
4339  test -z "$as_dir" && as_dir=.
4340    for ac_exec_ext in '' $ac_executable_extensions; do
4341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344    break 2
4345  fi
4346done
4347  done
4348IFS=$as_save_IFS
4349
4350fi
4351fi
4352DUMPBIN=$ac_cv_prog_DUMPBIN
4353if test -n "$DUMPBIN"; then
4354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4355$as_echo "$DUMPBIN" >&6; }
4356else
4357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
4359fi
4360
4361
4362    test -n "$DUMPBIN" && break
4363  done
4364fi
4365if test -z "$DUMPBIN"; then
4366  ac_ct_DUMPBIN=$DUMPBIN
4367  for ac_prog in dumpbin "link -dump"
4368do
4369  # Extract the first word of "$ac_prog", so it can be a program name with args.
4370set dummy $ac_prog; ac_word=$2
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372$as_echo_n "checking for $ac_word... " >&6; }
4373if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376  if test -n "$ac_ct_DUMPBIN"; then
4377  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4378else
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382  IFS=$as_save_IFS
4383  test -z "$as_dir" && as_dir=.
4384    for ac_exec_ext in '' $ac_executable_extensions; do
4385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388    break 2
4389  fi
4390done
4391  done
4392IFS=$as_save_IFS
4393
4394fi
4395fi
4396ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4397if test -n "$ac_ct_DUMPBIN"; then
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4399$as_echo "$ac_ct_DUMPBIN" >&6; }
4400else
4401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
4403fi
4404
4405
4406  test -n "$ac_ct_DUMPBIN" && break
4407done
4408
4409  if test "x$ac_ct_DUMPBIN" = x; then
4410    DUMPBIN=":"
4411  else
4412    case $cross_compiling:$ac_tool_warned in
4413yes:)
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416ac_tool_warned=yes ;;
4417esac
4418    DUMPBIN=$ac_ct_DUMPBIN
4419  fi
4420fi
4421
4422    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4423    *COFF*)
4424      DUMPBIN="$DUMPBIN -symbols"
4425      ;;
4426    *)
4427      DUMPBIN=:
4428      ;;
4429    esac
4430  fi
4431
4432  if test "$DUMPBIN" != ":"; then
4433    NM="$DUMPBIN"
4434  fi
4435fi
4436test -z "$NM" && NM=nm
4437
4438
4439
4440
4441
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4444$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4445if test "${lt_cv_nm_interface+set}" = set; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448  lt_cv_nm_interface="BSD nm"
4449  echo "int some_variable = 0;" > conftest.$ac_ext
4450  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4451  (eval "$ac_compile" 2>conftest.err)
4452  cat conftest.err >&5
4453  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4454  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4455  cat conftest.err >&5
4456  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4457  cat conftest.out >&5
4458  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4459    lt_cv_nm_interface="MS dumpbin"
4460  fi
4461  rm -f conftest*
4462fi
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4464$as_echo "$lt_cv_nm_interface" >&6; }
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4467$as_echo_n "checking whether ln -s works... " >&6; }
4468LN_S=$as_ln_s
4469if test "$LN_S" = "ln -s"; then
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471$as_echo "yes" >&6; }
4472else
4473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4474$as_echo "no, using $LN_S" >&6; }
4475fi
4476
4477# find the maximum length of command line arguments
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4479$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4480if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483    i=0
4484  teststring="ABCD"
4485
4486  case $build_os in
4487  msdosdjgpp*)
4488    # On DJGPP, this test can blow up pretty badly due to problems in libc
4489    # (any single argument exceeding 2000 bytes causes a buffer overrun
4490    # during glob expansion).  Even if it were fixed, the result of this
4491    # check would be larger than it should be.
4492    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4493    ;;
4494
4495  gnu*)
4496    # Under GNU Hurd, this test is not required because there is
4497    # no limit to the length of command line arguments.
4498    # Libtool will interpret -1 as no limit whatsoever
4499    lt_cv_sys_max_cmd_len=-1;
4500    ;;
4501
4502  cygwin* | mingw* | cegcc*)
4503    # On Win9x/ME, this test blows up -- it succeeds, but takes
4504    # about 5 minutes as the teststring grows exponentially.
4505    # Worse, since 9x/ME are not pre-emptively multitasking,
4506    # you end up with a "frozen" computer, even though with patience
4507    # the test eventually succeeds (with a max line length of 256k).
4508    # Instead, let's just punt: use the minimum linelength reported by
4509    # all of the supported platforms: 8192 (on NT/2K/XP).
4510    lt_cv_sys_max_cmd_len=8192;
4511    ;;
4512
4513  mint*)
4514    # On MiNT this can take a long time and run out of memory.
4515    lt_cv_sys_max_cmd_len=8192;
4516    ;;
4517
4518  amigaos*)
4519    # On AmigaOS with pdksh, this test takes hours, literally.
4520    # So we just punt and use a minimum line length of 8192.
4521    lt_cv_sys_max_cmd_len=8192;
4522    ;;
4523
4524  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4525    # This has been around since 386BSD, at least.  Likely further.
4526    if test -x /sbin/sysctl; then
4527      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4528    elif test -x /usr/sbin/sysctl; then
4529      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4530    else
4531      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4532    fi
4533    # And add a safety zone
4534    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4535    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4536    ;;
4537
4538  interix*)
4539    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4540    lt_cv_sys_max_cmd_len=196608
4541    ;;
4542
4543  osf*)
4544    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4545    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4546    # nice to cause kernel panics so lets avoid the loop below.
4547    # First set a reasonable default.
4548    lt_cv_sys_max_cmd_len=16384
4549    #
4550    if test -x /sbin/sysconfig; then
4551      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4552        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4553      esac
4554    fi
4555    ;;
4556  sco3.2v5*)
4557    lt_cv_sys_max_cmd_len=102400
4558    ;;
4559  sysv5* | sco5v6* | sysv4.2uw2*)
4560    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4561    if test -n "$kargmax"; then
4562      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4563    else
4564      lt_cv_sys_max_cmd_len=32768
4565    fi
4566    ;;
4567  *)
4568    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4569    if test -n "$lt_cv_sys_max_cmd_len"; then
4570      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4571      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4572    else
4573      # Make teststring a little bigger before we do anything with it.
4574      # a 1K string should be a reasonable start.
4575      for i in 1 2 3 4 5 6 7 8 ; do
4576        teststring=$teststring$teststring
4577      done
4578      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4579      # If test is not a shell built-in, we'll probably end up computing a
4580      # maximum length that is only half of the actual maximum length, but
4581      # we can't tell.
4582      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4583	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4584	      test $i != 17 # 1/2 MB should be enough
4585      do
4586        i=`expr $i + 1`
4587        teststring=$teststring$teststring
4588      done
4589      # Only check the string length outside the loop.
4590      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4591      teststring=
4592      # Add a significant safety factor because C++ compilers can tack on
4593      # massive amounts of additional arguments before passing them to the
4594      # linker.  It appears as though 1/2 is a usable value.
4595      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4596    fi
4597    ;;
4598  esac
4599
4600fi
4601
4602if test -n $lt_cv_sys_max_cmd_len ; then
4603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4604$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4605else
4606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4607$as_echo "none" >&6; }
4608fi
4609max_cmd_len=$lt_cv_sys_max_cmd_len
4610
4611
4612
4613
4614
4615
4616: ${CP="cp -f"}
4617: ${MV="mv -f"}
4618: ${RM="rm -f"}
4619
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4621$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4622# Try some XSI features
4623xsi_shell=no
4624( _lt_dummy="a/b/c"
4625  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4626      = c,a/b,, \
4627    && eval 'test $(( 1 + 1 )) -eq 2 \
4628    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4629  && xsi_shell=yes
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4631$as_echo "$xsi_shell" >&6; }
4632
4633
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4635$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4636lt_shell_append=no
4637( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4638    >/dev/null 2>&1 \
4639  && lt_shell_append=yes
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4641$as_echo "$lt_shell_append" >&6; }
4642
4643
4644if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4645  lt_unset=unset
4646else
4647  lt_unset=false
4648fi
4649
4650
4651
4652
4653
4654# test EBCDIC or ASCII
4655case `echo X|tr X '\101'` in
4656 A) # ASCII based system
4657    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4658  lt_SP2NL='tr \040 \012'
4659  lt_NL2SP='tr \015\012 \040\040'
4660  ;;
4661 *) # EBCDIC based system
4662  lt_SP2NL='tr \100 \n'
4663  lt_NL2SP='tr \r\n \100\100'
4664  ;;
4665esac
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4676$as_echo_n "checking for $LD option to reload object files... " >&6; }
4677if test "${lt_cv_ld_reload_flag+set}" = set; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  lt_cv_ld_reload_flag='-r'
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4683$as_echo "$lt_cv_ld_reload_flag" >&6; }
4684reload_flag=$lt_cv_ld_reload_flag
4685case $reload_flag in
4686"" | " "*) ;;
4687*) reload_flag=" $reload_flag" ;;
4688esac
4689reload_cmds='$LD$reload_flag -o $output$reload_objs'
4690case $host_os in
4691  darwin*)
4692    if test "$GCC" = yes; then
4693      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4694    else
4695      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4696    fi
4697    ;;
4698esac
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708if test -n "$ac_tool_prefix"; then
4709  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4710set dummy ${ac_tool_prefix}objdump; ac_word=$2
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712$as_echo_n "checking for $ac_word... " >&6; }
4713if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716  if test -n "$OBJDUMP"; then
4717  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4718else
4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722  IFS=$as_save_IFS
4723  test -z "$as_dir" && as_dir=.
4724    for ac_exec_ext in '' $ac_executable_extensions; do
4725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728    break 2
4729  fi
4730done
4731  done
4732IFS=$as_save_IFS
4733
4734fi
4735fi
4736OBJDUMP=$ac_cv_prog_OBJDUMP
4737if test -n "$OBJDUMP"; then
4738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4739$as_echo "$OBJDUMP" >&6; }
4740else
4741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742$as_echo "no" >&6; }
4743fi
4744
4745
4746fi
4747if test -z "$ac_cv_prog_OBJDUMP"; then
4748  ac_ct_OBJDUMP=$OBJDUMP
4749  # Extract the first word of "objdump", so it can be a program name with args.
4750set dummy objdump; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test -n "$ac_ct_OBJDUMP"; then
4757  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764    for ac_exec_ext in '' $ac_executable_extensions; do
4765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771  done
4772IFS=$as_save_IFS
4773
4774fi
4775fi
4776ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4777if test -n "$ac_ct_OBJDUMP"; then
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4779$as_echo "$ac_ct_OBJDUMP" >&6; }
4780else
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782$as_echo "no" >&6; }
4783fi
4784
4785  if test "x$ac_ct_OBJDUMP" = x; then
4786    OBJDUMP="false"
4787  else
4788    case $cross_compiling:$ac_tool_warned in
4789yes:)
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792ac_tool_warned=yes ;;
4793esac
4794    OBJDUMP=$ac_ct_OBJDUMP
4795  fi
4796else
4797  OBJDUMP="$ac_cv_prog_OBJDUMP"
4798fi
4799
4800test -z "$OBJDUMP" && OBJDUMP=objdump
4801
4802
4803
4804
4805
4806
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4808$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4809if test "${lt_cv_deplibs_check_method+set}" = set; then :
4810  $as_echo_n "(cached) " >&6
4811else
4812  lt_cv_file_magic_cmd='$MAGIC_CMD'
4813lt_cv_file_magic_test_file=
4814lt_cv_deplibs_check_method='unknown'
4815# Need to set the preceding variable on all platforms that support
4816# interlibrary dependencies.
4817# 'none' -- dependencies not supported.
4818# `unknown' -- same as none, but documents that we really don't know.
4819# 'pass_all' -- all dependencies passed with no checks.
4820# 'test_compile' -- check by making test program.
4821# 'file_magic [[regex]]' -- check by looking for files in library path
4822# which responds to the $file_magic_cmd with a given extended regex.
4823# If you have `file' or equivalent on your system and you're not sure
4824# whether `pass_all' will *always* work, you probably want this one.
4825
4826case $host_os in
4827aix[4-9]*)
4828  lt_cv_deplibs_check_method=pass_all
4829  ;;
4830
4831beos*)
4832  lt_cv_deplibs_check_method=pass_all
4833  ;;
4834
4835bsdi[45]*)
4836  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4837  lt_cv_file_magic_cmd='/usr/bin/file -L'
4838  lt_cv_file_magic_test_file=/shlib/libc.so
4839  ;;
4840
4841cygwin*)
4842  # func_win32_libid is a shell function defined in ltmain.sh
4843  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4844  lt_cv_file_magic_cmd='func_win32_libid'
4845  ;;
4846
4847mingw* | pw32*)
4848  # Base MSYS/MinGW do not provide the 'file' command needed by
4849  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4850  # unless we find 'file', for example because we are cross-compiling.
4851  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4852  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4853    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4854    lt_cv_file_magic_cmd='func_win32_libid'
4855  else
4856    # Keep this pattern in sync with the one in func_win32_libid.
4857    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4858    lt_cv_file_magic_cmd='$OBJDUMP -f'
4859  fi
4860  ;;
4861
4862cegcc*)
4863  # use the weaker test based on 'objdump'. See mingw*.
4864  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4865  lt_cv_file_magic_cmd='$OBJDUMP -f'
4866  ;;
4867
4868darwin* | rhapsody*)
4869  lt_cv_deplibs_check_method=pass_all
4870  ;;
4871
4872freebsd* | dragonfly*)
4873  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4874    case $host_cpu in
4875    i*86 )
4876      # Not sure whether the presence of OpenBSD here was a mistake.
4877      # Let's accept both of them until this is cleared up.
4878      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4879      lt_cv_file_magic_cmd=/usr/bin/file
4880      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4881      ;;
4882    esac
4883  else
4884    lt_cv_deplibs_check_method=pass_all
4885  fi
4886  ;;
4887
4888gnu*)
4889  lt_cv_deplibs_check_method=pass_all
4890  ;;
4891
4892haiku*)
4893  lt_cv_deplibs_check_method=pass_all
4894  ;;
4895
4896hpux10.20* | hpux11*)
4897  lt_cv_file_magic_cmd=/usr/bin/file
4898  case $host_cpu in
4899  ia64*)
4900    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4901    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4902    ;;
4903  hppa*64*)
4904    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]'
4905    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4906    ;;
4907  *)
4908    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4909    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4910    ;;
4911  esac
4912  ;;
4913
4914interix[3-9]*)
4915  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4916  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4917  ;;
4918
4919irix5* | irix6* | nonstopux*)
4920  case $LD in
4921  *-32|*"-32 ") libmagic=32-bit;;
4922  *-n32|*"-n32 ") libmagic=N32;;
4923  *-64|*"-64 ") libmagic=64-bit;;
4924  *) libmagic=never-match;;
4925  esac
4926  lt_cv_deplibs_check_method=pass_all
4927  ;;
4928
4929# This must be Linux ELF.
4930linux* | k*bsd*-gnu | kopensolaris*-gnu)
4931  lt_cv_deplibs_check_method=pass_all
4932  ;;
4933
4934netbsd*)
4935  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4936    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4937  else
4938    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4939  fi
4940  ;;
4941
4942newos6*)
4943  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4944  lt_cv_file_magic_cmd=/usr/bin/file
4945  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4946  ;;
4947
4948*nto* | *qnx*)
4949  lt_cv_deplibs_check_method=pass_all
4950  ;;
4951
4952openbsd*)
4953  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4954    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4955  else
4956    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4957  fi
4958  ;;
4959
4960osf3* | osf4* | osf5*)
4961  lt_cv_deplibs_check_method=pass_all
4962  ;;
4963
4964rdos*)
4965  lt_cv_deplibs_check_method=pass_all
4966  ;;
4967
4968solaris*)
4969  lt_cv_deplibs_check_method=pass_all
4970  ;;
4971
4972sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4973  lt_cv_deplibs_check_method=pass_all
4974  ;;
4975
4976sysv4 | sysv4.3*)
4977  case $host_vendor in
4978  motorola)
4979    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]'
4980    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4981    ;;
4982  ncr)
4983    lt_cv_deplibs_check_method=pass_all
4984    ;;
4985  sequent)
4986    lt_cv_file_magic_cmd='/bin/file'
4987    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4988    ;;
4989  sni)
4990    lt_cv_file_magic_cmd='/bin/file'
4991    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4992    lt_cv_file_magic_test_file=/lib/libc.so
4993    ;;
4994  siemens)
4995    lt_cv_deplibs_check_method=pass_all
4996    ;;
4997  pc)
4998    lt_cv_deplibs_check_method=pass_all
4999    ;;
5000  esac
5001  ;;
5002
5003tpf*)
5004  lt_cv_deplibs_check_method=pass_all
5005  ;;
5006esac
5007
5008fi
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5010$as_echo "$lt_cv_deplibs_check_method" >&6; }
5011file_magic_cmd=$lt_cv_file_magic_cmd
5012deplibs_check_method=$lt_cv_deplibs_check_method
5013test -z "$deplibs_check_method" && deplibs_check_method=unknown
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026if test -n "$ac_tool_prefix"; then
5027  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5028set dummy ${ac_tool_prefix}ar; ac_word=$2
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030$as_echo_n "checking for $ac_word... " >&6; }
5031if test "${ac_cv_prog_AR+set}" = set; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  if test -n "$AR"; then
5035  ac_cv_prog_AR="$AR" # Let the user override the test.
5036else
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040  IFS=$as_save_IFS
5041  test -z "$as_dir" && as_dir=.
5042    for ac_exec_ext in '' $ac_executable_extensions; do
5043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044    ac_cv_prog_AR="${ac_tool_prefix}ar"
5045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046    break 2
5047  fi
5048done
5049  done
5050IFS=$as_save_IFS
5051
5052fi
5053fi
5054AR=$ac_cv_prog_AR
5055if test -n "$AR"; then
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5057$as_echo "$AR" >&6; }
5058else
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060$as_echo "no" >&6; }
5061fi
5062
5063
5064fi
5065if test -z "$ac_cv_prog_AR"; then
5066  ac_ct_AR=$AR
5067  # Extract the first word of "ar", so it can be a program name with args.
5068set dummy ar; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  if test -n "$ac_ct_AR"; then
5075  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080  IFS=$as_save_IFS
5081  test -z "$as_dir" && as_dir=.
5082    for ac_exec_ext in '' $ac_executable_extensions; do
5083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084    ac_cv_prog_ac_ct_AR="ar"
5085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086    break 2
5087  fi
5088done
5089  done
5090IFS=$as_save_IFS
5091
5092fi
5093fi
5094ac_ct_AR=$ac_cv_prog_ac_ct_AR
5095if test -n "$ac_ct_AR"; then
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5097$as_echo "$ac_ct_AR" >&6; }
5098else
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103  if test "x$ac_ct_AR" = x; then
5104    AR="false"
5105  else
5106    case $cross_compiling:$ac_tool_warned in
5107yes:)
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110ac_tool_warned=yes ;;
5111esac
5112    AR=$ac_ct_AR
5113  fi
5114else
5115  AR="$ac_cv_prog_AR"
5116fi
5117
5118test -z "$AR" && AR=ar
5119test -z "$AR_FLAGS" && AR_FLAGS=cru
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "$ac_tool_prefix"; then
5132  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}strip; ac_word=$2
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_prog_STRIP+set}" = set; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  if test -n "$STRIP"; then
5140  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145  IFS=$as_save_IFS
5146  test -z "$as_dir" && as_dir=.
5147    for ac_exec_ext in '' $ac_executable_extensions; do
5148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151    break 2
5152  fi
5153done
5154  done
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159STRIP=$ac_cv_prog_STRIP
5160if test -n "$STRIP"; then
5161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5162$as_echo "$STRIP" >&6; }
5163else
5164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if test -z "$ac_cv_prog_STRIP"; then
5171  ac_ct_STRIP=$STRIP
5172  # Extract the first word of "strip", so it can be a program name with args.
5173set dummy strip; ac_word=$2
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  if test -n "$ac_ct_STRIP"; then
5180  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185  IFS=$as_save_IFS
5186  test -z "$as_dir" && as_dir=.
5187    for ac_exec_ext in '' $ac_executable_extensions; do
5188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189    ac_cv_prog_ac_ct_STRIP="strip"
5190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191    break 2
5192  fi
5193done
5194  done
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5200if test -n "$ac_ct_STRIP"; then
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5202$as_echo "$ac_ct_STRIP" >&6; }
5203else
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
5207
5208  if test "x$ac_ct_STRIP" = x; then
5209    STRIP=":"
5210  else
5211    case $cross_compiling:$ac_tool_warned in
5212yes:)
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217    STRIP=$ac_ct_STRIP
5218  fi
5219else
5220  STRIP="$ac_cv_prog_STRIP"
5221fi
5222
5223test -z "$STRIP" && STRIP=:
5224
5225
5226
5227
5228
5229
5230if test -n "$ac_tool_prefix"; then
5231  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5232set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if test "${ac_cv_prog_RANLIB+set}" = set; then :
5236  $as_echo_n "(cached) " >&6
5237else
5238  if test -n "$RANLIB"; then
5239  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258RANLIB=$ac_cv_prog_RANLIB
5259if test -n "$RANLIB"; then
5260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5261$as_echo "$RANLIB" >&6; }
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268fi
5269if test -z "$ac_cv_prog_RANLIB"; then
5270  ac_ct_RANLIB=$RANLIB
5271  # Extract the first word of "ranlib", so it can be a program name with args.
5272set dummy ranlib; ac_word=$2
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
5275if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  if test -n "$ac_ct_RANLIB"; then
5279  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5280else
5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284  IFS=$as_save_IFS
5285  test -z "$as_dir" && as_dir=.
5286    for ac_exec_ext in '' $ac_executable_extensions; do
5287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288    ac_cv_prog_ac_ct_RANLIB="ranlib"
5289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290    break 2
5291  fi
5292done
5293  done
5294IFS=$as_save_IFS
5295
5296fi
5297fi
5298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299if test -n "$ac_ct_RANLIB"; then
5300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5301$as_echo "$ac_ct_RANLIB" >&6; }
5302else
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304$as_echo "no" >&6; }
5305fi
5306
5307  if test "x$ac_ct_RANLIB" = x; then
5308    RANLIB=":"
5309  else
5310    case $cross_compiling:$ac_tool_warned in
5311yes:)
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314ac_tool_warned=yes ;;
5315esac
5316    RANLIB=$ac_ct_RANLIB
5317  fi
5318else
5319  RANLIB="$ac_cv_prog_RANLIB"
5320fi
5321
5322test -z "$RANLIB" && RANLIB=:
5323
5324
5325
5326
5327
5328
5329# Determine commands to create old-style static archives.
5330old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5331old_postinstall_cmds='chmod 644 $oldlib'
5332old_postuninstall_cmds=
5333
5334if test -n "$RANLIB"; then
5335  case $host_os in
5336  openbsd*)
5337    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5338    ;;
5339  *)
5340    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5341    ;;
5342  esac
5343  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5344fi
5345
5346case $host_os in
5347  darwin*)
5348    lock_old_archive_extraction=yes ;;
5349  *)
5350    lock_old_archive_extraction=no ;;
5351esac
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391# If no C compiler was specified, use CC.
5392LTCC=${LTCC-"$CC"}
5393
5394# If no C compiler flags were specified, use CFLAGS.
5395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5396
5397# Allow CC to be a program name with arguments.
5398compiler=$CC
5399
5400
5401# Check for command to grab the raw symbol name followed by C symbol from nm.
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5403$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5404if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5405  $as_echo_n "(cached) " >&6
5406else
5407
5408# These are sane defaults that work on at least a few old systems.
5409# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5410
5411# Character class describing NM global symbol codes.
5412symcode='[BCDEGRST]'
5413
5414# Regexp to match symbols that can be accessed directly from C.
5415sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5416
5417# Define system-specific variables.
5418case $host_os in
5419aix*)
5420  symcode='[BCDT]'
5421  ;;
5422cygwin* | mingw* | pw32* | cegcc*)
5423  symcode='[ABCDGISTW]'
5424  ;;
5425hpux*)
5426  if test "$host_cpu" = ia64; then
5427    symcode='[ABCDEGRST]'
5428  fi
5429  ;;
5430irix* | nonstopux*)
5431  symcode='[BCDEGRST]'
5432  ;;
5433osf*)
5434  symcode='[BCDEGQRST]'
5435  ;;
5436solaris*)
5437  symcode='[BDRT]'
5438  ;;
5439sco3.2v5*)
5440  symcode='[DT]'
5441  ;;
5442sysv4.2uw2*)
5443  symcode='[DT]'
5444  ;;
5445sysv5* | sco5v6* | unixware* | OpenUNIX*)
5446  symcode='[ABDT]'
5447  ;;
5448sysv4)
5449  symcode='[DFNSTU]'
5450  ;;
5451esac
5452
5453# If we're using GNU nm, then use its standard symbol codes.
5454case `$NM -V 2>&1` in
5455*GNU* | *'with BFD'*)
5456  symcode='[ABCDGIRSTW]' ;;
5457esac
5458
5459# Transform an extracted symbol line into a proper C declaration.
5460# Some systems (esp. on ia64) link data and code symbols differently,
5461# so use this general approach.
5462lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5463
5464# Transform an extracted symbol line into symbol name and symbol address
5465lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5466lt_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'"
5467
5468# Handle CRLF in mingw tool chain
5469opt_cr=
5470case $build_os in
5471mingw*)
5472  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5473  ;;
5474esac
5475
5476# Try without a prefix underscore, then with it.
5477for ac_symprfx in "" "_"; do
5478
5479  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5480  symxfrm="\\1 $ac_symprfx\\2 \\2"
5481
5482  # Write the raw and C identifiers.
5483  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5484    # Fake it for dumpbin and say T for any non-static function
5485    # and D for any global variable.
5486    # Also find C++ and __fastcall symbols from MSVC++,
5487    # which start with @ or ?.
5488    lt_cv_sys_global_symbol_pipe="$AWK '"\
5489"     {last_section=section; section=\$ 3};"\
5490"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5491"     \$ 0!~/External *\|/{next};"\
5492"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5493"     {if(hide[section]) next};"\
5494"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5495"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5496"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5497"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5498"     ' prfx=^$ac_symprfx"
5499  else
5500    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5501  fi
5502
5503  # Check to see that the pipe works correctly.
5504  pipe_works=no
5505
5506  rm -f conftest*
5507  cat > conftest.$ac_ext <<_LT_EOF
5508#ifdef __cplusplus
5509extern "C" {
5510#endif
5511char nm_test_var;
5512void nm_test_func(void);
5513void nm_test_func(void){}
5514#ifdef __cplusplus
5515}
5516#endif
5517int main(){nm_test_var='a';nm_test_func();return(0);}
5518_LT_EOF
5519
5520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5521  (eval $ac_compile) 2>&5
5522  ac_status=$?
5523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524  test $ac_status = 0; }; then
5525    # Now try to grab the symbols.
5526    nlist=conftest.nm
5527    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5528  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5529  ac_status=$?
5530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531  test $ac_status = 0; } && test -s "$nlist"; then
5532      # Try sorting and uniquifying the output.
5533      if sort "$nlist" | uniq > "$nlist"T; then
5534	mv -f "$nlist"T "$nlist"
5535      else
5536	rm -f "$nlist"T
5537      fi
5538
5539      # Make sure that we snagged all the symbols we need.
5540      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5541	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5542	  cat <<_LT_EOF > conftest.$ac_ext
5543#ifdef __cplusplus
5544extern "C" {
5545#endif
5546
5547_LT_EOF
5548	  # Now generate the symbol file.
5549	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5550
5551	  cat <<_LT_EOF >> conftest.$ac_ext
5552
5553/* The mapping between symbol names and symbols.  */
5554const struct {
5555  const char *name;
5556  void       *address;
5557}
5558lt__PROGRAM__LTX_preloaded_symbols[] =
5559{
5560  { "@PROGRAM@", (void *) 0 },
5561_LT_EOF
5562	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5563	  cat <<\_LT_EOF >> conftest.$ac_ext
5564  {0, (void *) 0}
5565};
5566
5567/* This works around a problem in FreeBSD linker */
5568#ifdef FREEBSD_WORKAROUND
5569static const void *lt_preloaded_setup() {
5570  return lt__PROGRAM__LTX_preloaded_symbols;
5571}
5572#endif
5573
5574#ifdef __cplusplus
5575}
5576#endif
5577_LT_EOF
5578	  # Now try linking the two files.
5579	  mv conftest.$ac_objext conftstm.$ac_objext
5580	  lt_save_LIBS="$LIBS"
5581	  lt_save_CFLAGS="$CFLAGS"
5582	  LIBS="conftstm.$ac_objext"
5583	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5584	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5585  (eval $ac_link) 2>&5
5586  ac_status=$?
5587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5589	    pipe_works=yes
5590	  fi
5591	  LIBS="$lt_save_LIBS"
5592	  CFLAGS="$lt_save_CFLAGS"
5593	else
5594	  echo "cannot find nm_test_func in $nlist" >&5
5595	fi
5596      else
5597	echo "cannot find nm_test_var in $nlist" >&5
5598      fi
5599    else
5600      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5601    fi
5602  else
5603    echo "$progname: failed program was:" >&5
5604    cat conftest.$ac_ext >&5
5605  fi
5606  rm -rf conftest* conftst*
5607
5608  # Do not use the global_symbol_pipe unless it works.
5609  if test "$pipe_works" = yes; then
5610    break
5611  else
5612    lt_cv_sys_global_symbol_pipe=
5613  fi
5614done
5615
5616fi
5617
5618if test -z "$lt_cv_sys_global_symbol_pipe"; then
5619  lt_cv_sys_global_symbol_to_cdecl=
5620fi
5621if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5623$as_echo "failed" >&6; }
5624else
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5626$as_echo "ok" >&6; }
5627fi
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651# Check whether --enable-libtool-lock was given.
5652if test "${enable_libtool_lock+set}" = set; then :
5653  enableval=$enable_libtool_lock;
5654fi
5655
5656test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5657
5658# Some flags need to be propagated to the compiler or linker for good
5659# libtool support.
5660case $host in
5661ia64-*-hpux*)
5662  # Find out which ABI we are using.
5663  echo 'int i;' > conftest.$ac_ext
5664  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5665  (eval $ac_compile) 2>&5
5666  ac_status=$?
5667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668  test $ac_status = 0; }; then
5669    case `/usr/bin/file conftest.$ac_objext` in
5670      *ELF-32*)
5671	HPUX_IA64_MODE="32"
5672	;;
5673      *ELF-64*)
5674	HPUX_IA64_MODE="64"
5675	;;
5676    esac
5677  fi
5678  rm -rf conftest*
5679  ;;
5680*-*-irix6*)
5681  # Find out which ABI we are using.
5682  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5683  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684  (eval $ac_compile) 2>&5
5685  ac_status=$?
5686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687  test $ac_status = 0; }; then
5688    if test "$lt_cv_prog_gnu_ld" = yes; then
5689      case `/usr/bin/file conftest.$ac_objext` in
5690	*32-bit*)
5691	  LD="${LD-ld} -melf32bsmip"
5692	  ;;
5693	*N32*)
5694	  LD="${LD-ld} -melf32bmipn32"
5695	  ;;
5696	*64-bit*)
5697	  LD="${LD-ld} -melf64bmip"
5698	;;
5699      esac
5700    else
5701      case `/usr/bin/file conftest.$ac_objext` in
5702	*32-bit*)
5703	  LD="${LD-ld} -32"
5704	  ;;
5705	*N32*)
5706	  LD="${LD-ld} -n32"
5707	  ;;
5708	*64-bit*)
5709	  LD="${LD-ld} -64"
5710	  ;;
5711      esac
5712    fi
5713  fi
5714  rm -rf conftest*
5715  ;;
5716
5717x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5718s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5719  # Find out which ABI we are using.
5720  echo 'int i;' > conftest.$ac_ext
5721  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5722  (eval $ac_compile) 2>&5
5723  ac_status=$?
5724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725  test $ac_status = 0; }; then
5726    case `/usr/bin/file conftest.o` in
5727      *32-bit*)
5728	case $host in
5729	  x86_64-*kfreebsd*-gnu)
5730	    LD="${LD-ld} -m elf_i386_fbsd"
5731	    ;;
5732	  x86_64-*linux*)
5733	    LD="${LD-ld} -m elf_i386"
5734	    ;;
5735	  ppc64-*linux*|powerpc64-*linux*)
5736	    LD="${LD-ld} -m elf32ppclinux"
5737	    ;;
5738	  s390x-*linux*)
5739	    LD="${LD-ld} -m elf_s390"
5740	    ;;
5741	  sparc64-*linux*)
5742	    LD="${LD-ld} -m elf32_sparc"
5743	    ;;
5744	esac
5745	;;
5746      *64-bit*)
5747	case $host in
5748	  x86_64-*kfreebsd*-gnu)
5749	    LD="${LD-ld} -m elf_x86_64_fbsd"
5750	    ;;
5751	  x86_64-*linux*)
5752	    LD="${LD-ld} -m elf_x86_64"
5753	    ;;
5754	  ppc*-*linux*|powerpc*-*linux*)
5755	    LD="${LD-ld} -m elf64ppc"
5756	    ;;
5757	  s390*-*linux*|s390*-*tpf*)
5758	    LD="${LD-ld} -m elf64_s390"
5759	    ;;
5760	  sparc*-*linux*)
5761	    LD="${LD-ld} -m elf64_sparc"
5762	    ;;
5763	esac
5764	;;
5765    esac
5766  fi
5767  rm -rf conftest*
5768  ;;
5769
5770*-*-sco3.2v5*)
5771  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772  SAVE_CFLAGS="$CFLAGS"
5773  CFLAGS="$CFLAGS -belf"
5774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5775$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5776if test "${lt_cv_cc_needs_belf+set}" = set; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  ac_ext=c
5780ac_cpp='$CPP $CPPFLAGS'
5781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h.  */
5787
5788int
5789main ()
5790{
5791
5792  ;
5793  return 0;
5794}
5795_ACEOF
5796if ac_fn_c_try_link "$LINENO"; then :
5797  lt_cv_cc_needs_belf=yes
5798else
5799  lt_cv_cc_needs_belf=no
5800fi
5801rm -f core conftest.err conftest.$ac_objext \
5802    conftest$ac_exeext conftest.$ac_ext
5803     ac_ext=c
5804ac_cpp='$CPP $CPPFLAGS'
5805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5811$as_echo "$lt_cv_cc_needs_belf" >&6; }
5812  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5813    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5814    CFLAGS="$SAVE_CFLAGS"
5815  fi
5816  ;;
5817sparc*-*solaris*)
5818  # Find out which ABI we are using.
5819  echo 'int i;' > conftest.$ac_ext
5820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5821  (eval $ac_compile) 2>&5
5822  ac_status=$?
5823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824  test $ac_status = 0; }; then
5825    case `/usr/bin/file conftest.o` in
5826    *64-bit*)
5827      case $lt_cv_prog_gnu_ld in
5828      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5829      *)
5830	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5831	  LD="${LD-ld} -64"
5832	fi
5833	;;
5834      esac
5835      ;;
5836    esac
5837  fi
5838  rm -rf conftest*
5839  ;;
5840esac
5841
5842need_locks="$enable_libtool_lock"
5843
5844
5845  case $host_os in
5846    rhapsody* | darwin*)
5847    if test -n "$ac_tool_prefix"; then
5848  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5849set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  if test -n "$DSYMUTIL"; then
5856  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861  IFS=$as_save_IFS
5862  test -z "$as_dir" && as_dir=.
5863    for ac_exec_ext in '' $ac_executable_extensions; do
5864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867    break 2
5868  fi
5869done
5870  done
5871IFS=$as_save_IFS
5872
5873fi
5874fi
5875DSYMUTIL=$ac_cv_prog_DSYMUTIL
5876if test -n "$DSYMUTIL"; then
5877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5878$as_echo "$DSYMUTIL" >&6; }
5879else
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881$as_echo "no" >&6; }
5882fi
5883
5884
5885fi
5886if test -z "$ac_cv_prog_DSYMUTIL"; then
5887  ac_ct_DSYMUTIL=$DSYMUTIL
5888  # Extract the first word of "dsymutil", so it can be a program name with args.
5889set dummy dsymutil; ac_word=$2
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891$as_echo_n "checking for $ac_word... " >&6; }
5892if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5893  $as_echo_n "(cached) " >&6
5894else
5895  if test -n "$ac_ct_DSYMUTIL"; then
5896  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901  IFS=$as_save_IFS
5902  test -z "$as_dir" && as_dir=.
5903    for ac_exec_ext in '' $ac_executable_extensions; do
5904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907    break 2
5908  fi
5909done
5910  done
5911IFS=$as_save_IFS
5912
5913fi
5914fi
5915ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5916if test -n "$ac_ct_DSYMUTIL"; then
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5918$as_echo "$ac_ct_DSYMUTIL" >&6; }
5919else
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921$as_echo "no" >&6; }
5922fi
5923
5924  if test "x$ac_ct_DSYMUTIL" = x; then
5925    DSYMUTIL=":"
5926  else
5927    case $cross_compiling:$ac_tool_warned in
5928yes:)
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5931ac_tool_warned=yes ;;
5932esac
5933    DSYMUTIL=$ac_ct_DSYMUTIL
5934  fi
5935else
5936  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5937fi
5938
5939    if test -n "$ac_tool_prefix"; then
5940  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5941set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -n "$NMEDIT"; then
5948  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962  done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967NMEDIT=$ac_cv_prog_NMEDIT
5968if test -n "$NMEDIT"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5970$as_echo "$NMEDIT" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976
5977fi
5978if test -z "$ac_cv_prog_NMEDIT"; then
5979  ac_ct_NMEDIT=$NMEDIT
5980  # Extract the first word of "nmedit", so it can be a program name with args.
5981set dummy nmedit; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  if test -n "$ac_ct_NMEDIT"; then
5988  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_exec_ext in '' $ac_executable_extensions; do
5996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002  done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6008if test -n "$ac_ct_NMEDIT"; then
6009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6010$as_echo "$ac_ct_NMEDIT" >&6; }
6011else
6012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016  if test "x$ac_ct_NMEDIT" = x; then
6017    NMEDIT=":"
6018  else
6019    case $cross_compiling:$ac_tool_warned in
6020yes:)
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023ac_tool_warned=yes ;;
6024esac
6025    NMEDIT=$ac_ct_NMEDIT
6026  fi
6027else
6028  NMEDIT="$ac_cv_prog_NMEDIT"
6029fi
6030
6031    if test -n "$ac_tool_prefix"; then
6032  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}lipo; ac_word=$2
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035$as_echo_n "checking for $ac_word... " >&6; }
6036if test "${ac_cv_prog_LIPO+set}" = set; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  if test -n "$LIPO"; then
6040  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047    for ac_exec_ext in '' $ac_executable_extensions; do
6048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054  done
6055IFS=$as_save_IFS
6056
6057fi
6058fi
6059LIPO=$ac_cv_prog_LIPO
6060if test -n "$LIPO"; then
6061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6062$as_echo "$LIPO" >&6; }
6063else
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066fi
6067
6068
6069fi
6070if test -z "$ac_cv_prog_LIPO"; then
6071  ac_ct_LIPO=$LIPO
6072  # Extract the first word of "lipo", so it can be a program name with args.
6073set dummy lipo; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
6076if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  if test -n "$ac_ct_LIPO"; then
6080  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085  IFS=$as_save_IFS
6086  test -z "$as_dir" && as_dir=.
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089    ac_cv_prog_ac_ct_LIPO="lipo"
6090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091    break 2
6092  fi
6093done
6094  done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6100if test -n "$ac_ct_LIPO"; then
6101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6102$as_echo "$ac_ct_LIPO" >&6; }
6103else
6104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108  if test "x$ac_ct_LIPO" = x; then
6109    LIPO=":"
6110  else
6111    case $cross_compiling:$ac_tool_warned in
6112yes:)
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115ac_tool_warned=yes ;;
6116esac
6117    LIPO=$ac_ct_LIPO
6118  fi
6119else
6120  LIPO="$ac_cv_prog_LIPO"
6121fi
6122
6123    if test -n "$ac_tool_prefix"; then
6124  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6125set dummy ${ac_tool_prefix}otool; ac_word=$2
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if test "${ac_cv_prog_OTOOL+set}" = set; then :
6129  $as_echo_n "(cached) " >&6
6130else
6131  if test -n "$OTOOL"; then
6132  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  test -z "$as_dir" && as_dir=.
6139    for ac_exec_ext in '' $ac_executable_extensions; do
6140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146  done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151OTOOL=$ac_cv_prog_OTOOL
6152if test -n "$OTOOL"; then
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6154$as_echo "$OTOOL" >&6; }
6155else
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161fi
6162if test -z "$ac_cv_prog_OTOOL"; then
6163  ac_ct_OTOOL=$OTOOL
6164  # Extract the first word of "otool", so it can be a program name with args.
6165set dummy otool; ac_word=$2
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
6168if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  if test -n "$ac_ct_OTOOL"; then
6172  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177  IFS=$as_save_IFS
6178  test -z "$as_dir" && as_dir=.
6179    for ac_exec_ext in '' $ac_executable_extensions; do
6180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181    ac_cv_prog_ac_ct_OTOOL="otool"
6182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183    break 2
6184  fi
6185done
6186  done
6187IFS=$as_save_IFS
6188
6189fi
6190fi
6191ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6192if test -n "$ac_ct_OTOOL"; then
6193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6194$as_echo "$ac_ct_OTOOL" >&6; }
6195else
6196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197$as_echo "no" >&6; }
6198fi
6199
6200  if test "x$ac_ct_OTOOL" = x; then
6201    OTOOL=":"
6202  else
6203    case $cross_compiling:$ac_tool_warned in
6204yes:)
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207ac_tool_warned=yes ;;
6208esac
6209    OTOOL=$ac_ct_OTOOL
6210  fi
6211else
6212  OTOOL="$ac_cv_prog_OTOOL"
6213fi
6214
6215    if test -n "$ac_tool_prefix"; then
6216  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}otool64; ac_word=$2
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219$as_echo_n "checking for $ac_word... " >&6; }
6220if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6221  $as_echo_n "(cached) " >&6
6222else
6223  if test -n "$OTOOL64"; then
6224  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231    for ac_exec_ext in '' $ac_executable_extensions; do
6232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238  done
6239IFS=$as_save_IFS
6240
6241fi
6242fi
6243OTOOL64=$ac_cv_prog_OTOOL64
6244if test -n "$OTOOL64"; then
6245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6246$as_echo "$OTOOL64" >&6; }
6247else
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249$as_echo "no" >&6; }
6250fi
6251
6252
6253fi
6254if test -z "$ac_cv_prog_OTOOL64"; then
6255  ac_ct_OTOOL64=$OTOOL64
6256  # Extract the first word of "otool64", so it can be a program name with args.
6257set dummy otool64; ac_word=$2
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
6260if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  if test -n "$ac_ct_OTOOL64"; then
6264  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269  IFS=$as_save_IFS
6270  test -z "$as_dir" && as_dir=.
6271    for ac_exec_ext in '' $ac_executable_extensions; do
6272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273    ac_cv_prog_ac_ct_OTOOL64="otool64"
6274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275    break 2
6276  fi
6277done
6278  done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6284if test -n "$ac_ct_OTOOL64"; then
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6286$as_echo "$ac_ct_OTOOL64" >&6; }
6287else
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289$as_echo "no" >&6; }
6290fi
6291
6292  if test "x$ac_ct_OTOOL64" = x; then
6293    OTOOL64=":"
6294  else
6295    case $cross_compiling:$ac_tool_warned in
6296yes:)
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299ac_tool_warned=yes ;;
6300esac
6301    OTOOL64=$ac_ct_OTOOL64
6302  fi
6303else
6304  OTOOL64="$ac_cv_prog_OTOOL64"
6305fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6334$as_echo_n "checking for -single_module linker flag... " >&6; }
6335if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  lt_cv_apple_cc_single_mod=no
6339      if test -z "${LT_MULTI_MODULE}"; then
6340	# By default we will add the -single_module flag. You can override
6341	# by either setting the environment variable LT_MULTI_MODULE
6342	# non-empty at configure time, or by adding -multi_module to the
6343	# link flags.
6344	rm -rf libconftest.dylib*
6345	echo "int foo(void){return 1;}" > conftest.c
6346	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6347-dynamiclib -Wl,-single_module conftest.c" >&5
6348	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6349	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6350        _lt_result=$?
6351	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6352	  lt_cv_apple_cc_single_mod=yes
6353	else
6354	  cat conftest.err >&5
6355	fi
6356	rm -rf libconftest.dylib*
6357	rm -f conftest.*
6358      fi
6359fi
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6361$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6363$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6364if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  lt_cv_ld_exported_symbols_list=no
6368      save_LDFLAGS=$LDFLAGS
6369      echo "_main" > conftest.sym
6370      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373
6374int
6375main ()
6376{
6377
6378  ;
6379  return 0;
6380}
6381_ACEOF
6382if ac_fn_c_try_link "$LINENO"; then :
6383  lt_cv_ld_exported_symbols_list=yes
6384else
6385  lt_cv_ld_exported_symbols_list=no
6386fi
6387rm -f core conftest.err conftest.$ac_objext \
6388    conftest$ac_exeext conftest.$ac_ext
6389	LDFLAGS="$save_LDFLAGS"
6390
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6393$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6395$as_echo_n "checking for -force_load linker flag... " >&6; }
6396if test "${lt_cv_ld_force_load+set}" = set; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  lt_cv_ld_force_load=no
6400      cat > conftest.c << _LT_EOF
6401int forced_loaded() { return 2;}
6402_LT_EOF
6403      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6404      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6405      echo "$AR cru libconftest.a conftest.o" >&5
6406      $AR cru libconftest.a conftest.o 2>&5
6407      echo "$RANLIB libconftest.a" >&5
6408      $RANLIB libconftest.a 2>&5
6409      cat > conftest.c << _LT_EOF
6410int main() { return 0;}
6411_LT_EOF
6412      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6413      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6414      _lt_result=$?
6415      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6416	lt_cv_ld_force_load=yes
6417      else
6418	cat conftest.err >&5
6419      fi
6420        rm -f conftest.err libconftest.a conftest conftest.c
6421        rm -rf conftest.dSYM
6422
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6425$as_echo "$lt_cv_ld_force_load" >&6; }
6426    case $host_os in
6427    rhapsody* | darwin1.[012])
6428      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6429    darwin1.*)
6430      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6431    darwin*) # darwin 5.x on
6432      # if running on 10.5 or later, the deployment target defaults
6433      # to the OS version, if on x86, and 10.4, the deployment
6434      # target defaults to 10.4. Don't you love it?
6435      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6436	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6437	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6438	10.[012]*)
6439	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6440	10.*)
6441	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6442      esac
6443    ;;
6444  esac
6445    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6446      _lt_dar_single_mod='$single_module'
6447    fi
6448    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6449      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6450    else
6451      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6452    fi
6453    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6454      _lt_dsymutil='~$DSYMUTIL $lib || :'
6455    else
6456      _lt_dsymutil=
6457    fi
6458    ;;
6459  esac
6460
6461ac_ext=c
6462ac_cpp='$CPP $CPPFLAGS'
6463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6467$as_echo_n "checking how to run the C preprocessor... " >&6; }
6468# On Suns, sometimes $CPP names a directory.
6469if test -n "$CPP" && test -d "$CPP"; then
6470  CPP=
6471fi
6472if test -z "$CPP"; then
6473  if test "${ac_cv_prog_CPP+set}" = set; then :
6474  $as_echo_n "(cached) " >&6
6475else
6476      # Double quotes because CPP needs to be expanded
6477    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6478    do
6479      ac_preproc_ok=false
6480for ac_c_preproc_warn_flag in '' yes
6481do
6482  # Use a header file that comes with gcc, so configuring glibc
6483  # with a fresh cross-compiler works.
6484  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6485  # <limits.h> exists even on freestanding compilers.
6486  # On the NeXT, cc -E runs the code through the compiler's parser,
6487  # not just through cpp. "Syntax error" is here to catch this case.
6488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h.  */
6490#ifdef __STDC__
6491# include <limits.h>
6492#else
6493# include <assert.h>
6494#endif
6495		     Syntax error
6496_ACEOF
6497if ac_fn_c_try_cpp "$LINENO"; then :
6498
6499else
6500  # Broken: fails on valid input.
6501continue
6502fi
6503rm -f conftest.err conftest.$ac_ext
6504
6505  # OK, works on sane cases.  Now check whether nonexistent headers
6506  # can be detected and how.
6507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h.  */
6509#include <ac_nonexistent.h>
6510_ACEOF
6511if ac_fn_c_try_cpp "$LINENO"; then :
6512  # Broken: success on invalid input.
6513continue
6514else
6515  # Passes both tests.
6516ac_preproc_ok=:
6517break
6518fi
6519rm -f conftest.err conftest.$ac_ext
6520
6521done
6522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6523rm -f conftest.err conftest.$ac_ext
6524if $ac_preproc_ok; then :
6525  break
6526fi
6527
6528    done
6529    ac_cv_prog_CPP=$CPP
6530
6531fi
6532  CPP=$ac_cv_prog_CPP
6533else
6534  ac_cv_prog_CPP=$CPP
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6537$as_echo "$CPP" >&6; }
6538ac_preproc_ok=false
6539for ac_c_preproc_warn_flag in '' yes
6540do
6541  # Use a header file that comes with gcc, so configuring glibc
6542  # with a fresh cross-compiler works.
6543  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6544  # <limits.h> exists even on freestanding compilers.
6545  # On the NeXT, cc -E runs the code through the compiler's parser,
6546  # not just through cpp. "Syntax error" is here to catch this case.
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549#ifdef __STDC__
6550# include <limits.h>
6551#else
6552# include <assert.h>
6553#endif
6554		     Syntax error
6555_ACEOF
6556if ac_fn_c_try_cpp "$LINENO"; then :
6557
6558else
6559  # Broken: fails on valid input.
6560continue
6561fi
6562rm -f conftest.err conftest.$ac_ext
6563
6564  # OK, works on sane cases.  Now check whether nonexistent headers
6565  # can be detected and how.
6566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567/* end confdefs.h.  */
6568#include <ac_nonexistent.h>
6569_ACEOF
6570if ac_fn_c_try_cpp "$LINENO"; then :
6571  # Broken: success on invalid input.
6572continue
6573else
6574  # Passes both tests.
6575ac_preproc_ok=:
6576break
6577fi
6578rm -f conftest.err conftest.$ac_ext
6579
6580done
6581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6582rm -f conftest.err conftest.$ac_ext
6583if $ac_preproc_ok; then :
6584
6585else
6586  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6588as_fn_error "C preprocessor \"$CPP\" fails sanity check
6589See \`config.log' for more details." "$LINENO" 5; }
6590fi
6591
6592ac_ext=c
6593ac_cpp='$CPP $CPPFLAGS'
6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597
6598
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6600$as_echo_n "checking for ANSI C header files... " >&6; }
6601if test "${ac_cv_header_stdc+set}" = set; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605/* end confdefs.h.  */
6606#include <stdlib.h>
6607#include <stdarg.h>
6608#include <string.h>
6609#include <float.h>
6610
6611int
6612main ()
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620  ac_cv_header_stdc=yes
6621else
6622  ac_cv_header_stdc=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625
6626if test $ac_cv_header_stdc = yes; then
6627  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h.  */
6630#include <string.h>
6631
6632_ACEOF
6633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634  $EGREP "memchr" >/dev/null 2>&1; then :
6635
6636else
6637  ac_cv_header_stdc=no
6638fi
6639rm -f conftest*
6640
6641fi
6642
6643if test $ac_cv_header_stdc = yes; then
6644  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647#include <stdlib.h>
6648
6649_ACEOF
6650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651  $EGREP "free" >/dev/null 2>&1; then :
6652
6653else
6654  ac_cv_header_stdc=no
6655fi
6656rm -f conftest*
6657
6658fi
6659
6660if test $ac_cv_header_stdc = yes; then
6661  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6662  if test "$cross_compiling" = yes; then :
6663  :
6664else
6665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667#include <ctype.h>
6668#include <stdlib.h>
6669#if ((' ' & 0x0FF) == 0x020)
6670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6672#else
6673# define ISLOWER(c) \
6674		   (('a' <= (c) && (c) <= 'i') \
6675		     || ('j' <= (c) && (c) <= 'r') \
6676		     || ('s' <= (c) && (c) <= 'z'))
6677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6678#endif
6679
6680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6681int
6682main ()
6683{
6684  int i;
6685  for (i = 0; i < 256; i++)
6686    if (XOR (islower (i), ISLOWER (i))
6687	|| toupper (i) != TOUPPER (i))
6688      return 2;
6689  return 0;
6690}
6691_ACEOF
6692if ac_fn_c_try_run "$LINENO"; then :
6693
6694else
6695  ac_cv_header_stdc=no
6696fi
6697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6698  conftest.$ac_objext conftest.beam conftest.$ac_ext
6699fi
6700
6701fi
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6704$as_echo "$ac_cv_header_stdc" >&6; }
6705if test $ac_cv_header_stdc = yes; then
6706
6707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6708
6709fi
6710
6711# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6713		  inttypes.h stdint.h unistd.h
6714do :
6715  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6716ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6717"
6718eval as_val=\$$as_ac_Header
6719   if test "x$as_val" = x""yes; then :
6720  cat >>confdefs.h <<_ACEOF
6721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6722_ACEOF
6723
6724fi
6725
6726done
6727
6728
6729for ac_header in dlfcn.h
6730do :
6731  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6732"
6733if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6734  cat >>confdefs.h <<_ACEOF
6735#define HAVE_DLFCN_H 1
6736_ACEOF
6737
6738fi
6739
6740done
6741
6742
6743
6744
6745
6746# Set options
6747enable_dlopen=yes
6748enable_win32_dll=yes
6749
6750case $host in
6751*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6752  if test -n "$ac_tool_prefix"; then
6753  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6754set dummy ${ac_tool_prefix}as; ac_word=$2
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756$as_echo_n "checking for $ac_word... " >&6; }
6757if test "${ac_cv_prog_AS+set}" = set; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  if test -n "$AS"; then
6761  ac_cv_prog_AS="$AS" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766  IFS=$as_save_IFS
6767  test -z "$as_dir" && as_dir=.
6768    for ac_exec_ext in '' $ac_executable_extensions; do
6769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770    ac_cv_prog_AS="${ac_tool_prefix}as"
6771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775  done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780AS=$ac_cv_prog_AS
6781if test -n "$AS"; then
6782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6783$as_echo "$AS" >&6; }
6784else
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786$as_echo "no" >&6; }
6787fi
6788
6789
6790fi
6791if test -z "$ac_cv_prog_AS"; then
6792  ac_ct_AS=$AS
6793  # Extract the first word of "as", so it can be a program name with args.
6794set dummy as; ac_word=$2
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796$as_echo_n "checking for $ac_word... " >&6; }
6797if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  if test -n "$ac_ct_AS"; then
6801  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  test -z "$as_dir" && as_dir=.
6808    for ac_exec_ext in '' $ac_executable_extensions; do
6809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810    ac_cv_prog_ac_ct_AS="as"
6811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812    break 2
6813  fi
6814done
6815  done
6816IFS=$as_save_IFS
6817
6818fi
6819fi
6820ac_ct_AS=$ac_cv_prog_ac_ct_AS
6821if test -n "$ac_ct_AS"; then
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6823$as_echo "$ac_ct_AS" >&6; }
6824else
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826$as_echo "no" >&6; }
6827fi
6828
6829  if test "x$ac_ct_AS" = x; then
6830    AS="false"
6831  else
6832    case $cross_compiling:$ac_tool_warned in
6833yes:)
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836ac_tool_warned=yes ;;
6837esac
6838    AS=$ac_ct_AS
6839  fi
6840else
6841  AS="$ac_cv_prog_AS"
6842fi
6843
6844  if test -n "$ac_tool_prefix"; then
6845  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6846set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848$as_echo_n "checking for $ac_word... " >&6; }
6849if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6850  $as_echo_n "(cached) " >&6
6851else
6852  if test -n "$DLLTOOL"; then
6853  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858  IFS=$as_save_IFS
6859  test -z "$as_dir" && as_dir=.
6860    for ac_exec_ext in '' $ac_executable_extensions; do
6861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864    break 2
6865  fi
6866done
6867  done
6868IFS=$as_save_IFS
6869
6870fi
6871fi
6872DLLTOOL=$ac_cv_prog_DLLTOOL
6873if test -n "$DLLTOOL"; then
6874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6875$as_echo "$DLLTOOL" >&6; }
6876else
6877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878$as_echo "no" >&6; }
6879fi
6880
6881
6882fi
6883if test -z "$ac_cv_prog_DLLTOOL"; then
6884  ac_ct_DLLTOOL=$DLLTOOL
6885  # Extract the first word of "dlltool", so it can be a program name with args.
6886set dummy dlltool; ac_word=$2
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888$as_echo_n "checking for $ac_word... " >&6; }
6889if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6890  $as_echo_n "(cached) " >&6
6891else
6892  if test -n "$ac_ct_DLLTOOL"; then
6893  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900    for ac_exec_ext in '' $ac_executable_extensions; do
6901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907  done
6908IFS=$as_save_IFS
6909
6910fi
6911fi
6912ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6913if test -n "$ac_ct_DLLTOOL"; then
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6915$as_echo "$ac_ct_DLLTOOL" >&6; }
6916else
6917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918$as_echo "no" >&6; }
6919fi
6920
6921  if test "x$ac_ct_DLLTOOL" = x; then
6922    DLLTOOL="false"
6923  else
6924    case $cross_compiling:$ac_tool_warned in
6925yes:)
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928ac_tool_warned=yes ;;
6929esac
6930    DLLTOOL=$ac_ct_DLLTOOL
6931  fi
6932else
6933  DLLTOOL="$ac_cv_prog_DLLTOOL"
6934fi
6935
6936  if test -n "$ac_tool_prefix"; then
6937  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6938set dummy ${ac_tool_prefix}objdump; ac_word=$2
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940$as_echo_n "checking for $ac_word... " >&6; }
6941if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  if test -n "$OBJDUMP"; then
6945  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950  IFS=$as_save_IFS
6951  test -z "$as_dir" && as_dir=.
6952    for ac_exec_ext in '' $ac_executable_extensions; do
6953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956    break 2
6957  fi
6958done
6959  done
6960IFS=$as_save_IFS
6961
6962fi
6963fi
6964OBJDUMP=$ac_cv_prog_OBJDUMP
6965if test -n "$OBJDUMP"; then
6966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6967$as_echo "$OBJDUMP" >&6; }
6968else
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970$as_echo "no" >&6; }
6971fi
6972
6973
6974fi
6975if test -z "$ac_cv_prog_OBJDUMP"; then
6976  ac_ct_OBJDUMP=$OBJDUMP
6977  # Extract the first word of "objdump", so it can be a program name with args.
6978set dummy objdump; ac_word=$2
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980$as_echo_n "checking for $ac_word... " >&6; }
6981if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984  if test -n "$ac_ct_OBJDUMP"; then
6985  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  test -z "$as_dir" && as_dir=.
6992    for ac_exec_ext in '' $ac_executable_extensions; do
6993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996    break 2
6997  fi
6998done
6999  done
7000IFS=$as_save_IFS
7001
7002fi
7003fi
7004ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7005if test -n "$ac_ct_OBJDUMP"; then
7006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7007$as_echo "$ac_ct_OBJDUMP" >&6; }
7008else
7009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010$as_echo "no" >&6; }
7011fi
7012
7013  if test "x$ac_ct_OBJDUMP" = x; then
7014    OBJDUMP="false"
7015  else
7016    case $cross_compiling:$ac_tool_warned in
7017yes:)
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7020ac_tool_warned=yes ;;
7021esac
7022    OBJDUMP=$ac_ct_OBJDUMP
7023  fi
7024else
7025  OBJDUMP="$ac_cv_prog_OBJDUMP"
7026fi
7027
7028  ;;
7029esac
7030
7031test -z "$AS" && AS=as
7032
7033
7034
7035
7036
7037test -z "$DLLTOOL" && DLLTOOL=dlltool
7038
7039
7040
7041
7042
7043test -z "$OBJDUMP" && OBJDUMP=objdump
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053            # Check whether --enable-shared was given.
7054if test "${enable_shared+set}" = set; then :
7055  enableval=$enable_shared; p=${PACKAGE-default}
7056    case $enableval in
7057    yes) enable_shared=yes ;;
7058    no) enable_shared=no ;;
7059    *)
7060      enable_shared=no
7061      # Look at the argument we got.  We use all the common list separators.
7062      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7063      for pkg in $enableval; do
7064	IFS="$lt_save_ifs"
7065	if test "X$pkg" = "X$p"; then
7066	  enable_shared=yes
7067	fi
7068      done
7069      IFS="$lt_save_ifs"
7070      ;;
7071    esac
7072else
7073  enable_shared=yes
7074fi
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084  # Check whether --enable-static was given.
7085if test "${enable_static+set}" = set; then :
7086  enableval=$enable_static; p=${PACKAGE-default}
7087    case $enableval in
7088    yes) enable_static=yes ;;
7089    no) enable_static=no ;;
7090    *)
7091     enable_static=no
7092      # Look at the argument we got.  We use all the common list separators.
7093      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7094      for pkg in $enableval; do
7095	IFS="$lt_save_ifs"
7096	if test "X$pkg" = "X$p"; then
7097	  enable_static=yes
7098	fi
7099      done
7100      IFS="$lt_save_ifs"
7101      ;;
7102    esac
7103else
7104  enable_static=yes
7105fi
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116# Check whether --with-pic was given.
7117if test "${with_pic+set}" = set; then :
7118  withval=$with_pic; pic_mode="$withval"
7119else
7120  pic_mode=default
7121fi
7122
7123
7124test -z "$pic_mode" && pic_mode=default
7125
7126
7127
7128
7129
7130
7131
7132  # Check whether --enable-fast-install was given.
7133if test "${enable_fast_install+set}" = set; then :
7134  enableval=$enable_fast_install; p=${PACKAGE-default}
7135    case $enableval in
7136    yes) enable_fast_install=yes ;;
7137    no) enable_fast_install=no ;;
7138    *)
7139      enable_fast_install=no
7140      # Look at the argument we got.  We use all the common list separators.
7141      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7142      for pkg in $enableval; do
7143	IFS="$lt_save_ifs"
7144	if test "X$pkg" = "X$p"; then
7145	  enable_fast_install=yes
7146	fi
7147      done
7148      IFS="$lt_save_ifs"
7149      ;;
7150    esac
7151else
7152  enable_fast_install=yes
7153fi
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165# This can be used to rebuild libtool when needed
7166LIBTOOL_DEPS="$ltmain"
7167
7168# Always use our own libtool.
7169LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196test -z "$LN_S" && LN_S="ln -s"
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211if test -n "${ZSH_VERSION+set}" ; then
7212   setopt NO_GLOB_SUBST
7213fi
7214
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7216$as_echo_n "checking for objdir... " >&6; }
7217if test "${lt_cv_objdir+set}" = set; then :
7218  $as_echo_n "(cached) " >&6
7219else
7220  rm -f .libs 2>/dev/null
7221mkdir .libs 2>/dev/null
7222if test -d .libs; then
7223  lt_cv_objdir=.libs
7224else
7225  # MS-DOS does not allow filenames that begin with a dot.
7226  lt_cv_objdir=_libs
7227fi
7228rmdir .libs 2>/dev/null
7229fi
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7231$as_echo "$lt_cv_objdir" >&6; }
7232objdir=$lt_cv_objdir
7233
7234
7235
7236
7237
7238cat >>confdefs.h <<_ACEOF
7239#define LT_OBJDIR "$lt_cv_objdir/"
7240_ACEOF
7241
7242
7243
7244
7245case $host_os in
7246aix3*)
7247  # AIX sometimes has problems with the GCC collect2 program.  For some
7248  # reason, if we set the COLLECT_NAMES environment variable, the problems
7249  # vanish in a puff of smoke.
7250  if test "X${COLLECT_NAMES+set}" != Xset; then
7251    COLLECT_NAMES=
7252    export COLLECT_NAMES
7253  fi
7254  ;;
7255esac
7256
7257# Global variables:
7258ofile=libtool
7259can_build_shared=yes
7260
7261# All known linkers require a `.a' archive for static linking (except MSVC,
7262# which needs '.lib').
7263libext=a
7264
7265with_gnu_ld="$lt_cv_prog_gnu_ld"
7266
7267old_CC="$CC"
7268old_CFLAGS="$CFLAGS"
7269
7270# Set sane defaults for various variables
7271test -z "$CC" && CC=cc
7272test -z "$LTCC" && LTCC=$CC
7273test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7274test -z "$LD" && LD=ld
7275test -z "$ac_objext" && ac_objext=o
7276
7277for cc_temp in $compiler""; do
7278  case $cc_temp in
7279    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7280    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7281    \-*) ;;
7282    *) break;;
7283  esac
7284done
7285cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7286
7287
7288# Only perform the check for file, if the check method requires it
7289test -z "$MAGIC_CMD" && MAGIC_CMD=file
7290case $deplibs_check_method in
7291file_magic*)
7292  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7294$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7295if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  case $MAGIC_CMD in
7299[\\/*] |  ?:[\\/]*)
7300  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7301  ;;
7302*)
7303  lt_save_MAGIC_CMD="$MAGIC_CMD"
7304  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7305  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7306  for ac_dir in $ac_dummy; do
7307    IFS="$lt_save_ifs"
7308    test -z "$ac_dir" && ac_dir=.
7309    if test -f $ac_dir/${ac_tool_prefix}file; then
7310      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7311      if test -n "$file_magic_test_file"; then
7312	case $deplibs_check_method in
7313	"file_magic "*)
7314	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7315	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7317	    $EGREP "$file_magic_regex" > /dev/null; then
7318	    :
7319	  else
7320	    cat <<_LT_EOF 1>&2
7321
7322*** Warning: the command libtool uses to detect shared libraries,
7323*** $file_magic_cmd, produces output that libtool cannot recognize.
7324*** The result is that libtool may fail to recognize shared libraries
7325*** as such.  This will affect the creation of libtool libraries that
7326*** depend on shared libraries, but programs linked with such libtool
7327*** libraries will work regardless of this problem.  Nevertheless, you
7328*** may want to report the problem to your system manager and/or to
7329*** bug-libtool@gnu.org
7330
7331_LT_EOF
7332	  fi ;;
7333	esac
7334      fi
7335      break
7336    fi
7337  done
7338  IFS="$lt_save_ifs"
7339  MAGIC_CMD="$lt_save_MAGIC_CMD"
7340  ;;
7341esac
7342fi
7343
7344MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7345if test -n "$MAGIC_CMD"; then
7346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7347$as_echo "$MAGIC_CMD" >&6; }
7348else
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352
7353
7354
7355
7356
7357if test -z "$lt_cv_path_MAGIC_CMD"; then
7358  if test -n "$ac_tool_prefix"; then
7359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7360$as_echo_n "checking for file... " >&6; }
7361if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7362  $as_echo_n "(cached) " >&6
7363else
7364  case $MAGIC_CMD in
7365[\\/*] |  ?:[\\/]*)
7366  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7367  ;;
7368*)
7369  lt_save_MAGIC_CMD="$MAGIC_CMD"
7370  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7371  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7372  for ac_dir in $ac_dummy; do
7373    IFS="$lt_save_ifs"
7374    test -z "$ac_dir" && ac_dir=.
7375    if test -f $ac_dir/file; then
7376      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7377      if test -n "$file_magic_test_file"; then
7378	case $deplibs_check_method in
7379	"file_magic "*)
7380	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7381	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7383	    $EGREP "$file_magic_regex" > /dev/null; then
7384	    :
7385	  else
7386	    cat <<_LT_EOF 1>&2
7387
7388*** Warning: the command libtool uses to detect shared libraries,
7389*** $file_magic_cmd, produces output that libtool cannot recognize.
7390*** The result is that libtool may fail to recognize shared libraries
7391*** as such.  This will affect the creation of libtool libraries that
7392*** depend on shared libraries, but programs linked with such libtool
7393*** libraries will work regardless of this problem.  Nevertheless, you
7394*** may want to report the problem to your system manager and/or to
7395*** bug-libtool@gnu.org
7396
7397_LT_EOF
7398	  fi ;;
7399	esac
7400      fi
7401      break
7402    fi
7403  done
7404  IFS="$lt_save_ifs"
7405  MAGIC_CMD="$lt_save_MAGIC_CMD"
7406  ;;
7407esac
7408fi
7409
7410MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7411if test -n "$MAGIC_CMD"; then
7412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7413$as_echo "$MAGIC_CMD" >&6; }
7414else
7415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416$as_echo "no" >&6; }
7417fi
7418
7419
7420  else
7421    MAGIC_CMD=:
7422  fi
7423fi
7424
7425  fi
7426  ;;
7427esac
7428
7429# Use C for the default configuration in the libtool script
7430
7431lt_save_CC="$CC"
7432ac_ext=c
7433ac_cpp='$CPP $CPPFLAGS'
7434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437
7438
7439# Source file extension for C test sources.
7440ac_ext=c
7441
7442# Object file extension for compiled C test sources.
7443objext=o
7444objext=$objext
7445
7446# Code to be used in simple compile tests
7447lt_simple_compile_test_code="int some_variable = 0;"
7448
7449# Code to be used in simple link tests
7450lt_simple_link_test_code='int main(){return(0);}'
7451
7452
7453
7454
7455
7456
7457
7458# If no C compiler was specified, use CC.
7459LTCC=${LTCC-"$CC"}
7460
7461# If no C compiler flags were specified, use CFLAGS.
7462LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7463
7464# Allow CC to be a program name with arguments.
7465compiler=$CC
7466
7467# Save the default compiler, since it gets overwritten when the other
7468# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7469compiler_DEFAULT=$CC
7470
7471# save warnings/boilerplate of simple test code
7472ac_outfile=conftest.$ac_objext
7473echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7475_lt_compiler_boilerplate=`cat conftest.err`
7476$RM conftest*
7477
7478ac_outfile=conftest.$ac_objext
7479echo "$lt_simple_link_test_code" >conftest.$ac_ext
7480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7481_lt_linker_boilerplate=`cat conftest.err`
7482$RM -r conftest*
7483
7484
7485## CAVEAT EMPTOR:
7486## There is no encapsulation within the following macros, do not change
7487## the running order or otherwise move them around unless you know exactly
7488## what you are doing...
7489if test -n "$compiler"; then
7490
7491lt_prog_compiler_no_builtin_flag=
7492
7493if test "$GCC" = yes; then
7494  case $cc_basename in
7495  nvcc*)
7496    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7497  *)
7498    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7499  esac
7500
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7502$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7503if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7504  $as_echo_n "(cached) " >&6
7505else
7506  lt_cv_prog_compiler_rtti_exceptions=no
7507   ac_outfile=conftest.$ac_objext
7508   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7509   lt_compiler_flag="-fno-rtti -fno-exceptions"
7510   # Insert the option either (1) after the last *FLAGS variable, or
7511   # (2) before a word containing "conftest.", or (3) at the end.
7512   # Note that $ac_compile itself does not contain backslashes and begins
7513   # with a dollar sign (not a hyphen), so the echo should work correctly.
7514   # The option is referenced via a variable to avoid confusing sed.
7515   lt_compile=`echo "$ac_compile" | $SED \
7516   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7517   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7518   -e 's:$: $lt_compiler_flag:'`
7519   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7520   (eval "$lt_compile" 2>conftest.err)
7521   ac_status=$?
7522   cat conftest.err >&5
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   if (exit $ac_status) && test -s "$ac_outfile"; then
7525     # The compiler can only warn and ignore the option if not recognized
7526     # So say no if there are warnings other than the usual output.
7527     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7528     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7529     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7530       lt_cv_prog_compiler_rtti_exceptions=yes
7531     fi
7532   fi
7533   $RM conftest*
7534
7535fi
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7537$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7538
7539if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7540    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7541else
7542    :
7543fi
7544
7545fi
7546
7547
7548
7549
7550
7551
7552  lt_prog_compiler_wl=
7553lt_prog_compiler_pic=
7554lt_prog_compiler_static=
7555
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7557$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7558
7559  if test "$GCC" = yes; then
7560    lt_prog_compiler_wl='-Wl,'
7561    lt_prog_compiler_static='-static'
7562
7563    case $host_os in
7564      aix*)
7565      # All AIX code is PIC.
7566      if test "$host_cpu" = ia64; then
7567	# AIX 5 now supports IA64 processor
7568	lt_prog_compiler_static='-Bstatic'
7569      fi
7570      ;;
7571
7572    amigaos*)
7573      case $host_cpu in
7574      powerpc)
7575            # see comment about AmigaOS4 .so support
7576            lt_prog_compiler_pic='-fPIC'
7577        ;;
7578      m68k)
7579            # FIXME: we need at least 68020 code to build shared libraries, but
7580            # adding the `-m68020' flag to GCC prevents building anything better,
7581            # like `-m68040'.
7582            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7583        ;;
7584      esac
7585      ;;
7586
7587    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7588      # PIC is the default for these OSes.
7589      ;;
7590
7591    mingw* | cygwin* | pw32* | os2* | cegcc*)
7592      # This hack is so that the source file can tell whether it is being
7593      # built for inclusion in a dll (and should export symbols for example).
7594      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7595      # (--disable-auto-import) libraries
7596      lt_prog_compiler_pic='-DDLL_EXPORT'
7597      ;;
7598
7599    darwin* | rhapsody*)
7600      # PIC is the default on this platform
7601      # Common symbols not allowed in MH_DYLIB files
7602      lt_prog_compiler_pic='-fno-common'
7603      ;;
7604
7605    haiku*)
7606      # PIC is the default for Haiku.
7607      # The "-static" flag exists, but is broken.
7608      lt_prog_compiler_static=
7609      ;;
7610
7611    hpux*)
7612      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7613      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7614      # sets the default TLS model and affects inlining.
7615      case $host_cpu in
7616      hppa*64*)
7617	# +Z the default
7618	;;
7619      *)
7620	lt_prog_compiler_pic='-fPIC'
7621	;;
7622      esac
7623      ;;
7624
7625    interix[3-9]*)
7626      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7627      # Instead, we relocate shared libraries at runtime.
7628      ;;
7629
7630    msdosdjgpp*)
7631      # Just because we use GCC doesn't mean we suddenly get shared libraries
7632      # on systems that don't support them.
7633      lt_prog_compiler_can_build_shared=no
7634      enable_shared=no
7635      ;;
7636
7637    *nto* | *qnx*)
7638      # QNX uses GNU C++, but need to define -shared option too, otherwise
7639      # it will coredump.
7640      lt_prog_compiler_pic='-fPIC -shared'
7641      ;;
7642
7643    sysv4*MP*)
7644      if test -d /usr/nec; then
7645	lt_prog_compiler_pic=-Kconform_pic
7646      fi
7647      ;;
7648
7649    *)
7650      lt_prog_compiler_pic='-fPIC'
7651      ;;
7652    esac
7653
7654    case $cc_basename in
7655    nvcc*) # Cuda Compiler Driver 2.2
7656      lt_prog_compiler_wl='-Xlinker '
7657      lt_prog_compiler_pic='-Xcompiler -fPIC'
7658      ;;
7659    esac
7660  else
7661    # PORTME Check for flag to pass linker flags through the system compiler.
7662    case $host_os in
7663    aix*)
7664      lt_prog_compiler_wl='-Wl,'
7665      if test "$host_cpu" = ia64; then
7666	# AIX 5 now supports IA64 processor
7667	lt_prog_compiler_static='-Bstatic'
7668      else
7669	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7670      fi
7671      ;;
7672
7673    mingw* | cygwin* | pw32* | os2* | cegcc*)
7674      # This hack is so that the source file can tell whether it is being
7675      # built for inclusion in a dll (and should export symbols for example).
7676      lt_prog_compiler_pic='-DDLL_EXPORT'
7677      ;;
7678
7679    hpux9* | hpux10* | hpux11*)
7680      lt_prog_compiler_wl='-Wl,'
7681      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7682      # not for PA HP-UX.
7683      case $host_cpu in
7684      hppa*64*|ia64*)
7685	# +Z the default
7686	;;
7687      *)
7688	lt_prog_compiler_pic='+Z'
7689	;;
7690      esac
7691      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7692      lt_prog_compiler_static='${wl}-a ${wl}archive'
7693      ;;
7694
7695    irix5* | irix6* | nonstopux*)
7696      lt_prog_compiler_wl='-Wl,'
7697      # PIC (with -KPIC) is the default.
7698      lt_prog_compiler_static='-non_shared'
7699      ;;
7700
7701    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7702      case $cc_basename in
7703      # old Intel for x86_64 which still supported -KPIC.
7704      ecc*)
7705	lt_prog_compiler_wl='-Wl,'
7706	lt_prog_compiler_pic='-KPIC'
7707	lt_prog_compiler_static='-static'
7708        ;;
7709      # icc used to be incompatible with GCC.
7710      # ICC 10 doesn't accept -KPIC any more.
7711      icc* | ifort*)
7712	lt_prog_compiler_wl='-Wl,'
7713	lt_prog_compiler_pic='-fPIC'
7714	lt_prog_compiler_static='-static'
7715        ;;
7716      # Lahey Fortran 8.1.
7717      lf95*)
7718	lt_prog_compiler_wl='-Wl,'
7719	lt_prog_compiler_pic='--shared'
7720	lt_prog_compiler_static='--static'
7721	;;
7722      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7723        # Portland Group compilers (*not* the Pentium gcc compiler,
7724	# which looks to be a dead project)
7725	lt_prog_compiler_wl='-Wl,'
7726	lt_prog_compiler_pic='-fpic'
7727	lt_prog_compiler_static='-Bstatic'
7728        ;;
7729      ccc*)
7730        lt_prog_compiler_wl='-Wl,'
7731        # All Alpha code is PIC.
7732        lt_prog_compiler_static='-non_shared'
7733        ;;
7734      xl* | bgxl* | bgf* | mpixl*)
7735	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7736	lt_prog_compiler_wl='-Wl,'
7737	lt_prog_compiler_pic='-qpic'
7738	lt_prog_compiler_static='-qstaticlink'
7739	;;
7740      *)
7741	case `$CC -V 2>&1 | sed 5q` in
7742	*Sun\ F* | *Sun*Fortran*)
7743	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7744	  lt_prog_compiler_pic='-KPIC'
7745	  lt_prog_compiler_static='-Bstatic'
7746	  lt_prog_compiler_wl=''
7747	  ;;
7748	*Sun\ C*)
7749	  # Sun C 5.9
7750	  lt_prog_compiler_pic='-KPIC'
7751	  lt_prog_compiler_static='-Bstatic'
7752	  lt_prog_compiler_wl='-Wl,'
7753	  ;;
7754	esac
7755	;;
7756      esac
7757      ;;
7758
7759    newsos6)
7760      lt_prog_compiler_pic='-KPIC'
7761      lt_prog_compiler_static='-Bstatic'
7762      ;;
7763
7764    *nto* | *qnx*)
7765      # QNX uses GNU C++, but need to define -shared option too, otherwise
7766      # it will coredump.
7767      lt_prog_compiler_pic='-fPIC -shared'
7768      ;;
7769
7770    osf3* | osf4* | osf5*)
7771      lt_prog_compiler_wl='-Wl,'
7772      # All OSF/1 code is PIC.
7773      lt_prog_compiler_static='-non_shared'
7774      ;;
7775
7776    rdos*)
7777      lt_prog_compiler_static='-non_shared'
7778      ;;
7779
7780    solaris*)
7781      lt_prog_compiler_pic='-KPIC'
7782      lt_prog_compiler_static='-Bstatic'
7783      case $cc_basename in
7784      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7785	lt_prog_compiler_wl='-Qoption ld ';;
7786      *)
7787	lt_prog_compiler_wl='-Wl,';;
7788      esac
7789      ;;
7790
7791    sunos4*)
7792      lt_prog_compiler_wl='-Qoption ld '
7793      lt_prog_compiler_pic='-PIC'
7794      lt_prog_compiler_static='-Bstatic'
7795      ;;
7796
7797    sysv4 | sysv4.2uw2* | sysv4.3*)
7798      lt_prog_compiler_wl='-Wl,'
7799      lt_prog_compiler_pic='-KPIC'
7800      lt_prog_compiler_static='-Bstatic'
7801      ;;
7802
7803    sysv4*MP*)
7804      if test -d /usr/nec ;then
7805	lt_prog_compiler_pic='-Kconform_pic'
7806	lt_prog_compiler_static='-Bstatic'
7807      fi
7808      ;;
7809
7810    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7811      lt_prog_compiler_wl='-Wl,'
7812      lt_prog_compiler_pic='-KPIC'
7813      lt_prog_compiler_static='-Bstatic'
7814      ;;
7815
7816    unicos*)
7817      lt_prog_compiler_wl='-Wl,'
7818      lt_prog_compiler_can_build_shared=no
7819      ;;
7820
7821    uts4*)
7822      lt_prog_compiler_pic='-pic'
7823      lt_prog_compiler_static='-Bstatic'
7824      ;;
7825
7826    *)
7827      lt_prog_compiler_can_build_shared=no
7828      ;;
7829    esac
7830  fi
7831
7832case $host_os in
7833  # For platforms which do not support PIC, -DPIC is meaningless:
7834  *djgpp*)
7835    lt_prog_compiler_pic=
7836    ;;
7837  *)
7838    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7839    ;;
7840esac
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7842$as_echo "$lt_prog_compiler_pic" >&6; }
7843
7844
7845
7846
7847
7848
7849#
7850# Check to make sure the PIC flag actually works.
7851#
7852if test -n "$lt_prog_compiler_pic"; then
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7854$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7855if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  lt_cv_prog_compiler_pic_works=no
7859   ac_outfile=conftest.$ac_objext
7860   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7861   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7862   # Insert the option either (1) after the last *FLAGS variable, or
7863   # (2) before a word containing "conftest.", or (3) at the end.
7864   # Note that $ac_compile itself does not contain backslashes and begins
7865   # with a dollar sign (not a hyphen), so the echo should work correctly.
7866   # The option is referenced via a variable to avoid confusing sed.
7867   lt_compile=`echo "$ac_compile" | $SED \
7868   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7869   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7870   -e 's:$: $lt_compiler_flag:'`
7871   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7872   (eval "$lt_compile" 2>conftest.err)
7873   ac_status=$?
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   if (exit $ac_status) && test -s "$ac_outfile"; then
7877     # The compiler can only warn and ignore the option if not recognized
7878     # So say no if there are warnings other than the usual output.
7879     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7880     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7881     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7882       lt_cv_prog_compiler_pic_works=yes
7883     fi
7884   fi
7885   $RM conftest*
7886
7887fi
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7889$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7890
7891if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7892    case $lt_prog_compiler_pic in
7893     "" | " "*) ;;
7894     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7895     esac
7896else
7897    lt_prog_compiler_pic=
7898     lt_prog_compiler_can_build_shared=no
7899fi
7900
7901fi
7902
7903
7904
7905
7906
7907
7908#
7909# Check to make sure the static flag actually works.
7910#
7911wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7913$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7914if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  lt_cv_prog_compiler_static_works=no
7918   save_LDFLAGS="$LDFLAGS"
7919   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7920   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7921   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7922     # The linker can only warn and ignore the option if not recognized
7923     # So say no if there are warnings
7924     if test -s conftest.err; then
7925       # Append any errors to the config.log.
7926       cat conftest.err 1>&5
7927       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7928       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7929       if diff conftest.exp conftest.er2 >/dev/null; then
7930         lt_cv_prog_compiler_static_works=yes
7931       fi
7932     else
7933       lt_cv_prog_compiler_static_works=yes
7934     fi
7935   fi
7936   $RM -r conftest*
7937   LDFLAGS="$save_LDFLAGS"
7938
7939fi
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7941$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7942
7943if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7944    :
7945else
7946    lt_prog_compiler_static=
7947fi
7948
7949
7950
7951
7952
7953
7954
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7956$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7957if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7958  $as_echo_n "(cached) " >&6
7959else
7960  lt_cv_prog_compiler_c_o=no
7961   $RM -r conftest 2>/dev/null
7962   mkdir conftest
7963   cd conftest
7964   mkdir out
7965   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966
7967   lt_compiler_flag="-o out/conftest2.$ac_objext"
7968   # Insert the option either (1) after the last *FLAGS variable, or
7969   # (2) before a word containing "conftest.", or (3) at the end.
7970   # Note that $ac_compile itself does not contain backslashes and begins
7971   # with a dollar sign (not a hyphen), so the echo should work correctly.
7972   lt_compile=`echo "$ac_compile" | $SED \
7973   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975   -e 's:$: $lt_compiler_flag:'`
7976   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7977   (eval "$lt_compile" 2>out/conftest.err)
7978   ac_status=$?
7979   cat out/conftest.err >&5
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7982   then
7983     # The compiler can only warn and ignore the option if not recognized
7984     # So say no if there are warnings
7985     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7986     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7987     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7988       lt_cv_prog_compiler_c_o=yes
7989     fi
7990   fi
7991   chmod u+w . 2>&5
7992   $RM conftest*
7993   # SGI C++ compiler will create directory out/ii_files/ for
7994   # template instantiation
7995   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7996   $RM out/* && rmdir out
7997   cd ..
7998   $RM -r conftest
7999   $RM conftest*
8000
8001fi
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8003$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8004
8005
8006
8007
8008
8009
8010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8011$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8012if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  lt_cv_prog_compiler_c_o=no
8016   $RM -r conftest 2>/dev/null
8017   mkdir conftest
8018   cd conftest
8019   mkdir out
8020   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8021
8022   lt_compiler_flag="-o out/conftest2.$ac_objext"
8023   # Insert the option either (1) after the last *FLAGS variable, or
8024   # (2) before a word containing "conftest.", or (3) at the end.
8025   # Note that $ac_compile itself does not contain backslashes and begins
8026   # with a dollar sign (not a hyphen), so the echo should work correctly.
8027   lt_compile=`echo "$ac_compile" | $SED \
8028   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8029   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8030   -e 's:$: $lt_compiler_flag:'`
8031   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8032   (eval "$lt_compile" 2>out/conftest.err)
8033   ac_status=$?
8034   cat out/conftest.err >&5
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8037   then
8038     # The compiler can only warn and ignore the option if not recognized
8039     # So say no if there are warnings
8040     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8041     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8042     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8043       lt_cv_prog_compiler_c_o=yes
8044     fi
8045   fi
8046   chmod u+w . 2>&5
8047   $RM conftest*
8048   # SGI C++ compiler will create directory out/ii_files/ for
8049   # template instantiation
8050   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8051   $RM out/* && rmdir out
8052   cd ..
8053   $RM -r conftest
8054   $RM conftest*
8055
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8058$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8059
8060
8061
8062
8063hard_links="nottested"
8064if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8065  # do not overwrite the value of need_locks provided by the user
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8067$as_echo_n "checking if we can lock with hard links... " >&6; }
8068  hard_links=yes
8069  $RM conftest*
8070  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8071  touch conftest.a
8072  ln conftest.a conftest.b 2>&5 || hard_links=no
8073  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8075$as_echo "$hard_links" >&6; }
8076  if test "$hard_links" = no; then
8077    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8078$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8079    need_locks=warn
8080  fi
8081else
8082  need_locks=no
8083fi
8084
8085
8086
8087
8088
8089
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8091$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8092
8093  runpath_var=
8094  allow_undefined_flag=
8095  always_export_symbols=no
8096  archive_cmds=
8097  archive_expsym_cmds=
8098  compiler_needs_object=no
8099  enable_shared_with_static_runtimes=no
8100  export_dynamic_flag_spec=
8101  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8102  hardcode_automatic=no
8103  hardcode_direct=no
8104  hardcode_direct_absolute=no
8105  hardcode_libdir_flag_spec=
8106  hardcode_libdir_flag_spec_ld=
8107  hardcode_libdir_separator=
8108  hardcode_minus_L=no
8109  hardcode_shlibpath_var=unsupported
8110  inherit_rpath=no
8111  link_all_deplibs=unknown
8112  module_cmds=
8113  module_expsym_cmds=
8114  old_archive_from_new_cmds=
8115  old_archive_from_expsyms_cmds=
8116  thread_safe_flag_spec=
8117  whole_archive_flag_spec=
8118  # include_expsyms should be a list of space-separated symbols to be *always*
8119  # included in the symbol list
8120  include_expsyms=
8121  # exclude_expsyms can be an extended regexp of symbols to exclude
8122  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8123  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8124  # as well as any symbol that contains `d'.
8125  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8126  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8127  # platforms (ab)use it in PIC code, but their linkers get confused if
8128  # the symbol is explicitly referenced.  Since portable code cannot
8129  # rely on this symbol name, it's probably fine to never include it in
8130  # preloaded symbol tables.
8131  # Exclude shared library initialization/finalization symbols.
8132  extract_expsyms_cmds=
8133
8134  case $host_os in
8135  cygwin* | mingw* | pw32* | cegcc*)
8136    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8137    # When not using gcc, we currently assume that we are using
8138    # Microsoft Visual C++.
8139    if test "$GCC" != yes; then
8140      with_gnu_ld=no
8141    fi
8142    ;;
8143  interix*)
8144    # we just hope/assume this is gcc and not c89 (= MSVC++)
8145    with_gnu_ld=yes
8146    ;;
8147  openbsd*)
8148    with_gnu_ld=no
8149    ;;
8150  esac
8151
8152  ld_shlibs=yes
8153
8154  # On some targets, GNU ld is compatible enough with the native linker
8155  # that we're better off using the native interface for both.
8156  lt_use_gnu_ld_interface=no
8157  if test "$with_gnu_ld" = yes; then
8158    case $host_os in
8159      aix*)
8160	# The AIX port of GNU ld has always aspired to compatibility
8161	# with the native linker.  However, as the warning in the GNU ld
8162	# block says, versions before 2.19.5* couldn't really create working
8163	# shared libraries, regardless of the interface used.
8164	case `$LD -v 2>&1` in
8165	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8166	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8167	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8168	  *)
8169	    lt_use_gnu_ld_interface=yes
8170	    ;;
8171	esac
8172	;;
8173      *)
8174	lt_use_gnu_ld_interface=yes
8175	;;
8176    esac
8177  fi
8178
8179  if test "$lt_use_gnu_ld_interface" = yes; then
8180    # If archive_cmds runs LD, not CC, wlarc should be empty
8181    wlarc='${wl}'
8182
8183    # Set some defaults for GNU ld with shared library support. These
8184    # are reset later if shared libraries are not supported. Putting them
8185    # here allows them to be overridden if necessary.
8186    runpath_var=LD_RUN_PATH
8187    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8188    export_dynamic_flag_spec='${wl}--export-dynamic'
8189    # ancient GNU ld didn't support --whole-archive et. al.
8190    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8191      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8192    else
8193      whole_archive_flag_spec=
8194    fi
8195    supports_anon_versioning=no
8196    case `$LD -v 2>&1` in
8197      *GNU\ gold*) supports_anon_versioning=yes ;;
8198      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8199      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8200      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8201      *\ 2.11.*) ;; # other 2.11 versions
8202      *) supports_anon_versioning=yes ;;
8203    esac
8204
8205    # See if GNU ld supports shared libraries.
8206    case $host_os in
8207    aix[3-9]*)
8208      # On AIX/PPC, the GNU linker is very broken
8209      if test "$host_cpu" != ia64; then
8210	ld_shlibs=no
8211	cat <<_LT_EOF 1>&2
8212
8213*** Warning: the GNU linker, at least up to release 2.19, is reported
8214*** to be unable to reliably create shared libraries on AIX.
8215*** Therefore, libtool is disabling shared libraries support.  If you
8216*** really care for shared libraries, you may want to install binutils
8217*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8218*** You will then need to restart the configuration process.
8219
8220_LT_EOF
8221      fi
8222      ;;
8223
8224    amigaos*)
8225      case $host_cpu in
8226      powerpc)
8227            # see comment about AmigaOS4 .so support
8228            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229            archive_expsym_cmds=''
8230        ;;
8231      m68k)
8232            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)'
8233            hardcode_libdir_flag_spec='-L$libdir'
8234            hardcode_minus_L=yes
8235        ;;
8236      esac
8237      ;;
8238
8239    beos*)
8240      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8241	allow_undefined_flag=unsupported
8242	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8243	# support --undefined.  This deserves some investigation.  FIXME
8244	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245      else
8246	ld_shlibs=no
8247      fi
8248      ;;
8249
8250    cygwin* | mingw* | pw32* | cegcc*)
8251      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8252      # as there is no search path for DLLs.
8253      hardcode_libdir_flag_spec='-L$libdir'
8254      export_dynamic_flag_spec='${wl}--export-all-symbols'
8255      allow_undefined_flag=unsupported
8256      always_export_symbols=no
8257      enable_shared_with_static_runtimes=yes
8258      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8259
8260      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8261        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8262	# If the export-symbols file already is a .def file (1st line
8263	# is EXPORTS), use it as is; otherwise, prepend...
8264	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8265	  cp $export_symbols $output_objdir/$soname.def;
8266	else
8267	  echo EXPORTS > $output_objdir/$soname.def;
8268	  cat $export_symbols >> $output_objdir/$soname.def;
8269	fi~
8270	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8271      else
8272	ld_shlibs=no
8273      fi
8274      ;;
8275
8276    haiku*)
8277      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278      link_all_deplibs=yes
8279      ;;
8280
8281    interix[3-9]*)
8282      hardcode_direct=no
8283      hardcode_shlibpath_var=no
8284      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8285      export_dynamic_flag_spec='${wl}-E'
8286      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8287      # Instead, shared libraries are loaded at an image base (0x10000000 by
8288      # default) and relocated if they conflict, which is a slow very memory
8289      # consuming and fragmenting process.  To avoid this, we pick a random,
8290      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8291      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8292      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8293      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'
8294      ;;
8295
8296    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8297      tmp_diet=no
8298      if test "$host_os" = linux-dietlibc; then
8299	case $cc_basename in
8300	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8301	esac
8302      fi
8303      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8304	 && test "$tmp_diet" = no
8305      then
8306	tmp_addflag=
8307	tmp_sharedflag='-shared'
8308	case $cc_basename,$host_cpu in
8309        pgcc*)				# Portland Group C compiler
8310	  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'
8311	  tmp_addflag=' $pic_flag'
8312	  ;;
8313	pgf77* | pgf90* | pgf95* | pgfortran*)
8314					# Portland Group f77 and f90 compilers
8315	  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'
8316	  tmp_addflag=' $pic_flag -Mnomain' ;;
8317	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8318	  tmp_addflag=' -i_dynamic' ;;
8319	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8320	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8321	ifc* | ifort*)			# Intel Fortran compiler
8322	  tmp_addflag=' -nofor_main' ;;
8323	lf95*)				# Lahey Fortran 8.1
8324	  whole_archive_flag_spec=
8325	  tmp_sharedflag='--shared' ;;
8326	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8327	  tmp_sharedflag='-qmkshrobj'
8328	  tmp_addflag= ;;
8329	nvcc*)	# Cuda Compiler Driver 2.2
8330	  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'
8331	  compiler_needs_object=yes
8332	  ;;
8333	esac
8334	case `$CC -V 2>&1 | sed 5q` in
8335	*Sun\ C*)			# Sun C 5.9
8336	  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'
8337	  compiler_needs_object=yes
8338	  tmp_sharedflag='-G' ;;
8339	*Sun\ F*)			# Sun Fortran 8.3
8340	  tmp_sharedflag='-G' ;;
8341	esac
8342	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8343
8344        if test "x$supports_anon_versioning" = xyes; then
8345          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8346	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8347	    echo "local: *; };" >> $output_objdir/$libname.ver~
8348	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8349        fi
8350
8351	case $cc_basename in
8352	xlf* | bgf* | bgxlf* | mpixlf*)
8353	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8354	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8355	  hardcode_libdir_flag_spec=
8356	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8357	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8358	  if test "x$supports_anon_versioning" = xyes; then
8359	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8360	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8361	      echo "local: *; };" >> $output_objdir/$libname.ver~
8362	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8363	  fi
8364	  ;;
8365	esac
8366      else
8367        ld_shlibs=no
8368      fi
8369      ;;
8370
8371    netbsd*)
8372      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8373	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8374	wlarc=
8375      else
8376	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8377	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8378      fi
8379      ;;
8380
8381    solaris*)
8382      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8383	ld_shlibs=no
8384	cat <<_LT_EOF 1>&2
8385
8386*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8387*** create shared libraries on Solaris systems.  Therefore, libtool
8388*** is disabling shared libraries support.  We urge you to upgrade GNU
8389*** binutils to release 2.9.1 or newer.  Another option is to modify
8390*** your PATH or compiler configuration so that the native linker is
8391*** used, and then restart.
8392
8393_LT_EOF
8394      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8395	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8396	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8397      else
8398	ld_shlibs=no
8399      fi
8400      ;;
8401
8402    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8403      case `$LD -v 2>&1` in
8404        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8405	ld_shlibs=no
8406	cat <<_LT_EOF 1>&2
8407
8408*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8409*** reliably create shared libraries on SCO systems.  Therefore, libtool
8410*** is disabling shared libraries support.  We urge you to upgrade GNU
8411*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8412*** your PATH or compiler configuration so that the native linker is
8413*** used, and then restart.
8414
8415_LT_EOF
8416	;;
8417	*)
8418	  # For security reasons, it is highly recommended that you always
8419	  # use absolute paths for naming shared libraries, and exclude the
8420	  # DT_RUNPATH tag from executables and libraries.  But doing so
8421	  # requires that you compile everything twice, which is a pain.
8422	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8423	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8425	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8426	  else
8427	    ld_shlibs=no
8428	  fi
8429	;;
8430      esac
8431      ;;
8432
8433    sunos4*)
8434      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8435      wlarc=
8436      hardcode_direct=yes
8437      hardcode_shlibpath_var=no
8438      ;;
8439
8440    *)
8441      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8442	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8444      else
8445	ld_shlibs=no
8446      fi
8447      ;;
8448    esac
8449
8450    if test "$ld_shlibs" = no; then
8451      runpath_var=
8452      hardcode_libdir_flag_spec=
8453      export_dynamic_flag_spec=
8454      whole_archive_flag_spec=
8455    fi
8456  else
8457    # PORTME fill in a description of your system's linker (not GNU ld)
8458    case $host_os in
8459    aix3*)
8460      allow_undefined_flag=unsupported
8461      always_export_symbols=yes
8462      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'
8463      # Note: this linker hardcodes the directories in LIBPATH if there
8464      # are no directories specified by -L.
8465      hardcode_minus_L=yes
8466      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8467	# Neither direct hardcoding nor static linking is supported with a
8468	# broken collect2.
8469	hardcode_direct=unsupported
8470      fi
8471      ;;
8472
8473    aix[4-9]*)
8474      if test "$host_cpu" = ia64; then
8475	# On IA64, the linker does run time linking by default, so we don't
8476	# have to do anything special.
8477	aix_use_runtimelinking=no
8478	exp_sym_flag='-Bexport'
8479	no_entry_flag=""
8480      else
8481	# If we're using GNU nm, then we don't want the "-C" option.
8482	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8483	# Also, AIX nm treats weak defined symbols like other global
8484	# defined symbols, whereas GNU nm marks them as "W".
8485	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8486	  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'
8487	else
8488	  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'
8489	fi
8490	aix_use_runtimelinking=no
8491
8492	# Test if we are trying to use run time linking or normal
8493	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8494	# need to do runtime linking.
8495	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8496	  for ld_flag in $LDFLAGS; do
8497	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8498	    aix_use_runtimelinking=yes
8499	    break
8500	  fi
8501	  done
8502	  ;;
8503	esac
8504
8505	exp_sym_flag='-bexport'
8506	no_entry_flag='-bnoentry'
8507      fi
8508
8509      # When large executables or shared objects are built, AIX ld can
8510      # have problems creating the table of contents.  If linking a library
8511      # or program results in "error TOC overflow" add -mminimal-toc to
8512      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8513      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8514
8515      archive_cmds=''
8516      hardcode_direct=yes
8517      hardcode_direct_absolute=yes
8518      hardcode_libdir_separator=':'
8519      link_all_deplibs=yes
8520      file_list_spec='${wl}-f,'
8521
8522      if test "$GCC" = yes; then
8523	case $host_os in aix4.[012]|aix4.[012].*)
8524	# We only want to do this on AIX 4.2 and lower, the check
8525	# below for broken collect2 doesn't work under 4.3+
8526	  collect2name=`${CC} -print-prog-name=collect2`
8527	  if test -f "$collect2name" &&
8528	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8529	  then
8530	  # We have reworked collect2
8531	  :
8532	  else
8533	  # We have old collect2
8534	  hardcode_direct=unsupported
8535	  # It fails to find uninstalled libraries when the uninstalled
8536	  # path is not listed in the libpath.  Setting hardcode_minus_L
8537	  # to unsupported forces relinking
8538	  hardcode_minus_L=yes
8539	  hardcode_libdir_flag_spec='-L$libdir'
8540	  hardcode_libdir_separator=
8541	  fi
8542	  ;;
8543	esac
8544	shared_flag='-shared'
8545	if test "$aix_use_runtimelinking" = yes; then
8546	  shared_flag="$shared_flag "'${wl}-G'
8547	fi
8548      else
8549	# not using gcc
8550	if test "$host_cpu" = ia64; then
8551	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8552	# chokes on -Wl,-G. The following line is correct:
8553	  shared_flag='-G'
8554	else
8555	  if test "$aix_use_runtimelinking" = yes; then
8556	    shared_flag='${wl}-G'
8557	  else
8558	    shared_flag='${wl}-bM:SRE'
8559	  fi
8560	fi
8561      fi
8562
8563      export_dynamic_flag_spec='${wl}-bexpall'
8564      # It seems that -bexpall does not export symbols beginning with
8565      # underscore (_), so it is better to generate a list of symbols to export.
8566      always_export_symbols=yes
8567      if test "$aix_use_runtimelinking" = yes; then
8568	# Warning - without using the other runtime loading flags (-brtl),
8569	# -berok will link without error, but may produce a broken library.
8570	allow_undefined_flag='-berok'
8571        # Determine the default libpath from the value encoded in an
8572        # empty executable.
8573        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h.  */
8575
8576int
8577main ()
8578{
8579
8580  ;
8581  return 0;
8582}
8583_ACEOF
8584if ac_fn_c_try_link "$LINENO"; then :
8585
8586lt_aix_libpath_sed='
8587    /Import File Strings/,/^$/ {
8588	/^0/ {
8589	    s/^0  *\(.*\)$/\1/
8590	    p
8591	}
8592    }'
8593aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8594# Check for a 64-bit object if we didn't find anything.
8595if test -z "$aix_libpath"; then
8596  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8597fi
8598fi
8599rm -f core conftest.err conftest.$ac_objext \
8600    conftest$ac_exeext conftest.$ac_ext
8601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8602
8603        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8604        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"
8605      else
8606	if test "$host_cpu" = ia64; then
8607	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8608	  allow_undefined_flag="-z nodefs"
8609	  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"
8610	else
8611	 # Determine the default libpath from the value encoded in an
8612	 # empty executable.
8613	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615
8616int
8617main ()
8618{
8619
8620  ;
8621  return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_link "$LINENO"; then :
8625
8626lt_aix_libpath_sed='
8627    /Import File Strings/,/^$/ {
8628	/^0/ {
8629	    s/^0  *\(.*\)$/\1/
8630	    p
8631	}
8632    }'
8633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8634# Check for a 64-bit object if we didn't find anything.
8635if test -z "$aix_libpath"; then
8636  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8637fi
8638fi
8639rm -f core conftest.err conftest.$ac_objext \
8640    conftest$ac_exeext conftest.$ac_ext
8641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642
8643	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8644	  # Warning - without using the other run time loading flags,
8645	  # -berok will link without error, but may produce a broken library.
8646	  no_undefined_flag=' ${wl}-bernotok'
8647	  allow_undefined_flag=' ${wl}-berok'
8648	  if test "$with_gnu_ld" = yes; then
8649	    # We only use this code for GNU lds that support --whole-archive.
8650	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8651	  else
8652	    # Exported symbols can be pulled into shared objects from archives
8653	    whole_archive_flag_spec='$convenience'
8654	  fi
8655	  archive_cmds_need_lc=yes
8656	  # This is similar to how AIX traditionally builds its shared libraries.
8657	  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'
8658	fi
8659      fi
8660      ;;
8661
8662    amigaos*)
8663      case $host_cpu in
8664      powerpc)
8665            # see comment about AmigaOS4 .so support
8666            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667            archive_expsym_cmds=''
8668        ;;
8669      m68k)
8670            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)'
8671            hardcode_libdir_flag_spec='-L$libdir'
8672            hardcode_minus_L=yes
8673        ;;
8674      esac
8675      ;;
8676
8677    bsdi[45]*)
8678      export_dynamic_flag_spec=-rdynamic
8679      ;;
8680
8681    cygwin* | mingw* | pw32* | cegcc*)
8682      # When not using gcc, we currently assume that we are using
8683      # Microsoft Visual C++.
8684      # hardcode_libdir_flag_spec is actually meaningless, as there is
8685      # no search path for DLLs.
8686      hardcode_libdir_flag_spec=' '
8687      allow_undefined_flag=unsupported
8688      # Tell ltmain to make .lib files, not .a files.
8689      libext=lib
8690      # Tell ltmain to make .dll files, not .so files.
8691      shrext_cmds=".dll"
8692      # FIXME: Setting linknames here is a bad hack.
8693      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8694      # The linker will automatically build a .lib file if we build a DLL.
8695      old_archive_from_new_cmds='true'
8696      # FIXME: Should let the user specify the lib program.
8697      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8698      fix_srcfile_path='`cygpath -w "$srcfile"`'
8699      enable_shared_with_static_runtimes=yes
8700      ;;
8701
8702    darwin* | rhapsody*)
8703
8704
8705  archive_cmds_need_lc=no
8706  hardcode_direct=no
8707  hardcode_automatic=yes
8708  hardcode_shlibpath_var=unsupported
8709  if test "$lt_cv_ld_force_load" = "yes"; then
8710    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\"`'
8711  else
8712    whole_archive_flag_spec=''
8713  fi
8714  link_all_deplibs=yes
8715  allow_undefined_flag="$_lt_dar_allow_undefined"
8716  case $cc_basename in
8717     ifort*) _lt_dar_can_shared=yes ;;
8718     *) _lt_dar_can_shared=$GCC ;;
8719  esac
8720  if test "$_lt_dar_can_shared" = "yes"; then
8721    output_verbose_link_cmd=func_echo_all
8722    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8723    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8724    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}"
8725    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}"
8726
8727  else
8728  ld_shlibs=no
8729  fi
8730
8731      ;;
8732
8733    dgux*)
8734      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735      hardcode_libdir_flag_spec='-L$libdir'
8736      hardcode_shlibpath_var=no
8737      ;;
8738
8739    freebsd1*)
8740      ld_shlibs=no
8741      ;;
8742
8743    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8744    # support.  Future versions do this automatically, but an explicit c++rt0.o
8745    # does not break anything, and helps significantly (at the cost of a little
8746    # extra space).
8747    freebsd2.2*)
8748      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8749      hardcode_libdir_flag_spec='-R$libdir'
8750      hardcode_direct=yes
8751      hardcode_shlibpath_var=no
8752      ;;
8753
8754    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8755    freebsd2*)
8756      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757      hardcode_direct=yes
8758      hardcode_minus_L=yes
8759      hardcode_shlibpath_var=no
8760      ;;
8761
8762    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8763    freebsd* | dragonfly*)
8764      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8765      hardcode_libdir_flag_spec='-R$libdir'
8766      hardcode_direct=yes
8767      hardcode_shlibpath_var=no
8768      ;;
8769
8770    hpux9*)
8771      if test "$GCC" = yes; then
8772	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8773      else
8774	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'
8775      fi
8776      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8777      hardcode_libdir_separator=:
8778      hardcode_direct=yes
8779
8780      # hardcode_minus_L: Not really in the search PATH,
8781      # but as the default location of the library.
8782      hardcode_minus_L=yes
8783      export_dynamic_flag_spec='${wl}-E'
8784      ;;
8785
8786    hpux10*)
8787      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8788	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8789      else
8790	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8791      fi
8792      if test "$with_gnu_ld" = no; then
8793	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8794	hardcode_libdir_flag_spec_ld='+b $libdir'
8795	hardcode_libdir_separator=:
8796	hardcode_direct=yes
8797	hardcode_direct_absolute=yes
8798	export_dynamic_flag_spec='${wl}-E'
8799	# hardcode_minus_L: Not really in the search PATH,
8800	# but as the default location of the library.
8801	hardcode_minus_L=yes
8802      fi
8803      ;;
8804
8805    hpux11*)
8806      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8807	case $host_cpu in
8808	hppa*64*)
8809	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8810	  ;;
8811	ia64*)
8812	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8813	  ;;
8814	*)
8815	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8816	  ;;
8817	esac
8818      else
8819	case $host_cpu in
8820	hppa*64*)
8821	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8822	  ;;
8823	ia64*)
8824	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8825	  ;;
8826	*)
8827
8828	  # Older versions of the 11.00 compiler do not understand -b yet
8829	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8830	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8831$as_echo_n "checking if $CC understands -b... " >&6; }
8832if test "${lt_cv_prog_compiler__b+set}" = set; then :
8833  $as_echo_n "(cached) " >&6
8834else
8835  lt_cv_prog_compiler__b=no
8836   save_LDFLAGS="$LDFLAGS"
8837   LDFLAGS="$LDFLAGS -b"
8838   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8839   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8840     # The linker can only warn and ignore the option if not recognized
8841     # So say no if there are warnings
8842     if test -s conftest.err; then
8843       # Append any errors to the config.log.
8844       cat conftest.err 1>&5
8845       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8846       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8847       if diff conftest.exp conftest.er2 >/dev/null; then
8848         lt_cv_prog_compiler__b=yes
8849       fi
8850     else
8851       lt_cv_prog_compiler__b=yes
8852     fi
8853   fi
8854   $RM -r conftest*
8855   LDFLAGS="$save_LDFLAGS"
8856
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8859$as_echo "$lt_cv_prog_compiler__b" >&6; }
8860
8861if test x"$lt_cv_prog_compiler__b" = xyes; then
8862    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8863else
8864    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8865fi
8866
8867	  ;;
8868	esac
8869      fi
8870      if test "$with_gnu_ld" = no; then
8871	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8872	hardcode_libdir_separator=:
8873
8874	case $host_cpu in
8875	hppa*64*|ia64*)
8876	  hardcode_direct=no
8877	  hardcode_shlibpath_var=no
8878	  ;;
8879	*)
8880	  hardcode_direct=yes
8881	  hardcode_direct_absolute=yes
8882	  export_dynamic_flag_spec='${wl}-E'
8883
8884	  # hardcode_minus_L: Not really in the search PATH,
8885	  # but as the default location of the library.
8886	  hardcode_minus_L=yes
8887	  ;;
8888	esac
8889      fi
8890      ;;
8891
8892    irix5* | irix6* | nonstopux*)
8893      if test "$GCC" = yes; then
8894	archive_cmds='$CC -shared $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'
8895	# Try to use the -exported_symbol ld option, if it does not
8896	# work, assume that -exports_file does not work either and
8897	# implicitly export all symbols.
8898        save_LDFLAGS="$LDFLAGS"
8899        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8900        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901/* end confdefs.h.  */
8902int foo(void) {}
8903_ACEOF
8904if ac_fn_c_try_link "$LINENO"; then :
8905  archive_expsym_cmds='$CC -shared $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'
8906
8907fi
8908rm -f core conftest.err conftest.$ac_objext \
8909    conftest$ac_exeext conftest.$ac_ext
8910        LDFLAGS="$save_LDFLAGS"
8911      else
8912	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'
8913	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'
8914      fi
8915      archive_cmds_need_lc='no'
8916      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8917      hardcode_libdir_separator=:
8918      inherit_rpath=yes
8919      link_all_deplibs=yes
8920      ;;
8921
8922    netbsd*)
8923      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8924	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8925      else
8926	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8927      fi
8928      hardcode_libdir_flag_spec='-R$libdir'
8929      hardcode_direct=yes
8930      hardcode_shlibpath_var=no
8931      ;;
8932
8933    newsos6)
8934      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935      hardcode_direct=yes
8936      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937      hardcode_libdir_separator=:
8938      hardcode_shlibpath_var=no
8939      ;;
8940
8941    *nto* | *qnx*)
8942      ;;
8943
8944    openbsd*)
8945      if test -f /usr/libexec/ld.so; then
8946	hardcode_direct=yes
8947	hardcode_shlibpath_var=no
8948	hardcode_direct_absolute=yes
8949	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8950	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8951	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8952	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8953	  export_dynamic_flag_spec='${wl}-E'
8954	else
8955	  case $host_os in
8956	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8957	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8958	     hardcode_libdir_flag_spec='-R$libdir'
8959	     ;;
8960	   *)
8961	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8962	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8963	     ;;
8964	  esac
8965	fi
8966      else
8967	ld_shlibs=no
8968      fi
8969      ;;
8970
8971    os2*)
8972      hardcode_libdir_flag_spec='-L$libdir'
8973      hardcode_minus_L=yes
8974      allow_undefined_flag=unsupported
8975      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'
8976      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8977      ;;
8978
8979    osf3*)
8980      if test "$GCC" = yes; then
8981	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8982	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'
8983      else
8984	allow_undefined_flag=' -expect_unresolved \*'
8985	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'
8986      fi
8987      archive_cmds_need_lc='no'
8988      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8989      hardcode_libdir_separator=:
8990      ;;
8991
8992    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8993      if test "$GCC" = yes; then
8994	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8995	archive_cmds='$CC -shared${allow_undefined_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'
8996	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997      else
8998	allow_undefined_flag=' -expect_unresolved \*'
8999	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'
9000	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~
9001	$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'
9002
9003	# Both c and cxx compiler support -rpath directly
9004	hardcode_libdir_flag_spec='-rpath $libdir'
9005      fi
9006      archive_cmds_need_lc='no'
9007      hardcode_libdir_separator=:
9008      ;;
9009
9010    solaris*)
9011      no_undefined_flag=' -z defs'
9012      if test "$GCC" = yes; then
9013	wlarc='${wl}'
9014	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9015	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9016	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9017      else
9018	case `$CC -V 2>&1` in
9019	*"Compilers 5.0"*)
9020	  wlarc=''
9021	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9023	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9024	  ;;
9025	*)
9026	  wlarc='${wl}'
9027	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9028	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9029	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9030	  ;;
9031	esac
9032      fi
9033      hardcode_libdir_flag_spec='-R$libdir'
9034      hardcode_shlibpath_var=no
9035      case $host_os in
9036      solaris2.[0-5] | solaris2.[0-5].*) ;;
9037      *)
9038	# The compiler driver will combine and reorder linker options,
9039	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9040	# but is careful enough not to reorder.
9041	# Supported since Solaris 2.6 (maybe 2.5.1?)
9042	if test "$GCC" = yes; then
9043	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9044	else
9045	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9046	fi
9047	;;
9048      esac
9049      link_all_deplibs=yes
9050      ;;
9051
9052    sunos4*)
9053      if test "x$host_vendor" = xsequent; then
9054	# Use $CC to link under sequent, because it throws in some extra .o
9055	# files that make .init and .fini sections work.
9056	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9057      else
9058	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9059      fi
9060      hardcode_libdir_flag_spec='-L$libdir'
9061      hardcode_direct=yes
9062      hardcode_minus_L=yes
9063      hardcode_shlibpath_var=no
9064      ;;
9065
9066    sysv4)
9067      case $host_vendor in
9068	sni)
9069	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070	  hardcode_direct=yes # is this really true???
9071	;;
9072	siemens)
9073	  ## LD is ld it makes a PLAMLIB
9074	  ## CC just makes a GrossModule.
9075	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9076	  reload_cmds='$CC -r -o $output$reload_objs'
9077	  hardcode_direct=no
9078        ;;
9079	motorola)
9080	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9082	;;
9083      esac
9084      runpath_var='LD_RUN_PATH'
9085      hardcode_shlibpath_var=no
9086      ;;
9087
9088    sysv4.3*)
9089      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9090      hardcode_shlibpath_var=no
9091      export_dynamic_flag_spec='-Bexport'
9092      ;;
9093
9094    sysv4*MP*)
9095      if test -d /usr/nec; then
9096	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9097	hardcode_shlibpath_var=no
9098	runpath_var=LD_RUN_PATH
9099	hardcode_runpath_var=yes
9100	ld_shlibs=yes
9101      fi
9102      ;;
9103
9104    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9105      no_undefined_flag='${wl}-z,text'
9106      archive_cmds_need_lc=no
9107      hardcode_shlibpath_var=no
9108      runpath_var='LD_RUN_PATH'
9109
9110      if test "$GCC" = yes; then
9111	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9112	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113      else
9114	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116      fi
9117      ;;
9118
9119    sysv5* | sco3.2v5* | sco5v6*)
9120      # Note: We can NOT use -z defs as we might desire, because we do not
9121      # link with -lc, and that would cause any symbols used from libc to
9122      # always be unresolved, which means just about no library would
9123      # ever link correctly.  If we're not using GNU ld we use -z text
9124      # though, which does catch some bad symbols but isn't as heavy-handed
9125      # as -z defs.
9126      no_undefined_flag='${wl}-z,text'
9127      allow_undefined_flag='${wl}-z,nodefs'
9128      archive_cmds_need_lc=no
9129      hardcode_shlibpath_var=no
9130      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9131      hardcode_libdir_separator=':'
9132      link_all_deplibs=yes
9133      export_dynamic_flag_spec='${wl}-Bexport'
9134      runpath_var='LD_RUN_PATH'
9135
9136      if test "$GCC" = yes; then
9137	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9138	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139      else
9140	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142      fi
9143      ;;
9144
9145    uts4*)
9146      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147      hardcode_libdir_flag_spec='-L$libdir'
9148      hardcode_shlibpath_var=no
9149      ;;
9150
9151    *)
9152      ld_shlibs=no
9153      ;;
9154    esac
9155
9156    if test x$host_vendor = xsni; then
9157      case $host in
9158      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9159	export_dynamic_flag_spec='${wl}-Blargedynsym'
9160	;;
9161      esac
9162    fi
9163  fi
9164
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9166$as_echo "$ld_shlibs" >&6; }
9167test "$ld_shlibs" = no && can_build_shared=no
9168
9169with_gnu_ld=$with_gnu_ld
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185#
9186# Do we need to explicitly link libc?
9187#
9188case "x$archive_cmds_need_lc" in
9189x|xyes)
9190  # Assume -lc should be added
9191  archive_cmds_need_lc=yes
9192
9193  if test "$enable_shared" = yes && test "$GCC" = yes; then
9194    case $archive_cmds in
9195    *'~'*)
9196      # FIXME: we may have to deal with multi-command sequences.
9197      ;;
9198    '$CC '*)
9199      # Test whether the compiler implicitly links with -lc since on some
9200      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9201      # to ld, don't add -lc before -lgcc.
9202      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9203$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9204if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9205  $as_echo_n "(cached) " >&6
9206else
9207  $RM conftest*
9208	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9209
9210	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9211  (eval $ac_compile) 2>&5
9212  ac_status=$?
9213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9214  test $ac_status = 0; } 2>conftest.err; then
9215	  soname=conftest
9216	  lib=conftest
9217	  libobjs=conftest.$ac_objext
9218	  deplibs=
9219	  wl=$lt_prog_compiler_wl
9220	  pic_flag=$lt_prog_compiler_pic
9221	  compiler_flags=-v
9222	  linker_flags=-v
9223	  verstring=
9224	  output_objdir=.
9225	  libname=conftest
9226	  lt_save_allow_undefined_flag=$allow_undefined_flag
9227	  allow_undefined_flag=
9228	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9229  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9230  ac_status=$?
9231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9232  test $ac_status = 0; }
9233	  then
9234	    lt_cv_archive_cmds_need_lc=no
9235	  else
9236	    lt_cv_archive_cmds_need_lc=yes
9237	  fi
9238	  allow_undefined_flag=$lt_save_allow_undefined_flag
9239	else
9240	  cat conftest.err 1>&5
9241	fi
9242	$RM conftest*
9243
9244fi
9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9246$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9247      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9248      ;;
9249    esac
9250  fi
9251  ;;
9252esac
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9411$as_echo_n "checking dynamic linker characteristics... " >&6; }
9412
9413if test "$GCC" = yes; then
9414  case $host_os in
9415    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9416    *) lt_awk_arg="/^libraries:/" ;;
9417  esac
9418  case $host_os in
9419    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9420    *) lt_sed_strip_eq="s,=/,/,g" ;;
9421  esac
9422  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9423  case $lt_search_path_spec in
9424  *\;*)
9425    # if the path contains ";" then we assume it to be the separator
9426    # otherwise default to the standard path separator (i.e. ":") - it is
9427    # assumed that no part of a normal pathname contains ";" but that should
9428    # okay in the real world where ";" in dirpaths is itself problematic.
9429    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9430    ;;
9431  *)
9432    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9433    ;;
9434  esac
9435  # Ok, now we have the path, separated by spaces, we can step through it
9436  # and add multilib dir if necessary.
9437  lt_tmp_lt_search_path_spec=
9438  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9439  for lt_sys_path in $lt_search_path_spec; do
9440    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9441      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9442    else
9443      test -d "$lt_sys_path" && \
9444	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9445    fi
9446  done
9447  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9448BEGIN {RS=" "; FS="/|\n";} {
9449  lt_foo="";
9450  lt_count=0;
9451  for (lt_i = NF; lt_i > 0; lt_i--) {
9452    if ($lt_i != "" && $lt_i != ".") {
9453      if ($lt_i == "..") {
9454        lt_count++;
9455      } else {
9456        if (lt_count == 0) {
9457          lt_foo="/" $lt_i lt_foo;
9458        } else {
9459          lt_count--;
9460        }
9461      }
9462    }
9463  }
9464  if (lt_foo != "") { lt_freq[lt_foo]++; }
9465  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9466}'`
9467  # AWK program above erroneously prepends '/' to C:/dos/paths
9468  # for these hosts.
9469  case $host_os in
9470    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9471      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9472  esac
9473  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9474else
9475  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9476fi
9477library_names_spec=
9478libname_spec='lib$name'
9479soname_spec=
9480shrext_cmds=".so"
9481postinstall_cmds=
9482postuninstall_cmds=
9483finish_cmds=
9484finish_eval=
9485shlibpath_var=
9486shlibpath_overrides_runpath=unknown
9487version_type=none
9488dynamic_linker="$host_os ld.so"
9489sys_lib_dlsearch_path_spec="/lib /usr/lib"
9490need_lib_prefix=unknown
9491hardcode_into_libs=no
9492
9493# when you set need_version to no, make sure it does not cause -set_version
9494# flags to be left without arguments
9495need_version=unknown
9496
9497case $host_os in
9498aix3*)
9499  version_type=linux
9500  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9501  shlibpath_var=LIBPATH
9502
9503  # AIX 3 has no versioning support, so we append a major version to the name.
9504  soname_spec='${libname}${release}${shared_ext}$major'
9505  ;;
9506
9507aix[4-9]*)
9508  version_type=linux
9509  need_lib_prefix=no
9510  need_version=no
9511  hardcode_into_libs=yes
9512  if test "$host_cpu" = ia64; then
9513    # AIX 5 supports IA64
9514    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9515    shlibpath_var=LD_LIBRARY_PATH
9516  else
9517    # With GCC up to 2.95.x, collect2 would create an import file
9518    # for dependence libraries.  The import file would start with
9519    # the line `#! .'.  This would cause the generated library to
9520    # depend on `.', always an invalid library.  This was fixed in
9521    # development snapshots of GCC prior to 3.0.
9522    case $host_os in
9523      aix4 | aix4.[01] | aix4.[01].*)
9524      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9525	   echo ' yes '
9526	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9527	:
9528      else
9529	can_build_shared=no
9530      fi
9531      ;;
9532    esac
9533    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9534    # soname into executable. Probably we can add versioning support to
9535    # collect2, so additional links can be useful in future.
9536    if test "$aix_use_runtimelinking" = yes; then
9537      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9538      # instead of lib<name>.a to let people know that these are not
9539      # typical AIX shared libraries.
9540      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541    else
9542      # We preserve .a as extension for shared libraries through AIX4.2
9543      # and later when we are not doing run time linking.
9544      library_names_spec='${libname}${release}.a $libname.a'
9545      soname_spec='${libname}${release}${shared_ext}$major'
9546    fi
9547    shlibpath_var=LIBPATH
9548  fi
9549  ;;
9550
9551amigaos*)
9552  case $host_cpu in
9553  powerpc)
9554    # Since July 2007 AmigaOS4 officially supports .so libraries.
9555    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557    ;;
9558  m68k)
9559    library_names_spec='$libname.ixlibrary $libname.a'
9560    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9561    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'
9562    ;;
9563  esac
9564  ;;
9565
9566beos*)
9567  library_names_spec='${libname}${shared_ext}'
9568  dynamic_linker="$host_os ld.so"
9569  shlibpath_var=LIBRARY_PATH
9570  ;;
9571
9572bsdi[45]*)
9573  version_type=linux
9574  need_version=no
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9578  shlibpath_var=LD_LIBRARY_PATH
9579  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9580  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9581  # the default ld.so.conf also contains /usr/contrib/lib and
9582  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9583  # libtool to hard-code these into programs
9584  ;;
9585
9586cygwin* | mingw* | pw32* | cegcc*)
9587  version_type=windows
9588  shrext_cmds=".dll"
9589  need_version=no
9590  need_lib_prefix=no
9591
9592  case $GCC,$host_os in
9593  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9594    library_names_spec='$libname.dll.a'
9595    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9596    postinstall_cmds='base_file=`basename \${file}`~
9597      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9598      dldir=$destdir/`dirname \$dlpath`~
9599      test -d \$dldir || mkdir -p \$dldir~
9600      $install_prog $dir/$dlname \$dldir/$dlname~
9601      chmod a+x \$dldir/$dlname~
9602      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9603        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9604      fi'
9605    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9606      dlpath=$dir/\$dldll~
9607       $RM \$dlpath'
9608    shlibpath_overrides_runpath=yes
9609
9610    case $host_os in
9611    cygwin*)
9612      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9613      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9614
9615      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9616      ;;
9617    mingw* | cegcc*)
9618      # MinGW DLLs use traditional 'lib' prefix
9619      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9620      ;;
9621    pw32*)
9622      # pw32 DLLs use 'pw' prefix rather than 'lib'
9623      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9624      ;;
9625    esac
9626    ;;
9627
9628  *)
9629    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9630    ;;
9631  esac
9632  dynamic_linker='Win32 ld.exe'
9633  # FIXME: first we should search . and the directory the executable is in
9634  shlibpath_var=PATH
9635  ;;
9636
9637darwin* | rhapsody*)
9638  dynamic_linker="$host_os dyld"
9639  version_type=darwin
9640  need_lib_prefix=no
9641  need_version=no
9642  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9643  soname_spec='${libname}${release}${major}$shared_ext'
9644  shlibpath_overrides_runpath=yes
9645  shlibpath_var=DYLD_LIBRARY_PATH
9646  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9647
9648  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9649  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9650  ;;
9651
9652dgux*)
9653  version_type=linux
9654  need_lib_prefix=no
9655  need_version=no
9656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9657  soname_spec='${libname}${release}${shared_ext}$major'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  ;;
9660
9661freebsd1*)
9662  dynamic_linker=no
9663  ;;
9664
9665freebsd* | dragonfly*)
9666  # DragonFly does not have aout.  When/if they implement a new
9667  # versioning mechanism, adjust this.
9668  if test -x /usr/bin/objformat; then
9669    objformat=`/usr/bin/objformat`
9670  else
9671    case $host_os in
9672    freebsd[123]*) objformat=aout ;;
9673    *) objformat=elf ;;
9674    esac
9675  fi
9676  version_type=freebsd-$objformat
9677  case $version_type in
9678    freebsd-elf*)
9679      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9680      need_version=no
9681      need_lib_prefix=no
9682      ;;
9683    freebsd-*)
9684      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9685      need_version=yes
9686      ;;
9687  esac
9688  shlibpath_var=LD_LIBRARY_PATH
9689  case $host_os in
9690  freebsd2*)
9691    shlibpath_overrides_runpath=yes
9692    ;;
9693  freebsd3.[01]* | freebsdelf3.[01]*)
9694    shlibpath_overrides_runpath=yes
9695    hardcode_into_libs=yes
9696    ;;
9697  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9698  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9699    shlibpath_overrides_runpath=no
9700    hardcode_into_libs=yes
9701    ;;
9702  *) # from 4.6 on, and DragonFly
9703    shlibpath_overrides_runpath=yes
9704    hardcode_into_libs=yes
9705    ;;
9706  esac
9707  ;;
9708
9709gnu*)
9710  version_type=linux
9711  need_lib_prefix=no
9712  need_version=no
9713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9714  soname_spec='${libname}${release}${shared_ext}$major'
9715  shlibpath_var=LD_LIBRARY_PATH
9716  hardcode_into_libs=yes
9717  ;;
9718
9719haiku*)
9720  version_type=linux
9721  need_lib_prefix=no
9722  need_version=no
9723  dynamic_linker="$host_os runtime_loader"
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  shlibpath_var=LIBRARY_PATH
9727  shlibpath_overrides_runpath=yes
9728  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9729  hardcode_into_libs=yes
9730  ;;
9731
9732hpux9* | hpux10* | hpux11*)
9733  # Give a soname corresponding to the major version so that dld.sl refuses to
9734  # link against other versions.
9735  version_type=sunos
9736  need_lib_prefix=no
9737  need_version=no
9738  case $host_cpu in
9739  ia64*)
9740    shrext_cmds='.so'
9741    hardcode_into_libs=yes
9742    dynamic_linker="$host_os dld.so"
9743    shlibpath_var=LD_LIBRARY_PATH
9744    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9745    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746    soname_spec='${libname}${release}${shared_ext}$major'
9747    if test "X$HPUX_IA64_MODE" = X32; then
9748      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9749    else
9750      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9751    fi
9752    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9753    ;;
9754  hppa*64*)
9755    shrext_cmds='.sl'
9756    hardcode_into_libs=yes
9757    dynamic_linker="$host_os dld.sl"
9758    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9759    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9760    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9761    soname_spec='${libname}${release}${shared_ext}$major'
9762    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9763    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9764    ;;
9765  *)
9766    shrext_cmds='.sl'
9767    dynamic_linker="$host_os dld.sl"
9768    shlibpath_var=SHLIB_PATH
9769    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9770    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771    soname_spec='${libname}${release}${shared_ext}$major'
9772    ;;
9773  esac
9774  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9775  postinstall_cmds='chmod 555 $lib'
9776  # or fails outright, so override atomically:
9777  install_override_mode=555
9778  ;;
9779
9780interix[3-9]*)
9781  version_type=linux
9782  need_lib_prefix=no
9783  need_version=no
9784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785  soname_spec='${libname}${release}${shared_ext}$major'
9786  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9787  shlibpath_var=LD_LIBRARY_PATH
9788  shlibpath_overrides_runpath=no
9789  hardcode_into_libs=yes
9790  ;;
9791
9792irix5* | irix6* | nonstopux*)
9793  case $host_os in
9794    nonstopux*) version_type=nonstopux ;;
9795    *)
9796	if test "$lt_cv_prog_gnu_ld" = yes; then
9797		version_type=linux
9798	else
9799		version_type=irix
9800	fi ;;
9801  esac
9802  need_lib_prefix=no
9803  need_version=no
9804  soname_spec='${libname}${release}${shared_ext}$major'
9805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9806  case $host_os in
9807  irix5* | nonstopux*)
9808    libsuff= shlibsuff=
9809    ;;
9810  *)
9811    case $LD in # libtool.m4 will add one of these switches to LD
9812    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9813      libsuff= shlibsuff= libmagic=32-bit;;
9814    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9815      libsuff=32 shlibsuff=N32 libmagic=N32;;
9816    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9817      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9818    *) libsuff= shlibsuff= libmagic=never-match;;
9819    esac
9820    ;;
9821  esac
9822  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9823  shlibpath_overrides_runpath=no
9824  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9825  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9826  hardcode_into_libs=yes
9827  ;;
9828
9829# No shared lib support for Linux oldld, aout, or coff.
9830linux*oldld* | linux*aout* | linux*coff*)
9831  dynamic_linker=no
9832  ;;
9833
9834# This must be Linux ELF.
9835linux* | k*bsd*-gnu | kopensolaris*-gnu)
9836  version_type=linux
9837  need_lib_prefix=no
9838  need_version=no
9839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840  soname_spec='${libname}${release}${shared_ext}$major'
9841  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9842  shlibpath_var=LD_LIBRARY_PATH
9843  shlibpath_overrides_runpath=no
9844
9845  # Some binutils ld are patched to set DT_RUNPATH
9846  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9847  $as_echo_n "(cached) " >&6
9848else
9849  lt_cv_shlibpath_overrides_runpath=no
9850    save_LDFLAGS=$LDFLAGS
9851    save_libdir=$libdir
9852    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9853	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9854    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856
9857int
9858main ()
9859{
9860
9861  ;
9862  return 0;
9863}
9864_ACEOF
9865if ac_fn_c_try_link "$LINENO"; then :
9866  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9867  lt_cv_shlibpath_overrides_runpath=yes
9868fi
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871    conftest$ac_exeext conftest.$ac_ext
9872    LDFLAGS=$save_LDFLAGS
9873    libdir=$save_libdir
9874
9875fi
9876
9877  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9878
9879  # This implies no fast_install, which is unacceptable.
9880  # Some rework will be needed to allow for fast_install
9881  # before this can be enabled.
9882  hardcode_into_libs=yes
9883
9884  # Append ld.so.conf contents to the search path
9885  if test -f /etc/ld.so.conf; then
9886    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' ' '`
9887    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9888  fi
9889
9890  # We used to test for /lib/ld.so.1 and disable shared libraries on
9891  # powerpc, because MkLinux only supported shared libraries with the
9892  # GNU dynamic linker.  Since this was broken with cross compilers,
9893  # most powerpc-linux boxes support dynamic linking these days and
9894  # people can always --disable-shared, the test was removed, and we
9895  # assume the GNU/Linux dynamic linker is in use.
9896  dynamic_linker='GNU/Linux ld.so'
9897  ;;
9898
9899netbsd*)
9900  version_type=sunos
9901  need_lib_prefix=no
9902  need_version=no
9903  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9904    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9905    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9906    dynamic_linker='NetBSD (a.out) ld.so'
9907  else
9908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9909    soname_spec='${libname}${release}${shared_ext}$major'
9910    dynamic_linker='NetBSD ld.elf_so'
9911  fi
9912  shlibpath_var=LD_LIBRARY_PATH
9913  shlibpath_overrides_runpath=yes
9914  hardcode_into_libs=yes
9915  ;;
9916
9917newsos6)
9918  version_type=linux
9919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920  shlibpath_var=LD_LIBRARY_PATH
9921  shlibpath_overrides_runpath=yes
9922  ;;
9923
9924*nto* | *qnx*)
9925  version_type=qnx
9926  need_lib_prefix=no
9927  need_version=no
9928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929  soname_spec='${libname}${release}${shared_ext}$major'
9930  shlibpath_var=LD_LIBRARY_PATH
9931  shlibpath_overrides_runpath=no
9932  hardcode_into_libs=yes
9933  dynamic_linker='ldqnx.so'
9934  ;;
9935
9936openbsd*)
9937  version_type=sunos
9938  sys_lib_dlsearch_path_spec="/usr/lib"
9939  need_lib_prefix=no
9940  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9941  case $host_os in
9942    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9943    *)				need_version=no  ;;
9944  esac
9945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9946  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9947  shlibpath_var=LD_LIBRARY_PATH
9948  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9949    case $host_os in
9950      openbsd2.[89] | openbsd2.[89].*)
9951	shlibpath_overrides_runpath=no
9952	;;
9953      *)
9954	shlibpath_overrides_runpath=yes
9955	;;
9956      esac
9957  else
9958    shlibpath_overrides_runpath=yes
9959  fi
9960  ;;
9961
9962os2*)
9963  libname_spec='$name'
9964  shrext_cmds=".dll"
9965  need_lib_prefix=no
9966  library_names_spec='$libname${shared_ext} $libname.a'
9967  dynamic_linker='OS/2 ld.exe'
9968  shlibpath_var=LIBPATH
9969  ;;
9970
9971osf3* | osf4* | osf5*)
9972  version_type=osf
9973  need_lib_prefix=no
9974  need_version=no
9975  soname_spec='${libname}${release}${shared_ext}$major'
9976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977  shlibpath_var=LD_LIBRARY_PATH
9978  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9979  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9980  ;;
9981
9982rdos*)
9983  dynamic_linker=no
9984  ;;
9985
9986solaris*)
9987  version_type=linux
9988  need_lib_prefix=no
9989  need_version=no
9990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991  soname_spec='${libname}${release}${shared_ext}$major'
9992  shlibpath_var=LD_LIBRARY_PATH
9993  shlibpath_overrides_runpath=yes
9994  hardcode_into_libs=yes
9995  # ldd complains unless libraries are executable
9996  postinstall_cmds='chmod +x $lib'
9997  ;;
9998
9999sunos4*)
10000  version_type=sunos
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10002  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10003  shlibpath_var=LD_LIBRARY_PATH
10004  shlibpath_overrides_runpath=yes
10005  if test "$with_gnu_ld" = yes; then
10006    need_lib_prefix=no
10007  fi
10008  need_version=yes
10009  ;;
10010
10011sysv4 | sysv4.3*)
10012  version_type=linux
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  shlibpath_var=LD_LIBRARY_PATH
10016  case $host_vendor in
10017    sni)
10018      shlibpath_overrides_runpath=no
10019      need_lib_prefix=no
10020      runpath_var=LD_RUN_PATH
10021      ;;
10022    siemens)
10023      need_lib_prefix=no
10024      ;;
10025    motorola)
10026      need_lib_prefix=no
10027      need_version=no
10028      shlibpath_overrides_runpath=no
10029      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10030      ;;
10031  esac
10032  ;;
10033
10034sysv4*MP*)
10035  if test -d /usr/nec ;then
10036    version_type=linux
10037    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10038    soname_spec='$libname${shared_ext}.$major'
10039    shlibpath_var=LD_LIBRARY_PATH
10040  fi
10041  ;;
10042
10043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10044  version_type=freebsd-elf
10045  need_lib_prefix=no
10046  need_version=no
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  shlibpath_var=LD_LIBRARY_PATH
10050  shlibpath_overrides_runpath=yes
10051  hardcode_into_libs=yes
10052  if test "$with_gnu_ld" = yes; then
10053    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10054  else
10055    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10056    case $host_os in
10057      sco3.2v5*)
10058        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10059	;;
10060    esac
10061  fi
10062  sys_lib_dlsearch_path_spec='/usr/lib'
10063  ;;
10064
10065tpf*)
10066  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10067  version_type=linux
10068  need_lib_prefix=no
10069  need_version=no
10070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071  shlibpath_var=LD_LIBRARY_PATH
10072  shlibpath_overrides_runpath=no
10073  hardcode_into_libs=yes
10074  ;;
10075
10076uts4*)
10077  version_type=linux
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  ;;
10082
10083*)
10084  dynamic_linker=no
10085  ;;
10086esac
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10088$as_echo "$dynamic_linker" >&6; }
10089test "$dynamic_linker" = no && can_build_shared=no
10090
10091variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10092if test "$GCC" = yes; then
10093  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10094fi
10095
10096if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10097  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10098fi
10099if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10100  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10101fi
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10195$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10196hardcode_action=
10197if test -n "$hardcode_libdir_flag_spec" ||
10198   test -n "$runpath_var" ||
10199   test "X$hardcode_automatic" = "Xyes" ; then
10200
10201  # We can hardcode non-existent directories.
10202  if test "$hardcode_direct" != no &&
10203     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10204     # have to relink, otherwise we might link with an installed library
10205     # when we should be linking with a yet-to-be-installed one
10206     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10207     test "$hardcode_minus_L" != no; then
10208    # Linking always hardcodes the temporary library directory.
10209    hardcode_action=relink
10210  else
10211    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10212    hardcode_action=immediate
10213  fi
10214else
10215  # We cannot hardcode anything, or else we can only hardcode existing
10216  # directories.
10217  hardcode_action=unsupported
10218fi
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10220$as_echo "$hardcode_action" >&6; }
10221
10222if test "$hardcode_action" = relink ||
10223   test "$inherit_rpath" = yes; then
10224  # Fast installation is not supported
10225  enable_fast_install=no
10226elif test "$shlibpath_overrides_runpath" = yes ||
10227     test "$enable_shared" = no; then
10228  # Fast installation is not necessary
10229  enable_fast_install=needless
10230fi
10231
10232
10233
10234
10235
10236
10237  if test "x$enable_dlopen" != xyes; then
10238  enable_dlopen=unknown
10239  enable_dlopen_self=unknown
10240  enable_dlopen_self_static=unknown
10241else
10242  lt_cv_dlopen=no
10243  lt_cv_dlopen_libs=
10244
10245  case $host_os in
10246  beos*)
10247    lt_cv_dlopen="load_add_on"
10248    lt_cv_dlopen_libs=
10249    lt_cv_dlopen_self=yes
10250    ;;
10251
10252  mingw* | pw32* | cegcc*)
10253    lt_cv_dlopen="LoadLibrary"
10254    lt_cv_dlopen_libs=
10255    ;;
10256
10257  cygwin*)
10258    lt_cv_dlopen="dlopen"
10259    lt_cv_dlopen_libs=
10260    ;;
10261
10262  darwin*)
10263  # if libdl is installed we need to link against it
10264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10265$as_echo_n "checking for dlopen in -ldl... " >&6; }
10266if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10267  $as_echo_n "(cached) " >&6
10268else
10269  ac_check_lib_save_LIBS=$LIBS
10270LIBS="-ldl  $LIBS"
10271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273
10274/* Override any GCC internal prototype to avoid an error.
10275   Use char because int might match the return type of a GCC
10276   builtin and then its argument prototype would still apply.  */
10277#ifdef __cplusplus
10278extern "C"
10279#endif
10280char dlopen ();
10281int
10282main ()
10283{
10284return dlopen ();
10285  ;
10286  return 0;
10287}
10288_ACEOF
10289if ac_fn_c_try_link "$LINENO"; then :
10290  ac_cv_lib_dl_dlopen=yes
10291else
10292  ac_cv_lib_dl_dlopen=no
10293fi
10294rm -f core conftest.err conftest.$ac_objext \
10295    conftest$ac_exeext conftest.$ac_ext
10296LIBS=$ac_check_lib_save_LIBS
10297fi
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10299$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10300if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10301  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10302else
10303
10304    lt_cv_dlopen="dyld"
10305    lt_cv_dlopen_libs=
10306    lt_cv_dlopen_self=yes
10307
10308fi
10309
10310    ;;
10311
10312  *)
10313    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10314if test "x$ac_cv_func_shl_load" = x""yes; then :
10315  lt_cv_dlopen="shl_load"
10316else
10317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10318$as_echo_n "checking for shl_load in -ldld... " >&6; }
10319if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10320  $as_echo_n "(cached) " >&6
10321else
10322  ac_check_lib_save_LIBS=$LIBS
10323LIBS="-ldld  $LIBS"
10324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325/* end confdefs.h.  */
10326
10327/* Override any GCC internal prototype to avoid an error.
10328   Use char because int might match the return type of a GCC
10329   builtin and then its argument prototype would still apply.  */
10330#ifdef __cplusplus
10331extern "C"
10332#endif
10333char shl_load ();
10334int
10335main ()
10336{
10337return shl_load ();
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342if ac_fn_c_try_link "$LINENO"; then :
10343  ac_cv_lib_dld_shl_load=yes
10344else
10345  ac_cv_lib_dld_shl_load=no
10346fi
10347rm -f core conftest.err conftest.$ac_objext \
10348    conftest$ac_exeext conftest.$ac_ext
10349LIBS=$ac_check_lib_save_LIBS
10350fi
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10352$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10353if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10354  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10355else
10356  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10357if test "x$ac_cv_func_dlopen" = x""yes; then :
10358  lt_cv_dlopen="dlopen"
10359else
10360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10361$as_echo_n "checking for dlopen in -ldl... " >&6; }
10362if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10363  $as_echo_n "(cached) " >&6
10364else
10365  ac_check_lib_save_LIBS=$LIBS
10366LIBS="-ldl  $LIBS"
10367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369
10370/* Override any GCC internal prototype to avoid an error.
10371   Use char because int might match the return type of a GCC
10372   builtin and then its argument prototype would still apply.  */
10373#ifdef __cplusplus
10374extern "C"
10375#endif
10376char dlopen ();
10377int
10378main ()
10379{
10380return dlopen ();
10381  ;
10382  return 0;
10383}
10384_ACEOF
10385if ac_fn_c_try_link "$LINENO"; then :
10386  ac_cv_lib_dl_dlopen=yes
10387else
10388  ac_cv_lib_dl_dlopen=no
10389fi
10390rm -f core conftest.err conftest.$ac_objext \
10391    conftest$ac_exeext conftest.$ac_ext
10392LIBS=$ac_check_lib_save_LIBS
10393fi
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10395$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10396if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10397  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10398else
10399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10400$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10401if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10402  $as_echo_n "(cached) " >&6
10403else
10404  ac_check_lib_save_LIBS=$LIBS
10405LIBS="-lsvld  $LIBS"
10406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407/* end confdefs.h.  */
10408
10409/* Override any GCC internal prototype to avoid an error.
10410   Use char because int might match the return type of a GCC
10411   builtin and then its argument prototype would still apply.  */
10412#ifdef __cplusplus
10413extern "C"
10414#endif
10415char dlopen ();
10416int
10417main ()
10418{
10419return dlopen ();
10420  ;
10421  return 0;
10422}
10423_ACEOF
10424if ac_fn_c_try_link "$LINENO"; then :
10425  ac_cv_lib_svld_dlopen=yes
10426else
10427  ac_cv_lib_svld_dlopen=no
10428fi
10429rm -f core conftest.err conftest.$ac_objext \
10430    conftest$ac_exeext conftest.$ac_ext
10431LIBS=$ac_check_lib_save_LIBS
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10434$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10435if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10436  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10437else
10438  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10439$as_echo_n "checking for dld_link in -ldld... " >&6; }
10440if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10441  $as_echo_n "(cached) " >&6
10442else
10443  ac_check_lib_save_LIBS=$LIBS
10444LIBS="-ldld  $LIBS"
10445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446/* end confdefs.h.  */
10447
10448/* Override any GCC internal prototype to avoid an error.
10449   Use char because int might match the return type of a GCC
10450   builtin and then its argument prototype would still apply.  */
10451#ifdef __cplusplus
10452extern "C"
10453#endif
10454char dld_link ();
10455int
10456main ()
10457{
10458return dld_link ();
10459  ;
10460  return 0;
10461}
10462_ACEOF
10463if ac_fn_c_try_link "$LINENO"; then :
10464  ac_cv_lib_dld_dld_link=yes
10465else
10466  ac_cv_lib_dld_dld_link=no
10467fi
10468rm -f core conftest.err conftest.$ac_objext \
10469    conftest$ac_exeext conftest.$ac_ext
10470LIBS=$ac_check_lib_save_LIBS
10471fi
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10473$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10474if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10475  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10476fi
10477
10478
10479fi
10480
10481
10482fi
10483
10484
10485fi
10486
10487
10488fi
10489
10490
10491fi
10492
10493    ;;
10494  esac
10495
10496  if test "x$lt_cv_dlopen" != xno; then
10497    enable_dlopen=yes
10498  else
10499    enable_dlopen=no
10500  fi
10501
10502  case $lt_cv_dlopen in
10503  dlopen)
10504    save_CPPFLAGS="$CPPFLAGS"
10505    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10506
10507    save_LDFLAGS="$LDFLAGS"
10508    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10509
10510    save_LIBS="$LIBS"
10511    LIBS="$lt_cv_dlopen_libs $LIBS"
10512
10513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10514$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10515if test "${lt_cv_dlopen_self+set}" = set; then :
10516  $as_echo_n "(cached) " >&6
10517else
10518  	  if test "$cross_compiling" = yes; then :
10519  lt_cv_dlopen_self=cross
10520else
10521  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10522  lt_status=$lt_dlunknown
10523  cat > conftest.$ac_ext <<_LT_EOF
10524#line $LINENO "configure"
10525#include "confdefs.h"
10526
10527#if HAVE_DLFCN_H
10528#include <dlfcn.h>
10529#endif
10530
10531#include <stdio.h>
10532
10533#ifdef RTLD_GLOBAL
10534#  define LT_DLGLOBAL		RTLD_GLOBAL
10535#else
10536#  ifdef DL_GLOBAL
10537#    define LT_DLGLOBAL		DL_GLOBAL
10538#  else
10539#    define LT_DLGLOBAL		0
10540#  endif
10541#endif
10542
10543/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10544   find out it does not work in some platform. */
10545#ifndef LT_DLLAZY_OR_NOW
10546#  ifdef RTLD_LAZY
10547#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10548#  else
10549#    ifdef DL_LAZY
10550#      define LT_DLLAZY_OR_NOW		DL_LAZY
10551#    else
10552#      ifdef RTLD_NOW
10553#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10554#      else
10555#        ifdef DL_NOW
10556#          define LT_DLLAZY_OR_NOW	DL_NOW
10557#        else
10558#          define LT_DLLAZY_OR_NOW	0
10559#        endif
10560#      endif
10561#    endif
10562#  endif
10563#endif
10564
10565/* When -fvisbility=hidden is used, assume the code has been annotated
10566   correspondingly for the symbols needed.  */
10567#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10568void fnord () __attribute__((visibility("default")));
10569#endif
10570
10571void fnord () { int i=42; }
10572int main ()
10573{
10574  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10575  int status = $lt_dlunknown;
10576
10577  if (self)
10578    {
10579      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10580      else
10581        {
10582	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10583          else puts (dlerror ());
10584	}
10585      /* dlclose (self); */
10586    }
10587  else
10588    puts (dlerror ());
10589
10590  return status;
10591}
10592_LT_EOF
10593  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10594  (eval $ac_link) 2>&5
10595  ac_status=$?
10596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10597  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10598    (./conftest; exit; ) >&5 2>/dev/null
10599    lt_status=$?
10600    case x$lt_status in
10601      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10602      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10603      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10604    esac
10605  else :
10606    # compilation failed
10607    lt_cv_dlopen_self=no
10608  fi
10609fi
10610rm -fr conftest*
10611
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10615$as_echo "$lt_cv_dlopen_self" >&6; }
10616
10617    if test "x$lt_cv_dlopen_self" = xyes; then
10618      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10620$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10621if test "${lt_cv_dlopen_self_static+set}" = set; then :
10622  $as_echo_n "(cached) " >&6
10623else
10624  	  if test "$cross_compiling" = yes; then :
10625  lt_cv_dlopen_self_static=cross
10626else
10627  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10628  lt_status=$lt_dlunknown
10629  cat > conftest.$ac_ext <<_LT_EOF
10630#line $LINENO "configure"
10631#include "confdefs.h"
10632
10633#if HAVE_DLFCN_H
10634#include <dlfcn.h>
10635#endif
10636
10637#include <stdio.h>
10638
10639#ifdef RTLD_GLOBAL
10640#  define LT_DLGLOBAL		RTLD_GLOBAL
10641#else
10642#  ifdef DL_GLOBAL
10643#    define LT_DLGLOBAL		DL_GLOBAL
10644#  else
10645#    define LT_DLGLOBAL		0
10646#  endif
10647#endif
10648
10649/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10650   find out it does not work in some platform. */
10651#ifndef LT_DLLAZY_OR_NOW
10652#  ifdef RTLD_LAZY
10653#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10654#  else
10655#    ifdef DL_LAZY
10656#      define LT_DLLAZY_OR_NOW		DL_LAZY
10657#    else
10658#      ifdef RTLD_NOW
10659#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10660#      else
10661#        ifdef DL_NOW
10662#          define LT_DLLAZY_OR_NOW	DL_NOW
10663#        else
10664#          define LT_DLLAZY_OR_NOW	0
10665#        endif
10666#      endif
10667#    endif
10668#  endif
10669#endif
10670
10671/* When -fvisbility=hidden is used, assume the code has been annotated
10672   correspondingly for the symbols needed.  */
10673#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10674void fnord () __attribute__((visibility("default")));
10675#endif
10676
10677void fnord () { int i=42; }
10678int main ()
10679{
10680  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10681  int status = $lt_dlunknown;
10682
10683  if (self)
10684    {
10685      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10686      else
10687        {
10688	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10689          else puts (dlerror ());
10690	}
10691      /* dlclose (self); */
10692    }
10693  else
10694    puts (dlerror ());
10695
10696  return status;
10697}
10698_LT_EOF
10699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10700  (eval $ac_link) 2>&5
10701  ac_status=$?
10702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10704    (./conftest; exit; ) >&5 2>/dev/null
10705    lt_status=$?
10706    case x$lt_status in
10707      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10708      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10709      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10710    esac
10711  else :
10712    # compilation failed
10713    lt_cv_dlopen_self_static=no
10714  fi
10715fi
10716rm -fr conftest*
10717
10718
10719fi
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10721$as_echo "$lt_cv_dlopen_self_static" >&6; }
10722    fi
10723
10724    CPPFLAGS="$save_CPPFLAGS"
10725    LDFLAGS="$save_LDFLAGS"
10726    LIBS="$save_LIBS"
10727    ;;
10728  esac
10729
10730  case $lt_cv_dlopen_self in
10731  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10732  *) enable_dlopen_self=unknown ;;
10733  esac
10734
10735  case $lt_cv_dlopen_self_static in
10736  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10737  *) enable_dlopen_self_static=unknown ;;
10738  esac
10739fi
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757striplib=
10758old_striplib=
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10760$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10761if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10762  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10763  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10765$as_echo "yes" >&6; }
10766else
10767# FIXME - insert some real tests, host_os isn't really good enough
10768  case $host_os in
10769  darwin*)
10770    if test -n "$STRIP" ; then
10771      striplib="$STRIP -x"
10772      old_striplib="$STRIP -S"
10773      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10774$as_echo "yes" >&6; }
10775    else
10776      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777$as_echo "no" >&6; }
10778    fi
10779    ;;
10780  *)
10781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782$as_echo "no" >&6; }
10783    ;;
10784  esac
10785fi
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798  # Report which library types will actually be built
10799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10800$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10802$as_echo "$can_build_shared" >&6; }
10803
10804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10805$as_echo_n "checking whether to build shared libraries... " >&6; }
10806  test "$can_build_shared" = "no" && enable_shared=no
10807
10808  # On AIX, shared libraries and static libraries use the same namespace, and
10809  # are all built from PIC.
10810  case $host_os in
10811  aix3*)
10812    test "$enable_shared" = yes && enable_static=no
10813    if test -n "$RANLIB"; then
10814      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10815      postinstall_cmds='$RANLIB $lib'
10816    fi
10817    ;;
10818
10819  aix[4-9]*)
10820    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10821      test "$enable_shared" = yes && enable_static=no
10822    fi
10823    ;;
10824  esac
10825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10826$as_echo "$enable_shared" >&6; }
10827
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10829$as_echo_n "checking whether to build static libraries... " >&6; }
10830  # Make sure either enable_shared or enable_static is yes.
10831  test "$enable_shared" = yes || enable_static=yes
10832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10833$as_echo "$enable_static" >&6; }
10834
10835
10836
10837
10838fi
10839ac_ext=c
10840ac_cpp='$CPP $CPPFLAGS'
10841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845CC="$lt_save_CC"
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859        ac_config_commands="$ac_config_commands libtool"
10860
10861
10862
10863
10864# Only expand once:
10865
10866
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
10868$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
10869if test "${libltdl_cv_shlibext+set}" = set; then :
10870  $as_echo_n "(cached) " >&6
10871else
10872
10873module=yes
10874eval libltdl_cv_shlibext=$shrext_cmds
10875
10876fi
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
10878$as_echo "$libltdl_cv_shlibext" >&6; }
10879if test -n "$libltdl_cv_shlibext"; then
10880
10881cat >>confdefs.h <<_ACEOF
10882#define LT_MODULE_EXT "$libltdl_cv_shlibext"
10883_ACEOF
10884
10885fi
10886
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
10888$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
10889if test "${lt_cv_module_path_var+set}" = set; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  lt_cv_module_path_var="$shlibpath_var"
10893fi
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
10895$as_echo "$lt_cv_module_path_var" >&6; }
10896if test -n "$lt_cv_module_path_var"; then
10897
10898cat >>confdefs.h <<_ACEOF
10899#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
10900_ACEOF
10901
10902fi
10903
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
10905$as_echo_n "checking for the default library search path... " >&6; }
10906if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
10907  $as_echo_n "(cached) " >&6
10908else
10909  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
10910fi
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
10912$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
10913if test -n "$lt_cv_sys_dlsearch_path"; then
10914  sys_dlsearch_path=
10915  for dir in $lt_cv_sys_dlsearch_path; do
10916    if test -z "$sys_dlsearch_path"; then
10917      sys_dlsearch_path="$dir"
10918    else
10919      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
10920    fi
10921  done
10922
10923cat >>confdefs.h <<_ACEOF
10924#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
10925_ACEOF
10926
10927fi
10928
10929
10930LT_DLLOADERS=
10931
10932
10933ac_ext=c
10934ac_cpp='$CPP $CPPFLAGS'
10935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937ac_compiler_gnu=$ac_cv_c_compiler_gnu
10938
10939
10940LIBADD_DLOPEN=
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10942$as_echo_n "checking for library containing dlopen... " >&6; }
10943if test "${ac_cv_search_dlopen+set}" = set; then :
10944  $as_echo_n "(cached) " >&6
10945else
10946  ac_func_search_save_LIBS=$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
10965for ac_lib in '' dl; do
10966  if test -z "$ac_lib"; then
10967    ac_res="none required"
10968  else
10969    ac_res=-l$ac_lib
10970    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10971  fi
10972  if ac_fn_c_try_link "$LINENO"; then :
10973  ac_cv_search_dlopen=$ac_res
10974fi
10975rm -f core conftest.err conftest.$ac_objext \
10976    conftest$ac_exeext
10977  if test "${ac_cv_search_dlopen+set}" = set; then :
10978  break
10979fi
10980done
10981if test "${ac_cv_search_dlopen+set}" = set; then :
10982
10983else
10984  ac_cv_search_dlopen=no
10985fi
10986rm conftest.$ac_ext
10987LIBS=$ac_func_search_save_LIBS
10988fi
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10990$as_echo "$ac_cv_search_dlopen" >&6; }
10991ac_res=$ac_cv_search_dlopen
10992if test "$ac_res" != no; then :
10993  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10994
10995$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10996
10997	if test "$ac_cv_search_dlopen" != "none required" ; then
10998	  LIBADD_DLOPEN="-ldl"
10999	fi
11000	libltdl_cv_lib_dl_dlopen="yes"
11001	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11002else
11003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004/* end confdefs.h.  */
11005#if HAVE_DLFCN_H
11006#  include <dlfcn.h>
11007#endif
11008
11009int
11010main ()
11011{
11012dlopen(0, 0);
11013  ;
11014  return 0;
11015}
11016_ACEOF
11017if ac_fn_c_try_link "$LINENO"; then :
11018
11019$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11020
11021	    libltdl_cv_func_dlopen="yes"
11022	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11023else
11024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11025$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11026if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11027  $as_echo_n "(cached) " >&6
11028else
11029  ac_check_lib_save_LIBS=$LIBS
11030LIBS="-lsvld  $LIBS"
11031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032/* end confdefs.h.  */
11033
11034/* Override any GCC internal prototype to avoid an error.
11035   Use char because int might match the return type of a GCC
11036   builtin and then its argument prototype would still apply.  */
11037#ifdef __cplusplus
11038extern "C"
11039#endif
11040char dlopen ();
11041int
11042main ()
11043{
11044return dlopen ();
11045  ;
11046  return 0;
11047}
11048_ACEOF
11049if ac_fn_c_try_link "$LINENO"; then :
11050  ac_cv_lib_svld_dlopen=yes
11051else
11052  ac_cv_lib_svld_dlopen=no
11053fi
11054rm -f core conftest.err conftest.$ac_objext \
11055    conftest$ac_exeext conftest.$ac_ext
11056LIBS=$ac_check_lib_save_LIBS
11057fi
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11059$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11060if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11061
11062$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11063
11064	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11065		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11066fi
11067
11068fi
11069rm -f core conftest.err conftest.$ac_objext \
11070    conftest$ac_exeext conftest.$ac_ext
11071fi
11072
11073if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11074then
11075  lt_save_LIBS="$LIBS"
11076  LIBS="$LIBS $LIBADD_DLOPEN"
11077  for ac_func in dlerror
11078do :
11079  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11080if test "x$ac_cv_func_dlerror" = x""yes; then :
11081  cat >>confdefs.h <<_ACEOF
11082#define HAVE_DLERROR 1
11083_ACEOF
11084
11085fi
11086done
11087
11088  LIBS="$lt_save_LIBS"
11089fi
11090
11091
11092LIBADD_SHL_LOAD=
11093ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11094if test "x$ac_cv_func_shl_load" = x""yes; then :
11095
11096$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11097
11098	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11099else
11100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11101$as_echo_n "checking for shl_load in -ldld... " >&6; }
11102if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11103  $as_echo_n "(cached) " >&6
11104else
11105  ac_check_lib_save_LIBS=$LIBS
11106LIBS="-ldld  $LIBS"
11107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108/* end confdefs.h.  */
11109
11110/* Override any GCC internal prototype to avoid an error.
11111   Use char because int might match the return type of a GCC
11112   builtin and then its argument prototype would still apply.  */
11113#ifdef __cplusplus
11114extern "C"
11115#endif
11116char shl_load ();
11117int
11118main ()
11119{
11120return shl_load ();
11121  ;
11122  return 0;
11123}
11124_ACEOF
11125if ac_fn_c_try_link "$LINENO"; then :
11126  ac_cv_lib_dld_shl_load=yes
11127else
11128  ac_cv_lib_dld_shl_load=no
11129fi
11130rm -f core conftest.err conftest.$ac_objext \
11131    conftest$ac_exeext conftest.$ac_ext
11132LIBS=$ac_check_lib_save_LIBS
11133fi
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11135$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11136if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11137
11138$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11139
11140	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11141	    LIBADD_SHL_LOAD="-ldld"
11142fi
11143
11144fi
11145
11146
11147
11148case $host_os in
11149darwin[1567].*)
11150# We only want this for pre-Mac OS X 10.4.
11151  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11152if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11153
11154$as_echo "#define HAVE_DYLD 1" >>confdefs.h
11155
11156	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11157fi
11158
11159  ;;
11160beos*)
11161  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11162  ;;
11163cygwin* | mingw* | os2* | pw32*)
11164  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11165"
11166if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11167  ac_have_decl=1
11168else
11169  ac_have_decl=0
11170fi
11171
11172cat >>confdefs.h <<_ACEOF
11173#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11174_ACEOF
11175
11176  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11177  ;;
11178esac
11179
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11181$as_echo_n "checking for dld_link in -ldld... " >&6; }
11182if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11183  $as_echo_n "(cached) " >&6
11184else
11185  ac_check_lib_save_LIBS=$LIBS
11186LIBS="-ldld  $LIBS"
11187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188/* end confdefs.h.  */
11189
11190/* Override any GCC internal prototype to avoid an error.
11191   Use char because int might match the return type of a GCC
11192   builtin and then its argument prototype would still apply.  */
11193#ifdef __cplusplus
11194extern "C"
11195#endif
11196char dld_link ();
11197int
11198main ()
11199{
11200return dld_link ();
11201  ;
11202  return 0;
11203}
11204_ACEOF
11205if ac_fn_c_try_link "$LINENO"; then :
11206  ac_cv_lib_dld_dld_link=yes
11207else
11208  ac_cv_lib_dld_dld_link=no
11209fi
11210rm -f core conftest.err conftest.$ac_objext \
11211    conftest$ac_exeext conftest.$ac_ext
11212LIBS=$ac_check_lib_save_LIBS
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11215$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11216if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11217
11218$as_echo "#define HAVE_DLD 1" >>confdefs.h
11219
11220		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11221fi
11222
11223
11224
11225
11226LT_DLPREOPEN=
11227if test -n "$LT_DLLOADERS"
11228then
11229  for lt_loader in $LT_DLLOADERS; do
11230    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11231  done
11232
11233$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11234
11235fi
11236
11237
11238LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11239
11240
11241ac_ext=c
11242ac_cpp='$CPP $CPPFLAGS'
11243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245ac_compiler_gnu=$ac_cv_c_compiler_gnu
11246
11247
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11249$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11250if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  lt_cv_sys_symbol_underscore=no
11254  cat > conftest.$ac_ext <<_LT_EOF
11255void nm_test_func(){}
11256int main(){nm_test_func;return 0;}
11257_LT_EOF
11258  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11259  (eval $ac_compile) 2>&5
11260  ac_status=$?
11261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262  test $ac_status = 0; }; then
11263    # Now try to grab the symbols.
11264    ac_nlist=conftest.nm
11265    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11266  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11267  ac_status=$?
11268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11269  test $ac_status = 0; } && test -s "$ac_nlist"; then
11270      # See whether the symbols have a leading underscore.
11271      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11272        lt_cv_sys_symbol_underscore=yes
11273      else
11274        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11275	  :
11276        else
11277	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11278        fi
11279      fi
11280    else
11281      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11282    fi
11283  else
11284    echo "configure: failed program was:" >&5
11285    cat conftest.c >&5
11286  fi
11287  rm -rf conftest*
11288
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11291$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11292  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11293
11294
11295if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11296  if test x"$libltdl_cv_func_dlopen" = xyes ||
11297     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11299$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11300if test "${libltdl_cv_need_uscore+set}" = set; then :
11301  $as_echo_n "(cached) " >&6
11302else
11303  libltdl_cv_need_uscore=unknown
11304          save_LIBS="$LIBS"
11305          LIBS="$LIBS $LIBADD_DLOPEN"
11306	  if test "$cross_compiling" = yes; then :
11307  libltdl_cv_need_uscore=cross
11308else
11309  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11310  lt_status=$lt_dlunknown
11311  cat > conftest.$ac_ext <<_LT_EOF
11312#line $LINENO "configure"
11313#include "confdefs.h"
11314
11315#if HAVE_DLFCN_H
11316#include <dlfcn.h>
11317#endif
11318
11319#include <stdio.h>
11320
11321#ifdef RTLD_GLOBAL
11322#  define LT_DLGLOBAL		RTLD_GLOBAL
11323#else
11324#  ifdef DL_GLOBAL
11325#    define LT_DLGLOBAL		DL_GLOBAL
11326#  else
11327#    define LT_DLGLOBAL		0
11328#  endif
11329#endif
11330
11331/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11332   find out it does not work in some platform. */
11333#ifndef LT_DLLAZY_OR_NOW
11334#  ifdef RTLD_LAZY
11335#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11336#  else
11337#    ifdef DL_LAZY
11338#      define LT_DLLAZY_OR_NOW		DL_LAZY
11339#    else
11340#      ifdef RTLD_NOW
11341#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11342#      else
11343#        ifdef DL_NOW
11344#          define LT_DLLAZY_OR_NOW	DL_NOW
11345#        else
11346#          define LT_DLLAZY_OR_NOW	0
11347#        endif
11348#      endif
11349#    endif
11350#  endif
11351#endif
11352
11353/* When -fvisbility=hidden is used, assume the code has been annotated
11354   correspondingly for the symbols needed.  */
11355#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11356void fnord () __attribute__((visibility("default")));
11357#endif
11358
11359void fnord () { int i=42; }
11360int main ()
11361{
11362  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11363  int status = $lt_dlunknown;
11364
11365  if (self)
11366    {
11367      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11368      else
11369        {
11370	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11371          else puts (dlerror ());
11372	}
11373      /* dlclose (self); */
11374    }
11375  else
11376    puts (dlerror ());
11377
11378  return status;
11379}
11380_LT_EOF
11381  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11382  (eval $ac_link) 2>&5
11383  ac_status=$?
11384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11385  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11386    (./conftest; exit; ) >&5 2>/dev/null
11387    lt_status=$?
11388    case x$lt_status in
11389      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11390      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11391      x$lt_dlunknown|x*)  ;;
11392    esac
11393  else :
11394    # compilation failed
11395
11396  fi
11397fi
11398rm -fr conftest*
11399
11400	  LIBS="$save_LIBS"
11401
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11404$as_echo "$libltdl_cv_need_uscore" >&6; }
11405  fi
11406fi
11407
11408if test x"$libltdl_cv_need_uscore" = xyes; then
11409
11410$as_echo "#define NEED_USCORE 1" >>confdefs.h
11411
11412fi
11413
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11415$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11416if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11417  $as_echo_n "(cached) " >&6
11418else
11419  # PORTME does your system automatically load deplibs for dlopen?
11420  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11421  # For now, we just catch OSes we know something about -- in the
11422  # future, we'll try test this programmatically.
11423  lt_cv_sys_dlopen_deplibs=unknown
11424  case $host_os in
11425  aix3*|aix4.1.*|aix4.2.*)
11426    # Unknown whether this is true for these versions of AIX, but
11427    # we want this `case' here to explicitly catch those versions.
11428    lt_cv_sys_dlopen_deplibs=unknown
11429    ;;
11430  aix[4-9]*)
11431    lt_cv_sys_dlopen_deplibs=yes
11432    ;;
11433  amigaos*)
11434    case $host_cpu in
11435    powerpc)
11436      lt_cv_sys_dlopen_deplibs=no
11437      ;;
11438    esac
11439    ;;
11440  darwin*)
11441    # Assuming the user has installed a libdl from somewhere, this is true
11442    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11443    lt_cv_sys_dlopen_deplibs=yes
11444    ;;
11445  freebsd* | dragonfly*)
11446    lt_cv_sys_dlopen_deplibs=yes
11447    ;;
11448  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
11449    # GNU and its variants, using gnu ld.so (Glibc)
11450    lt_cv_sys_dlopen_deplibs=yes
11451    ;;
11452  hpux10*|hpux11*)
11453    lt_cv_sys_dlopen_deplibs=yes
11454    ;;
11455  interix*)
11456    lt_cv_sys_dlopen_deplibs=yes
11457    ;;
11458  irix[12345]*|irix6.[01]*)
11459    # Catch all versions of IRIX before 6.2, and indicate that we don't
11460    # know how it worked for any of those versions.
11461    lt_cv_sys_dlopen_deplibs=unknown
11462    ;;
11463  irix*)
11464    # The case above catches anything before 6.2, and it's known that
11465    # at 6.2 and later dlopen does load deplibs.
11466    lt_cv_sys_dlopen_deplibs=yes
11467    ;;
11468  netbsd*)
11469    lt_cv_sys_dlopen_deplibs=yes
11470    ;;
11471  openbsd*)
11472    lt_cv_sys_dlopen_deplibs=yes
11473    ;;
11474  osf[1234]*)
11475    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11476    # it did *not* use an RPATH in a shared library to find objects the
11477    # library depends on, so we explicitly say `no'.
11478    lt_cv_sys_dlopen_deplibs=no
11479    ;;
11480  osf5.0|osf5.0a|osf5.1)
11481    # dlopen *does* load deplibs and with the right loader patch applied
11482    # it even uses RPATH in a shared library to search for shared objects
11483    # that the library depends on, but there's no easy way to know if that
11484    # patch is installed.  Since this is the case, all we can really
11485    # say is unknown -- it depends on the patch being installed.  If
11486    # it is, this changes to `yes'.  Without it, it would be `no'.
11487    lt_cv_sys_dlopen_deplibs=unknown
11488    ;;
11489  osf*)
11490    # the two cases above should catch all versions of osf <= 5.1.  Read
11491    # the comments above for what we know about them.
11492    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11493    # is used to find them so we can finally say `yes'.
11494    lt_cv_sys_dlopen_deplibs=yes
11495    ;;
11496  qnx*)
11497    lt_cv_sys_dlopen_deplibs=yes
11498    ;;
11499  solaris*)
11500    lt_cv_sys_dlopen_deplibs=yes
11501    ;;
11502  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11503    libltdl_cv_sys_dlopen_deplibs=yes
11504    ;;
11505  esac
11506
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11509$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11510if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11511
11512$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11513
11514fi
11515
11516:
11517
11518for ac_header in argz.h
11519do :
11520  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11521"
11522if test "x$ac_cv_header_argz_h" = x""yes; then :
11523  cat >>confdefs.h <<_ACEOF
11524#define HAVE_ARGZ_H 1
11525_ACEOF
11526
11527fi
11528
11529done
11530
11531
11532ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11533#  include <argz.h>
11534#endif
11535"
11536if test "x$ac_cv_type_error_t" = x""yes; then :
11537
11538cat >>confdefs.h <<_ACEOF
11539#define HAVE_ERROR_T 1
11540_ACEOF
11541
11542
11543else
11544
11545$as_echo "#define error_t int" >>confdefs.h
11546
11547
11548$as_echo "#define __error_t_defined 1" >>confdefs.h
11549
11550fi
11551
11552
11553ARGZ_H=
11554for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11555	argz_next argz_stringify
11556do :
11557  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11559eval as_val=\$$as_ac_var
11560   if test "x$as_val" = x""yes; then :
11561  cat >>confdefs.h <<_ACEOF
11562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11563_ACEOF
11564
11565else
11566  ARGZ_H=argz.h; case " $LIBOBJS " in
11567  *" argz.$ac_objext "* ) ;;
11568  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
11569 ;;
11570esac
11571
11572fi
11573done
11574
11575
11576if test -z "$ARGZ_H"; then :
11577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11578$as_echo_n "checking if argz actually works... " >&6; }
11579if test "${lt_cv_sys_argz_works+set}" = set; then :
11580  $as_echo_n "(cached) " >&6
11581else
11582  case $host_os in #(
11583	 *cygwin*)
11584	   lt_cv_sys_argz_works=no
11585	   if test "$cross_compiling" != no; then
11586	     lt_cv_sys_argz_works="guessing no"
11587	   else
11588	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11589	     save_IFS=$IFS
11590	     IFS=-.
11591	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11592	     IFS=$save_IFS
11593	     lt_os_major=${2-0}
11594	     lt_os_minor=${3-0}
11595	     lt_os_micro=${4-0}
11596	     if test "$lt_os_major" -gt 1 \
11597		|| { test "$lt_os_major" -eq 1 \
11598		  && { test "$lt_os_minor" -gt 5 \
11599		    || { test "$lt_os_minor" -eq 5 \
11600		      && test "$lt_os_micro" -gt 24; }; }; }; then
11601	       lt_cv_sys_argz_works=yes
11602	     fi
11603	   fi
11604	   ;; #(
11605	 *) lt_cv_sys_argz_works=yes ;;
11606	 esac
11607fi
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11609$as_echo "$lt_cv_sys_argz_works" >&6; }
11610     if test $lt_cv_sys_argz_works = yes; then :
11611
11612$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11613
11614else
11615  ARGZ_H=argz.h
11616        case " $LIBOBJS " in
11617  *" argz.$ac_objext "* ) ;;
11618  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
11619 ;;
11620esac
11621
11622fi
11623fi
11624
11625
11626
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11628$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11629if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  if test -n "$lt_cv_sys_global_symbol_pipe"; then
11633    libltdl_cv_preloaded_symbols=yes
11634  else
11635    libltdl_cv_preloaded_symbols=no
11636  fi
11637
11638fi
11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11640$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11641if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11642
11643$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11644
11645fi
11646
11647
11648
11649# Check whether --enable-ltdl-install was given.
11650if test "${enable_ltdl_install+set}" = set; then :
11651  enableval=$enable_ltdl_install;
11652fi
11653
11654
11655case ,${enable_ltdl_install},${enable_ltdl_convenience} in
11656  *yes*) ;;
11657  *) enable_ltdl_convenience=yes ;;
11658esac
11659
11660 if test x"${enable_ltdl_install-no}" != xno; then
11661  INSTALL_LTDL_TRUE=
11662  INSTALL_LTDL_FALSE='#'
11663else
11664  INSTALL_LTDL_TRUE='#'
11665  INSTALL_LTDL_FALSE=
11666fi
11667
11668  if test x"${enable_ltdl_convenience-no}" != xno; then
11669  CONVENIENCE_LTDL_TRUE=
11670  CONVENIENCE_LTDL_FALSE='#'
11671else
11672  CONVENIENCE_LTDL_TRUE='#'
11673  CONVENIENCE_LTDL_FALSE=
11674fi
11675
11676
11677
11678
11679
11680
11681# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
11682# the user used.  This is so that ltdl.h can pick up the parent projects
11683# config.h file, The first file in AC_CONFIG_HEADERS must contain the
11684# definitions required by ltdl.c.
11685# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
11686
11687
11688
11689for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
11690do :
11691  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11692ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11693"
11694eval as_val=\$$as_ac_Header
11695   if test "x$as_val" = x""yes; then :
11696  cat >>confdefs.h <<_ACEOF
11697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11698_ACEOF
11699
11700fi
11701
11702done
11703
11704
11705for ac_func in closedir opendir readdir
11706do :
11707  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11709eval as_val=\$$as_ac_var
11710   if test "x$as_val" = x""yes; then :
11711  cat >>confdefs.h <<_ACEOF
11712#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11713_ACEOF
11714
11715else
11716  case " $LIBOBJS " in
11717  *" lt__dirent.$ac_objext "* ) ;;
11718  *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
11719 ;;
11720esac
11721
11722fi
11723done
11724
11725for ac_func in strlcat strlcpy
11726do :
11727  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11729eval as_val=\$$as_ac_var
11730   if test "x$as_val" = x""yes; then :
11731  cat >>confdefs.h <<_ACEOF
11732#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11733_ACEOF
11734
11735else
11736  case " $LIBOBJS " in
11737  *" lt__strl.$ac_objext "* ) ;;
11738  *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
11739 ;;
11740esac
11741
11742fi
11743done
11744
11745
11746
11747cat >>confdefs.h <<_ACEOF
11748#define LT_LIBEXT "$libext"
11749_ACEOF
11750
11751
11752name=ltdl
11753LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
11754
11755
11756
11757
11758## -------- ##
11759## Outputs. ##
11760## -------- ##
11761ac_config_files="$ac_config_files Makefile"
11762
11763cat >confcache <<\_ACEOF
11764# This file is a shell script that caches the results of configure
11765# tests run on this system so they can be shared between configure
11766# scripts and configure runs, see configure's option --config-cache.
11767# It is not useful on other systems.  If it contains results you don't
11768# want to keep, you may remove or edit it.
11769#
11770# config.status only pays attention to the cache file if you give it
11771# the --recheck option to rerun configure.
11772#
11773# `ac_cv_env_foo' variables (set or unset) will be overridden when
11774# loading this file, other *unset* `ac_cv_foo' will be assigned the
11775# following values.
11776
11777_ACEOF
11778
11779# The following way of writing the cache mishandles newlines in values,
11780# but we know of no workaround that is simple, portable, and efficient.
11781# So, we kill variables containing newlines.
11782# Ultrix sh set writes to stderr and can't be redirected directly,
11783# and sets the high bit in the cache file unless we assign to the vars.
11784(
11785  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11786    eval ac_val=\$$ac_var
11787    case $ac_val in #(
11788    *${as_nl}*)
11789      case $ac_var in #(
11790      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11791$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11792      esac
11793      case $ac_var in #(
11794      _ | IFS | as_nl) ;; #(
11795      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11796      *) { eval $ac_var=; unset $ac_var;} ;;
11797      esac ;;
11798    esac
11799  done
11800
11801  (set) 2>&1 |
11802    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11803    *${as_nl}ac_space=\ *)
11804      # `set' does not quote correctly, so add quotes: double-quote
11805      # substitution turns \\\\ into \\, and sed turns \\ into \.
11806      sed -n \
11807	"s/'/'\\\\''/g;
11808	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11809      ;; #(
11810    *)
11811      # `set' quotes correctly as required by POSIX, so do not add quotes.
11812      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11813      ;;
11814    esac |
11815    sort
11816) |
11817  sed '
11818     /^ac_cv_env_/b end
11819     t clear
11820     :clear
11821     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11822     t end
11823     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11824     :end' >>confcache
11825if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11826  if test -w "$cache_file"; then
11827    test "x$cache_file" != "x/dev/null" &&
11828      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11829$as_echo "$as_me: updating cache $cache_file" >&6;}
11830    cat confcache >$cache_file
11831  else
11832    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11833$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11834  fi
11835fi
11836rm -f confcache
11837
11838test "x$prefix" = xNONE && prefix=$ac_default_prefix
11839# Let make expand exec_prefix.
11840test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11841
11842DEFS=-DHAVE_CONFIG_H
11843
11844ac_libobjs=
11845ac_ltlibobjs=
11846for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11847  # 1. Remove the extension, and $U if already installed.
11848  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11849  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11850  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11851  #    will be set to the directory where LIBOBJS objects are built.
11852  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11853  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11854done
11855LIBOBJS=$ac_libobjs
11856
11857LTLIBOBJS=$ac_ltlibobjs
11858
11859
11860 if test -n "$EXEEXT"; then
11861  am__EXEEXT_TRUE=
11862  am__EXEEXT_FALSE='#'
11863else
11864  am__EXEEXT_TRUE='#'
11865  am__EXEEXT_FALSE=
11866fi
11867
11868if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11869  as_fn_error "conditional \"AMDEP\" was never defined.
11870Usually this means the macro was only invoked conditionally." "$LINENO" 5
11871fi
11872if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11873  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11874Usually this means the macro was only invoked conditionally." "$LINENO" 5
11875fi
11876if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
11877  as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
11878Usually this means the macro was only invoked conditionally." "$LINENO" 5
11879fi
11880if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
11881  as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
11882Usually this means the macro was only invoked conditionally." "$LINENO" 5
11883fi
11884LT_CONFIG_H=config.h
11885
11886: ${CONFIG_STATUS=./config.status}
11887ac_write_fail=0
11888ac_clean_files_save=$ac_clean_files
11889ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11891$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11892as_write_fail=0
11893cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11894#! $SHELL
11895# Generated by $as_me.
11896# Run this file to recreate the current configuration.
11897# Compiler output produced by configure, useful for debugging
11898# configure, is in config.log if it exists.
11899
11900debug=false
11901ac_cs_recheck=false
11902ac_cs_silent=false
11903
11904SHELL=\${CONFIG_SHELL-$SHELL}
11905export SHELL
11906_ASEOF
11907cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11908## -------------------- ##
11909## M4sh Initialization. ##
11910## -------------------- ##
11911
11912# Be more Bourne compatible
11913DUALCASE=1; export DUALCASE # for MKS sh
11914if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11915  emulate sh
11916  NULLCMD=:
11917  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11918  # is contrary to our usage.  Disable this feature.
11919  alias -g '${1+"$@"}'='"$@"'
11920  setopt NO_GLOB_SUBST
11921else
11922  case `(set -o) 2>/dev/null` in #(
11923  *posix*) :
11924    set -o posix ;; #(
11925  *) :
11926     ;;
11927esac
11928fi
11929
11930
11931as_nl='
11932'
11933export as_nl
11934# Printing a long string crashes Solaris 7 /usr/bin/printf.
11935as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11936as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11937as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11938# Prefer a ksh shell builtin over an external printf program on Solaris,
11939# but without wasting forks for bash or zsh.
11940if test -z "$BASH_VERSION$ZSH_VERSION" \
11941    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11942  as_echo='print -r --'
11943  as_echo_n='print -rn --'
11944elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11945  as_echo='printf %s\n'
11946  as_echo_n='printf %s'
11947else
11948  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11949    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11950    as_echo_n='/usr/ucb/echo -n'
11951  else
11952    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11953    as_echo_n_body='eval
11954      arg=$1;
11955      case $arg in #(
11956      *"$as_nl"*)
11957	expr "X$arg" : "X\\(.*\\)$as_nl";
11958	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11959      esac;
11960      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11961    '
11962    export as_echo_n_body
11963    as_echo_n='sh -c $as_echo_n_body as_echo'
11964  fi
11965  export as_echo_body
11966  as_echo='sh -c $as_echo_body as_echo'
11967fi
11968
11969# The user is always right.
11970if test "${PATH_SEPARATOR+set}" != set; then
11971  PATH_SEPARATOR=:
11972  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11973    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11974      PATH_SEPARATOR=';'
11975  }
11976fi
11977
11978
11979# IFS
11980# We need space, tab and new line, in precisely that order.  Quoting is
11981# there to prevent editors from complaining about space-tab.
11982# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11983# splitting by setting IFS to empty value.)
11984IFS=" ""	$as_nl"
11985
11986# Find who we are.  Look in the path if we contain no directory separator.
11987case $0 in #((
11988  *[\\/]* ) as_myself=$0 ;;
11989  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990for as_dir in $PATH
11991do
11992  IFS=$as_save_IFS
11993  test -z "$as_dir" && as_dir=.
11994    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11995  done
11996IFS=$as_save_IFS
11997
11998     ;;
11999esac
12000# We did not find ourselves, most probably we were run as `sh COMMAND'
12001# in which case we are not to be found in the path.
12002if test "x$as_myself" = x; then
12003  as_myself=$0
12004fi
12005if test ! -f "$as_myself"; then
12006  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12007  exit 1
12008fi
12009
12010# Unset variables that we do not need and which cause bugs (e.g. in
12011# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12012# suppresses any "Segmentation fault" message there.  '((' could
12013# trigger a bug in pdksh 5.2.14.
12014for as_var in BASH_ENV ENV MAIL MAILPATH
12015do eval test x\${$as_var+set} = xset \
12016  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12017done
12018PS1='$ '
12019PS2='> '
12020PS4='+ '
12021
12022# NLS nuisances.
12023LC_ALL=C
12024export LC_ALL
12025LANGUAGE=C
12026export LANGUAGE
12027
12028# CDPATH.
12029(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12030
12031
12032# as_fn_error ERROR [LINENO LOG_FD]
12033# ---------------------------------
12034# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12035# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12036# script with status $?, using 1 if that was 0.
12037as_fn_error ()
12038{
12039  as_status=$?; test $as_status -eq 0 && as_status=1
12040  if test "$3"; then
12041    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12042    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12043  fi
12044  $as_echo "$as_me: error: $1" >&2
12045  as_fn_exit $as_status
12046} # as_fn_error
12047
12048
12049# as_fn_set_status STATUS
12050# -----------------------
12051# Set $? to STATUS, without forking.
12052as_fn_set_status ()
12053{
12054  return $1
12055} # as_fn_set_status
12056
12057# as_fn_exit STATUS
12058# -----------------
12059# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12060as_fn_exit ()
12061{
12062  set +e
12063  as_fn_set_status $1
12064  exit $1
12065} # as_fn_exit
12066
12067# as_fn_unset VAR
12068# ---------------
12069# Portably unset VAR.
12070as_fn_unset ()
12071{
12072  { eval $1=; unset $1;}
12073}
12074as_unset=as_fn_unset
12075# as_fn_append VAR VALUE
12076# ----------------------
12077# Append the text in VALUE to the end of the definition contained in VAR. Take
12078# advantage of any shell optimizations that allow amortized linear growth over
12079# repeated appends, instead of the typical quadratic growth present in naive
12080# implementations.
12081if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12082  eval 'as_fn_append ()
12083  {
12084    eval $1+=\$2
12085  }'
12086else
12087  as_fn_append ()
12088  {
12089    eval $1=\$$1\$2
12090  }
12091fi # as_fn_append
12092
12093# as_fn_arith ARG...
12094# ------------------
12095# Perform arithmetic evaluation on the ARGs, and store the result in the
12096# global $as_val. Take advantage of shells that can avoid forks. The arguments
12097# must be portable across $(()) and expr.
12098if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12099  eval 'as_fn_arith ()
12100  {
12101    as_val=$(( $* ))
12102  }'
12103else
12104  as_fn_arith ()
12105  {
12106    as_val=`expr "$@" || test $? -eq 1`
12107  }
12108fi # as_fn_arith
12109
12110
12111if expr a : '\(a\)' >/dev/null 2>&1 &&
12112   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12113  as_expr=expr
12114else
12115  as_expr=false
12116fi
12117
12118if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12119  as_basename=basename
12120else
12121  as_basename=false
12122fi
12123
12124if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12125  as_dirname=dirname
12126else
12127  as_dirname=false
12128fi
12129
12130as_me=`$as_basename -- "$0" ||
12131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12132	 X"$0" : 'X\(//\)$' \| \
12133	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12134$as_echo X/"$0" |
12135    sed '/^.*\/\([^/][^/]*\)\/*$/{
12136	    s//\1/
12137	    q
12138	  }
12139	  /^X\/\(\/\/\)$/{
12140	    s//\1/
12141	    q
12142	  }
12143	  /^X\/\(\/\).*/{
12144	    s//\1/
12145	    q
12146	  }
12147	  s/.*/./; q'`
12148
12149# Avoid depending upon Character Ranges.
12150as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12152as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12153as_cr_digits='0123456789'
12154as_cr_alnum=$as_cr_Letters$as_cr_digits
12155
12156ECHO_C= ECHO_N= ECHO_T=
12157case `echo -n x` in #(((((
12158-n*)
12159  case `echo 'xy\c'` in
12160  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12161  xy)  ECHO_C='\c';;
12162  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12163       ECHO_T='	';;
12164  esac;;
12165*)
12166  ECHO_N='-n';;
12167esac
12168
12169rm -f conf$$ conf$$.exe conf$$.file
12170if test -d conf$$.dir; then
12171  rm -f conf$$.dir/conf$$.file
12172else
12173  rm -f conf$$.dir
12174  mkdir conf$$.dir 2>/dev/null
12175fi
12176if (echo >conf$$.file) 2>/dev/null; then
12177  if ln -s conf$$.file conf$$ 2>/dev/null; then
12178    as_ln_s='ln -s'
12179    # ... but there are two gotchas:
12180    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12181    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12182    # In both cases, we have to default to `cp -p'.
12183    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12184      as_ln_s='cp -p'
12185  elif ln conf$$.file conf$$ 2>/dev/null; then
12186    as_ln_s=ln
12187  else
12188    as_ln_s='cp -p'
12189  fi
12190else
12191  as_ln_s='cp -p'
12192fi
12193rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12194rmdir conf$$.dir 2>/dev/null
12195
12196
12197# as_fn_mkdir_p
12198# -------------
12199# Create "$as_dir" as a directory, including parents if necessary.
12200as_fn_mkdir_p ()
12201{
12202
12203  case $as_dir in #(
12204  -*) as_dir=./$as_dir;;
12205  esac
12206  test -d "$as_dir" || eval $as_mkdir_p || {
12207    as_dirs=
12208    while :; do
12209      case $as_dir in #(
12210      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12211      *) as_qdir=$as_dir;;
12212      esac
12213      as_dirs="'$as_qdir' $as_dirs"
12214      as_dir=`$as_dirname -- "$as_dir" ||
12215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12216	 X"$as_dir" : 'X\(//\)[^/]' \| \
12217	 X"$as_dir" : 'X\(//\)$' \| \
12218	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12219$as_echo X"$as_dir" |
12220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12221	    s//\1/
12222	    q
12223	  }
12224	  /^X\(\/\/\)[^/].*/{
12225	    s//\1/
12226	    q
12227	  }
12228	  /^X\(\/\/\)$/{
12229	    s//\1/
12230	    q
12231	  }
12232	  /^X\(\/\).*/{
12233	    s//\1/
12234	    q
12235	  }
12236	  s/.*/./; q'`
12237      test -d "$as_dir" && break
12238    done
12239    test -z "$as_dirs" || eval "mkdir $as_dirs"
12240  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12241
12242
12243} # as_fn_mkdir_p
12244if mkdir -p . 2>/dev/null; then
12245  as_mkdir_p='mkdir -p "$as_dir"'
12246else
12247  test -d ./-p && rmdir ./-p
12248  as_mkdir_p=false
12249fi
12250
12251if test -x / >/dev/null 2>&1; then
12252  as_test_x='test -x'
12253else
12254  if ls -dL / >/dev/null 2>&1; then
12255    as_ls_L_option=L
12256  else
12257    as_ls_L_option=
12258  fi
12259  as_test_x='
12260    eval sh -c '\''
12261      if test -d "$1"; then
12262	test -d "$1/.";
12263      else
12264	case $1 in #(
12265	-*)set "./$1";;
12266	esac;
12267	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12268	???[sx]*):;;*)false;;esac;fi
12269    '\'' sh
12270  '
12271fi
12272as_executable_p=$as_test_x
12273
12274# Sed expression to map a string onto a valid CPP name.
12275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12276
12277# Sed expression to map a string onto a valid variable name.
12278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12279
12280
12281exec 6>&1
12282## ----------------------------------- ##
12283## Main body of $CONFIG_STATUS script. ##
12284## ----------------------------------- ##
12285_ASEOF
12286test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12287
12288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12289# Save the log message, to keep $0 and so on meaningful, and to
12290# report actual input values of CONFIG_FILES etc. instead of their
12291# values after options handling.
12292ac_log="
12293This file was extended by libltdl $as_me 2.2.10, which was
12294generated by GNU Autoconf 2.65.  Invocation command line was
12295
12296  CONFIG_FILES    = $CONFIG_FILES
12297  CONFIG_HEADERS  = $CONFIG_HEADERS
12298  CONFIG_LINKS    = $CONFIG_LINKS
12299  CONFIG_COMMANDS = $CONFIG_COMMANDS
12300  $ $0 $@
12301
12302on `(hostname || uname -n) 2>/dev/null | sed 1q`
12303"
12304
12305_ACEOF
12306
12307case $ac_config_files in *"
12308"*) set x $ac_config_files; shift; ac_config_files=$*;;
12309esac
12310
12311case $ac_config_headers in *"
12312"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12313esac
12314
12315
12316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12317# Files that config.status was made for.
12318config_files="$ac_config_files"
12319config_headers="$ac_config_headers"
12320config_commands="$ac_config_commands"
12321
12322_ACEOF
12323
12324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12325ac_cs_usage="\
12326\`$as_me' instantiates files and other configuration actions
12327from templates according to the current configuration.  Unless the files
12328and actions are specified as TAGs, all are instantiated by default.
12329
12330Usage: $0 [OPTION]... [TAG]...
12331
12332  -h, --help       print this help, then exit
12333  -V, --version    print version number and configuration settings, then exit
12334      --config     print configuration, then exit
12335  -q, --quiet, --silent
12336                   do not print progress messages
12337  -d, --debug      don't remove temporary files
12338      --recheck    update $as_me by reconfiguring in the same conditions
12339      --file=FILE[:TEMPLATE]
12340                   instantiate the configuration file FILE
12341      --header=FILE[:TEMPLATE]
12342                   instantiate the configuration header FILE
12343
12344Configuration files:
12345$config_files
12346
12347Configuration headers:
12348$config_headers
12349
12350Configuration commands:
12351$config_commands
12352
12353Report bugs to <bug-libtool@gnu.org>."
12354
12355_ACEOF
12356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12357ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12358ac_cs_version="\\
12359libltdl config.status 2.2.10
12360configured by $0, generated by GNU Autoconf 2.65,
12361  with options \\"\$ac_cs_config\\"
12362
12363Copyright (C) 2009 Free Software Foundation, Inc.
12364This config.status script is free software; the Free Software Foundation
12365gives unlimited permission to copy, distribute and modify it."
12366
12367ac_pwd='$ac_pwd'
12368srcdir='$srcdir'
12369INSTALL='$INSTALL'
12370MKDIR_P='$MKDIR_P'
12371AWK='$AWK'
12372test -n "\$AWK" || AWK=awk
12373_ACEOF
12374
12375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12376# The default lists apply if the user does not specify any file.
12377ac_need_defaults=:
12378while test $# != 0
12379do
12380  case $1 in
12381  --*=*)
12382    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12383    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12384    ac_shift=:
12385    ;;
12386  *)
12387    ac_option=$1
12388    ac_optarg=$2
12389    ac_shift=shift
12390    ;;
12391  esac
12392
12393  case $ac_option in
12394  # Handling of the options.
12395  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12396    ac_cs_recheck=: ;;
12397  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12398    $as_echo "$ac_cs_version"; exit ;;
12399  --config | --confi | --conf | --con | --co | --c )
12400    $as_echo "$ac_cs_config"; exit ;;
12401  --debug | --debu | --deb | --de | --d | -d )
12402    debug=: ;;
12403  --file | --fil | --fi | --f )
12404    $ac_shift
12405    case $ac_optarg in
12406    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12407    esac
12408    as_fn_append CONFIG_FILES " '$ac_optarg'"
12409    ac_need_defaults=false;;
12410  --header | --heade | --head | --hea )
12411    $ac_shift
12412    case $ac_optarg in
12413    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12414    esac
12415    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12416    ac_need_defaults=false;;
12417  --he | --h)
12418    # Conflict between --help and --header
12419    as_fn_error "ambiguous option: \`$1'
12420Try \`$0 --help' for more information.";;
12421  --help | --hel | -h )
12422    $as_echo "$ac_cs_usage"; exit ;;
12423  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12424  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12425    ac_cs_silent=: ;;
12426
12427  # This is an error.
12428  -*) as_fn_error "unrecognized option: \`$1'
12429Try \`$0 --help' for more information." ;;
12430
12431  *) as_fn_append ac_config_targets " $1"
12432     ac_need_defaults=false ;;
12433
12434  esac
12435  shift
12436done
12437
12438ac_configure_extra_args=
12439
12440if $ac_cs_silent; then
12441  exec 6>/dev/null
12442  ac_configure_extra_args="$ac_configure_extra_args --silent"
12443fi
12444
12445_ACEOF
12446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12447if \$ac_cs_recheck; then
12448  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12449  shift
12450  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12451  CONFIG_SHELL='$SHELL'
12452  export CONFIG_SHELL
12453  exec "\$@"
12454fi
12455
12456_ACEOF
12457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12458exec 5>>config.log
12459{
12460  echo
12461  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12462## Running $as_me. ##
12463_ASBOX
12464  $as_echo "$ac_log"
12465} >&5
12466
12467_ACEOF
12468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12469#
12470# INIT-COMMANDS
12471#
12472AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12473
12474
12475# The HP-UX ksh and POSIX shell print the target directory to stdout
12476# if CDPATH is set.
12477(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12478
12479sed_quote_subst='$sed_quote_subst'
12480double_quote_subst='$double_quote_subst'
12481delay_variable_subst='$delay_variable_subst'
12482macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12483macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12484AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12485DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12486OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12487enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12488enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12489pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12490enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12491SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12492ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12493host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12494host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12495host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12496build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12497build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12498build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12499SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12500Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12501GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12502EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12503FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12504LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12505NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12506LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12507max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12508ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12509exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12510lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12511lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12512lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12513reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12514reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12515deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12516file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12517AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12518AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12519STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12520RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12521old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12522old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12523old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12524lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12525CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12526CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12527compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12528GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12529lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12530lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12531lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12532lt_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"`'
12533objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12534MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12535lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12536lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12537lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12538lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12539lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12540need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12541DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12542NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12543LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12544OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12545OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12546libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12547shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12548extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12549archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12550enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12551export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12552whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12553compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12554old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12555old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12556archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12557archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12558module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12559module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12560with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12561allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12562no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12563hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12564hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12565hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12566hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12567hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12568hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12569hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12570hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12571inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12572link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12573fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12574always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12575export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12576exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12577include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12578prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12579file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12580variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12581need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12582need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12583version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12584runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12585shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12586shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12587libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12588library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12589soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12590install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12591postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12592postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12593finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12594finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12595hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12596sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12597sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12598hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12599enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12600enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12601enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12602old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12603striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12604
12605LTCC='$LTCC'
12606LTCFLAGS='$LTCFLAGS'
12607compiler='$compiler_DEFAULT'
12608
12609# A function that is used when there is no print builtin or printf.
12610func_fallback_echo ()
12611{
12612  eval 'cat <<_LTECHO_EOF
12613\$1
12614_LTECHO_EOF'
12615}
12616
12617# Quote evaled strings.
12618for var in AS \
12619DLLTOOL \
12620OBJDUMP \
12621SHELL \
12622ECHO \
12623SED \
12624GREP \
12625EGREP \
12626FGREP \
12627LD \
12628NM \
12629LN_S \
12630lt_SP2NL \
12631lt_NL2SP \
12632reload_flag \
12633deplibs_check_method \
12634file_magic_cmd \
12635AR \
12636AR_FLAGS \
12637STRIP \
12638RANLIB \
12639CC \
12640CFLAGS \
12641compiler \
12642lt_cv_sys_global_symbol_pipe \
12643lt_cv_sys_global_symbol_to_cdecl \
12644lt_cv_sys_global_symbol_to_c_name_address \
12645lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12646lt_prog_compiler_no_builtin_flag \
12647lt_prog_compiler_wl \
12648lt_prog_compiler_pic \
12649lt_prog_compiler_static \
12650lt_cv_prog_compiler_c_o \
12651need_locks \
12652DSYMUTIL \
12653NMEDIT \
12654LIPO \
12655OTOOL \
12656OTOOL64 \
12657shrext_cmds \
12658export_dynamic_flag_spec \
12659whole_archive_flag_spec \
12660compiler_needs_object \
12661with_gnu_ld \
12662allow_undefined_flag \
12663no_undefined_flag \
12664hardcode_libdir_flag_spec \
12665hardcode_libdir_flag_spec_ld \
12666hardcode_libdir_separator \
12667fix_srcfile_path \
12668exclude_expsyms \
12669include_expsyms \
12670file_list_spec \
12671variables_saved_for_relink \
12672libname_spec \
12673library_names_spec \
12674soname_spec \
12675install_override_mode \
12676finish_eval \
12677old_striplib \
12678striplib; do
12679    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12680    *[\\\\\\\`\\"\\\$]*)
12681      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12682      ;;
12683    *)
12684      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12685      ;;
12686    esac
12687done
12688
12689# Double-quote double-evaled strings.
12690for var in reload_cmds \
12691old_postinstall_cmds \
12692old_postuninstall_cmds \
12693old_archive_cmds \
12694extract_expsyms_cmds \
12695old_archive_from_new_cmds \
12696old_archive_from_expsyms_cmds \
12697archive_cmds \
12698archive_expsym_cmds \
12699module_cmds \
12700module_expsym_cmds \
12701export_symbols_cmds \
12702prelink_cmds \
12703postinstall_cmds \
12704postuninstall_cmds \
12705finish_cmds \
12706sys_lib_search_path_spec \
12707sys_lib_dlsearch_path_spec; do
12708    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12709    *[\\\\\\\`\\"\\\$]*)
12710      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12711      ;;
12712    *)
12713      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12714      ;;
12715    esac
12716done
12717
12718ac_aux_dir='$ac_aux_dir'
12719xsi_shell='$xsi_shell'
12720lt_shell_append='$lt_shell_append'
12721
12722# See if we are running on zsh, and set the options which allow our
12723# commands through without removal of \ escapes INIT.
12724if test -n "\${ZSH_VERSION+set}" ; then
12725   setopt NO_GLOB_SUBST
12726fi
12727
12728
12729    PACKAGE='$PACKAGE'
12730    VERSION='$VERSION'
12731    TIMESTAMP='$TIMESTAMP'
12732    RM='$RM'
12733    ofile='$ofile'
12734
12735
12736
12737
12738_ACEOF
12739
12740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12741
12742# Handling of arguments.
12743for ac_config_target in $ac_config_targets
12744do
12745  case $ac_config_target in
12746    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
12747    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12748    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12749    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12750
12751  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12752  esac
12753done
12754
12755
12756# If the user did not use the arguments to specify the items to instantiate,
12757# then the envvar interface is used.  Set only those that are not.
12758# We use the long form for the default assignment because of an extremely
12759# bizarre bug on SunOS 4.1.3.
12760if $ac_need_defaults; then
12761  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12762  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12763  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12764fi
12765
12766# Have a temporary directory for convenience.  Make it in the build tree
12767# simply because there is no reason against having it here, and in addition,
12768# creating and moving files from /tmp can sometimes cause problems.
12769# Hook for its removal unless debugging.
12770# Note that there is a small window in which the directory will not be cleaned:
12771# after its creation but before its name has been assigned to `$tmp'.
12772$debug ||
12773{
12774  tmp=
12775  trap 'exit_status=$?
12776  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12777' 0
12778  trap 'as_fn_exit 1' 1 2 13 15
12779}
12780# Create a (secure) tmp directory for tmp files.
12781
12782{
12783  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12784  test -n "$tmp" && test -d "$tmp"
12785}  ||
12786{
12787  tmp=./conf$$-$RANDOM
12788  (umask 077 && mkdir "$tmp")
12789} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12790
12791# Set up the scripts for CONFIG_FILES section.
12792# No need to generate them if there are no CONFIG_FILES.
12793# This happens for instance with `./config.status config.h'.
12794if test -n "$CONFIG_FILES"; then
12795
12796
12797ac_cr=`echo X | tr X '\015'`
12798# On cygwin, bash can eat \r inside `` if the user requested igncr.
12799# But we know of no other shell where ac_cr would be empty at this
12800# point, so we can use a bashism as a fallback.
12801if test "x$ac_cr" = x; then
12802  eval ac_cr=\$\'\\r\'
12803fi
12804ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12805if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12806  ac_cs_awk_cr='\r'
12807else
12808  ac_cs_awk_cr=$ac_cr
12809fi
12810
12811echo 'BEGIN {' >"$tmp/subs1.awk" &&
12812_ACEOF
12813
12814
12815{
12816  echo "cat >conf$$subs.awk <<_ACEOF" &&
12817  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12818  echo "_ACEOF"
12819} >conf$$subs.sh ||
12820  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12821ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12822ac_delim='%!_!# '
12823for ac_last_try in false false false false false :; do
12824  . ./conf$$subs.sh ||
12825    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12826
12827  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12828  if test $ac_delim_n = $ac_delim_num; then
12829    break
12830  elif $ac_last_try; then
12831    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12832  else
12833    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12834  fi
12835done
12836rm -f conf$$subs.sh
12837
12838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12839cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12840_ACEOF
12841sed -n '
12842h
12843s/^/S["/; s/!.*/"]=/
12844p
12845g
12846s/^[^!]*!//
12847:repl
12848t repl
12849s/'"$ac_delim"'$//
12850t delim
12851:nl
12852h
12853s/\(.\{148\}\)..*/\1/
12854t more1
12855s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12856p
12857n
12858b repl
12859:more1
12860s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12861p
12862g
12863s/.\{148\}//
12864t nl
12865:delim
12866h
12867s/\(.\{148\}\)..*/\1/
12868t more2
12869s/["\\]/\\&/g; s/^/"/; s/$/"/
12870p
12871b
12872:more2
12873s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12874p
12875g
12876s/.\{148\}//
12877t delim
12878' <conf$$subs.awk | sed '
12879/^[^""]/{
12880  N
12881  s/\n//
12882}
12883' >>$CONFIG_STATUS || ac_write_fail=1
12884rm -f conf$$subs.awk
12885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12886_ACAWK
12887cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12888  for (key in S) S_is_set[key] = 1
12889  FS = ""
12890
12891}
12892{
12893  line = $ 0
12894  nfields = split(line, field, "@")
12895  substed = 0
12896  len = length(field[1])
12897  for (i = 2; i < nfields; i++) {
12898    key = field[i]
12899    keylen = length(key)
12900    if (S_is_set[key]) {
12901      value = S[key]
12902      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12903      len += length(value) + length(field[++i])
12904      substed = 1
12905    } else
12906      len += 1 + keylen
12907  }
12908
12909  print line
12910}
12911
12912_ACAWK
12913_ACEOF
12914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12915if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12916  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12917else
12918  cat
12919fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12920  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12921_ACEOF
12922
12923# VPATH may cause trouble with some makes, so we remove $(srcdir),
12924# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12925# trailing colons and then remove the whole line if VPATH becomes empty
12926# (actually we leave an empty line to preserve line numbers).
12927if test "x$srcdir" = x.; then
12928  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12929s/:*\$(srcdir):*/:/
12930s/:*\${srcdir}:*/:/
12931s/:*@srcdir@:*/:/
12932s/^\([^=]*=[	 ]*\):*/\1/
12933s/:*$//
12934s/^[^=]*=[	 ]*$//
12935}'
12936fi
12937
12938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12939fi # test -n "$CONFIG_FILES"
12940
12941# Set up the scripts for CONFIG_HEADERS section.
12942# No need to generate them if there are no CONFIG_HEADERS.
12943# This happens for instance with `./config.status Makefile'.
12944if test -n "$CONFIG_HEADERS"; then
12945cat >"$tmp/defines.awk" <<\_ACAWK ||
12946BEGIN {
12947_ACEOF
12948
12949# Transform confdefs.h into an awk script `defines.awk', embedded as
12950# here-document in config.status, that substitutes the proper values into
12951# config.h.in to produce config.h.
12952
12953# Create a delimiter string that does not exist in confdefs.h, to ease
12954# handling of long lines.
12955ac_delim='%!_!# '
12956for ac_last_try in false false :; do
12957  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12958  if test -z "$ac_t"; then
12959    break
12960  elif $ac_last_try; then
12961    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12962  else
12963    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12964  fi
12965done
12966
12967# For the awk script, D is an array of macro values keyed by name,
12968# likewise P contains macro parameters if any.  Preserve backslash
12969# newline sequences.
12970
12971ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12972sed -n '
12973s/.\{148\}/&'"$ac_delim"'/g
12974t rset
12975:rset
12976s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12977t def
12978d
12979:def
12980s/\\$//
12981t bsnl
12982s/["\\]/\\&/g
12983s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12984D["\1"]=" \3"/p
12985s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12986d
12987:bsnl
12988s/["\\]/\\&/g
12989s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12990D["\1"]=" \3\\\\\\n"\\/p
12991t cont
12992s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12993t cont
12994d
12995:cont
12996n
12997s/.\{148\}/&'"$ac_delim"'/g
12998t clear
12999:clear
13000s/\\$//
13001t bsnlc
13002s/["\\]/\\&/g; s/^/"/; s/$/"/p
13003d
13004:bsnlc
13005s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13006b cont
13007' <confdefs.h | sed '
13008s/'"$ac_delim"'/"\\\
13009"/g' >>$CONFIG_STATUS || ac_write_fail=1
13010
13011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13012  for (key in D) D_is_set[key] = 1
13013  FS = ""
13014}
13015/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13016  line = \$ 0
13017  split(line, arg, " ")
13018  if (arg[1] == "#") {
13019    defundef = arg[2]
13020    mac1 = arg[3]
13021  } else {
13022    defundef = substr(arg[1], 2)
13023    mac1 = arg[2]
13024  }
13025  split(mac1, mac2, "(") #)
13026  macro = mac2[1]
13027  prefix = substr(line, 1, index(line, defundef) - 1)
13028  if (D_is_set[macro]) {
13029    # Preserve the white space surrounding the "#".
13030    print prefix "define", macro P[macro] D[macro]
13031    next
13032  } else {
13033    # Replace #undef with comments.  This is necessary, for example,
13034    # in the case of _POSIX_SOURCE, which is predefined and required
13035    # on some systems where configure will not decide to define it.
13036    if (defundef == "undef") {
13037      print "/*", prefix defundef, macro, "*/"
13038      next
13039    }
13040  }
13041}
13042{ print }
13043_ACAWK
13044_ACEOF
13045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13047fi # test -n "$CONFIG_HEADERS"
13048
13049
13050eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13051shift
13052for ac_tag
13053do
13054  case $ac_tag in
13055  :[FHLC]) ac_mode=$ac_tag; continue;;
13056  esac
13057  case $ac_mode$ac_tag in
13058  :[FHL]*:*);;
13059  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13060  :[FH]-) ac_tag=-:-;;
13061  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13062  esac
13063  ac_save_IFS=$IFS
13064  IFS=:
13065  set x $ac_tag
13066  IFS=$ac_save_IFS
13067  shift
13068  ac_file=$1
13069  shift
13070
13071  case $ac_mode in
13072  :L) ac_source=$1;;
13073  :[FH])
13074    ac_file_inputs=
13075    for ac_f
13076    do
13077      case $ac_f in
13078      -) ac_f="$tmp/stdin";;
13079      *) # Look for the file first in the build tree, then in the source tree
13080	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13081	 # because $ac_f cannot contain `:'.
13082	 test -f "$ac_f" ||
13083	   case $ac_f in
13084	   [\\/$]*) false;;
13085	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13086	   esac ||
13087	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13088      esac
13089      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13090      as_fn_append ac_file_inputs " '$ac_f'"
13091    done
13092
13093    # Let's still pretend it is `configure' which instantiates (i.e., don't
13094    # use $as_me), people would be surprised to read:
13095    #    /* config.h.  Generated by config.status.  */
13096    configure_input='Generated from '`
13097	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13098	`' by configure.'
13099    if test x"$ac_file" != x-; then
13100      configure_input="$ac_file.  $configure_input"
13101      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13102$as_echo "$as_me: creating $ac_file" >&6;}
13103    fi
13104    # Neutralize special characters interpreted by sed in replacement strings.
13105    case $configure_input in #(
13106    *\&* | *\|* | *\\* )
13107       ac_sed_conf_input=`$as_echo "$configure_input" |
13108       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13109    *) ac_sed_conf_input=$configure_input;;
13110    esac
13111
13112    case $ac_tag in
13113    *:-:* | *:-) cat >"$tmp/stdin" \
13114      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13115    esac
13116    ;;
13117  esac
13118
13119  ac_dir=`$as_dirname -- "$ac_file" ||
13120$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13121	 X"$ac_file" : 'X\(//\)[^/]' \| \
13122	 X"$ac_file" : 'X\(//\)$' \| \
13123	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13124$as_echo X"$ac_file" |
13125    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13126	    s//\1/
13127	    q
13128	  }
13129	  /^X\(\/\/\)[^/].*/{
13130	    s//\1/
13131	    q
13132	  }
13133	  /^X\(\/\/\)$/{
13134	    s//\1/
13135	    q
13136	  }
13137	  /^X\(\/\).*/{
13138	    s//\1/
13139	    q
13140	  }
13141	  s/.*/./; q'`
13142  as_dir="$ac_dir"; as_fn_mkdir_p
13143  ac_builddir=.
13144
13145case "$ac_dir" in
13146.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13147*)
13148  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13149  # A ".." for each directory in $ac_dir_suffix.
13150  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13151  case $ac_top_builddir_sub in
13152  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13153  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13154  esac ;;
13155esac
13156ac_abs_top_builddir=$ac_pwd
13157ac_abs_builddir=$ac_pwd$ac_dir_suffix
13158# for backward compatibility:
13159ac_top_builddir=$ac_top_build_prefix
13160
13161case $srcdir in
13162  .)  # We are building in place.
13163    ac_srcdir=.
13164    ac_top_srcdir=$ac_top_builddir_sub
13165    ac_abs_top_srcdir=$ac_pwd ;;
13166  [\\/]* | ?:[\\/]* )  # Absolute name.
13167    ac_srcdir=$srcdir$ac_dir_suffix;
13168    ac_top_srcdir=$srcdir
13169    ac_abs_top_srcdir=$srcdir ;;
13170  *) # Relative name.
13171    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13172    ac_top_srcdir=$ac_top_build_prefix$srcdir
13173    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13174esac
13175ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13176
13177
13178  case $ac_mode in
13179  :F)
13180  #
13181  # CONFIG_FILE
13182  #
13183
13184  case $INSTALL in
13185  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13186  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13187  esac
13188  ac_MKDIR_P=$MKDIR_P
13189  case $MKDIR_P in
13190  [\\/$]* | ?:[\\/]* ) ;;
13191  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13192  esac
13193_ACEOF
13194
13195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13196# If the template does not know about datarootdir, expand it.
13197# FIXME: This hack should be removed a few years after 2.60.
13198ac_datarootdir_hack=; ac_datarootdir_seen=
13199ac_sed_dataroot='
13200/datarootdir/ {
13201  p
13202  q
13203}
13204/@datadir@/p
13205/@docdir@/p
13206/@infodir@/p
13207/@localedir@/p
13208/@mandir@/p'
13209case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13210*datarootdir*) ac_datarootdir_seen=yes;;
13211*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13212  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13213$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13214_ACEOF
13215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13216  ac_datarootdir_hack='
13217  s&@datadir@&$datadir&g
13218  s&@docdir@&$docdir&g
13219  s&@infodir@&$infodir&g
13220  s&@localedir@&$localedir&g
13221  s&@mandir@&$mandir&g
13222  s&\\\${datarootdir}&$datarootdir&g' ;;
13223esac
13224_ACEOF
13225
13226# Neutralize VPATH when `$srcdir' = `.'.
13227# Shell code in configure.ac might set extrasub.
13228# FIXME: do we really want to maintain this feature?
13229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13230ac_sed_extra="$ac_vpsub
13231$extrasub
13232_ACEOF
13233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13234:t
13235/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13236s|@configure_input@|$ac_sed_conf_input|;t t
13237s&@top_builddir@&$ac_top_builddir_sub&;t t
13238s&@top_build_prefix@&$ac_top_build_prefix&;t t
13239s&@srcdir@&$ac_srcdir&;t t
13240s&@abs_srcdir@&$ac_abs_srcdir&;t t
13241s&@top_srcdir@&$ac_top_srcdir&;t t
13242s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13243s&@builddir@&$ac_builddir&;t t
13244s&@abs_builddir@&$ac_abs_builddir&;t t
13245s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13246s&@INSTALL@&$ac_INSTALL&;t t
13247s&@MKDIR_P@&$ac_MKDIR_P&;t t
13248$ac_datarootdir_hack
13249"
13250eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13251  || as_fn_error "could not create $ac_file" "$LINENO" 5
13252
13253test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13254  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13255  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13256  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13257which seems to be undefined.  Please make sure it is defined." >&5
13258$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13259which seems to be undefined.  Please make sure it is defined." >&2;}
13260
13261  rm -f "$tmp/stdin"
13262  case $ac_file in
13263  -) cat "$tmp/out" && rm -f "$tmp/out";;
13264  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13265  esac \
13266  || as_fn_error "could not create $ac_file" "$LINENO" 5
13267 ;;
13268  :H)
13269  #
13270  # CONFIG_HEADER
13271  #
13272  if test x"$ac_file" != x-; then
13273    {
13274      $as_echo "/* $configure_input  */" \
13275      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13276    } >"$tmp/config.h" \
13277      || as_fn_error "could not create $ac_file" "$LINENO" 5
13278    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13279      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13280$as_echo "$as_me: $ac_file is unchanged" >&6;}
13281    else
13282      rm -f "$ac_file"
13283      mv "$tmp/config.h" "$ac_file" \
13284	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13285    fi
13286  else
13287    $as_echo "/* $configure_input  */" \
13288      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13289      || as_fn_error "could not create -" "$LINENO" 5
13290  fi
13291# Compute "$ac_file"'s index in $config_headers.
13292_am_arg="$ac_file"
13293_am_stamp_count=1
13294for _am_header in $config_headers :; do
13295  case $_am_header in
13296    $_am_arg | $_am_arg:* )
13297      break ;;
13298    * )
13299      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13300  esac
13301done
13302echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13303$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13305	 X"$_am_arg" : 'X\(//\)$' \| \
13306	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13307$as_echo X"$_am_arg" |
13308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13309	    s//\1/
13310	    q
13311	  }
13312	  /^X\(\/\/\)[^/].*/{
13313	    s//\1/
13314	    q
13315	  }
13316	  /^X\(\/\/\)$/{
13317	    s//\1/
13318	    q
13319	  }
13320	  /^X\(\/\).*/{
13321	    s//\1/
13322	    q
13323	  }
13324	  s/.*/./; q'`/stamp-h$_am_stamp_count
13325 ;;
13326
13327  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13328$as_echo "$as_me: executing $ac_file commands" >&6;}
13329 ;;
13330  esac
13331
13332
13333  case $ac_file$ac_mode in
13334    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13335  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13336  # are listed without --file.  Let's play safe and only enable the eval
13337  # if we detect the quoting.
13338  case $CONFIG_FILES in
13339  *\'*) eval set x "$CONFIG_FILES" ;;
13340  *)   set x $CONFIG_FILES ;;
13341  esac
13342  shift
13343  for mf
13344  do
13345    # Strip MF so we end up with the name of the file.
13346    mf=`echo "$mf" | sed -e 's/:.*$//'`
13347    # Check whether this is an Automake generated Makefile or not.
13348    # We used to match only the files named `Makefile.in', but
13349    # some people rename them; so instead we look at the file content.
13350    # Grep'ing the first line is not enough: some people post-process
13351    # each Makefile.in and add a new line on top of each file to say so.
13352    # Grep'ing the whole file is not good either: AIX grep has a line
13353    # limit of 2048, but all sed's we know have understand at least 4000.
13354    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13355      dirpart=`$as_dirname -- "$mf" ||
13356$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13357	 X"$mf" : 'X\(//\)[^/]' \| \
13358	 X"$mf" : 'X\(//\)$' \| \
13359	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13360$as_echo X"$mf" |
13361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13362	    s//\1/
13363	    q
13364	  }
13365	  /^X\(\/\/\)[^/].*/{
13366	    s//\1/
13367	    q
13368	  }
13369	  /^X\(\/\/\)$/{
13370	    s//\1/
13371	    q
13372	  }
13373	  /^X\(\/\).*/{
13374	    s//\1/
13375	    q
13376	  }
13377	  s/.*/./; q'`
13378    else
13379      continue
13380    fi
13381    # Extract the definition of DEPDIR, am__include, and am__quote
13382    # from the Makefile without running `make'.
13383    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13384    test -z "$DEPDIR" && continue
13385    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13386    test -z "am__include" && continue
13387    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13388    # When using ansi2knr, U may be empty or an underscore; expand it
13389    U=`sed -n 's/^U = //p' < "$mf"`
13390    # Find all dependency output files, they are included files with
13391    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13392    # simplest approach to changing $(DEPDIR) to its actual value in the
13393    # expansion.
13394    for file in `sed -n "
13395      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13396	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13397      # Make sure the directory exists.
13398      test -f "$dirpart/$file" && continue
13399      fdir=`$as_dirname -- "$file" ||
13400$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13401	 X"$file" : 'X\(//\)[^/]' \| \
13402	 X"$file" : 'X\(//\)$' \| \
13403	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13404$as_echo X"$file" |
13405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13406	    s//\1/
13407	    q
13408	  }
13409	  /^X\(\/\/\)[^/].*/{
13410	    s//\1/
13411	    q
13412	  }
13413	  /^X\(\/\/\)$/{
13414	    s//\1/
13415	    q
13416	  }
13417	  /^X\(\/\).*/{
13418	    s//\1/
13419	    q
13420	  }
13421	  s/.*/./; q'`
13422      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13423      # echo "creating $dirpart/$file"
13424      echo '# dummy' > "$dirpart/$file"
13425    done
13426  done
13427}
13428 ;;
13429    "libtool":C)
13430
13431    # See if we are running on zsh, and set the options which allow our
13432    # commands through without removal of \ escapes.
13433    if test -n "${ZSH_VERSION+set}" ; then
13434      setopt NO_GLOB_SUBST
13435    fi
13436
13437    cfgfile="${ofile}T"
13438    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13439    $RM "$cfgfile"
13440
13441    cat <<_LT_EOF >> "$cfgfile"
13442#! $SHELL
13443
13444# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13445# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13446# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13447# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13448#
13449#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13450#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13451#                 Inc.
13452#   Written by Gordon Matzigkeit, 1996
13453#
13454#   This file is part of GNU Libtool.
13455#
13456# GNU Libtool is free software; you can redistribute it and/or
13457# modify it under the terms of the GNU General Public License as
13458# published by the Free Software Foundation; either version 2 of
13459# the License, or (at your option) any later version.
13460#
13461# As a special exception to the GNU General Public License,
13462# if you distribute this file as part of a program or library that
13463# is built using GNU Libtool, you may include this file under the
13464# same distribution terms that you use for the rest of that program.
13465#
13466# GNU Libtool is distributed in the hope that it will be useful,
13467# but WITHOUT ANY WARRANTY; without even the implied warranty of
13468# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13469# GNU General Public License for more details.
13470#
13471# You should have received a copy of the GNU General Public License
13472# along with GNU Libtool; see the file COPYING.  If not, a copy
13473# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13474# obtained by writing to the Free Software Foundation, Inc.,
13475# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13476
13477
13478# The names of the tagged configurations supported by this script.
13479available_tags=""
13480
13481# ### BEGIN LIBTOOL CONFIG
13482
13483# Which release of libtool.m4 was used?
13484macro_version=$macro_version
13485macro_revision=$macro_revision
13486
13487# Assembler program.
13488AS=$lt_AS
13489
13490# DLL creation program.
13491DLLTOOL=$lt_DLLTOOL
13492
13493# Object dumper program.
13494OBJDUMP=$lt_OBJDUMP
13495
13496# Whether or not to build shared libraries.
13497build_libtool_libs=$enable_shared
13498
13499# Whether or not to build static libraries.
13500build_old_libs=$enable_static
13501
13502# What type of objects to build.
13503pic_mode=$pic_mode
13504
13505# Whether or not to optimize for fast installation.
13506fast_install=$enable_fast_install
13507
13508# Shell to use when invoking shell scripts.
13509SHELL=$lt_SHELL
13510
13511# An echo program that protects backslashes.
13512ECHO=$lt_ECHO
13513
13514# The host system.
13515host_alias=$host_alias
13516host=$host
13517host_os=$host_os
13518
13519# The build system.
13520build_alias=$build_alias
13521build=$build
13522build_os=$build_os
13523
13524# A sed program that does not truncate output.
13525SED=$lt_SED
13526
13527# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13528Xsed="\$SED -e 1s/^X//"
13529
13530# A grep program that handles long lines.
13531GREP=$lt_GREP
13532
13533# An ERE matcher.
13534EGREP=$lt_EGREP
13535
13536# A literal string matcher.
13537FGREP=$lt_FGREP
13538
13539# A BSD- or MS-compatible name lister.
13540NM=$lt_NM
13541
13542# Whether we need soft or hard links.
13543LN_S=$lt_LN_S
13544
13545# What is the maximum length of a command?
13546max_cmd_len=$max_cmd_len
13547
13548# Object file suffix (normally "o").
13549objext=$ac_objext
13550
13551# Executable file suffix (normally "").
13552exeext=$exeext
13553
13554# whether the shell understands "unset".
13555lt_unset=$lt_unset
13556
13557# turn spaces into newlines.
13558SP2NL=$lt_lt_SP2NL
13559
13560# turn newlines into spaces.
13561NL2SP=$lt_lt_NL2SP
13562
13563# Method to check whether dependent libraries are shared objects.
13564deplibs_check_method=$lt_deplibs_check_method
13565
13566# Command to use when deplibs_check_method == "file_magic".
13567file_magic_cmd=$lt_file_magic_cmd
13568
13569# The archiver.
13570AR=$lt_AR
13571AR_FLAGS=$lt_AR_FLAGS
13572
13573# A symbol stripping program.
13574STRIP=$lt_STRIP
13575
13576# Commands used to install an old-style archive.
13577RANLIB=$lt_RANLIB
13578old_postinstall_cmds=$lt_old_postinstall_cmds
13579old_postuninstall_cmds=$lt_old_postuninstall_cmds
13580
13581# Whether to use a lock for old archive extraction.
13582lock_old_archive_extraction=$lock_old_archive_extraction
13583
13584# A C compiler.
13585LTCC=$lt_CC
13586
13587# LTCC compiler flags.
13588LTCFLAGS=$lt_CFLAGS
13589
13590# Take the output of nm and produce a listing of raw symbols and C names.
13591global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13592
13593# Transform the output of nm in a proper C declaration.
13594global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13595
13596# Transform the output of nm in a C name address pair.
13597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13598
13599# Transform the output of nm in a C name address pair when lib prefix is needed.
13600global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13601
13602# The name of the directory that contains temporary libtool files.
13603objdir=$objdir
13604
13605# Used to examine libraries when file_magic_cmd begins with "file".
13606MAGIC_CMD=$MAGIC_CMD
13607
13608# Must we lock files when doing compilation?
13609need_locks=$lt_need_locks
13610
13611# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13612DSYMUTIL=$lt_DSYMUTIL
13613
13614# Tool to change global to local symbols on Mac OS X.
13615NMEDIT=$lt_NMEDIT
13616
13617# Tool to manipulate fat objects and archives on Mac OS X.
13618LIPO=$lt_LIPO
13619
13620# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13621OTOOL=$lt_OTOOL
13622
13623# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13624OTOOL64=$lt_OTOOL64
13625
13626# Old archive suffix (normally "a").
13627libext=$libext
13628
13629# Shared library suffix (normally ".so").
13630shrext_cmds=$lt_shrext_cmds
13631
13632# The commands to extract the exported symbol list from a shared archive.
13633extract_expsyms_cmds=$lt_extract_expsyms_cmds
13634
13635# Variables whose values should be saved in libtool wrapper scripts and
13636# restored at link time.
13637variables_saved_for_relink=$lt_variables_saved_for_relink
13638
13639# Do we need the "lib" prefix for modules?
13640need_lib_prefix=$need_lib_prefix
13641
13642# Do we need a version for libraries?
13643need_version=$need_version
13644
13645# Library versioning type.
13646version_type=$version_type
13647
13648# Shared library runtime path variable.
13649runpath_var=$runpath_var
13650
13651# Shared library path variable.
13652shlibpath_var=$shlibpath_var
13653
13654# Is shlibpath searched before the hard-coded library search path?
13655shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13656
13657# Format of library name prefix.
13658libname_spec=$lt_libname_spec
13659
13660# List of archive names.  First name is the real one, the rest are links.
13661# The last name is the one that the linker finds with -lNAME
13662library_names_spec=$lt_library_names_spec
13663
13664# The coded name of the library, if different from the real name.
13665soname_spec=$lt_soname_spec
13666
13667# Permission mode override for installation of shared libraries.
13668install_override_mode=$lt_install_override_mode
13669
13670# Command to use after installation of a shared archive.
13671postinstall_cmds=$lt_postinstall_cmds
13672
13673# Command to use after uninstallation of a shared archive.
13674postuninstall_cmds=$lt_postuninstall_cmds
13675
13676# Commands used to finish a libtool library installation in a directory.
13677finish_cmds=$lt_finish_cmds
13678
13679# As "finish_cmds", except a single script fragment to be evaled but
13680# not shown.
13681finish_eval=$lt_finish_eval
13682
13683# Whether we should hardcode library paths into libraries.
13684hardcode_into_libs=$hardcode_into_libs
13685
13686# Compile-time system search path for libraries.
13687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13688
13689# Run-time system search path for libraries.
13690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13691
13692# Whether dlopen is supported.
13693dlopen_support=$enable_dlopen
13694
13695# Whether dlopen of programs is supported.
13696dlopen_self=$enable_dlopen_self
13697
13698# Whether dlopen of statically linked programs is supported.
13699dlopen_self_static=$enable_dlopen_self_static
13700
13701# Commands to strip libraries.
13702old_striplib=$lt_old_striplib
13703striplib=$lt_striplib
13704
13705
13706# The linker used to build libraries.
13707LD=$lt_LD
13708
13709# How to create reloadable object files.
13710reload_flag=$lt_reload_flag
13711reload_cmds=$lt_reload_cmds
13712
13713# Commands used to build an old-style archive.
13714old_archive_cmds=$lt_old_archive_cmds
13715
13716# A language specific compiler.
13717CC=$lt_compiler
13718
13719# Is the compiler the GNU compiler?
13720with_gcc=$GCC
13721
13722# Compiler flag to turn off builtin functions.
13723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13724
13725# How to pass a linker flag through the compiler.
13726wl=$lt_lt_prog_compiler_wl
13727
13728# Additional compiler flags for building library objects.
13729pic_flag=$lt_lt_prog_compiler_pic
13730
13731# Compiler flag to prevent dynamic linking.
13732link_static_flag=$lt_lt_prog_compiler_static
13733
13734# Does compiler simultaneously support -c and -o options?
13735compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13736
13737# Whether or not to add -lc for building shared libraries.
13738build_libtool_need_lc=$archive_cmds_need_lc
13739
13740# Whether or not to disallow shared libs when runtime libs are static.
13741allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13742
13743# Compiler flag to allow reflexive dlopens.
13744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13745
13746# Compiler flag to generate shared objects directly from archives.
13747whole_archive_flag_spec=$lt_whole_archive_flag_spec
13748
13749# Whether the compiler copes with passing no objects directly.
13750compiler_needs_object=$lt_compiler_needs_object
13751
13752# Create an old-style archive from a shared archive.
13753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13754
13755# Create a temporary old-style archive to link instead of a shared archive.
13756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13757
13758# Commands used to build a shared archive.
13759archive_cmds=$lt_archive_cmds
13760archive_expsym_cmds=$lt_archive_expsym_cmds
13761
13762# Commands used to build a loadable module if different from building
13763# a shared archive.
13764module_cmds=$lt_module_cmds
13765module_expsym_cmds=$lt_module_expsym_cmds
13766
13767# Whether we are building with GNU ld or not.
13768with_gnu_ld=$lt_with_gnu_ld
13769
13770# Flag that allows shared libraries with undefined symbols to be built.
13771allow_undefined_flag=$lt_allow_undefined_flag
13772
13773# Flag that enforces no undefined symbols.
13774no_undefined_flag=$lt_no_undefined_flag
13775
13776# Flag to hardcode \$libdir into a binary during linking.
13777# This must work even if \$libdir does not exist
13778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13779
13780# If ld is used when linking, flag to hardcode \$libdir into a binary
13781# during linking.  This must work even if \$libdir does not exist.
13782hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13783
13784# Whether we need a single "-rpath" flag with a separated argument.
13785hardcode_libdir_separator=$lt_hardcode_libdir_separator
13786
13787# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13788# DIR into the resulting binary.
13789hardcode_direct=$hardcode_direct
13790
13791# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13792# DIR into the resulting binary and the resulting library dependency is
13793# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13794# library is relocated.
13795hardcode_direct_absolute=$hardcode_direct_absolute
13796
13797# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13798# into the resulting binary.
13799hardcode_minus_L=$hardcode_minus_L
13800
13801# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13802# into the resulting binary.
13803hardcode_shlibpath_var=$hardcode_shlibpath_var
13804
13805# Set to "yes" if building a shared library automatically hardcodes DIR
13806# into the library and all subsequent libraries and executables linked
13807# against it.
13808hardcode_automatic=$hardcode_automatic
13809
13810# Set to yes if linker adds runtime paths of dependent libraries
13811# to runtime path list.
13812inherit_rpath=$inherit_rpath
13813
13814# Whether libtool must link a program against all its dependency libraries.
13815link_all_deplibs=$link_all_deplibs
13816
13817# Fix the shell variable \$srcfile for the compiler.
13818fix_srcfile_path=$lt_fix_srcfile_path
13819
13820# Set to "yes" if exported symbols are required.
13821always_export_symbols=$always_export_symbols
13822
13823# The commands to list exported symbols.
13824export_symbols_cmds=$lt_export_symbols_cmds
13825
13826# Symbols that should not be listed in the preloaded symbols.
13827exclude_expsyms=$lt_exclude_expsyms
13828
13829# Symbols that must always be exported.
13830include_expsyms=$lt_include_expsyms
13831
13832# Commands necessary for linking programs (against libraries) with templates.
13833prelink_cmds=$lt_prelink_cmds
13834
13835# Specify filename containing input files.
13836file_list_spec=$lt_file_list_spec
13837
13838# How to hardcode a shared library path into an executable.
13839hardcode_action=$hardcode_action
13840
13841# ### END LIBTOOL CONFIG
13842
13843_LT_EOF
13844
13845  case $host_os in
13846  aix3*)
13847    cat <<\_LT_EOF >> "$cfgfile"
13848# AIX sometimes has problems with the GCC collect2 program.  For some
13849# reason, if we set the COLLECT_NAMES environment variable, the problems
13850# vanish in a puff of smoke.
13851if test "X${COLLECT_NAMES+set}" != Xset; then
13852  COLLECT_NAMES=
13853  export COLLECT_NAMES
13854fi
13855_LT_EOF
13856    ;;
13857  esac
13858
13859
13860ltmain="$ac_aux_dir/ltmain.sh"
13861
13862
13863  # We use sed instead of cat because bash on DJGPP gets confused if
13864  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13865  # text mode, it properly converts lines to CR/LF.  This bash problem
13866  # is reportedly fixed, but why not run on old versions too?
13867  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13868    || (rm -f "$cfgfile"; exit 1)
13869
13870  case $xsi_shell in
13871  yes)
13872    cat << \_LT_EOF >> "$cfgfile"
13873
13874# func_dirname file append nondir_replacement
13875# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13876# otherwise set result to NONDIR_REPLACEMENT.
13877func_dirname ()
13878{
13879  case ${1} in
13880    */*) func_dirname_result="${1%/*}${2}" ;;
13881    *  ) func_dirname_result="${3}" ;;
13882  esac
13883}
13884
13885# func_basename file
13886func_basename ()
13887{
13888  func_basename_result="${1##*/}"
13889}
13890
13891# func_dirname_and_basename file append nondir_replacement
13892# perform func_basename and func_dirname in a single function
13893# call:
13894#   dirname:  Compute the dirname of FILE.  If nonempty,
13895#             add APPEND to the result, otherwise set result
13896#             to NONDIR_REPLACEMENT.
13897#             value returned in "$func_dirname_result"
13898#   basename: Compute filename of FILE.
13899#             value retuned in "$func_basename_result"
13900# Implementation must be kept synchronized with func_dirname
13901# and func_basename. For efficiency, we do not delegate to
13902# those functions but instead duplicate the functionality here.
13903func_dirname_and_basename ()
13904{
13905  case ${1} in
13906    */*) func_dirname_result="${1%/*}${2}" ;;
13907    *  ) func_dirname_result="${3}" ;;
13908  esac
13909  func_basename_result="${1##*/}"
13910}
13911
13912# func_stripname prefix suffix name
13913# strip PREFIX and SUFFIX off of NAME.
13914# PREFIX and SUFFIX must not contain globbing or regex special
13915# characters, hashes, percent signs, but SUFFIX may contain a leading
13916# dot (in which case that matches only a dot).
13917func_stripname ()
13918{
13919  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13920  # positional parameters, so assign one to ordinary parameter first.
13921  func_stripname_result=${3}
13922  func_stripname_result=${func_stripname_result#"${1}"}
13923  func_stripname_result=${func_stripname_result%"${2}"}
13924}
13925
13926# func_opt_split
13927func_opt_split ()
13928{
13929  func_opt_split_opt=${1%%=*}
13930  func_opt_split_arg=${1#*=}
13931}
13932
13933# func_lo2o object
13934func_lo2o ()
13935{
13936  case ${1} in
13937    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13938    *)    func_lo2o_result=${1} ;;
13939  esac
13940}
13941
13942# func_xform libobj-or-source
13943func_xform ()
13944{
13945  func_xform_result=${1%.*}.lo
13946}
13947
13948# func_arith arithmetic-term...
13949func_arith ()
13950{
13951  func_arith_result=$(( $* ))
13952}
13953
13954# func_len string
13955# STRING may not start with a hyphen.
13956func_len ()
13957{
13958  func_len_result=${#1}
13959}
13960
13961_LT_EOF
13962    ;;
13963  *) # Bourne compatible functions.
13964    cat << \_LT_EOF >> "$cfgfile"
13965
13966# func_dirname file append nondir_replacement
13967# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13968# otherwise set result to NONDIR_REPLACEMENT.
13969func_dirname ()
13970{
13971  # Extract subdirectory from the argument.
13972  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13973  if test "X$func_dirname_result" = "X${1}"; then
13974    func_dirname_result="${3}"
13975  else
13976    func_dirname_result="$func_dirname_result${2}"
13977  fi
13978}
13979
13980# func_basename file
13981func_basename ()
13982{
13983  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13984}
13985
13986
13987# func_stripname prefix suffix name
13988# strip PREFIX and SUFFIX off of NAME.
13989# PREFIX and SUFFIX must not contain globbing or regex special
13990# characters, hashes, percent signs, but SUFFIX may contain a leading
13991# dot (in which case that matches only a dot).
13992# func_strip_suffix prefix name
13993func_stripname ()
13994{
13995  case ${2} in
13996    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13997    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13998  esac
13999}
14000
14001# sed scripts:
14002my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14003my_sed_long_arg='1s/^-[^=]*=//'
14004
14005# func_opt_split
14006func_opt_split ()
14007{
14008  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14009  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14010}
14011
14012# func_lo2o object
14013func_lo2o ()
14014{
14015  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14016}
14017
14018# func_xform libobj-or-source
14019func_xform ()
14020{
14021  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14022}
14023
14024# func_arith arithmetic-term...
14025func_arith ()
14026{
14027  func_arith_result=`expr "$@"`
14028}
14029
14030# func_len string
14031# STRING may not start with a hyphen.
14032func_len ()
14033{
14034  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14035}
14036
14037_LT_EOF
14038esac
14039
14040case $lt_shell_append in
14041  yes)
14042    cat << \_LT_EOF >> "$cfgfile"
14043
14044# func_append var value
14045# Append VALUE to the end of shell variable VAR.
14046func_append ()
14047{
14048  eval "$1+=\$2"
14049}
14050_LT_EOF
14051    ;;
14052  *)
14053    cat << \_LT_EOF >> "$cfgfile"
14054
14055# func_append var value
14056# Append VALUE to the end of shell variable VAR.
14057func_append ()
14058{
14059  eval "$1=\$$1\$2"
14060}
14061
14062_LT_EOF
14063    ;;
14064  esac
14065
14066
14067  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14068    || (rm -f "$cfgfile"; exit 1)
14069
14070  mv -f "$cfgfile" "$ofile" ||
14071    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14072  chmod +x "$ofile"
14073
14074 ;;
14075
14076  esac
14077done # for ac_tag
14078
14079
14080as_fn_exit 0
14081_ACEOF
14082ac_clean_files=$ac_clean_files_save
14083
14084test $ac_write_fail = 0 ||
14085  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14086
14087
14088# configure is writing to config.log, and then calls config.status.
14089# config.status does its own redirection, appending to config.log.
14090# Unfortunately, on DOS this fails, as config.log is still kept open
14091# by configure, so config.status won't be able to write to it; its
14092# output is simply discarded.  So we exec the FD to /dev/null,
14093# effectively closing config.log, so it can be properly (re)opened and
14094# appended to by config.status.  When coming back to configure, we
14095# need to make the FD available again.
14096if test "$no_create" != yes; then
14097  ac_cs_success=:
14098  ac_config_status_args=
14099  test "$silent" = yes &&
14100    ac_config_status_args="$ac_config_status_args --quiet"
14101  exec 5>/dev/null
14102  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14103  exec 5>>config.log
14104  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14105  # would make configure fail if this is the last instruction.
14106  $ac_cs_success || as_fn_exit $?
14107fi
14108if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14109  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14110$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14111fi
14112
14113